@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; }
img.server-icon { background: transparent; }
.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; 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 */
.rrcard { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 10px; padding: 12px; margin-bottom: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rrtop { min-width: 0; display: flex; gap: 8px; align-items: center; }
.rrtop input[type="text"] { flex: 1 1 auto; width: auto; min-width: 0; padding: 9px 12px; }
.rrtop input.rremoji { flex: 0 0 64px; text-align: center; padding: 9px 6px; }
.rricon { flex: 0 0 auto; width: 38px; padding: 8px 0; line-height: 1; }
.rricon:disabled { opacity: .35; cursor: default; }
.rrgives { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rrlabel { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.rrgives .tag { align-self: center; }
.rrgives .tag.rrmain { background: rgba(10, 143, 214, 0.18); color: var(--text); }
.rrgives .tag.rrx { display: inline-flex; align-items: center; gap: 6px; max-width: 200px; }
.rrxdel { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; opacity: .7; }
.rrxdel:hover { opacity: 1; }
.rrxadd { display: inline-flex; gap: 6px; align-items: center; }
.rrxadd select.rrxsel { width: auto; max-width: 200px; padding: 5px 10px; font-size: 13px; border-radius: 999px; }
.rrxadd .btn-small { padding: 5px 12px; font-size: 13px; border-radius: 999px; }
.rrgives .hint.rrwarn { flex: 1 1 100%; color: var(--danger); }

/* 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; }
/* Avoid one lonely word on the last line, but never squeeze text narrower than its box. */
p, .hint, .sub, .lead, .empty { text-wrap: pretty; }
.row > .lead { flex: 1 1 0; min-width: 0; }

/* 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; align-items: baseline; flex-wrap: wrap; 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; }

/* Ticket panel dropdown preview */
.fakeselect { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 10px 14px; border-radius: 8px; background: #1e1f22; border: 1px solid rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 14px; }

.iconbtn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; }
.iconbtn img { display: block; width: 20px; height: 20px; }

.sitefoot .copy { flex: 0 0 100%; text-align: center; color: var(--muted); font-size: 13px; opacity: 0.8; margin-top: -10px; }

/* Animated NOOP logo (blinks, and moves on page loads, saves and errors) */
.brand .nl { display: block; width: 38px; height: 38px; }
.nl > img { width: 100%; height: 100%; display: block; }
.nl-eye.l { left: 42.58%; top: 36.33%; width: 11.72%; height: 16.7%; }
.nl-eye.r { left: 63.96%; top: 35.16%; width: 10.25%; height: 16.5%; }
.nl { position: relative; cursor: pointer; animation: nlbob 5s ease-in-out infinite; }
.nl-body { position: relative; display: block; width: 100%; height: 100%; }
.nl-base { width: 100%; height: 100%; display: block; }
.nl-eye { position: absolute; display: block; }
.nl-eye img { width: 100%; height: 100%; display: block; transform-origin: center; animation: nlblink 6s infinite; }
.nl-eye + .nl-eye img { animation-delay: .03s; }
.nl.roll .nl-body { animation: nlroll .75s cubic-bezier(.4, .1, .3, 1); }
.nl.hop .nl-body { animation: nlhop .5s ease-out; }
.nl.shake .nl-body { animation: nlshake .5s ease-in-out; }
.nl.backflip .nl-body { animation: nlflip .8s cubic-bezier(.35, .1, .3, 1); }
.nl.bounce .nl-body { transform-origin: 50% 92%; animation: nlbounce 1s linear; }
.nl.wiggle .nl-body { animation: nlwiggle .7s ease-in-out; }
@keyframes nlbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes nlblink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
@keyframes nlroll { 0% { transform: translateX(0) rotate(0); } 25% { transform: translateX(5px) rotate(120deg); } 50% { transform: translateX(10px) rotate(240deg); } 75% { transform: translateX(5px) rotate(330deg); } 100% { transform: translateX(0) rotate(360deg); } }
@keyframes nlhop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-9px) scale(1.08); } 70% { transform: translateY(0) scale(.95, 1.05); } 100% { transform: none; } }
@keyframes nlshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px) rotate(-8deg); } 40% { transform: translateX(5px) rotate(8deg); } 60% { transform: translateX(-4px) rotate(-5deg); } 80% { transform: translateX(3px) rotate(4deg); } }
@keyframes nlflip { 0% { transform: translateY(0) rotate(0) scale(1); } 12% { transform: translateY(2px) rotate(0) scale(1.08, .9); } 45% { transform: translateY(-18px) rotate(-210deg) scale(1); } 75% { transform: translateY(-8px) rotate(-320deg); } 92% { transform: translateY(1px) rotate(-360deg) scale(1.1, .9); } 100% { transform: translateY(0) rotate(-360deg) scale(1); } }
@keyframes nlbounce { 0% { transform: translateY(0); animation-timing-function: ease-out; } 16% { transform: translateY(-17px) scale(.96, 1.05); animation-timing-function: ease-in; } 30% { transform: translateY(0) scale(1.14, .86); animation-timing-function: ease-out; } 44% { transform: translateY(-10px) scale(.98, 1.03); animation-timing-function: ease-in; } 57% { transform: translateY(0) scale(1.08, .92); animation-timing-function: ease-out; } 69% { transform: translateY(-4px); animation-timing-function: ease-in; } 80% { transform: translateY(0) scale(1.03, .97); } 100% { transform: none; } }
@keyframes nlwiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg) scale(1.06); } 45% { transform: rotate(12deg) scale(1.06); } 70% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .nl, .nl-eye img, .nl .nl-body { animation: none !important; } }

