/* Setupcord's website: clean, neutral greys, one indigo accent, light and dark (08/11: take 2, "product split").
   The theme follows the device; the ◐ button switches it and remembers the choice. */
:root {
  --bg: #ffffff; --bg-2: #f6f6f7; --bg-3: #efeff1; --ink: #0b0b0f; --ink-2: #3f3f46; --mute: #71717a; --faint: #a1a1aa;
  --line: #e4e4e7; --line-2: #d4d4d8; --accent: #4f46e5; --accent-2: #4338ca; --accent-soft: #eef2ff; --on-accent: #ffffff; --ok: #16a34a; --ok-soft: #dcfce7; --danger: #dc2626; --danger-soft: #fee2e2; --warn: #b45309;
  --shadow: 0 1px 2px #0000000d, 0 12px 40px -12px #0000002e; --radius: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --bg-2: #121214; --bg-3: #18181b; --ink: #fafafa; --ink-2: #d4d4d8; --mute: #a1a1aa; --faint: #71717a;
  --line: #27272a; --line-2: #3f3f46; --accent: #818cf8; --accent-2: #a5b4fc; --accent-soft: #1e1b4b; --on-accent: #0a0a0b; --ok: #4ade80; --ok-soft: #052e16; --danger: #f87171; --danger-soft: #3b0a0a; --warn: #fbbf24;
  --shadow: 0 1px 2px #0006, 0 24px 60px -20px #000c; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
code { font: 0.86em var(--mono); background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.stars { display: none; }
.muted { color: var(--mute); } .small { font-size: 14px; }
.loading, .empty { color: var(--mute); padding: 48px 0; text-align: center; }

/* top bar */
.top { max-width: 1180px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.logo { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); position: relative; font-size: 0; } .logo::after { content: ""; position: absolute; inset: 6px; border-radius: 2px; background: var(--bg); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; justify-content: flex-end; }
.nav-link { text-decoration: none; color: var(--ink-2); } .nav-link:hover { color: var(--ink); }
.me { display: flex; align-items: center; gap: 8px; color: var(--ink-2); } .me img { width: 24px; height: 24px; border-radius: 50%; }
.theme { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--mute); display: grid; place-items: center; cursor: pointer; font-size: 15px; }
.theme:hover { color: var(--ink); border-color: var(--line-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 600 14px var(--font); text-decoration: none; cursor: pointer; transition: opacity .12s, background .12s, border-color .12s; }
.btn:hover { opacity: .88; } .btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); } .btn.ghost:hover { opacity: 1; background: var(--bg-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.big { height: 46px; padding: 0 20px; font-size: 15px; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13.5px; } .btn.tiny { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.danger.ghost { background: var(--bg); color: var(--danger); border-color: var(--line-2); }
.btn:focus-visible, .theme:focus-visible, .tab:focus-visible, .tpl:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* home (product split) */
.hero { max-width: 1180px; margin: 0 auto; padding: 72px 32px 60px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: 54px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; margin: 14px 0 18px; }
.lead { color: var(--mute); font-size: 18px; line-height: 1.55; margin: 0; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.facts { display: flex; gap: 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.facts b { display: block; color: var(--ink); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.stage { position: relative; min-height: 540px; }
.stage .frame { position: absolute; right: 0; top: 0; width: 94%; }
.stage .panel { position: absolute; left: 0; bottom: 0; width: 290px; }
.frame { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame-bar span { margin-left: 8px; }
.frame .dc-window { height: 480px; overflow: hidden; }
.frame .dc-window .dc-side { padding-top: 0; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 16px 14px; }
.panel h4 { margin: 0 0 2px; font-size: 13.5px; font-weight: 650; } .panel small { color: var(--mute); font-size: 12.5px; }
.panel .opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.panel .opt:first-of-type { margin-top: 10px; }
.panel .btn { width: 100%; margin-top: 8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { border: 1px solid var(--line); background: var(--bg); color: var(--mute); border-radius: 8px; padding: 6px 12px; font: 600 13px var(--font); cursor: pointer; }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.list { max-width: 1180px; margin: 0 auto; padding: 8px 32px 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 38px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.item span { font: 600 12px var(--mono); color: var(--faint); padding-top: 3px; } .item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; } .item p { margin: 0; color: var(--mute); font-size: 15px; }
.band { max-width: 1180px; margin: 0 auto; padding: 56px 32px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.band h2 { font-size: 30px; font-weight: 650; letter-spacing: -0.025em; margin: 6px 0 12px; line-height: 1.1; }
.qa details { border-bottom: 1px solid var(--line); padding: 14px 0; } .qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; } .qa summary::after { content: "+"; color: var(--faint); } .qa details[open] summary::after { content: "–"; }
.qa p { color: var(--mute); margin: 8px 0 0; }
.foot { max-width: 1180px; margin: 0 auto; padding: 26px 32px 46px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; display: flex; justify-content: space-between; }

/* switches (home panel and the editor) */
.sw { flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: left .15s; }
.sw.on { background: var(--accent); } .sw.on::after { left: 16px; }

/* your servers */
.page { max-width: 1180px; margin: 0 auto; padding: 44px 32px 70px; }
.page h1 { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; margin: 0 0 6px; }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 26px; }
.server { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: border-color .12s; }
.server:hover { border-color: var(--line-2); }
.s-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; font-weight: 650; font-size: 14px; color: var(--mute); overflow: hidden; }
.s-icon img { width: 100%; height: 100%; object-fit: cover; }
.s-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .s-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server .btn { flex: none; }
.badge { align-self: flex-start; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg-3); color: var(--mute); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.ready { background: var(--accent-soft); color: var(--accent); }

/* the editor: steps on the left, one step in the middle, the live preview on the right, a bar at the bottom */
.editor { max-width: 1440px; margin: 0 auto; padding: 24px 32px 120px; }
.back { display: inline-block; font-size: 13.5px; color: var(--mute); text-decoration: none; margin-bottom: 10px; } .back:hover { color: var(--ink); }
.ed-title { display: flex; align-items: center; gap: 14px; } .ed-title h1 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; } .ed-title p { margin: 3px 0 0; font-size: 14.5px; }
.ed-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 0.95fr); gap: 24px; margin-top: 24px; align-items: start; }
.steps { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.step { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--mute); padding: 9px 10px; border-radius: 8px; font: 600 14px var(--font); cursor: pointer; text-align: left; }
.step:hover { background: var(--bg-2); color: var(--ink); }
.step-n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 11.5px var(--mono); flex: none; }
.step.past .step-n { background: var(--bg-3); border-color: var(--bg-3); color: var(--ink-2); }
.step.on { background: var(--accent-soft); color: var(--accent); } .step.on .step-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step:focus-visible, .dlink:focus-visible, .chip-btn:focus-visible, .prow:focus-visible, .c-name:focus-visible, .r-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pane-head { margin: 0 0 14px; } .pane-head h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; } .pane-head p { margin: 4px 0 0; font-size: 14.5px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; } .card-head h3 { margin: 0; }
.card-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.card.flush { padding: 0; overflow: hidden; } .card.narrow { max-width: 520px; } .pad { padding: 18px 20px; margin: 0; }
.tpls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .tpls.one { grid-template-columns: 1fr; }
.tpl { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--ink); cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; font: inherit; }
.tpl:hover { border-color: var(--line-2); }
.tpl span { font-size: 20px; grid-row: span 2; } .tpl b { font-weight: 600; font-size: 14.5px; } .tpl small { color: var(--mute); font-size: 13px; line-height: 1.4; }
.tpl.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.row-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; } .row-line.sep { border-top: 1px solid var(--line); padding-top: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; } .seg.wide { display: flex; } .seg.wide button { flex: 1; }
.seg button { border: 0; background: transparent; color: var(--mute); padding: 6px 12px; border-radius: 7px; font: 600 13px var(--font); cursor: pointer; }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px #0000001f; } .seg.small button { padding: 4px 10px; font-size: 12.5px; }
:root[data-theme="dark"] .seg button.on { background: var(--bg-3); }
.cat-box { padding: 12px 16px 14px; }
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.cat-title { font-weight: 650; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.cat-name { text-transform: none; letter-spacing: 0; font-weight: 600; height: 30px; max-width: 220px; }
.cat-acts { display: flex; gap: 6px; }
.seers { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 8px; } .seers p { margin: 0 0 8px; }
.ch-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; padding: 3px 0; }
.ch-row.off .ch-name, .ch-row.off .ch-emoji { opacity: .55; }
.ch-row input[type=checkbox], .chip input, .check input, .role-row input[type=checkbox], .mini input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.ch-emoji { width: 22px; text-align: center; } .ch-type { font-size: 12px; color: var(--faint); min-width: 36px; text-align: right; }
.role-row { display: grid; grid-template-columns: 18px 34px 1fr auto auto; align-items: center; gap: 8px; padding: 4px 0; } .role-row.off .input { opacity: .55; }
.mini { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.swatch { width: 34px; height: 30px; padding: 2px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg); cursor: pointer; } .swatch.big { width: 100%; height: 36px; }
.input { width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); padding: 7px 10px; font: 14.5px var(--font); }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; } .input:disabled { opacity: .6; }
.input.mono { font: 13.5px/1.5 var(--mono); } .small-input { width: auto; min-width: 90px; }
select.input { height: 36px; padding-top: 0; padding-bottom: 0; }
textarea.input { resize: vertical; line-height: 1.45; }
.add-row { display: grid; grid-template-columns: 1fr 100px auto; gap: 8px; margin-top: 10px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .inline .input { flex: 1; min-width: 140px; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.card > .tog:first-child, .card > h3 + .tog, .card > .note + .tog { border-top: 0; padding-top: 2px; } .form-grid + .tog { border-top: 0; }
.tog span { display: flex; flex-direction: column; font-size: 14.5px; } .tog b { font-weight: 600; } .tog small { color: var(--mute); font-size: 13px; }
.tog input { position: absolute; opacity: 0; width: 0; height: 0; }
.tog i { flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: left .15s; }
.tog input:checked + i { background: var(--accent); } .tog input:checked + i::after { left: 16px; }
.tog input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.tog input:disabled + i { opacity: .45; } .tog.cant { cursor: default; } .tog.cant span { color: var(--faint); }
.inline-tog { border: 0; padding: 0; } .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tog.slim { padding: 7px 0; } .tog.slim span { font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14px; } .field small { color: var(--mute); font-weight: 400; }
.card > .field:first-of-type { margin-top: 0; }
.form-grid + .tog { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } .form-grid .field { min-width: 0; }
.rule { display: grid; grid-template-columns: 24px 1fr 1.8fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.num { width: 24px; height: 24px; border-radius: 6px; background: var(--bg-3); display: grid; place-items: center; font: 600 12px var(--mono); color: var(--mute); }
.ed-preview { position: sticky; top: 16px; max-height: calc(100vh - 110px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .pv-close { display: none; }
.two-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .two-side .dc-side { width: auto; border-radius: 10px; }
.cap { color: var(--faint); font-size: 12px; margin: 0 0 6px 2px; font-weight: 600; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; } .review p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; } .card.review { padding: 16px 20px; }
.ed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar-in { max-width: 1440px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 10px; }
.bar-nav { display: flex; gap: 8px; } .bar-sum { margin-right: auto; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.3; padding-left: 8px; } .bar-msg { margin-right: auto; font-size: 14px; }
.pv-open { display: none; }
.progress { flex: 1; max-width: 420px; height: 6px; background: var(--bg-3); border-radius: 999px; overflow: hidden; } .progress div { height: 100%; background: var(--accent); transition: width .4s; }

/* chips, notes, dialogs, toast */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; background: var(--bg); }
.chip span { display: inline-flex; align-items: center; gap: 6px; } .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip-btn { border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: 500 13.5px var(--font); cursor: pointer; }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-weight: 400; cursor: pointer; } .check input { margin-top: 3px; } .check span { display: flex; flex-direction: column; } .check b { font-weight: 600; font-size: 14px; } .check small { font-size: 13px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 14px; color: var(--ink-2); margin: 0 0 14px; } .note.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.note details { margin-top: 6px; } .note summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.steps-list { margin: 8px 0; padding-left: 20px; } .steps-list li { margin: 4px 0; }
.empty-card { text-align: center; padding: 34px 20px; } .empty-card b { font-size: 16px; } .empty-card .steps-list { text-align: left; max-width: 520px; margin: 12px auto; }
.badge.warn, .kind.warn { background: color-mix(in srgb, var(--warn) 16%, var(--bg)); color: var(--warn); } .badge.bad, .kind.bad { background: var(--danger-soft); color: var(--danger); }
.warn-text { color: var(--warn); } .danger-text { color: var(--danger) !important; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--mute); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; margin-left: 6px; white-space: nowrap; }
.no-scroll { overflow: hidden; }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, #000 45%, transparent); display: grid; place-items: center; padding: 20px; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 24px; }
.modal.wide { width: min(760px, 100%); } .modal:focus { outline: none; }
.modal h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; padding-right: 30px; }
.modal > p { margin: 0 0 12px; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--mute); cursor: pointer; font-size: 15px; } .modal .x:hover { background: var(--bg-2); color: var(--ink); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 18px; flex-wrap: wrap; } .grow { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 10px 16px; font-size: 14px; max-width: min(560px, calc(100vw - 32px)); transition: opacity .15s, transform .15s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.bad { background: var(--danger); color: #fff; }
.share { display: grid; gap: 8px; margin-top: 8px; } .big-code { font-size: 22px; text-align: center; padding: 10px; letter-spacing: .12em; }
.plain { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }

/* templates */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; } .page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); } .tcard p { margin: 0; }
.tcard-top { display: flex; gap: 12px; align-items: center; } .tcard-top div { display: flex; flex-direction: column; min-width: 0; } .tcard-top small { font-size: 13px; }
.temoji { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; }
.tcard-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .tcard-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tview { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; } .pv-box .dc-side { width: 100%; border-radius: 12px; }
.big-emoji { font-size: 24px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pick { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; } .pick:hover { border-color: var(--accent); }
.pick .s-icon { grid-row: span 2; } .pick span:not(.muted) { font-weight: 600; }

/* the dashboard */
.dash { max-width: 1440px; margin: 0 auto; padding: 24px 32px 80px; display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 32px; align-items: start; }
.dnav { position: sticky; top: 16px; }
.dnav-server { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dnav-server .s-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 12.5px; } .dnav-server div { display: flex; flex-direction: column; min-width: 0; } .dnav-server b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgroup { padding: 6px 0; } .dgroup + .dgroup { border-top: 1px solid var(--line); }
.dgroup-t { font-size: 11.5px; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px 4px; }
.dlink { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 550; }
.dlink svg { color: var(--faint); flex: none; } .dlink:hover { background: var(--bg-2); color: var(--ink); }
.dlink.on { background: var(--accent-soft); color: var(--accent); } .dlink.on svg { color: var(--accent); }
.dlink.danger { color: var(--danger); } .dlink.danger svg { color: var(--danger); } .dlink.danger.on { background: var(--danger-soft); }
.dhead { margin-bottom: 20px; } .dhead h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; } .dhead p { margin: 4px 0 0; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); min-width: 0; }
.stat b { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; } .stat .small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; } .ov-grid .card { margin: 0; } .span2 { grid-column: 1 / -1; }
.qa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); } .qa-row:first-of-type { border-top: 0; padding-top: 0; }
.qa-row > div:first-child { display: flex; flex-direction: column; min-width: 0; } .qa-row b { font-weight: 600; font-size: 14.5px; } .qa-row small { font-size: 13px; }
.btns { display: flex; gap: 6px; align-items: center; flex: none; }
.chart { position: relative; } .ch-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-svg .grid { stroke: var(--line); stroke-width: 1; } .ch-svg .base { stroke: var(--line-2); stroke-width: 1; }
.ch-svg .axis { fill: var(--faint); font: 11px var(--font); } .ch-svg .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; } .ch-svg .dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.ch-svg .hit { fill: transparent; } .ch-svg .hit:hover { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
:root { --c-join: #4f46e5; --c-leave: #d97706; } :root[data-theme="dark"] { --c-join: #6366f1; --c-leave: #d97706; }
.bar.join, .sq.join { fill: var(--c-join); background: var(--c-join); } .bar.leave, .sq.leave { fill: var(--c-leave); background: var(--c-leave); }
.ch-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--mute); margin: 8px 0 2px; } .sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; min-width: 120px; z-index: 2; } .tip[hidden] { display: none; }
.ch-table { margin-top: 8px; } .ch-table summary { cursor: pointer; } .ch-table table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; } .ch-table td, .ch-table th { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.evs { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; } .ev:first-child { border-top: 0; }
.card .evs + .btn { margin-top: 10px; }
.kind { justify-self: start; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); white-space: nowrap; }
.kind.ok { background: var(--ok-soft); color: var(--ok); } .kind.acc { background: var(--accent-soft); color: var(--accent); }
.ev time { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; } .toolbar .input { max-width: 300px; }
.ptable { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.prow:first-child { border-top: 0; } .prow:hover { background: var(--bg-2); }
.p-name, .p-meta { display: flex; flex-direction: column; min-width: 0; } .p-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .p-name small, .p-meta small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-roles { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.av { border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--bg-3); color: var(--mute); font-size: 12px; font-weight: 650; object-fit: cover; }
.rchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; background: var(--bg); }
.rchip i, .dot-c { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.rx { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 0 0 0 2px; font-size: 11px; } .rx:hover { color: var(--danger); }
.person-head { display: flex; gap: 14px; align-items: center; } .person-head h3 { margin: 0; } .person-head p { margin: 2px 0 0; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; } .facts-row > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; } .facts-row b { font-size: 14px; font-weight: 600; } .facts-row .badge { margin-top: 4px; }
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.act { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .act small { font-size: 12.5px; } .act .inline { width: 100%; } .act .input { min-width: 0; }
.ctree { display: flex; flex-direction: column; }
.crow { display: grid; grid-template-columns: 16px 22px minmax(0, 1fr) minmax(0, 0.9fr) auto auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); min-height: 50px; }
.ctree > .crow:first-child { border-top: 0; } .cin .crow { padding-left: 40px; } .crow.cat { background: var(--bg-2); }
.crow.cat .c-name span:first-child { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--mute); }
.c-ico { color: var(--faint); text-align: center; font-size: 15px; }
.c-name, .r-name { border: 0; background: none; color: var(--ink); font: 600 14.5px var(--font); text-align: left; cursor: pointer; display: flex; align-items: center; min-width: 0; padding: 0; } .c-name span:first-child, .r-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pswitch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mute); width: 92px; }
.pswitch input { position: absolute; opacity: 0; width: 0; height: 0; } .pswitch i { flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.pswitch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: left .15s; }
.pswitch input:checked + i { background: var(--accent); } .pswitch input:checked + i::after { left: 16px; } .pswitch input:checked ~ span { color: var(--accent); } .pswitch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.rrow { display: grid; grid-template-columns: 16px 12px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line); } .card > .rrow:first-child { border-top: 0; }
.rrow.locked .r-name b { color: var(--mute); } .r-acts { display: flex; gap: 4px; } .r-count { white-space: nowrap; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 6px; } .pgroup-t { font-size: 12px; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin: 6px 0 2px; }
.danger-zone .pgroup-t { color: var(--danger); }
.prow-p { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--line); } .prow-p.cant > span { color: var(--faint); }
.tri { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; flex: none; }
.tri button { width: 32px; height: 26px; border: 0; background: var(--bg); color: var(--faint); cursor: pointer; font: 600 13px var(--font); } .tri button + button { border-left: 1px solid var(--line-2); }
.tri button.deny.on { background: var(--danger-soft); color: var(--danger); } .tri button.neutral.on { background: var(--bg-3); color: var(--ink-2); } .tri button.allow.on { background: var(--ok-soft); color: var(--ok); }
.tri button:disabled { cursor: default; opacity: .5; } .tri button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mod-grid { columns: 2; column-gap: 14px; } .mod-grid .card { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 14px; }
.trow { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); } .card > .trow:first-child { border-top: 0; }
.t-who { display: flex; flex-direction: column; min-width: 0; } .t-who small { font-size: 12px; } .t-acts { display: flex; gap: 6px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; } .radio-card input { margin-top: 4px; accent-color: var(--danger); }
.radio-card span { display: flex; flex-direction: column; gap: 2px; } .radio-card:has(input:checked) { border-color: var(--danger); background: var(--danger-soft); }
.danger-card { max-width: 720px; }

