:root {
  --bg: #0b0e16;
  --bg2: #0f1320;
  --panel: #131828;
  --panel2: #181e31;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --text: #e6e9f2;
  --soft: #c9cfdb;
  --dim: #7a8190;
  --blue: #5683ff;
  --blue2: #3e7cdd;
  --grad: linear-gradient(135deg, #5683ff, #3e7cdd);
  --good: #6bea9c;
  --bad: #ff6b6b;
  --warn: #ffd166;
  --r: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { image-rendering: pixelated; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(86, 131, 255, .35); }
[hidden] { display: none !important; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(900px 420px at 75% -120px, rgba(86, 131, 255, .10), transparent 70%); }
.bg-grid { position: absolute; inset: -40px; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); animation: gridMove 40s linear infinite; }
@keyframes gridMove { to { transform: translate3d(44px, 44px, 0); } }
.bg-glow { position: absolute; width: 520px; height: 520px; left: -160px; top: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(62, 124, 221, .14), transparent 65%); filter: blur(10px); animation: drift 26s ease-in-out infinite alternate; }
.bg-glow.two { left: auto; right: -200px; top: 60%; background: radial-gradient(circle, rgba(107, 234, 156, .06), transparent 65%); animation-duration: 34s; }
@keyframes drift { to { transform: translate3d(120px, -80px, 0) scale(1.15); } }
.bg-particles { position: absolute; inset: 0; perspective: 900px; }
.fblock { --s: 30px; position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: floatBlock 34s linear infinite; }
.fblock i { position: absolute; inset: 0; background-size: cover; image-rendering: pixelated; backface-visibility: hidden; }
.fblock i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.fblock i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.fblock i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.75); }
.fblock i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.75); }
.fblock i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.15); }
.fblock i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.5); }
@keyframes floatBlock {
  0% { transform: translate3d(0, 0, 0) rotateX(-20deg) rotateY(0); }
  50% { transform: translate3d(30px, -60px, 40px) rotateX(-35deg) rotateY(180deg); }
  100% { transform: translate3d(0, 0, 0) rotateX(-20deg) rotateY(360deg); }
}
body.ws-mode .bg-particles, body.ws-mode .bg-glow { display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11, 14, 22, .72); backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(11, 14, 22, .88); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(86, 131, 255, .5), transparent); opacity: 0; transition: opacity .3s; }
.nav.scrolled::after { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 19px; }
.brand-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 24px; height: 24px; flex: none; display: block; filter: drop-shadow(0 2px 6px rgba(62, 124, 221, .35)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
.brand-mark.lg { width: 56px; height: 56px; margin: 6px auto 22px; }
@media (prefers-reduced-motion: reduce) { .brand-mark { transition: none; } .brand:hover .brand-mark { transform: none; } }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 7px 13px; border-radius: 9px; color: var(--dim); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: none; border: 0; width: 38px; height: 38px; cursor: pointer; }
.nav-burger span { display: block; height: 2px; margin: 6px 8px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; image-rendering: auto; }
.user-chip .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--panel2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line2); background: var(--b);
  font-weight: 600; cursor: pointer; overflow: hidden; white-space: nowrap;
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--blue); border-color: transparent; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.btn.primary:hover { background: #6a92ff; }
.btn.discord { background: #5865f2; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); color: #ffb3b3; }
.btn.good { background: rgba(107, 234, 156, .12); border-color: rgba(107, 234, 156, .35); color: #b8f7cf; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 13px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; min-height: 100vh; outline: none; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.page { animation: page .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes page { from { opacity: 0; transform: translateY(10px); } }
main > * { transition: opacity .13s ease-in, transform .13s ease-in; }
main.leave > * { opacity: 0; transform: translateY(-6px); }
body:not(.ws-mode) .page .list > .item { animation: page .5s cubic-bezier(.2, .7, .2, 1) both; }
body:not(.ws-mode) .page .list > .item:nth-child(2) { animation-delay: 40ms; }
body:not(.ws-mode) .page .list > .item:nth-child(3) { animation-delay: 80ms; }
body:not(.ws-mode) .page .list > .item:nth-child(4) { animation-delay: 120ms; }
body:not(.ws-mode) .page .list > .item:nth-child(n+5) { animation-delay: 160ms; }
.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; }
.eyebrow { display: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 8px; }
h3 { font-size: 18px; }
.lead { color: var(--soft); font-size: 17px; max-width: 620px; }
.muted { color: var(--dim); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
}
.card.hover { transition: transform .25s, border-color .25s, box-shadow .25s; }
.card.hover:hover { border-color: rgba(86, 131, 255, .35); transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .7); }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 24px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.wordmark { font-size: clamp(60px, 9vw, 116px); font-weight: 900; letter-spacing: -.042em; line-height: .88; }
.wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: 19px; color: var(--text); margin: 16px 0 6px; font-weight: 600; }
.hero .lead { margin: 0 0 26px; font-size: 15px; color: var(--dim); max-width: 470px; }
.live { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 14px; margin-top: 18px; flex-wrap: wrap; }
.live b { color: var(--text); font-variant-numeric: tabular-nums; }
.live .sep { color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.check { background: var(--dim); }
.dot.on { background: var(--good); box-shadow: 0 0 0 0 rgba(107, 234, 156, .6); animation: pulse 2s infinite; }
.dot.off { background: var(--bad); }
.dot.warn { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(107, 234, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 234, 156, 0); } }
.ip-card {
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--line2); max-width: 440px; cursor: pointer; transition: border-color .2s;
}
.ip-card:hover { border-color: rgba(86, 131, 255, .55); }
.ip-card .ip { font: 700 17px var(--mono); }
.ip-card .lbl { font-size: 11px; color: var(--dim); }
.ip-card .btn { margin-left: auto; }

/* ---------- voxel scene (CSS 3D) ---------- */
.voxel { --u: 44px; position: relative; height: 470px; perspective: 1500px; perspective-origin: 50% 30%; user-select: none; }
.voxel::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 26px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .5); filter: blur(18px); }
.voxel .tilt { position: absolute; left: 50%; top: 56%; transform-style: preserve-3d; transform: scale(var(--k, 1)) rotateX(calc(-22deg + var(--tx, 0deg))) rotateY(var(--ty, 0deg)); transition: transform .5s ease-out; }
.voxel .bob { transform-style: preserve-3d; animation: bob 8s ease-in-out infinite; }
.voxel .spin { transform-style: preserve-3d; animation: spinY 60s linear infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes spinY { from { transform: rotateY(35deg); } to { transform: rotateY(395deg); } }
.vx { position: absolute; width: var(--u); height: var(--u); margin: calc(var(--u) / -2) 0 0 calc(var(--u) / -2); transform-style: preserve-3d; }
.vx i { position: absolute; inset: 0; background-size: cover; image-rendering: pixelated; backface-visibility: hidden; }
.vx .pt { transform: rotateX(90deg) translateZ(calc(var(--u) / 2)); }
.vx .pb { transform: rotateX(-90deg) translateZ(calc(var(--u) / 2)); box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .5); }
.vx .pf { transform: translateZ(calc(var(--u) / 2)); box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .18); }
.vx .pk { transform: rotateY(180deg) translateZ(calc(var(--u) / 2)); box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .18); }
.vx .pr { transform: rotateY(90deg) translateZ(calc(var(--u) / 2)); box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .32); }
.vx .pl { transform: rotateY(-90deg) translateZ(calc(var(--u) / 2)); box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .32); }
.drop { position: absolute; transform-style: preserve-3d; }
.drop img { position: absolute; width: 22px; height: 22px; margin: -11px; animation: item 3.2s linear infinite; }
@keyframes item { 0% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-7px) rotateY(180deg); } 100% { transform: translateY(0) rotateY(360deg); } }
.xp-orb { position: absolute; width: 8px; height: 8px; margin: -4px; background: #b5f23d; box-shadow: 0 0 10px #8fe02a; animation: orb 2.6s ease-in-out infinite; }
@keyframes orb { 50% { transform: translateY(-10px); opacity: .6; } }

/* ---------- 3D Minecraft skin ---------- */
.mc { position: absolute; transform-style: preserve-3d; }
.mc .part, .mc .hat { position: absolute; transform-style: preserve-3d; }
.mc .part { transform-origin: 50% 0; }
.mc .hd { transform-origin: 50% 100%; }
.mc .hat { left: 0; top: 0; transform: scale3d(1.13, 1.13, 1.13); }
.mc i { position: absolute; background-repeat: no-repeat; image-rendering: pixelated; backface-visibility: hidden; }
.mc .sr, .mc .sl { box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .12); }
.mc .sb { box-shadow: inset 0 0 0 99px rgba(0, 0, 0, .3); }
.mc.walk .ra, .mc.walk .ll { animation: swing 1.2s ease-in-out infinite; }
.mc.walk .la, .mc.walk .rl { animation: swing 1.2s ease-in-out infinite reverse; }
.mc.idle .ra { animation: sway 3.6s ease-in-out infinite; }
.mc.idle .la { animation: sway 3.6s ease-in-out infinite reverse; }
.mc .hd { animation: look 9s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotateX(30deg); } 50% { transform: rotateX(-30deg); } }
@keyframes sway { 0%, 100% { transform: rotateZ(3deg) rotateX(4deg); } 50% { transform: rotateZ(-2deg) rotateX(-4deg); } }
@keyframes look { 0%, 100% { transform: rotateY(0) rotateX(0); } 25% { transform: rotateY(28deg) rotateX(-6deg); } 60% { transform: rotateY(-22deg) rotateX(4deg); } }
.skin-stage { position: relative; height: 270px; perspective: 900px; cursor: grab; touch-action: pan-y; }
.skin-stage:active { cursor: grabbing; }
.skin-stage .turn { position: absolute; left: 50%; top: 88%; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(var(--ry, -25deg)); }
.skin-stage .auto { transform-style: preserve-3d; animation: spinY 22s linear infinite; }
.skin-stage.drag .auto { animation-play-state: paused; }
.skin-stage::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 6%; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(8px); }

