:root {
  --ink: #0a1730; --ink-2: #102347; --ink-3: #18305c;
  --enamel: #1d4396; --sky: #86b6e6;
  --gold: #c8a04b; --gold-soft: #e7d29c;
  --stone: #eef1f6; --paper: #f9fafc;
  --text: #13203a; --muted: #56637c; --muted-dark: #a9b6cc;
  --line: rgba(19, 32, 58, .12); --line-dark: rgba(231, 210, 156, .18);
  --ok: #2f8a5b; --bad: #b5443a;
  --f-display: "Marcellus", "Forum", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: #050d1d; color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.15; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Frame: full screen on phones, a phone-sized column on big screens */
#app { max-width: 480px; margin: 0 auto; min-height: 100%; background: var(--paper); position: relative; display: flex; flex-direction: column; box-shadow: 0 0 80px rgba(0, 0, 0, .5); }
@media (min-width: 520px) { body { background: radial-gradient(circle at 50% 0%, #17305e, #050d1d 70%); } }

.demo-bar { position: sticky; top: 0; z-index: 40; background: var(--gold); color: var(--ink); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: calc(.35rem + var(--safe-t)) .9rem .35rem; }
.demo-bar button { background: none; border: 1px solid rgba(10, 23, 48, .4); border-radius: 99px; padding: .15rem .6rem; font: inherit; letter-spacing: .08em; }

.topbar { position: sticky; top: calc(1.7rem + var(--safe-t)); z-index: 30; background: rgba(10, 23, 48, .96); backdrop-filter: blur(10px); color: #fff; display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; min-height: 56px; border-bottom: 1px solid var(--line-dark); }
.topbar h1 { font-size: 1.15rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; text-decoration: none; }
.topbar .brand img { width: 34px; height: 34px; }
.topbar .brand span { font-family: var(--f-display); font-size: .95rem; line-height: 1.1; }
.topbar .brand small { display: block; font-family: var(--f-mono); font-size: .56rem; letter-spacing: .2em; color: var(--gold-soft); text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; display: grid; place-items: center; color: var(--gold-soft); flex: none; position: relative; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #e2574c; border: 2px solid var(--ink); }

main { flex: 1; padding-bottom: calc(84px + var(--safe-b)); }
.view { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pad { padding: 1.1rem; }
.stack > * + * { margin-top: 1rem; }

/* Tab bar */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30; background: rgba(10, 23, 48, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-b); }
.tabs a { display: grid; justify-items: center; gap: 3px; padding: .55rem 0 .5rem; text-decoration: none; color: var(--muted-dark); font-size: .66rem; letter-spacing: .02em; position: relative; }
.tabs a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--gold-soft); }
.tabs a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--gold); border-radius: 0 0 2px 2px; }

/* Hero */
.hero { background: radial-gradient(circle at 50% 30%, var(--ink-3), var(--ink) 70%); color: #fff; padding: 1.6rem 1.1rem 1.8rem; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 38%, transparent 0 38px, rgba(231, 210, 156, .05) 38px 39px); pointer-events: none; }
.medal { width: 150px; height: 150px; margin: .3rem auto 1rem; perspective: 700px; }
.medal img { width: 100%; height: 100%; animation: spin 14s linear infinite; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5)); }
@keyframes spin { to { transform: rotateY(360deg); } }
.hero .eyebrow { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.hero h2 { font-size: 1.65rem; margin-top: .35rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.3rem; border-top: 1px solid var(--line-dark); padding-top: 1rem; position: relative; z-index: 1; }
.hero-stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; color: #fff; }
.hero-stats span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 1.4rem 0 .7rem; }
.section-title h3 { font-size: 1.25rem; }
.section-title a { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--enamel); text-decoration: none; }
.eyebrow { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--enamel); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.card.pad { padding: 1rem; }
.news-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-card .body { padding: .85rem 1rem 1rem; }
.news-card h4 { font-family: var(--f-display); font-weight: 400; font-size: 1.12rem; margin: .25rem 0 .3rem; line-height: 1.25; }
.news-row { display: grid; grid-template-columns: 92px 1fr; gap: .8rem; align-items: center; padding: .6rem; }
.news-row img { width: 92px; height: 70px; object-fit: cover; border-radius: 9px; }
.news-row h4 { font-family: var(--f-display); font-weight: 400; font-size: 1rem; line-height: 1.25; margin-top: .15rem; }
.list > * + * { margin-top: .7rem; }

