:root {
  color-scheme: dark;
  --bg: #080d16;
  --panel: #0d1623;
  --panel-2: #101d2d;
  --panel-3: #142338;
  --line: rgba(150, 179, 212, .14);
  --line-strong: rgba(150, 179, 212, .24);
  --ink: #f2f6fb;
  --muted: #91a1b7;
  --muted-2: #657990;
  --teal: #6fe6c5;
  --teal-dark: #143e3d;
  --blue: #80b7ff;
  --amber: #ffca80;
  --rose: #ff8093;
  --green: #7de2bd;
  --sidebar: 250px;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .22);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; transform: translateY(-150%); border-radius: 9px; background: var(--teal); color: #071516; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: var(--sidebar); flex: 0 0 var(--sidebar); display: flex; flex-direction: column; min-height: 100vh; padding: 24px 15px 15px; background: linear-gradient(180deg, #0b1421 0%, #0a111c 100%); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 25px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; color: #e7f4ff; border: 1px solid rgba(111, 230, 197, .24); background: linear-gradient(145deg, rgba(111,230,197,.14), rgba(128,183,255,.06)); border-radius: 13px; box-shadow: inset 0 1px rgba(255,255,255,.06); }
.brand-mark svg { width: 36px; height: 36px; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name { font-size: 21px; line-height: 1.15; font-weight: 740; letter-spacing: -.7px; }
.brand-name span { color: var(--teal); }
.brand-subtitle { color: #778ca5; font-size: 8px; font-weight: 760; letter-spacing: 1.45px; white-space: nowrap; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; padding: 11px 10px; margin-bottom: 27px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.workspace-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #17283a; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .4px; }
.workspace-copy { display: flex; flex-direction: column; line-height: 1.4; gap: 2px; min-width: 0; flex: 1; }
.workspace-copy b { font-size: 11px; font-weight: 720; }
.workspace-copy small { color: var(--muted); font-size: 10px; }
.status-dot, .live-dot, .footer-dot, .environment-pulse { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(111,230,197,.1); }
.nav-section-label { padding: 0 12px 10px; color: #6e819a; font-size: 9px; letter-spacing: 1.55px; font-weight: 800; }
.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; min-height: 44px; border: 1px solid transparent; border-radius: 10px; color: #96a5b9; background: transparent; text-align: left; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; font-size: 12px; font-weight: 620; }
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.035); }
.nav-item:focus-visible, .btn:focus-visible, .icon-button:focus-visible, .mini-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-item.is-active { color: #ecfbf8; background: linear-gradient(100deg, rgba(111,230,197,.12), rgba(111,230,197,.035)); border-color: rgba(111,230,197,.15); box-shadow: inset 2px 0 var(--teal); }
.nav-icon { display: grid; place-items: center; width: 18px; height: 18px; color: #71869f; flex: 0 0 18px; }
.nav-icon svg { width: 17px; height: 17px; }
.nav-item.is-active .nav-icon { color: var(--teal); }
.nav-arrow { margin-left: auto; color: var(--teal); font-size: 20px; line-height: 1; opacity: .85; }
.nav-count { margin-left: auto; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: rgba(255, 128, 147, .12); color: var(--rose); font-size: 10px; font-weight: 800; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.environment-card { padding: 14px 13px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(19,41,54,.78), rgba(13,22,35,.8)); }
.environment-head { display: flex; align-items: center; gap: 8px; color: #9bb0c4; font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.environment-pulse { width: 5px; height: 5px; }
.environment-card p { margin: 10px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.mini-link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid rgba(111,230,197,.17); border-radius: 8px; background: rgba(111,230,197,.06); color: #9debd7; font-size: 10px; font-weight: 740; cursor: pointer; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 17px 7px 4px; color: #647790; font-size: 9px; }
.tiny-shield { color: var(--teal); font-size: 18px; }
.app-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 68px; min-height: 68px; padding: 0 clamp(20px, 3.1vw, 46px); border-bottom: 1px solid var(--line); background: rgba(8,13,22,.86); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 8; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #73859c; font-size: 11px; }
.crumb-sep { color: #3d5066; }
.breadcrumb strong { color: #dce6f3; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.mode-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(111,230,197,.19); background: rgba(111,230,197,.06); border-radius: 999px; padding: 7px 10px; color: #a1e9d7; font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.mode-chip .live-dot { width: 5px; height: 5px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: #a0b4c9; background: rgba(255,255,255,.025); transition: color .18s, border-color .18s; }
.icon-button:hover { color: var(--teal); border-color: rgba(111,230,197,.3); }
.icon-button svg { width: 17px; height: 17px; }
.operator-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(128,183,255,.2); border-radius: 11px; background: #18273c; color: #bfd5f5; font-size: 10px; font-weight: 850; }
.view-root { width: 100%; max-width: 1640px; margin: 0 auto; padding: 28px clamp(20px, 3.1vw, 46px) 42px; flex: 1; outline: none; }
.loading-state { min-height: 55vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(111,230,197,.18); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px clamp(20px, 3.1vw, 46px) 17px; border-top: 1px solid var(--line); color: #62758d; font-size: 9px; letter-spacing: .05px; }
.app-footer > span:last-child { display: flex; align-items: center; gap: 8px; }
.footer-dot { width: 5px; height: 5px; box-shadow: none; }
.view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--teal); font-size: 9px; letter-spacing: 1.55px; font-weight: 850; text-transform: uppercase; }
.eyebrow .line { display: inline-block; width: 24px; height: 1px; background: var(--teal); opacity: .7; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.35px; }
.page-title { margin: 0; font-size: clamp(25px, 2.35vw, 35px); line-height: 1.14; letter-spacing: -1.05px; font-weight: 760; }
.page-description { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.header-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 39px; border: 1px solid transparent; border-radius: 9px; padding: 0 15px; background: var(--teal); color: #071a1a; font-size: 11px; font-weight: 820; cursor: pointer; box-shadow: 0 4px 18px rgba(111,230,197,.08); transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; }
.btn-secondary { background: #152237; color: #d2dfed; border-color: var(--line-strong); box-shadow: none; }
.btn-secondary:hover { border-color: rgba(111,230,197,.25); }
.btn-ghost { background: transparent; color: #9eb1c6; border-color: var(--line); box-shadow: none; }
.btn-danger { color: #2c0c15; background: var(--rose); }
.btn-small { min-height: 32px; padding: 0 11px; font-size: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.hero-panel { position: relative; overflow: hidden; display: flex; min-height: 300px; align-items: center; padding: clamp(25px,3.3vw,46px); border: 1px solid rgba(128,183,255,.18); border-radius: 20px; background: #0c1b2b; box-shadow: var(--shadow); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: url('./assets/omni-ledger-cover.png'); background-size: cover; background-position: center right; opacity: .82; }
.hero-panel::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,15,27,.98) 0%, rgba(8,15,27,.90) 32%, rgba(8,15,27,.45) 63%, rgba(8,15,27,.1) 100%), linear-gradient(0deg, rgba(8,15,27,.38), transparent 44%); }
.hero-copy { max-width: 690px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(111,230,197,.23); border-radius: 8px; background: rgba(7,19,27,.6); color: #b9f5e7; font-size: 8px; font-weight: 860; letter-spacing: 1.1px; }
.hero-kicker .live-dot { width: 5px; height: 5px; }
.hero-panel h1 { max-width: 680px; margin: 17px 0 12px; font-size: clamp(32px, 3.5vw, 52px); line-height: 1.03; font-weight: 780; letter-spacing: -1.9px; }
.hero-panel h1 .accent { color: var(--teal); }
.hero-panel p { max-width: 570px; margin: 0 0 21px; color: #a8bbd0; font-size: 12px; line-height: 1.82; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trustline { display: flex; align-items: center; gap: 8px 15px; flex-wrap: wrap; margin-top: 20px; color: #93a6bc; font-size: 9px; }
.hero-trustline span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trustline svg { width: 12px; height: 12px; color: var(--teal); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 27px 0 13px; }
.section-heading h2 { margin: 0; color: #e7eef7; font-size: 14px; font-weight: 730; letter-spacing: -.25px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.section-link { padding: 4px; border: 0; background: transparent; color: #9ee7d4; font-size: 10px; font-weight: 700; cursor: pointer; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi-card { position: relative; overflow: hidden; padding: 16px 17px 14px; min-height: 123px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(155deg, rgba(17,30,46,.95), rgba(12,21,34,.92)); }
.kpi-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -45px; top: -45px; border-radius: 50%; background: var(--accent, var(--teal)); opacity: .06; filter: blur(2px); }
.kpi-label { display: flex; align-items: center; gap: 8px; color: #8fa2b9; font-size: 10px; font-weight: 620; }
.kpi-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(111,230,197,.15); border-radius: 8px; color: var(--accent, var(--teal)); background: rgba(111,230,197,.055); }
.kpi-icon svg { width: 14px; height: 14px; }
.kpi-value { margin-top: 14px; color: #f3f7fc; font-size: clamp(22px, 2vw, 29px); line-height: 1; letter-spacing: -.7px; font-weight: 780; }
.kpi-note { margin-top: 8px; color: #70839c; font-size: 9px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .85fr); gap: 14px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(16,29,45,.97), rgba(11,19,31,.97)); box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 18px 14px; border-bottom: 1px solid var(--line); }
.panel-heading { display: flex; flex-direction: column; gap: 4px; }
.panel-heading h2, .panel-heading h3 { margin: 0; color: #e8eff8; font-size: 12px; font-weight: 740; letter-spacing: -.2px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 18px; }
.subtle-label { color: #70849c; font-size: 8px; font-weight: 850; letter-spacing: 1.3px; text-transform: uppercase; }
.state-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 8px; color: #aec1d5; font-size: 8px; font-weight: 850; letter-spacing: .6px; white-space: nowrap; }
.state-pill::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.state-pill.ok { color: var(--green); border-color: rgba(125,226,189,.21); background: rgba(125,226,189,.06); }
.state-pill.blocked { color: var(--rose); border-color: rgba(255,128,147,.2); background: rgba(255,128,147,.06); }
.state-pill.warn { color: var(--amber); border-color: rgba(255,202,128,.2); background: rgba(255,202,128,.06); }
.activity-list { display: flex; flex-direction: column; }
.activity-row { display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: start; gap: 11px; padding: 12px 0; border-bottom: 1px solid rgba(150,179,212,.08); }
.activity-row:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--teal); border: 1px solid rgba(111,230,197,.13); background: rgba(111,230,197,.045); }
.activity-icon svg { width: 13px; height: 13px; }
.activity-icon.danger { color: var(--rose); border-color: rgba(255,128,147,.15); background: rgba(255,128,147,.05); }
.activity-row b { display: block; color: #d8e4f2; font-size: 10px; font-weight: 700; }
.activity-row p { margin: 3px 0 0; color: #8194aa; font-size: 9px; line-height: 1.55; }
.activity-time { color: #60738b; white-space: nowrap; font-size: 8px; padding-top: 2px; }
.architecture-flow { display: flex; align-items: stretch; gap: 0; }
.flow-node { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 14px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.018); border-radius: 11px; }
.flow-node + .flow-node { margin-left: 18px; }
.flow-node + .flow-node::before { content: ""; position: absolute; width: 18px; left: -19px; top: 24px; border-top: 1px dashed rgba(111,230,197,.42); }
.flow-number { color: var(--teal); font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .6px; }
.flow-node strong { margin-top: 11px; color: #dfeaf6; font-size: 10px; line-height: 1.45; }
.flow-node small { margin-top: 6px; color: #7f92aa; font-size: 8px; line-height: 1.55; }
.flow-node:last-child { border-color: rgba(111,230,197,.24); background: rgba(111,230,197,.04); }
.flow-node:last-child .flow-number { color: #9ef4dd; }
.info-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid rgba(128,183,255,.2); border-radius: 12px; background: rgba(128,183,255,.05); }
.info-banner .banner-icon { color: var(--blue); flex: 0 0 auto; margin-top: 1px; }
.info-banner .banner-icon svg { width: 17px; height: 17px; }
.info-banner strong { display: block; margin-bottom: 3px; color: #c7def9; font-size: 10px; }
.info-banner p { margin: 0; color: #92a8c2; font-size: 10px; line-height: 1.7; }
.warning-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,202,128,.22); border-radius: 12px; background: rgba(255,202,128,.055); }
.warning-banner strong { display: block; margin-bottom: 3px; color: #ffdcad; font-size: 10px; }
.warning-banner p { margin: 0; color: #baab97; font-size: 10px; line-height: 1.7; }
.danger-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,128,147,.25); border-radius: 12px; background: rgba(255,128,147,.07); }
.danger-banner strong { display: block; margin-bottom: 3px; color: #ff9bab; font-size: 10px; }
.danger-banner p { margin: 0; color: #c49ba7; font-size: 10px; line-height: 1.7; }
.badge-row { display: flex; gap: 7px; flex-wrap: wrap; }
.tech-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 7px; color: #a8bdd3; background: rgba(255,255,255,.02); font-size: 8px; font-weight: 720; }
.tech-badge .mini-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.split-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label, .field-label { color: #9db0c5; font-size: 10px; font-weight: 720; }
.field small { color: #70859d; font-size: 9px; line-height: 1.5; }
.control { width: 100%; min-height: 39px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; color: #e5edf7; background: #0a1421; font-size: 11px; }
textarea.control { min-height: 100px; resize: vertical; line-height: 1.6; }
.control:focus { border-color: rgba(111,230,197,.58); box-shadow: 0 0 0 3px rgba(111,230,197,.08); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.decision-card { padding: 18px; border-radius: 13px; border: 1px solid var(--line); background: rgba(6,13,23,.5); }
.decision-card.is-blocked { border-color: rgba(255,128,147,.25); background: linear-gradient(135deg, rgba(255,128,147,.08), rgba(6,13,23,.5)); }
.decision-card.is-accepted { border-color: rgba(125,226,189,.2); background: linear-gradient(135deg, rgba(125,226,189,.06), rgba(6,13,23,.5)); }
.decision-head { display: flex; align-items: center; gap: 12px; }
.decision-symbol { display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 41px; border-radius: 12px; background: rgba(255,128,147,.1); color: var(--rose); }
.decision-symbol svg { width: 19px; height: 19px; }
.is-accepted .decision-symbol { color: var(--green); background: rgba(125,226,189,.1); }
.decision-title { margin: 0; color: #fff0f3; font-size: 15px; line-height: 1.25; letter-spacing: -.3px; }
.is-accepted .decision-title { color: #c1fbe5; }
.decision-subtitle { margin: 5px 0 0; color: #b68d97; font-size: 9px; }
.is-accepted .decision-subtitle { color: #83b9a8; }
.data-table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 400px; text-align: left; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #657a94; font-size: 8px; letter-spacing: .85px; font-weight: 850; text-transform: uppercase; }
.data-table td { padding: 12px; border-bottom: 1px solid rgba(150,179,212,.09); color: #c4d2e3; font-size: 10px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .muted-cell { color: #8194aa; }
.data-table code, code, .mono { color: #b1d8ff; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.hash-value { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #08111d; color: #a6d7f2; font: 9px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.hash-label { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 7px; color: #7f92a9; font-size: 9px; font-weight: 720; }
.hash-label:first-child { margin-top: 0; }
.empty-state { padding: 30px 18px; text-align: center; color: var(--muted); font-size: 10px; }
.empty-state svg { width: 27px; height: 27px; color: #6b819c; margin: 0 auto 10px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.metric-tile { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.metric-tile span { display: block; color: #8093aa; font-size: 9px; line-height: 1.45; }
.metric-tile strong { display: block; margin-top: 9px; color: #f0f5fa; font-size: 23px; line-height: 1.05; font-weight: 780; letter-spacing: -.6px; }
.metric-tile small { display: block; margin-top: 5px; color: #687d96; font-size: 8px; }
.metric-tile.accent-teal strong { color: var(--teal); }
.metric-tile.accent-rose strong { color: var(--rose); }
.metric-tile.accent-amber strong { color: var(--amber); }
.recall-hero { overflow: hidden; position: relative; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 22px; border: 1px solid rgba(255,128,147,.2); border-radius: 15px; background: linear-gradient(110deg, rgba(75,30,45,.25), rgba(12,22,35,.96) 55%); }
.recall-hero h2 { margin: 8px 0; font-size: 21px; letter-spacing: -.7px; }
.recall-hero p { max-width: 680px; margin: 0; color: #ae9eaa; font-size: 10px; line-height: 1.8; }
.recall-alert-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid rgba(255,128,147,.22); border-radius: 15px; background: rgba(255,128,147,.08); color: var(--rose); }
.recall-alert-icon svg { width: 24px; height: 24px; }
.step-list { display: flex; flex-direction: column; }
.step-row { position: relative; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 11px 0; }
.step-row + .step-row::before { content: ""; position: absolute; left: 12px; top: -10px; height: 16px; border-left: 1px solid var(--line-strong); }
.step-number { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(111,230,197,.22); border-radius: 8px; background: rgba(111,230,197,.06); color: var(--teal); font-size: 9px; font-weight: 850; }
.step-number.done { background: rgba(125,226,189,.1); border-color: rgba(125,226,189,.24); color: var(--green); }
.step-number.block { background: rgba(255,128,147,.1); border-color: rgba(255,128,147,.25); color: var(--rose); }
.step-content b { display: block; color: #dce7f3; font-size: 10px; }
.step-content p { margin: 4px 0 0; color: #8396ad; font-size: 9px; line-height: 1.6; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline-row { position: relative; display: grid; grid-template-columns: 17px minmax(0,1fr); gap: 11px; padding: 0 0 17px; }
.timeline-row:last-child { padding-bottom: 0; }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-rail::after { content: ""; position: absolute; top: 13px; bottom: -17px; left: calc(50% - .5px); border-left: 1px solid var(--line-strong); }
.timeline-row:last-child .timeline-rail::after { display: none; }
.timeline-mark { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 4px; border: 2px solid var(--teal); border-radius: 50%; background: #0d1826; box-shadow: 0 0 0 3px rgba(111,230,197,.06); }
.timeline-mark.alert { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255,128,147,.06); }
.timeline-content { min-width: 0; }
.timeline-content b { display: block; color: #d5e3f2; font-size: 10px; }
.timeline-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 3px; color: #72869d; font-size: 8px; }
.timeline-content p { margin: 5px 0 0; color: #8599af; font-size: 9px; line-height: 1.6; }
.control-code { display: inline-flex; padding: 3px 6px; border-radius: 5px; background: rgba(255,128,147,.1); color: #ff9eac; font: 8px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.origin-node { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.origin-node .node-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--blue); background: rgba(128,183,255,.08); border: 1px solid rgba(128,183,255,.16); }
.origin-node .node-icon svg { width: 17px; height: 17px; }
.origin-node b { display: block; color: #e0eaf5; font-size: 10px; }
.origin-node small { display: block; color: #7c90a8; font-size: 8px; margin-top: 3px; }
.connector { display: flex; align-items: center; gap: 8px; padding: 9px 5px 9px 22px; color: #617892; font-size: 8px; }
.connector::before { content: ""; width: 1px; height: 16px; background: linear-gradient(var(--teal), rgba(111,230,197,.08)); }
.shipment-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.shipment-main { display: flex; align-items: center; min-width: 0; gap: 11px; }
.pharmacy-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #a9e9d9; background: rgba(111,230,197,.07); border: 1px solid rgba(111,230,197,.17); flex: 0 0 auto; }
.pharmacy-icon svg { width: 17px; height: 17px; }
.shipment-main b { display: block; color: #e0e9f4; font-size: 10px; }
.shipment-main small { display: block; margin-top: 3px; color: #7e91a8; font-size: 8px; }
.shipment-qty { text-align: right; flex: 0 0 auto; }
.shipment-qty strong { display: block; color: #e7f1fa; font-size: 17px; font-weight: 760; }
.shipment-qty small { color: #7c90a7; font-size: 8px; }
.scope-note { color: #869ab0; font-size: 9px; line-height: 1.7; }
.architecture-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.arch-card { display: flex; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); }
.arch-card .arch-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid rgba(111,230,197,.17); border-radius: 10px; background: rgba(111,230,197,.05); color: var(--teal); }
.arch-card .arch-icon svg { width: 18px; height: 18px; }
.arch-card h3 { margin: 1px 0 6px; font-size: 11px; font-weight: 760; }
.arch-card p { margin: 0; color: #8da1b8; font-size: 9px; line-height: 1.75; }
.arch-card .arch-meta { margin-top: 11px; color: #677e98; font-size: 8px; letter-spacing: .2px; }
.command-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #070f1a; }
.command-box code { font-size: 10px; }
.command-box button { flex: 0 0 auto; }
.purpose-quote { padding: 17px 19px; border-left: 2px solid var(--teal); border-radius: 0 11px 11px 0; background: rgba(111,230,197,.045); color: #c0d7e5; font-size: 13px; line-height: 1.75; }
.purpose-quote em { color: #f0f6fc; font-style: normal; font-weight: 720; }
.tone-down { color: #8094ab; font-size: 9px; line-height: 1.75; }
.stack-list { display: flex; flex-direction: column; gap: 0; }
.stack-row { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(150,179,212,.09); }
.stack-row:last-child { border-bottom: 0; }
.stack-row strong { color: #b1c3d8; font-size: 10px; }
.stack-row p { margin: 0; color: #879bb1; font-size: 10px; line-height: 1.65; }
.toast-region { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid rgba(111,230,197,.25); border-radius: 10px; background: #102335; color: #dffbf3; box-shadow: 0 12px 38px rgba(0,0,0,.4); font-size: 10px; animation: toast-in .25s ease both; }
.toast .toast-mark { color: var(--teal); font-weight: 900; }
.toast.error { border-color: rgba(255,128,147,.28); background: #2a1724; color: #ffe1e6; }
.toast.error .toast-mark { color: var(--rose); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.note-divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.cover-mini { height: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #0b1523; }
.cover-mini img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; opacity: .8; }
.code-label { color: #7490aa; font: 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .4px; }
@media (max-width: 1200px) {
  :root { --sidebar: 222px; }
  .view-root { padding-left: 24px; padding-right: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-panel { min-height: 290px; }
}
@media (max-width: 980px) {
  .sidebar { width: 74px; flex-basis: 74px; padding: 18px 10px 12px; }
  .sidebar:not(.is-expanded) .brand { justify-content: center; padding: 0 0 25px; }
  .sidebar:not(.is-expanded) .brand-copy, .sidebar:not(.is-expanded) .workspace-copy, .sidebar:not(.is-expanded) .workspace-switcher .status-dot, .sidebar:not(.is-expanded) .nav-section-label, .sidebar:not(.is-expanded) .nav-item > span:not(.nav-icon), .sidebar:not(.is-expanded) .environment-card, .sidebar:not(.is-expanded) .sidebar-foot { display: none; }
  .sidebar:not(.is-expanded) .workspace-switcher { justify-content: center; padding: 8px; margin-bottom: 22px; }
  .nav-list { gap: 8px; }
  .sidebar:not(.is-expanded) .nav-item { justify-content: center; padding: 11px 0; position: relative; }
  .nav-toggle { display: flex; }
  .sidebar:not(.is-expanded) .nav-toggle { justify-content: center; padding: 0; }
  .sidebar.is-expanded .nav-arrow { display: none; }
  .nav-icon, .nav-icon svg { width: 19px; height: 19px; }
  .nav-item.is-active { box-shadow: inset 0 0 0 1px rgba(111,230,197,.12), inset 0 -2px var(--teal); }
  .nav-count { position: absolute; top: 4px; right: 7px; min-width: 14px; height: 14px; font-size: 8px; padding: 0 3px; }
  .sidebar-bottom { padding-top: 0; }
  .layout-grid { grid-template-columns: minmax(0,1fr); }
  .hero-panel::after { background: linear-gradient(90deg, rgba(8,15,27,.98) 0%, rgba(8,15,27,.87) 48%, rgba(8,15,27,.25) 100%); }
}
@media (max-width: 700px) {
  .topbar { height: 59px; min-height: 59px; padding: 0 15px; }
  .topbar-actions { gap: 8px; }
  .breadcrumb { font-size: 10px; gap: 6px; }
  .mode-chip { padding: 6px 8px; font-size: 7px; }
  .operator-avatar { display: none; }
  .view-root { padding: 22px 15px 30px; }
  .view-header { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 18px; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1 1 150px; min-width: 0; white-space: normal; text-align: center; line-height: 1.35; }
  .hero-panel { padding: 25px 20px; min-height: 355px; align-items: flex-start; }
  .hero-panel::before { opacity: .7; background-position: 60% center; }
  .hero-panel::after { background: linear-gradient(90deg, rgba(8,15,27,.98), rgba(8,15,27,.75)), linear-gradient(0deg, rgba(8,15,27,.4), transparent); }
  .hero-panel h1 { font-size: 37px; letter-spacing: -1.5px; }
  .hero-panel p { max-width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .kpi-grid { gap: 9px; }
  .kpi-card { min-height: 118px; padding: 13px; }
  .kpi-label { font-size: 9px; gap: 6px; }
  .kpi-icon { width: 23px; height: 23px; }
  .kpi-value { font-size: 22px; margin-top: 13px; }
  .kpi-note { font-size: 8px; }
  .section-heading { margin-top: 22px; }
  .panel-header { padding: 14px 14px 12px; }
  .panel-body { padding: 14px; }
  .architecture-flow { flex-direction: column; gap: 9px; }
  .flow-node + .flow-node { margin: 0; }
  .flow-node + .flow-node::before { width: 1px; height: 9px; border-top: 0; border-left: 1px dashed rgba(111,230,197,.42); left: 24px; top: -10px; }
  .flow-node { display: grid; grid-template-columns: 25px minmax(0,1fr); column-gap: 10px; padding: 11px; }
  .flow-number { grid-row: span 2; margin-top: 3px; }
  .flow-node strong { margin-top: 0; }
  .flow-node small { margin-top: 3px; }
  .split-two, .architecture-cards { grid-template-columns: minmax(0,1fr); }
  .metric-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-header .page-description { font-size: 11px; }
  .recall-hero { padding: 17px; }
  .recall-hero h2 { font-size: 18px; }
  .recall-alert-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .stack-row { grid-template-columns: 1fr; gap: 5px; }
  .app-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 15px; }
  .toast-region { right: 12px; bottom: 12px; }
}
@media (max-width: 420px) {
  :root { --sidebar: 60px; }
  .sidebar { width: 60px; flex-basis: 60px; padding: 14px 6px 9px; }
  .brand-mark { width: 37px; height: 37px; flex-basis: 37px; border-radius: 11px; }
  .brand-mark svg { width: 31px; height: 31px; }
  .workspace-switcher { padding: 6px; }
  .workspace-icon { width: 31px; height: 31px; }
  .nav-item { min-height: 41px; }
  .hero-panel h1 { font-size: 32px; }
  .hero-panel { padding: 21px 15px; }
  .hero-kicker { font-size: 7px; letter-spacing: .7px; }
  .btn { padding: 0 10px; font-size: 10px; }
  .kpi-value { font-size: 20px; }
  .kpi-label { line-height: 1.3; }
  .mode-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Navigation helper: icon-only rail can expand to show page names (small screens) */
.nav-toggle { display: none; align-items: center; gap: 10px; width: 100%; min-height: 40px; margin: 0 0 14px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); color: #c5d2e3; font-size: 12px; font-weight: 650; cursor: pointer; }
.nav-toggle svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-backdrop { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .sidebar:not(.is-expanded) .nav-toggle-label { display: none; }
  .sidebar.is-expanded { width: 236px; flex-basis: 236px; margin-right: -162px; z-index: 60; box-shadow: 8px 0 32px rgba(0,0,0,.55); }
  .sidebar.is-expanded .nav-item { justify-content: flex-start; padding: 11px 12px; }
  .sidebar.is-expanded .nav-count { position: static; margin-left: auto; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
  .app-shell.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(2,6,12,.55); }
}
@media (max-width: 420px) {
  .sidebar.is-expanded { width: 228px; flex-basis: 228px; margin-right: -168px; }
}