/* ---------- connect ---------- */
.steps { counter-reset: s; }
.step { padding-top: 54px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px;
  border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--grad);
}
.step code, .kbd { font-family: var(--mono); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: 13px; }
.platform { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.platform img { width: 40px; height: 40px; }

/* ---------- features ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feat { display: flex; gap: 16px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.feat img { width: 34px; height: 34px; flex: none; image-rendering: pixelated; transition: transform .3s; }
.feat:hover img { transform: translateY(-3px) rotate(-6deg); }
.feat h3 { font-size: 16px; }
.feat p { color: var(--dim); margin: 4px 0 0; font-size: 14px; }

/* ---------- top lists ---------- */
.top-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.top-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .02); transition: background .2s; }
.top-list li:hover { background: rgba(255, 255, 255, .05); }
.top-list .n { width: 22px; font-weight: 800; color: var(--dim); text-align: center; }
.top-list li:nth-child(1) .n { color: #ffd166; }
.top-list li:nth-child(2) .n { color: #c9cfdb; }
.top-list li:nth-child(3) .n { color: #e0a272; }
.top-list img { width: 28px; height: 28px; border-radius: 6px; }
.top-list .val { margin-left: auto; color: var(--soft); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- cta ---------- */
.cta { text-align: center; padding: 56px 24px; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: url(/assets/diamond_ore.svg) 0 0 / 48px 48px; opacity: .05; image-rendering: pixelated; }
.cta > * { position: relative; }

/* ---------- status page ---------- */
.status-hero { display: flex; align-items: center; gap: 20px; padding: 28px; }
.status-hero .big-dot { width: 18px; height: 18px; }
.status-hero h2 { margin: 0; }
.bars { display: flex; gap: 3px; height: 40px; align-items: stretch; margin-top: 14px; }
.bars i { flex: 1; border-radius: 3px; background: rgba(255, 255, 255, .07); position: relative; transition: transform .2s; }
.bars i.up { background: var(--good); }
.bars i.part { background: var(--warn); }
.bars i.down { background: var(--bad); }
.bars i:hover { transform: scaleY(1.12); }
.bars i[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #000; color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 5;
}
.chart { display: flex; gap: 3px; height: 90px; align-items: flex-end; margin-top: 14px; }
.chart i { flex: 1; background: linear-gradient(180deg, #5683ff, rgba(62, 124, 221, .3)); border-radius: 3px 3px 0 0; min-height: 2px; transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; }
.econ .chart i { max-width: 36px; }
@keyframes grow { from { transform: scaleY(0); } }
.heads { display: flex; flex-wrap: wrap; gap: 8px; }
.head { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 14px; }
.head img { width: 26px; height: 26px; border-radius: 5px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.meter.good i { background: var(--good); }
.meter.warn i { background: var(--warn); }
.meter.bad i { background: var(--bad); }

/* ---------- rules ---------- */
.rules-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.rules-nav { position: sticky; top: 90px; display: grid; gap: 4px; }
.rules-nav a { padding: 8px 12px; border-radius: 9px; color: var(--dim); transition: background .2s, color .2s; }
.rules-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.rule-block { scroll-margin-top: 90px; }
.rule-block ol { list-style: none; counter-reset: r; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rule-block li { counter-increment: r; display: flex; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.rule-block li::before { content: attr(data-sec) "." counter(r); font: 700 13px var(--mono); color: var(--blue); min-width: 34px; padding-top: 1px; }

/* ---------- forms ---------- */
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--soft); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line2);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(86, 131, 255, .2); }
.form { display: grid; gap: 16px; }
.hint { font-size: 12px; color: var(--dim); }
label.field .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--soft); }
.badge.good { background: rgba(107, 234, 156, .1); border-color: rgba(107, 234, 156, .3); color: #b8f7cf; }
.badge.bad { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .3); color: #ffb3b3; }
.badge.warn { background: rgba(255, 209, 102, .1); border-color: rgba(255, 209, 102, .3); color: #ffe3a3; }
.badge.blue { background: rgba(86, 131, 255, .12); border-color: rgba(86, 131, 255, .35); color: #b9ccff; }

/* ---------- login ---------- */
.login-card { max-width: 440px; margin: 60px auto; text-align: center; padding: 36px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- account ---------- */
.profile { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.profile .skin { width: 160px; height: 260px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); animation: float 6s ease-in-out infinite; image-rendering: auto; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kv > div { padding: 12px 14px; border-radius: 11px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.kv .k { font-size: 12px; color: var(--dim); }
.kv .v { font-weight: 700; font-size: 17px; margin-top: 2px; word-break: break-word; }
.accounts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.accounts .k { font-size: 12px; color: var(--dim); margin-right: 4px; }
.acct { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-weight: 600; }
.acct img { border-radius: 4px; image-rendering: pixelated; }
.acct .muted { font-weight: 400; font-size: 12px; }
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.item.click { cursor: pointer; }
.item.click:hover { border-color: rgba(86, 131, 255, .4); background: rgba(86, 131, 255, .05); }
.item.active { border-color: var(--blue); background: rgba(86, 131, 255, .08); }
.item img { width: 32px; height: 32px; border-radius: 7px; }
.item { min-width: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .d { font-size: 13px; color: var(--dim); }
.empty { padding: 28px; text-align: center; color: var(--dim); border: 1px dashed var(--line2); border-radius: 12px; }

/* ---------- staff workspace ---------- */
.ws { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 67px); }
.ws-side { border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 67px; height: calc(100vh - 67px); overflow: auto; background: rgba(11, 14, 22, .5); }
.ws-side .group { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin: 18px 10px 8px; }
.ws-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--soft); font-weight: 500; transition: background .2s, color .2s; }
.ws-side a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.ws-side a.active { background: rgba(86, 131, 255, .12); color: #fff; box-shadow: inset 2px 0 0 var(--blue); }
.ws-side a .count { margin-left: auto; font-size: 11px; padding: 0 7px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 700; }
.ws-side svg { width: 17px; height: 17px; opacity: .8; }
.ws-main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.ws-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ws-head h1 { font-size: 26px; }
.kpi .k { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--soft); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: rgba(255, 255, 255, .025); }
.table .p { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.table .p img { width: 26px; height: 26px; border-radius: 5px; }
.table-wrap { overflow-x: auto; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { padding: 7px 14px; border-radius: 9px; border: 0; background: none; color: var(--dim); cursor: pointer; font-weight: 600; font-size: 13px; }
.tabs button.active { background: var(--panel2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.actions .btn { justify-content: flex-start; }
.chat { display: grid; gap: 10px; max-height: 460px; overflow: auto; padding-right: 4px; }
.msg { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.msg.staff { background: rgba(86, 131, 255, .08); border-color: rgba(86, 131, 255, .25); }
.msg.note { background: rgba(255, 209, 102, .07); border-color: rgba(255, 209, 102, .28); }
.msg.log { background: transparent; border-style: dashed; color: var(--muted, #7A8190); font-size: .92em; }
.msg .meta { font-size: 12px; color: var(--dim); margin-bottom: 3px; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.console { height: 460px; overflow: auto; padding: 14px; background: #06080d; border: 1px solid var(--line); border-radius: 12px; font: 12.5px/1.55 var(--mono); color: #c9d1e0; white-space: pre-wrap; word-break: break-all; }
.console .w { color: var(--warn); }
.console .e { color: var(--bad); }
.console .i { color: #8fb0ff; }
.console b { font-weight: 700; }
.console-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- event console (9.4) ---------- */
.ev-list { height: 560px; overflow: auto; padding: 0; background: #06080d; border: 1px solid var(--line); border-radius: 12px; font: 12.5px/1.5 var(--mono); }
.ev-cols { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 74px 12px 104px minmax(120px, 200px) 1fr 96px; gap: 12px; align-items: center; padding: 9px 14px; background: #0b0f18; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
.ev-row { display: grid; grid-template-columns: 74px 12px 104px minmax(120px, 200px) 1fr 96px; gap: 12px; align-items: center; padding: 6px 14px; color: #c9d1e0; border-left: 2px solid transparent; }
.ev-row + .ev-row { border-top: 1px solid rgba(255, 255, 255, .045); }
.ev-row:hover { background: rgba(86, 131, 255, .07); }
.ev-row[data-sev="notice"] { border-left-color: rgba(86, 131, 255, .55); }
.ev-row[data-sev="warning"] { border-left-color: rgba(255, 209, 102, .8); }
.ev-time { color: #6b7688; font-variant-numeric: tabular-nums; }
.ev-head { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.ev-dot { width: 9px; height: 9px; border-radius: 50%; background: #4a5468; justify-self: center; }
.ev-dot.blue { background: #5683ff; box-shadow: 0 0 7px rgba(86, 131, 255, .65); }
.ev-dot.warn { background: #ffd166; box-shadow: 0 0 7px rgba(255, 209, 102, .7); }
.ev-type { color: #e6ecf7; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ev-name { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-name.click { color: #8fb0ff; }
.ev-name.click:hover { text-decoration: underline; }
.ev-detail { color: #8b95a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-scope { justify-self: end; }
.ev-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); padding: 0 4px; }
.ev-live i { width: 7px; height: 7px; border-radius: 50%; background: #4a5468; }
.ev-live.on { color: #8fb0ff; }
.ev-live.on i { background: #5683ff; box-shadow: 0 0 8px rgba(86, 131, 255, .8); animation: evpulse 2s ease-in-out infinite; }
@keyframes evpulse { 50% { opacity: .35; } }
.ev-list .empty { padding: 40px 14px; text-align: center; }
@media (max-width: 780px) {
  .ev-cols { display: none; }
  .ev-row { grid-template-columns: 60px 10px 1fr auto; grid-template-areas: "t d y s" "w w w w" "x x x x"; gap: 4px 10px; padding: 9px 12px; }
  .ev-time { grid-area: t; } .ev-dot { grid-area: d; } .ev-type { grid-area: y; } .ev-scope { grid-area: s; }
  .ev-who { grid-area: w; } .ev-detail { grid-area: x; white-space: normal; }
}
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- processes ---------- */
.sub { margin: 26px 0 12px; }
.proc .proc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.proc .proc-stats div { padding: 8px 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.proc .proc-stats span { display: block; font-size: 11px; color: var(--dim); }
.proc .proc-stats b { font-variant-numeric: tabular-nums; font-size: 14px; }
.proc .err { color: #ffb3b3; font-size: 13px; margin: 0 0 12px; }
.proc .hint { margin: -6px 0 12px; display: block; }
.small { font-size: 13px; }
.btn.busy { pointer-events: none; opacity: .65; }
.btn.busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- setup & settings ---------- */
.setup { max-width: 620px; margin: 40px auto; }
.setup .code { font: 700 22px var(--mono); letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.settings h3 { margin-bottom: 4px; }
.settings .form { margin-top: 14px; }
.settings .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--soft); cursor: pointer; line-height: 1.5; }
.check input { flex: none; }
.check:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* ---------- checkbox & radio ---------- */
/* Custom controls: accent-color alone looks different in every browser, this keeps them on brand. */
input[type="checkbox"], input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 19px;
  height: 19px;
  margin: 0;
  flex: none;
  border: 1.5px solid var(--line2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: rgba(86, 131, 255, .65); background: rgba(86, 131, 255, .08); }
input[type="checkbox"]:active, input[type="radio"]:active { transform: scale(.94); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(86, 131, 255, .22);
}
input[type="checkbox"]:checked, input[type="radio"]:checked {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 4px 14px -6px rgba(86, 131, 255, .9);
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2.5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: tickIn .2s cubic-bezier(.2, .9, .3, 1.4);
}
input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
  animation: tickIn .2s cubic-bezier(.2, .9, .3, 1.4);
}
input[type="checkbox"]:indeterminate {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 4px 14px -6px rgba(86, 131, 255, .9);
}
input[type="checkbox"]:indeterminate::after {
  content: "";
  position: absolute;
  left: 3.5px; top: 7.5px;
  width: 10px; height: 2px;
  border-radius: 2px;
  background: #fff;
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@keyframes tickIn { from { transform: rotate(45deg) scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"]:checked::after, input[type="radio"]:checked::after { animation: none; } }

/* Table row selection reads as a whole-row choice, not a lone box. */
.table input[type="checkbox"] { vertical-align: middle; }
.table tbody tr:has(input[type="checkbox"]:checked) { background: rgba(86, 131, 255, .07); }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 12, .7); backdrop-filter: blur(6px); animation: fade .2s; }
.modal .card { width: min(480px, 100%); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); animation: toast .3s cubic-bezier(.2, .9, .3, 1.2); max-width: 360px; }
.toast.out { animation: toastOut .25s forwards; }
.toast.good .dot { background: var(--good); }
.toast.bad .dot { background: var(--bad); }
@keyframes toast { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(15, 19, 32, .4), var(--bg2)); color: var(--dim); font-size: 14px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(86, 131, 255, .6), transparent); }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 48px) 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 10px 0 16px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { margin: 0 0 6px; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--text); }
.ip-mini { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); color: var(--soft); cursor: pointer; font: inherit; }
.ip-mini:hover { border-color: rgba(86, 131, 255, .55); }
.ip-mini svg { width: 15px; height: 15px; }
.foot-base { max-width: 1180px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 48px) 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 12px; }

/* ---------- forum ---------- */
.forum .clip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.forum-head h1 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.crumbs { display: flex; gap: 8px; color: var(--dim); font-size: 13px; }
.crumbs a:hover { color: var(--text); }
.forum-stats { display: flex; gap: 22px; color: var(--dim); margin-bottom: 20px; }
.forum-stats b { color: var(--text); }
.gate { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; border-color: rgba(88, 101, 242, .35); }
.gate > div:first-child svg { width: 30px; height: 30px; color: #8a96ff; }
.gate p { margin: 2px 0 0; }
.gate .btn { margin-left: auto; }
.forum-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.boards, .threads, .posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.board, .thread { display: grid; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s, background .2s; }
.board { grid-template-columns: 46px 1fr 80px 220px; }
.thread { grid-template-columns: 40px 1fr auto; }
.board:hover, .thread:hover { border-color: rgba(86, 131, 255, .45); transform: translateY(-2px); background: var(--panel2); }
.board-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(86, 131, 255, .12); color: var(--blue); }
.board-ic svg { width: 22px; height: 22px; }
.board-txt, .thread-txt, .board-last, .board-num { display: flex; flex-direction: column; min-width: 0; }
.board-txt .muted, .board-last .muted, .thread-txt .muted { font-size: 13px; }
.board-num { text-align: center; }
.thread-num { display: flex; gap: 14px; color: var(--dim); font-size: 13px; }
.thread-num span, .tag { display: inline-flex; align-items: center; gap: 5px; }
.thread-num svg, .tag svg { width: 14px; height: 14px; }
.tag { color: var(--warn); margin-right: 6px; }
.fav { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; }
.latest { position: sticky; top: 90px; }
.latest h3 { margin: 0 0 12px; }
.latest-item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 8px; min-width: 0; }
.latest-item > span { min-width: 0; display: flex; flex-direction: column; }
.latest-item .muted { font-size: 12px; }
.latest-item:hover { background: rgba(255, 255, 255, .04); }
.latest-item .fav { width: 32px; height: 32px; }
.post { display: grid; grid-template-columns: 150px 1fr; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.post.gone { opacity: .55; }
.post-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; background: rgba(255, 255, 255, .02); border-right: 1px solid var(--line); text-align: center; font-size: 14px; }
.post-side .fav { width: 56px; height: 56px; }
.post-side .mono { font: 12px var(--mono); }
.post-main { padding: 16px 20px; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.post-body { overflow-wrap: anywhere; color: var(--soft); }
.post-body a { color: var(--blue); }
.post-body code { font: 13px var(--mono); padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.post-actions { display: flex; gap: 14px; margin-top: 14px; align-items: center; }
.post-actions button { background: none; border: 0; color: var(--dim); cursor: pointer; font: inherit; font-size: 13px; padding: 4px 0; }
.post-actions button:hover:not(:disabled) { color: var(--text); }
.post-actions .bad:hover { color: var(--bad); }
.like { display: inline-flex; align-items: center; gap: 6px; }
.like svg { width: 16px; height: 16px; transition: transform .2s; }
.like.on { color: var(--bad) !important; }
.like.on svg { fill: currentColor; transform: scale(1.15); }
.reply { margin-top: 16px; display: grid; gap: 12px; }
.reply .row { justify-content: space-between; }
.forum.narrow { max-width: 760px; }
.topic h3 { margin: 12px 0 6px; }
.topic .row { gap: 10px; }
.topic .fav { width: 32px; height: 32px; }

/* ---------- rights ---------- */
.rights { width: 100%; border-collapse: collapse; font-size: 14px; }
.rights th, .rights td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.rights th:first-child, .rights td:first-child { text-align: left; }
.rights th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rights .me { background: rgba(86, 131, 255, .08); }
.rights .yes { color: var(--good); }
.rights .no { color: var(--dim); }
body.ws-mode .foot { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .voxel { height: 340px; order: -1; --k: .74; }
  .feats { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { position: static; display: flex; flex-wrap: wrap; }
  .ws { grid-template-columns: 1fr; }
  .ws-side { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ws-side .group { display: none; }
  .ws-side a { white-space: nowrap; }
  .forum-layout { grid-template-columns: 1fr; }
  .latest { position: static; }
  .board { grid-template-columns: 46px 1fr 70px; }
  .board-last { display: none; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav-burger { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: rgba(11, 14, 22, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-right .user-chip > span:not(.avatar-fallback) { display: none; }
  .g2, .g3, .g4, .feats, .settings .cols { grid-template-columns: 1fr; }
  .proc .proc-stats { grid-template-columns: 1fr 1fr; }
  .strip .g4 { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; text-align: center; }
  .profile .skin { margin: 0 auto; height: 200px; }
  .section { padding: 52px 0; }
  .post { grid-template-columns: 1fr; }
  .post-side { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; }
  .post-side .fav { width: 32px; height: 32px; }
  .thread { grid-template-columns: 32px 1fr; }
  .thread-num { grid-column: 2; }
  .gate { flex-wrap: wrap; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card.hover:hover { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   v2.8 – Latura look: night sky, floating nav, block typography
   ===================================================================== */
:root { --bg: #070a12; --bg2: #0c1020; --panel: rgba(17, 22, 38, .78); --panel2: #161c31; --line: rgba(160, 180, 255, .08); --line2: rgba(160, 180, 255, .14); --r: 14px; }
body { background: var(--bg); }
.bg { background: none; }
.bg-sky { position: absolute; inset: 0; background:
  radial-gradient(1100px 520px at 70% -10%, rgba(86, 131, 255, .16), transparent 65%),
  radial-gradient(700px 400px at 5% 20%, rgba(62, 124, 221, .08), transparent 70%),
  linear-gradient(180deg, #070a12 0%, #0a0f1f 55%, #070a12 100%); }
.bg-stars { position: absolute; left: 0; top: 0; width: 1px; height: 1px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .55; } }
.bg-clouds { display: none; position: absolute; left: 0; right: 0; top: 12vh; height: 120px; opacity: .05;
  background: repeating-linear-gradient(90deg, #fff 0 96px, transparent 96px 180px, #fff 180px 228px, transparent 228px 420px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent); image-rendering: pixelated; animation: clouds 140s linear infinite; }
.bg-clouds::after { content: ""; position: absolute; left: 0; right: 0; top: 48px; height: 24px; background: inherit; transform: translateX(-140px); }
@keyframes clouds { to { background-position: 840px 0; } }
.bg-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; opacity: .5;
  background: linear-gradient(180deg, transparent, rgba(86, 131, 255, .05)),
    repeating-linear-gradient(90deg, rgba(160, 180, 255, .04) 0 1px, transparent 1px 48px);
  mask-image: linear-gradient(180deg, transparent, #000); }
body.ws-mode .bg-clouds, body.ws-mode .bg-horizon { display: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; padding: 14px clamp(12px, 3vw, 32px) 0; background: none; backdrop-filter: none; border: 0; display: block; }
.nav::after { display: none; }
.nav-bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 8px 10px 8px 16px; border-radius: 16px;
  background: rgba(10, 14, 26, .62); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%); transition: background .3s, border-color .3s, box-shadow .3s; }
.nav.scrolled .nav-bar { background: rgba(10, 14, 26, .9); border-color: var(--line2); box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .8); }
body.ws-mode .nav { padding: 0; }
body.ws-mode .nav-bar { max-width: none; border-radius: 0; border-width: 0 0 1px; background: rgba(8, 11, 20, .92); }
.brand { gap: 12px; }
.brand-word { font: 900 17px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .32em; margin-right: -.32em;
  background: linear-gradient(180deg, #a9bfff 0%, #5683ff 55%, #3e7cdd 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(20, 34, 80, .9)); }
.nav-links { position: relative; gap: 2px; margin: 0 auto; }
.nav-links a { z-index: 1; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.nav-links a::after { display: none; }
.nav-ind { position: absolute; left: 0; top: 0; height: 100%; border-radius: 10px; background: rgba(86, 131, 255, .14); box-shadow: inset 0 0 0 1px rgba(86, 131, 255, .28);
  transition: transform .35s cubic-bezier(.3, .8, .2, 1), width .35s cubic-bezier(.3, .8, .2, 1), opacity .2s; opacity: 0; }
.nav-right { margin-left: 0; }
.user-chip { background: rgba(255, 255, 255, .04); }

/* surfaces */
.card { background: linear-gradient(180deg, rgba(22, 28, 48, .82), rgba(14, 18, 32, .82)); border-color: var(--line); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.card.hover:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 48px -28px rgba(86, 131, 255, .45); }
.btn { border-radius: 12px; }
.btn.primary { background: linear-gradient(180deg, #6b93ff, #4a74e8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(10, 20, 60, .35), 0 10px 26px -12px rgba(86, 131, 255, .8); }
.btn.primary:hover { background: linear-gradient(180deg, #7ea1ff, #5682f2); }

/* inputs */
label.field { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--dim); text-transform: uppercase; }
label.field .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.input, select.input, textarea.input { font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text);
  padding: 12px 14px; border-radius: 12px; background: rgba(5, 8, 16, .7); border: 1px solid var(--line2); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.input:hover { border-color: rgba(160, 180, 255, .24); }
.input:focus { border-color: rgba(86, 131, 255, .8); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 4px rgba(86, 131, 255, .14); }
.input::placeholder { color: #4d5568; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7a8190 50%), linear-gradient(135deg, #7a8190 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* modal */
.modal { background: rgba(3, 5, 10, .72); backdrop-filter: blur(10px); }
.modal .card { padding: 26px; overflow: hidden; }
.modal .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.modal .card.danger::before { background: linear-gradient(90deg, #ff6b6b, #ff9a6b); }

/* hero */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.wordmark { font-size: clamp(64px, 10vw, 128px); letter-spacing: .06em; font-weight: 900; text-transform: uppercase; }
.wordmark span { background: linear-gradient(180deg, #b7c9ff 0%, #6b93ff 45%, #3e7cdd 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 6px 0 rgba(17, 30, 74, .95)) drop-shadow(0 26px 40px rgba(86, 131, 255, .25)); }
.ip-card { border-radius: 14px; background: rgba(5, 8, 16, .7); }

/* skin platforms */
.stage3d { position: relative; height: 330px; perspective: 1100px; perspective-origin: 50% 25%; touch-action: pan-y; cursor: grab; user-select: none; }
.stage3d .world { position: absolute; left: 50%; top: 66%; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(var(--ry, -28deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.stage3d.drag .world { transition: none; }
.stage3d .ped { position: absolute; transform-style: preserve-3d; }
.stage3d .ped .vx { --u: 40px; }
.stage3d .mc-on { position: absolute; transform-style: preserve-3d; }
.stage3d .beam { position: absolute; width: 90px; height: 240px; margin-left: -45px; bottom: 0; transform-origin: bottom; background: linear-gradient(0deg, rgba(86, 131, 255, .28), transparent); filter: blur(6px); pointer-events: none; }
.stage3d .ring { position: absolute; width: 150px; height: 150px; margin: -75px; border-radius: 50%; transform: rotateX(90deg); border: 2px solid rgba(86, 131, 255, .45); box-shadow: 0 0 30px rgba(86, 131, 255, .35), inset 0 0 30px rgba(86, 131, 255, .25); animation: ring 4s ease-in-out infinite; }
@keyframes ring { 50% { transform: rotateX(90deg) scale(1.08); opacity: .6; } }
.stage3d::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 4%; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(14px); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; }
.podium .slot { text-align: center; }
.podium .slot .stage3d { height: 300px; }
.podium .slot .name { font-weight: 700; margin-top: -8px; }
.podium .slot .val { color: var(--dim); font-size: 13px; }
.podium .slot.first .name { color: #ffd166; }

/* error pages */
.err-page { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; min-height: 62vh; }
.err-code { font: 900 clamp(84px, 14vw, 168px)/.9 Inter, sans-serif; letter-spacing: .04em; background: linear-gradient(180deg, #b7c9ff, #3e7cdd); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 rgba(17, 30, 74, .95)); }
.err-page h1 { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 8px; }
.err-page .row { margin-top: 22px; }
.void .vx { animation: fall 5s cubic-bezier(.5, 0, .9, .5) infinite; }
.void .vx:nth-child(2n) { animation-delay: -1.6s; }
.void .vx:nth-child(3n) { animation-delay: -3.1s; }
@keyframes fall { 0%, 30% { translate: 0 0 0; scale: 1; } 100% { translate: 0 260px 0; scale: .1; } }

/* workspace */
.ws { grid-template-columns: 248px 1fr; min-height: calc(100vh - 57px); }
.ws-side { top: 57px; height: calc(100vh - 57px); background: rgba(8, 11, 20, .75); padding: 18px 12px; }
.ws-side a { font-size: 14px; }
.ws-side a.active { background: linear-gradient(90deg, rgba(86, 131, 255, .2), rgba(86, 131, 255, .04)); box-shadow: inset 2px 0 0 var(--blue); }
.ws-head h1 { font-size: 28px; letter-spacing: -.02em; }
.kpi .v { font-size: 28px; }
.ws-search { position: relative; margin-bottom: 8px; }
.ws-search .input { padding: 9px 12px; font-size: 13px; }
.ws-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; font: 650 17px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.015em; color: #f2f4f8; }
.ws-side a.ws-brand:hover { background: none; }
.ws-brand img { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 3px 8px rgba(62, 124, 221, .28)); transition: transform .5s cubic-bezier(.2, .9, .25, 1.2); }
.ws-brand:hover img { transform: translateY(-2px) rotate(-6deg) scale(1.04); }
.ws-brand .badge { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .ws-brand img { transition: none; } .ws-brand:hover img { transform: none; } }

@media (max-width: 720px) {
  .nav { padding: 8px 8px 0; }
  .nav-bar { gap: 10px; }
  .nav-links { margin: 0; top: calc(100% + 6px); border-radius: 14px; border: 1px solid var(--line2); }
  .nav-ind { display: none; }
  .brand-word { font-size: 15px; letter-spacing: .26em; }
  .err-page { grid-template-columns: 1fr; text-align: center; }
  .err-page .row { justify-content: center; }
  .podium { grid-template-columns: 1fr; }
  .podium .slot.first { order: -1; }
}
@media (max-width: 720px) { .nav-right { margin-left: auto; } }
@media (max-width: 720px) {
  .nav-bar { position: relative; padding: 8px 8px 8px 12px; }
  .nav-links { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; background: rgba(10, 14, 26, .97); }
  .nav-right .btn { padding: 8px 12px; }
}
.card.quick { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card.quick h3 { margin: 0 0 2px; }

.legal .prose { max-width: 760px; }
.legal .prose h3 { font-size: 15px; margin: 22px 0 6px; }
.legal .prose h3:first-child { margin-top: 0; }
.legal .prose p { color: var(--text-2, #C9CFDB); line-height: 1.65; }
.legal .warn-card { border-color: rgba(255, 209, 102, .35); max-width: 760px; }


/* unban appeals */
.appeal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.appeal-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.appeal-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(#5683FF, rgba(86, 131, 255, 0)); opacity: .45; }
.appeal-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 14px 0; position: relative; }
.appeal-steps h3 { font-size: 17px; margin: 6px 0 4px; }
.step-n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #121826; border: 1px solid rgba(86, 131, 255, .45); color: #C9CFDB; font-weight: 700; box-shadow: 0 4px 0 #0a0e17; }
.appeal-decide { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 209, 102, .3); background: rgba(255, 209, 102, .06); }
.ticket-thread { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .appeal-grid { grid-template-columns: 1fr; } }

/* ---------- home ---------- */
.home .hero { padding: clamp(40px, 7vw, 96px) 0 40px; }
.home .hero-inner { grid-template-columns: 1.05fr .95fr; gap: clamp(16px, 4vw, 56px); }
.kicker { display: flex; gap: 0; margin: 0 0 22px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.kicker span + span::before { content: "/"; margin: 0 10px; color: rgba(255, 255, 255, .18); }
.kicker span:first-child { color: var(--blue); }
.display { font-size: clamp(42px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: .98; color: var(--text); }
.display em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .hero .lead { margin: 22px 0 28px; font-size: 16px; color: var(--soft); max-width: 460px; }
.join { display: inline-flex; align-items: center; gap: 12px; min-width: min(420px, 100%); padding: 0 6px 0 16px; height: 54px; border-radius: 12px; background: #090c13; border: 1px solid var(--line2); cursor: pointer; transition: border-color .2s, transform .2s; font-family: var(--mono); }
.join:hover, .join:focus-visible { border-color: rgba(86, 131, 255, .6); outline: none; }
.join:active { transform: translateY(1px); }
.join-prompt { color: var(--blue); font-weight: 700; font-size: 20px; }
.join-ip { font-weight: 700; font-size: 18px; letter-spacing: .01em; }
.join-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px; background: rgba(86, 131, 255, .12); color: #a9bfff; font: 600 13px Inter, system-ui, sans-serif; }
.join-hint svg { width: 15px; height: 15px; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn.ghost { background: transparent; border-color: var(--line2); }

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(9, 12, 19, .55); backdrop-filter: blur(6px); }
.ticker-row { display: grid; grid-template-columns: repeat(4, 1fr) auto; }
.ticker-row > * { padding: 18px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ticker-row > :first-child { border-left: 0; padding-left: 0; }
.t-lbl { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.t-val { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.t-val.mono { font-family: var(--mono); }
.t-link { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--soft); font-weight: 600; font-size: 14px; transition: color .2s; }
.t-link svg { width: 16px; height: 16px; transition: transform .2s; }
.t-link:hover { color: var(--text); }
.t-link:hover svg { transform: translateX(3px); }

.split { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.split-head { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.split-head h2 { margin: 0; }
.split-head p { margin: 0 0 6px; }
.num-label { font: 600 12px/1 var(--mono); color: var(--blue); letter-spacing: .1em; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.center-head p { margin: 0; }

.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps-list h3 { font-size: 18px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.steps-list h3 .muted { font-size: 13px; font-weight: 500; }
.steps-list p { margin: 6px 0 0; color: var(--soft); font-size: 14.5px; }
.steps-list code { font-family: var(--mono); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: 13px; }

.feature-rows { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 18px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.frow:nth-child(odd) { border-right: 1px solid var(--line); }
.frow:nth-child(even) { padding-left: 24px; }
.frow .cube { grid-row: 1 / 3; align-self: center; }
.frow-n { position: absolute; top: 14px; right: 16px; font: 600 11px var(--mono); color: rgba(255, 255, 255, .2); }
.frow h3 { font-size: 16px; }
.frow p { margin: 4px 0 0; color: var(--dim); font-size: 14px; }

/* textured cube */
.cube { --s: 34px; position: relative; display: inline-block; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-38deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); flex: none; }
.cube.sm { --s: 30px; }
.cube.lg { --s: 72px; }
.cube i { position: absolute; inset: 0; background-size: cover; image-rendering: pixelated; backface-visibility: hidden; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); filter: brightness(.86); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(.6); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.7); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.95); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.12); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.45); }
.frow:hover .cube.spin, .steps-list li:hover .cube { transform: rotateX(-24deg) rotateY(52deg) translateY(-3px); }
.cube.float { animation: cubeFloat 9s ease-in-out infinite; }
@keyframes cubeFloat { 0%, 100% { transform: rotateX(-22deg) rotateY(-38deg) translateY(0); } 50% { transform: rotateX(-30deg) rotateY(142deg) translateY(-10px); } }

.stage-band { background: linear-gradient(180deg, transparent, rgba(86, 131, 255, .04) 40%, transparent); }

.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-top: 6px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 7px; color: var(--dim); font-weight: 600; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--panel2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.lbd { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: b; }
.lbd li { display: grid; grid-template-columns: 34px 28px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); transition: background .2s; }
.lbd li:hover { background: rgba(255, 255, 255, .025); }
.lbd .n { font: 700 14px var(--mono); color: var(--dim); }
.lbd li:nth-child(1) .n { color: #ffd166; }
.lbd li:nth-child(2) .n { color: #c9cfdb; }
.lbd li:nth-child(3) .n { color: #e0a272; }
.lbd img { border-radius: 5px; image-rendering: pixelated; }
.lbd .who { font-weight: 600; justify-self: start; margin-left: 0; display: block; font-size: 15px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbd .val { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 14px; }
.lbd .empty-row { display: block; padding: 18px 4px; }
.lbd.clan li { grid-template-columns: 34px 72px 1fr auto; }
.lbd.clan .badge { justify-self: start; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
.lbd li.own { background: rgba(86, 131, 255, .09); box-shadow: inset 2px 0 0 var(--blue); }
.lbd li.own .who::after { content: "du"; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.board-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.board-tabs .seg { margin-top: 0; }
.board-note { margin-top: 12px; }
.board-rule { margin-top: 10px; }
.board-widget .lbd { margin-top: 16px; }
.card .board-widget .lbd { margin-top: 12px; }
@media (max-width: 560px) {
  .lbd li { grid-template-columns: 24px 24px 1fr auto; gap: 10px; }
  .lbd.clan li { grid-template-columns: 24px 60px 1fr auto; }
  .lbd .val { font-size: 13px; }
}

.topic-rows { border-top: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .2s; }
.topic-row:hover { background: rgba(255, 255, 255, .025); }
.topic-row h3 { font-size: 15px; }
.topic-row .muted { font-size: 13px; }
.topic-row .replies { display: inline-flex; gap: 6px; align-items: center; }
.topic-row .replies svg { width: 14px; height: 14px; }

.cta-band { margin-top: 24px; border-top: 1px solid var(--line); background: radial-gradient(600px 200px at 15% 50%, rgba(86, 131, 255, .08), transparent 70%); }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding: 56px 0; }
.cta-inner h2 { margin: 0 0 6px; }
.cta-inner p { margin: 0; max-width: 520px; }
/* A rotated cube shows ~1.4x its own box, so it is centred inside a wrapper that
   reserves exactly that footprint. Without the reserved space the block visually
   overruns its grid column and collides with the text ("Komm vorbei" bug), which
   hit hardest once the grid collapses to one column on small screens. */
.cta-cube { --s: 64px; display: grid; place-items: center; width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); align-self: center; justify-self: start; }
.cta-cube > .cube { --s: inherit; }

@media (max-width: 900px) {
  .home .hero-inner { grid-template-columns: 1fr; }
  .ticker-row { grid-template-columns: 1fr 1fr; }
  .ticker-row > * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .ticker-row > :nth-child(-n+2) { border-top: 0; }
  .t-link { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .feature-rows { grid-template-columns: 1fr; }
  .frow:nth-child(odd) { border-right: 0; }
  .frow:nth-child(even) { padding-left: 0; }
  .steps-list li { grid-template-columns: 40px 1fr; }
  .steps-list li > .btn { grid-column: 2; justify-self: start; }
  .cta-inner { grid-template-columns: 1fr; gap: 20px; }
  .cta-cube { --s: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .cube, .cube.float { animation: none; transition: none; }
  .frow:hover .cube.spin, .steps-list li:hover .cube { transform: rotateX(-24deg) rotateY(-38deg); }
}

/* ---------- sub pages ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 36px; }
.page-head .num-label { display: block; margin-bottom: 14px; text-transform: uppercase; }
.display.sm { font-size: clamp(34px, 4.6vw, 56px); }
.page-head .lead { margin: 18px 0 0; color: var(--soft); max-width: 560px; }
.status-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; font-size: 16px; }
.status-line .big-dot { width: 12px; height: 12px; }
.status-line.off b { color: var(--bad); }
.status-line.warn b { color: var(--warn); }
.ticker-row.four { grid-template-columns: repeat(4, 1fr); }
.ticker-row .meter { margin-top: 8px; height: 4px; max-width: 160px; }
.t-sub { font-size: 12.5px; color: var(--dim); }
.section.tight { padding: 28px 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.lined { border-top: 1px solid var(--line2); padding-top: 18px; }
.lined h3 { font-size: 16px; }
.axis { font-size: 12px; margin-top: 6px; color: var(--dim); }
.svc-rows { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 12px 180px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rules-nav { gap: 2px; }
.rules-nav a { display: flex; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--dim); font-size: 14px; border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.rules-nav a span { font: 600 12px/1.6 var(--mono); color: rgba(255, 255, 255, .25); min-width: 26px; }
.rules-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.rules-nav a.on { color: var(--text); border-left-color: var(--blue); background: rgba(86, 131, 255, .06); }
.rules-nav a.on span { color: var(--blue); }
.rule-sections { border-top: 1px solid var(--line); }
.rule-sec { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.rule-num { font: 800 34px/1 Inter, system-ui, sans-serif; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule-sec h2 { font-size: 22px; margin: 2px 0 14px; }
.rule-sec ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rule-sec li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; color: var(--soft); font-size: 15px; }
.rule-ref { font: 600 12px/1.9 var(--mono); color: var(--dim); }
.rule-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 0; }
.rule-cta p { margin: 4px 0 0; }
@media (max-width: 900px) {
  .ticker-row.four { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 12px 1fr auto; }
  .svc .muted { grid-column: 2 / -1; grid-row: 2; }
  .rules-nav { display: none; }
  .rule-sec { grid-template-columns: 1fr; gap: 8px; }
}
.page-head .wrap { position: relative; }
.head-art { position: absolute; right: 4%; top: 50%; width: 260px; height: 180px; transform: translateY(-50%); perspective: 700px; pointer-events: none; }
.head-art .cube { position: absolute; --s: 64px; }
.head-art .c0 { left: 30px; top: 70px; animation-duration: 11s; }
.head-art .c1 { left: 130px; top: 10px; --s: 46px; animation-duration: 14s; animation-delay: -4s; }
.head-art .c2 { left: 190px; top: 110px; --s: 36px; animation-duration: 9s; animation-delay: -7s; }
.head-art::after { content: ""; position: absolute; left: 10px; right: 0; bottom: -30px; height: 30px; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(4px); }
@media (max-width: 900px) { .head-art { display: none; } }
/* other sub pages share the editorial heading */
.wrap.section.page > .section-head h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.04em; }
.wrap.section.page > .section-head { padding-top: clamp(8px, 3vw, 32px); margin-bottom: 36px; }
.pos-rows { border-top: 1px solid var(--line); }
.pos { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pos h3 { display: flex; align-items: center; gap: 10px; }
.pos p { margin: 6px 0 4px; max-width: 560px; }
.pending-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 18px; border-radius: 10px; border: 1px solid rgba(86, 131, 255, .3); background: rgba(86, 131, 255, .06); }
@media (max-width: 900px) { .pos { grid-template-columns: 1fr; gap: 12px; } .pos .btn { justify-self: start; } }

@font-face { font-family: Inter; src: url(/fonts/InterVariable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* =====================================================================
   v3 – calm night: near-black, neutral surfaces, one light source, voxel horizon
   ===================================================================== */
:root { --bg: #050607; --bg2: #0b0c0f; --panel: rgba(20, 21, 25, .72); --panel2: #121317; --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .11); }
body { background: var(--bg); }
.bg-sky { background:
  radial-gradient(1200px 640px at 62% -260px, rgba(86, 131, 255, .13), transparent 68%),
  radial-gradient(900px 520px at 50% 120%, rgba(62, 124, 221, .05), transparent 70%),
  linear-gradient(180deg, #07080b 0%, #050607 60%, #040405 100%); }
.bg-horizon { display: none; }
.hero, .page-head { position: relative; isolation: isolate; }
.hero::before, .page-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: -1; pointer-events: none;
  background: url(/assets/terrain.svg) center bottom / auto 100% repeat-x; opacity: .9;
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%); }
.page-head::before { height: 110px; opacity: .7; }
body.ws-mode .bg-sky { background: var(--bg); }
.nav-bar { background: rgba(14, 15, 18, .66); border-color: rgba(255, 255, 255, .08); backdrop-filter: blur(20px) saturate(160%); }
.nav.scrolled .nav-bar { background: rgba(12, 13, 16, .88); border-color: rgba(255, 255, 255, .1); }
.nav-ind { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
body.ws-mode .nav-bar { background: rgba(9, 10, 12, .94); }
.ticker { background: rgba(8, 9, 11, .6); }
.foot { background: linear-gradient(180deg, transparent, #08090b); }
.card, .panel { background: var(--panel); }
.modal { background: rgba(0, 0, 0, .72); }
@media (max-width: 900px) { .hero::before { height: 100px; } .page-head::before { height: 70px; } }
.ws-side { background: rgba(9, 10, 12, .6); }
.ws-side a.active { background: rgba(255, 255, 255, .06); }
@media (prefers-reduced-transparency: reduce) { .nav-bar { background: #0e0f12; backdrop-filter: none; } }

/* v3.1 – brand, quiet motion */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
.brand { gap: 10px; }
.brand-word, .brand-name { font: 650 18px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.015em; margin: 0; color: #f2f4f8; background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none; }
.brand-mark { width: 26px; height: 26px; filter: drop-shadow(0 3px 8px rgba(62, 124, 221, .28)); transition: transform .5s cubic-bezier(.2, .9, .25, 1.2); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-6deg) scale(1.04); }
.brand:active .brand-mark { transform: scale(.94); transition-duration: .12s; }
@media (max-width: 900px) { .brand-word { font-size: 17px; letter-spacing: -.01em; } }

.bg-light { position: absolute; left: 50%; top: -340px; width: 1400px; height: 760px; margin-left: -580px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(86, 131, 255, .10), rgba(86, 131, 255, .035) 55%, transparent);
  animation: breathe 22s ease-in-out infinite alternate; will-change: transform, opacity; }
@keyframes breathe { 0% { transform: translate3d(-60px, 0, 0) scale(1); opacity: .75; } 100% { transform: translate3d(70px, 30px, 0) scale(1.08); opacity: 1; } }
body.ws-mode .bg-light { display: none; }

.hero::after, .page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: -2; pointer-events: none;
  background: url(/assets/terrain_far.svg) 0 100% / auto 100% repeat-x; opacity: .85;
  mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  transform: translate3d(0, calc(var(--sy, 0) * .04px), 0); clip-path: inset(0 0 calc(var(--sy, 0) * .04px) 0); animation: farDrift 160s linear infinite; }
.page-head::after { height: 150px; opacity: .6; }
@keyframes farDrift { to { background-position: -1920px 100%; } }
@media (max-width: 900px) { .hero::after { height: 130px; } .page-head::after { height: 90px; } }
@media (prefers-reduced-motion: reduce) { .bg-light, .hero::after, .page-head::after { animation: none; } .hero::before, .hero::after, .page-head::before, .page-head::after { transform: none; } .brand-mark { transition: none; } }
@media (max-width: 980px) {
  .ws { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ws-side { position: sticky; top: 57px; z-index: 5; height: auto; display: flex; align-items: center; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(9, 10, 12, .92); backdrop-filter: blur(14px); }
  .ws-side::-webkit-scrollbar { display: none; }
  .ws-side .ws-search { flex: 0 0 150px; margin: 0; }
  .ws-side .ws-brand { flex: none; padding: 0 8px 0 2px; }
  .ws-side .ws-brand .badge { display: none; }
  .ws-side a { flex: none; padding: 8px 12px; }
  .ws-side a.active { box-shadow: inset 0 -2px 0 var(--blue); }
  .ws-main { padding: 20px 16px 48px; }
}
@media (max-width: 980px) { table.rights, .card > table.table { display: block; max-width: 100%; overflow-x: auto; } }

/* ---------------------------------------------------------------- team workspace v2 */
.small { font-size: 12.5px; }
.h-sm { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--soft); margin-bottom: 12px; }
.empty.slim { padding: 18px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.btn.icon-only { width: 34px; height: 34px; padding: 0; justify-content: center; }
.btn.icon-only svg { width: 16px; height: 16px; transform: rotate(180deg); }
.btn svg { width: 15px; height: 15px; flex: none; }
.input.sm { height: 32px; padding: 0 10px; font-size: 13px; width: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .09); color: var(--soft); font-size: 13px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.chip-x:hover { background: var(--bad); color: #fff; }
.chip-x:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--soft); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.on { color: #b8f7cf; }
.chip.blue { color: #c4d4ff; background: rgba(86, 131, 255, .12); border-color: rgba(86, 131, 255, .3); }
.chip.bad { color: #ffb3b3; background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .3); }
.chip.warn { color: #ffe3a3; background: rgba(255, 209, 102, .09); border-color: rgba(255, 209, 102, .28); }
button.chip { cursor: pointer; font: inherit; font-size: 12.5px; height: 30px; padding: 0 12px; transition: background .15s, border-color .15s, color .15s; }
button.chip b { font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
button.chip:hover { border-color: rgba(255, 255, 255, .16); color: var(--text); }
button.chip.sel { background: rgba(86, 131, 255, .14); border-color: rgba(86, 131, 255, .45); color: var(--text); }
button.chip.sel b { color: #c4d4ff; }

/* currency tokens */
.amt { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.tok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none; }
.tok svg { width: 14px; height: 14px; stroke-width: 1.9; }
.tok-money { color: #8ff0b4; background: linear-gradient(180deg, rgba(107, 234, 156, .2), rgba(107, 234, 156, .08)); box-shadow: inset 0 0 0 1px rgba(107, 234, 156, .28); }
.tok-coin { color: #ffdc8a; background: linear-gradient(180deg, rgba(255, 209, 102, .22), rgba(255, 209, 102, .08)); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .3); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)); border: 1px solid var(--line); min-width: 0; }
.tile-k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); }
.tile-k svg { width: 14px; height: 14px; opacity: .75; }
.tile-v { font-size: 20px; font-weight: 700; margin-top: 6px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tile-s { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* player */
.pl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pl-head h1 { font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.pl-avatar { width: 52px; height: 52px; border-radius: 12px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line); }
.pl-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-side, .pl-main { display: grid; gap: 16px; min-width: 0; }
.pl-stage { display: grid; place-items: center; padding: 18px 10px; }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.reward { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; margin-bottom: 8px; background: rgba(255, 209, 102, .06); border: 1px solid rgba(255, 209, 102, .2); }
.reward.done { background: rgba(107, 234, 156, .05); border-color: rgba(107, 234, 156, .2); }
.reward > svg { width: 20px; height: 20px; color: #ffd166; flex: none; }
.reward.done > svg { color: #6bea9c; }
.reward b, .link-row b { display: block; font-size: 14px; }
.reward .muted, .link-row .muted { font-size: 12.5px; }
.links { display: grid; gap: 6px; margin-bottom: 8px; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; border: 1px dashed var(--line); color: var(--dim); }
.link-row.ok { border-style: solid; color: var(--text); background: rgba(255, 255, 255, .02); }
.link-row > svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.link-row > svg:last-child { width: 15px; height: 15px; color: #6bea9c; opacity: 1; }
a.link-row:hover { border-color: rgba(86, 131, 255, .4); }
a.link-row > svg:last-child { color: var(--dim); }
.act-groups { display: grid; gap: 14px; }
.act-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.act-title { font-size: 12px; color: var(--dim); padding-top: 9px; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; }
.act-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: background .15s, border-color .15s, color .15s, transform .1s; }
.act-btn svg { width: 15px; height: 15px; color: var(--dim); transition: color .15s; }
.act-btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
.act-btn:hover svg { color: var(--text); }
.act-btn:active { transform: translateY(1px); }
.act-btn.danger:hover { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .35); color: #ffc2c2; }
.act-btn.danger:hover svg { color: #ff8f8f; }
.act-btn:disabled { opacity: .38; cursor: not-allowed; }
.act-btn:disabled:hover { background: rgba(255, 255, 255, .035); border-color: var(--line); color: var(--text); }
.act-btn:focus-visible, button.chip:focus-visible, .trow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.card.quick .row { gap: 8px; }

/* tickets */
.tbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tsearch { position: relative; display: block; width: 280px; max-width: 100%; }
.tsearch svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.tsearch .input { padding-left: 34px; height: 36px; }
.tk { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.tk > * { min-width: 0; }
.tk-list { padding: 8px; max-height: calc(100vh - 230px); overflow: auto; position: sticky; top: 84px; }
.tk-list .list { gap: 4px; }
.trow { display: grid; gap: 4px; width: 100%; text-align: left; padding: 11px 12px 11px 15px; border-radius: 11px; border: 1px solid transparent; background: none; color: inherit; font: inherit; cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
.trow::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.trow.prio-high::before { background: #ffd166; }
.trow.prio-urgent::before { background: #ff6b6b; }
.trow:hover { background: rgba(255, 255, 255, .035); }
.trow.active { background: rgba(86, 131, 255, .09); border-color: rgba(86, 131, 255, .35); }
.trow-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.trow .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .d { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-top .d { flex: none; }
.trow-tags { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.trow-tags .badge { font-size: 11px; padding: 1px 8px; }
.who { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.who img { width: 16px; height: 16px; border-radius: 4px; }
.td-head { display: flex; gap: 16px; align-items: flex-start; }
.td-head h3 { font-size: 19px; margin-bottom: 8px; overflow-wrap: anywhere; }
.td-player { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 12px; border: 1px solid var(--line); flex: none; transition: border-color .15s; }
.td-player:hover { border-color: rgba(86, 131, 255, .45); }
.td-player img { width: 32px; height: 32px; border-radius: 8px; }
.td-player b { display: block; font-size: 13.5px; }
.td-player .muted { font-size: 11.5px; }
.td-meta { font-size: 13px; margin: 10px 0 14px; }
.td-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.td-actions .grow { flex: 1; }
.tk-detail .chat { margin-top: 14px; max-height: 52vh; }
.composer { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: rgba(255, 255, 255, .02); transition: border-color .15s, background .15s; }
.composer:focus-within { border-color: rgba(86, 131, 255, .45); }
.composer.is-note { background: rgba(255, 209, 102, .04); border-color: rgba(255, 209, 102, .3); }
.composer textarea { border: 0; background: none; resize: vertical; min-height: 76px; padding: 8px 4px; box-shadow: none; }
.composer textarea:focus { outline: none; box-shadow: none; }
.composer-top, .composer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.seg button { border: 0; background: none; color: var(--dim); font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.seg button.active { background: var(--panel2); color: var(--text); }
.composer.is-note .seg button.active { color: #ffe3a3; }
.kbd-hint { margin-top: 12px; }

/* rights */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rung { display: flex; flex-direction: column; gap: 6px; }
.rung.me { border-color: rgba(86, 131, 255, .5); background: linear-gradient(180deg, rgba(86, 131, 255, .09), rgba(86, 131, 255, .02)); }
.rung-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.rung-lvl { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.rung h3 { font-size: 18px; }
.rung-inherit { font-size: 12px; color: var(--dim); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.rung:first-child .rung-list { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.rung-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.rung-list li { display: flex; gap: 8px; align-items: flex-start; }
.rung-list svg { width: 14px; height: 14px; color: #6bea9c; flex: none; margin-top: 3px; }
.explain { margin-bottom: 16px; }
.explain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.explain-grid > div { display: grid; gap: 4px; font-size: 13.5px; }
.explain-grid svg { width: 18px; height: 18px; color: #8fadff; margin-bottom: 4px; }
.rank-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 14px 0 18px; }
.rank-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.rank-chip .muted { font-weight: 500; font-size: 11.5px; }
.rank-chip.locked { opacity: .5; }
.rank-chip svg { width: 12px; height: 12px; }

@media (max-width: 1180px) {
  .tiles, .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-grid, .tk { grid-template-columns: minmax(0, 1fr); }
  .tk-list { position: static; max-height: 46vh; }
}
@media (max-width: 640px) {
  .tiles, .ladder, .explain-grid, .rank-form { grid-template-columns: minmax(0, 1fr); }
  .act-group { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .act-title { padding-top: 0; }
  .td-head { flex-direction: column; }
  .tsearch { width: 100%; }
  .kbd-hint { display: none; }
}
.link-row .grow, .reward .grow, .td-head .grow, .pl-head .grow { flex: 1; min-width: 0; }
.explain-grid > div { align-content: start; }
select.input.sm { padding-right: 28px; background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; }
.link-panel .links { margin-bottom: 10px; }
.link-panel .link-row .kbd { font-size: 11.5px; }

/* two-factor */
.mfa { max-width: 470px; text-align: left; }
.mfa .brand-mark, .mfa > h2 { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.mfa > p { text-align: center; }
.mfa-steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.mfa-steps li { counter-increment: s; position: relative; padding-left: 38px; display: grid; gap: 8px; justify-items: start; }
.mfa-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: rgba(86, 131, 255, .14); color: #9db8ff; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; }
.qr { width: 172px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.qr svg { display: block; width: 100%; height: auto; }
.mfa-key-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mfa-key { font-size: 12.5px; letter-spacing: .06em; word-break: break-all; }
.mfa-form { width: 100%; }
.otp { font-size: 26px; letter-spacing: .38em; text-align: center; font-variant-numeric: tabular-nums; padding-left: .38em; }
.mfa-form.busy { opacity: .6; pointer-events: none; transition: opacity .2s; }
.mfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0 14px; }
.mfa-codes code { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); font: 500 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; letter-spacing: .08em; }
.mfa > h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; margin: 14px 0 10px; }

/* ---------- 3D object library: one camera, light from the top left ---------- */
.o3d { position: relative; perspective: 1000px; perspective-origin: 50% 30%; margin-inline: auto; pointer-events: none; max-width: 100%; }
.o3d::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 6%; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, .5); filter: blur(10px); }
.o-cam { position: absolute; left: 50%; top: 64%; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-35deg); }
.o-bob { transform-style: preserve-3d; animation: bob 7s cubic-bezier(.45, 0, .55, 1) infinite; }
.o-spin { transform-style: preserve-3d; animation: spinY 48s linear infinite; }
.o-still { transform-style: preserve-3d; }
.og, .ob { position: absolute; transform-style: preserve-3d; }
.ob i { position: absolute; left: 0; top: 0; background-size: 100% 100%; image-rendering: pixelated; backface-visibility: hidden; }
.ob .of { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .12); }
.ob .or { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .34); }
.ob .ol { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .2); }
.ob .ok { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .38); }
.ob .obt { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .55); }
.o-item { position: absolute; margin: -50% 0 0 -50%; image-rendering: pixelated; animation: item 4s linear infinite; }
.o-item.glint { filter: drop-shadow(0 0 6px rgba(107, 234, 156, .55)); }
.o3d.lamp-on .ob i { box-shadow: 0 0 22px rgba(107, 234, 156, .35); }
.o3d.lamp-off .ob i { filter: saturate(.8); }
.o3d.sm { transform: scale(.8); }
@media (max-width: 640px) { .o3d.hide-sm { display: none; } }

/* ---------- error, maintenance and offline states ---------- */
.err-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(16px, 4vw, 56px); min-height: 66vh; }
.err-copy { max-width: 540px; }
.err-copy .err-code { display: inline-block; font: 600 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: #a9bfff; background: rgba(86, 131, 255, .1); border: 1px solid rgba(86, 131, 255, .28); padding: 8px 12px; border-radius: 999px; filter: none; -webkit-background-clip: border-box; background-clip: border-box; }
.err-copy h1 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.025em; line-height: 1.05; margin: 18px 0 12px; }
.err-copy p { font-size: 16px; line-height: 1.6; }
.err-art { position: relative; display: grid; place-items: center; min-height: 440px; min-width: 0; overflow: hidden; }
.err-page > * { min-width: 0; }
.err-art::before { content: ""; position: absolute; inset: 12% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(86, 131, 255, .16), transparent); filter: blur(20px); }
.err-scene.offline .ob .of, .err-scene.sleep .ob .of { filter: saturate(.75) brightness(.9); }
@media (max-width: 1100px) and (min-width: 761px) { .err-art .o3d { transform: scale(.78); } }
@media (max-width: 760px) {
  .err-page { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .err-art { order: -1; min-height: 300px; height: 300px; }
  .err-art .o3d { transform: scale(.6); transform-origin: 50% 30%; }
}
.sleep-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px 0; }
.sleep-card h3 { font-size: 22px; margin: 0 0 8px; }
@media (max-width: 760px) { .sleep-card { grid-template-columns: 1fr; } .sleep-card .o3d { transform: scale(.85); } }
.notices { display: grid; gap: 12px; margin-bottom: 16px; }
.warn-card.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-color: rgba(255, 209, 102, .22); border-left: 3px solid #FFD166; background: linear-gradient(90deg, rgba(255, 209, 102, .06), transparent 60%); }
.warn-card.notice h3 { margin: 0 0 2px; font-size: 14px; color: #FFD166; }
.warn-card.notice p { margin: 0; font-size: 13px; line-height: 1.5; }
.notices { gap: 8px; }
@media (max-width: 760px) { .warn-card.notice { flex-direction: column; align-items: stretch; gap: 10px; } .warn-card.notice .btn { align-self: flex-start; min-height: 36px; } }

/* ---------- situation strip (overview) ---------- */
.situation { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 16px; }
.situation.calm { color: var(--soft); font-size: 14px; gap: 10px; }
.situation.calm svg { width: 17px; height: 17px; color: var(--good); }
.situation .sit-title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-right: 4px; }
.situation .sit-title svg { width: 15px; height: 15px; }
.sit-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--soft);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .12s; }
.sit-chip:hover { transform: translateY(-1px); border-color: rgba(86, 131, 255, .45); background: rgba(86, 131, 255, .08); color: var(--text); }
.sit-chip svg { width: 15px; height: 15px; }
.sit-chip svg:last-child { opacity: .5; width: 13px; height: 13px; }
.sit-chip.bad { border-color: rgba(255, 107, 107, .4); color: #ffb3b3; }
.sit-chip.warn { border-color: rgba(255, 209, 102, .4); color: #ffe3a3; }
.sit-chip.blue { border-color: rgba(86, 131, 255, .4); color: #b9ccff; }
@media (max-width: 760px), (pointer: coarse) { .btn.sm { min-height: 44px; padding-top: 10px; padding-bottom: 10px; } }

.chatlog { list-style: none; margin: 10px 0; padding: 0; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.chatlog li { display: flex; gap: 10px; align-items: baseline; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.chatlog li:first-child { border-top: 0; }
.chatlog li.bad { background: rgba(255, 92, 92, 0.06); }
.chatlog time { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.chatlog .cl-msg { overflow-wrap: anywhere; min-width: 0; }
.ws-main, .pl-grid > * { min-width: 0; }
.pl-side, .pl-main { grid-template-columns: minmax(0, 1fr); }
tr.evidence td { padding-top: 0; }
tr.evidence summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; min-height: 32px; }
tr.evidence summary:focus-visible { outline: 2px solid var(--blue, #5683FF); outline-offset: 2px; border-radius: 6px; }

/* link wizard */
.link-wizard { margin-top: 16px; padding: 16px; border: 1px solid var(--line, #1F2430); border-radius: 12px; }
.link-wizard .lw-q { margin: 0 0 8px; font-weight: 600; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.04); }
.seg-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.seg-btn.on { background: #5683FF; color: #fff; }
.seg-btn:focus-visible { outline: 2px solid #5683FF; outline-offset: 2px; }
.lw-steps { margin: 16px 0 8px; padding-left: 20px; display: grid; gap: 8px; }
.lw-steps li .btn { margin-left: 8px; }
.lw-code { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.lw-code b { font-size: 20px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* Wirtschafts-Ledger im Team-Bereich */
.ledger .table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.ledger .table th, .ledger .table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ledger .table th { color: var(--muted, #8A93A6); font-weight: 500; font-size: 12px; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .neg { color: #FF8B8B; }
.ledger .pill { padding: 2px 8px; font-size: 12px; gap: 0; }
.ledger .pill.source { color: #6BEA9C; border-color: rgba(107, 234, 156, .35); }
.ledger .pill.sink { color: #FFD166; border-color: rgba(255, 209, 102, .35); }
.ledger .pill.transfer { color: #9DB5FF; border-color: rgba(86, 131, 255, .35); }
.ledger .chart.net i.neg { background: linear-gradient(180deg, #FFD166, rgba(255, 209, 102, .25)); }
.ledger .card.inset { padding: 14px; background: rgba(255, 255, 255, .02); }
.ledger, .ledger .table-wrap { min-width: 0; max-width: 100%; }
.ledger .table { min-width: 520px; }
.ledger .spread { flex-wrap: wrap; gap: 10px; }
.ledger .item, .ledger .item .grow { min-width: 0; }
.dialog-body { margin-top: 12px; max-height: 55vh; overflow: auto; }
.role-diff { font-size: 13px; }
.role-diff th:first-child { color: var(--dim); font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.dialog-body p { margin-top: 10px; }
.role-diff { table-layout: fixed; width: 100%; }
.role-diff th:first-child { width: 34%; }
.role-diff td, .role-diff th { overflow-wrap: anywhere; }

.connect { display: grid; gap: 14px; }
.connect-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.connect-steps li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.connect-steps li > span:nth-child(2) { flex: 1; }
.cs-n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(86, 131, 255, .14); color: var(--blue); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.connect .seg button { min-height: 44px; }
.connect-foot { margin: 0; }
.values-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.values-bar input { flex: 1 1 220px; }
.values-bar input, .values-bar select { min-height: 44px; }
.table.values td.num, .table.values th.num { text-align: right; font-variant-numeric: tabular-nums; }
.trend { white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend.up { color: var(--good); }
.trend.down { color: var(--bad); }
.trend.flat { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.first-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.first-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.first-steps h3 { margin: 6px 0 6px; }
.first-steps p { margin: 0; }
@media (max-width: 560px) { .table.values th:nth-child(2), .table.values td:nth-child(2), .trend .small { display: none; } }
.dash { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-nav { position: sticky; top: 96px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.dash-nav button, .dash-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--dim); font: inherit; font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; transition: background .18s cubic-bezier(.2, .7, .2, 1), color .18s cubic-bezier(.2, .7, .2, 1); }
.dash-nav svg { width: 17px; height: 17px; flex: none; }
.dash-nav button:hover, .dash-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.dash-nav button[aria-current="true"] { color: var(--text); background: var(--panel2); box-shadow: inset 2px 0 0 var(--blue); }
.dash-nav a { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.dash-nav button:focus-visible, .dash-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dash-body > section { animation: dashIn .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes dashIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dash-body .meter { display: block; margin-top: 8px; }
.dash-at { margin-top: 16px; }
.num { font-variant-numeric: tabular-nums; }
.num.good { color: var(--good); }
.num.bad { color: var(--bad); }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.inv-slot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); font-size: 13px; }
.inv-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.today-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); color: var(--text); text-decoration: none; transition: background .18s cubic-bezier(.2, .7, .2, 1), border-color .18s cubic-bezier(.2, .7, .2, 1), transform .18s cubic-bezier(.2, .7, .2, 1); }
.today-tile:hover { background: var(--panel2); border-color: rgba(86, 131, 255, .35); transform: translateY(-1px); }
.today-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.today-tile > svg { width: 20px; height: 20px; flex: none; color: var(--dim); }
.today-tile.hot { border-color: rgba(86, 131, 255, .45); box-shadow: inset 3px 0 0 var(--blue); }
.today-tile.hot > svg { color: var(--blue); }
.today-tile .grow { display: grid; gap: 2px; min-width: 0; }
.today-tile b { font-size: 14px; }
.today-tile .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.today-tile .badge { flex: none; }
@media (max-width: 560px) { .today { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .dash-nav button, .dash-nav a { flex: none; }
  .dash-nav a { margin: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .dash-body > section { animation: none; } }
@media (prefers-reduced-motion: reduce) { .ev-live.on i { animation: none; } }
.modal .palette { width: min(560px, calc(100vw - 32px)); align-self: start; margin-top: 12vh; display: grid; gap: 10px; }
.palette .list { max-height: 50vh; overflow: auto; }
.palette .item svg { width: 17px; height: 17px; flex: none; color: var(--dim); }
.palette .item.active { background: var(--panel2); box-shadow: inset 2px 0 0 var(--blue); }
.task.done .t { color: var(--dim); text-decoration: line-through; }
.task.prio-high { border-left: 3px solid var(--warn); }
.task .asg { color: #b9ccff; font-weight: 600; }
.count-inline { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .1); color: var(--soft); }
.tabs button.active .count-inline { background: rgba(86, 131, 255, .25); color: #dbe6ff; }
.bad-text { color: var(--bad); }
.console .c-err { color: #ff8b8b; }
.console .c-warn { color: var(--gold, #FFD166); }
.console-bar .input { max-width: 420px; min-height: 40px; }
/* Content overview (Inhalte): a compact material chip replaces the fuzzy block graphics. */
.mc-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.chip.small { height: 22px; padding: 0 8px; font-size: 11px; }
.card.inset .mc-icon { min-width: 30px; }

/* Team-Bereich: ruhige, einheitliche Details */
.tabs button { display: inline-flex; align-items: center; gap: 6px; }
.tabs button svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.kpi .k svg { width: 14px; height: 14px; flex: none; opacity: .75; }
.form > .btn, .form > .row { justify-self: start; }
.settings .cols { align-items: start; }
@media (min-width: 981px) {
  .ws-side { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
  .ws-side::-webkit-scrollbar { width: 6px; }
  .ws-side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
  .ws-side::-webkit-scrollbar-track { background: transparent; }
}
@media (max-width: 980px) {
  .ws-side .ws-brand { display: none; }
  .ws-main .grid.g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ws-main .kpi .v { font-size: 22px; }
}

/* Team-Übersicht: Abschnitte */
.ws-label { margin: 22px 0 10px; font: 600 11px/1 var(--mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #8a91a0); display: flex; align-items: center; gap: 10px; }
.ws-label::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(255, 255, 255, .08)); }

.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px; margin-bottom: 12px; }
.notices:empty { display: none; }
.notices .warn-card.notice { margin: 0; padding: 10px 14px; }
.notices .warn-card.notice p { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) { .notices { grid-template-columns: minmax(0, 1fr); } }
.notices .warn-card.notice > div:first-child { flex: 1; min-width: 0; }
.notices .warn-card.notice .btn { flex: none; white-space: nowrap; }

/* ---------- select menus, switches, small inputs ---------- */
select.input, .sel-btn.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238f98ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
  background-position: right 13px center; background-size: 12px; background-repeat: no-repeat; padding-right: 38px; cursor: pointer;
}
select.input.sm, .sel-btn.input.sm { background-position: right 10px center; padding-right: 30px; }
option, optgroup { background: #0c1020; color: #e8ecf6; }
.sel { position: relative; display: inline-flex; min-width: 0; }
label.field .sel, .form .sel { display: flex; width: 100%; }
.sel-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sel-btn { display: flex; align-items: center; text-align: left; width: 100%; min-width: 0; }
.sel-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel.open .sel-btn { border-color: rgba(86, 131, 255, .8); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 4px rgba(86, 131, 255, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237ea1ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7.5 3-3 3 3'/%3E%3C/svg%3E"); }
.sel-btn:disabled { opacity: .5; cursor: not-allowed; }
.sel-list {
  position: fixed; z-index: 1000; overflow-y: auto; padding: 5px; max-width: min(420px, calc(100vw - 16px));
  background: rgba(13, 17, 30, .97); border: 1px solid rgba(160, 180, 255, .16); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .3); backdrop-filter: blur(14px);
  animation: selIn .14s cubic-bezier(.2, .8, .3, 1); scrollbar-width: thin;
}
.sel-list.up { animation-name: selUp; }
.sel-opt { position: relative; padding: 9px 34px 9px 12px; border-radius: 8px; font-size: 14px; color: var(--soft); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-opt.active { background: rgba(86, 131, 255, .14); color: var(--text); }
.sel-opt.on { color: var(--text); font-weight: 600; }
.sel-opt.on::after { content: ""; position: absolute; right: 13px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid #7ea1ff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sel-opt.off { opacity: .4; cursor: not-allowed; }
@keyframes selIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes selUp { from { opacity: 0; transform: translateY(4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .sel-list { animation: none; } }

/* On/off settings read better as a switch than a tick box. */
input[type="checkbox"][role="switch"] { width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
input[type="checkbox"][role="switch"]::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #c9cfdd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4); transition: transform .2s cubic-bezier(.3, .7, .3, 1.2), background .2s;
  border: 0; animation: none;
}
input[type="checkbox"][role="switch"]:checked::after { left: 2px; top: 2px; width: 15px; height: 15px; transform: translateX(16px); background: #fff; border: 0; }
.check { padding: 2px 0; transition: color .15s; }
.check:hover { color: var(--text); }
.check:has(input[role="switch"]) { align-items: center; }

input[type="date"].input::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(.3) hue-rotate(190deg); opacity: .8; cursor: pointer; }
input[type="search"].input::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23aab3c7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l6 6M10 4l-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; }
input[type="number"].input::-webkit-inner-spin-button { opacity: .35; }

/* Pixel item icons (itemIcon) */
.mc-icon.it { min-width: 0; width: 32px; height: 32px; padding: 0; flex: none; border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.mc-icon svg.pxi, .tpl-ic svg.pxi { width: 20px; height: 20px; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45)); }
.card.inset .mc-icon.it { min-width: 0; }

/* Straf-Vorlagen */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 10px; }
.tpl { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); position: relative; overflow: hidden; }
.tpl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--soft); opacity: .5; }
.tpl.ban::before { background: #ff6b6b; opacity: 1; } .tpl.mute::before { background: #ffb454; opacity: 1; }
.tpl .grow { min-width: 0; } .tpl .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tpl .d { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--soft); }
.tpl-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); flex: none; }
.tpl-ic svg.pxi { width: 24px; height: 24px; }
.tpl-act { display: flex; align-items: center; gap: 4px; }
.tpl-act .icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--soft); cursor: pointer; }
.tpl-act .icon-btn:hover { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--text); }
.tpl-act [data-tdel]:hover { color: #ff6b6b; }
@media (max-width: 520px) { .tpl-grid { grid-template-columns: 1fr; } .tpl { flex-wrap: wrap; } .tpl-act { width: 100%; justify-content: flex-end; } }
.bk-list { display: grid; gap: 8px; margin-top: 12px; }
.bk { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.bk.bad { border-color: rgba(255, 107, 107, .35); }
.bk .t { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.bk-parts .chip { font-size: 11.5px; padding: 2px 8px; }
.steps { margin: 10px 0 8px 18px; display: grid; gap: 6px; }
@media (max-width: 720px) { .bk { flex-wrap: wrap; } .bk .tpl-act { width: 100%; justify-content: flex-end; flex-wrap: wrap; } }
.note { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 13.5px; }
.note svg { width: 17px; height: 17px; flex: none; }
.note.warn { border-color: rgba(255, 180, 84, .35); background: rgba(255, 180, 84, .07); }
.note.bad { border-color: rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .07); }
.note.good { border-color: rgba(70, 210, 140, .3); background: rgba(70, 210, 140, .06); }
.bk-dir { min-width: 0; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 720px) { .bk-dir { text-align: left; } }
body.ws-mode main { min-height: 0; }

/* Analytics */
.an-head { flex-wrap: wrap; gap: 10px; align-items: center; }
.an-head h3 { margin: 0; }
.an-head .seg { margin-top: 0; }
.an-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.an-metrics { margin-top: 10px; }
.an-metrics .chip { cursor: pointer; border: 1px solid transparent; }
.an-metrics .chip.on { border-color: #5683ff; color: #fff; }
.an-chart { display: flex; gap: 4px; height: 200px; align-items: flex-end; margin-top: 18px; padding-bottom: 20px; }
.an-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.an-col i { width: 100%; max-width: 34px; background: linear-gradient(180deg, #5683ff, rgba(62, 124, 221, .25)); border-radius: 4px 4px 0 0; min-height: 2px; transform-origin: bottom; animation: grow .6s cubic-bezier(.2, .7, .2, 1) both; }
.an-col:hover i { background: linear-gradient(180deg, #7aa0ff, rgba(86, 131, 255, .4)); }
.an-val { font-size: 10px; color: var(--dim); margin-bottom: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-lbl { position: absolute; bottom: -18px; font-size: 10px; color: var(--dim); white-space: nowrap; }
.an-hours { height: 150px; }
.an-reasons { display: grid; gap: 12px; margin-top: 14px; }
.an-track { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 6px; }
.an-track i { display: block; height: 100%; border-radius: 6px; background: #5683ff; }
.an-track i.good { background: #6bea9c; } .an-track i.warn { background: #ffd166; } .an-track i.bad { background: #ff6b6b; }
.an-list { display: grid; gap: 6px; margin-top: 12px; }
.an-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); flex-wrap: wrap; }
.an-face { width: 24px; height: 24px; border-radius: 5px; image-rendering: pixelated; }
@media (max-width: 700px) { .an-val { display: none; } .an-chart { gap: 2px; } .an-lbl.skip { display: none; } }
