/* The hub's visual layer.
 *
 * dashboard.css is the plugin's own stylesheet and stays the source of the app's structure.
 * This file is the look on top of it: Minecraft's own materials on stone-dark surfaces. Each
 * kind of reading has its material, so a colour says what a number is before the label does:
 * grass for players and actions, emerald for TPS, diamond for memory and the instruments, gold
 * for ticks, copper for GC, amethyst for entities, lapis for chunks. Severity runs grass, gold,
 * copper, redstone. Hairlines instead of glow, no gradient text, a DIN face for the figures. It starts with the one place that has
 * no structure to keep: the gate, every screen a person sees before they are inside a network.
 */

:root {
  --fx-ease: cubic-bezier(.2, .8, .2, 1);
  --fx-glass: rgba(255, 255, 255, .035);
  --fx-glass-line: rgba(255, 255, 255, .11);
  --mc-grass: #6fd35a;
  --mc-emerald: #17dd62;
  --mc-diamond: #45d9e6;
  --mc-gold: #f5c542;
  --mc-copper: #e07b3c;
  --mc-amethyst: #a778ff;
  --mc-lapis: #3d6bf2;
  --mc-redstone: #e5484d;
  --mc-ink: #0f2e0a;
  /* Bahnschrift ships with Windows, DIN Alternate with macOS; both are the DIN road-sign face,
     which reads figures at a glance and is not what every other dashboard is set in. */
  --font-display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, monospace;
}

/* --- the gate ----------------------------------------------------------------------- */

/* The shell is a grid of header, rail and main. The gate is none of those, so it leaves the
   grid rather than fighting it. */
/* overflow-y is explicit: the app's own layout sets body to overflow hidden, because only #main
   scrolls there, and on these pages that left the wheel doing nothing at all. */
body.gate { display: block; background: #0c0d0f; overflow-x: hidden; overflow-y: auto; height: auto; min-height: 100%; }
body.gate > header, body.gate > nav.side { display: none; }
body.gate > main { padding: 0; margin: 0; max-width: none; min-height: 100vh; }

.gate { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; color: #eef0f2; }
.gate-aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }

/* A faint grid that fades out towards the edges, then a vignette. Two layers because a
   mask on one would take the vignette with it. */
.gate::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 80%);
}
.gate::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 45%, rgba(4, 4, 5, .7) 100%);
}

.gate-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
  max-width: 1240px; min-height: 100vh; margin: 0 auto; padding: 7vh 40px 72px;
}

.gate-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: .04em; margin-bottom: 30px;
}
.gate-brand { font-family: var(--font-display); }
.gate-brand .mark {
  width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  background: var(--mc-grass);
}
.gate-brand .mark svg { width: 16px; height: 16px; }
.gate-brand .mark svg path, header .brand .mark svg path { stroke: var(--mc-ink); }
.gate-brand b { font-weight: 700; color: var(--mc-grass); }

