/* ==========================================================================
   RegDesk design system
   Brand colours are injected per event as --rd-brand / --rd-accent (+ derived
   *-ink, *-soft, *-strong, *-text). Everything else is neutral and shared.
   ========================================================================== */

:root {
	/* Neutrals */
	--rd-ink: #14212b;
	--rd-ink-2: #3b4952;
	--rd-muted: #61707b;
	--rd-line: #e2e8ec;
	--rd-line-2: #eef2f4;
	--rd-bg: #f5f8f7;
	--rd-surface: #ffffff;
	--rd-surface-2: #fafcfb;

	/* Status */
	--rd-ok: #17784b;
	--rd-ok-soft: #e8f6ee;
	--rd-warn: #b7791f;
	--rd-warn-ink: #7a4f00;
	--rd-warn-soft: #fff7e6;
	--rd-err: #b42318;
	--rd-err-soft: #fdecea;

	/* Brand fallbacks (overridden inline per event) */
	--rd-brand: #244532;
	--rd-brand-ink: #ffffff;
	--rd-brand-strong: #1d3829;
	--rd-brand-soft: #e9ecea;
	--rd-brand-text: #244532;
	--rd-accent: #a6ee00;
	--rd-accent-ink: #14212b;
	--rd-accent-soft: #eefbcc;

	/* Type */
	--rd-font: "Inter", "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rd-fs-xs: 12.5px;
	--rd-fs-sm: 14px;
	--rd-fs-md: 16px;
	--rd-fs-lg: 18px;
	--rd-fs-xl: 22px;
	--rd-fs-2xl: clamp(26px, 3.2vw, 34px);

	/* Shape & space */
	--rd-r-sm: 8px;
	--rd-r: 12px;
	--rd-r-lg: 16px;
	--rd-shadow-sm: 0 1px 3px rgba(20, 33, 43, .08);
	--rd-shadow: 0 4px 18px rgba(20, 33, 43, .07);
	--rd-shadow-lg: 0 10px 34px rgba(20, 33, 43, .16);
	--rd-ring: 0 0 0 4px color-mix(in srgb, var(--rd-brand) 18%, transparent);
	--rd-gutter: clamp(16px, 3vw, 28px);
	--rd-max: 1040px;
	--rd-max-narrow: 960px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--rd-bg); }
body {
	margin: 0;
	min-height: 100vh;
	background: var(--rd-bg);
	color: var(--rd-ink);
	font: 400 var(--rd-fs-md)/1.55 var(--rd-font);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--rd-brand-text); text-underline-offset: 3px; }
a:hover { color: var(--rd-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rd-brand) 45%, transparent); outline-offset: 2px; }
.screen-reader-text, .rd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.rd-skip { position: absolute; left: -9999px; top: 8px; background: var(--rd-ink); color: #fff; padding: 8px 12px; border-radius: var(--rd-r-sm); z-index: 1000; }
.rd-skip:focus { left: 8px; }
.rd-icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.15em; }
kbd { font: 600 12px/1 var(--rd-font); background: var(--rd-surface); border: 1px solid var(--rd-line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--rd-ink-2); }

/* ---------- Layout ---------- */
.rd-main { padding: clamp(20px, 4vw, 40px) 0 64px; }
.rd-container { width: 100%; max-width: calc(var(--rd-max) + 2 * var(--rd-gutter)); margin: 0 auto; padding: 0 var(--rd-gutter); }
.rd-container--narrow { max-width: calc(var(--rd-max-narrow) + 2 * var(--rd-gutter)); }
.rd-stack > * + * { margin-top: 20px; }
.rd-center { text-align: center; }

