:root {
  color-scheme: dark;
  --night: #06101c;
  --night-2: #081522;
  --ink: #eff7ff;
  --ink-soft: #d6e3f2;
  --muted: #879cb5;
  --muted-2: #5f748d;
  --panel: rgba(12, 27, 44, .91);
  --panel-solid: #0d1b2b;
  --panel-raised: #11243a;
  --line: rgba(154, 183, 214, .14);
  --line-strong: rgba(154, 183, 214, .25);
  --cyan: #62d8ff;
  --cyan-2: #37abd9;
  --mint: #4be0bd;
  --mint-dark: #1ba486;
  --amber: #f5bd64;
  --red: #ff7d8d;
  --violet: #a897ff;
  --shadow: 0 24px 70px rgba(0, 6, 15, .36);
  --sidebar: 278px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--night); font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; }
::selection { color: #041019; background: var(--cyan); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(4, 12, 22, .5); }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgba(138, 166, 194, .35); background-clip: padding-box; }

.is-hidden { display: none !important; }
.mobile-only { display: none; }
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 999px; filter: blur(10px); opacity: .65; }
.ambient-a { width: 620px; height: 620px; top: -340px; left: 10%; background: radial-gradient(circle, rgba(75, 224, 189, .13), transparent 66%); }
.ambient-b { width: 700px; height: 700px; right: -360px; top: 20%; background: radial-gradient(circle, rgba(77, 167, 255, .12), transparent 65%); }

