:root {
  --navy-950: #071a35;
  --navy-900: #0b2853;
  --navy-800: #123a72;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;
  --slate-950: #0f172a;
  --slate-900: #172033;
  --slate-700: #344054;
  --slate-600: #475467;
  --slate-500: #667085;
  --slate-400: #98a2b3;
  --slate-300: #d0d5dd;
  --slate-200: #e4e7ec;
  --slate-100: #f2f4f7;
  --slate-50: #f8fafc;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --red-700: #b42318;
  --red-600: #dc2626;
  --red-100: #fee4e2;
  --violet-700: #6d28d9;
  --violet-100: #ede9fe;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .18);
  --radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--slate-950);
  background: #f4f6f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f4f6f9; }
body { margin: 0; min-height: 100vh; background: #f4f6f9; color: var(--slate-950); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button { color: inherit; }
button, [data-route] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: 29px; line-height: 1.18; letter-spacing: -.03em; }
h2 { margin-bottom: 4px; font-size: 16px; line-height: 1.35; letter-spacing: -.012em; }
h3 { font-size: 14px; line-height: 1.4; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  display: flex;
  width: 244px;
  flex-direction: column;
  background: linear-gradient(180deg, #0b2a59 0%, #082248 100%);
  color: #fff;
  box-shadow: 5px 0 20px rgba(4, 20, 44, .08);
  transition: width .22s ease, transform .22s ease;
}
.sidebar.collapsed { width: 76px; }
.brand { display: flex; min-height: 76px; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #fff; color: var(--blue-600); box-shadow: 0 5px 18px rgba(0,0,0,.16); }
.brand-icon { width: 25px; height: 25px; fill: currentColor; stroke: currentColor; }
.brand-copy { min-width: 0; transition: opacity .15s ease; }
.brand-copy strong { display: block; font-size: 18px; letter-spacing: .02em; }
.brand-copy span { display: block; margin-top: 2px; color: #b7c8e4; font-size: 9px; line-height: 1.35; }
.sidebar.collapsed .brand-copy, .sidebar.collapsed .nav-item span, .sidebar.collapsed .role-copy, .sidebar.collapsed .collapse-button span { display: none; }
.sidebar.collapsed .brand { justify-content: center; padding-inline: 12px; }
.nav-list { display: flex; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; padding: 14px 10px; }
.nav-item { display: flex; min-height: 43px; width: 100%; align-items: center; gap: 12px; border: 0; border-radius: 9px; background: transparent; padding: 9px 12px; color: #d7e3f4; cursor: pointer; text-align: left; transition: background .15s ease, color .15s ease, transform .15s ease; }
.nav-item:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-item:active { transform: translateY(1px); }
.nav-item.active { background: linear-gradient(135deg, #1e5cc8, #2563eb); color: #fff; box-shadow: 0 7px 18px rgba(37,99,235,.24); }
.nav-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.sidebar.collapsed .nav-item { justify-content: center; padding-inline: 0; }
.sidebar-role { display: flex; align-items: center; gap: 10px; margin: 7px 10px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.06); }
.role-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); font-size: 11px; font-weight: 800; }
.role-copy span, .role-copy strong { display: block; }
.role-copy span { color: #aac0de; font-size: 10px; }
.role-copy strong { margin-top: 2px; font-size: 12px; }
.sidebar.collapsed .sidebar-role { justify-content: center; padding: 8px; }
.collapse-button { display: flex; min-height: 48px; align-items: center; gap: 10px; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: transparent; padding: 12px 19px; color: #c3d2e8; cursor: pointer; }
.sidebar.collapsed .collapse-button { justify-content: center; padding-inline: 0; }
.sidebar.collapsed .collapse-button .nav-icon { transform: rotate(180deg); }

.main-shell { min-height: 100vh; margin-left: 244px; transition: margin-left .22s ease; }
.main-shell.sidebar-collapsed { margin-left: 76px; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; height: 64px; align-items: center; gap: 16px; border-bottom: 1px solid var(--slate-200); background: rgba(255,255,255,.96); padding: 0 24px; backdrop-filter: blur(14px); }
.mobile-menu { display: none !important; }
.breadcrumbs { display: flex; min-width: 210px; align-items: center; gap: 7px; color: var(--slate-500); font-size: 12px; }
.breadcrumbs button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.breadcrumbs button:hover { color: var(--blue-700); }
.breadcrumbs strong { color: var(--slate-700); font-weight: 600; }
.crumb-icon { width: 13px; height: 13px; }
.global-search { display: flex; min-width: 260px; max-width: 470px; flex: 1; align-items: center; gap: 9px; border: 1px solid var(--slate-200); border-radius: 9px; background: var(--slate-50); padding: 8px 11px; color: var(--slate-500); cursor: pointer; text-align: left; }
.global-search span { flex: 1; }
kbd { border: 1px solid var(--slate-300); border-bottom-width: 2px; border-radius: 5px; background: #fff; padding: 1px 6px; color: var(--slate-500); font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.role-select { max-width: 190px; border: 1px solid var(--slate-200); border-radius: 8px; background: #fff; padding: 7px 30px 7px 10px; color: var(--slate-700); font-size: 12px; }
.icon-button { position: relative; display: inline-grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--slate-100); }
.icon-button.bordered { border: 1px solid var(--slate-200); background: #fff; }
.icon-button.small { width: 31px; height: 31px; border: 1px solid var(--slate-200); }
.icon-button.small .icon { width: 15px; height: 15px; }
.notification-dot { position: absolute; right: 5px; top: 3px; display: grid; width: 14px; height: 14px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--red-600); color: #fff; font-size: 7px; font-weight: 800; }
.user-chip { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--slate-200); padding-left: 12px; }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #143f7a; color: #fff; font-size: 10px; font-weight: 800; }
.user-chip strong, .user-chip span { display: block; white-space: nowrap; }
.user-chip strong { font-size: 11px; }
.user-chip div span { color: var(--slate-500); font-size: 9px; }

.app-main { min-height: calc(100vh - 64px); }
.page { width: 100%; max-width: 1700px; margin: 0 auto; padding: 22px 24px 46px; }
.passport-page { padding-top: 18px; }
.card { border: 1px solid #e1e6ee; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head.compact { margin-bottom: 13px; }
.section-head h2 { margin-bottom: 3px; }
.section-head p, .subtitle { margin: 0; color: var(--slate-500); font-size: 12px; line-height: 1.5; }
.eyebrow { color: var(--blue-700); font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }

.passport-header { margin-bottom: 14px; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.title-row p { margin: 0; color: var(--slate-600); font-size: 13px; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.btn { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--slate-300); border-radius: 8px; background: #fff; padding: 7px 12px; color: var(--slate-700); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { border-color: #aeb7c5; background: var(--slate-50); box-shadow: 0 2px 5px rgba(16,24,40,.07); }
.btn:active { transform: translateY(1px); }
.btn.primary { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.btn.primary:hover { background: var(--blue-700); }
.btn.light { border-color: rgba(255,255,255,.36); background: #fff; color: #173e79; }
.btn.compact { min-height: 31px; padding: 5px 9px; font-size: 11px; }
.btn .icon { width: 16px; height: 16px; }
.full-width { width: 100%; }
.more-wrap { position: relative; }
.more-menu { position: absolute; right: 0; top: calc(100% + 7px); z-index: 60; width: 245px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; padding: 6px; box-shadow: var(--shadow-md); }
.more-menu button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; border-radius: 7px; background: none; padding: 9px 10px; color: var(--slate-700); font-size: 12px; cursor: pointer; text-align: left; }
.more-menu button:hover { background: var(--slate-50); }
.more-menu .icon { width: 16px; height: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.meta-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; border: 1px solid var(--slate-200); border-radius: 7px; background: rgba(255,255,255,.7); padding: 5px 8px; color: var(--slate-600); font-size: 11px; }
button.meta-chip { cursor: pointer; }
.meta-chip .icon { width: 14px; height: 14px; }
.meta-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.role-banner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; padding: 10px 12px; color: #1e40af; }
.role-banner.warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.role-banner > .icon { margin-top: 1px; width: 17px; height: 17px; }
.role-banner strong, .role-banner span { display: block; }
.role-banner strong { font-size: 12px; }
.role-banner span { margin-top: 1px; font-size: 11px; line-height: 1.45; opacity: .86; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { position: relative; display: flex; min-height: 188px; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-top: 3px solid var(--tone, #98a2b3); border-radius: 11px; background: #fff; padding: 14px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi.warning { --tone: #f59e0b; }
.kpi.danger { --tone: #ef4444; }
.kpi.success { --tone: #22c55e; }
.kpi.blue { --tone: #3b82f6; }
.kpi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kpi-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--tone) 11%, white); color: var(--tone); }
.kpi-icon .icon { width: 17px; height: 17px; }
.kpi-eyebrow { color: var(--slate-500); font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.kpi-title { min-height: 38px; color: var(--slate-950); font-size: 14px; font-weight: 700; line-height: 1.35; }
.kpi-value { margin-top: 5px; color: var(--tone); font-size: 22px; font-weight: 760; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi p { margin: 6px 0 10px; color: var(--slate-500); font-size: 11px; line-height: 1.45; }
.kpi-action { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: auto; border: 0; background: none; padding: 0; color: var(--blue-700); font-size: 11px; font-weight: 650; cursor: pointer; }
.kpi-action .icon { width: 13px; height: 13px; }

.summary-card { margin-bottom: 12px; padding: 15px 17px; }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 2.2fr; gap: 0; border-top: 1px solid var(--slate-100); padding-top: 13px; }
.summary-item { display: flex; min-width: 0; align-items: center; gap: 9px; border-right: 1px solid var(--slate-200); padding: 2px 14px; }
.summary-item:first-child { padding-left: 0; }
.summary-item:last-child { border-right: 0; padding-right: 0; }
.summary-item-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }
.summary-item-icon .icon { width: 16px; height: 16px; }
.summary-item span, .summary-item strong, .summary-item small { display: block; }
.summary-item div > span { color: var(--slate-500); font-size: 10px; }
.summary-item strong { margin-top: 1px; font-size: 13px; font-variant-numeric: tabular-nums; }
.summary-item small { color: var(--slate-500); font-size: 9px; }
.summary-item.wide { align-items: flex-start; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 7px; font-size: 10px; font-weight: 650; line-height: 1.3; }
.tag.blue { background: #dbeafe; color: #1d4ed8; }
.tag.green { background: var(--green-100); color: var(--green-700); }
.tag.amber { background: var(--amber-100); color: var(--amber-700); }
.tag.red { background: var(--red-100); color: var(--red-700); }
.tag.neutral { background: var(--slate-100); color: var(--slate-600); }

.passport-tabs { display: flex; min-height: 48px; overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 11px 11px 0 0; background: #fff; padding: 0 8px; box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.passport-tab { position: relative; display: inline-flex; min-width: max-content; align-items: center; gap: 7px; border: 0; background: none; padding: 0 13px; color: var(--slate-600); font-size: 11px; cursor: pointer; }
.passport-tab::after { position: absolute; right: 10px; bottom: 0; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; content: ""; }
.passport-tab:hover { color: var(--blue-700); }
.passport-tab.active { color: var(--blue-700); font-weight: 700; }
.passport-tab.active::after { background: var(--blue-600); }
.passport-tab .icon { width: 15px; height: 15px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 12px; align-items: start; }
.main-column { min-width: 0; }
.side-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.service-section { overflow: hidden; border-top-left-radius: 0; padding-top: 0; }
.service-head { margin: 0; padding: 17px 17px 12px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--slate-50); padding: 2px; }
.segmented button { min-height: 29px; border: 0; border-radius: 6px; background: transparent; padding: 4px 10px; color: var(--slate-600); font-size: 10px; cursor: pointer; }
.segmented button.active { background: #fff; color: var(--blue-700); font-weight: 700; box-shadow: var(--shadow-sm); }
.desktop-table { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.data-table th { border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); background: var(--slate-50); padding: 9px 10px; color: var(--slate-500); font-size: 9px; font-weight: 700; letter-spacing: .025em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { border-bottom: 1px solid #edf0f4; padding: 10px; color: var(--slate-700); font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfe; }
.service-table th:first-child { width: 20%; }
.service-table th:nth-child(4) { min-width: 210px; }
.service-cell { display: flex; min-width: 185px; align-items: center; gap: 9px; }
.service-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }
.service-icon .icon { width: 16px; height: 16px; }
.service-cell strong, .service-cell span, .table-sub { display: block; }
.service-cell strong { font-size: 11px; }
.service-cell div span, .table-sub { margin-top: 2px; color: var(--slate-500); font-size: 9px; }
.status-badge { display: inline-flex; min-height: 23px; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-badge.success { background: var(--green-100); color: var(--green-700); }
.status-badge.warning { background: var(--amber-100); color: var(--amber-700); }
.status-badge.danger { background: var(--red-100); color: var(--red-700); }
.status-badge.neutral { background: #e9edf2; color: var(--slate-600); }
.status-badge.blue { background: #dbeafe; color: var(--blue-700); }
.status-icon { width: 12px; height: 12px; }
.stage-badge { display: inline-flex; border-radius: 5px; padding: 3px 7px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.stage-badge.mvp { background: #dbeafe; color: #1d4ed8; }
.stage-badge.development { background: #ede9fe; color: #6d28d9; }
.norm-fact { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.norm-fact .icon { width: 12px; height: 12px; color: var(--slate-400); }
.norm-fact span { color: var(--slate-600); }
.norm-fact strong { color: var(--slate-950); }
.metric-scale { min-width: 160px; margin-top: 6px; }
.scale-track { position: relative; height: 5px; overflow: visible; border-radius: 999px; background: #e8edf3; }
.scale-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--blue-500); }
.scale-fill.normal { background: #16a34a; }
.scale-fill.deficit { background: #ef4444; }
.scale-norm { position: absolute; top: -3px; width: 2px; height: 11px; background: #0f172a; transform: translateX(-1px); }
.scale-target { position: absolute; top: -4px; height: 13px; border-left: 2px dashed #2563eb; transform: translateX(-1px); }
.scale-legend { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--slate-400); font-size: 7px; }
.scale-legend span:first-child { margin-right: auto; }
.scale-legend i { display: inline-block; width: 7px; height: 3px; margin-right: 2px; vertical-align: 1px; }
.norm-key { background: #0f172a; }
.fact-key { background: #16a34a; }
.target-key { border-top: 1px dashed #2563eb; }
.metric-empty { max-width: 200px; border-radius: 5px; background: var(--slate-100); padding: 6px 8px; color: var(--slate-500); font-size: 9px; }
.deficit-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.deficit-value.normal { color: var(--green-700); }
.deficit-value.deficit { color: var(--red-700); }
.deficit-value.no-data { color: var(--slate-500); font-weight: 500; }
.reserve-text { color: var(--green-700); font-size: 10px; font-weight: 650; }
.reserve-text.target { color: var(--blue-700); }
.data-table td small { display: block; margin-top: 3px; color: var(--slate-500); font-size: 8px; line-height: 1.4; }
.row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.link-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--blue-700); font-size: 10px; font-weight: 650; cursor: pointer; text-align: left; }
.link-button:hover { text-decoration: underline; }
.link-button .icon { width: 12px; height: 12px; }
.link-button.full { width: 100%; justify-content: space-between; margin-top: 13px; border-top: 1px solid var(--slate-100); padding-top: 11px; }
.mobile-service-list { display: none; }
.service-note { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--slate-200); background: #f8fafc; padding: 10px 14px; color: var(--slate-600); font-size: 10px; line-height: 1.5; }
.service-note .icon { width: 15px; height: 15px; color: var(--blue-700); }
.service-note strong, .service-note span { display: block; }
.service-note strong { color: var(--slate-900); }
.success-note { border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; color: #166534; }
.empty-inline { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px; border: 1px dashed var(--slate-300); border-radius: 8px; background: var(--slate-50); padding: 20px; color: var(--slate-500); font-size: 11px; }

.side-card { padding: 14px; }
.side-card .section-head { margin-bottom: 10px; }
.side-card h2 { font-size: 13px; }
.side-card h3 { margin: 12px 0; font-size: 13px; }
.side-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-list { display: grid; gap: 8px; }
.detail-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--slate-200); padding-bottom: 7px; }
.detail-list span { color: var(--slate-500); font-size: 9px; }
.detail-list strong { max-width: 155px; font-size: 10px; text-align: right; }
.project-separation { display: flex; gap: 6px; margin-top: 11px; border-radius: 7px; background: #eff6ff; padding: 8px; color: #1e40af; font-size: 9px; line-height: 1.45; }
.project-separation .icon { width: 13px; height: 13px; }
.quality-layout { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.donut { --donut-color: #2563eb; --donut-bg: #e8eff8; position: relative; display: grid; width: 82px; height: 82px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--donut-color) calc(var(--value) * 1%), var(--donut-bg) 0); }
.donut::after { position: absolute; inset: 8px; border-radius: 50%; background: #fff; content: ""; }
.donut > div { position: relative; z-index: 1; text-align: center; }
.donut strong, .donut span { display: block; }
.donut strong { font-size: 17px; line-height: 1; }
.donut span { margin-top: 3px; color: var(--slate-500); font-size: 7px; }
.donut.green { --donut-color: #22c55e; --donut-bg: #e4f5e8; }
.donut.amber { --donut-color: #f59e0b; --donut-bg: #fff3d9; }
.donut.blue { --donut-color: #2563eb; --donut-bg: #e8eff8; }
.quality-details { display: grid; flex: 1; gap: 7px; }
.quality-details > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--slate-200); padding-bottom: 5px; }
.quality-details span { color: var(--slate-500); font-size: 9px; }
.quality-details strong { font-size: 9px; }
.warning-text { color: var(--amber-700) !important; }
.danger-text { color: var(--red-700) !important; }
.success-text { color: var(--green-700) !important; }
.target-text { color: var(--blue-700) !important; }

.map-canvas { position: relative; min-height: 590px; overflow: hidden; border: 1px solid #d7dfda; border-radius: 12px; background: #edf4ee; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.map-canvas.compact { min-height: 210px; border-radius: 9px; }
.map-transform { position: absolute; inset: 0; transform: scale(var(--map-zoom,1)); transform-origin: center; transition: transform .2s ease; }
.map-background, .map-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-network-line { fill: none; stroke: #0891b2; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(8,145,178,.28)); }
.map-network-line.planned { stroke: #d97706; stroke-dasharray: 2.5 1.7; }
.marker { position: absolute; z-index: 8; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: transparent; padding: 0; cursor: pointer; transform: translate(-50%,-50%); transition: transform .16s ease, filter .16s ease; }
.marker:hover, .marker:focus-visible { z-index: 30; transform: translate(-50%,-50%) scale(1.14); }
.marker.selected { z-index: 32; filter: drop-shadow(0 0 8px rgba(37,99,235,.48)); }
.marker-body { display: grid; width: 29px; height: 29px; place-items: center; border: 3px solid var(--state-color,#64748b); border-radius: 50%; background: #fff; color: var(--type-color); box-shadow: 0 2px 7px rgba(15,23,42,.25); }
.marker.selected .marker-body { box-shadow: 0 0 0 4px rgba(37,99,235,.22), 0 3px 8px rgba(15,23,42,.28); }
.marker-icon { width: 15px; height: 15px; }
.status-active { --state-color: #10b981; }
.status-planned { --state-color: #f59e0b; }
.status-inactive { --state-color: #ef4444; }
.status-data-missing { --state-color: #64748b; }
.marker.status-planned .marker-body { border-style: dashed; }
.marker.status-inactive .marker-body { background: #fff7f7; }
.marker.status-data-missing .marker-body { background: #f8fafc; }
.marker-state { position: absolute; right: -2px; top: -2px; display: grid; width: 15px; height: 15px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; }
.marker-state.danger { background: var(--red-600); }
.marker-state.neutral { background: #64748b; }
.marker-state .icon { width: 8px; height: 8px; stroke-width: 3; }
.line-anchor { width: 28px; height: 28px; }
.line-anchor .marker-body { width: 24px; height: 24px; }
.line-anchor .marker-icon { width: 12px; height: 12px; }
.map-tooltip { position: absolute; left: 50%; top: calc(100% + 8px); z-index: 50; display: none; width: 220px; border: 1px solid var(--slate-200); border-radius: 8px; background: rgba(255,255,255,.98); padding: 8px 9px; color: var(--slate-700); box-shadow: var(--shadow-md); text-align: left; transform: translateX(-50%); pointer-events: none; }
.marker:hover .map-tooltip, .marker:focus-visible .map-tooltip { display: block; }
.map-tooltip strong, .map-tooltip small { display: block; }
.map-tooltip strong { font-size: 10px; }
.map-tooltip small { margin-top: 2px; color: var(--slate-500); font-size: 8px; }
.map-controls { position: absolute; right: 12px; top: 12px; z-index: 40; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.map-controls button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-bottom: 1px solid var(--slate-200); background: #fff; cursor: pointer; }
.map-controls button:last-child { border-bottom: 0; }
.map-controls button:hover { background: var(--slate-50); }
.map-controls .icon { width: 16px; height: 16px; }
.map-scale, .map-caption { position: absolute; z-index: 35; border: 1px solid var(--slate-200); border-radius: 6px; background: rgba(255,255,255,.94); padding: 4px 7px; color: var(--slate-600); font-size: 8px; box-shadow: var(--shadow-sm); }
.map-scale { left: 11px; top: 11px; }
.map-caption { left: 11px; bottom: 11px; }
.map-canvas.compact .marker { width: 28px; height: 28px; }
.map-canvas.compact .marker-body { width: 24px; height: 24px; border-width: 2px; }
.map-canvas.compact .marker-icon { width: 12px; height: 12px; }
.map-canvas.compact .marker-state { width: 13px; height: 13px; }
.map-canvas.compact .map-caption { font-size: 7px; }

.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-title p { color: var(--slate-500); }
.stat-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 16px; }
.stat-card > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--blue-50); color: var(--blue-700); }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--slate-500); font-size: 10px; }
.stat-card strong { margin-top: 2px; font-size: 20px; }
.registry-card { overflow: hidden; padding-top: 16px; }
.registry-card > .section-head { padding: 0 16px; }
.filterbar { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); background: var(--slate-50); padding: 10px 12px; }
.search-field { display: flex; min-width: 220px; flex: 1; align-items: center; gap: 8px; border: 1px solid var(--slate-300); border-radius: 8px; background: #fff; padding: 7px 9px; color: var(--slate-400); }
.search-field .icon { width: 15px; height: 15px; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--slate-900); font-size: 11px; }
.filterbar select { min-height: 35px; border: 1px solid var(--slate-300); border-radius: 8px; background: #fff; padding: 6px 28px 6px 9px; color: var(--slate-700); font-size: 11px; }
.result-count { border-radius: 999px; background: var(--slate-100); padding: 4px 9px; color: var(--slate-600); font-size: 10px; font-weight: 650; }
.registry-type-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.registry-type-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; padding: 12px; cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); }
.registry-type-card:hover, .registry-type-card.active { border-color: #93c5fd; background: #f8fbff; }
.registry-type-card > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--type-color) 10%, white); color: var(--type-color); }
.registry-type-card > div { min-width: 0; flex: 1; }
.registry-type-card strong, .registry-type-card small { display: block; }
.registry-type-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.registry-type-card small { margin-top: 2px; color: var(--slate-500); font-size: 9px; }
.registry-type-card > .icon { width: 14px; height: 14px; color: var(--slate-400); }
.type-label { display: inline-flex; align-items: center; gap: 5px; color: var(--type-color); font-weight: 650; white-space: nowrap; }
.type-label .icon { width: 14px; height: 14px; }
.clickable-row { cursor: pointer; }

.map-page-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 12px; }
.map-panel { display: flex; flex-direction: column; gap: 10px; }
.map-main { min-width: 0; }
.map-count { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--slate-500); font-size: 10px; }
.map-count strong { color: var(--slate-900); }
.map-count button { margin-left: auto; border: 0; background: none; color: var(--blue-700); cursor: pointer; font-size: 9px; }
.tiny-actions { display: flex; gap: 7px; }
.tiny-actions button { border: 0; background: none; color: var(--blue-700); font-size: 9px; cursor: pointer; }
.layer-list { display: grid; gap: 5px; }
.layer-list label { display: flex; align-items: center; gap: 9px; border-radius: 8px; padding: 6px 7px; cursor: pointer; }
.layer-list label:hover { background: var(--slate-50); }
.layer-list input { position: absolute; opacity: 0; pointer-events: none; }
.layer-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--type-color) 10%, white); color: var(--type-color); }
.layer-icon .icon { width: 15px; height: 15px; }
.layer-list label > span:nth-of-type(2) { flex: 1; }
.layer-list strong, .layer-list small { display: block; }
.layer-list strong { font-size: 10px; }
.layer-list small { color: var(--slate-500); font-size: 8px; }
.layer-list i { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--slate-300); transition: background .15s ease; }
.layer-list i::after { position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: transform .15s ease; }
.layer-list input:checked ~ i { background: var(--blue-600); }
.layer-list input:checked ~ i::after { transform: translateX(13px); }
.legend-card h2 { margin-bottom: 12px; }
.legend-group { display: grid; gap: 7px; margin-top: 12px; }
.legend-group h3 { margin: 0 0 2px; color: var(--slate-500); font-size: 9px; text-transform: uppercase; }
.legend-group > div { display: flex; align-items: center; gap: 8px; font-size: 9px; }
.legend-type { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #fff; color: var(--type-color); box-shadow: inset 0 0 0 2px var(--type-color); }
.legend-type .icon { width: 12px; height: 12px; }
.legend-ring { width: 23px; height: 23px; border: 3px solid var(--state-color); border-radius: 50%; background: #fff; }
.legend-ring.status-planned { border-style: dashed; }
.legend-note { display: flex; gap: 7px; margin-top: 13px; border-radius: 7px; background: #eff6ff; padding: 8px; color: #1e40af; font-size: 8px; line-height: 1.45; }
.legend-note .icon { width: 12px; height: 12px; }
.empty-map { display: grid; place-items: center; }

.two-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.section-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 12px; }
.span-2 { grid-column: span 1; }
.definition-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border: 1px solid var(--slate-200); border-radius: 9px; overflow: hidden; }
.definition-grid > div { border-bottom: 1px solid var(--slate-200); padding: 11px 12px; }
.definition-grid > div:nth-child(odd) { border-right: 1px solid var(--slate-200); }
.definition-grid > div:last-child, .definition-grid > div:nth-last-child(2) { border-bottom: 0; }
.definition-grid > .wide { grid-column: 1 / -1; border-right: 0 !important; }
.definition-grid dt { color: var(--slate-500); font-size: 10px; }
.definition-grid dd { margin: 3px 0 0; font-size: 12px; font-weight: 650; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px !important; word-break: break-all; }
.stat-tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.stat-tiles.six { grid-template-columns: repeat(6,minmax(0,1fr)); }
.stat-tiles > div { border: 1px solid var(--slate-200); border-radius: 8px; background: #fff; padding: 11px; }
.stat-tiles span, .stat-tiles strong { display: block; }
.stat-tiles span { color: var(--slate-500); font-size: 9px; }
.stat-tiles strong { margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.status-list { display: grid; gap: 0; margin-top: 12px; border: 1px solid var(--slate-200); border-radius: 8px; overflow: hidden; }
.status-list > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--slate-200); padding: 9px 11px; }
.status-list > div:last-child { border-bottom: 0; }
.status-list span { color: var(--slate-500); font-size: 10px; }
.status-list strong { font-size: 10px; }
.fixed-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.norm-clarifier { border: 1px solid #bfdbfe; border-radius: 9px; background: #f8fbff; padding: 12px; }
.clarifier-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; border-bottom: 1px dashed #c7d7ed; padding: 8px 0; }
.clarifier-row:first-child { padding-top: 0; }
.clarifier-row span { color: var(--slate-500); font-size: 10px; }
.clarifier-row strong { font-size: 12px; }
.norm-clarifier p { margin: 9px 0 0; color: #31598d; font-size: 9px; line-height: 1.5; }
.operator-list { display: grid; gap: 8px; margin: 12px 0; }
.operator-list > div { display: flex; align-items: center; gap: 8px; border: 1px solid var(--slate-200); border-radius: 8px; padding: 9px; }
.operator-list .icon { color: var(--blue-700); }
.operator-list strong, .operator-list span { display: block; }
.operator-list strong { font-size: 10px; }
.operator-list span { color: var(--slate-500); font-size: 8px; }
.large-metric { margin: 14px 0; font-size: 36px; font-weight: 750; line-height: 1; }
.large-metric span { color: var(--slate-500); font-size: 12px; font-weight: 500; }
.risk-card { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; border-radius: 8px; padding: 10px; }
.risk-card.critical { border: 1px solid #fecaca; background: #fff7f7; color: #991b1b; }
.risk-card.medium { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
.risk-card .icon { width: 17px; height: 17px; }
.risk-card strong, .risk-card span { display: block; }
.risk-card strong { font-size: 10px; }
.risk-card span { margin-top: 2px; font-size: 9px; line-height: 1.4; }
.development-card > div { display: flex; align-items: center; gap: 9px; }
.development-card h2 { flex: 1; margin: 0; }
.development-card p { margin: 11px 0 0; color: var(--slate-500); font-size: 10px; }
.development-icon { width: 24px; height: 24px; color: var(--violet-700); }

.action-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.action-card { border: 1px solid var(--slate-200); border-top: 3px solid #3b82f6; border-radius: 9px; padding: 13px; }
.action-card.danger { border-top-color: #ef4444; }
.action-card.warning { border-top-color: #f59e0b; }
.action-card h3 { min-height: 39px; margin: 10px 0; font-size: 13px; }
.action-card dl { display: grid; gap: 6px; margin: 0; }
.action-card dl > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--slate-200); padding-top: 6px; }
.action-card dt { color: var(--slate-500); font-size: 9px; }
.action-card dd { margin: 0; font-size: 9px; font-weight: 650; text-align: right; }
.project-title { margin: 4px 0 14px; font-size: 16px; }
.timeline { display: grid; gap: 0; margin-top: 17px; }
.timeline > div { position: relative; display: flex; gap: 10px; padding-bottom: 14px; }
.timeline > div::before { position: absolute; left: 6px; top: 13px; bottom: 0; width: 1px; background: var(--slate-200); content: ""; }
.timeline > div:last-child::before { display: none; }
.timeline > div > span { position: relative; z-index: 1; width: 13px; height: 13px; border: 2px solid var(--slate-300); border-radius: 50%; background: #fff; }
.timeline > div.done > span { border-color: var(--green-600); background: var(--green-600); box-shadow: inset 0 0 0 2px #fff; }
.timeline strong, .timeline small { display: block; }
.timeline strong { font-size: 10px; }
.timeline small { color: var(--slate-500); font-size: 8px; }
.range-label { display: flex; justify-content: space-between; gap: 10px; color: var(--slate-500); font-size: 10px; }
.range-label strong { color: var(--slate-950); }
.scenario-range { width: 100%; margin: 17px 0; accent-color: var(--blue-600); }
.scenario-effect { display: flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid var(--slate-200); border-radius: 9px; background: var(--slate-50); padding: 18px; }
.scenario-effect > div:last-child { display: grid; gap: 4px; }
.scenario-effect span, .scenario-effect strong { display: block; }
.scenario-effect span { color: var(--slate-500); font-size: 9px; }
.scenario-effect strong { margin-bottom: 8px; font-size: 14px; }

.analytics-bars { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.analytics-bars > div > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--slate-100); }
.progress span { display: block; height: 100%; border-radius: inherit; }
.progress .success { background: #22c55e; }
.progress .danger { background: #ef4444; }
.progress .warning { background: #f59e0b; }
.progress .blue { background: #3b82f6; }
.progress .neutral { background: #94a3b8; }
.analytics-bars .progress { margin-top: 7px; }
.center-donut { display: grid; place-items: center; margin: 18px 0; }
.center-text { margin: 0; color: var(--slate-500); font-size: 10px; text-align: center; }
.comparison-chart { margin-top: 8px; }
.chart-axis { display: grid; grid-template-columns: repeat(5,1fr); margin-left: 165px; color: var(--slate-400); font-size: 8px; }
.chart-axis span:last-child { text-align: right; }
.chart-row { display: grid; grid-template-columns: 150px 1fr 55px; align-items: center; gap: 14px; margin-top: 13px; }
.chart-row > span { color: var(--slate-600); font-size: 10px; }
.chart-row > div { height: 13px; border-radius: 999px; background: repeating-linear-gradient(to right,#eef2f6 0,#eef2f6 calc(25% - 1px),#dfe5ec calc(25% - 1px),#dfe5ec 25%); }
.chart-row i { display: block; height: 100%; border-radius: 999px; }
.chart-row i.success { background: #22c55e; }
.chart-row i.blue { background: #3b82f6; }
.chart-row i.target { border: 2px dashed #2563eb; background: rgba(37,99,235,.07); }
.chart-row strong { font-size: 11px; }
.coverage-cell { display: flex; min-width: 120px; align-items: center; gap: 8px; }
.coverage-cell .progress { flex: 1; }
.issue-list { display: grid; gap: 9px; margin-top: 13px; }
.issue { display: flex; gap: 9px; border-radius: 8px; padding: 10px; }
.issue.warning { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
.issue strong, .issue span { display: block; }
.issue strong { font-size: 10px; }
.issue span { margin-top: 2px; font-size: 8px; }
.check-list { display: grid; gap: 8px; margin-top: 13px; }
.check-list > div { display: flex; align-items: center; gap: 7px; color: var(--slate-700); font-size: 10px; }
.check-list .icon { width: 15px; height: 15px; color: var(--green-600); }
.event-timeline { display: grid; gap: 0; }
.event-timeline > div { position: relative; display: grid; grid-template-columns: 18px 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
.event-dot { width: 10px; height: 10px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 2px #bfdbfe; }
.event-dot.danger { background: var(--red-600); box-shadow: 0 0 0 2px #fecaca; }
.event-timeline time { color: var(--slate-500); font-size: 9px; }
.event-timeline strong, .event-timeline small { display: block; }
.event-timeline strong { font-size: 10px; }
.event-timeline small { margin-top: 2px; color: var(--slate-500); font-size: 8px; }

.states-layout { display: grid; grid-template-columns: minmax(300px,.8fr) 1.2fr; gap: 16px; }
.states-list { display: grid; gap: 6px; }
.states-list button { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--slate-200); border-radius: 8px; background: #fff; padding: 10px; cursor: pointer; text-align: left; }
.states-list button:hover, .states-list button.active { border-color: #93c5fd; background: #f8fbff; }
.states-list button > .icon:first-child { width: 16px; height: 16px; color: var(--blue-700); }
.states-list button > .icon:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--slate-400); }
.states-list strong, .states-list small { display: block; }
.states-list strong { font-size: 10px; }
.states-list small { margin-top: 2px; color: var(--slate-500); font-size: 8px; line-height: 1.4; }
.state-preview { display: grid; place-items: center; min-height: 480px; border: 1px dashed var(--slate-300); border-radius: 10px; background: var(--slate-50); padding: 24px; }
.state-code { border-radius: 999px; background: var(--slate-100); padding: 4px 8px; color: var(--slate-500); font-size: 9px; }

.empty-state { display: flex; min-height: 420px; max-width: 720px; flex-direction: column; align-items: center; justify-content: center; margin: 30px auto; border: 1px solid var(--slate-200); border-radius: 13px; background: #fff; padding: 44px; text-align: center; box-shadow: var(--shadow-sm); }
.empty-state.compact { min-height: 240px; margin: 18px; padding: 26px; }
.empty-state.danger { border-color: #fecaca; background: #fffafa; }
.empty-state.warning { border-color: #fde68a; background: #fffdf5; }
.empty-state.neutral { border-color: var(--slate-300); background: #fafbfc; }
.empty-icon { width: 42px; height: 42px; margin-bottom: 14px; color: var(--blue-700); }
.empty-state.danger .empty-icon { color: var(--red-600); }
.empty-state.warning .empty-icon { color: var(--amber-600); }
.empty-state h1, .empty-state h2, .empty-state h3 { margin: 5px 0; }
.empty-state p { max-width: 520px; margin: 4px 0 18px; color: var(--slate-500); font-size: 12px; line-height: 1.6; }
.empty-state .link-button { margin-top: 12px; }

.home-hero { display: grid; grid-template-columns: 1.4fr .6fr; min-height: 340px; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 76% 40%,rgba(62,147,255,.42),transparent 26%),linear-gradient(135deg,#071c3a,#0e3974 62%,#1d5bd1); padding: 42px; color: #fff; box-shadow: var(--shadow-md); }
.home-hero .eyebrow { color: #bfdbfe; }
.home-hero h1 { max-width: 700px; margin-top: 15px; font-size: 39px; }
.home-hero p { max-width: 700px; color: #d5e4f8; font-size: 14px; line-height: 1.7; }
.hero-graphic { display: flex; align-items: center; justify-content: center; gap: 22px; }
.hero-graphic > .icon { width: 95px; height: 95px; color: #93c5fd; opacity: .9; }
.home-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.home-links button { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; text-align: left; }
.home-links button:hover { border-color: #93c5fd; transform: translateY(-1px); }
.home-links button > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: var(--blue-50); color: var(--blue-700); }
.home-links button > div { min-width: 0; flex: 1; }
.home-links strong, .home-links small { display: block; }
.home-links strong { font-size: 11px; }
.home-links small { margin-top: 2px; color: var(--slate-500); font-size: 9px; }
.home-links button > .icon { width: 14px; height: 14px; color: var(--slate-400); }

.drawer-backdrop, .modal-backdrop, .mobile-backdrop { position: fixed; inset: 0; z-index: 90; border: 0; background: rgba(15,23,42,.34); backdrop-filter: blur(1px); }
.drawer { position: fixed; right: 0; top: 0; z-index: 100; width: min(430px,100vw); height: 100vh; overflow-y: auto; border-left: 1px solid var(--slate-200); background: #fff; padding: 20px; box-shadow: var(--shadow-lg); animation: drawerIn .18s ease-out; }
@keyframes drawerIn { from { transform: translateX(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.drawer-head { display: grid; grid-template-columns: 42px 1fr 36px; align-items: start; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid var(--slate-200); }
.drawer-title-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: color-mix(in srgb,var(--type-color) 10%,white); color: var(--type-color); }
.drawer-title-icon.blue { --type-color: #2563eb; }
.drawer-head span, .drawer-head small { display: block; color: var(--slate-500); font-size: 9px; }
.drawer-head h2 { margin: 2px 0; font-size: 16px; }
.drawer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.details { display: grid; gap: 0; margin: 0; border: 1px solid var(--slate-200); border-radius: 9px; overflow: hidden; }
.details > div { display: grid; grid-template-columns: 135px 1fr; gap: 10px; border-bottom: 1px solid var(--slate-200); padding: 10px 11px; }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--slate-500); font-size: 10px; }
.details dd { margin: 0; font-size: 10px; font-weight: 650; word-break: break-word; }
.formula { border-radius: 5px; background: var(--slate-100); padding: 5px; font-family: ui-monospace,monospace; }
.evidence-box { display: flex; gap: 9px; margin-top: 14px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; padding: 10px; color: #1e40af; }
.evidence-box .icon { width: 17px; height: 17px; }
.evidence-box strong, .evidence-box span { display: block; }
.evidence-box strong { font-size: 10px; }
.evidence-box span { margin-top: 2px; font-size: 8px; }
.drawer-actions { display: flex; gap: 8px; margin-top: 16px; }

.search-modal { position: fixed; left: 50%; top: 92px; z-index: 110; width: min(600px,calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--slate-200); border-radius: 13px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(-50%); }
.search-modal-head { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--slate-200); padding: 12px; }
.search-modal-head input { flex: 1; border: 0; outline: 0; font-size: 13px; }
.search-results { max-height: 420px; overflow-y: auto; padding: 7px; }
.search-results button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: none; padding: 10px; cursor: pointer; text-align: left; }
.search-results button:hover { background: var(--slate-50); }
.search-results button > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); }
.search-results button strong { flex: 1; font-size: 11px; }
.search-results button > .icon { width: 14px; height: 14px; color: var(--slate-400); }
.search-footer { display: flex; gap: 16px; border-top: 1px solid var(--slate-200); background: var(--slate-50); padding: 8px 12px; color: var(--slate-500); font-size: 8px; }
.toast { position: fixed; right: 22px; bottom: 24px; z-index: 140; display: flex; align-items: center; gap: 8px; max-width: 380px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; padding: 11px 13px; color: #166534; box-shadow: var(--shadow-md); font-size: 11px; font-weight: 650; }
.toast .icon { width: 15px; height: 15px; }
.mock-banner { position: fixed; right: 12px; bottom: 8px; z-index: 45; border-radius: 999px; background: rgba(15,23,42,.78); padding: 3px 8px; color: #fff; font-size: 7px; pointer-events: none; }

@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .kpi { min-height: 175px; }
  .summary-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .summary-item.wide { grid-column: 1 / -1; border-top: 1px solid var(--slate-200); border-right: 0; margin-top: 10px; padding: 10px 0 0; }
  .content-layout { grid-template-columns: minmax(0,1fr) 270px; }
  .registry-type-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .user-chip div { display: none; }
}

@media (max-width: 1050px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); width: 244px; }
  .sidebar.mobile-open .brand-copy, .sidebar.mobile-open .nav-item span, .sidebar.mobile-open .role-copy, .sidebar.mobile-open .collapse-button span { display: block; }
  .main-shell, .main-shell.sidebar-collapsed { margin-left: 0; }
  .mobile-menu { display: inline-grid !important; }
  .mobile-backdrop { z-index: 65; }
  .global-search { min-width: 190px; }
  .content-layout { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .map-page-layout { grid-template-columns: 260px minmax(0,1fr); }
  .stat-tiles.six { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  body { font-size: 13px; }
  .topbar { height: 58px; padding: 0 12px; }
  .breadcrumbs, .role-select, .user-chip { display: none; }
  .global-search { min-width: 0; max-width: none; }
  .global-search kbd { display: none; }
  .page { padding: 15px 12px 38px; }
  h1 { font-size: 24px; }
  .title-row { flex-direction: column; gap: 13px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .header-actions .btn { flex: 1; }
  .meta-row { flex-direction: column; align-items: stretch; }
  .meta-chip { width: 100%; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { min-height: 160px; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .summary-item, .summary-item:first-child { border: 1px solid var(--slate-200); border-radius: 8px; padding: 9px; }
  .summary-item.wide { grid-column: 1 / -1; margin: 0; padding: 9px; }
  .passport-tabs { border-radius: 10px; margin-bottom: 10px; }
  .side-column { grid-template-columns: 1fr; }
  .desktop-table { display: none; }
  .mobile-service-list { display: grid; gap: 9px; padding: 0 10px 10px; }
  .service-head { flex-direction: column; }
  .segmented { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .segmented button { flex: 1; white-space: nowrap; }
  .service-mobile { border: 1px solid var(--slate-200); border-radius: 9px; padding: 13px; }
  .mobile-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
  .mobile-card-head strong, .mobile-card-head span { display: block; }
  .mobile-card-head strong { font-size: 12px; }
  .mobile-card-head div span { color: var(--slate-500); font-size: 9px; }
  .mobile-nfd { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 11px 0; border-radius: 8px; background: var(--slate-50); padding: 10px; }
  .mobile-nfd span, .mobile-nfd strong { display: block; }
  .mobile-nfd span { color: var(--slate-500); font-size: 8px; }
  .mobile-nfd strong { margin-top: 2px; font-size: 10px; }
  .mobile-actions { display: flex; gap: 7px; margin-top: 12px; }
  .mobile-actions .btn { flex: 1; }
  .two-column, .section-grid, .fixed-layout, .states-layout { grid-template-columns: 1fr; }
  .stat-tiles, .stat-tiles.six { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid > div, .definition-grid > div:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--slate-200); }
  .definition-grid > div:last-child { border-bottom: 0; }
  .registry-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filterbar { flex-direction: column; align-items: stretch; }
  .filterbar .search-field { min-width: 0; }
  .map-page-layout { grid-template-columns: 1fr; }
  .map-panel { order: 2; }
  .map-main { order: 1; }
  .map-canvas { min-height: 500px; }
  .analytics-bars { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chart-axis { margin-left: 110px; }
  .chart-row { grid-template-columns: 96px 1fr 35px; gap: 8px; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; padding: 28px 22px; }
  .home-hero h1 { font-size: 30px; }
  .hero-graphic { display: none; }
  .home-links { grid-template-columns: 1fr; }
  .states-list { max-height: 340px; overflow-y: auto; }
  .state-preview { min-height: 350px; }
}

@media (max-width: 480px) {
  .global-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions .btn { min-width: calc(50% - 4px); }
  .header-actions .btn:nth-of-type(3) { display: none; }
  .summary-grid, .registry-type-grid, .stat-tiles, .stat-tiles.six, .analytics-bars { grid-template-columns: 1fr; }
  .mobile-nfd { grid-template-columns: 1fr 1fr; }
  .mobile-nfd > div:last-child { grid-column: 1 / -1; }
  .map-canvas { min-height: 430px; }
  .map-tooltip { width: 170px; }
  .details > div { grid-template-columns: 105px 1fr; }
  .drawer { padding: 15px; }
  .scenario-effect { gap: 13px; padding: 12px; }
  .mock-banner { display: none; }
}

@media print {
  .sidebar, .topbar, .header-actions, .passport-tabs, .mock-banner, .no-print, .role-banner, button { display: none !important; }
  .main-shell, .main-shell.sidebar-collapsed { margin-left: 0; }
  body { background: #fff; }
  .page { max-width: none; padding: 0; }
  .card, .kpi { break-inside: avoid; box-shadow: none; }
  .content-layout { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(3,1fr); }
  .desktop-table { display: block !important; }
  .mobile-service-list { display: none !important; }
}

/* ========================================================================== */
/* v1.2 — visual normalization, provenance-first infographics and map workspace */
/* ========================================================================== */

:root {
  --brand-950: #030914;
  --brand-900: #06142f;
  --brand-850: #08204a;
  --brand-800: #0a2d61;
  --surface-canvas: #f5f7fb;
  --surface-card: #ffffff;
  --surface-subtle: #f8fafc;
  --border-default: #dfe5ee;
  --border-strong: #cbd5e1;
  --text-primary: #0b1f3a;
  --text-secondary: #5f6f86;
  --focus-ring: rgba(37, 99, 235, .28);
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .03), 0 1px 3px rgba(15, 23, 42, .035);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, .10);
}

html, body { background: var(--surface-canvas); }
body {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "tnum";
}
button, input, select, a { font-size: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* App shell — compact rail by default, same navy vocabulary as auth */
.sidebar {
  width: 224px;
  background: linear-gradient(180deg, var(--brand-850) 0%, var(--brand-900) 58%, var(--brand-950) 100%);
  box-shadow: 8px 0 28px rgba(3, 9, 20, .08);
}
.sidebar.collapsed { width: 64px; }
.brand { min-height: 64px; padding: 11px 13px; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-copy strong { font-size: 17px; }
.brand-copy span { font-size: 9px; line-height: 1.25; }
.nav-list { gap: 3px; padding: 10px 8px; }
.nav-item { min-height: 40px; gap: 10px; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.nav-item.active { background: #1f5fc7; box-shadow: none; }
.sidebar-role { margin: 6px 8px 8px; padding: 8px; }
.role-avatar { width: 30px; height: 30px; border-radius: 8px; }
.role-copy span { font-size: 9px; }
.role-copy strong { font-size: 11px; }
.collapse-button { min-height: 42px; padding: 9px 15px; font-size: 12px; }
.main-shell { margin-left: 224px; }
.main-shell.sidebar-collapsed { margin-left: 64px; }
.topbar {
  height: 56px;
  gap: 12px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--border-default);
}
.breadcrumbs { min-width: 200px; font-size: 12px; }
.global-search { min-height: 36px; max-width: 520px; background: #f8fafc; padding: 7px 10px; }
.role-select { min-height: 34px; }
.user-chip strong { font-size: 11px; }
.user-chip span { font-size: 9px; }

/* Page rhythm and typography */
.page { max-width: 1760px; padding: 16px 18px 38px; }
.passport-header { margin-bottom: 10px; }
.title-row { align-items: center; }
h1 { margin-bottom: 3px; font-size: 28px; line-height: 1.22; letter-spacing: -.025em; }
h2 { font-size: 16px; line-height: 1.38; }
h3 { font-size: 14px; line-height: 1.42; }
.eyebrow { margin-bottom: 4px; color: #475569; font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.title-row p { margin-bottom: 0; color: var(--text-secondary); font-size: 13px; }
.header-actions { gap: 7px; }
.btn { min-height: 36px; border-color: var(--border-strong); border-radius: 8px; padding: 7px 11px; font-size: 12px; box-shadow: none; }
.btn:hover { border-color: #94a3b8; background: #f8fafc; box-shadow: none; }
.btn.primary { background: #2563eb; }
.btn.compact { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.icon-button.bordered { border-color: var(--border-strong); }
.meta-row { gap: 6px; margin-top: 9px; }
.meta-chip { min-height: 28px; border-color: var(--border-default); padding: 4px 7px; font-size: 11px; }
.card { border-color: var(--border-default); border-radius: 10px; box-shadow: var(--shadow-sm); }
.card-pad { padding: 16px; }
.section-head { gap: 14px; margin-bottom: 13px; }
.section-head p, .subtitle, .section-description { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.role-banner { margin-bottom: 10px; border-radius: 8px; padding: 9px 11px; }
.role-banner strong { font-size: 13px; }
.role-banner span { font-size: 12px; }
.tag { padding: 3px 7px; font-size: 10px; }

/* Local navigation */
.passport-tabs {
  min-height: 44px;
  margin-bottom: 10px;
  border-radius: 9px;
  padding: 0 5px;
  box-shadow: none;
}
.passport-tab { min-height: 42px; padding: 0 11px; font-size: 12px; }
.passport-tab::after { right: 9px; left: 9px; height: 2px; }

/* Decision ribbon — one causal sequence, not five equal KPI cards */
.decision-ribbon {
  display: grid;
  grid-template-columns: minmax(190px, 1.05fr) repeat(4, minmax(150px, 1fr)) minmax(168px, .88fr);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.decision-ribbon > * {
  position: relative;
  min-width: 0;
  min-height: 112px;
  border: 0;
  border-right: 1px solid #e7ebf1;
  background: transparent;
  padding: 14px 15px;
  text-align: left;
}
.decision-ribbon > *:last-child { border-right: 0; }
.decision-ribbon > button { cursor: pointer; transition: background .14s ease, box-shadow .14s ease; }
.decision-ribbon > button:hover { background: #f8fbff; box-shadow: inset 0 -2px #2563eb; }
.decision-ribbon small,
.decision-ribbon strong,
.decision-ribbon span,
.decision-ribbon b { display: block; }
.decision-ribbon small { color: #64748b; font-size: 10px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.decision-ribbon strong { margin-top: 8px; color: #0f172a; font-size: 14px; line-height: 1.35; }
.decision-ribbon span { margin-top: 5px; color: #64748b; font-size: 11px; line-height: 1.38; }
.decision-ribbon b { margin-top: 5px; color: #b45309; font-size: 22px; font-variant-numeric: tabular-nums; }
.decision-status { display: flex; align-items: center; gap: 12px; background: #fffbeb; }
.decision-status > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #fef3c7; color: #b45309; }
.decision-status > span .icon { width: 20px; height: 20px; }
.decision-ribbon > button.danger { box-shadow: inset 0 3px #ef4444; }
.decision-ribbon > button.warning { box-shadow: inset 0 3px #f59e0b; }
.decision-ribbon > button.action { background: #f5f9ff; box-shadow: inset 0 3px #2563eb; }
.decision-quality { background: #f8fafc; }
.decision-quality strong { color: #166534; font-size: 20px; font-variant-numeric: tabular-nums; }

/* Settlement summary */
.summary-card { margin-bottom: 10px; padding: 13px 15px; }
.summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) 2.1fr; padding-top: 11px; }
.summary-item { gap: 8px; padding: 2px 12px; }
.summary-item-icon { width: 29px; height: 29px; }
.summary-item div > span { font-size: 10px; }
.summary-item strong { font-size: 14px; }
.summary-item small { font-size: 10px; }

/* Overview layout */
.content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; }
.side-column { gap: 10px; }
.side-card { overflow: hidden; }
.side-card .section-head { padding-bottom: 0; }
.side-card h3 { line-height: 1.45; }

/* Service table and evidence-oriented infographic */
.service-section { overflow: hidden; }
.service-head { padding: 15px 15px 10px; }
.segmented button { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.service-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: #f8fafc;
  padding: 9px 12px;
}
.service-toolbar .search-field { min-width: 280px; flex: 1; }
.service-toolbar select,
.map-filter-grid select {
  min-height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  padding: 6px 28px 6px 9px;
  color: #334155;
  font-size: 12px;
}
.active-filter { border-color: #93c5fd !important; background: #eff6ff !important; color: #1d4ed8 !important; }
.result-count { margin-left: auto; color: #64748b; font-size: 11px; white-space: nowrap; }
.data-table { font-variant-numeric: tabular-nums; }
.data-table th {
  padding: 10px 11px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: none;
}
.data-table td { padding: 10px 11px; color: #334155; font-size: 13px; }
.data-table tbody tr { transition: background .12s ease; }
.service-table th:first-child { width: 23%; }
.service-table th:nth-child(4) { min-width: 205px; }
.service-row-button,
.registry-object-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.service-row-button:hover strong,
.registry-object-button:hover strong { color: #1d4ed8; }
.service-row-button > span:last-child,
.registry-object-button { min-width: 0; }
.service-row-button strong,
.service-row-button small,
.registry-object-button strong,
.registry-object-button span { display: block; }
.service-row-button strong,
.registry-object-button strong { overflow: hidden; color: #0f172a; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.service-row-button small,
.registry-object-button span { margin-top: 2px; overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.service-icon { width: 31px; height: 31px; border-radius: 8px; }
.status-badge { min-height: 24px; padding: 3px 8px; font-size: 10px; }
.stage-badge { padding: 3px 7px; font-size: 10px; }
.norm-fact { gap: 5px; font-size: 12px; }
.metric-scale { min-width: 168px; margin-top: 7px; }
.scale-track { height: 6px; }
.scale-legend { margin-top: 5px; font-size: 9px; }
.deficit-value { display: block; color: #0f172a; font-size: 13px; }
.target-text { display: block; margin-top: 3px; color: #1d4ed8; font-size: 11px; font-weight: 650; }
.trust-cell { min-width: 142px; }
.trust-cell > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.trust-cell strong { color: #0f172a; font-size: 12px; }
.trust-cell span { overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.trust-cell .progress { margin-top: 5px; }
.trust-cell small { display: block; max-width: 170px; margin-top: 4px; overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.service-note { gap: 8px; border-top-color: var(--border-default); padding: 10px 13px; color: #475569; font-size: 11px; line-height: 1.45; }
.service-note strong,
.service-note span { display: block; }
.service-note strong { color: #334155; }
.service-note > .icon { margin-top: 1px; }
.mobile-service-list { display: none; }

/* Quality and provenance */
.quality-dimensions { display: grid; gap: 10px; margin-top: 12px; }
.quality-dimensions > div > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.quality-dimensions span { color: #64748b; font-size: 11px; }
.quality-dimensions strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.data-boundary,
.project-separation,
.source-foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #526176;
  font-size: 11px;
  line-height: 1.42;
}
.data-boundary .icon,
.project-separation .icon { width: 15px; height: 15px; margin-top: 1px; color: #2563eb; }
.quality-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.quality-dimension { padding: 14px; }
.quality-dimension > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.quality-dimension span { color: #64748b; font-size: 11px; }
.quality-dimension strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.quality-dimension .progress { margin: 8px 0; }
.quality-dimension p { margin: 0; color: #64748b; font-size: 11px; line-height: 1.42; }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--border-default); border-radius: 9px; }
.pipeline > div { position: relative; min-height: 112px; border-right: 1px solid var(--border-default); padding: 13px; background: #fff; }
.pipeline > div:last-child { border-right: 0; }
.pipeline b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 11px; }
.pipeline strong,
.pipeline span { display: block; }
.pipeline strong { margin-top: 9px; font-size: 12px; }
.pipeline span { margin-top: 4px; color: #64748b; font-size: 10px; line-height: 1.35; }
.submissions-table td strong,
.submissions-table td small,
.submissions-table td code { display: block; }
.submissions-table td small { margin-top: 3px; color: #64748b; font-size: 10px; }
.submissions-table code { color: #334155; font-size: 10px; }
.source-list { display: grid; }
.source-list > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) 150px 92px; align-items: center; gap: 10px; border-top: 1px solid #edf1f5; padding: 10px 0; }
.source-list > div:first-child { border-top: 0; }
.source-status { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 999px; }
.source-status.actual { background: #dcfce7; color: #15803d; }
.source-status.partial { background: #fef3c7; color: #b45309; }
.source-status.missing { background: #fee2e2; color: #b91c1c; }
.source-status .icon { width: 14px; height: 14px; }
.source-list strong,
.source-list small { display: block; }
.source-list strong { font-size: 12px; }
.source-list small { margin-top: 2px; color: #64748b; font-size: 10px; }
.source-list time { color: #64748b; font-size: 10px; text-align: right; }
.coverage-cell { display: flex; align-items: center; gap: 8px; }
.coverage-cell .progress { flex: 1; }
.coverage-cell b { min-width: 32px; font-size: 10px; text-align: right; }
.source-aside { display: grid; align-content: start; gap: 10px; }
.contract-actions { display: grid; gap: 8px; margin-top: 12px; }
.contract-actions .btn { width: 100%; }

/* Technical resource cards */
.technical-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.technical-cards > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  border: 1px solid var(--border-default);
  border-radius: 9px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color .13s ease, background .13s ease, transform .13s ease;
}
.technical-cards > button:hover { border-color: #93c5fd; background: #f8fbff; transform: translateY(-1px); }
.technical-cards > button > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #eff6ff; color: #2563eb; }
.technical-cards small,
.technical-cards strong,
.technical-cards em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.technical-cards small { color: #64748b; font-size: 9px; }
.technical-cards strong { margin-top: 2px; color: #0f172a; font-size: 12px; }
.technical-cards em { margin-top: 3px; color: #64748b; font-size: 10px; font-style: normal; }
.stat-tiles > div { border-color: var(--border-default); background: #fdfefe; padding: 11px; }
.stat-tiles span { font-size: 10px; }
.stat-tiles strong { font-size: 14px; }

/* Registries */
.registry-type-grid { gap: 8px; margin-bottom: 10px; }
.registry-type-card { min-height: 76px; border-color: var(--border-default); padding: 11px; }
.filterbar { gap: 7px; padding: 9px 11px; }
.filterbar select { min-height: 34px; font-size: 12px; }
.registry-table .confidence-cell strong,
.registry-table .confidence-cell span { display: block; }
.confidence-cell strong { font-size: 12px; }
.confidence-cell span { margin-top: 2px; color: #64748b; font-size: 10px; }
.type-label { font-size: 11px; }

/* Map: full-height analytical workspace; icon type and state remain separate */
.map-workspace { max-width: none; padding-bottom: 14px; }
.map-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.map-toolbar h2 { margin-bottom: 2px; }
.map-toolbar p { margin: 0; color: #64748b; font-size: 12px; }
.map-page-layout { grid-template-columns: 252px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.map-panel { gap: 8px; min-height: calc(100dvh - 228px); }
.map-panel .card-pad { padding: 12px; }
.map-filter-grid { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 8px; }
.map-filter-grid select { width: 100%; }
.map-count { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; color: #64748b; font-size: 10px; }
.map-count strong { color: #0f172a; font-size: 12px; }
.map-count button { margin-left: auto; border: 0; background: transparent; color: #1d4ed8; font-size: 10px; cursor: pointer; }
.layer-list { display: grid; gap: 3px; }
.layer-list label { min-height: 39px; gap: 8px; border-radius: 7px; padding: 5px 6px; }
.layer-list label:hover { background: #f8fafc; }
.layer-list strong { font-size: 11px; }
.layer-list small { font-size: 9px; }
.layer-icon { width: 28px; height: 28px; border-radius: 7px; }
.map-legend-collapsed { overflow: hidden; }
.map-legend-collapsed summary { padding: 10px 12px; color: #334155; font-size: 12px; font-weight: 650; cursor: pointer; }
.map-legend-collapsed[open] summary { border-bottom: 1px solid var(--border-default); }
.map-legend-collapsed .legend-group,
.map-legend-collapsed .legend-note { margin: 0 12px 10px; }
.map-main { min-width: 0; }
.map-canvas {
  min-height: calc(100dvh - 228px);
  height: 100%;
  border-color: #cbd8ce;
  border-radius: 10px;
  background: #eef5ef;
  box-shadow: none;
}
.map-canvas.compact { min-height: 205px; height: 205px; }
.map-caption { background: rgba(255,255,255,.94); color: #475569; font-size: 9px; }
.map-scale { font-size: 9px; }
.map-controls button { width: 35px; height: 35px; }
.marker { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.marker-body { width: 29px; height: 29px; border: 2px solid #fff; background: var(--type-color); box-shadow: 0 2px 8px rgba(15, 23, 42, .22); }
.marker-icon { width: 15px; height: 15px; }
.marker::before { border-width: 2px; }
.marker.selected::after { inset: -5px; border: 3px solid #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.marker-state { width: 14px; height: 14px; }
.marker-state .icon { width: 9px; height: 9px; }
.map-tooltip { width: 210px; border-radius: 8px; padding: 8px 9px; font-size: 11px; box-shadow: var(--shadow-md); }
.map-tooltip small { margin-top: 2px; font-size: 9px; }
.map-network-line { stroke-width: 3; opacity: .82; }
.map-network-line.planned { stroke-dasharray: 7 5; opacity: .72; }
.empty-map { display: grid; place-items: center; }

/* Drawers */
.drawer { width: min(420px, 100vw); padding: 18px; }
.drawer-head h2 { font-size: 18px; }
.drawer-head small { font-size: 10px; }
.details > div { grid-template-columns: 142px minmax(0, 1fr); gap: 10px; }
.details dt { font-size: 10px; }
.details dd { font-size: 12px; line-height: 1.4; }
.evidence-box { border-radius: 8px; padding: 10px; }
.evidence-box strong,
.evidence-box span { display: block; }
.evidence-box strong { font-size: 12px; }
.evidence-box span { margin-top: 3px; color: #526176; font-size: 10px; }

/* Search, toast and mock disclosure */
.search-results button strong { font-size: 12px; }
.search-footer { font-size: 9px; }
.toast { font-size: 12px; }
.mock-banner { right: 10px; bottom: 7px; padding: 4px 8px; font-size: 9px; }

@media (max-width: 1380px) {
  .decision-ribbon { grid-template-columns: minmax(180px, 1.05fr) repeat(3, minmax(145px, 1fr)) minmax(160px, .9fr); }
  .decision-ribbon > button.action { display: none; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .summary-item.wide { grid-column: 1 / -1; border-top: 1px solid var(--border-default); border-right: 0; margin-top: 8px; padding: 10px 0 0; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline > div:nth-child(3) { border-right: 0; }
  .pipeline > div:nth-child(-n+3) { border-bottom: 1px solid var(--border-default); }
}

@media (max-width: 1120px) {
  .sidebar, .sidebar.collapsed { transform: translateX(-100%); }
  .sidebar.mobile-open { width: 224px; transform: translateX(0); }
  .sidebar.mobile-open .brand-copy, .sidebar.mobile-open .nav-item span, .sidebar.mobile-open .role-copy, .sidebar.mobile-open .collapse-button span { display: block; }
  .main-shell, .main-shell.sidebar-collapsed { margin-left: 0; }
  .mobile-menu { display: inline-grid !important; }
  .decision-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-ribbon > * { min-height: 102px; border-bottom: 1px solid #e7ebf1; }
  .decision-ribbon > *:nth-child(even) { border-right: 0; }
  .decision-ribbon > *:last-child { grid-column: 1 / -1; min-height: 82px; border-bottom: 0; }
  .decision-ribbon > button.action { display: block; }
  .content-layout { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-page-layout { grid-template-columns: 232px minmax(0, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 14px; }
  .topbar { height: 56px; padding: 0 10px; }
  .breadcrumbs, .role-select, .user-chip { display: none; }
  .page { padding: 13px 11px 34px; }
  h1 { font-size: 24px; }
  .title-row { align-items: flex-start; }
  .header-actions { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .header-actions .btn { flex: 0 0 auto; }
  .meta-row { display: grid; grid-template-columns: 1fr; }
  .meta-chip { width: 100%; }
  .decision-ribbon { grid-template-columns: 1fr; }
  .decision-ribbon > * { min-height: 86px; border-right: 0; border-bottom: 1px solid #e7ebf1; }
  .decision-ribbon > *:last-child { grid-column: auto; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .summary-item, .summary-item:first-child { border: 1px solid var(--border-default); border-radius: 8px; padding: 8px; }
  .summary-item.wide { grid-column: 1 / -1; margin: 0; padding: 8px; }
  .passport-tabs { border-radius: 9px; }
  .service-head { flex-direction: column; }
  .service-toolbar { flex-wrap: wrap; }
  .service-toolbar .search-field { min-width: 100%; }
  .service-toolbar select { flex: 1; }
  .desktop-table { display: none; }
  .mobile-service-list { display: grid; gap: 8px; padding: 10px; }
  .service-mobile { border: 1px solid var(--border-default); border-radius: 9px; background: #fff; padding: 12px; }
  .mobile-card-head { display: flex; justify-content: space-between; gap: 8px; }
  .mobile-card-head strong,
  .mobile-card-head span { display: block; }
  .mobile-card-head strong { font-size: 13px; }
  .mobile-card-head div span { margin-top: 2px; color: #64748b; font-size: 10px; }
  .mobile-status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .trust-pill { display: inline-flex; align-items: center; border-radius: 999px; background: #f1f5f9; padding: 3px 8px; color: #475569; font-size: 10px; font-weight: 650; }
  .mobile-nfd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0; border-radius: 8px; background: #f8fafc; padding: 9px; }
  .mobile-nfd span,
  .mobile-nfd strong { display: block; }
  .mobile-nfd span { color: #64748b; font-size: 9px; }
  .mobile-nfd strong { margin-top: 2px; font-size: 11px; }
  .mobile-source { margin: 9px 0 0; color: #64748b; font-size: 10px; }
  .mobile-actions { display: flex; gap: 7px; margin-top: 10px; }
  .mobile-actions .btn { flex: 1; }
  .side-column { grid-template-columns: 1fr; }
  .two-column, .section-grid, .fixed-layout, .states-layout { grid-template-columns: 1fr; }
  .technical-cards { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border-default); }
  .pipeline > div:last-child { border-bottom: 0; }
  .source-list > div { grid-template-columns: 28px minmax(0, 1fr); }
  .source-list .coverage-cell, .source-list time { grid-column: 2; text-align: left; }
  .map-workspace { padding-bottom: 12px; }
  .map-toolbar { flex-direction: column; }
  .map-page-layout { grid-template-columns: 1fr; }
  .map-panel { min-height: 0; }
  .map-main { order: -1; }
  .map-canvas { min-height: 520px; height: 520px; }
  .map-canvas.compact { min-height: 205px; height: 205px; }
  .map-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer { padding: 15px; }
}

@media (max-width: 500px) {
  .global-search span { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions .btn:nth-of-type(3) { display: none; }
  .summary-grid, .registry-type-grid, .stat-tiles, .stat-tiles.six { grid-template-columns: 1fr; }
  .mobile-nfd { grid-template-columns: 1fr 1fr; }
  .mobile-nfd > div:last-child { grid-column: 1 / -1; }
  .map-filter-grid, .layer-list { grid-template-columns: 1fr; }
  .map-canvas { min-height: 460px; height: 460px; }
  .decision-ribbon strong { font-size: 13px; }
  .details > div { grid-template-columns: 112px minmax(0, 1fr); }
}

@media print {
  .decision-ribbon { grid-template-columns: repeat(3, 1fr); }
  .decision-ribbon > * { min-height: auto; }
  .service-toolbar, .map-toolbar { display: none !important; }
}

/* v1.2.1 map symbol grammar and geographic context */
.settlement-label,
.boundary-label {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.settlement-label {
  left: 52%;
  top: 49%;
  display: grid;
  min-width: 92px;
  justify-items: center;
  border: 1px solid rgba(37, 99, 235, .20);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  padding: 5px 8px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
  color: #0f172a;
}
.settlement-label strong { font-size: 10px; }
.settlement-label small { margin-top: 1px; color: #64748b; font-size: 8px; }
.boundary-label {
  left: 17%;
  top: 14%;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  padding: 3px 6px;
  color: #607368;
  font-size: 8px;
}
.map-canvas.compact .settlement-label { min-width: 68px; padding: 3px 5px; }
.map-canvas.compact .settlement-label strong { font-size: 7px; }
.map-canvas.compact .settlement-label small,
.map-canvas.compact .boundary-label { display: none; }
.map-tooltip em { display: block; margin-top: 4px; color: #64748b; font-size: 9px; font-style: normal; }

.marker[data-map-type="base-station"] .marker-body { border-radius: 50%; }
.marker[data-map-type="access-network"] .marker-body { border-radius: 8px; }
.marker[data-map-type="fiber-line"] .marker-body { border-radius: 6px; transform: rotate(45deg); }
.marker[data-map-type="fiber-line"] .marker-body .marker-icon { transform: rotate(-45deg); }
.marker[data-map-type="wifi-access-point"] .marker-body { border-radius: 10px 10px 4px 4px; }
.marker[data-map-type="post-office"] .marker-body { border-radius: 7px; }
.marker[data-map-type="payphone"] .marker-body { border-radius: 50% 50% 50% 15%; transform: rotate(-45deg); }
.marker[data-map-type="payphone"] .marker-body .marker-icon { transform: rotate(45deg); }
.marker[data-map-type="szo"] .marker-body {
  border-radius: 4px;
  clip-path: polygon(50% 0, 95% 36%, 86% 100%, 14% 100%, 5% 36%);
}
.marker.status-active::before { border-color: #16a34a; }
.marker.status-planned::before { border-color: #f59e0b; border-style: dashed; }
.marker.status-inactive::before { border-color: #ef4444; }
.marker.status-data-missing::before { border-color: #64748b; border-style: dotted; }

@media (max-width: 820px) {
  .boundary-label { display: none; }
  .settlement-label { min-width: 78px; }
}


/* v1.3 — specialised SZO, trunk-line and federal MKD registry views */
.filterbar.dynamic { flex-wrap: wrap; align-items: stretch; }
.filterbar.dynamic .search-field { flex: 1 1 320px; min-width: 240px; }
.filterbar.dynamic select { flex: 0 1 210px; max-width: 280px; }
.registry-note { display: flex; align-items: flex-start; gap: 10px; margin: 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; padding: 11px 13px; color: #1e3a8a; font-size: 12px; line-height: 1.55; }
.registry-note > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.registry-note strong, .registry-note span { display: block; }
.registry-note span { margin-top: 2px; color: #334e7d; }
.registry-table-wide { min-width: 1180px; }
.mkd-table { min-width: 2050px; }
.mkd-table th:nth-child(1) { min-width: 210px; }
.mkd-table th:nth-child(2) { min-width: 150px; }
.mkd-table th:nth-child(3), .mkd-table th:nth-child(5) { min-width: 270px; }
.mkd-table th:nth-child(4) { min-width: 390px; }
.mkd-table th:nth-child(7), .mkd-table th:nth-child(8) { min-width: 170px; }
.break-code, .break-value { overflow-wrap: anywhere; word-break: break-word; }
.mkd-state { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mkd-state.good { background: #dcfce7; color: #166534; }
.mkd-state.bad { background: #fee2e2; color: #991b1b; }
.mkd-state.warn { background: #fef3c7; color: #92400e; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.btn.tiny { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.registry-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--slate-200); padding: 10px 14px; color: var(--slate-500); font-size: 12px; }
.registry-pagination > div { display: flex; align-items: center; gap: 8px; }
.registry-pagination button:disabled, .row-disabled button:disabled { opacity: .42; cursor: not-allowed; }
.row-disabled { opacity: .68; }
.row-disabled:hover { background: transparent !important; }
.rotate-180 { transform: rotate(180deg); }
.details .break-value { max-width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
@media (max-width: 900px) {
  .filterbar.dynamic select { flex: 1 1 100%; max-width: none; }
  .registry-pagination { align-items: flex-start; flex-direction: column; }
}


/* v1.3 — mobile settlement registry; passport entry remains registry-only */
.mobile-settlement-list { display: none; }
.mobile-settlement-card { display: grid; gap: 12px; border-top: 1px solid var(--slate-200); padding: 14px; background: #fff; }
.mobile-settlement-card:first-child { border-top: 0; }
.mobile-settlement-card.disabled { background: var(--slate-50); }
.mobile-settlement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-settlement-head > div { min-width: 0; }
.mobile-settlement-head strong { display: block; color: var(--slate-950); font-size: 15px; line-height: 1.35; }
.mobile-settlement-head span:not(.status-badge) { display: block; margin-top: 3px; color: var(--slate-500); font-size: 12px; line-height: 1.4; }
.mobile-settlement-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.mobile-settlement-metrics div { min-width: 0; }
.mobile-settlement-metrics dt { color: var(--slate-500); font-size: 11px; line-height: 1.35; }
.mobile-settlement-metrics dd { margin: 2px 0 0; color: var(--slate-900); font-size: 13px; font-weight: 700; line-height: 1.35; }
.mobile-unavailable { justify-self: start; }
@media (max-width: 820px) {
  .mobile-settlement-list { display: grid; }
}
@media print {
  .mobile-settlement-list { display: none !important; }
}


/* v1.4 — single-source passport navigation and accessibility */
.passport-tabs {
  position: sticky;
  top: 56px;
  z-index: 35;
  min-height: 46px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
}
.passport-tab {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.passport-tab:focus-visible,
.nav-item:focus-visible,
.clickable-row:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}
.nav-item { font-size: 14px; }
.sidebar-role { display: none !important; }
.clickable-row { cursor: pointer; }
@media (max-width: 820px) {
  .passport-tabs { top: 56px; }
}

/* v1.6 — exact auth v1.10.1 gateway and click-controlled handoff. */
html.cpuos-auth-active,
html.cpuos-auth-active body {
  overflow: hidden;
  background: #030914;
}

#app {
  min-height: 100vh;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition: opacity 760ms cubic-bezier(.22,1,.36,1), transform 920ms cubic-bezier(.22,1,.36,1), filter 860ms ease;
  will-change: opacity, transform, filter;
}

html[data-cpuos-auth-stage="locked"] #app,
html[data-cpuos-auth-stage="map"] #app,
html[data-cpuos-auth-stage="handoff"] #app {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(.985);
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

html[data-cpuos-auth-stage="revealing"] #app {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
  pointer-events: none;
}

.cpuos-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #030914;
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
  transition: opacity 820ms cubic-bezier(.4,0,.2,1), transform 980ms cubic-bezier(.22,1,.36,1), filter 760ms ease;
  will-change: opacity, transform, filter;
}

.cpuos-auth-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #030914;
  opacity: 0;
  transition: opacity 360ms ease;
}
.cpuos-auth-overlay.is-frame-ready .cpuos-auth-frame { opacity: 1; }

.cpuos-auth-frame-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: rgba(225,240,255,.78);
  background: radial-gradient(circle at 50% 48%, rgba(22,99,224,.18), transparent 34%), #030914;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 360ms ease;
}
.cpuos-auth-overlay.is-frame-ready .cpuos-auth-frame-loader { opacity: 0; }
.cpuos-auth-frame-loader__mark {
  display: block;
  width: 42px;
  height: 42px;
  margin: auto;
  border: 1px solid rgba(89,166,255,.32);
  border-top-color: rgba(93,211,255,.92);
  border-radius: 50%;
  animation: cpuos-auth-loader-spin 900ms linear infinite;
}

.cpuos-auth-handoff-veil {
  position: absolute;
  inset: -8%;
  opacity: 0;
  background: radial-gradient(ellipse 68% 66% at 58% 50%, rgba(20,101,220,.18), transparent 62%), linear-gradient(118deg, rgba(3,9,20,.12), rgba(8,32,68,.34));
  pointer-events: none;
  transition: opacity 520ms ease;
}
.cpuos-auth-overlay[data-auth-stage="handoff"] .cpuos-auth-handoff-veil,
.cpuos-auth-overlay[data-auth-stage="revealing"] .cpuos-auth-handoff-veil { opacity: 1; }
.cpuos-auth-overlay[data-auth-stage="revealing"] {
  opacity: 0;
  transform: translate3d(0,-5px,0) scale(1.018);
  filter: blur(2px);
  pointer-events: none;
}

@keyframes cpuos-auth-loader-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  #app,.cpuos-auth-overlay,.cpuos-auth-frame,.cpuos-auth-frame-loader,.cpuos-auth-handoff-veil { transition-duration: 1ms !important; }
  .cpuos-auth-frame-loader__mark { animation: none; }
}

@media print { .cpuos-auth-overlay { display: none !important; } }

/* v1.7 — Figma node 229:2856, settlement registry. */
.registry-figma-page {
  --registry-navy: #283b62;
  --registry-primary: #6c91bf;
  --registry-blue: #2563eb;
  --registry-border: #e5e5e5;
  min-height: calc(100vh - 48px);
  padding: 10px;
  background: #f3f6fb;
  color: #0a0a0a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.registry-figma-page *, .registry-figma-page *::before, .registry-figma-page *::after { box-sizing: border-box; }
.registry-figma-card {
  min-width: 0;
  min-height: calc(100vh - 68px);
  border: 1px solid var(--registry-border);
  border-radius: 12px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.registry-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.registry-page-header h1 { margin: 0; color: #0a0a0a; font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -.015em; }
.registry-page-header p { margin: 2px 0 0; color: #737373; font-size: 16px; line-height: 24px; }
.registry-header-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.registry-secondary-button, .registry-download-button, .registry-filter-button, .registry-more-button {
  display: inline-flex; height: 36px; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 0 10px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}
.registry-secondary-button { border: 1px solid var(--registry-border); background: #fff; color: #0a0a0a; font-size: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.registry-secondary-button:hover, .registry-filter-button:hover { border-color: #cbd5e1; background: #f8fafc; }
.registry-download-button { min-width: 122px; border: 1px solid transparent; background: var(--registry-primary); color: #fff; font-size: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.registry-download-button:hover, .registry-more-button:hover { background: #5c82b1; }
.registry-secondary-button svg, .registry-download-button svg, .registry-filter-button svg, .registry-more-button svg { width: 16px; height: 16px; flex: none; stroke-width: 1.8; }
.registry-toolbar { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.registry-global-search { position: relative; display: flex; min-width: 240px; min-height: 36px; height: 36px; flex: 1 0 36px; align-items: center; border: 1px solid var(--registry-border); border-radius: 8px; background: #fff; padding: 0 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.registry-global-search > svg { width: 16px; height: 16px; flex: none; color: #737373; }
.registry-global-search input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; background: transparent; padding: 0 8px; color: #0a0a0a; font: inherit; }
.registry-global-search input::placeholder { color: #a3a3a3; }
.registry-global-search button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #737373; cursor: pointer; }
.registry-global-search button:hover { background: #f5f5f5; }
.registry-global-search button svg { width: 14px; height: 14px; }
.registry-filter-strip { position: relative; display: flex; min-width: 0; min-height: 44px; align-items: center; gap: 8px; overflow: visible; flex-wrap: wrap; padding: 4px 2px; }
.registry-control-wrap { position: relative; flex: none; }
.registry-filter-button { position: relative; border: 1px solid var(--registry-border); background: #fff; color: #0a0a0a; font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.registry-filter-button > svg:last-child { width: 13px; height: 13px; margin-left: 1px; }
.registry-filter-button.active { border-color: #9cb5d3; background: #f4f8fc; color: var(--registry-navy); padding-right: 30px; }
.registry-filter-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; border-radius: 9px; background: var(--registry-navy); color: #fff; padding: 0 5px; font-size: 10px; font-weight: 600; }
.registry-filter-clear { position: absolute; z-index: 2; top: 7px; right: 6px; display: grid; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #64748b; cursor: pointer; }
.registry-filter-clear:hover { background: #e8eef5; color: #0f172a; }
.registry-filter-clear svg { width: 12px; height: 12px; }
.registry-more-button { border: 1px solid transparent; background: var(--registry-primary); color: #fff; font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.registry-popover { position: absolute; z-index: 90; top: calc(100% + 4px); left: 0; display: flex; width: 224px; flex-direction: column; overflow: hidden; border: 1px solid var(--registry-border); border-radius: 8px; background: #fff; box-shadow: 0 10px 18px -7px rgba(15, 23, 42, .24), 0 3px 6px rgba(15, 23, 42, .10); }
.registry-header-actions .registry-popover { right: 0; left: auto; }
.registry-more-popover { right: 0; left: auto; }
.registry-filter-popover { width: 230px; }
.registry-popover-search { display: flex; height: 40px; align-items: center; gap: 8px; border-bottom: 1px solid var(--registry-border); padding: 0 12px; }
.registry-popover-search svg { width: 16px; height: 16px; flex: none; color: #737373; }
.registry-popover-search input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; background: transparent; color: #0a0a0a; font: inherit; font-size: 14px; }
.registry-popover-search input::placeholder { color: #a3a3a3; }
.registry-popover-list { max-height: 276px; overflow-y: auto; padding: 4px; }
.registry-option-row { display: flex; min-height: 34px; align-items: center; gap: 8px; border-radius: 6px; padding: 5px 8px 5px 6px; cursor: pointer; }
.registry-option-row:hover, .registry-column-option:hover { background: #f5f7fa; }
.registry-option-row input, .registry-table-check input, .registry-column-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.registry-checkbox { display: inline-grid; width: 16px; height: 16px; flex: none; place-items: center; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: #fff; }
.registry-checkbox.checked { border-color: #2563eb; background: #2563eb; }
.registry-checkbox.checked.navy { border-color: var(--registry-navy); background: var(--registry-navy); }
.registry-checkbox svg { width: 12px; height: 12px; stroke-width: 2.4; }
.registry-option-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registry-option-count { color: #a3a3a3; font-family: "Courier New", monospace; font-size: 12px; }
.registry-popover-empty { padding: 18px 10px; color: #737373; text-align: center; }
.registry-popover-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--registry-border); padding: 5px 7px; }
.registry-reset-link, .registry-apply-link, .registry-reset-all { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 5px; background: transparent; padding: 6px 7px; font-size: 13px; cursor: pointer; }
.registry-reset-link { color: #e11d48; }
.registry-reset-link:disabled { color: #a3a3a3; cursor: default; }
.registry-reset-link svg, .registry-reset-all svg { width: 14px; height: 14px; }
.registry-apply-link { color: #2563eb; font-weight: 600; }
.registry-column-option { position: relative; display: flex; min-height: 34px; align-items: center; gap: 6px; border-radius: 5px; padding: 5px 8px 5px 5px; }
.registry-column-option > svg { width: 16px; height: 16px; flex: none; color: #38bdf8; cursor: grab; }
.registry-column-option > button { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; color: #0a0a0a; font: inherit; text-align: left; cursor: pointer; }
.registry-column-option.required { opacity: .75; }
.registry-column-option.required > svg { cursor: default; }
.registry-column-option b { margin-left: auto; color: #2563eb; font-size: 11px; }
.registry-option-divider { position: absolute; right: 4px; bottom: -4px; left: 4px; height: 1px; background: #e5e5e5; }
.registry-reset-all { width: calc(100% - 8px); justify-content: flex-start; margin: 0 4px 4px; border-top: 1px solid var(--registry-border); border-radius: 0; color: #e11d48; }
.registry-kpi-strip { display: flex; align-items: stretch; margin-top: 20px; overflow-x: auto; border: 1px solid var(--registry-border); border-radius: 8px; background: #fff; padding: 10px; }
.registry-kpi-item { position: relative; display: flex; min-width: 154px; flex: 1 0 154px; align-items: center; gap: 10px; padding: 0 16px; }
.registry-kpi-item:first-child { padding-left: 0; }
.registry-kpi-item:last-child { padding-right: 0; }
.registry-kpi-item:not(:last-child)::after { content: ""; position: absolute; top: 1px; right: 0; bottom: 1px; width: 1px; background: #ededed; }
.registry-kpi-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 6px; color: var(--registry-navy); }
.registry-kpi-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.registry-kpi-icon.blue { background: #9cb5d3; }
.registry-kpi-icon.green { background: #bbf7d0; color: #22c55e; }
.registry-kpi-icon.orange { background: #fed7aa; color: #fb923c; }
.registry-kpi-icon.rose { background: #fecdd3; color: #e11d48; }
.registry-kpi-icon.gray { background: #e5e7eb; color: #64748b; }
.registry-kpi-icon.mint { background: #dcfce7; color: #16a34a; }
.registry-kpi-icon.amber { background: #fef3c7; color: #eab308; }
.registry-kpi-icon.lime { background: #d9f99d; color: #65a30d; }
.registry-kpi-copy { display: flex; min-width: 0; flex-direction: column; }
.registry-kpi-copy small { color: #737373; font-size: 12px; font-weight: 400; line-height: 16px; white-space: nowrap; }
.registry-kpi-copy strong { color: var(--registry-navy); font-size: 24px; font-weight: 600; line-height: 28px; letter-spacing: .015em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.registry-kpi-trend { position: absolute; top: 0; right: 10px; display: inline-flex; align-items: center; gap: 2px; border-radius: 4px; padding: 1px 3px; font-size: 10px; font-weight: 500; }
.registry-kpi-trend svg { width: 12px; height: 12px; }
.registry-kpi-trend.up { background: #f0fdf4; color: #65a30d; }
.registry-kpi-trend.down { background: #fff1f2; color: #e11d48; }
.registry-update-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 28px; }
.registry-update-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.registry-update-row strong { font-size: 16px; font-weight: 600; line-height: 24px; }
.registry-update-row span { color: #737373; font-size: 14px; line-height: 20px; }
.registry-update-row time { color: #737373; font-style: italic; text-decoration: underline; text-decoration-color: #cbd5e1; text-underline-offset: 2px; }
.registry-period-tabs { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--registry-border); border-radius: 8px; background: #fff; }
.registry-period-tabs button { height: 36px; border: 0; border-right: 1px solid var(--registry-border); background: #fff; padding: 0 14px; color: #0a0a0a; font-size: 12px; cursor: pointer; }
.registry-period-tabs button:last-child { border-right: 0; }
.registry-period-tabs button:hover { background: #f5f5f5; }
.registry-period-tabs button.active { background: #f0f0f0; font-weight: 500; }
.registry-table-shell { margin-top: 14px; overflow: visible; border: 1px solid var(--registry-border); border-radius: 8px; background: #fff; }
.registry-table-scroll { width: 100%; overflow-x: auto; border-radius: 8px 8px 0 0; }
.registry-figma-table { width: 100%; min-width: 1290px; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.registry-figma-table th, .registry-figma-table td { border-bottom: 1px solid #eeeeee; padding: 0 12px; text-align: left; vertical-align: middle; white-space: nowrap; }
.registry-figma-table th { height: 40px; background: #fff; color: #0a0a0a; font-size: 14px; font-weight: 500; }
.registry-figma-table td { height: 49px; color: #262626; font-size: 13px; }
.registry-figma-table tbody tr { transition: background .12s ease, box-shadow .12s ease; }
.registry-figma-table tbody tr:hover { background: #f8fbff; }
.registry-figma-table tbody tr.selected { background: #eff6ff; box-shadow: inset 3px 0 #6c91bf; }
.registry-figma-table tbody tr.passport-available { cursor: pointer; }
.registry-figma-table tbody tr.passport-available:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.registry-select-column { width: 42px; min-width: 42px; padding-right: 4px !important; padding-left: 12px !important; }
.registry-table-check { display: inline-flex; align-items: center; cursor: pointer; }
.registry-sort-button { display: inline-flex; width: 100%; align-items: center; gap: 5px; border: 0; background: transparent; padding: 0; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
.registry-sort-button > svg { width: 13px; height: 13px; color: #a3a3a3; }
.registry-sort-button.active > svg { color: #2563eb; }
.registry-sort-neutral { position: relative; display: inline-block; width: 9px; height: 13px; color: #a3a3a3; }
.registry-sort-neutral svg { position: absolute; left: 0; width: 9px; height: 9px; }
.registry-sort-neutral svg:first-child { top: 0; }
.registry-sort-neutral svg:last-child { bottom: 0; }
.registry-column-name { min-width: 184px; }
.registry-column-type { min-width: 118px; }
.registry-column-region { min-width: 220px; }
.registry-column-district { min-width: 205px; }
.registry-column-population { min-width: 112px; }
.registry-column-broadband { min-width: 160px; }
.registry-column-mobile { min-width: 140px; }
.registry-column-operators { min-width: 106px; }
.registry-column-szo { min-width: 124px; }
.registry-column-status { min-width: 166px; }
.registry-column-fias { min-width: 300px; }
.registry-column-actions { min-width: 120px; }
.registry-name-cell { display: flex; align-items: center; gap: 8px; }
.registry-name-cell strong { overflow: hidden; max-width: 220px; color: #262626; font-weight: 500; text-overflow: ellipsis; }
.registry-passport-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.registry-type-pill { display: inline-flex; min-width: 34px; height: 20px; align-items: center; justify-content: center; border-radius: 5px; padding: 0 8px; color: #263238; font-size: 11px; font-weight: 500; line-height: 20px; text-transform: lowercase; }
.registry-type-pill.compact { min-width: 22px; width: 22px; padding: 0; text-transform: none; }
.registry-type-pill.city { background: #fdba74; }
.registry-type-pill.village { background: #bef264; }
.registry-type-pill.hamlet { background: #a5b4fc; color: #283b62; }
.registry-type-pill.settlement { background: #bae6fd; color: #075985; }
.registry-nowrap { display: inline-block; overflow: hidden; max-width: 230px; text-overflow: ellipsis; }
.registry-numeric { font-variant-numeric: tabular-nums; }
.registry-speed { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.registry-speed i { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.registry-speed.good i { background: #65a30d; }
.registry-speed.medium i { background: #fb923c; }
.registry-speed.low i { background: #f59e0b; }
.registry-speed.none i { background: #e11d48; }
.registry-mobile-pill, .registry-status-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.registry-mobile-pill { min-width: 28px; height: 20px; padding: 0 7px; }
.registry-mobile-pill.good { background: #a3e635; color: #365314; }
.registry-mobile-pill.medium { background: #facc15; color: #713f12; }
.registry-mobile-pill.low { background: #fb923c; color: #7c2d12; }
.registry-mobile-pill.none { background: #e11d48; color: #fff; }
.registry-status-pill { min-width: 58px; height: 22px; padding: 0 9px; }
.registry-status-pill.normal { background: #a3e635; color: #365314; }
.registry-status-pill.development { background: #fbbf24; color: #713f12; }
.registry-status-pill.deficit { background: #e11d48; color: #fff; }
.registry-status-pill.no-data { background: #d4d4d4; color: #404040; }
.registry-fias { display: inline-block; max-width: 280px; overflow: hidden; color: #475569; font-size: 11px; text-overflow: ellipsis; }
.registry-open-button { display: inline-flex; height: 28px; align-items: center; gap: 3px; border: 0; border-radius: 5px; background: transparent; padding: 0 7px; color: #2563eb; font-size: 12px; font-weight: 500; cursor: pointer; }
.registry-open-button:hover { background: #eff6ff; }
.registry-open-button:disabled { color: #a3a3a3; cursor: default; }
.registry-open-button svg { width: 13px; height: 13px; }
.registry-empty-state { display: grid; min-height: 310px; place-items: center; align-content: center; padding: 40px; color: #737373; text-align: center; }
.registry-empty-state > svg { width: 28px; height: 28px; margin-bottom: 10px; color: #9cb5d3; }
.registry-empty-state h2 { margin: 0; color: #262626; font-size: 16px; }
.registry-empty-state p { margin: 5px 0 14px; }
.registry-empty-state button { border: 0; border-radius: 7px; background: #6c91bf; padding: 8px 12px; color: #fff; cursor: pointer; }
.registry-mobile-list { display: none; }
.registry-table-footer { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 12px; }
.registry-selection-summary { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; color: #2563eb; font-size: 14px; cursor: pointer; }
.registry-selection-summary svg { width: 13px; height: 13px; }
.registry-footer-controls { display: flex; align-items: center; gap: 14px; }
.registry-footer-controls > label { display: flex; align-items: center; gap: 8px; color: #262626; font-size: 12px; white-space: nowrap; }
.registry-footer-controls select { width: 70px; height: 36px; border: 1px solid var(--registry-border); border-radius: 7px; background: #fff; padding: 0 8px; color: #262626; font-size: 12px; }
.registry-figma-page .registry-pagination { display: flex; align-items: center; gap: 4px; border: 0; padding: 0; color: #262626; font-size: 12px; }
.registry-figma-page .registry-pagination > button, .registry-page-fragment > button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid transparent; border-radius: 6px; background: #fff; color: #737373; cursor: pointer; }
.registry-figma-page .registry-pagination > button:hover, .registry-page-fragment > button:hover { background: #f5f5f5; }
.registry-figma-page .registry-pagination > button:disabled { opacity: .35; cursor: default; }
.registry-figma-page .registry-pagination svg { width: 15px; height: 15px; }
.registry-page-fragment { display: inline-flex; align-items: center; gap: 4px; }
.registry-page-fragment i { color: #a3a3a3; font-style: normal; }
.registry-page-fragment > button.active { border-color: #2563eb; color: #2563eb; font-weight: 600; }

@media (max-width: 1480px) {
  .registry-figma-card { padding: 24px; }
  .registry-toolbar { align-items: flex-start; flex-direction: column; }
  .registry-global-search { width: 100%; }
  .registry-filter-strip { width: 100%; }
  .registry-kpi-item { min-width: 144px; flex-basis: 144px; padding-inline: 12px; }
}
@media (max-width: 960px) {
  .registry-figma-page { padding: 8px; }
  .registry-figma-card { min-height: calc(100vh - 64px); padding: 18px; }
  .registry-page-header { align-items: stretch; flex-direction: column; }
  .registry-header-actions { justify-content: flex-end; }
  .registry-page-header h1 { font-size: 22px; }
  .registry-page-header p { font-size: 14px; }
  .registry-update-row { align-items: stretch; flex-direction: column; }
  .registry-period-tabs { align-self: flex-start; }
  .registry-table-footer { align-items: flex-start; flex-direction: column; }
  .registry-footer-controls { width: 100%; justify-content: space-between; }
}
@media (max-width: 720px) {
  .registry-figma-page { padding: 0; background: #fff; }
  .registry-figma-card { border: 0; border-radius: 0; padding: 16px; box-shadow: none; }
  .registry-page-header h1 { font-size: 20px; line-height: 28px; }
  .registry-header-actions { justify-content: stretch; }
  .registry-secondary-button, .registry-download-button { flex: 1; }
  .registry-toolbar { margin-top: 22px; }
  .registry-kpi-strip { margin-inline: -16px; border-right: 0; border-left: 0; border-radius: 0; }
  .registry-update-row { margin-top: 22px; }
  .registry-period-tabs { width: 100%; }
  .registry-period-tabs button { flex: 1; padding-inline: 7px; }
  .registry-table-scroll { display: none; }
  .registry-mobile-list { display: grid; gap: 10px; padding: 10px; background: #f8fafc; }
  .registry-mobile-list article { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 13px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
  .registry-mobile-list article.passport-available { border-color: #93c5fd; cursor: pointer; }
  .registry-mobile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .registry-mobile-list dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 13px 0 0; }
  .registry-mobile-list dl div { min-width: 0; }
  .registry-mobile-list dt { color: #737373; font-size: 11px; }
  .registry-mobile-list dd { margin: 3px 0 0; color: #262626; font-size: 13px; font-weight: 500; }
  .registry-mobile-list article > button { display: flex; width: 100%; height: 36px; align-items: center; justify-content: center; gap: 5px; margin-top: 13px; border: 0; border-radius: 7px; background: #6c91bf; color: #fff; font-size: 13px; cursor: pointer; }
  .registry-mobile-list article > button svg { width: 14px; height: 14px; }
  .registry-mobile-list article > span { display: block; margin-top: 12px; color: #a3a3a3; font-size: 11px; text-align: center; }
  .registry-table-footer { padding: 12px 10px; }
  .registry-footer-controls { width: 100%; align-items: stretch; flex-direction: column; gap: 10px; }
  .registry-figma-page .registry-pagination { width: 100%; flex-direction: row !important; flex-wrap: nowrap; align-items: center; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .registry-page-fragment { flex: none; }
  .registry-popover { position: fixed; z-index: 120; top: auto; right: 12px !important; bottom: 12px; left: 12px !important; width: auto; max-height: min(70vh, 480px); }
}
@media print {
  .registry-toolbar, .registry-header-actions, .registry-period-tabs, .registry-table-footer, .registry-select-column { display: none !important; }
  .registry-figma-page, .registry-figma-card { min-height: 0; padding: 0; background: #fff; border: 0; box-shadow: none; }
  .registry-kpi-strip { overflow: visible; }
  .registry-figma-table { min-width: 0; font-size: 9px; }
}

/* v1.7 — shell dimensions and registry chrome from Figma frame 229:2864. */
.sidebar { width: 255px; }
.sidebar.collapsed { width: 48px; }
.brand { min-height: 48px; height: 48px; padding: 8px 10px; gap: 8px; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; }
.brand-copy strong { font-size: 15px; }
.brand-copy span { font-size: 8px; }
.nav-list { padding: 9px 6px; }
.nav-item { min-height: 36px; border-radius: 6px; padding: 7px 9px; }
.sidebar.collapsed .nav-item { justify-content: center; padding-inline: 0; }
.collapse-button { min-height: 40px; padding: 8px 13px; }
.main-shell { margin-left: 255px; }
.main-shell.sidebar-collapsed { margin-left: 48px; }
.topbar { height: 48px; padding: 0 14px; }
.app-main { min-height: calc(100vh - 48px); }
.passport-tabs { top: 48px; }

.app-shell.registry-shell .topbar {
  border-bottom-color: rgba(255,255,255,.12);
  background: #283b62;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.app-shell.registry-shell .breadcrumbs,
.app-shell.registry-shell .breadcrumbs strong,
.app-shell.registry-shell .breadcrumbs button { color: rgba(255,255,255,.88); }
.app-shell.registry-shell .global-search {
  border-color: rgba(255,255,255,.18);
  background: #fff;
  color: #737373;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.app-shell.registry-shell .global-search kbd { border-color: #e5e5e5; background: #fff; color: #737373; }
.app-shell.registry-shell .top-actions > .icon-button { color: rgba(255,255,255,.88); }
.app-shell.registry-shell .top-actions > .icon-button:hover { background: rgba(255,255,255,.10); color: #fff; }
.app-shell.registry-shell .role-select { border-color: rgba(255,255,255,.18); background: #fff; }
.app-shell.registry-shell .user-chip { color: #fff; }
.app-shell.registry-shell .user-chip > span { background: #fff; color: #283b62; }
.app-shell.registry-shell .user-chip div span { color: rgba(255,255,255,.65); }

@media (max-width: 820px) {
  .main-shell, .main-shell.sidebar-collapsed { margin-left: 0; }
  .sidebar { width: 255px; }
}
