/* The simple organizer pages: new-event wizard, Done screen, Event control, full-screen QR, Photos to check.
   Only theme tokens (static/style.css :root, partysnap/theme.py), so every brand and reseller look applies. */

.org-flow .org-q { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; margin: 0; padding: 0; }
.org-flow .step-label { white-space: nowrap; }
@media (max-width: 420px) { .org-flow .step-dots li:not(.is-on) .step-label { display: none; } }

/* ---- step 1: the six tiles */
.org-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .org-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.org-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px;
  padding: 14px 8px; border: var(--bw) solid var(--ink); border-radius: calc(16px * var(--radius-k)); background: var(--paper);
  color: var(--ink); font: inherit; font-weight: 800; font-size: 1.05rem; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: calc(var(--shadow-x) * 4 / 7) calc(var(--shadow-x) * 4 / 7) 0 var(--shadow-c); transition: transform .08s, box-shadow .08s;
}
.org-tile b { font-size: 2.4rem; line-height: 1; font-weight: 400; }
.org-tile:active { transform: translate(2px, 2px); box-shadow: calc(var(--shadow-x) * 2 / 7) calc(var(--shadow-x) * 2 / 7) 0 var(--shadow-c); }
.org-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.org-tile.is-on, .org-more[open] { background: var(--ink); color: var(--on-ink); }
.org-more { padding: 0; }
.org-more > summary { list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 108px; cursor: pointer; }
.org-more > summary::-webkit-details-marker { display: none; }
.org-more-list { display: flex; flex-direction: column; gap: 8px; }
.org-more-list[hidden], .org-save-msg[hidden] { display: none; }
.org-chip {
  font: inherit; font-weight: 700; padding: 10px 16px; border: var(--bw) solid var(--ink); border-radius: calc(28px * var(--radius-k));
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.org-chip.is-on { background: var(--ink); color: var(--on-ink); }
.org-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.org-recent-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---- step 3: guests and look */
.org-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.org-options.three { grid-template-columns: 1fr; }
@media (min-width: 560px) { .org-options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .org-option > span { padding: 10px; } .org-option small { font-size: .8rem; } }
.org-option { position: relative; }
.org-option input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 12px; top: 12px; }
.org-option > span {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; height: 100%;
  border: var(--bw) solid var(--ink); border-radius: calc(12px * var(--radius-k)); background: var(--paper); cursor: pointer;
}
.org-option b { font-size: 1.05rem; }
.org-option small { color: var(--ink-2); }
.org-option .org-price { font-style: normal; font-weight: 800; margin-top: 4px; }
.org-option input:checked + span { background: var(--ink); color: var(--on-ink); box-shadow: calc(var(--shadow-x) * 4 / 7) calc(var(--shadow-x) * 4 / 7) 0 var(--red); }
.org-option input:checked + span small { color: var(--on-ink); }
.org-option input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.org-option.is-locked > span { opacity: .55; cursor: not-allowed; }
.org-setup > summary { cursor: pointer; font-weight: 700; }
.org-setup .ready-list { margin-top: 10px; }

