@font-face { font-family: Display; src: url(/fonts/display-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Display; src: url(/fonts/display-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Body; src: url(/fonts/body-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Body; src: url(/fonts/body-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0f1219; --s1: #141924; --s2: #1a2030; --s3: #222a3d; --line: #283048; --line2: #333d58;
  --text: #e9ecf3; --muted: #939cb2; --faint: #616b84;
  --accent: #ffb547; --accent-ink: #1c1405; --ok: #3ecf8e; --bad: #ff5d6c; --info: #6aa8ff;
  --r-l: 16px; --r-m: 11px; --r-s: 7px;
  --rail: 268px;
  font-family: Body, ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
h1, h2, h3 { font-family: Display, Body, sans-serif; font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 40px); } h2 { font-size: 22px; } h3 { font-size: 16px; font-weight: 500; letter-spacing: 0; }
a { color: inherit; } p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: var(--s1); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; scrollbar-width: thin; }
.rail .server { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-m); text-decoration: none; margin-bottom: 8px; }
.rail .server:hover { background: var(--s2); }
.rail .server b { font-family: Display; font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .server small { color: var(--muted); font-size: 12.5px; }
.gicon { width: 40px; height: 40px; border-radius: 12px; background: var(--s3); flex: none; display: grid; place-items: center; font-family: Display; font-size: 15px; overflow: hidden; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.navsec { margin: 14px 8px 4px; font-size: 12.5px; color: var(--faint); }
.nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-s); text-decoration: none; color: var(--muted); font-size: 14.5px; }
.nav:hover { background: var(--s2); color: var(--text); }
.nav.on { background: var(--s3); color: var(--text); }
.nav svg { width: 17px; height: 17px; flex: none; }
.nav .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.nav .dot.on { background: var(--ok); box-shadow: 0 0 0 3px #3ecf8e22; }
.rail .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.rail .me img, .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--s3); object-fit: cover; flex: none; }
.rail .me a { margin-left: auto; color: var(--muted); }
main { min-width: 0; }
.page { max-width: 1080px; margin: 0 auto; padding: 34px 32px 120px; }
.topbar { display: none; }
.scrim { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); z-index: 50; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px #0008; }
  .shell.drawer .rail { transform: none; }
  .shell.drawer .scrim { display: block; position: fixed; inset: 0; background: #0009; z-index: 40; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar b { font-family: Display; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page { padding: 22px 16px 120px; }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: var(--s2); padding: 8px 14px; border-radius: var(--r-s); cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--s3); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--s2); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn { border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: var(--r-s); cursor: pointer; display: inline-grid; place-items: center; }
.iconbtn:hover { background: var(--s3); color: var(--text); }
.iconbtn svg { width: 18px; height: 18px; }

input[type=text], input[type=number], input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-s); padding: 9px 11px; outline: none; transition: border-color .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23939cb2' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- overview: the pulse ---------- */
.pulse { position: relative; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, var(--s1)) 0%, var(--s1) 55%); border: 1px solid var(--line); padding: 28px 28px 0; margin-bottom: 28px; }
.pulse .head { display: flex; align-items: flex-start; gap: 18px; position: relative; z-index: 1; }
.pulse .head .gicon { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.pulse .facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 14px; }
.pulse .facts b { color: var(--text); font-family: Display; font-size: 18px; margin-right: 5px; font-weight: 500; }
.pulse .score { margin-left: auto; text-align: right; }
.pulse .score .big { font-family: Display; font-size: 64px; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.pulse .score small { color: var(--muted); display: block; margin-top: 6px; font-size: 13px; }
.pulse svg.ribbon { display: block; width: calc(100% + 56px); margin: 18px -28px 0; height: 150px; }
.pulse .legend { position: absolute; right: 28px; bottom: 12px; font-size: 12.5px; color: var(--muted); }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.ribbon .line { stroke-dasharray: var(--len); animation: draw 1.4s cubic-bezier(.3,.7,.2,1) both; }
.ribbon .area { animation: rise 1s .5s both; }
@media (max-width: 640px) { .pulse { padding: 20px 18px 0; } .pulse .head { flex-wrap: wrap; } .pulse .score { margin-left: 0; text-align: left; width: 100%; display: flex; align-items: baseline; gap: 10px; } .pulse .score .big { font-size: 44px; } .pulse svg.ribbon { width: calc(100% + 36px); margin: 14px -18px 0; height: 110px; } }

/* ---------- switchboard ---------- */
.board h2 { margin: 30px 0 10px; font-size: 18px; }
.board .rows { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--s1); }
.mrow { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.mrow:first-child { border-top: 0; }
.mrow:hover { background: var(--s2); }
.mrow .mi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); color: var(--muted); }
.mrow.on .mi { background: color-mix(in srgb, var(--accent) 16%, var(--s2)); color: var(--accent); }
.mrow .mi svg { width: 19px; height: 19px; }
.mrow b { display: block; font-weight: 600; }
.mrow p { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .mrow p { -webkit-line-clamp: 2; } }

