:root {
  --ink: #d8dee9;
  --muted: #8b98aa;
  --line: #263241;
  --line-dark: #344153;
  --panel: #111821;
  --paper: #0f151d;
  --rail: #0b1017;
  --blue: #4f8cff;
  --blue-dark: #2f6fe4;
  --green: #54c78a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(79, 140, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.035) 1px, transparent 1px),
    #0d1117;
  background-size: 24px 24px;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.gate-locked {
  overflow: hidden;
}

body.gate-locked .app-shell {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

button,
select,
input {
  font: inherit;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 12, 0.82);
}

.access-gate[hidden] {
  display: none;
}

.access-dialog {
  width: min(520px, 100%);
  border: 1px solid #314157;
  border-radius: 4px;
  background: #0d141d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  padding: 24px;
}

.gate-kicker {
  display: block;
  margin-bottom: 10px;
  color: #8fb5ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.access-dialog h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
}

.access-dialog p {
  margin: 0 0 14px;
  color: #b9c5d5;
  line-height: 1.55;
}

.access-dialog .gate-note {
  border: 1px solid #4f3e1f;
  background: #211909;
  color: #ffd889;
  padding: 10px 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  background: rgba(11, 16, 23, 0.96);
  color: var(--ink);
  border-right: 1px solid var(--line-dark);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #39475a;
  border-radius: 2px;
  display: grid;
  place-items: center;
  background: #121a24;
  color: #8fb5ff;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  font-size: 13px;
}

.brand-name {
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(15, 21, 29, 0.86);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.terminal-bar code {
  padding: 0;
  color: #a7c4ff;
  background: transparent;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
  color: #7f8b9d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.app-footer span:last-child {
  text-align: right;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid #40536d;
  border-radius: 3px;
  padding: 12px 14px;
  background: rgba(10, 15, 22, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
  color: #b9c5d5;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  color: #eef4ff;
  font-size: 13px;
}

.cookie-banner span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 7px 8px;
  background: transparent;
  color: #aeb8c7;
  text-align: left;
}

.nav-item.active {
  background: #111a25;
  border-color: var(--line-dark);
  box-shadow: inset 3px 0 0 var(--blue);
  color: #eef4ff;
}

.nav-item:hover {
  background: #101720;
  border-color: var(--line);
}

.nav-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  display: grid;
  place-items: center;
  background: #111821;
  font-weight: 700;
  font-size: 12px;
}

.build-card {
  margin-top: auto;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: #101720;
}

.build-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.build-card strong,
.build-card code {
  display: block;
  color: #c9d4e3;
  font-size: 12px;
}

.build-card code {
  padding: 0;
  background: transparent;
  font-family: Consolas, "Courier New", monospace;
}

.workspace {
  padding: 16px 18px 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 14px;
}

.topbar h1 {
  font-size: 23px;
  line-height: 1.2;
  margin: 0 0 4px;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  background: #101720;
  border-radius: 2px;
  padding: 7px 10px;
  color: #c9d4e3;
  font-weight: 700;
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(430px, 1fr);
  gap: 14px;
  align-items: start;
}

.analysis-grid[hidden],
.parser-workbench[hidden] {
  display: none;
}

.config-panel,
.result-board {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.24);
}

.config-panel {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.section-heading:not(:first-child) {
  margin-top: 18px;
}

.section-heading span {
  min-width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: #0f151d;
  color: #9fbcff;
  font-weight: 700;
  font-size: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  font-size: 14px;
}

label {
  color: #c2cad6;
  font-size: 13px;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  font-size: 11px;
}

.custom-select,
.form-control {
  border-radius: 2px;
  border-color: var(--line-dark);
  min-height: 39px;
  background-color: #0f151d;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.custom-select:focus,
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.22);
}

.custom-select option {
  background: #0f151d;
  color: var(--ink);
}

.upload-zone {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 128px;
  border: 1px dashed #526174;
  border-radius: 2px;
  background: #0f151d;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone.dragging {
  border-color: var(--blue);
  background: #122034;
}

.upload-zone input {
  display: none;
}

.upload-icon {
  width: 30px;
  height: 30px;
  border: 1px solid #526174;
  border-radius: 2px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  background: #151f2b;
  color: #d8e6ff;
  font-size: 18px;
  font-weight: 700;
}

.upload-zone strong {
  font-size: 15px;
  font-family: Consolas, "Courier New", monospace;
}