/* ---- Done screen */
.org-qr-box { align-items: center; text-align: center; }
.org-qr { width: min(320px, 78vw); height: auto; aspect-ratio: 1; background: #fff; border: var(--bw) solid var(--ink); border-radius: calc(14px * var(--radius-k)); padding: 8px; }
.org-qr-say { font-weight: 700; font-size: 1.05rem; }
.org-done-btns { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; max-width: 460px; }
@media (min-width: 560px) { .org-done-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; } .org-done-btns .btn-xl { grid-column: 1 / -1; } .org-done-btns .btn:not(.btn-xl) { padding-inline: 10px; font-size: .95rem; } }
.org-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: start; width: 100%; max-width: 460px; }
.org-facts li { padding: 10px 12px; background: var(--paper); border: 2px solid var(--line); border-radius: calc(10px * var(--radius-k)); }
.org-code { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .18em; }
.org-tv-how summary { cursor: pointer; font-weight: 700; margin-top: 8px; }
.org-fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.org-fold > summary::-webkit-details-marker { display: none; }
.org-fold > summary h2 { margin: 0; }
.org-fold > summary::after { content: "▾"; margin-inline-start: auto; font-weight: 700; }
.org-fold[open] > summary::after { content: "▴"; }
.org-fold[open] > summary { margin-bottom: 10px; }
.org-fold-status { color: var(--ink-2); }
.org-tv-how ul { margin: 8px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.org-tv-address { font-family: var(--mono); overflow-wrap: anywhere; }
.org-next { align-items: flex-start; }
.org-save-form { display: flex; flex-direction: column; gap: 10px; }
.org-check { display: flex; gap: 8px; align-items: center; }
.org-save-msg { font-weight: 700; }
.org-pay-form { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Event control */
.org-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* Camera · helpers · settings, under the title (templates/host_control.html) */
.org-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.org-switch .btn-ink { flex: 1 1 100%; max-width: 360px; }
.org-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
@media (min-width: 760px) { .org-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.org-big-form { margin: 0; display: contents; }
.org-big-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-height: 118px; width: 100%;
  padding: 16px; border: var(--bw) solid var(--ink); border-radius: calc(16px * var(--radius-k)); background: var(--paper); color: var(--ink);
  font: inherit; text-align: start; text-decoration: none; cursor: pointer;
  box-shadow: calc(var(--shadow-x) * 4 / 7) calc(var(--shadow-x) * 4 / 7) 0 var(--shadow-c); transition: transform .08s, box-shadow .08s;
}
.org-big-btn b { font-family: var(--display); font-weight: 400; font-size: 1.12rem; line-height: 1.15; }
.org-big-btn small { color: var(--ink-2); font-size: .9rem; line-height: 1.3; }
.org-big-btn:active { transform: translate(2px, 2px); box-shadow: calc(var(--shadow-x) * 2 / 7) calc(var(--shadow-x) * 2 / 7) 0 var(--shadow-c); }
.org-big-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.org-big-btn.is-main { background: var(--ink); color: var(--on-ink); }
.org-big-btn.is-main small { color: var(--on-ink); }
.org-big-btn.is-alert { border-color: var(--red); box-shadow: calc(var(--shadow-x) * 4 / 7) calc(var(--shadow-x) * 4 / 7) 0 var(--red); }
@media (max-width: 380px) { .org-big-btn { min-height: 104px; padding: 12px; } .org-big-btn b { font-size: 1rem; } }
.org-live { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.org-live > div { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: calc(28px * var(--radius-k)); }
.org-live b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.org-cards { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 860px) { .org-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.org-card h2 { font-size: 1.2rem; }
.org-card-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.org-card-btns form { margin: 0; }
/* "Ready for the party?" (Event control, improvement plan 19): a ring per step; tap it to tick (44px target) */
.org-ready-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.org-ready-steps > li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; row-gap: 4px; align-items: start; }
.org-ready-steps > li > * { grid-column: 2; }
.org-ready-steps > li > b { align-self: center; min-height: 44px; display: flex; align-items: center; }
.org-ready-steps > li > .org-ready-tick {
  grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; padding: 0; margin: 0;
  background: none; border: 0; display: grid; place-items: center; color: var(--ink);
}
button.org-ready-tick { cursor: pointer; }
.org-ready-tick::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%; border: var(--bw) solid var(--ink); box-sizing: border-box;
  display: grid; place-items: center; font-weight: 700; line-height: 1;
}
.is-done > .org-ready-tick::before { content: "✓"; background: var(--ink); color: var(--on-ink); }
.org-ready-steps > li.is-done > .hint, .org-ready-steps > li.is-done > .org-card-btns { display: none; }  /* done: just the tick and the title */
.org-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.org-inline .field { flex: 1 1 200px; }
.org-helpers, .org-offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.org-helpers li, .org-offers li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 2px dashed var(--line); }
.org-helper-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.org-helper-btns form { margin: 0; }
.org-passes { display: flex; flex-direction: column; gap: 8px; }
.org-pass { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 2px dashed var(--line); margin: 0; }
.org-pass span { grid-column: 1; color: var(--ink-2); font-size: 1rem; }
.org-pass small { font-size: 1rem; }
.org-pass .btn { grid-row: 1 / span 2; grid-column: 2; }
.org-advanced-link {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; margin: 4px 0 0; border: var(--bw) dashed var(--ink);
  border-radius: calc(14px * var(--radius-k)); color: var(--ink); text-decoration: none; font-weight: 800; background: color-mix(in srgb, var(--paper) 60%, transparent);
}
.org-advanced-link small { font-weight: 400; color: var(--ink-2); }

/* ---- full-screen QR */
body.org-qr-page { padding: 0; background: #fff; }
.org-qr-full { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; text-align: center; color: var(--ink); position: relative; }
.org-qr-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: calc(12px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; font-size: 1.2rem; background: #fff; }
.org-qr-name { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 6vw, 2.6rem); line-height: 1.05; margin: 0 48px; overflow-wrap: anywhere; }
.org-qr-full .org-qr-say { margin: 0; }
.org-qr-big { width: min(82vw, 62vh, 520px); height: auto; aspect-ratio: 1; }
.org-qr-code-label { margin: 6px 0 0; font-weight: 700; }
.org-qr-code { margin: 0; font-family: var(--mono); font-size: clamp(3rem, 16vw, 5.5rem); line-height: 1; letter-spacing: .2em; }
.org-qr-url { margin: 0; color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }

/* ---- compact tiles inside /now and the package-code page (_occasion_chips.html) */
.org-mini-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.org-mini { position: relative; }
.org-mini input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 50%; bottom: 0; }
.org-mini span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 4px;
  border: var(--bw) solid var(--ink); border-radius: calc(12px * var(--radius-k)); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: .85rem; line-height: 1.15; text-align: center; cursor: pointer;
}
.org-mini b { font-size: 1.6rem; font-weight: 400; line-height: 1; }
.org-mini input:checked + span { background: var(--ink); color: var(--on-ink); }
.org-mini input:checked + span::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 8px; font-size: 1rem; font-weight: 800; }  /* the picked one: a tick, not only a colour */
.org-mini-tiles.org-mini-need .org-mini span { border-color: var(--danger); }
/* Done screen of a /now party: the phone card's live friends count and Share button, under the QR */
.org-wait { display: grid; justify-items: center; gap: 8px; margin: 14px 0 4px; text-align: center; }
.org-wait-friends { margin: 0; font-weight: 800; font-size: 1.15rem; }
.org-mini input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

