/* Creation flow */
.setup-page .page { max-width: 760px; padding-top: 46px; }
.wizard { position: relative; overflow: hidden; }
.wizard::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 145px;
  height: 9px;
  border-radius: 0 24px 0 10px;
  background: var(--red);
  content: "";
}
.wizard h1 { max-width: 13ch; margin: 0; font-size: clamp(2.35rem, 6vw, 4.25rem); letter-spacing: -.06em; line-height: .98; }
.wizard > .lead { max-width: 550px; margin: 16px 0 0; }
.progress { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 31px 0 34px; }
.progress i { height: 6px; border-radius: 999px; background: #ebe4e1; }
.progress i.active { background: var(--red-action); }
.wizard [data-step] { animation: enter .2s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.field-help { margin: 3px 0 17px; color: var(--muted); font-size: .9rem; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choices button {
  min-height: 86px;
  border: 1.5px solid var(--line-strong);
  border-radius: 15px;
  padding: 13px 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: 900 1.25rem/1 var(--rounded);
}
.choices button span { display: block; margin-top: 9px; color: var(--muted); font: 700 .73rem/1.2 var(--body); }
.choices button:hover { border-color: var(--red); background: var(--red-soft); }
.choices button.selected { border-color: var(--red-action); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-action); color: var(--red-deep); }
.setup-options { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.setup-options > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 17px 0; color: var(--ink); cursor: pointer; font-weight: 850; }
.setup-options > summary small { color: var(--muted); font-weight: 650; }
.setup-options > div { padding: 2px 0 19px; }
.setup-options fieldset + .option { margin-top: 22px; }
.option { display: block; margin: 10px 0; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: #fff; }
.option input[type="radio"], .option input[type="checkbox"] { width: auto; min-height: 0; margin: 0 8px 0 0; accent-color: var(--red-action); }
.option select { width: auto; min-height: 39px; margin: 0 0 0 8px; }
.option small { display: block; margin: 4px 0 0 26px; color: var(--muted); font-weight: 600; }
.creation-note { display: grid; gap: 3px; margin-top: 24px; border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 14px 17px; background: var(--red-soft); }
.creation-note span { color: var(--muted); font-size: .87rem; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 29px; }
.wizard-actions .button { margin-left: auto; min-width: 130px; }

/* Join lobby */
.join-page .page { max-width: 650px; padding-top: 43px; }
.join { min-height: 390px; }
.join::before { display: block; width: 93px; height: 58px; margin: -4px 0 21px; background: url("/bankooh-mark.svg") center / contain no-repeat; content: ""; }
.join h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.65rem); letter-spacing: -.055em; line-height: 1; }
.join > .lead { max-width: 520px; margin: 12px 0 0; }
.join > label:first-of-type { margin-top: 0; }
.pick-card { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 30px; }
.pick-card h1, .pick-card h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -.04em; }
.pick-card p { margin: 3px 0; color: var(--muted); font-size: .9rem; }
.quantity-picker { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.quantity-picker button { display: grid; min-width: 54px; min-height: 51px; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--ink); cursor: pointer; font: 900 1.1rem var(--rounded); }
.quantity-picker button:hover { border-color: var(--red); background: var(--red-soft); }
.quantity-picker button.selected { border-color: var(--red-action); background: var(--red-action); color: #fff; box-shadow: 0 3px 0 var(--red-deep); }
.reserve { width: 100%; min-height: 54px; }
.waiting-dots { display: flex; gap: 8px; margin-top: 26px; }
.waiting-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); animation: bounce 1.1s infinite; }
.waiting-dots i:nth-child(2) { animation-delay: .15s; }
.waiting-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-7px); background: var(--red-deep); } }