.event-row { display: grid; grid-template-columns: 58px 1fr; gap: .9rem; align-items: center; padding: .8rem; }
.datebox { background: var(--ink); color: #fff; border-radius: 10px; text-align: center; padding: .4rem 0; }
.datebox b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.datebox span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.event-row h4 { font-weight: 600; font-size: .98rem; margin: 0 0 .15rem; }

.notice { display: flex; gap: .7rem; align-items: center; background: var(--stone); border-radius: 12px; padding: .8rem 1rem; text-decoration: none; font-size: .92rem; }
.notice svg { width: 22px; height: 22px; stroke: var(--enamel); fill: none; stroke-width: 1.7; flex: none; }

/* Search & members */
.search { position: sticky; top: calc(1.7rem + 56px + var(--safe-t)); z-index: 5; background: var(--paper); padding: .9rem 1.1rem .6rem; }
.search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .8rem 1rem .8rem 2.7rem; font-size: 1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356637c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 1rem center; background-size: 18px; }
.member-row { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; padding: .7rem .9rem; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--enamel), var(--ink)); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.05rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-row b { display: block; font-weight: 600; }
.member-row small { color: var(--muted); font-size: .8rem; }
.badge-no { font-family: var(--f-mono); font-size: .78rem; color: var(--enamel); letter-spacing: .06em; }
.pill { display: inline-block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 99px; background: rgba(47, 138, 91, .12); color: var(--ok); }
.pill.off { background: rgba(181, 68, 58, .1); color: var(--bad); }
mark { background: rgba(200, 160, 75, .35); color: inherit; border-radius: 2px; }

