:root {
  color-scheme: light;
  --navy: #0c2138;
  --ink: #102447;
  --sub: #4f6178;
  --muted: #667990;
  --red: #ca073d;
  --red-hover: #a90635;
  --red-wash: #fdf0f3;
  --blue: #335f9e;
  --green: #136249;
  --amber: #805015;
  --canvas: #f4f6f9;
  --surface: #fff;
  --line: #dce3ec;
  --line-dark: #bcc9d7;
  --nav-width: clamp(14rem, 17vw, 16.5rem);
  --rad: .85rem;
  --small-rad: .48rem;
  --shadow: 0 2px 5px rgb(12 33 56 / 3%);
  --focus: #1265b0;
  --sans: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 1rem; line-height: 1.5; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .54; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--blue); text-underline-offset: .19em; }
a:hover { color: var(--red-hover); }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4 { line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2rem, 3.1vw, 3rem); letter-spacing: -.047em; }
h2 { font-size: clamp(1.24rem, 1.7vw, 1.55rem); letter-spacing: -.036em; }
h3 { font-size: 1.07rem; letter-spacing: -.018em; }
h4 { font-size: .96rem; }
h1,h2,h3,h4,.kpi-value,.metric-strip strong { font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; }
ul,ol { padding-inline-start: 1.3em; }
small,.sub,.meta,.muted { color: var(--sub); }
small,.sub,.meta { font-size: .8125rem; line-height: 1.45; }
.ico { display: inline-block; flex: none; vertical-align: -.17em; }
[hidden], .hidden { display: none !important; }
.sr-only,.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: .5rem; transform: translateY(-180%); background: white; padding: .5rem 1rem; border-radius: .4rem; }
.skip-link:focus { transform: translateY(0); }
.shell { display: grid; grid-template-columns: var(--nav-width) minmax(0,1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--navy); color: #fff; border-right: 1px solid #142e49; z-index: 35; min-width: 0; }
.brand { min-height: 7rem; display: flex; justify-content: center; align-items: center; padding: .15rem 1.1rem; border-bottom: 1px solid rgb(211 232 255 / 17%); flex: none; }
.brand img { width: 10.6rem; height: auto; }
.nav-label { display: block; padding: 1.35rem 1.15rem .55rem; color: #acc0d4; font-size: .745rem; font-weight: 650; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #45617d var(--navy); padding: .25rem .68rem 1rem; }
.nav .nav-label { padding: .9rem .59rem .42rem; }
.nav button,.nav a { color: #dce6f1; border: 0; text-decoration: none; background: transparent; width: 100%; text-align: left; display: flex; align-items: center; gap: .79rem; border-radius: .52rem; font-size: .89rem; font-weight: 500; line-height: 1.3; padding: .68rem .72rem; margin: .13rem 0; min-height: 2.55rem; }
.nav .ico { color: #a6b9ca; stroke-width: 1.7; }
.nav button:hover, .nav a:hover { color: #fff; background: #18344e; }
.nav button.active, .nav a.active,.nav [aria-current="page"] { color: #fff; background: var(--red); font-weight: 650; }
.nav button.active .ico,.nav a.active .ico,.nav [aria-current="page"] .ico { color: #fff; }
.nav button:focus-visible, .sidebar a:focus-visible { outline-color: #fff; }
.side-foot { margin-top: auto; border-top: 1px solid rgb(211 232 255 / 17%); padding: 1rem 1.15rem; display: flex; align-items: center; gap: .66rem; font-size: .82rem; color: #c7d5e4; }
.side-foot small { color: #b1c2d3; }
.side-foot button { color: inherit; background: transparent; border: none; }
.workspace { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border-bottom: 1px solid var(--line); padding: .72rem clamp(1.05rem, 2.9vw, 3.05rem); min-height: 4.1rem; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: .42rem; color: var(--sub); font-size: .865rem; }
.crumb b,.crumb strong { color: var(--ink); font-weight: 650; }
.crumb .ico { color: #8190a1; }
.top-actions,.hero-actions,.toolbar,.actions,.dialog-actions,.chip-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.top-actions { justify-content: flex-end; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; color: #fff; background: var(--navy); font-size: .78rem; font-weight: 700; border: 0; border-radius: 50%; line-height: 1; letter-spacing: .035em; }
.sidebar .avatar { background: #2c455e; color: white; }
.mobile-menu,.scrim { display: none; }
.content { flex: 1; width: 100%; max-width: 112rem; margin: 0 auto; padding: clamp(1.2rem, 2.5vw, 2.7rem) clamp(1.05rem, 2.9vw, 3.05rem) 3rem; }
.content > * + * { margin-top: 1.18rem; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; column-gap: 2rem; row-gap: 1rem; padding: .15rem 0 .55rem; }
.hero > :first-child { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .52rem; margin: 0 0 .55rem; color: var(--red-hover); font-size: .75rem; line-height: 1.3; font-weight: 725; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 1.13rem; height: .16rem; background: var(--red); border-radius: 1rem; }
.lead { margin-top: .47rem; color: var(--sub); font-size: clamp(.96rem, 1.25vw, 1.05rem); line-height: 1.55; max-width: 66ch; }
.hero-actions { align-items: flex-end; justify-content: flex-end; padding-bottom: .12rem; }
.tabs { display: flex; align-items: stretch; gap: .4rem; max-width: 100%; overflow-x: auto; scrollbar-width: thin; padding: .08rem .06rem .23rem; }
.tabs button,.tabs a { color: #253b59; text-decoration: none; flex: 1 0 max-content; text-align: left; border: 1px solid transparent; padding: .68rem .87rem; background: #e6ebf2; border-radius: .44rem; min-height: 2.7rem; font-weight: 600; font-size: .84rem; }
.tabs button:hover,.tabs a:hover { color: var(--ink); background: #dce4ed; }
.tabs button.active,.tabs a.active,.tabs [aria-selected="true"] { background: var(--red); color: white; }
.section-head,.card-head,.filters-head,.dialog-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.2rem; }
.section-head { margin-top: 1.6rem; margin-bottom: .9rem; }
.section-head + .grid,.section-head + .card,.section-head + .table-wrap { margin-top: 0; }
.section-head p,.card-head p,.filters-head p { color: var(--sub); font-size: .88rem; margin-top: .28rem; }
.grid { display: grid; gap: 1rem; }
.grid.kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid > *,.form-grid > *,.filter-grid > * { min-width: 0; }
.card,.kpi,.filters { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--shadow); }
.card,.filters { padding: clamp(1rem, 1.7vw, 1.48rem); }
.card > * + *, .card-body > * + * { margin-top: .9rem; }
.card-head { margin-bottom: .85rem; }
.card-head + .card-body,.card-head + .table-wrap { margin-top: 0; }
.card-head h2,.filters-head h2 { font-size: 1.17rem; }
.card-head h3,.filters-head h3 { font-size: 1.05rem; }
.card-body { min-width: 0; }
.kpi { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: .42rem; padding: 1.12rem 1.18rem; min-height: 8.25rem; overflow-wrap: anywhere; }
.kpi-label { display: flex; align-items: center; gap: .53rem; width: 100%; color: var(--sub); font-weight: 600; font-size: .86rem; line-height: 1.4; }
.kpi-label .ico { color: var(--blue); }
.kpi-value { color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.048em; font-weight: 720; font-size: clamp(1.47rem, 1.9vw, 2.12rem); }
.kpi > .sub { margin-top: auto; }
.kpi.risk .kpi-value,.text-risk { color: #ab153c; }
.kpi.ok .kpi-value,.text-ok { color: var(--green); }
.btn,.link-btn,.mobile-menu { appearance: none; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; border-radius: var(--small-rad); line-height: 1.28; text-decoration: none; white-space: normal; font-weight: 630; }
.btn { padding: .58rem .84rem; min-height: 2.55rem; background: var(--surface); border: 1px solid var(--line-dark); font-size: .88rem; color: var(--ink); }
.btn:not(:disabled):hover { border-color: #92a5bb; background: #f4f7fa; }
.btn.primary,.btn.danger { color: white; background: var(--red); border-color: var(--red); }
.btn.primary:not(:disabled):hover,.btn.danger:not(:disabled):hover { color: #fff; background: var(--red-hover); border-color: var(--red-hover); }
.btn.subtle { background: #f4f6fa; border-color: #e3e8ef; color: var(--ink); }
.btn.small { min-height: 2.12rem; padding: .38rem .66rem; font-size: .81rem; }
.link-btn { background: transparent; color: var(--red-hover); border: 0; padding: .3rem .14rem; font-size: .88rem; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.btn:active,.tabs button:active { transform: translateY(1px); }
.mobile-menu { display: none; border: 1px solid var(--line); color: var(--ink); background: white; width: 2.55rem; height: 2.55rem; padding: .45rem; }
.toolbar { justify-content: flex-start; }
.actions { justify-content: flex-end; }
.filters { background: #fff; }
.filters-head { margin-bottom: .86rem; }
.filter-grid,.form-grid { display: grid; gap: .82rem 1rem; align-items: start; grid-template-columns: repeat(auto-fit,minmax(min(100%,10.5rem),1fr)); }
.form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid .full,.form-grid .wide,.form-grid .span-2, .field.full { grid-column: 1/-1; }
.field { display: flex; flex-direction: column; align-items: stretch; gap: .27rem; min-width: 0; }
.field > label,.field > span:first-child,.filter-grid label,.form-grid label { color: #40536b; font-weight: 635; font-size: .84rem; }
.field small,.field .hint { color: var(--sub); font-size: .795rem; font-weight: 400; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea { width: 100%; min-width: 0; appearance: none; background-color: #fff; color: var(--ink); border: 1px solid #b8c6d6; border-radius: .42rem; font-size: .905rem; font-weight: 450; line-height: 1.35; padding: .55rem .68rem; min-height: 2.55rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,select:focus,textarea:focus { border-color: var(--focus); }
input::placeholder,textarea::placeholder { color: #65758a; opacity: 1; }
select:not([multiple]) { padding-inline-end: 2.1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='m2 2.5 4 4 4-4' fill='none' stroke='%23445570' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right .72rem center; background-repeat: no-repeat; }
select[multiple] { min-height: 4.65rem; padding: .22rem .33rem; }
select[multiple] option { padding: .14rem .32rem; border-radius: .14rem; }
input[type="checkbox"],input[type="radio"],input[type="range"] { accent-color: var(--red); }
input[type="checkbox"],input[type="radio"] { width: 1.03rem; height: 1.03rem; vertical-align: -.13em; }
input[type="file"] { overflow: hidden; }
input::file-selector-button { appearance: none; border: 1px solid var(--line); color: var(--ink); background: #edf2f7; padding: .25rem .58rem; margin-right: .6rem; border-radius: .33rem; font: inherit; cursor: pointer; }
textarea { min-height: 5.5rem; resize: vertical; }
fieldset { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--small-rad); }
legend { font-size: .87rem; font-weight: 650; padding: 0 .3rem; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .55rem; scrollbar-width: thin; background: #fff; }
table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: .88rem; line-height: 1.42; }
th,td { padding: .76rem .82rem; text-align: left; vertical-align: middle; }
thead th { font-weight: 700; font-size: .745rem; letter-spacing: .035em; text-transform: uppercase; color: #51647b; background: #f2f5f9; white-space: nowrap; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: #fcfdfe; }
tbody tr:hover { background: #f6f8fb; }
td strong { font-weight: 660; }
td .btn,td select,td .badge { white-space: nowrap; }
td.actions { display: table-cell; }
td.actions .btn + .btn { margin-left: .25rem; }
table .num, .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.badge,.chip { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; border-radius: 999px; padding: .26rem .57rem; color: #40556f; background: #eef2f7; font-size: .775rem; font-weight: 660; line-height: 1.22; letter-spacing: .004em; }
.badge.ok,.badge.green { color: #126447; background: #e5f4eb; }
.badge.warn,.badge.amber { color: #805015; background: #fff1d9; }
.badge.risk,.badge.red { color: #aa163d; background: #fce9ee; }
.badge.muted { color: #546175; background: #edf0f4; }
.badge.blue { color: #2f5593; background: #e8effa; }
.badge .ico,.chip .ico { width: .86rem; height: .86rem; }
.empty { display: grid; justify-items: center; align-content: center; gap: .46rem; padding: 1.45rem 1rem; min-height: 5.6rem; color: var(--sub); text-align: center; font-size: .91rem; border-radius: var(--small-rad); }
.empty .ico { color: #768ba4; }
.notice,.client-banner { display: block; border: 1px solid #d4dfed; border-left: .25rem solid #456e9d; border-radius: .55rem; background: #eef3f9; color: #28405d; padding: .86rem 1.02rem; font-size: .92rem; }
.notice strong,.client-banner strong { color: var(--ink); }
.notice p + p,.client-banner p + p { margin-top: .36rem; }
.notice.risk,.notice.error { border-color: #edccd4; border-left-color: #b32646; color: #84243b; background: #fef0f3; }
.notice.warn { border-color: #e7d9b9; border-left-color: #a36d14; color: #6a4b1a; background: #fff6e5; }
.notice.ok { border-color: #cbdfd3; border-left-color: var(--green); color: #1e5845; background: #f0f8f3; }
.client-banner { border-left-color: var(--red); background: #fff; }
.bar-row { display: grid; grid-template-columns: minmax(5.8rem,1fr) minmax(3rem,2.35fr) minmax(3.4rem,auto); align-items: center; gap: .8rem; padding: .42rem 0; font-size: .84rem; }
.bar-row > :last-child { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.bar-track { height: .52rem; border-radius: 9rem; overflow: hidden; background: #e8edf4; }
.bar-fill { height: 100%; display: block; background: var(--red); border-radius: inherit; }
.donut { position: relative; isolation: isolate; display: grid; place-items: center; flex: none; width: clamp(7rem,10vw,10.7rem); aspect-ratio: 1; border-radius: 50%; background: var(--segments,#e5ebf2); }
.donut::before { content: ""; position: absolute; z-index: -1; inset: 18%; border-radius: 50%; background: white; }
.donut > * { z-index: 1; }
.legend { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; font-size: .85rem; }
.legend > li,.legend-row { display: flex; align-items: center; gap: .45rem; }
.legend strong,.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend .dot,.swatch { width: .65rem; height: .65rem; display: inline-block; border-radius: .16rem; flex: none; }
.metric-strip { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.3rem,3vw,2.9rem); padding: .65rem 0; }
.metric-strip > * { min-width: 0; }
.metric-strip strong { display: block; font-size: 1.28rem; letter-spacing: -.03em; }
.trail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9rem,1fr); gap: .63rem; overflow-x: auto; padding: .38rem .06rem .75rem; scrollbar-width: thin; scrollbar-color: #adbbcb #edf2f7; scroll-snap-type: x proximity; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .53rem; min-width: 0; padding: .8rem .67rem; border: 1px solid #d4deea; border-radius: .66rem; background: #fff; scroll-snap-align: start; isolation: isolate; font-size: .84rem; }
.step::after { content: ""; position: absolute; top: 1.65rem; left: 2.55rem; width: calc(100% - 2.75rem); height: 2px; background: #d8e1ee; z-index: -1; }
.step:last-child::after { display: none; }
.step-num { display: inline-grid; place-items: center; flex: none; width: 1.73rem; height: 1.73rem; border-radius: 50%; color: #4a607a; border: 1px solid #bbc9d9; font-weight: 720; font-size: .82rem; background: #f3f6fa; }
.step.done .step-num { background: #e1f3e9; color: var(--green); border-color: #aed0be; }
.step.done::after { background: #a5cbbb; }
.step.current .step-num { border-color: #6387b3; color: #224f82; background: #eaf2fb; }
.step.blocked { border-color: #e2bac6; }
.step.blocked .step-num { color: #9f1740; background: #fce9ee; border-color: #dfa4b6; }
.step strong,.step h3,.step h4 { font-size: .91rem; line-height: 1.32; min-height: 2.42em; }
.step select { width: 100%; min-height: 2.15rem; padding: .37rem 1.54rem .37rem .38rem; font-size: .78rem; background-position: right .35rem center; }
.step textarea { min-height: 3.8rem; padding: .38rem .45rem; font-size: .78rem; }
.step label { display: block; width: 100%; font-size: .76rem; color: var(--sub); }
dialog,.modal { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 24px 85px rgb(9 28 51 / 26%); width: min(44rem, calc(100vw - 2rem)); padding: 0; max-height: min(88vh,58rem); max-height: min(88dvh,58rem); overflow: auto; }
dialog::backdrop { background: rgb(12 32 52 / 52%); }
.dialog-head,.dialog-body,.dialog-actions { padding: 1.05rem clamp(1rem,2.7vw,1.5rem); }
.dialog-head { border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.35rem; }
.dialog-body > * + * { margin-top: .9rem; }
.dialog-actions { justify-content: flex-end; border-top: 1px solid var(--line); background: #f8fafc; }
dialog .close, .icon-btn { border: 1px solid var(--line); border-radius: var(--small-rad); color: var(--ink); background: #fff; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: .3rem; }
.toast { position: fixed; z-index: 110; right: 1.1rem; bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; max-width: min(30rem,calc(100vw - 2rem)); padding: .75rem 1rem; border: 1px solid #284059; border-radius: .58rem; background: var(--navy); color: #fff; box-shadow: 0 6px 24px rgb(12 33 56 / 20%); font-size: .91rem; }
.toast:empty { display: none; }
.toast.error,.toast.risk { background: #8f1737; border-color: #7d1532; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(17rem,.95fr) minmax(23rem,1.2fr); background: #fff; }
.login-brand { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.15rem; padding: clamp(2rem,6vw,7rem); color: #f6faff; background: var(--navy); }
.login-brand img { width: min(65%,13.5rem); height: auto; }
.login-brand h1 { max-width: 13ch; }
.login-brand p,.login-brand .sub,.login-brand .lead { color: #c4d1de; }
.login-brand .eyebrow { color: #e6d3db; }
.login-panel { align-self: center; justify-self: center; width: min(100%,33rem); display: grid; gap: 1.05rem; padding: clamp(1.5rem,3.6vw,3.25rem); }
.login-panel form { display: grid; align-items: start; gap: .91rem; }
.login-panel .btn.primary { min-height: 2.8rem; }
@media (min-width: 1550px) {
  .trail { grid-auto-columns: minmax(9.7rem,1fr); }
}
@media (max-width: 1120px) {
  :root { --nav-width: 13.3rem; }
  .nav button,.nav a { gap: .6rem; font-size: .855rem; }
  .grid.kpis { gap: .65rem; }
  .kpi { padding: .9rem; min-height: 7.6rem; }
  .kpi-value { font-size: 1.58rem; }
  .grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(18rem,86vw); transform: translateX(-102%); visibility: hidden; transition: transform .15s ease, visibility .15s; }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .scrim { display: none; position: fixed; inset: 0; z-index: 30; padding: 0; background: rgb(9 26 45 / 48%); border: 0; border-radius: 0; }
  .nav-open .scrim { display: block; }
  .mobile-menu { display: inline-flex; flex: none; }
  .topbar { min-height: 3.7rem; padding-block: .53rem; gap: .65rem; }
  .topbar > .crumb { flex: 1; }
  .topbar .mobile-menu + .crumb { margin-right: auto; }
  .top-actions { gap: .45rem; }
}
@media (max-width: 670px) {
  .content { padding-inline: .88rem; padding-top: 1.18rem; }
  .content > * + * { margin-top: .86rem; }
  .topbar { padding-inline: .88rem; }
  .crumb { font-size: .77rem; gap: .24rem; }
  .hero { align-items: flex-start; padding: 0; }
  .hero-actions { justify-content: flex-start; align-items: center; }
  .tabs { margin-inline-end: -.2rem; }
  .tabs button,.tabs a { padding: .61rem .72rem; }
  .grid.kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .grid.two,.grid.three { grid-template-columns: minmax(0,1fr); }
  .kpi { min-height: 7.4rem; padding: .83rem; }
  .kpi-label { font-size: .78rem; }
  .kpi-value { font-size: clamp(1.34rem,5.2vw,1.82rem); }
  .kpi .sub { font-size: .77rem; }
  .card,.filters { padding: .97rem; }
  .filter-grid,.form-grid { gap: .68rem; }
  .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-head { margin-top: 1.25rem; }
  .bar-row { gap: .46rem; }
  .top-actions > .badge { display: none; }
  .login { grid-template-columns: minmax(0,1fr); align-content: start; }
  .login-brand { padding: 1rem 1.4rem 1.45rem; gap: .55rem; }
  .login-brand img { width: 7.9rem; }
  .login-brand h1 { max-width: 100%; font-size: 1.7rem; }
  .login-panel { padding: 1.5rem; }
}
@media (max-width: 430px) {
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .toolbar,.actions { gap: .38rem; }
  .btn { padding-inline: .64rem; }
  .section-head { align-items: flex-start; }
  .empty { padding: 1rem .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
@media print {
  @page { margin: 12mm; size: A4 landscape; }
  body,.workspace,.content { background: #fff !important; color: #101b2c; }
  .shell,.workspace { display: block; }
  .sidebar,.topbar,.tabs,.filters,.hero-actions,.toolbar,.actions,.dialog-actions,.link-btn,.mobile-menu,.scrim,.toast,dialog,.no-print,.print-hide { display: none !important; }
  .btn,button { display: none !important; }
  .content { padding: 0; margin: 0; max-width: none; }
  .content > * + * { margin-top: .65rem; }
  .hero { margin-bottom: .8rem; }
  h1 { font-size: 1.6rem; }
  h2,h3,.section-head,.card-head { break-after: avoid; }
  .card,.kpi,.filters { box-shadow: none; border-color: #cfd7de; }
  .card,.kpi,.grid,.metric-strip { break-inside: auto; }
  .kpi,.bar-row,.step,tr { break-inside: avoid; }
  .table-wrap,.tabs,.trail { overflow: visible; }
  .grid.kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trail { grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-flow: row; grid-auto-columns: auto; }
  .trail input,.trail select,.trail textarea { border: 0; background: white; }
  .kpi { min-height: 5.4rem; }
  .bar-fill,.bar-track,.donut,.badge,.chip,.step-num,.eyebrow::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  thead { display: table-header-group; }
  th,td { font-size: 8.5pt; padding: .36rem .48rem; }
}