/* ---------- Header / footer ---------- */
.rd-header { background: var(--rd-surface); border-bottom: 1px solid var(--rd-line); }
.rd-header--brand { background: var(--rd-brand); border-bottom-color: transparent; color: var(--rd-brand-ink); }
.rd-header__inner { max-width: calc(var(--rd-max) + 2 * var(--rd-gutter)); margin: 0 auto; padding: 14px var(--rd-gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.rd-app .rd-header__inner { justify-content: center; }
.rd-logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.rd-logo__img { display: block; width: auto; height: auto; max-height: var(--rd-logo-h, 64px); max-width: min(480px, 70vw); object-fit: contain; }
/* Pages use the narrow column: line the header and footer up with it. */
body.page:not(.rd-app):not(.rd-wide) .rd-header__inner, body.error404 .rd-header__inner,
body.page:not(.rd-app):not(.rd-wide) .rd-footer__inner, body.error404 .rd-footer__inner,
body.page:not(.rd-app):not(.rd-wide) .rd-footer__widgets, body.error404 .rd-footer__widgets { max-width: calc(var(--rd-max-narrow) + 2 * var(--rd-gutter)); }
.rd-logo--text { font-weight: 700; font-size: var(--rd-fs-xl); letter-spacing: -.01em; }
.rd-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.rd-nav a { display: block; padding: 8px 12px; border-radius: var(--rd-r-sm); text-decoration: none; color: inherit; font-weight: 600; font-size: var(--rd-fs-sm); }
.rd-nav a:hover, .rd-nav .current-menu-item > a { background: color-mix(in srgb, currentColor 8%, transparent); }
.rd-footer { border-top: 1px solid var(--rd-line); padding: 28px 0; color: var(--rd-muted); font-size: var(--rd-fs-sm); }
.rd-footer__inner { max-width: calc(var(--rd-max) + 2 * var(--rd-gutter)); margin: 0 auto; padding: 0 var(--rd-gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rd-footer__nav ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.rd-footer a { color: inherit; }
.rd-footer__credit { margin: 0; }
/* Footer widgets (Appearance → Widgets): up to three columns above the credit line. */
.rd-footer__widgets { max-width: calc(var(--rd-max) + 2 * var(--rd-gutter)); margin: 0 auto 24px; padding: 0 var(--rd-gutter); display: grid; gap: 24px 40px; grid-template-columns: repeat(var(--rd-cols, 1), minmax(0, 1fr)); align-items: start; }
.rd-footer__widgets::after { content: ""; grid-column: 1 / -1; border-bottom: 1px solid var(--rd-line); }
.rd-footer__widgets--2 { --rd-cols: 2; }
.rd-footer__widgets--3 { --rd-cols: 3; }
.rd-footer__col--footer-3 { text-align: right; }
.rd-footer__widgets--1 .rd-footer__col { text-align: left; }
.rd-widget + .rd-widget { margin-top: 16px; }
.rd-widget p { margin: 0 0 .6em; }
.rd-widget p:last-child { margin-bottom: 0; }
.rd-widget img { max-width: 100%; height: auto; }
.rd-widget .wp-block-image { margin: 0; }
.rd-widget__title, .rd-widget h2, .rd-widget h3 { margin: 0 0 8px; font-size: var(--rd-fs-sm); font-weight: 700; color: var(--rd-ink); }
.rd-widget ul { list-style: none; margin: 0; padding: 0; }
.rd-widget li + li { margin-top: 4px; }
@media (max-width: 720px) {
	.rd-footer__widgets { grid-template-columns: 1fr; }
	.rd-footer__col--footer-3 { text-align: left; }
}

/* ---------- Type ---------- */
.rd-pagehead { margin-bottom: 4px; }
.rd-title { font-size: var(--rd-fs-2xl); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 6px; }
.rd-title a { color: inherit; text-decoration: none; }
.rd-eventmeta { margin: 0; color: var(--rd-muted); font-weight: 500; }
.rd-eyebrow { font-size: var(--rd-fs-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--rd-muted); font-weight: 700; margin: 0 0 10px; }
.rd-prose > :first-child { margin-top: 0; }
.rd-prose > :last-child { margin-bottom: 0; }
.rd-prose h2 { font-size: var(--rd-fs-xl); margin: 1.6em 0 .5em; }
.rd-prose h3 { font-size: var(--rd-fs-lg); margin: 1.4em 0 .4em; }

/* ---------- Surfaces ---------- */
.rd-card { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--rd-shadow-sm); }

/* ---------- Controls ---------- */
.rd-btn, .rd-prose .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 700 var(--rd-fs-sm)/1 var(--rd-font); letter-spacing: 0; text-transform: none; text-decoration: none;
	background: var(--rd-brand); color: var(--rd-brand-ink); border: 1px solid transparent; border-radius: 10px;
	padding: 11px 18px; min-height: 42px; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s;
}
.rd-btn:hover, .rd-prose .wpcf7-submit:hover { background: var(--rd-brand-strong); color: var(--rd-brand-ink); }
.rd-btn:disabled { opacity: .5; cursor: wait; }
.rd-btn--ghost { background: var(--rd-surface); color: var(--rd-ink); border-color: var(--rd-line); }
.rd-btn--ghost:hover { background: var(--rd-surface-2); color: var(--rd-ink); border-color: #c8d2d8; }
.rd-btn--warn { background: var(--rd-warn); color: #fff; }
.rd-btn--warn:hover { background: #9a6519; color: #fff; }
.rd-btn--sm { min-height: 34px; padding: 7px 14px; }
.rd-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--rd-muted); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.rd-linkbtn:hover { color: var(--rd-ink); }

.rd-input, .rd-prose input[type="text"], .rd-prose input[type="email"], .rd-prose input[type="tel"], .rd-prose input[type="number"], .rd-prose input[type="url"], .rd-prose select, .rd-prose textarea {
	width: 100%; font: 400 var(--rd-fs-md)/1.3 var(--rd-font); color: var(--rd-ink);
	background: var(--rd-surface); border: 1.5px solid #d3dce1; border-radius: 10px; padding: 11px 14px; min-height: 44px;
	transition: border-color .15s, box-shadow .15s;
}
.rd-input:focus, .rd-prose input:focus, .rd-prose select:focus, .rd-prose textarea:focus { outline: none; border-color: var(--rd-brand); box-shadow: var(--rd-ring); }
.rd-input--sm { min-height: 36px; padding: 7px 12px; font-size: var(--rd-fs-sm); width: auto; min-width: 200px; }

/* Contact Form 7 */
.rd-prose .wpcf7-form p { margin: 0 0 16px; }
.rd-prose .wpcf7-form label { display: block; font-weight: 600; font-size: var(--rd-fs-sm); color: var(--rd-ink-2); }
.rd-prose .wpcf7-form label .wpcf7-form-control-wrap { display: block; margin-top: 6px; font-weight: 400; }
.rd-prose .wpcf7-list-item { margin: 0 14px 6px 0; }
.rd-prose .wpcf7-not-valid { border-color: var(--rd-err) !important; }
.rd-prose .wpcf7-not-valid-tip { color: var(--rd-err); font-size: var(--rd-fs-sm); margin-top: 4px; }
.rd-prose .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; border-width: 1px; }

/* Registration form layout (two columns on wider screens) */
.rd-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.rd-field { grid-column: 1 / -1; margin: 0 0 16px; }
.rd-field--half { grid-column: auto; }
.rd-field--submit { margin-top: 8px; }
.rd-prose .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.rd-prose .wpcf7-acceptance label { display: inline-flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--rd-ink); }
.rd-prose input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--rd-brand); }
@media (max-width: 560px) { .rd-fields { grid-template-columns: 1fr; } .rd-field--half { grid-column: 1 / -1; } }

