/* /stamp/: карта технологичности и отчёт */
.flatmap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--bg, #f3f5f8); }
.flatmap[hidden] { display: none; }
.flatmap svg { flex: 1; width: 100%; min-height: 0; }
.flatmap .part { fill: #dfe6ef; stroke: #334155; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flatmap .hole-n { fill: #64748b; font-family: sans-serif; }
.flatmap .issue { cursor: pointer; }
.flatmap .issue circle { fill-opacity: .25; stroke-width: 2; vector-effect: non-scaling-stroke; }
.flatmap .issue line { stroke-width: 3; vector-effect: non-scaling-stroke; }
.flatmap .issue.error circle { fill: #dc2626; stroke: #dc2626; } .flatmap .issue.error line { stroke: #dc2626; }
.flatmap .issue.warn circle { fill: #f59e0b; stroke: #d97706; } .flatmap .issue.warn line { stroke: #d97706; }
.flatmap .issue.focus circle { fill-opacity: .6; stroke-width: 4; }
.maplegend { padding: 4px 12px 8px; }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.lg.err::before { background: #dc2626; } .lg.warn::before { background: #f59e0b; }
.stamp-report ol.issues { padding-left: 1.4em; }
.stamp-report ol.issues li { cursor: pointer; margin: 2px 0; }
.stamp-report ol.issues li.error { color: #b91c1c; } .stamp-report ol.issues li.warn { color: #92400e; }
.stamp-report ol.issues li.focus { font-weight: 600; text-decoration: underline; }
.stamp-report .ok { color: #15803d; }
@media (prefers-color-scheme: dark) {
  .flatmap { background: #0f172a; }
  .flatmap .part { fill: #1e293b; stroke: #cbd5e1; }
  .stamp-report ol.issues li.error { color: #f87171; } .stamp-report ol.issues li.warn { color: #fbbf24; }
}
.stage .viewswitch, .stage .vtbar, .stage .jobbox { z-index: 3; }
.flatmap { padding-top: 56px; }

/* этап 8: раскрой */
.flatmap .strip { fill: #f6f1e4; stroke: #6b5d3f; stroke-width: 0.35; vector-effect: non-scaling-stroke; }
.flatmap .dim { stroke: #1f6feb; stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.flatmap .dim.thin { stroke-dasharray: 3 2; }
.flatmap .dimtext { fill: #1f6feb; }
table.variants { width: 100%; border-collapse: collapse; }
table.variants th, table.variants td { padding: 4px 6px; border-bottom: 1px solid var(--line, #e3e6ea); text-align: right; }
table.variants th:first-child, table.variants td:first-child { text-align: left; }
table.variants tbody tr { cursor: pointer; }
table.variants tbody tr:hover { background: rgba(31, 111, 235, 0.06); }
table.variants tbody tr.chosen { background: rgba(31, 111, 235, 0.14); font-weight: 600; }

/* этап 9: центр давления */
.flatmap .cop circle { fill: rgba(220, 38, 38, 0.15); stroke: #b91c1c; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flatmap .cop line { stroke: #b91c1c; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
label.check { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; font-size: 0.95em; }
/* этап 11: шесть вкладок — в два ряда вместо прокрутки; широкие таблицы — с прокруткой */
.project .tabs { flex-wrap: wrap; overflow-x: visible; }
.project .tabs button { flex: 1 0 auto; }
.tablewrap { overflow-x: auto; max-width: 100%; }
.tablewrap table { min-width: 100%; }
