/* Studio > Dashboard and Live Sessions (A-126). Written by that part's builder. Loaded after race.css. */
/* The look is the approved picture's (v3/wireframe-and-plans/studio-next-2026-11-12/mockups/screens.html, screen 1),
   with its class names given this part's prefixes: "db" for the dashboard, "lv" for Live Sessions. */

/* ---------------------------------------------------------------- the dashboard */
.dbwhen { color: var(--hb-slate); font-size: 13px; font-weight: 400; }
.dbbody { display: flex; flex-direction: column; gap: 14px; transition: opacity .15s; }
.dbbody.dbbusy { opacity: .55; }
.dbsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mbody .card.dbcard, .card.dbcard { display: block; padding: 16px 18px; border-radius: 16px; min-width: 0; }
.dbcard h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dbcard .small { font-size: 12px; color: var(--hb-slate); }
.dbempty { margin: 0; padding: 10px 16px; border: 1px dashed var(--hb-line); border-radius: 12px; background: var(--hb-mist); color: var(--hb-slate); font-size: 13px; }
.dbempty b { color: var(--hb-ink); font-weight: 600; }

/* row 1: four tiles that keep their size while the figures load */
.dbtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dbtile { position: relative; overflow: hidden; min-height: 168px; }
@media (max-width: 1360px) { .dbtile { min-height: 186px; } }
.dbtile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hb-spectrum); }
.dblab { font-size: 12.5px; color: var(--hb-slate); font-weight: 500; }
.dbnum { font-size: 34px; font-weight: 700; line-height: 1.15; color: var(--hb-ink); white-space: nowrap; }
.dbup { color: var(--hb-ok); font-weight: 600; white-space: nowrap; }
.dbdown { color: var(--hb-bad); font-weight: 600; white-space: nowrap; }
.dbsame { white-space: nowrap; }

