:root {
  --page: #e9eeed;
  --page-deep: #dfe7e4;
  --panel: #fbfdfc;
  --panel-raised: #f7faf8;
  --panel-inset: #f0f5f3;
  --rail: #112322;
  --rail-raised: #18312f;
  --rail-ink: #a8bfba;
  --rail-ink-soft: #77928d;
  --ink-1: #102322;
  --ink-2: #3c4e4c;
  --ink-3: #6b7d7a;
  --ink-4: #8b9a97;
  --accent: #176c6b;
  --accent-deep: #0f5959;
  --accent-dark: #2fd3c5;
  --accent-soft: rgba(23, 108, 107, .11);
  --accent-soft-strong: rgba(23, 108, 107, .17);
  --on-accent: #f5fffc;
  --accent-2: #c4633f;
  --positive: #2c7a62;
  --danger: #b7473b;
  --warning: #ad741d;
  --border: rgba(16, 51, 49, .105);
  --border-light: rgba(246, 253, 250, .105);
  --shadow: 0 1px 3px rgba(19, 61, 74, .055);
  --shadow-lg: 0 32px 80px -46px rgba(19, 61, 74, .40);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  font-family: "Aptos", "Segoe UI Variable", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink-1);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { min-width: 320px; min-height: 100dvh; margin: 0; background: var(--page); color: var(--ink-1); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .14em; line-height: 1.2; }

/* Login */
.login-screen { position: relative; display: grid; min-height: 100dvh; place-items: center; overflow: hidden; padding: 32px 20px; background: radial-gradient(circle at 15% 15%, rgba(47, 211, 197, .12), transparent 34%), var(--page); }
.login-screen::before, .login-screen::after { position: absolute; content: ""; pointer-events: none; border: 1px solid rgba(23, 108, 107, .10); border-radius: 50%; }
.login-screen::before { width: 640px; height: 640px; right: -220px; top: -260px; }
.login-screen::after { width: 420px; height: 420px; left: -210px; bottom: -190px; }
.login-orbit { position: absolute; width: min(65vw, 640px); aspect-ratio: 1; right: 5vw; top: 10vh; opacity: .7; pointer-events: none; }
.login-orbit::before { position: absolute; inset: 12%; content: ""; border: 1px solid rgba(23, 108, 107, .12); border-radius: 50%; transform: rotate(-18deg) scaleX(.7); }
.login-orbit::after { position: absolute; inset: 24%; content: ""; border: 1px dashed rgba(23, 108, 107, .12); border-radius: 50%; transform: rotate(35deg) scaleX(.72); }
.login-orbit span, .login-orbit i, .login-orbit b { position: absolute; display: block; border-radius: 50%; }
.login-orbit span { width: 9px; height: 9px; top: 14%; right: 23%; background: var(--accent); box-shadow: 0 0 0 8px rgba(23, 108, 107, .09), 0 0 32px rgba(23, 108, 107, .28); }
.login-orbit i { width: 5px; height: 5px; left: 18%; top: 36%; background: var(--accent-2); }
.login-orbit b { width: 6px; height: 6px; right: 12%; bottom: 24%; background: var(--accent-dark); }
.login-card { position: relative; z-index: 1; width: min(100%, 472px); padding: 42px 44px 32px; border: 1px solid var(--border); border-radius: var(--r-lg); background: rgba(251, 253, 252, .94); box-shadow: var(--shadow-lg); animation: rise-in .55s cubic-bezier(.16,1,.3,1) both; }
.brand-lockup, .rail-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lockup strong, .rail-brand strong { display: block; font-size: 15px; letter-spacing: -.02em; line-height: 1.1; }
.brand-lockup small, .rail-brand small { display: block; margin-top: 5px; color: var(--ink-4); font-size: 9px; font-weight: 700; letter-spacing: .13em; line-height: 1; }
.brand-symbol { position: relative; display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(23, 108, 107, .28); border-radius: 11px; background: var(--accent-soft); overflow: hidden; }
.brand-symbol::before { position: absolute; width: 22px; height: 22px; content: ""; border: 1px solid var(--accent); border-radius: 50%; opacity: .42; }
.brand-symbol span:first-child { position: absolute; width: 13px; height: 4px; border-radius: 4px; background: var(--accent); transform: rotate(-42deg) translate(-2px, 1px); }
.brand-symbol span:last-child { position: absolute; width: 13px; height: 4px; border-radius: 4px; background: var(--accent-dark); transform: rotate(42deg) translate(2px, 1px); }
.login-copy { margin: 64px 0 30px; }
.login-copy h1 { margin: 0 0 14px; color: var(--ink-1); font-size: clamp(32px, 6vw, 44px); font-weight: 760; letter-spacing: -.055em; line-height: .98; }
.login-copy p:last-child { max-width: 34em; margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.field { min-width: 0; }
.field + .field { margin-top: 18px; }
.field label, .choice-group legend { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.field input, .field select { display: block; width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-sm); outline: none; background: var(--panel-inset); color: var(--ink-1); font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field input::placeholder { color: var(--ink-4); }
.field input:hover, .field select:hover { border-color: rgba(23, 108, 107, .28); }
.field input:focus, .field select:focus { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft); }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.visibility-button { position: absolute; right: 6px; top: 5px; min-width: 54px; min-height: 36px; padding: 0 7px; border: 0; border-radius: 9px; background: transparent; color: var(--accent); font-size: 11px; font-weight: 750; }
.visibility-button:hover, .visibility-button:focus-visible { background: var(--accent-soft); outline: none; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel); color: var(--ink-2); font-size: 12px; font-weight: 750; line-height: 1; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { border-color: rgba(23, 108, 107, .30); background: var(--panel-raised); color: var(--accent-deep); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible, .logout-button:focus-visible, .mobile-menu:focus-visible, .modal-close:focus-visible { outline: 3px solid var(--accent-soft-strong); outline-offset: 2px; }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgba(23, 108, 107, .18); }
.button-primary:hover { border-color: var(--accent-deep); background: var(--accent-deep); color: var(--on-accent); box-shadow: 0 10px 26px rgba(23, 108, 107, .24); }
.button-secondary { border-color: rgba(23, 108, 107, .22); background: var(--accent-soft); color: var(--accent-deep); }
.button-quiet { border-color: transparent; background: transparent; color: var(--ink-3); box-shadow: none; }
.button-quiet:hover { border-color: var(--border); background: var(--panel-inset); color: var(--ink-2); box-shadow: none; }
.login-submit { width: 100%; min-height: 52px; margin-top: 28px; justify-content: space-between; padding: 0 18px 0 20px; font-size: 13px; }
.button-arrow { font-size: 18px; font-weight: 400; }
.form-message { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: 12px; line-height: 1.5; }
.login-footnote { display: flex; align-items: center; gap: 8px; margin-top: 38px; color: var(--ink-4); font-size: 10px; letter-spacing: .04em; }
.lock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px rgba(44, 122, 98, .10); }