.main.busy { opacity: 0.55; transition: opacity 0.15s; }

/* Webhook messages */
input[type="password"] { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--field); font-size: 15px; }
.qrow input[type="password"] { flex: 1 1 220px; width: auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.badge.muted { background: #4e5058; }
.whtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.whfield, .whrow { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.whside { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.dcprev { padding: 16px; border-radius: 16px; background: #313338; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; color: #dbdee1; font-size: 15px; line-height: 1.4; }
.dcmsg { display: flex; gap: 14px; min-width: 0; border-radius: 8px; }
.dcmsg.current { box-shadow: 0 0 0 2px var(--blue-soft); }
.dcmsg-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.dcmsg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dcmsg-name { font-weight: 600; color: #f2f3f5; }
.dcmsg-time { font-size: 12px; color: #949ba4; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.dc-imgbox { background: #1e1f22; color: #949ba4; font-size: 12px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; border-radius: 6px; }
.dc-imgbox.letter { font-size: 18px; font-weight: 700; color: #fff; background: #5865f2; }
.dc-md { overflow-wrap: anywhere; min-width: 0; }
.dc-md strong { font-weight: 700; }
.dc-md code { background: #1e1f22; padding: 1px 4px; border-radius: 4px; font-size: 13px; }
.dc-md pre { background: #1e1f22; border: 1px solid #202225; padding: 8px; border-radius: 6px; font-size: 13px; white-space: pre-wrap; margin: 4px 0; font-family: ui-monospace, Consolas, monospace; }
.dc-u { text-decoration: underline; }
.dc-spoiler { background: #1e1f22; color: transparent; border-radius: 4px; }
.dc-link { color: #00a8fc; }
.dc-h1 { font-size: 22px; font-weight: 700; } .dc-h2 { font-size: 18px; font-weight: 700; } .dc-h3 { font-size: 16px; font-weight: 700; }
.dc-sub { font-size: 12px; color: #949ba4; }
.dc-quote { border-left: 4px solid #4e5058; padding-left: 10px; }
.dc-li { padding-left: 14px; position: relative; } .dc-li::before { content: "\2022"; position: absolute; left: 2px; }
.dc-blank { min-height: 1em; }
.dc-emoji { width: 22px; height: 22px; vertical-align: -5px; }
.mention { --mc: #c9d1ff; color: var(--mc); background: color-mix(in srgb, var(--mc) 16%, transparent); }
.dcembed { border-left: 4px solid var(--embed-color, #1e1f22); background: #2b2d31; border-radius: 4px; padding: 8px 16px 14px 12px; max-width: 520px; display: flex; gap: 14px; }
.dcembed.nocolor { border-left-color: #1e1f22; }
.dcembed-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; padding-top: 6px; }
.dcembed-author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.dc-aicon, .dc-ficon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; padding: 0; font-size: 0; }
.dc-ficon { width: 20px; height: 20px; }
.dcembed-title { font-weight: 700; font-size: 16px; color: #f2f3f5; overflow-wrap: anywhere; }
.dcembed-title.dc-link { color: #00a8fc; }
.dcembed-desc { font-size: 14px; }
.dcembed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dcfield { grid-column: 1 / -1; min-width: 0; }
.dcfield.inline { grid-column: auto; }
.dcfield-name { font-size: 14px; font-weight: 700; color: #f2f3f5; }
.dcfield-value { font-size: 14px; }
.dcembed-images { display: grid; gap: 4px; border-radius: 6px; overflow: hidden; }
.dcembed-images.n2, .dcembed-images.n4 { grid-template-columns: 1fr 1fr; }
.dcembed-images.n3 { grid-template-columns: 1fr 1fr; }
.dcembed-images.n3 > :first-child { grid-row: span 2; }
.dc-embedimg { width: 100%; max-height: 300px; object-fit: cover; min-height: 70px; }
.dc-thumb { width: 80px; height: 80px; object-fit: cover; flex: none; border-radius: 6px; margin-top: 6px; }
.dcembed-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b5bac1; }
.dcbtnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.dcbtn { padding: 6px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.dcfile { display: inline-block; align-self: flex-start; padding: 6px 10px; border-radius: 6px; background: #2b2d31; border: 1px solid #1e1f22; font-size: 13px; }
@media (max-width: 900px) { .whside { position: static; max-height: none; overflow: visible; } }

/* Smooth fade between separate pages (home, server picker, dashboard). Browsers without support just load normally. */
@view-transition { navigation: auto; }
.brand { view-transition-name: brand; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- picture boxes (embed pictures: link or upload) ---------- */
.picbox { display: flex; flex-direction: column; gap: 6px; }
.picrow { gap: 8px; flex-wrap: wrap; align-items: center; }
.picrow input[type="text"] { flex: 1 1 220px; min-width: 0; }
.picrow select { max-width: 210px; }
.picthumb { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); flex: none; }
.picname { flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-msg:empty { display: none; }
.embed-line { display: flex; align-items: center; gap: 6px; }
.embed-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.embed-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; align-self: flex-end; }
.embed-image { width: 100%; max-height: 260px; object-fit: cover; border-radius: 6px; }
.imgcard { display: flex; gap: 12px; align-items: center; }
.imgcard .picthumb { width: 72px; height: 72px; }

/* Developer > Servers */
.srvlist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.srvrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.srvicon { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.srvinfo { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.srvinfo strong, .srvinfo .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srvcount { flex: none; font-size: 14px; }
.srvbig { flex-direction: column; align-items: stretch; }
.srvtop { display: flex; align-items: center; gap: 12px; }
.srvlook { display: flex; gap: 8px; }
.pzwidethumb { width: 120px; }
.pzwait { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.reqcard { margin-bottom: 12px; }
.reqlook { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }

/* Applications history: small actions after a row's text */
.clrow .clacts { display: inline-flex; gap: 8px; margin-left: 10px; vertical-align: middle; }

/* Saved data: hold-to-delete button and the warning above it */
.btn.holdbtn, .btn.holdbtn:hover { position: relative; overflow: hidden; background: #da373c; border-color: #da373c; color: #fff; user-select: none; touch-action: none; }
.btn.holdbtn .holdfill { position: absolute; inset: 0; width: 0; background: rgba(0, 0, 0, 0.35); }
.btn.holdbtn.holding .holdfill { width: 100%; transition: width var(--hold-ms, 5s) linear; }
.btn.holdbtn .holdlabel { position: relative; }
.dangerbox { border: 1px solid rgba(218, 55, 60, 0.5); background: rgba(218, 55, 60, 0.08); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.datarow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.datarow:last-child { border-bottom: 0; }
.datarow .sub { display: block; font-size: 13px; color: var(--muted); }

/* Question editor (tickets and applications) */
.qcard { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.qtop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qtop > input[type="text"] { flex: 1 1 200px; width: auto; min-width: 0; padding: 9px 12px; }
.qtop > select { flex: 0 0 auto; width: auto; padding: 9px 10px; }
.qreq { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.qreq input { width: 16px; height: 16px; accent-color: var(--blue); }
.qsub { display: flex; flex-wrap: wrap; gap: 8px; }
.qsub > input[type="text"] { flex: 1 1 260px; width: auto; min-width: 0; padding: 8px 12px; font-size: 14px; }
.qsub > div { flex: 1 1 260px; min-width: 0; }
.qsub > div:empty { display: none; }
.qsub > div:has(.field) { flex-basis: 100%; }
.qsub > div > input[type="text"] { padding: 8px 12px; font-size: 14px; }
.qcard .qnum { color: var(--muted); min-width: 22px; }
.qcard input[type="number"] { flex: 1 1 160px; width: auto; }

/* AI replies and AI control */
.aikeyinfo { display: flex; flex-direction: column; gap: 10px; }
.aikeyinfo:empty { display: none; }
.aiusage { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.aimodel { display: flex; flex-direction: column; gap: 6px; }
.aimodelhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aimodelhead strong { overflow-wrap: anywhere; }
.tag.tagok { background: rgba(95, 229, 182, 0.15); color: var(--ok); }
.aisrv { flex-wrap: wrap; }
.aisrv .srvinfo strong, .aisrv .srvinfo .hint { white-space: normal; overflow-wrap: anywhere; }
.aisrv .btnrow { margin-top: 0; }
.aiguide { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: 16px; }
.aiguide ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.aiguide p { margin: 0; }

/* Reviews */
.catrow { display: flex; gap: 8px; align-items: center; }
.catrow input { flex: 1 1 0; width: auto; min-width: 0; }
.catrow .catemoji { flex: 0 0 90px; }
.rvfilters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.rvfilters input[type="search"] { flex: 1 1 180px; min-width: 0; }
.rvrow .cltext { display: flex; flex-direction: column; gap: 4px; }
.rvstars { color: #f5b544; letter-spacing: 1px; white-space: nowrap; }
.rvtext { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.rvcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.rvcard { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.rvcard strong { font-size: 26px; }
.rvdist { display: grid; grid-template-columns: 44px 1fr 40px; gap: 10px; align-items: center; }
.rvtable { display: flex; flex-direction: column; gap: 8px; }
.rvtrow { display: grid; grid-template-columns: 1fr auto 40px 90px; gap: 10px; align-items: center; }
.rvtrow > span:first-child { overflow-wrap: anywhere; }
@media (max-width: 520px) { .rvtrow { grid-template-columns: 1fr auto 36px; } .rvtrow .hint { grid-column: 1 / -1; } }

/* Homepage boxes (Live now / In development / Custom work) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.splitbox { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.splitbox h3 { margin: 6px 0 6px; font-size: 24px; }
.splitbox p { color: var(--muted); margin: 0; line-height: 1.55; }
.boxpill { margin-top: 16px; }
.eyebrow.green { color: var(--ok); }
.eyebrow.blue { color: var(--blue); }
.band.cta .ctasub { color: var(--muted); margin: 0 auto 18px; }

/* Games page */
.gbarlabel { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.gbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 6px 0 26px; }
.gbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--ok), var(--orange)); }
.gbar i.p1{width:6.25%}.gbar i.p2{width:18.75%}.gbar i.p3{width:31.25%}.gbar i.p4{width:43.75%}.gbar i.p5{width:56.25%}.gbar i.p6{width:68.75%}.gbar i.p7{width:81.25%}.gbar i.p8{width:100%}
.gtrack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 18px; }
.gstepcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.gstepcard h3 { margin: 2px 0 0; font-size: 17px; }
.gstepcard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.gdot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; border: 2px solid var(--border-strong); color: var(--muted); background: #0c0f17; }
.gstepcard.done .gdot { background: rgba(95, 229, 182, 0.15); border-color: var(--ok); color: var(--ok); }
.gstepcard.done h3 { color: var(--ok); }
.gstepcard.now { border-color: rgba(255, 122, 69, 0.6); background: linear-gradient(160deg, rgba(255, 122, 69, 0.14), rgba(47, 180, 245, 0.06)); box-shadow: 0 0 0 1px rgba(255, 122, 69, 0.25), 0 10px 40px -12px rgba(255, 122, 69, 0.45); }
.gstepcard.now .gdot { background: var(--orange); border-color: var(--orange); color: #1a0a04; animation: gpulse 2.2s ease-in-out infinite; }
.gstepcard.next { opacity: 0.62; }
.ghere { position: absolute; top: -11px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: #1a0a04; }
@keyframes gpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 69, 0.55); } 50% { box-shadow: 0 0 0 9px rgba(255, 122, 69, 0); } }
@media (prefers-reduced-motion: reduce) { .gstepcard.now .gdot { animation: none; } }
.gnowlist { margin: 12px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.gempty { color: var(--muted); margin: 0; }
.devlog .clrow { grid-template-columns: 96px minmax(0, 1fr) auto; }
.devlog .cltext b, .clrow.gplog .cltext b { display: block; margin-bottom: 2px; }
.devlog .cltext span, .clrow.gplog .cltext span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .gtrack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gtrack { grid-template-columns: 1fr; gap: 22px; } .devlog .clrow { grid-template-columns: minmax(0, 1fr) auto; } .devlog .cltag { grid-column: 1 / -1; } }

/* Developer > Games */
.gpsteps { display: flex; flex-direction: column; gap: 12px; }
.gpstep { display: grid; grid-template-columns: 34px minmax(140px, 1fr) minmax(0, 2.2fr); gap: 12px; align-items: end; }
.gpnum { width: 30px; height: 30px; margin-bottom: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; border: 1px solid var(--border-strong); color: var(--muted); }
.gplogform { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 12px; }
.clrow.gplog { grid-template-columns: 96px minmax(0, 1fr) auto; }
.gpend { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .gpstep { grid-template-columns: 30px minmax(0, 1fr); } .gpstep > .field:last-child { grid-column: 2; } .gplogform { grid-template-columns: 1fr; } .clrow.gplog { grid-template-columns: minmax(0, 1fr) auto; } .clrow.gplog .cltag { grid-column: 1 / -1; } }

/* Anything whose channel was deleted gets a red tag (goneTag in common.js), so it stands out from live ones. */
.badge.gone { background: rgba(229, 72, 77, 0.18); color: #ff8b8b; border: 1px solid rgba(229, 72, 77, 0.5); }
.chanwarn.gone { border-color: rgba(229, 72, 77, 0.5); background: rgba(229, 72, 77, 0.08); color: #ffb3b3; align-items: center; }

/* Server picker: Refresh list sits at the end of the filter tabs */
.refreshtab { margin-left: auto; text-decoration: none; }
@media (max-width: 560px) { .refreshtab { margin-left: 0; } }

/* Top bar stays on ONE row on wide screens whatever the server is called: a long server name is cut with "..." (full name on hover)
   instead of pushing the buttons onto a second row. Narrower screens still wrap like before. */
.server-chip .chipname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1200px) {
  .topbar { flex-wrap: nowrap; padding-left: 32px; padding-right: 32px; gap: 14px; }
  .topbar > .brand, .topbar > .groupnav { flex: 0 0 auto; }
  .topbar > .groupnav { flex-wrap: nowrap; }
  .topbar-right { flex-wrap: nowrap; min-width: 0; flex: 0 1 auto; gap: 10px; }
  .topbar-right > * { flex: 0 0 auto; }
  .topbar-right > .server-chip { flex: 0 1 auto; min-width: 0; }
  .server-chip .chipname { min-width: 48px; max-width: 220px; }
}
/* Mid-width screens: drop the extra words so the server name gets the room. Hover still shows both. */
@media (min-width: 1200px) and (max-width: 1599px) {
  .server-chip small, .pill .pillname { display: none; }
  .pill { padding-right: 6px; }
}
/* Below 1200px the right-hand group always gets its own row, so the layout no longer depends on the name. */
@media (max-width: 1199px) {
  .topbar-right { flex-basis: 100%; justify-content: flex-end; }
  .server-chip { min-width: 0; max-width: 100%; }
  .server-chip .chipname { min-width: 0; max-width: 160px; }
}
@media (max-width: 720px) { .server-chip .chipname { max-width: 110px; } }

/* Compact role / channel picker: picked items as chips, "+ Add" drop-down for the rest. */
.rpick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--field); min-height: 46px; }
.rpchips { display: contents; }
.rpchip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 6px 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.rpchip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--role-color, #99aab5); flex: none; }
.rpchip.warn { border-color: rgba(255, 139, 139, 0.5); color: var(--danger); }
.rpx { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; opacity: .65; }
.rpx:hover { opacity: 1; }
.rpnone { color: var(--faint, var(--muted)); font-size: 13px; padding: 0 4px; }
.rpick select.rpsel { width: auto; max-width: 240px; padding: 5px 10px; font-size: 13px; border-radius: 999px; background: transparent; border-style: dashed; }

/* Fields side by side, and closed "more options" sections. */
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.frow > .field { min-width: 0; }
.frow.r3 { grid-template-columns: minmax(0, 2fr) minmax(90px, 0.7fr) minmax(0, 1fr); }
@media (max-width: 560px) { .frow, .frow.r3 { grid-template-columns: 1fr; } }
.morebox { border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; background: rgba(255, 255, 255, 0.02); }
.morebox > summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.morebox[open] > summary { color: var(--text); }
.morebox > .moreinner { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 16px; }
.typecard .typeremove { display: flex; justify-content: flex-end; }