.upload-zone small {
  color: var(--muted);
}

.toggles {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: #c2cad6;
}

.toggle-row input {
  width: 16px;
  height: 16px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 10px;
}

.analyze-btn {
  min-height: 42px;
  border-radius: 2px;
  font-weight: 700;
  background: var(--blue);
  border-color: var(--blue-dark);
  color: #08111f;
}

.analyze-btn:hover {
  background: #7aa7ff;
  border-color: var(--blue);
  color: #07101e;
}

.clear-btn {
  min-height: 42px;
  border-radius: 2px;
  border-color: #3f5067;
  color: #c7d3e3;
  background: #101720;
  font-weight: 700;
}

.clear-btn:hover {
  border-color: #5b6f8c;
  color: #eef4ff;
  background: #162131;
}

.preview-panel {
  display: block;
}

.result-board {
  padding: 16px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.result-header span {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.result-header h2 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
}

.result-header p {
  max-width: 520px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.adapter-alert {
  max-width: 640px;
  margin-top: 10px;
  border: 1px solid #614d27;
  border-radius: 2px;
  padding: 8px 10px;
  background: #201808;
  color: #f3ce83;
  font-size: 12px;
  line-height: 1.45;
}

.adapter-alert[hidden] {
  display: none;
}

.score-badge {
  border-radius: 2px;
  padding: 6px 8px;
  border: 1px solid #3b4b61;
  background: #101720;
  color: #8fb5ff !important;
  white-space: nowrap;
}

.tech-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0f151d;
  overflow: hidden;
}

.tech-strip div {
  min-width: 0;
  padding: 8px 10px;
  border-left: 1px solid var(--line);
}

.tech-strip div:first-child {
  border-left: 0;
}

.tech-strip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.tech-strip strong {
  display: block;
  margin-top: 2px;
  color: #d7e3f5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.pipeline-grid div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b1119;
}

.pipeline-grid span,
.pipeline-grid strong,
.pipeline-grid em {
  display: block;
  font-family: Consolas, "Courier New", monospace;
}

.pipeline-grid span {
  color: #6f8198;
  font-size: 10px;
  font-weight: 700;
}

.pipeline-grid strong {
  margin-top: 3px;
  color: #d7e3f5;
  font-size: 13px;
}

.pipeline-grid em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.processing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #344153;
  border-radius: 2px;
  background: #0f151d;
}

.processing-summary div {
  min-width: 0;
}

.processing-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.processing-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 25px;
  line-height: 1.1;
  color: #eef4ff;
  word-break: break-word;
}

.processing-summary p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #a7b2c2;
  font-size: 13px;
}

.manifest-panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0a0f16;
  overflow: hidden;
}

.manifest-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #0f151d;
  font-family: Consolas, "Courier New", monospace;
}

.manifest-head strong {
  color: #d7e3f5;
  font-size: 12px;
}

.manifest-head span {
  color: var(--muted);
  font-size: 11px;
}

.manifest-panel pre {
  max-height: 180px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  color: #b7c7db;
  background: #0a0f16;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.technical-log-panel {
  margin-bottom: 16px;
  border: 1px solid #33445a;
  border-radius: 2px;
  background: #0a0f16;
  overflow: hidden;
}

.technical-log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #101720;
}

.technical-log-head span {
  display: block;
  color: #8fb5ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.technical-log-head strong {
  display: block;
  margin-top: 4px;
  color: #e5edf8;
  font-size: 13px;
}

.technical-log-head code {
  align-self: start;
  border: 1px solid #3a4d66;
  border-radius: 2px;
  padding: 4px 7px;
  color: #b7c7db;
  background: #080d13;
  font-size: 11px;
}

.technical-log-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.technical-log-grid div {
  min-width: 0;
  padding: 10px;
  border-left: 1px solid var(--line);
}

.technical-log-grid div:first-child {
  border-left: 0;
}

.technical-log-grid span,
.technical-log-grid em {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.technical-log-grid strong {
  display: block;
  margin: 3px 0;
  overflow: hidden;
  color: #eef4ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-log-grid em {
  font-style: normal;
}

.technical-log-panel pre {
  max-height: 170px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  color: #c9d8eb;
  background: #070b10;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
}

.parser-workbench {
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.24);
}

.parser-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #0f151d;
}

.parser-head span,
.repo-card span {
  display: block;
  color: #8fb5ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.parser-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 800;
}