/* Tonight box (partysnap/tonight.py): the numbers as tiles like .org-live, the turned-away reasons as a plain list. */
.tn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 12px; }
.tn-tiles > div { padding: 8px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: calc(28px * var(--radius-k)); }
.tn-tiles b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.tn-tiles span { display: block; }
.tn-tiles > div.is-look { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.tn-sub { margin: 14px 0 6px; font-size: 1rem; }
.tn-why { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.tn-why li { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--line, rgba(0, 0, 0, .12)); }
.tn-why b { min-width: 2.2em; font-family: var(--display); font-weight: 400; font-size: 1.3rem; text-align: end; }
.tn-none { margin: 0 0 8px; }
.org-fold-status.is-look { background: var(--red-lo); color: var(--paper); font-weight: 700; padding: 2px 10px; border-radius: 999px; }  /* like .badge.warn, one shade deeper: white on --red was 4.46:1 (R9 measured), this is above 7:1 */

/* "Hidden from the TV" card on Event control and the TV button in Photos to check (Cam improvement R9; templates/_host_tvhidden.html,
   static/features/accountability/tvhidden.js). Finger-size buttons, 16 px words, theme colours only. */
.tvh-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.tvh-list[hidden], .tvh-none[hidden], .tvh-say[hidden] { display: none; }
.tvh-list li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb by" "thumb btn"; gap: 6px 12px; align-items: center;
  padding: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: calc(12px * var(--radius-k));
}
.tvh-thumb {
  grid-area: thumb; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; overflow: hidden;
  border: 2px solid var(--ink); border-radius: calc(8px * var(--radius-k)); background: var(--paper); font-size: 1.6rem; text-decoration: none;
}
.tvh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tvh-by { grid-area: by; font-size: 1rem; overflow-wrap: anywhere; }
.tvh-list .tvh-btn { grid-area: btn; justify-self: start; }
.tvh-btn { min-height: 44px; font-size: 1rem; }
.tvh-none, .tvh-say { margin: 0 0 8px; font-size: 1rem; }