/* Access */
.access-gate { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); min-height: 100vh; overflow: hidden; background: radial-gradient(80% 80% at 10% 0%, rgba(52, 179, 187, .17), transparent 58%), linear-gradient(125deg, #06101d 0%, #091a2c 52%, #0c2134 100%); }
.access-grid { position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(rgba(135, 166, 194, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(135, 166, 194, .06) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.5) 58%, transparent); }
.access-brand { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 52px clamp(40px, 7vw, 112px); }
.brand-lockup { display: inline-flex; gap: 14px; align-items: center; width: max-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border: 1px solid rgba(98, 216, 255, .25); border-radius: 14px; background: linear-gradient(140deg, rgba(75, 224, 189, .22), rgba(98, 216, 255, .12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 10px 28px rgba(0,0,0,.24); }
.brand-mark img { width: 35px; height: 35px; object-fit: contain; }
.brand-lockup b { display: block; font-family: "Space Grotesk", Inter, sans-serif; font-size: 15px; letter-spacing: .16em; }
.brand-lockup small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .055em; }
.access-copy { max-width: 760px; margin: 11vh 0 auto; }
.kicker { display: flex; gap: 9px; align-items: center; margin: 0 0 15px; color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kicker span { display: inline-block; width: 21px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.risk-kicker { color: var(--red); }
.access-copy h1 { max-width: 790px; margin: 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(49px, 5.7vw, 87px); font-weight: 600; line-height: .96; letter-spacing: -.055em; }
.access-copy h1 em { color: transparent; background: linear-gradient(90deg, var(--cyan), var(--mint)); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.access-copy > p:last-child { max-width: 650px; margin: 30px 0 0; color: #a4b8ce; font-size: 17px; line-height: 1.72; }
.authority-chain { display: flex; align-items: center; width: min(100%, 690px); margin-top: 60px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.authority-chain i { flex: 1; height: 1px; margin: 0 11px; background: linear-gradient(90deg, rgba(98, 216, 255, .4), rgba(75, 224, 189, .16)); }
.access-panel { position: relative; z-index: 1; display: grid; place-items: center; padding: 40px; border-left: 1px solid rgba(154, 183, 214, .09); background: linear-gradient(180deg, rgba(6,16,28,.15), rgba(6,16,28,.58)); backdrop-filter: blur(12px); }
.access-card { width: min(100%, 470px); padding: 34px; border: 1px solid var(--line-strong); border-radius: 26px; background: linear-gradient(165deg, rgba(15, 35, 55, .96), rgba(8, 21, 35, .96)); box-shadow: 0 35px 100px rgba(0, 4, 12, .46), inset 0 1px 0 rgba(255,255,255,.045); }
.access-card-head { display: flex; gap: 16px; align-items: center; }
.access-card-head p { margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.access-card-head h2 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: 25px; letter-spacing: -.025em; }
.security-orbit { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(75, 224, 189, .28); border-radius: 50%; background: rgba(75, 224, 189, .08); }
.security-orbit::before, .security-orbit::after { position: absolute; content: ""; border: 1px solid rgba(98,216,255,.18); border-radius: 50%; }
.security-orbit::before { width: 32px; height: 32px; }
.security-orbit::after { width: 10px; height: 10px; background: var(--mint); box-shadow: 0 0 16px var(--mint); }
.security-orbit i { position: absolute; width: 60px; height: 18px; border-top: 1px solid var(--cyan); border-radius: 50%; transform: rotate(-30deg); opacity: .45; }
.access-intro { margin: 24px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.access-card label, .field label { display: block; margin: 0 0 8px; color: #b9c9da; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.secret-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(3, 12, 22, .55); transition: border-color .2s, box-shadow .2s; }
.secret-input:focus-within { border-color: rgba(98, 216, 255, .58); box-shadow: 0 0 0 3px rgba(98, 216, 255, .08); }
.secret-input input { flex: 1; min-width: 0; padding: 14px; border: 0; outline: 0; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.secret-input button { padding: 10px 13px; color: var(--cyan); background: transparent; font-size: 11px; font-weight: 700; }
.form-message { min-height: 21px; padding-top: 7px; color: var(--red); font-size: 11px; }
.primary-action, .quiet-action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 12px; font-weight: 760; text-decoration: none; transition: transform .18s var(--ease), border-color .18s, background .18s; }
.primary-action { color: #04131b; background: linear-gradient(105deg, var(--cyan), var(--mint)); box-shadow: 0 9px 24px rgba(49, 185, 192, .17); }
.primary-action:hover { transform: translateY(-1px); }
.primary-action:disabled { cursor: wait; filter: saturate(.35); opacity: .7; transform: none; }
.primary-action.full { width: 100%; min-height: 47px; }
.quiet-action { border: 1px solid var(--line-strong); color: var(--ink-soft); background: rgba(255,255,255,.035); }
.quiet-action:hover { border-color: rgba(98,216,255,.35); background: rgba(98,216,255,.065); }
.access-assurance { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.access-assurance span { display: flex; gap: 6px; align-items: center; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot-green { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.dot-blue { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.access-help { margin: 18px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.55; }

/* Shell */
.control-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; background: radial-gradient(70% 60% at 70% 0%, rgba(30, 126, 171, .07), transparent 64%), #07111e; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 24px 17px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(8, 22, 36, .99), rgba(6, 17, 29, .99)); box-shadow: 18px 0 50px rgba(0, 5, 12, .16); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.brand-lockup.compact { gap: 11px; }
.brand-lockup.compact .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.brand-lockup.compact .brand-mark img { width: 30px; height: 30px; }
.brand-lockup.compact b { font-size: 12px; }
.brand-lockup.compact small { font-size: 9px; }
.workspace-chip { display: flex; gap: 10px; align-items: center; margin: 26px 3px 18px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.workspace-symbol { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--cyan); background: rgba(98,216,255,.1); font-size: 10px; font-weight: 800; }
.workspace-chip > span:nth-child(2) { flex: 1; min-width: 0; }
.workspace-chip small, .workspace-chip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chip small { margin-bottom: 3px; color: var(--muted-2); font-size: 9px; }
.workspace-chip b { font-size: 10px; font-weight: 650; }
.status-beacon { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.primary-nav { flex: 1; overflow-y: auto; padding: 0 2px 18px; }
.primary-nav p { margin: 19px 10px 7px; color: #50647a; font-size: 8px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.nav-item { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 42px; margin: 2px 0; padding: 5px 10px; border: 1px solid transparent; border-radius: 10px; color: #8298b0; text-align: left; background: transparent; font-size: 11px; transition: color .15s, border-color .15s, background .15s; }
.nav-item:hover { color: var(--ink-soft); background: rgba(255,255,255,.025); }
.nav-item.is-active { border-color: rgba(98,216,255,.15); color: #eaf7ff; background: linear-gradient(90deg, rgba(98,216,255,.12), rgba(75,224,189,.035)); box-shadow: inset 2px 0 0 var(--cyan); }
.nav-glyph { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(145,176,207,.12); border-radius: 7px; color: #7290aa; background: rgba(255,255,255,.025); font-size: 9px; font-weight: 850; }
.nav-item.is-active .nav-glyph { border-color: rgba(98,216,255,.22); color: var(--cyan); background: rgba(98,216,255,.08); }
.nav-item kbd { color: #4d6277; font: 8px ui-monospace, monospace; }
.nav-count { min-width: 20px; padding: 3px 6px; border-radius: 999px; color: #7890a8; background: rgba(255,255,255,.05); font-size: 8px; text-align: center; }
.nav-count.attention { color: var(--amber); background: rgba(245,189,100,.1); }
.nav-count.risk { color: var(--red); background: rgba(255,125,141,.1); }
.sidebar-posture { margin: 8px 3px 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); }
.sidebar-posture > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.sidebar-posture span { color: var(--muted-2); font-size: 9px; }
.sidebar-posture b { color: var(--mint); font-size: 9px; letter-spacing: .06em; }
.posture-track { height: 3px; margin: 10px 0; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.posture-track i { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--mint)); transition: width .6s var(--ease), background .3s; }
.posture-track i.posture-level-controlled { width: 100%; }
.posture-track i.posture-level-attention { width: 69%; background: var(--amber); }
.posture-track i.posture-level-degraded { width: 48%; background: var(--amber); }
.posture-track i.posture-level-critical { width: 22%; background: var(--red); }
.sidebar-posture small { display: block; color: #546a81; font-size: 8px; line-height: 1.45; }
.sidebar-footer { display: grid; grid-template-columns: 1fr; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
.sidebar-footer a, .sidebar-footer button { display: flex; justify-content: space-between; padding: 8px 9px; border-radius: 8px; color: #61778e; text-decoration: none; background: transparent; font-size: 9px; text-align: left; }
.sidebar-footer a:hover, .sidebar-footer button:hover { color: var(--ink-soft); background: rgba(255,255,255,.025); }
.main-stage { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 15; top: 0; display: flex; gap: 24px; align-items: center; min-height: 72px; padding: 0 clamp(22px, 3vw, 44px); border-bottom: 1px solid var(--line); background: rgba(7, 17, 30, .82); backdrop-filter: blur(22px); }
.crumb { display: flex; gap: 9px; align-items: center; min-width: 230px; color: var(--muted-2); font-size: 10px; }
.crumb i { color: #3a5168; font-style: normal; }
.crumb b { color: var(--ink-soft); font-weight: 650; }
.command-trigger { display: flex; align-items: center; width: min(360px, 32vw); min-height: 38px; margin: auto; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #657b92; background: rgba(255,255,255,.022); text-align: left; font-size: 10px; }
.command-trigger:hover { border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.search-glyph { margin-right: 9px; color: #7991aa; font-size: 17px; transform: rotate(-15deg); }
.command-trigger > span:nth-child(2) { flex: 1; }
kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: #6d8297; background: rgba(255,255,255,.035); font: 9px ui-monospace, monospace; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.environment-badge { display: flex; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid rgba(75,224,189,.14); border-radius: 8px; color: #9fb8c9; background: rgba(75,224,189,.04); font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.environment-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.025); }
.notification-button { position: relative; }
.notification-button > span { font-weight: 800; }
.notification-button b { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid var(--night); border-radius: 9px; color: #21060a; background: var(--red); font-size: 7px; }
.operator-menu { display: flex; gap: 9px; align-items: center; }
.operator-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(98,216,255,.16); border-radius: 10px; color: var(--cyan); background: linear-gradient(135deg, rgba(98,216,255,.12), rgba(75,224,189,.07)); font-size: 9px; font-weight: 800; }
.operator-menu b, .operator-menu small { display: block; }
.operator-menu b { font-size: 9px; }
.operator-menu small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.stage-content { width: min(1680px, 100%); margin: 0 auto; padding: 35px clamp(22px, 3vw, 44px) 70px; }
.view { display: none; animation: view-in .32s var(--ease); }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(30px, 3vw, 45px); font-weight: 610; letter-spacing: -.045em; }
.page-heading > div > p:last-child { max-width: 720px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.heading-with-action { display: flex; gap: 30px; align-items: flex-end; justify-content: space-between; }
.heading-actions { display: flex; gap: 9px; align-items: center; }

/* Overview */
.posture-banner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; min-height: 112px; padding: 22px 25px; overflow: hidden; border: 1px solid rgba(75, 224, 189, .18); border-radius: 17px; background: linear-gradient(100deg, rgba(27, 126, 116, .16), rgba(11, 30, 48, .84) 56%, rgba(17, 44, 64, .74)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.posture-banner::after { position: absolute; right: 7%; width: 280px; height: 280px; border: 1px solid rgba(98,216,255,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 35px rgba(98,216,255,.025), 0 0 0 70px rgba(98,216,255,.018); }
.posture-emblem { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(75,224,189,.28); border-radius: 17px; background: rgba(75,224,189,.08); box-shadow: 0 0 28px rgba(75,224,189,.08); }
.posture-emblem span { width: 19px; height: 10px; border-bottom: 2px solid var(--mint); border-left: 2px solid var(--mint); transform: rotate(-45deg) translate(1px,-2px); }
.posture-emblem i { position: absolute; inset: 7px; border: 1px solid rgba(98,216,255,.14); border-radius: 12px; }
.posture-banner small { color: #7892a6; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.posture-banner h2 { margin: 5px 0 4px; font-size: 17px; }
.posture-banner p { margin: 0; color: #8da5b9; font-size: 10px; }
.posture-meta { position: relative; z-index: 1; min-width: 120px; text-align: right; }
.posture-meta span, .posture-meta b { display: block; }
.posture-meta span { color: #61788e; font-size: 8px; text-transform: uppercase; }
.posture-meta b { margin-top: 5px; font-size: 10px; }
.posture-banner.posture-critical { border-color: rgba(255,125,141,.3); background: linear-gradient(100deg, rgba(143, 43, 59, .2), rgba(11,30,48,.9)); }
.posture-banner.posture-attention, .posture-banner.posture-degraded { border-color: rgba(245,189,100,.28); background: linear-gradient(100deg, rgba(145, 103, 29, .18), rgba(11,30,48,.9)); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.metric-card { position: relative; min-height: 126px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(160deg, rgba(16, 35, 55, .88), rgba(9, 23, 38, .9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.metric-card::after { position: absolute; right: -20px; bottom: -28px; width: 85px; height: 85px; border: 1px solid rgba(98,216,255,.065); border-radius: 50%; content: ""; }
.metric-card header { display: flex; align-items: center; justify-content: space-between; color: #6f859d; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.metric-card header i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.metric-card strong { display: block; margin-top: 13px; font-family: "Space Grotesk", Inter, sans-serif; font-size: 31px; font-weight: 550; letter-spacing: -.04em; }
.metric-card footer { display: flex; gap: 7px; align-items: center; margin-top: 6px; color: #6e8499; font-size: 9px; }
.metric-card footer b { color: var(--mint); font-weight: 650; }
.metric-card.is-risk header i { background: var(--red); box-shadow: 0 0 9px var(--red); }
.metric-card.is-risk footer b { color: var(--red); }
.metric-card.is-attention header i { background: var(--amber); box-shadow: 0 0 9px var(--amber); }
.metric-card.is-attention footer b { color: var(--amber); }
.skeleton-card { background: linear-gradient(100deg, rgba(255,255,255,.025) 25%, rgba(255,255,255,.055) 42%, rgba(255,255,255,.025) 60%); background-size: 400% 100%; animation: skeleton 1.5s infinite; }
@keyframes skeleton { to { background-position: -135% 0; } }
.overview-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 14px; }
.overview-grid.lower { grid-template-columns: 1fr 1fr 1fr; }
.surface { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(165deg, rgba(13, 29, 47, .9), rgba(8, 21, 35, .92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.022); }
.topology-card, .event-card, .consumer-card, .signal-card, .activity-card { min-height: 310px; padding: 20px; }
.surface-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.surface-head p { margin: 0 0 5px; color: #60768c; font-size: 8px; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.surface-head h2 { margin: 0; font-size: 14px; font-weight: 650; }
.live-label { display: flex; gap: 7px; align-items: center; color: #71908d; font-size: 8px; text-transform: uppercase; }
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.surface-badge { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; }
.text-action { padding: 4px; color: var(--cyan); background: transparent; font-size: 9px; }
.topology { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: center; min-height: 166px; margin: 14px 0 4px; }
.topology::before { position: absolute; z-index: 0; top: 50%; left: 8%; right: 8%; height: 1px; content: ""; background: linear-gradient(90deg, transparent, rgba(98,216,255,.33), rgba(75,224,189,.34), rgba(168,151,255,.28), transparent); }
.authority-node { position: relative; z-index: 1; display: grid; place-items: center; min-height: 94px; padding: 11px 6px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, #11263a, #0b1c2d); text-align: center; }
.authority-node::before { width: 10px; height: 10px; margin-bottom: 8px; border: 2px solid var(--node-colour, var(--cyan)); border-radius: 50%; content: ""; box-shadow: 0 0 13px color-mix(in srgb, var(--node-colour, var(--cyan)) 55%, transparent); }
.authority-node b { font-size: 9px; }
.authority-node small { max-width: 100px; margin-top: 4px; color: #657c91; font-size: 7px; line-height: 1.35; }
.authority-node em { position: absolute; top: -8px; padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--node-colour, var(--cyan)) 25%, transparent); border-radius: 99px; color: var(--node-colour, var(--cyan)); background: var(--panel-solid); font-size: 6px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.authority-node:nth-child(2) { --node-colour: var(--mint); }
.authority-node:nth-child(3) { --node-colour: var(--amber); }
.authority-node:nth-child(4) { --node-colour: var(--violet); }
.authority-node:nth-child(5) { --node-colour: var(--cyan); }
.boundary-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid rgba(98,216,255,.08); border-radius: 10px; background: rgba(98,216,255,.035); }
.boundary-note i { display: grid; flex: 0 0 18px; place-items: center; width: 18px; height: 18px; border: 1px solid rgba(98,216,255,.24); border-radius: 50%; color: var(--cyan); font-size: 8px; font-style: normal; }
.boundary-note p { margin: 0; color: #70889d; font-size: 8px; line-height: 1.55; }
.boundary-note b { color: #9eb4c9; }
.event-chart { display: flex; gap: 5px; align-items: flex-end; height: 185px; margin: 16px 0 10px; padding: 7px 2px 17px; border-bottom: 1px solid var(--line); }
.event-column { position: relative; display: flex; flex: 1; gap: 2px; align-items: flex-end; height: 100%; }
.event-column i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: rgba(98,216,255,.5); }
.event-column i:nth-child(2) { background: rgba(75,224,189,.55); }
.event-column i:nth-child(3) { background: rgba(255,125,141,.65); }
.event-column small { position: absolute; right: 0; bottom: -17px; left: 0; overflow: hidden; color: #4f6479; font-size: 6px; text-align: center; white-space: nowrap; }
.bar-0 { height: 2%; }.bar-1 { height: 8%; }.bar-2 { height: 16%; }.bar-3 { height: 24%; }.bar-4 { height: 32%; }.bar-5 { height: 40%; }.bar-6 { height: 48%; }.bar-7 { height: 57%; }.bar-8 { height: 68%; }.bar-9 { height: 80%; }.bar-10 { height: 94%; }
.chart-legend { display: flex; gap: 14px; color: #60758a; font-size: 7px; }
.chart-legend span { display: flex; gap: 5px; align-items: center; }
.chart-legend i { width: 6px; height: 6px; border-radius: 2px; }
.legend-published { background: rgba(98,216,255,.55); }.legend-delivered { background: rgba(75,224,189,.55); }.legend-dead { background: rgba(255,125,141,.65); }
.pipeline-list, .compact-alerts, .compact-activity { margin-top: 15px; }
.pipeline-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(154,183,214,.08); }
.pipeline-row:first-child { border-top: 0; }
.pipeline-row b, .pipeline-row small { display: block; }
.pipeline-row b { font-size: 9px; }
.pipeline-row small { margin-top: 4px; color: #5d7489; font-size: 7px; }
.pipeline-lag { min-width: 55px; text-align: right; }
.pipeline-lag b { color: var(--mint); }
.pipeline-lag.is-warning b { color: var(--amber); }
.pipeline-track { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.045); }
.pipeline-track i { display: block; width: 4%; height: 100%; border-radius: inherit; background: var(--mint); }
.compact-alert { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(154,183,214,.08); }
.compact-alert:first-child { border-top: 0; }
.severity-mark { width: 3px; height: 30px; border-radius: 4px; background: var(--cyan); }
.severity-mark.HIGH, .severity-mark.CRITICAL { background: var(--red); box-shadow: 0 0 10px rgba(255,125,141,.25); }
.severity-mark.MEDIUM { background: var(--amber); }
.compact-alert b { display: block; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.compact-alert small { display: block; margin-top: 4px; color: #586f84; font-size: 7px; }
.compact-alert em { color: #657b91; font-size: 7px; font-style: normal; }
.compact-activity-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; padding: 9px 0; border-top: 1px solid rgba(154,183,214,.08); }
.compact-activity-row:first-child { border-top: 0; }
.activity-dot { width: 7px; height: 7px; margin-top: 3px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 8px rgba(98,216,255,.2); }
.compact-activity-row b { display: block; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.compact-activity-row small { display: block; margin-top: 4px; color: #566d82; font-size: 7px; }
.loading-row { height: 48px; margin-top: 8px; border-radius: 8px; background: linear-gradient(100deg, rgba(255,255,255,.02), rgba(255,255,255,.05), rgba(255,255,255,.02)); background-size: 300% 100%; animation: skeleton 1.5s infinite; }
.empty-state { display: grid; place-items: center; min-height: 200px; color: #536a80; text-align: center; }
.empty-state.compact { min-height: 120px; }
.empty-state span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: #6b839a; background: rgba(255,255,255,.02); font-size: 15px; }
.empty-state p { margin: 9px 0 0; font-size: 9px; }

/* Tables and module views */
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.summary-cell { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13,29,47,.72); }
.summary-cell span, .summary-cell b { display: block; }
.summary-cell span { color: #667d94; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.summary-cell b { margin-top: 7px; font-family: "Space Grotesk", Inter, sans-serif; font-size: 21px; font-weight: 550; }
.summary-cell small { display: block; margin-top: 3px; color: #52697e; font-size: 7px; }
.table-surface { overflow: hidden; }
.table-toolbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 59px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-chip { min-height: 29px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: #61778d; background: transparent; font-size: 8px; }
.filter-chip:hover { color: var(--ink-soft); background: rgba(255,255,255,.025); }
.filter-chip.is-active { border-color: rgba(98,216,255,.16); color: var(--cyan); background: rgba(98,216,255,.065); }
.table-search { display: flex; gap: 8px; align-items: center; min-width: 190px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(3,12,22,.35); }
.table-search span { color: #61788e; font-size: 14px; transform: rotate(-15deg); }
.table-search input { width: 100%; min-height: 31px; border: 0; outline: 0; color: var(--ink-soft); background: transparent; font-size: 8px; }
.table-search input::placeholder { color: #51667c; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 860px; border-collapse: collapse; }
th { height: 39px; padding: 0 15px; color: #52687e; background: rgba(4,13,23,.2); font-size: 7px; font-weight: 750; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { height: 63px; padding: 10px 15px; border-top: 1px solid rgba(154,183,214,.075); color: #91a5b9; font-size: 8px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(98,216,255,.018); }
.entity-cell { display: flex; gap: 10px; align-items: center; }
.entity-cell > span { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(98,216,255,.13); border-radius: 9px; color: var(--cyan); background: rgba(98,216,255,.05); font-size: 8px; font-weight: 800; }
.entity-cell b, .entity-cell small { display: block; }
.entity-cell b { color: #d2deea; font-size: 9px; font-weight: 650; }
.entity-cell small { max-width: 250px; margin-top: 4px; overflow: hidden; color: #52697e; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; color: #778da3; background: rgba(255,255,255,.018); font-size: 7px; font-weight: 700; letter-spacing: .03em; }
.tag + .tag { margin-left: 4px; }
.tag.PRODUCTION, .tag.CRITICAL, .tag.HIGH, .tag.UNAVAILABLE, .tag.REVOKED, .tag.CONFIRMED_MATCH, .tag.POTENTIAL_MATCH { border-color: rgba(255,125,141,.17); color: var(--red); background: rgba(255,125,141,.055); }
.tag.SANDBOX, .tag.MEDIUM, .tag.PENDING, .tag.CONFIGURED, .tag.DEGRADED, .tag.ROTATING { border-color: rgba(245,189,100,.17); color: var(--amber); background: rgba(245,189,100,.055); }
.tag.ACTIVE, .tag.AVAILABLE, .tag.APPROVED, .tag.CLEAR, .tag.REMEDIATED, .tag.COMPLETED { border-color: rgba(75,224,189,.17); color: var(--mint); background: rgba(75,224,189,.055); }
.tag.INTERNAL, .tag.LOW, .tag.INFO { border-color: rgba(98,216,255,.16); color: var(--cyan); background: rgba(98,216,255,.05); }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.cell-sub { display: block; margin-top: 4px; color: #536a80; font-size: 7px; }
.row-action { min-height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: #71869c; background: rgba(255,255,255,.018); font-size: 7px; }
.row-action:hover { border-color: rgba(98,216,255,.24); color: var(--cyan); }
.row-action.danger:hover { border-color: rgba(255,125,141,.24); color: var(--red); }
.scope-stack { display: flex; flex-wrap: wrap; gap: 3px; max-width: 270px; }
.scope-pill { display: inline-block; max-width: 120px; overflow: hidden; padding: 3px 5px; border-radius: 4px; color: #71869a; background: rgba(255,255,255,.035); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }

/* Compliance */
.alert-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.alert-column { min-height: 420px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(8,21,35,.58); }
.alert-column-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 2px 12px; }
.alert-column-head b { font-size: 9px; }
.alert-column-head span { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; color: #70869b; background: rgba(255,255,255,.04); font-size: 7px; }
.alert-ticket { margin-bottom: 9px; padding: 13px; border: 1px solid rgba(154,183,214,.1); border-radius: 12px; background: linear-gradient(150deg, rgba(16,35,54,.85), rgba(10,24,39,.88)); box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.alert-ticket-top { display: flex; align-items: center; justify-content: space-between; }
.alert-ticket h3 { margin: 10px 0 6px; color: #d3dfeb; font-size: 10px; line-height: 1.4; }
.alert-ticket p { display: -webkit-box; overflow: hidden; margin: 0; color: #637a90; font-size: 8px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.alert-ticket footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(154,183,214,.07); }
.alert-ticket footer span { color: #566c81; font-size: 7px; }

/* Routes */
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.route-card { min-height: 230px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(160deg, rgba(15,33,52,.9), rgba(8,21,35,.9)); }
.route-card header { display: flex; align-items: flex-start; justify-content: space-between; }
.route-symbol { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(168,151,255,.17); border-radius: 11px; color: var(--violet); background: rgba(168,151,255,.06); font-size: 10px; font-weight: 800; }
.route-card h2 { margin: 16px 0 6px; font-size: 13px; }
.route-card > p { margin: 0; color: #61788e; font-size: 8px; }
.route-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.route-scopes { margin-top: 13px; }
.route-meta div { padding: 9px; border-radius: 8px; background: rgba(255,255,255,.022); }
.route-meta span, .route-meta b { display: block; }
.route-meta span { color: #50677d; font-size: 7px; }
.route-meta b { margin-top: 4px; color: #95a9bc; font-size: 8px; }

/* Partners */
.partner-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 14px; }
.partner-list-surface, .operations-surface { padding: 19px; }
.partner-list { margin-top: 14px; }
.partner-row { display: grid; grid-template-columns: minmax(0,1fr) repeat(3, auto); gap: 18px; align-items: center; padding: 14px 2px; border-top: 1px solid rgba(154,183,214,.08); }
.partner-row:first-child { border-top: 0; }
.partner-cell { display: flex; gap: 10px; align-items: center; }
.partner-avatar { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(75,224,189,.14); border-radius: 10px; color: var(--mint); background: rgba(75,224,189,.05); font-size: 9px; font-weight: 800; }
.partner-cell b, .partner-cell small { display: block; }
.partner-cell b { font-size: 9px; }
.partner-cell small { margin-top: 4px; color: #566d83; font-size: 7px; }
.partner-stat { min-width: 65px; }
.partner-stat span, .partner-stat b { display: block; }
.partner-stat span { color: #536a7f; font-size: 7px; }
.partner-stat b { margin-top: 4px; font-size: 9px; }
.operation-list { margin-top: 13px; }
.operation-row { position: relative; padding: 13px 10px 13px 20px; border-top: 1px solid rgba(154,183,214,.08); }
.operation-row:first-child { border-top: 0; }
.operation-row::before { position: absolute; top: 17px; left: 2px; width: 7px; height: 7px; border: 2px solid var(--amber); border-radius: 50%; content: ""; }
.operation-row b { display: block; font-size: 8px; }
.operation-row p { margin: 4px 0; color: #5e758b; font-size: 7px; }
.operation-row small { color: #4f657a; font-size: 7px; }

/* Credentials */
.credential-notice { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding: 15px 17px; border: 1px solid rgba(98,216,255,.13); border-radius: 13px; background: rgba(98,216,255,.035); }
.shield-glyph { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(98,216,255,.18); border-radius: 10px; color: var(--cyan); font-size: 18px; }
.credential-notice b { font-size: 9px; }
.credential-notice p { margin: 4px 0 0; color: #668096; font-size: 8px; line-height: 1.5; }

/* Activity */
.activity-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 14px; }
.activity-filters { align-self: start; padding: 17px; }
.activity-filters h2 { margin: 0 0 13px; font-size: 11px; }
.activity-filter { width: 100%; min-height: 34px; padding: 0 9px; border-radius: 8px; color: #667c92; background: transparent; font-size: 8px; text-align: left; }
.activity-filter:hover { color: var(--ink-soft); background: rgba(255,255,255,.025); }
.activity-filter.is-active { color: var(--cyan); background: rgba(98,216,255,.06); }
.chain-proof { margin-top: 20px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.chain-proof span, .chain-proof b, .chain-proof small { display: block; }
.chain-proof span { color: #52687d; font-size: 7px; text-transform: uppercase; }
.chain-proof b { margin-top: 6px; color: var(--mint); font: 8px ui-monospace, monospace; }
.chain-proof small { margin-top: 7px; color: #53697e; font-size: 7px; line-height: 1.5; }
.full-activity { padding: 14px 20px; }
.timeline-row { display: grid; grid-template-columns: 92px 20px minmax(0,1fr) auto; gap: 12px; min-height: 73px; }
.timeline-time { padding-top: 17px; color: #53697e; font-size: 7px; text-align: right; }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-rail::after { position: absolute; top: 0; bottom: 0; width: 1px; content: ""; background: rgba(154,183,214,.1); }
.timeline-rail i { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 18px; border: 2px solid var(--cyan); border-radius: 50%; background: var(--panel-solid); box-shadow: 0 0 9px rgba(98,216,255,.2); }
.timeline-body { padding: 14px 0; border-bottom: 1px solid rgba(154,183,214,.07); }
.timeline-body b { display: block; color: #bdcddd; font-size: 9px; }
.timeline-body p { margin: 5px 0 0; color: #5d748a; font-size: 7px; }
.timeline-proof { align-self: center; max-width: 90px; overflow: hidden; color: #4f657a; font: 6px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }

/* Dialogs */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; }
dialog::backdrop { background: rgba(2, 8, 15, .74); backdrop-filter: blur(8px); }
.action-dialog { width: min(580px, calc(100% - 28px)); max-height: calc(100vh - 40px); border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(160deg, #11243a, #091a2b); box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.dialog-shell { max-height: calc(100vh - 40px); overflow: auto; padding: 25px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head p { margin: 0 0 6px; color: var(--mint); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dialog-head h2 { margin: 0; font-size: 21px; }
.dialog-close { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; color: #72889e; background: rgba(255,255,255,.025); font-size: 18px; }
.dialog-description { margin: 12px 40px 20px 0; color: #6d8399; font-size: 10px; line-height: 1.6; }
.dynamic-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: #c8d6e4; background: rgba(3,12,22,.45); font-size: 10px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(98,216,255,.42); box-shadow: 0 0 0 3px rgba(98,216,255,.06); }
.field small { display: block; margin-top: 6px; color: #50667c; font-size: 7px; line-height: 1.45; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checkbox-option { display: flex; gap: 7px; align-items: center; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: #71869b; background: rgba(255,255,255,.018); font-size: 8px; }
.checkbox-option input { width: auto; min-height: 0; accent-color: var(--cyan); }
.dialog-error { min-height: 20px; padding-top: 9px; color: var(--red); font-size: 9px; }
.danger-action { color: #21070b; background: linear-gradient(105deg, #ff9a86, var(--red)); }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.key-reveal { grid-column: 1 / -1; padding: 15px; border: 1px solid rgba(75,224,189,.2); border-radius: 11px; background: rgba(75,224,189,.055); }
.key-reveal span, .key-reveal code, .key-reveal small { display: block; }
.key-reveal span { color: var(--mint); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.key-reveal code { margin-top: 10px; padding: 11px; overflow-wrap: anywhere; border-radius: 7px; color: #d8f8ef; background: rgba(0,0,0,.25); font-size: 9px; line-height: 1.5; user-select: all; }
.key-reveal small { margin-top: 8px; color: #6e8e87; font-size: 7px; }
.command-dialog { width: min(620px, calc(100% - 28px)); margin-top: 12vh; border: 1px solid var(--line-strong); border-radius: 17px; background: #0c1d2f; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.command-search { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.command-search > span { color: var(--cyan); font-size: 20px; transform: rotate(-15deg); }
.command-search input { flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.command-results { max-height: 370px; overflow: auto; padding: 8px; }
.command-result { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 49px; padding: 0 10px; border-radius: 10px; color: #8fa3b7; background: transparent; text-align: left; }
.command-result:hover, .command-result.is-selected { color: var(--ink); background: rgba(98,216,255,.07); }
.command-result > span:first-child { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan); font-size: 8px; font-weight: 800; }
.command-result b, .command-result small { display: block; }
.command-result b { font-size: 9px; }
.command-result small { margin-top: 3px; color: #576e84; font-size: 7px; }
.command-result em { color: #52687e; font-size: 7px; font-style: normal; }
.command-hint { display: flex; gap: 17px; padding: 10px 14px; border-top: 1px solid var(--line); color: #50667b; font-size: 7px; }
.command-hint span { display: flex; gap: 4px; align-items: center; }
.command-hint kbd { padding: 2px 4px; font-size: 6px; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(360px, calc(100% - 44px)); }
.toast { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(13,30,47,.97); box-shadow: var(--shadow); animation: toast-in .28s var(--ease); }
.toast > i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.toast.is-error > i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.toast b { display: block; font-size: 9px; }
.toast small { display: block; margin-top: 3px; color: #61788e; font-size: 7px; }
.toast button { color: #647a90; background: transparent; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.nav-scrim { display: none; }

@media (max-width: 1220px) {
  :root { --sidebar: 248px; }
  .operator-menu > span:last-child, .environment-badge span { display: none; }
  .crumb { min-width: 180px; }
  .overview-grid.lower { grid-template-columns: 1fr 1fr; }
  .activity-card { grid-column: 1 / -1; }
  .alert-board, .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .access-gate { grid-template-columns: 1fr; }
  .access-brand { min-height: 45vh; padding: 35px 30px 25px; }
  .access-copy { margin: 8vh 0 25px; }
  .access-copy h1 { font-size: clamp(42px, 11vw, 72px); }
  .authority-chain { display: none; }
  .access-panel { padding: 25px 22px 50px; border: 0; }
  .control-shell { display: block; }
  .sidebar { width: min(290px, 86vw); transform: translateX(-103%); transition: transform .25s var(--ease); }
  .sidebar.is-open { transform: translateX(0); }
  .main-stage { min-width: 0; }
  .mobile-only { display: grid; }
  .nav-scrim { position: fixed; z-index: 19; inset: 0; background: rgba(2,8,15,.62); backdrop-filter: blur(3px); }
  .nav-scrim.is-visible { display: block; }
  .topbar { padding: 0 20px; }
  .crumb { min-width: 0; }
  .command-trigger { width: auto; margin-left: auto; }
  .command-trigger > span:nth-child(2) { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .partner-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .access-brand { min-height: 40vh; }
  .access-copy > p:last-child { font-size: 14px; }
  .access-card { padding: 25px 21px; }
  .access-assurance { gap: 8px; }
  .topbar { gap: 10px; min-height: 62px; padding: 0 13px; }
  .crumb span, .crumb i, .environment-badge { display: none; }
  .command-trigger { min-height: 35px; padding: 0 9px; }
  .operator-menu { display: none; }
  .stage-content { padding: 25px 13px 55px; }
  .heading-with-action { display: block; }
  .heading-with-action > button, .heading-actions { margin-top: 17px; }
  .heading-actions { flex-wrap: wrap; }
  .posture-banner { grid-template-columns: auto minmax(0,1fr); padding: 18px; }
  .posture-meta { display: none; }
  .metric-grid, .summary-strip { grid-template-columns: 1fr 1fr; }
  .overview-grid.lower { grid-template-columns: 1fr; }
  .activity-card { grid-column: auto; }
  .topology { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topology::before { display: none; }
  .authority-node:last-child { grid-column: 1 / -1; }
  .table-toolbar { display: block; padding: 12px; }
  .table-search { margin-top: 10px; }
  .alert-board, .route-grid { grid-template-columns: 1fr; }
  .activity-layout { grid-template-columns: 1fr; }
  .activity-filters { display: flex; gap: 4px; overflow-x: auto; padding: 10px; }
  .activity-filters h2, .chain-proof { display: none; }
  .activity-filter { width: auto; min-width: max-content; }
  .timeline-row { grid-template-columns: 18px minmax(0,1fr); gap: 8px; }
  .timeline-time, .timeline-proof { display: none; }
  .timeline-rail { grid-column: 1; }
  .timeline-body { grid-column: 2; }
  .dynamic-fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
