/* Shared Procurement Guardian styles (Maxify design system) — used by index.html and ffe.html */
  :root {
    --ground: #FAFAF7; --surface: #FFFFFF; --surface-2: #F4EFE6; --ink: #13221B; --ink-2: #3C4A43; --muted: #5A6472;
    --line: #E3E1DA; --line-2: #D2CFC6; --green: #00D084; --green-deep: #067A50; --green-tint: rgba(0,208,132,0.14);
    --amber: #FFB020; --amber-deep: #7A5200; --amber-tint: rgba(255,176,32,0.16); --red: #FF5C5C; --red-deep: #B23030; --red-tint: rgba(255,92,92,0.14);
    --cyan: #4DA6FF; --cyan-deep: #1D5FA8; --cyan-tint: rgba(77,166,255,0.14); --slate: #94A3B8;
    --mint: #CFF3E1; --sky: #D8E9FB; --butter: #FBEFC9; --lilac: #E6DFF6; --oat: #F4EFE6; --evergreen: #0F2B21; --evergreen-text: #F3F6F2;
    --shadow: 0 1px 2px rgba(19,34,27,0.06), 0 8px 24px -12px rgba(19,34,27,0.18); --focus: 0 0 0 3px rgba(0,208,132,0.45);
    --display: 'Sora', 'Avenir Next', 'Segoe UI', sans-serif; --text: 'Figtree', 'Helvetica Neue', Arial, sans-serif; --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    --sidebar-w: 250px;
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --ground: #0F2B21; --surface: #163A2D; --surface-2: #1C4536; --ink: #F3F6F2; --ink-2: #C9D6CE; --muted: #9FB3A8; --line: #27503F; --line-2: #34614E;
    --green-deep: #3FE0A6; --amber-deep: #FFC85C; --red-deep: #FF8A8A; --cyan-deep: #86C2FF; --green-tint: rgba(0,208,132,0.18); --amber-tint: rgba(255,176,32,0.2); --red-tint: rgba(255,92,92,0.2); --cyan-tint: rgba(77,166,255,0.2);
    --mint: #1F5C45; --sky: #1E4566; --butter: #5A4A1E; --lilac: #3E3560; --oat: #3A4A42; --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5); } }
  :root[data-theme="dark"] {
    --ground: #0F2B21; --surface: #163A2D; --surface-2: #1C4536; --ink: #F3F6F2; --ink-2: #C9D6CE; --muted: #9FB3A8; --line: #27503F; --line-2: #34614E;
    --green-deep: #3FE0A6; --amber-deep: #FFC85C; --red-deep: #FF8A8A; --cyan-deep: #86C2FF; --green-tint: rgba(0,208,132,0.18); --amber-tint: rgba(255,176,32,0.2); --red-tint: rgba(255,92,92,0.2); --cyan-tint: rgba(77,166,255,0.2);
    --mint: #1F5C45; --sky: #1E4566; --butter: #5A4A1E; --lilac: #3E3560; --oat: #3A4A42; --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5); }

  * { box-sizing: border-box; } [hidden] { display: none !important; }
  body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
  .num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  a { color: var(--green-deep); }
  button { font: inherit; cursor: pointer; }
  button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus); }

  /* ---------- shell + sidebar ---------- */
  .shell { display: flex; align-items: stretch; min-height: 100vh; }
  .sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; }
  .sb-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
  .wordmark { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 4px; }
  .wordmark svg { width: 14px; height: 14px; }
  .sb-brand .tag { font-size: 11px; color: var(--muted); }
  .sb-client { display: flex; align-items: center; gap: 9px; margin: 2px 6px 0; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
  .sb-client .logo-wrap { background: #fff; border-radius: 5px; padding: 4px 6px; display: inline-flex; flex-shrink: 0; }
  .sb-client .logo-wrap img { height: 18px; display: block; }
  .sb-client small { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

  .hero { display: flex; align-items: stretch; border-radius: 14px; overflow: hidden; margin-top: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--evergreen); }
  .hero .htext { padding: 22px 24px; display: flex; flex-direction: column; gap: 9px; justify-content: center; flex: 1; min-width: 0; }
  .hero .logo-chip { background: #fff; border-radius: 8px; padding: 8px 12px; align-self: flex-start; display: inline-flex; }
  .hero .logo-chip img { height: 28px; display: block; }
  .hero h2 { font-size: 22px; color: #fff; }
  .hero .eyebrow { color: var(--green); }
  .hero p { margin: 0; color: #DCE7E0; font-size: 13.5px; max-width: 60ch; }
  .hero .hphoto { width: 230px; flex-shrink: 0; object-fit: cover; }
  @media (max-width: 700px) { .hero { flex-direction: column-reverse; } .hero .hphoto { width: 100%; height: 150px; } }
  .sb-group { margin-top: 12px; }
  .sb-group > .lab { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 10px 6px; }
  .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: transparent; color: var(--ink-2); padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; position: relative; }
  .nav-item svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
  .nav-item:hover { background: var(--surface-2); color: var(--ink); }
  .nav-item.on { background: var(--evergreen); color: var(--evergreen-text); font-weight: 600; }
  .nav-item.on svg { color: var(--green); }
  .nav-item .badge { margin-left: auto; font-family: var(--mono); font-size: 11px; background: var(--surface-2); color: var(--muted); padding: 1px 7px; border-radius: 999px; }
  .nav-item.on .badge { background: rgba(255,255,255,0.14); color: var(--green); }
  .nav-item .badge.bad { color: var(--red-deep); } .nav-item.on .badge.bad { color: #FFB4B4; }
  .sb-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
  .pill-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); flex-shrink: 0; }
  .dot.off { background: var(--slate); box-shadow: none; }
  .theme-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 7px 10px; border-radius: 9px; font-size: 12.5px; }
  .theme-btn svg { width: 15px; height: 15px; }

  .main { flex: 1; min-width: 0; }
  .page-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px 72px; }
  .topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
  .topbar .ttl { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .topbar h1 { font-size: 20px; font-weight: 600; }
  .topbar .sub { font-size: 13px; color: var(--muted); }
  .hamburger { display: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 6px 9px; }
  .hamburger svg { width: 18px; height: 18px; display: block; }

  .btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
  .btn:hover { border-color: var(--slate); } .btn:disabled { opacity: .5; cursor: default; }
  .btn-primary { background: var(--green); border-color: var(--green); color: #0F2B21; font-weight: 600; }
  .btn-danger { color: var(--red-deep); border-color: var(--red-deep); }
  .btn-sm { padding: 6px 11px; font-size: 13px; }

  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .card-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .card-h h3 { font-size: 14px; font-weight: 600; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 14px; flex-wrap: wrap; }
  .section-title h2 { font-size: 16px; font-weight: 600; } .section-title .hint { font-size: 12.5px; color: var(--muted); max-width: 60ch; }

  /* drop zone */
  .drop { display: block; margin: 16px 18px; border: 2px dashed var(--line-2); border-radius: 12px; padding: 26px 20px; text-align: center; color: var(--ink-2); transition: border-color 120ms, background 120ms; cursor: pointer; }
  .drop.over { border-color: var(--green); background: var(--green-tint); }
  .drop b { font-family: var(--display); font-size: 16px; display: block; margin-bottom: 4px; color: var(--ink); }
  .drop small { color: var(--muted); } .drop input { display: none; }
  .doc-list { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; }
  .doc { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--surface); }
  .doc svg.dt { width: 18px; height: 18px; color: var(--muted); }
  .doc .nm { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .doc .sub { color: var(--muted); font-size: 12px; }
  .doc .sub.err { color: var(--red-deep); }
  .doc .when { font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .doc .owner-chip { font-size: 11px; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-weight: 500; }
  .doc .st { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
  .st.queued { background: var(--surface-2); color: var(--muted); } .st.extracting { background: var(--cyan-tint); color: var(--cyan-deep); } .st.done { background: var(--green-tint); color: var(--green-deep); } .st.error { background: var(--red-tint); color: var(--red-deep); }
  .doc .rm { border: none; background: transparent; color: var(--muted); font-size: 16px; padding: 0 4px; }
  .doc-actions { padding: 6px 18px 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .doc-actions .note { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 200px; }

  /* register + checks */
  .reg { padding: 14px 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
  .reg .row { display: flex; justify-content: space-between; gap: 10px; }
  .reg .row span:last-child { font-family: var(--mono); font-size: 12.5px; }
  .checks { padding: 4px 0; }
  .check { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 18px; font-size: 13px; }
  .check + .check { border-top: 1px solid var(--line); }
  .check .cnt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .check .cnt.hit { color: var(--ink); font-weight: 600; }
  .check svg { width: 16px; height: 16px; }
  .check small { display: block; color: var(--muted); font-size: 11.5px; }

  .kpis { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
  @media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } }
  @media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
  .kpi .lab { font-size: 12px; color: var(--muted); font-weight: 500; }
  .kpi .val { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.1; }
  .kpi .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
  .kpi .val.ok { color: var(--green-deep); } .kpi .val.bad { color: var(--red-deep); } .kpi .val.warn { color: var(--amber-deep); }
  .kpi .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
  .kpi.clickable { cursor: pointer; transition: transform 120ms, border-color 120ms, box-shadow 120ms; }
  .kpi.clickable:hover { border-color: var(--slate); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(19,34,27,0.08), 0 12px 28px -14px rgba(19,34,27,0.28); }
  .kpi.clickable:focus-visible { outline: none; box-shadow: var(--focus); }
  .kpi .kpi-go { position: absolute; top: 12px; right: 12px; font-size: 13px; color: var(--muted); opacity: 0; transition: opacity 120ms; }
  .kpi.clickable:hover .kpi-go, .kpi.clickable:focus-visible .kpi-go { opacity: 1; }
  .bar.g { background: var(--green); } .bar.r { background: var(--red); } .bar.a { background: var(--amber); } .bar.c { background: var(--cyan); }

  /* charts */
  .chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
  @media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
  .chart-b { padding: 14px 18px 18px; }
  .barrow { display: grid; grid-template-columns: 168px 1fr 68px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; }
  .barrow .lbl { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barrow .lbl small { color: var(--muted); font-size: 11px; }
  .barrow .track { background: var(--surface-2); border-radius: 6px; height: 20px; overflow: hidden; position: relative; }
  .barrow .track, .barrow .fill { display: block; }
  .barrow .fill { height: 100%; border-radius: 6px; min-width: 2px; transition: width 300ms ease; }
  .barrow .amt { font-family: var(--mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
  .fill.breach { background: var(--red); } .fill.deviation { background: var(--amber); } .fill.match { background: var(--green); } .fill.neutral { background: var(--cyan); } .fill.owner { background: linear-gradient(90deg, var(--green), var(--green-deep)); }
  .donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .donut-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
  .donut-legend .lg { display: flex; align-items: center; gap: 8px; } .donut-legend .sw { width: 11px; height: 11px; border-radius: 3px; }
  .donut-legend b { font-family: var(--mono); }
  .accountbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  .accountbl th { text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .accountbl th.r, .accountbl td.r { text-align: right; }
  .accountbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .accountbl .who { font-weight: 600; } .accountbl .role { color: var(--muted); font-size: 12px; }
  .accountbl .mono { font-family: var(--mono); }
  .accountbl tr:hover td { background: var(--surface-2); cursor: pointer; }

  /* toolbar + table */
  .toolbar { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .chip { border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 5px 11px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
  .chip .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .chip.on { background: var(--evergreen); color: var(--evergreen-text); border-color: var(--evergreen); } .chip.on .n { color: var(--green); }
  .toolbar select, .toolbar input { font: inherit; font-size: 13.5px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }
  .toolbar .spacer { flex: 1; }
  .toolbar .divider { width: 1px; height: 22px; background: var(--line-2); }
  .toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; } .toggle input { accent-color: var(--green); }
  .table-wrap { overflow-x: auto; }
  table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 980px; }
  table.data thead th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  table.data thead th.sortable { cursor: pointer; user-select: none; } table.data thead th.sortable:hover { color: var(--ink); }
  table.data thead th .arr { display: inline-block; width: 10px; color: var(--green-deep); }
  table.data tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
  table.data tbody tr { cursor: pointer; } table.data tbody tr:hover td { background: var(--surface-2); } table.data tbody tr.sel td { background: var(--green-tint); } table.data tbody tr.done td { opacity: 0.55; }
  td.r, th.r { text-align: right; }
  .sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; } .sev svg { width: 12px; height: 12px; }
  .sev.breach { background: var(--red-tint); color: var(--red-deep); } .sev.deviation { background: var(--amber-tint); color: var(--amber-deep); } .sev.match { background: var(--green-tint); color: var(--green-deep); }
  .cat { font-size: 11.5px; padding: 2px 7px; border-radius: 5px; color: var(--ink); font-weight: 500; white-space: nowrap; background: var(--oat); }
  .item-name { font-weight: 600; } .item-sub { color: var(--muted); font-size: 12.5px; }
  .owner-cell b { font-weight: 600; font-size: 13px; } .owner-cell small { display: block; color: var(--muted); font-size: 11.5px; }
  .state { font-size: 12px; color: var(--muted); } .state.approved { color: var(--green-deep); font-weight: 600; } .state.rejected { color: var(--red-deep); font-weight: 600; } .state.queried { color: var(--cyan-deep); font-weight: 600; }
  .m { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
  .m .sub { display: block; font-family: var(--text); color: var(--muted); font-size: 12px; }
  .m.warn { color: var(--amber-deep); font-weight: 600; } .m.bad { color: var(--red-deep); font-weight: 600; } .m.none { color: var(--muted); font-family: var(--text); font-style: italic; }
  .tick { color: var(--green-deep); font-weight: 600; }
  .empty { padding: 40px; text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto; }
  .empty b { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 4px; }

  /* guide / docs pages */
  .prose { max-width: 78ch; }
  .prose h3 { font-size: 15px; margin: 24px 0 8px; }
  .prose p { color: var(--ink-2); margin: 8px 0; }
  .prose ul, .prose ol { color: var(--ink-2); padding-left: 22px; margin: 8px 0; }
  .prose li { margin: 5px 0; }
  .prose code, .mono-inline { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
  pre.code { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; background: var(--evergreen); color: var(--evergreen-text); padding: 16px 18px; border-radius: 10px; overflow-x: auto; white-space: pre; }
  .steps { counter-reset: step; list-style: none; padding: 0; margin: 12px 0; }
  .steps li { position: relative; padding: 12px 16px 12px 52px; border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: var(--surface); }
  .steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #0F2B21; font-family: var(--display); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
  .steps li b { font-family: var(--display); }
  .glo { border-collapse: collapse; width: 100%; font-size: 13.5px; }
  .glo th { text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .glo td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
  .glo td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; width: 190px; }
  .glo td .mono { color: var(--muted); font-size: 12px; }
  .glo caption { text-align: left; font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--ink); padding: 18px 0 8px; }

  /* register catalogue */
  #reg-search { font: inherit; font-size: 13.5px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); min-width: 240px; }
  .reg-cat { margin-bottom: 16px; }
  .reg-cat .card-h .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .reg-cat .cat-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: middle; }
  .spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  .spec-table thead th { text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .spec-table thead th.r { text-align: right; }
  .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .spec-table tr:last-child td { border-bottom: none; }
  .spec-table tr:hover td { background: var(--surface-2); }
  .spec-name { font-weight: 600; } .spec-code { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
  .spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .spec-chip { display: inline-flex; align-items: baseline; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; white-space: nowrap; }
  .spec-chip .k { color: var(--muted); font-size: 11px; } .spec-chip .v { font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .spec-chip.none { color: var(--muted); font-style: italic; border-style: dashed; }
  .spec-text { color: var(--muted); font-size: 12px; margin-top: 7px; }
  .spec-rate { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
  .spec-rate small { display: block; font-family: var(--text); font-weight: 400; color: var(--muted); font-size: 11px; }
  .spec-vendor { font-size: 13px; } .spec-cert { margin-top: 4px; }
  .cert-tag { display: inline-block; background: var(--cyan-tint); color: var(--cyan-deep); border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 600; margin: 1px 2px 1px 0; }
  .reg-empty { padding: 28px; text-align: center; color: var(--muted); }
  /* luxury tiers */
  .tier-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
  .tier-badge.select { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); }
  .tier-badge.premium { background: var(--cyan-tint); color: var(--cyan-deep); }
  .tier-badge.luxury { background: var(--amber-tint); color: var(--amber-deep); }
  .tier-spec { display: flex; flex-direction: column; gap: 5px; }
  .tier-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
  .tier-row .tier-val { color: var(--ink-2); font-family: var(--mono); }
  .tier-row .tier-rate { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
  #reg-tiers { padding: 4px 18px 12px; }
  .tier-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tier-block:last-child { border-bottom: none; }
  .tier-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .tier-desc { color: var(--muted); font-size: 12.5px; }
  .tier-hotels { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 5px; }
  .hotel-chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
  .tier-eg { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
  .hotel-tier { margin-top: 3px; }
  @media (max-width: 760px) { .reg-grid { grid-template-columns: 1fr !important; } .spec-table { min-width: 640px; } .reg-cat .table-wrap { overflow-x: auto; } }

  /* drawer */
  .backdrop { position: fixed; inset: 0; background: rgba(15,43,33,0.35); opacity: 0; pointer-events: none; transition: opacity 180ms; z-index: 40; } .backdrop.open { opacity: 1; pointer-events: auto; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 40px -20px rgba(0,0,0,0.4); transform: translateX(100%); transition: transform 200ms ease; z-index: 50; display: flex; flex-direction: column; } .drawer.open { transform: translateX(0); }
  .drawer-h { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; } .drawer-h h2 { font-size: 18px; font-weight: 600; }
  .drawer-h .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
  .drawer-b { padding: 18px 22px; overflow-y: auto; flex: 1; }
  .drawer-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .drawer-f .st { flex: 1; font-size: 13px; color: var(--muted); }
  .close { border: none; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 6px; } .close:hover { background: var(--surface-2); color: var(--ink); }
  .sec { margin-bottom: 20px; } .sec h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
  .owner-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
  .owner-box .av { width: 38px; height: 38px; border-radius: 50%; background: var(--evergreen); color: var(--green); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; flex-shrink: 0; }
  .owner-box .who { font-weight: 600; } .owner-box .role { color: var(--muted); font-size: 12.5px; }
  .owner-box .esc { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
  .diff { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 0; }
  .diff th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.05em; }
  .diff td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .diff td:first-child { color: var(--muted); width: 32%; }
  .diff tr.bad td:nth-child(3) { color: var(--red-deep); font-weight: 600; background: var(--red-tint); } .diff tr.warn td:nth-child(3) { color: var(--amber-deep); font-weight: 600; background: var(--amber-tint); }
  .evid { display: flex; flex-direction: column; gap: 8px; }
  .ev { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 13px; }
  .ev .ref { font-family: var(--mono); font-size: 12px; font-weight: 600; } .ev .q { color: var(--ink-2); margin-top: 2px; } .ev svg { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
  .note { background: var(--surface-2); border-left: 3px solid var(--green); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.55; }
  .impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .impact div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; } .impact .lab { font-size: 11.5px; color: var(--muted); } .impact .v { font-family: var(--mono); font-weight: 600; font-size: 15px; margin-top: 2px; }
  .toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--evergreen); color: var(--evergreen-text); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: all 200ms; z-index: 60; display: flex; gap: 10px; align-items: center; pointer-events: none; max-width: 90vw; } .toast.show { opacity: 1; transform: translate(-50%, 0); }
  .foot { margin-top: 28px; font-size: 12.5px; color: var(--muted); max-width: 80ch; line-height: 1.6; }

  @media (max-width: 900px) {
    .sidebar { position: fixed; z-index: 45; transform: translateX(-100%); transition: transform 200ms ease; box-shadow: 12px 0 40px -20px rgba(0,0,0,0.4); }
    .sidebar.open { transform: translateX(0); }
    .hamburger { display: inline-flex; }
    .page-inner, .topbar { padding-left: 18px; padding-right: 18px; }
  }
  @media (prefers-reduced-motion: reduce) { .drawer, .backdrop, .toast, .drop, .sidebar, .barrow .fill { transition: none; } }

/* FF&E review: process workflow (How it works) */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin: 6px 0 22px; }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 16px 18px; box-shadow: var(--shadow); }
.flow-step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 12px 0 0 12px; background: var(--slate); }
.flow-step.ai::before { background: var(--cyan); } .flow-step.code::before { background: var(--green); } .flow-step.out::before { background: var(--amber); } .flow-step.human::before { background: var(--red); }
.flow-step .fs-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.flow-step .fs-t { font-family: var(--display); font-weight: 600; font-size: 14.5px; margin: 4px 0 6px; letter-spacing: -0.01em; }
.flow-step .fs-d { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.flow-arrow { display: none; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } }
.sev-help { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.sev-help a { color: var(--green-deep); text-decoration: none; font-weight: 600; } .sev-help a:hover { text-decoration: underline; }