.parser-head code {
  align-self: start;
  border: 1px solid #33445a;
  border-radius: 2px;
  padding: 6px 8px;
  color: #c4d6ef;
  background: #0a0f16;
  font-size: 12px;
}

.repo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.repo-card {
  min-width: 0;
  padding: 13px 14px;
  border-left: 1px solid var(--line);
}

.repo-card:first-child {
  border-left: 0;
}

.repo-card strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #e5edf8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.git-panel {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 520px;
}

.git-file-list {
  border-right: 1px solid var(--line);
  background: #0b1119;
  padding: 10px;
}

.git-file {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 9px 10px;
  background: transparent;
  color: #aeb8c7;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-align: left;
}

.git-file + .git-file {
  margin-top: 4px;
}

.git-file.active,
.git-file:hover {
  border-color: #355279;
  background: #101b29;
  color: #eef4ff;
}

.source-window {
  min-width: 0;
  background: #070b10;
}

.source-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #0c121a;
  font-family: Consolas, "Courier New", monospace;
}

.source-title span {
  min-width: 0;
  overflow: hidden;
  color: #d7e3f5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-title em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}

.source-window pre {
  min-height: 470px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #c9d8eb;
  background:
    linear-gradient(90deg, rgba(79, 140, 255, 0.08) 0 1px, transparent 1px 100%),
    #070b10;
  background-size: 48px 100%;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.metadata-panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0f151d;
}

.metadata-panel[hidden] {
  display: none;
}

.metadata-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #121b26;
}

.metadata-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metadata-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
}

.metadata-head em {
  align-self: flex-start;
  border: 1px solid #3b4b61;
  border-radius: 2px;
  font-family: Consolas, "Courier New", monospace;
  padding: 4px 7px;
  color: #9fbcff;
  background: #0f151d;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metadata-grid div {
  min-width: 0;
  padding: 10px;
  border-left: 1px solid var(--line);
}

.metadata-grid div:first-child {
  border-left: 0;
}

.metadata-grid span,
.metadata-columns h4 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metadata-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}

.metadata-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.metadata-columns section {
  min-width: 0;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
}

.metadata-columns section:nth-child(1),
.metadata-columns section:nth-child(2) {
  border-top: 0;
}

.metadata-columns section:nth-child(even) {
  border-left: 1px solid var(--line);
}

.metadata-columns h4 {
  margin: 0 0 6px;
}

.metadata-columns ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e2;
  font-size: 13px;
}

.metadata-columns li + li {
  margin-top: 3px;
}

.metadata-warning {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid #65512c;
  background: #211b10;
  color: #f0d393;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px;
  background: #0f151d;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
}

.console-panel {
  margin-top: 16px;
  border: 1px solid #344153;
  border-radius: 3px;
  background: #070b10;
  color: #d7e2ef;
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #263241;
  background: #0c121a;
  font-size: 13px;
}

.console-top strong {
  font-weight: 700;
}

.console-top span {
  border: 1px solid #45566c;
  border-radius: 3px;
  padding: 2px 7px;
  color: #b9c5d5;
  font-size: 12px;
  text-transform: uppercase;
}

.console-top span.running {
  border-color: #7c945f;
  color: #d7edbd;
}

.console-panel pre {
  height: 188px;
  margin: 0;
  padding: 11px 12px;
  overflow: auto;
  color: #d4e0ef;
  background: #070b10;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .analysis-grid,
  .preview-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 14px;
    gap: 14px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .processing-summary,
  .tech-strip,
  .pipeline-grid,
  .action-row,
  .technical-log-grid,
  .repo-grid,
  .git-panel,
  .metadata-grid,
  .metadata-columns {
    grid-template-columns: 1fr;
  }

  .tech-strip div,
  .tech-strip div:first-child,
  .technical-log-grid div,
  .technical-log-grid div:first-child,
  .repo-card,
  .repo-card:first-child,
  .metadata-grid div,
  .metadata-columns section,
  .metadata-columns section:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tech-strip div:first-child,
  .technical-log-grid div:first-child,
  .repo-card:first-child,
  .metadata-grid div:first-child,
  .metadata-columns section:first-child {
    border-top: 0;
  }

  .technical-log-head {
    flex-direction: column;
  }

  .parser-head {
    flex-direction: column;
  }

  .git-file-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .source-window pre {
    min-height: 360px;
    font-size: 12px;
  }

  .app-footer,
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .app-footer span:last-child {
    text-align: left;
  }
}
