/* SentinelTrade — precision trading workspace. No external assets or fonts. */
:root {
  --bg: #05080d; --bg-elevated: #080d14; --panel: #0b111a; --panel-raised: #0f1722;
  --panel-hover: #121e2a; --text: #f3f7fb; --muted: #8795a8; --muted-strong: #a8b5c5;
  --line: #1b2837; --line-strong: #293b4d; --accent: #00c8ff; --accent-text: #00151d;
  --accent-hover: #43d7ff; --soft: #082330; --good: #66e0ad; --bad: #ff7f92; --warn: #f3bd68;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px;
  --shadow: 0 18px 50px rgb(0 0 0 / .24); --glow: 0 0 32px color-mix(in srgb, var(--accent) 10%, transparent);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 82% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28rem), var(--bg);
  color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: var(--accent); }
a.theme-link { color: var(--accent); font-weight: 650; white-space: nowrap; }
a.theme-link:hover { color: var(--accent-hover); }
button, select, input, textarea { font: inherit; }
button, select, a { touch-action: manipulation; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-text); font-weight: 750; transform: translateY(-150%); }
.skip-link:focus { color: var(--accent-text); transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.menu-toggle { display: none; }

button, .button-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--panel-raised), var(--panel)); color: var(--text); font-weight: 650;
  transition: transform .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button-link { gap: 8px; }
button:hover, .button-link:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--text); box-shadow: var(--glow); }
button:active, .button-link:active { transform: translateY(1px); }
button.primary, .button-link.primary { border-color: var(--accent); background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: var(--accent-text); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 18%, transparent); }
button.primary:hover, .button-link.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--accent-text); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 26%, transparent); }
button:disabled { cursor: default; opacity: .42; transform: none; box-shadow: none; }
button.danger, .danger { color: var(--bad); }
input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 76%, var(--panel)); color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--line-strong) 55%, var(--muted)); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--bg-elevated); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }

/* Application frame */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.shell > aside, .shell > aside.sidebar {
  position: sticky; z-index: 20; top: 0; display: flex; flex-direction: column; gap: 20px; height: 100vh;
  padding: 18px 14px 14px; overflow-y: auto; border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); box-shadow: 12px 0 36px rgb(0 0 0 / .12);
}
/* `flex: none` is load-bearing: the sidebar is a flex column of exactly 100vh, so a shrinkable
 * brand block is squeezed below the height of its own 132 px logo as soon as the navigation
 * outgrows the viewport - the logo then overflows and the border-bottom cuts through it. */
