:root {
  color-scheme: light;
  --canvas: #f4f7fa;
  --surface: #fff;
  --ink: #172734;
  --muted: #516477;
  --line: #dfe7ee;
  --line-strong: #c9d7e2;
  --nav: #091e2e;
  --nav-text: #c6d7e3;
  --teal: #0d7168;
  --teal-dark: #095953;
  --teal-light: #e2f3ef;
  --red: #a7323c;
  --amber: #795419;
  --radius: 12px;
  --ui: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.55 var(--ui); }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #39aa9a; outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.26; }
h1 { font-size: clamp(27px, 4vw, 36px); font-weight: 760; letter-spacing: -.04em; }
h2 { font-size: 19px; font-weight: 720; letter-spacing: -.02em; }
h3 { font-size: 16px; font-weight: 720; }
code { font: .9em var(--mono); overflow-wrap: anywhere; }

.skip-link { position: fixed; z-index: 20; left: 12px; top: -80px; background: var(--surface); padding: 10px 14px; border-radius: 7px; }
.skip-link:focus { top: 10px; }
.workspace { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--nav); color: #fff; padding: 28px 16px; }
.brand { color: #f4fbff; display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.sidebar .brand { padding: 0 9px; }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.sidebar-nav { margin-top: 52px; }
.nav-caption { margin: 0 11px 10px; color: #8ca4b7; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { color: var(--nav-text); text-decoration: none; display: flex; align-items: center; gap: 11px; min-height: 43px; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; font-weight: 630; white-space: nowrap; }
.sidebar nav a:hover { color: #fff; background: #142e42; }
.sidebar nav a[aria-current="page"] { color: #e8fffb; background: #16404b; border-color: #29606a; }
.sidebar nav a[aria-current="page"] .nav-icon { color: #71e4cf; }
.nav-icon { position: relative; display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; color: inherit; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; }
.nav-icon-grid::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 2px; }
.nav-icon-grid::after { inset: 5px 4px 4px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.nav-icon-list::before { inset: 2px 1px 2px 5px; border-block: 1.5px solid currentColor; }
.nav-icon-list::after { top: 7px; left: 5px; right: 1px; border-top: 1.5px solid currentColor; }
.nav-icon-help::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-icon-help::after { content: "?"; inset: 0; font: 700 11px/16px system-ui, sans-serif; text-align: center; }
.nav-icon-chart::before { inset: 2px 1px 1px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 1px; }
.nav-icon-chart::after { inset: 4px 3px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: skew(-23deg, -19deg); }
.nav-icon-user::before { width: 5px; height: 5px; top: 1px; left: 4.5px; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-icon-user::after { inset: 9px 1px 0; border: 1.5px solid currentColor; border-radius: 7px 7px 2px 2px; }
.nav-icon-device::before { inset: 1px 0 4px; border: 1.5px solid currentColor; border-radius: 2px; }
.nav-icon-device::after { width: 8px; height: 1.5px; background: currentColor; border-radius: 1px; bottom: 1px; left: 4px; }
.nav-icon-key::before { width: 5px; height: 5px; top: 2px; left: 1px; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-icon-key::after { height: 1.5px; width: 9px; background: currentColor; border-radius: 1px; left: 6px; top: 9px; transform: rotate(35deg); }
.nav-icon-code::before { top: 4px; left: 1px; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nav-icon-code::after { top: 4px; right: 1px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }

.main-area { min-width: 0; }
.topbar { height: 67px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(17px, 3vw, 42px); }
.location-label { display: inline-flex; align-items: center; gap: 11px; color: var(--muted); min-width: 0; }
.location-label strong { color: var(--ink); font-weight: 670; }
.location-divider { color: #9aacb9; }
.user-menu { position: relative; z-index: 2; flex: 0 1 auto; min-width: 0; }
.user-menu summary { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; cursor: pointer; border-radius: 7px; padding: 3px 6px; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: #f0f5f7; }
.avatar { background: #dfefee; color: #0d615a; display: inline-grid; place-items: center; flex: 0 0 33px; min-width: 33px; height: 33px; border-radius: 10px; font-weight: 760; }
.user-menu-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 665; }
.chevron { width: 6px; height: 6px; flex: 0 0 6px; border: 1.5px solid var(--muted); border-top: 0; border-left: 0; transform: rotate(45deg); margin: -2px 5px 0 2px; }
.user-menu-items { position: absolute; right: 1px; top: calc(100% + 9px); min-width: 198px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 13px 35px #13273622; }
.user-menu-heading { display: grid; gap: 2px; border-bottom: 1px solid var(--line); padding: 8px 10px 10px; margin-bottom: 3px; overflow-wrap: anywhere; }
.user-menu-heading span { color: var(--muted); font-size: 12px; }
.user-menu-items a, .user-menu-items button { display: block; text-align: left; width: 100%; border: 0; background: transparent; border-radius: 6px; color: var(--ink); padding: 8px 10px; text-decoration: none; white-space: nowrap; }
.user-menu-items a:hover, .user-menu-items button:hover { background: #edf4f6; }
.user-menu-items .menu-danger { color: var(--red); }

.main-content { max-width: 1560px; padding: 37px clamp(17px, 3vw, 42px) 56px; margin: 0 auto; }
.page-head { display: flex; gap: 18px; flex-wrap: wrap; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.page-head p, .section-head p { margin-top: 7px; color: var(--muted); }
.page-head p { font-size: 14px; }
.page-head .button { flex-shrink: 0; }
.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 15px; border-radius: 8px; text-decoration: none; white-space: nowrap; font-weight: 700; transition: background-color .16s, border-color .16s; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-outline { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.button-outline:hover { border-color: #9cb8c5; background: #f6fafb; }
.button:disabled { opacity: .62; cursor: wait; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: 0 1px 3px #16374406; }
.panel-pad { padding: clamp(18px, 2.5vw, 27px); }
.section-head { margin-bottom: 19px; }
.section-head.tight { margin-bottom: 0; padding-bottom: 14px; }
.collection-head { margin: 27px 0 12px; }
.section-note { margin-top: 13px; color: var(--muted); font-size: 13px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.guide-columns { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
.panel-column { min-width: 0; display: grid; gap: 16px; }
.narrow-panel { max-width: 580px; }

.table-scroll { overflow-x: auto; border-radius: inherit; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table thead th { padding: 12px 18px; background: #ecf2f6; color: #42586b; font-size: 12px; font-weight: 720; white-space: nowrap; }
.data-table tbody td, .data-table tbody th { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fbfc; }
.data-table tbody th { font-weight: 600; }
.data-table .actions { text-align: right; }
.device-table { min-width: 620px; }
.device-name-cell strong { display: block; margin-bottom: 3px; overflow-wrap: anywhere; }
.device-key { display: block; color: var(--muted); max-width: min(33vw, 320px); min-width: 130px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.device-key:focus { white-space: normal; overflow: visible; }
.status-tag, .role-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: #eaf0f4; color: #445b6b; border-radius: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-tag::before, .live-dot { display: inline-block; content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8598a8; flex: 0 0 7px; }
.status-tag[data-online="true"], .role-admin { background: var(--teal-light); color: #135e58; }
.status-tag[data-online="true"]::before, .live-dot { background: #119b81; }
.status-tag[data-access="pending"], .status-tag[data-access="paused"] { background: #fff2d9; color: var(--amber); }
.status-tag[data-access="pending"]::before, .status-tag[data-access="paused"]::before { background: #b37620; }
.status-tag[data-access="conflict"], .status-tag[data-access="error"] { background: #fdecee; color: var(--red); }
.status-tag[data-access="conflict"]::before, .status-tag[data-access="error"]::before { background: #be4650; }
.traffic-cell { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.traffic-cell > span { display: inline-block; }
.traffic-cell > span + span { margin-left: 8px; }
.direction { color: var(--teal); font-size: 15px; font-weight: 720; }
.number { font-weight: 680; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.table-actions a, .text-button { font-size: 13px; font-weight: 680; text-decoration: none; }
.table-actions a:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-actions form { margin: 0; }
.text-button { color: var(--teal); border: 0; background: transparent; padding: 4px 0; }
.text-danger { color: var(--red); }
.empty-cell { color: var(--muted); text-align: center; }
.account-table { min-width: 720px; }
.account-table .actions { min-width: 175px; }
.account-table .table-actions { flex-wrap: wrap; gap: 3px 12px; }
.account-table .table-actions a, .account-table .table-actions .text-button { display: inline-flex; align-items: center; min-height: 32px; }
.relay-pause-action { color: var(--amber); }
.account-ident { display: flex; align-items: center; gap: 10px; }
.account-ident strong { overflow-wrap: anywhere; display: block; }
.account-ident-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin-top: 2px; }
.account-ident small { color: var(--muted); font-size: 11px; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; list-style: none; cursor: pointer; border-radius: inherit; }
.group-head::-webkit-details-marker { display: none; }
.group-head:hover { background: #f6fafb; }
.group-label { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.group-label strong { font-size: 15px; }
.group-label small { color: var(--muted); font-size: 12px; }
.group-head .chevron { margin-left: auto; }
.group-panel[open] .group-head { border-radius: var(--radius) var(--radius) 0 0; }
.group-panel[open] .chevron { transform: rotate(-135deg); margin-top: 3px; }
.group-panel .table-scroll { border-radius: 0 0 var(--radius) var(--radius); }
.audit-source-cell { min-width: 175px; max-width: 260px; overflow-wrap: anywhere; }
.audit-source-cell code { color: var(--ink); }
.audit-source-cell span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.empty-state { text-align: center; display: grid; justify-items: center; row-gap: 10px; padding: 52px 20px; }
.empty-state p { color: var(--muted); max-width: 440px; }
.empty-state .button { margin-top: 7px; }
.empty-icon { display: grid; place-items: center; background: var(--teal-light); color: var(--teal); border-radius: 11px; width: 49px; height: 49px; margin-bottom: 1px; }
.empty-icon .nav-icon { transform: scale(1.25); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.three-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; padding: clamp(15px, 2vw, 19px); }
.metric-label { color: var(--muted); font-size: 13px; font-weight: 650; }
.metric-label .live-dot { margin-right: 4px; }
.metric-card > strong { display: block; margin-top: 7px; font-weight: 760; font-size: clamp(22px, 3vw, 33px); line-height: 1.2; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.resource-card h2 { font-size: 15px; }
.resource-value { margin-top: 6px; line-height: 1.3; overflow-wrap: anywhere; }
.resource-value strong { font-size: clamp(25px, 3.2vw, 39px); letter-spacing: -.045em; font-weight: 770; font-variant-numeric: tabular-nums; }
.resource-card progress { display: block; width: 100%; height: 7px; border: 0; background: #e1eaf0; border-radius: 8px; overflow: hidden; margin: 13px 0 9px; color: var(--teal); accent-color: var(--teal); }
.resource-card progress::-webkit-progress-bar { background: #e1eaf0; }
.resource-card progress::-webkit-progress-value { background: var(--teal); border-radius: 8px; }
.resource-card progress::-moz-progress-bar { background: var(--teal); border-radius: 8px; }
.resource-card p { color: var(--muted); font-size: 12px; }
.stamp { color: var(--muted); font-size: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; white-space: nowrap; }
.stamp .live-dot { margin-right: 4px; }
.stamp[data-live-ready="false"] .live-dot { background: #8598a8; }
.network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.server-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.network-grid > div { min-width: 0; border: 1px solid var(--line); background: #f6f9fb; border-radius: 8px; padding: 13px; }
.network-grid dt, .network-grid small { display: block; color: var(--muted); font-size: 12px; }
.network-grid dt span { color: var(--teal); font-size: 16px; font-weight: 740; margin-right: 3px; }
.network-grid dd { font-size: clamp(17px, 2.1vw, 24px); font-weight: 750; margin: 3px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.stack-form { display: grid; align-items: start; gap: 16px; margin: 0; }
.stack-form > .button { justify-self: start; }
.form-field > label { display: block; font-weight: 700; margin-bottom: 5px; }
.form-field input:not([type="checkbox"]), .form-field textarea, .form-field select { display: block; width: 100%; min-width: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; min-height: 42px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #657989; }
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input[name="node_key"] { font-family: var(--mono); font-size: 13px; }
.form-field input[aria-invalid="true"], .field-invalid input, .field-invalid textarea { border-color: #c60d4e !important; }
.check-field label { display: flex; align-items: center; gap: 7px; width: fit-content; cursor: pointer; }
.check-field input { accent-color: var(--teal); width: 17px; height: 17px; margin: 0; }
.form-help { margin-top: 5px; overflow-wrap: anywhere; font-size: 12px; color: var(--muted); }
.form-help ul, .errorlist { padding-left: 16px; margin: 2px 0 0; }
.form-help li + li, .errorlist li + li { margin-top: 2px; }
.form-errors { color: var(--red); font-size: 13px; }
.form-field .form-errors { margin-top: 5px; }
.stack-form > .form-errors { border: 1px solid #e9bac2; background: #fceff2; border-radius: 7px; padding: 8px 10px; }
.form-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.accounts-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.accounts-heading span, .accounts-pagination > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.account-filters {
  display: grid;
  grid-template-columns: minmax(138px, 1.2fr) repeat(2, minmax(132px, 1fr)) minmax(136px, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.account-filters > * { min-width: 0; }
.account-filters > .form-errors { grid-column: 1 / -1; }
.account-filters > .form-actions { padding-top: calc(1.55em + 5px); }
.cdkey-filters { grid-template-columns: repeat(5, minmax(115px, 1fr)); }
.cdkey-filters > .form-actions { grid-column: 1 / -1; padding-top: 0; }
.delivery-record-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.delivery-record-filters > .form-actions { grid-column: 1 / -1; padding-top: 0; }
.delivery-record-table .actions { white-space: nowrap; }
.delivery-record-codes { display: grid; gap: 4px; max-height: 126px; overflow: auto; }
.cdkey-panel { margin-bottom: 16px; }
.cdkey-code { display: inline-block; min-width: 160px; max-width: 270px; font-family: var(--mono); overflow-wrap: anywhere; }
.delivery-code { min-width: 0; overflow-wrap: anywhere; }
.delivery-message-preview { margin: 5px 0 0; padding: 11px 13px; max-height: 17rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.65 var(--mono); }
.accounts-usage-note { margin-top: 10px; }
.accounts-pagination { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.account-create { max-width: 560px; margin-bottom: 16px; }
.account-create .form-actions { justify-content: flex-end; }
.account-dialog, .import-result-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 68px #091e2e45;
}
.account-dialog::backdrop, .import-result-dialog::backdrop { background: #091e2e94; }
.account-dialog .account-create { margin: 0; border: 0; box-shadow: none; }

.import-result { margin-bottom: 16px; }
.import-result-dialog { width: min(650px, calc(100% - 24px)); }
.delivery-record-dialog { width: min(780px, calc(100% - 24px)); }
.import-result-dialog .import-result { margin: 0; border: 0; box-shadow: none; }
.import-result-list {
  max-height: min(44vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}
.import-result-list li { display: grid; gap: 3px; padding: 11px 13px; overflow-wrap: anywhere; }
.import-result-list li + li { border-top: 1px solid var(--line); }
.import-result-list code { color: var(--muted); }
.import-result-dialog .import-result-actions { justify-content: flex-end; margin-top: 16px; }

.messages { display: grid; gap: 7px; margin-bottom: 18px; }
.message { border: 1px solid #c9dce9; color: #25475e; background: #eaf4fb; border-radius: 8px; padding: 10px 13px; overflow-wrap: anywhere; }
.message-success { border-color: #baddd4; color: #155d52; background: #eaf7f0; }
.message-error { border-color: #ebbdc2; color: var(--red); background: #fcecf0; }
.message-warning { border-color: #e9d2a9; color: var(--amber); background: #fff5df; }
.bridge-warning, .resource-pending { margin-bottom: 17px; }

.steps { counter-reset: guide-step; list-style: none; display: grid; gap: 14px; padding: 0; margin: 1px 0; }
.steps li { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 10px; counter-increment: guide-step; }
.steps li::before { content: counter(guide-step); display: grid; place-items: center; border-radius: 7px; width: 23px; height: 23px; color: #11635a; background: var(--teal-light); font-size: 12px; font-weight: 750; }
.steps li strong { display: inline-block; font-weight: 720; padding-top: 1px; }
.steps p { margin-top: 3px; color: var(--muted); }
.steps .code-box { margin-top: 8px; }
.inline-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; }
.code-box { position: relative; background: #112b3f; border-radius: 8px; color: #e5f5fa; }
.code-inline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px 9px 13px; }
.config-code pre { margin: 0; overflow-x: auto; max-height: 520px; min-height: 120px; padding: 41px 13px 13px; }
.code-box code { font: 12px/1.6 var(--mono); }
.code-box .copy-button { border: 1px solid #557481; border-radius: 5px; background: #213f51; color: #e7f9f7; min-width: 43px; padding: 4px 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.code-box .copy-button:hover { background: #32596b; }
.config-code .copy-button { position: absolute; top: 9px; right: 9px; }
.cdkey-batch pre { min-height: 0; max-height: 240px; }

.faq-page { max-width: 1120px; margin-inline: auto; }
.faq-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 45px);
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 100% 0%, #256972, transparent 64%), linear-gradient(115deg, #0c2639, #143f4b);
  color: #f4fbff;
}
.faq-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#c1f9ef1f 1px, transparent 1px), linear-gradient(90deg, #c1f9ef1f 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.faq-header p { margin-top: 9px; color: #cee6eb; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 208px; gap: 20px; align-items: start; }
.faq-index { grid-column: 2; grid-row: 1; position: sticky; top: 20px; padding: 15px 12px 12px; }
.faq-index h2 { padding-inline: 9px; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.faq-index ul { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.faq-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.faq-index a::after {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(-45deg);
}
.faq-index a:hover { background: var(--teal-light); color: var(--teal-dark); }
.faq-topics { grid-column: 1; grid-row: 1; }
.faq-topic { --faq-inset: clamp(14px, 2.3vw, 24px); scroll-margin-top: 20px; }
.faq-topic:target { border-color: #79b6ac; }
.faq-topic h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 13px var(--faq-inset);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f7fafb;
  font-size: 17px;
}
.faq-topic-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
}
.faq-question + .faq-question { border-top: 1px solid var(--line); }
.faq-question > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  list-style: none;
  padding: 10px var(--faq-inset);
  font-size: 15px;
  font-weight: 680;
  cursor: pointer;
}
.faq-question > summary::-webkit-details-marker { display: none; }
.faq-question > summary:hover, .faq-question[open] > summary { color: var(--teal-dark); background: #f5faf9; }
.faq-question > summary:focus-visible { outline-offset: -3px; border-radius: 5px; }
.faq-question:last-child:not([open]) > summary { border-radius: 0 0 var(--radius) var(--radius); }
.faq-question > summary::after {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin: -4px 3px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.faq-question[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.faq-answer {
  display: grid;
  gap: 10px;
  max-width: 78ch;
  padding: 12px var(--faq-inset) 19px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.faq-answer .copy-button { flex-shrink: 0; min-height: 36px; }
.faq-reference { justify-self: start; font-weight: 650; }

.auth-body { min-height: 100vh; display: grid; align-items: center; justify-items: center; padding: 22px; }
.auth-frame { width: min(100%, 865px); min-height: 470px; display: grid; grid-template-columns: .95fr 1fr; background: var(--surface); border-radius: 19px; border: 1px solid var(--line); box-shadow: 0 18px 80px #17324716; overflow: hidden; }
.auth-brand-pane { background: linear-gradient(153deg, #0a2133, #123747 75%, #154852); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 35px 34px 41px; }
.auth-brand-pane > div + div > span { display: block; color: #bdd5e0; }
.auth-form-pane { display: grid; align-items: center; padding: clamp(23px, 4vw, 46px); }
.auth-form-inner { width: 100%; max-width: 350px; margin: 0 auto; }
.auth-form-inner h1 { font-size: 29px; letter-spacing: -.035em; }
.auth-form-inner .intro { margin: 7px 0 23px; color: var(--muted); }
.auth-alert { margin-bottom: 16px; }
.auth-form-inner .button { margin-top: 4px; width: 100%; }
.error-page { width: min(100%, 520px); display: grid; justify-items: start; gap: 12px; padding: 27px; }
.error-page p { color: var(--muted); }

@media (max-width: 1100px) {
  .account-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-filters > .form-actions { grid-column: 1 / -1; padding-top: 0; }
}

@media (max-width: 960px) {
  .workspace { grid-template-columns: 192px minmax(0, 1fr); }
  .two-column, .guide-columns { grid-template-columns: minmax(0, 1fr); }
  .data-table tbody td, .data-table tbody th, .data-table thead th { padding-left: 12px; padding-right: 12px; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .faq-index, .faq-topics { grid-column: 1; grid-row: auto; }
  .faq-index { position: static; padding: 12px; }
  .faq-index ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .faq-index a { background: #f5f8fa; }
}

@media (max-width: 720px) {
  .workspace { display: block; }
  .sidebar { padding: 12px 16px 9px; }
  .sidebar .brand { padding: 0; font-size: 20px; }
  .sidebar .brand-mark { width: 29px; height: 29px; }
  .sidebar-nav { margin-top: 9px; }
  .nav-caption { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 3px 3px; margin: 0 -3px; }
  .sidebar nav a { min-height: 38px; padding: 5px 8px; gap: 6px; }
  .topbar { height: 54px; }
  .location-label { font-size: 12px; }
  .user-menu-name { max-width: 100px; }
  .main-content { padding-top: 23px; }
  .page-head { margin-bottom: 18px; }
  .metric-grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-frame { display: block; min-height: 0; }
  .auth-brand-pane { padding: 22px; }
  .auth-brand-pane > div + div { display: none; }
  .auth-form-pane { padding: 25px 22px 30px; }
  .faq-header { margin-bottom: 14px; }
  .faq-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-index a, .faq-answer .copy-button { min-height: 44px; }
  .faq-topic h2 { min-height: 55px; }
}

@media (max-width: 430px) {
  .account-filters { grid-template-columns: minmax(0, 1fr); }
  .three-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-body { padding: 12px; }
  .user-menu-name { max-width: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
