/* Quöllfrisch Swiss OCR Team. Dark navy and white, hard diagonals, heavy condensed type. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlow-condensed/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/barlow-condensed/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 900; font-style: italic; font-display: swap; src: url(/fonts/barlow-condensed/barlow-condensed-latin-900-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/barlow/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlow/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
  --navy-950: #030b1c; --navy-900: #061430; --navy-800: #0a1f4a; --navy-700: #0f2c66; --navy-600: #173d8a;
  --blue: #2f6bff; --ice: #9cc2ff; --white: #fff; --paper: #f2f5fb; --ink: #0a1630; --muted: #9fb0d0;
  --line: rgba(255,255,255,.14); --ok: #37d39a; --warn: #ffc857; --bad: #ff6b6b;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --skew: 4vw;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy-950); color: var(--white); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
:where(img[width][height]) { height: auto; } /* width/height attributes reserve the space; CSS still decides the size */
a { color: inherit; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .92; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 11vw, 9rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.kicker { font: 800 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .22em; color: var(--ice); display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.kicker::before { content: ""; width: 2.4rem; height: 4px; background: var(--white); transform: skewX(-24deg); }
.lead { font-size: 1.2rem; color: #d6e2fb; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.7rem; border: 0; cursor: pointer; text-decoration: none;
  font: 800 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--navy-900); background: var(--white);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateX(4px); background: var(--ice); }
.btn.blue { background: var(--blue); color: var(--white); } .btn.blue:hover { background: #4d82ff; }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); clip-path: none; transform: skewX(-12deg); }
.btn.ghost > span { transform: skewX(12deg); } .btn.ghost:hover { background: var(--white); color: var(--navy-900); }
.btn.sm { padding: .5rem 1rem; font-size: .95rem; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.btn.danger { background: var(--bad); color: #2a0606; }
.btn.plain { background: rgba(255,255,255,.1); color: var(--white); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }

/* ---------- header ---------- */
.demo { background: repeating-linear-gradient(-45deg, var(--white) 0 14px, var(--ice) 14px 28px); color: var(--navy-900); text-align: center; font: 800 .8rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; padding: .45rem 1rem; }
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* the blur sits on a layer behind the header: a backdrop-filter on the header itself would trap the full screen phone menu inside the 64px header */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3,11,28,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); transition: transform .3s; }
.brand:hover img { transform: rotate(-4deg) scale(1.06); }
.brand .mark { width: 40px; height: 40px; background: var(--white); color: var(--navy-900); display: grid; place-items: center; font: 900 italic 1.5rem/1 var(--display); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.brand b { font: 900 italic 1.45rem/.9 var(--display); text-transform: uppercase; }
.brand small { display: block; font: 600 .68rem/1 var(--display); letter-spacing: .3em; color: var(--ice); text-transform: uppercase; margin-top: .25rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--white); color: var(--navy-900); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { left: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a:not(.btn) { position: relative; display: inline-flex; align-items: center; gap: .45rem; font: 800 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .09em; text-decoration: none; color: #d6e2fb; padding: .7rem .6rem; }
.nav a:not(.btn) .ic { display: none; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .25rem; height: 3px; background: var(--white); transform: scaleX(0) skewX(-24deg); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.btn):hover, .nav a.on { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a.on::after { transform: scaleX(1) skewX(-24deg); }
.nav .btn { margin-left: .6rem; }
.badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 99px; background: var(--blue); color: var(--white); font: 800 .75rem/1 var(--display); letter-spacing: 0; font-style: normal; }
.badge.warn { background: var(--warn); color: #3a2a00; } .badge.soft { background: rgba(255,255,255,.16); }
.nav .badge { margin-left: .1rem; }
#navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; cursor: pointer; width: 48px; height: 48px; place-items: center; order: 3; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 26px; height: 3px; background: var(--white); transform: skewX(-20deg); transition: transform .25s, background .2s; }
.burger span::before { translate: 0 -8px; } .burger span::after { translate: 0 5px; }
#navtoggle:checked ~ .burger span { background: transparent; }
#navtoggle:checked ~ .burger span::before { transform: translateY(8px) rotate(45deg); } #navtoggle:checked ~ .burger span::after { transform: translateY(-5px) rotate(-45deg); }
#navtoggle:focus-visible ~ .burger { outline: 3px solid var(--ice); }

/* user menu: only personal things */
.usermenu { position: relative; order: 4; }
.usermenu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--white), var(--blue)); transition: box-shadow .2s; }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu[open] > summary, .usermenu > summary:hover { box-shadow: 0 0 0 3px rgba(156,194,255,.5); }
.um-panel { position: absolute; right: 0; top: calc(100% + .8rem); width: min(300px, calc(100vw - 1.5rem)); background: var(--navy-900); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); display: grid; padding: .4rem 0; z-index: 60; max-height: calc(100dvh - 100px); overflow-y: auto; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.um-head { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.um-head > div { display: grid; gap: .2rem; min-width: 0; }
.um-head b { font: 900 italic 1.3rem/1 var(--display); text-transform: uppercase; }
.um-head span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.um-head .chip { justify-self: start; }
.um-panel a, .um-panel button { display: flex; align-items: center; gap: .75rem; text-align: left; padding: .7rem 1rem; text-decoration: none; font: 600 1rem/1.2 var(--body); color: #e3ebfb; background: none; border: 0; width: 100%; cursor: pointer; }
.um-panel .ic { color: var(--ice); }
.um-panel a:hover, .um-panel button:hover { background: rgba(255,255,255,.08); color: var(--white); }
.um-panel form { margin: .3rem 0 0; border-top: 1px solid var(--line); padding-top: .3rem; }

/* avatars everywhere */
.av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--navy-600), var(--blue)); color: var(--white); flex: none; text-decoration: none; vertical-align: middle; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av i { font: 900 italic 1em/1 var(--display); font-style: italic; letter-spacing: .02em; }
.av-xs { width: 28px; height: 28px; font-size: .78rem; } .av-sm { width: 40px; height: 40px; font-size: 1rem; } .av-md { width: 54px; height: 54px; font-size: 1.3rem; } .av-lg { width: 96px; height: 96px; font-size: 2.2rem; }
a.av:hover { box-shadow: 0 0 0 3px var(--ice); }

/* mobile tab bar for members */
.tabbar { display: none; }
.verifybar { background: var(--warn); color: #2b2000; font-size: .95rem; }
.verifybar.soft { background: var(--navy-700); color: var(--white); }
.verifybar .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .6rem 0; }
.verifybar form { margin: 0; } .verifybar .btn { background: var(--navy-900); color: var(--white); } .verifybar.soft .btn { background: rgba(255,255,255,.14); }

@media (max-width: 1120px) {
  .top .wrap { gap: .6rem; min-height: 64px; }
  .burger { display: grid; }
  .nav { position: fixed; inset: 64px 0 0 0; z-index: 55; background: rgba(3,11,28,.98); backdrop-filter: blur(12px); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem calc(6rem + env(safe-area-inset-bottom)); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  #navtoggle:checked ~ .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav a:not(.btn) { font-size: 1.5rem; padding: 1rem .2rem; border-bottom: 1px solid var(--line); gap: .9rem; }
  .nav a:not(.btn) .ic { display: block; color: var(--ice); }
  .nav a:not(.btn)::after { display: none; }
  .nav a.on { color: var(--white); background: linear-gradient(90deg, rgba(47,107,255,.25), transparent); }
  .nav .badge { margin-left: auto; }
  .nav .btn { margin: 1.4rem 0 .4rem; justify-content: center; font-size: 1.2rem; padding: 1rem; }
  /* while the phone menu is open the page behind must not scroll: lock it on html (on body the header would scroll away with the page) */
  html:has(#navtoggle:checked) { overflow: hidden; }
  .nav { overscroll-behavior: contain; transform: translateX(14px); }
  /* right handed: entries on the right side, where the thumb is */
  .nav a:not(.btn) { flex-direction: row-reverse; justify-content: flex-start; text-align: right; }
  .nav a.on { background: linear-gradient(270deg, rgba(47,107,255,.25), transparent); }
  .nav .badge { margin-left: 0; margin-right: .3rem; }
  .nav .btn { align-self: flex-end; width: min(100%, 320px); }
}
@media (max-width: 1120px) {
  body.in { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; background: rgba(3,11,28,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: .2rem; padding: .55rem 0 .5rem; text-decoration: none; color: var(--muted); font: 800 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
  .tabbar .ic { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--white); } .tabbar a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--blue); }
  .tabbar .badge { position: absolute; top: .3rem; left: calc(50% + 6px); min-width: 1.2rem; height: 1.2rem; font-size: .68rem; }
}
@media (max-width: 520px) {
  .brand img { height: 44px; }
  .brand b { font-size: 1.2rem; } .brand small { font-size: .58rem; letter-spacing: .22em; }
}
@media (max-width: 360px) { .brand > span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 11vw, 9rem) 0 calc(clamp(4rem, 9vw, 7rem) + var(--skew));
  background: radial-gradient(120% 90% at 85% 10%, var(--navy-600) 0%, var(--navy-800) 38%, var(--navy-950) 78%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(-62deg, transparent 0 46px, rgba(255,255,255,.035) 46px 48px), linear-gradient(115deg, transparent 58%, rgba(47,107,255,.35) 58% 61%, transparent 61% 66%, rgba(255,255,255,.09) 66% 67.5%, transparent 67.5%); }
.hero .photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3,11,28,.96) 0%, rgba(6,20,48,.82) 45%, rgba(10,31,74,.45) 100%); }
.hero .bg-word { position: absolute; right: -2vw; bottom: 2vw; z-index: -1; font: 900 italic clamp(11rem, 36vw, 32rem)/.75 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.1); user-select: none; pointer-events: none; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero .lead { margin: 1.6rem 0 2.2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.stat { padding: 1rem 2.2rem 1rem 1.6rem; border-left: 4px solid var(--white); transform: skewX(-12deg); background: rgba(255,255,255,.06); margin-right: .7rem; margin-bottom: .7rem; }
.stat > * { transform: skewX(12deg); display: block; }
.stat b { font: 900 italic 2.8rem/1 var(--display); }
.stat span { font: 800 .82rem/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ice); }

.marquee { background: var(--white); color: var(--navy-900); overflow: hidden; padding: .9rem 0; transform: rotate(-1.4deg) scale(1.03); margin: -1.2rem 0 0; position: relative; z-index: 2; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.marquee div { display: flex; gap: 3rem; width: max-content; animation: slide 36s linear infinite; font: 900 italic 1.7rem/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.marquee span::after { content: "///"; margin-left: 3rem; color: var(--blue); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee div { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ---------- sections ---------- */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.6rem; }
.band { background: var(--navy-900); }
.light { background: var(--paper); color: var(--ink); clip-path: polygon(0 var(--skew), 100% 0, 100% calc(100% - var(--skew)), 0 100%); padding-block: calc(clamp(4rem, 9vw, 7rem) + var(--skew)); margin-block: calc(var(--skew) * -1); z-index: 1; }
.light .kicker { color: var(--navy-600); } .light .kicker::before { background: var(--navy-800); }
.light .lead, .light .muted { color: #44547a; }
.light .btn { background: var(--navy-800); color: var(--white); } .light .btn:hover { background: var(--blue); }
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 calc(2.5rem + var(--skew)); background: linear-gradient(120deg, var(--navy-800), var(--navy-950) 70%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-62deg, transparent 0 46px, rgba(255,255,255,.035) 46px 48px); pointer-events: none; }
.page-head h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
.page-head + section { padding-top: 3rem; }

.grid { display: grid; gap: 1.4rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line); padding: 1.6rem; position: relative; }
.card.cut { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); border: 0; }
.light .card { background: var(--white); border-color: #dbe3f3; color: var(--ink); box-shadow: 0 10px 30px rgba(10,31,74,.08); }
.value b { font: 900 italic 3.2rem/1 var(--display); color: var(--blue); display: block; margin-bottom: .3rem; }
.value h3 { margin-bottom: .5rem; }

/* ---------- race cards ---------- */
.race { display: grid; grid-template-columns: 108px 1fr; text-decoration: none; background: var(--navy-800); border-left: 6px solid var(--white); transition: transform .15s, background .15s; min-height: 100%; }
a.race:hover { transform: translateY(-4px); background: var(--navy-700); }
.race .date { background: var(--white); color: var(--navy-900); display: grid; place-content: center; text-align: center; padding: 1rem .4rem; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.race .date b { font: 900 italic 3rem/.9 var(--display); display: block; }
.race .date span { font: 800 .95rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .12em; }
.race .body { padding: 1.1rem 1.3rem 1.2rem .6rem; display: flex; flex-direction: column; gap: .5rem; }
.race .series { font: 800 .8rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.race h3 { font-size: 1.65rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: 800 .82rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; background: rgba(255,255,255,.12); white-space: nowrap; }
.chip.on { background: var(--white); color: var(--navy-900); } .chip.ok { background: var(--ok); color: #05301f; } .chip.warn { background: var(--warn); color: #3a2a00; } .chip.bad { background: var(--bad); color: #2a0606; }
.light .chip { background: #e3e9f6; color: var(--navy-800); }
.race .foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.going { color: var(--white); font-weight: 600; }

/* ---------- people ---------- */
.person { text-align: center; }
.avatar { aspect-ratio: 1; width: 100%; object-fit: cover; background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); display: grid; place-items: center; font: 900 italic 3.2rem/1 var(--display); color: rgba(255,255,255,.85); clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%); }
.avatar.sm { width: 44px; font-size: 1.1rem; clip-path: none; border-radius: 50%; flex: none; }
.person h3 { font-size: 1.45rem; margin-top: .8rem; } .person p { margin: .15rem 0 0; }
.athlete { display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 560px) { .athlete { grid-template-columns: 1fr; } .athlete .avatar { max-width: 220px; } }
.athlete ul, .ticks { list-style: none; margin: .8rem 0 0; padding: 0; }
.athlete li, .ticks li { padding: .32rem 0 .32rem 1.5rem; position: relative; border-bottom: 1px solid var(--line); }
.athlete li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .82em; width: .8rem; height: 4px; background: var(--ice); transform: skewX(-24deg); }
.light .athlete li { border-color: #dbe3f3; } .light .athlete li::before { background: var(--blue); }

/* ---------- gallery ---------- */
.photos { columns: 4 240px; column-gap: .7rem; }
.photos a { display: block; margin-bottom: .7rem; break-inside: avoid; overflow: hidden; }
.photos img { width: 100%; transition: transform .3s; } .photos a:hover img { transform: scale(1.04); }
.album { display: block; text-decoration: none; position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--navy-800); clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%); }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .album:hover img { transform: scale(1.05); }
.album div { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(3,11,28,.95)); }
.album h3 { font-size: 1.6rem; }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 7.4rem; top: .5rem; bottom: .5rem; width: 4px; background: linear-gradient(var(--white), rgba(255,255,255,.1)); transform: skewY(-30deg); }
.tl { display: grid; grid-template-columns: 6rem 1fr; gap: 3rem; padding: 1.3rem 0; position: relative; }
.tl .yr { font: 900 italic 2.6rem/1 var(--display); text-align: right; color: var(--ice); }
.tl::before { content: ""; position: absolute; left: 6.95rem; top: 2rem; width: 1.1rem; height: 1.1rem; background: var(--white); transform: rotate(45deg); }
.tl h3 { margin-bottom: .4rem; }
@media (max-width: 600px) { .timeline::before { left: .45rem; } .tl { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; } .tl .yr { text-align: left; } .tl::before { left: 0; top: 1.9rem; } }

/* ---------- forms ---------- */
form.stack, div.stack { display: grid; gap: 1.1rem; }
label { display: grid; gap: .35rem; font: 800 .88rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.light label { color: var(--navy-700); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=url], select, textarea {
  font: 400 1rem/1.4 var(--body); color: var(--white); background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.22); padding: .7rem .85rem; width: 100%; border-radius: 0; letter-spacing: 0; text-transform: none; }
.light input:not([type=checkbox]):not([type=radio]):not([type=file]), .light select, .light textarea { color: var(--ink); background: var(--white); border-color: #c6d1e8; }
select option { color: #000; }
textarea { min-height: 7rem; resize: vertical; }
input[type=file] { color: inherit; font: 400 .95rem var(--body); letter-spacing: 0; text-transform: none; }
label.check { display: flex; align-items: center; gap: .6rem; font: 400 1rem/1.4 var(--body); letter-spacing: 0; text-transform: none; color: inherit; cursor: pointer; }
label.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--blue); flex: none; }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick label { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; padding: .6rem 1rem; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.22); color: var(--white); font: 800 1rem/1.1 var(--display); letter-spacing: .08em; }
.pick span small { display: block; font-weight: 600; letter-spacing: .12em; color: var(--ice); margin-top: .2rem; }
.pick input:checked + span { background: var(--white); color: var(--navy-900); border-color: var(--white); } .pick input:checked + span small { color: var(--navy-600); }
.pick input:focus-visible + span { outline: 3px solid var(--ice); outline-offset: 2px; }
.row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hp { position: absolute; left: -9999px; }
.flash { padding: .9rem 1.2rem; margin: 1.2rem 0 0; font-weight: 600; background: var(--ok); color: #05301f; border-left: 6px solid #0c7a52; }
.flash.warn { background: var(--warn); color: #3a2a00; border-left-color: #a87a00; }
.err { background: var(--bad); color: #2a0606; padding: .8rem 1rem; font-weight: 600; }
.narrow { max-width: 520px; }

/* ---------- tables / admin ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 800 .8rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); background: rgba(255,255,255,.05); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
td input[type=text], td input[type=date], td select { padding: .35rem .5rem; width: auto; min-width: 0; }
.who { display: flex; align-items: center; gap: .7rem; }
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 2.2rem; align-items: start; padding: 2.2rem 0 5rem; }
.side { position: sticky; top: 92px; display: grid; gap: .3rem; }
.side a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; text-decoration: none; font: 800 1.05rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #d6e2fb; border-left: 4px solid transparent; background: rgba(255,255,255,.04); }
.side a:hover, .side a.on { background: var(--white); color: var(--navy-900); border-left-color: var(--blue); }
.badge { background: var(--warn); color: #3a2a00; font: 800 .8rem/1 var(--display); padding: .25rem .5rem; border-radius: 99px; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .side { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.admin h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1.4rem; }
.admin h2 { font-size: 2rem; margin: 2.6rem 0 1rem; }
.tile { display: block; text-decoration: none; padding: 1.3rem 1.4rem; background: var(--navy-800); border-left: 6px solid var(--white); }
.tile:hover { background: var(--navy-700); }
.tile b { font: 900 italic 3rem/1 var(--display); display: block; }
.tile span { font: 800 .85rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.tile.todo { border-left-color: var(--warn); }
details.box { border: 1px solid var(--line); background: rgba(255,255,255,.04); margin-bottom: .6rem; }
details.box > summary { cursor: pointer; padding: .9rem 1.1rem; font: 800 1.15rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; list-style-position: inside; }
details.box > div, details.box > form { padding: .4rem 1.1rem 1.3rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.thumb { background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.thumb img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.thumb .act { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem; }
.thumb form { margin: 0; }
.inline { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.inline label { flex: 1 1 180px; }
.copy { font: 400 .8rem/1.3 ui-monospace, Consolas, monospace; background: rgba(255,255,255,.08); padding: .3rem .5rem; word-break: break-all; display: inline-block; user-select: all; }

/* ---------- chat ---------- */


/* ---------- footer ---------- */
footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 3rem 0 2.2rem; color: var(--muted); font-size: .95rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 2rem 4rem; justify-content: space-between; }
footer a { color: #d6e2fb; text-decoration: none; } footer a:hover { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.sponsors { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: stretch; }
.sponsor { display: grid; place-items: center; text-align: center; padding: 1.4rem 2rem; min-width: 220px; background: var(--white); color: var(--navy-900); text-decoration: none; clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.sponsor img { max-height: 70px; width: auto; } .sponsor b { font: 900 italic 1.6rem/1 var(--display); text-transform: uppercase; } .sponsor small { display: block; color: #44547a; margin-top: .3rem; }
.sponsor:has(.sp-head) { max-width: 30rem; flex: 1 1 300px; } .sponsor .sp-head { margin: 1rem 0 0; font: 800 italic 1.15rem/1.25 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--navy-900); }
.steps { counter-reset: s; display: grid; gap: .8rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: rgba(255,255,255,.05); border-left: 4px solid var(--white); }
.steps li::before { content: counter(s); font: 900 italic 2.4rem/1 var(--display); color: var(--ice); }
.steps li.done { border-left-color: var(--ok); opacity: .75; } .steps li.done::before { content: "\2713"; color: var(--ok); }
.steps b { display: block; font: 800 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .steps li { grid-template-columns: 2.4rem 1fr; } .steps li .btn { grid-column: 2; justify-self: start; } }
.msgpage { min-height: 55vh; display: grid; place-content: center; text-align: center; gap: 1.2rem; padding: 4rem 1.25rem; }

/* ---------- lightbox ---------- */


/* the slanted last section must not overlap the footer */
main > section.light:last-child { margin-bottom: 0; }
footer { position: relative; z-index: 2; }
/* the rotated marquee is wider than the viewport: no sideways scrolling */
html, body { overflow-x: clip; }

/* ---------- calendar: future and history ---------- */
.tabs { display: flex; gap: .5rem; margin-bottom: 2.4rem; position: sticky; top: 76px; z-index: 5; }
.tabs a { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.3rem; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid var(--line); font: 800 1.05rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; transform: skewX(-12deg); backdrop-filter: blur(8px); }
.tabs a:hover, .tabs a.on { background: var(--white); color: var(--navy-900); }
.tabs b { background: var(--blue); color: var(--white); padding: .2rem .5rem; font-size: .85rem; }
.anchor { scroll-margin-top: 150px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.year { margin-bottom: 3rem; }
.year-num { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font: 900 italic clamp(3rem, 7vw, 4.5rem)/1 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55); }
.year-num::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); }
.year .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.past { display: block; text-decoration: none; background: var(--navy-800); transition: transform .15s, background .15s; }
.past:hover { transform: translateY(-4px); background: var(--navy-700); }
.past .pic { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(140deg, var(--navy-600), var(--navy-900)); clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 100%, 0 100%); }
.past .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.past:hover .pic img { transform: scale(1.05); }
.past.nopic .pic { display: grid; place-items: center; }
.past.nopic .pic > span:first-child { font: 900 italic 1.6rem/1 var(--display); text-transform: uppercase; color: rgba(255,255,255,.25); }
.past .when { position: absolute; left: 0; top: 0; background: var(--white); color: var(--navy-900); padding: .45rem .7rem; font: 800 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; text-align: center; }
.past .when b { display: block; font: 900 italic 1.7rem/1 var(--display); letter-spacing: 0; }
.past .txt { padding: .9rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.past .series { font: 800 .78rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.past h4 { margin: 0; font: 900 italic 1.4rem/1 var(--display); text-transform: uppercase; }
@media (max-width: 640px) { .tabs { top: 70px; } .tabs a { padding: .6rem .9rem; font-size: .95rem; } }

/* ---------- member profile: race history ---------- */
.hist { list-style: none; margin: 0 0 2.4rem; padding: 0; }
.hist li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.hist .d { font: 900 italic 1.3rem/1 var(--display); color: var(--ice); }
.hist .t { display: grid; gap: .15rem; }
.hist .t a { text-decoration: none; } .hist .t a:hover b { text-decoration: underline; }
.hist .r { font: 800 1rem/1.2 var(--display); letter-spacing: .04em; text-align: right; }
@media (max-width: 860px) { .split[style*="320px"] { grid-template-columns: 1fr !important; } .split[style*="320px"] .avatar { max-width: 260px; } }
.person a.plink { text-decoration: none; display: block; } .person a.plink:hover h3 { text-decoration: underline; }

.share { display: flex; gap: 1rem; align-items: center; }
.share img { background: #fff; padding: 4px; }

iframe.strava { display: block; width: 100%; max-width: 380px; border: 0; background: #fff; }

/* ---------- user menu top right ---------- */


/* Läufe entdecken */
.filter .chip { text-decoration: none; transform: skewX(-12deg); } .filter .chip:hover { background: rgba(255,255,255,.25); } .filter .chip.on:hover { background: var(--white); }
.tip { display: flex; flex-direction: column; background: var(--navy-800); scroll-margin-top: 100px; }
.tip.is-pending { outline: 2px dashed var(--warn); outline-offset: -2px; }
.tip-pic { position: relative; aspect-ratio: 16/9; overflow: hidden; background: repeating-linear-gradient(-62deg, transparent 0 46px, rgba(255,255,255,.04) 46px 48px), linear-gradient(140deg, var(--navy-600), var(--navy-900)); clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 100%, 0 100%); }
.tip-pic img { width: 100%; height: 100%; object-fit: cover; }
.tip.nopic .tip-pic { display: grid; place-items: center; }
.ghost-word { font: 900 italic clamp(2rem, 4vw, 2.8rem)/.9 var(--display); text-transform: uppercase; color: rgba(255,255,255,.16); text-align: center; padding: 0 1rem; }
.tip .when { position: absolute; left: 0; top: 0; background: var(--white); color: var(--navy-900); padding: .45rem .7rem; font: 800 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; text-align: center; }
.tip .when b { display: block; font: 900 italic 1.7rem/1 var(--display); letter-spacing: 0; }
.tip .land { position: absolute; right: .7rem; top: .7rem; background: var(--blue); color: var(--white); font: 800 .85rem/1 var(--display); letter-spacing: .12em; padding: .35rem .55rem; }
.tip .flag-team { position: absolute; left: 0; bottom: 14%; background: var(--ok); color: #05301f; font: 800 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; padding: .4rem .7rem; }
.tip-body { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.tip .series { font: 800 .78rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.tip h3 { margin: 0; font-size: 1.6rem; }
.tip .meta { margin: 0; color: var(--muted); font-size: .95rem; }
.tip .pitch { margin: 0; color: #d6e2fb; }
.tip-cta { gap: .6rem; margin-top: auto; padding-top: .4rem; }
.tip-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.fans { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fans a { display: block; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid var(--navy-800); margin-right: -.8rem; background: var(--navy-600); text-decoration: none; }
.fans a:last-of-type { margin-right: 0; }
.fans a img { width: 100%; height: 100%; object-fit: cover; }
.fans a span { display: grid; place-items: center; height: 100%; font: 800 .7rem/1 var(--display); }
.fans .more { font: 800 .8rem/1 var(--display); }
.tip-admin { display: flex; flex-wrap: wrap; gap: .5rem; }
.tip-admin form { margin: 0; }
.pending-box { border: 2px dashed var(--warn); padding: 1.2rem; margin-bottom: 2.4rem; }
.small-h { font-size: 1.4rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }

/* Wünsche und Feedback */
.fb-list { display: grid; gap: 1rem; }
.fb { display: grid; gap: .6rem; scroll-margin-top: 100px; }
.fb.done { opacity: .72; }
.fb-head { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; }
.fb h3 { margin: 0; font-size: 1.45rem; }
.fb-body { margin: 0; white-space: pre-line; color: #d6e2fb; }
.fb-shot { max-height: 160px; border: 1px solid var(--line); }
.fb-answer { border-left: 4px solid var(--ok); background: rgba(55,211,154,.08); padding: .6rem .9rem; }
.fb-answer b { font: 800 .8rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ok); }
.fb-answer p { margin: .35rem 0 0; white-space: pre-line; }
.fb-edit > summary { cursor: pointer; font: 800 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); padding: .3rem 0; }
.fb-edit > form { margin-top: .8rem; }
.fb-claude { border-color: var(--blue); } .fb-claude h2 { margin-top: 0; }
.tip .credit { position: absolute; right: 9%; bottom: .45rem; font-size: .72rem; color: rgba(255,255,255,.85); background: rgba(3,11,28,.6); padding: .15rem .45rem; }
.upload-progress { margin-top: .8rem; display: grid; gap: .4rem; min-width: 260px; }
.upload-progress .bar { height: 10px; background: rgba(255,255,255,.12); overflow: hidden; }
.upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.upload-progress p { margin: 0; }
.wrap.mid { width: min(860px, 100% - 2.5rem); }

/* ---------- admin 1.0 ---------- */
.small-h { font: 900 italic 1.5rem/1 var(--display); text-transform: uppercase; margin: 0 0 1rem; }
.mt { margin-top: 1.4rem; }
.adm-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.adm-hello h1 { margin: 0; }
.todo-box { background: linear-gradient(135deg, rgba(255,200,87,.14), rgba(255,255,255,.03)); border: 1px solid rgba(255,200,87,.4); padding: 1.3rem 1.4rem; }
.todo-box.clear { background: linear-gradient(135deg, rgba(55,211,154,.14), rgba(255,255,255,.03)); border-color: rgba(55,211,154,.4); }
.todo-list { display: grid; gap: .5rem; }
.todo { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 1rem; padding: .75rem 1rem; background: rgba(3,11,28,.55); text-decoration: none; transition: transform .15s, background .15s; }
.todo:hover { transform: translateX(4px); background: rgba(3,11,28,.85); }
.todo b { font: 900 italic 2rem/1 var(--display); color: var(--warn); text-align: center; }
.todo strong { display: block; font: 800 1.15rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.todo small { color: var(--muted); }
.todo i { font-style: normal; font-size: 1.4rem; color: var(--ice); }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.area { position: relative; display: grid; gap: .25rem; padding: 1.2rem 1.2rem 1.1rem; background: var(--navy-800); text-decoration: none; border-top: 4px solid var(--blue); transition: transform .2s, background .2s, box-shadow .2s; overflow: hidden; }
.area:hover { transform: translateY(-3px); background: var(--navy-700); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.area .ic { position: absolute; right: .9rem; top: .9rem; width: 2rem; height: 2rem; color: var(--ice); opacity: .55; }
.area b { font: 900 italic 2.6rem/1 var(--display); }
.area strong { font: 800 1.15rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.area small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.area.warn { border-top-color: var(--warn); }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.adm-head h1 { margin: 0 !important; }
.mfilter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: 1.6rem 0 .8rem; }
.mfilter input[type=search] { flex: 1 1 260px; min-width: 0; }
.mfilter .yr { display: flex; align-items: center; gap: .5rem; margin: 0; }
.mfilter .yr select { width: auto; }
.chips.filter .chip { text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.chips.filter .chip b { opacity: .7; }
.mtable td { vertical-align: middle; }
.mtable .who { text-decoration: none; }
.mtable .who small { display: block; color: var(--ice); font-size: .82rem; }
.mtable .who .miss { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; } .mtable .who .miss .chip { font-size: .68rem; padding: .15rem .45rem; white-space: normal; }
.miss-hint { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--warn); background: rgba(255, 200, 87, .08); }
@media (max-width: 900px) { .miss-hint .desk { display: none; } .mtable .who .miss .chip { font-size: .62rem; } }
.mtable .mail span:first-child { overflow-wrap: anywhere; }
@media (min-width: 1240px) { .mtable .mail span:first-child { overflow-wrap: normal; white-space: nowrap; } }
.ok-dot { color: var(--ok); font-weight: 700; }
.mtable .acts { white-space: nowrap; text-align: right; }
.mtable .acts form { display: inline; }
.feetoggle { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.fee { cursor: pointer; border: 2px solid var(--warn); background: transparent; color: var(--warn); font: 800 .82rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; }
.fee.paid { border-color: var(--ok); background: var(--ok); color: #05301f; }
.fee:hover { filter: brightness(1.15); }
.back { margin: 0 0 1rem; } .back a { color: var(--ice); text-decoration: none; font-weight: 600; }
.mhead { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.6rem; }
.mhead h1 { margin: 0 0 .5rem !important; font-size: clamp(2rem, 5vw, 3rem) !important; }
.mhead .chips { margin: 0 0 .5rem; }
.fees { display: grid; gap: .5rem; }
.fee-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto minmax(0, 11rem) auto; gap: .6rem; align-items: center; margin: 0; }
.fee-row b { font: 900 italic 1.3rem/1 var(--display); }
.roles-help summary { cursor: pointer; color: var(--ice); font-weight: 600; }
.danger-zone { border-color: rgba(255,107,107,.4); }
@media (max-width: 900px) {
  .side { display: flex; overflow-x: auto; gap: .4rem; scrollbar-width: none; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
  .side a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .side a.on { border-bottom-color: var(--blue); }
}
@media (max-width: 760px) {
  .mtable thead { display: none; }
  .mtable, .mtable tbody, .mtable tr, .mtable td { display: block; width: 100%; }
  .mtable tr { display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .mtable td { padding: 0; border: 0; }
  .mtable td[data-label="Mitglied"] { grid-column: 1 / -1; }
  .mtable td[data-label="E-Mail"] { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
  .mtable td[data-label="Rolle"], .mtable td[data-label="Status"] { display: inline-block; width: auto; }
  .mtable td[data-label^="Beitrag"] { grid-column: 1; }
  .mtable .acts { grid-column: 2; grid-row: 3 / span 2; align-self: end; display: flex; flex-direction: column; gap: .3rem; }
  .fee-row { grid-template-columns: 3rem 1fr auto; }
  .fee-row input[type=date] { grid-column: 2 / 3; }
  .mhead { align-items: flex-start; }
  .mhead .av-lg { width: 72px; height: 72px; font-size: 1.7rem; }
  .todo { grid-template-columns: 2.6rem 1fr auto; padding: .7rem .8rem; }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.admin h2.small-h { font-size: 1.5rem; margin: 0 0 .2rem; }
.admin form.stack h2.small-h:not(:first-of-type) { margin-top: 1.2rem; }
.mtable .mail .chip { font-size: .66rem; padding: .25rem .4rem; vertical-align: middle; }

/* ---------- media 1.0 ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: .5rem; }
.mi { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--navy-800); }
.mi img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s; }
.mi:hover img { transform: scale(1.06); }
.mi-blank { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.mi-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(3,11,28,.6); border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(4px); transition: transform .2s, background .2s; }
.mi-play .ic { width: 26px; height: 26px; margin-left: 3px; }
.mi:hover .mi-play, .embed-ph:hover .mi-play { transform: scale(1.1); background: var(--blue); }
.mi-dur, .mi-src { position: absolute; bottom: .4rem; padding: .15rem .4rem; background: rgba(3,11,28,.8); font: 700 .75rem/1.2 var(--body); }
.mi-dur { right: .4rem; } .mi-src { left: .4rem; }
.mi-hl { position: absolute; top: .4rem; right: .4rem; color: var(--warn); filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
.mi-note { position: absolute; left: 0; right: 0; top: 0; padding: .3rem .5rem; background: rgba(255,200,87,.92); color: #2b2000; font: 800 .72rem/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.mi-note.bad { background: var(--bad); color: #2a0606; }
.mi.pend img { filter: saturate(.75); }
.mgrid.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .6rem; padding: 0 max(1.25rem, calc((100vw - 1180px) / 2)) .6rem; scrollbar-width: thin; }
.mgrid.strip .mi { flex: 0 0 clamp(220px, 30vw, 360px); aspect-ratio: 4/3; scroll-snap-align: start; }
.hl-band { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.sec-head.slim { margin-bottom: 1.2rem; }
.year-h { display: flex; align-items: center; gap: 1rem; margin: 2.4rem 0 1rem; font-size: clamp(2.4rem, 6vw, 3.6rem); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.6); }
.year-h::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.album-card { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; text-decoration: none; background: var(--navy-800); clip-path: polygon(0 0, 100% 0, 100% 90%, 94% 100%, 0 100%); }
.ac-img, .ac-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-img img { transition: transform .5s cubic-bezier(.2,.7,.2,1); } .album-card:hover .ac-img img { transform: scale(1.07); }
.ac-txt { position: absolute; inset: auto 0 0 0; padding: 3rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(3,11,28,.95)); display: grid; gap: .25rem; }
.ac-txt b { font: 900 italic 1.6rem/1 var(--display); text-transform: uppercase; }
.ac-txt small { color: var(--ice); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.pendbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .7rem 1rem; margin: 0 0 1.2rem; background: rgba(255,200,87,.14); border-left: 4px solid var(--warn); }
.pendbar a { color: inherit; }
.pend-album { margin-top: 1.2rem; }
.pend-album .pendbar { background: rgba(3,11,28,.5); margin-bottom: .6rem; }
.pend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
.pend-item { display: grid; gap: .35rem; }
.pend-item .mgrid { grid-template-columns: 1fr; }
.pend-act { display: flex; gap: .3rem; } .pend-act form { margin: 0; flex: 1; } .pend-act .btn { width: 100%; justify-content: center; }
/* upload */
.upbox { display: grid; gap: 1rem; max-width: 760px; }
.dropzone { position: relative; display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 1.8rem 1rem; border: 2px dashed rgba(156,194,255,.45); background: rgba(47,107,255,.06); cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.over { background: rgba(47,107,255,.16); border-color: var(--ice); }
.dropzone .ic { width: 2.2rem; height: 2.2rem; color: var(--ice); }
.dropzone b { font: 800 1.3rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.up-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; }
.ytlink { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.ytlink label { flex: 1 1 260px; margin: 0; }
.upload-progress .bar { height: 8px; background: rgba(255,255,255,.12); margin-top: .8rem; } .upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
/* single medium page */
.medium-page { padding: 1.6rem 0 4rem; }
.medium { margin: 0; display: grid; gap: 1rem; }
.medium img, .medium video { max-height: 78vh; max-height: 78dvh; width: auto; max-width: 100%; margin: 0 auto; background: #000; }
.medium video { width: 100%; }
.medium figcaption { display: grid; gap: .5rem; justify-items: start; }
.tagrow { display: flex; gap: .3rem; flex-wrap: wrap; }
.embed-ph { position: relative; display: grid; place-items: center; width: min(100%, 1100px); aspect-ratio: 16/9; margin: 0 auto; padding: 0; border: 0; background: #000; color: var(--white); cursor: pointer; overflow: hidden; }
.embed-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; max-height: none; }
.embed-ph .mi-play { width: 84px; height: 84px; } .embed-ph .mi-play .ic { width: 38px; height: 38px; }
.embed-ph small { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .8rem; text-shadow: 0 1px 3px #000; }
.confirm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.confirm-item { display: grid; gap: .5rem; } .confirm-item .mgrid { grid-template-columns: 1fr; } .confirm-item form { margin: 0; }
/* lightbox */
html.lb-lock, html.lb-lock body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(2,8,22,.96); display: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb.open { display: block; animation: lbin .2s ease-out; }
@keyframes lbin { from { opacity: 0; } }
.lb-track { position: absolute; inset: 0; display: flex; transform: translate3d(-100%, 0, 0); will-change: transform; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 64px 0 96px; }
.lb-slide img, .lb-slide video { max-width: min(100vw, 1600px); max-height: 100%; object-fit: contain; -webkit-user-drag: none; }
.lb-slide video { width: min(100vw, 1280px); background: #000; }
.lb-slide .embed-ph { width: min(100vw, 1280px); }
.lb-slide iframe { width: min(100vw, 1280px); aspect-ratio: 16/9; max-height: 100%; border: 0; background: #000; }
.lb-msg { color: var(--muted); text-align: center; padding: 2rem; }
.lb-top { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; background: linear-gradient(rgba(2,8,22,.8), transparent); }
.lb-count { font: 900 italic 1.3rem/1 var(--display); padding-left: .3rem; }
.lb-tools { display: flex; gap: .3rem; }
.lb-tools button { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.1); color: var(--white); transition: background .15s; }
.lb-tools button:hover { background: rgba(255,255,255,.25); }
.lb-tools .ic { width: 22px; height: 22px; }
.lb-star.on { color: var(--warn); background: rgba(255,200,87,.18); }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 88px; border: 0; cursor: pointer; background: rgba(255,255,255,.08); color: var(--white); font: 900 3rem/1 var(--display); clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }
.lb-nav:hover { background: var(--white); color: var(--navy-900); }
.lb-prev { left: .8rem; } .lb-next { right: .8rem; }
.lb-bottom { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(2,8,22,.9)); display: grid; gap: .5rem; justify-items: center; text-align: center; }
.lb-cap { display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: center; align-items: center; font-size: .92rem; }
.lb-cap span { color: var(--muted); } .lb-cap a { color: var(--ice); }
.lb-tags { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; max-width: 900px; }
.tagchip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .25rem .2rem .2rem; border-radius: 99px; background: rgba(255,255,255,.12); font-size: .85rem; }
.tagchip img, .tagchip i, .tagpick img, .tagpick i { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--navy-600); font: 900 italic .8rem/1 var(--display); font-style: italic; }
.tagchip a { color: var(--white); text-decoration: none; }
.tagchip small { color: var(--warn); }
.tagchip.pend { opacity: .7; }
.tagchip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 .3rem; font-size: .9rem; }
.tagadd { display: inline-flex; align-items: center; gap: .35rem; border: 1px dashed rgba(255,255,255,.4); background: none; color: var(--ice); border-radius: 99px; padding: .3rem .8rem; cursor: pointer; font: 600 .85rem/1 var(--body); }
.tagadd .ic { width: 16px; height: 16px; }
.tagpick { width: min(420px, 92vw); display: grid; gap: .4rem; background: var(--navy-900); border: 1px solid var(--line); padding: .6rem; text-align: left; }
.tp-list { max-height: 34vh; overflow-y: auto; display: grid; }
.tp-list button { display: flex; align-items: center; gap: .6rem; padding: .5rem; border: 0; background: none; color: var(--white); cursor: pointer; text-align: left; font: 500 .95rem/1.2 var(--body); }
.tp-list button:hover { background: rgba(255,255,255,.1); }
.tp-list small { margin-left: auto; color: var(--muted); }
.lb-toast { position: fixed; left: 50%; bottom: 6rem; translate: -50% 20px; z-index: 1100; background: var(--white); color: var(--navy-900); padding: .6rem 1rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.lb-toast.on { opacity: 1; translate: -50% 0; }
@media (max-width: 760px) {
  .lb-nav { display: none; }
  .lb-slide { padding: 56px 0 110px; }
  .mgrid { gap: .3rem; }
  .mi-play { width: 44px; height: 44px; } .mi-play .ic { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mi img, .ac-img img { transition: none; } .lb.open { animation: none; } }
.dropzone > span { text-transform: none; letter-spacing: 0; font: 400 .9rem/1.4 var(--body); color: var(--muted); }
.dropzone > b { color: var(--white); }
/* people: avatar stacks and lists */
.avstack { display: inline-flex; align-items: center; }
.avstack .av { box-shadow: 0 0 0 2px var(--navy-900); }
.avstack .av + .av { margin-left: -.55rem; }
.av.more { background: var(--navy-700); font: 800 .75rem/1 var(--display); }
.whois { margin-top: .9rem; }
.whois > summary { list-style: none; display: flex; align-items: center; gap: .8rem; cursor: pointer; padding: .5rem 0; flex-wrap: wrap; }
.whois > summary::-webkit-details-marker { display: none; }
.whois-n b { font: 900 italic 1.6rem/1 var(--display); }
.whois-t { margin-left: auto; color: var(--ice); font: 800 .85rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.whois-t::after { content: " ▾"; } .whois[open] .whois-t::after { content: " ▴"; }
.people { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .2rem; }
.people li { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--line); }
.people a { color: inherit; text-decoration: none; } .people a:hover b { text-decoration: underline; }
.race .going { display: inline-flex; align-items: center; gap: .5rem; }
.race .avstack .av { box-shadow: 0 0 0 2px var(--navy-800); }
.fans .avstack { margin-right: .4rem; }
.online-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.online-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(55,211,154,.25); }
fieldset.radios { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
fieldset.radios legend { font-weight: 600; margin-bottom: .5rem; }
fieldset.radios.lbl legend { font: 800 .88rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: .35rem; }

/* ---------- chat 1.0 ---------- */
.chatpage { padding: 1.2rem 0 1.5rem; }
.chat { display: grid; grid-template-columns: 270px 1fr; gap: 1rem; height: calc(100dvh - 68px - 2.7rem); min-height: 420px; }
.chat-side { display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.channels { display: flex; flex-direction: column; gap: .25rem; overflow-y: auto; }
.channels a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 .5rem; padding: .65rem .85rem; text-decoration: none; background: rgba(255,255,255,.04); border-left: 4px solid transparent; }
.channels a .ch-name { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channels a small { grid-column: 1; color: var(--muted); font-size: .75rem; }
.channels a .badge { grid-column: 2; grid-row: 1 / span 2; }
.channels a:hover { background: rgba(255,255,255,.09); }
.channels a.on { background: var(--white); color: var(--navy-900); border-left-color: var(--blue); } .channels a.on small { color: var(--navy-600); }
.online { padding: .6rem .2rem; } .online .avstack .av { box-shadow: 0 0 0 2px var(--navy-950); }
.chatbox { display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(255,255,255,.025); min-height: 0; position: relative; }
.chat-head { display: flex; align-items: baseline; gap: .8rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: rgba(3,11,28,.4); }
.chat-head b { font: 900 italic 1.3rem/1 var(--display); text-transform: uppercase; }
.chat-head a { color: var(--ice); }
#log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; overscroll-behavior: contain; }
.day-sep, .new-sep { align-self: center; margin: .8rem 0 .4rem; font: 800 .72rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.06); padding: .35rem .7rem; border-radius: 99px; }
.new-sep { background: var(--blue); color: var(--white); box-shadow: 0 0 0 4px rgba(47,107,255,.25); }
.msg .bubble { transition: box-shadow 1.6s ease, background-color 1.6s ease; }
.msg.fresh .bubble { background: var(--navy-600); box-shadow: 0 0 0 2px var(--ice), 0 0 24px rgba(156,194,255,.45); transition: none; animation: freshpulse 1.1s ease-in-out var(--fd, 0s) 3; }
@keyframes freshpulse { 50% { box-shadow: 0 0 0 2px var(--ice), 0 0 36px rgba(156,194,255,.75); transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .msg.fresh .bubble { animation: none; } }
.msg { display: flex; gap: .6rem; max-width: min(82%, 640px); align-items: flex-end; animation: msgin .2s ease-out; }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine > .av { display: none; }
.m-main { position: relative; min-width: 0; }
.msg .meta { font-size: .74rem; color: var(--muted); margin: 0 .2rem .15rem; } .msg .meta b { color: var(--ice); font-weight: 600; }
.msg.mine .meta { text-align: right; } .msg.mine .meta b { display: none; }
.msg .bubble { background: var(--navy-700); padding: .55rem .85rem; border-radius: 14px 14px 14px 4px; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.45; }
.msg.mine .bubble { background: var(--blue); color: var(--white); border-radius: 14px 14px 4px 14px; }
.msg .bubble a { color: inherit; text-decoration: underline; }
.msg.deleted .bubble { background: transparent; border: 1px dashed var(--line); }
.rxrow { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; margin-top: .25rem; min-height: 1.6rem; }
.msg.mine .rxrow { justify-content: flex-end; }
.rx { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--white); border-radius: 99px; padding: .1rem .45rem; cursor: pointer; font-size: .85rem; }
.rx b { font-size: .75rem; } .rx.mine { border-color: var(--ice); background: rgba(156,194,255,.18); }
.m-tools { display: inline-flex; gap: .1rem; opacity: 0; transition: opacity .15s; }
.msg:hover .m-tools, .msg:focus-within .m-tools { opacity: 1; }
@media (hover: none) { .m-tools { opacity: .55; } }
.m-tools button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .85rem; padding: .15rem .3rem; }
.m-tools button:hover { color: var(--white); }
.rx-menu { position: absolute; bottom: calc(100% - 1.4rem); z-index: 5; display: flex; gap: .1rem; padding: .3rem; background: var(--navy-900); border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.msg.mine .rx-menu { right: 0; }
.rx-menu button { border: 0; background: none; font-size: 1.35rem; cursor: pointer; padding: .15rem .25rem; border-radius: 50%; transition: transform .12s; }
.rx-menu button:hover { transform: scale(1.25); }
.more-btn { align-self: center; margin-bottom: .6rem; }
.typing { min-height: 1.4rem; padding: 0 1rem; font-size: .8rem; color: var(--ice); font-style: italic; }
#send { position: relative; display: flex; gap: .5rem; align-items: flex-end; padding: .6rem; border-top: 1px solid var(--line); margin: 0; }
#send textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; padding: .6rem .8rem; line-height: 1.4; font: inherit; color: var(--white); background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 22px; }
#send textarea:focus { outline: none; border-color: var(--ice); }
.emo-btn, .send-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }
.emo-btn { background: rgba(255,255,255,.07); font-size: 1.3rem; }
.send-btn { background: var(--blue); color: var(--white); } .send-btn .ic { width: 22px; height: 22px; }
.send-btn:hover { background: #4d82ff; }
.emo-pick { position: absolute; bottom: calc(100% + .3rem); left: .6rem; width: min(340px, calc(100% - 1.2rem)); display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); padding: .4rem; background: var(--navy-900); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 6; max-height: 240px; overflow-y: auto; }
.emo-pick button { border: 0; background: none; font-size: 1.4rem; padding: .3rem; cursor: pointer; border-radius: 8px; } .emo-pick button:hover { background: rgba(255,255,255,.1); }
@media (max-width: 1120px) { .chat { height: calc(100dvh - 64px - 68px - 2rem - env(safe-area-inset-bottom)); } }
@media (max-width: 760px) {
  .chatpage { padding: .5rem 0 .4rem; }
  .chatpage .wrap { width: 100%; }
  .chat { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: .5rem; height: calc(100dvh - 64px - 68px - .9rem - env(safe-area-inset-bottom)); min-height: 360px; }
  .chat-side { flex-direction: row; padding: 0 .75rem; }
  .channels { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .channels a { grid-template-columns: auto auto; white-space: nowrap; padding: .5rem .8rem; border-left: 0; border-bottom: 3px solid transparent; }
  .channels a small { display: none; } .channels a .badge { grid-row: 1; }
  .channels a .ch-name { max-width: 46vw; }
  .online { display: none; }
  .chatbox { border-left: 0; border-right: 0; }
  .chat-head { display: none; }
  .msg { max-width: 88%; }
}
body.in:has(.chatpage) footer { display: none; }
.channels a { flex: 0 0 auto; }
/* shop and stock */
.product { position: relative; }
.product.soldout img { filter: grayscale(.8) brightness(.7); }
.ribbon { position: absolute; top: 1rem; left: -.4rem; z-index: 2; background: var(--bad); color: #2a0606; font: 900 italic 1rem/1 var(--display); text-transform: uppercase; padding: .45rem .9rem; transform: skewX(-12deg); }
.pick label.out span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.pick span small { color: var(--warn) !important; }
.stockstats { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.stockstats > div { flex: 1 1 180px; padding: 1rem 1.2rem; background: var(--navy-800); border-left: 5px solid var(--blue); }
.stockstats b { display: block; font: 900 italic 2rem/1 var(--display); }
.stockstats span { color: var(--ice); font: 800 .8rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.stock-list { display: grid; gap: .7rem; }
.stock-item { display: grid; gap: .8rem; margin: 0; }
.si-head { display: flex; gap: .8rem; align-items: center; }
.si-head img { width: 54px; height: 54px; object-fit: cover; }
.si-head b { display: block; font: 800 1.2rem/1.1 var(--display); text-transform: uppercase; }
.si-sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.si-sizes label { display: grid; gap: .2rem; width: 5.4rem; margin: 0; }
.si-sizes label span { font: 800 .8rem/1 var(--display); letter-spacing: .1em; }
.si-sizes input { text-align: center; font-weight: 700; }
.si-sizes label.low input { border-color: var(--warn); } .si-sizes label.out input { border-color: var(--bad); color: var(--bad); }
.stock-item .inline input[type=text] { flex: 1 1 220px; }
tr.dim { opacity: .55; }

/* ---------- home 1.0: logo hero, entrance animation, countdown ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: center; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-logo::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,255,.55), transparent 65%); filter: blur(30px); z-index: -1; animation: glow 6s ease-in-out infinite; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite, logoin 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes logoin { from { opacity: 0; scale: .85; filter: blur(8px) drop-shadow(0 20px 40px rgba(0,0,0,.55)); } }
@keyframes glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.rise { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
.hero h1 .rise { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(28px) skewY(2deg); } }
.streaks { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.streaks i { position: absolute; top: -20%; bottom: -20%; width: 9vw; background: linear-gradient(90deg, transparent, rgba(156,194,255,.10), transparent); transform: skewX(-24deg) translateX(-30vw); animation: streak 9s linear infinite; }
.streaks i:nth-child(2) { width: 3vw; animation-delay: -3s; animation-duration: 7s; background: linear-gradient(90deg, transparent, rgba(47,107,255,.25), transparent); }
.streaks i:nth-child(3) { width: 14vw; animation-delay: -6s; animation-duration: 12s; }
@keyframes streak { to { transform: skewX(-24deg) translateX(130vw); } }
.countdown { position: absolute; right: max(1.25rem, calc((100vw - 1180px) / 2)); bottom: calc(var(--skew) + 1.6rem); display: grid; grid-template-columns: auto auto; gap: 0 1rem; align-items: center; padding: .9rem 1.3rem; text-decoration: none; background: var(--white); color: var(--navy-900); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: 0 16px 40px rgba(0,0,0,.4); transition: transform .2s; }
.countdown:hover { transform: translateY(-3px); }
.countdown b { font: 900 italic 1.7rem/1 var(--display); text-transform: uppercase; }
.countdown span { grid-column: 1; font: 700 .85rem/1.2 var(--body); color: var(--navy-600); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.countdown i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 1.6rem; color: var(--blue); }
.hl-home { padding-bottom: 3rem; }
.joinband { overflow: hidden; }
.join-helmet { position: absolute; right: -3rem; top: 50%; translate: 0 -50%; height: 135%; width: auto; opacity: .07; pointer-events: none; }
.athlete { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.athlete:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 24px 50px rgba(10,31,74,.18); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-logo { order: -1; width: min(56vw, 260px); margin: -1.5rem 0 .4rem; justify-self: center; } /* stacked on phones: logo centered */
  .countdown { position: relative; right: auto; bottom: auto; margin: 2rem 1.25rem 0; display: inline-grid; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .hero-logo img, .hero-logo::before, .streaks i, .marquee div { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- mobile pass ---------- */
@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .page-head { padding: 2rem 0 calc(1.4rem + var(--skew)); }
  .page-head h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .page-head .lead { font-size: 1.05rem; margin-top: .6rem; }
  .page-head + section { padding-top: 1.8rem; }
  .hero { padding-top: 2.6rem; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero .lead { font-size: 1.05rem; margin: 1.1rem 0 1.5rem; }
  .stats { margin-top: 2rem; }
  .stat { padding: .7rem 1.2rem .7rem 1rem; }
  .stat b { font-size: 2.1rem; }
  .kicker { font-size: .8rem; letter-spacing: .16em; margin-bottom: .8rem; }
  .kicker::before { width: 1.6rem; }
  h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .sec-head { margin-bottom: 1.6rem; }
  .btn { padding: .8rem 1.3rem; font-size: 1.05rem; }
  .tabs { top: 64px; margin-bottom: 1.6rem; overflow-x: auto; scrollbar-width: none; }
  .tabs a { white-space: nowrap; }
  .race { grid-template-columns: 84px 1fr; }
  .race .date b { font-size: 2.3rem; }
  .race .date span { font-size: .78rem; }
  .race h3 { font-size: 1.35rem; }
  .race .body { padding: .9rem 1rem 1rem .4rem; }
  .card { padding: 1.2rem; }
  .row { grid-template-columns: 1fr !important; }
  .wrap { width: min(1180px, 100% - 2rem); }
  .admin { padding-top: 1rem; }
  .adm-head h1, .admin h1 { font-size: 2.4rem !important; }
  table { font-size: .9rem; }
  .flash { font-size: .95rem; }
}
.hero-grid h1 { font-size: clamp(3.2rem, 8.2vw, 7.6rem); }
html, body { overflow-x: clip; }
.admin > div { min-width: 0; }
@media (max-width: 760px) {
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  table.cards td { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; padding: .25rem 0; border: 0; text-align: right; }
  table.cards td::before { content: attr(data-label); flex: none; text-align: left; font: 800 .72rem/1.5 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
  table.cards td[data-label=""]::before { display: none; }
  table.cards td[data-label=""] { justify-content: flex-start; }
  table.cards td form { margin: 0; }
  .tablewrap:has(table.cards) { border: 0; }
}
.emo-pick { display: block; width: min(380px, calc(100% - 1.2rem)); max-height: 340px; padding: .5rem; }
.emo-search { width: 100%; margin-bottom: .3rem; padding: .5rem .7rem; }
.emo-list { max-height: 270px; overflow-y: auto; }
.emo-h { margin: .5rem .2rem .2rem; font: 800 .7rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.athlete h3 a { color: inherit; text-decoration: none; } .athlete h3 a:hover { text-decoration: underline; } .topcard { margin-bottom: 2rem; }
.socials { display: flex; flex-wrap: wrap; gap: .4rem 1rem; } .socials a { color: var(--ice); font-weight: 600; }

/* ---------- 1.1: quick tiles, badges, review, member card, notifications ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .7rem; margin-bottom: 1.4rem; }
.qtile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: .1rem .8rem; align-items: center; padding: 1rem 1.1rem; background: var(--navy-800); text-decoration: none; border-left: 4px solid var(--blue); transition: transform .2s, background .2s; }
.qtile:hover { transform: translateY(-3px); background: var(--navy-700); }
.qtile .ic { grid-row: 1 / span 2; width: 2rem; height: 2rem; color: var(--ice); }
.qtile b { font: 800 1.1rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.qtile small { color: var(--muted); }
.qtile.hot { border-left-color: var(--warn); background: linear-gradient(120deg, rgba(255,200,87,.18), var(--navy-800)); }
.badges { display: flex; flex-wrap: wrap; gap: .45rem; }
.badge-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .4rem; border-radius: 99px; background: linear-gradient(135deg, rgba(47,107,255,.3), rgba(255,255,255,.06)); border: 1px solid rgba(156,194,255,.35); font: 800 .85rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: help; }
.badge-pill i { font-style: normal; font-size: 1.1rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: rgba(3,11,28,.6); }
.light .badge-pill { color: var(--white); }
.badge-icons { display: flex; flex-wrap: wrap; gap: .3rem; font-size: 1.5rem; line-height: 1; margin: 0; }
.badge-icons span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(47,107,255,.22); border: 1px solid rgba(156,194,255,.3); }
.badge-icons.small { font-size: 1rem; gap: .25rem; margin-top: .5rem; }
.badge-icons.small span { width: 1.75rem; height: 1.75rem; }
.badge-icons.small span.muted { background: none; border: 0; font: 800 .8rem/1 var(--display); width: auto; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .7rem; }
.badge-card { display: grid; grid-template-columns: 3rem 1fr; gap: .1rem .8rem; align-items: center; padding: .9rem 1rem; background: linear-gradient(135deg, rgba(47,107,255,.22), var(--navy-800)); border-left: 4px solid var(--blue); }
.badge-card:nth-child(3n+2) { border-left-color: var(--ice); } .badge-card:nth-child(3n) { border-left-color: var(--white); }
.badge-card i { grid-row: span 2; font-style: normal; font-size: 1.9rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: rgba(3,11,28,.6); }
.badge-card b { font: 800 1rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.badge-card small { color: var(--muted); line-height: 1.3; }
.bignums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: .7rem; }
.bignums > div { padding: 1.2rem 1.2rem 1rem; background: var(--navy-800); border-top: 4px solid var(--blue); }
.bignums > div:nth-child(3n+2) { border-top-color: var(--ice); } .bignums > div:nth-child(3n) { border-top-color: var(--white); }
.bignums b { display: block; font: 900 italic clamp(2.6rem, 7vw, 3.6rem)/1 var(--display); }
.bignums span { font: 800 .8rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.review-list li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 1rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .review-list li { grid-template-columns: 1fr; gap: .1rem; } }
.podium { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.podium li { display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 1rem; padding: .8rem 1rem; background: var(--navy-800); }
.podium .pl { grid-row: 1 / span 2; font: 900 italic 2.4rem/1 var(--display); color: var(--ice); text-align: center; }
.podium a { color: inherit; text-decoration: none; }
.head-actions { margin-top: 1.2rem; }
.btn.busy { opacity: .6; pointer-events: none; }
.cal-opt { display: grid; gap: .3rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.cal-opt b { font: 800 1.1rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.howto summary { cursor: pointer; color: var(--ice); font-weight: 600; }
.howto ol { margin: .6rem 0; padding-left: 1.2rem; }
.push-state { color: var(--ice); margin: 0; min-height: 1.2em; }
/* member card */
.cardpage { padding: 2rem 0 4rem; }
.mcard { position: relative; overflow: hidden; margin: 1.4rem 0; padding: 1.4rem; aspect-ratio: 1.586; max-width: 520px; border-radius: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: .8rem;
  background: radial-gradient(120% 120% at 100% 0%, #2f6bff 0%, #173d8a 35%, #0a1f4a 70%, #030b1c 100%); box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.15); }
.mc-shine { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); animation: shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.mc-top { display: flex; align-items: center; gap: .7rem; position: relative; }
.mc-logo { width: 54px; height: auto; animation: float 6s ease-in-out infinite; }
.mc-top b { display: block; font: 900 italic 1.4rem/1 var(--display); text-transform: uppercase; }
.mc-top small { font: 700 .66rem/1 var(--display); letter-spacing: .28em; color: var(--ice); text-transform: uppercase; }
.mc-year { margin-left: auto; font: 900 italic 1.8rem/1 var(--display); color: rgba(255,255,255,.85); }
.mc-body { display: flex; gap: 1rem; align-items: center; position: relative; }
.mc-body .av-lg { width: 84px; height: 84px; box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.mc-name { display: block; font: 900 italic clamp(1.4rem, 5vw, 1.9rem)/1 var(--display); text-transform: uppercase; }
.mc-nick { display: block; color: var(--ice); font-weight: 600; margin-top: .15rem; }
.mc-meta, .mc-no { display: block; font-size: .85rem; color: #d6e2fb; }
.mc-no { font: 800 .9rem/1.3 var(--display); letter-spacing: .2em; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; position: relative; }
.mc-clock { font: 700 .78rem/1 var(--body); color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.mc-qr { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: center; max-width: 520px; margin-bottom: 1rem; }
.mc-qr svg { width: 160px; height: 160px; background: #fff; padding: 6px; border-radius: 10px; }
.check-ok, .check-bad { width: 110px; height: 110px; margin: 1rem auto; border-radius: 50%; display: grid; place-items: center; font: 900 4rem/1 var(--display); animation: pop .4s ease-out; }
.check-ok { background: var(--ok); color: #05301f; box-shadow: 0 0 0 10px rgba(55,211,154,.2); } .check-bad { background: var(--bad); color: #2a0606; }
.check-person { display: grid; justify-items: center; gap: .4rem; margin: 1rem 0; }
.check-person b { font: 900 italic 1.8rem/1 var(--display); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .mc-shine, .mc-logo { animation: none; } }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.person .badge-icons { justify-content: center; }
/* ---------- 1.1.2: questions and answers on the start page ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: .7rem; align-items: start; }
.faq details { background: var(--navy-800); border-left: 4px solid var(--blue); transition: border-color .2s; }
.faq details[open] { border-left-color: var(--ice); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.3rem; line-height: 1.15; margin: 0; }
.faq summary i { font: 900 1.8rem/1 var(--display); font-style: normal; color: var(--ice); transition: transform .25s; flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--muted); line-height: 1.55; }
/* ---------- 1.1.3: answering chat messages ---------- */
.msg .quote { display: block; width: 100%; text-align: left; margin: -.1rem 0 .4rem; padding: .35rem .6rem; border: 0; border-left: 3px solid var(--ice); border-radius: 6px; background: rgba(3,11,28,.35); color: inherit; font: inherit; cursor: pointer; white-space: normal; }
.msg.mine .quote { background: rgba(3,11,28,.22); border-left-color: var(--white); }
.msg .quote b { display: block; font-size: .78rem; color: var(--ice); }
.msg.mine .quote b { color: var(--white); }
.msg .quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; opacity: .85; line-height: 1.35; }
.msg .quote:hover { background: rgba(3,11,28,.5); }
.reply-bar { display: flex; align-items: center; gap: .7rem; margin: 0 .6rem; padding: .5rem .7rem; border-left: 3px solid var(--blue); background: rgba(255,255,255,.06); border-radius: 8px 8px 0 0; }
.reply-bar[hidden] { display: none; }
.reply-bar > div { flex: 1; min-width: 0; }
.reply-bar b { display: block; font-size: .78rem; color: var(--ice); }
.reply-bar span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; color: var(--muted); }
.reply-x { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .3rem .5rem; }
.reply-x:hover { color: var(--white); }
.msg { position: relative; }
.msg.swipe-ok::before { content: "↩"; position: absolute; left: -2rem; top: 50%; translate: 0 -50%; color: var(--ice); font-size: 1.2rem; }
.chatbox, .reply-bar { min-width: 0; }
/* @mentions */
.msg .bubble a.mention { text-decoration: none; font-weight: 700; color: var(--ice); background: rgba(156,194,255,.14); padding: 0 .25rem; border-radius: 4px; }
.msg.mine .bubble a.mention { color: var(--white); background: rgba(3,11,28,.25); }
.msg .bubble a.mention.me { color: var(--navy-950); background: var(--ice); }
.msg.tome .bubble { box-shadow: inset 3px 0 0 var(--ice); }
.mention-pick { position: absolute; left: .6rem; right: .6rem; bottom: calc(100% + .3rem); z-index: 20; background: var(--navy-900); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); padding: .3rem; max-width: 380px; }
.mention-pick[hidden] { display: none; }
.mention-pick button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--white); font: inherit; text-align: left; cursor: pointer; }
.mention-pick button.on, .mention-pick button:hover { background: rgba(47,107,255,.35); }
.mention-pick small { color: var(--muted); margin-left: auto; font-size: .8rem; }
.usermenu > summary { position: relative; }
.um-at { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--warn); color: #3a2a00; font: 800 .8rem/1 var(--body); font-style: normal; box-shadow: 0 0 0 2px var(--navy-950); animation: atpop .5s cubic-bezier(.2,.8,.2,1.4) both; }
@keyframes atpop { from { transform: scale(0); } }
.mentions { display: grid; gap: .5rem; }
.mention-row { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; background: var(--navy-800); border-left: 4px solid transparent; text-decoration: none; color: inherit; }
.mention-row.unseen { border-left-color: var(--warn); }
.mention-row:hover { background: var(--navy-700); }
.mention-row p { margin: 0; }
.mention-text { margin-top: .25rem !important; overflow-wrap: anywhere; }
/* admin: use the whole window width on big screens (header and footer follow, so everything lines up) */
@media (min-width: 1300px) {
  body.wide .wrap { width: calc(100% - 4rem); max-width: 2400px; }
  body.wide .admin { grid-template-columns: 250px minmax(0, 1fr); gap: 2.6rem; }
}
.fmax { max-width: 820px; }
.adm-side > .card:first-child, .adm-side > section:first-child { margin-top: 1.4rem; }
@media (min-width: 1400px) {
  body.wide .adm-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 2rem; align-items: start; }
  body.wide .adm-cols > div { min-width: 0; }
  body.wide .adm-side > .card:first-child, body.wide .adm-side > section:first-child, body.wide .adm-side > form:first-child { margin-top: 0 !important; }
  body.wide .fmax { max-width: none; }
  body.wide form.wide-form .adm-side h2:first-child { margin-top: 0 !important; }
}
/* public race page: how many club members go */
.going-big { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-top: .3rem; }
.going-big b { font: 900 italic clamp(3.6rem, 9vw, 5.2rem)/.9 var(--display); color: var(--white); }
.going-big span { font: 800 1.15rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ice); }
.going-dist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .35rem; }
.going-dist li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .7rem; background: rgba(255,255,255,.05); border-left: 3px solid var(--blue); }
.going-dist b { font: 800 1.1rem/1 var(--display); }
.light .going-big b { color: var(--navy-900); }
th.sel, td.sel { width: 2.6rem; }
.album-admin td.acts { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .album-admin td.sel { justify-content: flex-start; } .album-admin td.sel:empty { display: none; } }
/* fee invoices */
.inv-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: -.2rem 0 .9rem 3.4rem; }
.inv-row form { margin: 0; }
.inv-state { flex: 1 1 220px; color: var(--muted); }
.inv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 .4rem; padding: .8rem 1rem; background: rgba(47,107,255,.1); border-left: 4px solid var(--blue); }
.inv-bar form { margin: 0; }
.inv-bar .btn[disabled] { opacity: .45; cursor: default; }
.inv-chip { margin-left: .2rem; color: var(--ice); cursor: help; }
@media (max-width: 760px) { .inv-row { margin-left: 0; } }
.adm-side .fee-row { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
.adm-side .fee-row input[type=date] { grid-column: 2 / 3; }
.fees > .fee-row:not(:first-child) { margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.mode-card.is-test { border-left: 5px solid var(--warn); }
.mode-card.is-live { border-left: 5px solid var(--ok, #2fbf71); }
.mode-card form { margin: 0; }
.inv-bar.is-test { background: rgba(255,200,87,.12); border-left-color: var(--warn); }
.btn.wa { color: #25d366; }
.wa-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: .9rem 1rem; background: #075e54; color: #fff; border-radius: 10px 10px 10px 2px; line-height: 1.45; max-width: 520px; }
.um-tag { right: auto; left: -4px; top: auto; bottom: -4px; font-size: .62rem; background: var(--ice); }
.um-tag.two { left: -6px; }
.mi-new { position: absolute; left: .4rem; top: .4rem; z-index: 2; padding: .2rem .45rem; background: var(--warn); color: #3a2a00; font: 800 .7rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.mention-thumb { display: block; margin-top: .5rem; width: 120px; height: 80px; object-fit: cover; }
