/* Host dashboard (Polaroid-Host) and the printable QR kit (row 31). */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; max-width: 1080px; margin: 0 auto; }
.pill { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.pill.ended { color: var(--faint); }
.pill.scheduled { color: var(--ink); }
.ev-title { font-family: var(--hand); font-weight: 700; font-size: 44px; line-height: 0.95; }
.counters { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.counters b { font-size: 22px; }
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.event-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.event-card:nth-child(odd) { transform: rotate(-0.8deg); }
.event-card:nth-child(even) { transform: rotate(0.8deg); }
.event-card .hand { font-size: 30px; font-weight: 700; line-height: 1; }
.event-card:hover { color: var(--ink); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tabs button { background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 12px; font: 800 15px var(--text); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.board-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.shot-card { padding: 7px 7px 10px; display: flex; flex-direction: column; gap: 6px; }
.shot-card img, .shot-card .ph { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--photo); }
.shot-card.is-hidden img { opacity: 0.3; filter: grayscale(1); }
.shot-card .hand { font-size: 18px; line-height: 1; }
/* v1: video clips, hearts, analytics (row 36), recovery code (v1 contract §1). */
.shot-card video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #000; }
.shot-card.is-hidden video { opacity: 0.3; }
.hearts-line { color: #B3122A; font-weight: 800; }
.sec-title { font-size: 30px; margin: 0; }
.analytics section { gap: 10px; }
.analytics-top { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.analytics-top > .stack { max-width: 280px; }
.summary-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; width: min(100%, 420px); }
.summary-card .sc-name { font-size: 40px; font-weight: 700; line-height: 1; }
.sc-stats { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0; }
.sc-stats div { display: flex; flex-direction: column; }
.sc-stats b { font-size: 34px; font-weight: 800; line-height: 1; }
.sc-stats div:nth-child(2) b { color: var(--accent); }
.sc-stats span { font-size: 13px; color: var(--muted); }
.chart-box { padding: 12px; overflow-x: auto; }
.timeline { display: block; width: 100%; min-width: 320px; height: auto; }
.timeline .bar { fill: var(--ink); }
.timeline .bar.busiest { fill: var(--accent); }
.timeline .hit { fill: transparent; }
.timeline .hit:hover { fill: rgba(194, 65, 12, 0.08); }
.timeline .grid { stroke: var(--line); stroke-width: 1; }
.timeline .axis { stroke: var(--faint); stroke-width: 1; }
.timeline .tick { font: 600 11px var(--text); fill: var(--muted); }
.recovery-card { max-width: 520px; }
.recovery-code {
  font: 800 26px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.08em; text-align: center;
  padding: 14px 10px; border: 2px dashed var(--ink); background: var(--ground); user-select: all; -webkit-user-select: all; word-break: break-all;
}
.flag { color: var(--danger); font-weight: 800; font-size: 12px; }
table.list { width: 100%; border-collapse: collapse; background: var(--print); box-shadow: var(--shadow-small); font-size: 15px; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
fieldset { border: none; margin: 0; padding: 14px 16px; background: var(--print); box-shadow: var(--shadow-small); display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.qr-box { width: min(320px, 80vw); margin: 0 auto; }
.qr-box svg { display: block; width: 100%; height: auto; }
.linkline { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; background: var(--ground); padding: 8px 10px; }
.modal { position: fixed; inset: 0; background: rgba(43, 43, 43, 0.6); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; }
.signin { max-width: 420px; margin: 24px auto; }

/* ---------- print kit (row 31) ---------- */
.kit-toolbar { margin-bottom: 18px; }
.sheets { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.sheet { background: #fff; box-shadow: var(--shadow); color: var(--ink); overflow: hidden; position: relative; }
.sheet.a4 { width: 210mm; height: 297mm; }
.sheet.letter { width: 215.9mm; height: 279.4mm; }
.poster { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6mm; padding: 16mm; }
.poster .p-name { font-family: var(--hand); font-weight: 700; font-size: 24mm; line-height: 0.95; overflow-wrap: anywhere; }
.poster .p-scan { font-size: 7mm; font-weight: 800; }
.poster .p-qr { width: 110mm; padding: 6mm 6mm 10mm; background: #fff; box-shadow: 0 2mm 6mm rgba(0, 0, 0, 0.15); transform: rotate(-1.5deg); }
.poster .p-qr svg { display: block; width: 100%; height: auto; }
.poster .p-when { font-size: 6mm; color: var(--muted); }
.poster .p-motto { font-family: var(--hand); font-size: 14mm; color: var(--accent); }
.poster .p-brand { font-weight: 800; font-size: 6mm; letter-spacing: -0.2mm; }
.cards { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 100%; }
.tcard { border: 0.3mm dashed #B9B4AC; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3mm; padding: 8mm; }
.tcard .t-name { font-family: var(--hand); font-weight: 700; font-size: 11mm; line-height: 0.95; }
.tcard .t-qr { width: 60mm; }
.tcard .t-qr svg { display: block; width: 100%; height: auto; }
.tcard .t-scan { font-size: 4mm; font-weight: 800; }
.tcard .t-small { font-size: 3.2mm; color: var(--muted); }
.tcard .t-motto { font-family: var(--hand); font-size: 7mm; color: var(--accent); }

@media print {
  body { background: #fff; }
  .no-print, .topbar, footer.credit, .kit-toolbar { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .sheets { gap: 0; display: block; }
  .sheet { box-shadow: none; page-break-after: always; break-after: page; margin: 0; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  .poster .p-qr { box-shadow: none; border: 0.3mm solid #ddd; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
