:root {
  color-scheme: light;
  --navy: #111d35;
  --navy-deep: #0e182d;
  --ink: #17243d;
  --text: #24344f;
  --muted: #5c6b81;
  --line: #dce4ef;
  --surface: #fff;
  --ground: #f3f6fb;
  --blue: #244dbd;
  --blue-dark: #1b3b96;
  --blue-soft: #edf2ff;
  --teal: #08796f;
  --teal-soft: #e7f7f3;
  --amber: #965b09;
  --amber-soft: #fff3dc;
  --purple: #6243ab;
  --purple-soft: #f2edff;
  --radius: 15px;
  --shadow: 0 3px 12px rgb(22 48 94 / 4%);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
  font-size: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #557eff;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.number { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.icon { width: 19px; height: 19px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.icon-small .icon, .tag .icon, .mini-link .icon { width: 14px; height: 14px; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-200%);
  padding: 12px 18px;
  background: #fff;
  border-radius: 8px;
}
.skip-link:focus { transform: none; }
.loading-page { max-width: 900px; padding: 36px; margin: auto; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 17px 19px;
  background: linear-gradient(165deg, #152340 0%, var(--navy-deep) 76%);
  color: #fff;
  z-index: 3;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 0 4px; margin-bottom: 44px; }
.brand-mark {
  width: 41px; height: 41px; flex: 0 0 41px; display: grid; place-items: center;
  border-radius: 11px; color: #e8efff; background: linear-gradient(150deg, #5378f1, #274cc1);
  box-shadow: 0 5px 16px rgb(10 21 45 / 30%), inset 0 1px 0 #ffffff36;
}
.brand-mark .icon { width: 23px; height: 23px; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.35px; line-height: 1.2; }
.brand-detail { display: block; margin-top: 5px; color: #a8b9dc; font-size: 11px; line-height: 1.2; }
.nav-label { color: #a7b7d6; font-size: 10px; letter-spacing: .14em; font-weight: 700; padding: 0 11px; margin: 0 0 10px; }
.nav-list { display: grid; gap: 5px; }
.nav-button {
  color: #c5d1e9; background: transparent; border: 0; text-align: left;
  width: 100%; min-height: 44px; display: flex; gap: 11px; align-items: center;
  padding: 10px 12px; font-size: 13px; font-weight: 550; border-radius: 9px;
}
.nav-button:hover { color: #fff; background: #ffffff0d; }
.nav-button[aria-current="page"] { color: #fff; background: #ffffff14; box-shadow: inset 3px 0 #7899ff; }
.nav-button[aria-current="page"] .icon { color: #a5baff; }
.side-bottom { margin-top: auto; }
.workshop-note {
  padding: 13px 12px;
  border: 1px solid #8397c237;
  border-radius: 11px;
  display: flex; gap: 9px; align-items: flex-start;
  background: #8397c20e;
  color: #c0cdea;
  line-height: 1.45;
  font-size: 11px;
}
.workshop-note strong { color: #ecf1ff; display: block; margin-bottom: 3px; font-size: 12px; }
.workshop-note .icon { color: #9eb7ff; width: 16px; height: 16px; margin-top: 1px; }
.side-reset { color: #bac9e6; margin-top: 11px; min-height: 36px; font-size: 12px; }

.workspace { min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 65px; padding: 10px 28px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--muted); min-width: 0; }
.breadcrumbs span:last-child { color: var(--ink); font-weight: 650; }
.crumb-page { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-arrow { color: #9aa6ba; }
.top-tools, .role-selector { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.role-selector { padding: 3px; gap: 1px; background: #f1f4fa; border: 1px solid #e2e8f2; border-radius: 9px; }
.role-button { border: 0; background: none; border-radius: 6px; padding: 6px 9px; color: var(--muted); font-weight: 650; font-size: 11px; white-space: nowrap; }
.role-button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px #253a6020; color: var(--ink); }
.top-indicator { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.top-indicator::before, .live-dot::before { content: ""; width: 7px; height: 7px; display: inline-block; background: #149988; border-radius: 50%; }
.mobile-reset { display: none !important; }
.main { max-width: 1510px; margin: 0 auto; padding: 26px 28px 31px; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: center;
  gap: 28px; min-height: 148px; padding: 22px 27px;
  background: linear-gradient(105deg, #172f61 0%, #254989 67%, #255b9c 100%);
  border: 1px solid #26a8ff26; border-radius: var(--radius); color: #fff;
  box-shadow: 0 5px 15px #18325b1c;
}
.hero::after {
  position: absolute; right: -38px; bottom: -107px; z-index: -1; content: ""; width: 365px; height: 365px;
  border-radius: 50%; border: 1px solid #a7c8ff30;
  box-shadow: 0 0 0 19px #a7c8ff13, 0 0 0 40px #a7c8ff10, 0 0 0 64px #a7c8ff0a, 0 0 0 88px #a7c8ff09;
  pointer-events: none;
}
.hero-caption { display: flex; align-items: center; gap: 8px; color: #c0d4fc; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.045em; line-height: 1.12; margin-bottom: 8px; }
.hero p { color: #d3e0fb; font-size: 13px; line-height: 1.55; }
.hero-aside { text-align: right; align-self: flex-start; padding-top: 3px; white-space: nowrap; }
.hero-aside .tag { color: #ecf3ff; border: 1px solid #d8e9ff5c; background: #d8e9ff13; }
.hero-case { font-size: 11px; color: #cddcf7; display: block; margin-top: 9px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin: 4px 0 19px; }
.section-heading h1 { font-size: 34px; letter-spacing: -.045em; line-height: 1.14; margin-bottom: 6px; }
.section-heading p { color: var(--muted); line-height: 1.6; max-width: 660px; }
.section-heading > .tag { margin-top: 5px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 17px 0; }
.metric {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; box-shadow: var(--shadow);
}
.metric-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); flex: 0 0 auto; }
.metric-icon .icon { width: 15px; height: 15px; }
.metric-icon.teal { color: var(--teal); background: var(--teal-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-data { color: var(--ink); margin-top: 6px; font-size: 24px; letter-spacing: -.035em; font-weight: 720; font-variant-numeric: tabular-nums; }
.metric-note { color: var(--muted); overflow-wrap: anywhere; font-size: 10.5px; line-height: 1.4; margin-top: 4px; }
.board { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); align-items: start; gap: 16px; }
.stack { display: grid; gap: 16px; min-width: 0; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 18px; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 11px; margin: 0 0 13px; }
.panel-header h2, .panel > h2 { font-size: 19px; letter-spacing: -.025em; line-height: 1.2; font-weight: 700; }
.panel-header p { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.heading-icon { display: flex; align-items: center; gap: 8px; }
.heading-icon .icon { color: var(--blue); }
.panel-compact { padding: 15px; }
.panel-compact .panel-header h2 { font-size: 17px; }

.tag {
  display: inline-flex; gap: 5px; align-items: center; flex: 0 0 auto;
  padding: 4px 7px; border-radius: 6px; font-weight: 680; font-size: 10.5px;
  line-height: 1.25; color: var(--muted); background: #eef2f8;
}
.tag-blue { color: #2b4d9d; background: var(--blue-soft); }
.tag-teal { color: #09675e; background: var(--teal-soft); }
.tag-amber { color: #834e05; background: var(--amber-soft); }
.tag-purple { color: #573997; background: var(--purple-soft); }
.tag-red { color: #a12d42; background: #ffedf0; }
.tag.live-dot::before { width: 6px; height: 6px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 8px; border: 1px solid transparent; min-height: 38px; padding: 8px 11px;
  text-decoration: none; font-size: 12px; font-weight: 650; line-height: 1.2; text-align: center;
}
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 2px 3px #3063dc29; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-secondary { color: #223957; background: #fff; border-color: #cdd8e8; }
.button-secondary:hover:not(:disabled) { border-color: #9fb3d5; background: #f6f9ff; }
.button-quiet { color: var(--blue); background: #f1f5ff; }
.button-quiet:hover:not(:disabled) { background: #e7eeff; }
.button-small { min-height: 29px; padding: 5px 8px; font-size: 11px; }
.sign-out { min-height: 33px; padding: 5px 8px; white-space: nowrap; }
.sign-out .icon { width: 15px; height: 15px; }
.button:disabled { opacity: .57; box-shadow: none; }
.mini-link { display: inline-flex; gap: 4px; align-items: center; color: var(--blue); padding: 0; border: 0; background: transparent; font-size: 11px; font-weight: 650; text-align: left; }
.mini-link:hover { text-decoration: underline; }
.inline-action { margin-top: 10px; }

.stages { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 12px; }
.stage { display: flex; gap: 6px; align-items: center; min-height: 36px; padding: 5px 7px; border-radius: 7px; color: #536279; background: #f5f7fc; border: 1px solid #edf0f6; font-size: 10.5px; font-weight: 650; }
.stage .icon { width: 14px; height: 14px; }
.stage-current { color: #214aab; background: #eef3ff; border-color: #dce6ff; }
.stage-done { color: #087267; background: #eff9f6; border-color: #d9f0e8; }
.chart { background: #f8faff; border: 1px solid #e7edf7; border-radius: 10px; padding: 11px 12px; margin: 12px 0; }
.chart-row { display: grid; grid-template-columns: minmax(82px, 129px) 1fr minmax(52px, 60px); gap: 8px; align-items: center; min-height: 22px; font-size: 11px; }
.chart-label { color: #52617b; }
.bar-track { background: #e8eef7; border-radius: 6px; height: 7px; overflow: hidden; }
.bar { height: 100%; border-radius: inherit; width: var(--bar); background: #5276dd; transition: width .35s ease; }
.bar.teal { background: #199588; }
.bar.purple { background: #8572c8; }
.chart-row strong { font-variant-numeric: tabular-nums; text-align: right; font-size: 11px; }
.chart-note { font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.info-box {
  display: flex; align-items: flex-start; gap: 8px; border-radius: 9px; padding: 9px 10px;
  color: #354865; background: #f2f6ff; border: 1px solid #e4ebfa; font-size: 11px; line-height: 1.5;
}
.info-box .icon { width: 15px; height: 15px; margin-top: 1px; color: #4266c6; }
.info-box.warning { background: #fff8eb; border-color: #f3e4c6; color: #694813; }
.info-box.warning .icon { color: var(--amber); }
.info-box.success { background: #edf9f5; border-color: #d9eee6; color: #1c5c51; }
.info-box.success .icon { color: var(--teal); }
.info-box strong { font-weight: 700; }
.board-chrome { display: flex; justify-content: space-between; gap: 7px; align-items: center; margin: 8px 0 0; font-size: 10.5px; color: var(--muted); }
.result-heading { display: flex; justify-content: space-between; gap: 9px; align-items: center; margin: 15px 0 7px; }
.result-heading h3 { font-size: 12.5px; font-weight: 700; }
.match-list { display: grid; gap: 7px; list-style: none; }
.match-card { border: 1px solid #e1e8f4; padding: 8px 9px; border-radius: 9px; background: #fcfdff; }
.match-card-verified { border-color: #cfe9e1; background: #fbfffd; }
.match-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.match-title { font-weight: 680; font-size: 11.5px; line-height: 1.4; }
.match-title strong { color: var(--ink); }
.match-meta { color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 2px; }
.match-buttons { display: flex; align-items: center; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.pending-list { display: grid; gap: 5px; list-style: none; margin: 7px 0 0; color: #586780; font-size: 10.5px; line-height: 1.45; }
.pending-list strong { color: #71511e; }
.transition-card { padding: 9px 11px; margin-top: 11px; border-radius: 9px; background: #ebf7f3; color: #165d50; display: grid; gap: 4px; font-size: 11px; line-height: 1.4; }
.transition-card b { font-variant-numeric: tabular-nums; font-size: 13px; }

.policy-stack { display: grid; gap: 9px; }
.policy-card { padding: 11px; border: 1px solid #e1e7f1; border-radius: 10px; background: #fdfdff; }
.policy-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; }
.policy-card h3 { display: flex; gap: 7px; align-items: center; font-size: 12px; line-height: 1.4; font-weight: 700; }
.policy-icon { background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; flex: 0 0 auto; }
.policy-icon .icon { width: 13px; height: 13px; }
.policy-card:nth-child(even) .policy-icon, .policy-large:nth-child(even) .policy-icon { background: var(--purple-soft); color: var(--purple); }
.policy-value { font-size: 20px; font-weight: 710; letter-spacing: -.03em; margin: 7px 0 2px; font-variant-numeric: tabular-nums; }
.policy-card p { font-size: 10.5px; line-height: 1.48; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.policy-card .mini-link { margin-top: 8px; }
.policy-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.policy-large .panel-header { align-items: center; }
.policy-large .panel-header h2 { font-size: 16px; }
.policy-large .panel-header > div { display: flex; align-items: center; gap: 8px; }
.policy-large .policy-value { font-size: 27px; margin: 10px 0 4px; }
.policy-large .policy-intro { font-size: 12px; color: var(--muted); line-height: 1.55; }
.check-list { display: grid; list-style: none; gap: 0; margin-top: 12px; }
.check-item { padding: 9px 0; border-top: 1px solid #e6ebf4; }
.check-main { display: flex; gap: 9px; align-items: center; justify-content: space-between; font-size: 11px; }
.check-item p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.check-source { display: inline-block; color: #52699f; font-size: 10px; margin-top: 4px; }
.policy-action { margin-top: 10px; color: var(--text); font-size: 12px; line-height: 1.55; }
.policy-before { color: var(--muted); font-size: 10.5px; margin-top: 5px; }
.policy-section-title { display: flex; align-items: center; gap: 8px; }
.source-list { display: grid; list-style: none; gap: 0; }
.source-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #e9eef5; }
.source-item .icon { color: var(--blue); width: 15px; height: 15px; margin-top: 1px; }
.source-item strong { display: block; font-size: 11px; margin-bottom: 2px; }
.source-item small { display: block; color: var(--muted); line-height: 1.4; font-size: 10px; }
.source-item > div { flex: 1 1 auto; }
.source-grid, .controls-grid, .borrower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.source-grid .source-item { gap: 10px; }
.source-grid .source-item strong { font-size: 13px; }
.source-grid .source-item small { font-size: 11px; }
.wide { grid-column: 1 / -1; }
.source-session { min-width: 0; }
.table-frame { overflow: auto; margin-top: 6px; }
.evidence-table { width: 100%; min-width: 450px; border-collapse: collapse; font-size: 11.5px; text-align: left; }
.evidence-table th {
  padding: 8px 9px; font-weight: 650; color: var(--muted); background: #f5f7fd; border-bottom: 1px solid #e3e9f3; white-space: nowrap;
}
.evidence-table td { padding: 8px 9px; border-bottom: 1px solid #e9eef5; line-height: 1.4; vertical-align: top; }
.evidence-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.evidence-table .highlight { background: #edf3ff; }
.evidence-table tr:last-child td { border-bottom: 0; }
.audit-list { display: grid; gap: 8px; list-style: none; max-height: 350px; overflow: auto; }
.audit-item { display: flex; gap: 8px; align-items: flex-start; color: #42526b; font-size: 11px; line-height: 1.4; }
.audit-item time { flex: 0 0 auto; color: var(--muted); min-width: 49px; font-variant-numeric: tabular-nums; font-size: 10px; }
.audit-icon { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); flex: 0 0 auto; }
.audit-icon .icon { width: 10px; height: 10px; }
.audit-item strong { color: var(--ink); display: block; }
.audit-item p { margin-top: 2px; }
.principle { border-top: 1px solid #e6ebf4; padding: 9px 0; }
.principle h3 { font-size: 12px; }
.principle p, .control-copy { color: var(--muted); margin-top: 3px; font-size: 12px; line-height: 1.55; }
.controls-grid .control-copy + .control-copy { margin-top: 7px; }
.controls-grid .button-row { margin: 10px 0 0; }
.borrower-copy { line-height: 1.6; color: var(--text); font-size: 13px; }
.borrower-steps { display: grid; gap: 7px; margin: 8px 0 0 18px; color: var(--text); font-size: 12px; line-height: 1.6; }
.footer {
  display: flex; justify-content: space-between; gap: 9px; flex-wrap: wrap;
  color: var(--muted); font-size: 10px; padding: 14px 3px 0; margin-top: 14px;
}

.drawer {
  margin: 0 0 0 auto; inset: 0 0 0 auto; max-width: min(590px, 100vw); width: min(590px, 100vw);
  height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--line);
  border-radius: 0; padding: 0; box-shadow: -10px 0 30px #0b183029; color: var(--ink); background: var(--ground);
}
.drawer::backdrop { background: #101d3b66; }
.drawer-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; padding: 17px 18px;
  border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 1;
}
.drawer-top h2 { font-size: 19px; letter-spacing: -.025em; }
.drawer-top p { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.drawer-content { padding: 14px 16px 22px; display: grid; gap: 10px; }
.drawer-content .panel { padding: 13px; }
.drawer-content .panel h3 { font-size: 13px; }
.drawer-content .panel p { font-size: 11.5px; line-height: 1.55; color: var(--muted); margin-top: 5px; }
.drawer-close { display: grid; place-items: center; width: 34px; height: 34px; background: #f0f3fa; border: 1px solid #e0e6f1; border-radius: 8px; color: var(--text); flex: 0 0 auto; }
.drawer-close:hover { background: #e8edf7; }
.drawer-review { justify-content: flex-end; }
.drawer-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.drawer-records div { max-width: 100%; padding: 8px; border-radius: 6px; background: #f3f6fc; font-size: 11px; overflow-wrap: anywhere; }
.drawer-records strong { display: block; color: var(--muted); font-size: 9px; margin-bottom: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.status-message {
  position: fixed; bottom: 15px; right: 15px; z-index: 15; padding: 11px 14px; max-width: calc(100vw - 30px); color: #fff;
  border-radius: 9px; background: var(--navy); box-shadow: 0 5px 19px #12254936; font-size: 12px; line-height: 1.4;
}
.status-message:empty { display: none; }
.spin .icon { animation: spin .82s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1140px) {
  .shell { grid-template-columns: 202px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .topbar, .main { padding-inline: 20px; }
  .panel { padding: 14px; }
  .board { grid-template-columns: minmax(0, 1.6fr) minmax(241px, 1fr); gap: 12px; }
  .stack { gap: 12px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 162px minmax(0, 1fr); }
  .brand { gap: 8px; padding: 0; margin-bottom: 30px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-mark .icon { width: 19px; height: 19px; }
  .brand-name { font-size: 13px; }
  .nav-button { font-size: 12px; gap: 7px; padding-inline: 8px; }
  .nav-button .icon { width: 16px; height: 16px; }
  .main, .topbar { padding-inline: 15px; }
  .hero { padding-inline: 16px; }
  .metric { padding-inline: 9px; }
  .metric-grid { gap: 8px; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board > .stack:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 670px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 12px 13px 8px; }
  .brand { margin-bottom: 9px; }
  .brand-detail, .nav-label, .side-bottom, .top-indicator { display: none; }
  .nav-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .nav-button { flex-direction: column; gap: 4px; justify-content: center; min-height: 46px; padding: 4px 2px; font-size: 9px; text-align: center; line-height: 1.1; }
  .nav-button[aria-current="page"] { box-shadow: inset 0 -2px #7899ff; }
  .topbar { min-height: 46px; gap: 6px; padding: 7px 12px; }
  .top-tools { gap: 5px; }
  .breadcrumbs { gap: 5px; font-size: 10px; }
  .breadcrumbs .crumb-first, .breadcrumbs .crumb-first + .crumb-arrow { display: none; }
  .role-selector { gap: 0; padding: 2px; }
  .role-button { font-size: 9px; padding: 5px 5px; }
  .mobile-reset { display: inline-flex !important; min-height: 27px; padding: 4px 6px; }
  .mobile-reset .icon { width: 13px; height: 13px; }
  .sign-out { min-height: 27px !important; padding: 4px 6px; }
  .sign-out .icon { width: 13px; height: 13px; }
  .sign-out span { display: none; }
  .main { padding: 12px 12px 18px; }
  .hero { min-height: 125px; padding: 14px 13px; gap: 10px; }
  .hero-caption { font-size: 8.5px; letter-spacing: .09em; margin-bottom: 5px; }
  .hero h1 { font-size: 25px; line-height: 1.06; margin-bottom: 5px; }
  .hero p { font-size: 11px; }
  .hero-aside { padding-top: 0; }
  .hero-aside .tag { font-size: 8.5px; }
  .hero-case { font-size: 9px; margin-top: 5px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 9px 0 10px; gap: 6px; }
  .metric { padding: 7px 8px; }
  .metric-head { gap: 6px; font-size: 10px; }
  .metric-icon { width: 22px; height: 22px; }
  .metric-icon .icon { width: 12px; height: 12px; }
  .metric-data { font-size: 20px; margin-top: 4px; }
  .metric-note { font-size: 9px; margin-top: 3px; }
  .panel-header h2 { font-size: 16px; }
  .panel-header p { font-size: 11px; }
  .panel, .panel-compact { padding: 11px; }
  .stage { font-size: 9px; padding: 4px; gap: 4px; }
  .stage .icon { width: 12px; height: 12px; }
  .button { min-height: 34px; font-size: 11px; }
  .button-small { min-height: 29px; }
  .section-heading h1 { font-size: 26px; }
  .section-heading p { font-size: 12px; }
  .board > .stack:nth-child(2), .source-grid, .controls-grid, .policy-detail-grid, .borrower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
