/* Midnight navigation, an ice workspace, and a cobalt action language. */
:root {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #182d4b;
  background: #f2f6fc;
  font-synthesis: none;
  --navy: #101f3c;
  --navy-soft: #1d3153;
  --surface: #fff;
  --ice: #f2f6fc;
  --cobalt: #2459df;
  --cobalt-dark: #1843b3;
  --ink: #182d4b;
  --muted: #62738a;
  --line: #dce5f0;
  --teal: #087e72;
  --amber: #9a5b0a;
  --red: #b33443;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.55; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
button:disabled { opacity: .52; }
:focus-visible { outline: 3px solid #709aff; outline-offset: 3px; }
a { color: var(--cobalt); }
button, a { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 37px); font-weight: 650; letter-spacing: -1.2px; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -.3px; }
h3 { font-size: 14px; font-weight: 650; }
p { max-width: 78ch; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
.muted, .field-help, dt { color: var(--muted); }
.small { font-size: 12px; }
.optional { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; z-index: 100; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.button-primary { background: var(--cobalt); color: white; border-color: var(--cobalt); }
.button-primary:hover:not(:disabled) { background: var(--cobalt-dark); border-color: var(--cobalt-dark); }
.button-secondary { background: white; border-color: #cad6e6; color: #30496b; }
.button-secondary:hover:not(:disabled) { background: #f1f5fc; border-color: #a3b6d1; }
.button-quiet { color: #53677f; background: transparent; }
.button-quiet:hover:not(:disabled) { background: #e8eef8; }
.button-danger { color: white; background: var(--red); }
.button-danger:hover:not(:disabled) { background: #942535; }
.button-danger-quiet { color: #ac3040; background: #fff7f8; border-color: #f2d9de; }
.button-danger-quiet:hover:not(:disabled) { background: #fbe8ec; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.button-row .button { flex: 1; }
label:not(.switch-row):not(.checkbox-row) { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 41px; color: var(--ink); background: #fff; border: 1px solid #cbd7e6; border-radius: 6px; padding: 9px 11px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #78889d; opacity: 1; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover { border-color: #9eafc7; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); outline: 3px solid #2459df18; outline-offset: 0; }
input:disabled, select:disabled { background: #f3f6fa; color: #637286; }
input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--cobalt); flex-shrink: 0; }
.field-help { display: block; font-size: 12px; line-height: 1.6; margin-top: 7px; }
form > input + label, .form-columns + label, form > select + label { margin-top: 17px; }
.inline-error { font-size: 13px; color: #a42b3c; background: #fff1f3; border-left: 3px solid #bf354b; border-radius: 3px; padding: 10px 12px; margin: 12px 0; overflow-wrap: anywhere; }
.message { display: flex; gap: 7px; align-items: flex-start; background: #edf3ff; color: #31517d; border: 1px solid #d4e0f7; border-radius: 7px; padding: 12px 14px; font-size: 13px; overflow-wrap: anywhere; }
.message-error { background: #fff1f3; border-color: #f1d2da; color: #a02d40; }
.message-warning { background: #fff7e9; border-color: #f0dfb7; color: #82500c; }
#transport-warning { position: sticky; top: 0; z-index: 2000; margin: 0; border-radius: 0; }
.message-info { display: block; margin: 12px 0 22px; }
.message-dismiss { margin-left: auto; color: inherit; background: transparent; border: 0; font-size: 23px; line-height: 1; padding: 0 0 0 10px; }
.global-message { margin-bottom: 18px; }
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); }
.brand-symbol { position: relative; display: inline-flex; width: 39px; height: 39px; background: #2d65f1; border-radius: 10px; color: white; align-items: center; justify-content: center; font-size: 23px; line-height: 1; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.brand-symbol span { position: absolute; width: 16px; height: 4px; background: #8bafff; transform: rotate(-45deg); bottom: 7px; right: -3px; }
.brand { display: flex; align-items: center; gap: 12px; color: #f4f7ff; font-size: 16px; font-weight: 650; text-decoration: none; }
.brand strong { font-size: 12px; color: #a7b9d6; font-weight: 400; }
.brand-home { line-height: 1.25; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); padding: 32px 22px 20px; display: flex; flex-direction: column; color: #aebfda; z-index: 10; }
.sidebar-caption { font-size: 11px; color: #8da3c6; margin: 48px 12px 13px; }
.primary-nav { display: grid; gap: 7px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; color: #afc0db; min-height: 45px; border-radius: 7px; text-decoration: none; padding: 10px 12px; font-size: 13px; }
.nav-link:hover { color: white; background: #192d4d; }
.nav-link.active { color: white; background: #253c63; }
.nav-link.active::before { content: ""; position: absolute; left: -22px; top: 11px; bottom: 11px; width: 3px; background: #6592ff; border-radius: 0 2px 2px 0; }
.nav-count { margin-left: auto; border-radius: 5px; background: #38517a; color: #d8e6ff; min-width: 22px; text-align: center; font-size: 11px; padding: 1px 5px; }
.sidebar-bottom { margin-top: auto; padding: 24px 8px 0; }
.vault-caption { display: flex; gap: 8px; align-items: center; color: #e5edfc; font-size: 12px; font-weight: 600; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #55c4b6; border-radius: 50%; flex-shrink: 0; }
.sidebar-bottom > p { font-size: 11px; margin-top: 8px; overflow-wrap: anywhere; }
.sidebar-note { color: #90a7ca; }
.sidebar-version { border-top: 1px solid #2a3b57; margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; color: #8299bd; font-size: 10px; }
.workspace { min-width: 0; }
.topbar { min-height: 73px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #ffffffb3; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #71829a; font-size: 12px; display: flex; gap: 13px; align-items: center; }
.breadcrumb strong { color: #345074; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.sync-status { color: var(--muted); font-size: 11px; }
.sync-status.is-error { color: var(--red); }
.main-content { padding: 34px 38px 18px; max-width: 1740px; margin: auto; }
.main-content:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 0 25px; }
.page-heading p { color: var(--muted); margin-top: 9px; font-size: 13px; }
.page-actions { display: flex; gap: 9px; flex-shrink: 0; }
.page-actions .button-primary > span { font-size: 19px; line-height: 1; font-weight: 400; }
.system-strip { border-block: 1px solid var(--line); padding: 11px 0; display: flex; gap: 25px; align-items: center; flex-wrap: wrap; color: var(--muted); margin-bottom: 25px; font-size: 11px; }
.system-strip > span { display: inline-flex; align-items: center; gap: 7px; }
.system-strip > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #8a9bb4; }
.system-strip > span.is-ok::before { background: var(--teal); }
.system-strip > span.is-warning::before { background: #b97516; }
.system-strip > span:last-child { margin-left: auto; }
.demo-banner { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid #d4c4f3; background: #f0eafb; color: #61418b; border-radius: 8px; font-size: 12px; margin-bottom: 26px; }
.demo-label { background: #70519b; padding: 3px 9px; border-radius: 4px; color: white; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.loading-state { min-height: 200px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: #fff8; border: 1px dashed #c6d4e8; border-radius: 10px; }
.accounts-layout { display: grid; grid-template-columns: minmax(300px,1.2fr) minmax(340px,1fr); align-items: start; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px #1e3e6d04; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px; border-bottom: 1px solid #e8edf5; }
.panel-heading h2 { font-size: 15px; }
.subtle-count { display: inline-block; background: #ecf1f8; color: #5c718f; border-radius: 5px; padding: 1px 6px; font-size: 11px; margin-left: 6px; vertical-align: 1px; }
.list-tools { display: flex; gap: 9px; padding: 17px 20px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field svg { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; color: #7486a0; pointer-events: none; }
.search-field input { padding-left: 33px; font-size: 12px; min-height: 38px; }
.list-tools > select { width: 122px; flex-shrink: 0; font-size: 12px; min-height: 38px; padding: 7px; }
.list-column-labels { display: flex; justify-content: space-between; padding: 9px 22px; font-size: 10px; color: #7b8ba2; border-block: 1px solid #eaf0f6; background: #fafcff; }
.account-row { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 0; border-bottom: 1px solid #e8eef6; padding: 20px 22px; min-height: 95px; }
.account-row:hover { background: #f7faff; }
.account-row[aria-pressed="true"] { background: #edf3ff; }
.account-row[aria-pressed="true"]::before { position: absolute; content: ""; top: 0; bottom: 0; left: 0; width: 3px; background: var(--cobalt); }
.account-row:focus-visible { outline-offset: -4px; z-index: 1; }
.avatar { width: 39px; height: 39px; display: grid; place-items: center; background: #e9effb; color: #3664ac; border: 1px solid #dae4f5; font-size: 12px; font-weight: 650; border-radius: 10px; flex-shrink: 0; }
.avatar[data-tone="1"] { color: #337a7b; background: #e7f2f3; border-color: #d7e9eb; }
.avatar[data-tone="2"] { color: #795f99; background: #eee9f6; border-color: #e5ddef; }
.avatar[data-tone="3"] { color: #98713e; background: #f6efe3; border-color: #eee1ce; }
.avatar-large { width: 47px; height: 47px; border-radius: 12px; font-size: 15px; }
.account-row-identity { min-width: 0; flex: 1; }
.account-row-identity strong { display: block; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.account-row-identity > span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }
.account-row-meta { flex-shrink: 0; display: grid; justify-items: end; gap: 6px; }
.account-row-meta > small { font-size: 10px; color: #6b7f99; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; white-space: nowrap; line-height: 1.6; color: #60748c; background: #eef2f7; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-ready, .badge-succeeded { color: #087669; background: #e6f5f1; }
.badge-attention { color: #925a10; background: #fff2d9; }
.badge-queued, .badge-connecting, .badge-running { color: #2d5bc1; background: #e9f0ff; }
.badge-error, .badge-failed { color: #ab3648; background: #fdecef; }
.list-footnote { padding: 15px 22px; font-size: 10px; color: #76869b; background: #fcfdff; }
.empty-state { padding: 50px 25px; text-align: center; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 40ch; margin: 0 auto 18px; }
.empty-glyph { width: 54px; height: 54px; display: grid; place-items: center; color: #7894bb; background: #f0f5fc; border: 1px solid #e2eaf7; border-radius: 15px; margin: 0 auto 19px; font-size: 28px; }
.inspector { border-top: 3px solid #31548b; }
.inspector-topline { padding: 13px 23px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #68809f; border-bottom: 1px solid #e8edf5; background: #fbfcff; }
.inspector-placeholder { padding: 68px 28px 80px; text-align: center; }
.inspector-placeholder p { color: var(--muted); font-size: 13px; margin: 10px auto 0; max-width: 31ch; }
.identity-heading { display: flex; align-items: center; gap: 12px; padding: 25px 23px 22px; }
.identity-heading > div:nth-child(2) { flex: 1; min-width: 0; }
.identity-heading h2 { overflow-wrap: anywhere; font-size: 20px; }
.identity-heading p { font-size: 12px; overflow-wrap: anywhere; margin-top: 3px; }
#detail-error { margin: 0 23px 21px; display: block; }
.detail-section { padding: 21px 23px; border-top: 1px solid #e9eef5; }
.detail-section h3 { margin-bottom: 12px; }
.section-heading { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.section-heading > h3 { margin-bottom: 12px; }
#settings-dirty { color: #97600c; font-size: 10px; }
.session-section { background: #f9fbff; }
.session-summary { color: #526b8c; font-size: 12px; padding-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; margin: 0; }
.detail-grid dt { font-size: 10px; margin-bottom: 4px; }
.detail-grid dd { margin: 0; font-size: 11px; color: #314c6d; overflow-wrap: anywhere; }
.identifier { font-variant-numeric: tabular-nums; letter-spacing: .15px; }
.material-list { display: flex; gap: 7px; flex-wrap: wrap; }
.material-tag { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e0e7f1; padding: 3px 8px; border-radius: 4px; font-size: 10px; color: #77869b; }
.material-tag.present { color: #407467; background: #f4faf7; border-color: #d9e9e2; }
.switch-row { display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 17px 0; cursor: pointer; }
.switch-row strong { font-weight: 600; font-size: 12px; }
.switch-row .field-help { margin-top: 2px; font-size: 11px; }
.switch { position: relative; display: inline-block; width: 36px; height: 21px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: 14px; background: #a4b2c6; pointer-events: none; }
.switch-track::after { position: absolute; content: ""; left: 3px; top: 3px; width: 15px; height: 15px; background: white; border-radius: 50%; transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--cobalt); }
.switch input:checked + .switch-track::after { transform: translateX(15px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #709aff; outline-offset: 3px; }
.switch input:disabled + .switch-track { opacity: .5; }
#rotate-secrets { border-top: 1px solid #e8edf5; padding: 12px 0 17px; }
summary { cursor: pointer; color: #587194; font-size: 12px; }
#rotate-secrets > label { margin-top: 11px; }
#account-settings-form > .button { margin-top: 4px; }
#connect-form > .field-help { margin-top: -4px; margin-bottom: 14px; }
#connect-button { margin-top: 13px; }
.danger-section { background: #fcfdff; }
.danger-section h3 { font-size: 12px; }
.danger-section .field-help { font-size: 11px; margin-top: -4px; margin-bottom: 14px; }
.danger-section .button { font-size: 11px; padding: 7px 10px; }
.integration-intro { display: flex; align-items: center; gap: 23px; padding: 26px 0 32px; }
.integration-mark { width: 64px; height: 64px; display: grid; place-items: center; background: #e5edfd; color: #3b67b9; font-size: 34px; border-radius: 18px; flex-shrink: 0; }
.integration-intro h2 { font-size: 23px; }
.integration-intro p { max-width: 67ch; font-size: 13px; color: var(--muted); margin-top: 8px; }
.integration-policy { margin-left: auto; min-width: 145px; border-left: 1px solid #d6e0ee; padding-left: 25px; }
.integration-policy strong { display: block; font-size: 12px; color: #4c6384; }
.integration-policy span { display: block; font-size: 11px; color: #70829c; max-width: 22ch; margin-top: 4px; }
.integration-card { display: grid; grid-template-columns: minmax(160px,1fr) minmax(150px,1.3fr) auto; align-items: center; gap: 28px; padding: 24px; border-bottom: 1px solid #e8edf5; }
.integration-card:last-child { border-bottom: 0; }
.integration-card h3 { overflow-wrap: anywhere; }
.integration-card .integration-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
.integration-scope { display: flex; gap: 5px; flex-wrap: wrap; }
.scope-chip { display: inline-block; font-size: 11px; background: #f1f5fb; border: 1px solid #e0e8f3; padding: 3px 7px; border-radius: 4px; overflow-wrap: anywhere; max-width: 100%; }
.broker-note { max-width: 800px; padding: 30px 0; }
.broker-note h3 { margin-bottom: 9px; }
.broker-note > p { font-size: 12px; color: var(--muted); }
code { font-family: Consolas, "Cascadia Code", monospace; font-size: .92em; overflow-wrap: anywhere; }
.code-block { display: block; background: #e9eff8; border: 1px solid #d9e3f0; border-radius: 7px; padding: 13px 16px; color: #41618d; margin-top: 15px; font-size: 12px; }
.activity-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.segmented { display: inline-flex; gap: 3px; background: #e4ebf5; border: 1px solid #dce5f0; padding: 3px; border-radius: 7px; }
.segmented button { background: transparent; color: #58708f; border: 0; border-radius: 5px; padding: 8px 13px; font-size: 12px; white-space: nowrap; }
.segmented button[aria-pressed="true"] { color: #284d88; background: white; box-shadow: 0 1px 3px #12305812; }
.activity-search { max-width: 260px; font-size: 12px; }
.activity-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 15px; padding: 22px 24px; border-bottom: 1px solid #e9eef5; align-items: start; }
.activity-row:last-child { border-bottom: 0; }
.event-marker { width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; color: #6080ad; border: 1px solid #dbe4f1; background: #f2f6fc; border-radius: 9px; }
.event-marker.failed { color: #b2374b; background: #fff0f3; border-color: #f2d7df; }
.event-marker.succeeded { color: #27816e; background: #edf8f4; border-color: #d6ece3; }
.activity-content { min-width: 0; }
.activity-content h3 { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.activity-content p { color: var(--muted); font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.activity-content .activity-extra { color: #7890ac; font-size: 10px; margin-top: 5px; }
.activity-time { text-align: right; color: #74869e; font-size: 10px; white-space: nowrap; }
.activity-time time { display: block; margin-top: 6px; }
.workspace-footer { color: #8393aa; font-size: 10px; display: flex; justify-content: space-between; gap: 15px; padding: 30px 0 8px; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(350px,1fr) minmax(440px,1fr); }
.auth-intro { color: #e8efff; background: var(--navy); padding: 48px clamp(35px,6vw,100px); display: flex; flex-direction: column; }
.auth-intro-copy { margin: auto 0; padding: 60px 0; }
.outline-symbol { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border: 1px solid #3d5680; border-radius: 20px; color: #85aafa; font-size: 45px; font-weight: 600; margin-bottom: 35px; }
.auth-intro h1 { font-size: clamp(38px,4vw,58px); line-height: 1.12; letter-spacing: -2px; font-weight: 600; }
.auth-intro-copy p { color: #a3b7d8; margin-top: 24px; font-size: 15px; max-width: 38ch; line-height: 1.85; }
.auth-footnote { color: #8da6cb; font-size: 11px; }
.auth-card { display: flex; align-items: center; justify-content: center; padding: 44px; background: #f7faff; }
.auth-card-inner { width: 100%; max-width: 355px; }
.section-kicker { display: block; color: #7185a2; font-size: 11px; margin-bottom: 7px; }
.auth-card h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.9px; margin-bottom: 13px; }
.auth-card .muted { font-size: 13px; margin-bottom: 28px; }
.auth-card .message { margin-bottom: 20px; }
#auth-confirm-field { margin-top: 17px; }
#auth-submit { margin-top: 24px; }
#bootstrap-retry { margin-top: 12px; }
.auth-security { display: flex; gap: 11px; border-top: 1px solid #dfe7f2; margin-top: 32px; padding-top: 20px; color: #7b8ba2; font-size: 11px; }
.security-mark { color: #7e9ab9; font-size: 13px; }
.modal { border: 1px solid #d3dfef; border-radius: 14px; padding: 0; width: min(560px, calc(100% - 32px)); max-height: min(90dvh, 900px); color: var(--ink); background: white; box-shadow: 0 30px 120px #071b4150; }
.modal::backdrop { background: #0a193a99; backdrop-filter: blur(3px); }
.modal-header { padding: 23px 26px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e7edf6; background: #fbfcff; }
.modal-header h2 { font-size: 24px; letter-spacing: -.7px; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; padding: 0; background: transparent; color: #6d809c; border: 1px solid #e0e7f2; border-radius: 6px; font-size: 23px; }
.icon-button:hover { background: #e9eff8; }
.modal-body { padding: 24px 26px; }
.modal-body > .muted, #token-description { font-size: 13px; margin-bottom: 22px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 21px; border-top: 1px solid #e8edf5; margin-top: 22px; }
fieldset { padding: 0; border: 0; margin: 22px 0 0; min-width: 0; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.checkbox-list { display: grid; max-height: 220px; overflow: auto; border: 1px solid #dbe4f1; border-radius: 7px; }
.checkbox-list .checkbox-row { padding: 11px 13px; border-bottom: 1px solid #e7edf5; }
.checkbox-list .checkbox-row:last-child { border-bottom: 0; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 12px; cursor: pointer; overflow-wrap: anywhere; }
.checkbox-row .choice-label { min-width: 0; }
.choice-label small { display: block; color: var(--muted); margin-top: 2px; font-size: 10px; }
.token-modal { border-top: 4px solid var(--cobalt); }
#integration-token { font-family: Consolas, monospace; font-size: 13px; background: #f1f5fd; resize: vertical; overflow-wrap: anywhere; word-break: break-all; }
.token-tools { display: flex; align-items: center; gap: 15px; margin-top: 12px; }
.token-modal .checkbox-row { margin-top: 23px; }
/* Enrollment reuses the console palette; the security status is the focal point. */
.authenticator-section > .button { margin-top: 13px; }
.catalog-panel { margin-bottom: 22px; }
.catalog-body { padding: 0 22px 18px; }
.catalog-body > p { margin-top: 10px; overflow-wrap: anywhere; }
/* AI settings reuse the panel's existing form hierarchy and action palette. */
.ai-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1120px; }
.ai-form, .ai-panel-body { padding: 0 22px 22px; }
.ai-form > label:not(.switch-row) { margin-top: 17px; }
.ai-form > .field-help, .ai-panel-body > .field-help { margin-top: 14px; }
.ai-form .switch-row { border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.ai-advanced { margin-top: 20px; padding-block: 15px; border-block: 1px solid var(--line); }
.ai-advanced .form-columns { margin-top: 16px; }
.ai-advanced label { font-size: 12px; }
.ai-privacy-note { overflow-wrap: anywhere; }
.ai-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
#ai-settings-dirty { color: var(--amber); }
.ai-side { display: grid; gap: 22px; min-width: 0; }
.ai-panel-body > .button { margin-top: 16px; }
.ai-test-results { min-width: 0; }
.ai-test-sample { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.ai-test-sample h3 { overflow-wrap: anywhere; font-size: 12px; }
.ai-test-sample ol { padding-left: 21px; margin: 8px 0 0; }
.ai-test-sample li { padding-block: 3px; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 1050px) { .ai-layout { grid-template-columns: minmax(0, 1fr); max-width: 780px; } }
@media (max-width: 600px) { .ai-form, .ai-panel-body { padding-inline: 17px; } .ai-actions > .button { white-space: normal; } .primary-nav { flex-wrap: wrap; } .primary-nav .nav-link { flex: 1 1 calc(50% - 7px); } }
/* Manual account preparation stays left aligned and uses the existing console controls. */
.preparation-panel { max-width: 850px; margin-bottom: 22px; }
.preparation-panel .panel-heading { flex-wrap: wrap; padding-block: 16px; }
.preparation-body { padding: 0 22px 18px; }
.preparation-body > .field-help { margin-top: 12px; }
.preparation-body > label { margin-top: 16px; }
.preparation-body > select { max-width: 520px; }
.preparation-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 17px; }
.preparation-detail > :not(.preparation-candidates) { grid-column: 1 / -1; }
.preparation-detail > .field-help { margin-top: 0; }
.preparation-detail > .button { justify-self: start; }
.preparation-value { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.preparation-value > :first-child { min-width: 0; user-select: all; }
.preparation-value .button { min-height: 30px; padding: 4px 10px; font-size: 11px; flex-shrink: 0; }
.preparation-candidates { min-width: 0; margin-top: 6px; }
.preparation-candidates h3 { font-size: 12px; }
.preparation-candidates ol { list-style: none; margin: 10px 0 0; padding: 0; }
.preparation-candidates li { padding-block: 5px; border-bottom: 1px solid #e8edf5; font-size: 12px; }
.preparation-avatar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.preparation-avatar-tools > p { flex-basis: 100%; margin-top: 0; }
.preparation-avatar { object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.preparation-choice { margin-bottom: 20px; }
@media (max-width: 600px) {
  .preparation-panel .panel-heading { align-items: flex-start; }
  .preparation-body { padding-inline: 17px; }
  .preparation-detail { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .preparation-panel .button { white-space: normal; }
}
.authenticator-section .section-heading { flex-wrap: wrap; }
.guard-code-tools { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.guard-code-tools > .field-help { margin-top: 9px; }
.guard-code-display { margin-top: 13px; padding: 16px; background: var(--ice); border-radius: 8px; }
.current-guard-code { display: block; font-size: clamp(25px, 6vw, 34px); font-weight: 700; letter-spacing: .15em; color: var(--ink); user-select: all; line-height: 1.3; }
.guard-code-display .button { margin-top: 9px; }
.guard-code-display .field-help { margin-top: 7px; }
.authenticator-modal { border-top: 4px solid var(--cobalt); width: min(600px, calc(100% - 32px)); }
#authenticator-account { font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.enrollment-status { border-left: 3px solid var(--cobalt); background: var(--ice); padding: 13px 16px; margin-top: 18px; }
.enrollment-status > strong { font-size: 15px; }
.enrollment-status > p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.enrollment-step { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.enrollment-step h3 { font-size: 15px; margin-bottom: 10px; }
.enrollment-step .checkbox-row { align-items: flex-start; margin: 17px 0; }
.enrollment-step .checkbox-row input { margin-top: 2px; }
.enrollment-step label:not(.checkbox-row) { margin-top: 15px; }
.enrollment-step .button { margin-top: 13px; white-space: normal; }
.enrollment-step .field-help { margin-bottom: 9px; }
.enrollment-footer { align-items: flex-start; }
.enrollment-footer > p { margin: 0; flex: 1; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.backup-modal { max-width: 620px; }
.backup-modal label { margin-top: 16px; }
.backup-modal .field-help { margin-block: 10px; }
.backup-modal .message { margin-bottom: 14px; }
.backup-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.backup-preview { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.backup-preview .detail-grid { grid-template-columns: minmax(0,1fr) auto; }
.backup-conflicts { color: var(--danger, #a51f3d); font-size: 13px; overflow-wrap: anywhere; padding-left: 20px; }
@media (max-width: 760px) { .page-actions { flex-wrap: wrap; } .backup-actions { width: 100%; } .backup-actions .button { flex: 1; } }
.confirm-modal { max-width: 440px; }
#confirm-description { font-size: 13px; color: #5a6f8c; overflow-wrap: anywhere; }
.noscript-message { position: fixed; inset: 0; background: var(--ice); display: grid; place-items: center; padding: 35px; z-index: 100; text-align: center; }
@media (min-width: 1550px) { .accounts-layout { grid-template-columns: minmax(400px,1.4fr) minmax(420px,1fr); } .account-row { padding-block: 24px; } }
@media (max-width: 1200px) { .sidebar { padding-inline: 16px; } .app-shell { grid-template-columns: 194px minmax(0,1fr); } .nav-link.active::before { left: -16px; } .main-content { padding-inline: 25px; } .topbar { padding-inline: 25px; } .accounts-layout { gap: 17px; grid-template-columns: minmax(265px,1fr) minmax(310px,1fr); } .list-tools { flex-direction: column; } .list-tools > select { width: 100%; } .account-row { gap: 10px; padding-inline: 17px; } .account-row .avatar { width: 32px; height: 32px; border-radius: 8px; font-size: 10px; } .account-row-meta { max-width: 110px; } .panel-heading > .small { display: none; } .identity-heading, .detail-section { padding-inline: 20px; } .integration-policy { display: none; } }
@media (max-width: 1000px) { .accounts-layout { grid-template-columns: 1fr; } .account-list { max-height: 450px; overflow-y: auto; } .list-tools { flex-direction: row; } .list-tools > select { width: 130px; } .account-row { padding-inline: 22px; min-height: 82px; padding-block: 15px; } .inspector-placeholder { padding-block: 45px; } .identity-heading { padding: 24px; } .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .integration-card { gap: 16px; grid-template-columns: minmax(0,1fr) auto; } .integration-scope { grid-column: 1; grid-row: 2; } .integration-card > .button { grid-row: 1 / 3; grid-column: 2; } .activity-toolbar { flex-wrap: wrap; } .activity-search { max-width: none; } }
@media (max-width: 760px) { .app-shell { display: block; } .sidebar { position: relative; top: auto; height: auto; padding: 17px 20px 0; } .brand-home br { display: none; } .brand-home strong { display: inline; font-size: 15px; margin-left: 4px; color: #f4f7ff; font-weight: 600; } .brand-symbol { width: 33px; height: 33px; font-size: 21px; border-radius: 8px; } .sidebar-caption, .sidebar-bottom { display: none; } .primary-nav { display: flex; gap: 7px; margin-top: 18px; } .nav-link { justify-content: center; flex: 1; border-radius: 7px 7px 0 0; padding: 10px; min-height: 43px; font-size: 12px; gap: 8px; } .nav-link.active { background: #2a4063; } .nav-link.active::before { left: 16px; right: 16px; top: auto; bottom: 0; width: auto; height: 2px; border-radius: 2px 2px 0 0; } .nav-count { margin-left: 0; font-size: 10px; } .nav-link svg { width: 17px; height: 17px; } .topbar { min-height: 54px; padding: 5px 20px; } .topbar-actions { gap: 6px; } .sync-status { font-size: 10px; } .topbar .button { min-height: 33px; padding: 5px 9px; font-size: 11px; } .breadcrumb { font-size: 10px; gap: 8px; } .main-content { padding: 26px 20px 14px; } .page-heading { gap: 18px; align-items: flex-start; flex-direction: column; margin-bottom: 22px; } .page-heading h1 { font-size: 30px; } .page-heading p { font-size: 12px; margin-top: 7px; } .page-actions { width: 100%; } .page-actions > .button:last-child { flex: 1; } .system-strip { font-size: 10px; gap: 10px 20px; padding-block: 10px; margin-bottom: 20px; } .system-strip > span:last-child { margin-left: 0; } .demo-banner { align-items: flex-start; font-size: 11px; } .integration-intro { align-items: flex-start; padding: 10px 0 25px; gap: 15px; } .integration-mark { width: 45px; height: 45px; font-size: 27px; border-radius: 11px; } .integration-intro h2 { font-size: 20px; } .integration-intro p { font-size: 12px; } .activity-row { gap: 10px; padding: 18px; grid-template-columns: 28px minmax(0,1fr); } .activity-time { grid-column: 2; display: flex; align-items: center; gap: 10px; text-align: left; } .activity-time time { margin: 0; } .activity-content h3 { font-size: 12px; } .workspace-footer { flex-direction: column; gap: 3px; } .auth-screen { grid-template-columns: 1fr; } .auth-intro { padding: 24px; } .auth-intro-copy, .auth-footnote { display: none; } .auth-card { padding: 44px 24px 60px; align-items: flex-start; } .auth-card-inner { max-width: 400px; } .auth-screen { min-height: 100dvh; grid-template-rows: auto 1fr; } }
@media (max-width: 420px) { .main-content { padding-inline: 13px; } .topbar { padding-inline: 13px; } .topbar .breadcrumb { display: none; } .topbar-actions { width: 100%; justify-content: space-between; } .sidebar { padding-inline: 13px; } .nav-count { display: none; } .list-tools { padding: 14px; flex-direction: column; } .list-tools > select { width: 100%; } .account-row { padding: 16px; gap: 9px; } .account-row-identity strong { font-size: 12px; } .account-row-meta small { font-size: 9px; } .badge { font-size: 9px; } .panel-heading { padding-inline: 17px; } .list-column-labels { padding-inline: 17px; } .detail-section, .identity-heading { padding-inline: 17px; } .identity-heading { flex-wrap: wrap; } .identity-heading > #detail-status { margin-left: 59px; margin-top: -7px; } .identity-heading h2 { font-size: 18px; } .segmented { width: 100%; } .segmented button { flex: 1; font-size: 10px; padding-inline: 8px; } .modal { width: calc(100% - 20px); } .modal-body, .modal-header { padding: 20px; } .modal-header h2 { font-size: 21px; } .form-columns { grid-template-columns: 1fr; gap: 17px; } .integration-card { padding: 18px; } }
/* Trading extends the existing panels and action language; no separate theme. */
.trading-intro { margin-bottom: 18px; }
.trading-account-panel { max-width: 850px; margin-bottom: 22px; }
.trading-account-panel select { max-width: 520px; }
.trading-panel { margin-bottom: 22px; }
.trading-panel .panel-heading { flex-wrap: wrap; }
.trading-body { padding: 20px 22px; min-width: 0; }
.trading-body > label:not(.checkbox-row):not(.switch-row), #trade-grant-form > label:not(.checkbox-row) { margin-top: 17px; }
.trading-body > label:first-child { margin-top: 0; }
.trading-body .form-columns { margin-top: 17px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.trading-body > .checkbox-row, #trade-grant-form > .checkbox-row { margin-block: 17px; align-items: flex-start; }
.trading-body > .checkbox-row input, #trade-grant-form > .checkbox-row input { margin-top: 3px; }
.trading-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.trading-actions .button { white-space: normal; }
.trade-json { font-family: Consolas, "Cascadia Code", monospace; font-size: 12px; resize: vertical; }
.trade-record-list { min-width: 0; }
.trade-record { padding-block: 18px; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.trade-record:first-child { padding-top: 10px; }
.trade-record:last-child { border-bottom: 0; }
.trade-record h3 { margin-top: 7px; }
.trade-record h3:first-child { margin-top: 0; }
.trade-assets { margin: 7px 0 12px; padding-left: 20px; font-size: 12px; }
.trade-assets li { padding-block: 3px; overflow-wrap: anywhere; }
.trade-review-detail { margin-top: 20px; overflow-wrap: anywhere; }
.trade-review-detail > p { margin-bottom: 10px; }
.trade-review-detail > h3 { margin-top: 16px; }
#trade-review-ack { margin-top: 3px; }
#trade-review-dialog .checkbox-row { align-items: flex-start; margin-top: 20px; }
#trade-grant-scopes { max-height: 280px; overflow: auto; }
#trade-policy-dirty { color: var(--amber); }
#trade-token { overflow-wrap: anywhere; }
@media (max-width: 760px) { .primary-nav { flex-wrap: wrap; } .primary-nav .nav-link { flex: 1 1 calc(33.333% - 7px); } }
@media (max-width: 600px) { .trading-body { padding-inline: 17px; } .trading-panel .panel-heading { align-items: flex-start; } .primary-nav .nav-link { flex: 1 1 calc(50% - 7px); } .trading-panel .button { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
