/* InstantBlock workspace — clear, calm surfaces for the console and account flow. */
:root {
  --bg: #f6f8f7;
  --bg-1: #ffffff;
  --bg-2: #eef3f1;
  --tx: #17253b;
  --tx-2: #4d5e6e;
  --tx-3: #697b87;
  --line: #dce5e4;
  --line-2: #cad8d6;
  --acc: #0a8074;
  --acc-dim: #e6f4f1;
  --acc-line: #b5ddd5;
  --block: #b8404a;
  --block-dim: #fff0ef;
  --warn: #a66413;
  --allow: #0a8074;
  --review: #a66413;
  --cobalt: #3557cf;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --disp: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

body.app-surface, body.auth-surface, body.docs-surface, body.error-surface {
  margin: 0; background: var(--bg); color: var(--tx); font-family: var(--sans);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
body.app-surface { font-size: 14.5px; }
body.app-surface::before, body.auth-surface::before, body.docs-surface::before, body.error-surface::before { content: none; }
body.app-surface *, body.auth-surface *, body.docs-surface *, body.error-surface * { box-sizing: border-box; }
body.app-surface a, body.auth-surface a, body.docs-surface a, body.error-surface a { text-decoration: none; }
body.app-surface :focus-visible, body.auth-surface :focus-visible, body.docs-surface :focus-visible, body.error-surface :focus-visible {
  outline: 3px solid rgba(53,87,207,.42); outline-offset: 2px;
}

/* Workspace navigation */
.console-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0,1fr); }
.console-nav { background: #fff; border-right: 1px solid var(--line); min-height: 100vh; padding: 25px 14px 18px; display: flex; flex-direction: column; gap: 5px; position: sticky; top: 0; height: 100vh; z-index: 10; }
.console-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 25px; border-bottom: 1px solid var(--line); color: var(--tx); font-size: 17px; font-weight: 760; letter-spacing: -.045em; }
.console-brand img, .auth-logo img { width: 31px; height: 31px; flex: none; }
.console-brand .brand-sub { color: var(--acc); }
.console-nav-links { display: grid; gap: 5px; min-width: 0; }
.console-nav-group { margin-top: 22px; padding: 0 12px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); font-weight: 740; }
.console-nav-link { display: flex; align-items: center; gap: 11px; min-height: 43px; border-radius: 10px; padding: 9px 12px; color: #495d6b; font-size: 13.5px; font-weight: 620; transition: background .15s,color .15s; }
.console-nav-link svg, .console-nav-link i { color: #789097; width: 16px; text-align: center; font-size: 14px; }
.console-nav-link:hover { background: #f1f6f5; color: var(--tx); }
.console-nav-link[aria-current="page"] { background: var(--acc-dim); color: #075f58; }
.console-nav-link[aria-current="page"] i { color: var(--acc); }
.console-nav-spacer { flex: 1; }
.console-account { border-top: 1px solid var(--line); margin-top: 12px; padding: 18px 11px 0; }
.console-account-email { font-size: 12px; color: var(--tx-3); overflow-wrap: anywhere; margin: 11px 0 12px; }
.console-credit { display: block; margin-top: 15px; color: #8ca0a8; font-size: 10px; line-height: 1.4; }
.side-status { display: flex; align-items: center; gap: 8px; color: var(--tx-3); font-size: 12px; font-weight: 650; }
.side-status i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #a6b5ba; }
.side-status.up i { background: var(--acc); }
.side-status.down i { background: var(--block); }
.side-status.up span::after { content: " · online"; color: var(--acc); }
.side-status.down span::after { content: " · unavailable"; color: var(--block); }
.console-signout { width: 100%; justify-content: center; }
body.app-surface .console-account .theme-toggle { position: static; display: flex; justify-content: flex-start; width: 100%; min-height: 39px; margin-top: 10px; padding: 8px 11px; border-radius: 9px; border-color: var(--line-2); background: var(--bg-2); color: var(--tx); box-shadow: none; font-size: 12px; }
body.app-surface .console-account .theme-toggle:hover { background: var(--acc-dim); }

/* Shared workspace layout */
.main { min-width: 0; width: 100%; max-width: 1520px; margin: 0 auto; padding: clamp(30px,3.7vw,52px) clamp(22px,3.8vw,64px) 96px; }
.main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.main-head .head-copy { min-width: 0; }
.back-link { display: inline-block; margin-bottom: 13px; color: var(--cobalt); font-size: 12px; font-weight: 650; }
.main-head h1, .docs-header h1 { margin: 0; font-size: clamp(31px,3.1vw,40px); line-height: 1.12; letter-spacing: -.045em; font-weight: 760; color: var(--tx); }
.main-head p, .docs-header p { margin: 11px 0 0; color: var(--tx-2); font-size: 15px; line-height: 1.6; max-width: 69ch; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 10px; }
.intro-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px; border-radius: 15px; margin-bottom: 20px; background: #e5f2ef; border: 1px solid #c9e4de; }
.intro-banner h2 { font-size: 19px; letter-spacing: -.025em; margin: 0 0 4px; }
.intro-banner p { color: #405e60; margin: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 30px 0 14px; }
.section-heading h2 { margin: 0; color: var(--tx); font-size: 20px; font-weight: 730; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--tx-3); font-size: 13px; }
.section-heading a, .surface-head a { color: var(--cobalt); font-weight: 650; }
.surface { background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 3px 16px rgba(23,37,59,.025); min-width: 0; }
.surface-pad { padding: 21px 23px; }
.surface-pad > h2 { font-size: 18px; letter-spacing: -.025em; margin: 0 0 8px; }
.surface-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.surface-head h2, .surface-head h3 { margin: 0; font-size: 16px; font-weight: 730; letter-spacing: -.02em; }
.surface-head small, .muted { color: var(--tx-3); font-size: 12.5px; }
.surface-copy { color: var(--tx-2); margin: 0 0 18px; line-height: 1.65; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.stat-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 21px 22px 19px; }
.stat-card .stat-label { color: var(--tx-2); font-size: 13px; font-weight: 650; }
.stat-card .stat-value { display: block; margin: 9px 0 4px; font-size: clamp(31px,2.8vw,40px); line-height: 1.12; letter-spacing: -.055em; color: var(--tx); font-weight: 750; font-variant-numeric: tabular-nums; }
.stat-card .stat-context { color: var(--tx-3); font-size: 12px; }
.stat-card .stat-context.positive { color: #087467; }
.stat-card .stat-context.negative { color: #a63845; }
.stat-card .stat-context.warning { color: #956014; }
.stat-card canvas { width: 100%; height: 29px; display: block; margin-top: 8px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(270px,1fr); gap: 17px; align-items: start; }
.content-grid.equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stack { display: grid; gap: 17px; }
.chart-frame { padding: 12px 20px 19px; }
.chart-frame canvas { display: block; width: 100%; height: 255px; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 0 43px; color: var(--tx-3); font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.range-control { display: inline-flex; gap: 2px; background: #eef3f2; border-radius: 8px; padding: 3px; }
.range-control button { border: 0; background: transparent; color: var(--tx-2); font: 650 11px var(--sans); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.range-control button.on { background: #fff; color: var(--tx); box-shadow: 0 1px 4px rgba(23,37,59,.11); }
.data-wrap { width: 100%; overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; font-variant-numeric: tabular-nums; }
.data-table th { padding: 13px 18px; background: #fafcfc; color: var(--tx-3); font-size: 11px; letter-spacing: .045em; text-transform: uppercase; font-weight: 740; white-space: nowrap; }
.data-table td { padding: 15px 18px; border-top: 1px solid #edf1f0; vertical-align: middle; color: var(--tx-2); }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table td:first-child { color: var(--tx); }
.data-table a { color: var(--cobalt); font-weight: 650; }
.mono { font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
.code-inline { font-family: var(--mono); font-size: 11px; background: #eef3f2; padding: 3px 6px; border-radius: 5px; color: #27525d; overflow-wrap: anywhere; }
.decision { display: inline-flex; align-items: center; border-radius: 8px; padding: 5px 9px; font-size: 11px; font-weight: 740; letter-spacing: .01em; white-space: nowrap; text-transform: capitalize; }
.decision.allow, .dec-accept { background: #e6f4ef; color: #056d60; }
.decision.review, .dec-challenge { background: #fff3df; color: #8c5610; }
.decision.block, .dec-reject { background: #fcebec; color: #aa3443; }
.dec-accept,.dec-challenge,.dec-reject { display: inline-block; padding: 3px 7px; border-radius: 20px; font-size: 10px; font-weight: 750; }
.empty-state { padding: 36px 24px; text-align: center; color: var(--tx-2); }
.empty-state .empty-icon { width: 40px; height: 40px; border-radius: 11px; background: #edf5f3; color: var(--acc); display: grid; place-items: center; margin: 0 auto 12px; }
.empty-state .empty-icon::before { content: "✳"; font-size: 22px; line-height: 1; }
.empty-state h3 { margin: 0 0 6px; color: var(--tx); font-size: 15px; }
.empty-state p { margin: 0 auto 17px; max-width: 48ch; }
.empty-state.compact { padding: 28px 20px; }
.callout { padding: 14px 17px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--tx-2); margin-bottom: 18px; }
.callout strong { color: var(--tx); }
.callout.success { background: #eaf7f1; border-color: #c7e7da; color: #165e4f; }
.callout.danger { background: #fff1f1; border-color: #f0c9cf; color: #933c47; }
.callout.info { background: #edf2ff; border-color: #d1dcff; color: #34519c; }
.vbadge { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 750; padding: 5px 9px; border-radius: 20px; }
.vbadge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vbadge.ok { color: #087164; background: #e5f3ed; }
.vbadge.no { color: #a83c48; background: #fcebed; }
.bar-list { display: grid; gap: 13px; padding: 20px 22px; }
.bar-row { display: grid; gap: 5px; }
.bar-row-head { display: flex; justify-content: space-between; gap: 10px; color: var(--tx-2); font-size: 11px; }
.bar-row-head strong { color: var(--tx); font-weight: 650; }
.bar-track { height: 5px; border-radius: 20px; background: #e9eeed; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: #57ad9f; }

/* Controls */
.app-surface .btn, .auth-surface .btn, .docs-surface .btn, .error-surface .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; background: #fff; color: var(--tx); font: 650 13px var(--sans); cursor: pointer; min-height: 42px; white-space: nowrap; transition: background .15s,box-shadow .15s,transform .15s; }
.app-surface .btn:hover, .auth-surface .btn:hover, .docs-surface .btn:hover, .error-surface .btn:hover { transform: translateY(-1px); }
.app-surface .btn.btn-acc, .auth-surface .btn.btn-acc, .docs-surface .btn.btn-acc, .error-surface .btn.btn-acc { background: var(--acc); color: #fff; }
.app-surface .btn.btn-acc:hover, .auth-surface .btn.btn-acc:hover, .docs-surface .btn.btn-acc:hover, .error-surface .btn.btn-acc:hover { background: #086f65; box-shadow: 0 4px 14px rgba(10,128,116,.19); }
.app-surface .btn.btn-line, .auth-surface .btn.btn-line, .docs-surface .btn.btn-line, .error-surface .btn.btn-line { border-color: var(--line-2); background: #fff; }
.app-surface .btn.btn-danger { background: #fff; color: #a43342; border-color: #e9c2c8; }
.app-surface .btn.btn-danger:hover { background: #fff1f1; }
.app-surface .btn.btn-sm { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 13px; color: var(--tx); font-weight: 680; }
.field input, .field select, .field textarea, .filter-bar select { width: 100%; background: #fff; color: var(--tx); border: 1px solid #cbd9d7; border-radius: 9px; min-height: 44px; padding: 10px 12px; font: 14px var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar select:focus { outline: 3px solid rgba(10,128,116,.16); border-color: var(--acc); }
.field input::placeholder { color: #98a8ad; }
.field-hint { display: block; color: var(--tx-3); font-size: 12px; line-height: 1.5; margin-top: -2px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 15px; }
.field-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.form-section { padding-top: 20px; margin-top: 6px; border-top: 1px solid var(--line); }
.form-section h3 { margin: 0 0 5px; font-size: 14px; }
.form-section > p { margin: 0 0 16px; color: var(--tx-3); font-size: 11px; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.check-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.check-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--tx-2); font-size: 12px; }
.check-row input { accent-color: var(--acc); }
.credential-list { margin: 0; }
.credential-row { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 15px; padding: 13px 22px; border-top: 1px solid var(--line); align-items: center; }
.credential-row:first-child { border-top: 0; }
.credential-row dt { font-size: 11px; color: var(--tx-2); font-weight: 650; }
.credential-row dd { margin: 0; color: var(--tx); overflow-wrap: anywhere; font: 11px var(--mono); }
.credential-row .badge { margin-left: 6px; color: var(--tx-3); font: 9px var(--sans); background: transparent; padding: 0; border-radius: 0; }
.credential-row .badge.secret { color: #a86724; }
.keybox { font: 12px var(--mono); overflow-wrap: anywhere; border-radius: 8px; padding: 11px 12px; margin-top: 9px; background: #fff; border: 1px dashed #95cbbd; color: var(--tx); }
.filter-bar { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.filter-bar label { display: grid; gap: 5px; color: var(--tx-2); font-size: 12px; font-weight: 650; }
.filter-bar select { min-width: 150px; }
.danger-panel { border-color: #ecd3d7; }
.danger-panel .surface-head { border-color: #f2dcdf; }
.danger-panel p { margin: 0 0 14px; color: var(--tx-2); }
.two-panel { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.85fr); gap: 17px; align-items: start; }

/* Account pages */
body.auth-surface {
  --bg: #f7f7f8; --bg-1: #ffffff; --bg-2: #f0f0f3;
  --tx: #17171d; --tx-2: #575760; --tx-3: #757581;
  --line: #dedee4; --line-2: #c6c6d0; --acc: #6b59cc; --cobalt: #6150bd;
  background: var(--bg); color: var(--tx);
}
.auth-layout { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-topline { width: 100%; min-height: 83px; padding: 20px clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--tx); font-size: 16px; font-weight: 760; letter-spacing: -.045em; white-space: nowrap; }
.auth-logo img { width: 31px; height: 31px; }
.auth-top-link { color: var(--tx-2); font-size: 12px; font-weight: 630; white-space: nowrap; margin-right: 126px; }
.auth-top-link span { margin-left: 6px; color: var(--acc); font-size: 15px; }
.auth-top-link:hover, .auth-footer a:hover { color: var(--tx); }
.auth-frame { flex: 1; width: min(100% - 48px, 1080px); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); align-items: stretch; gap: clamp(54px, 8vw, 108px); padding: clamp(34px, 6vh, 76px) 0; }
.auth-main { min-width: 0; display: flex; align-items: center; justify-content: center; }
.auth-card { width: min(100%, 440px); }
.auth-card h1 { color: var(--tx); font-size: clamp(40px, 4.3vw, 56px); font-weight: 760; line-height: 1.05; letter-spacing: -.065em; margin: 0; }
.auth-card .lead { max-width: 36ch; color: var(--tx-2); font-size: 15px; margin: 17px 0 39px; line-height: 1.6; }
.auth-form { display: grid; gap: 2px; }
body.auth-surface .auth-form .field { margin-bottom: 18px; gap: 8px; }
body.auth-surface .auth-form .field label { color: var(--tx); font-size: 13px; font-weight: 650; }
body.auth-surface .auth-form .field input { min-height: 49px; background: var(--bg-1); color: var(--tx); border: 1px solid var(--line-2); border-radius: 7px; padding: 11px 13px; box-shadow: none; }
body.auth-surface .auth-form .field input::placeholder { color: var(--tx-3); opacity: 1; }
body.auth-surface .auth-form .field input:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 3px rgba(107, 89, 204, .14); }
body.auth-surface .auth-form .btn.btn-acc { width: 100%; min-height: 49px; margin-top: 4px; border-radius: 7px; background: #19191f; border-color: #19191f; color: #fff; font-size: 13px; font-weight: 720; box-shadow: none; }
body.auth-surface .auth-form .btn.btn-acc:hover { background: #33333d; border-color: #33333d; box-shadow: none; }
body.auth-surface .auth-form .btn.btn-acc:disabled { opacity: .55; transform: none; }
.auth-gate { display: flex; align-items: flex-start; gap: 8px; min-height: 25px; margin-top: 14px; font-size: 11px; line-height: 1.5; color: var(--tx-3); }
.auth-gate .dot { width: 7px; height: 7px; flex: none; margin-top: 5px; border-radius: 50%; background: #ab91e0; }
.auth-gate.ok .dot { background: #48aa80; }
.auth-gate.bad .dot { background: #d46e79; }
.auth-gate a, .auth-switch a { color: var(--cobalt); font-weight: 680; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 27px; color: var(--tx-2); font-size: 12px; }
.auth-error { display: flex; gap: 9px; align-items: flex-start; color: #8e3645; background: #fff1f2; border: 1px solid #edcbd0; border-radius: 7px; padding: 11px 13px; font-size: 12px; margin-bottom: 22px; }
.auth-aside { min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; color: var(--tx); position: relative; overflow: hidden; }
.auth-aside-art { min-height: 260px; flex: 1; position: relative; overflow: hidden; background: radial-gradient(circle, rgba(92, 87, 127, .25) 1px, transparent 1.3px) 0 0 / 15px 15px; -webkit-mask-image: linear-gradient(140deg, transparent 2%, #000 42%, #000 72%, transparent 100%); mask-image: linear-gradient(140deg, transparent 2%, #000 42%, #000 72%, transparent 100%); }
.auth-aside-art::after { content: ""; position: absolute; inset: 13% 5% 0 20%; background: radial-gradient(ellipse at 50% 50%, rgba(114, 91, 239, .18), transparent 68%); }
.auth-art-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.auth-art-mark::before { content: "InstantBlock"; color: var(--tx); opacity: .86; font-size: clamp(29px, 3.2vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.07em; }
.auth-aside-copy { border-top: 1px solid var(--line); padding-top: 22px; position: relative; z-index: 1; }
.auth-aside-copy strong { display: block; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.16; letter-spacing: -.045em; font-weight: 730; }
.auth-aside-copy p { max-width: 32ch; color: var(--tx-2); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.auth-footer { width: 100%; min-height: 68px; padding: 19px clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.auth-footer small, .auth-footer a { color: var(--tx-3); font-size: 11px; }
.auth-footer div { display: flex; gap: 20px; }
body.auth-surface .theme-toggle { position: fixed; top: 20px; right: clamp(24px, 4vw, 64px); bottom: auto; min-height: 40px; background: var(--bg-1); border-color: var(--line); color: var(--tx-2); border-radius: 7px; box-shadow: none; }
body.auth-surface .theme-toggle:hover { background: var(--bg-2); color: var(--tx); }
.auth-widget { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; left: -9999px; }

/* Documentation */
.docs-top { max-width: 1230px; margin: 0 auto; padding: 21px 25px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.docs-top > div { display: flex; align-items: center; gap: 20px; }
.docs-top > div a { color: var(--tx-2); font-size: 12px; font-weight: 650; }
.docs-top > div a:hover { color: var(--acc); }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0,790px); gap: clamp(32px,5vw,76px); max-width: 1230px; margin: 0 auto; padding: 50px 25px 100px; }
.docs-sidebar { align-self: start; position: sticky; top: 35px; border-right: 1px solid var(--line); padding-right: 22px; display: grid; gap: 4px; }
.docs-sidebar b { color: var(--tx-3); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 5px; }
.docs-sidebar a { color: var(--tx-2); font-size: 12px; padding: 6px 8px; border-radius: 6px; }
.docs-sidebar a:hover { color: var(--acc); background: #e9f3f0; }
.docs-body { min-width: 0; }
.docs-header { padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.docs-body section { padding-top: 32px; scroll-margin-top: 25px; }
.docs-body h2 { font-size: 21px; letter-spacing: -.035em; margin: 0 0 12px; }
.docs-body h3 { font-size: 14px; margin: 22px 0 8px; }
.docs-body p,.docs-body li { color: var(--tx-2); font-size: 13px; line-height: 1.8; }
.docs-body ul { padding-left: 20px; }
.docs-body li + li { margin-top: 6px; }
.docs-body code { font-family: var(--mono); font-size: .9em; color: #315676; }
.docs-code { background: #17253b; color: #d6e6ec; border-radius: 11px; overflow: auto; padding: 18px 20px; font: 11px/1.8 var(--mono); margin: 14px 0; }
.docs-code code { color: inherit; }
.docs-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.docs-step b { color: var(--acc); font-size: 11px; }
.docs-step p { margin: 5px 0 0; }
.docs-credentials { border: 1px solid var(--line); background: #fff; border-radius: 11px; }
.docs-note { padding: 14px 17px; border-radius: 9px; background: #e6f4f0; color: #1e675d !important; border: 1px solid #c3e5dc; }
.docs-note.warning { background: #fff5e8; border-color: #ebd8b7; color: #765518 !important; }
.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 36px; margin-top: 34px; border-top: 1px solid var(--line); }
.docs-footer span { color: var(--tx-3); font-size: 11px; }

/* Errors */
.error-layout { min-height: 100vh; display: grid; place-items: center; padding: 25px; }
.error-content { width: min(100%,520px); padding: 42px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.error-code { color: var(--acc); font-size: 68px; line-height: 1; letter-spacing: -.09em; font-weight: 770; margin: 14px 0; }
.error-content h1 { font-size: 24px; margin: 0 0 8px; }
.error-content p { color: var(--tx-2); margin: 0 0 23px; }
.error-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.error-credit { display: block; color: var(--tx-3); font-size: 10px; margin-top: 29px; }

@media (max-width: 1120px) {
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .console-shell { display: block; }
  .console-nav { position: relative; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 13px 18px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 3px; }
  .console-brand { order: 1; padding: 0 12px 0 0; border: 0; margin-right: auto; }
  .console-nav-links { order: 3; display: flex; gap: 4px; width: 100%; overflow-x: auto; scrollbar-width: thin; padding: 6px 0 3px; white-space: nowrap; }
  .console-nav-group { display: none; }
  .console-nav-link { flex: none; min-height: 38px; font-size: 12.5px; padding: 8px 10px; }
  .console-nav-link i { display: none; }
  .console-nav-spacer { display: none; }
  .console-account { order: 2; display: flex; align-items: center; border: 0; margin: 0; padding: 0; gap: 10px; }
  .console-account-email,.console-account .side-status { display: none; }
  .console-account .console-credit { display: none; }
  .console-signout { width: auto; }
  body.app-surface .console-account .theme-toggle { width: 38px; min-width: 38px; min-height: 38px; margin: 0; padding: 7px; justify-content: center; }
  body.app-surface .console-account .theme-toggle__label { display: none; }
  .main { padding: 28px 20px 70px; }
  .content-grid,.content-grid.equal,.two-panel { grid-template-columns: 1fr; }
  .auth-frame { grid-template-columns: 1fr; width: min(100% - 48px, 500px); padding: 76px 0 92px; }
  .auth-main { display: block; }
  .auth-card { width: 100%; }
  .auth-aside { display: none; }
  .docs-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .docs-sidebar { position: static; border: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; white-space: nowrap; padding: 0 0 11px; }
  .docs-sidebar b { display: none; }
}
@media (max-width: 560px) {
  .console-nav { gap: 2px; }
  .console-brand { flex: 1 1 auto; min-width: 0; }
  .console-account { width: auto; justify-content: flex-end; margin-top: 0; }
  .section-heading { flex-wrap: wrap; align-items: center; gap: 5px 12px; }
  .section-heading p { flex-basis: 100%; }
  .main-head { margin-bottom: 21px; }
  .head-actions { padding-top: 0; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 27px; }
  .surface-head { padding: 15px; }
  .surface-pad { padding: 18px; }
  .field-grid,.field-grid.three,.field-grid.four { grid-template-columns: 1fr; }
  .credential-row { grid-template-columns: 1fr; gap: 3px; padding: 12px 16px; }
  .filter-bar label,.filter-bar select { width: 100%; }
  .chart-legend { margin-left: 7px; }
  .intro-banner { padding: 19px; }
  .auth-topline { min-height: 72px; padding: 17px 20px; }
  .auth-logo { font-size: 15px; }
  .auth-top-link { display: none; }
  .auth-frame { width: min(100% - 40px, 500px); padding: 58px 0 75px; }
  .auth-card h1 { font-size: clamp(37px, 11vw, 48px); }
  .auth-card .lead { margin-bottom: 31px; }
  .auth-footer { padding: 17px 20px; display: block; }
  .auth-footer div { margin-top: 5px; }
  body.auth-surface .theme-toggle { top: 17px; right: 20px; bottom: auto; }
  .error-content { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { .btn,.console-nav-link { transition: none !important; } }

/* Full dark theme; the shared theme control switches the html data attribute. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e171e;
  --bg-1: #17262e;
  --bg-2: #20333b;
  --tx: #f1f6f5;
  --tx-2: #c1d0d3;
  --tx-3: #9aafb5;
  --line: #2e444d;
  --line-2: #46626c;
  --acc: #72dcc5;
  --acc-dim: #1a4240;
  --acc-line: #3b8374;
  --block: #f3a2aa;
  --block-dim: #40272e;
  --warn: #f3c879;
  --allow: #72d8c4;
  --review: #f3c879;
  --cobalt: #adc4ff;
  --surface: var(--bg-1);
  --surface-soft: var(--bg-2);
  --ink: var(--tx);
  --muted: var(--tx-2);
  --subtle: var(--tx-3);
  --accent: var(--acc);
  --warning: var(--warn);
  --danger: var(--block);
}
html[data-theme="dark"] body.app-surface,
html[data-theme="dark"] body.auth-surface,
html[data-theme="dark"] body.docs-surface,
html[data-theme="dark"] body.error-surface { background: var(--bg); color: var(--tx); }
html[data-theme="dark"] .surface,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .error-content,
html[data-theme="dark"] .docs-credentials,
html[data-theme="dark"] .docs-step { background: var(--bg-1); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .console-nav { background: #111e26; border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .console-brand,
html[data-theme="dark"] .main-head h1,
html[data-theme="dark"] .docs-header h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .surface-head h2,
html[data-theme="dark"] .surface-head h3,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .empty-state h3,
html[data-theme="dark"] .bar-row-head strong,
html[data-theme="dark"] .error-content h1,
html[data-theme="dark"] .auth-card h1,
html[data-theme="dark"] .auth-logo,
html[data-theme="dark"] .field label { color: var(--tx); }
html[data-theme="dark"] .console-nav-link { color: #bdcdd0; }
html[data-theme="dark"] .console-nav-link:hover { color: var(--tx); background: #20343b; }
html[data-theme="dark"] .console-nav-link[aria-current="page"] { color: #a0e7d7; background: #1d4543; }
html[data-theme="dark"] .console-nav-link[aria-current="page"] i { color: #a0e7d7; }
html[data-theme="dark"] .console-nav-group,
html[data-theme="dark"] .console-account-email,
html[data-theme="dark"] .console-credit,
html[data-theme="dark"] .docs-footer span,
html[data-theme="dark"] .error-credit { color: #a4b9be; }
html[data-theme="dark"] .side-status.up span::after { color: #82e0cc; }
html[data-theme="dark"] .stat-context.positive { color: #91e5c9; }
html[data-theme="dark"] .stat-context.negative { color: #ffb0bc; }
html[data-theme="dark"] .stat-context.warning { color: #f5ce86; }
html[data-theme="dark"] .intro-banner { background: #193b3c; border-color: #326362; }
html[data-theme="dark"] .intro-banner h2 { color: var(--tx); }
html[data-theme="dark"] .intro-banner p { color: #c3dad8; }
html[data-theme="dark"] .surface-head,
html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .credential-row,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .docs-footer,
html[data-theme="dark"] .docs-header,
html[data-theme="dark"] .docs-top,
html[data-theme="dark"] .console-account,
html[data-theme="dark"] .console-brand { border-color: var(--line); }
html[data-theme="dark"] .data-table th { background: #1d3039; color: #b4c7cb; }
html[data-theme="dark"] .data-table td { color: var(--tx-2); }
html[data-theme="dark"] .data-table td:first-child { color: var(--tx); }
html[data-theme="dark"] .data-table tbody tr:hover { background: #1d3037; }
html[data-theme="dark"] .data-table a,
html[data-theme="dark"] .section-heading a,
html[data-theme="dark"] .surface-head a,
html[data-theme="dark"] .auth-switch a,
html[data-theme="dark"] .auth-gate a { color: #b3c4ff; }
html[data-theme="dark"] .code-inline { background: #243b43; color: #c9e6e7; }
html[data-theme="dark"] .decision.allow,
html[data-theme="dark"] .dec-accept { background: #21483f; color: #a9f0d8; }
html[data-theme="dark"] .decision.review,
html[data-theme="dark"] .dec-challenge { background: #4a3823; color: #ffdb95; }
html[data-theme="dark"] .decision.block,
html[data-theme="dark"] .dec-reject { background: #4a2b33; color: #ffb4bd; }
html[data-theme="dark"] .vbadge.ok { background: #21463d; color: #a8e9d6; }
html[data-theme="dark"] .vbadge.no { background: #482a31; color: #ffc0c5; }
html[data-theme="dark"] .bar-track { background: #274047; }
html[data-theme="dark"] .bar-fill { background: #61c7b4; }
html[data-theme="dark"] .empty-state .empty-icon { background: #22423e; color: #a0e3d2; }
html[data-theme="dark"] .range-control { background: #20343b; }
html[data-theme="dark"] .range-control button { color: #b8c8cc; }
html[data-theme="dark"] .range-control button.on { color: var(--tx); background: #32474f; box-shadow: none; }
html[data-theme="dark"] .callout { background: #1b3038; border-color: #38525c; color: #d4e2e4; }
html[data-theme="dark"] .callout strong { color: #f2f7f7; }
html[data-theme="dark"] .callout.success { background: #193c35; border-color: #3b7868; color: #bee9d8; }
html[data-theme="dark"] .callout.danger { background: #432a31; border-color: #86515d; color: #ffd0d4; }
html[data-theme="dark"] .callout.info { background: #263858; border-color: #526a9d; color: #d4dfff; }
html[data-theme="dark"] .app-surface .btn.btn-acc,
html[data-theme="dark"] .auth-surface .btn.btn-acc,
html[data-theme="dark"] .docs-surface .btn.btn-acc,
html[data-theme="dark"] .error-surface .btn.btn-acc { background: #41bba6; color: #082a29; }
html[data-theme="dark"] .app-surface .btn.btn-acc:hover,
html[data-theme="dark"] .auth-surface .btn.btn-acc:hover,
html[data-theme="dark"] .docs-surface .btn.btn-acc:hover,
html[data-theme="dark"] .error-surface .btn.btn-acc:hover { background: #6bd5c2; }
html[data-theme="dark"] .app-surface .btn.btn-line,
html[data-theme="dark"] .auth-surface .btn.btn-line,
html[data-theme="dark"] .docs-surface .btn.btn-line,
html[data-theme="dark"] .error-surface .btn.btn-line { background: #20333b; border-color: #46606a; color: var(--tx); }
html[data-theme="dark"] .app-surface .btn.btn-line:hover,
html[data-theme="dark"] .auth-surface .btn.btn-line:hover,
html[data-theme="dark"] .docs-surface .btn.btn-line:hover,
html[data-theme="dark"] .error-surface .btn.btn-line:hover { background: #2b424b; }
html[data-theme="dark"] .app-surface .btn.btn-danger { background: #442c33; color: #ffd0d4; border-color: #8f5863; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .filter-bar select { background: #101e25; border-color: #48616a; color: var(--tx); }
html[data-theme="dark"] .field input::placeholder { color: #90a5ae; }
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .filter-bar select:focus { border-color: #72d8c4; outline-color: rgba(114,216,196,.3); }
html[data-theme="dark"] .credential-row dd { color: var(--tx); }
html[data-theme="dark"] .credential-row .badge.secret { color: #f0c280; }
html[data-theme="dark"] .keybox { background: #112a28; border-color: #508b7f; color: #e5f5ee; }
html[data-theme="dark"] .danger-panel { border-color: #794854; }
html[data-theme="dark"] body.auth-surface {
  --bg: #0b0b0e; --bg-1: #121216; --bg-2: #1b1b21;
  --tx: #f7f7f9; --tx-2: #b5b5c0; --tx-3: #90909d;
  --line: #2c2c34; --line-2: #494951; --acc: #aaa0ff; --cobalt: #b5aaff;
  background: var(--bg); color: var(--tx);
}
html[data-theme="dark"] body.auth-surface .auth-aside { background: var(--bg-1); border-color: var(--line); }
html[data-theme="dark"] body.auth-surface .auth-aside p { color: var(--tx-2); }
html[data-theme="dark"] body.auth-surface .auth-aside-art { background-image: radial-gradient(circle, rgba(186, 177, 237, .27) 1px, transparent 1.3px); }
html[data-theme="dark"] body.auth-surface .auth-top-link,
html[data-theme="dark"] body.auth-surface .auth-footer a { color: var(--tx-2); }
html[data-theme="dark"] body.auth-surface .auth-top-link:hover,
html[data-theme="dark"] body.auth-surface .auth-footer a:hover { color: var(--tx); }
html[data-theme="dark"] body.auth-surface .auth-form .field input { background: #111115; border-color: #4a4a55; color: var(--tx); }
html[data-theme="dark"] body.auth-surface .auth-form .field input::placeholder { color: #868693; }
html[data-theme="dark"] body.auth-surface .auth-form .field input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(170, 160, 255, .18); }
html[data-theme="dark"] body.auth-surface .auth-form .btn.btn-acc { background: #f4f4f6; color: #18181d; border-color: #f4f4f6; }
html[data-theme="dark"] body.auth-surface .auth-form .btn.btn-acc:hover { background: #dedee5; border-color: #dedee5; }
html[data-theme="dark"] body.auth-surface .auth-switch a,
html[data-theme="dark"] body.auth-surface .auth-gate a { color: #b8adff; }
html[data-theme="dark"] body.auth-surface .auth-error { background: #372126; border-color: #6c3c48; color: #ffccd2; }
html[data-theme="dark"] body.auth-surface .auth-gate.bad { color: #ffb9c4; }
html[data-theme="dark"] .docs-code { background: #101e25; color: #e0e9ed; border: 1px solid #34515c; }
html[data-theme="dark"] .docs-body code { color: #b6d7f2; }
html[data-theme="dark"] .docs-code code { color: inherit; }
html[data-theme="dark"] .docs-note { background: #1a3d38; border-color: #3c796d; color: #d1f0e3 !important; }
html[data-theme="dark"] .docs-note.warning { background: #483b27; border-color: #826947; color: #ffe2a8 !important; }
html[data-theme="dark"] .docs-sidebar a { color: #c0d0d3; }
html[data-theme="dark"] .docs-sidebar a:hover { color: #a7e8d9; background: #213d3e; }

/* Console identity: vivid brand color carries the important data; chrome stays quiet. */
body.app-surface {
  --bg: #f5f5f7;
  --bg-1: #ffffff;
  --bg-2: #eeeeF2;
  --tx: #17171d;
  --tx-2: #50505d;
  --tx-3: #737381;
  --line: #e1e1e8;
  --line-2: #c8c8d3;
  --acc: #6257d8;
  --acc-dim: #efedff;
  --block: #b33d52;
  --warn: #9a6418;
  --cobalt: #6257d8;
  --surface: var(--bg-1);
  --surface-soft: var(--bg-2);
  --ink: var(--tx);
  --muted: var(--tx-2);
  --subtle: var(--tx-3);
  --accent: #16a777;
  --accent-soft: rgba(22, 167, 119, .1);
  --warning: #bf812c;
  --danger: #c74459;
  background: var(--bg);
  color: var(--tx);
}
html[data-theme="dark"] body.app-surface {
  --bg: #0b0b0e;
  --bg-1: #151518;
  --bg-2: #1d1d23;
  --tx: #f4f4f6;
  --tx-2: #c1c1ca;
  --tx-3: #90909e;
  --line: #2b2b32;
  --line-2: #42424c;
  --acc: #a99cff;
  --acc-dim: #292440;
  --block: #f19ca9;
  --warn: #e9bd74;
  --cobalt: #b0a6ff;
  --accent: #53d3a0;
  --accent-soft: rgba(70, 199, 147, .12);
  --warning: #e9bd74;
  --danger: #f19ca9;
  background: var(--bg);
  color: var(--tx);
}
body.app-surface .console-shell { grid-template-columns: 212px minmax(0, 1fr); }
body.app-surface .console-nav {
  background: #0a0a0c;
  border-color: #25252a;
  padding: 23px 11px 18px;
  gap: 0;
}
html[data-theme="dark"] body.app-surface .console-nav { background: #0a0a0c; border-color: #25252a; }
body.app-surface .console-brand,
html[data-theme="dark"] body.app-surface .console-brand {
  color: #f5f9f7;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -.055em;
  padding: 0 11px 23px;
  border-color: #25252a;
}
body.app-surface .console-brand .brand-sub { color: #b0a6ff; }
body.app-surface .console-nav-links { gap: 1px; padding-top: 17px; }
body.app-surface .console-nav-link,
html[data-theme="dark"] body.app-surface .console-nav-link {
  position: relative;
  min-height: 39px;
  border-radius: 7px;
  color: #a7a7b1;
  font-size: 13px;
  font-weight: 550;
  padding: 7px 11px;
  letter-spacing: -.012em;
}
body.app-surface .console-nav-link:hover,
html[data-theme="dark"] body.app-surface .console-nav-link:hover { color: #fff; background: #1b1b21; }
body.app-surface .console-nav-link svg { flex: none; width: 16px; height: 16px; color: #858592; }
body.app-surface .console-nav-link[aria-current="page"] svg { color: #b5aaff; }
body.app-surface .console-nav-divider { display: block; height: 1px; background: #29292f; margin: 10px 10px; }
body.app-surface .console-nav-link[aria-current="page"],
html[data-theme="dark"] body.app-surface .console-nav-link[aria-current="page"] {
  background: #222127;
  color: #ffffff;
  font-weight: 710;
}
body.app-surface .console-nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 3px;
  background: #ad9fff;
}
body.app-surface .console-account { border-color: #25252a; margin-top: 10px; padding: 18px 9px 0; }
body.app-surface .console-account-email,
html[data-theme="dark"] body.app-surface .console-account-email { color: #a6a6b1; font-size: 12px; }
body.app-surface .side-status { color: #b6b6c0; }
body.app-surface .side-status.up span::after { color: #69d7a7; }
body.app-surface .side-status.down span::after { color: #f4a8b2; }
body.app-surface .console-credit,
html[data-theme="dark"] body.app-surface .console-credit { color: #777782; font-size: 10px; }
body.app-surface .console-signout,
html[data-theme="dark"] body.app-surface .console-signout { width: 100%; background: transparent; border-color: #38383f; color: #d8d8df; }
body.app-surface .console-signout:hover,
html[data-theme="dark"] body.app-surface .console-signout:hover { background: #202026; }
body.app-surface .console-nav .console-account .console-signout,
html[data-theme="dark"] body.app-surface .console-nav .console-account .console-signout {
  background: transparent;
  border-color: #38383f;
  color: #d8d8df;
}
body.app-surface .console-nav .console-account .console-signout:hover { background: #202026; }
body.app-surface .console-account .theme-toggle,
html[data-theme="dark"] body.app-surface .console-account .theme-toggle {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border-color: #38383f;
  color: #d8d8df;
  font-size: 12px;
}
body.app-surface .console-account .theme-toggle:hover { background: #202026; }
body.app-surface .main { max-width: 1470px; padding: clamp(34px, 3.6vw, 56px) clamp(24px, 3.9vw, 64px) 90px; }
body.app-surface .main-head h1 { color: var(--tx); font-size: clamp(36px, 3.1vw, 46px); font-weight: 780; letter-spacing: -.06em; }
body.app-surface .main-head p { color: var(--tx-2); }
body.app-surface .btn.btn-acc { background: #17171d; color: #fff; border-color: #17171d; font-weight: 720; }
body.app-surface .btn.btn-acc:hover { background: #30303a; border-color: #30303a; box-shadow: 0 8px 24px rgba(23, 23, 29, .15); }
html[data-theme="dark"] body.app-surface .btn.btn-acc { background: #f5f5f7; color: #15151a; border-color: #f5f5f7; }
html[data-theme="dark"] body.app-surface .btn.btn-acc:hover { background: #dadbe7; border-color: #dadbe7; }
body.app-surface .console-nav-toggle { display: none; }

@media (max-width: 850px) {
  body.app-surface .console-shell { display: block; }
  body.app-surface .console-nav,
  html[data-theme="dark"] body.app-surface .console-nav {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 64px;
    padding: 11px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
    border-right: 0;
    border-bottom: 1px solid #29292f;
  }
  body.app-surface .console-brand,
  html[data-theme="dark"] body.app-surface .console-brand { order: 0; padding: 0; border: 0; margin: 0; font-size: 17px; }
  body.app-surface .console-nav[data-enhanced="true"] .console-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #3b3b45;
    border-radius: 8px;
    background: #1c1c22;
    color: #f4f4f6;
    font: 680 13px var(--sans);
    cursor: pointer;
  }
  body.app-surface .console-nav-toggle-bars,
  body.app-surface .console-nav-toggle-bars::before,
  body.app-surface .console-nav-toggle-bars::after {
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  body.app-surface .console-nav-toggle-bars { position: relative; }
  body.app-surface .console-nav-toggle-bars::before,
  body.app-surface .console-nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  body.app-surface .console-nav-toggle-bars::before { top: -5px; }
  body.app-surface .console-nav-toggle-bars::after { top: 5px; }
  body.app-surface .console-nav-links { order: 0; grid-column: 1 / -1; display: grid; width: 100%; padding: 14px 0 4px; white-space: normal; overflow: visible; }
  body.app-surface .console-nav-spacer { display: none; }
  body.app-surface .console-account { order: 0; grid-column: 1 / -1; display: block; width: 100%; padding: 15px 3px 4px; margin: 9px 0 0; border-top: 1px solid #29292f; }
  body.app-surface .console-account-email,
  body.app-surface .console-account .side-status { display: flex; }
  body.app-surface .console-account .console-credit { display: block; }
  body.app-surface .console-account .theme-toggle { width: 100%; min-height: 39px; padding: 8px 11px; justify-content: flex-start; }
  body.app-surface .console-account .theme-toggle__label { display: inline; }
  body.app-surface .console-nav[data-enhanced="true"] .console-nav-links,
  body.app-surface .console-nav[data-enhanced="true"] .console-account { display: none; }
  body.app-surface .console-nav[data-open="true"] .console-nav-links { display: grid; }
  body.app-surface .console-nav[data-open="true"] .console-account { display: block; }
  body.app-surface .main { padding: 29px 20px 74px; }
}
@media (max-width: 560px) {
  body.app-surface .main { padding: 26px 16px 68px; }
}