/* row 2: day by day, the five slabs, where she lost marks */
.dbgrid3 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dbmid { min-height: 236px; }
.dbbars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 120px; margin-top: 6px; border-bottom: 1px solid var(--hb-line); }
.dbbars.many { gap: 2px; }
/* (A bar is never wider than 56 px: on "Today" the one bar was as wide as its card.) */
.dbbars i { flex: 1; min-width: 0; max-width: 56px; display: block; background: linear-gradient(180deg, #7B2A90, #00A8E8); border-radius: 5px 5px 0 0; }
.dbbars.many i { border-radius: 2px 2px 0 0; }
.dbbars i.none { height: 2px !important; background: var(--hb-line); border-radius: 0; }
.dbaxis { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.dbfoot { margin: 8px 0 0; }
.dbnone { margin: 6px 0 0; }
.dbnums { margin-top: 8px; font-size: 12.5px; }
.dbnums summary { cursor: pointer; color: var(--hb-blue-deep); font-weight: 500; width: fit-content; border-radius: 6px; }
.dbnumlist { max-height: 200px; overflow: auto; margin-top: 6px; border: 1px solid var(--hb-line); border-radius: 10px; }
.dbnums th, .dbnums td { padding: 5px 10px; font-size: 12.5px; }
.dbnums td:last-child, .dbnums th:last-child { text-align: right; }
.dbhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dbhead .dbnum { line-height: 1.1; }
.chip.dbai { background: #EEE7F8; color: #5A1F6C; border-color: transparent; font-weight: 600; font-size: 11px; padding: 1px 8px; white-space: nowrap; }
.dbslab { display: grid; grid-template-columns: 70px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 3px; padding: 2px 4px; margin-left: -4px; margin-right: -4px; border-radius: 8px; color: var(--hb-ink); }
.dbtrack { display: block; }
.dbtrack i { display: block; height: 9px; border-radius: 9px; background: linear-gradient(90deg, #7B2A90, #00A8E8); }
.dbtrack i.low { background: var(--hb-bad); }
.dbslab b { text-align: right; font-weight: 600; }
.dbline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 4px; margin: 0 -4px; border-top: 1px solid var(--hb-line); color: var(--hb-ink); font-size: 13.5px; border-radius: 0; }
.dbcard h3 + .dbline, .dbline:first-child { border-top: 0; }
.dbline b { font-weight: 600; white-space: nowrap; text-align: right; }
.dbline b .small { font-weight: 400; }
a.dbslab, a.dbline { text-decoration: none; cursor: pointer; }
a.dbslab:hover, a.dbline:hover { background: var(--hb-mist); text-decoration: none; }
a.dbline:hover span:first-child, a.dbslab:hover span:first-child { text-decoration: underline; }
/* a line that can be pressed says so with a small arrow, not by colour alone */
a.dbline b::after, a.dbslab b::after { content: ' ›'; color: var(--hb-slate); font-weight: 400; }
a.dbslab { grid-template-columns: 70px minmax(0, 1fr) 52px; }
.dbdash { font-weight: 600; color: var(--hb-ink); white-space: nowrap; }
.dbdash .small { font-weight: 400; }

/* row 3: engagement and how well she did her job; then hosts told, languages and drinks, the HoloBox911 itself, what needs attention */
.dbgrid6 { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 14px; }
.dbgrid6 .dbe, .dbgrid6 .dbj { grid-column: span 12; }
.dbgrid6 .dbh { grid-column: span 10; } .dbgrid6 .dbl { grid-column: span 14; } .dbgrid6 .dba { grid-column: span 24; }
.dbwhy { display: block; font-size: 12px; line-height: 1.3; font-weight: 400; color: var(--hb-slate); }
.dbhow { display: block; margin-top: 2px; }
.dbbig { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--hb-ink); }
.dbattn { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; border-top: 1px solid var(--hb-line); color: var(--hb-ink); font-size: 13.5px; }
.dbattn:first-child { border-top: 0; padding-top: 0; }
.dbattn a { white-space: nowrap; font-weight: 600; }
.dbattn.ok { color: var(--hb-ok); }
.dbleft { margin: 0; color: var(--hb-slate); }
.dbfail { max-width: 560px; }
.dbfail p { margin: 0 0 12px; color: var(--hb-ink); }

/* ---------------------------------------------------------------- Live Sessions */
.lvsum { margin: 0; }
.lvmonth { display: flex; flex-direction: column; gap: 8px; }
.lvmonth + .lvmonth { margin-top: 6px; }
.mbody .lvmonth h2, .lvmonth h2 { font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lvmonth h2 .small { font-weight: 400; color: var(--hb-slate); }
.lvtable { table-layout: fixed; }
.lvtable th, .lvtable td { padding: 7px 14px; }
.lvtable th:nth-child(1) { width: 13%; } .lvtable th:nth-child(2) { width: 10%; } .lvtable th:nth-child(3) { width: 13%; }
.lvtable th:nth-child(4) { width: 21%; } .lvtable th:nth-child(5) { width: 21%; } .lvtable th:nth-child(6) { width: 22%; }
.lvtable td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.lvtable tbody tr { cursor: pointer; }
.lvtable tbody tr:hover td { background: var(--hb-mist); }
.lvtable tr.lvout td { color: var(--hb-slate); }
button.lvopen { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; min-height: 0; border-radius: 6px; color: var(--hb-blue-deep); font-weight: 600; white-space: nowrap; }
button.lvopen:hover { text-decoration: underline; }
.lvwhy { display: block; font-size: 12px; color: var(--hb-slate); white-space: normal; }

dialog.lvdlg { width: min(1160px, 96vw); padding: 20px 22px; }
.lvtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.lvtop h2 { margin: 0 0 2px; font-size: 20px; }
.lvtop p { margin: 0; }
.lvtop .lvend { display: flex; align-items: center; gap: 10px; flex: none; }
/* 13 Nov 2026 (plan maya-95, row S4): the two films' states in words, and until when they are kept, above the films. */
.lvstates { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 12px; padding: 0; }
.lvstates li { font-size: 13px; line-height: 1.4; padding: 4px 12px; border-radius: 999px; background: var(--hb-mist); color: var(--hb-ink); border: 1px solid var(--hb-line); }
.lvstates li::before { content: '✓ '; font-weight: 700; }
.lvstates li.gone::before { content: '! '; }
.lvstates li.now::before { content: '● '; }
.lvstates li.kept::before { content: ''; }
.lvstates li.gone { border-color: #B4232C; }
.lvstates li.kept { background: var(--hb-white); }
/* Each film in a fixed 16 to 9 frame. An upright film stands in it with bars at its sides; it is never stretched. */
.lvfilms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lvfilm { position: relative; margin: 0; background: #12142B; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.lvfilm video { width: 100%; height: 100%; object-fit: contain; display: block; background: #12142B; }
.lvfilm figcaption { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: #1B2129; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; pointer-events: none; }
.lvfilm .lvgone { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; padding: 44px 18px 18px; text-align: center; line-height: 1.5; }
button.lvfull { position: absolute; right: 10px; bottom: 10px; min-height: 32px; padding: 5px 12px; font-size: 12.5px; background: rgba(255,255,255,.92); border-color: transparent; color: #1B2129; }
.lvfilm:fullscreen { border-radius: 0; aspect-ratio: auto; }
.lvbar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lvbar input[type=range] { flex: 1; min-width: 200px; accent-color: #7B2A90; height: 24px; }
.lvbar .lvclock { min-width: 96px; font-variant-numeric: tabular-nums; color: var(--hb-ink); font-size: 13px; }
.lvbar label { margin: 0; font-size: 13px; }
.lvbar select { width: auto !important; padding: 7px 10px; border: 1px solid var(--hb-line); border-radius: 10px; background: var(--hb-white); color: var(--hb-ink); font: inherit; font-size: 13px; }
.lvnote { margin: 10px 0 0; }
.lvacts { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hb-line); flex-wrap: wrap; }
.lvacts .lvbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.lvacts p { margin: 0; color: var(--hb-ink); max-width: 640px; }
.lvnone { padding: 28px 20px; text-align: center; background: var(--hb-mist); border-radius: 14px; color: var(--hb-ink); }