/* Discord-look previews (Discord's own colours, in both themes) */
.dc-window { display: flex; background: #313338; }
.dc-side { width: 232px; flex: none; background: #2b2d31; padding: 4px 6px 12px; font: 14.5px/1.4 "gg sans", "Segoe UI", sans-serif; }
.dc-server { color: #fff; font-weight: 700; padding: 12px 10px; border-bottom: 1px solid #1f2023; margin-bottom: 6px; display: flex; justify-content: space-between; }
.dc-cat { font-size: 11.5px; font-weight: 700; color: #949ba4; margin: 14px 8px 4px; }
.dc-ch { display: flex; gap: 6px; align-items: center; color: #949ba4; padding: 3px 8px; border-radius: 4px; } .dc-ch.priv { background: #35373c; color: #dbdee1; }
.dc-ico { width: 16px; text-align: center; opacity: .7; }
.dc-chat { flex: 1; background: #313338; padding: 14px 16px 2px; min-width: 0; color: #dbdee1; font: 14.5px/1.4 "gg sans", "Segoe UI", sans-serif; }
.dc-chat.posts { border-radius: 10px; }
.dc-msg { display: flex; gap: 12px; margin-bottom: 16px; } .dc-avatar { width: 36px; height: 36px; border-radius: 50%; background: #0b0b0f; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 14px; }
.dc-body { flex: 1; min-width: 0; } .dc-who { color: #fff; font-weight: 600; margin-bottom: 3px; } .dc-tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; vertical-align: 1px; margin-left: 4px; } .dc-when { color: #949ba4; font-size: 12px; font-weight: 400; margin-left: 6px; }
.dc-box { background: #2b2d31; border: 1px solid #3f4147; border-left: 4px solid; border-radius: 8px; padding: 12px 14px; }
.dc-text { margin: 2px 0; } .dc-h1 { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.25; } .dc-h2 { font-size: 18px; font-weight: 700; color: #fff; } .dc-h3 { font-size: 15px; font-weight: 700; color: #fff; margin-top: 4px; }
.dc-sub { font-size: 12px; color: #949ba4; } .dc-quote { border-left: 3px solid #4e5058; padding-left: 8px; } .dc-hr { border: 0; border-top: 1px solid #3f4147; margin: 9px 0; } .dc-gap { height: 6px; }
.dc-mention { background: #5865f23d; color: #c9cdfb; border-radius: 3px; padding: 0 2px; } .dc-mention.role { background: #3498db33; color: #7fc1ee; }
.dc-section { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 5px 0; } .dc-stext { flex: 1; min-width: 0; }
.dc-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.dc-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 4px; font-size: 13.5px; font-weight: 500; color: #fff; white-space: nowrap; }
.dc-btn.primary { background: #5865f2; } .dc-btn.secondary, .dc-btn.link { background: #4e5058; } .dc-btn.success { background: #248046; } .dc-btn.danger { background: #da373c; }
.dc-select { display: flex; justify-content: space-between; background: #1e1f22; border-radius: 4px; padding: 8px 10px; color: #949ba4; margin: 8px 0; }

/* dashboard: find a person, the person panel, bulk delete, AutoMod, posts, delete everything */
[hidden] { display: none !important; }
.note.intent { margin-bottom: 12px; }
.finder { margin-top: 0; } .found { margin-top: 8px; min-height: 0; } .found:empty { display: none; }
.pick-p { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 3px 10px 3px 4px; font: 500 13.5px var(--font); cursor: pointer; max-width: 100%; }
.pick-p:hover { border-color: var(--accent); } .pick-p.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .pick-p small { font-size: 12px; } .pick-p span, .pick-p small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts-row.four { grid-template-columns: repeat(4, 1fr); } .facts-row small { font-size: 12.5px; }
.give { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; } .give .field { margin-top: 10px; } .give .btn { margin-bottom: 1px; }
select.input option:disabled { color: var(--faint); }
.act-grid.two { grid-template-columns: repeat(2, 1fr); }
.presets { gap: 5px; } .presets .chip-btn { padding: 3px 10px; font-size: 12.5px; }
.input.n-in { width: 84px; flex: none; min-width: 0; } .inline .input.unit { flex: 0 1 110px; min-width: 90px; }
.act .btns { flex-wrap: wrap; }
.pick { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; } .pick:disabled { opacity: .3; cursor: default; }
.btn.icon { width: 28px; padding: 0; } .btn.icon-l { gap: 6px; } .btn.icon-l svg { flex: none; }
.bulk { position: sticky; top: 10px; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 8px 10px 8px 14px; margin-bottom: 10px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); } .bulk[hidden] { display: none; }
.bulk span { flex: 1; } .bulk .btn.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.start-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .start-card p { margin: 4px 0 0; } .start-card .btn { flex: none; white-space: nowrap; }
.am-list { display: flex; flex-direction: column; }
.am-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .am-row:first-child { border-top: 0; }
.am-name { display: flex; flex-direction: column; min-width: 0; } .am-name b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .am-name small { font-size: 12.5px; }
.chips.scroll { max-height: 128px; overflow: auto; padding: 2px; }
.post-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.post-pv { padding: 12px 14px 4px; max-height: 520px; overflow: auto; }
.prule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 6px; margin-bottom: 6px; }
.rules-ed + .btn { margin-top: 2px; }
.wipe { margin-top: 18px; } .wipe-n { display: flex; gap: 12px; margin: 4px 0 8px; } .wipe-n > div { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; } .wipe-n b { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.wipe-notes { margin: 6px 0; padding-left: 18px; }
.two-side.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .two-side.three .dc-side { width: auto; }
@media (max-width: 1240px) {
  .ed-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .ed-preview { display: none; position: fixed; inset: 0; z-index: 40; max-height: none; border-radius: 0; border: 0; padding: 14px 16px 90px; }
  .ed-preview.open { display: block; } .pv-close, .pv-open { display: inline-flex; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero, .band { grid-template-columns: 1fr; } .stage { min-height: 600px; } .list { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; gap: 16px; } .dnav { position: static; }
  .dnav nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .dgroup, .dgroup + .dgroup { display: contents; } .dgroup-t { display: none; }
  .dlink { justify-content: center; border: 1px solid var(--line); padding: 8px 6px; font-size: 13.5px; gap: 6px; } .dlink.on { border-color: var(--accent); }
  .ov-grid, .tview { grid-template-columns: 1fr; } .mod-grid { columns: 1; }
  .ed-shell { grid-template-columns: 1fr; gap: 14px; }
  .steps { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .step { border: 1px solid var(--line); padding: 7px 8px; font-size: 13px; gap: 6px; } .step.on { border-color: var(--accent); }
  .step-n { width: 19px; height: 19px; font-size: 10.5px; }
}
@media (max-width: 640px) {
  .top { padding: 0 16px; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; } .top nav { gap: 12px; } .me-name { display: none; }
  .hero { padding: 40px 16px 30px; } .hero h1 { font-size: 38px; } .facts { gap: 18px; }
  .stage { min-height: 0; display: flex; flex-direction: column; gap: 12px; } .stage .frame, .stage .panel { position: static; width: 100%; }
  .frame .dc-window { height: 380px; } .dc-side { width: 100%; } .frame .dc-window .dc-chat { display: none; }
  .list, .band, .page, .editor, .foot, .dash { padding-left: 16px; padding-right: 16px; }
  .tpls, .two-side, .form-grid, .checks, .pgrid, .act-grid { grid-template-columns: 1fr; } .facts-row { gap: 6px; } .facts-row > div { padding: 8px; } .facts-row b { font-size: 13px; } .rule { grid-template-columns: 24px 1fr auto; } .rule input[data-rule-d] { grid-column: 2 / 4; }
  .ch-row { grid-template-columns: auto auto 1fr auto; } .ch-type { font-size: 11px; min-width: 0; } .add-row { grid-template-columns: 1fr 1fr; } .add-row .btn { grid-column: span 2; }
  .role-row { grid-template-columns: 18px 34px 1fr auto; } .role-row .mini { grid-column: 3; } .role-row > span:last-child:empty { display: none; }
  .bar-in { flex-wrap: wrap; padding: 10px 16px; gap: 8px; } .bar-sum { order: -1; width: 100%; flex-direction: row; justify-content: space-between; padding: 0; font-size: 12.5px; }
  .bar-in .btn { height: 38px; padding: 0 12px; } .bar-in > .btn.accent { flex: 1; }
  .ed-title h1, .dhead h1 { font-size: 23px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat b { font-size: 22px; }
  .ev { grid-template-columns: 1fr auto; gap: 4px 10px; } .ev .kind { grid-column: 1; } .ev time { grid-column: 2; grid-row: 1; } .ev-text { grid-column: 1 / -1; }
  .prow { grid-template-columns: 34px minmax(0, 1fr); padding: 10px 14px; } .p-meta { grid-column: 2; } .p-roles { grid-column: 2; justify-content: flex-start; }
  .crow { grid-template-columns: 16px 18px minmax(0, 1fr) auto; padding: 8px 12px; gap: 4px 8px; } .cin .crow { padding-left: 22px; } .crow .c-who { grid-column: 3; grid-row: 2; } .crow .pswitch { width: auto; grid-column: 4; grid-row: 1; } .crow .r-acts { grid-column: 4; grid-row: 2; justify-content: flex-end; } .crow .r-acts .btn:not(.icon) { display: none; }
  .rrow { grid-template-columns: 16px 12px minmax(0, 1fr) auto; padding: 9px 12px; gap: 4px 10px; } .r-count { grid-column: 3; grid-row: 2; } .rrow .r-acts { grid-row: span 2; flex-wrap: wrap; justify-content: flex-end; max-width: 120px; }
  .post-edit { grid-template-columns: 1fr; } .am-row { grid-template-columns: minmax(0, 1fr) auto auto; } .am-row .tag { display: none; } .facts-row.four { grid-template-columns: 1fr 1fr; } .act-grid.two { grid-template-columns: 1fr; }
  .crow .ours-t { display: none; } .give { grid-template-columns: 1fr; } .prule { grid-template-columns: minmax(0, 1fr) auto; } .prule [data-rd] { grid-column: 1 / -1; grid-row: 2; } .two-side.three { grid-template-columns: 1fr; } .start-card { flex-direction: column; align-items: stretch; } .wipe-n { gap: 8px; } .bulk { left: 8px; right: 8px; transform: none; }
  .trow { grid-template-columns: 1fr; gap: 8px; } .toolbar .input { max-width: none; }
  .modal-bg { padding: 0; place-items: end stretch; } .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 20px 16px; }
  .qa-row { flex-wrap: wrap; } .page-head { align-items: flex-start; }
  .tgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* moderation: cases and protection (dash-mod.js) */
.case-row { display: grid; grid-template-columns: 52px 110px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--line); }
.card > .case-row:first-child { border-top: 0; } .case-row.off .case-reason, .case-row.off .case-who b { color: var(--mute); }
.case-n { font: 600 13px var(--mono); color: var(--faint); padding-top: 2px; } .case-row .kind { margin-top: 1px; }
.case-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .case-main small { font-size: 12.5px; }
.case-who { display: flex; gap: 8px; align-items: baseline; text-align: left; color: var(--ink); min-width: 0; } .case-who b { font-weight: 600; } .case-who small { font-size: 12px; } .case-who:hover b { color: var(--accent); }
.case-reason { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.case-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.steps-box { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.step-row { display: grid; grid-template-columns: 70px auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.step-row select[hidden] { display: none; } .step-row [data-rm] { grid-column: 5; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid .small-input { width: 100%; min-width: 0; }
@media (max-width: 640px) {
  .case-row { grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; padding: 12px 14px; } .case-main, .case-acts { grid-column: 1 / -1; } .case-acts { justify-content: flex-start; }
  .form-grid.three { grid-template-columns: 1fr 1fr; } .step-row { grid-template-columns: 64px auto minmax(0, 1fr) auto; } .step-row select[data-k=minutes] { grid-column: 3; } .step-row [data-rm] { grid-column: 4; }
}
/* ---- engagement (09/11): role menus, posts, tickets; the editors show a Discord-look preview beside the form ---- */
.eng-edit [hidden], .modal [hidden] { display: none !important; }
.eng-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 18px; align-items: start; }
.eng-preview { position: sticky; top: 16px; min-width: 0; } .eng-preview .dc-chat { border-radius: 12px; padding: 14px 14px 2px; min-height: 120px; } .eng-preview .note { margin-top: 10px; }
.erow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); } .card > .erow:first-child, .evs > .erow:first-child { border-top: 0; }
.erow.tight { padding: 10px 0; } .card.inner { margin: 10px 0 0; }
.e-main { display: flex; flex-direction: column; min-width: 0; } .e-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .e-main small { font-size: 13px; }
.opt-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) 64px minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.opt-row:first-child { border-top: 0; } .opt-row .desc { grid-column: 2 / 5; } .o-name { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-opt { margin-top: 10px; } .danger-ack { margin-top: 12px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); border-radius: 10px; padding: 10px 12px; }
.danger-ack { padding: 10px 12px; }
.blk { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg); }
.blk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.btn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 64px auto; gap: 6px; margin-bottom: 6px; }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; } .q-row .check { white-space: nowrap; font-weight: 400; }
.add-blocks { margin-top: 4px; } .mt6 { margin-top: 6px; } .sticky-foot { margin: 0 0 14px; }
.dc-media { display: grid; gap: 4px; margin: 6px 0; } .dc-pic { position: relative; min-height: 90px; border-radius: 6px; background: #1e1f22; display: grid; place-items: center; overflow: hidden; }
.dc-pic img[hidden] { display: none; } .dc-pic img { width: 100%; max-height: 280px; object-fit: cover; display: block; position: relative; z-index: 1; } .dc-pic span { position: absolute; color: #949ba4; font-size: 12.5px; padding: 0 10px; text-align: center; }
.dc-file { background: #2b2d31; border: 1px solid #3f4147; border-radius: 6px; padding: 10px 12px; margin: 6px 0; color: #00a8fc; font-size: 13.5px; }
@media (max-width: 1000px) { .eng-edit { grid-template-columns: 1fr; } .eng-preview { position: static; } }
@media (max-width: 640px) {
  .opt-row { grid-template-columns: 12px minmax(0, 1fr) 56px auto; } .opt-row .lbl { grid-column: 2 / 4; grid-row: 2; } .opt-row .desc { grid-column: 2 / 4; }
  .btn-row { grid-template-columns: minmax(0, 1fr) 56px auto; } .btn-row [data-g="url"] { grid-column: 1 / -1; grid-row: 2; }
  .q-row { grid-template-columns: 1fr auto; } .q-row input.input { grid-column: 1 / -1; }
  .erow { flex-wrap: wrap; } .erow .btns { margin-left: auto; }
}

/* your servers: hide one from the list */
.server .s-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hide-x { width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; font-size: 13px; }
.hide-x:hover, .hide-x:focus-visible { color: var(--ink); border-color: var(--line); }
.hidden-list { margin-top: 18px; } .hidden-list summary { cursor: pointer; color: var(--mute); font-size: 14px; } .hidden-list .server { margin-top: 10px; }
.server .s-name .badge { align-self: flex-start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Backups (dash-backup.js): the two cards on top, the list, the last restore, the restore dialog's preview */
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; } .bk-grid > .card { margin: 0; }
.bk-p { margin: -4px 0 4px; } .bk-keep { max-width: 220px; } .bk-head { margin: 0; } .bk-sum { margin: 0; }
.bk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bk-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .bk-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-acts { display: flex; gap: 6px; flex-wrap: wrap; } .bk-prog { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; } .bk-stats .stat { padding: 10px 12px; } .bk-stats .stat b { font-size: 22px; } .stat.bk-bad b { color: var(--danger); }
.bk-list { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: 14px; } .bk-list summary { cursor: pointer; font-weight: 600; }
.bk-list ul { margin: 6px 0 2px; padding-left: 18px; max-height: 180px; overflow: auto; } .bk-list li { margin: 2px 0; overflow-wrap: anywhere; }
.bk-list.bad summary { color: var(--danger); } .bk-list.warn summary { color: var(--warn); } .note .bk-list { background: var(--bg); }
.radio-card.safe input { accent-color: var(--accent); } .radio-card.safe:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card:has(input:disabled) { opacity: .55; cursor: default; }
@media (max-width: 640px) {
  .bk-grid { grid-template-columns: minmax(0, 1fr); } .bk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-checks { grid-template-columns: minmax(0, 1fr); }
  .bk-row { padding: 14px 16px; } .bk-acts { width: 100%; } .bk-acts .btn { flex: 1 1 auto; }
}
/* ---- structure and trust (11/11): site footer, privacy / terms / permissions pages, the builder's Community step,
   "Who can see what", bulk channel tools, Onboarding. Same tokens as above; nothing wider than the screen. */
.foot { flex-wrap: wrap; gap: 10px 24px; align-items: center; } .foot:empty { display: none; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; } .foot nav a { color: var(--mute); text-decoration: none; } .foot nav a:hover { color: var(--ink); }
.doc { max-width: 820px; } .doc-head { margin-bottom: 26px; } .doc-head h1 { margin: 6px 0 10px; } .doc-head .lead { font-size: 17px; }
.doc-sec { border-top: 1px solid var(--line); padding: 20px 0 6px; } .doc-sec h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 10px; }
.doc-sec p, .doc-sec li { color: var(--ink-2); font-size: 15px; } .doc-sec ul { margin: 0; padding-left: 20px; } .doc-sec li { margin-bottom: 8px; }
.perm-rows { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.perm-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14.5px; } .perm-row:first-child { border-top: 0; }
.perm-list summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; } .perm-list ul { list-style: none; padding: 0; margin: 10px 0; }
.perm-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; } .perm-list li .muted { flex-basis: 100%; }
.q-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: var(--bg-2); } .q-box.ro { display: flex; flex-direction: column; gap: 8px; }
.q-head { display: flex; gap: 10px; align-items: flex-end; } .q-head .field, .q-head .input { flex: 1; min-width: 0; margin-top: 0; } .grow { flex: 1; }
.q-flags { margin: 8px 0 4px; }
.ans { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; } .ans .field { margin-top: 0; }
.ans-top { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; } .ans-emoji { text-align: center; }
.guide { display: grid; gap: 10px; margin-bottom: 10px; } .guide p, .guide ul { margin: 4px 0 0; } .guide ul { padding-left: 18px; }
.chip.cant { opacity: .5; cursor: default; }
.tag.warn-t { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.who-card { padding: 16px; } .who-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .who-tools .input { width: auto; min-width: 200px; max-width: 100%; }
.w-find { flex: 1; min-width: 240px; } .w-find .field { margin-top: 0; }
.who-legend { margin: 12px 0; } .who-legend svg { vertical-align: -3px; } .who-card .pad { padding: 18px 0; margin: 0; }
.agrid-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; max-height: 70vh; }
table.agrid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13.5px; }
.agrid th, .agrid td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: center; background: var(--bg); }
.agrid thead th { position: sticky; top: 0; z-index: 2; font-weight: 600; color: var(--ink-2); white-space: nowrap; padding: 8px 10px; }
.agrid tbody th { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 500; max-width: 240px; border-right: 1px solid var(--line); }
.agrid .ag-corner { left: 0; z-index: 3; text-align: left; border-right: 1px solid var(--line); }
.ag-role { display: inline-flex; align-items: center; gap: 6px; }
.ag-ch { display: flex; align-items: center; gap: 6px; min-width: 0; } .ag-ch.in { padding-left: 14px; } .ag-ch.cat .ag-name { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--mute); }
.ag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .ag-ch .tag { flex: none; }
.acell { display: inline-flex; gap: 3px; align-items: center; justify-content: center; min-width: 52px; height: 30px; padding: 0 6px; border-radius: 7px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink); }
.acell:hover { border-color: var(--line-2); background: var(--bg-2); } .acell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.am { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; } .am.on { color: var(--accent); background: var(--accent-soft); } .am.off { color: var(--faint); opacity: .55; }
.acell.none .am { opacity: .35; }
.agrid.one { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ag-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 4px 12px; border-top: 1px solid var(--line); min-width: 0; } .ag-row:first-child { border-top: 0; }
.presets-list .radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); } .presets-list .radio-card input { accent-color: var(--accent); } .radio-card.cant { opacity: .5; cursor: default; }
.bulk { flex-wrap: wrap; } .bulk .btn { flex: none; }
@media (max-width: 640px) {
  .perm-row { grid-template-columns: 1fr; } .doc-head h1 { font-size: 28px; }
  .who-tools .seg { display: flex; } .who-tools .input, .w-find { min-width: 0; width: 100%; }
  .agrid tbody th { max-width: 190px; } .ag-ch { flex-wrap: wrap; row-gap: 2px; } .ag-name { white-space: normal; overflow-wrap: anywhere; } .acell { min-width: 44px; }
  .ans-top { grid-template-columns: 52px minmax(0, 1fr) auto; }
}
