/* Focus Hour — a dusk palette for an evening ritual, one warm lamp-light accent. */
:root {
  --bg: #1e2532;
  --card: #262e3d;
  --card-raised: #2b3648;
  --well: #1a202b;
  --ink: #eef1f6;
  --muted: #98a3b5;
  --line: #354053;
  --lamp: #f4c56a;
  --lamp-ink: #1e2532;
  --danger: #f29a8b;
  --ok: #8fd3b0;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--lamp); }
.wrap { max-width: 34rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.wrap.wide { max-width: 64rem; }
.wrap.schedule-wrap { max-width: 68rem; }
.masthead h1 { font: 400 2.6rem/1.1 var(--display); margin: 0 0 .3rem; letter-spacing: -.01em; }
.tagline { margin: 0 0 1.5rem; color: var(--muted); max-width: 42rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.card.signin { max-width: 32rem; }
.card.who { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; max-width: 32rem; }
.label { margin: 0 0 .35rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; margin: 0; }
.you-line { margin: 0 0 .5rem; font: 400 1.35rem var(--display); }
form.claim { display: grid; gap: .9rem; }
form.claim label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
form.inline { display: inline; }
input { font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--well); color: var(--ink); }
input:focus, button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
button, .button {
  font: inherit; font-weight: 600; background: var(--lamp); color: var(--lamp-ink);
  border: 0; border-radius: 9px; padding: .8rem 1.2rem; cursor: pointer;
  text-decoration: none; display: inline-block; text-align: center;
}
button:hover, .button:hover { filter: brightness(1.06); }
button[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
.button.small, button.small { padding: .45rem .8rem; font-size: .85rem; }
.button.ghost { background: transparent; color: var(--lamp); border: 1px solid var(--lamp); }
button.link { background: none; border: 0; color: var(--lamp); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; font-weight: 400; }
.flash { border-radius: 9px; padding: .75rem 1rem; margin: 0 0 1rem; border: 1px solid; background: var(--card); max-width: 32rem; }
.flash-error { color: var(--danger); border-color: var(--danger); }
.flash-ok { color: var(--ok); border-color: var(--ok); }

/* Schedule: three days, one row per slot. */
.day-tabs { display: none; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.day h2 { font: 400 1.3rem var(--display); margin: 0 0 .6rem; }
.day h2 small { color: var(--muted); font: .85rem system-ui, sans-serif; margin-left: .4rem; }
.slot {
  display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .35rem .6rem; align-items: center;
  padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: .4rem;
}
.slot.featured { border-color: var(--lamp); box-shadow: inset 3px 0 0 var(--lamp); }
.slot.mine { background: var(--card-raised); }
.slot.now { border-style: dashed; }
.slot-time { font-weight: 600; display: flex; flex-direction: column; gap: .1rem; line-height: 1.2; }
.tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lamp); font-weight: 600; }
.tag.live { color: var(--ok); }
.slot-people { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; min-width: 0; font-size: .85rem; }
.chip { background: var(--well); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; white-space: nowrap; }
.count { color: var(--muted); font-size: .78rem; margin-left: auto; white-space: nowrap; }
.slot-action { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: center; justify-content: flex-end; }
.slot-action:empty { display: none; }
.booked { color: var(--ok); font-weight: 600; font-size: .9rem; }
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 10;
  background: var(--card); border: 1px solid var(--danger); color: var(--danger);
  padding: .7rem 1rem; border-radius: 9px; max-width: 90vw;
}
@media (min-width: 1100px) {
  .slot { grid-template-columns: 5.4rem minmax(0, 1fr) auto; }
  .slot-action { grid-column: auto; }
}
@media (max-width: 760px) {
  .wrap { padding-top: 2rem; }
  .day-tabs { display: flex; gap: .4rem; margin-bottom: .75rem; position: sticky; top: 0; background: var(--bg); padding: .5rem 0; z-index: 5; }
  .day-tab {
    flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 9px;
    padding: .45rem .3rem; font: inherit; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .1rem;
  }
  .day-tab small { color: var(--muted); font-size: .72rem; font-weight: 400; }
  .day-tab.active { border-color: var(--lamp); color: var(--lamp); }
  .days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .days::-webkit-scrollbar { display: none; }
  .day { flex: 0 0 100%; scroll-snap-align: start; }
  .day h2 { display: none; }
  .slot { grid-template-columns: 4.8rem minmax(0, 1fr); }
}

/* Admin */
table.claims { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
table.claims th, table.claims td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.claims th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

/* ===================== Home page: Apple system look ===================== */
html:has(body.home) { background: #F2F2F7; }
@font-face {
  font-family: 'Inter';
  src: url('/public/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
body.home {
  --accent: #007AFF; --accent-tint: rgba(0,122,255,.16); --accent-tint-soft: rgba(0,122,255,.08);
  --red: #FF3B30; --grouped: #F2F2F7; --card: #FFFFFF;
  --label: #000000; --label2: rgba(60,60,67,.6); --label3: rgba(60,60,67,.3);
  --hair: rgba(60,60,67,.29); --hair-soft: rgba(60,60,67,.12);
  --seg-track: rgba(118,118,128,.12);
  --ui: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  background: var(--grouped); color: var(--label);
  font: 17px/1.4 var(--ui);
}
body.home .page { max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }
body.home .masthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
body.home h1 { font-family: var(--ui); font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 4px; }
body.home .sub { margin: 0; color: var(--label2); font-size: 15px; max-width: 40rem; }
body.home .who { font-size: 15px; color: var(--label2); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
body.home .who strong { color: var(--label); font-weight: 600; }
body.home .who .sep { display: none; }
body.home button.link { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--accent); cursor: pointer; text-decoration: none; }
body.home .card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 16px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
body.home .card.signin { width: 100%; max-width: 32rem; margin-left: auto; margin-right: auto; }
body.home .signin-form { display: grid; gap: 12px; }
body.home .field { display: grid; gap: 6px; }
body.home .field label { font-size: 13px; color: var(--label2); }
body.home .field .opt { color: var(--label3); }
body.home input:not([type=file]):not([type=hidden]) { font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); color: var(--label); }
body.home input:focus-visible, body.home .cell:focus-visible, body.home button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.home .field-label { font-size: 13px; color: var(--label2); }
body.home .photo-row { display: flex; align-items: center; gap: 12px; }
body.home .avatar-pick { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--seg-track); color: var(--label3); overflow: hidden; cursor: pointer; display: grid; place-items: center; flex: 0 0 56px; }
body.home .avatar-pick .avatar-ph { display: grid; place-items: center; width: 100%; height: 100%; }
body.home .avatar-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.home .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
body.home input[type=file] { font: 13px var(--ui); color: var(--label2); background: transparent; border: 0; padding: 0; }
body.home input[type=file]::file-selector-button { font: 600 13px var(--ui); color: var(--accent); background: rgba(0,122,255,.12); border: 0; border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
body.home input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
body.home .btn { font: 600 15px var(--ui); background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.2; }
body.home .btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
body.home .hint { margin: 0; font-size: 13px; color: var(--label2); }
body.home .flash { border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 15px; border: 1px solid var(--hair); background: var(--card); color: var(--label); max-width: 32rem; }
body.home .flash-error { color: var(--red); }
body.home .flash-ok { color: var(--accent); }
body.home .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 15px; z-index: 10; max-width: 90vw; }

/* the board */
body.home .board { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
body.home .boardwrap { position: relative; }
body.home .grid { display: grid; }
body.home .corner { border-bottom: 1px solid var(--hair); }
body.home .dh { padding: 14px 16px; border-bottom: 1px solid var(--hair); border-left: 1px solid var(--hair-soft); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.home .dh .dtag { font-size: 17px; font-weight: 600; }
body.home .dh .ddate { font-size: 13px; color: var(--label2); }
body.home .daynum { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; vertical-align: -3px; }
body.home .row { display: contents; }
body.home .tcell { padding: 12px; border-bottom: 1px solid var(--hair-soft); display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
body.home .tcell .tl { font-size: 13px; color: var(--label2); font-variant-numeric: tabular-nums; }
body.home .tcell.minor .tl { font-size: 11px; color: var(--label3); }
body.home .tcell.feat { background: var(--accent-tint-soft); }
body.home .feattag { font-size: 11px; font-weight: 600; color: var(--accent); }
body.home .cell { min-height: 56px; padding: 8px; border-bottom: 1px solid var(--hair-soft); border-left: 1px solid var(--hair-soft); display: flex; align-items: center; gap: 8px; position: relative; min-width: 0; }
body.home .cell.none { background: rgba(60,60,67,.03); }
body.home .row.feat .cell { background: var(--accent-tint-soft); }
body.home .cell.past { background: rgba(60,60,67,.03); }
body.home .cell.past .event { opacity: .55; }
body.home .cell.bookable, body.home .cell.anon { cursor: pointer; }
body.home .cell.bookable:hover { background: rgba(0,122,255,.04); }
body.home .ghost { display: none; font: 600 13px var(--ui); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; opacity: .55; margin-left: auto; white-space: nowrap; }
@media (hover: hover) { body.home .cell.bookable:hover .ghost, body.home .cell.bookable:focus-visible .ghost { display: inline-block; } }
body.home .cell.selected { background: rgba(0,122,255,.06); }
body.home .cell.selected .ghost { display: none; }
body.home .booknow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-left: auto; }
body.home .booknow .book { padding: 8px 20px; }
body.home .booknow .clear { font-size: 13px; color: var(--label2); }
body.home .event { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; background: var(--accent-tint); border-radius: 8px; padding: 7px 10px 7px 9px; border-left: 3px solid var(--accent); }
body.home .event.mine { border-left-width: 4px; }
body.home .people { display: flex; align-items: center; flex-shrink: 0; }
body.home .chip { width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; background: var(--card); border: 1px solid var(--hair); color: var(--label2); display: grid; place-items: center; font-size: 12px; font-weight: 600; overflow: hidden; flex-shrink: 0; }
body.home .chip:first-child { margin-left: 0; }
body.home .chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.home .chip.me { background: var(--accent); color: #fff; border-color: var(--accent); }
body.home .more { margin-left: 6px; font-size: 13px; color: var(--label2); }
body.home .count { margin-left: auto; font-size: 12px; color: var(--label2); font-variant-numeric: tabular-nums; }
body.home .event .btn.small { margin-left: 8px; }
body.home .event .cancel { font-size: 13px; color: var(--label2); margin-left: 8px; }
body.home .cell .hint { margin-left: auto; font-size: 12px; color: var(--label3); }
body.home .names { display: none; }
body.home .now { position: absolute; left: 72px; right: 0; height: 1px; background: var(--red); z-index: 3; pointer-events: none; }
body.home .now .dot { position: absolute; left: 0; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: -4px; }
body.home .now .lbl { display: none; }
body.home .fold { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair-soft); background: var(--card); cursor: pointer; font-size: 13px; color: var(--label2); min-height: 40px; }
body.home .fold:hover { background: rgba(60,60,67,.03); }
body.home .fold .fold-label { font-weight: 600; color: var(--label); }
body.home .fold .fold-count { margin-left: auto; color: var(--label2); font-variant-numeric: tabular-nums; }
body.home .fold .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--label3); border-bottom: 1.5px solid var(--label3); transform: rotate(45deg); margin-left: 6px; transition: transform .15s; }
body.home .fold.open .chev { transform: rotate(-135deg); }
body.home .fold:not(:has(.fold-count)) .chev { margin-left: auto; }
body.home .segmented { display: none; }

@media (max-width: 760px) {
  body.home .page { padding: 24px 20px 48px; }
  body.home .masthead { display: block; margin-bottom: 16px; }
  body.home h1 { font-size: 28px; letter-spacing: -.015em; }
  body.home .sub { margin-top: 2px; }
  body.home .who { flex-direction: row; justify-content: flex-end; align-items: baseline; gap: 6px; font-size: 13px; margin-top: 6px; }
  body.home .who .sep { display: inline; color: var(--label3); }
  body.home .who button.link { font-size: 13px; }
  body.home .segmented { display: flex; gap: 2px; background: var(--seg-track); border-radius: 9px; padding: 2px; margin-bottom: 16px; position: sticky; top: 8px; z-index: 5; }
  body.home .seg { flex: 1; border: 0; background: transparent; font: 600 14px var(--ui); color: var(--label); padding: 7px 4px; border-radius: 7px; cursor: pointer; }
  body.home .seg.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
  body.home .board { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  body.home .panels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; gap: 20px; margin: 0 -20px; padding: 0 20px; }
  body.home .panels::-webkit-scrollbar { display: none; }
  body.home .panel { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
  body.home .dayhead-m { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
  body.home .dayhead-m b { font-family: var(--ui); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
  body.home .dayhead-m span { font-size: 13px; color: var(--label2); }
  body.home .plist { position: relative; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  body.home .prow { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 12px; align-items: center; padding: 0 12px 0 14px; border-bottom: 1px solid var(--hair-soft); min-height: 56px; }
  body.home .prow:last-of-type { border-bottom: 0; }
  body.home .prow.fold { display: flex; padding: 10px 14px; }
  body.home .prow.feat { background: var(--accent-tint-soft); }
  body.home .ptime { font-size: 13px; color: var(--label2); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 2px; }
  body.home .ptime.minor .tl { font-size: 11px; color: var(--label3); }
  body.home .prow .cell { border: 0; padding: 8px 0; min-height: 56px; flex-wrap: wrap; background: transparent; }
  body.home .names { display: block; width: 100%; font-size: 12px; color: var(--label2); margin-top: 4px; }
  body.home .now { left: 76px; }
}

/* ===================== Room page: same visual language ===================== */
body.home.room-page { background: var(--grouped); }
body.home.room-page .room { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
body.home.room-page .timer-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 16px; padding: 12px 24px 0; background: var(--card); border-bottom: 1px solid var(--hair); }
body.home.room-page .back { color: var(--accent); text-decoration: none; font-size: 15px; }
body.home.room-page .timer { text-align: center; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
body.home.room-page .timer-label { font-size: 13px; color: var(--label2); }
body.home.room-page .timer strong { font: 600 28px/1 var(--ui); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--label); }
body.home.room-page .room-label { text-align: right; font-size: 13px; color: var(--label2); font-variant-numeric: tabular-nums; }
body.home.room-page .progress { grid-column: 1 / -1; height: 3px; margin-top: 10px; background: var(--hair-soft); border-radius: 2px; overflow: hidden; }
body.home.room-page .progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }
body.home.room-page .timer-bar.done .progress-fill { background: #34C759; }
body.home.room-page .notice { margin: 12px 24px 0; padding: 10px 12px 10px 11px; border-radius: 8px; font-size: 15px; background: var(--accent-tint); color: var(--accent); border-left: 3px solid var(--accent); }
body.home.room-page .notice.alone { background: var(--seg-track); color: var(--label); border-left-color: var(--label3); }
body.home.room-page .notice.alone.closed { color: var(--label2); }
body.home.room-page .note { margin: 8px 24px 12px; font-size: 13px; color: var(--label2); }
body.home.room-page .jitsi { flex: 1; min-height: 0; border-top: 1px solid var(--hair); background: var(--grouped); }
body.home.room-page .jitsi iframe { display: block; height: 100% !important; }
body.home.room-page .card.external { margin: 24px auto; max-width: 32rem; }
body.home.room-page .card-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
@media (max-width: 600px) {
  body.home.room-page .timer-bar { grid-template-columns: auto 1fr; padding: 10px 16px 0; }
  body.home.room-page .timer { justify-content: flex-end; }
  body.home.room-page .timer strong { font-size: 22px; }
  body.home.room-page .room-label { grid-column: 1 / -1; text-align: left; margin-top: 4px; }
  body.home.room-page .notice, body.home.room-page .note { margin-left: 16px; margin-right: 16px; }
}

/* Room page: waiting and complete cards */
body.home [hidden] { display: none !important; }
body.home.room-page .card.wait, body.home.room-page .card.done { margin: 40px auto; max-width: 32rem; width: calc(100% - 48px); text-align: center; padding: 20px 24px 24px; }
body.home.room-page .back-top { display: block; text-align: left; margin-bottom: 8px; font-size: 15px; }
body.home.room-page .wait-label { margin: 8px 0 0; font-size: 13px; color: var(--label2); }
body.home.room-page .wait-timer { margin: 2px 0 4px; font: 600 44px/1.1 var(--ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--label); }
body.home.room-page .wait-room { margin: 0 0 18px; font-size: 15px; color: var(--label2); }
body.home.room-page .roster { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; display: grid; gap: 10px; }
body.home.room-page .person { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.home.room-page .person.empty { font-size: 15px; color: var(--label2); }
body.home.room-page .person .chip { width: 36px; height: 36px; margin: 0; font-size: 14px; }
body.home.room-page .ptext { min-width: 0; }
body.home.room-page .pname { display: block; font-size: 15px; font-weight: 600; color: var(--label); }
body.home.room-page .pname .you { font-weight: 400; color: var(--label2); }
body.home.room-page .pwork { display: block; font-size: 13px; color: var(--label2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.home.room-page .working { display: grid; gap: 6px; text-align: left; margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--hair-soft); }
body.home.room-page .working label { font-size: 13px; color: var(--label2); }
body.home.room-page .working .row { display: flex; gap: 8px; }
body.home.room-page .working input { flex: 1; min-width: 0; }
body.home.room-page .working .saved { font-size: 12px; color: var(--label3); min-height: 1.2em; }
body.home.room-page .guidance { margin: 0 0 16px; font-size: 15px; color: var(--label); }
body.home.room-page .rules { text-align: left; border-top: 1px solid var(--hair-soft); padding-top: 14px; }
body.home.room-page .rules-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--label2); }
body.home.room-page .rules ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--label2); display: grid; gap: 4px; }
body.home.room-page .done .card-title { font-size: 22px; margin-bottom: 4px; }
body.home.room-page .done .hint { margin-bottom: 16px; }
body.home.room-page .done .roster { margin-bottom: 20px; }
body.home.room-page .card.external { margin: 24px auto; }
@media (max-width: 600px) {
  body.home.room-page .card.wait, body.home.room-page .card.done { margin: 20px auto; width: calc(100% - 40px); padding: 16px 16px 20px; }
  body.home.room-page .wait-timer { font-size: 38px; }
}

/* ===================== Dashboard: three panels on a laptop ===================== */
body.home .page.dash { max-width: 1240px; }
body.home .dash-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
body.home .panel { min-width: 0; }
body.home .panel-card { padding: 16px; margin-bottom: 16px; }
body.home .panel-title { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
body.home a { color: var(--accent); }
body.home a.link { text-decoration: none; }
body.home .btn.block { display: block; width: 100%; text-align: center; }
body.home .btn.ghost { background: rgba(0,122,255,.12); color: var(--accent); }
body.home .sessions { margin-top: 12px; display: grid; gap: 8px; min-width: 0; }
body.home .session-card { border: 1px solid var(--hair-soft); border-radius: 10px; padding: 10px 12px; min-width: 0; overflow: hidden; }
body.home .sc-when { font-size: 15px; font-weight: 600; }
body.home .sc-meta { font-size: 13px; color: var(--label2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.home .sc-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
body.home .link.small { font-size: 13px; }
body.home .profile { display: flex; align-items: center; gap: 12px; }
body.home .profile .chip { width: 44px; height: 44px; margin: 0; font-size: 17px; flex-shrink: 0; }
body.home .profile b { display: block; font-size: 17px; }
body.home .profile .hint { display: block; }
body.home #av-summary { margin-top: 8px; }
body.home .fc-when { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
body.home .fc-people { display: flex; align-items: center; min-height: 28px; }
body.home .fc-people .chip:first-child { margin-left: 0; }
body.home .featured-card .hint { margin: 6px 0 10px; }
body.home .panel.me { display: none; }
@media (max-width: 1099px) and (min-width: 761px) {
  body.home .dash-grid { grid-template-columns: 1fr 1fr; }
  body.home .board { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 760px) {
  body.home .dash-grid { display: block; }
  body.home .panel.left, body.home .panel.right { display: none; }
  body.home .panel.me { display: block; }
}

/* the audio/video test sheet */
body.home .sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; }
body.home .sheet { background: var(--card); border-radius: 12px; border: 1px solid var(--hair); width: 100%; max-width: 26rem; padding: 16px; display: grid; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
body.home .sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 600; }
body.home .av-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; object-fit: cover; }
body.home .meter { height: 6px; border-radius: 3px; background: var(--seg-track); overflow: hidden; }
body.home .meter-fill { height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }
body.home .sheet select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); color: var(--label); }
body.home .sheet-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 600px) { body.home .sheet-backdrop { align-items: flex-end; padding: 0; } body.home .sheet { max-width: none; border-radius: 12px 12px 0 0; } }