/* Organiser setup and secondary controls */
.host-page .page { max-width: 1080px; padding-top: 24px; }
.loading { color: var(--muted); font-weight: 750; }
.host-hero.compact { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 14px 0 23px; }
.host-hero h1 { max-width: 16ch; margin: 0; font-size: clamp(2.7rem, 6vw, 5.15rem); letter-spacing: -.065em; line-height: .94; }
.host-hero .lead { margin: 15px 0 0; }
.state-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 11px; background: #eee9e6; color: var(--muted); font: 850 .76rem var(--body); letter-spacing: 0; text-transform: none; }
.state-pill::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.state-pill.ready { background: var(--red-soft); color: var(--red-deep); }
.state-pill.live { background: var(--success-soft); color: var(--success); }
.state-pill.paused { background: #fff3dc; color: #7a4c00; }
.state-pill.complete { background: #e9edf2; color: var(--ink); }
.primary-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 18px;
  border-radius: 22px;
  padding: 29px 30px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.primary-control h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.045em; }
.primary-control p { max-width: 680px; margin: .4em 0 0; color: #d5ddea; }
.primary-control .kicker { color: #ff858a; }
.large-action { flex: none; min-height: 52px; padding-inline: 24px; white-space: nowrap; }
.completion-control { background: var(--success); }
.completion-control .kicker, .completion-control p { color: #d9f6e9; }

.controller-card { margin: 16px 0; padding: 23px; }
.controller-card.empty { padding: 40px; }
.host-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sharing { min-width: 0; border-right: 1px solid var(--line); padding: 3px 20px 3px 0; }
.sharing:last-child { border-right: 0; padding-right: 0; }
.sharing h2 { margin: 0 0 7px; font-size: 1.16rem; letter-spacing: -.035em; }
.sharing > p:not(.kicker) { margin: 0; color: var(--muted); font-size: .87rem; }
.stack-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 17px; }
.stack-actions .button { min-height: 42px; padding: 9px 14px; font-size: .82rem; }
.host-lobby-qr { display: grid; grid-template-columns: 104px 1fr; gap: 13px; align-items: center; margin-top: 17px; border-radius: 14px; padding: 11px; background: #f7f3f1; }
.host-lobby-qr .lobby-qr { display: block; width: 104px; height: 104px; padding: 6px; background: #fff; image-rendering: pixelated; }
.host-lobby-qr .lobby-qr.pending { background: #ebe4e1; }
.host-lobby-qr p { margin: 3px 0; color: var(--muted); font-size: .78rem; }
.host-lobby-qr .kicker { color: var(--red-deep); }
.host-details { overflow: hidden; padding: 0; }
.host-details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 18px 23px; cursor: pointer; list-style: none; }
.host-details > summary::-webkit-details-marker { display: none; }
.host-details > summary::after { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f4efec; color: var(--ink); content: "+"; font-size: 1.25rem; }
.host-details[open] > summary { border-bottom: 1px solid var(--line); }
.host-details[open] > summary::after { content: "−"; }
.host-details summary b, .host-details summary small { display: block; }
.host-details summary b { font-family: var(--rounded); font-size: 1.04rem; }
.host-details summary small { margin-top: 3px; color: var(--muted); font-weight: 650; }
.details-grid, .details-body { padding: 22px 23px; }
.details-grid { margin: 0; }
.round-steps { display: flex; gap: 0; margin: 0 0 21px; padding: 0; list-style: none; }
.round-steps li { display: flex; flex: 1; align-items: center; border-bottom: 3px solid var(--line); padding: 0 9px 12px 0; color: var(--muted); font-size: .82rem; font-weight: 750; }
.round-steps li span { display: grid; width: 26px; height: 26px; place-items: center; margin-right: 7px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-size: .7rem; }
.round-steps li.active { border-color: var(--red-action); color: var(--ink); }
.round-steps li.active span { border-color: var(--red-action); background: var(--red-action); color: #fff; }
.round-steps li.done span { border-color: var(--success); background: var(--success); color: #fff; }
.number-history { display: flex; gap: 7px; flex-wrap: wrap; min-height: 34px; }
.number-history span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #f7f3f1; font-weight: 850; }
.number-history span:first-child { border-color: var(--red-action); background: var(--red-action); color: #fff; }
.private-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 15px; padding: 20px; background: #f5f2f0; }
.private-link h2, .danger h2 { margin: 0; font-size: 1.2rem; }
.private-link p:not(.kicker), .danger p:not(.kicker) { max-width: 650px; margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.danger { margin-top: 17px; border: 1px solid #efc5c4; border-radius: 15px; padding: 20px; }
.danger > div { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.danger .kicker, .advanced > summary b { color: var(--red-deep); }

/* Live caller: current number and draw action own the visual field. */
.caller-identity-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 980px; margin: 4px auto 13px; border-bottom: 1px solid var(--line); padding: 10px 0 13px; }
.caller-identity-strip p { margin: 0; color: var(--muted); font-size: .81rem; font-weight: 850; }
.caller-menu { position: relative; flex: none; }
.caller-menu > summary { display: flex; min-width: 94px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 15px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 850; list-style: none; }
.caller-menu > summary::before { width: 15px; height: 11px; margin-right: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; }
.caller-menu > summary::-webkit-details-marker { display: none; }
.caller-menu-body { position: absolute; z-index: 5; top: calc(100% + 9px); right: 0; width: min(94vw, 640px); max-height: calc(100vh - 100px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; box-shadow: var(--shadow); }
.caller-menu-body > details { border-top: 1px solid var(--line); padding: 13px 5px; }
.caller-menu-body > details:first-child { border-top: 0; }
.caller-menu-body details > summary { cursor: pointer; }
.caller-menu-body details > h2 { margin: 12px 0 4px; font-size: 1.04rem; }
.caller-menu-body .host-grid { grid-template-columns: 1fr; }
.caller-menu-body .sharing { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 3px 18px; }
.caller-menu-body .sharing:last-child { border-bottom: 0; }
.caller-menu-body .private-link { display: block; padding: 17px; }
.caller-menu-body .private-link .button { margin-top: 14px; }
.caller-workspace { max-width: 980px; margin: 0 auto 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.caller-tabs { display: flex; gap: 7px; border-bottom: 1px solid var(--line); padding: 9px; background: #f6f1ee; }
.caller-tab { min-height: 44px; flex: 1; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 900 .95rem var(--rounded); }
.caller-tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #0d1524; }
.caller-panel { padding: clamp(18px, 3vw, 28px); }
.live-console { display: grid; grid-template-columns: 1fr; gap: 17px; }
.live-console .draw-button {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--red-action);
  border-radius: 16px;
  padding: 15px 24px;
  background: var(--red-action);
  color: #fff;
  box-shadow: 0 5px 0 var(--red-deep);
  cursor: pointer;
  font: 900 1.12rem var(--rounded);
}
.live-console .draw-button::after { margin-left: 10px; content: "→"; }
.live-console .draw-button:hover { background: #e01620; }
.caller-workspace .recent-calls { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr) minmax(0, 1fr); gap: 11px; margin: 0; padding: 0; list-style: none; }
.caller-workspace .recent-call { display: grid; min-height: 164px; place-items: center; align-content: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #f6f2ef; color: var(--ink); }
.caller-workspace .recent-call span, .caller-workspace .recent-calls .recent-call span:first-child { display: block; width: auto; border-radius: 0; background: transparent; color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.caller-workspace .recent-call b { font: 900 clamp(2.4rem, 6vw, 4.2rem)/1 var(--rounded); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.caller-workspace .recent-call.current { position: relative; border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 5px 0 rgba(24,34,53,.18); }
.caller-workspace .recent-call.current::before { position: absolute; top: 0; left: 16px; right: 16px; height: 5px; border-radius: 0 0 6px 6px; background: var(--red); content: ""; }
.caller-workspace .recent-call.current span { color: #ff9da1; }
.caller-workspace .recent-call.current b { color: #fff; font-size: clamp(5.8rem, 12vw, 8.4rem); }
.secondary-controls { border-top: 1px solid var(--line); padding-top: 14px; }
.secondary-controls > summary { color: var(--muted); cursor: pointer; font-size: .87rem; font-weight: 800; }
.secondary-controls[open] > summary { margin-bottom: 12px; }
.manual-call { margin: 0; }
.manual-call label { margin: 0 0 6px; font-size: .8rem; }
.manual-call > div { display: flex; gap: 8px; max-width: 340px; }
.manual-call input { width: 128px; min-height: 44px; margin: 0; }
.manual-call .button { min-height: 44px; }
.field-error { min-height: 1.3em; margin: 7px 0 0; font-size: .86rem; font-weight: 750; }

.called-numbers-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.called-numbers-heading .kicker { margin-bottom: 3px; }
.called-numbers-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.055em; }
.called-numbers-heading > p { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 750; }
.called-numbers-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.called-numbers-grid span { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #f5f1ef; color: #6d7686; font-size: clamp(.78rem, 1.6vw, 1.08rem); font-weight: 850; }
.called-numbers-grid .called { border-color: var(--red-action); background: var(--red-action); color: #fff; }
.called-numbers-grid .called::after { margin-left: 2px; content: "✓"; font-size: .58em; line-height: 1; }
.claim-workspace .claims { margin: 0; border: 0; padding: 0; box-shadow: none; }
.section-head h2 { margin: 0; }
.claim-review { margin: 16px 0; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.claim-review.valid { border-color: #a4d8c1; background: var(--success-soft); }
.claim-review.invalid { border-color: #efc2c1; background: var(--red-soft); }
.claim-review h2 { margin: 0; font-size: 1.35rem; }
.claim-review dl { margin: 14px 0; }
.claim-review dl > div { display: grid; grid-template-columns: 145px 1fr; gap: 13px; border-top: 1px solid rgba(24,34,53,.12); padding: 8px 0; }
.claim-review dt { color: var(--muted); font-size: .82rem; font-weight: 750; }
.claim-review dd { margin: 0; font-size: .88rem; font-weight: 750; }
.approved-claims { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.approved-claims span { border-radius: 999px; padding: 7px 11px; background: var(--success-soft); color: var(--success); font-size: .82rem; font-weight: 800; }
.close-round { margin-top: 10px; }

/* Shared display */
.display-body { min-height: 100vh; background: #111c2d; color: #fff; }
.display-screen { min-height: 100vh; padding: clamp(25px, 4vw, 62px); }
.display-brand { display: inline-flex; align-items: center; gap: 11px; margin: 0; color: #fff; font: 900 clamp(1rem, 2vw, 1.7rem)/1 var(--rounded); letter-spacing: -.04em; }
.display-brand img { width: clamp(62px, 7vw, 105px); height: auto; }
.display-live-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.display-live-round { margin: 0; color: #fff; font: 900 clamp(1.15rem, 2.5vw, 2.4rem)/1 var(--rounded); text-align: right; }
.display-live { display: grid; min-height: calc(100vh - clamp(100px, 12vw, 170px)); place-content: center; justify-items: center; gap: clamp(20px, 3vw, 40px); }
.display-current-number {
  display: grid;
  width: min(55vh, 39vw);
  min-width: 290px;
  aspect-ratio: 1;
  place-items: center;
  border: clamp(25px, 4vw, 62px) solid var(--red);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.8), 0 14px 0 var(--red-deep), 0 25px 55px rgba(0,0,0,.3);
  font: 900 clamp(9rem, 19vw, 17rem)/1 var(--rounded);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.08em;
}
.display-previous-numbers { display: flex; justify-content: center; gap: clamp(13px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.display-previous-numbers li { display: grid; min-width: clamp(68px, 8vw, 122px); min-height: clamp(68px, 8vw, 122px); place-items: center; border: 2px solid rgba(255,255,255,.48); border-radius: 50%; padding: 0 10px; color: #fff; font: 900 clamp(2rem, 5vw, 4.8rem)/1 var(--rounded); }
.display-lobby { display: grid; min-height: calc(100vh - clamp(50px, 8vw, 110px)); align-content: start; gap: clamp(28px, 5vw, 60px); }
.display-lobby-content { max-width: 680px; }
.display-lobby-kicker { margin: 0 0 8px; color: #ff8f94; font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 850; }
.display-lobby h1 { margin: 0 0 29px; font: 900 clamp(3.4rem, 7vw, 7rem)/.94 var(--rounded); letter-spacing: -.06em; }
.display-lobby .lobby-qr { display: block; width: min(42vw, 480px); height: auto; border-radius: 12px; padding: clamp(14px, 2vw, 24px); background: #fff; image-rendering: pixelated; }
.display-lobby .lobby-qr.pending { aspect-ratio: 1; background: rgba(255,255,255,.14); }
.display-lobby-content > p:last-child { margin: 23px 0 0; color: #fff; font-size: clamp(1.05rem, 1.9vw, 1.45rem); font-weight: 700; }
.lobby-qr-error { color: #ffc3c5 !important; }
.display-error { display: grid; min-height: calc(100vh - clamp(50px, 8vw, 110px)); align-content: start; gap: 20px; }
.display-error h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); }

/* Print preparation and economical monochrome output */
.print-workspace { width: min(100%, 1220px); margin: 24px auto 72px; padding: 0 24px; }
.print-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin: 31px 0 23px; }
.print-toolbar h1 { margin: .16em 0; font-size: clamp(2.3rem, 5vw, 4.15rem); letter-spacing: -.06em; line-height: .96; }
.print-toolbar p { margin: .35em 0 0; color: var(--muted); }
.print-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.print-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.print-card { min-height: 300px; break-inside: avoid; border: 2px solid var(--ink); border-radius: 15px; padding: 20px; background: #fff; }
.print-card header { display: flex; justify-content: space-between; align-items: start; gap: 15px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.print-card h2 { margin: .12em 0 0; font-size: 1.55rem; letter-spacing: -.05em; }
.card-number { font-weight: 900; }
.print-card-body { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; align-items: center; padding-top: 18px; }
.print-ticket { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.print-ticket span { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid var(--ink); border-radius: 3px; font-size: clamp(.75rem, 1.6vw, 1.25rem); font-weight: 900; }
.print-ticket .blank { background: #f0eeec; }
.scan-note { margin: .7rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.print-card figure { margin: 0; text-align: center; }
.print-card figure img { width: 112px; height: 112px; image-rendering: pixelated; }
.print-card figcaption { margin-top: 4px; font-size: .72rem; font-weight: 800; }
.print-page[data-print-mode="qr"] .print-ticket, .print-page[data-print-mode="qr"] .scan-note { display: none; }
.print-page[data-print-mode="qr"] .print-card-body { grid-template-columns: 1fr; }
.print-page[data-print-mode="qr"] .print-card figure { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; text-align: left; }
.print-page[data-print-mode="qr"] .print-card figcaption { margin: 0; font-size: 1.05rem; }
.print-page[data-print-mode="qr"] .print-card { min-height: 0; padding: 14px; }
.print-page[data-print-mode="qr"] .print-card header { display: none; }

@media (max-width: 700px) {
  .setup-page .page, .join-page .page { padding-top: 22px; }
  .choices { grid-template-columns: repeat(2, 1fr); }
  .setup-options > summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .wizard-actions { align-items: center; }
  .join::before { width: 80px; height: 49px; }
  .host-page .page { padding-top: 8px; }
  .host-hero.compact { display: block; margin-top: 5px; }
  .host-hero h1 { font-size: 2.85rem; }
  .primary-control { display: block; padding: 23px 21px; }
  .primary-control .large-action { width: 100%; margin-top: 20px; white-space: normal; }
  .host-grid { grid-template-columns: 1fr; }
  .sharing { border-right: 0; border-bottom: 1px solid var(--line); padding: 4px 0 20px; }
  .sharing + .sharing { padding-top: 4px; }
  .sharing:last-child { border-bottom: 0; }
  .host-details > summary { padding: 17px 18px; }
  .details-grid, .details-body { padding: 18px; }
  .private-link, .danger > div { display: block; }
  .private-link .button, .danger .button { margin-top: 16px; }
  .round-steps { flex-direction: column; }
  .round-steps li { border-right: 0; border-bottom-width: 1px; padding: 8px 0; }
  .caller-identity-strip { margin-top: 0; }
  .caller-menu-body { right: 0; }
  .caller-panel { padding: 16px; }
  .live-console .draw-button { min-height: 58px; }
  .caller-workspace .recent-calls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caller-workspace .recent-call { min-height: 88px; }
  .caller-workspace .recent-call.current { grid-column: 1 / -1; min-height: 174px; }
  .caller-workspace .recent-call.current b { font-size: clamp(6rem, 28vw, 8rem); }
  .caller-workspace .recent-call b { font-size: 2.35rem; }
  .called-numbers-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .called-numbers-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
  .called-numbers-grid span { border-radius: 5px; font-size: .68rem; }
  .manual-call > div { max-width: none; }
  .claim-review dl > div { grid-template-columns: 1fr; gap: 2px; }
  .display-screen { padding: 22px 18px; }
  .display-live-header { align-items: flex-start; }
  .display-live-round { max-width: 48vw; }
  .display-live { min-height: calc(100vh - 82px); }
  .display-current-number { width: min(57vh, 78vw); min-width: 0; border-width: clamp(21px, 8vw, 34px); font-size: clamp(8.5rem, 39vw, 12rem); box-shadow: 0 8px 0 var(--red-deep), 0 17px 36px rgba(0,0,0,.3); }
  .display-previous-numbers li { min-width: 68px; min-height: 68px; font-size: 2rem; }
  .display-lobby .lobby-qr { width: min(78vw, 420px); }
  .print-workspace { padding: 0 16px; }
  .print-toolbar { display: block; }
  .print-actions { justify-content: flex-start; margin-top: 19px; }
  .print-cards { grid-template-columns: 1fr; }
  .print-card { padding: 16px; }
  .print-card-body { grid-template-columns: minmax(0, 1fr) 100px; }
  .print-card figure img { width: 96px; height: 96px; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  html, body.print-page { background: #fff !important; color: #000 !important; }
  .nav, .print-controls, .notice { display: none !important; }
  .print-workspace { max-width: none; margin: 0; padding: 0; }
  .print-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .print-card { min-height: 0; border: 1.25pt solid #111; border-radius: 0; padding: 6mm; box-shadow: none; }
  .print-card .kicker { color: #111; }
  .print-card h2 { font-size: 17pt; }
  .print-card-body { grid-template-columns: minmax(0, 1fr) 31mm; gap: 5mm; padding-top: 5mm; }
  .print-card figure img { width: 29mm; height: 29mm; }
  .print-ticket { gap: 1.5mm; }
  .print-ticket span { border: .75pt solid #111; border-radius: 0; font-size: 12pt; }
  .print-ticket .blank { background: #eee; }
  .print-page[data-print-mode="qr"] .print-cards { grid-template-columns: repeat(3, 1fr); gap: 5mm; }
  .print-page[data-print-mode="qr"] .print-card { padding: 4mm; }
  .print-page[data-print-mode="qr"] .print-card figure { grid-template-columns: 29mm 1fr; gap: 4mm; }
  .print-page[data-print-mode="qr"] .print-card figure img { width: 29mm; height: 29mm; }
  .print-page[data-print-mode="qr"] .print-card figcaption { font-size: 11pt; }
}
