/* Colours = the WordCamp-ATH colour styles of the Figma file (Website.fig); type = Open Sans, as on the live site. */
:root {
	--bg: #faf8f2;      /* Page Background */
	--ink: #2b2b2b;     /* AlmostBlack-100 */
	--muted: #555555;   /* AlmostBlack-80 */
	--line: #eaeaea;    /* AlmostBlack-10 */
	--navy: #0d266b;    /* DarkBlue-100 */
	--blue: #1333a6;    /* AlternativeBlue-100 */
	--blue-20: #d0d6ed; /* AlternativeBlue-20 */
	--sky: #5091ff;     /* Primary-100 */
	--sky-20: #dae8fd;  /* LightBlue-20 */
	--band: #448ef6;    /* LightBlue-100, the skyline band */
	--turq: #1dd5bb;    /* Turquoise-100 */
	--turq-20: #d2f7f1; /* Turquoise-20 */
	/* scan results: functional green / amber / red, so volunteers read them at a glance */
	--ok: #0f9f6e;
	--warn: #e8a317;
	--bad: #c53b3e;
	--card: #fff;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(13, 38, 107, .06), 0 4px 16px rgba(13, 38, 107, .06);
	--gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	display: flex; flex-direction: column; min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.5 'Open Sans', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, .title { font-weight: 800; letter-spacing: -0.01em; color: var(--navy); }
h1 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.2rem); line-height: 1.15; }
h2 { font-size: 1.15rem; margin: 2.25rem 0 .9rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
code { overflow-wrap: anywhere; padding: 1px 6px; border-radius: 6px; background: var(--line); font-size: .9em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); font-size: .92rem; }
.small { font-size: .85rem; }
.error { color: var(--bad); font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); background: var(--navy); color: #fff; }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.brand img { height: 36px; }
.out { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 6px 14px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 99px; background: none; color: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; }
.out:hover { background: rgba(255, 255, 255, .12); }
.out .ico { width: 18px; height: 18px; }
.who-btn { margin-left: auto; }
@media (max-width: 480px) { .brand span { display: none; } }
/* phone: header buttons become icons */
@media (max-width: 600px) { .out { width: 36px; padding: 0; justify-content: center; } .out span { display: none; } }
/* Up (app-style back) + breadcrumbs: always show where you are and one tap back */
.up { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-left: -8px; border-radius: 50%; color: #fff; }
.up:hover { background: rgba(255, 255, 255, .12); }
.up .ico { width: 24px; height: 24px; }
/* station switcher: one tap to any station, sticky with the header */
.stations { border-bottom: 1px solid var(--line); background: #fff; }
.stations .wrap { display: flex; gap: 6px; padding-block: 6px; overflow-x: auto; scrollbar-width: none; }
.stations .wrap::-webkit-scrollbar { display: none; }
.stations a { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 38px; padding: 6px 14px; border-radius: 99px; color: var(--navy); font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none; }
.stations a:hover { background: var(--sky-20); }
.stations a[aria-current=page] { background: var(--navy); color: #fff; }
.stations .ico { width: 18px; height: 18px; }

/* breadcrumbs: the path, above the page (phones have the Up button and the station strip instead) */
.crumbs ol { display: flex; align-items: center; gap: 8px; margin: 0 auto; padding-top: 14px; list-style: none; overflow-x: auto; white-space: nowrap; font-size: .85rem; scrollbar-width: none; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '›'; color: var(--muted); font-size: 1.1em; }
.crumbs a { color: var(--blue); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); font-weight: 700; }
@media (max-width: 767px) { .crumbs { display: none; } }

/* now bar: what is on now / next per track, on every page; opens in place */
.nowbar { border-bottom: 1px solid #b6ebe2; background: var(--turq-20); }
.nb-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--navy); text-align: left; font-size: .9rem; cursor: pointer; }
.nb-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nb-text b { color: var(--blue); }
.nb-more { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--blue); font-weight: 700; }
.nb-more .ico { transition: transform .2s; }
.nb-line[aria-expanded=true] .nb-more .ico { transform: rotate(180deg); }
.nb-body { padding: 4px 0 14px; }
.nb-tracks { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.nb-track { display: grid; gap: 8px; align-content: start; }
.nb-track h3 { margin: 0; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.nb-item { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #b6ebe2; border-radius: 12px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.nb-item:hover { border-color: var(--sky); }
.nb-item.now { border: 2px solid var(--turq); }
.nb-item strong { color: var(--navy); line-height: 1.3; }
.nb-when { color: var(--muted); font-size: .78rem; font-weight: 700; }
.nb-item.now .nb-when { color: #0b7f6e; }
.nb-item.mine { box-shadow: inset 4px 0 0 var(--warn); }
.nb-who { color: var(--blue); font-size: .85rem; }
.nb-none { margin: 0; padding: 10px 12px; color: var(--muted); font-size: .85rem; }
.nb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .85rem; }
.nb-foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
/* phone: tracks stay side by side, compact, so the camera stays close */
@media (max-width: 640px) {
	.nb-more > span { display: none; }
	.nb-tracks, .nb-track { gap: 6px; }
	.nb-item { padding: 7px 9px; border-radius: 10px; }
	.nb-item strong { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.nb-when, .nb-who { font-size: .72rem; }
	.nb-body { padding-bottom: 10px; }
	.nb-foot > span { display: none; }
}

main { flex: 1; padding-top: 20px; padding-bottom: 72px; }
@media (max-width: 767px) { main { padding-top: 18px; padding-bottom: 48px; } }

/* Athens skyline band from the design (header-skyline-band-tile.svg, repeats sideways) */
.skyline { height: clamp(48px, 10.15vw, 120px); background: var(--band) url(/skyline.svg) center top / auto 100% repeat-x; }

/* page head: title, one line on what to do here */
.page-head { margin-bottom: 24px; }
.h-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--sky-20); color: var(--blue); }
.h-ico .ico { width: 26px; height: 26px; }
.lead { max-width: 70ch; margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }
.lead strong { color: var(--ink); }
@media (max-width: 767px) {
	.page-head { margin-bottom: 16px; }
	.h-ico { width: 38px; height: 38px; border-radius: 11px; }
	.h-ico .ico { width: 21px; height: 21px; }
	.lead { font-size: .95rem; }
	.page-head.compact .lead { display: none; } /* scan screens: the result box carries the instructions */
}

/* generic */
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
@media (max-width: 767px) { .card { padding: 16px; } }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px;
	background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--navy); }
