@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Inter:wght@400;500;700&display=swap');

:root {
  --bg: #080807;
  --panel: #0e0d0b;
  --panel-2: #16140f;
  --line: #2a261d;
  --text: #f5f1e8;
  --muted: #948d82;
  --gold: #f4c340;
  --gold-soft: rgba(244, 195, 64, .12);
  --ok: #6fd08c;
  --bad: #ff7a6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, rgba(244,195,64,.10), transparent 60%), var(--bg); color: var(--text); font: 400 16px/1.55 Inter, system-ui, sans-serif; }
a { color: var(--gold); }
h1, h2 { font-family: Oswald, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0; }
h2 { font-size: 20px; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; padding: 32px 0 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { height: 44px; width: auto; display: block; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.muted { color: var(--muted); }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 22px; }
.stack > * + * { margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 10px; background: var(--gold); color: #080807; font: 700 15px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn:focus-visible, input:focus-visible { outline: 3px solid rgba(244,195,64,.5); outline-offset: 2px; }
input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 13px; font-weight: 700; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgba(111,208,140,.12); }
.pill.bad { color: var(--bad); background: rgba(255,122,107,.12); }
.notice { margin-top: 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.notice.bad { border-color: rgba(255,122,107,.5); }
.notice.ok { border-color: rgba(111,208,140,.5); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
code, .mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; }
.url { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.feed { max-height: 360px; overflow: auto; }
.hidden { display: none !important; }

.switch { position: relative; flex: none; width: 92px; height: 50px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; transition: background .2s, border-color .2s; }
.switch span { position: absolute; top: 5px; left: 5px; width: 36px; height: 36px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
.switch[aria-checked="true"] span { transform: translateX(42px); background: #080807; }
.switch:disabled { opacity: .4; cursor: not-allowed; }
.switch:focus-visible { outline: 3px solid rgba(244,195,64,.5); outline-offset: 3px; }
.drive-card:has(.switch[aria-checked="true"]) { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.tts-settings { display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); font-size: 14px; }
.tts-settings > label:not(.check) { display: grid; gap: 6px; color: var(--muted); }
.tts-settings select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.tts-settings input[type=range] { width: 100%; accent-color: var(--gold); }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.check input { width: 20px; min-height: 20px; accent-color: var(--gold); }

@media (max-width: 600px) {
  .wrap { padding-top: 20px; }
  .logo { height: 34px; }
  .card { padding: 18px; }
}
