/* EventCraft Portal: heller Pixel-Look. Farben als Tokens, Blöcke/Köpfe kommen als PNG vom Server. */

@font-face { font-family: "Pixelify Sans"; src: url("fonts/pixelify-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "VT323"; src: url("fonts/vt323.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Ziffern in der Pixel-Schrift aus VT323: In Pixelify Sans sehen 5, 6 und 8 wie S/G/B aus.
   size-adjust bringt die VT323-Ziffern auf die Höhe der Pixelify-Großbuchstaben. */
@font-face { font-family: "Pixel Digits"; src: url("fonts/vt323.woff2") format("woff2"); unicode-range: U+0030-0039; size-adjust: 125%; font-display: swap; }

:root {
  --bg: #f4efdf;
  --panel: #fffdf6;
  --ink: #1e1a16;
  --ink-soft: #3f3830;
  --muted: #6d6458;
  --sky: #93d2ff;
  --sky-light: #d4ecff;
  --grass: #5fbf3b;
  --grass-dark: #3c8a21;
  --grass-light: #dcf3cd;
  --gold: #fbcb36;
  --gold-light: #fff1c0;
  --redstone: #e2463a;
  --redstone-light: #fbd8d2;
  --diamond: #45d3cf;
  --amethyst: #a879dc;
  --deepslate: #2e3036;
  --stone-light: #e6e2d6;
  --row-alt: #faf6ea;
  --row-line: #e4dccb;
  --discord: #5865f2;
  --white: #ffffff;
  --on-dark: #f6f2e6;
  --console: #17181c;

  --font-display: "Pixel Digits", "Pixelify Sans", "Courier New", ui-monospace, monospace;
  --font-body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --font-term: "VT323", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --px: 4px;
  --outline: 0 calc(var(--px) * -1) 0 0 var(--ink), 0 var(--px) 0 0 var(--ink), calc(var(--px) * -1) 0 0 0 var(--ink), var(--px) 0 0 0 var(--ink);
  --outline-2: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink);
  --drop: 8px 8px 0 0 rgba(30, 26, 22, 0.18);
  --bevel: inset 0 -4px 0 0 rgba(0, 0, 0, 0.22), inset 4px 4px 0 0 rgba(255, 255, 255, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15.5px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
code, .term { font-family: var(--font-term); font-size: 1.15em; }
code { background: var(--stone-light); padding: 0 4px; }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: .86rem; }
.eyebrow { font-family: var(--font-display); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
[hidden] { display: none !important; }
.stack { display: grid; gap: 30px; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Bausteine ---------- */
.panel { background: var(--panel); box-shadow: var(--outline), var(--drop); padding: 20px 22px; display: grid; gap: 14px; align-content: start; margin: var(--px); min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; line-height: 1; padding: 5px 9px 4px; background: var(--white); color: var(--ink); box-shadow: var(--outline-2); margin: 2px; white-space: nowrap; }
.tag.grass { background: var(--grass); }
.tag.gold { background: var(--gold); }
.tag.redstone { background: var(--redstone); color: var(--white); }
.tag.diamond { background: var(--diamond); }
.tag.amethyst { background: var(--amethyst); }
.tag.stone { background: var(--stone-light); color: var(--ink-soft); }
.tag.sky { background: var(--sky); }

.btn { font: inherit; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 20px 8px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; background: var(--gold); color: var(--ink); box-shadow: var(--outline), var(--bevel); margin: var(--px); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: var(--outline); }
.btn.grass { background: var(--grass); }
.btn.discord { background: var(--discord); color: var(--white); }
.btn.white { background: var(--white); }
.btn.redstone { background: var(--redstone); color: var(--white); }
.btn.sm { min-height: 34px; padding: 7px 12px 5px; font-size: .82rem; box-shadow: var(--outline-2), inset 0 -3px 0 0 rgba(0,0,0,.2), inset 2px 2px 0 0 rgba(255,255,255,.35); margin: 2px; }
.btn.sm:active { box-shadow: var(--outline-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.head { display: inline-block; width: 28px; height: 28px; flex: none; image-rendering: pixelated; background: #c68a62; box-shadow: var(--outline-2); margin: 2px; vertical-align: middle; }
.head.l { width: 44px; height: 44px; }
.head.xl { width: 72px; height: 72px; box-shadow: var(--outline); margin: var(--px); }
.dc-ava { width: 28px; height: 28px; border-radius: 50%; background: var(--discord); color: var(--white); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; box-shadow: 0 0 0 2px var(--ink); flex: none; object-fit: cover; }
img.cube { image-rendering: pixelated; width: 44px; height: 44px; flex: none; display: block; }
img.cube.s { width: 30px; height: 30px; }
img.cube.l { width: 64px; height: 64px; }

/* XP-Leiste: Füllstand per Klasse .v0 … .v100 (5er-Schritte), weil Wickets CSP keine style-Attribute erlaubt */
.xp { display: block; height: 12px; background: #3a3a3a; box-shadow: var(--outline-2); position: relative; margin: 2px; min-width: 60px; }
.xp i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grass); box-shadow: inset 0 3px 0 0 rgba(255,255,255,.35), inset 0 -3px 0 0 rgba(0,0,0,.2); display: block; }
.xp i.hi { background: var(--gold); }
.xp i.full { background: var(--redstone); }
.xp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0,0,0,.45) calc(10% - 2px) 10%); pointer-events: none; }
.xp .v0 { width: 0; } .xp .v5 { width: 5%; } .xp .v10 { width: 10%; } .xp .v15 { width: 15%; } .xp .v20 { width: 20%; }
.xp .v25 { width: 25%; } .xp .v30 { width: 30%; } .xp .v35 { width: 35%; } .xp .v40 { width: 40%; } .xp .v45 { width: 45%; }
.xp .v50 { width: 50%; } .xp .v55 { width: 55%; } .xp .v60 { width: 60%; } .xp .v65 { width: 65%; } .xp .v70 { width: 70%; }
.xp .v75 { width: 75%; } .xp .v80 { width: 80%; } .xp .v85 { width: 85%; } .xp .v90 { width: 90%; } .xp .v95 { width: 95%; }
.xp .v100 { width: 100%; }

/* ---------- Kopfzeile ---------- */
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--panel); border-bottom: var(--px) solid var(--ink); }
.app-bar.orga { background: var(--deepslate); color: var(--on-dark); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.brand img.cube { width: 34px; height: 34px; }
.app-nav { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--font-display); font-size: 1rem; }
.app-nav a, .app-nav span { padding: 5px 10px 3px; text-decoration: none; }
.app-nav a:hover { background: var(--gold-light); color: var(--ink); }
.app-nav .on { background: var(--ink); color: var(--gold); }
.app-bar.orga .app-nav .on { background: var(--gold); color: var(--ink); }
.app-bar .spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; }
.who a { color: var(--muted); font-weight: 400; }
.app-bar.orga .who a { color: #b9b4a8; }

.app-main { padding: 30px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 26px; width: 100%; max-width: 1040px; margin: 0 auto; align-content: start; }
.app-main.narrow { max-width: 780px; }
.app-foot { background: var(--deepslate); color: #c9c4b8; font-size: .82rem; }
.app-foot .in { max-width: 1040px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

/* ---------- Himmel, Wolken, Boden ---------- */
.sky { position: relative; background: linear-gradient(var(--sky) 0 60%, var(--sky-light)); overflow: hidden; border-bottom: var(--px) solid var(--ink); }
.sky.land-nether { background: linear-gradient(#6b1f1f 0 55%, #b8492f); }
.sky.land-nether .sky-text p, .sky.land-nether .crew small { color: var(--on-dark); }
.sky.land-desert { background: linear-gradient(#8fd0f5 0 55%, #f3e3b2); }
.cloud { position: absolute; height: 20px; background: var(--white); opacity: .92; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--white); }
.cloud.c1 { top: 34px; left: 6%; width: 120px; }
.cloud.c1::before { left: 20px; top: -16px; width: 60px; height: 16px; }
.cloud.c2 { top: 70px; right: 8%; width: 160px; }
.cloud.c2::before { left: 30px; top: -16px; width: 80px; height: 16px; }
.cloud.c2::after { left: 60px; top: -32px; width: 36px; height: 16px; }
.cloud.c3 { top: 150px; left: 46%; width: 90px; opacity: .7; }
.cloud.c3::before { left: 16px; top: -12px; width: 44px; height: 12px; }
.land-nether .cloud { background: #3a1010; opacity: .35; }
.land-nether .cloud::before, .land-nether .cloud::after { background: #3a1010; }
.sky-in { position: relative; z-index: 1; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: end; }
.sky-text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.title-px { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: .95; color: var(--white); text-shadow: 4px 4px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.sky-text .desc { max-width: 54ch; font-size: 1.04rem; color: var(--ink); display: grid; gap: 8px; }
.crew { justify-self: end; display: grid; gap: 8px; justify-items: end; }
.crew-heads { display: flex; align-items: center; flex-wrap: wrap; }
.crew-heads .head { margin-left: -6px; }
.crew-heads .more { font-family: var(--font-display); background: var(--white); box-shadow: var(--outline-2); padding: 6px 8px 4px; margin-left: 8px; font-weight: 700; }
.crew small { font-family: var(--font-display); font-size: .9rem; }
.ground { height: 48px; background-color: #8b5a3c; background-size: 48px 48px; image-rendering: pixelated; border-top: var(--px) solid var(--ink); }
.ground.land-meadow { background-image: url("/tex/grass"); }
.ground.land-snow { background-image: url("/tex/snow"); }
.ground.land-desert { background-image: url("/tex/sand"); }
.ground.land-nether { background-image: url("/tex/netherrack"); }
.ticker { background: var(--ink); color: var(--gold); overflow: hidden; white-space: nowrap; font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 0 6px; }
.ticker .track { display: inline-flex; gap: 22px; padding-left: 22px; animation: tick 30s linear infinite; }
.ticker .track span { color: var(--on-dark); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Server, Schritte, Projekte ---------- */
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.srv { background: var(--panel); box-shadow: var(--outline), var(--drop); margin: var(--px); padding: 16px; display: grid; gap: 10px; }
.srv-top { display: flex; gap: 12px; align-items: center; }
.srv-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.srv-count { font-family: var(--font-term); font-size: 1.3rem; line-height: 1; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.srv.full { background: var(--stone-light); }
.srv-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; padding: 0; margin: 0; counter-reset: st; }
.steps li { list-style: none; counter-increment: st; background: var(--panel); box-shadow: var(--outline); margin: var(--px); padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.steps li::before { content: counter(st); grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; background: var(--gold); box-shadow: var(--outline-2), inset 0 -3px 0 rgba(0,0,0,.2); }
.steps li:nth-child(2)::before { background: var(--diamond); }
.steps li:nth-child(3)::before { background: var(--grass); }
.steps b { font-family: var(--font-display); font-size: 1.1rem; }
.steps span { color: var(--ink-soft); font-size: .92rem; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.project-card { background: var(--panel); box-shadow: var(--outline), var(--drop); margin: var(--px); padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; text-decoration: none; }
.project-card:hover { background: var(--gold-light); }
.project-card .nm { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.05; }
.project-card .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.empty { background: var(--panel); box-shadow: var(--outline-2); margin: 2px; padding: 22px; display: grid; gap: 8px; justify-items: start; }
.rules { white-space: pre-line; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.lbl { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.input, textarea.input, select.input { font: inherit; font-size: 1rem; padding: 10px 12px; border: 0; background: var(--white); color: var(--ink); width: 100%; max-width: 360px; box-shadow: var(--outline-2), inset 3px 3px 0 0 rgba(0,0,0,.12); margin: 2px; }
textarea.input { max-width: 100%; min-height: 120px; resize: vertical; }
.input.wide { max-width: 100%; }
.input.term { font-family: var(--font-term); font-size: 1.45rem; padding: 4px 12px; letter-spacing: .04em; }
.input:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.mc-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.mc-ok { display: grid; gap: 4px; justify-items: start; font-size: .86rem; }
.mc-ok .uuid { font-family: var(--font-term); font-size: 1.05rem; color: var(--ink-soft); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.choice { position: relative; background: var(--panel); box-shadow: var(--outline-2); margin: 2px; padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { font-family: var(--font-display); font-size: 1.05rem; }
.choice .xp { grid-column: 1 / -1; }
.choice small { font-family: var(--font-term); font-size: 1.1rem; color: var(--ink-soft); line-height: 1; }
.choice:hover { background: var(--gold-light); }
.choice:has(input:checked) { background: var(--gold-light); box-shadow: var(--outline), 0 0 0 8px var(--gold); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; background: var(--stone-light); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 10px; }
.choice.auto { grid-template-columns: 1fr; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; font-family: var(--font-display); font-weight: 500; font-size: .98rem; padding: 8px 14px 6px; background: var(--panel); box-shadow: var(--outline-2); margin: 2px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: var(--gold); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.sub { background: var(--sky-light); box-shadow: var(--outline-2); margin: 2px; padding: 14px 16px; display: grid; gap: 8px; }
.group-found { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .92rem; }
.group-found b { font-family: var(--font-display); font-size: 1.05rem; }
.group-found.problem { color: var(--redstone); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 2px 0 0; background: var(--white); box-shadow: var(--outline-2); flex: none; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--grass); }
.check input:checked::after { content: ""; width: 10px; height: 10px; background: var(--ink); }
.check input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.select { font: inherit; font-size: .92rem; padding: 7px 10px; border: 0; background: var(--white); color: var(--ink); box-shadow: var(--outline-2); margin: 2px; max-width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.inline-form .input { max-width: 240px; padding: 6px 10px; }
.inline-form .input.term { padding: 2px 10px; font-size: 1.3rem; }

/* Meldungen (Wicket FeedbackPanel) */
.feedbackPanel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feedbackPanel li { box-shadow: var(--outline-2); margin: 2px; padding: 10px 14px; background: var(--white); font-weight: 500; }
.feedbackPanelERROR, .feedbackPanelFATAL { background: var(--redstone-light) !important; }
.feedbackPanelSUCCESS { background: var(--grass-light) !important; }
.feedbackPanelINFO { background: var(--sky-light) !important; }
.feedbackPanelWARNING { background: var(--gold-light) !important; }

/* ---------- Meine Anmeldung ---------- */
.banner { background: var(--grass); box-shadow: var(--outline), var(--drop); margin: var(--px); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.banner.gold { background: var(--gold); }
.banner.redstone { background: var(--redstone-light); }
.banner .big { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; text-transform: uppercase; }
.banner .addr-row { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr { font-family: var(--font-term); font-size: 1.35rem; background: var(--console); color: #7cf06a; padding: 2px 12px; box-shadow: var(--outline-2); margin: 2px; }
.me { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.me-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .95rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.code { font-family: var(--font-term); font-size: 1.7rem; line-height: 1; letter-spacing: .12em; background: var(--white); padding: 4px 12px 2px; box-shadow: var(--outline-2); margin: 2px; }
.members { margin: 0; padding: 0; display: grid; }
.members li { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 2px dashed #d7d0bd; }
.members li:last-child { border-bottom: 0; }
.members .nm { font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; }
.members .end { margin-left: auto; }
.move { background: var(--sky-light); box-shadow: var(--outline-2); margin: 2px; padding: 14px 16px; display: grid; gap: 10px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.two > * { min-width: 0; }

/* ---------- Orga ---------- */
.page-title { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; justify-content: space-between; }
.page-title .t { display: flex; gap: 16px; align-items: center; min-width: 0; }
.page-title .t > div { display: grid; gap: 6px; min-width: 0; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: inherit; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat { background: var(--panel); box-shadow: var(--outline); margin: var(--px); padding: 12px 16px; display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: var(--ink-soft); }
.stat.attn { background: var(--gold-light); }
.stat.bad { background: var(--redstone-light); }
.tbl { overflow-x: auto; background: var(--panel); box-shadow: var(--outline); margin: var(--px); }
.tbl table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; vertical-align: middle; }
.tbl th { font-family: var(--font-display); font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: var(--on-dark); white-space: nowrap; }
.tbl tbody tr + tr td { border-top: 2px solid var(--row-line); }
.tbl tbody tr:nth-child(even) td { background: var(--row-alt); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .row-muted td { color: var(--muted); }
.tbl .empty-row td { color: var(--muted); text-align: center; padding: 22px; }
.who-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.who-cell .nm { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.who-cell a.nm { text-decoration: none; }
.who-cell a.nm:hover { text-decoration: underline; }
.mini { display: grid; grid-template-columns: 90px auto; gap: 10px; align-items: center; font-family: var(--font-term); font-size: 1.15rem; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font: inherit; font-family: var(--font-display); font-size: .9rem; padding: 6px 10px 4px; background: var(--panel); border: 0; box-shadow: var(--outline-2); margin: 2px; cursor: pointer; color: var(--ink); text-decoration: none; }
.chip.on { background: var(--gold); }
.chip .n { font-family: var(--font-term); font-size: 1.1rem; margin-left: 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.lever { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.lever i { width: 52px; height: 26px; background: var(--stone-light); box-shadow: var(--outline-2), inset 0 -3px 0 rgba(0,0,0,.2); position: relative; display: inline-block; }
.lever i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; background: var(--white); box-shadow: var(--outline-2); }
.lever.on i { background: var(--grass); }
.lever.on i::after { left: auto; right: 4px; }
.console { background: var(--console); color: #e8e8e8; font-family: var(--font-term); font-size: 1.15rem; line-height: 1.35; padding: 14px 16px; overflow-x: auto; box-shadow: var(--outline); margin: var(--px); }
.console .line { white-space: pre-wrap; overflow-wrap: anywhere; }
.console .t { color: #8d8d8d; }
.console .c { color: #ffd84a; }
.console .ok { color: #7cf06a; }
.console .e { color: #ff6b5e; }
.console .who { display: inline; color: #8d8d8d; font-size: inherit; font-weight: 400; }
.console .r { padding-left: 2ch; }

/* ================= Orga-Bereich: ruhiges Admin-Layout =================
   Pixel-Schrift nur für Überschriften und Kennzahlen, Daten in Rubik, 2px-Rahmen
   statt Rahmen-in-Rahmen, Status als kleines Quadrat statt lauter Tags. */
.app-bar.orga { padding-top: 8px; padding-bottom: 8px; border-bottom-width: 2px; }
.app-bar.orga .brand { font-size: 1.05rem; }
.app-bar.orga .brand img.cube { width: 28px; height: 28px; }

.admin-shell { flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.admin-side { background: var(--panel); border-right: 2px solid var(--ink); padding: 16px 10px 24px max(10px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.side-head { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-left: 3px solid transparent; text-decoration: none; font-size: .9rem; color: var(--ink-soft); min-width: 0; }
.side-link .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link:hover { background: var(--row-alt); color: var(--ink); }
.side-link.on { background: var(--gold-light); border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
.side-link.proj { font-weight: 600; color: var(--ink); }
.side-link.add { color: var(--muted); font-size: .84rem; }
.side-link img.cube.s { width: 20px; height: 20px; }
.side-link .badge { margin-left: auto; min-width: 22px; text-align: center; font-size: .72rem; font-weight: 700; background: var(--gold); color: var(--ink); padding: 1px 6px; box-shadow: 0 0 0 1px var(--ink); }
.side-sub { display: grid; gap: 1px; margin: 2px 0 10px 19px; padding-left: 6px; border-left: 2px solid var(--row-line); }
.admin-main { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px 32px; display: grid; gap: 24px; align-content: start; min-width: 0; }

/* Buttons: eine Größe, flacher */
.admin-main .btn { min-height: 36px; padding: 8px 14px 6px; font-size: .76rem; gap: 6px; box-shadow: var(--outline-2), inset 0 -3px 0 0 rgba(0,0,0,.16); margin: 2px; }
.admin-main .btn:active { box-shadow: var(--outline-2); }

/* Status: kleines Quadrat + Text statt farbiger Tag-Kästen */
.admin-main .tag { background: none; color: var(--ink-soft); box-shadow: none; font-family: var(--font-body); font-size: .84rem; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 0; margin: 0; gap: 7px; }
.admin-main .tag::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--muted); box-shadow: 0 0 0 1px var(--ink); }
.admin-main .tag.grass::before { background: var(--grass); }
.admin-main .tag.gold::before { background: var(--gold); }
.admin-main .tag.redstone::before { background: var(--redstone); }
.admin-main .tag.stone::before { background: var(--stone-light); }
.admin-main .tag.sky::before { background: var(--sky); }
.admin-main .tag.diamond::before { background: var(--diamond); }
.admin-main .tag.amethyst::before { background: var(--amethyst); }
.admin-main .tag.none { color: var(--muted); }
.admin-main .tag.none::before { display: none; }

/* Seitenkopf */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.page-head img.cube.l { width: 56px; height: 56px; }
.page-head-text { flex: 1; min-width: 260px; display: grid; gap: 6px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.page-head .meta { color: var(--muted); font-size: .88rem; white-space: pre-wrap; }
.page-head .back { font-size: .85rem; color: var(--muted); text-decoration: none; }
.page-head .back:hover { color: var(--ink); text-decoration: underline; }
.page-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* Kennzahlen als eine Leiste */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--panel); border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(30, 26, 22, .12); }
.kpi { display: grid; gap: 2px; padding: 12px 18px; border-left: 1px solid var(--row-line); }
.kpi:first-child { border-left: 0; }
.kpi span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi.attn { background: var(--gold-light); }
.kpi.bad { background: var(--redstone-light); }

/* Abschnitte */
.block { display: grid; gap: 12px; min-width: 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.block-head h2 { font-size: 1.3rem; }

/* Server als Kacheln */
.server-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.server-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(30, 26, 22, .12); color: var(--ink); text-decoration: none; min-width: 0; }
.server-tile:hover { background: var(--gold-light); }
.server-tile img.cube { width: 40px; height: 40px; }
.server-tile-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.server-tile-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
/* Name darf schrumpfen (…), die Belegung bleibt immer sichtbar */
.server-tile-top b { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-tile-top .num { flex: none; font-family: var(--font-term); font-size: 1.2rem; color: var(--ink-soft); }
.server-tile .xp { margin: 2px 2px 0; }
.server-tile-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 12px; min-width: 0; }
.server-tile-foot .tag { flex: none; font-size: .8rem; }
.server-tile-foot code { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; color: var(--muted); font-size: .95rem; padding: 0; }
.empty-note { color: var(--muted); margin: 0; }

/* Werkzeugleiste: Filter, Suche */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.toolbar .spacer { flex: 1; }
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--panel); border: 2px solid var(--ink); }
.segmented:empty { display: none; }
.segmented a { padding: 6px 12px; border-left: 1px solid var(--row-line); font-size: .86rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.segmented a:first-child { border-left: 0; }
.segmented a:hover { background: var(--row-alt); color: var(--ink); }
.segmented a.on { background: var(--ink); color: var(--gold); font-weight: 600; }
.segmented .n { margin-left: 2px; font-family: var(--font-term); font-size: 1.05rem; opacity: .85; }
.search { display: flex; align-items: center; gap: 6px; margin: 0; }
.search .input { width: 280px; }

/* Sammelleiste über der Tabelle */
.reg-table { margin: 0; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 50px; padding: 6px 12px; background: var(--stone-light); border: 2px solid var(--ink); border-bottom: 0; font-size: .86rem; }
.bulkbar .count { font-weight: 600; color: var(--ink-soft); }
.bulk-hint { color: var(--muted); font-size: .82rem; }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.bulk-actions b { margin-right: 4px; }
.bulk-actions .sep { width: 1px; height: 22px; background: var(--muted); margin: 0 6px; opacity: .5; }
.bulk-actions .select { width: 200px; }
.js .reg-table:not(.has-selection) .bulk-actions { display: none; }
.js .reg-table.has-selection .bulk-hint { display: none; }
html:not(.js) .bulk-hint { display: none; }
.reg-table.has-selection .bulkbar { background: var(--sky-light); }

/* Dichte Tabellen */
.tbl.dense { margin: 0; background: var(--panel); border: 2px solid var(--ink); box-shadow: none; }
.tbl.dense table { font-size: .86rem; }
.tbl.dense th, .tbl.dense td { padding: 6px 10px; white-space: nowrap; }
.tbl.dense th { background: var(--stone-light); color: var(--ink-soft); font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.tbl.dense th a { color: inherit; text-decoration: none; }
.tbl.dense th a:hover, .tbl.dense th a.on { color: var(--ink); }
.tbl.dense th a.on::after { content: " ▾"; }
.tbl.dense th a.on.up::after { content: " ▴"; }
.tbl.dense tbody tr + tr td { border-top: 1px solid var(--row-line); }
.tbl.dense tbody tr:nth-child(even) td { background: transparent; }
.tbl.dense tbody tr:hover td { background: var(--row-alt); }
.tbl.dense tbody tr:has(td.sel input:checked) td { background: var(--sky-light); }
.tbl.dense .sel { width: 34px; text-align: center; padding-right: 2px; }
.tbl.dense input[type="checkbox"] { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: var(--ink); cursor: pointer; }
.tbl.dense .who-cell { gap: 8px; }
.tbl.dense .who-cell .nm { font-family: var(--font-body); font-size: .9rem; font-weight: 600; }
.tbl.dense .num { font-variant-numeric: tabular-nums; }
.tbl.dense .act { width: 1%; text-align: right; }
.tbl.dense .btn { min-height: 26px; padding: 4px 9px 3px; font-size: .66rem; box-shadow: var(--outline-2); }
.tbl.dense .tag { font-size: .84rem; }
.head.s { width: 20px; height: 20px; margin: 0; box-shadow: 0 0 0 1px var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 26px; color: var(--ink-soft); font-weight: 700; cursor: pointer; list-style: none; }
.icon-btn:hover, details.more[open] > .icon-btn { background: var(--ink); color: var(--gold); }
details.more { display: inline-block; vertical-align: middle; }
details.more > summary::-webkit-details-marker { display: none; }
.more-pop { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; max-width: 360px; margin-top: 4px; white-space: normal; }

/* ---------- Formulare im Orga-Bereich: ein Raster, gleich hohe Felder ---------- */
.admin-main .input, .admin-main .select, .admin-main select.input, .admin-main textarea.input {
  width: 100%; max-width: none; height: 40px; margin: 0; padding: 0 12px; border: 2px solid var(--ink); box-shadow: none;
  background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: .95rem; letter-spacing: 0; border-radius: 0;
}
.admin-main textarea.input { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.5; }
.admin-main .input.term { font-family: var(--font-term); font-size: 1.25rem; }
.admin-main .input:focus, .admin-main .select:focus { outline: 3px solid var(--gold); outline-offset: 0; }
.admin-main .inline-form .input, .admin-main .inline-form .select { width: auto; min-width: 200px; }
.admin-main .bulk-actions .select { height: 36px; }
.settings { display: grid; gap: 20px; max-width: 1080px; }
.form-section { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 12px 32px; padding: 20px 22px; background: var(--panel); border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(30, 26, 22, .12); }
.form-section > header { display: grid; gap: 4px; align-content: start; }
.form-section > header h2 { font-size: 1.15rem; }
.form-section > header p { color: var(--muted); font-size: .86rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; min-width: 0; }
.fields .f { display: grid; grid-template-rows: auto 40px auto; gap: 6px; min-width: 0; }
.fields .f.wide { grid-column: 1 / -1; }
.fields .f.auto { grid-template-rows: auto auto auto; }
.fields .f > label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.fields .f > .help { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.fields .f .with-prefix { display: flex; align-items: stretch; }
.fields .f .with-prefix span { display: grid; place-items: center; padding: 0 10px; border: 2px solid var(--ink); border-right: 0; background: var(--stone-light); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.switch { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; padding: 10px 12px; border: 2px solid var(--row-line); background: var(--white); cursor: pointer; }
.switch:has(input:checked) { border-color: var(--ink); background: var(--grass-light); }
.switch input { appearance: none; width: 38px; height: 22px; margin: 0; background: var(--stone-light); box-shadow: var(--outline-2); position: relative; cursor: pointer; grid-row: span 2; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--white); box-shadow: var(--outline-2); }
.switch input:checked { background: var(--grass); }
.switch input:checked::after { left: auto; right: 3px; }
.switch input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.switch b { font-size: .9rem; }
.switch span { font-size: .8rem; color: var(--muted); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.picker label { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border: 2px solid var(--row-line); background: var(--white); cursor: pointer; font-size: .82rem; text-align: center; }
.picker label:hover { border-color: var(--ink); }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker label:has(input:checked) { border-color: var(--ink); background: var(--gold-light); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 600; }
.picker label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.picker img.cube { width: 40px; height: 40px; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 22px; background: var(--ink); color: var(--on-dark); box-shadow: 0 -4px 0 rgba(30, 26, 22, .12); }
.save-bar .spacer { flex: 1; }
.save-bar .help { color: #b9b4a8; }
.danger-zone { border-color: var(--redstone); }
.danger-zone > header h2 { color: var(--redstone); }

/* ---------- Rich-Text-Editor ---------- */
.rte { display: grid; border: 2px solid var(--ink); background: var(--white); min-width: 0; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--stone-light); border-bottom: 2px solid var(--ink); }
.rte-bar button { min-width: 32px; height: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); font: 600 .86rem var(--font-body); cursor: pointer; }
.rte-bar button:hover { background: var(--white); }
.rte-bar button.on { background: var(--ink); color: var(--gold); }
.rte-bar .sep { width: 1px; margin: 4px 4px; background: var(--muted); opacity: .4; }
.rte-area { min-height: 240px; max-height: 70vh; overflow-y: auto; padding: 14px 16px; outline: none; }
.rte-area:focus { box-shadow: inset 0 0 0 3px var(--gold); }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rte-area img { max-width: 100%; height: auto; cursor: pointer; }
.rte-area img.selected { outline: 3px solid var(--gold); }
.rte textarea { display: none; }
.rte-hint { font-size: .78rem; color: var(--muted); padding: 6px 10px; border-top: 1px solid var(--row-line); }

/* Rich Text (Editor und Projektseite) */
.rich { line-height: 1.65; overflow-wrap: anywhere; }
.rich > * + * { margin-top: .75em; }
.rich > :first-child { margin-top: 0; }
.rich h2 { font-size: 1.45rem; margin-top: 1.2em; }
.rich h3 { font-size: 1.15rem; margin-top: 1em; }
.rich p, .rich ul, .rich ol, .rich blockquote, .rich figure { margin-bottom: 0; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich ul li::marker { color: var(--grass-dark); }
.rich blockquote { margin-left: 0; padding: 8px 14px; border-left: 4px solid var(--gold); background: var(--gold-light); }
.rich img { display: block; max-width: 100%; height: auto; box-shadow: var(--outline-2); margin: 4px 2px; image-rendering: auto; }
.rich a { color: var(--grass-dark); font-weight: 500; }
.rich hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 12px); }

.content-section { gap: 16px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.notice { padding: 12px 16px; border: 2px solid var(--ink); background: var(--panel); font-size: .9rem; line-height: 1.5; }
.notice.warn { background: var(--gold-light); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: #e6e1d3; text-decoration: none; }
.foot-links a:hover { color: var(--gold); text-decoration: underline; }
.content-section .rich { max-width: 860px; }

/* Übrige Orga-Seiten (Übersicht, Server) im selben Stil */
.admin-main .page-title h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.admin-main .panel { margin: 0; border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(30, 26, 22, .12); }
.admin-main .tbl:not(.dense) { margin: 0; border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(30, 26, 22, .12); }
.admin-main .tbl:not(.dense) th { background: var(--stone-light); color: var(--ink-soft); font-family: var(--font-body); font-size: .72rem; font-weight: 600; border-bottom: 2px solid var(--ink); }
.admin-main .tbl:not(.dense) tbody tr + tr td { border-top: 1px solid var(--row-line); }
.admin-main .tbl:not(.dense) tbody tr:nth-child(even) td { background: transparent; }
.admin-main .who-cell .nm { font-family: var(--font-body); font-weight: 600; }
.admin-main .console { margin: 0; border: 2px solid var(--ink); box-shadow: none; }
.admin-main .meta-row { gap: 6px 16px; }
.admin-main .feedbackPanel li { margin: 0; border: 2px solid var(--ink); box-shadow: none; }
.admin-main .chip { box-shadow: none; border: 2px solid var(--ink); margin: 0; }

/* Seitennavigation der Tabelle */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; }
.pager a { display: inline-block; min-width: 32px; padding: 5px 9px; text-align: center; background: var(--panel); border: 2px solid var(--ink); color: var(--ink); font-size: .86rem; text-decoration: none; }
.pager a:hover { background: var(--row-alt); }
.pager a:not([href]) { background: var(--ink); color: var(--gold); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 2px solid var(--ink); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
  .side-head { display: none; }
  .side-sub { display: flex; flex-wrap: wrap; flex-basis: 100%; margin: 0; padding-left: 0; border-left: 0; }
  .admin-main { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
  .kpi { border-left: 0; border-top: 1px solid var(--row-line); }
  .form-section { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .fields { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sky-in { grid-template-columns: 1fr; }
  .crew { justify-self: start; justify-items: start; }
}
@media (max-width: 560px) {
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .banner { grid-template-columns: 1fr; }
  .banner .addr-row { grid-column: 1; }
  .me { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .track { animation: none; }
  .btn:active { transform: none; }
}
