/* ROHNSS Conference Platform — mobile-first, no external fonts (fast on mobile data). */
:root {
  --navy-950: #0f1835;
  --navy-900: #141f45;
  --navy-800: #1d2c5e;
  --navy-700: #2b3d7d;   /* logo blue */
  --navy-600: #3a4f95;
  --navy-300: #a9b4d6;
  --navy-100: #e5e9f4;
  --navy-50: #f3f5fa;
  --ink: #1a2238;
  --ink-2: #3b4562;
  --muted: #5d6783;
  --line: #e1e5ee;
  --line-2: #cfd5e3;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ok: #17643d; --ok-bg: #e5f3eb; --ok-line: #9fd0b4;
  --warn: #7f5200; --warn-bg: #fdf3dc; --warn-line: #ecd08c;
  --bad: #9f2323; --bad-bg: #fbeaea; --bad-line: #eab0b0;
  --info: #23508f; --info-bg: #e8f0fb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 10px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 31, 69, .06), 0 4px 16px rgba(20, 31, 69, .06);
  --gutter: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.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 { position: absolute; left: -999px; top: 8px; background: var(--navy-800); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #6f86d6; outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-600); margin: 0 0 .75rem; }
.rule { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm);
  font: 700 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  background: var(--navy-700); color: #fff; transition: background .15s, border-color .15s; text-align: center; }
.btn:hover { background: var(--navy-800); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-300); }
.btn-outline:hover { background: var(--navy-50); color: var(--navy-900); border-color: var(--navy-600); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: transparent; }
.btn-ghost:hover { background: var(--navy-50); color: var(--navy-900); }
.btn-light { background: #fff; color: var(--navy-800); border-color: var(--line-2); }
.btn-light:hover { background: var(--navy-50); color: var(--navy-900); }
.btn-ok { background: var(--ok); } .btn-ok:hover { background: #10502f; }
.btn-danger { background: var(--bad); } .btn-danger:hover { background: #7f1717; }
.btn-danger-outline { background: #fff; color: var(--bad); border-color: var(--bad-line); }
.btn-danger-outline:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.btn-xl { min-height: 64px; font-size: 1.1rem; padding: 16px 28px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .4em; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.plain::before { display: none; }
.st-registered { color: var(--info); background: var(--info-bg); border-color: #c4d6f0; }
.st-confirmed { color: var(--navy-800); background: var(--navy-100); border-color: var(--navy-300); }
.st-checked_in { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.st-cancelled { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.st-no_show { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill-demo { color: #6b4a00; background: #fff1c9; border-color: #e8c56a; }
.pill-type { color: var(--navy-900); background: #fff; border-color: var(--navy-300); }
.free-badge { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--navy-700); color: var(--navy-800); border-radius: 999px;
  padding: 7px 16px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: #fff; }
.free-badge b { color: var(--ok); }

/* ---------- alerts ---------- */
.alert { border-radius: var(--r-sm); padding: 14px 16px; border: 1px solid var(--line); background: #fff; margin: 0 0 18px; }
.alert strong:first-child { display: block; margin-bottom: 2px; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); color: #0f4a2c; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); color: #5c3c00; }
.alert-bad { background: var(--bad-bg); border-color: var(--bad-line); color: #7b1414; }
.alert-info { background: var(--info-bg); border-color: #c4d6f0; color: #173d70; }
.alert .btn { margin-top: 10px; }

/* ---------- public header ---------- */
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .04em; }
.brand-text span { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: none; gap: 4px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy-800); background: var(--navy-50); }
.site-nav .btn { margin-left: 8px; min-height: 40px; padding: 8px 16px; color: #fff; }
.site-nav .btn:hover { background: var(--navy-800); color: #fff; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--navy-800); position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px var(--gutter); text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin: 12px var(--gutter); color: #fff; border: 0; }
@media (min-width: 900px) { .site-nav { display: flex; } .menu-btn { display: none; } .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--navy-50) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; display: grid; gap: 28px; padding-top: 36px; padding-bottom: 44px; }
.hero-waves { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 760px; height: 760px; pointer-events: none; opacity: .9; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .ed { color: var(--navy-600); font-weight: 400; }
.theme-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 3.2vw, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 36em; margin: 0 0 1.2em;
  padding-left: 14px; border-left: 3px solid var(--navy-700); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--navy-900); margin: 0 0 18px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--navy-600); flex: none; }
.hero-ctas { display: grid; gap: 10px; margin-top: 22px; }
.hero-logo { display: flex; justify-content: center; align-items: center; order: -1; }
.hero-logo .ring { position: relative; width: min(220px, 58vw); aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 10px; box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgba(20, 31, 69, .12); }
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.partner-line { font-size: .9rem; color: var(--muted); margin: 0; }
.partner-line strong { color: var(--navy-800); }
@media (min-width: 600px) { .hero-ctas { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.35fr .9fr; align-items: center; padding-top: 72px; padding-bottom: 80px; }
  .hero-logo { order: 0; }
  .hero-logo .ring { width: 340px; padding: 14px; }
}

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 26px; }
@media (min-width: 900px) { .section { padding: 72px 0; } }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; }
.detail .k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.detail .v { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy-900); line-height: 1.25; }
.detail .s { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.detail.accent { border-color: var(--navy-700); box-shadow: inset 0 3px 0 var(--navy-700); }
@media (min-width: 900px) { .detail-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .detail { padding: 22px; } .detail .v { font-size: 1.35rem; } }

.about-grid { display: grid; gap: 28px; }
.about-grid .lead { font-size: 1.08rem; color: var(--ink-2); }
.focus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.focus-list li { display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.focus-list .n { font-family: var(--serif); color: var(--navy-600); font-weight: 700; }
.focus-list b { display: block; color: var(--navy-900); }
.focus-list span.d { color: var(--muted); font-size: .92rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

.steps { display: grid; gap: 14px; counter-reset: s; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step-card .num { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--navy-700); color: var(--navy-800); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; font-size: .9rem; }
.step-card h3 { margin-bottom: .3em; }
.step-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.cta-band { background: var(--navy-900); color: #dfe5f5; border-radius: 14px; padding: 28px 22px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; }
.cta-band .btn { background: #fff; color: var(--navy-900); }
.cta-band .btn:hover { background: var(--navy-100); }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 40px 44px; } }

.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.contact-item:hover { border-color: var(--navy-300); }
.contact-item .k { font-size: .75rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-item .v { font-weight: 700; color: var(--navy-900); word-break: break-word; }
.contact-item svg { width: 22px; height: 22px; color: var(--navy-600); flex: none; }
@media (min-width: 760px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #b9c2dc; padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: #e3e8f6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; flex: none; background: #fff; }
.footer-brand strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; display: block; margin-bottom: 4px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-h { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .8rem; color: #8d97b6; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ---------- forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card + .card { margin-top: 16px; }
@media (min-width: 760px) { .card { padding: 28px; } }
.field { margin-bottom: 18px; }
.field > label, .field > .label, legend.label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--bad); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: .82rem; margin-left: 4px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.3 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); appearance: none; -webkit-appearance: none; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232b3d7d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(58, 79, 149, .18); }
.invalid input, .invalid select, .invalid textarea, input.invalid { border-color: var(--bad); background: #fffafa; }
.err { color: var(--bad); font-size: .84rem; font-weight: 600; margin-top: 6px; display: none; }
.invalid .err { display: block; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-list { display: grid; gap: 8px; }
.choice-list.cols { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choice-list.cols { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem; }
.choice:hover { border-color: var(--navy-300); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy-700); flex: none; }
.choice:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy-700); }
.choice .sub { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy-700); flex: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented .choice { flex: 1 1 auto; justify-content: center; }

/* ---------- registration stepper ---------- */
.reg-shell { padding: 22px 0 56px; }
.reg-head { margin-bottom: 18px; }
.reg-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: .2em; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 20px; list-style: none; padding: 0; }
.progress li { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.progress li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.progress li.done::before, .progress li.current::before { background: var(--navy-700); }
.progress li.current { color: var(--navy-900); }
.progress .pn { display: none; }
@media (min-width: 640px) { .progress li { font-size: .82rem; } .progress .pn { display: inline; } }
.step-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.step-title h2 { font-size: 1.35rem; margin: 0; }
.step-title .count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.form-nav { display: flex; gap: 10px; margin-top: 8px; justify-content: space-between; }
.form-nav .btn { flex: 1; }
@media (min-width: 640px) { .form-nav .btn { flex: 0 0 auto; min-width: 160px; } }
.js .reg-step { display: none; }
.js .reg-step.active { display: block; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
html:not(.js) .js-only { display: none !important; }
.notice-free { display: flex; gap: 12px; align-items: flex-start; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r-sm); padding: 14px; font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; }
.notice-free svg { width: 22px; height: 22px; color: var(--navy-700); flex: none; margin-top: 1px; }
.declaration { background: var(--navy-50); border-left: 3px solid var(--navy-700); padding: 14px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--serif); font-size: 1.02rem; color: var(--navy-900); margin-bottom: 14px; }
.review { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 18px; }
.review h3 { font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 0; margin: 0; display: flex; justify-content: space-between; }
.review h3 button { font: 600 .8rem var(--sans); color: var(--navy-700); background: none; border: 0; cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0; text-decoration: underline; }
.review dl { margin: 0; padding: 8px 14px 12px; display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; font-size: .92rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; word-break: break-word; }
.review + .review { margin-top: -8px; }
.dup-box { border: 1.5px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--r-sm); padding: 16px; margin-bottom: 18px; }
.dup-box strong { display: block; font-size: 1.05rem; color: #5c3c00; margin-bottom: 4px; }

/* ---------- confirmation & pass ---------- */
.confirm-hero { text-align: center; padding: 32px 0 8px; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; border: 1.5px solid var(--ok-line); }
.tick svg { width: 32px; height: 32px; }
.confirm-hero .eyebrow { color: var(--ok); }
.pass { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(20, 31, 69, .12); max-width: 440px; margin: 0 auto; }
.pass-top { background: var(--navy-900); color: #fff; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.pass-top img { width: 52px; height: 52px; border-radius: 50%; background: #fff; flex: none; }
.pass-top strong { font-family: var(--serif); font-size: 1.05rem; display: block; line-height: 1.25; }
.pass-top span { font-size: .8rem; color: #c3cbe4; }
.pass-body { padding: 20px; }
.pass-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pass-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy-900); line-height: 1.2; margin: 2px 0 14px; word-break: break-word; }
.pass-fields { display: grid; gap: 12px; margin-bottom: 18px; }
.pass-fields .v { font-weight: 600; }
.pass-qr { border-top: 1px dashed var(--line-2); padding: 20px; text-align: center; background: #fff; position: relative; }
.pass-qr::before, .pass-qr::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.pass-qr::before { left: -12px; } .pass-qr::after { right: -12px; }
.qr-box { width: min(260px, 72vw); margin: 0 auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.pass-rid { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; color: var(--navy-900); margin-top: 10px; }
.pass-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--navy-50); border-top: 1px solid var(--line); font-size: .85rem; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 14px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.otp-input { font-family: var(--mono) !important; font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }
.prose { max-width: 720px; }
.prose p { white-space: pre-line; }

/* ---------- admin shell ---------- */
.admin-body { background: #f4f6fa; }
.admin-top { position: sticky; top: 0; z-index: 40; background: var(--navy-900); color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 56px; }
.admin-top .brand { color: #fff; }
.admin-top .brand img { width: 36px; height: 36px; background: #fff; }
.admin-top .brand-text span { color: #aeb8d8; }
.admin-top .spacer { flex: 1; }
.admin-top .menu-btn { background: transparent; border-color: rgba(255, 255, 255, .25); }
.admin-top .menu-btn span, .admin-top .menu-btn span::before, .admin-top .menu-btn span::after { background: #fff; }
.admin-top a.top-link { color: #dbe2f6; text-decoration: none; font-size: .85rem; font-weight: 600; padding: 8px 10px; border-radius: 6px; }
.admin-top a.top-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.event-switch select { min-height: 36px; padding: 4px 30px 4px 10px; font-size: .82rem; background-color: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); max-width: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.event-switch select option { color: var(--ink); background: #fff; }
.admin-layout { display: block; }
.side { display: none; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px 30px; }
.side.open { display: block; position: fixed; top: 56px; left: 0; bottom: 0; width: 270px; overflow-y: auto; z-index: 35; box-shadow: var(--shadow); }
.side-h { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.side a:hover { background: var(--navy-50); color: var(--navy-900); }
.side a[aria-current="page"] { background: var(--navy-100); color: var(--navy-900); }
.side a svg { width: 18px; height: 18px; color: var(--navy-600); flex: none; }
.side .who { margin: 8px 12px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.main { padding: 18px var(--gutter) 60px; min-width: 0; }
@media (min-width: 1024px) {
  .admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 56px); }
  .side { display: block; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
  .side.open { position: sticky; width: auto; box-shadow: none; top: 56px; }
  .admin-top .menu-btn { display: none; }
  .main { padding: 26px 32px 60px; }
}
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.demo-banner { background: #fff1c9; color: #5c3c00; border-bottom: 1px solid #e8c56a; font-size: .85rem; padding: 8px 16px; text-align: center; }
.demo-banner a { color: #5c3c00; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.stat .k { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 700; color: var(--navy-900); line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stat.ok { border-top: 3px solid var(--ok); } .stat.navy { border-top: 3px solid var(--navy-700); } .stat.warn { border-top: 3px solid #c48a12; } .stat.muted-top { border-top: 3px solid var(--line-2); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stats.six { } @media (min-width: 1200px) { .stats.six { grid-template-columns: repeat(6, 1fr); } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 18px; min-width: 0; }
.panel h2 { font-size: 1.1rem; margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.cols-2 { display: grid; gap: 18px; } .cols-2 > .panel { margin-bottom: 0; }
.cols-3 { display: grid; gap: 18px; }
@media (min-width: 1100px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-gap { display: grid; gap: 18px; margin-bottom: 18px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--navy-900); font-weight: 700; font-size: .9rem; background: #fff; }
.quick a:hover { border-color: var(--navy-600); background: var(--navy-50); }
.quick svg { width: 22px; height: 22px; color: var(--navy-600); }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(4, 1fr); } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #f8f9fc; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafbfd; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data a.name { font-weight: 700; text-decoration: none; color: var(--navy-900); }
table.data a.name:hover { text-decoration: underline; }
.cell-sub { color: var(--muted); font-size: .8rem; }
.filters { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.filters .field { margin: 0; }
.filters label { font-size: .75rem !important; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.filters input, .filters select { min-height: 42px; padding: 8px 12px; font-size: .9rem; }
.filters .actions { display: flex; gap: 8px; align-items: flex-end; }
@media (min-width: 700px) { .filters { grid-template-columns: repeat(3, 1fr); } .filters .wide { grid-column: span 3; } }
@media (min-width: 1200px) { .filters { grid-template-columns: repeat(6, 1fr); } .filters .wide { grid-column: span 2; } }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
details.menu { position: relative; display: inline-block; }
details.menu summary { list-style: none; cursor: pointer; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu .menu-items { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 210px; z-index: 20; padding: 6px; }
details.menu .menu-items a, details.menu .menu-items button { display: block; width: 100%; text-align: left; padding: 9px 12px; font: 600 .88rem var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: 6px; cursor: pointer; }
details.menu .menu-items a:hover, details.menu .menu-items button:hover { background: var(--navy-50); }
details.menu .menu-items .danger { color: var(--bad); }
details.menu .menu-items form { margin: 0; }

/* charts (single-series, navy) */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-track { display: block; height: 12px; background: var(--navy-50); border-radius: 0 4px 4px 0; position: relative; }
.bar-fill { display: block; height: 100%; background: var(--navy-700); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); min-width: 3ch; text-align: right; }
.bar-row:hover .bar-fill { background: var(--navy-900); }
.colchart { position: relative; }
.colchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.colchart .axis text { font: 11px var(--sans); fill: var(--muted); }
.colchart .grid line { stroke: var(--line); stroke-width: 1; }
.colchart .col { fill: var(--navy-700); }
.colchart .col:hover, .colchart .col.hl { fill: var(--navy-900); }
.colchart .line { fill: none; stroke: var(--navy-700); stroke-width: 2; }
.colchart .hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy-950); color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); display: none; z-index: 5; }
.chart-tip b { font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: .92rem; }
.ring-meter { display: flex; align-items: center; gap: 16px; }
.ring-meter svg { width: 96px; height: 96px; flex: none; }
.progress-bar { height: 10px; border-radius: 6px; background: var(--navy-50); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--ok); }

/* timeline / audit */
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list li { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.log-list li:last-child { border-bottom: 0; }
.log-list .t { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .85rem; }
code.action { font-family: var(--mono); font-size: .8rem; background: var(--navy-50); padding: 2px 6px; border-radius: 4px; color: var(--navy-800); }

/* ---------- check-in desk ---------- */
.desk-body { background: #eef1f7; min-height: 100vh; }
.desk-top { background: var(--navy-900); color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 12px; position: sticky; top: 0; z-index: 20; }
.desk-top img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.desk-top .t { font-weight: 700; font-size: .95rem; line-height: 1.15; }
.desk-top .t span { display: block; font-weight: 500; font-size: .74rem; color: #aeb8d8; }
.desk-top .spacer { flex: 1; }
.desk-top a { color: #dbe2f6; font-size: .82rem; text-decoration: none; padding: 8px; }
.net { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4cd38a; }
.net.off::before { background: #f0b429; }
.net.off { background: rgba(240, 180, 41, .18); color: #ffe3a3; }
.desk-main { max-width: 640px; margin: 0 auto; padding: 14px 14px 80px; }
.desk-counter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.desk-counter div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; }
.desk-counter b { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.desk-counter span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mode-tabs button { min-height: 64px; font-size: 1rem; }
.mode-tabs button[aria-pressed="true"] { background: var(--navy-900); }
.mode-tabs button[aria-pressed="false"] { background: #fff; color: var(--navy-800); border-color: var(--line-2); }
.scanner { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 1; max-height: 62vh; margin: 0 auto 12px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 14%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); }
.scanner .msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: .9rem; font-weight: 600; text-shadow: 0 1px 2px #000; }
.scanner-idle { background: #fff; border: 2px dashed var(--line-2); border-radius: 12px; padding: 26px 18px; text-align: center; margin-bottom: 12px; }
.result { border-radius: 14px; padding: 18px; margin-bottom: 12px; border: 2px solid; background: #fff; }
.result h2 { font-family: var(--sans); font-size: 1.25rem; font-weight: 900; letter-spacing: .04em; margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.result h2 svg { width: 30px; height: 30px; flex: none; }
.result.ok { border-color: var(--ok); } .result.ok h2 { color: var(--ok); }
.result.done { border-color: var(--ok); background: var(--ok-bg); } .result.done h2 { color: var(--ok); }
.result.warn { border-color: #c48a12; background: var(--warn-bg); } .result.warn h2 { color: var(--warn); }
.result.bad { border-color: var(--bad); background: var(--bad-bg); } .result.bad h2 { color: var(--bad); }
.result .who { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy-900); line-height: 1.2; margin-bottom: 8px; word-break: break-word; }
.result dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0 0 14px; font-size: .95rem; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 600; }
.search-list { display: grid; gap: 8px; }
.search-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; min-height: 64px; }
.search-item:hover { border-color: var(--navy-600); }
.search-item .n { font-weight: 800; color: var(--navy-900); }
.search-item .d { font-size: .82rem; color: var(--muted); }
.queue-box { background: #fff; border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: .88rem; }
.flash-ok { animation: flash .6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 8px rgba(23, 100, 61, .35); } to { box-shadow: 0 0 0 0 rgba(23, 100, 61, 0); } }
@media (prefers-reduced-motion: reduce) { .flash-ok { animation: none; } html { scroll-behavior: auto; } }

/* ---------- live mode ---------- */
.live-body { background: var(--navy-950); color: #e6eaf6; min-height: 100vh; }
.live-wrap { max-width: 1400px; margin: 0 auto; padding: 18px var(--gutter) 40px; }
.live-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.live-head img { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.live-head h1 { color: #fff; font-family: var(--sans); font-weight: 900; letter-spacing: .06em; font-size: clamp(1.1rem, 3vw, 1.7rem); margin: 0; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: #ff8a8a; font-weight: 800; font-size: .8rem; letter-spacing: .14em; }
.live-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 4px rgba(255, 90, 90, .25); }
.live-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.live-stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 16px 18px; }
.live-stat .k { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #9aa6cc; }
.live-stat .v { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 700; color: #fff; line-height: 1.05; font-variant-numeric: tabular-nums; }
.live-stat.ok .v { color: #7fe0a8; }
@media (min-width: 900px) { .live-stats { grid-template-columns: repeat(4, 1fr); } }
.live-grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .live-grid { grid-template-columns: 1.4fr 1fr; } }
.live-panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 18px; }
.live-panel h2 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.live-body .colchart .col { fill: #8fa3e6; } .live-body .colchart .col:hover { fill: #fff; }
.live-body .colchart .axis text { fill: #9aa6cc; } .live-body .colchart .grid line { stroke: rgba(255, 255, 255, .08); }
.recent { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.recent li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
.recent li .t { color: #9aa6cc; font-variant-numeric: tabular-nums; }
.recent li.new { animation: newrow 1.6s ease-out; }
@keyframes newrow { from { background: rgba(127, 224, 168, .25); } to { background: transparent; } }
.live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.live-actions .btn { min-height: 72px; font-size: 1.1rem; }
.live-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); }
.live-actions .btn-outline:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.live-body .progress-bar { background: rgba(255, 255, 255, .1); height: 14px; }
.live-body .progress-bar > span { background: #7fe0a8; }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); background: var(--navy-50); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; margin-bottom: 18px; }
.auth-card .brand img { width: 64px; height: 64px; }

/* print */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .admin-top, .side, .no-print, .btn, .demo-banner { display: none !important; }
  .main { padding: 0; }
  .pass { box-shadow: none; border: 1px solid #999; }
  .table-wrap { border: 0; overflow: visible; }
  table.data th { position: static; }
  a { color: inherit; text-decoration: none; }
}
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.big-actions .btn { min-height: 76px; font-size: 1.1rem; }
.big-actions .btn svg, .live-actions .btn svg { width: 24px; height: 24px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.field > label.check, label.check { display: flex; font-weight: 400; font-size: .95rem; margin: 0; }
.kv dd, .review dd, .result dd, .pass-fields .v { overflow-wrap: anywhere; }
#result { scroll-margin-top: 72px; }