.brand { display: flex; flex: none; align-items: center; justify-content: center; padding: 0 8px 14px; border-bottom: 1px solid var(--line); }
.brand-logo { display: block; width: 132px; height: auto; max-width: 100%; }
.eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.shell > aside > .eyebrow { padding: 0 10px; }
.nav-group { display: grid; gap: 4px; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-group-label { margin: 0 10px 5px; color: color-mix(in srgb, var(--muted) 76%, transparent); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.shell > aside > nav { display: grid; gap: 4px; }
.shell > aside > nav a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted-strong); font-size: 13px; font-weight: 560; }
.shell > aside > nav a:hover { border-color: color-mix(in srgb, var(--line) 74%, var(--accent)); background: var(--panel-hover); color: var(--text); }
.shell > aside > nav a.active { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 15%, var(--panel)), color-mix(in srgb, var(--panel) 95%, transparent)); color: var(--accent); box-shadow: inset 2px 0 var(--accent), var(--glow); }
.nav-icon { display: inline-grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; color: currentColor; opacity: .88; }
.nav-icon > svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-label { min-width: 0; overflow-wrap: anywhere; }
/* C05b-05 (UI-16, UI-17): der kritische Zaehler der Navigation und seine Zeilen. */
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 800; text-align: center; }
.pill.critical { border-color: var(--bad); font-weight: 800; }
tr.critical th[scope="row"], tr.critical td { color: var(--bad); }
tr.critical th[scope="row"] { box-shadow: inset 3px 0 var(--bad); }
.command-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.command-bar button[disabled] { opacity: .55; cursor: not-allowed; }
.aside-bottom { display: grid; gap: 10px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.aside-bottom > a { color: var(--muted); font-size: 12px; }
.avatar { display: inline-grid; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 11px; font-weight: 800; place-items: center; }

.workspace { display: flex; min-width: 0; flex-direction: column; }
.shell > .workspace > header { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 12px clamp(20px, 3vw, 42px); gap: 18px; border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent); background: color-mix(in srgb, var(--bg) 82%, transparent); box-shadow: 0 12px 32px rgb(0 0 0 / .12); backdrop-filter: blur(18px); }
.workspace-header { flex-wrap: wrap; }
.header-context { display: grid; gap: 1px; min-width: 0; }
.header-context > * { margin: 0; }
.header-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-status { display: flex; align-items: center; gap: 9px; color: var(--muted); flex-wrap: wrap; }
.shell > .workspace > main { flex: 1; width: 100%; max-width: 1720px; padding: clamp(26px, 4vw, 52px) clamp(20px, 3vw, 42px); }
.shell > .workspace > footer.footnote { padding: 15px clamp(20px, 3vw, 42px); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

/* Type and page hierarchy */
h1, h2, h3 { margin-top: 0; font-family: inherit; color: var(--text); }
h1 { margin-bottom: 8px; font-size: clamp(30px, 3vw, 42px); font-weight: 720; letter-spacing: -.045em; line-height: 1.08; }
h2 { margin-bottom: 0; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
h3 { margin-bottom: 8px; font-size: 14px; font-weight: 680; }
p { margin: 6px 0 18px; }
.muted, small { color: var(--muted); }
small { font-size: 11px; }
b, strong { font-weight: 680; }
.page-title { margin-bottom: 30px; }
.page-title > div:first-child { min-width: 0; }
.page-title .eyebrow, .section-kicker { margin-bottom: 8px; color: var(--accent); }
.page-title p { max-width: 72ch; margin: 10px 0 0; color: var(--muted); }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.dashboard-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.channel-name { color: var(--text); font-weight: 680; }
.dashboard-note { color: var(--muted); font-size: 12px; }

/* Status */
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--panel-raised) 74%, transparent); color: var(--muted-strong); font-size: 10px; font-weight: 750; letter-spacing: .025em; line-height: 1.2; }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.mode { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--soft); color: var(--accent); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--warn) 22%, var(--line)); border-left: 3px solid var(--warn); border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 6%, var(--panel)); box-shadow: 0 8px 24px rgb(0 0 0 / .1); flex-wrap: wrap; }

/* C-04 (UI-73, UI-83): der eine Zustandsstreifen jeder Seite. Die Farbe ist die Zugabe -
   Zustand, Zeichen und Text stehen im Markup, damit die Aussage auch ohne Farbe ankommt. */
.state-banner { margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: var(--radius); background: var(--panel); font-size: 12px; }
.state-banner.good { border-left-color: var(--good); }
.state-banner.warn { border-left-color: var(--warn); }
.state-banner.bad { border-left-color: var(--bad); }
.state-banner .row { gap: 8px; flex-wrap: wrap; }
.state-reasons { margin: 8px 0 0; padding-left: 18px; color: var(--muted-strong); }
.state-reasons li { margin: 2px 0; }
.control-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Cards, dashboard and metrics */
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, color-mix(in srgb, var(--panel-raised) 78%, var(--panel)), var(--panel)); box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.master-detail.dashboard-grid { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.5fr); margin-bottom: 18px; }
.dashboard-grid > .card + .card { margin-top: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { position: relative; min-height: 138px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--panel-raised), var(--panel)); box-shadow: 0 14px 36px rgb(0 0 0 / .18); }
.metric::after { position: absolute; right: -40px; bottom: -65px; width: 130px; height: 130px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 4%, transparent); content: ""; filter: blur(4px); }
.metric:first-child { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow), var(--glow); }
.metric:first-child::before { position: absolute; top: 20px; right: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); content: ""; }
.metric-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-index { color: color-mix(in srgb, var(--accent) 60%, var(--muted)); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .1em; }
.metric .value { position: relative; z-index: 1; margin: 11px 0 5px; color: var(--text); font-size: clamp(27px, 2.5vw, 34px); font-variant-numeric: tabular-nums; font-weight: 720; letter-spacing: -.045em; line-height: 1.1; }
.metric:first-child .value { color: var(--accent); }
.metric .value.good { color: var(--good); }
.metric .value.warn { color: var(--warn); }
.metric .value.bad { color: var(--bad); }
.metric .value span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.metric-label { position: relative; z-index: 1; color: var(--muted); font-size: 11px; }