/* Tabs */
.rd-tabs { display: inline-flex; gap: 4px; background: #dfe8e3; border: 1px solid #d2ddd7; padding: 4px; border-radius: var(--rd-r); }
.rd-tab { border: 0; background: none; font: 600 15px/1 var(--rd-font); color: var(--rd-ink-2); padding: 10px 16px; border-radius: 9px; cursor: pointer; }
.rd-tab:hover { background: rgba(255, 255, 255, .75); color: var(--rd-ink); }
.rd-tab.is-on { background: var(--rd-surface); color: var(--rd-brand-text); font-weight: 700; box-shadow: 0 1px 4px rgba(20, 33, 43, .2); }

/* Chips */
.rd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-chip { border: 1px solid var(--rd-line); background: var(--rd-surface); font: 600 13px/1 var(--rd-font); color: var(--rd-muted); padding: 8px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.rd-chip:hover { border-color: #b9c5cc; color: var(--rd-ink); }
.rd-chip.is-on { border-color: var(--rd-brand); color: var(--rd-brand-text); background: var(--rd-brand-soft); }
.rd-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Alerts & toasts */
.rd-alert { display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--rd-warn-soft); border: 1px solid #f2d9a6; color: var(--rd-warn-ink); border-radius: var(--rd-r); padding: 12px 16px; margin-bottom: 12px; font-size: 15px; }
.rd-alert.is-on { display: flex; }
.rd-alert.is-err { background: var(--rd-err-soft); border-color: #f5c2bc; color: var(--rd-err); }
.rd-alert__actions { display: flex; gap: 8px; }
.rd-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--rd-ink); color: #fff; padding: 12px 18px; border-radius: var(--rd-r); font-size: 15px; transition: all .25s; z-index: 100; pointer-events: none; max-width: 90vw; box-shadow: var(--rd-shadow-lg); }
.rd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Password gate */
.rd-lock { max-width: 420px; margin: 6vh auto 0; text-align: center; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); padding: 36px 28px; box-shadow: var(--rd-shadow); }
.rd-lock__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--rd-brand-soft); color: var(--rd-brand-text); font-size: 24px; }
.rd-lock__title { margin: 0 0 6px; font-size: var(--rd-fs-xl); }
.rd-lock__text { margin: 0 0 20px; color: var(--rd-muted); }
.rd-lock__row { display: flex; gap: 8px; }

