@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #07090d; --side: rgba(8, 11, 17, .62); --surface: rgba(13, 17, 26, .66); --surface2: rgba(255, 255, 255, .05); --surface3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14); --solid: #121722;
  --glass: blur(18px) saturate(1.2); --r: 4px; --r-sm: 2px;
  --text: #e9edf5; --text2: #b6bfd0; --muted: #7e889d; --dim: #566178;
  --accent: #f6c744; --accent-ink: #171200; --accent-soft: rgba(246, 199, 68, .12);
  --ok: #3fd38f; --warn: #f3a63b; --bad: #f4585d; --info: #5fa8f5;
  --shadow: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 10px 30px rgba(0, 0, 0, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 380px; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 260px at 78% -40px, rgba(246, 199, 68, .07), transparent 70%), radial-gradient(700px 240px at 20% -60px, rgba(95, 168, 245, .06), transparent 70%); }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
h2 { font-size: 14px; color: var(--text); }
h3 { font-size: 13px; margin: 20px 0 8px; color: var(--muted); font-weight: 600; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.bad { color: var(--bad); }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
[hidden] { display: none !important; }
::selection { background: rgba(246, 199, 68, .3); }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 14px; background: var(--side); border-right: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 11px; padding: 4px 10px 18px; color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent-ink);
  background: linear-gradient(145deg, #ffe08a, var(--accent) 55%, #d9a421); box-shadow: 0 4px 14px rgba(246, 199, 68, .25); }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 400; transition: background .15s, color .15s; }
.menu a:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.menu a.on { background: var(--surface3); color: var(--text); }
.menu a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.menu a.on svg { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.pulse { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pulse .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.pulse.live .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 211, 143, .6); animation: ping 2s infinite; }
.pulse.down .dot { background: var(--bad); }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(63, 211, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 211, 143, 0); } }
.pulse .p-name { font-size: 12px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse .p-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px 0; }
.me .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface3); color: var(--text2); font-weight: 700; font-size: 12px; text-transform: uppercase; flex: none; }
.me .who { min-width: 0; flex: 1; line-height: 1.25; }
.me .who a { color: var(--text); font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 12px; color: var(--muted); }
.me form { margin: 0; }
.iconbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border-radius: var(--r-sm); background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--surface2); color: var(--text); border-color: var(--line); text-decoration: none; }
a.lang { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 8px; }
a.lang:hover { color: var(--text); border-color: var(--line2); text-decoration: none; }
.content { min-width: 0; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1520px; margin: 0 auto; padding: 28px 32px 20px; flex: 1; }
main.bare { max-width: 480px; }
footer { color: var(--dim); font-size: 12px; padding: 14px 32px 26px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card > h2:first-child, .card-h { margin-bottom: 14px; }
.card.narrow { max-width: 460px; }
.card.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.card.head h1 { font-size: 22px; }
.grid { display: grid; gap: 14px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.grid.cards .card { margin: 0; }
.grid.form3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cols .card { margin: 0; }
.top-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: stretch; }
.top-grid > .card { display: flex; flex-direction: column; }
.top-grid .card { margin-bottom: 16px; }
.stat .k { color: var(--muted); font-size: 12px; font-weight: 400; }
.stat .v { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.02em; margin-top: 2px; }
.stat .v.small { font-size: 16px; letter-spacing: -.01em; margin: 6px 0 2px; word-break: break-word; }
.stat .sub { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row.between { justify-content: space-between; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.row.mid { align-items: center; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; background: var(--surface); }
th.n { text-align: right; }
th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
th.sortable:hover { color: var(--text); }
th.sorted { color: var(--accent); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.tablewrap { overflow: auto; max-height: calc(100vh - 330px); min-height: 280px; border: 1px solid var(--line); border-radius: var(--r); }
.tablewrap thead th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--line); }
.tablewrap tbody tr:last-child td { border-bottom: 0; }

/* ---------- controls ---------- */
input, select, textarea { height: 38px; background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; font: inherit; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 9px 12px; }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237e889d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
select option { background: var(--surface2); }
input[type=search] { appearance: none; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, select:hover { border-color: var(--line2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
label { display: flex; flex-direction: column; gap: 6px; }
label > span { color: var(--muted); font-size: 12px; font-weight: 400; }
label.inline { flex-direction: row; align-items: center; gap: 8px; color: var(--text2); }
.row > input:not([type=checkbox]) { flex: 1; min-width: 160px; }
button, .btn { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--surface2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
button:hover, .btn:hover { background: var(--surface3); text-decoration: none; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, .iconbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary, .login button, .card.narrow button, form button:not([class]):not(.link):not([type=button]) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover, .login button:hover, .card.narrow button:hover, form button:not([class]):not(.link):not([type=button]):hover { background: #ffd35e; }
button.ghost { background: transparent; border-color: var(--line); color: var(--text2); }
button.ghost:hover { background: var(--surface2); color: var(--text); }
button.warn { background: rgba(243, 166, 59, .1); border-color: rgba(243, 166, 59, .35); color: var(--warn); }
button.warn:hover { background: rgba(243, 166, 59, .18); }
button.danger { background: rgba(244, 88, 93, .1); border-color: rgba(244, 88, 93, .35); color: var(--bad); }
button.danger:hover { background: rgba(244, 88, 93, .18); }
button.solid-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.solid-danger:hover { background: #ff6a6f; }
button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
button.link { height: auto; padding: 0; background: none; border: 0; color: var(--muted); }
button.link:hover { background: none; color: var(--text); }
td button, .acts button { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }

.flash { padding: 11px 14px; border-radius: var(--r); margin-bottom: 14px; border: 1px solid var(--line2); background: var(--surface2); }
.flash.error { border-color: rgba(244, 88, 93, .4); background: rgba(244, 88, 93, .08); color: #ff9a9d; }
.flash.ok { border-color: rgba(63, 211, 143, .4); background: rgba(63, 211, 143, .08); color: var(--ok); }
.tag { display: inline-flex; align-items: center; height: 19px; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: var(--r-sm); background: var(--surface3); color: var(--text2); margin-left: 7px; vertical-align: middle; }
.tag.hs { background: rgba(255, 138, 76, .14); color: #ff9a64; }
.tag.tk { background: rgba(244, 88, 93, .14); color: var(--bad); }
.tag.on { background: rgba(63, 211, 143, .14); color: var(--ok); }
.tag.new { background: rgba(95, 168, 245, .15); color: var(--info); }
.tag.flag { background: var(--accent-soft); color: var(--accent); }
.tag.warnn { background: rgba(243, 166, 59, .15); color: var(--warn); }
.chip { display: inline-block; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 11px; margin: 0 6px 6px 0; }

/* ---------- console ---------- */
.announce { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.announce select { min-width: 112px; font-weight: 600; }
.announce input { flex: 1; }
.announce button { padding: 0 24px; height: 38px; }
.factions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; }
.faction { display: flex; flex-direction: column; justify-content: space-between; position: relative; border-radius: var(--r); padding: 14px 16px 16px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; transition: background .3s, border-color .3s; }
.faction.lead { border-color: color-mix(in srgb, var(--fc) 45%, var(--line)); background: color-mix(in srgb, var(--fc) 8%, var(--surface2)); }
.faction .fname { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 7px; color: var(--text2); }
.faction .fname::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 10px var(--fc); }
.faction .fscore { font-size: 46px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 8px 0 12px; }
.faction .meter { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.faction .meter i { display: block; height: 100%; border-radius: 3px; background: var(--fc); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.match-head h2, .top-grid h2 { margin: 0; }
.top-grid > .card > h2:first-child { margin-bottom: 14px; }
.match-head .ctrl { display: flex; gap: 8px; flex-wrap: nowrap; }
.match-head .ctrl select { width: 168px; }
.match-head .ctrl select#sel-actions { width: 118px; }
.match-head select { height: 34px; font-size: 13px; }
.match-head button { height: 34px; }
.match-body { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px; align-items: stretch; flex: 1; }
.clockbox { display: flex; flex-direction: column; justify-content: center; padding-right: 8px; }
.clockbox .k { color: var(--muted); font-size: 12px; font-weight: 400; }
.clock { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }
.maptile { border-radius: var(--r); min-height: 96px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, hsl(var(--h) 38% 22%), hsl(calc(var(--h) + 45) 36% 11%)); }
.maptile.art { background: var(--img) center / cover no-repeat, linear-gradient(135deg, hsl(var(--h) 38% 22%), hsl(calc(var(--h) + 45) 36% 11%)); min-height: 120px; }
.maptile.art::before { display: none; }
.maptile.art::after { background: linear-gradient(0deg, rgba(5, 8, 14, .82), rgba(5, 8, 14, .1) 65%); }
.maptile.art .badge { background: rgba(5, 8, 14, .55); padding: 2px 8px; border-radius: 999px; }
.maptile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(180px 90px at 85% 0, rgba(255, 255, 255, .12), transparent 70%); }
.maptile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 14, .6), transparent 70%); }
.maptile > * { position: relative; z-index: 1; }
.maptile .badge { position: absolute; top: 10px; left: 12px; font-size: 12px; font-weight: 700; color: var(--accent); }
.maptile .mt { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.maptile .ms { font-size: 12px; color: #c4cee4; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 28px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-item .k { font-size: 12px; color: var(--muted); font-weight: 400; }
.meta-item .v { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.meta-item .v.mono { font-size: 12px; font-weight: 400; color: var(--text2); }
.meta-item.wide { grid-column: span 2; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.board-head h2 { margin: 0; }
.board-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pills { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r); }
.pill { height: 28px; padding: 0 12px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.pill:hover { background: var(--surface3); color: var(--text); }
.pill.on { background: var(--surface3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
#board-search { width: 230px; padding-left: 36px; background-repeat: no-repeat; background-position: 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237e889d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
table.board td { padding: 8px 12px; height: 54px; }
.pl .pcell { display: flex; align-items: center; gap: 11px; }
.fdot { width: 9px; height: 9px; border-radius: 50%; background: var(--fc, var(--dim)); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--fc, transparent) 60%, transparent); }
.pl .pname { font-weight: 600; line-height: 1.3; }
.pl .pname a { color: var(--text); }
.pl .pname a:hover { color: var(--accent); text-decoration: none; }
.pl.flagged .pname a { color: var(--bad); }
.pl .psid { color: var(--dim); font-size: 12px; font-family: var(--mono); line-height: 1.3; }
.pl .num { font-variant-numeric: tabular-nums; }
.pl .num.dim { color: var(--muted); }
.pl .num.hot { color: var(--warn); font-weight: 600; }
.pl .num.streak { color: var(--accent); font-weight: 700; }
.rowtools { display: flex; gap: 4px; justify-content: flex-end; }
.rowtools .iconbtn { width: 30px; height: 30px; border-color: var(--line); }
.rowtools .iconbtn.warnc:hover { color: var(--warn); border-color: rgba(243, 166, 59, .5); }
.skeleton { height: 14px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--surface2), var(--surface3), var(--surface2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* popover menu */
.pop { position: fixed; z-index: 40; min-width: 200px; padding: 6px; background: var(--surface2); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop .head { padding: 8px 10px 6px; font-size: 12px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop button { width: 100%; height: 34px; justify-content: flex-start; gap: 10px; border: 0; background: transparent; font-weight: 400; border-radius: var(--r-sm); padding: 0 10px; color: var(--text2); }
.pop button:hover { background: var(--surface3); color: var(--text); }
.pop button.danger { color: var(--bad); }
.pop button.danger:hover { background: rgba(244, 88, 93, .14); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }

/* ---------- feed / lists ---------- */
.feed { list-style: none; margin: 0; padding: 0; max-height: 540px; overflow-y: auto; }
.feed li { padding: 9px 4px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.feed li:last-child { border-bottom: 0; }
.feed .t { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.feed .arrow { color: var(--dim); }
.feed .w { color: var(--muted); font-size: 12px; }
.feed a { color: var(--text); font-weight: 600; }
.feed a:hover { color: var(--accent); text-decoration: none; }
.feed a.tk { color: var(--bad); }
.feed li.in { background: linear-gradient(90deg, rgba(244, 88, 93, .1), transparent); }
.feed li.out { background: linear-gradient(90deg, rgba(63, 211, 143, .1), transparent); }
.bars .bar { display: grid; grid-template-columns: 74px 1fr 40px; gap: 10px; align-items: center; margin: 7px 0; }
.bars .lb { color: var(--text2); font-size: 12px; }
.bars .fill { background: var(--surface3); border-radius: 4px; height: 8px; overflow: hidden; }
.bars .fill i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--info), #7cc0ff); }
.bars .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 96px; align-items: end; }
.hours div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hours i { display: block; width: 100%; background: linear-gradient(0deg, var(--info), #7cc0ff); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.hours div:hover i { opacity: 1; }
.hours span { font-size: 12px; color: var(--dim); height: 16px; }

/* ---------- kill feed ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.kf-total { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.kf-total b { color: var(--text); font-size: 16px; font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
table.kf td { vertical-align: top; padding: 12px; }
table.kf .time { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 400; }
table.kf .time .sub { display: block; }
table.kf .sub { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
table.kf .person { font-weight: 600; cursor: pointer; }
table.kf .person:hover { text-decoration: underline; }
table.kf .sid { font-family: var(--mono); font-size: 12px; color: var(--dim); }
table.kf .sid a { color: inherit; }
table.kf .sid a:hover { color: var(--info); text-decoration: none; }
table.kf .srv { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 12px; }
table.kf td.n { white-space: nowrap; }
table.kf tr.hot td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
table.kf tr.hot { background: linear-gradient(90deg, rgba(244, 88, 93, .12), rgba(244, 88, 93, .03)); }
.hits { display: flex; gap: 5px; flex-wrap: wrap; }
.hit { height: 20px; padding: 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border-radius: var(--r-sm); border: 0; background: var(--surface3); color: var(--text2); }
.hit:hover { background: var(--line2); color: var(--text); }
.hit.hs { background: rgba(255, 138, 76, .15); color: #ff9a64; }
.hit.wb { background: rgba(244, 88, 93, .18); color: #ff7b80; }
.weapon { cursor: pointer; font-weight: 600; }
.weapon:hover { text-decoration: underline; }

/* ---------- login / users / dialog ---------- */
.login { margin: 12vh auto 0; padding: 30px; }
.login .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login .brandline .mark { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; font-weight: 700; color: var(--accent-ink); background: linear-gradient(145deg, #ffe08a, var(--accent) 55%, #d9a421); }
.login h1 { font-size: 22px; }
.login form, .card.narrow form { display: flex; flex-direction: column; gap: 14px; }
.login button { height: 40px; margin-top: 6px; }
.userbox { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--surface2); }
.perms { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions button { height: 34px; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r); padding: 22px; width: min(460px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(4, 6, 10, .72); backdrop-filter: blur(3px); }
dialog[open] { animation: dlg .16s ease-out; }
@keyframes dlg { from { opacity: 0; transform: translateY(8px) scale(.98); } }
dialog label { margin-top: 12px; }
dialog input, dialog select, dialog textarea { width: 100%; }
dialog h3 { color: var(--text); font-size: 16px; margin: 0 0 6px; font-weight: 600; }
dialog p { margin: 0; font-size: 13px; }
#toast { position: fixed; right: 20px; bottom: 20px; padding: 12px 16px; border-radius: var(--r); background: var(--surface3); border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(10px); transition: .22s; pointer-events: none; max-width: min(420px, 86vw); z-index: 60; font-weight: 400; }
#toast.show { opacity: 1; transform: none; }
#toast.ok { border-left: 3px solid var(--ok); } #toast.err { border-left: 3px solid var(--bad); color: #ffb0b3; }

/* ---------- responsive ---------- */
.mbar, .mobile-only { display: none; }
@media (max-width: 1100px) { .match-head .ctrl { flex-wrap: wrap; } .top-grid { grid-template-columns: 1fr; } .cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.userbox > button { align-self: flex-start; }

/* brand logo image */
.logo img.mark, .login img.mark { width: 34px; height: 34px; border-radius: 0; background: none; box-shadow: none; object-fit: contain; display: block; }
.login img.mark { width: 44px; height: 44px; }
.logo { padding-left: 8px; gap: 12px; }
.login .brandline img.mark { width: 44px; height: 44px; background: none; border-radius: 0; box-shadow: none; display: block; }

/* ---------- phones & small tablets ---------- */
@media (max-width: 860px) {
  .mobile-only { display: inline-flex; }
  select.mobile-only { display: block; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .app { display: block; }
  .mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 9px 14px; background: rgba(13, 17, 25, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mbar .logo { padding: 0; gap: 9px; font-size: 16px; }
  .mbar .grow { flex: 1; }
  .mbar form { margin: 0; }
  .mbar .live { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .mbar .live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
  .mbar .live.on .dot { background: var(--ok); box-shadow: 0 0 8px rgba(63, 211, 143, .6); }
  .mbar .live.down .dot { background: var(--bad); }
  .mbar a.lang { padding: 6px 10px; }
  .avatar-link { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface3); color: var(--text2); font-weight: 700; font-size: 13px; text-transform: uppercase; }
  .avatar-link:hover { text-decoration: none; color: var(--text); }

  .side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; z-index: 35; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 0;
    border-right: 0; border-top: 1px solid var(--line); background: rgba(13, 17, 25, .96); backdrop-filter: blur(12px); overflow: visible; }
  .side .logo, .side .side-foot { display: none; }
  .menu { flex: 1; flex-direction: row; justify-content: space-around; gap: 0; }
  .menu a { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; height: 54px; padding: 0 2px; font-size: 12px; border-radius: var(--r); }
  .menu a span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu a.on::before { display: none; }
  .menu a svg { width: 22px; height: 22px; }

  main { padding: 16px 14px 6px; }
  footer { padding: 6px 14px 14px; }
  h1 { font-size: 22px; }
  .page-head { margin-bottom: 14px; }
  .card { padding: 14px; border-radius: var(--r); margin-bottom: 12px; overflow-x: auto; }
  .card table:not(.board):not(.kf):not(.fit):not(.plist) { min-width: 460px; }
  .cols, .top-grid { gap: 12px; }
  .grid.cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat .v { font-size: 22px; }

  /* form controls: 16px stops iOS from zooming on focus; 44px is a comfortable touch height */
  input, select, textarea { font-size: 16px; height: 44px; }
  button, .btn { height: 42px; }
  td button { height: 34px; }
  .row > input:not([type=checkbox]) { flex: 1 1 100%; min-width: 0; }
  .announce { flex-wrap: wrap; padding: 12px; }
  .announce select { order: 1; flex: 0 0 124px; }
  .announce button { order: 2; flex: 1; }
  .announce select#ann-target { order: 3; flex: 1 1 100%; }
  .announce input { order: 4; flex: 1 1 100%; }

  .factions { gap: 8px; }
  .faction { padding: 12px; }
  .faction .fscore { font-size: 34px; margin: 6px 0 10px; }
  .match-head { flex-direction: column; align-items: stretch; }
  .match-head .ctrl { flex-wrap: wrap; }
  .match-head .ctrl select, .match-head .ctrl select#sel-actions { width: auto; flex: 1 1 140px; height: 42px; }
  .match-head .ctrl button { flex: 1 1 100%; height: 44px; }
  .match-body { grid-template-columns: 1fr 1fr; }
  .clockbox { grid-column: 1 / -1; }
  .clock { font-size: 36px; }
  .meta { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .meta-item.wide { grid-column: 1 / -1; }

  /* scoreboard -> player cards */
  .board-head { flex-direction: column; align-items: stretch; }
  .board-tools { flex-direction: column; align-items: stretch; }
  #board-search { width: 100%; }
  .pills { width: 100%; overflow-x: auto; }
  .pill { flex: 1 0 auto; height: 34px; }
  .tablewrap { max-height: none; border: 0; overflow: visible; min-height: 0; }
  table.board, table.board tbody { display: block; }
  table.board thead { display: none; }
  table.board tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  table.board tr:last-child { border-bottom: 0; }
  table.board td { display: block; height: auto; padding: 0; border: 0; text-align: left; }
  table.board td:first-child { grid-column: 1 / 3; grid-row: 1; min-width: 0; }
  table.board td:last-child { grid-column: 3; grid-row: 1; justify-self: end; }
  table.board td.num { font-weight: 600; font-size: 16px; }
  table.board td.num::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 400; color: var(--dim); margin-bottom: 1px; }
  table.board td.cash { display: none; }
  .rowtools .iconbtn { width: 38px; height: 38px; }
  .pl .pname { word-break: break-word; }

  /* kill feed -> cards */
  .filters { grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
  .filters .adv { display: none; grid-column: 1 / -1; }
  .filters.open .adv { display: block; }
  .filters.open button.adv { display: inline-flex; }
  .kf-total b { font-size: 22px; }
  table.kf, table.kf tbody { display: block; }
  table.kf thead { display: none; }
  table.kf tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
  table.kf td { display: block; padding: 0; border: 0; min-width: 0; }
  table.kf td.time { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  table.kf td.time .sub { display: inline; }
  table.kf td.matchc, table.kf td.srv { display: none; }
  table.kf td.killer::before, table.kf td.victim::before { content: attr(data-label); display: block; font-size: 12px; color: var(--dim); }
  table.kf td.hitsc { grid-column: 1 / -1; }
  table.kf td.hitsc.empty { display: none; }
  table.kf td.weaponc { grid-column: 1; }
  table.kf td.dist { grid-column: 2; text-align: right; }
  table.kf tr.hot td:first-child { box-shadow: none; }
  table.kf tr.hot { box-shadow: inset 3px 0 0 var(--bad); padding-left: 10px; }

  .card.head { flex-direction: column; }
  .actions button { flex: 1 1 auto; height: 40px; }
  .perms { gap: 10px 16px; }
  .userbox > button { align-self: stretch; }

  dialog { margin: auto 0 0; width: 100%; max-width: none; border-radius: var(--r) var(--r) 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .pop button { height: 44px; }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; left: 12px; max-width: none; }
}

@media (max-width: 860px) {
  .board-head, .board-tools, .board-head > *, .board-tools > * { min-width: 0; max-width: 100%; }
  .pills { display: flex; max-width: 100%; }
  .pill { flex: 0 0 auto; }
  #board-search, #board-sort { width: 100%; }
}

/* ---------- insights ---------- */
input[type=date] { color-scheme: dark; height: 36px; }
.range-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.range-dates { display: flex; gap: 8px; align-items: center; }
.range-note { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 1100px) { #kpis { grid-template-columns: repeat(5, 1fr); } }  /* 10 tiles: two full rows */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .k { color: var(--muted); font-size: 12px; font-weight: 400; }
.tile .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 3px 0 2px; }
.tile .sub { font-size: 12px; color: var(--dim); min-height: 16px; }
.ins-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ins-grid .card { margin: 0; min-width: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title h2 { margin: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); }
.lg i { width: 16px; height: 3px; border-radius: 2px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
svg text.ax { fill: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.tip { position: fixed; z-index: 70; pointer-events: none; min-width: 130px; padding: 9px 12px; background: var(--surface3); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); }
.tip-title { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.tip-row { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.6; }
.tip-row i { width: 10px; height: 3px; border-radius: 2px; flex: none; }
.tip-row b { font-variant-numeric: tabular-nums; }
.tip-row span { color: var(--muted); }
.heat { display: grid; grid-template-columns: 40px repeat(24, minmax(0, 1fr)); gap: 2px; }
.heat .hh { font-size: 12px; color: var(--dim); height: 14px; font-variant-numeric: tabular-nums; }
.heat .hd { font-size: 12px; color: var(--muted); align-self: center; }
.hc { height: 26px; border-radius: 3px; display: block; }
.hc.none { background: var(--surface2); }
.hc:hover, .hc:focus-visible { outline: 2px solid var(--text); outline-offset: -1px; }
.heat-scale { display: flex; align-items: center; gap: 3px; margin-top: 12px; justify-content: flex-end; font-size: 12px; color: var(--dim); }
.heat-scale i { width: 22px; height: 8px; border-radius: 2px; }
.heat-scale span { margin: 0 4px; font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 64px; align-items: center; gap: 10px; padding: 5px 4px; border-radius: var(--r-sm); }
.hbar:hover, .hbar:focus-visible { background: rgba(255, 255, 255, .035); outline: none; }
.hb-label { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 10px; background: rgba(57, 135, 229, .1); border-radius: 0 4px 4px 0; }
.hb-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hb-val { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.chart-sm { display: flex; gap: 10px; align-items: stretch; height: 210px; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; border-radius: var(--r-sm); }
.col:hover, .col:focus-visible { background: rgba(255, 255, 255, .035); outline: none; }
.col-bar { width: 100%; max-width: 24px; flex: 1; display: flex; align-items: flex-end; }
.col-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.col-val { font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.col-lbl { font-size: 12px; color: var(--dim); white-space: nowrap; }
.stack { display: flex; gap: 2px; height: 14px; margin: 4px 0 14px; }
.stack .seg { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
table.mini th, table.mini td { padding: 7px 8px; }
table.mini .key, td .key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.tbl-tools { display: flex; gap: 10px; margin-bottom: 12px; }
.tbl-tools input[type=search] { flex: 1; min-width: 0; }
.tbl-tools input[type=number] { width: 130px; }
.tablewrap.short { max-height: 430px; min-height: 0; }
.tablewrap table td .tag { margin-left: 8px; }
details.tv { margin-top: 12px; }
details.tv summary { cursor: pointer; color: var(--muted); font-size: 12px; width: fit-content; }
details.tv summary:hover { color: var(--text); }
details.tv .scroll { max-height: 260px; overflow: auto; margin-top: 8px; }
.ins-loading { opacity: .55; transition: opacity .15s; }
@media (max-width: 1100px) { .ins-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 12px 14px; } .tile .v { font-size: 22px; }
  .range-note { margin-left: 0; width: 100%; }
  .range-dates { width: 100%; } .range-dates input[type=date] { flex: 1; min-width: 0; height: 44px; }
  .heat { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 1px; } .hc { height: 20px; }
  .hbar { grid-template-columns: minmax(70px, 40%) 1fr 56px; }
  .tbl-tools input[type=number] { width: 104px; }
  .tablewrap.short { max-height: 380px; overflow: auto; border: 1px solid var(--line); }
  .tablewrap.short table:not(.fit) { min-width: 520px; }
  .chart-sm { height: 190px; gap: 6px; } .col-lbl { font-size: 12px; }
}
.tile .v.sm { font-size: 16px; line-height: 1.5; margin: 6px 0 3px; }
@media (max-width: 860px) { .range-dates { flex-wrap: wrap; } .range-dates input[type=date] { min-width: 150px; } }

.kpis.small { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 18px; }
.kpis.small .tile { box-shadow: none; background: var(--surface2); }
.kpis.small .tile .v { font-size: 22px; }
.ins-grid.inner { margin-bottom: 0; }
.ins-grid.inner h3 { margin-top: 0; }
.card .ins-grid.inner > div > h3:not(:first-child) { margin-top: 20px; }
table.cohort td.cell { font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; }
table.cohort td.cell.none { color: var(--dim); background: transparent; font-weight: 400; }
table.cohort th.n { text-align: center; }
table.cohort td, table.cohort th { padding: 8px 10px; }
p.note { margin: 14px 0 0; font-size: 12px; }

/* ---------- design pass: command-centre look ---------- */
body::before { inset: 0; height: auto; background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(7, 9, 13, .68), rgba(7, 9, 13, .78) 30%, rgba(7, 9, 13, .9) 70%, #07090d), var(--page-art, linear-gradient(160deg, #1a2333, #07090d 60%));
  background-position: center; background-size: cover; background-repeat: no-repeat; filter: saturate(.85); transition: background-image .6s; }
.card, .side, .sus, .tile, .stat { backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
/* tactical touches: corner brackets, mono headings */
.card, .sus { position: relative; }
.card::after, .sus::after { content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: .75;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / 10px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) 0 0 / 1px 10px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 10px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) 100% 100% / 1px 10px no-repeat; }
.stat .k, .tile .k { color: var(--text2); font-size: 13px; font-weight: 600; }
.stat .sub, .tile .sub { color: var(--muted); }
.tile .v .u, .stat .v .u { font-size: .52em; font-weight: 600; letter-spacing: 0; margin: 0 .18em 0 .1em; }
th { font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; background: transparent; }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, 0) 46%), var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 12px 32px rgba(0, 0, 0, .3); }
.card > h2:first-child, .board-head h2 { display: flex; align-items: center; gap: 9px; font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.card > h2:first-child::before, .board-head h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(246, 199, 68, .55); flex: none; }
.card > h2 .muted { font-weight: 400; font-size: 12px; }
.menu a.on { background: linear-gradient(90deg, rgba(246, 199, 68, .13), rgba(255, 255, 255, .02)); box-shadow: 0 0 0 1px rgba(246, 199, 68, .14) inset; }
.menu a.on::before { box-shadow: 0 0 12px rgba(246, 199, 68, .7); }
/* active menu item "G" on desktop (user, 2026-10-26): solid dark tile + orange left line, no gold gradient frame/glow */
@media (min-width: 861px) {
  .menu a.on { background: #1b2029; box-shadow: none; color: var(--text); border-radius: 2px 6px 6px 2px; }
  .menu a.on::before { left: 0; top: 0; bottom: 0; width: 2px; border-radius: 0; background: #ff6a2b; box-shadow: none; }
  .menu a.on svg { color: #ff6a2b; }
}
button.primary, .login button, .card.narrow button, form button:not([class]):not(.link):not([type=button]) {
  background: linear-gradient(180deg, #ffd964, var(--accent)); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 6px 18px rgba(246, 199, 68, .22); }
button.primary:hover, .login button:hover, .card.narrow button:hover, form button:not([class]):not(.link):not([type=button]):hover { background: linear-gradient(180deg, #ffe27d, #f9cf55); }
.stat, .tile { position: relative; overflow: hidden; transition: transform .18s, border-color .18s; }
.stat::after, .tile::after { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(246, 199, 68, .7); }
.stat:hover, .tile:hover { transform: translateY(-2px); border-color: var(--line2); }
.stat .v, .tile .v { background: linear-gradient(180deg, #fff, #c9d3e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .v.bad { background: none; color: var(--bad); }
.tile { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 60%), var(--surface); }

/* hero banner */
.hero { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line2); margin-bottom: 16px; min-height: 250px; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 18px 50px rgba(0, 0, 0, .4); }
.hero-bg { position: absolute; inset: 0; z-index: -2; transform: scale(1.04); transition: opacity .4s;
  background: linear-gradient(135deg, hsl(var(--h, 215) 38% 22%), hsl(calc(var(--h, 215) + 45) 36% 9%)); }
.hero.art .hero-bg { background: var(--img) center 42% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 10, 16, .92) 0%, rgba(7, 10, 16, .6) 48%, rgba(7, 10, 16, .25) 100%), linear-gradient(0deg, rgba(7, 10, 16, .75), transparent 55%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .14) 50%) 0 0 / 100% 3px; opacity: .35; }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main ctrl" "stats stats"; gap: 22px 18px; padding: 24px 26px 22px; min-height: 250px; align-content: space-between; }
.hero-main { grid-area: main; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 211, 143, .6); animation: ping 2s infinite; }
.hero-map { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin-top: 6px; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.hero-sub { color: #cdd6e8; margin-top: 4px; font-size: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero .ctrl { grid-area: ctrl; display: flex; gap: 8px; align-self: start; flex-wrap: wrap; justify-content: flex-end; }
.hero .ctrl select { width: 168px; height: 34px; font-size: 13px; background-color: rgba(10, 14, 22, .6); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.hero .ctrl select#sel-actions { width: 118px; }
.hero .ctrl button { height: 34px; }
.hero-stats { grid-area: stats; display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.hstat { min-width: 150px; padding: 11px 16px; border-radius: var(--r); background: rgba(10, 14, 22, .55); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; }
.hstat .k { color: #aab5cc; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.hstat .clock { font-size: 34px; }
.hstat .hv { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hstat .hv span { font-size: 16px; font-weight: 600; color: var(--muted); }
.hmeter { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 7px; }
.hmeter i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--ok), #7be8b9); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.hero-next { margin-left: auto; width: 250px; display: flex; }
.hero-next .maptile { flex: 1; min-height: 96px; padding-top: 30px; border-color: rgba(255, 255, 255, .16); border-radius: var(--r); }

/* faction score cards */
.scorecard { padding-bottom: 20px; }
.factions { gap: 14px; }
.faction { padding: 16px 18px 18px; border-radius: var(--r); border-color: color-mix(in srgb, var(--fc) 22%, var(--line));
  background: radial-gradient(260px 120px at 100% 0, color-mix(in srgb, var(--fc) 20%, transparent), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .025), transparent), var(--surface2); }
.faction::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fc); box-shadow: 0 0 16px var(--fc); }
.faction.lead { border-color: color-mix(in srgb, var(--fc) 60%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc) 30%, transparent), 0 8px 30px color-mix(in srgb, var(--fc) 16%, transparent); }
.faction .ftop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.faction .fname { font-size: 13px; letter-spacing: .02em; }
.faction .fcount { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.faction .fscore { font-size: 58px; margin: 10px 0 14px; text-shadow: 0 0 28px color-mix(in srgb, var(--fc) 35%, transparent); }
.faction .meter { height: 6px; }
.faction .meter i { box-shadow: 0 0 12px var(--fc); }

/* scoreboard */
table.board tbody tr.pl td:first-child { box-shadow: inset 3px 0 0 var(--fc, transparent); }
table.board td.kills { font-weight: 700; color: var(--text); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fc, var(--info)) 20%, transparent) var(--p, 0%), transparent calc(var(--p, 0%) + .1%)) no-repeat; background-position: right; background-size: 100% 70%; }
table.board tbody tr:nth-child(-n+3) td.kills { color: var(--accent); }
.tablewrap { background: rgba(0, 0, 0, .12); }

@media (max-width: 1100px) { .hero-next { margin-left: 0; } }
@media (max-width: 860px) {
  .hero, .hero-body { min-height: 0; }
  .hero-body { grid-template-columns: 1fr; grid-template-areas: "main" "ctrl" "stats"; padding: 18px 16px; }
  .hero-map { font-size: 32px; }
  .hero .ctrl { justify-content: flex-start; }
  .hero .ctrl select { flex: 1; min-width: 0; width: auto; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-next { grid-column: 1 / -1; width: auto; }
  .hstat .clock { font-size: 28px; }
  .faction .fscore { font-size: 44px; }
}
@media (max-width: 860px) {
  .faction .fcount { display: none; }
  .faction { padding: 14px 12px 14px 14px; }
  table.board td.kills { background: none; }
}
svg path.ln { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }

/* kill feed pager */
.kf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.kf-bar .kf-total { margin: 0; }
.pager { display: flex; align-items: center; gap: 6px; }
.pager.bottom { justify-content: center; margin-top: 14px; }
.pager button { height: 32px; padding: 0 12px; font-size: 13px; }
.pager .pg-jump { width: 64px; height: 32px; text-align: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.pager .pg-of { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 28px; }
#kf-size { height: 34px; width: auto; min-width: 110px; font-size: 13px; }
@media (max-width: 860px) { .pager { width: 100%; justify-content: center; } .pager button { padding: 0 9px; } }

/* player-name suggestions */
.sg { position: relative; min-width: 0; }
.sg > input { width: 100%; }
.sg-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 5px; list-style: none; min-width: 280px; max-height: 340px; overflow-y: auto;
  background: var(--surface2); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: pop .12s ease-out; }
.sg-list li { padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.sg-list li.on, .sg-list li:hover { background: var(--surface3); }
.sg-list .sg-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-list .sg-sub { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.sg-list .sg-empty { color: var(--muted); cursor: default; }
.sg-list .sg-empty:hover { background: none; }
@media (max-width: 860px) { .filters .sg.adv { display: none; } .filters.open .sg.adv { display: block; } .sg-list { min-width: 0; } }

/* cheat review */
.sus-tabs { margin-bottom: 12px; }
.sus-tabs .pill { display: inline-flex; align-items: center; text-decoration: none; }
.sus-base { font-size: 12px; margin: 0 0 14px; }
.sus-list { display: flex; flex-direction: column; gap: 14px; }
.sus { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 50%), var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 10px 28px rgba(0, 0, 0, .28); scroll-margin-top: 20px; }
.card .sus { background: none; border: 0; box-shadow: none; padding: 0; }
.sus.high { border-color: rgba(244, 88, 93, .45); box-shadow: inset 3px 0 0 var(--bad), 0 10px 28px rgba(0, 0, 0, .28); }
.sus:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.sus-name { font-size: 16px; font-weight: 700; color: var(--text); }
.sus-sid { margin-top: 2px; }
.sus-paths { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.sus-paths .path { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(244, 88, 93, .14); color: #ff8f93; }
.ev { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev li { padding: 8px 11px; border-radius: var(--r-sm); background: var(--surface2); border: 1px solid var(--line); color: var(--text2); font-size: 13px; }
.ev li b { color: var(--text); margin-right: 6px; }
.ev li.strong { border-color: rgba(244, 88, 93, .4); background: rgba(244, 88, 93, .07); }
.sus-clears { margin-top: 10px; padding: 8px 11px; border-radius: var(--r-sm); border: 1px solid rgba(63, 211, 143, .28); background: rgba(63, 211, 143, .05); font-size: 13px; color: var(--text2); }
.sus-clears b { color: var(--ok); }
.sus-clears ul { margin: 4px 0 0; padding-left: 18px; }
.ev .odds { float: right; margin-left: 12px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.ev li.strong .odds { color: #ff8f93; font-weight: 600; }
.sus-sessions { font-size: 12px; margin-top: 8px; }
.steamfacts { margin-top: 12px; padding: 11px 13px; border-radius: var(--r); border: 1px dashed var(--line2); }
.sf-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sf-title a { margin-left: 8px; font-weight: 400; }
.steamfacts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px 16px; margin: 0; }
.steamfacts dt { font-size: 12px; color: var(--muted); }
.steamfacts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.steamfacts .bad dd { color: var(--bad); }
.sf-risk { margin-top: 8px; font-size: 12px; color: var(--warn); }
.sus-acts { margin-top: 12px; align-items: center; }
.sus-acts .btn { height: 34px; }
@media (max-width: 860px) { .ev .odds { float: none; display: block; margin: 2px 0 0; } }

.verdict { margin-top: 12px; padding: 11px 13px; border-radius: var(--r); font-size: 14px; line-height: 1.6; color: var(--text2);
  background: var(--surface2); border: 1px solid var(--line2); }
.verdict b { color: var(--text); }
.verdict.high { background: rgba(244, 88, 93, .1); border-color: rgba(244, 88, 93, .45); }
.verdict.high b { color: #ffb0b3; }

/* /suspects inbox: one row per player, newest flag first, click to expand the evidence card */
.sus-help { font-size: 12px; margin: 0 0 12px; }
.sus-help summary { cursor: pointer; width: fit-content; }
.sus-help p { margin: 6px 0 0; }
.sus-inbox { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.sus-row + .sus-row { border-top: 1px solid var(--line); }
.sus-row > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 16px; }
.sus-row > summary::-webkit-details-marker { display: none; }
.sus-row > summary:hover, .sus-row[open] > summary { background: var(--surface3); }
.sus-row.high > summary { box-shadow: inset 3px 0 0 var(--bad); }
.sus-row.fresh:not(.high) > summary { box-shadow: inset 3px 0 0 var(--info); }
.sr-name { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.sr-name .tag:first-of-type { margin-left: 8px; }
.sr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 0 3px rgba(63, 211, 143, .18); flex: none; }
.sr-why { font-size: 13px; color: var(--text2); }
.sr-when { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.6; white-space: nowrap; }
.sr-when b { color: var(--text); font-weight: 600; }
.sus-row .sus { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding-top: 6px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sus-row .sus-head .sus-name, .sus-row .sus-head .tag { display: none; }
@media (max-width: 860px) {
  .sus-row > summary { grid-template-columns: 1fr; padding: 11px 12px; }
  .sr-when { grid-row: auto; grid-column: 1; text-align: left; white-space: normal; }
  .sus-row .sus { padding: 4px 12px 14px; }
}

/* automation */
.announce-form { display: flex; flex-direction: column; gap: 14px; }
.ann-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px 18px; align-items: start; }
.ann-grid small { font-size: 12px; margin-top: 2px; }
.ann-preview { padding: 11px 13px; border-radius: var(--r); background: var(--surface2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ann-preview .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.announce-form > button { align-self: flex-start; }
@media (max-width: 860px) { .ann-grid { grid-template-columns: 1fr; } }

/* auto-punish: rule list, strike log, rule editor (chips like the tag pickers in other admin tools) */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rule-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rule-main { flex: 1; min-width: 0; }
.rule-name { font-weight: 600; color: var(--text); }
.rule-sub { font-size: 13px; margin-top: 3px; }
.strikes tr.is-test td { color: var(--text2); }
.strikes tr.is-cancelled td { opacity: .5; text-decoration: line-through; }
.strikes tr.is-cancelled td:last-child { text-decoration: none; }
.st { font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-done { color: var(--bad); } .st-test { color: var(--info); } .st-pending { color: var(--warn); }
.st-failed { color: var(--bad); text-decoration: underline dotted; } .st-none, .st-expired, .st-cancelled, .st-new { color: var(--muted); }
.punish-form h3 { margin: 18px 0 8px; color: var(--text2); }
.punish-form h3 .muted { font-weight: 400; margin-left: 6px; }
.rule-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px 18px; align-items: start; }
.rule-grid small { font-size: 12px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
label.pick, span.pick { position: relative; flex-direction: row; align-items: center; gap: 6px; cursor: pointer; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--surface2); color: var(--text); font-size: 14px; user-select: none; }
label.pick > span { color: inherit; font-size: inherit; font-weight: 400; }
label.pick input { position: absolute; opacity: 0; pointer-events: none; }
label.pick:hover { border-color: var(--muted); }
label.pick:has(input:checked), span.pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
label.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
span.pick { display: inline-flex; cursor: default; }
span.pick button.link { color: inherit; font-size: 16px; line-height: 1; }
.members { margin-top: 10px; font-size: 13px; }
.members summary { cursor: pointer; color: var(--muted); }
.members dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 10px 0; }
.members dt { color: var(--text2); } .members dd { margin: 0; color: var(--muted); }
#weapon-chips { margin-top: 10px; }
.step { display: grid; grid-template-columns: 110px 150px 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--text2); }
label.step-days { flex-direction: row; align-items: center; gap: 6px; }
label.step-days input { width: 70px; }
label.step-days[hidden] { display: flex !important; visibility: hidden; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 860px) {
  .rule-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr 1fr; }
  .step-n, .step-reason { grid-column: 1 / -1; }
  .rule-row { align-items: flex-start; }
  .members dl { grid-template-columns: 1fr; }
}

/* floating layers sit over translucent cards, so they need an opaque surface */
.pop, .tip, #toast, .sg-list, dialog { background: var(--solid); }
select option { background: var(--solid); }
.tablewrap thead th { background: rgba(12, 16, 24, .94); }
/* phones: blur over a fixed background is costly, use near-opaque surfaces instead */
@media (max-width: 860px) {
  :root { --surface: rgba(13, 17, 26, .9); }
  .card, .sus, .tile, .stat { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- phones, second pass (2026-10-23): less crowding on ~350-400 px screens ---------- */
@media (max-width: 860px) {
  /* tab bar: 4 main pages + 更多; 更多 grows the bar upward into a sheet listing every page */
  .menu a:not(.pri), .menu .menu-out { display: none; }
  .menu-more, .menu-out button { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; padding: 0 2px;
    font-size: 12px; font-weight: 400; color: var(--muted); background: none; border: 0; border-radius: var(--r); box-shadow: none; }
  .menu-more span, .menu-out span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-more svg, .menu-out svg { width: 22px; height: 22px; }
  .menu-more.on, .menu-more[aria-expanded=true] { color: var(--text); background: var(--surface3); }
  .menu-more.on svg { color: var(--accent); }
  .menu a { font-size: 12px; }
  /* active tab "G" (user, 2026-10-26): solid dark tile + orange top line, replaces the gold gradient frame */
  .menu a.on { background: #1b2029; box-shadow: none; color: var(--text); border-radius: 4px 4px 10px 10px; }
  .menu a.on::before { display: block; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; border-radius: 0; background: #ff6a2b; box-shadow: none; }
  .menu a.on svg { color: #ff6a2b; }
  .side.open { box-shadow: 0 -20px 50px rgba(0, 0, 0, .55); }
  .side.open .menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 4px; padding-top: 6px; }
  .side.open .menu a:not(.pri), .side.open .menu .menu-out { display: flex; }
  .side.open .menu .menu-out button { width: 100%; height: 100%; }
  .side.open .menu a, .side.open .menu-more, .side.open .menu-out button { height: 62px; }
  .menu-scrim { position: fixed; inset: 0; z-index: 34; background: rgba(4, 6, 10, .6); backdrop-filter: blur(2px); }
  .menu-scrim[hidden] { display: none; }

  /* header: one line */
  .mbar { padding: 8px 12px; gap: 8px; }
  .mbar .logo .wordmark { white-space: nowrap; }
  .mbar img.mark { width: 28px; height: 28px; }
  .mbar a.lang { padding: 5px 8px; font-size: 12px; }
  .avatar-link { width: 30px; height: 30px; }

  main { padding: 12px 12px 6px; }
  h1 { font-size: 22px; }
  .page-head { margin-bottom: 10px; }
  .page-head p { font-size: 13px; margin-top: 2px; }
  .card { padding: 12px; margin-bottom: 10px; }

  /* broadcast: mode + text + send on one row; the whisper target drops to its own row */
  .announce { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .announce select, .announce select:first-child { order: 0; width: auto; min-width: 0; flex: none; padding-right: 26px; }
  .announce input { order: 0; flex: none; }
  .announce button { order: 0; flex: none; padding: 0 16px; height: 44px; }
  .announce select#ann-target { grid-column: 1 / -1; grid-row: 2; }

  /* hero: never wider than the screen */
  .hero { margin-bottom: 10px; }
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 12px; }
  .hero-map { font-size: 28px; }
  .hero-sub { font-size: 13px; overflow-wrap: anywhere; }
  .hero .ctrl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .hero .ctrl button { grid-column: 1 / -1; height: 42px; }
  .hero .ctrl select, .hero .ctrl select#sel-actions { width: 100%; min-width: 0; height: 42px; }
  .hero-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .hstat { min-width: 0; padding: 9px 12px; }
  .hstat .clock { font-size: 22px; }
  .hstat .hv { font-size: 22px; }
  .hero-next .maptile { min-height: 78px; }

  /* faction scores: three narrow columns, so smaller type and names that may shorten */
  .factions { gap: 6px; }
  .faction { padding: 10px 8px 10px 11px; }
  .faction .fname { font-size: 12px; min-width: 0; }
  .faction .fname, .faction .ftop { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .faction .fscore { font-size: 32px; margin: 4px 0 8px; }
}
@media (max-width: 860px) { .menu-out button.menu-btn, .menu-out button.menu-btn:hover { background: none; box-shadow: none; color: #ff9da1; } }
@media (max-width: 860px) { .announce select#ann-mode { max-width: 30vw; text-overflow: ellipsis; } }
@media (max-width: 860px) {
  /* short ranking tables fit the screen instead of scrolling sideways: tight cells, long names wrap */
  table.fit th, table.fit td { padding: 9px 5px; font-size: 14px; }
  table.fit th { font-size: 12px; }
  table.fit th:first-child, table.fit td:first-child { padding-left: 2px; width: 1%; }
  table.fit th:last-child, table.fit td:last-child { padding-right: 2px; }
  table.fit td:nth-child(2) { overflow-wrap: break-word; line-height: 1.35; }
  table.fit .ph-hide { display: none; }
  table.sortable-table.fit { table-layout: fixed; }
  table.sortable-table.fit th:first-child { width: 36%; }
  table.sortable-table.fit td:first-child { overflow-wrap: anywhere; line-height: 1.35; }
  table.sortable-table.fit th { white-space: normal; }
  table.sortable-table.fit th, table.sortable-table.fit td { padding: 8px 4px; font-size: 13px; overflow-wrap: anywhere; }
  table.sortable-table.fit th { font-size: 12px; }
  table.sortable-table.fit th:last-child, table.sortable-table.fit td:last-child { padding-right: 6px; }
  table.sortable-table.fit th:first-child, table.sortable-table.fit td:first-child { padding-left: 8px; }
  table.sortable-table.fit td:first-child .tag { display: table; margin: 3px 0 0; white-space: nowrap; }
  table.sortable-table.fit th:first-child, table.sortable-table.fit td:first-child { padding-left: 8px; }
}

/* map rotation editor (/match) */
.rot-note { margin: 0 0 12px; font-size: 13px; }
.rot-top { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.rot-mode { display: flex; align-items: center; gap: 8px; margin: 0; }
.rot-mode select { width: 140px; }
.rot-hint { font-size: 13px; margin: 8px 0 12px; }
.rot-list { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); max-height: 560px; overflow-y: auto; }
.rot-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.rot-list li:last-child { border-bottom: 0; }
.rot-list li.editing { background: rgba(246, 199, 68, .08); box-shadow: inset 3px 0 0 var(--accent); }
.rot-list li.unknown .rot-title { color: var(--bad); }
.rot-drag { flex: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 6px 4px; margin: -6px -4px; }
.rot-drag:hover { color: #ff6a2b; }
.rot-list.sorting { user-select: none; -webkit-user-select: none; }
.rot-list.sorting .rot-drag { cursor: grabbing; }
.rot-list li.dragging { background: #1b2029; box-shadow: inset 3px 0 0 #ff6a2b; position: relative; z-index: 1; }
.rot-n { width: 22px; flex: none; color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }
.rot-main { flex: 1; min-width: 0; }
.rot-title { font-weight: 600; }
.rot-sub { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.rot-sub.bad { color: var(--bad); }
.rot-btns { display: flex; gap: 4px; flex: none; }
.rot-btns button { height: 28px; min-width: 30px; padding: 0 8px; font-size: 12px; }
.rot-btns button.off { opacity: .3; pointer-events: none; }
.rot-btns button.danger-text { color: #ff9da1; }
.rot-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.rot-form label { margin: 0; }
.rot-form select { width: 100%; }
.rot-mods { display: flex; gap: 18px; align-items: center; grid-column: 1 / 3; min-height: 34px; }
.rot-form-btns { grid-column: 3 / 5; display: flex; gap: 8px; justify-content: flex-end; }
.rot-save { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .rot-list { max-height: none; }
  .rot-list li { flex-wrap: wrap; gap: 6px 10px; padding: 10px 8px; }
  .rot-btns { width: 100%; padding-left: 32px; }
  .rot-btns button { flex: 1; height: 34px; min-width: 0; padding: 0 4px; }
  .rot-form { grid-template-columns: 1fr 1fr; }
  .rot-mods, .rot-form-btns { grid-column: 1 / -1; }
  .rot-form-btns button, .rot-save button { flex: 1; }
}

/* two-step login (account page) */
.card.narrow + .card.narrow { margin-top: 16px; }
.ok-text { color: var(--ok); font-weight: 600; }
.card.narrow .steps { margin: 4px 0 14px; padding-left: 20px; line-height: 1.7; }
.card.narrow img.qr { display: block; width: 200px; height: 200px; padding: 10px; background: #fff; border-radius: var(--r-sm); margin: 6px 0 10px; }
.card.narrow code.secret { font-family: var(--mono); letter-spacing: .06em; user-select: all; word-break: break-all; }
.card.narrow ul.codes { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: var(--mono); font-size: 16px; }
.card.narrow ul.codes li { padding: 6px 10px; background: var(--solid); border: 1px solid var(--line); border-radius: var(--r-sm); text-align: center; user-select: all; }
.card.narrow details.danger-zone { margin-top: 18px; }
.card.narrow details.danger-zone summary { cursor: pointer; color: var(--muted); width: fit-content; margin-bottom: 12px; }
.card.narrow button.danger { background: rgba(244, 88, 93, .1); border-color: rgba(244, 88, 93, .35); color: var(--bad); }
.card.narrow button.danger:hover { background: rgba(244, 88, 93, .18); }
.login p.muted { margin: 0 0 14px; line-height: 1.6; }

/* server settings (/settings) */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; align-items: start; }
.set-grid .wide { grid-column: 1 / -1; }
.set-grid label > span { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.set-grid .tag { margin-left: 4px; }
.set-grid small { font-size: 12px; margin-top: 2px; }
.set-grid label.changed input, .set-grid label.changed select { border-color: var(--accent); }
.pw-box { display: flex; flex-direction: column; gap: 8px; }
.set-save { display: flex; align-items: center; justify-content: flex-end; gap: 10px; position: sticky; bottom: 12px; z-index: 5; background: var(--solid); }
.set-save #set-dirty { margin-right: auto; }
.set-foot { font-size: 12px; }
@media (max-width: 860px) {
  .set-grid { grid-template-columns: 1fr 1fr; }
  .set-save { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) { .set-grid { grid-template-columns: 1fr; } }

/* account: phone push notifications */
.card.push { max-width: 640px; }
.card.push h3 { margin: 20px 0 10px; font-size: 13px; color: var(--text2); }
.push-status { margin: 6px 0 12px; }
.push-devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.push-devices li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.push-help { margin-top: 18px; }
.push-help summary { cursor: pointer; color: var(--text2); }
.push-help .steps { margin: 10px 0 0; padding-left: 20px; line-height: 1.7; }

/* ---- /visits (owner-only website traffic) ---- */
.vbar { display: grid; grid-template-columns: minmax(84px, 36%) 1fr 44px; align-items: center; gap: 10px; padding: 5px 0; }
.vbar .vl { color: var(--text2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbar .vf { background: var(--surface3); border-radius: 2px; height: 8px; overflow: hidden; }
.vbar .vf i { display: block; height: 100%; background: #3987e5; border-radius: 2px; }
.vbar .vn { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text); }
.vdays { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 18px; }
.vd { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 18px; }
.vd i { display: block; width: 100%; max-width: 34px; background: #3987e5; border-radius: 2px 2px 0 0; min-height: 1px; }
.vd .vv { font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.vd .vx { position: absolute; bottom: 0; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.vd.pre i { background: var(--surface3); }
.vhours { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.vh { flex: 1; height: 100%; position: relative; }
.vh b, .vh i { position: absolute; bottom: 0; border-radius: 2px 2px 0 0; min-height: 1px; }
.vh b { left: 0; right: 0; background: var(--surface3); }
.vh i { left: 22%; right: 22%; background: #d95926; }
.vh.future i { display: none; }
.vaxis { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 6px; }
.lg i.c-today { background: #d95926; }
.lg i.c-yday { background: rgba(255, 255, 255, .25); }
.vtoday { display: grid; grid-template-columns: 220px 180px 1fr; gap: 28px; align-items: center; }
.vtoday .k { color: var(--muted); font-size: 12px; }
.vt-big { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 4px 0; }
.vtoday .sub { font-size: 13px; color: var(--text2); }
.vtoday .up { color: var(--ok); } .vtoday .down { color: var(--bad); }
.vt-side { display: grid; gap: 12px; }
.vt-side div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.vt-side b { font-size: 22px; font-variant-numeric: tabular-nums; }
.vt-chart h3 { margin: 0; }
.vt-chart .card-title { margin-bottom: 10px; }
p.note { font-size: 12px; margin-top: 4px; }
@media (max-width: 860px) {
  .vtoday { grid-template-columns: 1fr; gap: 18px; }
  .vdays { gap: 2px; }
  .vd .vv { display: none; }
  .vd:nth-child(odd) .vx { visibility: hidden; }
}
.vbar .vl.vp { display: flex; align-items: center; min-width: 0; }
.vbar .vl.vp .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vbar .vl.vp .tag { flex: none; margin-left: 6px; }

/* players list + join/team log (/players) */
.plist .pl-name { display: inline-flex; align-items: center; gap: 7px; }
.plist .on-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.plist .nowrap { white-space: nowrap; }
.plist td .tag { margin-left: 0; }
.tag.ev-join { background: rgba(63, 211, 143, .14); color: var(--ok); }
.tag.ev-leave { background: var(--surface3); color: var(--muted); }
.tag.ev-team { background: rgba(95, 168, 245, .14); color: var(--info); }
.sus-tabs + .card .row select { width: auto; }
@media (max-width: 860px) {
  .plist { width: 100%; }
  .plist .ph-hide { display: none; }
  .plist td a { overflow-wrap: anywhere; }
  .plist td.n, .plist .tag, .plist td:last-child { white-space: nowrap; overflow-wrap: normal; }
}

/* ---------- type pass (2026-10-25): CJK fonts have only Regular/Bold, so only 400 / 600 / 700 ----------
   400 body, labels, menu, table heads, secondary numbers; 600 names, buttons, titles, active menu; 700 h1 + big numbers. */
.menu a.on { font-weight: 600; }
table.kf td { color: var(--text2); }
table.kf .time { color: var(--text); font-weight: 400; }
table.kf .matchc div:first-child { font-variant-numeric: tabular-nums; }
table.kf .person { font-weight: 600; }
table.kf .sid { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0; margin-top: 2px; }
table.kf .weapon { font-weight: 400; color: var(--text); }
table.kf td.dist { font-variant-numeric: tabular-nums; }
.fdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---------- dashboard "B3" (2026-10-26): broadcast strip + score plates + one tinted scoreboard; dashboard only ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }
body[data-page="dashboard"] {
  --accent: #ff6a2b; --accent-ink: #111; --accent-soft: rgba(255, 106, 43, .14); --ok: #2fd27a; --bad: #ff4d4d;
  --d-card: #0f1218; --d-card2: #171b23; --d-line: #232a35; --d-line2: #191e27;
  --num: "Barlow Condensed", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
body[data-page="dashboard"]::before { background: #07080c; filter: none; }
body[data-page="dashboard"] .card { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 4px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-page="dashboard"] .card::after { display: none; }
body[data-page="dashboard"] .card > h2:first-child, body[data-page="dashboard"] .board-head h2 { font: 600 14px/1.4 var(--font); text-transform: none; letter-spacing: 0; }
body[data-page="dashboard"] .card > h2:first-child::before, body[data-page="dashboard"] .board-head h2::before { display: none; }
body[data-page="dashboard"] button.primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; border-color: var(--accent); }
body[data-page="dashboard"] button.primary:hover { background: #ff7d45; }
body[data-page="dashboard"] th { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 12px; }

.dstrip { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.dstrip .lv { background: var(--ok); color: #04150b; font: 700 13px/1 var(--num); letter-spacing: .08em; padding: 4px 9px; border-radius: 2px; }
.dstrip .lv.off { background: var(--bad); color: #fff; }
.dstrip .dmap { font: 800 36px/1 var(--num); text-transform: uppercase; letter-spacing: .02em; }
.dstrip .dm { color: var(--muted); font-size: 13px; white-space: nowrap; }
.dstrip .dm b { color: var(--text); font: 700 16px var(--num); font-variant-numeric: tabular-nums; }
.dstrip .sp { flex: 1; }
.dstrip .dbtns { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.dstrip .pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--d-line); border-radius: 15px; color: var(--muted); font-weight: 400; }
.dstrip .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dstrip .pill.bad { color: var(--bad); } .dstrip .pill.bad .dot { background: var(--bad); }
.dstrip button.ghost.on { background: var(--d-card2); color: var(--text); }
.dpanel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; margin-bottom: 12px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 4px; }
.dpanel select { width: auto; min-width: 150px; }
.dpanel #ann-text { flex: 1; min-width: 200px; }

.bug { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 8px 12px; }
.plate { position: relative; height: 96px; background: #10141b; transform: skewX(-12deg); overflow: hidden; }
.plate::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--fc, #555), transparent 75%); opacity: .13; }
.plate.lead::before { opacity: .26; }
.plate .in { position: relative; transform: skewX(12deg); display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 30px; }
.plate .nm { font: 700 22px/1.1 var(--num); text-transform: uppercase; letter-spacing: .03em; }
.plate .pc { color: var(--muted); font-size: 12px; }
.plate .gp { font: 600 14px var(--num); color: var(--muted); margin-top: 2px; }
.plate.lead .gp { color: var(--fc); }
.plate .sc { margin-left: auto; font: 800 60px/1 var(--num); font-variant-numeric: tabular-nums; }
.plate.lead .sc { color: var(--fc); }
.plate .track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .07); }
.plate .fill { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--fc); transition: width .8s cubic-bezier(.2, .8, .2, 1); }

.watchbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 10px 14px; margin-bottom: 12px; border-left: 3px solid var(--accent); background: #15110f; border-radius: 0 4px 4px 0; }
.watchbar .t { color: var(--accent); font-weight: 600; }
.watchbar .wp { display: inline-flex; align-items: center; gap: 8px; }
.watchbar .wp > a:not(.btn):not(.tag) { color: var(--text); font-weight: 600; }
.watchbar .kd { color: var(--dim); font-size: 13px; }
.watchbar .btn, .watchbar button { height: 30px; padding: 0 12px; font-size: 13px; }

.dgrid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(320px, 1fr); gap: 12px; align-items: start; }
.dside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.dside > * { min-width: 0; }
.kp3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kp3 .stat { padding: 12px 14px; display: block; color: inherit; }
.kp3 .stat .v { font: 700 30px/1.15 var(--num); margin-top: 2px; }
.kp3 .stat .sub { font-size: 12px; }
.sus-k { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-left: 3px solid var(--accent) !important; color: inherit; text-decoration: none; }
.sus-k:hover { text-decoration: none; background: #13161d; }
.sus-k .k { color: var(--text2); font-weight: 600; }
.sus-k .v { font: 700 30px/1 var(--num); color: var(--accent); }
.sus-k .sub { margin-left: auto; color: var(--muted); font-size: 13px; }
.sus-k.ph-only { display: none; }

/* scoreboard: every row tinted with its faction colour */
.sb .board-head { margin-bottom: 10px; }
.sb .tablewrap { max-height: none; min-height: 0; overflow: visible; }   /* 加载更多 grows the page, no inner scroll */
.sb .tablewrap thead th { background: var(--d-card); }
.sb table.board th.rk, .sb table.board td.rk { width: 34px; padding-right: 0; }
.sb table.board td { height: 46px; padding: 4px 10px; border-bottom: 1px solid #07080c; }
.sb table.board tbody tr.pl { background: linear-gradient(90deg, color-mix(in srgb, var(--fc) 24%, transparent), color-mix(in srgb, var(--fc) 7%, transparent) 45%, transparent 85%); box-shadow: inset 3px 0 var(--fc); }
.sb table.board tbody tr.pl.flagged { outline: 1px solid var(--accent); outline-offset: -1px; }
.sb .pl .pname a, .sb .pl.flagged .pname a { color: var(--text); }
.sb .pl .pcell { gap: 10px; }
.sb .pl .fdot { display: none; }
.sb .pl .psid { font-family: var(--font); font-size: 12px; }
.sb .pl .pname { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.sb table.board td.num { white-space: nowrap; }
.sb .rowtools { flex-wrap: nowrap; }
.sb td.num { font: 600 16px var(--num); }
.sb td.num.kills { font-size: 16px; }
.sb td.num.kd { color: var(--text); }
td.rk, .rk { font: 700 16px var(--num); color: var(--dim); }
.rk.r1 { color: #e8b931; } .rk.r2 { color: #c3cbd6; } .rk.r3 { color: #c9824a; }
img.av, span.av { width: 28px; height: 28px; border-radius: 5px; flex: none; object-fit: cover; background: var(--d-card2); }
.watchbar .av { width: 24px; height: 24px; }
.sb .more { display: block; width: 100%; height: 40px; margin-top: 10px; background: var(--d-card2); border: 1px solid var(--d-line); color: var(--text2); font-weight: 600; }
.sb .more:hover { color: var(--text); }

/* kill feed: a bar in the killer's faction colour, names stay white (dots, 2026-10-25) */
body[data-page="dashboard"] .feed { max-height: none; }
body[data-page="dashboard"] .feed li { border-left: 3px solid var(--kc, transparent); padding: 7px 10px; border-bottom-color: var(--d-line2); align-items: center; }
body[data-page="dashboard"] .feed .t { font: 600 13px var(--num); }
/* two lines per kill: killer → victim, then time · weapon · tags (the side column is narrow) */
body[data-page="dashboard"] .feed li { flex-wrap: wrap; white-space: nowrap; gap: 2px 6px; }
body[data-page="dashboard"] .feed li::before { content: ""; order: 1; flex-basis: 100%; height: 0; }
body[data-page="dashboard"] .feed li > a { overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 46%; }
body[data-page="dashboard"] .feed .t, body[data-page="dashboard"] .feed .w, body[data-page="dashboard"] .feed .tag { order: 2; }
body[data-page="dashboard"] .feed .w { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

@media (max-width: 1600px) {
  .sb .rowtools .iconbtn:not([data-menu]) { display: none; }
  .sb table.board td.hist, .sb table.board th:nth-child(10), .sb table.board td.cash, .sb table.board th:nth-child(8) { display: none; }
}
@media (max-width: 1280px) {
  .dgrid { grid-template-columns: 1fr; }
  .dside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dside .kp3, .dside .sus-k { grid-column: 1 / -1; } .dside .kp3 { order: -1; } .dside .sus-k { order: -2; }
}
@media (max-width: 860px) {
  .dstrip { gap: 6px 10px; } .dstrip .dmap { font-size: 28px; } .dstrip .sp, .dstrip .pill { display: none; }
  .dstrip button { height: 36px; } .dstrip button.primary { margin-left: auto; }
  .bug { gap: 6px; margin: 0 4px 12px; }
  .plate { height: 74px; transform: skewX(-8deg); }
  .plate .in { transform: skewX(8deg); flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding: 0 10px; }
  .plate .nm { font-size: 14px; } .plate .pc { display: none; } .plate .gp { font-size: 12px; } .plate .sc { margin: 0; font-size: 34px; }
  .watchbar { gap: 8px 14px; } .watchbar .wp { flex-wrap: wrap; } .watchbar .kd { white-space: nowrap; }
  .dside { grid-template-columns: 1fr; } .kp3 { grid-template-columns: 1fr 1fr; }
  .sus-k.ph-only { display: flex; margin-bottom: 12px; } .sus-k.dk-only { display: none; }
  /* phone scoreboard = slim table rows (not the generic card layout) */
  .sb table.board { display: table; table-layout: fixed; width: 100%; } .sb table.board tbody { display: table-row-group; }
  .sb table.board thead { display: table-header-group; }
  .sb table.board tr { display: table-row; }
  .sb table.board td, .sb table.board th { display: table-cell; padding: 0 5px; height: 44px; overflow: hidden; }
  .sb table.board td.num::before { content: none; }
  .sb table.board th:nth-child(n+6), .sb table.board td:nth-child(n+6) { display: none; }
  .sb table.board td:last-child, .sb table.board th:last-child { display: table-cell; width: 40px; }
  .sb table.board th.rk, .sb table.board td.rk { width: 24px; padding-left: 6px; }
  .sb table.board th.n { width: 28px; } .sb table.board th:nth-child(3) { width: 40px; } .sb table.board th:nth-child(5) { width: 38px; }
  .sb table.board th { white-space: nowrap; font-size: 12px; }
  .sb table.board td:last-child, .sb table.board th:last-child { width: 36px; padding: 0 2px; }
  .sb .pl .psid { display: none; } .sb .pl .pcell { gap: 7px; min-width: 0; } .sb .pl .pcell > div { min-width: 0; }
  .sb .pl .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
  .sb .pl .pname .tag { display: none; } .sb .pl .pname .tag.tk, .sb .pl .pname .tag.warnn, .sb .pl .pname .tag.flag { display: inline; }
  .sb img.av, .sb span.av { width: 24px; height: 24px; }
  .sb .rowtools .iconbtn:not([data-menu]) { display: none; }
  .sb .rowtools .iconbtn { width: 32px; height: 32px; }
}

/* long lists grow the page instead of scrolling inside a box (user, 2026-10-26: /kills 200/500 per page) */
.tablewrap.full { max-height: none; min-height: 0; overflow: visible; }
.tablewrap.full thead th { background: var(--solid); }
@media (min-width: 861px) and (max-width: 1300px) { .tablewrap.full { overflow-x: auto; } }   /* wide table: side-scroll only; height still grows */

/* dashboard team filter: all teams in one row on phones, no side-scroll (user, 2026-10-26) */
@media (max-width: 860px) {
  #pills { overflow: visible; gap: 2px; }
  #pills .pill { flex: 1 1 auto; min-width: 0; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* map rotation rows: the map + lighting picture behind each row, fading out to the left under the text ("A", user 2026-10-26; B/C in /root/rotart-variants/) */
.rot-list li.art { background: linear-gradient(90deg, rgba(11,13,17,.95) 0%, rgba(11,13,17,.82) 45%, rgba(11,13,17,.30) 100%), var(--art) center / cover; }
.rot-list li.art .rot-title { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.rot-list li.art .rot-btns button { background: rgba(11,13,17,.72); }

/* /bans/external on phones: the name column was squeezed to one letter per line */
@media (max-width: 860px) {
  table.extb td:first-child { min-width: 92px; overflow-wrap: anywhere; }
  table.extb td:first-child .mono { font-size: 12px; }
}

/* ---- highlight clips (player page card + /clips) ---- */
.clip-up { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.clip-up .muted { font-size: 13px; flex: 1; min-width: 220px; }
.clip-pick { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--r-sm); background: #ff6a2b; color: #fff; font-weight: 600; cursor: pointer; }
.clip-up.busy .clip-pick { opacity: .5; pointer-events: none; }
.clip-prog { flex-basis: 100%; display: grid; gap: 6px; }
.clip-prog .bar { height: 6px; border-radius: 99px; background: var(--surface3); overflow: hidden; }
.clip-prog .bar i { display: block; height: 100%; width: 0; background: #ff6a2b; transition: width .2s; }
.clip-prog .t { font-size: 13px; color: var(--text2); }
.clip-list { display: grid; gap: 10px; }
.clip-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.clip-item.hidden-clip, .clip-item.hidden { opacity: .6; }
.clip-item .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface3); display: grid; place-items: center; }
.clip-item .thumb img, .clip-item .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-item .thumb video { object-fit: contain; background: #000; }
.clip-item .clip-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #ff6a2b; display: grid; place-items: center; cursor: pointer; padding: 0; }
.clip-item .clip-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.clip-item .info { display: grid; gap: 4px; min-width: 0; }
.clip-item .info .muted { font-size: 13px; overflow-wrap: anywhere; } .clip-item .err { color: var(--bad); }
.clip-item .tag { margin-left: 0; }
.tag.clip-ready { background: rgba(63, 211, 143, .14); color: var(--ok); }
.tag.clip-queued, .tag.clip-processing { background: rgba(95, 168, 245, .15); color: var(--info); }
.tag.clip-failed { background: rgba(244, 88, 93, .14); color: var(--bad); }
.clip-item .acts { display: flex; gap: 8px; }
@media (max-width: 860px) {
  .clip-item { grid-template-columns: 1fr; }
  .clip-item .acts { justify-content: flex-end; }
}

/* clans admin (2026-10-28) */
.clan-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.clan-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted, #8a93a0); }
.clan-form input { min-width: 160px; }
.clan-add { margin: 6px 0 14px; max-width: 520px; }
.clan-add input { width: 100%; }
.clan-results { list-style: none; margin: 6px 0 0; padding: 0; }
.clan-results li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.clan-results li > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .clan-form input { min-width: 0; width: 100%; } .clan-form label { flex: 1 1 100%; } }

/* scoreboard: Steam VAC / game bans under the name (recent = within 730 days, coloured; older = grey) */
.sb .bv { display: flex; align-items: center; gap: 5px; margin-top: 1px; line-height: 16px; white-space: nowrap; overflow: hidden; }
.sb .bv .psid { line-height: 16px; }
.sb .bc { flex: none; padding: 0 5px; border-radius: 3px; font-size: 12px; font-weight: 600; line-height: 15px; color: #9aa3b0; box-shadow: inset 0 0 0 1px #333a45; }
.sb .bv.recent .bc.vac { background: rgba(239, 68, 68, .16); color: #ff6b6b; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .45); }
.sb .bv.recent .bc.gb { background: rgba(255, 106, 43, .13); color: #ff8a55; box-shadow: inset 0 0 0 1px rgba(255, 106, 43, .4); }
.sb .bc.hot { background: #e5484d; color: #fff; box-shadow: none; }
/* player page temp-ban table: days + status never wrap */
.tbh td:nth-child(2), .tbh td:last-child, .tbh th { white-space: nowrap; }
/* our own temp-ban history (amber, apart from Steam's chips) */
.sb .bc.anon { background: rgba(155, 140, 230, .14); color: #b3a6f0; box-shadow: inset 0 0 0 1px rgba(155, 140, 230, .45); cursor: help; }
.sb .bc.tb { background: rgba(232, 185, 49, .14); color: #e8b931; box-shadow: inset 0 0 0 1px rgba(232, 185, 49, .45); cursor: help; }
.sb .ba { flex: none; font-size: 12px; color: var(--dim); }
.sb .ba:not(:last-child)::after { content: " ·"; }
@media (max-width: 860px) { .sb .bv { gap: 4px; } .sb .bc { padding: 0 4px; font-size: 12px; } .sb .ba { font-size: 12px; } .sb .ba:not(:last-child)::after { content: none; } }

/* ---------- "B3" on every page (2026-11-01, user: "其他都改"): the dashboard's look made panel-wide ----------
   orange accent, solid flat cards (no glass, no page map art, no gold corner brackets, no glow / gradient text),
   Barlow Condensed numbers, plain-case headings. The dashboard keeps its own extra rules above. */
:root {
  --bg: #07080c; --side: #0b0d12; --surface: #0f1218; --surface2: #171b23; --surface3: #1f242e; --solid: #121620;
  --line: #232a35; --line2: #2e3644; --glass: none; --shadow: none;
  --accent: #ff6a2b; --accent-ink: #111; --accent-soft: rgba(255, 106, 43, .14); --ok: #2fd27a; --bad: #ff4d4d;
  --num: "Barlow Condensed", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
@media (max-width: 860px) { :root { --surface: #0f1218; } }
::selection { background: rgba(255, 106, 43, .3); }
body::before { background: #07080c; background-image: none; filter: none; }
.card, .side, .sus, .tile, .stat, .hstat, .hero .ctrl select { backdrop-filter: none; -webkit-backdrop-filter: none; }
.card, .sus, .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
.card::after, .sus::after { display: none; }
.card > h2:first-child, .board-head h2 { font: 600 14px/1.4 var(--font); text-transform: none; letter-spacing: 0; }
.card > h2:first-child::before, .board-head h2::before { display: none; }
th { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 12px; }
.tablewrap thead th { background: var(--surface); }
button.primary, .login button, .card.narrow button, form button:not([class]):not(.link):not([type=button]) {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: none; }
button.primary:hover, .login button:hover, .card.narrow button:hover, form button:not([class]):not(.link):not([type=button]):hover { background: #ff7d45; }
/* stat tiles: flat, white Barlow numbers, a thin orange mark without glow, no lift on hover */
.stat::after, .tile::after { box-shadow: none; width: 28px; }
.stat:hover, .tile:hover { transform: none; }
.stat .v, .tile .v { background: none; color: var(--text); font-family: var(--num); letter-spacing: 0; }
.stat .v.bad { color: var(--bad); }
.stat .v.small { font-family: var(--font); }
/* brand marks, menu */
.logo .mark, .login .brandline .mark { background: var(--accent); box-shadow: none; }
.menu a.on { background: #1b2029; box-shadow: none; }
.menu a.on::before { background: var(--accent); box-shadow: none; }
.menu a.on svg { color: var(--accent); }
.pulse { background: var(--surface); }
@media (max-width: 860px) { .mbar, .side { background: #0b0d12; backdrop-filter: none; -webkit-backdrop-filter: none; } }
/* old hero / faction cards (no glow) and the rotation editor */
.hero-map, .hero-sub, .faction .fscore { text-shadow: none; }
.faction::before, .faction .meter i, .faction .fname::before { box-shadow: none; }
.faction { background: var(--surface); }
.faction .fscore { font-family: var(--num); }
.rot-list li.editing { background: var(--accent-soft); }
.step-n { font-family: var(--font); text-transform: none; }

/* welcome whisper + scheduled broadcasts (/automation/messages, 2026-11-02) */
.msg-form { display: flex; flex-direction: column; gap: 14px; }
.msg-form textarea { width: 100%; resize: vertical; }
.msg-btns { display: flex; gap: 10px; }
.bc-row { border-top: 1px solid var(--line); }
.bc-row > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 12px 0; }
.bc-row > summary::-webkit-details-marker { display: none; }
.bc-row > summary .rule-sub { flex: 1 1 100%; order: 3; margin-top: 2px; }
.bc-row > summary .btn { margin-left: auto; }
.bc-row[open] > summary .btn { visibility: hidden; }
.bc-row > .msg-form { padding: 4px 0 10px; }
.bc-del { padding-bottom: 14px; }
.bc-del .link.danger { color: var(--bad); }
.msg-form .ann-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.msg-form .ann-grid label.wide { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .msg-form .ann-grid { grid-template-columns: 1fr; }
  .sus-tabs { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 860px) { .msg-form textarea { height: auto; min-height: 96px; } .msg-form textarea[name=welcome_text] { min-height: 150px; } }

/* ---- server list (/servers) ---- */
.srv-ours { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 12px; border: 1px solid rgba(63, 211, 143, .35); background: rgba(63, 211, 143, .07); border-radius: var(--r); color: var(--ok); font-weight: 600; }
.srv-ours .on-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.srv-ours.off { border-color: rgba(244, 88, 93, .35); background: rgba(244, 88, 93, .07); color: var(--bad); }
.srv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.srv-tools input[type=search] { flex: 1 1 220px; min-width: 0; }
.srv-check { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); font-size: 13px; white-space: nowrap; }
.srv-count { margin: 4px 0 8px; font-size: 13px; }
.srv-refresh { margin-left: 6px; padding: 3px 12px; font-size: 13px; vertical-align: baseline; }
.srv-table td { vertical-align: middle; }
.srv-table .tag:first-of-type { margin-left: 8px; }
.srv-name { font-weight: 600; overflow-wrap: anywhere; }
.srv-zh { display: block; font-size: 12px; }
.srv-table td.n b { font-family: var(--num, inherit); }
.srv-full { color: var(--accent); }
.srv-bar { display: block; width: 64px; height: 3px; margin: 5px 0 0 auto; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.srv-bar i { display: block; height: 100%; width: 0; background: var(--ok); }
.srv-table tr.ours td { background: rgba(63, 211, 143, .06); }
@media (max-width: 860px) {
  .srv-tools .pills { width: 100%; }
  .srv-table .tag { margin-left: 0; margin-right: 5px; margin-top: 3px; }
  .srv-table .tag:first-of-type { margin-left: 0; }
  .srv-name { display: block; }
  .srv-bar { width: 44px; }
  table.fit.srv-table { table-layout: fixed; }
  table.fit.srv-table th:first-child, table.fit.srv-table td:first-child { width: auto; padding-left: 6px; }
  table.fit.srv-table th:nth-child(3), table.fit.srv-table td:nth-child(3) { width: 92px; }
  table.fit.srv-table th:nth-child(4), table.fit.srv-table td:nth-child(4) { width: 62px; }
  .srv-check { flex-direction: row; }
  .srv-tools input[type=search] { flex-basis: 100%; }
}

/* ---- sidebar: collapsible group 网站 + own scroll (desktop only; the phone sheet shows every item) ---- */
.menu-group-h { display: none; }
@media (min-width: 861px) {
  .side .menu { overflow-y: auto; min-height: 0; flex: 0 1 auto; scrollbar-width: thin; scrollbar-color: var(--surface3) transparent; margin-right: -6px; padding-right: 6px; }
  .menu-group-h { display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font: inherit; font-weight: 400; text-align: left; cursor: pointer; flex: none; }
  .menu-group-h:hover { background: var(--surface2); color: var(--text); }
  .menu-group-h .chev { margin-left: auto; width: 15px; height: 15px; transition: transform .15s; }
  .menu-group.open .menu-group-h .chev { transform: rotate(180deg); }
  .menu-group:not(.open) .menu-group-b { display: none; }
  .menu-group-b { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
  .menu-group-b a { padding-left: 24px; }
  .menu-group-b a.on::before { left: 0; }
}
@media (min-width: 861px) and (max-height: 860px) {
  .menu a, .menu-group-h { height: 33px; }
  .side { padding-top: 14px; }
}
@media (max-width: 860px) {
  .menu-group, .menu-group-b { display: contents; }
}

/* reserved slots: top-up button beside the name, lapsed rows dimmed (2026-11-04) */
.res-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res-name .actions { display: inline-flex; }
.res-name .res-topup { height: 24px; padding: 0 9px; font-size: 12px; color: #ff6a2b; border-color: rgba(255, 106, 43, .45); }
tr.lapsed td { color: var(--text3, #7d8592); }
tr.lapsed td a { opacity: .75; }

/* game server switch (/settings, 2026-11-04) + dashboard strip tag */
.srv-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#hero-srv { color: var(--accent); font-weight: 600; }

/* competitors (/servers/rivals, 2026-11-06) */
.rv-points { margin: 4px 0 12px; padding-left: 18px; line-height: 1.7; color: var(--text2); }
.rv-points b { color: var(--text); }
.rv-table .ok, .rv-points .ok { color: var(--ok); }
.rv-table tr.rv-row { cursor: pointer; }
.rv-table tr.rv-row:hover td, .rv-table tr.rv-row.open td { background: var(--surface3); }
.rv-table tr.ours td { background: rgba(63, 211, 143, .06); }
.rv-table .rv-n { display: block; font-size: 12px; }
.rv-table td.n, .rv-days td.n { font-family: var(--num, inherit); }
.rv-detail > td { background: var(--surface2, transparent); padding: 10px 12px 14px; }
.rv-days { font-size: 13px; }
.rv-note { margin: 6px 0 0; font-size: 12px; }
.rv-events { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.rv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 0; }
.rv-full { font-size: 12px; overflow-wrap: anywhere; }
.rv-watch { display: inline; margin-left: 7px; }
.rv-watch .btn { padding: 1px 10px; font-size: 12px; min-height: 0; height: 22px; }
@media (max-width: 860px) { .rv-watch { margin-left: 0; } }
@media (max-width: 860px) {
  .rv-table .srv-name { overflow-wrap: break-word; word-break: normal; }
  .rv-table td:first-child { min-width: 150px; }
  .rv-detail > td { padding: 8px 4px 12px; }
}

/* warm-up bots page */
.wu-btns { flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.wu-btns form { margin: 0; }
.wu-btns .wu-n { width: 90px; }
.wu-btns .wu-sid { width: 320px; max-width: 100%; font-family: inherit; }
.wu-rule { margin: 6px 0 10px; padding-left: 20px; line-height: 1.8; }
/* points PREVIEW (owner only, 2026-11-07) */
.pvnote { padding: 12px 16px; border: 1px dashed rgba(255, 106, 43, .5); font-size: 13px; }
.pvnote b { color: #ff6a2b; margin-right: 6px; }
.ptiers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.ptiers > div { background: #161a20; border-radius: 6px; padding: 10px 12px; }
.ptiers span { display: block; font-size: 12px; color: var(--muted, #8a93a0); }
.ptiers b { font: 700 28px/1.1 "Barlow Condensed", system-ui, sans-serif; } .ptiers small { margin-left: 4px; color: var(--muted, #8a93a0); }
.pfine { font-size: 12px; margin: 10px 0 0; }
.pform input[type=number] { min-width: 100px; width: 120px; }
@media (max-width: 860px) { .ptiers { grid-template-columns: repeat(3, 1fr); } }

/* points page (/points): small forms inside table cells */
form.act-form.inline { display: inline-block; margin: 0 0 0 6px; }
body[data-page="points"] .plist td { vertical-align: middle; }
body[data-page="points"] .plist .tag { margin: 2px 4px 2px 0; }
.res-name .res-manual { margin-left: 6px; }
/* /bots: where the bots are (2026-11-08) */
.wu-where details summary { cursor: pointer; }
.wu-where .wu-names { margin-top: 4px; font-size: 12px; line-height: 1.5; white-space: normal; }
.wu-where tr.is-ours td:first-child { box-shadow: inset 3px 0 0 #ff6a2b; }

/* /servers: whole-game online card (2026-11-11) */
.go-kpis { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 8px 0 14px; }
.go-kpis > div { display: flex; flex-direction: column; gap: 2px; }
.go-kpis b { font-family: "Barlow Condensed", var(--font, sans-serif); font-size: 30px; font-weight: 700; line-height: 1.1; }
.go-up { color: var(--ok); } .go-down { color: var(--bad); }
.go-chart { display: block; width: 100%; height: 120px; }
.go-chart rect { fill: #3987e5; opacity: .55; } .go-chart rect.last { opacity: 1; }
.go-chart rect:hover { opacity: .9; }
.go-axis { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 8px; font-size: 12px; }
@media (max-width: 860px) {   /* phones: the four numbers in one row (user, 2026-11-11) */
  .go-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 2px 8px; }
  .go-kpis > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }   /* numbers on one line even when a label wraps */
  .go-kpis > div > span:first-child { align-self: end; }
  .go-kpis b { font-size: 16px; }
  .go-kpis span { font-size: 12px; line-height: 1.3; }
}

/* ---------- /servers detail window (click a server) ---------- */
.srv-table tr[data-id] { cursor: pointer; }
.srv-table tr[data-id]:hover td { background: var(--surface2, rgba(255, 255, 255, .03)); }
.srv-hint { margin-top: 8px; font-size: 13px; }
dialog.srv-dlg { width: min(680px, 94vw); max-height: 90vh; overflow-y: auto; padding: 20px 22px; }
.sd-head { display: flex; align-items: flex-start; gap: 12px; }
.sd-head > div { flex: 1; min-width: 0; }
.sd-head h3 { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.sd-meta { font-size: 12px; margin-bottom: 4px !important; }
.sd-id { font-size: 13px; margin-top: 4px !important; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sd-id code { overflow-wrap: anywhere; user-select: all; }
.sd-close { flex: none; padding: 4px 10px; }
.sd-now { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface2, transparent); }
.sd-now p { margin: 2px 0 6px; }
.sd-now b { font-family: var(--num, inherit); font-size: 34px; font-weight: 700; line-height: 1; }
.sd-now .srv-bar.sd-bar { width: 100%; height: 5px; margin: 0 0 6px; }
.sd-now > span.muted { font-size: 12px; }
.sd-sec { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 18px 0 8px; }
.sd-sec h4 { margin: 0; font-size: 16px; font-weight: 600; }
.sd-sec > span.muted { font-size: 12px; }
.sd-chart { height: 170px; }
.sd-chart > p { padding-top: 70px; text-align: center; }
.sd-svg { width: 100%; height: 170px; display: block; }
.sd-svg .area { fill: rgba(255, 106, 43, .18); stroke: none; }
.sd-svg .ln { fill: none; stroke: #ff6a2b; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sd-svg .cap { stroke: var(--line2); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.sd-axis { display: flex; justify-content: space-between; font-size: 12px; margin: 4px 0 0 !important; }
.sd-kpis, .sd-today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.sd-today { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.sd-kpis > div, .sd-today > div { padding: 10px; border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.sd-kpis span, .sd-today span { display: block; font-size: 12px; }
.sd-kpis b, .sd-today b { display: block; font-family: var(--num, inherit); font-size: 16px; font-weight: 700; margin-top: 2px; }
.sd-today > p { grid-column: 1 / -1; }
.sd-days td.sd-full { color: var(--accent); font-weight: 600; }
.sd-note { margin-top: 10px !important; font-size: 12px; }
@media (max-width: 860px) {
  dialog.srv-dlg { max-height: 92vh; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
  .sd-today { grid-template-columns: repeat(2, 1fr); }
  .sd-head h3 { font-size: 16px; }
  .sd-days td, .sd-days th { padding-left: 4px; padding-right: 4px; white-space: nowrap; }
}

/* ---------- /audit: admin actions by day ---------- */
.au-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.au-filter > .muted { font-size: 12px; margin-right: 4px; min-width: 42px; }
.au-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text2, var(--muted)); font-size: 13px; text-decoration: none; }
.au-chip:hover { color: var(--text); border-color: var(--line2); }
.au-chip.on { background: #1b2029; border-color: #ff6a2b; color: var(--text); }
.au-chip i { font-style: normal; font-size: 12px; color: var(--muted); }
.au-sum { margin-top: 6px; font-size: 12px; }
.au-none { margin-top: 16px; }
.au-day { margin: 20px 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.au-table td { vertical-align: top; padding-top: 9px; padding-bottom: 9px; }
.au-t { width: 52px; font-variant-numeric: tabular-nums; color: var(--muted); }
.au-u { width: 110px; font-weight: 600; }
.au-a { line-height: 1.5; }
.au-d { margin-top: 3px; overflow-wrap: break-word; word-break: normal; }
.au-d .mono { margin-right: 8px; }
.au-d a { font-weight: 600; margin-right: 8px; }
.au-d .muted { font-size: 13px; }
.au-ip { width: 150px; font-size: 12px; overflow-wrap: anywhere; }
.au-tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--surface3); color: var(--text); }
.au-tag.k-punish { background: rgba(244, 88, 93, .16); color: #ff8a8e; }
.au-tag.k-reserve { background: rgba(63, 211, 143, .14); color: #5fdca3; }
.au-tag.k-say { background: rgba(57, 135, 229, .16); color: #7fb2f0; }
.au-tag.k-match { background: rgba(255, 106, 43, .15); color: #ff9a6b; }
.au-tag.k-bots { background: rgba(170, 130, 255, .15); color: #c0a5ff; }
.au-tag.k-settings { background: rgba(232, 185, 49, .15); color: #e8c45a; }
.au-more { margin-top: 14px; text-align: center; }
@media (max-width: 860px) {
  .au-filter > .muted { width: 100%; }
  .au-u { width: 64px; overflow-wrap: anywhere; white-space: normal; }
  .au-t { width: 42px; }
}

/* panel player page: 每局战绩 (style C: summary tiles + bars + cards) */
.rd-note { margin-top: 12px !important; font-size: 12px; }
.rd-list { display: flex; flex-direction: column; gap: 6px; }
.rd-card1 { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid #4a5260; border-radius: var(--r); background: rgba(255, 255, 255, .015); }
.rd-card1.win { border-left-color: #3fd38f; } .rd-card1.loss { border-left-color: #f4585d; } .rd-card1.live { border-left-color: #ff6a2b; }
.rd-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-l b { font-weight: 600; } .rd-l .muted { font-size: 12px; }
.rd-tag { font-size: 12px; font-weight: 600; color: var(--muted); width: 48px; text-align: center; }
.rd-tag.win { color: #5fdca3; } .rd-tag.loss { color: #ff8a8e; } .rd-tag.live { color: #ff9a6b; }
.rd-btn { margin-top: 12px; text-align: center; }
.rd-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 92px; }
.rd-r b { font-family: "Barlow Condensed", var(--font, sans-serif); font-size: 22px; font-weight: 700; line-height: 1; }
.rd-r b .muted { font-size: 16px; font-weight: 600; }
.rd-r > .muted { font-size: 12px; } .rd-r em { font-style: normal; } .rd-r em.hi { color: #ff6a2b; font-weight: 600; }
.rd-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.rd-kpis div { padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.rd-kpis span { display: block; font-size: 12px; color: var(--muted); }
.rd-kpis b { font-family: "Barlow Condensed", var(--font, sans-serif); font-size: 26px; font-weight: 700; } .rd-kpis small { font-size: 14px; color: var(--muted); }
.rd-spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.rd-spark i { flex: 1; border-radius: 2px 2px 0 0; background: #4a5260; min-width: 3px; }
.rd-spark i.win { background: #3fd38f; } .rd-spark i.loss { background: #f4585d; } .rd-spark i.live { background: #ff6a2b; }
.rd-cap { font-size: 12px; margin: 6px 0 14px !important; }
@media (max-width: 860px) {
  .rd-card1 { gap: 8px; padding: 9px 10px; } .rd-tag { width: auto; } .rd-r { min-width: 70px; }
  .rd-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* in-game chat (owner only) */
.chat-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-state { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.chat-state.ok { background: rgba(29, 214, 92, .14); color: #1dd65c; }
.chat-state.bad { background: rgba(250, 80, 62, .14); color: #fa503e; }
#chat-filter { margin: 4px 0 12px; }
.chat-list { list-style: none; margin: 0; padding: 0; }
.chat-list li { display: grid; grid-template-columns: 70px 44px minmax(120px, 240px) 1fr; gap: 10px; align-items: baseline; padding: 7px 4px; border-top: 1px solid var(--line); }
.chat-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.chat-ch { font-size: 12px; color: var(--muted); }
.ch-Team .chat-ch { color: #4cb1ef; } .ch-Squad .chat-ch { color: #1dd65c; }
.chat-who { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.chat-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.chat-name:hover { color: var(--accent); text-decoration: none; }
.chat-tag { font-size: 12px; color: var(--muted); background: var(--surface2); border-radius: 4px; padding: 1px 6px; }
.chat-tag.warn { color: #e8b931; }
.chat-text { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 860px) {
  .chat-list li { grid-template-columns: auto auto 1fr; gap: 4px 8px; }
  .chat-list .chat-text { grid-column: 1 / -1; }
}
.chat-card h2 .grow { flex: 1; }
.chat-bc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.chat-bc .i { width: 15px; height: 15px; }
.chat-list li { grid-template-columns: 70px 44px minmax(120px, 240px) 1fr auto; }
.chat-pm { font-size: 12px; padding: 3px 10px; }
@media (max-width: 860px) {
  .chat-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .chat-list .chat-who { flex: 1; min-width: 0; }
  .chat-list .chat-text { flex-basis: 100%; order: 5; }
}

/* AFK kick tab */
.afk-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.afk-now > div { background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.afk-now b { font-family: "Barlow Condensed", var(--font); font-size: 26px; font-weight: 700; }
.afk-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.afk-form label { display: flex; flex-direction: column; gap: 4px; }
.afk-form select { min-width: 160px; }
.afk-hint { margin-top: 10px; font-size: 12px; }
@media (max-width: 860px) { .afk-now { grid-template-columns: 1fr; } }

/* boot map skip card (/match) */
.bootmap-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.bootmap-form label:not(.inline) { display: flex; flex-direction: column; gap: 4px; }
.bootmap-form label.inline { align-self: center; }

/* chat history (last 3 days) */
.chat-tabs { margin: 4px 10px 12px 0; }
#chat-filter { display: inline-flex; }
.chat-q { width: 100%; max-width: 360px; margin-bottom: 10px; }
.chat-round { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 0 12px; background: var(--surface2); }
.chat-round summary { cursor: pointer; padding: 10px 0; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.chat-round .chat-n { margin-left: auto; font-size: 12px; color: var(--muted); }
.chat-round .chat-list { margin-bottom: 8px; }
@media (max-width: 860px) {
  .chat-list .chat-who { flex-wrap: nowrap; } .chat-list .chat-name { min-width: 0; }
  .chat-round { padding: 0 8px; }
}
.chat-round .chat-del { font-size: 12px; padding: 2px 10px; margin-left: 8px; }
.chat-round .chat-n { margin-left: auto; }

/* rules popup editor (/automation/popup) */
.pp-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 12px 0 14px; }
.pp-delay { display: inline-flex; align-items: center; gap: 8px; }
.pp-delay input { width: 70px; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pp-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pp-tools .ghost { font-size: 12px; padding: 4px 10px; }
.pp-tools .grow { flex: 1; }
.pp-tools select { width: auto; min-width: 58px; padding: 3px 6px; font-size: 12px; }
.pp-color input { width: 32px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: none; }
#pp-text { width: 100%; font-family: ui-monospace, Menlo, Consolas, "Noto Sans Mono CJK SC", "Microsoft YaHei", monospace; font-size: 13px; line-height: 1.55; resize: vertical; min-height: 320px; }
.pp-count { font-size: 12px; margin: 4px 0; }
.pp-errs { margin: 4px 0 0; padding-left: 18px; color: #fa503e; font-size: 13px; }
.pp-prev-h { font-size: 12px; margin-bottom: 8px; }
.pp-box { background: rgba(10, 12, 15, .92); border: 1px solid #3a414d; border-radius: 6px; padding: 18px 20px; max-height: 460px; overflow-y: auto; color: #e8ecf1; font-size: 14px; line-height: 1.5; }
.pp-line { min-height: 1.5em; overflow-wrap: anywhere; }
.pp-line.blank { height: 1em; }
.pp-header { font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.pp-bold { font-weight: 700; }
.pp-italic { font-style: italic; }
.pp-save { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.pp-hint { font-size: 12px; text-align: right; margin-top: 6px; }
@media (max-width: 860px) { .pp-grid { grid-template-columns: 1fr; } .pp-save { justify-content: stretch; } .pp-save button { flex: 1; } .pp-hint { text-align: left; } }

/* warm-up mode buttons on the dashboard strip (2026-11-13) */
.dstrip .warmb.on { background: #3a2a10; border-color: #e8b931; color: #ffd76a; }
@media (max-width: 860px) { .dstrip .dbtns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .dstrip .dbtns button { width: 100%; } }
/* points page: 修改 + 停用 side by side; slot form edit mode */
.slotbtns { white-space: nowrap; }
.slotbtns > .btn { margin-right: 6px; }
#slot-form [hidden] { display: none !important; }
#slot-form .slotmode { width: 100%; margin: 0; }
.paidnote { width: 13em; max-width: 100%; margin: 0 6px 4px 0; padding: 4px 8px; font-size: 13px; }

/* 兑奖发放 (/rewards): winners + 免排 orders as compact rows (2026-11-17) */
.rwlist { display: flex; flex-direction: column; }
.rwrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--d-line); }
.rwrow:first-child { border-top: 0; }
.rwl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rwl a { font-weight: 600; overflow-wrap: anywhere; }
.rwl .muted, .rwck { font-size: 13px; }
.rwr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rwnote { font-size: 13px; }
form.act-form.rwpay { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.rwpay .paidnote { margin: 0; }
@media (max-width: 860px) { .rwr { width: 100%; } .rwpay { width: 100%; } .rwpay .paidnote { flex: 1; width: auto; min-width: 0; } }
.rwday { margin: 18px 0 8px; font-size: 16px; font-weight: 700; }
.rwday .muted { font-weight: 400; font-size: 13px; }
details.rwdone > summary { cursor: pointer; font-weight: 600; padding: 2px 0; }
details.rwdone .card { box-shadow: none; }
@media (max-width: 860px) { .prx { display: none; } }
/* /servers: server-ID lookup (2026-11-18) */
.srv-find { display: flex; gap: 10px; }
.srv-find input { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; }
.srv-find-out:empty { display: none; }
.srv-find-out { margin-top: 12px; display: grid; gap: 8px; }
.srv-find-out > p { margin: 0; }
.srv-find-hit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.srv-find-hit .sf-main { flex: 1 1 auto; min-width: 0; }
.srv-find-hit .sf-name { font-size: 16px; margin-right: 6px; overflow-wrap: anywhere; }
.srv-find-hit .tag { margin-right: 4px; }
.srv-find-hit p { margin: 4px 0 0; }
.srv-find-hit .sf-id { font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .srv-find-hit { flex-direction: column; align-items: stretch; } .srv-find-hit .btn { align-self: flex-start; } }

/* ---------- tidy pass (2026-11-19, user approved the "five items" mock-up) ----------
   TYPE SCALE: 12 small/labels/table heads · 13 help text · 14 body/table cells · 16 card sub-headings · 22 page titles;
   display numbers (Barlow) 26+ only. WEIGHTS: 400 body · 600 headings/buttons · 700 key numbers (Barlow 800 only for
   the big score digits). No other sizes or weights in new CSS. */
@media (min-width: 861px) {
  .menu { gap: 1px; }
  .menu .mgh { font-size: 12px; font-weight: 600; color: #5b6576; padding: 16px 12px 6px; }
  .menu .mgh:first-child { padding-top: 2px; }
  .menu a, .menu .menu-group-h { height: 34px; }
  .side { padding-top: 16px; }
  .side .logo { padding-bottom: 12px; }
}
@media (max-width: 860px) { .menu .mgh { display: none; } }
/* colour: player names in tables white (orange on hover); only failures red */
table td a:not(.btn) { color: var(--text); }
table td a:not(.btn):hover { color: var(--accent); text-decoration: none; }
.st-done { color: var(--text2); font-weight: 400; }
.st-failed { color: var(--bad); text-decoration: none; }
th { color: #6c7688; }
table td.mono { color: #6c7688; }
.card h2 .muted { font-size: 12px; font-weight: 400; margin-left: 6px; }
/* long help paragraphs: first sentence + 说明 toggle (app.js) */
p.helpx { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
p.helpx .hx-full[hidden] { display: none; }
p.helpx .hx-t { color: var(--text2); font-weight: 600; cursor: pointer; margin-left: 8px; background: none; border: 0; padding: 0; font-size: 13px; height: auto; }
p.helpx .hx-t:hover { color: var(--accent); }
.card-head.hx-head { justify-content: space-between; align-items: center; }
.card-head.hx-head p.helpx { margin: 0; }
/* dashboard: warm / go joined into one control */
.dstrip .seg { display: inline-flex; }
.dstrip .seg button { border-radius: 0; }
.dstrip .seg button:first-child { border-radius: 4px 0 0 4px; }
.dstrip .seg button:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
@media (max-width: 860px) { .dstrip .seg { display: contents; } .dstrip .seg button { border-radius: 4px; margin-left: 0; } }
@media (max-width: 860px) { .plist td:first-child { min-width: 96px; } }   /* names no longer wrap one letter per line */

/* ---------- chat page style A (2026-11-19, user): one line per message like the in-game chat box ---------- */
.chat-card > h2 { gap: 8px; margin-bottom: 10px; }
.chat-card > h2 #chat-srv:empty { display: none; }
.chat-tabs { display: flex !important; gap: 20px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; margin: 0 0 12px; }
.chat-tabs .pill { background: none; border: 0; border-radius: 0; padding: 8px 0; height: auto; font-size: 14px; color: var(--muted); }
.chat-tabs .pill.on { background: none; color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
#chat-filter { display: flex; flex-wrap: wrap; gap: 6px; background: none; border: 0; padding: 0; margin: 0 0 10px; }
#chat-filter .pill { border: 1px solid var(--line2); border-radius: 4px; padding: 3px 10px; height: auto; font-size: 12px; background: none; color: var(--muted); }
#chat-filter .pill.on { border-color: var(--text2); background: none; color: var(--text); }
.chat-list li { display: flex; align-items: baseline; gap: 10px; padding: 5px 8px; border-top: 0; border-radius: 4px; }
.chat-list li:hover { background: #11151c; }
.chat-list time { flex: none; width: 40px; font-size: 12px; color: #5b6576; }
.chat-list .chat-ch { flex: none; width: 30px; font-size: 12px; color: var(--muted); }
.ch-Team .chat-ch { color: #4cb1ef; } .ch-Squad .chat-ch { color: #1dd65c; }
.chat-list .chat-who { flex: none; max-width: 240px; flex-wrap: nowrap; gap: 6px; }
.chat-list .chat-who::after { content: ":"; color: var(--muted); margin-left: -4px; }
.chat-list .chat-name { color: var(--fc, var(--text)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list .chat-name:hover { color: var(--fc, var(--text)); text-decoration: underline; }
.chat-list .chat-text { flex: 1; min-width: 0; }
.chat-list .chat-pm { flex: none; height: 24px; padding: 0 8px; font-size: 12px; opacity: 0; }
.chat-list li:hover .chat-pm, .chat-list .chat-pm:focus { opacity: 1; }
@media (max-width: 860px) {
  .chat-list li { display: block; padding: 6px 4px; line-height: 1.55; }
  .chat-list li > * { display: inline; margin-right: 6px; }
  .chat-list time, .chat-list .chat-ch { width: auto; }
  .chat-list .chat-who { display: inline; max-width: none; }
  .chat-list .chat-name { white-space: normal; overflow-wrap: anywhere; }
  .chat-list .chat-pm { opacity: 1; height: auto; padding: 0; margin-left: 4px; border: 0; background: none; font-weight: 400; color: #6c7688; }
}
/* chat: channel chips + team chips on one row (11-19) */
.chat-filters { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; }
.chat-filters #chat-filter { margin: 0; }
.chat-fac { display: flex; flex-wrap: wrap; gap: 6px; background: none; border: 0; padding: 0; }
.chat-fac .pill { border: 1px solid var(--line2); border-radius: 4px; padding: 3px 10px; height: auto; font-size: 12px; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chat-fac .pill.on { border-color: var(--text2); background: none; color: var(--text); }
.chat-fac .fac-l::before, .chat-fac .fac-v::before, .chat-fac .fac-m::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.chat-fac .fac-l::before { background: #4cb1ef; } .chat-fac .fac-v::before { background: #fa503e; } .chat-fac .fac-m::before { background: #1dd65c; }
.chat-fac .fac-l.on { border-color: #4cb1ef; } .chat-fac .fac-v.on { border-color: #fa503e; } .chat-fac .fac-m.on { border-color: #1dd65c; }

/* dashboard chat card (11-19, user picked A): replaces 实时击杀 for chat users */
.dchat h2 { display: flex; align-items: baseline; gap: 8px; }
.dchat .dchat-more { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.dchat .dchat-more:hover { color: var(--accent); text-decoration: none; }
.dchat .chat-list li { display: block; font-size: 14px; line-height: 1.55; padding: 4px 6px; }
.dchat .chat-list li > * { display: inline; margin-right: 6px; }
.dchat .chat-list time, .dchat .chat-list .chat-ch { width: auto; }
.dchat .chat-list .chat-who { max-width: none; }
.dchat .chat-list .chat-name { white-space: normal; overflow-wrap: anywhere; }
.dchat .chat-list .chat-text { overflow-wrap: anywhere; }
.dchat-empty { margin: 0; font-size: 13px; }
.dchat .chat-list .chat-who::after { margin-left: 0; }

/* own bot PCs (/fleet) */
.fl-add input { flex: 1; min-width: 160px; max-width: 280px; }
.fl-pair { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface2); }
.fl-pair code { word-break: break-all; }
.fl-code { font-family: Barlow, sans-serif; font-size: 26px; font-weight: 700; color: var(--accent); }
.fl-help ol { margin: 8px 0 0; padding-left: 20px; }
.fl-clickmode { margin-bottom: 12px; font-size: 13px; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.fl-card { border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface2); padding: 12px; min-width: 0; }
.fl-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.fl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.fl-dot.on { background: var(--ok); }
.fl-shot { display: block; width: 100%; border-radius: var(--r-sm); background: #000; cursor: pointer; }
.fl-shotmeta { font-size: 12px; margin: 4px 0 8px; }
.fl-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.fl-kv span:first-child { white-space: nowrap; }
.fl-kv span:last-child { text-align: right; overflow-wrap: anywhere; }
.fl-kv .bad, .fl-win.bad { color: var(--bad); }
.fl-btns { flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fl-btns .btn { height: 32px; padding: 0 10px; font-size: 13px; }
.fl-more { margin-top: 10px; font-size: 13px; }
.fl-win, .fl-ev { padding: 2px 0; overflow-wrap: anywhere; }
.fl-rec { border: 1px solid var(--accent); border-radius: var(--r-sm); padding: 10px; margin-bottom: 10px; background: var(--accent-soft); }
.fl-rec-h { font-size: 12px; color: var(--accent); font-weight: 600; }
.fl-rec-t { font-size: 16px; font-weight: 700; margin: 4px 0; }
@media (max-width: 860px) { .fl-grid { grid-template-columns: 1fr; } .fl-btns .btn { height: 38px; } }
.lend-srv { padding: 10px 0; border-top: 1px solid var(--line, #333); } .lend-srv:first-of-type { border-top: 0; } .lend-srv p { margin: 0 0 6px; }
.lend-ops { gap: 6px; flex-wrap: nowrap; }
.lend-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; }
.lend-pc.dim { opacity: .45; }
.lend-h { font-size: 16px; margin: 16px 0 4px; }

/* /fleet 已退机 · 等换机: one row per PC, button always visible (phone: the old table pushed it off-screen) */
.fl-ret-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fl-ret-row:first-child { border-top: 0; }
.fl-ret-main { min-width: 0; }
.fl-ret-sub { font-size: 13px; overflow-wrap: anywhere; }
