/* Zoom Assistant: Kurskit line (light, calm, Geist). Borders all around or none. */
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f5f1;
  --surface: #fff;
  --surface-2: #efede8;
  --surface-3: #e4e1da;
  --line: rgba(28, 25, 20, 0.1);
  --line-strong: rgba(28, 25, 20, 0.18);
  --text: #191816;
  --muted: #6c6862;
  --faint: #a09b92;
  --accent: #17834f;
  --accent-soft: rgba(23, 131, 79, 0.1);
  --warn: #a8640a;
  --warn-soft: rgba(196, 128, 20, 0.12);
  --danger: #c63d36;
  --danger-soft: rgba(198, 61, 54, 0.09);
  --shadow: 0 10px 40px rgba(40, 32, 20, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  letter-spacing: -0.006em; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(25, 24, 22, 0.55); outline-offset: 2px; }

/* ---- type ---- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: 26px; letter-spacing: -0.04em; line-height: 1.15; }
h2 { font-size: 17px; }
h3 { font-size: 15px; letter-spacing: -0.012em; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; letter-spacing: 0; }
.eyebrow { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ---- controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn.primary:hover { background: #33312d; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn .ico { width: 15px; height: 15px; }

.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); outline: none; transition: border-color 0.12s, box-shadow 0.12s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 13px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(25, 24, 22, 0.45); box-shadow: 0 0 0 3px rgba(25, 24, 22, 0.06); }
.select { appearance: none; padding-right: 34px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236c6862' stroke-width='1.6'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input.sm, .select.sm { height: 34px; font-size: 14px; border-radius: 8px; }
label.field { display: grid; gap: 6px; }
label.field > span { font-size: 13px; color: var(--muted); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--surface-3); color: var(--text); }

.switch { position: relative; width: 36px; height: 22px; flex: none; border-radius: 999px; border: 0; background: var(--surface-3); cursor: pointer; transition: background 0.15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.switch[aria-checked='true'] { background: var(--accent); }
.switch[aria-checked='true']::after { transform: translateX(14px); }

/* ---- surfaces ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 18px 20px; }
.rows > * + * { border-top: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.chip.ok { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--accent); }
.dot.ask { background: #d39a2c; }
.dot.need { background: var(--danger); }
.dot.busy { background: var(--text); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.empty { padding: 26px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; box-shadow: var(--shadow); z-index: 60; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 20; height: 58px; display: flex; align-items: center; gap: 18px; padding: 0 24px; background: rgba(246, 245, 241, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--text); display: grid; place-items: center; flex: none; }
.brand-mark span { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.brand small { color: var(--muted); font-weight: 400; font-size: 14px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .spacer { flex: 1; }
.clock { font: 500 15px var(--mono); letter-spacing: 0; }
.clock .speed { margin-left: 6px; font-size: 12px; color: var(--muted); }
.source { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .top { padding: 0 14px; gap: 10px; }
  .brand small, .source span.lbl { display: none; }
}