/* Registration confirmation ([regdesk_confirmation]) */
.rd-confirm__head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.rd-confirm__tick { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--rd-ok-soft); color: var(--rd-ok); font-size: 26px; font-weight: 700; }
.rd-confirm__title { margin: 0 0 2px; font-size: var(--rd-fs-xl); }
.rd-confirm__sub { margin: 0; color: var(--rd-muted); }
.rd-confirm__grid { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 28px; align-items: start; }
.rd-confirm__codes { background: var(--rd-surface-2); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); padding: 20px; text-align: center; }
.rd-confirm__qr { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto 12px; background: #fff; border-radius: 8px; image-rendering: pixelated; }
.rd-confirm__ticket { margin: 0 0 12px; display: grid; gap: 2px; }
.rd-confirm__ticket span { font-size: var(--rd-fs-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--rd-muted); font-weight: 700; }
.rd-confirm__ticket strong { font-size: 22px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.rd-confirm__barcode { display: block; width: 100%; height: 56px; background: #fff; }
.rd-confirm__cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--rd-fs-sm); padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--cat) 14%, #fff); color: var(--rd-ink); margin-bottom: 14px; }
.rd-confirm__cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); }
.rd-confirm dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 22px; }
.rd-confirm dt { color: var(--rd-muted); font-size: var(--rd-fs-sm); }
.rd-confirm dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rd-confirm__wallet-label { margin: 0 0 8px; color: var(--rd-ink-2); font-size: var(--rd-fs-sm); }
.rd-confirm__wallet { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.rd-confirm__wallet img { display: block; height: 48px; width: auto; }
.rd-walletbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.rd-walletbtn.is-text { display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 10px; background: #000; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.rd-walletbtn.is-text img { display: none; }
.rd-walletbtn.is-text span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.rd-confirm--empty { color: var(--rd-muted); }
.rd-confirm__print { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.rd-confirm .rd-btn:not(.rd-btn--ghost), .rd-confirm .rd-btn:not(.rd-btn--ghost):hover { color: var(--rd-brand-ink); text-decoration: none; }
@media (max-width: 640px) { .rd-confirm__grid { grid-template-columns: 1fr; } }
@media print { .rd-confirm__print, .rd-confirm__wallet, .rd-confirm__wallet-label { display: none; } .rd-header, .rd-footer { display: none !important; } .rd-card { border: 0; box-shadow: none; } }

/* ==========================================================================
   Staff desk
   ========================================================================== */
.rd-app--desk { background: var(--rd-bg) linear-gradient(180deg, var(--rd-brand-soft) 0, var(--rd-bg) 280px) no-repeat; }
.rd-app--desk .rd-header { background: transparent; border-bottom: 0; }
.rd-app--desk .rd-header--brand { background: var(--rd-brand); }
.rd-app--desk .rd-main { padding-top: 60px; }
/* Desk: compact header, logo on the left, so the scan field leads. */
.rd-app--desk .rd-header__inner { justify-content: flex-start; min-height: 0; padding-top: 12px; padding-bottom: 4px; }
.rd-app--desk .rd-logo__img { max-height: min(var(--rd-logo-h, 64px), 84px); }
.rd-app--desk .rd-desk__bar { margin-bottom: 26px; }
.rd-app--desk .rd-search { margin: 0 0 14px; }
.rd-app--desk .rd-search__input { font-size: 24px; padding: 26px 24px 26px 64px; }
.rd-app--desk .rd-search__icon { left: 24px; }
.rd-app--desk .rd-hint { margin-bottom: 22px; }

/* Big confirmation after a print */
.rd-done { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--rd-r-lg); margin-bottom: 14px; border: 1px solid transparent; box-shadow: var(--rd-shadow-sm); animation: rd-pop .25s ease-out; }
.rd-done[hidden] { display: none; }
.rd-done.is-ok { background: var(--rd-ok-soft); border-color: color-mix(in srgb, var(--rd-ok) 30%, transparent); }
.rd-done.is-again { background: var(--rd-warn-soft); border-color: color-mix(in srgb, var(--rd-warn) 35%, transparent); }
.rd-done__icon { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #fff; background: var(--rd-ok); }
.rd-done.is-again .rd-done__icon { background: var(--rd-warn); }
.rd-done__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rd-ok); }
.rd-done.is-again .rd-done__title { color: var(--rd-warn-ink); }
.rd-done__name { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 2px 0 4px; }
.rd-done__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--rd-ink-2); font-size: 16px; }
.rd-done__cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--cat) 16%, #fff); }
.rd-done__cat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cat); }
@keyframes rd-pop { from { transform: scale(.98); opacity: .4; } to { transform: none; opacity: 1; } }