.btn.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn.secondary:hover { background: var(--sky-20); }
.btn.danger { background: var(--bad); }
.btn.big { min-height: 60px; font-size: 1.1rem; }
.btn.sm { min-height: 40px; padding: 6px 16px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.link { padding: 0; border: 0; background: none; color: var(--blue); text-decoration: underline; cursor: pointer; }
label { display: block; font-weight: 600; color: var(--navy); }
label > input, label > select { margin-top: 6px; font-weight: 400; color: var(--ink); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--ink); cursor: pointer; }
label.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
input[type=text], input[type=search], input[type=password], select {
	width: 100%; min-height: 52px; padding: 10px 14px;
	border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--sky); }
input[type=file] { max-width: 100%; padding: 12px; border: 2px dashed var(--blue-20); border-radius: 12px; background: #fff; width: 100%; }
.search-wrap { position: relative; }
.search-wrap > .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap input { padding-left: 50px; }
.search-big { font-size: 1.2rem; min-height: 60px; }
.mini { margin: 0; padding-left: 1.3em; color: var(--muted); font-size: .92rem; }
.mini li + li { margin-top: 4px; }
.mini strong { color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--line); }
.tag.ok { background: #d5f5e8; color: #08694a; }
.tag.warn { background: #fdecc8; color: #8a5a00; }
.tag.bad { background: #f9d6d6; color: #8e1f22; }
.tag.print { background: var(--sky-20); color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.alert.bad { background: #f9d6d6; color: #8e1f22; }
.alert.warn { background: #fdecc8; color: #6b4600; }
.alert > .ico { margin-top: 2px; }
.dot { display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 50%; vertical-align: -1px; }
.dot.ok { background: var(--ok); }
.dot.dup { background: var(--warn); }
.dot.bad { background: var(--bad); }
.step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.1rem; }
.step b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 28px 12px; text-align: center; color: var(--muted); }
.empty > .ico { width: 40px; height: 40px; color: var(--sky); }
.empty p { margin: 0; max-width: 34ch; }

/* login */
.login { max-width: 440px; margin: 6vh auto 0; padding: 0; overflow: hidden; }
.login-head { display: flex; align-items: center; gap: 14px; padding: 22px; background: var(--navy); color: #fff; }
.login-head img { height: 52px; }
.login-head strong { display: block; font-size: 1.1rem; }
.login-head span { opacity: .8; font-size: .9rem; }
.login-body { display: grid; gap: 12px; padding: 22px; }
.login-body p { margin: 0; }

/* home: greeting, tips, station tiles */
.hello { margin-bottom: 14px; }
.hello .lead { margin-top: 6px; }
/* volunteer name: header button + popover, and a slim strip when it is missing */
.who-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 36px; padding: 3px 12px 3px 3px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 99px; background: none; color: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; }
.who-btn:hover { background: rgba(255, 255, 255, .12); }
.who-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--turq); color: var(--navy); font-weight: 800; }
.who-btn.missing { border-color: var(--warn); }
.who-btn.missing .who-av { background: var(--warn); }
.who-nm { max-width: 14ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 600px) { .who-btn { padding: 3px; } .who-nm { display: none; } }
.who-form { display: flex; gap: 8px; }
/* "Ποιος είσαι;" sheet: faces/initials to tap, search, or type a name */
.who-dlg { width: min(620px, calc(100vw - 24px)); }
.who-sheet { display: grid; gap: 14px; padding: 20px; }
.who-top { display: flex; align-items: center; justify-content: space-between; }
.who-top strong { color: var(--navy); font-size: 1.3rem; }
.who-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); max-height: 46vh; overflow: auto; padding: 2px; }
.who-grid > p { grid-column: 1 / -1; margin: 0; }
.who-card { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy); font-weight: 700; font-size: .9rem; line-height: 1.25; text-align: center; cursor: pointer; }
.who-card:hover, .who-card:focus-visible { border-color: var(--sky); }
.who-card.on { border-color: var(--turq); background: var(--turq-20); }
.who-card img, .who-init { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.who-init { display: grid; place-items: center; background: var(--sky-20); color: var(--blue); font-size: 1.1rem; font-weight: 800; }
.who-other { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.who-other label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.who-other input.shake { animation: shake .4s; border-color: var(--warn); }
@media (max-width: 480px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 42vh; } .who-sheet { padding: 16px; } }
.who-form input { flex: 1; min-width: 0; min-height: 44px; }
.who-form.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .who-form.shake { animation: none; } }
.whobar { border-bottom: 1px solid #f3d9a4; background: #fdf3dc; }
.whobar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 8px; }
.wb-text { display: flex; align-items: center; gap: 8px; color: #6b4600; font-size: .92rem; }
.wb-text strong { color: var(--navy); }
.whobar .who-form { flex: 1 1 280px; max-width: 420px; }
.wait-name { display: flex; align-items: center; gap: 14px; max-width: 560px; }
.wait-name > .ico { width: 32px; height: 32px; color: var(--warn); }
.wait-name p { margin: 0; }
.tips { margin-bottom: 18px; }
.tips summary { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 0; color: var(--blue); font-weight: 700; cursor: pointer; list-style: none; }
.tips summary::-webkit-details-marker { display: none; }
.tips summary .ico:last-child { width: 18px; height: 18px; transition: transform .2s; }
.tips[open] summary .ico:last-child { transform: rotate(180deg); }
.tips .how { margin-top: 10px; }
.how { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.how li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.how b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9rem; }
.how strong { color: var(--navy); }
.how .dot { margin: 0 4px 0 6px; }
@media (max-width: 899px) { .how { grid-template-columns: 1fr; gap: 8px; } .how li { padding: 10px 14px; align-items: center; } }

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
	display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 22px;
	border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--navy); text-decoration: none;
	box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13, 38, 107, .14); }