/* Phone-size floor for the new host screens (Cam improvement R9, measured by tools/visual/host_phone_measure.mjs). */
.report-list .btn-red { background: var(--red-lo); color: var(--paper); }   /* Remove: white on --red was 4.46:1, needs 4.5 */
.report-info .badge { font-size: 1rem; }                                      /* "Still visible" / "Hidden" were 12.5 px */
body.org-qr-page .site-footer { font-size: 1rem; }                            /* Terms / Privacy / Help under the full-screen codes: 16 px words, 44 px taps */
body.org-qr-page .site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
/* Event control and Photos to check, the dark-room floor (round 11): the footer, the red count badge, one inline link, the help chat words */
body.org-host .site-footer { font-size: 1rem; color: var(--ink); }                      /* the footer words were 13.6 px in --ink-2 (3.4 to 3.7:1 on the light page) */
body.org-host .site-footer p, body.org-host .site-footer .powered-by { font-size: 1rem; }
body.org-host .site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }   /* Terms / Privacy / Help were 20 px tall */
.org-big-btn .badge.warn { background: var(--red-lo); color: var(--paper); }              /* the count on Photos to check / TV: white on --red was 4.46:1, needs 4.5 */
.org-control #after a.plain-link { display: inline-flex; align-items: center; min-height: 44px; }   /* "3 ways to keep your own copy" was 43 px */
body.org-host .hc-btn, body.org-host .hc-btn span { font-size: 1rem; }                  /* "Need help? Chat with us" was 14.7 px */
/* Share the album (round 11): one big button, then a plain line that says what happened */
.org-share { margin: 14px 0; }
.org-share-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; font-size: 1.1rem; }
.org-share-status { min-height: 1.5em; margin: 6px 0 0; font-size: 1rem; font-weight: 700; }
.org-share .hint { margin: 2px 0 0; }
/* The party date on Event control: a plain row once it's set, the first thing to do while it's blank. */
.pd-card { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; padding: 12px 14px; border: 2px solid var(--edge); border-radius: calc(14px * var(--radius-k)); }
.pd-blank { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, transparent); }
.pd-label { font-weight: 800; font-size: 1.0625rem; }
.pd-blank .pd-label { font-size: 1.25rem; }
.pd-text { margin: 0; font-size: 1rem; line-height: 1.35; }
.pd-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.pd-input { flex: 1 1 150px; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 8px 12px; font-size: 1rem; border: 2px solid var(--edge); border-radius: calc(12px * var(--radius-k)); }
.pd-save { flex: 1 1 120px; min-height: 48px; }
/* The TV card: "TV last seen" and "Test the TV before guests arrive" (host_control.html, TV research 7 Nov). */
.org-tv-seen { margin: 8px 0 0; font-size: 1rem; }
.org-tv-seen.warn { font-weight: 700; color: var(--red); }
.org-tv-test { margin-top: 8px; }
.org-tv-test summary { cursor: pointer; font-weight: 700; min-height: var(--tap, 44px); display: flex; align-items: center; }
.org-tv-test-steps { margin: 6px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 1rem; }
.org-tv-test-steps .btn { margin-inline-start: 6px; min-height: var(--tap, 44px); }
.org-tv-test-now { margin: 8px 0 0; font-size: 1rem; font-weight: 700; }

/* Host page in three stages by time (Before / On the night / After) */
.org-stage-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.org-stage-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--bw) solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; }
.org-stage-chip[aria-current] { background: var(--ink); color: var(--on-ink); }
.org-stage { margin: 22px 0 8px; font-size: var(--fs-h2); scroll-margin-top: 12px; }
#stage-after { scroll-margin-top: 12px; }
.org-kit-say { font-weight: 700; }

/* Helper form: photo check is off, so a screen moderator would have nothing to do */
.org-mod-off { display: grid; gap: 8px; flex-basis: 100%; margin-bottom: 12px; }
.org-mod-off[hidden] { display: none; }
.org-mod-off .hint { margin: 0; }
/* A saved-form message stays in view when the page lands on a card */
.flashes.org-flash-float { position: sticky; top: 8px; }
/* The QR page: keep the code, or copy the guest link */
.org-qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; }
.org-qr-actions .btn { min-height: var(--tap); display: inline-flex; align-items: center; gap: 6px; }
.org-tv-short b { white-space: nowrap; }
/* Accessibility pass, 9 Nov: words straight on the amber page in full ink; the pay rows and big buttons stay inside the phone under big text. */
.org-two-checks, .org-album-end { color: var(--ink); }
.org-tv-seen.warn { background: color-mix(in srgb, var(--red) 97%, var(--ink)); }
.org-qr-url { font-size: 1rem; color: var(--ink); }
body.org-qr-page .site-footer a { min-width: 44px; justify-content: center; }
.org-pass { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
.org-pass .btn { max-width: 100%; }
.org-big-btn b { min-width: 0; overflow-wrap: anywhere; }