/* Tiles: two private counts (blurred until clicked) and the desk leaderboard */
.rd-tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.rd-stat { text-align: left; font: inherit; color: var(--rd-ink); background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 96px; box-shadow: var(--rd-shadow-sm); position: relative; overflow: hidden; }
.rd-stat:hover { border-color: #c8d2d8; }
.rd-stat__num { font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; transition: filter .2s; }
.rd-stat__lbl { font-size: 13.5px; color: var(--rd-muted); font-weight: 600; }
.rd-stat__hint { display: none; position: absolute; right: 14px; top: 14px; font-size: 12px; color: var(--rd-muted); }
.rd-stat.is-hidden .rd-stat__num { filter: blur(9px); user-select: none; }
.rd-stat.is-hidden .rd-stat__hint { display: block; }
.rd-stat--board .rd-stat__lbl { margin-bottom: 4px; }
.rd-stat__lead { font-size: 18px; font-weight: 700; }
.rd-stat__me { font-size: 13px; color: var(--rd-muted); }
.rd-board { grid-column: 1 / -1; list-style: none; margin: 0; padding: 6px 18px; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); }
.rd-board[hidden] { display: none; }
.rd-board li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rd-line-2); font-size: 14.5px; }
.rd-board li:first-child { border-top: 0; }
.rd-board li b { color: var(--rd-brand-text); }
.rd-board li.is-me span:first-of-type { font-weight: 700; }
.rd-board li span:last-child { color: var(--rd-muted); }
@media (max-width: 640px) { .rd-tiles3 { grid-template-columns: 1fr 1fr; } .rd-stat--board { grid-column: 1 / -1; } .rd-done__name { font-size: 24px; } }
.rd-desk { max-width: calc(var(--rd-max) + 2 * var(--rd-gutter)); margin: 0 auto; padding: 0 var(--rd-gutter); }
.rd-desk__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rd-panel { display: none; }
.rd-panel.is-on { display: block; }

.rd-setup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--rd-brand-soft); border: 1px solid color-mix(in srgb, var(--rd-brand) 22%, transparent); border-radius: var(--rd-r); padding: 12px 14px; margin-bottom: 12px; font-size: 15px; }
.rd-setup[hidden] { display: none; }

