/* One Click Server web app. Same tokens as the installer: stone ground, white surfaces,
   one orange accent; the orange gradient is reserved for big moments (login, status screen). */
:root {
  --stage: #EEECE8; --surface: #FFFFFF; --surface-2: #F4F2EE; --ink: #1B1815; --muted: #756D65; --line: #E6E1DA;
  --brand: #F0532A; --brand-strong: #CC3F19; --brand-soft: #FDEBE4; --on-brand: #FFFFFF;
  --good: #217A4A; --good-soft: #E1F1E7; --warn: #9A5E0C; --warn-soft: #FAEFD9; --bad: #BF352A; --bad-soft: #FBE5E2;
  --shadow: rgba(70, 45, 25, .14); --hero-a: #FF6E40; --hero-b: #E2441B; --on-hero: #FFFFFF; --qr-bg: #FFFFFF; --qr-ink: #1B1815;
  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stage: #0E0D0C; --surface: #1A1816; --surface-2: #23201D; --ink: #F3EFEA; --muted: #A39A90; --line: #322E2A;
    --brand: #FF6A3D; --brand-strong: #FF8E68; --brand-soft: #3A2019; --good: #5CC48C; --good-soft: #15301F;
    --warn: #E6AE54; --warn-soft: #33270F; --bad: #FF7A6E; --bad-soft: #3B1A17; --shadow: rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stage: #0E0D0C; --surface: #1A1816; --surface-2: #23201D; --ink: #F3EFEA; --muted: #A39A90; --line: #322E2A;
  --brand: #FF6A3D; --brand-strong: #FF8E68; --brand-soft: #3A2019; --good: #5CC48C; --good-soft: #15301F;
  --warn: #E6AE54; --warn-soft: #33270F; --bad: #FF7A6E; --bad-soft: #3B1A17; --shadow: rgba(0, 0, 0, .55); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.btn { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 22px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--bad); color: var(--on-brand); }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.ok { background: var(--surface-2); color: var(--muted); }
.pill.brand { background: var(--brand-soft); color: var(--brand-strong); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.glass { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 16px; text-decoration: none; }
.brand canvas { width: 44px; height: 22px; display: block; }
.brand small { font-weight: 500; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 12px 14px; outline: none; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 16px 30px -12px var(--shadow); z-index: 50; max-width: calc(100% - 32px); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.demo-bar { background: #1B1815; color: #F3EFEA; font-size: 13.5px; text-align: center; padding: 8px 16px; }
.demo-bar a { color: #FF8E68; margin-left: 6px; }
.demo-note { background: var(--brand-soft); color: var(--brand-strong); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