.gate h1 {
  font-family: var(--font-display); font-size: clamp(40px, 5.6vw, 70px); line-height: 1; letter-spacing: -.01em;
  font-weight: 700; margin: 0 0 20px; color: #eef0f2; max-width: 13ch;
}
.gate h1 em { font-style: normal; color: var(--mc-grass); }
.gate-lede { font-size: 17px; line-height: 1.6; color: #b6bac1; max-width: 34em; margin: 0 0 32px; }

.glass {
  background: rgba(20, 21, 23, .86);
  border: 1px solid var(--fx-glass-line);
  border-radius: 10px;
}
.gate-card { padding: 22px; max-width: 470px; }

/* The one filled button. Lime with ink on it: the signal colour, readable, and not the
   blurple every Discord login on the internet is. */
.btn-discord {
  position: relative; width: 100%; height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--mc-grass); color: var(--mc-ink); font: 700 15px/1 var(--font-display); letter-spacing: .02em;
  transition: background .15s, transform .15s var(--fx-ease);
}
.btn-discord svg { width: 22px; height: 22px; flex: none; }
.btn-discord:hover { background: #86e070; }
.btn-discord:active { transform: translateY(1px); }
.btn-discord:focus-visible { outline: 2px solid #eef0f2; outline-offset: 3px; }

.btn-quiet {
  width: 100%; height: 44px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #e8e9eb; font: 500 14px/1 inherit;
  transition: background .2s, border-color .2s;
}
.btn-quiet:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }

.gate-hint { font-size: 13px; line-height: 1.5; color: #8f949b; margin: 12px 2px 18px; }
.gate-hint b { color: #e8e9eb; font-weight: 600; }
.gate-lede b { color: #fff; font-weight: 600; }

/* The pulse gets the whole width of the card. It is the one motif this product owns, and
   at postage stamp size it read as a stray icon. */
.gate-live {
  margin: 4px -22px -22px; padding: 6px 22px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0 0 10px 10px;
}
.gate-pulse { display: block; width: 100%; height: 56px; }
.gate-live-label { font-size: 13px; line-height: 1.45; color: #c4c7cc; min-height: 19px; }
.gate-live-label b { color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.gate-live-label .soft { color: #8f949b; }
.gate-live-label .bad { color: #f5b0b2; }

.gate-hero { position: relative; height: min(660px, 80vh); margin-right: -40px; }
.gate-island { position: absolute; inset: 0; width: 100%; height: 100%; }

.gate-foot {
  position: absolute; left: 40px; right: 40px; bottom: 22px;
  display: flex; justify-content: space-between; gap: 16px;
  font: 12px var(--font-mono); color: #5d6269; letter-spacing: .04em;
}

/* Entrance. Staggered, short, and gone under reduced motion. */
.gate-copy > * { animation: fx-rise .9s var(--fx-ease) both; }
.gate-copy > *:nth-child(2) { animation-delay: .07s; }
.gate-copy > *:nth-child(3) { animation-delay: .14s; }
.gate-copy > *:nth-child(4) { animation-delay: .22s; }
.gate-hero { animation: fx-float-in 1.4s var(--fx-ease) .12s both; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fx-float-in { from { opacity: 0; transform: translateY(34px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .gate-grid { grid-template-columns: 1fr; gap: 0; padding: 20px 20px 80px; min-height: auto; }
  .gate-hero { order: -1; height: 300px; margin-right: 0; }
  .gate-brand { margin-bottom: 18px; }
  .gate-foot { left: 20px; right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-copy > *, .gate-hero { animation: none; }
  .btn-discord { transition: none; }
}

/* --- the app ------------------------------------------------------------------------ */

/* The same materials as the gate, turned down. These pages are read for hours: the surfaces
   are flat stone, the lines are hairlines, and colour is spent on what the numbers are. */

:root {
  --bg-0: #0e0f11;
  --bg-1: #141517;
  --bg-2: #1a1c1f;
  --bg-3: #212428;
  --border: rgba(255, 255, 255, .09);
  --text-0: #e8e9eb;
  --text-1: #c4c7cc;
  --text-2: #8b9098;
  --text-3: #5d6269;
  --accent: #6fd35a;
  --accent-dim: rgba(111, 211, 90, .16);
  --green: #6fd35a;
  --yellow: #f5c542;
  --orange: #e07b3c;
  --red: #e5484d;
  --fx-card: #141517;
  --fx-card-line: rgba(255, 255, 255, .09);
  --fx-lift: 0 0 0 1px rgba(111, 211, 90, .45);
}

/* A faint block grid under everything, drawn once by the compositor. */
body:not(.gate) {
  background:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-0);
  background-attachment: fixed;
}

body:not(.gate) > header {
  background: rgba(14, 15, 17, .92);
  border-bottom: 1px solid var(--border);
}
header .brand { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .02em; font-family: var(--font-display); }
header .brand .mark {
  width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center;
  background: var(--mc-grass);
}
header .brand .mark svg { width: 15px; height: 15px; }
header .brand .accent { color: var(--mc-grass); }

/* The live pill is a heart monitor now. It beats while pushes arrive and goes flat and grey
   when they stop, which is what the label beside it already says in words. */
.live-pill {
  background: transparent; border-color: var(--border);
  padding: 4px 12px 4px 8px; gap: 6px; font-family: var(--font-mono); font-size: 11.5px;
}
.live-pill canvas { display: none; width: 58px; height: 20px; }
.live-pill.fx canvas { display: block; }
.live-pill.fx .dot { display: none; }

/* Rail */
nav.side { background: rgba(14, 15, 17, .9); border-right-color: var(--border); }
nav.side .link { transition: background .15s, color .15s; }
nav.side .link.active { background: rgba(111, 211, 90, .08); color: var(--text-0); }
nav.side .link.active::before { background: var(--mc-grass); }
nav.side .link:hover .nav-icon { transform: translateX(1px); }

/* Surfaces */
.card, .panel, .chart-card, .srv-card {
  background: var(--fx-card);
  border-color: var(--fx-card-line);
  border-radius: 8px;
  box-shadow: none;
}
a.srv-card, .srv-card[href] {
  transition: transform .28s var(--fx-ease), box-shadow .28s var(--fx-ease), border-color .28s;
}
a.srv-card:hover, .srv-card[href]:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 211, 90, .45);
}
.srv-card::before { width: 3px; }
.srv-card .big { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }

/* Type: DIN for headings and figures, mono for the small print that labels them. */
.page-head h1, .page-title, .section-title > span:first-child { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; }
.card .value, .grid.stats .card .value, .lh-mspt, .lh-fig b, .tr-figs b, .gl-big b, .gl-figs b, .gl-country,
.profile-id h1, .t3d-tip-grid b, .srv-card .big { font-family: var(--font-display); letter-spacing: 0; }
.card .label, .chart-card .title-row .value, th, .t3d-sub, .lh-fig small, .tr-figs small, .gl-figs small,
.live-pill, .gate-foot, kbd { font-family: var(--font-mono); }
.card .label { letter-spacing: .08em; font-size: 10.5px; }

/* Buttons */
.btn.primary, button.primary {
  background: var(--mc-grass); border-color: transparent; color: var(--mc-ink); font-weight: 700;
  transition: background .15s;
}
.btn.primary:hover, button.primary:hover:not(:disabled) { background: #86e070; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Scrollbars that belong to the page rather than the operating system. */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); background-clip: padding-box; }

/* Entering a page. Only on navigation: the shell sets fx-enter when the route changes and
   takes it off again, so the five second refresh that repaints #main does not replay it.
   A page that flew in every five seconds would be unreadable. */
#main.fx-enter > * { animation: fx-rise .55s var(--fx-ease) both; }
#main.fx-enter .srv-card, #main.fx-enter .grid.stats > .card, #main.fx-enter .stats > .card {
  animation: fx-rise .6s var(--fx-ease) both;
}
#main.fx-enter .srv-card:nth-child(2), #main.fx-enter .stats > .card:nth-child(2) { animation-delay: .04s; }
#main.fx-enter .srv-card:nth-child(3), #main.fx-enter .stats > .card:nth-child(3) { animation-delay: .08s; }
#main.fx-enter .srv-card:nth-child(4), #main.fx-enter .stats > .card:nth-child(4) { animation-delay: .12s; }
#main.fx-enter .srv-card:nth-child(5), #main.fx-enter .stats > .card:nth-child(5) { animation-delay: .16s; }
#main.fx-enter .srv-card:nth-child(6), #main.fx-enter .stats > .card:nth-child(6) { animation-delay: .20s; }
#main.fx-enter .srv-card:nth-child(n+7) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  #main.fx-enter > *, #main.fx-enter .srv-card, #main.fx-enter .stats > .card { animation: none; }
  a.srv-card, .srv-card[href], .btn.primary, button.primary { transition: none; }
}

/* --- overlays: the palette and the toasts ------------------------------------------ */

.cmdk-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px;
  border-radius: 9px; cursor: pointer; color: var(--text-2); font: 500 12.5px/1 inherit;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: background .18s, border-color .18s, color .18s;
}
.cmdk-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(111, 211, 90, .45); color: var(--text-0); }
.cmdk-btn svg { width: 14px; height: 14px; }
.cmdk-btn kbd, .cmdk kbd {
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; margin-left: 2px;
}
@media (max-width: 900px) { .cmdk-btn span, .cmdk-btn kbd { display: none; } }

.cmdk {
  position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start;
  padding-top: 13vh; background: rgba(6, 6, 7, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.cmdk.open { opacity: 1; pointer-events: auto; }
.cmdk-panel {
  width: min(640px, calc(100vw - 32px)); max-height: 66vh; display: flex; flex-direction: column;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), rgba(20, 21, 23, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(111, 211, 90, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateY(-8px) scale(.975); transition: transform .26s var(--fx-ease);
}
.cmdk.open .cmdk-panel { transform: none; }
.cmdk-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cmdk-search svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.cmdk-search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0;
  color: var(--text-0); font: 400 16px/1.3 inherit;
}
.cmdk-search input::placeholder { color: var(--text-3); }
.cmdk-list { overflow-y: auto; padding: 8px; }
.cmdk-group { padding: 10px 10px 5px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cmdk-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
  cursor: pointer; color: var(--text-1); font-size: 13.5px;
}
.cmdk-item.on { background: linear-gradient(90deg, rgba(111, 211, 90, .22), rgba(111, 211, 90, .06)); color: #fff; }
.cmdk-lead { width: 18px; height: 18px; display: grid; place-items: center; flex: none; color: var(--text-3); }
.cmdk-item.on .cmdk-lead { color: var(--accent); }
.cmdk-lead .nav-icon { width: 17px; height: 17px; display: block; }
.cmdk-lead .nav-icon svg { width: 100%; height: 100%; display: block; }
.cmdk-noicon { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.cmdk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.cmdk-dot.sev-ok, .cmdk-dot.sev-good { background: var(--green); }
.cmdk-dot.sev-warn { background: var(--yellow); }
.cmdk-dot.sev-high { background: var(--orange); }
.cmdk-dot.sev-crit { background: var(--red); }
.cmdk-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-hint { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmdk-empty { padding: 28px 12px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.cmdk-foot {
  display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px; color: var(--text-3);
}

.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column-reverse; gap: 10px; width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto; position: relative; display: flex; gap: 12px; cursor: pointer; overflow: hidden;
  padding: 13px 38px 13px 16px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), rgba(20, 21, 23, .92);
  border: 1px solid rgba(255, 255, 255, .11);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: fx-toast-in .45s var(--fx-ease) both;
}
.toast.out { animation: fx-toast-out .3s ease both; }
.toast-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--text-3); }
.toast.tone-good .toast-bar { background: var(--green); }
.toast.tone-bad .toast-bar { background: var(--mc-redstone); }
.toast-body { min-width: 0; flex: 1; }
.toast-title { font-size: 13.5px; font-weight: 600; color: #fff; }
.toast-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.toast-pulse { display: block; width: 100%; height: 30px; margin-top: 6px; }
.toast-x {
  position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 7px;
  border: 0; background: none; color: var(--text-3); font-size: 17px; line-height: 1; cursor: pointer;
}
.toast-x:hover { background: rgba(255, 255, 255, .08); color: var(--text-0); }
@keyframes fx-toast-in { from { opacity: 0; transform: translateX(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fx-toast-out { to { opacity: 0; transform: translateX(24px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  .cmdk, .cmdk-panel { transition: none; }
  .toast, .toast.out { animation: none; }
}

/* --- the network orbit -------------------------------------------------------------- */

.net-orbit {
  position: relative; overflow: hidden; margin-bottom: 18px; padding: 16px 18px 10px;
  background: radial-gradient(ellipse 60% 70% at 50% 58%, rgba(111, 211, 90, .12), transparent 70%), var(--fx-card);
}
.net-orbit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.net-orbit-head .label { margin: 0; }
.net-orbit-legend { font-size: 12px; color: var(--text-3); }
.net-orbit-canvas { display: block; width: 100%; height: 320px; cursor: grab; touch-action: pan-y; }
.net-orbit-canvas:active { cursor: grabbing; }
.net-orbit-tip {
  position: absolute; z-index: 5; width: 230px; pointer-events: none;
  padding: 12px 14px; border-radius: 12px; font-size: 12.5px;
  background: rgba(20, 21, 23, .93); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(111, 211, 90, .15);
  animation: fx-rise .22s var(--fx-ease) both;
}
.net-orbit-tip .t-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; margin-bottom: 9px; }
.net-orbit-tip .t-grid { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; }
.net-orbit-tip .t-grid span { color: var(--text-3); }
.net-orbit-tip .t-grid b { text-align: right; font-weight: 600; color: var(--text-0); font-variant-numeric: tabular-nums; }
.net-orbit-tip b.sev-ok, .net-orbit-tip b.sev-good { color: var(--green); }
.net-orbit-tip b.sev-warn { color: var(--yellow); }
.net-orbit-tip b.sev-high { color: var(--orange); }
.net-orbit-tip b.sev-crit { color: var(--red); }
.net-orbit-tip .t-off { color: var(--text-2); }
.net-orbit-tip .t-go { margin-top: 9px; font-size: 11px; color: var(--accent); }
@media (max-width: 900px) { .net-orbit-canvas { height: 250px; } .net-orbit-legend { display: none; } }

/* --- people and profiles ------------------------------------------------------------ */

.av {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 50%; overflow: hidden; color: #fff; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, hsl(var(--av-h, 240) 62% 52%), hsl(calc(var(--av-h, 240) + 40) 58% 36%));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.waiting { background: transparent; color: var(--text-3); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22) inset; border: 1px dashed rgba(255, 255, 255, .18); }

.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.person-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.person-txt b { font-weight: 600; color: var(--text-0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-txt small { font-size: 11px; color: var(--text-3); }
code.did { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; color: var(--text-2); background: none; padding: 0; }

.who-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 11px 3px 3px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.who-chip:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.who-chip.active { border-color: rgba(111, 211, 90, .45); background: rgba(111, 211, 90, .1); }
.who-chip .muted { color: var(--text-1, var(--text-0)); }
@media (max-width: 700px) { .who-chip { padding-right: 3px; } .who-chip .muted { display: none; } }

.grant-panel .form-row input[type="text"] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
.id-hint { font-size: 12px; margin: -2px 0 6px; min-height: 16px; color: var(--text-3); }
.id-hint.good { color: var(--green); }
.id-hint.bad { color: var(--yellow, #f5b041); }
details.howto { margin-top: 14px; font-size: 12.5px; }
details.howto summary { cursor: pointer; color: var(--accent); list-style: none; }
details.howto summary::-webkit-details-marker { display: none; }
details.howto summary::before { content: '+'; display: inline-block; width: 14px; font-weight: 700; }
details.howto[open] summary::before { content: '\2212'; }
details.howto ol { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); line-height: 1.7; }

.gate-id {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 14px 16px; margin-bottom: 14px; border-radius: 10px;
  background: rgba(111, 211, 90, .12); border: 1px solid rgba(111, 211, 90, .35);
}
.gate-id-label { grid-column: 1 / -1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.gate-id code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 20px; color: #fff; letter-spacing: .03em; user-select: all; background: none; padding: 0; }
.btn-quiet.small { padding: 6px 12px; font-size: 12.5px; width: auto; }

.profile-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 30px;
  padding: 30px 32px; margin-bottom: 18px;
  background: radial-gradient(ellipse 50% 90% at 12% 50%, rgba(111, 211, 90, .2), transparent 70%),
              radial-gradient(ellipse 40% 70% at 95% 0%, rgba(69, 217, 230, .08), transparent 70%), var(--fx-card);
  animation: fx-rise .6s var(--fx-ease) both;
}
.profile-av { position: relative; flex: none; width: 124px; height: 124px; padding: 6px; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.profile-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--mc-grass), rgba(111, 211, 90, 0) 72%, var(--mc-grass));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: fx-spin 9s linear infinite; opacity: .85;
}
.profile-av .av { position: relative; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.profile-av-edit {
  position: absolute; inset: 6px; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16px; font-size: 12px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 60%);
}
.profile-av:hover .profile-av-edit, .profile-av:focus-visible .profile-av-edit { opacity: 1; }
.profile-av.pop .av { animation: fx-pop .6s var(--fx-ease); }
.profile-id { min-width: 0; }
.profile-id h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.profile-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 13px; color: var(--text-2); }
.profile-sub b { color: var(--text-0); font-weight: 600; }
.profile-did { display: inline-flex; align-items: center; gap: 8px; }
.profile-did code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-0); background: rgba(255, 255, 255, .06); padding: 3px 7px; border-radius: 6px; }
.profile-nets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile-net {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; font-size: 12.5px;
  background: rgba(111, 211, 90, .1); border: 1px solid rgba(111, 211, 90, .28);
}
.profile-net b { font-weight: 600; color: var(--text-0); }
.profile-net i { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(111, 211, 90, .25); color: #fff; text-transform: capitalize; }
.profile-net small { font-size: 11px; color: var(--text-3); padding-right: 6px; }
.profile-since { margin: 14px 0 0; font-size: 12px; }
.profile-grid .panel { margin-bottom: 0; }
.profile-drop {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 24px 16px; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, .18);
  color: var(--text-2); font-size: 13px; transition: background .2s, border-color .2s;
}
.profile-drop.over { border-color: var(--accent); background: rgba(111, 211, 90, .1); }
.profile-out { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.profile-out h3 { margin-bottom: 4px; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-pop { 0% { transform: scale(.86); filter: brightness(1.6); } 60% { transform: scale(1.05); } 100% { transform: none; filter: none; } }
@media (max-width: 760px) {
  .profile-hero { flex-direction: column; text-align: center; padding: 26px 18px; }
  .profile-sub, .profile-nets { justify-content: center; }
  .profile-out { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-ring, .profile-hero, .profile-av.pop .av { animation: none; }
}
.profile-handle { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-0); font-size: 13.5px; }
.profile-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.profile-mail b { color: var(--text-0); font-weight: 600; }
@media (max-width: 760px) { .profile-mail { justify-content: center; } }

/* A figure that just changed from a live push: a short brightening, so a moving number is
   seen to move without anything jumping around. */
[data-lk].lk-tick { animation: fx-lk .9s var(--fx-ease); }
@keyframes fx-lk { 0% { color: var(--mc-grass); } 100% { } }
@media (prefers-reduced-motion: reduce) { [data-lk].lk-tick { animation: none; } }

/* --- chunk terrain ------------------------------------------------------------------------ */

.t3d { position: relative; overflow: hidden; padding-bottom: 12px;
  background: radial-gradient(ellipse 70% 60% at 50% 70%, rgba(111, 211, 90, .14), transparent 70%), var(--fx-card); }
.t3d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.t3d-head .label { margin: 0; }
.t3d-sub { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.t3d-worlds { display: flex; gap: 6px; flex-wrap: wrap; }
.t3d-world { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; cursor: pointer; color: var(--text-1, #cdd0d5);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, border-color .2s; }
.t3d-world:hover { border-color: rgba(111, 211, 90, .5); }
.t3d-world.on { color: #fff; background: rgba(111, 211, 90, .22); border-color: rgba(111, 211, 90, .6); }
.t3d-stage { position: relative; margin: 10px -6px 4px; }
.t3d-canvas { display: block; width: 100%; height: 440px; cursor: grab; touch-action: pan-y; }
.t3d-canvas:active { cursor: grabbing; }
.t3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.t3d-label { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 12px); white-space: nowrap;
  padding: 5px 9px; border-radius: 9px; font-size: 11.5px; color: #dcdee2; line-height: 1.35;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(18, 19, 21, .82); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: opacity .4s; will-change: transform; }
.t3d-label b { color: #fff; font-weight: 650; }
.t3d-label::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 1px; height: 12px;
  background: linear-gradient(rgba(255, 255, 255, .5), transparent); }
.t3d-tip { position: absolute; z-index: 4; width: 250px; pointer-events: none;
  padding: 12px 14px; border-radius: 12px; font-size: 12.5px;
  background: rgba(20, 21, 23, .94); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(111, 211, 90, .15); animation: fx-rise .2s var(--fx-ease) both; }
.t3d-tip-head { color: var(--text-2); margin-bottom: 8px; }
.t3d-tip-head b { color: #fff; }
.t3d-tip-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.t3d-tip-grid span { color: var(--text-3); }
.t3d-tip-grid b { text-align: right; color: var(--text-0); font-variant-numeric: tabular-nums; }
.t3d-tip-foot { margin-top: 9px; font-size: 11px; color: var(--accent); }
.t3d-caption { margin: 6px 0 0; }
@media (max-width: 900px) { .t3d-canvas { height: 320px; } }

/* --- live telemetry band ------------------------------------------------------------------ */

.lh { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; padding: 20px 24px;
  background: radial-gradient(ellipse 45% 90% at 12% 50%, rgba(111, 211, 90, .18), transparent 70%), var(--fx-card);
  transition: filter .5s; }
.lh.stale { filter: saturate(.35); }
.lh-ring { position: relative; width: 250px; height: 230px; }
.lh-ring-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lh-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 6px; }
.lh-mspt { font-size: 50px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.lh-ring-text span { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.lh-sev { font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 8px; }
.lh[data-sev="warn"] .lh-mspt { color: #f5c542; }
.lh[data-sev="high"] .lh-mspt { color: #e07b3c; }
.lh[data-sev="crit"] .lh-mspt { color: #e5484d; }
.lh-side { min-width: 0; display: grid; gap: 14px; }
.lh-state { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-1, #cdd0d5); }
.lh-dot { width: 9px; height: 9px; border-radius: 50%; background: #6fd35a; box-shadow: 0 0 0 0 rgba(111, 211, 90, .6); animation: lh-dot 1.2s ease-out infinite; }
.lh.stale .lh-dot { background: #6b7078; animation: none; }
@keyframes lh-dot { to { box-shadow: 0 0 0 9px rgba(111, 211, 90, 0); } }
.lh-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lh-fig { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.lh-fig small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lh-fig b { display: block; margin-top: 4px; font-size: 24px; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-fig span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-line { position: relative; height: 92px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.lh-line-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lh-line-label { position: absolute; left: 10px; top: 7px; font-size: 11px; color: var(--text-3); }
@media (max-width: 1100px) { .lh-figs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .lh { grid-template-columns: 1fr; justify-items: center; }
  .lh-side { width: 100%; }
}

/* Server cards: a live line, and a dot that ticks on each push. */
.srv-spark { display: block; width: 100%; height: 34px; margin: 4px 0 6px; }
.srv-card .dot.beat { animation: fx-dot-beat .7s var(--fx-ease); }
@keyframes fx-dot-beat { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 90, .8); } 100% { box-shadow: 0 0 0 8px rgba(111, 211, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .srv-card .dot.beat { animation: none; } }

/* --- spacing ----------------------------------------------------------------------------- */

/* One vertical rhythm for every page. The views put their cards one after another into
   #content and .card carries no margin of its own, so a view that did not wrap its cards in
   a grid had them touching: sixteen pages measured with no gap between boxes. The rule is set
   once here rather than in sixteen views. Boxes that sit in a grid are left to the grid's own
   gap, or the second card of a row would drop out of line with the first. */
#content > * + * { margin-top: 16px; }
#main :is(.card, .panel, .chart-card, table, .empty, .notice, .remote-state, .grid, .grid2, .cols)
  + :is(.card, .panel, .chart-card, table, .empty, .notice, .remote-state, .grid, .grid2, .cols) { margin-top: 14px; }
#main :is(.grid, .grid2, .cols, .srv-cards, .admin-grid, .stats, .overview-split, .overview-side)
  > :is(.card, .panel, .chart-card, table, .empty, .notice, .remote-state, .grid, .grid2, .cols) { margin-top: 0; }

/* A figure box is as tall as what is in it. The fixed 108px floor left a label and a number
   floating in a box twice their height. Rows still line up, because a grid row takes its
   tallest box; inside a card, where two or three figures are a breakdown rather than a strip,
   each box keeps its own height and the columns fit the space. */
.grid.stats .card { min-height: 0; }
.card .grid.stats, .panel .grid.stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; margin-bottom: 14px;
}

/* An odd chart out at the end of a two-up grid takes the whole row instead of leaving half of
   it empty. */
.grid.two > .chart-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* --- tick radar ----------------------------------------------------------------------------- */

.tr { display: grid; grid-template-columns: minmax(300px, 520px) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 22px 26px;
  background: radial-gradient(ellipse 50% 90% at 22% 50%, rgba(111, 211, 90, .16), transparent 70%), var(--fx-card); }
.tr-dial { position: relative; width: 100%; aspect-ratio: 1; }
.tr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.tr-tip { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 11px;
  pointer-events: none; font-size: 12px; min-width: 130px;
  background: rgba(20, 21, 23, .94); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5); }
.tr-tip[hidden] { display: none; }
.tr-tip b { color: #fff; font-variant-numeric: tabular-nums; }
.tr-tip span { color: var(--text-0); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tr-tip em { font-style: normal; font-size: 11px; color: var(--text-3); }
.tr-side .label { margin: 0 0 10px; }
.tr-how { margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); max-width: 40em; }
.tr-how b { color: #f7d774; font-weight: 650; }
.tr-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tr-figs > div { padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.tr-figs small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.tr-figs b { display: block; margin-top: 5px; font-size: 24px; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-figs span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.tr-foot { margin: 14px 0 0; font-size: 12px; }
@media (max-width: 1000px) { .tr { grid-template-columns: 1fr; } .tr-dial { max-width: 520px; margin: 0 auto; } }
@media (max-width: 480px) { .card.tr { padding: 18px 16px; } .tr-figs { gap: 10px; } .tr-figs > div { padding: 11px 12px; } .tr-figs b { font-size: 19px; } }

/* --- players: the globe ------------------------------------------------------------------------ */

.gl { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 24px; align-items: center; padding: 18px 24px;
  background: radial-gradient(ellipse 55% 90% at 30% 50%, rgba(69, 217, 230, .10), transparent 70%), var(--fx-card); }
.gl-stage { position: relative; height: 480px; }
.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.gl-canvas:active { cursor: grabbing; }
.gl-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gl-label { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 8px); white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; padding: 5px 10px; border-radius: 9px; font-size: 11.5px;
  color: #dcdee2; background: rgba(18, 19, 21, .82); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: opacity .18s; will-change: transform; }
.gl-label b { color: #fff; font-weight: 650; }
.gl-tip { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 11px;
  pointer-events: none; font-size: 12px; min-width: 150px;
  background: rgba(20, 21, 23, .94); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); }
.gl-tip[hidden] { display: none; }
.gl-tip b { color: #fff; }
.gl-tip span { font-size: 15px; font-weight: 650; color: var(--text-0); }
.gl-tip em { font-style: normal; font-size: 11px; color: var(--text-3); }
.gl-side .label { margin: 0 0 8px; }
.gl-big b { display: block; font-size: 72px; line-height: 1; font-weight: 700; color: var(--mc-grass); }
.gl-big span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.gl-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 16px; }
.gl-figs > div { padding: 13px 15px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.gl-figs small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.gl-figs b { display: block; margin-top: 5px; font-size: 20px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-figs span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.gl-how { margin: 0; font-size: 12.5px; line-height: 1.6; }
@media (max-width: 1000px) { .gl { grid-template-columns: 1fr; } .gl-stage { height: 380px; } }

.gl-controls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.gl-btn { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; line-height: 1; cursor: pointer; color: #fff;
  background: rgba(22, 24, 27, .8); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s; }
.gl-btn:hover { background: rgba(111, 211, 90, .25); border-color: rgba(111, 211, 90, .6); }
.gl-hint { position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: 11px; color: var(--text-3); pointer-events: none; }
.gl-label.chosen { border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(111, 211, 90, .6), 0 10px 30px rgba(0, 0, 0, .4); }
.gl-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gl-pick-head .label { margin: 0; }
.gl-country { margin: 6px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.gl-servers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.gl-servers li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.gl-servers a { color: var(--text-0); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-servers a:hover { color: var(--accent); }
.gl-sbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.gl-sbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6fd35a, #45d9e6); }
.gl-servers b { font-variant-numeric: tabular-nums; color: #fff; }
.gl-asked { margin: 10px 0 0; font-size: 11.5px; }
.gl-loading { margin: 8px 0 0; }
.geo-list li { cursor: pointer; border-radius: 8px; transition: background .15s; }
.geo-list li:hover { background: rgba(111, 211, 90, .1); }
.gl-stage { height: 560px; }
@media (max-width: 1000px) { .gl-stage { height: 420px; } }

/* Each live figure in the material of what it measures. */
.lh-fig:nth-child(1) b { color: var(--mc-grass); }
.lh-fig:nth-child(2) b { color: var(--mc-diamond); }
.lh-fig:nth-child(3) b { color: var(--mc-copper); }
.lh-fig:nth-child(4) b { color: var(--mc-amethyst); }

/* Figures in the material of what they measure. */
.card .value.tone-grass { color: var(--mc-grass); }
.card .value.tone-emerald { color: var(--mc-emerald); }
.card .value.tone-diamond { color: var(--mc-diamond); }
.card .value.tone-gold { color: var(--mc-gold); }
.card .value.tone-lapis { color: #6f93ff; }
.card .value.tone-amethyst { color: var(--mc-amethyst); }
.lh-fig b.none { color: var(--text-3); font-size: 18px; }

/* --- Findings: the check board ------------------------------------------------------------ */

.fb { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.fb-inv { position: relative; min-width: 0; }
.fb-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.fb-head .label { margin: 0; }
.fb-order { font: 11px var(--font-mono); color: var(--text-3); }
.fb-grid { position: relative; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px 8px; padding: 12px;
  background: #0e0f11; border: 1px solid rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; }
.fb-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.fb-slot { --c: #6fd35a; position: relative; width: 100%; max-width: 72px; aspect-ratio: 1; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 3px; cursor: pointer; background: #1b1c1f;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .6), inset -2px -2px 0 rgba(255, 255, 255, .06); transition: background .15s; }
.fb-slot:hover, .fb-slot:focus-visible { outline: none; background: #26282c;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .6), inset -2px -2px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--c); }
.fb-cube { width: 60%; height: 60%; overflow: visible; }
.fb-cube .t { fill: color-mix(in srgb, var(--c), #fff 18%); }
.fb-cube .l { fill: var(--c); }
.fb-cube .r { fill: color-mix(in srgb, var(--c), #000 34%); }
.fb-cube .g { fill: none; stroke: rgba(0, 0, 0, .16); stroke-width: .7; }
.fb-cube.ghost path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; stroke-dasharray: 2 2; }
.fb-slot:hover .fb-cube:not(.ghost) { transform: translateY(-2px); transition: transform .15s; }
.fb-num { position: absolute; top: 3px; right: 5px; font: 700 12px/1 var(--font-display); color: #fff; text-shadow: 1px 1px 0 #3a3a3a; }
.fb-bar { position: absolute; left: 14%; right: 14%; bottom: 9%; height: 3px; background: #000; }
.fb-bar i { display: block; height: 100%; background: var(--c); }
.fb-name { font: 10.5px var(--font-mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-crit { --c: #e5484d; } .st-high { --c: #e07b3c; } .st-warn { --c: #f5c542; } .st-low { --c: #cdd1d6; }
.st-note { --c: #45d9e6; } .st-clean { --c: #6fd35a; } .st-wait { --c: rgba(255, 255, 255, .25); }

/* A new scan is placed slot by slot behind a diamond scan line; the same scan repainting
   every ten seconds sits still. */
.fb.fresh .fb-cell { animation: fb-place .5s var(--fx-ease, ease-out) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
@keyframes fb-place { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: none; } }
.fb-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #45d9e6; opacity: 0; pointer-events: none; }
.fb.fresh .fb-sweep { animation: fb-sweep 1.1s var(--fx-ease, ease-out) .1s both; }
@keyframes fb-sweep { 0% { opacity: .9; transform: translateX(0); } 85% { opacity: .9; } 100% { opacity: 0; transform: translateX(var(--sweep, 1000px)); } }
@media (prefers-reduced-motion: reduce) { .fb.fresh .fb-cell, .fb.fresh .fb-sweep { animation: none; } }

.fb-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.fb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.fb-legend .sw + .sw { margin-left: -3px; }
.sw.sw-empty { background: none; border: 1px dashed rgba(255, 255, 255, .3); padding: 0; margin: 0; box-sizing: border-box; }
.sw.bar { width: 18px; height: 3px; border-radius: 0; background: linear-gradient(90deg, #6fd35a 70%, #000 70%); }
.sw.num { width: auto; height: auto; background: none; font: 700 12px var(--font-display); color: #fff; text-shadow: 1px 1px 0 #3a3a3a; }

/* The tooltip every player knows: near-black with a violet frame. */
.fb-tip { position: absolute; left: 0; top: 0; z-index: 5; max-width: 280px; display: grid; gap: 3px; padding: 7px 10px;
  background: rgba(16, 2, 18, .96); border: 2px solid #2c0f5c; border-radius: 3px; pointer-events: none; font-size: 12.5px; color: #c9c9c9; }
.fb-tip[hidden] { display: none; }
.fb-tip b { color: #fff; font-weight: 600; }
.fb-tip .v { color: var(--c); }
.fb-tip .d { color: #8b8f96; font-size: 11.5px; }

.fb-side { display: grid; gap: 18px; }
.fb-side small { display: block; font: 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.fb-verdict b { display: block; margin-top: 4px; font: 700 40px/1 var(--font-display); }
.fb-verdict p { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.fb-counts { display: grid; gap: 2px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.fb-counts a { display: flex; align-items: center; gap: 9px; padding: 7px 2px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.fb-counts a:hover { color: #fff; }
.fb-counts b { margin-left: auto; font: 700 16px var(--font-display); color: #fff; }
.fb-scan b { display: block; margin-top: 4px; font: 700 22px var(--font-display); color: #fff; }
.fb-scan > span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.fb-scan em { font-style: normal; }
.fb-scan p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-3); }
.fb-rescan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.fb-note { font-size: 12px; color: var(--text-3); }
.fb-note.ok { color: var(--mc-grass, #6fd35a); }
.fb-note.bad { color: #e5484d; }

/* Landing on a finding from the board. */
.card.fb-landed { animation: fb-landed 1.4s ease-out; }
@keyframes fb-landed { 0%, 30% { box-shadow: 0 0 0 2px #45d9e6; } 100% { box-shadow: 0 0 0 2px transparent; } }

/* Confidence as five pips beside the words. */
.fi-conf { display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: middle; }
.fi-conf i { width: 6px; height: 10px; border-radius: 1px; background: rgba(255, 255, 255, .12); }
.fi-conf i.on { background: #45d9e6; }

/* The explanation library, as paragraphs and lists instead of one run of line breaks. */
.explain-note { margin: 12px 0; padding: 12px 14px; border-radius: 8px; background: rgba(69, 217, 230, .05);
  border: 1px solid rgba(69, 217, 230, .14); }
.explain-note strong { display: block; margin-bottom: 4px; font: 10.5px var(--font-mono); letter-spacing: .1em;
  text-transform: uppercase; color: #45d9e6; }
.explain-note p { margin: 4px 0; }
.explain-note h5 { margin: 10px 0 2px; font-size: 12.5px; color: var(--text-1, #eef0f2); }
.explain-note ul { margin: 2px 0 0; padding-left: 18px; }
.explain-note li { margin: 2px 0; }

@media (max-width: 1100px) { .fb { grid-template-columns: 1fr; } .fb-side { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@media (max-width: 640px) { .fb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 6px; padding: 10px; } .fb-verdict b { font-size: 32px; } }
@media (max-width: 400px) { .fb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* The header on a phone. It cannot wrap, and brand, crumbs, search, the live pill and the
   account together were 523 px wide, which widened every page to that on a 375 px screen.
   The crumbs repeat what the page's own tab strip says; the pill keeps its heartbeat. */
@media (max-width: 560px) {
  header #crumbs { display: none; }
  header .brand > span:not(.mark) { display: none; }
  header #live-label { display: none; }
  header .right { margin-left: auto; }
}

/* --- Agent log ------------------------------------------------------------------------------ */

.al-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid #f5c542; background: #16171a; color: var(--text-2); }
.al-note b { color: #fff; }
.al-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.al-list { display: grid; gap: 8px; }
.al-row { --c: #8b9098; padding: 10px 14px; border-radius: 6px; background: #16171a;
  border: 1px solid rgba(255, 255, 255, .06); border-left: 3px solid var(--c); min-width: 0; }
.al-row.lv-error { --c: #e5484d; }
.al-row.lv-warn { --c: #f5c542; }
.al-row.lv-info { --c: #5c6068; }
.al-row.link { --c: #45d9e6; }
.al-row.link.lv-warn { --c: #e07b3c; }
.al-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 11px var(--font-mono); color: var(--text-3); }
.al-lv { text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.al-count { font: 700 12px var(--font-display); color: #fff; }
.al-when { margin-left: auto; }
.al-msg { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-1, #eef0f2); overflow-wrap: anywhere; }
.al-detail { margin-top: 6px; }
.al-detail summary { cursor: pointer; font: 11px var(--font-mono); color: var(--text-3); }
.al-detail pre { margin: 6px 0 0; padding: 10px; max-height: 320px; overflow: auto; border-radius: 6px; background: #0e0f11;
  font: 11.5px/1.5 var(--font-mono); color: #c4c7cc; white-space: pre-wrap; overflow-wrap: anywhere; }

/* --- Ping across the network ------------------------------------------------------------------ */

.pingnet .label .aside { margin-left: 10px; font: 11px var(--font-mono); color: var(--text-3); text-transform: none; letter-spacing: 0; }
.pn-summary { margin: 4px 0 14px; font-size: 13.5px; color: var(--text-2); }
.pn-chart { position: relative; height: 200px; margin: 0 0 22px 44px; }
.pn-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pn-chart path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pn-chart rect.net { fill: rgba(229, 72, 77, .16); }
.pn-chart rect.one { fill: #f5c542; }
.pn-max, .pn-zero { position: absolute; left: -44px; width: 38px; text-align: right; font: 10.5px var(--font-mono); color: var(--text-3); }
.pn-max { top: 0; } .pn-zero { bottom: 0; }
.pn-from, .pn-to { position: absolute; bottom: -18px; font: 10.5px var(--font-mono); color: var(--text-3); }
.pn-from { left: 0; } .pn-to { right: 0; }
.pn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); }
.pn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pn-legend i { width: 12px; height: 3px; border-radius: 1px; }
.pn-legend i.band { height: 10px; background: rgba(229, 72, 77, .35); }
.pn-legend i.one { height: 6px; background: #f5c542; }
.pn-list { display: grid; gap: 6px; margin-top: 14px; }
.pn-row { display: grid; grid-template-columns: 150px minmax(0, 1.2fr) 70px minmax(0, 2fr); gap: 12px; align-items: baseline;
  padding: 8px 12px; border-radius: 6px; background: #16171a; border-left: 3px solid #f5c542; font-size: 13px; }
.pn-row.network { border-left-color: #e5484d; }
.pn-when { font: 12px var(--font-mono); color: var(--text-2); }
.pn-who { color: #fff; overflow-wrap: anywhere; }
.pn-who em { font-style: normal; font: 11px var(--font-mono); color: var(--text-3); margin-left: 4px; }
.pn-worst { font: 700 13px var(--font-display); color: #fff; text-align: right; }
.pn-why { color: var(--text-3); font-size: 12.5px; }
@media (max-width: 760px) { .pn-row { grid-template-columns: 1fr auto; } .pn-why { grid-column: 1 / -1; } .pn-who { grid-column: 1; } }

/* --- What changed and headroom (server summary) --------------------------------------------- */

.insight-row { margin-top: 18px; }
.ins-card .label { margin-bottom: 8px; }
.ins-changes { display: grid; gap: 6px; }
.ins-change { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2px 12px; padding: 8px 12px; border-radius: 6px;
  background: #16171a; border-left: 3px solid var(--mc-lapis); font-size: 13px; }
.ins-when { font: 12px var(--font-mono); color: var(--text-3); grid-row: span 2; }
.ins-what { color: var(--text-1); overflow-wrap: anywhere; }
.ins-what b { color: #fff; font-weight: 600; }
.ins-effect { font: 12px var(--font-mono); }
.ins-worse { color: var(--mc-redstone); }
.ins-better { color: var(--mc-grass); }
.tone-grass { color: var(--mc-grass); }
.ins-verdict { margin: 10px 0 4px; font: 600 14.5px var(--font-display); color: #fff; }
.ins-chart { display: block; width: 100%; height: 120px; }
.ins-chart circle { fill: var(--mc-gold); }
.ins-chart line.fit { stroke: var(--mc-diamond); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ins-chart line.limit { stroke: var(--mc-redstone); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ins-chart rect.seen { fill: rgba(255, 255, 255, .035); }
.ins-axis { display: flex; justify-content: space-between; font: 10.5px var(--font-mono); color: var(--text-3); margin-top: 2px; }

/* --- machines -------------------------------------------------------------------------------- */

.mc-machine { padding: 12px 14px; margin-bottom: 10px; border-radius: 8px; background: #16171a; border-left: 3px solid var(--mc-lapis); }
.mc-machine.busy { border-left-color: var(--mc-copper); }
.mc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.mc-head b { color: #fff; font: 600 14px var(--font-display); }
.mc-head span { font: 12px var(--font-mono); color: var(--text-2); }
.mc-verdict { margin: 4px 0 8px; font-size: 13px; color: var(--text-2); }
.mc-machine.busy .mc-verdict { color: var(--mc-copper); }
.mc-ip { margin: 4px 0 0; font: 12px var(--font-mono); color: var(--text-3); overflow-wrap: anywhere; }
.mc-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 10px; padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, .05); font-size: 13px; color: var(--text-2); }
.mc-name { color: #fff; display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.mc-name em { font-style: normal; font: 10.5px var(--font-mono); color: var(--mc-amethyst); }
@media (max-width: 640px) { .mc-row { grid-template-columns: 1fr 1fr; } }

/* --- player lookup --------------------------------------------------------------------------- */

.pl-search input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: #0e0f11;
  color: #fff; font-size: 15px; }
.pl-search input:focus { outline: none; border-color: var(--mc-diamond); }
.pl-results { display: grid; gap: 4px; margin-top: 8px; }
.pl-results:empty { display: none; }
.pl-hit { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--text-2); font-size: 13px; }
.pl-hit:hover { background: #16171a; }
.pl-hit b { color: #fff; }
.pl-hit span:last-child { margin-left: auto; font: 12px var(--font-mono); color: var(--text-3); }
.pl-av { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 5px;
  background: var(--mc-lapis); color: #fff; font: 700 13px var(--font-display); }
.pl-av.big { width: 48px; height: 48px; font-size: 22px; border-radius: 8px; }
.pl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pl-head h2 { margin: 0; font: 700 20px var(--font-display); color: #fff; }
.pl-range { margin-left: auto; display: flex; gap: 6px; }
.pl-verdict { border-left: 3px solid var(--mc-grass); }
.pl-verdict.warn { border-left-color: var(--mc-gold); }
.pl-verdict.bad { border-left-color: var(--mc-redstone); }
.pl-verdict b { color: #fff; font: 600 15px var(--font-display); }
.pl-verdict p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.pl-chart { height: 180px; }
.pl-chart line.pl-45 { stroke: var(--mc-redstone); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .6; }
.pl-worst { display: grid; gap: 4px; }
.pl-worst > div { display: grid; grid-template-columns: 60px 70px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13px; color: var(--text-2); }
.pl-worst b { color: #fff; font: 700 13px var(--font-display); text-align: right; }
.pl-worst span:first-child { font: 12px var(--font-mono); color: var(--text-3); }

/* --- incidents ------------------------------------------------------------------------------- */

.inc-open { border-left: 3px solid var(--mc-redstone); font-size: 13.5px; color: var(--text-2); }
.inc-open b { color: var(--mc-redstone); margin-right: 8px; }
.inc-open a { color: #fff; }
.inc-list { display: grid; gap: 6px; }
.inc-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 90px 90px; gap: 12px; align-items: center; padding: 10px 14px;
  border-radius: 8px; background: #16171a; border-left: 3px solid var(--mc-gold); text-decoration: none; color: var(--text-2); font-size: 13px; }
.inc-row:hover { background: #1b1c20; }
.inc-row.sev-high { border-left-color: var(--mc-copper); }
.inc-row.sev-crit { border-left-color: var(--mc-redstone); }
.inc-when { font: 12px var(--font-mono); color: var(--text-2); display: grid; }
.inc-when small, .inc-peak small { font-size: 11px; color: var(--text-3); }
.inc-what { display: grid; min-width: 0; overflow-wrap: anywhere; }
.inc-what b { color: #fff; font-weight: 600; }
.inc-peak { font: 700 14px var(--font-display); color: #fff; text-align: right; display: grid; }
.inc-dur { font: 12px var(--font-mono); text-align: right; }
@media (max-width: 700px) { .inc-row { grid-template-columns: 1fr auto; } }
.inc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
#inc-share-out { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; }
#inc-share-out input { flex: 1; min-width: 240px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: #0e0f11; color: #fff; font: 12.5px var(--font-mono); }
#inc-share-out .sub { flex-basis: 100%; }
.inc-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.inc-chart .label .aside { margin-left: 8px; font: 11px var(--font-mono); color: var(--text-3); text-transform: none; letter-spacing: 0; }
.inc-chart svg { display: block; width: 100%; height: 120px; margin-top: 8px; }
.inc-chart path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.inc-band { fill: rgba(229, 72, 77, .14); }
.inc-finding { padding: 8px 0 10px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.inc-finding:first-child { border-top: none; }
.inc-finding b { color: #fff; }
.inc-finding.sev-high b, .inc-finding.sev-critical b { color: var(--mc-redstone); }
.inc-finding.sev-medium b, .inc-finding.sev-warning b { color: var(--mc-gold); }
.inc-finding p { margin: 4px 0 6px; color: var(--text-2); line-height: 1.5; }
.inc-ev { display: inline-block; margin: 0 6px 4px 0; padding: 2px 7px; border-radius: 4px; background: #0e0f11;
  font: 11.5px var(--font-mono); color: var(--text-2); }
.inc-ev b { color: #fff; font-weight: 600; }
.inc-ev-row { display: grid; grid-template-columns: 70px 150px minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.inc-ev-row > span:first-child { font: 12px var(--font-mono); color: var(--text-3); }
.inc-ev-row b { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.inc-ev-row.other { opacity: .55; }
.inc-ev-row em { font-style: normal; font: 11px var(--font-mono); color: var(--text-3); }

/* the page a share link opens: no shell, just the incident */
body.shared-page > main { padding: 28px 16px 40px; }
.shared-wrap { max-width: 1180px; margin: 0 auto; }
/* body.gate carries the landing page's poster-sized h1; a shared incident is a document, not a poster. */
body.gate .shared-wrap h1 { font-size: 26px; line-height: 1.25; letter-spacing: 0; max-width: none; margin: 0 0 6px; color: #fff; }
.shared-wrap .page-head { display: block; }
.shared-wrap .page-head .sub { display: block; }
.page-head { flex-wrap: wrap; }
.shared-foot { margin-top: 24px; text-align: center; color: var(--text-3); }

/* --- weekly report panel --------------------------------------------------------------------- */

.rp-form { display: grid; gap: 10px; margin-top: 10px; }
.rp-form input[type="url"] { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: #0e0f11; color: #fff; font: 12.5px var(--font-mono); }
.rp-form label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.rp-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
#rp-pre { max-height: 360px; overflow: auto; white-space: pre-wrap; font-size: 12px; }

/* --- a proxy's page ------------------------------------------------------------------------ */

.px-reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.px-reason { display: grid; gap: 2px; padding: 8px 10px; border-radius: 6px; background: #16171a; border-left: 3px solid var(--mc-grass); }
.px-reason.warn { border-left-color: var(--mc-gold); }
.px-reason.bad { border-left-color: var(--mc-redstone); }
.px-reason b { font: 700 18px var(--font-display); color: #fff; }
.px-reason span { font-size: 12px; color: var(--text-2); }
