@font-face { font-family: Geist; src: url('/assets/geist-sans.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/geist-mono.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
:root[data-color-mode] {
  --ink: var(--fgColor-default); --muted: var(--fgColor-muted); --line: var(--borderColor-default);
  --canvas: var(--bgColor-default); --subtle: var(--bgColor-muted); --surface: var(--bgColor-default);
  --brand: #17684f; --brand-soft: #e8f3ee; --danger: var(--fgColor-danger);
  --fgColor-accent: var(--brand); --borderColor-accent-emphasis: var(--brand);
  --button-primary-bgColor-rest: #17684f; --button-primary-bgColor-hover: #12563f;
  --button-primary-bgColor-active: #0f4935; --button-primary-borderColor-rest: #12563f;
  --button-primary-borderColor-hover: #0f4935; --focus-outlineColor: #17684f;
  --body-font: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bodyFont: var(--body-font); --fontStack-system: var(--body-font); --fontStack-monospace: 'Geist Mono', monospace;
}
:root[data-color-mode='dark'] { --brand: #82d9b5; --brand-soft: #17372e; --focus-outlineColor: #82d9b5; --button-primary-bgColor-rest: #217456; --button-primary-bgColor-hover: #288561; --button-primary-bgColor-active: #1b6348; --button-primary-borderColor-rest: #349171; --button-primary-borderColor-hover: #44a583; }
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--body-font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: var(--brand); }
button, summary, select { touch-action: manipulation; }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid var(--focus-outlineColor) !important; outline-offset: 3px; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { text-wrap: balance; }
h1 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: 14px; font-weight: 600; }
code, pre, .stat-value, .call-time, .call-duration { font-family: 'Geist Mono', ui-monospace, monospace; }
code { font-size: 12px; }
.ph { font-size: 18px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; font-family: var(--body-font); transition: background-color 120ms cubic-bezier(.23,1,.32,1), border-color 120ms cubic-bezier(.23,1,.32,1); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-invisible { color: var(--muted); }
.btn-primary { color: #fff; }
.btn .ph { font-size: 16px; opacity: 1; }
.icon-button, .icon-close { width: 34px; padding: 0; }
.btn-danger.btn-invisible { color: var(--danger); }
.btn-danger.btn-invisible:hover { background: var(--bgColor-danger-muted); color: var(--danger); }
.form-control, .form-select { font-family: var(--body-font); background-color: var(--surface); }
:root[data-color-mode] .form-select { background-image: none; appearance: auto; padding-right: 8px; }
.form-control::placeholder { color: var(--muted); opacity: 1; }
input[type='checkbox'] { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 12px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--brand); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 28px 12px 16px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--subtle); }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 0 12px; width: fit-content; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #c7f2d5; color: #143a2a; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; font-size: 24px; line-height: 1; }
.brand-mark::after { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border: 3px solid var(--subtle); border-radius: 50%; background: #5dd59a; content: ''; }
.brand-name { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 18px; font-weight: 760; letter-spacing: -.045em; }
.brand-name span { color: #86d5a7; }
.side-nav { margin-top: 36px; display: grid; gap: 4px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.side-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-nav a.active::before { position: absolute; content: ''; width: 3px; height: 18px; left: -12px; border-radius: 0 2px 2px 0; background: var(--brand); }
.nav-count { margin-left: auto; font: 11px 'Geist Mono', monospace; color: var(--muted); }
.sidebar-footer { margin-top: auto; padding: 28px 12px 0; }
.namespace-label { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.namespace-value { display: block; color: var(--ink); font-size: 11px; overflow-wrap: anywhere; line-height: 1.65; }
.theme-control { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); }
.theme-control .form-select { flex: 1; min-width: 0; background-color: transparent; border-color: transparent; font-size: 12px; padding-left: 4px; }
.stream-status { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fgColor-attention); flex-shrink: 0; }
.status-dot[data-connected='true'] { background: var(--brand); }
.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; background: var(--canvas); min-height: 72px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.page-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
#mobile-menu { display: none; }
.account-menu { position: relative; }
.account-trigger { min-height: 34px; padding: 4px 8px; background: transparent; border-color: transparent; box-shadow: none; font-size: 12px; }
.account-trigger::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); background: var(--subtle); border-radius: 50%; font-size: 10px; }
.account-popover { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; min-width: 216px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-floating-small); }
.account-popover .btn { display: flex; width: 100%; justify-content: flex-start; font-size: 12px; }
.account-role { display: block; padding: 6px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.workspace-content { max-width: 1344px; margin: 0 auto; padding: 36px 36px 20px; }
.stats, .activity-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 32px; }
.stat { min-width: 0; padding: 18px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-head .ph { color: var(--muted); }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 28px; letter-spacing: -.05em; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 12px; }
.section { margin-bottom: 28px; scroll-margin-top: 88px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 6px; max-width: 65ch; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-count { display: inline-grid; place-items: center; min-width: 23px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--subtle); color: var(--muted); font: 11px 'Geist Mono', monospace; }
.surface, .resource-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.route-columns, .route-row { display: grid; grid-template-columns: minmax(200px,1.8fr) minmax(100px,.65fr) minmax(130px,1fr) 160px; align-items: center; gap: 18px; padding: 0 20px; }
.route-columns { min-height: 44px; background: var(--subtle); color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.route-row { min-height: 96px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.route-row:last-child { border-bottom: 0; }
.route-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.entity-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: var(--subtle); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.route-identity { min-width: 0; }
.route-identity h3 { overflow-wrap: anywhere; flex-wrap: wrap; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.route-owner { color: var(--muted); font-size: 11px; font-weight: 400; }
.route-address { display: flex; align-items: center; gap: 4px; margin-top: 4px; min-width: 0; }
.route-address a { display: block; min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: var(--muted); font: 12px 'Geist Mono', monospace; }
.route-address .btn { min-height: 26px; width: 26px; padding: 0; }
.route-address .ph { font-size: 14px; }
.target-value { overflow-wrap: anywhere; color: var(--muted); }
.route-actions, .resource-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.route-actions .btn { min-height: 34px; padding: 5px 9px; font-size: 12px; }
.route-actions .icon-button { width: 28px; padding: 0; }
.route-status { display: grid; gap: 5px; justify-items: start; }
.health-note { color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; width: fit-content; border-radius: 6px; font-size: 11px; font-weight: 500; line-height: 1.5; }
.status-pill::before { content: ''; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.status-live { background: var(--brand-soft); color: var(--brand); }
.status-offline { background: var(--bgColor-attention-muted); color: var(--fgColor-attention); }
.status-idle { background: var(--subtle); color: var(--muted); }
.align-right { text-align: right; }
.resource-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(130px,1fr) minmax(80px,.6fr) var(--actions-width,auto); align-items: center; gap: 24px; padding: 20px; border-bottom: 1px solid var(--line); }
#users-list { --actions-width: 236px; }
.resource-row:last-child { border-bottom: 0; }
.resource-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.resource-identity > div { min-width: 0; }
.resource-identity h3 { font-size: 13px; overflow-wrap: anywhere; }
.resource-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.resource-detail { min-width: 0; }
.resource-detail small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.resource-detail code { color: var(--muted); overflow-wrap: anywhere; }
.resource-actions .btn { font-size: 12px; }
.empty-state { padding: 44px 24px; display: grid; place-items: center; text-align: center; }
.empty-state .entity-symbol { margin-bottom: 14px; }
.empty-state p { max-width: 380px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.loading-row { padding: 40px 24px; color: var(--muted); font-size: 12px; }
.inline-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 12px; color: var(--muted); }
.connection-banner { padding: 12px 16px; margin-bottom: 20px; background: var(--bgColor-attention-muted); color: var(--fgColor-attention); border: 1px solid var(--borderColor-attention-muted); border-radius: 6px; font-size: 12px; }
.monitoring-panel { padding: 20px; border: 1px solid var(--line); border-radius: 8px; margin-top: 20px; background: var(--surface); }
.problem-panel { border-color: var(--borderColor-attention-muted); background: var(--bgColor-attention-muted); margin: 0 0 24px; }
.problem-panel h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.problem-link { display: block; margin-top: 8px; font-size: 12px; color: var(--fgColor-attention); }
.namespace { color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.activity-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.activity-controls label { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; }
.activity-controls .btn { font-size: 12px; }
#activity-address { margin-top: 5px; font: 12px/1.6 'Geist Mono', monospace; }
#activity-gap:not(:empty) { background: var(--bgColor-attention-muted); color: var(--fgColor-attention); border-radius: 6px; padding: 10px 12px; margin-top: 12px; }
.activity-stats { grid-template-columns: repeat(5,minmax(0,1fr)); margin: 22px 0; }
.activity-stats .stat { padding: 16px; }
.activity-stats .stat-label { font-size: 11px; }
.activity-stats .stat-value { font-size: 22px; margin-top: 10px; }
.activity-filters { display: grid; grid-template-columns: 160px minmax(150px,1fr) 160px; gap: 12px; margin: 20px 0 16px; }
.activity-filters .field { margin: 0; gap: 5px; }
.call-columns, .call-summary { display: grid; grid-template-columns: 85px 62px minmax(100px,1fr) 95px 95px; align-items: center; gap: 12px; }
.call-columns { padding: 12px 18px; background: var(--subtle); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.call-columns > :last-child { text-align: right; }
.call-row { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.call-row:last-child { border: 0; }
.call-time, .call-duration { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.call-duration { text-align: right; }
.call-method { font: 500 11px 'Geist Mono', monospace; color: var(--brand); }
.call-path { overflow-wrap: anywhere; font-size: 11px; }
.call-footnote { display: flex; gap: 16px; color: var(--muted); font-size: 10px; margin: 9px 0 0 109px; }
.activity-empty { color: var(--muted); font-size: 12px; padding: 36px 20px; text-align: center; }
.call-inspection { margin: 12px 0 0 109px; font-size: 12px; }
.call-inspection > summary { width: fit-content; color: var(--brand); cursor: pointer; padding: 4px 0; }
.call-inspector { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.inspector-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--subtle); }
.inspector-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.inspector-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; }
.inspector-switch-button { border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; padding: 4px 12px; min-height: 28px; font-size: 12px; }
.inspector-switch-button[aria-pressed='true'] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.inspector-section { padding: 16px; }
.inspector-section + .inspector-section { border-top: 1px solid var(--line); }
.inspector-section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 28px; }
.inspector-section-heading h4 { font-size: 12px; font-weight: 600; margin: 0; }
.inspector-section-heading .btn { margin-left: auto; }
.inspector-badge { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 10px/1.6 'Geist Mono', monospace; }
.inspector-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.inspector-content > .inspector-note { padding: 16px; }
.inspector-section .inspector-note + .inspector-note, .json-tree + .inspector-note, .inspector-code + .inspector-note, .inspector-pairs + .inspector-note { margin-top: 10px; }
.inspector-pairs { margin: 0; max-height: 280px; overflow: auto; }
.inspector-pair { display: grid; grid-template-columns: minmax(100px,32%) minmax(0,1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: start; }
.inspector-pair:first-child { padding-top: 0; }
.inspector-pair:last-child { padding-bottom: 0; border: 0; }
.inspector-pair dt { color: var(--muted); overflow-wrap: anywhere; font: 11px/1.7 'Geist Mono', monospace; }
.inspector-pair dd { margin: 0; min-width: 0; }
.inspector-pair dd code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; line-height: 1.7; }
.inspector-content > .inspector-pairs { padding: 0 16px 16px; }
.inspector-code { margin: 0; padding: 12px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); color: var(--ink); white-space: pre; font-size: 11px; line-height: 1.8; tab-size: 2; }
.inspector-event-json { border: 0; border-radius: 0; padding: 16px; max-height: 520px; }
.inspector-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.json-tree { padding: 10px 14px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); font: 11px/1.8 'Geist Mono', monospace; }
.json-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-height: 28px; padding: 3px 0; overflow-wrap: anywhere; }
.json-node > summary { display: list-item; cursor: pointer; width: fit-content; border-radius: 4px; padding-right: 8px; }
.json-node > summary::marker { color: var(--muted); }
.json-node > summary span + span { margin-left: 8px; }
.json-children { margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.json-key { color: var(--ink); }
.json-string { color: var(--fgColor-success); }
.json-number { color: var(--fgColor-accent); }
.json-boolean { color: var(--fgColor-done); }
.json-null, .json-count, .json-bracket { color: var(--muted); }
.json-count { font-size: 10px; font-family: var(--body-font); }
.json-redacted, .inspector-pair dd code.json-redacted { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .json-node > summary:hover, .inspector-switch-button:not([aria-pressed='true']):hover { background: var(--bgColor-neutral-muted); color: var(--ink); } }
@media (pointer: coarse) { .inspector-switch-button, .inspector-toolbar .btn, .inspector-section-heading .btn, .json-node > summary { min-height: 40px; } }
@media (max-width: 767px) { .inspector-pair { grid-template-columns: minmax(85px,30%) minmax(0,1fr); gap: 12px; } .inspector-section { padding: 12px; } .inspector-toolbar { padding: 8px; } .inspector-switch-button { padding-left: 9px; padding-right: 9px; } }
.activity-bottom { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(220px,1fr); gap: 20px; }
.health-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.health-heading h3 { margin-right: auto; }
.health-heading label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.health-grid { display: grid; grid-template-columns: minmax(100px,1.4fr) 1fr 1fr; gap: 12px; margin-top: 14px; }
#health-form { padding-top: 20px; margin-top: 18px; border-top: 1px solid var(--line); }
#health-save { margin-top: 16px; font-size: 12px; }
#activity-events .call-footnote { display: block; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
#activity-events .activity-empty { text-align: left; padding: 14px 0; }
.event-panel h3 { margin-bottom: 8px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; }
.field .form-control, .field .form-select { width: 100%; height: 38px; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-error { font-size: 12px; color: var(--danger); }
.form-error:not(:empty) { margin: 14px 0; }
dialog.modal { width: min(100% - 32px,500px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-floating-large); }
dialog.modal::backdrop { background: rgba(0,0,0,.5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; }
.modal-form { padding: 24px; }
.modal-form > p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.modal-form > p.form-error { color: var(--danger); }
.modal-actions { padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.membership-options { display: grid; gap: 12px; margin-top: 20px; }
.membership-option { display: flex; align-items: start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.membership-option input { margin-top: 3px; }
.membership-option strong { display: block; font-size: 13px; font-weight: 600; }
.membership-option small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; font-size: 11px; }
.token-reveal { display: block; width: 100%; padding: 10px 12px; margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); color: var(--ink); font: 12px 'Geist Mono', monospace; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: min(400px,calc(100vw - 32px)); padding: 12px 16px; background: var(--surface); border: 1px solid var(--borderColor-success-muted); border-radius: 8px; color: var(--ink); box-shadow: var(--shadow-floating-medium); font-size: 12px; }
.toast[data-kind='error'] { border-color: var(--borderColor-danger-emphasis); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.command-trigger { justify-content: flex-start; min-width: 240px; padding: 6px 9px 6px 12px; background: var(--subtle); border-color: var(--line); box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 400; }
.command-trigger .shortcut-key { margin-left: auto; }
.shortcut-key, .command-footer kbd { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 22px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 1px 0 var(--line); color: var(--muted); font: 11px/1.6 var(--body-font); white-space: nowrap; }
.btn-primary > .shortcut-key { border-color: #ffffff35; background: #ffffff12; box-shadow: none; color: inherit; margin-left: 7px; }
.modal-actions button[data-submit-shortcut]::after { content: attr(data-submit-shortcut); display: inline-block; padding: 1px 4px; margin-left: 5px; border: 1px solid currentColor; border-radius: 4px; opacity: .65; font-size: 10px; font-weight: 400; }
.shortcuts-trigger { justify-content: flex-start; width: 100%; padding: 4px 0; margin-bottom: 20px; font-size: 12px; }
.shortcuts-trigger .ph { font-size: 16px; }
dialog.command-modal { width: min(100% - 32px,620px); margin: min(16dvh,140px) auto auto; border-radius: 12px; }
.command-search-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.command-search-row > .ph { color: var(--muted); font-size: 21px; }
.command-search-row input { flex: 1; min-width: 0; padding: 8px 0; outline: none !important; border: 0; background: transparent; color: var(--ink); font: 15px var(--body-font); }
.command-search-row:focus-within { box-shadow: inset 3px 0 var(--brand); }
.command-search-row input::placeholder { color: var(--muted); }
.command-search-row input::-webkit-search-cancel-button { display: none; }
.command-search-row .btn { padding: 0; }
.command-results { padding: 8px; max-height: min(460px,55dvh); overflow-y: auto; overscroll-behavior: contain; scroll-padding: 8px; }
.command-results:empty { padding: 0; }
.command-option { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.command-option > .ph { color: var(--muted); }
.command-option[aria-selected='true'] { background: var(--brand-soft); color: var(--brand); }
.command-option[aria-selected='true'] > .ph { color: var(--brand); }
.command-label { flex: 1; min-width: 0; }
.command-label strong { display: block; font-size: 13px; font-weight: 500; }
.command-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 10px 16px; color: var(--muted); font-size: 11px; }
.command-footer > span:last-child { display: flex; align-items: center; gap: 5px; }
.command-footer kbd { min-width: 18px; box-shadow: none; font-size: 10px; }
.command-empty { padding: 36px 20px; color: var(--muted); text-align: center; font-size: 13px; }
.shortcut-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 10px 0; font-size: 13px; }
.shortcut-row + .shortcut-row { border-top: 1px solid var(--line); }
.route-row:focus-within, .resource-row:focus-within { background: var(--bgColor-neutral-muted); }
.route-actions > .btn-danger { margin-left: 4px; border-left: 1px solid var(--line); border-radius: 0; }
@media (hover: hover) and (pointer: fine) {
  .command-option:not([aria-selected='true']):hover { background: var(--subtle); }
}
@media (pointer: coarse) {
  .btn, .command-option { min-height: 44px; }
  .icon-button, .icon-close, .route-actions .icon-button { width: 44px; }
  .route-address .btn { min-height: 40px; width: 40px; }
}
@media (max-width: 767px) {
  .topbar-actions { gap: 10px; }
  .command-trigger { min-width: 36px; width: 36px; justify-content: center; padding: 0; }
  .command-trigger > span, .command-trigger .shortcut-key { display: none; }
  .section-head .btn-primary > .shortcut-key { display: none; }
  .section-head p { max-width: none; }
  .command-search-row input { font-size: 16px; }
  .modal-actions button[data-submit-shortcut]::after { display: none; }
  dialog.command-modal { margin-top: 24px; }
}
.login-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--subtle); }
.login-header { display: flex; justify-content: space-between; align-items: center; padding: 26px 36px; }
.login-header .brand { padding: 0; }
.login-header .form-select { font-size: 12px; border-color: transparent; background-color: transparent; }
.login-card { width: min(100% - 40px,400px); margin: auto; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-resting-small); }
.login-card h1 { font-size: 26px; font-weight: 550; letter-spacing: -.04em; }
.login-card form { margin-top: 28px; }
.login-card .form-control { height: 40px; }
.login-card form > .btn { display: flex; width: 100%; margin-top: 24px; height: 38px; }
.login-card form > .btn .ph { margin-left: auto; }
.login-note { padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.login-note .ph { font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .side-nav a:not(.active):hover { background: var(--control-transparent-bgColor-hover); color: var(--ink); }
  .route-row:hover, .resource-row:hover { background: var(--bgColor-neutral-muted); }
}
@media (max-width: 1200px) {
  .topbar { padding: 0 24px; }
  .workspace-content { padding: 28px 24px 20px; }
  .route-columns, .route-row { grid-template-columns: minmax(190px,1.7fr) 100px minmax(110px,1fr) 160px; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .route-main .entity-symbol { display: none; }
  .activity-bottom { grid-template-columns: 1fr; gap: 0; }
  .resource-row { gap: 16px; }
}
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 188px minmax(0,1fr); }
  .sidebar { padding-left: 8px; padding-right: 8px; }
  .side-nav a.active::before { left: -8px; }
  .route-columns { display: none; }
  .route-row { grid-template-columns: minmax(0,1fr) auto; gap: 12px 20px; }
  .route-main { grid-column: 1; }
  .route-status { grid-column: 2; grid-row: 1; justify-items: end; }
  .route-actions { grid-column: 2; grid-row: 2; }
  .route-row > .target-value { grid-column: 1; grid-row: 2; font-size: 11px; }
  .resource-row { grid-template-columns: minmax(0,1fr) auto; }
  .resource-detail { grid-column: 1; }
  .resource-row > .status-pill { grid-column: 2; grid-row: 1; }
  .resource-actions { grid-column: 2; grid-row: 2; flex-wrap: wrap; }
  .activity-stats .stat { padding: 12px; }
  .activity-stats .stat-value { font-size: 18px; }
  .call-columns, .call-summary { grid-template-columns: 68px 46px minmax(70px,1fr) 70px 65px; gap: 8px; }
  .call-footnote, .call-inspection { margin-left: 0; }
}
@media (max-width: 767px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 15; top: 64px; bottom: 0; width: 240px; height: calc(100dvh - 64px); display: none; border-bottom: 1px solid var(--line); box-shadow: 16px 0 32px rgba(0,0,0,.15); }
  .sidebar[data-open='true'] { display: flex; }
  #mobile-menu { display: inline-flex; }
  .topbar { position: sticky; top: 0; z-index: 5; background: var(--canvas); min-height: 64px; padding: 0 16px; }
  .page-heading { gap: 6px; }
  .account-trigger { font-size: 11px; gap: 6px; padding: 4px; }
  .account-trigger > .ph { font-size: 12px; }
  .workspace-content { padding: 24px 16px 20px; }
  .stats { margin-bottom: 26px; }
  .stat { padding: 14px 12px; }
  .stat-label { font-size: 10px; }
  .stat-head .ph { display: none; }
  .stat-value { font-size: 24px; margin-top: 10px; }
  .section-head { align-items: flex-start; gap: 10px; }
  .section-head h2 { font-size: 16px; }
  .section-head .btn { font-size: 11px; padding: 5px 10px; }
  .section-head p { font-size: 11px; max-width: 230px; }
  .route-row { padding: 16px 12px; gap: 12px; }
  .route-owner { display: none; }
  .resource-row { padding: 16px 12px; gap: 12px; }
  .resource-actions .btn { font-size: 11px; padding: 4px 8px; }
  .resource-identity .entity-symbol { width: 28px; height: 28px; }
  .resource-identity { gap: 8px; }
  .resource-detail code { font-size: 11px; }
  #users-list .resource-row, #destinations-list .resource-row { grid-template-columns: minmax(0,1fr) 80px; }
  #users-list .resource-row > .status-pill, #destinations-list .resource-row > .status-pill { justify-self: end; }
  #users-list .resource-detail, #destinations-list .resource-detail { grid-column: 1 / -1; grid-row: 2; }
  #users-list .resource-actions, #destinations-list .resource-actions { grid-column: 1 / -1; grid-row: 3; }
  #mobile-menu { min-width: 40px; min-height: 40px; }
  .activity-controls label { width: 100%; margin: 6px 0 0; }
  .activity-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .activity-stats .stat:nth-child(3) { border-right: 0; }
  .activity-stats .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .activity-filters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .activity-filters .field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .call-columns { display: none; }
  .call-summary { grid-template-columns: auto 1fr auto; gap: 8px; }
  .call-time { grid-row: 1; grid-column: 1; }
  .call-method { grid-row: 1; grid-column: 2; }
  .call-summary .status-pill { grid-row: 1; grid-column: 3; }
  .call-path { grid-row: 2; grid-column: 1 / 3; }
  .call-duration { grid-row: 2; grid-column: 3; }
  .call-row { padding: 14px 12px; }
  .call-footnote { flex-wrap: wrap; gap: 6px 12px; }
  .monitoring-panel { padding: 16px; }
  .health-grid { grid-template-columns: 1fr 1fr; }
  .health-grid .field:first-child { grid-column: 1 / -1; }
  .field .form-control, .field .form-select { font-size: 16px; }
  .login-header { padding: 20px; }
  .login-header .form-select { font-size: 16px; width: 145px; }
  .login-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.form-explanation { margin-bottom: 22px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.token-scope { margin: 0 0 18px; }
dialog.setup-modal { width: min(100% - 32px,680px); }
dialog.request-modal { width: min(100% - 32px,900px); }
.access-section { margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.access-section h3 { margin: 0 0 12px; font-size: 14px; }
.access-toggle, .access-generate { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.access-toggle { font-weight: 600; }
.access-header-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 16px 0; }
.access-header-row .field { margin: 0; }
.access-header-row .btn { justify-self: end; }
.access-section > textarea.form-control { width: 100%; resize: vertical; }
.access-status { color: var(--muted); font-size: 12px; }
.access-steps { margin: 0 0 20px; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.access-steps li + li { margin-top: 8px; }
.request-edit-row { display: grid; grid-template-columns: minmax(120px,1fr) minmax(0,2fr) 140px; gap: 8px; margin: 10px 0; align-items: center; }
.request-edit-row > input:last-child { grid-column: 2 / -1; }
.request-original { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; max-height: 72px; overflow: auto; }
.request-body-input { font-family: var(--font-mono); width: 100%; resize: vertical; }
.replay-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.replay-note { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .access-header-row, .request-edit-row { grid-template-columns: 1fr; }
  .request-edit-row > input:last-child { grid-column: auto; }
}
.setup-modal .modal-head { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.setup-steps { padding-left: 24px; margin: 24px 0 0; }
.setup-steps > li { padding-left: 6px; }
.setup-steps > li + li { margin-top: 28px; }
.setup-steps > li::marker { color: var(--muted); font-size: 13px; }
.setup-steps h3 { margin-bottom: 8px; }
.setup-steps p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.setup-steps p + p { margin-top: 10px; }
.setup-steps p code { font-size: 11px; overflow-wrap: anywhere; }
#token-secret .token-reveal { margin-top: 12px; }
#token-secret .btn { margin-top: 10px; }
.command-block { position: relative; margin: 12px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); }
.command-block pre { padding: 14px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-block code { font-size: 11px; line-height: 1.7; color: var(--ink); }
.command-block .btn { margin: 0 10px 10px; font-size: 11px; }
.setup-addresses { margin-top: 12px; }
.setup-addresses code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.8; }
@media (max-width: 767px) { .setup-steps { padding-left: 20px; } .setup-steps > li { padding-left: 3px; } }
