:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101725; color: #edf2ff; }
body { margin: 0; }
main { box-sizing: border-box; width: min(100%, 680px); margin: auto; padding: 24px 16px 48px; }
header { margin-bottom: 24px; }
.brand-logo { display: block; width: min(42vw, 190px); height: auto; margin: 0 auto 14px; }
.brand-logo--player { width: min(30vw, 132px); }
h1 { margin: 4px 0 10px; font-size: clamp(1.7rem, 6vw, 2.4rem); }
h2 { margin-top: 0; font-size: 1.15rem; }
p { line-height: 1.5; }
.eyebrow { color: #9fc2ff; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.card { margin: 16px 0; padding: 18px; border: 1px solid #35425e; border-radius: 12px; background: #192337; }
label { display: block; margin: 12px 0 6px; font-weight: 650; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; }
select, input, textarea, button { width: 100%; box-sizing: border-box; border-radius: 8px; font: inherit; }
select, input, textarea { border: 1px solid #556581; padding: 10px; color: inherit; background: #111a2a; }
button { border: 0; margin-top: 10px; padding: 12px; color: #07111f; background: #a9cbff; font-weight: 750; }
.button-link { display: block; box-sizing: border-box; margin-top: 10px; padding: 12px; border-radius: 8px; color: #edf2ff; background: #35425e; font-weight: 750; text-align: center; text-decoration: none; }
#continue-recording[hidden] { display: none; }
button:disabled { opacity: .45; }
button.secondary { color: #edf2ff; background: #35425e; }
button.danger { color: #fff; background: #b72f4b; }
.actions { display: grid; gap: 8px; grid-template-columns: 1fr; }
.status { min-height: 1.5em; color: #bed0ee; }
.optional { color: #bed0ee; font-weight: 400; }
.meter { height: 24px; overflow: hidden; border-radius: 12px; background: #0b111c; }
#meter-fill { width: 0%; height: 100%; transition: width .08s linear; background: linear-gradient(90deg, #4bd394, #f2d762, #eb5d69); }
.qr-wrap { display: grid; place-items: center; min-height: 240px; margin: 16px 0; padding: 12px; border-radius: 12px; background: #fff; }
.qr-wrap img { display: block; width: min(100%, 360px); height: auto; }
.timer { font-family: ui-monospace, monospace; font-size: 2rem; font-variant-numeric: tabular-nums; text-align: center; }
summary { cursor: pointer; font-weight: 650; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-top: 1px solid #35425e; text-align: left; vertical-align: top; }
th { color: #9fc2ff; font-size: .82rem; }
@media (min-width: 440px) { .actions { grid-template-columns: 1fr 1fr; } }

/* Mobile character selection: the whole row is the selection button. */
.character-selection [hidden] { display: none; }
.selection-hint { color: #bed0ee; margin-bottom: 20px; }
.character-list { display: grid; gap: 12px; }
.character-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; margin: 0; padding: 16px; text-align: left; color: #edf2ff; background: #111a2a; border: 1px solid #556581; cursor: pointer; }
.character-choice:hover { background: #243651; border-color: #a9cbff; }
.character-choice:active { background: #30476a; }
.character-details { display: grid; gap: 5px; min-width: 0; }
.character-name { display: block; font-size: 1.2rem; font-weight: 750; overflow-wrap: anywhere; }
.character-player { display: block; font-size: .95rem; font-weight: 400; color: #bed0ee; overflow-wrap: anywhere; }
.character-last-used { font-size: .8rem; font-weight: 500; color: #9fc2ff; }
.character-select-label { flex: none; font-size: .9rem; color: #a9cbff; }
.character-preview { margin: 22px 0; padding: 20px; border: 1px solid #a9cbff; border-radius: 10px; background: #111a2a; }
.character-preview p { margin: 0; }
.character-preview .character-name { font-size: 1.5rem; margin-bottom: 8px; }
.confirmation-actions { display: grid; gap: 12px; }
.confirmation-actions button { margin: 0; min-height: 52px; cursor: pointer; }
.character-selection button:focus-visible { outline: 3px solid #f2d762; outline-offset: 4px; }
.character-selection button:disabled { cursor: wait; }
.character-selection .status:empty { display: none; }
footer a { color: #bed0ee; font-size: .9rem; }

/* GM touch controls: two generous columns, with space between every target. */
.gm-recording button { width: auto; min-height: 64px; padding: 14px 20px; cursor: pointer; }
.gm-recording button:focus-visible, .gm-recording summary:focus-visible { outline: 3px solid #f2d762; outline-offset: 4px; }
.gm-recording button:disabled { cursor: default; }
.gm-recording .touch-grid, .gm-recording .device-choices, .gm-recording .device-health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gm-recording .touch-grid button { width: 100%; min-height: 88px; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.gm-recording .touch-grid .start-recording { background: #87e1af; color: #092319; }
.gm-recording .touch-grid .stop-recording { background: #572631; color: #ffe4e9; border: 2px solid #e6889b; }
.gm-recording .device-choices label { display: flex; align-items: center; gap: 12px; min-height: 76px; box-sizing: border-box; margin: 0; padding: 14px; border: 1px solid #556581; border-radius: 10px; background: #111a2a; overflow-wrap: anywhere; cursor: pointer; }
.gm-recording .device-choices label:has(input:checked) { border-color: #a9cbff; background: #233653; }
.gm-recording .device-choices input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: #a9cbff; }
.gm-recording .device-health-tile { display: grid; align-content: start; gap: 7px; padding: 14px; background: #111a2a; border: 1px solid #35425e; border-radius: 10px; overflow-wrap: anywhere; }
.gm-recording .device-health-tile small { color: #bed0ee; }
.gm-recording .health-ready { color: #87e1af; font-weight: 700; }
.gm-recording .health-waiting { color: #f2d762; font-weight: 700; }
.gm-recording .advanced-controls { margin-top: 18px; border-top: 1px solid #35425e; padding-top: 8px; }
.gm-recording summary { min-height: 48px; box-sizing: border-box; padding: 14px 0; }
.gm-recording #destination, .gm-recording #freshness { color: #bed0ee; font-size: .85rem; }
.gm-recording #recovery-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 359px) { .gm-recording .device-choices { grid-template-columns: 1fr; } .gm-recording .touch-grid { gap: 10px; } .gm-recording .touch-grid button { padding: 12px 8px; } }
/* Handoff progress is based on verified source files and Scribe receipts. */
#jobs progress { display: block; width: 100%; height: 12px; margin: 8px 0; }