.tile:active { transform: scale(.98); }
.tile-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--sky-20); color: var(--blue); }
.tile-ico .ico { width: 26px; height: 26px; }
.tile-text { display: flex; flex-direction: column; gap: 4px; }
.tile .title { font-size: 1.2rem; color: inherit; }
.tile .desc { font-size: .95rem; line-height: 1.45; opacity: .85; }
.chip { margin-top: auto; align-self: flex-start; padding: 4px 12px; border-radius: 99px; background: rgba(13, 38, 107, .08); font-size: .8rem; font-weight: 700; }
.t-desk { background: var(--navy); border-color: var(--navy); color: #fff; }
.t-kiosk { background: var(--blue); border-color: var(--blue); color: #fff; }
.t-desk .tile-ico, .t-kiosk .tile-ico { background: rgba(255, 255, 255, .14); color: #fff; }
.t-desk .chip, .t-kiosk .chip { background: rgba(255, 255, 255, .16); }
.t-entry { background: var(--turq); border-color: var(--turq); }
.t-swag { background: var(--sky-20); border-color: var(--sky-20); }
.t-booth { background: var(--turq-20); border-color: var(--turq-20); }
.t-food { background: var(--blue-20); border-color: var(--blue-20); }
.t-entry .tile-ico, .t-swag .tile-ico, .t-booth .tile-ico, .t-food .tile-ico { background: rgba(255, 255, 255, .7); color: var(--navy); }
/* phone: two big tap targets per row, short text */
@media (max-width: 559px) {
	.hello { margin-bottom: 12px; }
	.tiles { gap: 10px; }
	.tile { gap: 8px; min-height: 168px; padding: 14px; border-radius: 16px; }
	.tile-ico { width: 40px; height: 40px; border-radius: 12px; }
	.tile-ico .ico { width: 22px; height: 22px; }
	.tile .title { font-size: 1rem; line-height: 1.2; }
	.tile .desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; line-height: 1.35; }
	.chip { padding: 3px 9px; font-size: .7rem; }
}

/* scanner */
.scan-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cam-wrap { position: relative; }
.cam { width: 100%; aspect-ratio: 1; max-height: max(260px, calc(100vh - 420px)); overflow: hidden; /* camera + its button bar fit the screen */ border-radius: var(--radius); background: #111; }
.cam video { width: 100% !important; height: 100% !important; object-fit: cover; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cam-hint { color: var(--muted); font-size: .9rem; }
.scan-side { display: grid; gap: 16px; }
.manual h2 { margin: 0 0 4px; font-size: 1.05rem; }
.manual .muted { margin: 0 0 12px; }

.result { min-height: 220px; padding: 22px; border: 2px dashed var(--blue-20); border-radius: var(--radius); background: #fff; }
.result p { margin: 6px 0 0; }
.result .status { display: flex; align-items: center; gap: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.result .status .ico { width: 22px; height: 22px; stroke-width: 3; }
.result .name { margin: 6px 0 4px; font-weight: 800; font-size: 1.7rem; line-height: 1.2; overflow-wrap: anywhere; }
.result .big-info { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.result.ok { border: 0; background: var(--ok); color: #fff; }
.result.dup { border: 0; background: var(--warn); color: #241a00; }
.result.bad { border: 0; background: var(--bad); color: #fff; }
.result .btn.secondary { border: 0; background: rgba(255, 255, 255, .92); }
.result .food-alert { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--bad); font-weight: 800; }
.result-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; font-size: .9rem; }
.idle { display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--muted); }
.idle > .ico { width: 44px; height: 44px; color: var(--sky); }
.idle > strong { color: var(--navy); font-size: 1.15rem; }
.legend { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; text-align: left; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend strong { color: var(--ink); }
@media (max-width: 767px) {
	/* phone: camera, then the result right under it without scrolling */
	.scan-layout { grid-template-columns: 1fr; gap: 12px; }
	.cam { max-height: 34vh; }
	.cam-bar { position: absolute; right: 8px; bottom: 8px; margin: 0; }
	.cam-hint { display: none; }
	.cam-bar .btn { border: 0; background: rgba(255, 255, 255, .92); }
	.result { min-height: 0; padding: 16px; }
	.result .name { font-size: 1.35rem; }
	.result .big-info { font-size: 2rem; }
	.idle { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 4px 12px; text-align: left; }
	.idle > .ico { width: 30px; height: 30px; }
	.legend { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 4px 14px; font-size: .82rem; }
}

.results { display: grid; gap: 8px; margin-top: 12px; }
.results:empty { display: none; }
.res {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
	padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer;
}
.res > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.res > span:last-child { flex: none; }
.res:hover, .res:focus, .res.sel { border-color: var(--sky); outline: none; }
.res.sel { background: #f5f9ff; }
.res.inactive { opacity: .55; }
.res strong { font-size: 1.1rem; color: var(--navy); }
.res-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.res-main .muted { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.res-main .ico { width: 15px; height: 15px; }
.res-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: none; max-width: 45%; }

/* registration desk */
.desk-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 899px) { .desk-layout { grid-template-columns: 1fr; gap: 16px; } }
.desk-layout .muted { margin: 10px 0 0; }
.desk-cam-wrap { display: grid; justify-items: center; gap: 6px; margin-bottom: 12px; }
.desk-cam { max-width: 320px; max-height: 320px; }
.detail-card { container-type: inline-size; scroll-margin-top: calc(var(--head-h, 110px) + 12px); }
#print-status .dot { margin: 0 4px 0 0; }
.print-to { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.print-to legend { margin-bottom: 6px; color: var(--navy); font-weight: 700; }
/* phone at the desk: camera, then a big search; a scan or a pick jumps to the card */
@media (max-width: 899px) {
	.desk-cam { max-height: 34vh; }
	.desk-layout .search-big { min-height: 64px; font-size: 1.25rem; }
	.badge-no .bn-num { font-size: 3rem; }
	.person-name { font-size: 1.6rem; }
}
/* print station */
.station { display: grid; gap: 14px; }
.st-cols { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .st-cols { grid-template-columns: 1fr; } }
.st-cols h2 { display: flex; align-items: center; gap: 8px; }
.st-list { display: grid; gap: 8px; }
.st-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.st-list .st-row:first-child { border-color: var(--turq); }
.st-num { color: var(--blue); font-size: 1.2rem; font-weight: 800; }
.st-name { display: grid; flex: 1; min-width: 0; color: var(--navy); font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.st-name small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-bottom: 16px; }
.filters .search-wrap { grid-column: span 2; }
@media (max-width: 480px) { .filters .search-wrap { grid-column: auto; } }
.log-table td { vertical-align: top; }
.st-now { padding: 22px; border-radius: 14px; background: var(--sky-20); color: var(--navy); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 700; text-align: center; }
/* toast: short confirmation that does not move the page */
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 12px 32px rgba(13, 38, 107, .35); transform: translate(-50%, 150%); transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }
.toast .tag { margin-left: 6px; }
.edit { display: grid; gap: 10px; }
.edit p { margin: 0; }
.edit-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.person > .row { margin-top: 10px; }
.group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.group > p { margin: 0 0 12px; }
.group-list { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.group-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.group-item:hover { border-color: var(--sky); }
.group-item.cur { border-color: var(--navy); background: var(--sky-20); cursor: default; }
.group-item strong { color: var(--navy); }
.detail-grid { display: grid; gap: 20px; }
@container (min-width: 600px) { .detail-grid { grid-template-columns: minmax(280px, 1fr) minmax(0, auto); align-items: start; } }
/* badge number = CampTix ticket number: what the volunteer looks for in the box of pre-printed badges */
.badge-no { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: var(--line); color: var(--navy); }
.badge-no.ready { background: var(--turq-20); box-shadow: inset 0 0 0 2px var(--turq); }
.bn-label { width: 100%; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bn-num { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.bn-state { color: var(--muted); font-size: .9rem; }
.person-name { font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.person .muted { margin: 6px 0 0; }
.person .row { margin-top: 10px; }
#desk-msg { margin: 12px 0 0; }
#desk-msg:empty { display: none; }
.preview-fig { margin: 0; min-width: 0; }
.preview-fig figcaption { margin-top: 8px; text-align: center; color: var(--muted); font-size: .85rem; }
.preview { display: flex; justify-content: safe center; padding: 18px; overflow: auto; border-radius: var(--radius); background: var(--line); }
.preview .label { flex: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
@media (max-width: 480px) { .preview .label { zoom: .7; } } /* the whole sticker in view on a phone */
.printer { margin-top: 24px; padding: 0; }
.printer summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; color: var(--navy); }
.printer summary::-webkit-details-marker { display: none; }
.printer summary > span:last-child { margin-left: auto; color: var(--blue); text-decoration: underline; font-size: .9rem; }
.printer[open] summary > span:last-child { visibility: hidden; }
.printer-body { display: grid; gap: 14px; max-width: 640px; padding: 0 20px 20px; }

/* kiosk */
body.kiosk-mode .top, body.kiosk-mode .skyline, body.kiosk-mode .nowbar, body.kiosk-mode .crumbs { display: none; }
body.kiosk-mode main { max-width: none; padding: 0; }
/* Always exactly one screen (tablet on a stand, either orientation): the camera takes what is left. */
.kiosk {
	position: relative; height: 100vh; height: 100dvh; display: grid; grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr); gap: 18px;
	padding: 28px 28px calc(28px + clamp(64px, 8vw, 110px)); background: var(--navy); color: #fff; text-align: center;
}
.kiosk::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(64px, 8vw, 110px); background: var(--band) url(/skyline.svg) center top / auto 100% repeat-x; }
.kiosk img.logo { height: 90px; margin: 0 auto; }
.kiosk .cam { width: auto; height: 100%; max-width: min(520px, 100%); max-height: none; margin: 0 auto; border: 6px solid var(--turq); }
.kiosk .prompt { font-weight: 800; font-size: clamp(1.3rem, 3vw, 2.2rem); }
.kiosk .prompt small { display: block; font-weight: 400; font-size: .55em; opacity: .85; margin-top: 6px; }
.kiosk .msg { min-height: 120px; display: grid; place-items: center; border-radius: var(--radius); font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 800; padding: 16px; }
.kiosk .msg small { font-weight: 400; }
.kiosk .msg.ok { background: var(--ok); }
.kiosk .msg.dup { background: var(--turq); color: var(--navy); }
.kiosk .msg.bad { background: var(--bad); }
.kiosk .exit { position: fixed; top: 8px; right: 8px; z-index: 1; opacity: .25; color: #fff; }
@media (max-width: 767px) {
	.kiosk { padding: 20px 16px calc(20px + 64px); gap: 14px; }
	.kiosk img.logo { height: 64px; }
	.kiosk .msg { min-height: 96px; }
}

/* stats */
.stat-groups { display: grid; gap: 22px; }
.stat-group h3 { margin: 0 0 10px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.stat.today { border-color: var(--turq); box-shadow: inset 0 0 0 1px var(--turq), var(--shadow); }
.stat .n { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--navy); }
.stat .n small { font-size: .95rem; color: var(--blue); }
.stat .l { margin-top: 4px; color: var(--muted); font-size: .85rem; }
.stat .l strong { color: var(--ok); }
.bar { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: var(--line); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--turq); }
@media (max-width: 380px) { .stats { gap: 10px; } .stat { padding: 12px; } .stat .n { font-size: 1.6rem; } }
.table-card { padding: 0; overflow-x: auto; }
@media (max-width: 600px) { .recent-table tr > :nth-child(4) { display: none; } th, td { padding: 10px; } }

/* admin: the event flow as numbered steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; } }
.step-card { display: flex; flex-direction: column; gap: 12px; }
.step-card > * { margin: 0; }
.step-card .step { margin: 0; }
.staff-qr { max-width: 240px; }
.staff-qr:empty { display: none; }
.staff-qr p { margin: 8px 0 0; }
.live-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.live-link p { margin: 0; }

/* programme */
.sched-now { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; border-radius: 18px; background: var(--navy); color: #fff; }
.sched-now h2 { margin: 0 0 10px; color: var(--turq); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }
.sched-now p { margin: 0; opacity: .85; }
.sched-now > div { display: grid; gap: 8px; align-content: start; }
.now-item { display: grid; gap: 2px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; text-align: left; cursor: pointer; }
.now-item:hover { background: rgba(255, 255, 255, .18); }
.now-item strong { font-size: 1.05rem; line-height: 1.3; }
.now-item > span { font-size: .85rem; opacity: .85; }
.now-item .now-when { color: var(--turq); font-weight: 700; opacity: 1; }
@media (max-width: 767px) { .sched-now { grid-template-columns: 1fr; padding: 16px; } }
.day-tabs { display: flex; gap: 8px; margin: 22px 0 14px; overflow-x: auto; }
.day-tabs button { flex: none; min-height: 44px; padding: 8px 18px; border: 2px solid var(--blue-20); border-radius: 99px; background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.day-tabs [aria-selected=true] { border-color: var(--blue); background: var(--blue); color: #fff; }
.day-tabs .today::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.track-head, .slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.track-head > div, .slot-talks { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: row dense; }
.track-head { position: sticky; top: var(--head-h, 0px); z-index: 2; padding: 8px 0; background: var(--bg); color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.slots { display: grid; gap: 10px; margin-bottom: 18px; }
.slot-time { padding-top: 12px; color: var(--navy); font-weight: 800; }
.talk-card {
	display: grid; gap: 4px; align-content: start; width: 100%; height: 100%; min-width: 0; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow);
}
.talk-card:hover { border-color: var(--sky); }
.talk-card strong { color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.tc-speakers { color: var(--blue); font-size: .9rem; font-weight: 600; }
.talk-card.brk { background: transparent; box-shadow: none; border-style: dashed; }
.talk-card.brk strong { color: var(--muted); }
.talk-card.past { opacity: .5; }
.talk-card.now { border: 2px solid var(--turq); background: var(--turq-20); }
.talk-card.next { border: 2px solid var(--sky); }
/* my programme: star one talk per time; the starred one gets an amber edge, the ones it rules out fade */
.talk-slot { position: relative; grid-column: var(--col); min-width: 0; }
.talk-card.pickable { padding-right: 48px; }
.star { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.star:hover { background: var(--sky-20); color: var(--navy); }
.star .ico { width: 22px; height: 22px; }
.star.on { color: var(--warn); }
.star.on .ico, .seg .ico, [data-star].btn:not(.secondary) .ico { fill: currentColor; }
.talk-slot.mine .talk-card { box-shadow: inset 5px 0 0 var(--warn), var(--shadow); }
.talk-slot.skip .talk-card { opacity: .5; }
.mine-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; }
.mine-bar p { margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border: 0; border-radius: 99px; background: none; color: var(--navy); font-weight: 700; cursor: pointer; }
.seg .ico { width: 16px; height: 16px; color: var(--warn); }
.seg [aria-selected=true] { background: #fff; box-shadow: var(--shadow); }
.mine-bar + .day-tabs { margin-top: 14px; }
@media (max-width: 480px) { .seg { display: flex; width: 100%; } .seg button { flex: 1; justify-content: center; padding: 6px 8px; font-size: .85rem; white-space: nowrap; } }
.pick-row { display: grid; gap: 6px; grid-column: 1 / -1; padding: 10px 12px; border: 2px dashed var(--blue-20); border-radius: 12px; }
.pick-row > span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pick-opt { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); text-align: left; cursor: pointer; }
.pick-opt:hover { border-color: var(--warn); }
.pick-opt .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.pick-opt b { color: var(--blue); }
.badge { flex: none; padding: 2px 10px; border-radius: 99px; background: var(--line); color: var(--navy); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge.now { background: var(--turq); }
.badge.next { background: var(--sky); color: #fff; }
@media (max-width: 640px) {
	.track-head { display: none; }
	.slot { grid-template-columns: 1fr; gap: 6px; }
	.slot-time { padding-top: 6px; }
	.slot-talks { grid-template-columns: 1fr; }
	.talk-slot { grid-column: auto; }
}

/* session popup */
.talk { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(13, 38, 107, .35); }
.talk::backdrop { background: rgba(13, 38, 107, .55); }
.talk-body { padding: 22px; }
.talk-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.talk-x { display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -6px 0 auto; border: 0; border-radius: 50%; background: var(--line); color: var(--navy); cursor: pointer; }
.talk-meta { margin: 8px 0 4px; color: var(--blue); font-weight: 700; font-size: .9rem; }
.talk h2 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.25; }
.talk-text p, .speaker-bio p { margin: 0 0 8px; }
.speaker { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.speaker img, .speaker-init { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.speaker-init { display: grid; place-items: center; background: var(--sky-20); color: var(--blue); font-weight: 800; }
.speaker strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 1.05rem; }
.speaker-bio { color: var(--muted); font-size: .92rem; }
@media (max-width: 480px) { .talk-body { padding: 18px; } .speaker { grid-template-columns: 48px minmax(0, 1fr); } .speaker img, .speaker-init { width: 48px; height: 48px; } }

/* ---------- labels (badges) ----------
   Size comes from --w / --h (and scale --s) set inline. Black only: thermal printers have no colour. */
.label {
	width: var(--w); height: var(--h); background: #fff; color: #000; overflow: hidden; position: relative;
	display: flex; flex-direction: column; padding: 4em; gap: 1.5em;
	font-family: 'Open Sans', sans-serif;
	font-size: calc(var(--s, 1) * 1mm); /* every size below is in mm × scale */
	line-height: 1.45;
}
.label .l-first, .label .l-last { max-width: 100%; overflow: hidden; }
.label .l-first { font-weight: 800; font-size: 11em; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.label .l-last { font-size: 6em; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.label .l-company { font-size: 3.6em; line-height: 1.2; }
.label .l-user { font-size: 3.2em; }
.label .l-qr { width: 26em; height: 26em; }
.label .l-qr svg { width: 100%; height: 100%; display: block; }
.label .l-ticket { font-size: 2.8em; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.label .l-ticket.inverse { background: #000; color: #fff; padding: .6em 2em; align-self: flex-start; }
.label .l-code { font-size: 4.2em; font-weight: 800; line-height: 1.1; } /* badge number: sort and find pre-printed badges by it */
.label .l-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 3em; }
.label .l-text { min-width: 0; overflow: hidden; }

.label.portrait .l-bottom { flex-direction: column; align-items: center; text-align: center; }
.label.portrait .l-qr { width: 30em; height: 30em; }
.label.small { padding: 2.5em; flex-direction: row; gap: 3em; align-items: center; }
.label.small .l-first { font-size: 7em; }
.label.small .l-last { font-size: 4em; }
.label.small .l-company, .label.small .l-user { font-size: 2.6em; }
.label.small .l-qr { width: 24em; height: 24em; flex: none; margin-left: auto; }
.label.small .l-text { flex: 1; }
.label.small .l-meta { display: none; }
.label.small .l-bottom { display: contents; }
/* landscape sticker (100×62): name on one line, QR on the right */
.label.wide { flex-direction: row; align-items: center; gap: 4em; padding: 4em 4.5em; }
.label.wide .l-main { display: flex; flex-direction: column; gap: 2em; flex: 1; min-width: 0; }
.label.wide .l-first { font-size: 9em; }
.label.wide .l-company { font-size: 4em; }
.label.wide .l-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5em 3em; }
.label.wide .l-code { font-size: 4.5em; }
.label.wide .l-qr { width: 36em; height: 36em; flex: none; }

/* laid out off-screen (not display:none) so names can be measured and shrunk to fit */
#print-root { position: fixed; left: -10000px; top: 0; }
@media print {
	body { background: #fff; display: block; min-height: 0; }
	body > *:not(#print-root) { display: none !important; }
	#print-root { position: static; }
	#print-root > .label, #print-root > .sheet { break-after: page; page-break-after: always; box-shadow: none; }
	#print-root > :last-child { break-after: auto; page-break-after: auto; }
}
/* A4 sticker sheet: labels placed in mm from the sheet corner */
.sheet { position: relative; width: 210mm; height: 297mm; overflow: hidden; background: #fff; }
.sheet .cell { position: absolute; }
.sheet-head { position: absolute; top: 5mm; left: 0; right: 0; text-align: center; font: 600 2.6mm 'Open Sans', sans-serif; color: #666; }
/* on-screen preview: real A4 pages, scaled to fit; dashed lines = where the label sheet is cut */
.sheet-preview { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.sheet-preview .sheet { zoom: .42; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.sheet-preview .cell { outline: .3mm dashed #c8c8c8; }
@media (min-width: 768px) { .sheet-preview .sheet { zoom: .6; } }