:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f6f7; color: #17202d; }
body[data-theme="dark"] { background: #10151f; color: #f6f7fa; color-scheme: dark; }
body[data-theme="light"] { color-scheme: light; }
.shell { max-width: 1000px; margin: 0 auto; padding: clamp(16px, 3.5vw, 40px); }
.header { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 14px 0 26px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #677487; }
body[data-theme="dark"] .eyebrow { color: #a2b2c8; }
h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.2; margin: 8px 0 6px; }
.subtitle { margin: 0; color: #69788a; }
body[data-theme="dark"] .subtitle { color: #a2b2c8; }
.status { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; padding: 9px 13px; margin-top: 10px; border: 1px solid currentColor; border-radius: 24px; font-size: 13px; font-weight: 700; }
.dot { height: 9px; width: 9px; border-radius: 50%; background: currentColor; }
.status-live { color: #247448; }
.status-offline { color: #935d17; }
.status-waiting { color: #66778a; }
body[data-theme="dark"] .status-live { color: #83dc9c; }
body[data-theme="dark"] .status-offline { color: #ffd28c; }
body[data-theme="dark"] .status-waiting { color: #b1bfd0; }
.slide-card { display: flex; min-height: clamp(280px, 50vh, 520px); flex-direction: column; justify-content: center; text-align: center; padding: clamp(22px, 5vw, 50px); border-radius: 22px; background: #fff; box-shadow: 0 8px 38px rgba(0,0,0,.07); }
body[data-theme="dark"] .slide-card { background: #1c2635; box-shadow: 0 10px 35px rgba(0,0,0,.24); }
.presentation { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #63788b; margin-bottom: 18px; }
body[data-theme="dark"] .presentation { color: #b0c0d2; }
.slide-text { width: 100%; font-size: 32px; line-height: 1.45; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.verse-number { font-size: .62em; vertical-align: super; line-height: 0; font-weight: 600; }
.slide-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: auto; padding-top: 36px; font-size: 12px; color: #708093; }
body[data-theme="dark"] .slide-footer { color: #b0c0d2; }
.brand { font-weight: 600; }
.settings { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.setting { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
select, button { font: inherit; background: #fff; color: #17202d; border: 1px solid #cbd2de; border-radius: 9px; padding: 10px 12px; min-height: 43px; }
body[data-theme="dark"] select, body[data-theme="dark"] button { color: #f6f7fa; background: #28364a; border-color: #65768d; }
button { cursor: pointer; font-size: 21px; font-weight: 700; min-width: 44px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.size-control { display: inline-flex; align-items: center; gap: 10px; }
output { min-width: 44px; font-variant-numeric: tabular-nums; text-align: center; }
.help { font-size: 13px; line-height: 1.6; color: #69788a; margin-top: 24px; }
body[data-theme="dark"] .help { color: #a2b2c8; }
:focus-visible { outline: 3px solid #3188ff; outline-offset: 3px; }
@media (max-width: 620px) {
  .header { margin-top: 0; }
  .status { margin-top: 0; }
  .slide-card { min-height: 50vh; }
  .settings { align-items: flex-start; }
  .setting { justify-content: space-between; width: 100%; }
}
