/* UniversalProtect dashboard, design 1.3.
   White surfaces, one green as the signature, hairline borders instead of shadows, calm motion.
   Data series use a small, muted palette; green stays reserved for "this is the product" (actions, active items, positive state).
   No inline styles anywhere: the Content-Security-Policy forbids them. */

:root {
  color-scheme: light;
  --bg: #fbfcfb; --bg-side: #ffffff; --panel: #ffffff; --panel-2: #f3f6f4; --line: #dfe6e1; --line-soft: #e9eeea;
  --text: #0f1a14; --muted: #55655b; --faint: #85928a;
  --diamond: #15803d; --diamond-ink: #ffffff; --focus: #16a34a; --accent-soft: #ecf8f0; --accent-2: #22a559; --accent-3: #14532d;
  --emerald: #1f9d55; --copper: #c27a3a; --lapis: #4a6fd8; --gold: #b58a10; --redstone: #d14343; --amethyst: #8a68d6; --coal: #6b7780; --quartz: #4a5660;
  --ok: #15803d; --warn: #a16207; --bad: #c62828;
  --radius: 10px; --radius-s: 8px;
  --shadow: none; --shadow-pop: 0 12px 32px rgba(15, 40, 25, 0.14);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --map-bg: #e8eeea;
  --bar-h: 3.5rem; --rail-w: 15rem; --rail-mini: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b100d; --bg-side: #0e1511; --panel: #111914; --panel-2: #18211b; --line: #26332b; --line-soft: #1d2821;
    --text: #e8efe9; --muted: #9aada1; --faint: #6f8176;
    --diamond: #4ade80; --diamond-ink: #052e16; --focus: #86efac; --accent-soft: #14261b; --accent-2: #22c55e; --accent-3: #166534;
    --emerald: #4ade80; --copper: #e0955c; --lapis: #8aa4ff; --gold: #e3c04f; --redstone: #f06a6a; --amethyst: #b69bff; --coal: #8793a0; --quartz: #d4dbd7;
    --ok: #4ade80; --warn: #e3c04f; --bad: #f27c7c;
    --shadow-pop: 0 14px 36px rgba(0, 0, 0, 0.5);
    --map-bg: #080c09;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b100d; --bg-side: #0e1511; --panel: #111914; --panel-2: #18211b; --line: #26332b; --line-soft: #1d2821;
  --text: #e8efe9; --muted: #9aada1; --faint: #6f8176;
  --diamond: #4ade80; --diamond-ink: #052e16; --focus: #86efac; --accent-soft: #14261b; --accent-2: #22c55e; --accent-3: #166534;
  --emerald: #4ade80; --copper: #e0955c; --lapis: #8aa4ff; --gold: #e3c04f; --redstone: #f06a6a; --amethyst: #b69bff; --coal: #8793a0; --quartz: #d4dbd7;
  --ok: #4ade80; --warn: #e3c04f; --bad: #f27c7c;
  --shadow-pop: 0 14px 36px rgba(0, 0, 0, 0.5);
  --map-bg: #080c09;
}
:root[data-density="compact"] { font-size: 14px; }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 0.9375rem/1.55 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.015em; line-height: 1.25; }
h1 { font-size: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1rem; }
h3 { font-size: 0.9375rem; }
p { margin: 0 0 0.75em; max-width: 68ch; }
a { color: var(--diamond); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.85em; }
code { background: var(--panel-2); padding: 0.1em 0.4em; border-radius: 5px; }
kbd { font-family: var(--font); font-size: 0.7rem; padding: 0.05rem 0.4rem; border-radius: 5px; border: 1px solid var(--line); background: var(--panel); color: var(--faint); }
::selection { background: var(--accent-soft); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 3rem; color: var(--muted); }
.ico { flex: none; vertical-align: -0.2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { border-radius: 16px; animation: breathe 1.4s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(0.95); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }

/* ---------- shell: sidebar, slim top bar, content ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); transition: grid-template-columns 0.22s var(--ease); }
.app[data-rail="mini"] { grid-template-columns: var(--rail-mini) minmax(0, 1fr); }
.content { min-width: 0; display: flex; flex-direction: column; }

.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; padding: 0 0.75rem 0.75rem; background: var(--bg-side); border-right: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 0.6rem; height: var(--bar-h); flex: none; padding: 0 0.5rem; font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding-top: 0.25rem; }
.nav-group { margin: 1.25rem 0.6rem 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--faint); }
.nav-group:first-child { margin-top: 0.5rem; }
.nav a { position: relative; display: flex; align-items: center; gap: 0.65rem; padding: 0.46rem 0.6rem; border-radius: var(--radius-s); color: var(--muted); text-decoration: none; transition: background 0.14s, color 0.14s; }
.nav a .ico { color: var(--faint); transition: color 0.14s; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--diamond); font-weight: 600; }
.nav a[aria-current="page"] .ico { color: var(--diamond); }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .count { margin-left: auto; font-size: 0.7rem; font-weight: 700; background: var(--diamond); color: var(--diamond-ink); border-radius: 99px; padding: 0 0.45em; min-width: 1.4em; text-align: center; }
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.6rem; margin-top: 0.6rem; border-top: 1px solid var(--line-soft); }
.rail-toggle { background: transparent; border-color: transparent; color: var(--faint); padding: 0.3rem 0.5rem; font-weight: 500; font-size: 0.8125rem; }
.rail-toggle .ico { transform: rotate(180deg); transition: transform 0.2s var(--ease); }
.rail-toggle:hover { color: var(--text); background: var(--panel-2); }
.rail-ver { font-size: 0.72rem; padding-right: 0.4rem; }
.scrim { display: none; }
.app[data-rail="mini"] .brand-name, .app[data-rail="mini"] .nav-label, .app[data-rail="mini"] .rail-toggle span, .app[data-rail="mini"] .rail-ver { display: none; }
.app[data-rail="mini"] .rail { padding-left: 0.6rem; padding-right: 0.6rem; }
.app[data-rail="mini"] .brand { justify-content: center; padding: 0; }
.app[data-rail="mini"] .nav a { justify-content: center; padding: 0.55rem 0; }
.app[data-rail="mini"] .nav .count { position: absolute; top: 1px; right: 4px; min-width: 1.05rem; padding: 0 0.3em; font-size: 0.62rem; }
.app[data-rail="mini"] .nav-group { height: 1px; font-size: 0; margin: 0.6rem 0.9rem; background: var(--line-soft); }
.app[data-rail="mini"] .rail-toggle .ico { transform: none; }
.app[data-rail="mini"] .rail-foot { justify-content: center; }

.topbar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 0.6rem; padding: 0 clamp(1rem, 3vw, 2rem); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }
.pop-wrap { position: relative; flex: none; }
.srv-btn { max-width: 17rem; background: transparent; border-color: var(--line); font-weight: 600; padding: 0.36rem 0.7rem; }
.srv-btn:hover { background: var(--panel-2); }
.srv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-btn .dot { margin-right: 0; }
.bar-mid { flex: 1; display: flex; justify-content: flex-end; min-width: 0; }
.search-btn { width: 100%; max-width: 20rem; justify-content: flex-start; background: var(--panel-2); color: var(--faint); border-color: transparent; font-weight: 450; padding: 0.4rem 0.8rem; }
.search-btn span { flex: 1; text-align: left; }
.search-btn:hover { border-color: var(--line); color: var(--text); }
.bar-right { display: flex; align-items: center; gap: 0.15rem; flex: none; }
.bar-btn { position: relative; min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem; background: transparent; border-color: transparent; color: var(--muted); gap: 0.3rem; }
.bar-btn:hover { background: var(--panel-2); color: var(--text); border-color: transparent; }
.bar-btn .count { position: absolute; top: 2px; right: 2px; min-width: 1.05rem; height: 1.05rem; padding: 0 0.28rem; font-size: 0.65rem; line-height: 1.05rem; font-weight: 700; text-align: center; background: var(--diamond); color: var(--diamond-ink); border-radius: 99px; box-shadow: 0 0 0 2px var(--bg); }
a.bar-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: var(--radius-s); }
.lang-code { font-size: 0.72rem; font-weight: 700; }
.status-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.7rem; margin-right: 0.3rem; border-radius: 99px; border: 1px solid var(--line-soft); font-size: 0.8125rem; font-weight: 550; white-space: nowrap; }
.status-chip .dot { margin-right: 0; }
.tps.ok { color: var(--ok); } .tps.warn { color: var(--warn); } .tps.bad { color: var(--bad); }
.user-btn { background: transparent; border-color: transparent; padding: 0.25rem 0.45rem 0.25rem 0.3rem; gap: 0.45rem; color: var(--text); }
.user-btn:hover { background: var(--panel-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--diamond); font-weight: 700; font-size: 0.8rem; flex: none; }
.avatar.big { width: 38px; height: 38px; font-size: 1rem; }
.user-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.menu-btn { display: none; }
.srv-btn > .ico:last-child, .user-btn > .ico:last-child { transform: rotate(90deg); color: var(--faint); }

.pop { position: absolute; top: calc(100% + 8px); min-width: 13.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 0.3rem; z-index: 40; animation: pop-in 0.14s var(--ease); transform-origin: top; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.pop-left { left: 0; } .pop-right { right: 0; } .pop-wide { min-width: 20rem; }
.pop-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 0.65rem; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-decoration: none; font-weight: 500; justify-content: flex-start; text-align: left; }
.pop-item:hover, .pop-item:focus-visible { background: var(--panel-2); color: var(--text); }
.pop-item.current { font-weight: 650; color: var(--diamond); }
.pop-item .dot { margin-right: 0; }
.pop-main { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-list { max-height: 17rem; overflow-y: auto; }
.pop-sep { height: 1px; background: var(--line-soft); margin: 0.3rem 0.2rem; }
.pop-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.65rem 0.4rem; }
.pop-empty { padding: 0.6rem 0.7rem; }
.pop-foot { padding: 0.35rem 0.65rem 0.2rem; }
.legal { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; font-size: 0.75rem; }
.legal a { color: var(--faint); }

.main { min-width: 0; width: 100%; max-width: 96rem; margin: 0 auto; padding: 1.75rem clamp(1rem, 3vw, 2rem) 4rem; animation: page-in 0.22s var(--ease); }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; }
.page-head .sub { color: var(--muted); margin-top: 0.2rem; }
.tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack.tight { gap: 0.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.grid-2 { align-items: start; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; }
.grid-eq { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.25rem; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.panel > header h2, .side-block h3 { display: flex; align-items: center; gap: 0.5rem; }
.panel > .body { padding: 1.1rem; }
.panel > .body.flush { padding: 0; }
.note { padding: 0.75rem 1rem; border: 1px solid var(--line-soft); border-left: 3px solid var(--diamond); background: var(--panel); border-radius: var(--radius-s); }
.note.warn { border-left-color: var(--gold); }
.note.bad { border-left-color: var(--redstone); }
.empty { padding: 2.25rem 1rem; color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

.pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.pulse > div { padding: 0.9rem 1.1rem; border-right: 1px solid var(--line-soft); min-width: 0; }
.pulse > div:last-child { border-right: 0; }
.pulse .v { font-size: 1.55rem; font-weight: 640; letter-spacing: -0.02em; line-height: 1.15; }
.pulse .v small { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-left: 0.2em; }
.pulse .l { color: var(--muted); font-size: 0.8125rem; }
.pulse .v.ok { color: var(--ok); } .pulse .v.warn { color: var(--warn); } .pulse .v.bad { color: var(--bad); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.9rem; }
.kpi { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.kpi-ico { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--diamond); flex: none; }
.kpi-v { font-size: 1.5rem; font-weight: 680; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-l { color: var(--muted); font-size: 0.8125rem; }
.kpi-s { color: var(--faint); font-size: 0.75rem; }

/* ---------- controls ---------- */
button, .btn { font: inherit; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.42rem 0.9rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; text-decoration: none; line-height: 1.3; transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.08s; }
button:hover, .btn:hover { background: var(--panel-2); border-color: var(--faint); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--diamond); border-color: var(--diamond); color: var(--diamond-ink); }
button.primary:hover, .btn.primary:hover { background: color-mix(in srgb, var(--diamond) 88%, #000); border-color: transparent; }
button.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
button.danger:hover { background: var(--bad); color: #fff; }
button.quiet, .btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
button.quiet:hover, .btn.quiet:hover { color: var(--text); background: var(--panel-2); }
button.small, .btn.small { padding: 0.24rem 0.6rem; font-size: 0.8125rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.45rem 0.65rem; min-width: 0; transition: border-color 0.14s, box-shadow 0.14s; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input[type="checkbox"] { accent-color: var(--diamond); width: 1rem; height: 1rem; padding: 0; }
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 0.45rem; color: var(--text); }
.form { display: flex; flex-direction: column; gap: 0.9rem; max-width: 26rem; }
.form.wide { max-width: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem; align-items: end; }
.hint { color: var(--faint); font-size: 0.8125rem; }
.err { color: var(--bad); min-height: 1.3em; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--panel); }
.seg button { border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 0.32rem 0.75rem; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--panel-2); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--diamond); font-weight: 650; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.65rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 0.8125rem; cursor: pointer; font-weight: 500; }
.chip[aria-pressed="true"] { color: var(--diamond); border-color: var(--diamond); background: var(--accent-soft); }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 550; font-size: 0.8125rem; color: var(--muted); padding: 0.55rem 1.1rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; background: var(--bg); }
.tbl td { padding: 0.6rem 1.1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 0.12s; }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl .num, .tbl th.num { text-align: right; }
.scroll { overflow-x: auto; }
.tbl a { font-weight: 550; }
.pager { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; padding: 0.6rem 1.1rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.875rem; }