/* Member card (sheet) */
.idcard { background: radial-gradient(circle at 80% 0%, var(--ink-3), var(--ink) 65%); color: #fff; border-radius: 18px; padding: 1.3rem; position: relative; overflow: hidden; border: 1px solid var(--line-dark); }
.idcard::before { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; background: url(img/seal.webp) center/contain no-repeat; opacity: .14; }
.idcard .top { display: flex; gap: 1rem; align-items: center; }
.idcard .avatar { width: 66px; height: 66px; font-size: 1.5rem; border: 2px solid var(--gold); }
.idcard h3 { font-size: 1.4rem; }
.idcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: 1.2rem 0 0; }
.idcard dt { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.idcard dd { margin: .15rem 0 0; }

/* Sheets, dialogs, toasts */
.scrim { position: fixed; inset: 0; background: rgba(5, 13, 29, .6); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--paper); width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: .6rem 1.1rem calc(1.2rem + var(--safe-b)); max-height: 90vh; overflow: auto; animation: up .35s var(--ease) both; }
.sheet::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto .9rem; }
@keyframes up { from { transform: translateY(100%); } }
.sheet h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; border: 1px solid var(--line-dark); border-radius: 14px; padding: .75rem .9rem .75rem 1.1rem; display: flex; align-items: center; gap: 1rem; width: calc(100% - 2rem); max-width: 440px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: toast .35s var(--ease) both; font-size: .95rem; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 20px); } }
.toast span { flex: 1; }
.toast svg { width: 22px; height: 22px; stroke: #7dd3a5; fill: none; stroke-width: 2.2; flex: none; }
.toast button { background: var(--gold); color: var(--ink); border: 0; border-radius: 99px; padding: .45rem .9rem; font-weight: 700; font-size: .85rem; }

/* Forms & buttons */
.field { display: grid; gap: .3rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(19, 32, 58, .2); background: #fff; border-radius: 12px; padding: .8rem .9rem; font-size: 1rem; min-height: 50px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--enamel); outline: 0; box-shadow: 0 0 0 3px rgba(29, 67, 150, .15); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.check input { width: 22px; height: 22px; accent-color: var(--enamel); flex: none; margin-top: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 54px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; padding: .7rem 1rem; transition: transform .15s; }
.btn:active { transform: scale(.98); }
.btn.gold { background: linear-gradient(135deg, #e7d29c, #c8a04b 55%, #a8812f); color: var(--ink); }
.btn.ghost { background: transparent; border: 1px solid rgba(19, 32, 58, .25); color: var(--text); }
.btn.danger { background: var(--bad); }
.btn.sm { min-height: 42px; width: auto; font-size: .88rem; border-radius: 99px; padding: .5rem 1rem; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btns { display: grid; gap: .6rem; }
.btns.two { grid-template-columns: 1fr 1fr; }
.error { color: var(--bad); font-size: .88rem; }
.warn { background: #fff4dc; border: 1px solid #ecd08e; color: #6b4d0e; border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; }

/* Menu list */
.menu { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.menu a, .menu button { display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; text-decoration: none; width: 100%; background: none; border: 0; text-align: left; font-size: 1rem; }
.menu > * + * { border-top: 1px solid var(--line); }
.menu svg { width: 22px; height: 22px; fill: none; stroke: var(--enamel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu .chev { margin-left: auto; color: var(--muted); }
.menu .count { margin-left: auto; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: .1rem .5rem; }
.menu .on { margin-left: auto; color: var(--enamel); font-weight: 700; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-head h3 { font-size: 1.3rem; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted); padding: .3rem 0; text-transform: uppercase; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 10px; background: #fff; font-size: .9rem; position: relative; }
.cal button.out { visibility: hidden; }
.cal button.today { outline: 2px solid var(--gold); }
.cal button.has { background: var(--ink); color: #fff; }
.cal button.has::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }
.cal button.sel { box-shadow: 0 0 0 2px var(--enamel); }

/* Gallery */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid3 button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--stone); position: relative; }
.grid3 img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.grid3 .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(181, 68, 58, .95); color: #fff; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5, 13, 29, .95); display: grid; place-items: center; padding: 1rem; animation: fade .25s both; }
.lightbox img { max-height: 85vh; border-radius: 8px; }

/* Admin */
.admin-hero { background: var(--ink); color: #fff; padding: 1.2rem 1.1rem 1.4rem; }
.admin-hero .role { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.admin-hero h2 { font-size: 1.5rem; margin-top: .3rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; text-decoration: none; display: grid; gap: .5rem; min-height: 112px; position: relative; text-align: left; }
.tile svg { width: 30px; height: 30px; fill: none; stroke: var(--enamel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile b { font-size: 1rem; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile .count { position: absolute; top: .8rem; right: .8rem; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: .1rem .5rem; }
.tile.locked { opacity: .45; }
.tile.locked::after { content: "🔒"; position: absolute; top: .8rem; right: .9rem; font-size: .9rem; }
.role-pick { display: grid; gap: .8rem; }
.role-pick button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; display: grid; gap: .2rem; }
.role-pick b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }

.toolbar { display: flex; gap: .5rem; overflow-x: auto; padding: 0 1.1rem .6rem; scrollbar-width: none; }
.toolbar::-webkit-scrollbar { display: none; }
.toolbar select { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .5rem .8rem; font-size: .85rem; flex: none; max-width: 170px; }
.admin-row { display: grid; grid-template-columns: 42px 1fr auto; gap: .7rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; }
.admin-row .avatar { width: 42px; height: 42px; font-size: .95rem; }
.admin-row b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.admin-row small { color: var(--muted); font-size: .78rem; }
.admin-row .acts { display: flex; align-items: center; gap: .3rem; }
.mini { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.mini svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini.del svg { stroke: var(--bad); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #c6ccd8; border-radius: 99px; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.fab { position: fixed; right: max(1rem, calc(50% - 240px + 1rem)); bottom: calc(1.2rem + var(--safe-b)); z-index: 35; background: linear-gradient(135deg, #e7d29c, #c8a04b 55%, #a8812f); color: var(--ink); border: 0; border-radius: 99px; padding: .95rem 1.3rem; font-weight: 700; display: flex; gap: .4rem; align-items: center; box-shadow: 0 10px 26px rgba(10, 23, 48, .35); text-decoration: none; }
.fab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.app-card h4 { font-size: 1.05rem; margin: 0 0 .2rem; }
.app-card dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .6rem 0 .9rem; font-size: .9rem; }
.app-card dt { color: var(--muted); }
.app-card dd { margin: 0; }
.log-row { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.log-row time { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); white-space: nowrap; padding-top: .15rem; }
.img-pick { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.img-pick button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--stone); }
.img-pick button.on { border-color: var(--gold); }
.img-pick img { width: 100%; height: 100%; object-fit: cover; }
.img-pick .up { display: grid; place-items: center; font-size: 1.6rem; color: var(--enamel); border: 2px dashed rgba(29, 67, 150, .35); }

/* Stats */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.kpi b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; }
.kpi span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chart { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.chart h4 { font-size: .95rem; margin: 0 0 .8rem; }
.bars { display: grid; gap: .45rem; }
.bar { display: grid; grid-template-columns: 7.5rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .82rem; }
.bar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar i { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--enamel), var(--sky)); transform-origin: left; animation: grow .8s var(--ease) both; }
.bar b { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
@keyframes grow { from { transform: scaleX(0); } }
.cols { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.cols div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.cols i { display: block; width: 100%; background: linear-gradient(180deg, var(--gold), #a8812f); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: growY .8s var(--ease) both; }
.cols b { font-size: .65rem; font-weight: 600; }
.cols span { font-family: var(--f-mono); font-size: .55rem; color: var(--muted); text-transform: uppercase; }
@keyframes growY { from { transform: scaleY(0); } }
.donut { display: flex; align-items: center; gap: 1.2rem; }
.donut svg { width: 120px; height: 120px; flex: none; }
.legend { display: grid; gap: .4rem; font-size: .88rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
table.stat { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.stat th { text-align: left; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: .5rem .3rem; border-bottom: 1px solid var(--line); }
table.stat td { padding: .55rem .3rem; border-bottom: 1px solid var(--line); }
table.stat td.n, table.stat th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.stat tfoot td { font-weight: 700; border-bottom: 0; }

/* Registration */
.reg-hero { background: radial-gradient(circle at 50% 20%, var(--ink-3), var(--ink) 70%); color: #fff; text-align: center; padding: 1.4rem 1.2rem 1.6rem; }
.reg-hero .medal { width: 110px; height: 110px; margin-bottom: .7rem; }
.reg-hero h2 { font-size: 1.6rem; }
.reg-hero p { color: var(--muted-dark); font-size: .92rem; margin-top: .5rem; }
.reg-lang { display: flex; justify-content: center; gap: .35rem; margin-top: 1rem; flex-wrap: wrap; }
.reg-lang button { background: transparent; border: 1px solid var(--line-dark); color: var(--muted-dark); border-radius: 99px; padding: .3rem .7rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; }
.reg-lang button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pending { text-align: center; padding: 2.5rem 1.4rem; }
.pending .clock { width: 86px; height: 86px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--stone); }
.pending .clock svg { width: 42px; height: 42px; stroke: var(--enamel); fill: none; stroke-width: 1.6; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }
.pending h2 { font-size: 1.6rem; margin-bottom: .6rem; }

.cookie { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-b)); width: calc(100% - 1.4rem); max-width: 460px; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: 0 16px 40px rgba(10, 23, 48, .25); animation: toast .4s var(--ease) both; }
.cookie p { font-size: .9rem; margin-bottom: .8rem; }
.cookie a { font-size: .85rem; color: var(--enamel); }

.article img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.article h2 { font-size: 1.7rem; margin: .4rem 0 .8rem; }
.article p { font-size: 1.05rem; line-height: 1.7; }
.leader { display: grid; grid-template-columns: 74px 1fr; gap: .9rem; align-items: center; }
.leader img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.leader b { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; display: block; }
.org { display: grid; gap: .5rem; justify-items: center; text-align: center; }
.org div { background: var(--ink); color: #fff; border-radius: 12px; padding: .8rem 1rem; width: 100%; font-family: var(--f-display); }
.org div:last-child { background: var(--stone); color: var(--text); font-family: var(--f-body); font-size: .9rem; }
.org i { width: 1px; height: 18px; background: var(--gold); }
.seg { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .5rem .9rem; font-size: .88rem; }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.verify-res { border-radius: 14px; padding: 1rem; display: flex; gap: .8rem; align-items: center; font-weight: 600; animation: viewIn .4s var(--ease) both; }
.verify-res.ok { background: rgba(47, 138, 91, .1); color: var(--ok); }
.verify-res.no { background: rgba(181, 68, 58, .08); color: var(--bad); }
.verify-res svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.install-steps { counter-reset: s; display: grid; gap: .7rem; }
.install-steps p { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.toolbar .btn.sm { flex: none; white-space: nowrap; }