/* Master detail */
.master-detail { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 20px; align-items: start; }
.master { align-self: start; padding: 0; overflow: hidden; }
.master-head { padding: 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel-raised) 88%, var(--panel)); }
.master-item { display: block; width: 100%; padding: 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: inherit; text-align: left; box-shadow: none; }
.master-item:last-child { border-bottom: 0; }
.master-item:hover { border-color: var(--line); background: var(--panel-hover); box-shadow: none; }
.master-item.active { background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel)); box-shadow: inset 3px 0 var(--accent); }
.master-item.active b { color: var(--accent); }
.master-item p { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.master-item small { font-size: 10px; }
.detail { display: grid; gap: 18px; min-width: 0; }
.detail > .card:first-child { padding: 24px; border-top-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.prepared-label-image { display: block; max-width: 100%; height: auto; margin-top: 12px; }
.prepared-label-layout > *, .prepared-label-layout input, .prepared-label-layout select, .prepared-label-layout textarea { min-width: 0; max-width: 100%; }
.prepared-label-layout code, .prepared-label-layout small { overflow-wrap: anywhere; }
.prepared-label-form { display: grid; gap: 18px; min-width: 0; }
.prepared-label-form > label { display: grid; gap: 6px; }
.prepared-label-form > label.check { display: flex; align-items: center; }
.quote { margin: 18px 0 24px; padding: 20px; overflow-wrap: anywhere; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 80%, var(--panel)); font-size: 18px; line-height: 1.7; white-space: pre-wrap; }
.field { display: flex; justify-content: space-between; gap: 18px; margin: 12px 0; font-size: 12px; }
.field b { min-width: 0; overflow-wrap: anywhere; text-align: right; font-variant-numeric: tabular-nums; }
.validation { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.validation:last-child { border-bottom: 0; }
.timeline { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 11px; }
.timeline b { display: block; margin-bottom: 5px; }

/* Tables */
.table-wrap { margin: 0 -8px; overflow-x: auto; scrollbar-color: var(--line-strong) transparent; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg-elevated) 76%, var(--panel)); color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; }
td small { display: block; } td button { min-height: 30px; padding: 4px 9px; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
tr:last-child td { border-bottom: 0; }
.fields caption { padding: 0 0 10px; color: var(--muted); font-size: 11px; text-align: left; }
.fields th[scope="row"] { border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; text-transform: none; }
.fields tr.bad th[scope="row"], .fields tr.bad td { color: var(--bad); font-weight: 680; }
.fields td small { color: var(--muted); }

/* Controls and utilities */
.actions, .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.filters label { display: grid; gap: 6px; color: var(--muted-strong); font-size: 11px; font-weight: 600; }
.pagination { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
details { margin: 12px 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bg) 55%, transparent); }
summary { cursor: pointer; color: var(--muted-strong); font-weight: 600; }
pre { margin: 10px 0 0; overflow-x: auto; overflow-wrap: anywhere; font-size: 11px; white-space: pre-wrap; }
code, pre, .secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
code { color: color-mix(in srgb, var(--accent) 76%, var(--text)); }
.secret { overflow-wrap: anywhere; font-size: 16px; letter-spacing: 2px; }
.code-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { display: block; width: 148px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-raised); }
.thumb img { display: block; width: 100%; height: 100px; object-fit: cover; }
.thumb small { display: block; padding: 6px 8px; }
.thumb-small { display: block; width: 96px; height: 54px; border: 1px solid var(--line); border-radius: 6px; object-fit: cover; }
.diff-ins { color: var(--good); text-decoration: underline; } .diff-del { color: var(--bad); text-decoration: line-through; }
.error-text { color: var(--bad); } .hidden { display: none !important; }
dialog { width: calc(100% - 32px); max-width: 540px; padding: 26px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(5px); }
dialog h2 { margin-bottom: 17px; font-size: 22px; }

