/* enjoyable: shared look for the app's own screens (toolbar, welcome, settings, shortcuts, loading).
   Dark, high contrast (text >= 7:1), one accent (yellow) that also marks focus, targets >= 44 px. */
:root {
  --bg: #0d0f12;
  --surface: #16191e;
  --surface-2: #1f232a;
  --surface-3: #2a2f38;
  --line: #343a45;
  --text: #f4f6f9;
  --muted: #b9c1cc;
  --accent: #ffd34d;
  --on-accent: #14120a;
  --ok: #5ee39a;
  --bad: #ff9a8f;
  --radius: 12px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
html[data-look="see"] { font-size: 125%; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 1.1em; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; }
.btn.quiet:hover { color: var(--text); background: var(--surface-2); }
.btn:disabled { opacity: .4; cursor: default; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* key caps */
kbd {
  display: inline-block; min-width: 1.9em; padding: .12em .5em; border-radius: 7px; border: 1px solid var(--line);
  border-bottom-width: 3px; background: var(--surface-2); color: var(--text); font: 600 .9em var(--font); text-align: center;
}

/* segmented choice (role=radiogroup, buttons with aria-checked) */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 0; min-height: 44px; padding: 0 .9em; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; font-weight: 600; color: var(--muted);
}
.seg button:hover { color: var(--text); }
/* selected: a thick yellow outline + white bold text (not colour alone); calmer than a filled block */
.seg button[aria-checked="true"] { background: var(--surface-3); border-color: var(--accent); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent); }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { box-shadow: none; }

/* switch (button role=switch) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 52px; padding: 6px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.switch .track { flex: none; width: 52px; height: 30px; border-radius: 15px; background: var(--surface-3);
  border: 1px solid var(--line); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--muted); transition: transform .15s, background .15s; }
.switch[aria-checked="true"] .track { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .track::after { transform: translateX(22px); background: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .switch .track, .switch .track::after { transition: none; } }

/* slider */
input[type="range"] { width: 100%; height: 44px; accent-color: var(--accent); background: transparent; cursor: pointer; }