/* ---------- status pieces ---------- */
.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--faint); margin-right: 0.4rem; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.off { background: var(--faint); }
.badge { display: inline-block; padding: 0 0.55rem; border-radius: 99px; font-size: 0.75rem; font-weight: 600; line-height: 1.6; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.badge.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 11%, transparent); }
.badge.info { color: var(--lapis); background: color-mix(in srgb, var(--lapis) 11%, transparent); }
.badge.mute { color: var(--muted); background: var(--panel-2); }
.web-tag { font-size: 0.68rem; padding: 0 0.4rem; vertical-align: 0.05em; }
.kind { display: inline-flex; align-items: center; gap: 0.45rem; }
.kind::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--coal); flex: none; }
.k-break::before, .k-breaks::before, .k-copper::before { background: var(--copper); }
.k-place::before, .k-places::before, .k-lapis::before { background: var(--lapis); }
.k-container::before, .k-containers::before, .k-item::before, .k-items::before, .k-gold::before { background: var(--gold); }
.k-kill::before, .k-kills::before, .k-death::before, .k-deaths::before, .k-alert::before { background: var(--redstone); }
.k-join::before, .k-joins::before, .k-spawn::before, .k-diamond::before { background: var(--emerald); }
.k-quit::before, .k-quits::before { background: var(--coal); }
.k-chat::before, .k-chats::before, .k-command::before, .k-commands::before, .k-amethyst::before { background: var(--amethyst); }
.k-teleport::before, .k-use::before, .k-sign::before, .k-system::before, .k-other::before { background: var(--quartz); }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 5.6rem 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.5rem 1.1rem; border-bottom: 1px solid var(--line-soft); align-items: center; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--faint); font-size: 0.8125rem; white-space: nowrap; }
.feed time.full { white-space: nowrap; }
.feed .what { min-width: 0; overflow-wrap: anywhere; }
.feed .where { color: var(--faint); font-size: 0.8125rem; }
.feed.compact li { grid-template-columns: 5.2rem minmax(0, 1fr); }
.feed.compact .kind { display: none; }
.feed.full li { grid-template-columns: 11.5rem 7.5rem minmax(0, 1fr); }
.feed li.fresh { animation: fresh 1.8s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--diamond) 14%, transparent); } to { background: transparent; } }

