:root { --bg:#0f1216; --bg-2:#171b21; --bg-3:#1f242c; --line:#2b323c; --fg:#e6e9ee; --fg-2:#a3acb9; --fg-3:#6f7987;
  --accent:#4f8cff; --peer:#2ecc71; --origin:#f39c12; --warn:#f1c40f; --err:#e74c3c; --ok:#2ecc71;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--fg); font:15px/1.5 var(--sans); }
a { color: var(--accent); }
h1,h2,h3 { line-height:1.25; margin:0 0 .5em; }
code, pre { font-family: var(--mono); font-size: 13px; }
pre { background: var(--bg-3); border:1px solid var(--line); border-radius:8px; padding:10px 12px; overflow:auto; }
code { background: var(--bg-3); padding: 0 4px; border-radius: 3px; }
pre code { background: none; padding: 0; }
button, input, select, textarea { font: inherit; color: var(--fg); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
input, select, textarea { width: 100%; }
textarea { min-height: 120px; font-family: var(--mono); font-size: 13px; }
input:focus, textarea:focus, select:focus { outline:none; border-color: var(--accent); }
button { cursor: pointer; white-space: nowrap; }
button:hover { border-color: var(--accent); }
.btn { display:inline-flex; align-items:center; gap:6px; padding: 8px 14px; border-radius: 999px; border:1px solid var(--line); background: var(--bg-3); color: var(--fg); text-decoration: none; cursor:pointer; font-weight:600; font-size:14px; }
.btn.primary { background: var(--peer); border-color: var(--peer); color: #0f1216; }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn:hover { filter: brightness(1.1); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 14px; }
header.top { position: sticky; top:0; z-index: 20; background: rgba(15,18,22,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display:flex; align-items:center; gap: 16px; padding: 10px 14px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--fg); }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: rgba(46,204,113,.18); border:1px solid rgba(46,204,113,.5); display:flex; align-items:center; justify-content:center; color: var(--peer); font-weight:700; }
.brand b { font-size: 17px; }
.brand small { display:block; color: var(--fg-3); font-size: 11px; }
nav.main { display:flex; gap: 14px; margin-left: auto; align-items:center; font-size: 14px; }
nav.main a { color: var(--fg-2); text-decoration:none; }
nav.main a:hover { color: var(--peer); }
/* Log out is a POST form (a GET would let any page sign our users out), styled to sit in the nav as a link. */
nav.main form.navform { display:inline; margin:0; }
nav.main button.navlink { background:none; border:0; padding:0; margin:0; font:inherit; color: var(--fg-2); cursor:pointer; }
nav.main button.navlink:hover { color: var(--peer); }
.banner { border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin: 10px 0; }
.banner.info { border-color: var(--accent); }
.banner.warn { border-color: var(--warn); color: var(--warn); }
.banner.err { border-color: var(--err); color: var(--err); }
.banner.ok { border-color: var(--ok); color: var(--ok); }
.hero { display:grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items:center; padding: 30px 0 20px; }
.hero h1 { font-size: 34px; }
.hero p { color: var(--fg-2); font-size: 16px; }
.hero .card { background: var(--bg-2); border:1px solid var(--line); border-radius: 16px; padding: 18px; }
.hero .card h3 { font-size: 14px; color: var(--fg-2); text-transform: uppercase; letter-spacing: .06em; }
.hero .card li { margin: 6px 0; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 26px; } }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.chan { background: var(--bg-2); border:1px solid var(--line); border-radius: 14px; overflow:hidden; text-decoration:none; color: var(--fg); display:flex; flex-direction:column; transition: border-color .2s; }
.chan:hover { border-color: var(--peer); }
.chan .thumb { aspect-ratio: 16/9; background: radial-gradient(circle at top, rgba(46,204,113,.25), #0b0e12); position:relative; overflow:hidden; }
.chan .thumb img { width:100%; height:100%; object-fit: cover; display:block; }
.chan .badges { position:absolute; left:10px; top:10px; display:flex; gap:6px; font-size: 11px; }
.badge { padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.2); }
.badge.live { color: var(--peer); border-color: rgba(46,204,113,.6); }
.badge.adult { color: var(--warn); border-color: rgba(241,196,15,.6); }
.chan .body { padding: 10px 12px 12px; font-size: 13px; }
.chan .body h3 { font-size: 15px; margin: 2px 0 4px; }
.chan .meta { color: var(--fg-3); font-size: 12px; display:flex; justify-content:space-between; gap:8px; margin-top: 6px; }
.chan .desc { color: var(--fg-2); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.toolbar { display:flex; flex-wrap:wrap; gap: 10px; align-items:center; margin: 10px 0 16px; }
.toolbar input, .toolbar select { width: auto; }
.section { margin-top: 26px; }
.section h2 { font-size: 22px; display:flex; align-items:center; gap:10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--peer); box-shadow: 0 0 12px var(--peer); }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 30px; text-align:center; color: var(--fg-2); }
footer.bottom { margin-top: 40px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 12px; }
footer.bottom .wrap { display:flex; flex-wrap:wrap; gap: 10px 18px; justify-content: space-between; }
footer.bottom a { color: var(--fg-2); }
.form { max-width: 560px; }
.form label { display:block; font-size: 13px; color: var(--fg-2); margin: 12px 0 4px; }
.form .row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .help { color: var(--fg-3); font-size: 12px; margin-top: 4px; }
.form .actions { margin-top: 18px; display:flex; gap: 10px; flex-wrap:wrap; }
.check { display:flex; align-items:flex-start; gap: 8px; margin-top: 12px; font-size: 13px; }
.check input { width: auto; margin-top: 3px; }
.card { background: var(--bg-2); border:1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); margin-bottom: 10px; }
.kv { display:grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; }
.kv dt { color: var(--fg-2); }
.kv dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--bg-2); border:1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat .k { color: var(--fg-2); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-family: var(--mono); font-size: 20px; }
.stat .s { color: var(--fg-3); font-size: 11px; }
.tablewrap { overflow-x:auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align:left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--fg-2); font-weight: 600; white-space: nowrap; }
td.mono { font-family: var(--mono); font-size: 12px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); } .muted { color: var(--fg-3); }
.player { background:#000; border-radius: 12px; overflow:hidden; position: relative; }
.player video { display:block; width:100%; aspect-ratio: 16/9; max-height: 72vh; background:#000; }
.overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,.35); cursor:pointer; }
.overlay button { font-size: 16px; padding: 12px 20px; border-radius: 999px; }
.status { display:flex; flex-wrap:wrap; align-items:center; gap: 6px 12px; margin-top: 10px; padding: 8px 12px; border:1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: 13px; }
.status .sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); }
.status.ok .sdot { background: var(--ok); } .status.warn .sdot { background: var(--warn); } .status.err .sdot { background: var(--err); }
.status .v { font-weight: 700; } .status .d { color: var(--fg-2); font-family: var(--mono); font-size: 12px; }
.channel-head { display:flex; flex-wrap:wrap; align-items:flex-start; gap: 12px 20px; margin: 14px 0; }
.channel-head h1 { font-size: 24px; margin: 0; }
.channel-head .viewers { margin-left:auto; font-family: var(--mono); color: var(--fg-2); }
.two { display:grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.copybox { display:flex; gap: 8px; align-items: flex-start; }
.copybox textarea, .copybox input { flex: 1; }
.admin-nav { display:flex; flex-wrap:wrap; gap: 8px; margin: 8px 0 18px; }
.admin-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration:none; color: var(--fg-2); font-size: 13px; }
.admin-nav a.active, .admin-nav a:hover { border-color: var(--peer); color: var(--fg); }
.doc { max-width: 900px; }
.doc h1 { font-size: 30px; } .doc h2 { font-size: 22px; margin-top: 30px; padding-top: 10px; border-top: 1px solid var(--line); } .doc h3 { font-size: 17px; margin-top: 22px; }
.doc p, .doc li { color: var(--fg-2); } .doc strong { color: var(--fg); }
.doc table { margin: 10px 0; } .doc blockquote { border-left: 3px solid var(--peer); margin: 10px 0; padding: 4px 12px; color: var(--fg-2); }
.toc { background: var(--bg-2); border:1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; columns: 2; }
.toc a { display:block; text-decoration:none; color: var(--fg-2); padding: 2px 0; }
.log { font-family: var(--mono); font-size: 12px; max-height: 320px; overflow:auto; margin:0; padding:0; list-style:none; }
.log li { padding: 2px 0; border-bottom: 1px dotted var(--line); white-space: pre-wrap; word-break: break-word; }
.log .t { color: var(--fg-3); margin-right: 6px; }
.chart { width: 100%; height: 160px; background: var(--bg-3); border-radius: 6px; display:block; }