/* Shell */
.console { display: grid; min-height: 100dvh; grid-template-columns: 246px minmax(0, 1fr); background: var(--page); }
.rail { position: sticky; top: 0; display: flex; height: 100dvh; flex-direction: column; padding: 24px 16px 18px; background: var(--rail); color: var(--rail-ink); }
.rail-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.rail-brand { color: var(--rail-ink); }
.rail-brand strong { color: #edf8f4; }
.rail-brand small { color: var(--rail-ink-soft); }
.rail .brand-symbol { border-color: rgba(47, 211, 197, .24); background: rgba(47, 211, 197, .10); }
.rail .brand-symbol::before { border-color: var(--accent-dark); }
.rail .brand-symbol span:first-child { background: var(--accent-dark); }
.rail .brand-symbol span:last-child { background: #f0a868; }
.rail-close { display: none; min-width: 40px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--rail-ink); font-size: 24px; }
.rail-nav { margin-top: 66px; }
.rail-label { margin: 0 10px 10px; color: var(--rail-ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.rail-label-spaced { margin-top: 36px; }
.nav-item { position: relative; display: flex; width: 100%; min-height: 46px; align-items: center; gap: 12px; margin: 4px 0; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--rail-ink); font-size: 13px; font-weight: 650; text-align: left; transition: background .18s ease, color .18s ease; }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #e8f5f1; }
.nav-item.is-active { background: var(--rail-raised); color: #eafff8; }
.nav-item.is-active::before { position: absolute; left: -16px; width: 3px; height: 22px; content: ""; border-radius: 0 4px 4px 0; background: var(--accent-dark); }
.nav-icon { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(168, 191, 186, .18); border-radius: 8px; color: var(--rail-ink-soft); font-size: 15px; line-height: 1; }
.nav-item.is-active .nav-icon { border-color: rgba(47, 211, 197, .24); background: rgba(47, 211, 197, .12); color: var(--accent-dark); }
.rail-bottom { margin-top: auto; }
.rail-status { display: grid; grid-template-columns: 8px 1fr; column-gap: 9px; align-items: center; margin: 0 6px 18px; padding: 13px 12px; border: 1px solid var(--border-light); border-radius: 12px; background: rgba(255, 255, 255, .035); color: var(--rail-ink); font-size: 11px; }
.rail-status small { grid-column: 2; margin-top: 5px; color: var(--rail-ink-soft); font-size: 8px; letter-spacing: .11em; }
.status-pulse, .session-badge i, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); box-shadow: 0 0 0 4px rgba(47, 211, 197, .10); }
.logout-button { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--rail-ink-soft); font-size: 12px; font-weight: 650; text-align: left; }
.logout-button:hover { background: rgba(255, 255, 255, .055); color: #e8f5f1; }
.main-shell { min-width: 0; }
.topbar { display: flex; height: 74px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--border); background: rgba(251, 253, 252, .68); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--ink-4); font-size: 12px; }
.breadcrumbs b { color: var(--border); font-weight: 500; }
.breadcrumbs strong { color: var(--ink-2); font-weight: 750; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.session-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--positive); font-size: 11px; font-weight: 700; }
.session-badge i { width: 6px; height: 6px; background: var(--positive); box-shadow: 0 0 0 4px rgba(44, 122, 98, .09); }
.icon-button, .mobile-menu { display: grid; min-width: 40px; min-height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--ink-3); font-size: 20px; }
.icon-button:hover { border-color: rgba(23, 108, 107, .28); color: var(--accent); }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.mobile-menu { display: none; }
.content { width: min(100%, 1500px); margin: 0 auto; padding: 42px 44px 64px; }
.page-section { display: none; }
.page-section.is-visible { display: block; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.section-header.compact { align-items: flex-start; }
.section-header h1 { max-width: 700px; margin: 0; color: var(--ink-1); font-size: clamp(33px, 4.2vw, 54px); font-weight: 780; letter-spacing: -.06em; line-height: .98; }
.section-header h1 em { color: var(--accent); font-style: normal; }
.section-lead { max-width: 610px; margin: 18px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.header-meta { display: flex; align-items: center; gap: 14px; padding-bottom: 3px; color: var(--ink-4); font-size: 11px; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-top: 42px; }
.metric-card { position: relative; min-height: 166px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.metric-primary { border-color: rgba(23, 108, 107, .22); background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 30px rgba(23, 108, 107, .17); }
.metric-top { display: flex; align-items: center; gap: 10px; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.metric-primary .metric-icon { background: rgba(245, 255, 252, .14); color: var(--on-accent); }
.metric-kicker { color: var(--ink-4); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.metric-primary .metric-kicker { color: rgba(245, 255, 252, .68); }
.metric-card strong { display: block; margin-top: 23px; color: var(--ink-1); font-size: 34px; font-variant-numeric: tabular-nums; font-weight: 780; letter-spacing: -.05em; line-height: 1; }
.metric-primary strong { color: var(--on-accent); }
.metric-card p { margin: 8px 0 0; color: var(--ink-3); font-size: 12px; }
.metric-primary p { color: rgba(245, 255, 252, .70); }
.metric-note { display: block; margin-top: 17px; color: var(--ink-4); font-size: 10px; }
.metric-primary .metric-note { color: rgba(245, 255, 252, .64); }
.icon-live { color: var(--positive); font-size: 11px; }
.icon-audit { color: var(--accent-2); }
.metric-line { position: absolute; right: 22px; bottom: 22px; left: 22px; height: 3px; border-radius: 3px; background: rgba(245, 255, 252, .14); }
.metric-line span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--accent-dark); }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 54px; }
.section-title-row h2 { margin: 0; font-size: 24px; font-weight: 760; letter-spacing: -.04em; }
.section-caption { color: var(--ink-4); font-size: 11px; }
.section-caption b { color: var(--ink-2); }
.target-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; }
.target-card { position: relative; display: flex; min-height: 318px; flex-direction: column; padding: 23px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; animation: rise-in .48s cubic-bezier(.16,1,.3,1) both; }
.target-card:nth-child(2) { animation-delay: .06s; }
.target-card::after { position: absolute; right: -52px; top: -60px; width: 170px; height: 170px; content: ""; border: 1px solid rgba(23, 108, 107, .12); border-radius: 50%; pointer-events: none; }
.target-card.target-offline { border-color: rgba(183, 71, 59, .22); }
.target-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.target-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.target-glyph { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(23, 108, 107, .18); border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: -.06em; }
.target-card h3 { margin: 0; font-size: 16px; font-weight: 760; letter-spacing: -.03em; line-height: 1.25; }
.target-card .target-description { margin: 5px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.45; }
.status-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 27px; padding: 0 9px; border-radius: 99px; background: rgba(44, 122, 98, .10); color: var(--positive); font-size: 10px; font-weight: 750; }
.status-pill .status-dot { width: 5px; height: 5px; background: var(--positive); box-shadow: none; }
.status-pill.offline { background: rgba(183, 71, 59, .10); color: var(--danger); }
.status-pill.offline .status-dot { background: var(--danger); }
.domain-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.domain-chip { padding: 6px 8px; border-radius: 7px; background: var(--panel-inset); color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.target-token { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-inset); }
.target-token-label { color: var(--ink-4); font-size: 10px; font-weight: 700; }
.target-token-value { color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; letter-spacing: .04em; }
.target-details { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 16px; color: var(--ink-4); font-size: 10px; }
.target-details span { display: inline-flex; align-items: center; gap: 5px; }
.target-details b { color: var(--ink-2); font-weight: 700; }
.target-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 25px; }
.target-actions .button { min-height: 40px; padding: 0 12px; font-size: 11px; }
.loading-card { display: flex; min-height: 318px; align-items: center; justify-content: center; gap: 10px; grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: var(--r); color: var(--ink-4); font-size: 12px; }
.loader { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(23, 108, 107, .18); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.notice-panel, .security-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 26px; padding: 17px 19px; border: 1px solid rgba(23, 108, 107, .13); border-radius: var(--r); background: var(--accent-soft); }
.notice-mark, .security-note > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(23, 108, 107, .14); color: var(--accent); font-size: 12px; font-weight: 800; }
.notice-panel strong, .security-note strong { display: block; margin: 1px 0 5px; color: var(--ink-2); font-size: 12px; }
.notice-panel p, .security-note p { margin: 0; color: var(--ink-3); font-size: 11px; line-height: 1.6; }
.notice-panel .domain-correction { margin-top: 7px; color: var(--ink-2); }
.domain-correction code { padding: 2px 5px; border-radius: 5px; background: rgba(23, 108, 107, .09); color: var(--accent-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }

/* Audit and security */
.filter-panel { display: grid; grid-template-columns: 1.15fr 1.1fr .9fr .9fr 1.3fr auto; gap: 11px; align-items: end; margin-top: 38px; padding: 17px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
.filter-panel .field + .field { margin-top: 0; }
.filter-panel .field input, .filter-panel .field select { min-height: 42px; font-size: 12px; }
.filter-button { min-height: 42px; }
.table-card { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 21px 16px; }
.table-heading h2 { margin: 0; font-size: 18px; font-weight: 760; letter-spacing: -.03em; }
.table-heading p { margin: 6px 0 0; color: var(--ink-4); font-size: 11px; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 13px 21px; border-top: 1px solid rgba(16, 51, 49, .065); color: var(--ink-2); font-size: 11px; text-align: left; vertical-align: top; }
th { color: var(--ink-4); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
td:first-child { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
td code { color: var(--accent-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.table-empty { height: 160px; color: var(--ink-4); text-align: center; }
.table-empty .loader { margin-right: 8px; vertical-align: -3px; }
.result-chip { display: inline-flex; padding: 5px 8px; border-radius: 7px; background: rgba(44, 122, 98, .10); color: var(--positive); font-size: 10px; font-weight: 750; }
.result-chip.denied, .result-chip.failed { background: rgba(183, 71, 59, .10); color: var(--danger); }
.action-chip { display: inline-flex; padding: 5px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-deep); font-size: 10px; font-weight: 700; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 40px; }
.security-card { min-height: 194px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
.security-card.security-wide { grid-column: 1 / -1; min-height: auto; }
.security-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.card-label { margin: 20px 0 7px; color: var(--ink-4); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.security-card h2 { margin: 0; font-size: 18px; font-weight: 760; letter-spacing: -.035em; }
.security-card > strong { display: block; margin-top: 13px; color: var(--accent-deep); font-size: 13px; }
.security-card > p:last-child { max-width: 58em; margin: 12px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.65; }
.security-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; color: var(--accent-deep); font-size: 11px; font-weight: 750; }
.security-flow span { padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); }
.security-flow b { color: var(--ink-4); font-weight: 500; }
.security-note { margin-top: 18px; }
.security-note > span { background: rgba(173, 116, 29, .12); color: var(--warning); }

/* Dialogs */
.modal { width: min(calc(100% - 32px), 490px); padding: 0; border: 0; border-radius: var(--r-lg); background: transparent; color: var(--ink-1); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(16, 35, 34, .38); backdrop-filter: blur(4px); }
.modal-card { position: relative; padding: 30px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; right: 16px; top: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink-4); font-size: 24px; }
.modal-close:hover { background: var(--panel-inset); color: var(--ink-2); }
.modal-card h2 { margin: 0; font-size: 25px; font-weight: 780; letter-spacing: -.05em; }
.modal-copy { margin: 10px 0 24px; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.modal-card .field + .field { margin-top: 16px; }
.choice-group { margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 9px; }
.choice-card { position: relative; display: flex; min-height: 58px; align-items: center; gap: 11px; margin-top: 8px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-inset); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.choice-card:hover, .choice-card.is-selected { border-color: rgba(23, 108, 107, .30); background: var(--accent-soft); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card::before { display: block; width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid var(--ink-4); border-radius: 50%; content: ""; }
.choice-card.is-selected::before { border: 5px solid var(--accent); }
.choice-card b, .choice-card small { display: block; }
.choice-card b { color: var(--ink-2); font-size: 12px; }
.choice-card small { margin-top: 4px; color: var(--ink-4); font-size: 10px; }
.choice-card i { display: none; margin-left: auto; color: var(--accent); font-size: 14px; font-style: normal; }
.choice-card.is-selected i { display: block; }
.custom-token-field { margin-top: 16px; }
.custom-token-field small { display: block; margin-top: 6px; color: var(--ink-4); font-size: 10px; }
.warning-box { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px 13px; border: 1px solid rgba(173, 116, 29, .18); border-radius: 11px; background: rgba(173, 116, 29, .08); }
.warning-box > span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: rgba(173, 116, 29, .13); color: var(--warning); font-size: 11px; font-weight: 800; }
.warning-box p { margin: 1px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.55; }
.token-display { overflow-wrap: anywhere; margin-top: 20px; padding: 17px; border: 1px solid rgba(23, 108, 107, .20); border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.55; }
.auto-hide-note { margin: 14px 0 0; color: var(--ink-4); font-size: 10px; text-align: right; }
.toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; max-width: min(380px, calc(100% - 48px)); padding: 13px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--rail); color: #eaf7f3; box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: rgba(240, 122, 105, .42); }
.console-footer { display: flex; justify-content: space-between; gap: 15px; padding: 0 44px 24px; color: var(--ink-4); font-size: 10px; }

/* Motion is feedback only and has a composed reduced-motion terminal state. */
.reveal { animation: rise-in .48s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

@media (max-width: 1120px) {
  .content { padding-right: 28px; padding-left: 28px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .console-footer { padding-right: 28px; padding-left: 28px; }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .filter-button { grid-column: 3; }
}
@media (max-width: 820px) {
  .console { display: block; }
  .rail { position: fixed; z-index: 80; left: 0; top: 0; width: 246px; transform: translateX(-102%); transition: transform .22s cubic-bezier(.16, 1, .3, 1); }
  .console.menu-open .rail { transform: translateX(0); box-shadow: 20px 0 60px rgba(16, 35, 34, .22); }
  .rail-close { display: block; }
  .mobile-menu { display: grid; }
  .topbar { height: 66px; padding: 0 20px; }
  .breadcrumbs { margin-left: 10px; margin-right: auto; }
  .session-badge { display: none; }
  .content { padding: 34px 20px 54px; }
  .console-footer { padding: 0 20px 22px; }
  .section-header { display: block; }
  .header-meta { justify-content: space-between; margin-top: 22px; }
  .target-grid { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
  .filter-button { grid-column: auto; }
}
@media (max-width: 560px) {
  .login-card { padding: 31px 23px 25px; }
  .login-copy { margin-top: 52px; }
  .section-header h1 { font-size: 38px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-primary { grid-column: 1 / -1; }
  .metric-card { min-height: 145px; padding: 16px; }
  .metric-card strong { margin-top: 18px; font-size: 29px; }
  .metric-line { right: 16px; bottom: 16px; left: 16px; }
  .section-title-row { margin-top: 42px; }
  .target-card { padding: 18px; }
  .target-card-header { display: block; }
  .status-pill { margin-top: 14px; }
  .target-token { display: block; }
  .target-token-value { display: block; margin-top: 7px; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-button { width: 100%; }
  .security-grid { grid-template-columns: 1fr; }
  .security-card.security-wide { grid-column: auto; }
  .security-flow { align-items: flex-start; flex-direction: column; }
  .security-flow b { display: none; }
  .table-heading { align-items: flex-start; flex-direction: column; }
  .console-footer { flex-direction: column; }
  .modal-card { padding: 25px 20px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .button { flex: 1; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100% - 32px); }
}