/* ---------- skin heads and official Minecraft pictures ---------- */
.head { width: 1.25em; height: 1.25em; border-radius: 3px; image-rendering: pixelated; vertical-align: -0.28em; margin-right: 0.45rem; background: var(--panel-2); flex: none; }
.head-none { display: inline-block; }
.plink { display: inline-flex; align-items: center; vertical-align: bottom; font-weight: 550; text-decoration: none; }
.plink:hover span { text-decoration: underline; }
.who-cell { display: inline-flex; align-items: center; gap: 0.1rem; }
h1.with-head { display: flex; align-items: center; }
h1.with-head .head { width: 36px; height: 36px; margin-right: 0.7rem; border-radius: 6px; }
.feed .what .head { width: 18px; height: 18px; }
.mc-ico { display: inline-block; flex: none; vertical-align: -0.34em; image-rendering: pixelated; object-fit: contain; }
.mc-s14 { width: 14px; height: 14px; } .mc-s16 { width: 16px; height: 16px; } .mc-s18 { width: 18px; height: 18px; } .mc-s20 { width: 20px; height: 20px; }
.mc-s24 { width: 24px; height: 24px; } .mc-s28 { width: 28px; height: 28px; } .mc-s32 { width: 32px; height: 32px; } .mc-s36 { width: 36px; height: 36px; }
.mc-face { border-radius: 2px; }
.mc-none { display: inline-grid; place-items: center; border-radius: 5px; background: var(--panel-2); color: var(--faint); image-rendering: auto; }
.mc-none .ico { width: 70%; height: 70%; vertical-align: 0; }
.mc-chip { display: inline-flex; align-items: center; gap: 0.4rem; vertical-align: bottom; font-weight: 550; }
.feed .what .mc-chip { vertical-align: middle; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.chart .hit { fill: transparent; }
.chart .cursor { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .axis { fill: var(--faint); font-size: 11px; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 5; }
.chart .band { fill: var(--accent-soft); opacity: 0.85; }
.chart .stub { fill: var(--line-soft); }
.chart .sheen { pointer-events: none; }
.chart .bar { stroke: none; }
.chart .bars.grow { animation: barsin 0.6s var(--ease) both; transform-box: fill-box; transform-origin: bottom; }
@keyframes barsin { from { transform: scaleY(0.02); opacity: 0.5; } to { transform: none; opacity: 1; } }
.chart .line, .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area, .area { stroke: none; opacity: 0.14; }
.chart .area-fill { stroke: none; }
.chart .ga { stop-color: var(--c); fill: none; stroke: none; }
.chart .dot-halo { fill-opacity: 0.16; stroke: none; }
.chart .dot-end { stroke: var(--panel); stroke-width: 2; }
.s-break, .s-breaks { --c: var(--copper); } .s-place, .s-places { --c: var(--lapis); } .s-container, .s-containers { --c: var(--gold); } .s-kill, .s-kills { --c: var(--redstone); }
.s-death, .s-deaths { --c: #b8434a; } .s-join, .s-joins { --c: var(--emerald); } .s-quit, .s-quits { --c: var(--coal); } .s-chat, .s-chats { --c: var(--amethyst); }
.s-command, .s-commands { --c: #8e6fe0; } .s-item, .s-items { --c: #c9a23a; } .s-other { --c: var(--quartz); } .s-diamond { --c: var(--diamond); } .s-ok { --c: var(--emerald); }
.s-warn { --c: var(--gold); } .s-bad { --c: var(--redstone); } .s-lapis { --c: var(--lapis); } .s-copper { --c: var(--copper); } .s-amethyst { --c: var(--amethyst); } .s-gold { --c: var(--gold); }
.s-break, .s-breaks, .s-place, .s-places, .s-container, .s-containers, .s-kill, .s-kills, .s-death, .s-deaths, .s-join, .s-joins, .s-quit, .s-quits, .s-chat, .s-chats, .s-command, .s-commands, .s-item, .s-items, .s-other, .s-diamond, .s-ok, .s-warn, .s-bad, .s-lapis, .s-copper, .s-amethyst, .s-gold { fill: var(--c); stroke: var(--c); }
.chart .area-fill, .chart .ga, .chart .dot-halo { stroke: none; }
.chart .ga { fill: none; }
.line, .chart .line, .spark .line { fill: none; }
.donut { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.donut-track { stroke: var(--panel-2); fill: none; }
.donut-seg, .s-ok.donut-seg { stroke-linecap: butt; fill: none !important; }
.donut-center { font-size: 1.5rem; font-weight: 680; fill: var(--text); stroke: none; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; flex: 1; min-width: 8rem; }
.donut-legend li { display: flex; justify-content: space-between; gap: 1rem; }
.spark { display: block; }
.spark .line { fill: none; stroke-width: 2; }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.45rem 0.65rem; font-size: 0.8125rem; box-shadow: var(--shadow-pop); min-width: 9rem; }
.tip b { display: block; margin-bottom: 0.2rem; font-weight: 600; }
.tip div { display: flex; justify-content: space-between; gap: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-top: 0.7rem; font-size: 0.8125rem; color: var(--muted); }

/* rankings and meters */
.bar-row { display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; padding: 0.3rem 0; font-size: 0.875rem; }
.rank-label { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rank-val { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right; }
.bar-row .track, .track.meter { display: block; height: 0.5rem; border-radius: 99px; overflow: hidden; background: var(--panel-2); }
.bar-row .fill, .track.meter .fill { display: block; height: 100%; border-radius: 99px; background: var(--diamond); transition: width 0.6s var(--ease); }
.bar-row.first .fill { background: var(--accent-2); }
.track.meter .fill.m-warn { background: var(--gold); }
.track.meter .fill.m-bad { background: var(--redstone); }
.ramp { display: inline-block; width: 6rem; height: 0.5rem; border-radius: 99px; vertical-align: middle; background: linear-gradient(90deg, transparent, var(--diamond)); }

/* ---------- map ---------- */
.mapview { display: grid; grid-template-columns: minmax(0, 1fr) 20.5rem; gap: 1.1rem; align-items: start; }
.mapwrap { position: relative; background: var(--map-bg); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; touch-action: none; }
.mapwrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.mapwrap canvas.drag { cursor: grabbing; }
.mapwrap canvas.drawing { cursor: crosshair; }
.mapwrap.tall { height: min(76vh, 52rem); min-height: 26rem; }
.mapwrap.mini { height: 20rem; }
.map-tools { position: absolute; top: 0.6rem; right: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.map-tools button { width: 2rem; height: 2rem; padding: 0; background: var(--panel); border-color: var(--line-soft); font-size: 1.1rem; }
.map-read { position: absolute; left: 0.6rem; bottom: 0.5rem; font-size: 0.8125rem; color: var(--muted); background: color-mix(in srgb, var(--panel) 90%, transparent); padding: 0.15rem 0.55rem; border-radius: 6px; pointer-events: none; backdrop-filter: blur(4px); }
.map-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.3rem 0.55rem; font-size: 0.8125rem; z-index: 3; white-space: nowrap; box-shadow: var(--shadow-pop); }
.map-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 26rem; text-align: center; padding: 0.9rem 1.1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line-soft); color: var(--muted); pointer-events: none; }
.mapside { display: flex; flex-direction: column; gap: 0.9rem; max-height: min(76vh, 52rem); overflow-y: auto; padding-right: 0.15rem; }
.side-block { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.side-block h3 { justify-content: flex-start; }
.side-block h3 .muted { margin-left: auto; font-weight: 500; }
.map-status { font-size: 0.8125rem; }
.switch-row { flex-direction: row; align-items: center; gap: 0.65rem; color: var(--text); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl { width: 2.15rem; height: 1.2rem; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background 0.18s; }
.tgl::after { content: ""; position: absolute; left: 2px; top: 2px; width: calc(1.2rem - 4px); height: calc(1.2rem - 4px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.18s var(--ease); }
.switch-row input:checked + .tgl { background: var(--diamond); }
.switch-row input:checked + .tgl::after { transform: translateX(0.95rem); }
.switch-row input:focus-visible + .tgl { outline: 2px solid var(--focus); outline-offset: 2px; }
.inline-select { flex-direction: row; align-items: center; justify-content: space-between; }
.plist, .alist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; max-height: 14rem; overflow-y: auto; }
.alist li { display: flex; align-items: center; gap: 0.4rem; }
.plist-btn { width: 100%; justify-content: flex-start; gap: 0.1rem; padding: 0.3rem 0.4rem; text-align: left; border-color: transparent; background: transparent; }
.plist-btn:hover { background: var(--panel-2); }
.plist-name { font-weight: 600; margin-left: 0.1rem; }
.plist-pos { margin-left: auto; font-size: 0.75rem; white-space: nowrap; }
.swatch { width: 0.8rem; height: 0.8rem; border-radius: 3px; flex: none; }
.swatches { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.swatch-btn { width: 1.6rem; height: 1.6rem; padding: 0; border-radius: 50%; border: 2px solid transparent; }
.swatch-btn[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--panel) inset; }

/* ---------- dialog / toast / palette ---------- */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(32rem, calc(100vw - 2rem)); box-shadow: var(--shadow-pop); }
dialog[open] { animation: dlg-in 0.18s var(--ease); }
dialog::backdrop { background: rgba(10, 20, 14, 0.45); backdrop-filter: blur(3px); animation: fade 0.18s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
dialog .dlg { padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
dialog menu { display: flex; justify-content: flex-end; gap: 0.5rem; margin: 0; padding: 0; }
dialog.palette { width: min(34rem, calc(100vw - 2rem)); margin-top: 12vh; }
dialog.palette .dlg { padding: 0.75rem; gap: 0.5rem; }
.palette input { width: 100%; font-size: 1.05rem; padding: 0.7rem 0.9rem; }
.palette-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; }
.palette-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: var(--radius-s); cursor: pointer; }
.palette-list li span.faint { margin-left: auto; font-size: 0.8125rem; }
.palette-list li[aria-selected="true"], .palette-list li:hover { background: var(--accent-soft); color: var(--diamond); }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 50; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--diamond); padding: 0.65rem 0.95rem; border-radius: var(--radius-s); max-width: 22rem; box-shadow: var(--shadow-pop); animation: toast-in 0.22s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast.bad { border-left-color: var(--redstone); }
.secret { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0.06em; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 0.6rem 0.8rem; overflow-wrap: anywhere; user-select: all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem 1rem; font-family: var(--font-mono); background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 0.75rem 1rem; user-select: all; }
.spin { display: inline-block; width: 1rem; height: 1rem; border: 2px solid var(--line); border-top-color: var(--diamond); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -0.15rem; margin-right: 0.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sign-in (unchanged layout from 1.2.x) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 0; place-items: stretch; }
.auth-hero { background: radial-gradient(120% 90% at 0% 0%, var(--accent-2), var(--accent-3) 70%), var(--accent-3); color: #fff; padding: 3rem clamp(1.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; position: relative; overflow: hidden; }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.07); border-radius: 6px; }
.auth-hero::before { width: 9rem; height: 9rem; right: -2rem; top: 12%; }
.auth-hero::after { width: 5rem; height: 5rem; left: 12%; bottom: 8%; }
.auth-hero img { border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.auth-name { font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; }
.auth-hero p { color: rgba(255, 255, 255, 0.9); max-width: 30ch; }
.auth-points { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; position: relative; z-index: 1; }
.auth-points li { display: flex; align-items: center; gap: 0.6rem; font-weight: 550; }
.auth .box { width: min(27rem, 100%); margin: auto; padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.auth h1 { font-size: 1.5rem; }
.auth .form { max-width: none; }
.auth .switch { color: var(--muted); font-size: 0.875rem; }
.auth .switch button { padding: 0; border: 0; background: none; color: var(--diamond); text-decoration: underline; font-weight: 500; }
.auth .switch button:hover { background: none; }
.auth-lang { margin-top: 0.5rem; max-width: 14rem; color: var(--muted); }
.auth-lang select { flex: 1; }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.qrframe { background: #fff; padding: 0.4rem; border-radius: var(--radius-s); border: 1px solid var(--line); line-height: 0; }
.qr { max-width: 100%; height: auto; }
details.manual { border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 0.6rem 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
details.manual summary { cursor: pointer; color: var(--muted); font-weight: 550; }
details.manual[open] summary { margin-bottom: 0.6rem; }

/* ---------- command docs, key-value, misc ---------- */
.cmd { border-bottom: 1px solid var(--line-soft); padding: 1rem 1.1rem; display: grid; gap: 0.5rem; }
.cmd:last-child { border-bottom: 0; }
.cmd .usage { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cmd .usage code { font-size: 0.95rem; padding: 0.2em 0.5em; }
.cmd dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; font-size: 0.875rem; }
.cmd dt { color: var(--muted); } .cmd dd { margin: 0; }
.plain { margin: 0; padding-left: 1.1rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.5rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.changelog { margin: 0; white-space: pre-wrap; font: inherit; color: var(--muted); max-height: 16rem; overflow: auto; background: var(--bg); border-radius: var(--radius-s); padding: 0.75rem 1rem; max-width: 80ch; }

/* ---------- settings ---------- */
.settings { display: flex; flex-direction: column; }
.setrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
.setrow:last-child { border-bottom: 0; }
.themecards { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.themecard { flex-direction: column; align-items: stretch; padding: 0.5rem; width: 8.5rem; gap: 0.4rem; background: var(--panel); }
.themecard[aria-pressed="true"] { border-color: var(--diamond); box-shadow: 0 0 0 3px var(--accent-soft); }
.themeprev { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 0.6rem 0.6rem 0.6rem; gap: 3px; padding: 6px; border-radius: 6px; height: 3.2rem; }
.themeprev i { display: block; border-radius: 2px; }
.themeprev i:first-child { grid-row: 1 / 4; }
.th-light .themeprev, .th-system .themeprev { background: #fbfcfb; } .th-light .themeprev i, .th-system .themeprev i { background: #dcefe2; } .th-light .themeprev i:first-child, .th-system .themeprev i:first-child { background: #15803d; }
.th-dark .themeprev { background: #0b100d; } .th-dark .themeprev i { background: #26332b; } .th-dark .themeprev i:first-child { background: #4ade80; }
.th-system .themeprev { background: linear-gradient(90deg, #fbfcfb 50%, #0b100d 50%); }

/* ---------- chat ---------- */
.chatpanel { overflow: hidden; }
.chatlog { list-style: none; margin: 0; padding: 0.4rem 0; height: min(68vh, 44rem); overflow-y: auto; }
.chatline { display: grid; grid-template-columns: 5.4rem minmax(7rem, 13rem) minmax(0, 1fr); gap: 0.5rem; align-items: baseline; padding: 0.3rem 1.1rem; }
.chatline:hover { background: var(--panel-2); }
.chatline time { color: var(--faint); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.chat-who { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.chat-text { overflow-wrap: anywhere; }
.chat-empty { padding: 2rem; text-align: center; list-style: none; }
.chat-send { border-top: 1px solid var(--line-soft); padding: 0.8rem 1.1rem 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; background: var(--bg); }
.chat-send.off { flex-direction: row; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; }
.chat-send-row { display: flex; align-items: center; gap: 0.6rem; }
.chat-input { flex: 1; font-size: 1rem; padding: 0.6rem 0.8rem; }
.chat-count { font-size: 0.78rem; min-width: 3.4rem; text-align: right; }
.chat-err { min-height: 0; margin: 0; }
.chat-err:empty { display: none; }
.chat-send .hint { margin: 0; }

/* ---------- permissions ---------- */
.gridcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.9rem; }
.gcard { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--panel); }
.gcard header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.gcard header .faint { margin-left: auto; font-size: 0.8125rem; }
.gchip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.1rem 0.65rem; border-radius: 99px; font-weight: 650; font-size: 0.8125rem; color: var(--gc); background: color-mix(in srgb, var(--gc) 12%, transparent); }
.nodes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; }
.nodes li { display: flex; align-items: center; gap: 0.45rem; }
.nodes li .ico { color: var(--ok); }
.nodes li.danger .ico { color: var(--warn); }
.permlist { display: flex; flex-direction: column; gap: 0.1rem; max-height: 46vh; overflow: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 0.3rem; }
.permrow { flex-direction: row; align-items: flex-start; gap: 0.7rem; padding: 0.5rem; border-radius: var(--radius-s); color: var(--text); cursor: pointer; }
.permrow:hover { background: var(--panel-2); }
.permrow input { margin-top: 0.25rem; }
.permrow > span { display: flex; flex-direction: column; gap: 0.1rem; }
.permrow code { align-self: flex-start; font-size: 0.75rem; }
dialog .permlist + .err { margin-top: -0.4rem; }

/* ---------- system status ---------- */
.hrow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.42rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.hrow:last-child { border-bottom: 0; }
.hrow .hl { color: var(--muted); }
.hrow .hv { margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.gauge { display: flex; flex-direction: column; gap: 0.35rem; }
.gauge-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; font-weight: 550; }
.health-verdict { border-left: 3px solid var(--ok); }
.health-verdict.warn { border-left-color: var(--warn); }
.health-verdict.bad { border-left-color: var(--bad); }
.verdict-list { list-style: none; padding: 0; }
.verdict-list li { margin: 0.3rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 54rem) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-hero { padding: 1.5rem; flex-direction: row; align-items: center; flex-wrap: wrap; } .auth-hero img { width: 56px; height: 56px; } .auth-hero p, .auth-points { display: none; } .auth-name { font-size: 1.3rem; } }
@media (max-width: 70rem) { .mapview { grid-template-columns: minmax(0, 1fr); } .mapside { max-height: none; flex-direction: row; flex-wrap: wrap; } .mapside > .side-block { flex: 1 1 16rem; } }
@media (max-width: 62rem) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .status-chip { display: none; }
  .user-name { display: none; }
}
@media (max-width: 54rem) {
  .app, .app[data-rail="mini"] { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .srv-btn { max-width: 11rem; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 2.25rem; padding: 0; justify-content: center; background: transparent; }
  .rail { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: 16rem; transform: translateX(-100%); transition: transform 0.24s var(--ease); z-index: 35; padding-left: 0.75rem; padding-right: 0.75rem; }
  .app.rail-open .rail { transform: none; box-shadow: var(--shadow-pop); }
  .app.rail-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 20, 14, 0.4); z-index: 34; animation: fade 0.2s ease; }
  .app[data-rail="mini"] .brand-name, .app[data-rail="mini"] .nav-label, .app[data-rail="mini"] .rail-toggle span, .app[data-rail="mini"] .rail-ver { display: initial; }
  .app[data-rail="mini"] .brand { justify-content: flex-start; padding: 0 0.5rem; }
  .app[data-rail="mini"] .nav a { justify-content: flex-start; padding: 0.46rem 0.6rem; }
  .app[data-rail="mini"] .nav-group { height: auto; font-size: 0.75rem; margin: 1.25rem 0.6rem 0.35rem; background: none; }
  .rail-toggle { display: none; }
  .feed li, .feed.full li { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .feed .kind { display: none; }
  .feed.full li { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 5rem 1fr 3.5rem; }
  .chatline { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .chatline .chat-text { grid-column: 1 / -1; }
}
@media (max-width: 40rem) { .hide-sm { display: none !important; } .topbar { gap: 0.4rem; padding: 0 0.7rem; } .srv-btn { max-width: 8rem; } }
