/* MinecraftServers100
   Palette from the game's own materials: diorite page, deepslate panels for the
   in-game strings (MOTD, header), lapis for actions, emerald/redstone for status. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/rubik-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/rubik-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/rubik-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/rubik-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #E7EAEE;
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --ink: #1A1E24;
  --ink-2: #505864;
  --ink-3: #646D79;
  --line: #D3D9E0;
  --slate: #262A31;
  --slate-2: #323842;
  --slate-ink: #B8C0CC;
  --lapis: #2F5FD8;
  --lapis-dark: #2349AE;
  --lapis-tint: #E6EDFC;
  --emerald: #19884A;
  --emerald-bright: #3BD16F;
  --redstone: #C2302A;
  --gold: #D89A06;
  --gold-tint: #FFF7E0;
  --radius: 8px;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); }
img { max-width: 100%; }
a { color: var(--lapis); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--lapis-dark); }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.block { display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 600; }
.h-home { font-size: 34px; }
.lede { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; max-width: 68ch; }
.intro { max-width: 70ch; margin: 0 0 18px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
main { padding: 26px 0 56px; min-height: 60vh; }

/* ------------------------------------------------------------ header */
.top { background: var(--slate); color: #fff; }
.top-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 500; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand b { color: var(--emerald-bright); font-weight: 700; }
.mark { width: 28px; height: 28px; flex: none; }
.search { flex: 1; max-width: 460px; }
.search input { width: 100%; height: 38px; border: 1px solid #434A55; background: var(--slate-2); color: #fff; border-radius: 6px; padding: 0 12px; font: inherit; }
.search input::placeholder { color: #98A1AE; }
.search input:focus { outline: none; border-color: #7FA2F5; background: #3A404B; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav a { color: #DCE1E8; text-decoration: none; }
.nav a:hover { color: #fff; }
.nav .btn-add { color: #fff; }

.rail { background: var(--surface); border-bottom: 1px solid var(--line); }
.rail-in { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.rail-in::-webkit-scrollbar { display: none; }
.rail a { flex: none; padding: 5px 11px; border-radius: 5px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; }
.rail a:hover { background: var(--surface-2); color: var(--ink); }
.rail a.on { background: var(--slate); color: #fff; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--lapis); color: #fff; border: 1px solid var(--lapis);
  border-radius: 6px; padding: 8px 15px; font: 500 15px/1.3 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--lapis-dark); border-color: var(--lapis-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: #BCC4CE; }
.btn-vote { padding: 10px 20px; font-size: 16px; }
.btn-danger { background: var(--redstone); border-color: var(--redstone); }
.btn-danger:hover { background: #9E241F; border-color: #9E241F; }
.lnk { background: none; border: 0; padding: 0; color: var(--lapis); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lnk-danger { color: var(--redstone); }

/* ------------------------------------------------------------ layout */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.col-side { display: grid; gap: 16px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ filters */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.filters label { display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-2); }
.filters select { height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 0 8px; font: 14px var(--sans); color: var(--ink); width: 100%; }

/* ------------------------------------------------------------ server list */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.srv { display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) 128px; gap: 14px; align-items: center; padding: 14px 16px 14px 8px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.srv-rank { text-align: center; font-weight: 700; font-size: 17px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.srv-icon img { display: block; width: 64px; height: 64px; border-radius: 4px; image-rendering: pixelated; background: var(--slate); }
.srv-main { min-width: 0; display: grid; gap: 6px; }
.srv-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.srv-name { font-weight: 600; font-size: 16.5px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-name:hover { color: var(--lapis); text-decoration: underline; }
.cc, .ed { flex: none; font-size: 11.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; line-height: 17px; }
.ed { color: var(--lapis-dark); border-color: #C6D4F6; background: var(--lapis-tint); }
.srv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.ver { color: var(--ink-3); }
.tg { color: var(--ink-2); text-decoration: none; font-size: 13px; }
.tg:hover { color: var(--lapis); text-decoration: underline; }
.tg + .tg::before { content: ''; }
.srv-stats { display: grid; justify-items: end; gap: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.pl b { font-size: 17px; font-weight: 600; }
.pl span { color: var(--ink-3); font-size: 13px; }
.pl .off { color: var(--redstone); font-size: 14px; }
.vt { font-size: 13px; color: var(--ink-2); }
.vt b { color: var(--ink); font-weight: 600; }

.srv-sp { background: var(--gold-tint); box-shadow: inset 4px 0 0 var(--gold); }
.sp-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: #6B4800; background: #FBE3A6; border-radius: 3px; padding: 1px 6px; }
.srv-off .srv-icon img { filter: grayscale(1); opacity: .6; }
.srv-off .motd { opacity: .75; }
.srv-ad { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* The in-game string: dark strip, Minecraft colour codes, monospace. */
.motd { background: var(--slate); color: #AAAAAA; font: 500 13px/1.5 var(--mono); padding: 5px 10px; border-radius: 4px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.motd-lg { font-size: 15px; padding: 10px 14px; display: block; }

.ip { display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px var(--mono); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 3px 8px; cursor: copy; max-width: 100%; }
.ip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip::after { content: 'copy'; font: 500 11px var(--sans); color: var(--ink-3); }
.ip:hover { border-color: var(--lapis); }
.ip[data-state="copied"]::after { content: 'copied'; color: var(--emerald); }
.ip-lg { font-size: 17px; padding: 8px 12px; }
.ip-lg::after { font-size: 12px; }

.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sig i { display: block; width: 4px; background: var(--line); }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; } .sig i:nth-child(3) { height: 9px; } .sig i:nth-child(4) { height: 11px; } .sig i:nth-child(5) { height: 14px; }
.sig-1 i:nth-child(-n+1), .sig-2 i:nth-child(-n+2), .sig-3 i:nth-child(-n+3), .sig-4 i:nth-child(-n+4), .sig-5 i { background: var(--emerald); }
.sig-off i { background: #E8B4B1; }

.pages { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0; }
.pages a, .pages span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 6px; text-decoration: none; }
.pages a { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pages a:hover { border-color: var(--lapis); color: var(--lapis); }
.pages .cur { background: var(--slate); color: #fff; font-weight: 600; }
.pages .gap { color: var(--ink-3); }

.empty { background: var(--surface); border: 1px dashed #BCC4CE; border-radius: var(--radius); padding: 28px; text-align: center; }
.related { margin-top: 26px; }
.related .tg { display: inline-block; margin-right: 12px; font-size: 14.5px; }

/* ------------------------------------------------------------ sidebar */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box h2 { font-size: 16px; margin-bottom: 10px; }
.box p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.box-own { background: var(--slate); border-color: var(--slate); color: #fff; }
.box-own p { color: var(--slate-ink); }
.mini { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.mini a { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-decoration: none; color: var(--ink); }
.mini img { grid-row: span 2; border-radius: 3px; image-rendering: pixelated; background: var(--slate); }
.mini span { font-weight: 500; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini small { color: var(--ink-3); font-size: 12.5px; }
.mini a:hover span { color: var(--lapis); text-decoration: underline; }
.more { font-size: 14px; }
.tagcloud { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.tagcloud a { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink); text-decoration: none; padding: 2px 0; }
.tagcloud a span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tagcloud a:hover { color: var(--lapis); }
.house { display: grid; gap: 6px; padding: 18px 16px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--gold-tint) 0 10px, #FFF2CC 10px 20px); border: 1px solid #F0D58A; }
.house b { font-size: 16px; }
.house span { font-size: 14px; color: #6B5200; }
.house .house-cta { color: var(--lapis); text-decoration: underline; }
.ad { text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.ad-top { margin: 0 0 14px; }

/* ------------------------------------------------------------ server page */
.sv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px 20px; margin-bottom: 24px; }
.sv-icon { width: 96px; height: 96px; border-radius: 6px; image-rendering: pixelated; background: var(--slate); }
.sv-off .sv-icon { filter: grayscale(1); }
.sv-title { align-self: center; min-width: 0; }
.sv-title h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.sv-sub { margin: 0; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot-on { background: var(--emerald-bright); box-shadow: 0 0 0 3px #D3F5DF; }
.dot-off { background: var(--redstone); }
.sv .motd { grid-column: 1 / -1; }
.sv-join { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.join { display: grid; gap: 4px; justify-items: start; }
.join-l { font-size: 13px; color: var(--ink-2); }
.port { font: 500 14px var(--mono); color: var(--ink-2); }
.sv-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.banner { display: block; margin: 0 0 18px; border-radius: 4px; }
.sv-block, .sv-desc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.sv-tags { margin: 14px 0 0; }
.sv-tags .tg { margin-right: 12px; font-size: 14px; }
.report { font-size: 13px; text-align: center; margin: 0; }
.report a { color: var(--ink-3); }

.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .ln { fill: none; stroke: var(--lapis); stroke-width: 2; stroke-linejoin: round; }
.chart .ar { fill: var(--lapis); opacity: .1; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--ink-3); font: 11px var(--sans); }
.chart figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.vote { display: flex; gap: 16px; align-items: center; margin: 6px 0 18px; }
.vote img { border-radius: 4px; image-rendering: pixelated; background: var(--slate); }
.vote h1 { margin: 0; }
.vote p { margin: 2px 0 0; }

/* ------------------------------------------------------------ forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel-ok { border-color: #A8DDBC; background: #F2FBF5; }
.panel > :last-child { margin-bottom: 0; }
.fld { margin-bottom: 16px; }
.fld label, .lbl { display: block; font-weight: 500; margin-bottom: 5px; }
.opt { color: var(--ink-3); font-weight: 400; font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; border: 1px solid #C3CAD3; border-radius: 6px; padding: 9px 11px; font: 15px var(--sans); color: var(--ink); background: #fff; }
textarea { resize: vertical; line-height: 1.5; }
textarea.mono { font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px var(--lapis-tint); }
.hint { font-size: 13px; color: var(--ink-2); margin: 5px 0 0; }
.err { font-size: 13px; color: var(--redstone); margin: 5px 0 0; }
.fld-err input, .fld-err textarea { border-color: var(--redstone); }
.err-box, .ok-box { border-radius: 6px; padding: 10px 12px; margin: 0 0 16px; }
.err-box { background: #FCEDEC; color: #8A1F1A; border: 1px solid #F1C3C0; }
.ok-box { background: #EAF8EF; color: #145C33; border: 1px solid #B5E2C6; }
.fld-check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.fld-check input { margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 600; font-size: 17px; margin-bottom: 12px; padding: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios label, .checks label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.form-srv:not(.ed-both) .only-both { display: none; }
.form-end { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
.danger { border: 1px solid #F1C3C0; border-radius: var(--radius); padding: 18px 22px; background: #FFF8F7; margin-top: 24px; }
.danger h2 { color: #8A1F1A; }
.auth { max-width: 440px; }
.auth-alt { text-align: center; color: var(--ink-2); }
.code-big code { display: inline-block; font-size: 22px; padding: 8px 14px; background: var(--slate); color: var(--emerald-bright); border-radius: 6px; user-select: all; }
.flash { border-radius: 6px; padding: 10px 14px; margin: 16px 0 0; }
.flash-ok { background: #EAF8EF; color: #145C33; border: 1px solid #B5E2C6; }
.flash-err { background: #FCEDEC; color: #8A1F1A; border: 1px solid #F1C3C0; }

/* ------------------------------------------------------------ tables, dashboard */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 13px; color: var(--ink-2); background: var(--surface-2); padding: 9px 12px; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl small { font-size: 12.5px; }
.tbl-srv { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.tbl-srv img { border-radius: 3px; image-rendering: pixelated; background: var(--slate); }
.tbl-srv span { display: grid; }
.tbl-srv small { color: var(--ink-3); font-family: var(--mono); }
.tbl-act { white-space: nowrap; }
.tbl-act a, .tbl-act form { display: inline-block; margin-right: 10px; }
.tbl .days { width: 64px; padding: 2px 6px; font-size: 13px; }
.row-hidden td { opacity: .55; }
.msg { max-width: 420px; white-space: pre-wrap; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.dash-head h1 { margin: 0; }
.dash-head p { margin: 4px 0 0; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-search { display: flex; gap: 8px; }
.admin-search input { width: 260px; }

/* ------------------------------------------------------------ prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.prose pre { background: var(--slate); color: #E6E9EE; padding: 12px 14px; border-radius: 6px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose table { margin: 1em 0; }
.guides { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.guides li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.guides b { font-size: 17px; }
.guides p { margin: 4px 0 0; color: var(--ink-2); }
.more-guides { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.modes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.modes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.modes a { display: flex; justify-content: space-between; text-decoration: none; color: var(--ink); }
.modes a b { font-size: 17px; }
.modes a span { color: var(--ink-3); font-size: 14px; }
.modes a:hover b { color: var(--lapis); text-decoration: underline; }
.modes p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------ footer */
.foot { background: var(--slate); color: var(--slate-ink); padding: 36px 0 22px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.foot a { display: block; color: var(--slate-ink); text-decoration: none; padding: 2px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand-foot { display: inline-flex; color: #fff; margin-bottom: 10px; }
.foot p { margin: 0; max-width: 34ch; }
.legal { margin-top: 26px !important; font-size: 12.5px; color: #8A93A0; max-width: none !important; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 25px; }
  .h-home { font-size: 27px; }
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { gap: 14px; }
  .nav .nav-x { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .srv { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "icon main" "icon stats"; gap: 8px 12px; padding: 12px; }
  .srv-rank { display: none; }
  .srv-sp .srv-rank { display: block; position: absolute; }
  .srv-icon { grid-area: icon; align-self: start; }
  .srv-icon img { width: 48px; height: 48px; }
  .srv-main { grid-area: main; }
  .srv-stats { grid-area: stats; display: flex; justify-content: flex-start; align-items: center; gap: 14px; }
  .srv-sp { position: relative; }
  .srv-sp .srv-rank { top: 6px; right: 10px; }
  .sv { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; }
  .sv-icon { width: 64px; height: 64px; }
  .facts { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .tbl { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------ additions: answer, tools, stats, history */
.answer { font-size: 15.5px; max-width: 72ch; margin: -6px 0 14px; padding-left: 12px; border-left: 3px solid var(--lapis); }
.rail { position: relative; }
.rail::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 32px; pointer-events: none; background: linear-gradient(to right, rgba(255,255,255,0), var(--surface)); }
.nav-x { white-space: nowrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; }
.kpis b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpis span { color: var(--ink-2); font-size: 13.5px; }
.bars { width: 100%; border-collapse: collapse; font-size: 14px; }
.bars th { text-align: left; font-weight: 500; padding: 5px 10px 5px 0; width: 32%; white-space: nowrap; }
.bars th a { color: var(--ink); text-decoration: none; }
.bars th a:hover { color: var(--lapis); text-decoration: underline; }
.bars td { padding: 5px 0; }
.bars .bar { display: block; height: 12px; background: var(--lapis); border-radius: 2px; min-width: 2px; }
.bars .num { text-align: right; width: 80px; font-variant-numeric: tabular-nums; color: var(--ink-2); padding-left: 10px; }
.toplist { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.toplist li { display: flex; justify-content: space-between; gap: 12px; }
.toplist span { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.row-tool { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.status-result h2 { display: flex; align-items: center; margin: 0 0 4px; }
.sr-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.sr-head img { border-radius: 4px; image-rendering: pixelated; }
.status-result .motd { margin-bottom: 12px; }
.motd-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.motd-bar .sw { width: 26px; height: 26px; border: 1px solid #00000033; border-radius: 4px; cursor: pointer; }
.motd-bar .fmt { min-width: 30px; height: 26px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 4px; cursor: pointer; font: 13px var(--sans); }
.motd-tool textarea, .icon-tool input[type=file] { margin-bottom: 12px; }
.motd-tool .motd { margin-bottom: 14px; white-space: pre-wrap; }
.motd-tool .btn-ghost { margin: -4px 0 14px; }
.icon-preview { display: flex; gap: 12px; align-items: center; background: var(--slate); padding: 10px; border-radius: 6px; margin: 6px 0 14px; color: #fff; max-width: 420px; }
.icon-preview canvas { width: 64px; height: 64px; image-rendering: pixelated; background: #1B1E23; }
.icon-preview .motd { padding: 0; background: none; }
.icon-tool a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.tbl-hist { margin: 10px 0; }
.tbl-hist td, .tbl-hist th { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .row-tool { grid-template-columns: 1fr; }
  .bars th { width: 40%; white-space: normal; }
}

/* ------------------------------------------------------------ reviews */
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars-off { color: #D5D9DF; }
.stars-lg { font-size: 17px; }
.rt { line-height: 1; }
.rv-sum { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-left: 8px; }
.reviews { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.reviews li { border-bottom: 1px solid var(--surface-2); padding-bottom: 10px; }
.reviews p { margin: 4px 0 0; overflow-wrap: anywhere; }
.rv-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.rv-head time { color: var(--ink-3); font-size: 13px; }
.review-form { border-top: 1px solid var(--line); padding-top: 14px; }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 0 0 12px; }
.rate legend { float: left; width: 100%; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 28px; line-height: 1; color: #D5D9DF; cursor: pointer; padding: 0 2px; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 2px solid var(--lapis); outline-offset: 2px; border-radius: 3px; }
