/* Admin desk: laptop layout */
.desk { max-width: 1040px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid #2E2E34; border-radius: 12px; background: linear-gradient(180deg, #1D1D22, #151519); }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: .1em; font-size: 15px; color: var(--gold-hi); }
.dnav { display: flex; gap: 6px; flex-wrap: wrap; }
.dnav a { font-size: 14px; font-weight: 700; color: var(--silver); text-decoration: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 12px; }
.dnav a[aria-current="page"] { color: var(--gold-hi); border-color: var(--gold-lo); background: #17140D; }
.dutil { display: flex; gap: 6px; }
.dutil .btn { width: auto; }
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dhead h1 { font-size: 22px; color: var(--fg); }
.dhead .btn { width: auto; }
.tablewrap { overflow-x: auto; border: 1px solid #2E2E34; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid #2E2E34; background: #151519; }
td { padding: 12px; border-bottom: 1px solid #24242A; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.acts { width: 1%; white-space: nowrap; }
.badge { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-ok { color: var(--ok); } .b-gold { color: var(--gold-hi); } .b-warn { color: var(--warn); } .b-grey { color: var(--silver); } .b-bad { color: var(--bad); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 780px) { .cols2 { grid-template-columns: 1fr; } }
.sec { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--gold); }
textarea { width: 100%; min-height: 110px; font: inherit; color: var(--fg); background: linear-gradient(180deg, #0B0B0E, var(--field)); border: 1px solid var(--gold-lo); border-radius: 10px; padding: 12px 14px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(210,174,98,.22); }
input[type="datetime-local"], input[type="date"] { color-scheme: dark; }
.rules td { text-align: center; } .rules td:first-child { text-align: left; }
.rules input { width: 20px; height: 20px; accent-color: var(--gold); }
.photo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold-lo); }
.empty { padding: 26px; text-align: center; color: var(--silver); }
.flash { border: 1px solid var(--ok); color: var(--fg); background: rgba(134,201,160,.08); border-radius: 10px; padding: 10px 14px; margin: 0; }
.triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.step { gap: 10px; }
.histmonths { display: flex; gap: 6px; flex-wrap: wrap; }
.hm { font-size: 13px; font-weight: 700; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 2px 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row .field { min-width: 220px; }
input[type="file"] { padding: 9px 10px !important; }
input[type="month"] { color-scheme: dark; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--silver); border: 1px solid #55545A; background: transparent; }
.chips button[aria-pressed="true"] { color: #2A1E08; background: var(--gold); border-color: var(--gold-hi); }
select { font: inherit; color: var(--fg); background: #111114; border: 1px solid var(--gold-lo); border-radius: 10px; padding: 9px 12px; }

/* All Questions: voice and video players */
audio.qplay { width: 100%; min-width: 220px; max-width: 360px; height: 36px; }
video.qplay { width: 100%; max-width: 320px; max-height: 240px; border-radius: 8px; background: #000; }

/* AI steps, AI shortlist and OSZTECH Conversion jobs (from the agreed mock-up) */
.aistep { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #1C1C21, #151519); }
.aistep.now { border-color: var(--gold-hi); }
.sn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; border: 2px solid #55545A; color: var(--silver); }
.aistep.done .sn { background: var(--ok); border-color: var(--ok); color: #12301F; }
.aistep.now .sn { border-color: var(--gold-hi); color: var(--gold-hi); }
.sb { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb .badge { align-self: flex-start; }
.qacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.qacts .btn { width: auto; }
.prompt { margin: 0; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; color: var(--fg); background: #0B0B0D; border: 1px solid #2E2E34; border-radius: 8px; padding: 12px; overflow-x: auto; }
details.instr summary { cursor: pointer; color: var(--gold-hi); font-size: 14px; margin-bottom: 8px; }
details.instr { display: flex; flex-direction: column; gap: 8px; }
.aibar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; border: 1px solid var(--gold-lo); border-radius: 10px; padding: 10px 14px; background: #17140D; }
.ainote { font-size: 13px; color: var(--gold-hi); }
.ainote::before { content: "AI · "; font-weight: 700; }
.slist { display: flex; flex-direction: column; gap: 10px; }
.slist .sec { margin-top: 6px; }
.qcard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 700px) { .qcard { grid-template-columns: 1fr; } }
.mbox { border-radius: 10px; border: 1px solid var(--gold-lo); background: #0B0B0D; color: var(--silver); font-size: 13px; padding: 12px; min-height: 70px; display: grid; place-items: center; text-align: center; }
.mbox audio { width: 100%; }
.mbox video { width: 100%; border-radius: 8px; background: #000; max-height: 200px; }
.mbox.has { padding: 6px; }
.qbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qbody .q { font-style: italic; }
.problems { margin: 0; padding-left: 20px; color: var(--bad); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.upl { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0 !important; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.qacts { position: relative; }

/* Admin list (owner only) */
.addrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; gap: 8px; }
@media (max-width: 700px) { .addrow { grid-template-columns: 1fr; } }
.addrow .btn { width: auto; }
.cellacts { display: flex; gap: 8px; justify-content: flex-end; }
.cellacts .btn { min-width: 104px; width: auto; }

/* Question cards that track one voice/video question all the way (signed-off mock-up, 5 Oct) */
.tcards { display: flex; flex-direction: column; gap: 10px; }
.tcard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid #2E2E34; border-radius: 12px; background: #121215; }
@media (max-width: 640px) { .tcard { grid-template-columns: 1fr; } }
.tcard .who { font-size: 13px; color: var(--fg); overflow-wrap: anywhere; }
.tcard .who b { color: var(--gold-hi); }
.tcard .trackline { font-size: 12px; color: var(--muted); }
.tcard .notext { font-size: 13px; color: var(--warn); }
.tcard textarea { min-height: 70px; }
.chosen { color: #12301F !important; background: var(--ok) !important; border-color: var(--ok) !important; }

/* Final list (signed-off mock-up P6) */
.flist2 { display: flex; flex-direction: column; gap: 10px; }
.fitem { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.fpos { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; }
.fpos .btn { width: 44px; padding: 4px 0; }
.fpos .btn:disabled { opacity: .35; }

/* Shoutout list (signed-off mock-up P9): sortable column headings */
.sorth { font: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.sorth:hover, .sorth.on { color: var(--gold-hi); }
.cb { width: 18px; height: 18px; accent-color: var(--gold); padding: 0; }

/* Members' extras hub (mock-up P10) */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
a.card { text-decoration: none; color: var(--fg); }
.card.locked { opacity: .55; }

/* Votes (signed-off mock-up F17, F17R, P14) */
.voteopts { display: flex; flex-direction: column; gap: 8px; }
.vopt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #2E2E34); border-radius: 10px; color: var(--fg); font-size: 15px; cursor: pointer; }
.vopt input { width: 18px; height: 18px; accent-color: var(--gold); padding: 0; margin: 0; }
.vopt:has(input:checked) { border-color: var(--gold-hi); background: #1C1810; }
.results { display: flex; flex-direction: column; gap: 10px; }
.res { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 15px; }
.res .pct { font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.rbar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #2A2A30; overflow: hidden; }
.rbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.vstack { display: flex; flex-direction: column; gap: 12px; }
.vchoices { display: flex; flex-direction: column; gap: 8px; }
.vact { align-self: flex-start; width: auto; }
.pair .field { min-width: 0; }
.pair select, .pair input { width: 100%; min-width: 0; box-sizing: border-box; }
/* Episodes: recordings deleted 30 days after the show (signed-off mock-up P1) */
.cleanup { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--warn); border-radius: 12px; padding: 14px 16px; background: rgba(231,168,103,.07); }
.cleanup > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