/* ---- language switcher (2.1.17) ------------------------------------------------------------
   A <details> rather than a <select>: it needs no JavaScript, it is reachable by keyboard, and
   each entry is a real link, so a language can be bookmarked and opened in a new tab. */
.langpick { position: relative; margin-left: .35rem; }
.langpick > summary {
  list-style: none; cursor: pointer; padding: .35rem .6rem; border-radius: 6px;
  border: 1px solid var(--line, #2a3038); font-size: .86rem; white-space: nowrap;
}
.langpick > summary::-webkit-details-marker { display: none; }
.langpick > summary::after { content: " \25BE"; opacity: .6; }
.langpick > summary:hover { border-color: var(--accent, #2ecc71); }
.langpick[open] > summary { border-color: var(--accent, #2ecc71); }
.langpick ul {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 60; margin: 0; padding: .3rem;
  list-style: none; min-width: 12rem; border-radius: 8px;
  background: var(--panel, #161b22); border: 1px solid var(--line, #2a3038);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.langpick li { margin: 0; }
.langpick li a { display: block; padding: .4rem .6rem; border-radius: 6px; text-decoration: none; font-size: .9rem; }
.langpick li a:hover { background: rgba(255,255,255,.06); }
.langpick li a.on { color: var(--accent, #2ecc71); font-weight: 600; }
.langpick li a em { opacity: .6; font-style: normal; font-size: .8em; }
@media (max-width: 720px) { .langpick ul { right: auto; left: 0; } }

/* 2.1.25: on a phone the header did not fit — brand, five links, the sign-up button and the language
   picker in one row pushed every page 170–310 px wider than a 390 px screen, in every language (found
   while checking the translated Learn page, where Georgian and Russian labels made it worst). The row
   now wraps: the links move under the brand instead of off the screen. */
@media (max-width: 760px) {
  header.top .wrap { flex-wrap: wrap; row-gap: 6px; }
  nav.main { flex-wrap: wrap; margin-left: 0; width: 100%; gap: 6px 14px; }
  /* The picker can land anywhere in the wrapped row, so its menu is anchored to the header instead of to
     the button: full width under the header, never past the edge of the screen. */
  .langpick { position: static; }
  .langpick ul { left: 14px; right: 14px; top: 100%; min-width: 0; }
}

/* A page served in English because it has not been translated says so, quietly. */
.langnotice {
  margin: 0 0 1rem; padding: .55rem .8rem; border-radius: 8px; font-size: .88rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--line, #2a3038); opacity: .85;
}

/* =============================================================================================
   Learn centre and its 3D scenes (2.1.17)

   Built from CSS 3D transforms on ordinary elements: no WebGL, no canvas, no library, no image.
   The binary embeds its own assets, so a CDN dependency here would undo the 2.1.0 work that
   removed the last one; and elements stay readable to assistive technology. With JavaScript off
   the scenes simply stand still, and prefers-reduced-motion is honoured before anything moves.
   ============================================================================================= */

.learn { max-width: 64rem; }
.learn .lede { font-size: 1.05rem; opacity: .85; margin-top: -.4rem; }
.learnnav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 2rem; }
.learnnav a {
  padding: .4rem .8rem; border-radius: 999px; font-size: .9rem; text-decoration: none;
  border: 1px solid var(--line, #2a3038); background: rgba(255,255,255,.03);
}
.learnnav a:hover { border-color: var(--accent, #2ecc71); }
.learn section { margin: 2.5rem 0 3rem; }
.learn h2 { border-bottom: 1px solid var(--line, #2a3038); padding-bottom: .4rem; }

/* ---- scene shell ---- */
.scene3d {
  display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.5rem;
  align-items: center; margin: 2rem 0; padding: 1rem 0;
}
.scene3d .stage {
  position: relative; height: 15rem; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #1b2530 0%, #0f1216 70%);
  border: 1px solid var(--line, #2a3038);
  perspective: 900px; perspective-origin: 50% 40%;
}
.scene3d .caption h3 { margin: 0 0 .5rem; }
.scene3d .caption p { margin: 0; opacity: .88; line-height: 1.55; }
@media (max-width: 760px) { .scene3d { grid-template-columns: 1fr; } .scene3d .stage { height: 13rem; } }

/* a viewer: a small 3D-ish tile standing on the floor */
.scene3d .v {
  position: absolute; width: 30px; height: 22px; border-radius: 4px;
  background: linear-gradient(160deg, #3b4а55 0%, #263039 100%);
  background: linear-gradient(160deg, #3b4a55 0%, #263039 100%);
  border: 1px solid #4a5764; box-shadow: 0 6px 14px rgba(0,0,0,.5);
  transform-style: preserve-3d;
}
.scene3d .v.lead { border-color: var(--accent, #2ecc71); box-shadow: 0 0 14px rgba(46,204,113,.5); }
.scene3d .v em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: .7rem; opacity: .75; }

/* the origin server */
.scene3d .server {
  position: absolute; left: 50%; top: 14%; width: 92px; height: 54px; margin-left: -46px;
  border-radius: 8px; border: 1px solid #4a5764; display: grid; place-items: center;
  background: linear-gradient(160deg, #2b3a47 0%, #1a222a 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
  transform: rotateX(16deg); font-size: .62rem; letter-spacing: .12em; opacity: .95;
}
.scene3d .server.small { width: 74px; height: 42px; margin-left: -37px; top: 8%; font-size: .55rem; }

/* --- scene 1: one server, many viewers. Beams fire from the origin to each viewer. --- */
[data-scene="origin"] .viewers .v { bottom: 16%; left: 50%; transform: translateX(calc(var(--x) - 15px)) rotateX(52deg); }
[data-scene="origin"] .beams { position: absolute; left: 50%; top: 36%; }
[data-scene="origin"] .beams i {
  position: absolute; left: 0; top: 0; width: 2px; height: 96px; transform-origin: 50% 0;
  transform: rotate(var(--a)); background: linear-gradient(#2ecc71, rgba(46,204,113,0));
  opacity: 0;
}
[data-scene="origin"].run .beams i { animation: beam 2.2s linear infinite; }
[data-scene="origin"].run .beams i:nth-child(2) { animation-delay: .18s; }
[data-scene="origin"].run .beams i:nth-child(3) { animation-delay: .36s; }
[data-scene="origin"].run .beams i:nth-child(4) { animation-delay: .54s; }
[data-scene="origin"].run .beams i:nth-child(5) { animation-delay: .72s; }
@keyframes beam { 0% { opacity: 0; transform: rotate(var(--a)) scaleY(.1); } 25% { opacity: .95; } 60% { opacity: .95; transform: rotate(var(--a)) scaleY(1); } 100% { opacity: 0; transform: rotate(var(--a)) scaleY(1); } }

/* --- scene 2: the playlist as a row of segment tiles rolling past --- */
[data-scene="segment"] .strip {
  position: absolute; left: 0; top: 50%; width: 100%; height: 56px; margin-top: -28px;
  display: flex; gap: 10px; justify-content: center; transform: rotateX(22deg) rotateY(-14deg);
  transform-style: preserve-3d;
}
[data-scene="segment"] .seg {
  width: 44px; border-radius: 6px; display: grid; place-items: center; font-size: .75rem;
  background: linear-gradient(160deg, #31424f 0%, #1d262e 100%);
  border: 1px solid #4a5764; box-shadow: 0 8px 18px rgba(0,0,0,.45);
}
[data-scene="segment"].run .seg { animation: segpop 2.6s ease-in-out infinite; }
[data-scene="segment"].run .seg:nth-child(2) { animation-delay: .16s; }
[data-scene="segment"].run .seg:nth-child(3) { animation-delay: .32s; }
[data-scene="segment"].run .seg:nth-child(4) { animation-delay: .48s; }
[data-scene="segment"].run .seg:nth-child(5) { animation-delay: .64s; }
[data-scene="segment"].run .seg:nth-child(6) { animation-delay: .80s; }
@keyframes segpop {
  0%, 100% { transform: translateZ(0); border-color: #4a5764; }
  18% { transform: translateZ(26px) translateY(-6px); border-color: var(--accent, #2ecc71); }
  40% { transform: translateZ(0); border-color: #4a5764; }
}

/* --- scene 3: the swarm. Viewers sit on a slowly turning ring and pass pieces along it. --- */
[data-scene="swarm"] .ring {
  position: absolute; left: 50%; top: 62%; width: 0; height: 0;
  transform-style: preserve-3d; transform: rotateX(62deg);
}
[data-scene="swarm"].run .ring { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotateX(62deg) rotateZ(360deg); } }
[data-scene="swarm"] .ring .v {
  left: -15px; top: -11px;
  transform: rotateZ(calc(var(--i) * 60deg)) translateX(88px) rotateZ(calc(var(--i) * -60deg)) rotateX(-62deg);
}
[data-scene="swarm"] .hops { position: absolute; left: 50%; top: 62%; }
[data-scene="swarm"] .hops i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; left: -4px; top: -4px;
  background: var(--accent, #2ecc71); box-shadow: 0 0 10px rgba(46,204,113,.9); opacity: 0;
}
[data-scene="swarm"].run .hops i { animation: hop 3s ease-in-out infinite; }
[data-scene="swarm"].run .hops i:nth-child(2) { animation-delay: .6s; }
[data-scene="swarm"].run .hops i:nth-child(3) { animation-delay: 1.2s; }
[data-scene="swarm"].run .hops i:nth-child(4) { animation-delay: 1.8s; }
[data-scene="swarm"].run .hops i:nth-child(5) { animation-delay: 2.4s; }
@keyframes hop {
  0% { opacity: 0; transform: translate(0, -46px) scale(.6); }
  12% { opacity: 1; }
  50% { opacity: 1; transform: translate(76px, 44px) scale(1); }
  88% { opacity: 1; transform: translate(-76px, 44px) scale(1); }
  100% { opacity: 0; transform: translate(0, -46px) scale(.6); }
}

/* --- scene 4: the leader runs slightly ahead, the rest follow --- */
[data-scene="leader"] .ladder {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotateX(34deg) rotateZ(-8deg); transform-style: preserve-3d;
}
[data-scene="leader"] .ladder .v {
  width: 54px; height: 26px; left: -27px;
  top: calc(var(--i) * 30px - 62px);
  transform: translateX(calc(var(--i) * -26px));
}
[data-scene="leader"].run .ladder .v { animation: creep 3.4s ease-in-out infinite; }
[data-scene="leader"].run .ladder .v:nth-child(2) { animation-delay: .22s; }
[data-scene="leader"].run .ladder .v:nth-child(3) { animation-delay: .44s; }
[data-scene="leader"].run .ladder .v:nth-child(4) { animation-delay: .66s; }
@keyframes creep {
  0%, 100% { transform: translateX(calc(var(--i) * -26px)) translateZ(0); }
  45% { transform: translateX(calc(var(--i) * -26px + 22px)) translateZ(18px); }
}

/* --- scene 5: two paths, and the origin path takes over when the peer path is late --- */
[data-scene="fallback"] .twopath { position: absolute; left: 50%; top: 30%; }
[data-scene="fallback"] .twopath i {
  position: absolute; left: -1px; width: 2px; height: 74px; transform-origin: 50% 0;
}
[data-scene="fallback"] .twopath .p2p { transform: rotate(-38deg); background: linear-gradient(var(--accent, #2ecc71), rgba(46,204,113,0)); }
[data-scene="fallback"] .twopath .http { transform: rotate(38deg); background: linear-gradient(#e6a23c, rgba(230,162,60,0)); }
[data-scene="fallback"].run .twopath .p2p { animation: alt 4s ease-in-out infinite; }
[data-scene="fallback"].run .twopath .http { animation: alt 4s ease-in-out infinite reverse; }
@keyframes alt { 0%, 40% { opacity: 1; } 55%, 95% { opacity: .12; } 100% { opacity: 1; } }
[data-scene="fallback"] .pair .v { bottom: 18%; }
[data-scene="fallback"] .pair .v:first-child { left: 26%; transform: rotateX(50deg); }
[data-scene="fallback"] .pair .v:last-child { right: 26%; transform: rotateX(50deg); }

/* Reduced motion, or no JavaScript: everything holds a readable pose instead of moving. */
.scene3d.still .beams i, .scene3d.still .hops i { opacity: .75; }
.scene3d.still .seg { border-color: var(--accent, #2ecc71); }
@media (prefers-reduced-motion: reduce) {
  .scene3d * { animation: none !important; }
  .scene3d .beams i, .scene3d .hops i { opacity: .75; }
}

/* ---- input cards ---- */
.inputgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.inputcard { padding: 1rem; border-radius: 10px; border: 1px solid var(--line, #2a3038); background: rgba(255,255,255,.02); }
.inputcard h4 { margin: 0 0 .4rem; }
.inputcard p { margin: 0 0 .7rem; opacity: .85; font-size: .92rem; line-height: 1.5; }
.inputcard code { display: block; padding: .45rem .6rem; border-radius: 6px; background: rgba(0,0,0,.35); font-size: .82rem; overflow-x: auto; }
.inputcard.yes { border-left: 3px solid var(--accent, #2ecc71); }
.inputcard.no { border-left: 3px solid #e6a23c; }
.learn h3.ok::before { content: "\2713 "; color: var(--accent, #2ecc71); }
.learn h3.warn::before { content: "\26A0 "; color: #e6a23c; }

/* ---- glossary ---- */
.glossary { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .55rem 1.2rem; margin: 1rem 0; }
.glossary dt { font-weight: 600; color: var(--accent, #2ecc71); }
.glossary dd { margin: 0; opacity: .88; line-height: 1.55; }
@media (max-width: 620px) { .glossary { grid-template-columns: 1fr; gap: .2rem 0; } .glossary dd { margin-bottom: .8rem; } }

/* The in-browser ABR ladder offer. Hidden until the page knows the browser can do it, so it never
   advertises something that would then fail. */
.ladderbox { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line, #282d3d); border-radius: 10px; background: rgba(127,127,127,.06); }
.ladderbox .ladderhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.ladderbox .help { margin: 6px 0 10px; font-size: 12px; }
.ladderbox .actions { margin: 0; }

/* 2.1.25: tables from Markdown pages scroll inside their own box instead of widening the page. */
.tablewrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 2.1.33: the signed-in and admin pages on a phone (the 2.1.25 check covered public pages only). Found:
   a German page title ("Missbrauchsmeldungen") and the channel address in the dashboard heading are single
   words longer than a 390 px screen; and the two-column admin layouts kept their columns at the width of
   their widest unbreakable content (Russian and Georgian labels), because a grid or flex item does not
   shrink below its min-content by default. Long words now break (hyphenated where the language allows),
   grid and form items may shrink, and form controls never exceed their column. */
h1, h2, h3, .card h2, label, .check, .help, dd, td, th { overflow-wrap: anywhere; hyphens: auto; }
.two > *, .form .row > *, .row > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
@media (max-width: 560px) { .form .row, .row { grid-template-columns: 1fr; } }
/* a button whose label is a sentence (the Russian and Georgian "send a test e-mail to <address>") wraps
   instead of pushing the page sideways */
.btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
