/* Recruitment Hub design system, styled to the Legends Global brand: black, white and greys, Nicky Sans, with
   colour coming from photography. --brand and --accent are injected from Settings (partials/head.ejs); the status
   colours (ok / warn / danger / info) are functional and stay. */
@font-face { font-family: "Nicky Sans"; src: url("../fonts/NickySans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nicky Sans"; src: url("../fonts/NickySans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Nicky Sans"; src: url("../fonts/NickySans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nicky Sans"; src: url("../fonts/NickySans-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  --brand: #0a0a0a; --accent: #4d4d4d;
  --ink: #0a0a0a; --on-dark: #fff; --on-dark-muted: #b8b8b8; --dark-2: #171717; --dark-3: #262626; --dark-border: #3d3d3d;
  --bg: #f3f3f3; --surface: #fff; --surface-2: #f7f7f7; --border: #dedede; --border-strong: #8a8a8a;
  --text: #141414; --muted: #595959; --link: #141414; --focus: #0a0a0a;
  --ok: #17663a; --ok-bg: #e5f3ea; --warn: #7a4a00; --warn-bg: #fbf0d6; --danger: #a3182a; --danger-bg: #fbe8ea; --info: #1d4f91; --info-bg: #e6eef8; --neutral-bg: #ebebeb;
  --radius: 8px; --radius-sm: 4px; --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .07); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .28);
  --font: "Nicky Sans", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar-w: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 700; }
h1 { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .015em; line-height: 1.1; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; } h4 { font-size: .9rem; }
strong, b { font-weight: 700; }
p { margin: 0 0 .75rem; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* On black surfaces the focus ring is white. */
.sidebar :focus-visible, .pub-header :focus-visible, .hero :focus-visible, .auth-hero :focus-visible, .kiosk-header :focus-visible, body.kiosk .kiosk-exit :focus-visible, body.display :focus-visible { outline-color: #fff; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 100; border-radius: 6px; font-weight: 700; box-shadow: var(--shadow-lg); }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.mono { font-family: var(--mono); font-size: .9em; }
.print-only { display: none; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.hidden, [hidden] { display: none !important; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 1rem; } .grid > *, .form-grid > *, .stack > * { min-width: 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Brand mark ---------- */
/* The Legends Global primary logo: never stretched or recoloured. Its exclusion zone is the height of the "L": about
   a third of the rendered logo height (0.32 x height). The file itself carries a little clear space (about 0.05 x
   height above and below, 0.15 x height left and right), so keep at least 0.27 x height clear above/below and
   0.15 x height left/right of .brand-logo through padding and gaps. The surfaces that carry the white logo
   (sidebar, candidate header, ticket head) are always black (--ink), whatever colour is chosen in Settings. */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.5rem 1.4rem 1.1rem; color: #fff; text-decoration: none; }
.brand-logo { display: block; height: 46px; width: auto; max-width: 100%; flex: none; object-fit: contain; }
.brand-sub { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); line-height: 1.2; }
/* Department line icons (decorative) beside department names. */
.dept-icon { width: 24px; height: 24px; flex: none; display: block; }
.dept-icon-slot { width: 24px; height: 24px; flex: none; display: inline-block; }
.with-icon { display: flex; align-items: center; gap: .6rem; }
.small .dept-icon { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: .3rem; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--ink); color: #d9d9d9; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.nav { padding: .5rem .7rem 1rem; flex: 1; }
.nav-group { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-muted); padding: 1.1rem .7rem .35rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; min-height: 40px; border-radius: 6px; color: #e6e6e6; text-decoration: none; font-weight: 500; font-size: .92rem; margin-bottom: 2px; }
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: #0a0a0a; font-weight: 700; }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar-foot { padding: .9rem 1.4rem; font-size: .72rem; color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .14); }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: .6rem 1.5rem; min-height: 60px; display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 20; }
.topbar form.search { flex: 1; max-width: 460px; position: relative; }
.topbar form.search input { width: 100%; padding-left: 2.1rem; background: var(--surface-2); }
.topbar form.search svg { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.btn.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); padding: .25rem .5rem; border-radius: 8px; }
.user-chip:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .76rem; font-weight: 700; flex: none; letter-spacing: .03em; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.content { padding: 1.75rem 1.75rem 3rem; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; } .crumbs a { color: var(--muted); }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(84vw, 300px); transform: translateX(-102%); transition: transform .18s ease; z-index: 60; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; }
  .btn.menu-btn { display: inline-flex; }
  .content { padding: 1.1rem 1rem 3rem; } .topbar { padding: .5rem 1rem; }
  .topbar .user-chip { padding: .25rem; }
  h1 { font-size: 1.4rem; }
  .user-chip .who { display: none; }
}

/* ---------- Components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .card-head { padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.card > .card-head h2, .card > .card-head h3 { margin: 0; }
.card > .card-body { padding: 1.1rem; }
.card > .card-foot { padding: .8rem 1.1rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem 1rem; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; min-height: 40px; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.btn:hover { background: #ededed; border-color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: #333; border-color: #333; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.accent:hover { background: #333; border-color: #333; }
.btn.success { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.success:hover { background: #115230; border-color: #115230; }
.btn.danger { background: #fff; border-color: var(--danger); color: var(--danger); } .btn.danger:hover { background: var(--danger-bg); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--neutral-bg); }
.btn.sm { padding: .3rem .7rem; font-size: .82rem; min-height: 32px; border-radius: 5px; }
.btn.lg { padding: .8rem 1.5rem; font-size: 1rem; min-height: 52px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn.is-busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn svg { width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-form { display: inline; }
label, .label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: .3rem; }
.req::after { content: " *"; color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=url], input[type=color], select, textarea {
  width: 100%; padding: .52rem .7rem; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; color: var(--text); background: #fff; min-height: 40px; }
input::placeholder, textarea::placeholder { color: #6b6b6b; opacity: 1; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
input[type=color] { padding: 2px; width: 60px; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
.field { margin-bottom: 1rem; } .field .hint { font-size: .82rem; color: var(--muted); margin-top: .25rem; } .field .error { font-size: .84rem; color: var(--danger); margin-top: .25rem; font-weight: 700; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; font-size: .92rem; margin-bottom: .45rem; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); vertical-align: middle; }
.check input { margin-top: .1rem; flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; } legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: .4rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; } .form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 150px; flex: 1 1 150px; max-width: 260px; } .filters label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
/* A table wider than its card scrolls sideways; an edge shadow appears on the side that has more to show. */
.table-wrap { overflow-x: auto; background: linear-gradient(90deg, var(--surface) 35%, rgba(255, 255, 255, 0)) left center / 44px 100% no-repeat local, linear-gradient(270deg, var(--surface) 35%, rgba(255, 255, 255, 0)) right center / 44px 100% no-repeat local, linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)) left center / 14px 100% no-repeat scroll, linear-gradient(270deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)) right center / 14px 100% no-repeat scroll; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .7rem 1rem; border-bottom: 1px solid var(--border-strong); background: rgba(0, 0, 0, .03); white-space: nowrap; font-weight: 700; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: rgba(0, 0, 0, .03); }
.table td.actions { text-align: right; white-space: nowrap; }
/* Three or more row actions may wrap onto a second line so the table stays inside its card. */
.table td.actions.wrap { white-space: normal; min-width: 132px; } .table td.actions.wrap > * { margin: 2px 0; }
/* Form controls inside table rows keep a readable width; the table scrolls inside .table-wrap when it must. */
.table td input[type=text], .table td select { min-width: 120px; } .table td input[type=number] { min-width: 68px; }
.table td input.w-label { min-width: 190px; } .table td select.w-notice { min-width: 210px; } .table td input.w-order { max-width: 74px; }
/* Dense tables: tighter cells on desktops below 1400px and on tablets. */
@media (max-width: 1400px) { .table th, .table td { padding-left: .6rem; padding-right: .6rem; } .table th { letter-spacing: .06em; } }
.table a.strong { font-weight: 700; text-decoration: underline; text-decoration-color: #b0b0b0; } .table a.strong:hover { text-decoration-color: currentColor; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--neutral-bg); color: #333; white-space: nowrap; border: 1px solid transparent; text-transform: none; letter-spacing: 0; line-height: 1.5; vertical-align: middle; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.danger { background: var(--danger-bg); color: var(--danger); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge.plain::before { display: none; }
.alert { padding: .8rem 1rem; border-radius: 6px; border: 1px solid; border-left-width: 4px; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert.ok { background: var(--ok-bg); border-color: var(--ok); color: #0f4a29; } .alert.warn { background: var(--warn-bg); border-color: #a86a00; color: #5c3800; }
.alert.danger { background: var(--danger-bg); border-color: var(--danger); color: #7a121f; } .alert.info { background: var(--info-bg); border-color: var(--info); color: #143a6b; }
.alert a { color: inherit; }
.alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.empty { text-align: center; padding: 2.4rem 1rem; color: var(--muted); } .empty h3 { color: var(--text); } .empty svg { width: 40px; height: 40px; opacity: .45; margin-bottom: .5rem; }
.tabs { display: flex; gap: .15rem; border-bottom: 1px solid var(--border-strong); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; outline-offset: -3px; }
.tabs a:hover { color: var(--text); } .tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.stat { padding: 1rem 1.1rem; } .stat .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 2.1rem; font-weight: 900; line-height: 1.1; margin-top: .25rem; font-variant-numeric: tabular-nums; } .stat .v .v-sub { font-size: 1.1rem; font-weight: 700; }
.stat .s { font-size: .82rem; color: var(--muted); } .stat.tone-danger .v { color: var(--danger); } .stat.tone-ok .v { color: var(--ok); } .stat.tone-warn .v { color: var(--warn); }
.bars { display: grid; gap: .55rem; } .bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; }
.bar { height: 10px; background: var(--neutral-bg); border-radius: 6px; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--brand); border-radius: 6px; min-width: 2px; }
.bar.ok > span { background: #1f7a45; } .bar.warn > span { background: #b87400; } .bar.danger > span { background: #b82a3a; } .bar.accent > span { background: var(--accent); }
.funnel { display: grid; gap: .5rem; } .funnel .step { display: grid; grid-template-columns: 150px 1fr 70px; gap: .6rem; align-items: center; font-size: .9rem; }
.funnel .step b { font-variant-numeric: tabular-nums; text-align: right; }
dl.kv { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: .4rem .9rem; margin: 0; font-size: .92rem; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { position: relative; padding: 0 0 1rem 1.4rem; border-left: 2px solid var(--border); margin-left: .4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; } .timeline .when { font-size: .78rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; font-size: .86rem; color: var(--muted); gap: .5rem; flex-wrap: wrap; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 90; max-width: min(92vw, 380px); }
.toast { background: #0a0a0a; color: #fff; border: 1px solid var(--dark-border); padding: .7rem 1rem; border-radius: 8px; box-shadow: var(--shadow-lg); font-size: .9rem; } .toast.danger { background: #8b1522; border-color: #8b1522; } .toast.ok { background: #14532d; border-color: #14532d; }
dialog { border: 0; border-radius: 10px; padding: 0; box-shadow: var(--shadow-lg); width: min(560px, 94vw); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog .dlg-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } dialog .dlg-head h2 { margin: 0; }
dialog .dlg-body { padding: 1.1rem 1.2rem; } dialog .dlg-foot { padding: .9rem 1.2rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .6rem; background: var(--surface-2); }
.live-ind { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); font-weight: 700; }
.live-ind i { width: 8px; height: 8px; border-radius: 50%; background: #8a8a8a; } .live-ind.on i { background: #24a35a; box-shadow: 0 0 0 3px rgba(36, 163, 90, .2); } .live-ind.poll i { background: #d08a12; }
.checklist { list-style: none; padding: 0; margin: 0; } .checklist li { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; font-size: .92rem; }
.checklist .yes { color: var(--ok); font-weight: 700; } .checklist .no { color: var(--warn); font-weight: 700; }
.pill-tabs { display: inline-flex; background: var(--neutral-bg); padding: 3px; border-radius: 8px; gap: 2px; flex-wrap: wrap; }
.pill-tabs button, .pill-tabs a { border: 0; background: transparent; padding: .4rem .9rem; min-height: 36px; display: inline-flex; align-items: center; border-radius: 6px; font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; color: #4a4a4a; text-decoration: none; }
.pill-tabs .on { background: var(--ink); color: #fff; }
details.disclosure { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); } details.disclosure > summary { padding: .7rem 1rem; cursor: pointer; font-weight: 700; min-height: 44px; } details.disclosure > div { padding: 0 1rem 1rem; }
.note { background: #fdf8e3; border: 1px solid #e3d28c; border-radius: 8px; padding: .65rem .85rem; margin-bottom: .6rem; font-size: .92rem; } .note .meta { font-size: .76rem; color: var(--muted); margin-bottom: .2rem; }
.score-ring { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- Live queue board ---------- */
.q-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .q-cols { grid-template-columns: minmax(0, 1fr); } }
.q-item { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
.q-item:last-child { border-bottom: 0; } .q-code { font-weight: 900; font-size: 1rem; background: var(--ink); color: #fff; padding: .3rem .55rem; border-radius: 5px; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.q-item.alert-row { background: #fdf6ea; } .q-wait { font-variant-numeric: tabular-nums; font-weight: 700; } .q-wait.long { color: var(--danger); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .6rem; padding: .9rem; }
.staff-tile { border: 1px solid var(--border); border-left: 4px solid #8a8a8a; border-radius: 6px; padding: .5rem .65rem; font-size: .86rem; background: #fff; }
.staff-tile.available { border-left-color: #1f7a45; } .staff-tile.interviewing { border-left-color: #1d4f91; } .staff-tile.on_break { border-left-color: #b87400; } .staff-tile.unavailable { border-left-color: #b82a3a; } .staff-tile.finished, .staff-tile.offline { opacity: .65; }
.staff-tile b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Check-in ---------- */
.scan-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; } @media (max-width: 900px) { .scan-wrap { grid-template-columns: minmax(0, 1fr); } }
.scanner { position: relative; background: #0a0a0a; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; display: grid; place-items: center; color: #c9c9c9; }
/* Single-column (phones, portrait tablets): the scan result comes first so it is never below the fold. */
@media (max-width: 900px) { .scan-wrap > .stack:last-child { order: -1; } .scanner { max-height: 38vh; } }
.scanner video { width: 100%; height: 100%; object-fit: cover; } .scanner .reticle { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.result { border-radius: var(--radius); padding: 1.1rem; border: 2px solid var(--border); background: #fff; }
.result.valid { border-color: #1f7a45; background: #f1faf4; } .result.already { border-color: #b87400; background: #fdf7e8; } .result.bad { border-color: #b82a3a; background: #fdf2f3; }
.result .big { font-size: 1.6rem; font-weight: 900; line-height: 1.15; } .result .state { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: .3rem; }
.result.valid .state { color: var(--ok); } .result.already .state { color: var(--warn); } .result.bad .state { color: var(--danger); }

/* ---------- Interview form / questionnaire rendering ---------- */
.q-section { margin-bottom: 1.3rem; } .q-section > h3 { padding-bottom: .4rem; border-bottom: 2px solid var(--border); margin-bottom: .9rem; }
.q-block { margin-bottom: 1.15rem; } .q-block .q-label { font-weight: 700; margin-bottom: .2rem; display: block; font-size: .96rem; }
.q-block .guidance { background: var(--info-bg); border-left: 3px solid var(--info); padding: .45rem .7rem; border-radius: 0 6px 6px 0; font-size: .85rem; margin: .35rem 0 .5rem; color: #143a6b; }
.q-block.info-block { background: var(--surface-2); border: 1px dashed var(--border-strong); padding: .75rem .9rem; border-radius: 8px; }
.rating { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; } .rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { margin: 0; min-width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--border-strong); border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; background: #fff; }
.rating input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; } .rating input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.rating .scale-label { font-size: .78rem; color: var(--muted); }
.choice-list .check { padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: .4rem; background: #fff; } .choice-list .check:has(input:checked) { border-color: var(--brand); background: #f0f0f0; box-shadow: inset 0 0 0 1px var(--brand); }
.savebar { position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(4px); border-top: 1px solid var(--border); padding: .7rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: 1rem -1.1rem -1.1rem; border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; z-index: 5; }
.status-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; } .status-switch .btn { min-height: 54px; } .status-switch .btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.assign-card { border: 2px solid var(--ink); } .assign-card .tableno { font-size: 1.1rem; font-weight: 900; }

/* ---------- Hiring flow builder and diagram ---------- */
.flow-builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 1rem; align-items: start; } @media (max-width: 1000px) { .flow-builder { grid-template-columns: minmax(0, 1fr); } }
.flow-stages { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; } .flow-aside { position: sticky; top: 70px; }
.flow-stage { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: .8rem .9rem; box-shadow: var(--shadow); } .flow-stage.dragging { opacity: .4; } .flow-stage.drop-target { box-shadow: inset 0 4px 0 var(--ink); }
.flow-stage-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; } .flow-stage-head input[type=text] { flex: 1 1 180px; font-weight: 700; }
.flow-grip { cursor: grab; color: var(--muted); letter-spacing: -2px; padding: 0 .2rem; } .flow-num { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); white-space: nowrap; }
.flow-people { border: 1px solid var(--border); border-radius: 8px; padding: .5rem .7rem .6rem; margin: 0 0 .6rem; min-width: 0; } .flow-people legend { font-weight: 700; font-size: .88rem; padding: 0 .3rem; }
.flow-people-list { max-height: 190px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .1rem .8rem; margin-top: .45rem; } .flow-people-list .check { margin: 0; font-size: .9rem; } .flow-people input[type=search] { min-height: 34px; padding: .3rem .55rem; font-size: .88rem; }
.flow-rule { border-top: 1px dashed var(--border); padding-top: .5rem; }
.flow-diagram { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: 1.5rem; }
.flow-node { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 1.4rem; align-items: center; }
.flow-node + .flow-node::before { content: "\2193"; position: absolute; top: -1.45rem; left: 25%; transform: translateX(-50%); color: var(--muted); font-weight: 700; }
.flow-node.flow-end > strong, .flow-box { grid-column: 1; border: 2px solid var(--brand); border-radius: 8px; padding: .45rem .6rem; text-align: center; background: #fff; display: block; overflow-wrap: anywhere; }
.flow-node.flow-end > strong { border-style: dashed; border-color: var(--border-strong); background: var(--surface-2); } .flow-node.flow-offer > strong { border-style: solid; border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.flow-node.flow-end > small { grid-column: 2; color: var(--muted); font-size: .76rem; } .flow-box small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.flow-side { position: relative; font-size: .76rem; color: var(--danger); display: grid; gap: .15rem; } .flow-side::before { content: "\2192"; position: absolute; left: -1.1rem; top: 50%; transform: translateY(-50%); font-weight: 700; }
.flow-side-label { font-weight: 700; } .flow-out { border: 1px dashed var(--danger); border-radius: 6px; padding: .2rem .4rem; background: var(--danger-bg); }
.cap-list { list-style: none; margin: .2rem 0 0; padding: 0; } .roster-set { border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem .8rem; margin: 0; min-width: 0; } .roster-set legend { padding: 0 .3rem; } .roster-set legend .muted { font-weight: 500; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .1rem .8rem; margin: .4rem 0 .7rem; } .roster-grid .check { margin: 0; }

/* ---------- Questionnaire designer ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1rem; align-items: start; } @media (max-width: 1000px) { .designer { grid-template-columns: minmax(0, 1fr); } }
.d-section { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 1rem; } .d-section-head { padding: .75rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; display: grid; gap: .5rem; }
.d-q { border-bottom: 1px solid var(--border); padding: .8rem .9rem; display: grid; grid-template-columns: 26px 1fr; gap: .6rem; background: #fff; } .d-q:last-child { border-bottom: 0; }
.d-q.dragging { opacity: .4; } .d-q.drop-target { box-shadow: inset 0 4px 0 var(--ink); }
.d-handle { cursor: grab; color: var(--muted); display: grid; align-content: start; gap: .2rem; justify-items: center; padding-top: .3rem; } .d-handle button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--muted); font-size: .8rem; line-height: 1; }
.d-type { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.d-opts { display: grid; gap: .35rem; margin-top: .4rem; } .d-opt { display: grid; grid-template-columns: 1fr 86px 32px; gap: .35rem; }
.d-palette { position: sticky; top: 70px; } .d-palette .btn { justify-content: flex-start; width: 100%; margin-bottom: .35rem; font-weight: 500; }
.d-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem .7rem; margin-top: .55rem; } .d-adv label { font-size: .75rem; color: var(--muted); margin-bottom: .15rem; }
.d-adv input, .d-adv select, .d-q input, .d-q select, .d-q textarea { min-height: 34px; padding: .35rem .55rem; font-size: .88rem; } .d-q textarea { min-height: 52px; }

/* ---------- Auth ---------- */
/* A split page: the Rogers Centre photograph (its dark left side carries the white logo) beside a clean white panel.
   On tablets in portrait and on phones the photograph becomes a band above the form. */
body.auth { background: #000; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, .8fr); }
.auth-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.75rem 3rem; color: #fff; background: #000 url("../img/photo/rogers-centre.jpg") 32% center / cover no-repeat; overflow: hidden; }
.auth-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%), linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .8) 100%); }
.auth-hero > * { position: relative; }
.auth-hero .brand { padding: 0; } .auth-hero .brand-logo { height: 60px; }
.auth-statement { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .95; letter-spacing: .01em; max-width: 9ch; }
.auth-panel { background: #fff; display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 1.9rem; }
.auth-product { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-hero { min-height: 30vh; padding: 2rem 2.25rem; background-position: 40% 38%; }
  .auth-hero .brand-logo { height: 52px; } .auth-statement { font-size: 2.6rem; max-width: none; }
  .auth-panel { place-items: start center; padding: 2.5rem 1.5rem 3rem; }
}
@media (max-width: 560px) {
  .auth-hero { min-height: 0; padding: 1.4rem 1.25rem; background-position: 62% 35%; background-size: 190% auto; }
  .auth-hero::before { background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .92) 52%, rgba(0, 0, 0, .25) 100%); }
  .auth-hero .brand-logo { height: 42px; } .auth-statement { display: none; }
  .auth-panel { padding: 1.75rem 1.25rem 2.5rem; }
}
/* A phone held sideways: keep the form above the fold. */
@media (max-height: 520px) {
  .auth-hero { min-height: 0; padding: 1rem 1.25rem; } .auth-statement { display: none; } .auth-hero .brand-logo { height: 40px; }
  .auth-panel { padding-top: 1.25rem; }
}

/* ---------- Public (candidate) ---------- */
body.public { background: #fff; overflow-x: clip; }
.pub-header { background: var(--ink); color: #fff; } .pub-header .inner { max-width: 980px; margin: 0 auto; padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.pub-header .brand { padding: 0; flex-direction: row; align-items: center; gap: 1rem; min-width: 0; } .pub-header .brand-logo { height: 38px; }
.pub-header .brand-sub { border-left: 1px solid #5c5c5c; padding: .45rem 0 .45rem 1rem; }
.pub-header .btn { background: transparent; border-color: #fff; color: #fff; } .pub-header .btn:hover { background: #fff; color: #0a0a0a; }
.pub-main { max-width: 760px; margin: 0 auto; padding: 1.75rem 1rem 3rem; } .pub-main.wide { max-width: 980px; }
.pub-footer { border-top: 1px solid var(--border); padding: 1.25rem 1rem 1.75rem; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.8; }
@media (max-width: 560px) { .topbar { gap: .35rem; padding: .5rem .75rem; } .pub-header .brand-sub { display: none; } .pub-header .brand-logo { height: 34px; } }
/* Hero: a brand photograph fading into black behind a bold headline. It breaks out of the page column to full width. */
.hero { position: relative; width: 100vw; margin: 0 0 1.75rem calc(50% - 50vw); background: #000; color: #fff; overflow: hidden; }
.pub-main > .hero:first-child { margin-top: -1.75rem; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 62%; background: #000 right center / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .12) 100%); }
.hero.photo-venue .hero-photo { background-image: url("../img/photo/rogers-centre.jpg"); background-position: 100% 42%; }
.hero.photo-hospitality .hero-photo { background-image: url("../img/photo/chef-hands.jpg"); }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 3.5rem 1rem 3.25rem; } .pub-main.wide .hero-inner { max-width: 980px; }
.hero-inner > * { max-width: 30rem; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); line-height: 1; letter-spacing: .01em; margin-bottom: 1rem; overflow-wrap: break-word; }
.hero-lead { font-size: 1.05rem; line-height: 1.5; color: #e6e6e6; margin: 0; }
/* The venue's own logo, unaltered and kept smaller than the Legends Global logo in the header. */
.venue-mark { display: flex; align-items: center; gap: .75rem; margin: 1.75rem 0 0; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.venue-mark img { height: 28px; width: auto; display: block; }
@media (max-width: 700px) {
  .hero-photo { position: relative; inset: auto; width: 100%; height: 38vw; min-height: 130px; background-size: 175% auto; }
  .hero.photo-venue .hero-photo { background-position: 100% 40%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .25) 60%, #000 100%); }
  .hero-inner { padding: 1rem 1rem 2rem; }
}
@media (max-width: 560px) { .venue-mark img { height: 24px; } }
.pub-footer a { display: inline-block; padding: .1rem 0; }
@media (max-height: 520px) { .hero-inner { padding-top: 1.25rem; padding-bottom: 1.25rem; } .hero h1 { font-size: 1.9rem; margin-bottom: .5rem; } .venue-mark { margin-top: .9rem; } }
.pos-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .15rem 1.5rem; }
.pos-list li { display: flex; align-items: center; gap: .65rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; counter-reset: s; }
.steps li { flex: 1; font-size: .78rem; font-weight: 700; color: var(--muted); border-top: 4px solid #c4c4c4; padding-top: .4rem; counter-increment: s; }
.steps li::before { content: counter(s) ". "; } .steps li.done { border-color: #1f7a45; color: var(--ok); } .steps li.current { border-color: var(--ink); color: var(--text); }
.session-card { border: 2px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; background: #fff; margin-bottom: .7rem; } .session-card.full { opacity: .6; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .4rem; margin-top: .6rem; } .slot-grid input { position: absolute; opacity: 0; }
.slot-grid label { margin: 0; border: 2px solid var(--border-strong); border-radius: 6px; padding: .55rem .3rem; min-height: 44px; text-align: center; cursor: pointer; font-weight: 700; font-size: .9rem; background: #fff; }
.slot-grid label small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; } .slot-grid input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; } .slot-grid input:checked + label small { color: #e0e0e0; }
.slot-grid input:disabled + label { opacity: .5; cursor: not-allowed; text-decoration: line-through; } .slot-grid input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.ticket { background: #fff; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; max-width: 420px; margin: 0 auto; box-shadow: var(--shadow); }
.ticket-head { background: var(--ink); color: #fff; padding: 1.1rem 1.2rem; } .ticket-org { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #d9d9d9; margin-bottom: .2rem; } .ticket-event { display: block; font-size: 1.15rem; line-height: 1.25; }
.ticket-logo { height: 34px; width: auto; margin: 0 0 .8rem; }
.ticket-body { padding: 1.2rem; text-align: center; } .ticket-code { font-size: 2.9rem; font-weight: 900; letter-spacing: .04em; line-height: 1.05; } .ticket-name { font-weight: 700; }
.ticket-qr svg, .ticket-qr img { width: 230px; height: 230px; } .ticket-foot { border-top: 2px dashed var(--border-strong); padding: 1rem 1.2rem; text-align: left; }
.status-list { list-style: none; padding: 0; margin: 0; } .status-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); align-items: center; } .status-list li:last-child { border-bottom: 0; }

/* ---------- Public display (waiting area) ---------- */
/* Black with white type so it reads from across a room; ticket codes in Nicky Sans Black. */
body.display { background: #000; color: #fff; overflow: hidden; height: 100vh; }
.dsp { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; }
.dsp-head { display: flex; justify-content: space-between; align-items: center; gap: 3vw; padding: 2.4vh 2.4vw; background: #000; border-bottom: .3vh solid #fff; }
.dsp-brand { display: flex; align-items: center; gap: 4vh; min-width: 0; } .dsp-brand .brand-logo { height: 7vh; }
.dsp-head h1 { font-size: 3.6vh; margin: 0; color: #fff; padding-left: 3vh; border-left: .2vh solid #5c5c5c; line-height: 1.1; min-width: 0; max-height: 2.2em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .dsp-clock { font-size: 4.2vh; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsp-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2vw; padding: 2.4vh 2.4vw; min-height: 0; }
.dsp-panel { background: #121212; border: .15vh solid #2e2e2e; border-radius: 1.2vh; padding: 2.2vh 1.6vw; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.dsp-panel h2 { font-size: 2.3vh; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: #c9c9c9; margin-bottom: 1.6vh; } .dsp-panel h2.dsp-gap { margin-top: 2.5vh; }
/* The six "now calling" rows share whatever height the panel has, so a taller header or footer shrinks every row a
   little and never pushes the sixth one out of the panel. */
.dsp-calls { display: grid; gap: 1.3vh; flex: 1 1 auto; min-height: 0; grid-template-rows: repeat(6, minmax(0, 1fr)); } .dsp-calls > .dsp-empty { grid-row: 1 / -1; }
.dsp-call { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: center; background: #242424; border-radius: 1vh; padding: 0 1.6vw; border-left: 1vh solid #fff; min-height: 0; overflow: hidden; }
.dsp-call .code { font-size: 7.4vh; font-weight: 900; letter-spacing: .03em; line-height: 1; white-space: nowrap; } .dsp-call .arrow { font-size: 4vh; color: #c9c9c9; padding: 0 1.4vw; }
.dsp-call .station { font-size: 4.4vh; font-weight: 700; text-align: right; line-height: 1.05; max-height: 2.1em; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* A newly called ticket is shown reversed (black on white) and pulses a few times. */
.dsp-call.new { background: #fff; color: #000; animation: flash 1.1s ease-in-out 5; } .dsp-call.new .arrow { color: #000; } @keyframes flash { 50% { background: #9c9c9c; } }
@media (prefers-reduced-motion: reduce) { .dsp-call.new { animation: none; } }
.dsp-empty { color: #c9c9c9; font-size: 3vh; margin: auto; text-align: center; } .dsp-info { font-size: 2.6vh; line-height: 1.45; white-space: pre-line; } .dsp-count { font-size: 11vh; font-weight: 900; line-height: 1; }
.dsp-count-label { font-size: 2.3vh; color: #c9c9c9; margin-bottom: 2.5vh; } .dsp-conn { font-size: 1.7vh; color: #b0b0b0; }
.dsp-serving { display: flex; flex-wrap: wrap; gap: 1vh; margin-top: 1vh; } .dsp-serving span { background: #242424; border-radius: .6vh; padding: .6vh 1vw; font-size: 2.3vh; font-weight: 700; }
.dsp-foot { padding: 1.4vh 2.4vw; background: #000; border-top: .15vh solid #2e2e2e; font-size: 2.3vh; display: flex; justify-content: space-between; gap: 2vw; align-items: center; color: #e0e0e0; }
.dsp-foot #announce { flex: 1 1 auto; min-width: 0; line-height: 1.3; max-height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .dsp-foot .row { flex: none; flex-wrap: nowrap; } .dsp-foot button { white-space: nowrap; }
.dsp-foot button { background: transparent; border: 1px solid #8a8a8a; color: #e0e0e0; border-radius: 4px; padding: .5vh 1vw; font: inherit; font-size: 1.8vh; cursor: pointer; } .dsp-foot button:hover { background: #fff; color: #000; }
@media (max-width: 800px) { .dsp-calls { grid-template-rows: none; grid-auto-rows: auto; flex: none; } .dsp-call { padding: 1.5vh 1.6vw; } .dsp-foot { flex-wrap: wrap; } .dsp-main { grid-template-columns: 1fr; overflow: auto; } body.display { overflow: auto; height: auto; } .dsp { height: auto; min-height: 100vh; } .dsp-head { flex-wrap: wrap; } .dsp-brand { flex-wrap: wrap; gap: 2vh; } .dsp-head h1 { border-left: 0; padding-left: 0; } }

/* Tablets and phones: every control is at least 40px high. */
@media (pointer: coarse) {
  .btn.sm { min-height: 40px; padding: .4rem .8rem; } .pill-tabs button, .pill-tabs a { min-height: 40px; }
  .flow-people input[type=search], .d-adv input, .d-adv select, .d-q input, .d-q select, .d-q textarea { min-height: 40px; }
  .check { min-height: 44px; align-items: center; margin-bottom: 0; } .check input { margin-top: 0; }
  .choice-list .check { margin-bottom: .4rem; }
  .pub-footer a, .auth-card p > a, .auth-card > a { display: inline-block; padding: .6rem .25rem; }
}

/* ---------- Print ---------- */
/* Black on white: dark surfaces, photographs and white logos are dropped or swapped for their black versions. */
@media print {
  .sidebar, .topbar, .no-print, .toasts, .filters, .pager, .tabs, .pub-header, .pub-footer, .kiosk-header, .hero-photo, .venue-mark { display: none !important; }
  .print-only { display: block; }
  .shell { display: block; } body, body.public, body.kiosk { background: #fff; color: #000; font-size: 11pt; } .content, .pub-main { padding: 0; max-width: none; } .card { box-shadow: none; border-color: #999; break-inside: avoid; }
  .table th, .table td { padding: 4px 6px; font-size: 9pt; } .table th { background: #fff; color: #000; } a { color: inherit; text-decoration: none; }
  .hero, .pub-main > .hero:first-child { width: auto; margin: 0 0 1rem; background: #fff; color: #000; overflow: visible; } .hero-inner { padding: 0; max-width: none; } .hero-lead { color: #000; }
  .q-code { background: #fff; color: #000; border: 1px solid #000; }
  .pill-tabs .on, .btn.primary, .btn.accent, .btn.success { background: #fff; color: #000; border: 1px solid #000; } .pill-tabs .on { box-shadow: inset 0 0 0 1px #000; }
  .table-wrap { background: none; overflow: visible; }
  .ticket { border-color: #000; box-shadow: none; } .ticket-head { background: #fff; color: #000; border-bottom: 2px solid #000; } .ticket-org { color: #000; }
}

/* ---------- Offer letters ---------- */
.letter-editor { min-height: 34rem; font-family: var(--mono); font-size: .88rem; line-height: 1.5; }
.merge-fields dt { font-size: .8rem; word-break: break-all; }
/* Signing pages on the hand-over device: black surround, white logo, the letter on a white sheet. */
body.kiosk { background: #000; }
.kiosk-header { background: #000; border-bottom: 1px solid #2e2e2e; padding: 1.25rem 1rem; display: flex; justify-content: center; }
.kiosk-header .brand { padding: 0; } .kiosk-header .brand-logo { height: 44px; }
body.kiosk .kiosk-main > .alert { box-shadow: 0 0 0 1px #000; }
.kiosk-main { max-width: 820px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.letter-sheet { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 2.25rem; margin-bottom: 1.25rem; overflow: hidden; }
.letter-sheet.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.letter-logo { display: block; margin: 0 0 1.5rem auto; max-width: 60%; height: auto; }
/* The short confirmation and hand-back sheets rely on the logo in the page header; the letter keeps its letterhead. */
.letter-sheet.center .letter-logo, .letter-sheet.narrow .letter-logo { display: none; }
.letter-text { font-size: 1rem; line-height: 1.6; color: #000; }
.letter-text h2 { font-size: 1.08rem; margin: 1.3rem 0 .3rem; }
.letter-text p { margin: 0 0 .9rem; }
.letter-break { border: 0; border-top: 1px dashed var(--border-strong); margin: 1.75rem 0; }
.sign-card { margin-bottom: 1.25rem; }
.signature-pad { border: 2px dashed var(--border-strong); border-radius: var(--radius); background: #fff; }
.signature-pad canvas { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; }
.kiosk-exit { text-align: center; font-size: .8rem; margin-top: 2rem; }
.kiosk-exit a { color: #c9c9c9; }
.pin-input { max-width: 160px; }
.reasons-input { min-height: 130px; }
.desk-reason { width: 13rem; max-width: 100%; padding: .3rem .5rem; font-size: .85rem; }
.desk-actions { gap: .3rem; flex-wrap: wrap; }
@media (max-width: 600px) { .letter-sheet { padding: 1.25rem 1.1rem; } }
.group-members { max-height: 460px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: .6rem; }
.flow-group-list { max-height: 130px; }
