/* Form Bastion — field notes for dependable forms. */
:root {
  color-scheme: dark;
  --paper: #0d1012;
  --surface: #14191c;
  --surface-soft: #1c2226;
  --ink: #f2f0e9;
  --ink-deep: #090c0e;
  --muted: #abb0b3;
  --line: #30383c;
  --accent: #d7b77c;
  --accent-hover: #ead09e;
  --accent-soft: #2b271f;
  --accent-ink: #17150f;
  --red: #f0aaa0;
  --amber: #e6c181;
  --blue: #a4c4dc;
  --radius: 10px;
  --shadow: 0 12px 34px #00000020;
  --body: Manrope, 'Segoe UI', sans-serif;
  --display: Manrope, 'Segoe UI', sans-serif;
  --mono: 'Bastion Mono', Consolas, monospace;
}
*, *::before, *::after {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:100px}
body {margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 var(--body);-webkit-font-smoothing:antialiased}
body.nav-open {overflow:hidden}
::selection {background:var(--accent);color:var(--ink-deep)}
a {color:var(--accent);text-decoration-thickness:1px;text-underline-offset:4px}
a:hover {color:var(--accent-hover)}
button, input, select, textarea {font:inherit}
button, a, input, select, textarea, summary {-webkit-tap-highlight-color:transparent}
button {cursor:pointer}
img, svg {max-width:100%}
img {height:auto}
svg.icon {height:20px;width:20px;flex:0 0 20px;vertical-align:middle}
button svg.icon, .button svg.icon {width:17px;height:17px;flex-basis:17px}
h1, h2, h3, h4, p {margin:0}
h1, h2, h3, h4 {color:var(--ink);line-height:1.2}
h1 {font-size:36px;letter-spacing:-1.4px;font-weight:600}
h2 {font-size:24px;letter-spacing:-.6px;font-weight:600}
h3 {font-size:17px;letter-spacing:-.2px;font-weight:600}
h4 {font-size:15px;font-weight:600}
p+p {margin-top:16px}
ul, ol {padding-left:24px}
li+li {margin-top:8px}
strong {font-weight:650}
small, .small {font-size:12px}
hr {border:0;border-top:1px solid var(--line);margin:24px 0}
pre {margin:0;white-space:pre;overflow:auto}
code, kbd, pre {font-family:var(--mono);font-size:13px}
p code, li code, td code, dd code, .help code {background:var(--surface-soft);border:1px solid var(--line);border-radius:4px;padding:2px 5px;overflow-wrap:anywhere}
pre code {background:transparent!important;border:0!important;padding:0!important;color:inherit}
dl {margin:0}
dt {font-size:12px;color:var(--muted);font-weight:600}
dd {margin:4px 0 20px;overflow-wrap:anywhere}
.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}
[hidden] {display:none!important}
:focus-visible {outline:3px solid var(--line);outline-offset:4px}
main:focus {outline:none}
.skip-link {position:fixed;z-index:1000;top:10px;left:16px;transform:translateY(-160%);background:var(--accent);border-radius:6px;padding:10px 18px;font-weight:600}
.skip-link:focus {transform:translateY(0)}
/* Shared language */
.brand {display:inline-flex;align-items:center;color:var(--ink);text-decoration:none;white-space:nowrap;line-height:1}
.brand:hover {color:var(--ink)}
.container {width:min(1280px,calc(100% - 96px));margin-inline:auto}
.eyebrow {display:flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:2px;font-size:10px;line-height:1.5;font-weight:750;color:var(--muted);margin-bottom:15px}
.eyebrow::before {content:"";display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:1px;background:var(--surface)}
.lede {color:var(--muted);max-width:720px;font-size:16px;line-height:1.7;margin-top:12px}
.muted, .text-muted {color:var(--muted)}
.text-small {font-size:12px}
.text-right {text-align:right}
.text-center {text-align:center}
.text-danger {color:var(--red)}
.text-success {color:var(--muted)}
.text-link {display:inline-flex;gap:9px;align-items:center;font-size:13px;font-weight:600;text-decoration:none}
.text-link svg.icon {width:16px;height:16px}
.section-link {display:inline-flex;gap:12px;align-items:center;text-decoration:none;font-weight:650;font-size:13px;padding:9px 0;border-bottom:1px solid var(--line)}
.section-link .icon {transition:transform .2s}
.section-link:hover .icon {transform:translateX(4px)}
.button, button[type=submit] {display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:10px 18px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:var(--ink);font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.02px;text-decoration:none;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.button:hover, button[type=submit]:hover {background:var(--accent-hover);border-color:var(--accent-hover);color:white;box-shadow:0 3px 9px #00000012}
.button:active, button[type=submit]:active {transform:translateY(1px)}
.button-primary {background:var(--accent);color:var(--surface)}
.button-secondary, button.button-secondary[type=submit] {background:transparent;border-color:var(--line);color:var(--ink)}
.button-secondary:hover, button.button-secondary[type=submit]:hover {background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
.button-danger, button.button-danger[type=submit] {background:var(--surface);border-color:var(--line);color:var(--ink)}
.button-danger:hover, button.button-danger[type=submit]:hover {background:var(--surface);border-color:var(--line)}
.button-small, button.button-small[type=submit] {min-height:36px;padding:7px 12px;font-size:12px}
.button-large {min-height:50px;padding:13px 23px;font-size:14px}
.button-light {background:var(--accent);border-color:var(--accent);color:var(--accent)}
.button-light:hover {background:var(--surface-soft);border-color:var(--line);color:var(--accent)}
.button[disabled], button[disabled], .button[aria-disabled=true] {opacity:.5;cursor:not-allowed;box-shadow:none}
.button-ghost {background:transparent;border-color:transparent;color:var(--ink)}
.button-ghost:hover {background:var(--surface-soft);border-color:transparent;color:var(--ink)}
.icon-button {display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:7px;line-height:1;font-size:24px}
.icon-button:hover {background:var(--surface-soft)}
.stack {display:flex;flex-direction:column;gap:20px;min-width:0}
.stack-small {gap:12px}
.cluster {display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.split, .toolbar {display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.toolbar {margin-bottom:22px}
.grid {display:grid;gap:22px;min-width:0}
.grid-2 {grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3 {grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4 {grid-template-columns:repeat(4,minmax(0,1fr))}
.card {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;box-shadow:var(--shadow)}
.card-header {padding:22px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.card-header p {font-size:13px;color:var(--muted);margin-top:5px}
.card-header h2 {font-size:17px;letter-spacing:-.2px}
.card-body {padding:24px}
.card-body>p {font-size:14px}
.card-body>form, .card-body>.stack {min-width:0}
.card-footer {padding:16px 24px;border-top:1px solid var(--line);background:var(--surface);border-radius:0 0 var(--radius) var(--radius)}
.card>h2, .card>h3 {padding:22px 24px 0}
.card>p {padding:8px 24px 22px}
.metric {padding:22px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.metric-value {font-size:34px;font-weight:600;letter-spacing:-1.5px;line-height:1.2;margin:12px 0 8px;color:var(--ink)}
.metric-label {font-size:12px;color:var(--muted);font-weight:600}
.metric p, .metric small {color:var(--muted);font-size:12px}
.metric .icon {color:var(--muted)}
.metric-footnote {margin-top:8px;font-size:12px;color:var(--muted)}
.notice {padding:15px 18px;border:1px solid var(--line);border-left:3px solid var(--line);background:var(--surface);border-radius:7px;font-size:13px;line-height:1.65;color:var(--ink);overflow-wrap:anywhere}
.notice-warning {background:var(--surface);border-color:var(--line);border-left-color:var(--line);color:var(--ink)}
.notice-error {background:var(--surface);border-color:var(--line);border-left-color:var(--line);color:var(--muted)}
.notice-success {background:var(--surface);border-color:var(--line);border-left-color:var(--line);color:var(--ink)}
.notice-info {background:var(--surface);border-color:var(--line);border-left-color:var(--line);color:var(--muted)}
.notice a {color:inherit}
.notice+.notice {margin-top:12px}
.main>.notice, .auth-main>.notice {margin-bottom:24px}
.badge {display:inline-flex;align-items:center;gap:6px;padding:4px 9px;min-height:25px;border-radius:5px;background:var(--surface-soft);color:var(--muted);font-size:10px;font-weight:650;line-height:1.3;letter-spacing:.3px;white-space:nowrap;text-transform:capitalize}
.badge::before {content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.badge-active, .badge-accepted, .badge-inbox, .badge-succeeded, .badge-success, .badge-published, .badge-operational {background:var(--surface-soft);color:var(--muted)}
.badge-warning, .badge-quarantined, .badge-running, .badge-pending, .badge-unconfigured, .badge-outcome_unknown, .badge-unscanned {background:var(--surface-soft);color:var(--muted)}
.badge-failed, .badge-disabled, .badge-suspended, .badge-error, .badge-unavailable {background:var(--surface-soft);color:var(--muted)}
.badge-queued, .badge-html, .badge-server, .badge-free {background:var(--surface);color:var(--muted)}
.badge-archived, .badge-paused, .badge-skipped, .badge-draft {background:var(--surface-soft);color:var(--muted)}
.empty-state {padding:54px 30px;text-align:center;max-width:560px;margin-inline:auto}
.empty-state .icon {width:40px;height:40px;color:var(--muted);display:block;margin:0 auto 18px;stroke-width:1.3}
.empty-state h2, .empty-state h3 {font-size:21px;margin-bottom:10px}
.empty-state p {color:var(--muted);font-size:14px;max-width:390px;margin:0 auto 22px}
.empty-state .button {margin-top:2px}
.code-block {position:relative;background:var(--ink-deep);color:var(--ink);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.85;overflow:hidden}
.code-block pre, .code-block>code {display:block;padding:22px 24px;overflow:auto;max-width:100%;font-size:12px;line-height:1.9;tab-size:2}
.code-block>code {white-space:pre}
.code-header {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 18px;border-bottom:1px solid var(--line);font:11px var(--mono);color:var(--ink)}
.code-header button, .copy-button {background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:5px;min-height:30px;padding:4px 10px;font:11px var(--body);cursor:pointer}
.code-header button:hover, .copy-button:hover {background:var(--surface);color:white}
.inline-code {display:flex;gap:10px;align-items:center;min-width:0}
.inline-code code {overflow-wrap:anywhere;min-width:0}
.inline-code .button {flex-shrink:0}
.tabs {display:flex;gap:7px;border-bottom:1px solid var(--line);margin:0 0 26px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap;padding-bottom:0}
.tabs a, .tabs button {display:inline-flex;align-items:center;gap:8px;padding:14px 17px;border:0;border-bottom:2px solid transparent;text-decoration:none;font-size:13px;color:var(--muted);background:none;font-weight:600;white-space:nowrap}
.tabs a:hover, .tabs button:hover {color:var(--ink);background:var(--surface)}
.tabs .active, .tabs [aria-selected=true], .tabs [aria-current=page] {color:var(--accent);border-bottom-color:var(--accent)}
.pagination {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:18px 0;font-size:12px;color:var(--muted)}
.pagination a {display:inline-flex;min-height:38px;align-items:center;padding:6px 12px;border:1px solid var(--line);border-radius:6px;text-decoration:none;background:var(--surface)}
progress {display:block;width:100%;height:7px;margin:12px 0;border:0;border-radius:20px;background:var(--surface-soft);overflow:hidden;accent-color:var(--muted)}
progress::-webkit-progress-bar {background:var(--surface-soft);border-radius:20px}
progress::-webkit-progress-value {background:var(--surface);border-radius:20px}
progress::-moz-progress-bar {background:var(--surface);border-radius:20px}
.progress {height:7px;border-radius:20px;background:var(--surface-soft);overflow:hidden}
.progress span {display:block;height:100%;background:var(--surface);border-radius:20px}
.list-row {display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.list-row:last-child {border:0;padding-bottom:0}
.list-row:first-child {padding-top:0}
.list-row p {font-size:12px;color:var(--muted);margin-top:5px}
.stat-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.detail-grid {display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px 24px}
.detail-grid dt, .detail-grid dd {margin:0;padding-bottom:14px;border-bottom:1px solid var(--line)}
.detail-grid dd {font-size:14px}
.payload-field {padding:18px 0;border-bottom:1px solid var(--line)}
.payload-field:first-child {padding-top:0}
.payload-field:last-child {border:0;padding-bottom:0}
.payload-field dt {margin-bottom:7px}
.payload-field dd {white-space:pre-wrap;margin:0}
.timeline {list-style:none;padding:0;margin:0}
.timeline li {position:relative;padding:0 0 24px 28px;border-left:1px solid var(--line);margin-left:6px}
.timeline li+li {margin-top:0}
.timeline li::before {content:"";position:absolute;left:-4px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 5px var(--surface)}
.timeline li:last-child {border-left:0;padding-bottom:0}
.timeline p {font-size:12px;color:var(--muted);margin-top:6px}
/* Forms: labels, errors, touch targets, safe content boundaries. */
form {margin:0;min-width:0}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.field {display:flex;flex-direction:column;gap:7px;min-width:0}
.field-full, .span-2 {grid-column:1/-1}
label, legend {font-weight:600;font-size:12px;color:var(--ink)}
label:has(input[type=checkbox]), label:has(input[type=radio]) {display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:13px;cursor:pointer}
label:has(input[type=checkbox]) input, label:has(input[type=radio]) input {margin-top:3px;flex-shrink:0}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {width:100%;max-width:100%;min-height:45px;border:1px solid var(--line);border-radius:6px;padding:10px 12px;color:var(--ink);background:var(--surface);font-size:14px;line-height:1.5;transition:border-color .15s,box-shadow .15s;min-width:0}
input::placeholder, textarea::placeholder {color:var(--muted);opacity:1}
input:hover, textarea:hover, select:hover {border-color:var(--line)}
input:focus, textarea:focus, select:focus {border-color:var(--line);outline:3px solid #0000002d;outline-offset:1px}
input[readonly], textarea[readonly] {background:var(--surface);color:var(--muted)}
textarea {resize:vertical;min-height:126px}
textarea.code-input {font:12px/1.8 var(--mono);min-height:210px;tab-size:2}
input[type=checkbox], input[type=radio] {width:17px;height:17px;accent-color:var(--accent);cursor:pointer}
input[type=file] {font-size:16px;padding:8px}
input[type=file]::file-selector-button {border:0;border-radius:4px;min-height:44px;padding:8px 12px;margin-right:12px;background:var(--surface-soft);color:var(--ink);font:14px var(--body);cursor:pointer}
select {appearance:auto;padding-right:28px}
.help {font-size:12px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:0}
.field-error, [data-error] {font-size:12px;color:var(--red);font-weight:400}
[aria-invalid=true] {border-color:var(--line)!important}
.form-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:22px;margin-top:24px;border-top:1px solid var(--line)}
fieldset {min-width:0;border:1px solid var(--line);border-radius:9px;padding:22px;margin:0}
legend {padding:0 7px}
.password-field, .password-wrap {position:relative}
.password-field input, .password-wrap input {padding-right:76px!important}
.password-field button, .password-wrap button {position:absolute;right:5px;top:5px;height:35px;min-width:61px;font-size:11px;font-weight:600;background:var(--surface-soft);color:var(--ink);border:0;border-radius:4px}
[data-toggle-password] {min-height:34px;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);border-radius:5px;padding:5px 10px;font-size:11px}
.checkbox-row {display:flex;align-items:flex-start;gap:10px;font-size:13px}
.checkbox-row input {margin-top:4px}
.filter-form {display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.filter-form .field {flex:1 1 160px}
.filter-form input, .filter-form select {min-height:40px}
.filter-form .button {min-height:40px}
.search-field {max-width:360px}
.danger-zone {border-color:var(--line)}
.danger-zone .card-header {border-color:var(--line)}
.danger-zone h2 {color:var(--muted)}
.table-wrap {width:100%;overflow:auto;scrollbar-width:thin;overscroll-behavior-x:contain;border-radius:inherit}
table {width:100%;border-collapse:collapse;text-align:left;font-size:13px;white-space:normal}
table th {font-weight:600;font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);background:var(--surface);white-space:nowrap;padding:13px 20px;border-bottom:1px solid var(--line)}
table td {padding:18px 20px;border-bottom:1px solid var(--line);vertical-align:middle;max-width:380px;overflow-wrap:anywhere}
table tr:last-child td {border-bottom:0}
table tbody tr {transition:background .15s}
table tbody tr:hover {background:var(--surface)}
table td>a:not(.button) {font-weight:600;text-decoration:none}
table td>a:not(.button):hover {text-decoration:underline}
table td small {display:block;margin-top:4px;color:var(--muted);font-size:11px}
table .cluster {gap:7px;flex-wrap:nowrap}
table .button-small {min-height:34px;white-space:nowrap}
.table-empty {text-align:center!important;color:var(--muted);padding:40px!important}
table td form {display:inline-flex}
table td .button {vertical-align:middle}
table td pre {max-width:340px}
/* Workspace and platform shell */
.shell {min-height:100vh;display:flex}
.sidebar {position:fixed;inset:0 auto 0 0;width:248px;z-index:60;display:flex;flex-direction:column;background:var(--ink-deep);color:var(--ink);border-right:1px solid var(--line);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#46614a transparent}
.sidebar-brand {display:flex;align-items:center;justify-content:space-between;padding:29px 24px 28px}
.sidebar .brand {;color:var(--surface)}
.workspace-chip {display:flex;align-items:center;gap:11px;margin:0 18px 28px;padding:12px 10px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.workspace-chip>span:last-child {min-width:0;display:block}
.workspace-chip small {display:block;font-size:8px;letter-spacing:1.5px;color:var(--muted);margin-bottom:3px}
.workspace-chip strong {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:12px;max-width:146px}
.workspace-avatar {width:33px;height:33px;background:var(--surface);border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}
.workspace-avatar svg.icon {width:18px;height:18px}
.side-nav {display:flex;flex-direction:column;gap:5px;padding:0 17px}
.side-nav>a, .nav-button {display:flex;align-items:center;gap:13px;border-radius:6px;padding:11px 13px;min-height:43px;color:var(--muted);font-size:12px;text-decoration:none;border:0;background:none;transition:color .16s,background .16s}
.side-nav>a .icon, .nav-button .icon {width:18px;height:18px;flex-basis:18px;opacity:.85}
.side-nav>a:hover, .nav-button:hover {background:var(--surface);color:var(--ink)}
.side-nav>a.active {background:var(--surface-soft);color:var(--ink);font-weight:650;box-shadow:0 1px 0 #00000022}
.side-nav>a.active .icon {opacity:1}
.sidebar-bottom {margin-top:auto;padding-top:52px}
.sidebar-note {display:flex;align-items:flex-start;gap:11px;padding:0 27px 22px;color:var(--muted)}
.sidebar-note>.icon {width:17px;height:17px;margin-top:3px}
.sidebar-note p {font-size:11px;line-height:1.9}
.sidebar-note a {color:var(--ink);font-size:10px;text-decoration:none}
.sidebar-note a .icon {width:12px;height:12px}
.side-nav-secondary {border-top:1px solid var(--line);padding-top:12px;margin:0 17px;padding-inline:0}
.nav-button, .nav-button[type=submit] {width:100%;padding:11px 13px;justify-content:flex-start;font-size:12px;min-height:43px;color:var(--muted);font-weight:400;background:none;border:0;box-shadow:none}
.nav-button[type=submit]:hover {background:var(--surface);color:var(--ink);border:0;box-shadow:none}
.sidebar-version {display:flex;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:.4px;color:var(--muted);margin:20px 29px 23px}
.shell-content {margin-left:248px;min-width:0;flex:1;display:flex;flex-direction:column;min-height:100vh}
.topbar {height:79px;min-height:79px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 42px;border-bottom:1px solid var(--line);background:#000000b8}
.breadcrumb {display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted)}
.breadcrumb strong {color:var(--muted);font-size:11px;font-weight:500}
.account-link {display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-size:11px;font-weight:600;color:var(--muted);min-width:0}
.account-name {max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:33px;height:33px;border-radius:50%;background:var(--surface-soft);border:1px solid var(--line);color:var(--muted);font-size:12px}
.main {width:100%;max-width:1610px;padding:38px 42px 54px;margin-inline:auto;flex:1;min-width:0}
.page-heading {display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:30px}
.page-heading .eyebrow {margin-bottom:9px;font-size:9px;letter-spacing:1.8px}
.page-heading h1 {font-size:31px;letter-spacing:-1.1px}
.page-heading p {font-size:13px;color:var(--muted);margin-top:9px;max-width:670px}
.page-heading>.button {flex-shrink:0}
.page-heading .cluster {gap:8px}
.main>.grid+.grid, .main>.grid+.card, .main>.card+.card, .main>.card+.grid, .main>.stack, .main>.notice+.grid {margin-top:24px}
.main>.grid, .main>.card {margin-bottom:24px}
.app-footer {display:flex;justify-content:space-between;gap:20px;padding:0 42px 25px;color:var(--muted);font-size:10px}
.app-footer a {color:var(--muted);text-decoration:none}
.app-footer .icon {width:12px;height:12px;vertical-align:-2px}
.nav-toggle, .nav-close, .nav-scrim {display:none}
.menu-lines {position:relative;width:18px;height:1.5px;background:currentColor;border-radius:2px}
.menu-lines::before, .menu-lines::after {content:"";position:absolute;left:0;width:18px;height:1.5px;background:currentColor;border-radius:2px;top:-6px}
.menu-lines::after {top:6px}
/* Shared lists and code syntax. */
.check-list {list-style:none;padding:0;display:flex;flex-direction:column;gap:12px;margin:24px 0 25px}
.check-list li {display:flex;gap:10px;align-items:flex-start;font-size:12px;color:var(--muted);margin:0}
.check-list .icon {width:16px;height:16px;flex-basis:16px;color:var(--muted);margin-top:2px}
.code-comment {color:var(--muted)}
.code-tag {color:var(--muted)}
.code-string {color:var(--muted)}
/* Independent identity experiences */
.layout-auth {background:var(--paper);min-height:100vh;display:flex;flex-direction:column;position:relative}
.layout-auth::before {content:"";position:fixed;pointer-events:none;z-index:-1;inset:0;background-image:radial-gradient(#d7b77c1f 1px,transparent 1px);background-size:23px 23px;mask-image:linear-gradient(transparent 15%,#000 100%)}
.auth-header {display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 46px}
.auth-header .text-link {font-size:11px;color:var(--muted)}
.auth-main {width:min(460px,calc(100% - 40px));margin:35px auto 50px;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:stretch}
.auth-card {padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 60px #00000008;position:relative}
.auth-card::before {content:"";position:absolute;height:3px;width:64px;background:var(--surface-soft);border-radius:0 0 4px 4px;top:0;left:36px}
.auth-card h1 {font:400 34px/1.15 var(--display);letter-spacing:-1px;margin-bottom:12px}
.auth-card>p {font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:26px}
.auth-card .eyebrow {font-size:8px;letter-spacing:1.7px;margin-bottom:18px}
.auth-card form {display:flex;flex-direction:column;gap:19px}
.auth-card form .button[type=submit] {margin-top:3px;min-height:46px;width:100%}
.auth-card .notice {margin-bottom:23px;font-size:12px}
.auth-card .form-actions {margin:0;padding:0;border:0}
.auth-card .help {font-size:11px}
.auth-card .auth-links, .auth-links {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin-top:22px;flex-wrap:wrap}
.auth-card .auth-links a {font-size:11px;color:var(--muted)}
.auth-divider {border:0;border-top:1px solid var(--line);margin:23px 0}
.auth-note {font-size:11px;line-height:1.85;color:var(--muted);text-align:center;margin-top:22px;padding:0 16px}
.auth-footer {display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 46px;color:var(--muted);font-size:9px}
.auth-footer>div {display:flex;gap:22px}
.auth-footer a {color:var(--muted);text-decoration:none}
.recovery-code {border:1px dashed var(--line);background:var(--surface);padding:18px;font:15px/1.7 var(--mono);letter-spacing:1px;text-align:center;overflow-wrap:anywhere;border-radius:7px}
.recovery-codes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font:12px var(--mono);padding:18px;background:var(--surface);border:1px dashed var(--line);border-radius:8px;list-style:none}
.recovery-codes li {margin:0}
.mfa-secret {font:15px/1.7 var(--mono);letter-spacing:1.2px;overflow-wrap:anywhere;background:var(--surface);padding:15px;border-radius:6px}
.toast-region {position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);max-width:calc(100% - 32px);padding:12px 20px;border-radius:8px;background:var(--ink-deep);color:var(--ink);z-index:200;font-size:14px;box-shadow:0 5px 25px #00000030;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.toast-region.visible {transform:translate(-50%,0);opacity:1}
.toast-region:empty {display:none}
.is-submitting {cursor:progress}
.is-submitting button[type=submit] {opacity:.65}
.is-submitting button[type=submit]::after {content:"";width:12px;height:12px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin {to{transform:rotate(360deg)}}
/* Wide screens keep comfortable reading lines, not stretched interfaces. */
@media(min-width:1600px) {
.main {padding:46px 60px 60px}
.topbar {padding-inline:60px}
.app-footer {padding-inline:60px}
.container {max-width:1330px}
}
@media(max-width:1200px) {
.container {width:calc(100% - 64px)}
.main {padding:30px 28px 45px}
.topbar {padding-inline:28px}
.app-footer {padding-inline:28px}
.grid-4 {grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3 {gap:16px}
.card-body, .metric {padding:21px}
.card-header {padding:19px 21px}
}
@media(max-width:1023px) {
.sidebar {transform:translateX(-100%);transition:transform .23s ease;width:272px;box-shadow:16px 0 60px #00000020}
.sidebar .workspace-chip strong {max-width:162px}
.shell-content {margin-left:0}
.nav-toggle {display:inline-flex}
.nav-close {display:inline-flex;background:transparent;border:0;color:var(--muted);width:29px;height:29px;flex-basis:29px}
.nav-close:hover {background:var(--surface)}
.sidebar-brand {padding:28px 22px}
.nav-open .sidebar {transform:translateX(0)}
.nav-open .nav-scrim {display:block;position:fixed;inset:0;background:#00000080;backdrop-filter:blur(2px);border:0;border-radius:0;width:100%;height:100%;z-index:50}
.sidebar {z-index:80}
.topbar {height:74px;min-height:74px}
}
@media(max-width:767px) {
.container {width:calc(100% - 40px)}
.topbar {padding-inline:20px;height:69px;min-height:69px}
.topbar>.cluster {gap:11px;flex-wrap:nowrap;min-width:0}
.breadcrumb {font-size:10px;gap:8px;min-width:0}
.breadcrumb strong {font-size:10px;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.breadcrumb>span:first-child {display:none}
.breadcrumb>span:nth-child(2) {display:none}
.account-name {display:none}
.account-link .avatar {width:31px;height:31px}
.main {padding:26px 20px 38px}
.page-heading {gap:19px;margin-bottom:25px;align-items:flex-start}
.page-heading h1 {font-size:27px;letter-spacing:-.9px}
.page-heading p {font-size:12px;line-height:1.75;max-width:480px}
.page-heading .eyebrow {font-size:8px;letter-spacing:1.5px;margin-bottom:9px}
.page-heading .cluster {gap:8px}
.page-heading>.cluster {width:100%}
.page-heading .button {min-height:40px;font-size:11px;padding:9px 13px}
.grid-2, .grid-3 {grid-template-columns:1fr}
.grid-4 {gap:12px}
.grid {gap:16px}
.metric {padding:19px}
.metric-value {font-size:28px;margin:9px 0 6px;letter-spacing:-1px}
.metric-label {font-size:10px}
.metric p, .metric small {font-size:10px}
.card-header {padding:17px 19px;gap:10px}
.card-header h2 {font-size:15px}
.card-header p {font-size:11px}
.card-body {padding:20px}
.card-body>p {font-size:12px}
.card-footer {padding:15px 20px}
.form-grid {grid-template-columns:1fr;gap:18px}
.field-full, .span-2 {grid-column:auto}
.main>.grid+.grid, .main>.grid+.card, .main>.card+.card, .main>.card+.grid, .main>.stack {margin-top:20px}
.main>.grid, .main>.card {margin-bottom:20px}
.toolbar {gap:16px;margin-bottom:19px;align-items:flex-start}
.toolbar>.filter-form {width:100%}
.filter-form {gap:10px;width:100%}
.filter-form .field {flex-basis:140px}
.form-actions {gap:10px;margin-top:21px;padding-top:19px}
.button, button[type=submit] {min-height:44px;font-size:12px;padding:10px 15px}
.button-small, button.button-small[type=submit] {min-height:38px;padding:8px 12px;font-size:11px}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {font-size:16px;min-height:46px}
textarea.code-input {font-size:12px}
.help {font-size:11px}
.field {gap:6px}
label, legend {font-size:11px}
fieldset {padding:18px}
.notice {font-size:12px;padding:13px 15px}
.badge {font-size:9px}
table th {font-size:9px;padding:12px 16px}
table td {padding:16px;font-size:12px}
table {min-width:600px}
table.table-compact {min-width:460px}
table.responsive {min-width:0}
table.responsive thead {display:none}
table.responsive tbody tr {display:block;padding:14px 18px;border-bottom:1px solid var(--line)}
table.responsive tbody tr:last-child {border:0}
table.responsive td {display:flex;justify-content:space-between;align-items:baseline;gap:16px;max-width:none;padding:6px 0;border:0;text-align:right}
table.responsive td::before {content:attr(data-label);font-size:10px;color:var(--muted);text-align:left;flex-shrink:0}
table.responsive td:empty {display:none}
table.responsive td .cluster {justify-content:flex-end}
table.responsive td form {justify-content:flex-end}
.table-wrap:has(table:not(.responsive)) {background:linear-gradient(90deg,var(--surface) 30%,#00000000),linear-gradient(90deg,#00000000,var(--surface) 70%) 100% 0,radial-gradient(farthest-side at 0 50%,#00000019,#00000000),radial-gradient(farthest-side at 100% 50%,#00000019,#00000000) 100% 0;background-repeat:no-repeat;background-color:var(--surface);background-size:28px 100%,28px 100%,12px 100%,12px 100%;background-attachment:local,local,scroll,scroll}
.tabs {gap:1px;margin-bottom:22px}
.tabs a, .tabs button {font-size:11px;padding:12px 13px}
.empty-state {padding:37px 20px}
.empty-state h2, .empty-state h3 {font-size:19px}
.empty-state p {font-size:12px}
.code-block pre, .code-block>code {padding:18px;font-size:11px}
.code-header {font-size:10px;padding:10px 15px}
.app-footer {padding:0 20px 22px;font-size:8px;gap:10px}
.app-footer .icon {width:10px;height:10px}
.detail-grid {grid-template-columns:110px minmax(0,1fr);gap:12px 16px}
.detail-grid dt {font-size:10px}
.detail-grid dd {font-size:12px}
.auth-header {padding:22px 20px}
.auth-header .text-link {font-size:9px;gap:6px}
.auth-header .text-link .icon {width:12px;height:12px}
.auth-main {margin:22px auto 38px;justify-content:flex-start;width:min(440px,calc(100% - 40px))}
.auth-card {padding:29px 26px}
.auth-card::before {left:26px}
.auth-card h1 {font-size:32px}
.auth-card>p {font-size:12px;margin-bottom:23px}
.auth-card form {gap:18px}
.auth-footer {padding:20px;gap:15px;flex-wrap:wrap;font-size:8px}
.auth-footer>div {gap:15px}
.auth-note {font-size:10px}
.recovery-codes {font-size:11px;padding:14px;gap:11px}
.list-row p {font-size:11px}
.list-row {gap:12px}
.stat-list {gap:16px}
}
@media(max-width:390px) {
.container {width:calc(100% - 32px)}
.main {padding-inline:16px}
.topbar {padding-inline:16px}
.metric {padding:16px}
.metric-value {font-size:26px}
.metric-label {font-size:9px}
.card-body {padding:18px}
.card-header {padding:16px 18px}
.auth-card {padding:27px 22px}
.auth-card::before {left:22px}
.auth-header .text-link {font-size:8px}
.auth-header .text-link .icon {display:none}
.auth-main {width:calc(100% - 32px)}
.detail-grid {grid-template-columns:95px minmax(0,1fr);gap:12px}
}
@media(prefers-reduced-motion:reduce) {
html {scroll-behavior:auto}
*, *::before, *::after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
.section-link:hover .icon {transform:none}
}
@media print {
.sidebar, .topbar, .app-footer, .auth-header, .auth-footer, .button, button, .toast-region, .skip-link {display:none!important}
.shell-content {margin:0}
.main, .container {max-width:none;width:100%;padding:0}
.card, .metric {box-shadow:none;break-inside:avoid}
.code-block {color:var(--ink);background:var(--surface);border:1px solid var(--line)}
body {background:var(--surface);font-size:11pt}
table {min-width:0}
.table-wrap {overflow:visible}
.page-heading {margin-bottom:20px}
a {color:inherit}
}
/* Domain-specific editor and data details. */
.split {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,1fr);align-items:start;gap:24px}
.split>* {min-width:0}
.metric-label, .metric-value, .metric>.help {display:block}
.metric-date {font-size:27px;letter-spacing:-.7px}
.strong {font-weight:650}
.empty-glyph {display:block;margin:0 auto 17px;font:48px/1 var(--display);color:var(--muted)}
.section {padding:52px 24px}
.section.narrow {max-width:800px;margin:auto}
.section.narrow .empty-state {max-width:650px}
.section.narrow h1 {font:400 36px/1.2 var(--display);letter-spacing:-1px;margin-bottom:18px}
.editor-row {padding:22px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.editor-row+.editor-row {margin-top:15px}
.editor-row>button[data-remove-row] {justify-self:start;align-self:flex-start;min-width:0}
.editor-row .check {align-self:center}
.check, .checkbox-label {display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:400;line-height:1.7}
.check input, .checkbox-label input {margin-top:3px;flex-shrink:0}
.payload-list>div {padding:17px 0;border-bottom:1px solid var(--line)}
.payload-list>div:first-child {padding-top:0}
.payload-list>div:last-child {padding-bottom:0;border-bottom:0}
.payload-list dt {font-size:11px;letter-spacing:.15px;color:var(--muted)}
.payload-list dd {font-size:13px;line-height:1.9;overflow-wrap:anywhere;margin:7px 0 0}
.payload-list pre {font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.card-body details {border-top:1px solid var(--line);padding-top:16px}
.card-body details>summary {font-size:12px;cursor:pointer;line-height:1.7;color:var(--muted);font-weight:600}
.card-body details[open]>summary {margin-bottom:17px}
.card-body details summary:hover {color:var(--ink)}
.card-body label.field:has(input[type=checkbox]) {flex-direction:row}
.auth-card pre.code-block {padding:20px;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;letter-spacing:1px}
.auth-card.stack>div>p.lede {font-size:13px;margin-top:12px}
.card-body>pre.code-block {padding:20px}
.card-body .code-block>code {padding:0}
.card-header>a {font-size:11px;line-height:1.6;text-decoration:none}
.card-header>a:hover {text-decoration:underline}
.card-body form.toolbar>.field {flex:1 1 150px}
.card-body form.toolbar>button {align-self:flex-end}
.card-body>div>.help {margin-top:6px}
.card-body label.field:has(textarea) {align-self:stretch}
.layout-app table.responsive td>small {flex-basis:100%}
.layout-app .card-body details>form.stack {margin-top:16px}
.layout-app table td small {display:block;margin-top:4px}
@media(max-width:1200px) {
.split {grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:19px}
}
@media(max-width:767px) {
.split {grid-template-columns:1fr;gap:20px}
.editor-row {padding:18px}
.editor-row .check {align-self:flex-start}
.check, .checkbox-label {font-size:11px}
.metric-date {font-size:24px}
.payload-list dd {font-size:12px}
.payload-list dt {font-size:10px}
.section {padding:34px 20px}
.section.narrow h1 {font-size:30px}
.card-body>pre.code-block {padding:16px}
.layout-app table.responsive td {flex-wrap:wrap;justify-content:flex-end}
.layout-app table.responsive td::before {margin-right:auto}
.layout-app table.responsive td>small {text-align:right;margin-top:0}
.card-body form.toolbar>.field {flex-basis:125px}
.auth-card pre.code-block {padding:17px;font-size:11px}
}
/* Final contrast and content rhythm pass. */
.auth-header .text-link, .auth-note, .auth-footer, .auth-footer a, .app-footer, .app-footer a, .breadcrumb, .payload-list dt {color:var(--muted)}
.sidebar-version {color:var(--muted)}
.workspace-chip small {color:var(--muted)}
.sidebar-note {color:var(--muted)}
.auth-footer, .app-footer {font-size:10px}
input::placeholder, textarea::placeholder {color:var(--muted)}
.card-body h2+p, .card-body h3+p {margin-top:12px}
.card-body p+.cluster, .card-body p+a:not(.button) {margin-top:17px}
.card-body>a:not(.button) {font-size:12px}
.onboarding {background:var(--surface);border-color:var(--line)}
.onboarding .card-body {padding:30px}
.onboarding h2 {font:400 31px/1.2 var(--display);letter-spacing:-.8px}
.onboarding p {max-width:700px;font-size:13px;line-height:1.85;margin-top:13px}
.onboarding .cluster {margin-top:22px}
.onboarding .cluster>a:not(.button) {font-size:12px;font-weight:600}
.card-body .eyebrow {margin-bottom:9px}
.card-body .eyebrow+h3+p {font-size:12px;line-height:1.85}
.is-submitting button[aria-disabled=true]::after {content:"";width:12px;height:12px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
.noscript-nav {display:none}
.button-small, .nav-toggle {touch-action:manipulation}
@media(max-width:1023px) {
.noscript-nav {display:flex;flex-wrap:wrap;gap:10px 18px;border-bottom:1px solid var(--line);padding-block:15px;margin-bottom:18px;font-size:12px}
.nav-close {width:40px;height:40px;flex-basis:40px}
}
@media(max-width:767px) {
.auth-footer, .app-footer {font-size:9px}
.onboarding .card-body {padding:24px}
.onboarding h2 {font-size:28px}
.onboarding p {font-size:12px}
.onboarding .cluster {gap:14px}
.button-small, button.button-small[type=submit] {min-height:42px}
}
