:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #f3f4f6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #0b1020; }
.shell { width: min(760px, 100%); margin: 0 auto; padding: 20px 14px 48px; }
h1 { margin-bottom: 4px; }
.muted { color: #aab2c3; }
.card { background: #151c2e; border: 1px solid #26324b; border-radius: 14px; padding: 16px; margin-top: 16px; }
label { display: block; font-weight: 600; }
.urlRow { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
input[type="url"], select, button { font: inherit; }
input[type="url"], select { width: 100%; background: #0f1627; color: #fff; border: 1px solid #35435f; border-radius: 10px; padding: 12px; }
button { border: 1px solid #455575; background: #202b43; color: white; border-radius: 10px; padding: 11px 14px; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button.primary { min-width: 74px; background: #e5e7eb; color: #111827; border-color: #e5e7eb; font-size: 1.25rem; }
.options { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 14px; }
.options label { font-weight: 500; }
.statusLine { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #27324a; color: #cbd5e1; font-size: .85rem; }
.readingText { font-size: 1.15rem; line-height: 1.55; min-height: 120px; }
.progress { height: 6px; background: #26324b; border-radius: 999px; overflow: hidden; }
#progressBar { height: 100%; width: 0; background: #f3f4f6; transition: width .2s; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.settingsRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.settingsRow label { font-size: .9rem; color: #cbd5e1; }
.settingsRow select { margin-top: 5px; }
@media (max-width: 560px) {
  .urlRow, .settingsRow { grid-template-columns: 1fr; }
  .shell { padding-top: max(14px, env(safe-area-inset-top)); }
  .controls button { flex: 1; min-width: 68px; }
}