.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 6px; }
.preset { text-align: left; border: 1px solid var(--line2); background: var(--s1); border-radius: var(--r-m); padding: 14px 16px; cursor: pointer; }
.preset:hover { border-color: var(--accent); }
.preset b { display: block; font-family: Display; font-weight: 500; font-size: 16px; margin-bottom: 3px; }
.preset span { color: var(--muted); font-size: 13.5px; }
.checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.check { display: inline-flex; gap: 7px; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13.5px; text-decoration: none; color: var(--muted); }
.check.done { color: var(--ok); border-color: #3ecf8e44; }
.check svg { width: 14px; height: 14px; }

/* ---------- module page ---------- */
.mhead { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.mhead .mi { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 15%, var(--s2)); color: var(--accent); display: grid; place-items: center; flex: none; }
.mhead .mi svg { width: 26px; height: 26px; }
.mhead p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.mhead .side { margin-left: auto; display: flex; gap: 10px; align-items: center; flex: none; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
@media (max-width: 640px) { .mhead { flex-wrap: wrap; } .mhead .side { margin-left: 0; width: 100%; } }

.section { border: 1px solid var(--line); background: var(--s1); border-radius: var(--r-l); margin-bottom: 18px; }
.section > h3 { padding: 16px 20px 0; }
.section .fields { padding: 8px 20px 18px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 24px; padding: 13px 0; border-top: 1px solid var(--line); align-items: start; }
.field:first-child { border-top: 0; }
.field > label { font-weight: 600; font-size: 14.5px; padding-top: 8px; }
.field > label small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.field.inline { grid-template-columns: 1fr auto; align-items: center; }
.field.inline > label { padding-top: 0; }
.field.wide { grid-template-columns: 1fr; }
@media (max-width: 720px) { .field { grid-template-columns: 1fr; } .field.inline { grid-template-columns: 1fr auto; } }
.color { display: flex; gap: 8px; } .color input[type=color] { width: 44px; height: 40px; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--bg); padding: 3px; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px; padding: 5px; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--bg); position: relative; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--s3); border-radius: 6px; padding: 3px 4px 3px 9px; font-size: 13.5px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 3px; font-size: 16px; line-height: 1; }
.chips input { border: 0; background: transparent; flex: 1; min-width: 90px; padding: 4px 6px; }
.chips .add { border: 1px dashed var(--line2); background: transparent; border-radius: 6px; color: var(--muted); padding: 3px 9px; cursor: pointer; font-size: 13.5px; }
.pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; background: var(--s2); border: 1px solid var(--line2); border-radius: var(--r-m); box-shadow: 0 18px 50px #000a; padding: 6px; max-height: 280px; overflow: auto; }
.pop input { margin-bottom: 6px; }
.pop .opt { display: flex; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.pop .opt:hover, .pop .opt.hl { background: var(--s3); }
.pop .opt small { color: var(--faint); margin-left: auto; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item { border: 1px solid var(--line2); border-radius: var(--r-m); background: var(--bg); }
.item > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; cursor: pointer; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary .t { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item > summary > svg:first-child { transition: transform .15s; color: var(--muted); width: 16px; height: 16px; flex: none; }
.item[open] > summary > svg:first-child { transform: rotate(90deg); }
.item .body { padding: 2px 14px 12px; border-top: 1px solid var(--line); }
.item .body .field { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 720px) { .item .body .field { grid-template-columns: 1fr; } }
.item .body .field.wide { grid-template-columns: 1fr; }
.field.wide > label { padding-top: 0; }
.item .item { background: var(--s1); }

.savebar { position: fixed; left: calc(var(--rail) + 24px); right: 24px; bottom: 18px; z-index: 35; display: flex; align-items: center; gap: 12px; max-width: 1032px; margin: 0 auto; padding: 12px 14px 12px 20px; background: var(--s3); border: 1px solid var(--line2); border-radius: var(--r-m); box-shadow: 0 20px 60px #000c; transform: translateY(140%); transition: transform .2s cubic-bezier(.3,.8,.3,1); }
.savebar:not(.show) { visibility: hidden; transition: transform .2s, visibility 0s .2s; }
.savebar.show { transform: none; }
.savebar span { margin-right: auto; font-weight: 600; }
@media (max-width: 860px) { .savebar { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); } }

.cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 8px 20px 18px; }
.cmd { font-size: 13.5px; padding: 9px 12px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); }
.cmd b { font-weight: 600; } .cmd span { color: var(--muted); display: block; } .cmd span.tier { display: inline-block; vertical-align: 1px; }
.tier { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--s3); color: var(--muted); margin-left: 6px; }

