:root {
  --ink: #182329;
  --muted: #66757c;
  --line: #dfe7e9;
  --paper: #ffffff;
  --canvas: #f4f7f7;
  --brand: #0f6d6c;
  --brand-dark: #084d4c;
  --accent: #d9a441;
  --danger: #a43c35;
  --shadow: 0 16px 44px rgba(21, 45, 52, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 15px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}
button, input, select { font: inherit; }
.topbar {
  min-height: 230px;
  padding: 52px max(24px, calc((100vw - 1220px) / 2));
  color: white;
  background:
    linear-gradient(115deg, rgba(9, 70, 69, .97), rgba(14, 101, 100, .88)),
    radial-gradient(circle at 80% 20%, rgba(217, 164, 65, .5), transparent 35%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.eyebrow { letter-spacing: .2em; font-weight: 700; font-size: 12px; color: #d7eded; }
h1 { margin: 8px 0 6px; font-size: clamp(34px, 5vw, 58px); line-height: 1; font-weight: 650; }
.topbar p { margin: 0; max-width: 620px; color: #dcebea; }
.catalog-badge { padding: 10px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #e9f4f4; white-space: nowrap; }
main { width: min(1220px, calc(100% - 32px)); margin: -48px auto 64px; display: grid; gap: 18px; }
.card { background: var(--paper); border: 1px solid rgba(210,222,225,.8); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; }
.section-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.section-title > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e4f0ef; color: var(--brand); font-size: 12px; font-weight: 800; }
.section-title h2, .actions h2 { margin: 0; font-size: 21px; }
.section-title p, .actions p { margin: 3px 0 0; color: var(--muted); }
.row-title > button, .row-title > .result-actions { margin-left: auto; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: #46555b; font-size: 13px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid #ccd8db;
  border-radius: 9px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,109,108,.12); }
input[readonly] { color: var(--muted); background: #f0f4f4; }
.approvals { margin-top: 16px; }
.check { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 42px; padding-top: 22px; }
.check input { width: 18px; min-height: 18px; accent-color: var(--brand); }
button { border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer; font-weight: 700; }
button:hover { filter: brightness(.97); }
.primary { color: white; background: var(--brand); }
.secondary { color: var(--brand-dark); background: #dcebea; }
.ghost { color: var(--ink); background: white; border: 1px solid #cbd7da; }
.remove { color: var(--danger); background: transparent; padding: 4px 0; font-size: 13px; }
.rows { display: grid; gap: 14px; }
.line-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fcfdfd; }
.line-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.line-number { color: var(--brand-dark); }
.work-grid { grid-template-columns: 2.2fr .7fr .55fr .7fr .7fr 1.1fr; }
.manual-grid { grid-template-columns: 2fr 1fr .7fr .7fr .8fr .8fr .7fr 1.1fr; }
.wide { grid-column: span 2; }
.line-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.action-buttons, .result-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.actions { flex-wrap: wrap; }
.revision-note { flex: 1 1 100%; }
.history-grid { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
.history-actions { display: flex; gap: 9px; padding-bottom: 1px; }
.revision-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7fafb;
}
.revision-summary p { margin: 4px 0; color: var(--muted); }
.saved-documents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.saved-documents a {
  padding: 7px 10px;
  color: var(--brand-dark);
  background: #dcebea;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.attachment-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfc;
}
.attachment-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.attachment-heading h3 { margin: 0 0 4px; }
.attachment-heading p { margin: 0 0 16px; color: var(--muted); }
.attachment-heading span { padding: 6px 10px; border-radius: 999px; background: #e4f0ef; color: var(--brand-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.attachment-grid { grid-template-columns: 1.4fr 1fr 1.4fr auto; align-items: end; }
.attachment-grid .wide { grid-column: span 1; }
.attachment-list { display: grid; gap: 8px; margin-top: 16px; }
.attachment-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.7fr) 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.attachment-name { min-width: 0; }
.attachment-name strong { display: block; overflow-wrap: anywhere; }
.attachment-name small, .attachment-meta { color: var(--muted); font-size: 12px; }
.attachment-item a { color: var(--brand-dark); font-weight: 750; text-decoration: none; }
.attachment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.attachment-actions button { padding: 7px 9px; font-size: 12px; }
.empty-attachments { padding: 14px; color: var(--muted); border: 1px dashed #ccd8db; border-radius: 10px; text-align: center; }
.analysis-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.analysis-toolbar { grid-template-columns: minmax(260px, 1fr) auto; align-items: end; }
.analysis-summary {
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #eef4f4;
}
.analysis-summary p { margin: 4px 0; color: var(--muted); }
.analysis-issues { margin-bottom: 12px; }
.pdf-visual-workspace {
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #e9eeee;
}
.pdf-viewer-toolbar {
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 10px 12px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.pdf-viewer-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pdf-viewer-toolbar select { min-height: 36px; padding: 6px 8px; }
.pdf-viewer-toolbar button { min-width: 40px; padding: 8px 11px; }
.pdf-viewer-toolbar > span {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e4f0ef;
  font-size: 12px;
  font-weight: 800;
}
.pdf-edit-toolbar {
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 10px 12px;
  background: #f8fbfb;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.pdf-edit-toolbar label { min-width: 150px; }
.pdf-edit-toolbar .pdf-new-label { min-width: 230px; flex: 1 1 230px; }
.pdf-edit-toolbar input, .pdf-edit-toolbar select { min-height: 36px; padding: 6px 8px; }
.pdf-edit-toolbar button { min-height: 36px; padding: 8px 11px; }
.pdf-tool-group { display: flex; gap: 7px; }
.pdf-tool-group button.active { color: white; background: var(--brand); }
.pdf-edit-toolbar small {
  flex: 1 1 100%;
  color: var(--muted);
  line-height: 1.35;
}
.pdf-viewer-scroll {
  max-height: 720px;
  padding: 18px;
  overflow: auto;
  text-align: center;
}
.pdf-page-stage {
  position: relative;
  display: inline-block;
  min-width: 280px;
  min-height: 360px;
  line-height: 0;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 35, 40, .18);
}
.pdf-page-stage img {
  display: block;
  max-width: none;
  min-width: 280px;
  min-height: 360px;
}
.pdf-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  touch-action: none;
  user-select: none;
}
.pdf-overlay-layer.draw-mode { pointer-events: auto; cursor: crosshair; }
.pdf-overlay-layer.draw-mode .pdf-polygon-shape { pointer-events: none; }
.pdf-polygon,
.pdf-calibration,
.pdf-boundaries {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.pdf-boundary-line {
  fill: none;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.pdf-boundary-line.pending { stroke-dasharray: 9 7; }
.pdf-boundary-line.rejected { opacity: .25; stroke-dasharray: 5 8; }
.pdf-boundary-line.confirmed { stroke-width: 9; }
.pdf-polygon-shape {
  fill: rgba(20, 125, 121, .16);
  stroke: #147d79;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  pointer-events: auto;
  cursor: pointer;
}
.pdf-polygon.confirmed .pdf-polygon-shape { stroke-width: 5; }
.pdf-polygon.rejected .pdf-polygon-shape {
  opacity: .38;
  stroke-dasharray: 10 7;
}
.pdf-polygon.active .pdf-polygon-shape {
  filter: drop-shadow(0 0 5px rgba(217, 164, 65, .95));
}
.pdf-polygon-vertex {
  fill: var(--brand-dark);
  stroke: white;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  pointer-events: auto;
  cursor: move;
}
.pdf-polygon-label {
  fill: #0d5d59;
  paint-order: stroke;
  stroke: white;
  stroke-width: 4;
  stroke-linejoin: round;
  font: 800 15px/1.3 Inter, "Segoe UI", Arial, sans-serif;
  vector-effect: non-scaling-stroke;
}
.pdf-polygon.draft,
.pdf-calibration { pointer-events: none; }
.pdf-polygon-draft-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 8 6;
  vector-effect: non-scaling-stroke;
}
.pdf-calibration line {
  stroke: #6b3fa0;
  stroke-width: 4;
  stroke-dasharray: 10 6;
  vector-effect: non-scaling-stroke;
}
.pdf-calibration circle {
  fill: #6b3fa0;
  stroke: white;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.pdf-finding {
  position: absolute;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 2px solid;
  border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 1px 5px rgba(0, 0, 0, .24);
  pointer-events: auto;
  cursor: pointer;
}
.pdf-finding::after {
  content: attr(data-label);
  position: absolute;
  left: -2px;
  bottom: calc(100% + 3px);
  padding: 2px 5px;
  color: white;
  background: currentColor;
  border-radius: 4px;
  font: 700 10px/1.3 Inter, "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
}
.pdf-finding.zone { color: #147d79; border-color: #147d79; background: rgba(20, 125, 121, .14); }
.pdf-finding.dimension { color: #2864b1; border-color: #2864b1; background: rgba(40, 100, 177, .13); }
.pdf-finding.area { color: #9a6813; border-color: #c58a22; background: rgba(217, 164, 65, .16); }
.pdf-finding.device { color: #a43c35; border-color: #a43c35; background: rgba(164, 60, 53, .13); }
.pdf-finding.rejected { opacity: .38; border-style: dashed; }
.pdf-finding.confirmed { border-width: 3px; }
.pdf-finding.active {
  z-index: 3;
  outline: 4px solid rgba(217, 164, 65, .52);
  outline-offset: 2px;
}
.pdf-finding.geometry-dirty::before {
  content: "изменено";
  position: absolute;
  right: -2px;
  top: calc(100% + 3px);
  padding: 2px 5px;
  color: #4d3b15;
  background: #ffe3a3;
  border-radius: 4px;
  font: 700 9px/1.3 Inter, "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
}
.pdf-resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--brand-dark);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  pointer-events: auto;
}
.pdf-resize-handle.nw { left: -7px; top: -7px; cursor: nwse-resize; }
.pdf-resize-handle.ne { right: -7px; top: -7px; cursor: nesw-resize; }
.pdf-resize-handle.sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.pdf-resize-handle.se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.pdf-draw-preview {
  position: absolute;
  z-index: 5;
  border: 2px dashed var(--accent);
  background: rgba(217, 164, 65, .13);
  pointer-events: none;
}
.pdf-viewer-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, .94);
  font-size: 14px;
  line-height: 1.4;
}
.pdf-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
}
.pdf-legend span {
  padding: 3px 7px;
  color: white;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}
.pdf-legend .zone { background: #147d79; }
.pdf-legend .dimension { background: #2864b1; }
.pdf-legend .area { background: #b47b19; }
.pdf-legend .device { background: #a43c35; }
.pdf-legend small { margin-left: auto; }
.symbol-search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(120px, .7fr)) repeat(3, auto);
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #c9d5dd;
  border-radius: 10px;
  background: #f7fafb;
}
.symbol-search-panel > div { align-self: center; }
.symbol-search-panel small { display: block; color: #5b6670; margin-top: 3px; }
.pdf-finding.device[data-method="visual_template"] {
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.8);
}
.pdf-finding.device[data-method="confirmed_symbol_library"] {
  border-width: 3px;
  border-color: #6c3cb2;
  box-shadow: 0 0 0 2px rgba(255,255,255,.8);
}
.pdf-cutting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.pdf-cut-piece {
  stroke: #2864b1;
  stroke-width: 2;
  fill: rgba(40, 100, 177, .09);
  vector-effect: non-scaling-stroke;
}
.pdf-cut-piece.piece-1 { fill: rgba(20, 125, 121, .10); }
.pdf-cut-piece.piece-2 { fill: rgba(217, 164, 65, .11); }
.pdf-cut-piece.piece-3 { fill: rgba(164, 60, 53, .09); }
.pdf-cut-piece.piece-4 { fill: rgba(107, 63, 160, .09); }
.pdf-cut-piece.piece-5 { fill: rgba(101, 114, 122, .09); }
.pdf-cut-piece.rejected { opacity: .25; stroke-dasharray: 7 5; }
.pdf-cut-piece.confirmed { stroke-width: 3; }
.pdf-cut-seam {
  stroke: #d97706;
  stroke-width: 4;
  stroke-dasharray: 10 5;
  vector-effect: non-scaling-stroke;
}
.pdf-cut-seam.rejected { opacity: .3; }
.pdf-cut-seam.confirmed { stroke: #b45309; stroke-width: 5; }
.analysis-bulk-actions { display: flex; gap: 8px; margin: 12px 0; }
.analysis-items { display: grid; gap: 12px; margin: 12px 0 18px; }
.analysis-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.analysis-item.visual-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, .18);
}
.analysis-item-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.analysis-item-head small { display: block; margin-top: 3px; color: var(--muted); }
.analysis-item-head label { min-width: 190px; }
.analysis-evidence {
  margin: 10px 0;
  padding: 9px 11px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: #fffaf0;
}
.analysis-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.analysis-save-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.analysis-save-row p { flex: 1 1 280px; margin: 0; color: var(--muted); }
.mapping-workspace {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid var(--brand);
}
.mapping-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0; }
.mapping-warning {
  margin-top: 9px;
  padding: 8px 10px;
  color: #77591f;
  background: #fff7e5;
  border-radius: 8px;
  font-size: 12px;
}
.confirmed-download {
  padding: 10px 13px;
  color: var(--brand-dark);
  background: #dcebea;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
}
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 26px; }
.metrics article { padding: 18px; border-radius: 12px; background: #eef4f4; }
.metrics article.accent { color: white; background: var(--brand); }
.metrics small { display: block; margin-bottom: 6px; color: var(--muted); }
.metrics .accent small { color: #dcebea; }
.metrics strong { font-size: 24px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
h3 { margin: 0 0 10px; font-size: 16px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f5f8f8; }
th:last-child, td:last-child { text-align: right; }
tr:last-child td { border-bottom: 0; }
.issues { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.issue { padding: 11px 13px; border-radius: 9px; margin-top: 8px; background: #fff7e5; }
.issue.blocker { background: #fdeceb; color: #7c2f2a; }
.issue.review { background: #fff7e5; color: #77591f; }
.hidden { display: none !important; }
.error-banner { color: #8b2f2a; }
.subsection { margin: 24px 0 12px; color: var(--ink); }
textarea { resize: vertical; min-height: 82px; font: inherit; }
.document-fields { margin-top: 14px; }
.proposal-localization { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.proposal-localization summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.proposal-localization[open] summary { margin-bottom: 14px; }
.rtl-field { direction: rtl; text-align: right; }
.document-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.document-downloads > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfc;
}
.document-downloads h3 { margin: 0 0 6px; }
.document-downloads p { margin: 0 0 14px; color: var(--muted); }
.download-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
button:disabled { opacity: .55; cursor: wait; }
.topbar-access { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 42, 46, .82);
  backdrop-filter: blur(8px);
}
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; }
.auth-card h2, .auth-card p { margin: 0; }
.access-card { margin-bottom: 22px; }
.access-columns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; margin-top: 20px; }
.access-row { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; }
.access-row small { color: var(--muted); }
.access-row select { width: 100%; }

@media (max-width: 980px) {
  .grid.four, .grid.three, .metrics, .result-grid, .history-grid, .attachment-grid, .analysis-fields, .mapping-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid, .manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .topbar { padding-top: 36px; flex-direction: column; }
  main { margin-top: -30px; }
  .card { padding: 18px; }
  .grid.four, .grid.three, .grid.two, .metrics, .result-grid, .work-grid, .manual-grid, .document-downloads, .history-grid, .attachment-grid, .attachment-item, .analysis-fields, .analysis-toolbar, .mapping-fields { grid-template-columns: 1fr; }
  .wide { grid-column: span 1; }
  .actions, .row-title { flex-direction: column; align-items: stretch; }
  .row-title > button, .row-title > .result-actions { margin-left: 50px; }
  .check { padding-top: 0; }
  .history-actions { flex-direction: column; }
  .attachment-heading { flex-direction: column; }
  .analysis-item-head { flex-direction: column; }
  .analysis-item-head label { width: 100%; }
  .pdf-viewer-toolbar { align-items: stretch; flex-wrap: wrap; }
  .pdf-viewer-toolbar > span { margin-left: 0; }
  .pdf-edit-toolbar { align-items: stretch; }
  .pdf-tool-group { width: 100%; }
  .pdf-tool-group button { flex: 1; }
  .pdf-viewer-scroll { max-height: 560px; padding: 10px; }
  .pdf-legend small { width: 100%; margin-left: 0; }
  .symbol-search-panel { grid-template-columns: 1fr 1fr; }
  .symbol-search-panel > div { grid-column: 1 / -1; }
  .access-columns { grid-template-columns: 1fr; }
}

@media print {
  body { background: white; }
  .topbar { min-height: auto; padding: 24px; color: var(--ink); background: white; border-bottom: 2px solid var(--brand); }
  main { width: 100%; margin: 0; display: block; }
  main > .card:not(.result), .result-actions, .catalog-badge { display: none !important; }
  .result { display: block !important; border: 0; box-shadow: none; padding: 24px; }
  .metrics, .result-grid { break-inside: avoid; }
}
