/* MERIDIAN site console: a Tessaron Systems public terminal (KE/EP/ER 4000). CRT phosphor, bezel, scanlines. */
:root {
  --bg: #050605; --bezel: #1b1c1a; --bezel2: #2a2b27; --scr: #020a05;
  --g: #8dffa8; --g2: #4fd27a; --gdim: #2f7a48; --a: #ffb547; --a2: #c9862a; --r: #ff5a4a; --w: #e8f5e8;
  --glow: 0 0 6px rgba(120, 255, 160, .55), 0 0 18px rgba(80, 255, 140, .18);
  --aglow: 0 0 6px rgba(255, 181, 71, .6), 0 0 16px rgba(255, 160, 40, .2);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--g); }
body { font: 20px/1.25 'VT323', 'Share Tech Mono', monospace; display: flex; flex-direction: column; min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #10140f 0%, #050605 60%) fixed; }
a { color: var(--a); text-shadow: var(--aglow); }
button { font: inherit; }

/* header: Tessaron plate */
.plate { display: flex; align-items: center; gap: 14px; padding: 10px 18px 8px; border-bottom: 1px solid #262822; background: linear-gradient(#181a16, #0e100d); }
.plate img { height: 30px; filter: drop-shadow(0 0 8px rgba(255, 181, 71, .35)); }
.plate .id { color: var(--a); text-shadow: var(--aglow); letter-spacing: 2px; font-size: 18px; line-height: 1.1; }
.plate .id small { display: block; color: #8a7a5a; text-shadow: none; font-size: 15px; letter-spacing: 1px; }
.plate .sp { flex: 1; }
.plate .who { color: var(--g2); font-size: 18px; text-align: right; line-height: 1.1; }
.plate .who b { color: var(--g); text-shadow: var(--glow); font-weight: normal; }
.plate .snd { background: #12140f; border: 1px solid #3a3d35; color: var(--g2); font: inherit; font-size: 15px; letter-spacing: 1px; padding: 1px 8px; cursor: pointer; }
.plate .snd.off { color: #5a6a5a; text-decoration: line-through; }
.plate .clock { color: var(--a2); font-size: 18px; min-width: 92px; text-align: right; }

/* the console buttons above the terminal */
.keys { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px 0; max-width: 1240px; width: 100%; margin: 0 auto; }
.keys button { background: linear-gradient(#232520, #151713); color: var(--g); border: 1px solid #3a3d35; border-bottom-color: #0a0b09; border-radius: 3px;
  padding: 5px 12px 3px; font-size: 19px; letter-spacing: 1px; cursor: pointer; text-shadow: var(--glow); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 #050605; }
.keys button:hover { color: var(--w); border-color: var(--g2); }
.keys button:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.keys button.amber { color: var(--a); text-shadow: var(--aglow); }
.keys button.donate { color: #ff8aa6; border-color: #6a2a3a; text-shadow: 0 0 8px rgba(255,77,121,.8); animation: kdn 2.4s ease-in-out infinite; }   /* 0.24.8 DONATE */
@keyframes kdn { 0%, 100% { box-shadow: none; } 12% { box-shadow: 0 0 12px rgba(255,77,121,.55); } 24% { box-shadow: none; } 36% { box-shadow: 0 0 9px rgba(255,77,121,.4); } }
@media (prefers-reduced-motion: reduce) { .keys button.donate { animation: none; } }
.keys button.red { color: var(--r); text-shadow: 0 0 6px rgba(255, 90, 74, .6); }
.keys button[hidden] { display: none; }

/* bezel + CRT */
.bezel { flex: 1; display: flex; padding: 12px 18px 18px; max-width: 1240px; width: 100%; margin: 0 auto; min-height: 0; }
.crt { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 62vh; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #06160b 0%, #020a05 70%, #010402 100%);
  border: 14px solid var(--bezel); box-shadow: inset 0 0 0 2px var(--bezel2), inset 0 0 70px rgba(0,0,0,.85), 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.6); }
.crt::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px); mix-blend-mode: multiply; }
.crt::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4; border-radius: 6px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,.55) 100%); animation: flick 6s infinite; }
@keyframes flick { 0%, 100% { opacity: 1 } 47% { opacity: .96 } 48% { opacity: 1 } 77% { opacity: .98 } }
.scr { position: relative; z-index: 2; flex: 1; overflow-y: auto; padding: 18px 22px 8px; text-shadow: var(--glow); scrollbar-width: thin; scrollbar-color: var(--gdim) transparent; }
.scr .ln { white-space: pre-wrap; word-break: break-word; min-height: 1.25em; }
.scr .a { color: var(--a); text-shadow: var(--aglow); }
.scr .r { color: var(--r); text-shadow: 0 0 6px rgba(255, 90, 74, .55); }
.scr .d { color: var(--gdim); text-shadow: none; }
.scr .w { color: var(--w); }
.scr .cmd { color: var(--w); }
.scr .cmd::before { content: 'MERIDIAN> '; color: var(--g2); }
.scr .link { color: var(--a); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.scr .link:hover { color: var(--w); }
.scr h3 { margin: 10px 0 2px; font-weight: normal; color: var(--a); text-shadow: var(--aglow); font-size: 24px; letter-spacing: 2px; }
.scr .box { border: 1px solid var(--gdim); padding: 10px 14px; margin: 6px 0 10px; background: rgba(40, 120, 70, .05); }
.scr .box p { margin: 6px 0; }
.scr .box ul { margin: 4px 0; padding-left: 22px; }
.scr .box .nimg { margin: 10px 0 12px; } .scr .box .nimg img { display: block; max-width: 100%; height: auto; aspect-ratio: auto 16 / 9; border: 1px solid var(--gdim); } .scr .box .nimg figcaption { font-size: .85em; opacity: .75; margin-top: 4px; }   /* 0.24.5 bulletin screenshots */
.scr .box kbd { border: 1px solid var(--gdim); padding: 0 5px; border-radius: 3px; color: var(--w); font: inherit; }
.scr .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 6px 0; }
.scr .card { border: 1px solid var(--gdim); padding: 6px 10px; }
.scr .card h4 { margin: 0 0 4px; font-weight: normal; color: var(--a); text-shadow: var(--aglow); }
.scr .card p, .scr .card li { font-size: 18px; color: #bfeccc; text-shadow: none; }
.scr table { border-collapse: collapse; margin: 4px 0 8px; }
.scr td, .scr th { padding: 1px 14px 1px 0; text-align: left; font-weight: normal; }
.scr th { color: var(--a); text-shadow: var(--aglow); }
.scr .tw { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gdim) transparent; }
.scr .tw table { white-space: nowrap; }
.scr .kv td:first-child { padding-right: 18px; }
.scr .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 6px 0 4px; }
.scr .stats div { border: 1px solid var(--gdim); padding: 4px 8px; color: var(--g2); font-size: 15px; letter-spacing: 1px; text-shadow: none; }
.scr .stats b { display: block; font-size: 30px; font-weight: normal; color: var(--g); text-shadow: var(--glow); line-height: 1; }
.scr .stats.sm b { font-size: 22px; }
.scr .badge { display: inline-block; border: 1px solid var(--a); color: var(--a); padding: 1px 7px; margin: 2px 2px 2px 0; font-size: 14px; letter-spacing: .08em; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.gal figure { margin: 0; border: 1px solid var(--gdim); background: #000; cursor: zoom-in; }
.gal img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: sepia(.25) hue-rotate(60deg) saturate(.9) brightness(.95); transition: filter .15s; }
.gal figure:hover img { filter: none; }
.gal figcaption { padding: 4px 8px; font-size: 17px; color: #bfeccc; text-shadow: none; }

/* input line */
.inp { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 22px 14px; border-top: 1px dashed rgba(79, 210, 122, .25); text-shadow: var(--glow); }
.inp label { color: var(--g2); white-space: nowrap; }
.inp input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--w); font: inherit; caret-color: transparent; text-shadow: var(--glow); text-transform: uppercase; }
.inp input[type=password] { text-transform: none; letter-spacing: 3px; }
.inp .cur { position: absolute; left: 0; top: 0; width: 11px; height: 20px; background: var(--g); box-shadow: var(--glow); animation: blink 1s steps(1) infinite; pointer-events: none; transition: transform 40ms linear; }
.inp .cur.solid { animation: none; opacity: 1; }
.inp .cur.dim { opacity: .35; animation: none; }
body.busy .inp .cur { opacity: 0; animation: none; }
.inp .meas { position: absolute; visibility: hidden; white-space: pre; font: inherit; text-transform: uppercase; left: 0; top: 0; }
.inp .meas.pw { text-transform: none; letter-spacing: 3px; }
/* power-on: standby screen + Tessaron logo at boot */
.crt .standby { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; background: #010402; cursor: pointer; }
.crt .standby .sb-in { color: #4a3a1e; letter-spacing: 2px; font-size: 17px; }
.crt .standby img { height: 70px; max-width: 80%; opacity: .22; filter: grayscale(.4); margin-bottom: 14px; }
.crt .standby b { display: block; margin-top: 18px; font-weight: normal; color: var(--a); text-shadow: var(--aglow); font-size: 20px; animation: blink 1.2s steps(1) infinite; }
.scr .bootlogo { text-align: center; margin: 10px 0 16px; color: var(--a); text-shadow: var(--aglow); letter-spacing: 3px; font-size: 18px; }
.scr .bootlogo img { display: block; height: 110px; max-width: 90%; margin: 0 auto 8px; filter: drop-shadow(0 0 12px rgba(255,181,71,.5)); }
/* typing cursor in the output + slow-scan block reveal */
.scr .tcur { display: inline-block; width: .55em; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--g); box-shadow: var(--glow); }
.scr .a .tcur { background: var(--a); } .scr .r .tcur { background: var(--r); }
.scr .rv { animation: rv var(--rv, 250ms) steps(14, end) both; }
@keyframes rv { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* CRT life: power-on, glitches, light static, the rolling scan bar */
.crt.pwr .scr, .crt.pwr .inp { animation: pwr .75s cubic-bezier(.2,.8,.3,1) both; }
@keyframes pwr { 0% { transform: scale(1, .004); filter: brightness(4); opacity: .2; } 35% { transform: scale(1, .004); filter: brightness(4); opacity: 1; } 60% { transform: scale(1, 1.04); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
.crt .static { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; opacity: 0; mix-blend-mode: screen; image-rendering: pixelated; transition: opacity 90ms; }
.crt .roll { position: absolute; left: 0; right: 0; top: -14%; height: 12%; z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(140,255,180,0), rgba(140,255,180,.07) 40%, rgba(200,255,220,.16) 50%, rgba(140,255,180,.07) 60%, rgba(140,255,180,0)); }
.crt .roll.go { animation: roll 4.2s linear 1; }
@keyframes roll { 0% { top: -14%; opacity: 1; } 100% { top: 104%; opacity: 1; } }
.crt.glitch1 .scr { transform: translateX(3px) skewX(-1.5deg); text-shadow: -2px 0 rgba(255,60,80,.6), 2px 0 rgba(60,160,255,.6); }
.crt.glitch2 .scr { transform: translateY(-4px); filter: brightness(1.5) contrast(1.2); clip-path: polygon(0 0, 100% 0, 100% 38%, 98% 38%, 98% 46%, 100% 46%, 100% 100%, 0 100%); }
.crt.glitch3 .scr { transform: translateX(-5px) scaleY(1.01); filter: hue-rotate(-20deg) brightness(1.3); text-shadow: 3px 0 rgba(255,60,80,.5), -3px 0 rgba(60,160,255,.5); }
@media (prefers-reduced-motion: reduce) { .crt .static, .crt .roll { display: none; } }
@keyframes blink { 50% { opacity: 0 } }
.motd { margin: 0 auto; max-width: 1240px; width: calc(100% - 36px); margin-top: 10px; border: 1px solid var(--a2); color: var(--a); text-shadow: var(--aglow); padding: 4px 12px; }
.motd.r { border-color: var(--r); color: var(--r); text-shadow: none; }
footer { color: #5a6a5a; font-size: 16px; text-align: center; padding: 0 18px 14px; }
footer a { color: #8a9a7a; text-shadow: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 82vh; border: 1px solid var(--gdim); box-shadow: 0 0 40px rgba(80, 255, 140, .12); }
.lb div { margin-top: 10px; color: var(--g); text-shadow: var(--glow); }

/* two-step login setup panel (outside the CRT so the QR code scans cleanly) */
.mfa-panel { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .82); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.mfa-panel .win { width: min(460px, 100%); background: #0b0d0a; border: 1px solid var(--a2); box-shadow: 0 0 0 6px var(--bezel), 0 20px 60px rgba(0,0,0,.8); padding: 14px 18px; color: #cfe9d6; }
.mfa-panel h4 { margin: 0 0 8px; color: var(--a); font-weight: normal; letter-spacing: 2px; text-shadow: var(--aglow); }
.mfa-panel ol { margin: 0 0 10px; padding-left: 22px; font-size: 18px; } .mfa-panel li { margin: 3px 0; }
.mfa-panel code { color: var(--w); font: inherit; letter-spacing: 1px; word-break: break-all; }
.mfa-panel img { display: block; margin: 6px auto 12px; width: 220px; max-width: 70vw; image-rendering: pixelated; background: #fff; padding: 6px; }
.mfa-panel .row { display: flex; gap: 8px; flex-wrap: wrap; }
.mfa-panel input { flex: 1; min-width: 120px; background: #050805; color: var(--w); border: 1px solid #2f5a3c; font: inherit; font-size: 26px; letter-spacing: 6px; padding: 2px 10px; }
.mfa-panel .btn { background: linear-gradient(#1f2a1f, #121912); border: 1px solid var(--g2); color: var(--g); padding: 2px 14px; cursor: pointer; font: inherit; }
.mfa-panel .btn.a { border-color: var(--a2); color: var(--a); background: linear-gradient(#2a2010, #17110a); }
.mfa-panel .msg { min-height: 1.3em; color: var(--r); margin-top: 6px; }
.scr .codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; color: var(--w); letter-spacing: 2px; }
/* ---------------- admin panel: a second Tessaron window ---------------- */
.adm { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .78); display: flex; align-items: flex-start; justify-content: center; padding: 3vh 2vw; overflow: auto; }
.adm .win { width: min(1180px, 100%); background: #0b0d0a; border: 1px solid #3a3d35; box-shadow: 0 0 0 6px var(--bezel), 0 20px 60px rgba(0,0,0,.8); }
.adm .bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: linear-gradient(#2a1d0c, #160f06); border-bottom: 1px solid var(--a2); color: var(--a); text-shadow: var(--aglow); letter-spacing: 2px; }
.adm .bar .sp { flex: 1; }
.adm .bar button { background: none; border: 1px solid var(--a2); color: var(--a); padding: 0 10px; cursor: pointer; }
.adm .tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #2a2c26; }
.adm .tabs button { background: #12140f; border: 1px solid #2f322b; border-bottom: 0; color: var(--g2); padding: 4px 12px 2px; cursor: pointer; }
.adm .tabs button.on { background: #1b2a1c; color: var(--g); text-shadow: var(--glow); border-color: var(--g2); }
.adm .tabs button[data-t="donate"] { color: #ff8aa6; border-color: #6a2a3a; text-shadow: 0 0 8px rgba(255,77,121,.8); }   /* 0.25.3 DONATIONS in the console's DONATE rose */
.adm .tabs button[data-t="donate"].on { background: #2a1219; color: #ffd0dc; border-color: #ff8aa6; text-shadow: 0 0 10px rgba(255,77,121,.9); }
.adm .body { padding: 14px; min-height: 50vh; color: #cfe9d6; }
.adm h4 { margin: 4px 0 10px; color: var(--a); font-weight: normal; letter-spacing: 2px; text-shadow: var(--aglow); }
.adm input[type=text], .adm input[type=password], .adm input[type=number], .adm input[type=email], .adm select, .adm textarea { background: #050805; color: var(--w); border: 1px solid #2f5a3c; font: inherit; padding: 3px 8px; }
.adm textarea { width: 100%; min-height: 220px; resize: vertical; font-size: 18px; line-height: 1.25; }
.adm .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.adm .btn { background: linear-gradient(#1f2a1f, #121912); border: 1px solid var(--g2); color: var(--g); padding: 2px 12px; cursor: pointer; text-shadow: var(--glow); }
.adm .btn.a { border-color: var(--a2); color: var(--a); text-shadow: var(--aglow); background: linear-gradient(#2a2010, #17110a); }
.adm .btn.r { border-color: #8a3028; color: var(--r); text-shadow: none; background: linear-gradient(#2a1210, #160a08); }
.adm .btn:disabled { opacity: .4; cursor: default; }
.adm table { width: 100%; border-collapse: collapse; font-size: 18px; }
.adm th { text-align: left; color: var(--a); font-weight: normal; border-bottom: 1px solid #3a3d35; padding: 3px 6px; }
.adm td { border-bottom: 1px solid #1d201b; padding: 3px 6px; vertical-align: top; overflow-wrap: anywhere; }   /* (0.20.42: long emails / callsigns wrap instead of pushing ACTIONS off the window) */
.adm tr:hover td { background: #0f170f; }
.adm .tag { display: inline-block; padding: 0 6px; border: 1px solid; font-size: 15px; margin-right: 4px; }
.adm .tag.admin { color: var(--a); border-color: var(--a2); }
.adm .tag.mod { color: #8fd0ff; border-color: #3a6a8a; }
.adm .tag.ban { color: var(--r); border-color: #8a3028; }
.adm .tag.twofa { color: var(--g); border-color: var(--g2); }
.adm .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.adm .stats div { border: 1px solid #2f5a3c; padding: 8px 12px; }
.adm .stats b { display: block; font-size: 38px; font-weight: normal; color: var(--g); text-shadow: var(--glow); }
.adm .list2 { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
.adm .list2 .items { border: 1px solid #2a2c26; max-height: 62vh; overflow: auto; }
.adm .list2 .items div { padding: 4px 8px; border-bottom: 1px solid #1a1c18; cursor: pointer; }
.adm .list2 .items div.on, .adm .list2 .items div:hover { background: #142014; color: var(--g); }
.adm .list2 .items small { color: #6a8a6a; }
.adm .shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.adm .shots figure { margin: 0; border: 1px solid #2a2c26; padding: 6px; }
.adm .shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.adm .shots input { width: 100%; margin: 4px 0; }
.adm .note { color: #8aa88a; font-size: 17px; }
.adm .msg { min-height: 1.3em; color: var(--a); }
.adm .msg.err { color: var(--r); }
.adm audio { height: 28px; vertical-align: middle; }
/* SITE tab: PUBLIC SITE mode (coming soon / full site) */
.adm .csmode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 8px; max-width: 860px; }
.adm .csmode button { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; background: #0a0d09; border: 1px solid #2f322b; color: #8aa88a; padding: 10px 14px 10px 44px; cursor: pointer; position: relative; font: inherit; }
.adm .csmode button::before { content: ''; position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; }
.adm .csmode button b { display: block; font-weight: normal; font-size: 24px; letter-spacing: 3px; color: #b9c9b9; }
.adm .csmode button span { font-size: 16px; line-height: 1.2; display: block; }
.adm .csmode button[aria-checked=true] { border-color: var(--a2); color: var(--a); background: linear-gradient(#21180b, #120d06); box-shadow: inset 0 0 0 1px var(--a2); }
.adm .csmode button[aria-checked=true] b { color: var(--a); text-shadow: var(--aglow); }
.adm .csmode button[aria-checked=true]::before { background: radial-gradient(circle, var(--a) 0 4px, transparent 5px); }
.adm .csmode button[data-cs="0"][aria-checked=true] { border-color: var(--g2); color: var(--g); background: linear-gradient(#10200f, #091208); box-shadow: inset 0 0 0 1px var(--g2); }
.adm .csmode button[data-cs="0"][aria-checked=true] b { color: var(--g); text-shadow: var(--glow); }
.adm .csmode button[data-cs="0"][aria-checked=true]::before { background: radial-gradient(circle, var(--g) 0 4px, transparent 5px); }
@media (max-width: 640px) { .adm .csmode { grid-template-columns: 1fr; } }
/* ---- 0.20.13 moderation: ban dialog, reports, bug reports, permissions, test unlock */
.adm input[type=date] { background: #050805; color: var(--w); border: 1px solid #2f5a3c; font: inherit; padding: 1px 6px; color-scheme: dark; }
.adm .link { color: var(--a); cursor: pointer; text-decoration: underline; }
.adm tr.lk { cursor: pointer; }
.adm .hot, .adm .stats .lk.hot b { color: var(--r) !important; text-shadow: none; }
.adm .stats .lk { cursor: pointer; } .adm .stats .lk:hover { border-color: var(--a2); }
.adm .kv { width: auto; min-width: 60%; } .adm .kv td.d { color: var(--a); white-space: nowrap; width: 1%; padding-right: 14px; }
.adm .box { border: 1px solid #2a2c26; padding: 6px 10px; background: #070a07; white-space: normal; word-break: break-word; }
.adm .list2.rv { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.adm .rep { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.adm .rep .note { margin-right: 4px; }
.adm .chip { background: #0a0d09; border: 1px solid #2f322b; color: #cfe9d6; font: inherit; font-size: 16px; padding: 0 8px; cursor: pointer; }
.adm .chip b { color: var(--a); font-weight: normal; } .adm .chip.hot { border-color: #8a3028; } .adm .chip.hot b { color: var(--r); } .adm .chip:hover { border-color: var(--a2); }
.adm .chatlog { border: 1px solid #2a2c26; background: #050805; max-height: 320px; overflow: auto; padding: 4px 8px; font-size: 17px; }
.adm .chatlog div { padding: 1px 0; word-break: break-word; } .adm .chatlog b { color: var(--g2); font-weight: normal; }
.adm .hl, .adm .chatlog div.hl { background: rgba(255, 90, 74, .12); } .adm .chatlog div.hl b, .adm span.hl { color: var(--r); }
.adm .logbox { white-space: pre-wrap; word-break: break-word; background: #050805; border: 1px solid #2a2c26; padding: 6px 8px; margin: 2px 0; max-height: 300px; overflow: auto; font: inherit; font-size: 16px; color: #cfe9d6; }
.adm .kv.env td { font-size: 16px; word-break: break-word; }
.adm .bugshot { max-width: 100%; border: 1px solid #2f5a3c; cursor: zoom-in; display: block; }
.adm .tu { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px solid #2f322b; padding: 10px 14px; margin: 14px 0 6px; }
.adm .tu > div { flex: 1 1 380px; } .adm .tu b { font-weight: normal; color: var(--a); letter-spacing: 1px; } .adm .tu.on { border-color: var(--a2); background: linear-gradient(#1a1309, #0d0905); }
.adm .perms { max-width: 900px; } .adm .perms th:not(:first-child), .adm .perms td:not(:first-child) { text-align: center; width: 90px; }
.adm .perms td.ok { color: var(--g); text-shadow: var(--glow); } .adm .perms td.no { color: #4a5a4a; } .adm .perms th.me { color: var(--w); text-decoration: underline; }
.adm .dlg { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.adm .dlg-w { width: min(620px, 100%); max-height: 100%; overflow: auto; background: #0b0d0a; border: 1px solid var(--a2); box-shadow: 0 0 0 4px var(--bezel), 0 20px 60px rgba(0, 0, 0, .8); padding: 14px 18px; color: #cfe9d6; }
.adm .dlg-w textarea { min-height: 70px; font-size: 18px; }
.adm .bn-p .btn.on { background: linear-gradient(#3a2a10, #21180b); border-color: var(--a); color: var(--a); text-shadow: var(--aglow); box-shadow: inset 0 0 0 1px var(--a2); }
.adm .bn-p .btn.r.on { background: linear-gradient(#3a1510, #210b08); border-color: var(--r); color: var(--r); }
.adm .bn-sum { margin: 6px 0; color: #cfe9d6; } .adm .bn-sum b { color: var(--a); font-weight: normal; } .adm .bn-sum b.r { color: var(--r); }
@media (max-width: 640px) { .adm .list2.rv { grid-template-columns: 1fr; } .adm .kv { min-width: 0; width: 100%; } .adm .dlg { padding: 0; align-items: stretch; } .adm .dlg-w { box-shadow: none; } }
@media (max-width: 760px) {
  body { font-size: 18px; }
  .plate { gap: 8px; padding: 8px 10px; } .plate img { height: 22px; } .plate .id { font-size: 15px; letter-spacing: 1px; }
  .plate .id small, .plate .clock { display: none; } .plate .who { font-size: 14px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .keys { padding: 8px 8px 0; } .keys button { font-size: 17px; padding: 4px 9px 2px; }
  .bezel { padding: 8px; } .crt { border-width: 8px; border-radius: 10px; }
  .scr { padding: 12px; } .inp { padding: 6px 12px 10px; }
  .adm .list2 { grid-template-columns: 1fr; }
  /* phones: keys become one swipeable strip, the screen fills the viewport, wide tables scroll sideways */
  .keys { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .keys::-webkit-scrollbar { display: none; }
  .keys button { flex: none; }
  .bezel { flex: none; } .crt { min-height: calc(100dvh - 150px); }
  .scr h3 { font-size: 21px; letter-spacing: 1px; }
  .scr .cards, .gal { grid-template-columns: 1fr; }
  .scr .stats { grid-template-columns: repeat(3, 1fr); }
  .scr td, .scr th { padding-right: 10px; }
  .inp input { font-size: 18px; }
  footer { font-size: 14px; }
  .adm { padding: 0; } .adm .win { box-shadow: none; min-height: 100%; }
  .adm .bar { padding: 8px 10px; letter-spacing: 1px; font-size: 16px; }
  .adm .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .adm .tabs button { flex: none; }
  .adm .body { padding: 10px; }
  .adm table.cm, .adm table.cm tbody, .adm table.cm tr { display: block; }
  .adm table.cm tr:has(th) { display: none; }
  .adm table.cm tr { border: 1px solid #2a2c26; margin: 0 0 8px; padding: 6px 8px; }
  .adm table.cm td { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 0; padding: 2px 0; word-break: break-word; }
  .adm table.cm td[data-l]::before { content: attr(data-l); color: #6a8a6a; flex: 0 0 96px; font-size: 15px; }
  .adm table.cm td:empty { display: none; }
  .adm .row input[type=text], .adm .row input[type=password], .adm .row select { flex: 1 1 100% !important; width: 100% !important; min-width: 0; }
  .adm .row label { width: auto !important; }
  .adm .stats { grid-template-columns: repeat(2, 1fr); } .adm .stats b { font-size: 30px; }
  .adm .shots { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .scr .stats { gap: 4px; } .scr .stats div { font-size: 13px; padding: 3px 5px; letter-spacing: 0; } .scr .stats b { font-size: 24px; } .scr .stats.sm b { font-size: 19px; } .plate .who { display: none; } }
/* drawer mode (inside the site's floating terminal): the drawer has its own header */
body.drawer .plate, body.drawer footer { display: none; }
/* 0.25.3 the desktop app's admin window: the admin panel alone, filling the window (no terminal behind it) */
body.adm-only > :not(.adm) { display: none !important; } body.adm-only::before, body.adm-only::after { display: none !important; }
body.adm-only .adm { background: #05080a; padding: 0; align-items: stretch; } body.adm-only .adm .win { width: 100%; max-width: none; min-height: 100vh; border: 0; box-shadow: none; }
body.drawer .keys { padding-top: 8px; }

/* CRT title glitch: every "THE MERIDIAN" title (class crt-title, data-text = the title). The title is drawn by two
   layers split at a horizontal line (top half / bottom half). Mostly they line up exactly; now and then the picture
   tears - the split jumps, one half slides sideways with an RGB fringe - and the whole title skips in the scan. */
.crt-title { position: relative; -webkit-text-fill-color: transparent; animation: crt-jit 8.3s infinite steps(1, end); }
.crt-title::before, .crt-title::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-text-fill-color: currentColor; text-shadow: none; white-space: inherit; }
.crt-title::before { clip-path: inset(0 0 50% 0); animation: crt-top 7.3s infinite steps(1, end); }
.crt-title::after { clip-path: inset(50% 0 0 0); animation: crt-bot 7.3s infinite steps(1, end); }
@keyframes crt-top {
  0%, 37%, 38.8%, 86.4%, 88.2%, 100% { clip-path: inset(0 0 50% 0); transform: none; text-shadow: none; }
  37.4% { clip-path: inset(0 0 70% 0); transform: none; text-shadow: -2px 0 rgba(255,46,70,.7), 2px 0 rgba(60,210,255,.7); }
  38.1% { clip-path: inset(0 0 38% 0); transform: translateX(-7px); text-shadow: -3px 0 rgba(255,46,70,.85), 3px 0 rgba(60,210,255,.85); }
  86.8% { clip-path: inset(0 0 55% 0); transform: none; text-shadow: -2px 0 rgba(255,46,70,.6), 2px 0 rgba(60,210,255,.6); }
  87.3% { clip-path: inset(0 0 80% 0); transform: translateX(6px); text-shadow: -3px 0 rgba(255,46,70,.85), 3px 0 rgba(60,210,255,.85); }
  87.8% { clip-path: inset(0 0 25% 0); transform: translateX(-3px); text-shadow: none; } }
@keyframes crt-bot {
  0%, 37%, 38.8%, 86.4%, 88.2%, 100% { clip-path: inset(50% 0 0 0); transform: none; text-shadow: none; }
  37.4% { clip-path: inset(30% 0 0 0); transform: translateX(11px); text-shadow: 3px 0 rgba(60,210,255,.85), -3px 0 rgba(255,46,70,.85); }
  38.1% { clip-path: inset(62% 0 0 0); transform: none; text-shadow: none; }
  86.8% { clip-path: inset(45% 0 0 0); transform: translateX(-15px) skewX(-7deg); text-shadow: 4px 0 rgba(60,210,255,.9), -4px 0 rgba(255,46,70,.9); }
  87.3% { clip-path: inset(20% 0 0 0); transform: none; text-shadow: none; }
  87.8% { clip-path: inset(75% 0 0 0); transform: translateX(9px); text-shadow: 3px 0 rgba(60,210,255,.8), -3px 0 rgba(255,46,70,.8); } }
@keyframes crt-jit {
  0%, 74%, 100% { transform: none; opacity: 1; filter: none; }
  74.4% { transform: translate(2px, -1px) skewX(-3deg); opacity: .78; filter: brightness(1.6); }
  74.8% { transform: translate(-3px, 1px); opacity: 1; filter: none; }
  75.2% { transform: none; opacity: .9; }
  75.5% { transform: translateY(2px) scaleY(.96); opacity: 1; }
  75.8% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .crt-title, .crt-title::before, .crt-title::after { animation: none; } }

.adm-ver { color: #ffcf7a; letter-spacing: .12em; margin-right: 14px; font-size: .9em; }
/* 0.20.0 live matches */
.adm .lm { border: 1px solid var(--line, #1f3a28); margin: 12px 0; padding: 8px 10px; background: rgba(125,255,155,.03); }
.adm .lm-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.adm .lm-h > b { font-size: 26px; letter-spacing: .14em; color: var(--a, #ffb547); } .adm .lm-h .sp { flex: 1; }
.adm .tag.ban { color: #ff9a88; border-color: #6a2a22; }
.adm .stats .lk { cursor: pointer; } .adm .stats .lk:hover { outline: 1px solid var(--a, #ffb547); }
/* 0.20.13: BUG key on the plate (-> /bugs) */
.plate a.snd.bug { text-decoration: none; margin-right: 6px; }
.plate a.snd.bug:hover { color: var(--a); border-color: var(--a2); }
/* 0.20.30 loot table: a value changed from the default */
.ad input.chg, input.chg { border-color: var(--a, #ffb547) !important; color: var(--a, #ffb547); }

/* 0.20.46 scrollbars in the station's colours: a thin phosphor-green thumb on a dark track, no arrow buttons */
* { scrollbar-width: thin; scrollbar-color: #2c5238 #07100a; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07100a; border-left: 1px solid #12261a; }
::-webkit-scrollbar-thumb { background: #2c5238; border: 2px solid #07100a; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #4a8a5c; } ::-webkit-scrollbar-thumb:active { background: #7dff9b; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; } ::-webkit-scrollbar-corner { background: #07100a; }

/* 0.20.56 ADMIN > BALANCE: every crew / monster stat - slider + number, the default under each */
.adm .bl-top { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; justify-content: space-between; }
.adm .bl-top > div:first-child { flex: 1 1 420px; } .adm .bl-top .note { margin: 0; }
.adm .bl-sum { display: flex; gap: 8px; } .adm .bl-sum span { border: 1px solid #2f5a3c; padding: 4px 12px; font-size: 15px; letter-spacing: 1px; color: #8aa88a; text-align: center; }
.adm .bl-sum b { display: block; font-size: 30px; font-weight: normal; color: var(--g); text-shadow: var(--glow); line-height: 1; }
.adm .bl-sum .a { border-color: var(--a2); } .adm .bl-sum .a b { color: var(--a); text-shadow: var(--aglow); }
.adm .bl-sum .u { border-color: #8fd0ff; } .adm .bl-sum .u b { color: #8fd0ff; text-shadow: 0 0 8px rgba(143,208,255,.5); }
.adm .bl-bar { position: sticky; top: -14px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px -14px 0; padding: 10px 14px; background: linear-gradient(#0b0d0a 85%, rgba(11,13,10,.0)); border-bottom: 1px solid #2a2c26; }
.adm .bl-bar .sp { flex: 1; }
.adm #bl-q { flex: 1 1 280px; max-width: 460px; padding: 3px 10px; font-size: 19px; letter-spacing: 1px; }
.adm .bl-only { color: #8aa88a; font-size: 17px; cursor: pointer; user-select: none; } .adm .bl-only input { accent-color: var(--a); }
.adm .bl-main { display: grid; grid-template-columns: 210px 1fr; gap: 16px; margin-top: 10px; align-items: start; }
.adm .bl-nav { position: sticky; top: 52px; display: flex; flex-direction: column; border: 1px solid #2a2c26; max-height: 78vh; overflow: auto; }
.adm .bl-nav a { position: relative; display: block; padding: 6px 30px 5px 10px; color: var(--g2); text-shadow: none; text-decoration: none; border-bottom: 1px solid #1a1c18; font-size: 17px; line-height: 1.05; }
.adm .bl-nav a small { display: block; font-size: 13px; color: #5a7a5a; letter-spacing: 1px; }
.adm .bl-nav a:hover { background: #142014; color: var(--g); }
.adm .bl-nav a b { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-weight: normal; font-size: 15px; color: #1a1205; background: var(--a); padding: 0 6px; border-radius: 8px; }
.adm .bl-g { margin-bottom: 22px; scroll-margin-top: 60px; }
.adm .bl-g header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 1px solid #3a3d35; padding-bottom: 4px; margin-bottom: 10px; }
.adm .bl-g h5 { margin: 0; font: inherit; font-size: 24px; color: var(--a); text-shadow: var(--aglow); letter-spacing: 2px; }
.adm .bl-g header span { color: #7a947a; font-size: 16px; flex: 1; }
.adm .bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.adm .bl-c { position: relative; border: 1px solid #263a2c; background: linear-gradient(180deg, #0d140e, #080b08); padding: 8px 10px 7px; transition: border-color .15s; }
.adm .bl-c:hover { border-color: #3f6a4a; }
.adm .bl-c.chg { border-color: var(--a2); background: linear-gradient(180deg, #19130a, #0b0906); box-shadow: inset 3px 0 0 var(--a); }
.adm .bl-c.uns::after { content: 'UNSAVED'; position: absolute; right: 8px; bottom: 6px; font-size: 12px; letter-spacing: 1px; color: #8fd0ff; }
.adm .bl-l { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; font-size: 16px; letter-spacing: 1px; color: #cfe9d6; min-height: 2.2em; line-height: 1.05; }
.adm .bl-rs { flex: none; background: none; border: 1px solid var(--a2); color: var(--a); font-size: 13px; letter-spacing: 1px; padding: 0 6px; cursor: pointer; line-height: 1.4; }
.adm .bl-rs:hover { background: #2a2010; }
.adm .bl-v { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.adm .bl-v input.bl-n { width: 110px; font-size: 28px; padding: 0 6px; line-height: 1.1; color: var(--g); text-shadow: var(--glow); background: #040704; border: 1px solid #2f5a3c; }
.adm .bl-c.chg .bl-v input.bl-n { color: var(--a); text-shadow: var(--aglow); border-color: var(--a2); }
.adm .bl-v em { font-style: normal; color: #7a947a; font-size: 16px; } .adm .bl-d { font-style: normal; color: var(--a); font-size: 15px; margin-left: auto; }
.adm input.bl-r { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 2px 0; background: transparent; cursor: pointer; }
.adm input.bl-r::-webkit-slider-runnable-track { height: 6px; border: 1px solid #2f5a3c; background: linear-gradient(90deg, transparent calc(var(--d) - 1px), #ffb547 calc(var(--d) - 1px), #ffb547 calc(var(--d) + 1px), transparent calc(var(--d) + 1px)), linear-gradient(90deg, #2c8a4c var(--p), #0c160e var(--p)); }
.adm input.bl-r::-moz-range-track { height: 6px; border: 1px solid #2f5a3c; background: linear-gradient(90deg, transparent calc(var(--d) - 1px), #ffb547 calc(var(--d) - 1px), #ffb547 calc(var(--d) + 1px), transparent calc(var(--d) + 1px)), linear-gradient(90deg, #2c8a4c var(--p), #0c160e var(--p)); }
.adm input.bl-r::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 18px; margin-top: -7px; background: var(--g); border: 1px solid #0a1a0c; box-shadow: var(--glow); }
.adm input.bl-r::-moz-range-thumb { width: 12px; height: 18px; border-radius: 0; background: var(--g); border: 1px solid #0a1a0c; box-shadow: var(--glow); }
.adm .bl-c.chg input.bl-r::-webkit-slider-thumb { background: var(--a); box-shadow: var(--aglow); } .adm .bl-c.chg input.bl-r::-moz-range-thumb { background: var(--a); }
.adm .bl-def { font-size: 15px; color: #7a947a; letter-spacing: .5px; line-height: 1.2; padding-right: 54px; }
.adm .bl-def b { color: #ffcf7a; font-weight: normal; } .adm .bl-def span { color: #4a644a; }
.adm .bl-def small { display: block; font-size: 14px; color: #5f7a5f; margin-top: 1px; }
@media (max-width: 760px) { .adm .bl-main { grid-template-columns: 1fr; } .adm .bl-nav { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; } .adm .bl-nav a { flex: 1 1 45%; } }
.scr .box h4 { margin: 14px 0 4px; }
.beta-banner { border-color: var(--a2, #a87a2a) !important; } /* 0.25.16 */