.rd-search { position: relative; margin-bottom: 10px; }
.rd-search__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #94a2ab; font-size: 24px; line-height: 0; }
.rd-search__input { width: 100%; font: 400 22px/1.2 var(--rd-font); color: var(--rd-ink); padding: 19px 20px 19px 58px; background: var(--rd-surface); border: 2px solid var(--rd-line); border-radius: var(--rd-r-lg); box-shadow: var(--rd-shadow); }
.rd-search__input:focus { outline: none; border-color: var(--rd-brand); box-shadow: var(--rd-ring), var(--rd-shadow); }
.rd-search__input::placeholder { color: #98a5ad; }

.rd-hint { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--rd-muted); font-size: 13px; margin-bottom: 14px; }
.rd-hint__keys { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rd-hint__keys .rd-linkbtn { margin-right: 12px; font-size: 13px; }

.rd-results { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); overflow: hidden; box-shadow: var(--rd-shadow-sm); }
.rd-results:empty { display: none; }
.rd-row { display: grid; grid-template-columns: 6px 1fr auto auto; align-items: center; gap: 14px; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rd-line-2); cursor: pointer; }
.rd-row:last-child { border-bottom: 0; }
.rd-row:hover { background: var(--rd-surface-2); }
.rd-row.is-sel { background: var(--rd-brand-soft); }
.rd-row__bar { align-self: stretch; border-radius: 0 3px 3px 0; }
.rd-row__name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.rd-row__form { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--rd-line, #d5dde3); font-size: 11.5px; font-weight: 600; color: var(--rd-muted); vertical-align: 2px; }
.rd-row__meta { font-size: 13.5px; color: var(--rd-muted); margin-top: 3px; }
.rd-status { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: var(--rd-line-2); color: var(--rd-muted); }
.rd-status.is-in { background: var(--rd-ok-soft); color: var(--rd-ok); }
.rd-empty { padding: 28px; text-align: center; color: var(--rd-muted); }
.rd-more { padding: 10px 16px; font-size: 13px; color: var(--rd-muted); background: var(--rd-surface-2); border-top: 1px solid var(--rd-line-2); }

.rd-recent { margin-top: 24px; }
.rd-recent__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rd-recent__list li { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; transition: opacity .7s ease, transform .7s ease; }
.rd-recent__list li span { color: var(--rd-muted); margin-left: 6px; }
.rd-recent__list li.is-out { opacity: 0; transform: translateY(-4px); }

.rd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rd-tile { display: block; text-decoration: none; background: var(--tile, var(--rd-brand)); color: var(--tile-ink, #fff); border-radius: var(--rd-r-lg); padding: 26px 22px; font-size: 19px; font-weight: 700; box-shadow: var(--rd-shadow); transition: transform .15s, filter .15s; }
.rd-tile:hover { color: var(--tile-ink, #fff); filter: brightness(1.06); transform: translateY(-1px); }
.rd-tile span { display: block; font-size: 13px; font-weight: 500; opacity: .85; margin-top: 6px; }

/* Discreet corner tools */
.rd-corner { position: fixed; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; z-index: 50; }
.rd-ico { width: 32px; height: 32px; padding: 6px; border: 0; border-radius: var(--rd-r-sm); background: none; color: #7d8a93; opacity: .35; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.rd-ico:hover, .rd-ico:focus-visible, .rd-ico.is-on { opacity: .9; background: rgba(20, 33, 43, .06); color: var(--rd-ink); }
.rd-pill { display: none; background: var(--rd-ink); color: #fff; font-size: 13px; line-height: 1; padding: 9px 12px; border-radius: 16px; white-space: nowrap; margin-right: 6px; }
.rd-corner.show-count .rd-pill { display: inline-block; }
.rd-pop { display: none; position: absolute; right: 0; bottom: 42px; min-width: 320px; max-width: 86vw; background: var(--rd-ink); color: #fff; border-radius: var(--rd-r); padding: 14px 16px; box-shadow: var(--rd-shadow-lg); font-size: 14px; }
.rd-corner.show-board .rd-pop { display: block; }
.rd-pop h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #a9b6bf; }
.rd-pop ol { list-style: none; margin: 0; padding: 0; }
.rd-pop li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.rd-pop li:first-child { border-top: 0; }
.rd-pop li b { color: var(--rd-accent); }
.rd-pop li.is-me span:first-of-type { font-weight: 700; }
.rd-pop li span:last-child { color: #cfd8de; font-size: 13px; white-space: nowrap; }
.rd-pop .rd-none { color: #a9b6bf; }

/* Possible duplicate on a desk row */
.rd-row__dupe { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--rd-warn-soft); color: var(--rd-warn-ink); font-size: 11.5px; font-weight: 600; vertical-align: 2px; }
.rd-row__dupe.is-in { background: var(--rd-err-soft); color: var(--rd-err); }

/* Venue Wi-Fi backup banner */
.rd-offline { background: var(--rd-warn-soft); color: var(--rd-warn-ink); border: 1px solid color-mix(in srgb, var(--rd-warn) 35%, transparent); border-radius: var(--rd-r); padding: 10px 14px; margin-bottom: 12px; font-size: 14.5px; }
.rd-offline[hidden] { display: none; }
.rd-offline.is-sending { background: var(--rd-ok-soft); color: var(--rd-ok); border-color: color-mix(in srgb, var(--rd-ok) 30%, transparent); }

/* Bulk print */
.rd-bulk { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); padding: 20px; box-shadow: var(--rd-shadow-sm); }
.rd-bulk__intro { margin: 0 0 16px; color: var(--rd-muted); font-size: 14.5px; }
.rd-bulk__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rd-bulk__cat { text-align: left; border: 2px solid var(--rd-line); background: var(--rd-surface); border-radius: var(--rd-r); padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.rd-bulk__cat:hover { border-color: #b8c4cd; }
.rd-bulk__cat.is-on { border-color: var(--rd-brand); background: var(--rd-brand-soft); }
.rd-bulk__cat i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.rd-bulk__cat strong { font-size: 15px; }
.rd-bulk__cat span { display: block; color: var(--rd-muted); font-size: 12.5px; margin-top: 5px; }
.rd-bulk__opts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-size: 14px; color: var(--rd-ink-2); }
.rd-bulk__opts label { display: inline-flex; align-items: center; gap: 7px; }
.rd-bulk__summary { background: var(--rd-surface-2); border: 1px solid var(--rd-line); border-radius: var(--rd-r); padding: 14px 16px; margin-bottom: 12px; }
.rd-bulk__summary strong { font-size: 1.25em; }
.rd-bulk__list { max-height: 300px; overflow: auto; border: 1px solid var(--rd-line); border-radius: var(--rd-r); margin-bottom: 14px; font-size: 14px; }
.rd-bulk__list[hidden] { display: none; }
.rd-bulk__list div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--rd-line-2); }
.rd-bulk__list div span:first-child { font-weight: 600; }
.rd-bulk__list div span:last-child { color: var(--rd-muted); text-align: right; }
.rd-bulk__list .rd-bulk__sep { background: var(--rd-surface-2); color: var(--rd-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; }
.rd-bulk__go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rd-bulk__bar { height: 8px; background: var(--rd-line); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.rd-bulk__bar[hidden] { display: none; }
.rd-bulk__bar i { display: block; height: 100%; width: 0; background: var(--rd-accent); transition: width .2s; }
.rd-print-frame--bulk { width: 480px; height: 4000px; }

/* Badge maker */
.rd-maker { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); padding: 22px; box-shadow: var(--rd-shadow-sm); }
.rd-maker__types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rd-type { --type: var(--rd-line); --type-ink: var(--rd-ink); display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--rd-font); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--rd-line); background: var(--rd-surface); color: var(--rd-ink); cursor: pointer; }
.rd-type::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--type); flex: 0 0 auto; }
.rd-type--other::before { background: conic-gradient(#C0392B, #F39C12, #27AE60, #2E86C1, #7D3C98, #C0392B); }
.rd-type:hover { border-color: #b9c5cc; }
.rd-type.is-on { background: var(--type); border-color: var(--type); color: var(--type-ink); }
.rd-type.is-on::before { background: var(--type-ink); opacity: .85; }
.rd-type--other.is-on { background: var(--rd-ink); border-color: var(--rd-ink); color: #fff; }
.rd-maker__other { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: -6px 0 18px; }
.rd-maker__other[hidden] { display: none; }
.rd-maker__other .rd-input { flex: 1 1 260px; }
.rd-maker__colour { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--rd-muted); }
.rd-maker__colour input { width: 44px; height: 36px; padding: 0; border: 1px solid var(--rd-line); border-radius: 8px; background: none; cursor: pointer; }
.rd-maker__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.rd-maker__fields label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--rd-ink-2); }
.rd-maker__fields .rd-input { width: 100%; font-size: 18px; padding: 12px 14px; }
.rd-opt { font-weight: 400; color: var(--rd-muted); }
.rd-maker__go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rd-btn--lg { min-height: 50px; padding: 14px 26px; font-size: 16px; }
.rd-maker__note { color: var(--rd-muted); font-size: 13.5px; }
@media (max-width: 640px) { .rd-maker__fields { grid-template-columns: 1fr; } .rd-maker { padding: 16px; } }

.rd-print-frame { position: fixed; left: -10000px; top: 0; width: 420px; height: 1100px; border: 0; }

@media (max-width: 640px) {
	.rd-row { grid-template-columns: 6px 1fr auto; }
	.rd-row .rd-status { display: none; }
	.rd-search__input { font-size: 18px; padding: 16px 16px 16px 52px; }
	.rd-hint__keys .rd-kbdtext { display: none; }
	.rd-desk__bar { gap: 10px; }
}
@media print {
	.rd-header, .rd-footer, .rd-desk, .rd-corner, .rd-toast { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