/* Authentication */
body.auth { display: grid; min-height: 100vh; padding: 24px; place-items: center; }
body.auth::before { position: fixed; z-index: -1; inset: 0; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28rem); content: ""; }
.auth-shell { width: 100%; max-width: 440px; }
.auth-shell > .auth-card { display: grid; gap: 16px; padding: clamp(24px, 6vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--panel-raised) 86%, transparent), var(--panel)); box-shadow: 0 28px 80px rgb(0 0 0 / .4), var(--glow); }
.auth-shell > .auth-card > .brand { justify-content: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-shell > .auth-card > .brand .brand-logo { width: 154px; }
.auth-shell form.auth-card { display: grid; gap: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-card label { display: grid; gap: 6px; color: var(--muted-strong); font-size: 12px; font-weight: 600; }
.auth-card .actions button { width: 100%; }

@media (max-width: 1200px) {
  .shell { grid-template-columns: 214px minmax(0, 1fr); }
  .brand-logo { width: 124px; }
  .master-detail { grid-template-columns: 248px minmax(0, 1fr); }
  .master-detail.dashboard-grid, .detail-columns { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .shell > aside, .shell > aside.sidebar { position: static; z-index: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0; height: auto; max-height: none; padding: 6px 16px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgb(0 0 0 / .22); }
  .shell > aside > .brand { justify-content: flex-start; min-height: 48px; padding: 0; border: 0; }
  .shell > aside > .brand .brand-logo { width: 48px; }
  .menu-toggle:not([hidden]) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; }
  .menu-bar { width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  .menu-open .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-bar:nth-child(2) { opacity: 0; }
  .menu-open .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .shell > aside > nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
  .shell > aside > nav .nav-group { display: grid; align-content: start; gap: 3px; margin: 0; }
  .nav-group-label { margin: 0 10px 5px; }
  .shell > aside > .eyebrow { display: none; }
  .navigation-ready .sidebar:not(.menu-open) > #sidebar-navigation,
  .navigation-ready .sidebar:not(.menu-open) > .aside-bottom { display: none; }
  .aside-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 0; padding: 12px 0 6px; border-top: 1px solid var(--line); }
  .aside-bottom .row { min-width: 0; }
  .aside-bottom small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .aside-bottom small { line-height: 1.4; }
  .aside-bottom button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
  .shell > aside > nav a { min-height: 36px; padding: 7px 10px; font-size: 12px; }
  .nav-icon { width: 16px; height: 16px; flex-basis: 16px; } .nav-icon > svg { width: 16px; height: 16px; }
  .shell > .workspace > header { position: static; min-height: 0; padding: 8px 16px; backdrop-filter: none; }
  .header-context { display: none; }
  .header-status { gap: 5px; }
  .header-status .pill { font-size: 9px; min-height: 20px; padding: 3px 6px; }
  .shell > .workspace > main { padding: 24px 16px 36px; }
  .shell > .workspace > footer.footnote { padding: 14px 16px; }
  .page-title { margin-bottom: 24px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  h1 { font-size: 30px; } .master-detail { grid-template-columns: 1fr; }
  .metric { min-height: 124px; padding: 18px; }
  .detail > .card:first-child, .card { padding: 18px; } .actions { gap: 7px; }
}
@media (max-width: 480px) {
  body { font-size: 13px; }
  .metrics { grid-template-columns: 1fr; gap: 10px; } .metric { min-height: 112px; } .metric .value { font-size: 28px; }
  .quote { padding: 15px; font-size: 16px; } .master-item { padding: 15px; } .timeline { flex-wrap: wrap; }
  .card { padding: 16px; border-radius: 13px; } .filters { grid-template-columns: 1fr; }
  .field { align-items: flex-start; flex-direction: column; gap: 3px; } .field b { text-align: left; }
  .header-context small { display: none; }
}
@media (max-width: 360px) {
  .shell > aside, .shell > aside.sidebar { padding-inline: 10px; }
  .shell > .workspace > main, .shell > .workspace > header { padding-inline: 12px; }
  .nav-label { max-width: 108px; } h1 { font-size: 27px; } button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