/* ---------- data views ---------- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); background: var(--s1); border-radius: var(--r-l); padding: 18px 20px; min-width: 0; }
.card h3 { margin-bottom: 12px; }
.card.span { grid-column: 1 / -1; }
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin: 4px 0 22px; }
.stat b { display: block; font-family: Display; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13.5px; }
.stat .up { color: var(--ok); } .stat .down { color: var(--bad); }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--faint); font-size: 10.5px; font-family: Body; }
.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; color: var(--faint); }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--s3); }
.bars .row { display: grid; grid-template-columns: minmax(0, 1fr) 2fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.bars .row .b { height: 8px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.bars .row .b i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bars .row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:hover td { background: var(--s2); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--s1); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--s3); color: var(--muted); }
.badge.ban, .badge.tempban, .badge.massban { background: #ff5d6c22; color: var(--bad); } .badge.warn, .badge.timeout, .badge.kick, .badge.softban { background: #ffb54722; color: var(--accent); } .badge.unban, .badge.untimeout { background: #3ecf8e22; color: var(--ok); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; } .filters > * { flex: 1 1 180px; width: auto; } .filters .btn { flex: 0 0 auto; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ---------- embed builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.preview { position: sticky; top: 20px; background: #313338; border-radius: var(--r-l); padding: 18px; font-family: 'gg sans', Body, sans-serif; }
.dmsg { display: flex; gap: 14px; } .dmsg .avatar { width: 40px; height: 40px; }
.dmsg .who { font-weight: 600; } .dmsg .who .bt { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-left: 5px; vertical-align: 2px; }
.dmsg .content { white-space: pre-wrap; margin-top: 2px; word-break: break-word; }
.dembed { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--c, #ffb547); border-radius: 4px; padding: 10px 14px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; max-width: 520px; }
.dembed .a { font-size: 13.5px; font-weight: 600; } .dembed .ti { font-weight: 700; } .dembed .ti.l { color: #00a8fc; }
.dembed .d { font-size: 14px; white-space: pre-wrap; word-break: break-word; color: #dbdee1; }
.dembed .fs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; grid-column: 1; } .dembed .f { grid-column: span 3; } .dembed .f.in { grid-column: span 1; }
.dembed .f b { font-size: 13.5px; display: block; } .dembed .f span { font-size: 13.5px; color: #dbdee1; white-space: pre-wrap; }
.dembed .th { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; grid-row: 1 / span 3; grid-column: 2; }
.dembed .im { grid-column: 1 / -1; max-width: 100%; border-radius: 4px; }
.dembed .ft { grid-column: 1 / -1; font-size: 12px; color: #b5bac1; }
.dbtns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .dbtns span { background: #4e5058; color: #fff; border-radius: 4px; padding: 6px 14px; font-size: 14px; }

/* ---------- landing / login / public ---------- */
.center { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.hello { max-width: 560px; }
.hello h1 { font-size: clamp(36px, 7vw, 60px); margin: 18px 0 14px; }
.hello p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.hello .btn { margin-top: 26px; padding: 12px 20px; font-size: 15px; }
.mark { width: 54px; height: 54px; }
.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 22px; }
.gcard { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--s1); text-decoration: none; }
.gcard:hover { border-color: var(--line2); background: var(--s2); }
.gcard b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gcard span { font-size: 13px; color: var(--muted); }
.gcard.off { opacity: .7; }
.lb { max-width: 820px; margin: 0 auto; padding: 40px 20px 80px; }
.lb header { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; } .lb header .gicon { width: 60px; height: 60px; border-radius: 18px; }
.lbrow { display: grid; grid-template-columns: 44px 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); }
.lbrow:nth-child(odd) { background: var(--s1); }
.lbrow .r { font-family: Display; font-size: 20px; color: var(--faint); text-align: center; } .lbrow.top .r { color: var(--accent); }
.lbrow .pb { height: 5px; background: var(--s3); border-radius: 99px; margin-top: 6px; overflow: hidden; } .lbrow .pb i { display: block; height: 100%; background: var(--accent); }
.lbrow .lv { text-align: right; } .lbrow .lv b { font-family: Display; font-size: 20px; display: block; line-height: 1; } .lbrow .lv span { font-size: 12.5px; color: var(--muted); }

