/* WOK: a native, framework-free product UI. Fonts and icons are served locally. */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: dark;
  --brand-wordmark: #676870; --canvas: #111214; --canvas-deep: #0e0f11; --surface: #191a1d; --surface-raised: #202125;
  --surface-soft: #232429; --control: #151619; --sidebar: #161719;
  --ink: #f4f4f5; --ink-secondary: #d4d4d8; --muted: #a5a5ad; --quiet: #91919a;
  --line: #2b2c31; --line-strong: #46474d;
  --accent: #ff865c; --accent-hover: #ff9a76; --accent-soft: #34241f; --on-accent: #17100d;
  --green: #8bd6a7; --green-soft: #1d3227; --amber: #f0b86a; --amber-soft: #352918;
  --danger: #e2b6b6; --danger-soft: #302729; --blue: var(--ink-secondary); --blue-soft: var(--surface-soft);
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-display: var(--font-body); --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --radius-control: 8px; --radius-surface: 12px; --sidebar-width: 236px; --topbar-height: 76px;
  --content-max: 1480px; --shadow-raised: 0 12px 36px #0004;
}
html[data-theme='light'], #app[data-theme='light'] {
  color-scheme: light;
  --brand-wordmark: #75767e; --canvas: #f7f7f8; --canvas-deep: #efeff1; --surface: #fff; --surface-raised: #fff;
  --surface-soft: #f0f0f2; --control: #fafafb; --sidebar: #fff;
  --ink: #222329; --ink-secondary: #45464e; --muted: #666771; --quiet: #686974;
  --line: #e6e6eb; --line-strong: #bfc0c8;
  --accent: #e86f48; --accent-hover: #f27f57; --accent-soft: #f8e9e3; --on-accent: #fff;
  --green: #2f8f58; --green-soft: #e5f3ea; --amber: #a66a22; --amber-soft: #fbf0df;
  --danger: #7a4b50; --danger-soft: #f1e9ea; --shadow-raised: 0 12px 36px #22232916;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-body); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 700; }
h2 { margin-bottom: 0; font-size: 17px; line-height: 1.45; letter-spacing: -.45px; }
strong { font-weight: 650; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']), select, textarea { width: 100%; min-width: 0; color: var(--ink); background: var(--control); border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 12px 14px; outline: none; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']), select { min-height: 46px; }
textarea { resize: vertical; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: var(--quiet); opacity: 1; }
input:not([type='checkbox']):not([type='radio']):focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); }
::selection { color: var(--ink); background: color-mix(in srgb, var(--accent) 30%, transparent); }
.ui-icon { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mono, code, pre { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.primary-button, .outline-button, .text-button, .icon-button, .row-action, .credential-action, .field-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-control); min-height: 40px; padding: 9px 14px; font-size: 13px; font-weight: 650; line-height: 1.4; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.primary-button { color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); }
.primary-button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.outline-button, .icon-button, .credential-action { color: var(--ink-secondary); border: 1px solid var(--line-strong); background: transparent; }
.outline-button:hover:not(:disabled), .icon-button:hover:not(:disabled), .credential-action:hover { background: var(--surface-soft); border-color: var(--quiet); color: var(--ink); }
.icon-button { width: 40px; height: 40px; padding: 0; }
.text-button, .row-action, .field-action { padding: 5px 0; min-height: 32px; background: transparent; border: 0; color: var(--ink-secondary); }
.text-button:hover, .row-action:hover:not(:disabled), .field-action:hover { color: var(--accent); }
.danger-button { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.danger-button:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.form-message { margin: 6px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.form-message.is-error { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.form-message.is-success { color: var(--green); background: var(--green-soft); }
.field-help { color: var(--muted); margin: 0 0 9px; font-size: 12px; line-height: 1.65; }
.eyebrow { display: none; }
.status-dot, .status-badge i, .live-label i { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--quiet); }
.status-dot.is-live, .is-live .status-dot, .status-badge.is-online i, .live-label.is-live i { background: var(--green); }
.status-dot.is-offline { background: var(--danger); }
.status-dot.is-degraded, .status-dot.is-checking { background: var(--amber); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-badge.is-online { color: var(--green); background: var(--green-soft); }
.status-badge.is-danger { color: var(--danger); background: var(--danger-soft); }
.status-badge.is-danger i { background: var(--danger); }
.live-label, .secure-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.live-label.is-live { color: var(--green); }
.live-label.is-waiting { color: var(--amber); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
