@font-face { font-family: Inter; src: url("/assets/inter.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk.ttf") format("truetype"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* NOOP design: "Deck". Dark glass, the logo's orange and blue glowing in the corners. */
:root {
  --bg: #06080e;
  --field: rgba(6, 8, 14, 0.65);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #eef1f8;
  --muted: #aab3c8;
  --faint: #8f98ad;
  --blue: #2fb4f5;
  --blue-dark: #04122b;
  --blue-soft: rgba(47, 180, 245, 0.16);
  --orange: #ff7a45;
  --orange-soft: #ff9a6e;
  --orange-dark: #1a0a04;
  --danger: #ff8b8b;
  --ok: #5fe5b6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 520px at 6% -6%, rgba(255, 122, 69, 0.2), transparent 60%),
    radial-gradient(900px 560px at 96% -4%, rgba(0, 153, 217, 0.22), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 48px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.1em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.groupnav { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.groupnav a { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.groupnav a:hover { color: var(--text); }
.groupnav a.active { background: var(--text); color: var(--bg); font-weight: 600; }
.pill { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.pill img, .pill .initial { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.initial { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--bg); background: linear-gradient(135deg, var(--orange), #0099d9); }
.server-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 500; }
.server-chip:hover { background: var(--surface-hover); }
.server-chip small { color: var(--muted); font-size: 12px; }
.server-chip .server-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px; }
.link-btn:hover { color: var(--text); }

/* buttons */
.btn { display: inline-block; text-align: center; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; }
.btn:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.35); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--orange-dark); }
.btn-orange:hover { background: var(--orange-soft); border-color: var(--orange-soft); }
.btn-small { padding: 8px 14px; font-size: 14px; font-weight: 500; border-radius: 10px; }

/* landing */
.hero { max-width: 1000px; margin: 0 auto; padding: 88px 48px 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-soft); font-weight: 600; }
.hero h1 { font-size: 76px; line-height: 1; letter-spacing: -0.03em; }
.grad { background: linear-gradient(100deg, var(--orange), var(--orange-soft) 35%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 0; font-size: 20px; color: var(--muted); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions .btn { padding: 14px 26px; font-size: 16px; }
.features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--muted); }
.notice { padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; }

/* server picker */
.page { width: 100%; max-width: 1264px; margin: 0 auto; padding: 40px 48px 80px; display: flex; flex-direction: column; gap: 32px; }
.page h1 { font-size: 56px; letter-spacing: -0.02em; }
.lead { margin: 10px 0 0; color: var(--muted); font-size: 17px; max-width: 880px; text-wrap: pretty; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { border-color: transparent; background: var(--text); color: var(--bg); font-weight: 600; }
.grid { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 320px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.card:hover { border-color: var(--border-strong); }
.card-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.card-head h3 { font-size: 20px; overflow-wrap: anywhere; }
.server-icon { width: 56px; height: 56px; flex: none; border-radius: 16px; object-fit: cover; background: var(--orange); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 24px; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--border-strong); border-radius: 16px; }

/* dashboard */
.subnav { max-width: 1264px; margin: 4px auto 0; padding: 0 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.subnav:empty { display: none; }
.sub-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); background: transparent; }
.sub-item:hover { color: var(--text); background: var(--surface); }
.sub-item.active { color: var(--text); background: var(--blue-soft); border-color: rgba(47, 180, 245, 0.5); font-weight: 600; }
.sub-item.soon { opacity: 0.55; cursor: default; }
.sub-item.soon:hover { background: transparent; color: var(--muted); }
.sub-item small { font-size: 11px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 7px; }
.main { width: 100%; max-width: 1264px; margin: 0 auto; padding: 36px 48px 80px; display: flex; flex-direction: column; gap: 28px; }
.main h1 { font-size: 52px; letter-spacing: -0.02em; }

/* overview bento */
.stats { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { padding: 14px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); min-width: 130px; }
.stat small { display: block; font-size: 12px; color: var(--faint); }
.stat b { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 600; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
a.tile:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.tile.s6 { grid-column: span 6; }
.tile.s3 { grid-column: span 3; }
.tile.s2 { grid-column: span 2; }
.tile.s4 { grid-column: span 4; }
.tile.s2 .state { display: none; }
.tile.s2 h3 { font-size: 20px; }
.tile.warm { background: linear-gradient(160deg, rgba(255, 122, 69, 0.15), var(--surface) 55%); }
.tile.cool { background: linear-gradient(200deg, rgba(0, 153, 217, 0.17), var(--surface) 60%); }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile h3 { font-size: 22px; }
.tile p { margin: 0; font-size: 14px; color: var(--muted); }
.tile .big { font-family: "Space Grotesk", sans-serif; font-size: 44px; font-weight: 600; line-height: 1; }
.tile .big small { font-size: 20px; color: var(--faint); font-weight: 500; }
.tile .go { margin-top: auto; font-size: 14px; font-weight: 600; color: #6cc6f0; }
.tile.warm .go { color: var(--orange-soft); }
.tile .recent { display: flex; flex-direction: column; gap: 10px; }
.tile .recent div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(6, 8, 14, 0.55); font-size: 14px; }
.tile .recent span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--muted); white-space: nowrap; }
.state.on { background: rgba(61, 214, 160, 0.16); color: var(--ok); }
.soonrow { display: flex; flex-direction: column; gap: 14px; }
.soonrow h4 { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.soonchips { display: flex; flex-wrap: wrap; gap: 10px; }
.soonchips span { padding: 11px 18px; border-radius: 999px; border: 1px dashed var(--border-strong); font-size: 14px; color: var(--muted); }

/* panels and forms */
.panel { display: flex; flex-direction: column; gap: 22px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row strong { display: block; font-size: 16px; }
.row span.sub { font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-size: 14px; font-weight: 500; }
.hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="number"], input[type="url"], input[type="search"], input[type="datetime-local"], select, textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--field); font-size: 15px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select option { background: #11151f; color: var(--text); }
textarea { resize: vertical; line-height: 1.5; }
input[type="color"] { width: 56px; height: 40px; padding: 2px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--field); cursor: pointer; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: rgba(47, 180, 245, 0.6); background: var(--blue-soft); color: var(--text); }
.switch { width: 46px; height: 26px; flex: none; padding: 3px; border: 0; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; background: rgba(255, 255, 255, 0.16); }
.switch[aria-checked="true"] { background: var(--blue); justify-content: flex-end; }
.switch span { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: block; }
.roles { max-height: 220px; overflow: auto; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--field); padding: 6px; }
.role { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.role:hover { background: var(--surface-hover); }
.role input { width: 18px; height: 18px; accent-color: var(--blue); }
.role .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--role-color, #99aab5); flex: none; }
.role small { color: var(--faint); margin-left: auto; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-col > .panel { flex: 1 1 380px; min-width: 0; }
.two-col > .side-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.savebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.savebar .status { margin-right: auto; font-size: 14px; color: var(--muted); }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }

/* Discord-style preview */
.preview { padding: 18px; border-radius: 16px; background: #1e2330; border: 1px solid var(--border); display: flex; gap: 14px; }
.preview > img { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); object-fit: contain; flex: none; }
.preview .body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.preview .name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.badge { padding: 1px 6px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 11px; font-weight: 700; }
.embed { border-left: 4px solid var(--embed-color, var(--blue)); background: #272d3d; border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.embed .t { font-weight: 600; }
.preview .msg { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.mention { background: #3c4270; color: #c9d1ff; border-radius: 4px; padding: 0 3px; }

.panel h3 { font-size: 18px; }
details summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 0; }
.wrap { display: flex; flex-direction: column; gap: 20px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fakebtn { padding: 6px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #fff; background: #5865f2; }
.fakebtn.secondary { background: #4e5058; } .fakebtn.success { background: #248046; } .fakebtn.danger { background: #da373c; }
.typecard { border: 1px solid var(--border); border-radius: 18px; padding: 4px 18px; background: var(--surface); }
.typecard > summary { font-size: 16px; font-weight: 600; color: var(--text); padding: 14px 0; }
.typecard > .panel { border: 0; padding: 8px 0 18px; background: transparent; }
.qrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qrow input[type="text"] { flex: 1 1 180px; width: auto; }
.qrow select { width: auto; }

/* page-level cards used by ticket panel list */
.mod-card { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.mod-card h3 { font-size: 20px; }
.mod-card p { margin: 0; font-size: 14px; color: var(--muted); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.tag.on { background: rgba(61, 214, 160, 0.16); color: var(--ok); }

@media (max-width: 960px) {
  .tile, .tile.s6, .tile.s4, .tile.s3, .tile.s2 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .topbar { padding: 16px; }
  .subnav { padding: 0 16px; }
  .page, .main { padding: 28px 16px 56px; }
  .hero { padding: 56px 20px; }
  .hero h1 { font-size: 44px; }
  .page h1, .main h1 { font-size: 38px; }
}

/* Reaction role rows */
.rrrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rrrow .tag { flex: 0 0 auto; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrrow input[type="text"] { flex: 1 1 120px; width: auto; min-width: 0; }
.rrrow .hint { flex: 1 1 100%; }

/* Overview: change log and transcripts */
.homepanels { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.logcard h3 { font-size: 20px; }
.logcard .sub { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.logcard select, .logcard input[type="search"] { width: auto; min-width: 220px; max-width: 100%; }
.loglist { display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; }
.logrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.logrow:last-child { border-bottom: 0; }
.logrow .tag { flex: 0 0 auto; min-width: 70px; text-align: center; }
/* Change log: grouped by day, one compact line per change */
.clday { position: sticky; top: 0; z-index: 1; padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #14161d; border-bottom: 1px solid var(--border); }
.clrow { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.clrow:last-child { border-bottom: 0; }
.clrow:hover { background: rgba(255, 255, 255, 0.03); }
.clrow .cltag { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.clrow .cltext { min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.clrow time { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .clrow { grid-template-columns: minmax(0, 1fr) auto; } .clrow .cltag { grid-column: 1 / -1; } }
.logtext { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.logtime { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.tmsgs { display: flex; flex-direction: column; gap: 4px; max-height: 560px; overflow-y: auto; padding: 16px; background: #1e2330; border: 1px solid var(--border); border-radius: 14px; }
.tmsg { padding: 8px 0; }
.thead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tbody { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; margin-top: 2px; }

.adv { border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; }
.adv summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.advbody { display: grid; gap: 18px; padding: 4px 0 16px; }
.field .seg { flex-wrap: wrap; }
.alist { padding: 4px 22px; }
.aitem { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.aitem:last-child { border-bottom: 0; }
.atext { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.atext .sub { color: var(--muted); font-size: 14px; }
.aitem > .row { min-width: 170px; justify-content: flex-end; gap: 12px; }
/* Never leave one lonely word on the last line of a paragraph or hint. */
p, .hint, .sub, .lead, .empty { text-wrap: balance; }

/* Privacy and terms pages, and the footer links on every page. */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 28px 40px; display: flex; flex-direction: column; gap: 12px; line-height: 1.65; }
.legal h1 { margin: 0; font-size: 40px; }
.legal h2 { margin: 28px 0 0; font-size: 22px; }
.legal h3 { margin: 18px 0 0; font-size: 17px; color: var(--muted); }
.legal p, .legal li { color: #d6dbe8; font-size: 16px; }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: #7fc4ff; }
.legal .updated { color: var(--muted); font-size: 14px; }
.sitefoot { display: flex; justify-content: center; gap: 24px; padding: 28px 16px 36px; font-size: 14px; }
.sitefoot a { color: var(--muted); text-decoration: none; }
.sitefoot a:hover { color: #fff; text-decoration: underline; }
.legal p, .legal li { text-wrap: pretty; }

/* Poll results */
.bars { display: flex; flex-direction: column; gap: 10px; }
.barrow { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.bar { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.bar::-webkit-progress-bar { background: rgba(255, 255, 255, 0.08); }
.bar::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.bar::-moz-progress-bar { background: var(--blue); border-radius: 999px; }

/* Customize: bot profile preview */
.pzcard { position: relative; width: 340px; max-width: 100%; border-radius: 16px; overflow: hidden; background: #111214; border: 1px solid var(--border); }
.pzbanner { display: block; width: 100%; height: 120px; object-fit: cover; background: linear-gradient(120deg, #2a1a14, #0b2236); }
.pzavatar { position: absolute; top: 72px; left: 16px; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 6px solid #111214; background: #111214; }
.pzbody { padding: 52px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.pzname { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }

.kindgroup { margin-top: 12px; }
.kindhead { font-weight: 600; margin-bottom: 4px; }
.kindrow { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--border); }
.kindrow .kindname { flex: 1; min-width: 0; }
.kindrow input[type=color] { width: 40px; height: 28px; padding: 0; }

.linkrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.linkrow input { flex: 1 1 160px; min-width: 0; }
.linkrow .emojibox { flex: 0 0 80px; }
.embedrow { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.embedinfo { min-width: 0; flex: 1 1 240px; }
.embedname { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.embedinfo .hint { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embedrow .btnrow { margin-top: 0; flex-wrap: nowrap; }

.total { display: inline-block; margin: 12px 0 10px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }

/* Home page sections */
.count-pill { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); }
.band { max-width: 1000px; margin: 0 auto; padding: 36px 48px; }
.band h2 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 20px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fcard { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.fcard h3 { margin: 0 0 6px; font-size: 18px; }
.fcard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.shot { margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.faq a { color: var(--blue); }
.band.cta { text-align: center; padding-bottom: 64px; }
.band.cta .hero-actions { justify-content: center; }
@media (max-width: 640px) { .band { padding: 28px 20px; } .hero { padding: 56px 20px 40px; } .hero h1 { font-size: 46px; } }

/* Logging page: one switch and one channel picker per log */
.evrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 12px 20px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.evrow .evch { display: flex; flex-direction: column; gap: 4px; }
.evrow .evch select { width: 100%; }
@media (max-width: 640px) { .evrow { grid-template-columns: 1fr; } }

.numlist { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.numpanel { border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.numpanel > summary { cursor: pointer; padding: 12px 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.numpanel > summary::-webkit-details-marker { display: none; }
.numpanel > summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.numpanel[open] > summary::after { content: '\2212'; }
.numpanel .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.numtypes { padding: 0 16px 12px; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--border); }
.numtypes > .row { padding: 9px 0; border-bottom: 1px solid var(--border); }
.numtypes > .row .sub { display: inline; margin-left: 6px; }
.numtypes > .numtop { padding: 12px 0 8px; }

/* Bot status preview */
.statprev { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.03); width: fit-content; min-width: 240px; }
.statprev .sub { display: block; font-size: 13px; color: var(--muted); }
.statprev .dot { width: 12px; height: 12px; border-radius: 50%; background: #3dd6a0; flex: 0 0 auto; }
.statprev .dot.idle { background: #f0b232; }
.statprev .dot.dnd { background: #f23f43; }
.statprev .dot.invisible { background: #80848e; }

/* Channel picker warning */
.chanpick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chanpick select { width: 100%; }
.chanwarn { font-size: 13px; color: var(--muted); padding: 10px 12px; border: 1px solid rgba(240, 178, 50, 0.4); background: rgba(240, 178, 50, 0.08); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chanwarn .ok { color: #3dd6a0; }
.chanwarn .err { flex-basis: 100%; color: #f23f43; }
.chanwarn[hidden] { display: none; }

/* Brand color palette next to color pickers */
.colorpick { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.palpop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 28px); gap: 8px; padding: 10px; border-radius: 14px; background: #14171f; border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.palpop.right { left: auto; right: 0; }
.palpop[hidden] { display: none; }
.swatch { width: 28px; height: 28px; padding: 0; border-radius: 8px; background: var(--sw); border: 1px solid var(--border-strong); cursor: pointer; }
.swatch:hover, .swatch:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