/* ---------- modal & toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: #000a; padding: 20px; }
.modal .box { background: var(--s2); border: 1px solid var(--line2); border-radius: var(--r-l); padding: 22px; width: min(560px, 100%); max-height: 86dvh; overflow: auto; }
.modal .box h2 { margin-bottom: 10px; } .modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal pre { background: var(--bg); padding: 12px; border-radius: var(--r-s); white-space: pre-wrap; word-break: break-all; font-size: 13px; border: 1px solid var(--line); }
#toasts { position: fixed; z-index: 90; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--s3); border: 1px solid var(--line2); border-left: 3px solid var(--ok); padding: 10px 14px; border-radius: var(--r-s); box-shadow: 0 10px 30px #0008; max-width: 360px; font-size: 14px; animation: rise .2s both; }
.toast.err { border-left-color: var(--bad); }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spin { width: 22px; height: 22px; border: 2.5px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } }

.builder .field { grid-template-columns: 1fr; gap: 6px; } .builder .field > label { padding-top: 0; } .builder .field.inline { grid-template-columns: 1fr auto; }

/* ---------- privacy page & footers ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; line-height: 1.6; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 14px 0 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; font-family: Body; }
.legal p, .legal li { color: #cfd5e2; max-width: 70ch; }
.legal ul { padding-left: 20px; } .legal li { margin: 5px 0; }
.legal a { color: var(--accent); }
.legal code { background: var(--s2); padding: 1px 6px; border-radius: 5px; font-size: 14px; }
.legal .t { margin-top: 8px; } .legal .crumb a { color: var(--muted); text-decoration: none; }
.legalfoot, .sitefoot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.sitefoot a, .legalfoot a { color: var(--muted); }
.rail .foot { padding: 8px 8px 0; font-size: 12.5px; color: var(--faint); } .rail .foot a { color: var(--faint); }
