:root {
    --ink: #1c1917;
    --muted: #78716c;
    --line: #e7e5e4;
    --bg: #f6f4f1;
    --sidebar: #f7f6f3;
    --card: #ffffff;
    --accent: #c2410c;
    --accent-dark: #9a3412;
    --live: #15803d;
    --shadow: 0 1px 2px rgba(28, 25, 23, .04);
    --sidebar-w: 248px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Outfit", "Source Sans 3", sans-serif;
}

a { color: inherit; }

.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: #161311;
    color: #f5f5f4;
    border-right: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 14px 14px;
    overflow: auto;
}

.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; text-decoration: none; }
.brand strong { font-size: 1.35rem; letter-spacing: -.04em; display: block; line-height: 1; }
.brand small { color: var(--muted); font-size: .72rem; }

.sidebar .brand, .sidebar .brand strong { color: white; }
.sidebar .brand small { color: #a8a29e; }
.serving {
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 4px 14px;
}
.serving span { display: block; font-size: .68rem; letter-spacing: .08em; color: #fdba74; font-weight: 700; }
.serving strong { font-size: .95rem; color: white; }

.nav-label { color: #78716c; font-size: .68rem; letter-spacing: .08em; font-weight: 700; margin: 16px 12px 6px; }
.side-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px; text-decoration: none; color: #d6d3d1; font-weight: 550;
}
.side-link i { width: 18px; text-align: center; }
.side-link.active, .side-link:hover { background: rgba(255,255,255,.08); color: white; }
.side-link.active { box-shadow: inset 3px 0 0 var(--accent); }

.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.who { display: flex; gap: 10px; align-items: center; padding: 8px; }
.who strong { display: block; font-size: .92rem; line-height: 1.2; }
.sidebar .who strong { color: white; }
.sidebar .hint, .sidebar .langs a { color: #a8a29e; }
.sidebar .langs a.active { color: white; }
.sidebar .btn-link { color: #d6d3d1; text-decoration: none; }
.avatar-bubble {
    width: 36px; height: 36px; border-radius: 999px; background: rgba(194, 65, 12, .22); color: #fdba74;
    display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.langs { display: flex; gap: 8px; padding: 4px 8px 8px; font-size: .82rem; }
.langs a { text-decoration: none; color: #a8a29e; }
.langs a.active { color: var(--ink); font-weight: 700; }

.admin-main { flex: 1; padding: 32px 40px 56px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 22px; }
.page-head h1 { font-size: 1.7rem; font-weight: 650; letter-spacing: -.035em; margin: 0 0 4px; }
.lede { color: var(--muted); margin: 0; }

.card-soft, .metric, .table-card, .room-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.metric { padding: 18px 18px 16px; }
.metric b { display: block; font-size: 1.85rem; font-weight: 650; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.metric span, .hint { color: var(--muted); font-size: .85rem; }

.btn-accent { background: var(--accent); color: white; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 650; }
.btn-accent:hover { background: var(--accent-dark); color: white; }
.btn-ink { background: #1c1917; color: white; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 650; }
.btn-ghost { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 650; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: #a8a29e; display: inline-block; }
.dot.live { background: var(--live); }
.pill.live { color: var(--live); }
.pill.closed { color: #78716c; }
.pill.warn { color: var(--accent); }

.room-card { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; text-decoration: none; }
.room-card + .room-card, .stack > * + * { margin-top: 10px; }
.event-block { margin-bottom: 22px; }
.event-block h2 { font-size: 1.05rem; margin: 0 0 8px; }

table.data { width: 100%; border-collapse: collapse; }
.table-card { overflow: hidden; }
table.data th { text-align: left; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafaf9; }
table.data td { padding: 13px 14px; border-bottom: 1px solid #f5f5f4; vertical-align: top; }
table.data tbody tr:hover td { background: #fafaf9; }
table.data tr:last-child td { border-bottom: 0; }
.admin-main .data a { font-weight: 650; text-decoration: none; }
.admin-main .data a:hover { text-decoration: underline; }
.admin-main code { background: #f5f5f4; color: var(--ink); border-radius: 6px; padding: 2px 6px; font-size: .82rem; }
.admin-main .form-label { font-weight: 600; font-size: .88rem; }
.admin-main .form-control, .admin-main .form-select {
    border-radius: 12px; border-color: var(--line); padding: 10px 12px;
}
.admin-main .form-control:focus, .admin-main .form-select:focus {
    border-color: #c4472a; box-shadow: 0 0 0 3px rgba(196, 71, 42, .12);
}
.admin-main .alert { border: 0; border-radius: 14px; }
.btn-ghost:hover { background: #fafaf9; }
.org-card { padding: 18px; margin-bottom: 14px; }
.org-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.org-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.org-mark {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; background: #fff7ed; color: var(--accent); font-weight: 700;
}
.org-top h2 { font-size: 1.05rem; letter-spacing: -.02em; margin: 0; }
.org-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px;
    background: #faf8f6; border-radius: 14px; overflow: hidden;
}
.org-stats div { padding: 12px 14px; min-width: 0; }
.org-stats div + div { border-left: 1px solid #efece8; }
.org-stats b { display: block; font-size: 1.2rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.org-stats span { color: var(--muted); font-size: .75rem; }
.org-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.org-fold { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-card { padding: 22px; }
.panel-card h2 { font-size: 1.05rem; letter-spacing: -.02em; margin: 0 0 4px; }
.field-kicker {
    margin: 16px 0 10px; color: var(--muted); font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
}
.panel-card .field-kicker:first-of-type { margin-top: 18px; }
.panel-card .btn { width: 100%; margin-top: 4px; }
.form-label .hint { margin-left: 6px; font-weight: 500; }

.page-kicker {
    margin: 0 0 6px; color: var(--accent); font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
}
.metric-icon {
    width: 34px; height: 34px; border-radius: 11px; margin-bottom: 16px;
    display: grid; place-items: center; background: #fff7ed; color: var(--accent); font-size: 1rem;
}
.live-card, .event-card { padding: 18px; }
.live-card + .live-card, .event-card + .event-card { margin-top: 12px; }
.live-card-top, .event-card-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.live-card h3, .event-name { font-size: 1.15rem; letter-spacing: -.03em; margin: 8px 0 0; font-weight: 650; }
.event-name { display: block; text-decoration: none; }
.event-name:hover { color: var(--accent); }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.live-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.section-label { font-size: .95rem; letter-spacing: -.02em; margin: 0 0 12px; }
.chart-head, .chart-axis, .rank-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.chart-head h2, .panel-title { font-size: 1rem; letter-spacing: -.02em; margin: 0; }
.chart-total { text-align: right; }
.chart-total strong { display: block; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1; }
.chart-total span { color: var(--muted); font-size: .75rem; }
.chart { width: 100%; height: 210px; }
.chart-axis { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.day-list { margin-top: 14px; }
.day-list summary { cursor: pointer; color: var(--muted); font-size: .82rem; font-weight: 650; }
.day-list table { margin-top: 8px; }
.rank-line span { min-width: 0; }
.rank-line b { font-weight: 650; }
.rank-track { height: 6px; border-radius: 99px; background: #f3f0ec; margin-top: 6px; overflow: hidden; }
.rank-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
table.rank th, table.rank td { background: transparent; }
table.rank td { border-bottom-color: #f3f0ec; }
.filter-bar { padding: 16px 16px 14px; }
.filter-bar .form-label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.results-count { margin: -8px 0 14px; }
.person { display: flex; gap: 12px; align-items: center; min-width: 180px; }
.person a { text-decoration: none; }
.person a:hover { color: var(--accent); }
.count-pill {
    display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 8px;
    border-radius: 999px; background: #faf8f6; font-weight: 650; font-size: .85rem;
}
.empty-state { padding: 28px 20px; color: var(--muted); }
.admin-main .pagination { gap: 4px; margin-bottom: 0; }
.admin-main .page-link { border-radius: 10px; border-color: var(--line); color: var(--ink); margin: 0 2px; }
.admin-main .page-item.active .page-link { background: var(--ink); border-color: var(--ink); }
.admin-main .page-link:hover { background: #faf8f6; color: var(--ink); }

.choice {
    border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 14px; margin: 0 8px 8px 0;
}
.choice.active { background: #1e3a8a; color: white; border-color: #1e3a8a; }
.gender-choice { width: 110px; border-radius: 16px; padding: 14px 8px; text-align: center; }
.gender-choice.active { background: #fce7f3; border-color: #ec4899; }

.public-wrap { max-width: 440px; margin: 0 auto; padding: 18px 14px 40px; }
.public-card { background: white; border-radius: 22px; padding: 18px; border: 1px solid var(--line); }
.steps { display: flex; gap: 8px; margin: 12px 0; }
.steps i { height: 4px; border-radius: 99px; background: #e7e5e4; flex: 1; }
.steps i.on { background: #1e3a8a; }
.reg { padding: 28px 0 48px; }
.reg-shell { width: min(980px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.reg-intro h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 10px; }
.reg-intro h1 a { text-decoration: none; }
.reg-intro p { color: var(--muted); max-width: 28ch; }
.reg-kicker { margin: 0 0 8px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.reg-logo { display: block; max-height: 56px; margin-bottom: 16px; }
.reg-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 18px; box-shadow: 0 16px 40px rgba(28, 25, 23, .04); }
.reg-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.reg-progress .steps { flex: 1; margin: 0; }
.reg-progress [data-step-count] { color: var(--muted); font-size: .82rem; font-weight: 650; }
.reg .steps i.on { background: var(--accent); }
.reg .form-label { font-weight: 650; }
.reg .form-control, .reg .form-select { min-height: 48px; border-radius: 14px; border-color: var(--line); font-size: 16px; }
.reg .form-control:focus, .reg .form-select:focus { border-color: #c4472a; box-shadow: 0 0 0 3px rgba(196, 71, 42, .12); }
.reg .gender-row, .reg .chip-set { border: 0; padding: 0; margin: 0 0 8px; }
.reg .gender-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reg .gender-row legend, .reg .chip-set legend { grid-column: 1 / -1; width: 100%; float: none; }
.reg .gender-choice { width: auto; margin: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.reg .gender-choice.active { background: #1c1917; color: white; border-color: #1c1917; }
.reg .chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.reg .chip-set .choice { margin: 0; min-height: 40px; display: inline-flex; align-items: center; }
.reg .choice.active { background: #1c1917; color: white; border-color: #1c1917; }
.reg .avatar-pick { width: 48px; height: 48px; }
.consent-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafaf9; margin-bottom: 10px; }
.consent-box input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex-shrink: 0; accent-color: #c4472a; }
.consent-box label { font-size: .92rem; }
.reg-actions { display: flex; gap: 8px; margin-top: 8px; }
.reg-actions .btn-ink, .reg-actions .btn-ghost { min-height: 48px; border-radius: 999px; }
.reg-actions .btn-ink { flex: 1; }
.reg-actions .btn-ghost { background: white; }
@media (max-width: 860px) {
    .reg { padding: 12px 0 24px; }
    .reg-shell { width: min(560px, calc(100% - 20px)); grid-template-columns: 1fr; gap: 12px; }
    .reg-intro p { max-width: none; }
    .reg-card { padding: 16px 16px 12px; }
    .reg .gender-row { grid-template-columns: 1fr; }
    .reg-actions { margin-top: 16px; }
}
.avatar-pick { width: 42px; height: 42px; border-radius: 999px; border: 2px solid transparent; display: grid; place-items: center; color: white; }
.avatar-pick.active { outline: 2px solid var(--ink); }

.reg-logo-tile { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(28, 25, 23, .05); }
.reg-logo-tile .reg-logo { max-height: 64px; max-width: 200px; width: auto; object-fit: contain; margin: 0; }
.reg-alias .reg-shell { width: min(900px, calc(100% - 40px)); grid-template-columns: 300px minmax(0, 1fr); }
.reg-alias fieldset { border: 0; padding: 0; margin: 0; }
.reg-alias legend { float: none; width: 100%; font-size: 1rem; }
.reg-alias textarea.form-control { min-height: 128px; resize: vertical; }
.now-talk { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; }
.now-talk small { display: block; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.now-talk strong { display: block; font-size: .95rem; line-height: 1.3; }
.now-dot { flex: none; width: 10px; height: 10px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px rgba(194, 65, 12, .15); }
.kind-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kind-row label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 16px; background: white; cursor: pointer; text-align: center; font-size: .88rem; font-weight: 600; line-height: 1.15; transition: border-color .15s, background .15s, color .15s; }
.kind-row label:hover { border-color: #d6d3d1; }
.kind-row label i { font-size: 1.3rem; color: var(--accent); }
.kind-row input { position: absolute; opacity: 0; pointer-events: none; }
.kind-row label:has(input:focus-visible) { outline: 3px solid rgba(194, 65, 12, .35); outline-offset: 2px; }
.kind-row label.on, .kind-row label:has(input:checked) { background: var(--ink); color: white; border-color: var(--ink); }
.kind-row label.on i, .kind-row label:has(input:checked) i { color: #fdba74; }
@media (max-width: 859px) {
    .reg-alias { padding: 0 0 24px; }
    .reg-alias .reg-shell { width: 100%; grid-template-columns: 1fr; gap: 0; }
    .reg-alias .reg-intro { text-align: center; padding: 22px 20px 26px; }
    .reg-alias .reg-intro h1 { font-size: 1.7rem; }
    .reg-alias .reg-intro p:last-child { margin: 0 auto; }
    .reg-alias .reg-logo-tile { margin-bottom: 14px; }
    .reg-alias .reg-card { margin: 0 12px; padding: 18px 16px 16px; }
}
.event-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--muted); }
.event-facts li { display: flex; align-items: flex-start; gap: 10px; }
.event-facts i { color: var(--accent); margin-top: 1px; }
.event-facts a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.event-section-title { margin: 0 0 14px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.room-tiles { display: grid; gap: 10px; }
.room-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.room-tile:hover { border-color: #fdba74; box-shadow: 0 10px 24px rgba(28, 25, 23, .06); color: var(--ink); }
.room-tile:active { transform: scale(.99); }
.room-tile-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.room-tile-body strong { font-size: 1.05rem; }
.room-tile-now { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.room-tile-now .now-dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(194, 65, 12, .15); }
.room-tile-idle { color: var(--muted); font-size: .88rem; }
.room-tile-go { flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: #fff7ed; color: var(--accent); }
.event-page .reg-actions { margin-top: 16px; }
.event-page .reg-actions .btn-ink { flex: 1; }
.event-secondary { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #fafaf9; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.event-secondary:hover { color: var(--ink); border-color: #d6d3d1; }
.event-secondary > i:first-child { font-size: 1.2rem; color: var(--accent); }
.event-secondary strong { display: block; font-size: .95rem; }
.event-secondary small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 859px) {
    .event-page .event-facts li { display: block; text-align: center; }
    .event-page .event-facts i { margin-right: 6px; }
}
@media (max-width: 400px) {
    .kind-row { gap: 6px; }
    .kind-row label { font-size: .78rem; padding: 10px 4px; }
}

.wall-body {
    --wall-bg: #070a0f; --wall-glass: rgba(255, 255, 255, .04); --wall-line: rgba(255, 255, 255, .08);
    --wall-text: #f0f4ff; --wall-muted: #7a8499;
    margin: 0; height: 100vh; overflow: hidden; background: var(--wall-bg); color: var(--wall-text);
    font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.wall { --accent-rgb: 247, 147, 26; --wall-accent: rgb(var(--accent-rgb)); position: relative; display: grid; grid-template-columns: 380px minmax(0, 1fr); height: 100vh; }
.wall::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 50%, rgba(var(--accent-rgb), .07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 85% 20%, rgba(59, 130, 246, .05) 0%, transparent 60%);
}
.wall > * { position: relative; z-index: 1; }
.wall-side { display: flex; flex-direction: column; gap: 22px; padding: 32px 28px 28px 53px; border-right: 1px solid var(--wall-line); background: rgba(7, 10, 15, .6); overflow: hidden; }
.wall-brand { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.wall-logo { display: flex; align-items: center; justify-content: center; max-width: 100%; }
.wall-logo img { display: block; max-height: 56px; max-width: 240px; object-fit: contain; border-radius: 8px; }
.wall-mark { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--wall-accent); color: #000; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.wall-event { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wall-muted); }
.wall-now { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 14px; border-radius: 20px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); }
.wall-now span:last-child { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wall-accent); }
.wall-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wall-accent); animation: wall-pulse-dot 1.6s ease-in-out infinite; }
.wall-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.28; letter-spacing: -.02em; color: white; }
.wall-divider { height: 1px; flex: none; background: linear-gradient(90deg, rgba(var(--accent-rgb), .35), transparent); }
.wall-label { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wall-muted); }
.wall-people { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.wall-person { display: flex; align-items: center; gap: 12px; }
.wall-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--wall-accent); background: linear-gradient(135deg, rgba(var(--accent-rgb), .15), rgba(59, 130, 246, .15)); border: 1.5px solid var(--wall-line); }
.wall-person-info { display: flex; flex-direction: column; min-width: 0; }
.wall-person-info strong { font-size: 13px; font-weight: 600; line-height: 1.3; }
.wall-person-info small { font-size: 11px; color: var(--wall-muted); }
.wall-chip { margin-left: auto; white-space: nowrap; padding: 2px 8px; border-radius: 10px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #93c5fd; background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .25); }
.wall-people-block { display: flex; flex-direction: column; min-height: 0; }
.wall-people-block[hidden] { display: none; }
.wall-qr { margin-top: auto; flex: none; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; background: var(--wall-glass); border: 1px solid var(--wall-line); }
.wall-qr-img { flex: none; background: white; border-radius: 12px; padding: 8px; }
.wall-qr-img img { display: block; width: 116px; height: 116px; image-rendering: pixelated; }
.wall-qr.is-large, .wall-qr.is-max { flex-direction: column; text-align: center; gap: 14px; }
.wall-qr.is-large .wall-qr-img img { width: min(200px, 28vh); height: auto; aspect-ratio: 1; }
.wall-qr.is-max { padding: 14px; }
.wall-qr.is-max .wall-qr-img { padding: 12px; border-radius: 16px; }
.wall-qr.is-max .wall-qr-img img { width: min(245px, 44vh); height: auto; aspect-ratio: 1; }
.wall-qr.is-large p, .wall-qr.is-max p { font-size: 15px; }
.wall-qr.is-max .wall-code strong { font-size: 28px; }
.wall.has-ticker .wall-people-block { display: none; }
.wall-ticker { flex: none; display: flex; align-items: stretch; overflow: hidden; border-radius: 16px; background: var(--wall-glass); border: 1px solid rgba(var(--accent-rgb), .3); }
.wall-ticker[hidden] { display: none; }
.wall-ticker-label { flex: none; display: flex; align-items: center; padding: 0 20px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #000; background: var(--wall-accent); }
.wall-ticker-window { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.wall-ticker-track { display: flex; width: max-content; animation: wall-ticker var(--ticker-duration, 30s) linear infinite; }
.wall-ticker-group { display: flex; align-items: center; gap: 44px; padding: 12px 44px 12px 0; }
.wall-ticker-item { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.wall-ticker-item .wall-person-info strong { font-size: 16px; }
.wall-ticker-item .wall-person-info small { font-size: 12px; }
.wall-ticker-item .wall-chip { margin-left: 0; }
@keyframes wall-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-ticker-track { animation: none; } }
.wall-qr p { margin: 0 0 10px; font-size: 13px; font-weight: 700; line-height: 1.4; color: white; }
.wall-qr p span { color: var(--wall-accent); }
.wall-code { display: inline-block; padding: 8px 14px; border-radius: 10px; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .25); }
.wall-code small { display: block; margin-bottom: 2px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--wall-muted); }
.wall-code strong { font-size: 22px; font-weight: 900; letter-spacing: .12em; color: var(--wall-accent); }

.wall-main { display: flex; flex-direction: column; gap: 20px; min-height: 0; padding: 32px 36px 24px; overflow: hidden; }
.wall-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wall-head h2 { margin: 4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: white; }
.wall-head h2 span { color: var(--wall-accent); }
.wall-switch { display: flex; gap: 8px; }
.wall-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--wall-muted); background: var(--wall-glass); border: 1px solid var(--wall-line); }
.wall-switch a.on { color: #fca5a5; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .25); }
.wall-switch a.on.top { color: var(--wall-accent); background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .3); }
.wall-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, .6); animation: wall-pulse-live 1.2s ease-in-out infinite; }
.wall-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.wall-stat { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: var(--wall-glass); border: 1px solid var(--wall-line); }
.wall-stat i { font-size: 18px; color: var(--wall-accent); }
.wall-stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; color: white; }
.wall-stat small { font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--wall-muted); }
.wall-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding-right: 4px; }
.wall-list::-webkit-scrollbar { width: 4px; }
.wall-list::-webkit-scrollbar-thumb { background: var(--wall-line); border-radius: 2px; }
.wall-card { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 22px 24px; border-radius: 18px; background: var(--wall-glass); border: 1px solid var(--wall-line); }
.wall-card.is-top, .wall-card.is-featured { background: rgba(var(--accent-rgb), .04); border-color: rgba(var(--accent-rgb), .35); }
.wall-card.is-featured { padding: 28px 30px; }
.wall-badge { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wall-accent); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .25); }
.wall-votes { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 48px; flex: none; }
.wall-votes span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 15px; color: var(--wall-accent); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .25); }
.wall-votes b { font-size: 20px; font-weight: 800; color: var(--wall-accent); }
.wall-q { flex: 1; min-width: 0; }
.wall-card.is-top .wall-q, .wall-card.is-featured .wall-q { padding-right: 96px; }
.wall-q-text { margin: 0 0 12px; font-size: clamp(18px, 1.45vw, 26px); font-weight: 500; line-height: 1.5; color: var(--wall-text); }
.wall-card.is-featured .wall-q-text { font-size: clamp(22px, 1.9vw, 34px); font-weight: 600; line-height: 1.35; }
.wall-q-original { margin: -6px 0 12px; font-size: 14px; color: var(--wall-muted); }
.wall-answer { margin: 0 0 14px; padding: 4px 0 4px 14px; border-left: 3px solid var(--wall-accent); font-size: clamp(15px, 1.1vw, 19px); line-height: 1.5; color: #d7dceb; }
.wall-answer b { color: var(--wall-accent); font-weight: 700; }
.wall-meta { display: flex; align-items: center; gap: 10px; }
.wall-meta .wall-avatar { width: 26px; height: 26px; font-size: 10px; border-width: 1px; }
.wall-meta span { font-size: 13px; font-weight: 500; color: var(--wall-muted); }
.wall-meta time { margin-left: auto; font-size: 12px; color: var(--wall-muted); }
.wall-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.wall-empty i { font-size: 56px; color: var(--wall-muted); opacity: .4; }
.wall-empty strong { font-size: 22px; font-weight: 700; color: var(--wall-muted); }
.wall-empty span { max-width: 340px; font-size: 15px; color: #4a5568; }
.wall-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--wall-line); font-size: 12px; color: var(--wall-muted); }
.wall-foot b { color: var(--wall-accent); font-weight: 600; }
.wall-foot .wall-session { display: inline-flex; align-items: center; gap: 6px; }
.wall-foot .wall-session i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.wall-foot .wall-session.idle i { background: var(--wall-muted); }
@keyframes wall-pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.75); } }
@keyframes wall-pulse-live { 0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, .5); } 50% { box-shadow: 0 0 16px rgba(239, 68, 68, .9); } }
@media (prefers-reduced-motion: reduce) { .wall-dot, .wall-live-dot { animation: none; } }
@media (max-width: 1000px) {
    .wall-body { height: auto; overflow: auto; }
    .wall { grid-template-columns: 1fr; height: auto; }
    .wall-side { border-right: 0; border-bottom: 1px solid var(--wall-line); }
    .wall-main { overflow: visible; }
    .wall-card.is-top .wall-q, .wall-card.is-featured .wall-q { padding-right: 0; padding-top: 18px; }
}

.projection { background: #07080b; color: white; min-height: 100vh; display: grid; grid-template-columns: 340px 1fr; }
.projection-side { padding: 28px; }
.projection-main { padding: 28px 32px; }
.now { color: #f5c16c; letter-spacing: .14em; font-size: .8rem; font-weight: 700; }
.qr-box { background: white; border-radius: 16px; padding: 10px; width: 220px; }
.live-banner { background: #1c1d22; border-radius: 22px; padding: 22px 24px; font-size: 1.8rem; font-weight: 700; }
.view-switch { position: fixed; right: 22px; bottom: 22px; display: flex; gap: 8px; z-index: 5; }
.view-switch a { display: inline-flex; align-items: center; gap: 8px; color: #d6d3d1; background: #222; border-radius: 999px; padding: 8px 14px; text-decoration: none; font-size: .92rem; font-weight: 650; }
.view-switch a.on { background: white; color: black; }
.live-beat { width: 9px; height: 9px; border-radius: 99px; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: live-beat 1.3s ease-in-out infinite; }
@keyframes live-beat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
    18% { transform: scale(1.35); box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); }
    32% { transform: scale(1); }
    48% { transform: scale(1.2); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    64% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .live-beat { animation: none; }
}

.hero { padding: 72px 8vw; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.04em; max-width: 14ch; }
.menu-toggle { display: none; }

.site-nav {
    position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid #eee;
}
.site-nav .brand { padding: 0; color: #1c1917; flex-shrink: 0; }
.site-nav .brand small { color: #78716c; white-space: nowrap; }
.site-nav .langs, .login-panel .langs { padding: 0; flex-wrap: nowrap; }
.site-nav .langs a, .login-panel .langs a { white-space: nowrap; }
.nav-links { display: flex; gap: 22px; align-items: center; flex-shrink: 0; }
.btn-code, .btn-access { white-space: nowrap; flex-shrink: 0; }
.nav-links a { text-decoration: none; color: #44403c; font-weight: 550; }
.btn-access { border: 1px solid #e7e5e4; background: white; border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 650; }
.btn-code { background: #1c1917; color: white; border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 650; }
.site { color: var(--ink); }
.site-section { padding: 76px 0; }
.site-kicker { margin: 0 0 12px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.035em; line-height: 1.12; margin: 0 0 12px; }
.site-hero { padding: 64px 0 28px; }
.site-hero-grid, .site-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.site-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.15rem); letter-spacing: -.045em; line-height: 1.02; max-width: 14ch; margin: 0; }
.site-hero .lede { font-size: 1.12rem; max-width: 42ch; margin-top: 18px; }
.site-lead { max-width: 62ch; }
.site-foot strong { color: var(--ink); }
.code-band .btn { padding: 12px 16px; }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-actions .btn { padding: 12px 18px; }
.band { background: #faf8f6; }
.step-card, .info-card, .lang-card, .program-card, .stage, .mod-panel {
    background: white; border: 1px solid var(--line); border-radius: 20px;
}
.step-card, .info-card { padding: 22px 22px 20px; height: 100%; }
.step-no { width: 36px; height: 36px; border-radius: 999px; background: #fff7ed; color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }
.step-card h3, .info-card h3 { font-size: 1.12rem; letter-spacing: -.02em; margin: 0 0 8px; }
.step-card p, .info-card p { color: var(--muted); margin: 0; }
.stage { padding: 18px; box-shadow: 0 24px 50px rgba(28, 25, 23, .08); }
.stage-screen { background: #14120f; color: white; border-radius: 16px; padding: 22px 20px 18px; }
.stage-live { color: #f5c16c; letter-spacing: .14em; font-size: .72rem; font-weight: 700; }
.stage-q { font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; margin: 14px 0 10px; }
.stage-meta { color: #a8a29e; font-size: .85rem; }
.stage-list { margin-top: 12px; display: grid; gap: 8px; }
.stage-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fafaf9; font-weight: 600; }
.stage-list b { color: var(--accent); }
.mod-panel { padding: 8px; }
.mod-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; }
.mod-row + .mod-row { border-top: 1px solid #f5f5f4; }
.mod-row b { font-size: 1.05rem; }
.mod-row span { color: var(--muted); font-size: .82rem; }
.key { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px; padding: 2px 7px; font-size: .75rem; font-weight: 700; background: #fafaf9; }
.code-band { background: #1c1917; color: white; border-radius: 28px; padding: 36px 32px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.code-band h2, .code-band p { color: white; }
.code-band .lede { color: #d6d3d1; }
.code-band .form-control { border: 0; border-radius: 999px; padding: 12px 16px; }
.lang-card { display: block; padding: 18px; text-decoration: none; height: 100%; }
.lang-card:hover { border-color: #d6d3d1; }
.lang-card small { color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.lang-card strong { display: block; margin: 8px 0 4px; font-size: 1.05rem; }
.lang-card span { color: var(--muted); }
.program-card { display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; padding: 20px; text-decoration: none; height: 100%; }
.program-card:hover { border-color: #d6d3d1; }
.program-card strong { font-size: 1.15rem; letter-spacing: -.02em; }
.program-card span { color: var(--muted); font-size: .9rem; }
.close-panel { border: 1px solid var(--line); border-radius: 28px; padding: 36px 32px; display: flex; justify-content: space-between; gap: 24px; align-items: center; background: white; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: .9rem; }
.site-foot a { color: var(--ink); font-weight: 650; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.login-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: white; }
.login-story { background: #c4472a; color: white; padding: 28px 40px 32px; display: flex; flex-direction: column; min-height: 100vh; }
.login-story h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -.04em; line-height: 1.02; max-width: 12ch; margin-top: 18vh; }
.login-story .brand, .login-story .brand small, .login-story .brand strong { color: white; }
.login-mock { margin-top: auto; width: min(420px, 100%); background: #111; border-radius: 18px; padding: 16px; transform: rotate(-6deg); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.login-panel { padding: 28px 8vw; display: flex; flex-direction: column; }
.login-panel h1 { letter-spacing: -.03em; }
.login-form { max-width: 420px; margin: auto 0; }
.field-line { border: 0; border-bottom: 1px solid #e7e5e4; border-radius: 0; padding-left: 0; }
.field-line:focus { box-shadow: none; border-color: #c4472a; }
.system-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid #fed7aa; border-radius: 16px; background: #fff7ed; }
.system-alert > i { flex: none; font-size: 1.3rem; color: var(--accent); }
.system-alert div { flex: 1; min-width: 0; }
.system-alert strong { display: block; }
.system-alert span { color: var(--muted); font-size: .88rem; }
.system-alert form { flex: none; }
@media (max-width: 680px) { .system-alert { flex-wrap: wrap; } .system-alert form { width: 100%; } .system-alert .btn-ink { width: 100%; } }
.password-field { position: relative; }
.password-field .field-line { padding-right: 36px; }
.password-toggle {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: #78716c; padding: 4px 2px; line-height: 1;
}
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: #1c1917; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .site-hero-grid, .site-split, .code-band, .close-panel { grid-template-columns: 1fr; display: grid; }
    .close-panel { align-items: flex-start; }
    .site-section { padding: 52px 0; }
}
@media (max-width: 680px) {
    .login-split { grid-template-columns: 1fr; }
    .login-story { min-height: auto; padding-bottom: 48px; }
    .login-story h1 { margin-top: 28px; }
    .login-mock { transform: none; }
    .live-card-top, .event-card-top { flex-direction: column; }
    .live-actions { justify-content: flex-start; }
    .org-stats { grid-template-columns: 1fr; }
    .org-stats div + div { border-left: 0; border-top: 1px solid #efece8; }
}

@media (max-width: 900px) {
    .sidebar { position: fixed; z-index: 20; transform: translateX(-105%); transition: .2s ease; }
    .sidebar.open { transform: none; box-shadow: 18px 0 40px rgba(0,0,0,.22); }
    .admin-main { padding: 18px; }
    .menu-toggle { display: inline-flex; }
    .projection { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; }
}
