:root {
  --ink: #16212b;
  --muted: #65717b;
  --paper: #f5f4ef;
  --surface: #ffffff;
  --line: #dfe2dc;
  --navy: #183243;
  --navy-deep: #102934;
  --amber: #e8a84c;
  --amber-soft: #fff0d4;
  --green: #3f7c62;
  --red: #b54b45;
  --shadow: 0 10px 24px rgba(16, 41, 52, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; display: flex; flex-direction: column; background: var(--navy-deep); color: #edf1ec; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--amber); color: var(--navy-deep); font-weight: 800; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: #98a9ae; font-size: 11px; }
.workspace-chip { display: flex; align-items: center; gap: 8px; margin: 40px 10px 24px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 6px; color: #bdc9ca; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.nav-label { margin: 0 10px 9px; color: #748a91; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 28px; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item { position: relative; padding: 10px 11px; border-radius: 5px; color: #a8b7b9; font-size: 13px; transition: background .16s ease, color .16s ease; }
.nav-item:hover, .nav-item:focus-visible { background: rgba(255,255,255,.08); color: #fff; outline: none; }
.nav-item.active { background: rgba(232,168,76,.14); color: #ffd18b; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--amber); }
.sidebar-bottom { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.provider-note { display: grid; gap: 4px; margin-bottom: 22px; }
.provider-note .eyebrow { color: #71868c; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.provider-note strong { font-size: 14px; font-weight: 600; }
.provider-note span:last-child { color: #95a7aa; font-size: 11px; }
.text-button { padding: 0; border: 0; color: #9eb1b3; background: transparent; font-size: 12px; }
.text-button:hover { color: #fff; }
.main-content { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(245,244,239,.96); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.mode-badge { padding: 5px 8px; border: 1px solid #e4c998; border-radius: 4px; background: var(--amber-soft); color: #8a5d21; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #c5cec8; border-radius: 50%; background: #e1e7df; color: var(--navy); font-size: 12px; font-weight: 700; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--navy); font-size: 13px; font-weight: 700; }
.content-wrap { width: min(1160px, 100%); margin: 0 auto; padding: 52px 42px 72px; }
.view { display: none; }
.view.active-view { display: block; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.kicker { margin: 0 0 10px; color: #88714d; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 13px; color: var(--navy-deep); font-size: clamp(32px, 4vw, 50px); line-height: 1.02; letter-spacing: -.055em; font-weight: 700; }
h2 { margin-bottom: 8px; color: var(--navy-deep); font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.lede { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.primary-button, .secondary-button { min-height: 40px; padding: 0 15px; border-radius: 5px; font-size: 12px; font-weight: 700; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.primary-button:hover, .primary-button:focus-visible { background: var(--navy-deep); transform: translateY(-1px); outline: none; }
.secondary-button { border: 1px solid #c8d0cb; background: transparent; color: var(--navy); }
.secondary-button:hover, .secondary-button:focus-visible { border-color: var(--navy); background: #edf0eb; outline: none; }
.link-button { padding: 0; border: 0; background: transparent; color: #8a5d21; font-size: 12px; font-weight: 700; }
.link-button:hover { color: var(--navy); }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 28px; padding: 14px 16px; border: 1px solid #e6d2ac; border-left: 3px solid var(--amber); background: #fffaf0; color: #635640; font-size: 12px; line-height: 1.5; }
.notice strong, .notice span { display: block; }
.notice strong { color: #60461e; margin-bottom: 2px; }
.notice-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; border: 1px solid #bf9146; border-radius: 50%; color: #8a5d21; font-size: 11px; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-grid.compact { grid-template-columns: repeat(3, 1fr); }
.metric-card { min-height: 126px; padding: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.metric-card.accent-card { border-top: 3px solid var(--amber); padding-top: 16px; }
.metric-label, .metric-foot { display: block; color: var(--muted); font-size: 11px; }
.metric-value { display: block; margin: 17px 0 8px; color: var(--navy-deep); font-size: 25px; letter-spacing: -.04em; }
.metric-foot { color: #87918d; }
.split-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.focus-panel, .checklist-panel { min-height: 292px; padding: 25px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h2 { margin-bottom: 0; }
.panel-index, .doc-number { color: #bb8d4b; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.focus-panel > p { max-width: 520px; margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.code-block { display: grid; gap: 7px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #e2e5df; background: #f6f7f3; }
.code-block span { color: #87918d; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.code-block code { overflow-wrap: anywhere; color: var(--navy); }
.checklist { display: grid; gap: 19px; margin: 0 0 22px; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: #aab2ad; }
.checklist li > span { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #cbd3cd; border-radius: 50%; color: #aab2ad; font-size: 11px; }
.checklist li.complete { color: var(--navy); }
.checklist li.complete > span { border-color: var(--green); color: var(--green); }
.checklist strong, .checklist small { display: block; }
.checklist strong { margin-bottom: 3px; font-size: 12px; font-weight: 700; }
.checklist small { color: var(--muted); font-size: 11px; }
.loading-state, .empty-cell { padding: 42px 18px; color: var(--muted); text-align: center; font-size: 13px; }
.panel:has(.data-list), .panel:has(.table-wrap), .panel:has(.model-grid) { padding: 25px; }
.panel-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.count-badge { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.data-list { display: grid; gap: 8px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid #e4e7e1; }
.key-main, .key-meta { min-width: 0; }
.key-main strong, .key-main span { display: block; }
.key-main strong { color: var(--navy); font-size: 13px; }
.key-main span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.key-meta { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; text-align: right; }
.key-status { color: var(--green); font-weight: 700; }
.key-action { padding: 5px 8px; border: 1px solid #d7ddd7; border-radius: 4px; background: transparent; color: var(--navy); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 10px 12px; border-bottom: 1px solid #ccd4ce; color: #7a8580; font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
td { padding: 14px 12px; border-bottom: 1px solid #edf0ec; color: var(--ink); white-space: nowrap; }
td.status-ok { color: var(--green); font-weight: 700; }
td.status-error { color: var(--red); font-weight: 700; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.model-card { padding: 16px; border: 1px solid #e3e7e1; }
.model-card strong, .model-card span { display: block; }
.model-card strong { margin-bottom: 13px; color: var(--navy); font-size: 13px; overflow-wrap: anywhere; }
.model-card span { color: var(--muted); font-size: 11px; }
.model-card .model-status { margin-top: 12px; color: var(--green); font-weight: 700; }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.doc-panel { min-height: 300px; padding: 25px; }
.doc-panel.wide { grid-column: 1 / -1; min-height: auto; }
.doc-panel p { max-width: 600px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.docs-note { display: grid; gap: 5px; margin-top: 22px; padding: 14px; border: 1px solid #e4d4b9; background: #fffaf0; color: #6d5d43; font-size: 12px; line-height: 1.5; }
.docs-note strong { color: #5c4524; }
.modal { width: min(470px, calc(100% - 32px)); padding: 25px; border: 1px solid #cdd5cf; background: #fff; color: var(--ink); box-shadow: 0 22px 60px rgba(16,41,52,.2); }
.modal::backdrop { background: rgba(16,41,52,.46); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-heading h2 { margin: 0; font-size: 23px; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.modal-copy { margin: 16px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.modal input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #bac6be; border-radius: 4px; color: var(--ink); outline: none; }
.modal input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(24,50,67,.1); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.form-status { min-height: 18px; margin: 12px 0 0; color: var(--red); font-size: 12px; }
.secret-box { display: grid; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid #e4d4b9; background: #fffaf0; }
.secret-box code { overflow-wrap: anywhere; color: var(--navy); line-height: 1.5; }
.full-width { width: 100%; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 5; width: 248px; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 12px 0 30px rgba(16,41,52,.18); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: block; }
  .topbar { padding: 0 20px; }
  .content-wrap { padding: 38px 20px 60px; }
}
@media (max-width: 680px) {
  .topbar { height: 58px; }
  .breadcrumbs { display: none; }
  .page-intro { display: block; }
  .page-intro .primary-button, .page-intro .secondary-button { margin-top: 20px; }
  h1 { font-size: 36px; }
  .metric-grid, .metric-grid.compact { grid-template-columns: 1fr 1fr; }
  .split-grid, .docs-grid { grid-template-columns: 1fr; }
  .doc-panel.wide { grid-column: auto; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .key-row { align-items: flex-start; flex-direction: column; }
  .key-meta { width: 100%; justify-content: space-between; text-align: left; }
}
@media (max-width: 430px) {
  .metric-grid, .metric-grid.compact, .model-grid { grid-template-columns: 1fr; }
  .content-wrap { padding-right: 16px; padding-left: 16px; }
  .topbar { padding: 0 16px; }
  .mode-badge { display: none; }
}
