/* ACGbots: a night-blue rail carrying xat's yellow pawn, calm light pages, one bright blue for actions. */
:root {
  color-scheme: light;
  --room: #eef1f7; --deep: #f7f8fc; --raised: #fff; --raised2: #f1f4fa; --line: #dfe4ee;
  --ink: #172036; --soft: #5b6478; --note: #fff4cc;
  --accent: #2b59ff; --on-accent: #fff; --accent-soft: rgba(43, 89, 255, .1);
  --smiley: #ffcf3f; --on-smiley: #241c00;
  --member: #0f8a4c; --mod: #1d63c9; --danger: #c62f27; --warm: #a85c00;
  --rail: #121733; --rail-ink: #f2f4ff; --rail-soft: #a7aed0; --rail-hover: #1d2347; --rail-line: #262d58;
  --shadow: 0 1px 2px rgba(23, 32, 54, .05), 0 8px 24px -16px rgba(23, 32, 54, .18);
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --room: #0d1120; --deep: #0a0e1b; --raised: #151a2c; --raised2: #1c2238; --line: #262d47;
  --ink: #e9ecf6; --soft: #9aa3bd; --note: #2a2f52;
  --accent: #6d8dff; --on-accent: #0a0f2a; --accent-soft: rgba(109, 141, 255, .16);
  --member: #5fdc92; --mod: #7cc4ff; --danger: #ff8f8a; --warm: #ffb057;
  --rail: #090c19; --rail-hover: #161b33; --rail-line: #1b2140;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body { margin: 0; background: var(--room); color: var(--ink); font: 14.5px/1.5 var(--text); }
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; }
h2 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.pagetitle { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hint { color: var(--soft); }
.small { font-size: 13px; }
.error { color: var(--danger); font-weight: 700; margin-bottom: 12px; }
.error:empty { display: none; }
.notice { background: var(--note); padding: 8px 14px; border-radius: 8px; margin-bottom: 18px; }
/* Maintenance: the one banner that must not be missed, so it carries a bar on the left. */
.notice.maint { border-left: 4px solid #e0a100; font-weight: 700; }
.notice.viewnotice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.maintbox { margin-bottom: 18px; }
#editor.viewonly .savebar { display: none; }
.problems { display: block; color: var(--danger); font-size: 13px; margin-top: 2px; }
.bigcode { font-size: 18px; padding: 4px 10px; user-select: all; }
.pawn { width: 24px; height: 24px; fill: var(--smiley); flex: none; }
.pawn.big { width: 60px; height: 60px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

button { font: 700 14px/1.2 var(--text); padding: 8px 14px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; }
button:hover { filter: brightness(1.06); }
button:disabled { opacity: .7; cursor: default; }
button.quiet { background: var(--raised); color: var(--ink); border-color: var(--line); }
button.quiet:hover { background: var(--raised2); border-color: var(--soft); }
button.danger { background: transparent; color: var(--danger); border-color: transparent; }
button.danger:hover { border-color: var(--danger); }
button.small { padding: 6px 11px; font-size: 13px; }
:focus-visible { outline: 3px solid var(--mod); outline-offset: 2px; }

label { display: block; font-weight: 700; font-size: 14px; }
input, textarea, select { display: block; width: 100%; font: 400 15px/1.4 var(--text); color: inherit; background: var(--deep); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; margin-top: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.switch { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.switch.lead { font: 700 18px var(--display); }
.switch input { position: absolute; opacity: 0; width: 38px; height: 22px; }
.switch i { flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--member); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 3px solid var(--mod); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.box { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; min-width: 0; box-shadow: var(--shadow); }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px); gap: 8vw; align-items: center; max-width: 1040px; margin: auto; padding: 32px 24px; }
.authcopy h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; margin: 18px 0 14px; }
.authcopy p { color: var(--soft); font-size: 18px; }
.authform { display: flex; flex-direction: column; gap: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; background: var(--rail); color: var(--rail-ink); border-right: 1px solid var(--rail-line); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; font: 700 22px var(--display); padding: 0 6px 8px; }
#pageFind { margin: 0 0 6px; background: var(--rail-hover); border-color: var(--rail-line); color: var(--rail-ink); }
#pageFind::placeholder { color: var(--rail-soft); }
.brand { color: var(--rail-ink); }
.navhead { color: var(--rail-soft); font-size: 12.5px; padding: 12px 8px 2px; opacity: .8; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navitem { display: flex; gap: 10px; align-items: center; background: transparent; border: 0; color: var(--rail-soft); font-weight: 400; text-align: left; padding: 8px; }
.navitem:hover { color: var(--rail-ink); background: var(--rail-hover); filter: none; }
.navitem.on { color: var(--rail-ink); background: var(--rail-hover); font-weight: 700; box-shadow: inset 3px 0 0 var(--smiley); }

.navmore summary { list-style: none; cursor: pointer; border-radius: 8px; }
.navmore summary::-webkit-details-marker { display: none; }
.navmore summary::after { content: "›"; margin-left: auto; font-size: 18px; line-height: 1; transition: transform .15s; }
.navmore[open] summary::after { transform: rotate(90deg); }
.navitem.sub { width: 100%; padding-left: 36px; font-size: 14px; }
.rail .navitem.sub { color: var(--rail-soft); }
.rail .navitem.sub:hover, .rail .navitem.sub.on { color: var(--rail-ink); }
.ticketgrid { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ticketrow { display: block; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); text-align: left; padding: 12px 16px; font-weight: 400; }
.ticketrow:last-child { border-bottom: 0; }
.ticketrow:hover { background: var(--raised2); filter: none; }
.ticketrow.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.ticketrow b { display: block; overflow-wrap: anywhere; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { background: var(--deep); border-radius: 10px; padding: 10px 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.staff { border-left: 3px solid var(--accent); }
.msg small { display: block; color: var(--soft); margin-bottom: 4px; white-space: normal; }
.stage { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; gap: 12px; align-items: center; padding: 10px clamp(16px, 3vw, 30px); border-bottom: 1px solid var(--line); background: var(--raised); position: sticky; top: 0; z-index: 5; }
.menu { display: none; }
.crumb { color: var(--soft); margin-right: auto; overflow-wrap: anywhere; font-size: 14px; }
/* Bot picker: a pill showing the chosen bot, and a menu listing every bot with its status. */
.switcher { position: relative; }
.switchbtn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 19px; background: var(--raised2); color: var(--soft); font: 700 14px var(--text); cursor: pointer; max-width: 280px; }
.switchbtn:hover { border-color: var(--soft); filter: none; background: var(--raised2); }
.switchbtn:focus-visible, .switchbtn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.switchtext { color: var(--ink); min-width: 110px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switchbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.botmenu { position: absolute; right: 0; top: 46px; width: 320px; max-width: calc(100vw - 24px); background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 6px; z-index: 7; box-shadow: 0 16px 40px -14px rgba(10, 14, 30, .45); display: flex; flex-direction: column; gap: 2px; }
.bothead { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.botcount { background: var(--raised2); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; letter-spacing: 0; }
.botfind { margin: 2px 4px 6px; height: 34px; }
.botoptions { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.botopt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 9px 10px; color: var(--ink); font-weight: 400; cursor: pointer; }
.botopt:hover, .botopt:focus-visible { background: var(--raised2); outline: none; filter: none; }
.botopt[aria-selected="true"] { background: var(--accent-soft); }
.botopt[aria-selected="true"] b::after { content: " \2713"; color: var(--accent); }
.botopttext { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.botopttext b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.botopttext small { color: var(--soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.botstate { font-size: 12px; font-weight: 700; color: var(--soft); flex: none; }
.botstate.on { color: var(--member); }
.botstate.wait { color: var(--warm); }
.botnone { color: var(--soft); padding: 10px; margin: 0; font-size: 14px; }
.botall { display: flex; align-items: center; gap: 8px; margin-top: 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; background: transparent; color: var(--accent); font-weight: 700; padding: 11px 10px 7px; text-align: left; cursor: pointer; }
.botall:hover { background: transparent; filter: none; text-decoration: underline; }
.switchdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--soft); }
.switchdot.on { background: var(--member); box-shadow: 0 0 0 3px rgba(15, 138, 76, .15); }
.switchdot.wait { background: var(--warm); }
/* Account: initial in a yellow circle, the name, and a menu that says who is signed in. */
.accountmenu { position: relative; font-size: 14px; }
.accountmenu summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 19px; cursor: pointer; background: var(--raised2); }
.accountmenu summary::-webkit-details-marker { display: none; }
.accountmenu summary:hover { border-color: var(--soft); }
.accountmenu[open] summary { border-color: var(--accent); }
.whoav { width: 30px; height: 30px; border-radius: 50%; background: var(--smiley); color: var(--on-smiley); display: grid; place-items: center; font: 700 14px var(--display); flex: none; }
.whoname { font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 16px; height: 16px; color: var(--soft); transition: transform .15s; }
.accountmenu[open] .chev { transform: rotate(180deg); }
.menubox { position: absolute; right: 0; top: 46px; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 230px; z-index: 6; box-shadow: 0 12px 32px -12px rgba(23, 32, 54, .3); }
.menuwho { display: flex; flex-direction: column; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow-wrap: anywhere; }
.menuwho span { color: var(--soft); font-size: 13px; }
.menuwho .menurole { color: var(--accent); font-weight: 700; margin-top: 4px; }
.menuitem { background: transparent; border: 0; color: var(--ink); text-align: left; padding: 9px 12px; border-radius: 8px; font-weight: 400; }
.menuitem:hover { background: var(--raised2); filter: none; }
.menuitem.out { color: var(--danger); }

.main { padding: 24px clamp(16px, 3vw, 30px) 90px; max-width: 1200px; width: 100%; }
.page, .panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pagehead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
#editor > .pagehead { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.status { display: inline-flex; gap: 7px; align-items: center; margin-top: 4px; color: var(--soft); font-weight: 700; }
.status::before, .dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }
.status.online, .dot.on { color: var(--member); }
.status.waiting, .dot.wait { color: var(--warm); }
.dot { display: inline-flex; gap: 7px; align-items: center; font-weight: 700; color: var(--soft); }

.summary { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)) minmax(240px, 1.8fr); background: var(--raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.stat { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat b { font: 700 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--soft); font-size: 13px; line-height: 1.3; }
.chart { margin: 0; padding: 12px 16px; position: relative; min-width: 0; }
.chart figcaption { color: var(--soft); font-size: 13px; margin-bottom: 6px; }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 88px; }
.barcol { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; background: none; border: 0; padding: 0; color: var(--soft); font: 400 11px var(--text); cursor: default; }
.barcol:hover { filter: none; }
.barcol i { display: block; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.barcol:hover i, .barcol:focus-visible i { background: var(--ink); }
.barcol span { padding-top: 4px; text-align: center; }
.tip { position: absolute; top: 6px; background: var(--deep); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 13px; pointer-events: none; white-space: nowrap; z-index: 2; }

.listhead { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 4px; }
.count { font: 700 13px var(--text); background: var(--raised2); border-radius: 10px; padding: 2px 8px; vertical-align: 2px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tools input { width: 210px; margin: 0; }
.tools select { width: auto; margin: 0; }
.segments { display: flex; gap: 2px; background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.segments button { background: transparent; border: 0; color: var(--soft); font-weight: 400; padding: 6px 11px; }
.segments button.on { color: var(--ink); font-weight: 700; background: var(--raised2); }

.botlist { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.botcard { display: grid; grid-template-columns: 46px minmax(140px, 1.2fr) minmax(170px, 1.2fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
.botcard:last-child { border-bottom: 0; }
.botcard:hover { background: var(--raised2); }
.botcard.attn { border-left-color: var(--warm); }
.pawntile { width: 42px; height: 42px; border-radius: 10px; background: var(--deep); display: grid; place-items: center; }
.pawntile .pawn { width: 22px; height: 22px; }
.pawntile .off { fill: var(--soft); opacity: .6; }
.pawntile .on { fill: var(--member); }
.pawntile .wait { fill: var(--warm); }
.botname { font: 700 16px/1.25 var(--display); overflow-wrap: anywhere; background: none; border: 0; padding: 0; color: var(--ink); text-align: left; display: block; }
.botname:hover { text-decoration: underline; filter: none; }
.sub { color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.empty { padding: 34px 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; color: var(--soft); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--raised2); }
.steps li.done::before { content: "✓"; background: var(--member); color: #06240f; }
.steps b { display: block; }
.steps code { background: var(--deep); padding: 1px 6px; border-radius: 5px; }

.settingsgrid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.fold { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.fold summary { padding: 13px 18px; cursor: pointer; font: 700 16px var(--display); }
.fold summary span { font: 400 13px var(--text); color: var(--soft); margin-left: 8px; }
.foldbody { padding: 2px 18px 18px; }
.preview { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.previewhead { font-weight: 700; }
.previewroom { display: flex; gap: 10px; background: #5e5c9e; color: #fff; border-radius: 8px; padding: 12px; }
.previewroom p { overflow-wrap: anywhere; }
.avatar { width: 38px; height: 38px; border-radius: 6px; background: var(--smiley); color: var(--on-smiley); display: grid; place-items: center; font: 700 18px var(--display); flex: none; }
.previewcard { background: var(--deep); border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }

/* The strike ladder is the panel's own idea: a person's path from warning to ban. */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 12px 26px 12px 30px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); margin-right: -8px; color: #17163f; }
.step:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 16px; border-radius: 10px 0 0 10px; }
.step input { background: rgba(255, 255, 255, .8); border-color: rgba(23, 22, 63, .5); color: #17163f; max-width: 110px; }
.step.warn { background: #ffe28a; }
.step.kick { background: #ffb864; }
.step.ban { background: #ff8f8a; margin-right: 0; }
.rules { display: flex; flex-direction: column; margin-top: 6px; }
.rule { display: grid; grid-template-columns: minmax(170px, 1fr) 190px minmax(170px, 220px); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule input[type=number], .rule select { margin: 0; }
.rule .unit { display: flex; gap: 8px; align-items: center; color: var(--soft); font-size: 13px; font-weight: 400; white-space: nowrap; }
.rule .unit input { width: 76px; flex: none; }
.rankgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; margin-top: 10px; }
.rankrow { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; align-items: center; }
.rankrow select { margin: 0; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.rows:empty { display: none; }
.pair { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr) auto auto; gap: 8px; align-items: center; }
.pair input, .pair select { margin: 0; }
.board { margin: 8px 0 0; padding-left: 22px; }
.reflist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.refitem { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.refitem code { font-weight: 700; color: var(--accent); }
.transcript { height: 420px; overflow-y: auto; background: var(--deep); border-radius: 12px; padding: 14px; }
.transcript p { margin: 0 0 6px; overflow-wrap: anywhere; }
.transcript .bot b { color: var(--warm); }
.transcript .bot b { color: var(--warm); }
.transcript .pm b { color: var(--mod); }
.transcript .action { color: var(--danger); }
.transcript .system { color: var(--soft); }
.simform { display: grid; grid-template-columns: 120px 130px minmax(0, 1fr) auto; gap: 8px; }
.simform input, .simform select { margin: 0; }
.activitygrid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.stackfilters { display: flex; flex-direction: column; gap: 2px; }
.stackfilters button { background: transparent; border: 0; color: var(--soft); font-weight: 400; text-align: left; padding: 7px 8px; }
.stackfilters button.on { background: var(--raised2); color: var(--ink); font-weight: 700; }
.logs { list-style: none; margin: 0; padding: 0; }
.logs li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.logs li:last-child { border-bottom: 0; }
.logs time { color: var(--soft); font-size: 13px; }
.logs .error-row { color: var(--danger); font-weight: 700; }
.histlist, .chatlog { list-style: none; margin: 0; padding: 0; }
.histlist li { display: grid; grid-template-columns: 170px 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.histlist li:last-child, .chatlog li:last-child { border-bottom: 0; }
.histlist time, .chatlog time { color: var(--soft); font-size: 13px; }
.histlist .why { display: block; color: var(--soft); font-size: 14px; }
.histlist .idnum { color: var(--soft); font-size: 13px; }
.tag.ban { background: rgba(198, 47, 39, .1); color: var(--danger); }
.tag.kick { background: rgba(255, 191, 0, .2); color: var(--warm); }
.tag.unban { background: rgba(15, 138, 76, .12); color: var(--member); }
.tag.rank { background: var(--accent-soft); color: var(--accent); }
.tag.official { background: #ffe066; color: #172036; margin-left: 6px; }
.histlist .emptyline, .chatlog .emptyline { display: block; color: var(--soft); }
.chatlog li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.chatlog b { margin-right: 4px; }
.chatlog .idnum { color: var(--soft); font-size: 12px; margin-right: 6px; }
.chathead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.chathead h2 { margin: 0; }
.chattools { display: flex; align-items: center; gap: 8px; }
#chatSearch { width: 260px; }
.histlist .tag { justify-self: start; }
button.danger { color: var(--danger); }
.savebar { position: sticky; bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; background: var(--raised2); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px -10px rgba(23, 32, 54, .35); z-index: 4; }
.dialog { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(420px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(6, 5, 25, .65); }
.toast { position: fixed; right: 18px; bottom: 18px; background: var(--ink); color: var(--room); font-weight: 700; padding: 10px 16px; border-radius: 10px; z-index: 20; }

@media (max-width: 1050px) {
  .summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chart { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-right: 0; }
  .settingsgrid { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
  .botcard { grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); }
  .botcard .row { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail.open { display: flex; }
  .menu { display: block; }
  .crumb { display: none; }
  .switcher { margin-right: auto; min-width: 0; flex: 1; }
  .switcher select { min-width: 0; width: 100%; }
  .whoname, .accountmenu .chev { display: none; }
  .accountmenu summary { padding: 0 3px; }
  .switcher select { max-width: none; }
  .summary { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .chart { border-top: 0; }
  .tools, .tools input { width: 100%; }
  .segments { overflow-x: auto; }
  .botcard { grid-template-columns: 46px minmax(0, 1fr); }
  .botcard .dot, .botcard .sub.state { grid-column: 2; }
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .step, .step:first-child { clip-path: none; padding: 12px 16px; margin: 0; border-radius: 0; }
  .simform { grid-template-columns: 1fr 1fr; }
  .simform #simText, .simform button { grid-column: 1 / -1; }
  .pair { grid-template-columns: minmax(0, 1fr) auto; }
  .pair input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .rule { grid-template-columns: minmax(0, 1fr) auto; }
  .rule .act { grid-column: 1 / -1; }
  .activitygrid, .ticketgrid { grid-template-columns: minmax(0, 1fr); }
  .stackfilters { flex-direction: row; flex-wrap: wrap; }
  .logs li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .histlist li { grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; }
  .histlist li > div { grid-column: 1 / -1; }
  .chatlog li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chattools { width: 100%; }
  #chatSearch { width: auto; flex: 1; min-width: 0; }
  .steps li { grid-template-columns: 34px minmax(0, 1fr); }
  .steps li > :last-child:not(div) { grid-column: 2; }
}

/* Dashboard: coloured tiles and a plain table with icon actions. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; gap: 14px; align-items: center; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-width: 0; box-shadow: var(--shadow); }
.tile b { display: block; font: 600 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tile div span { color: var(--soft); font-size: 13px; }
.badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.badge .ico { width: 21px; height: 21px; }
.badge.green { background: rgba(15, 138, 76, .12); color: var(--member); }
.badge.yellow { background: rgba(255, 191, 0, .2); color: var(--warm); }
.badge.blue { background: var(--accent-soft); color: var(--accent); }
.badge.coral { background: rgba(198, 47, 39, .1); color: var(--danger); }
.iconbtn.green { background: #5fdc92; }
.iconbtn.yellow { background: #ffcf3f; }
.iconbtn.blue { background: #7cc4ff; }
.botlist { padding: 4px 16px; }
.bottable { width: 100%; border-collapse: collapse; }
.bottable th { text-align: left; font-size: 13px; color: var(--soft); font-weight: 700; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.bottable td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
.bottable tr:last-child td { border-bottom: 0; }
.bottable tr.attn td:first-child { box-shadow: inset 3px 0 0 var(--warm); padding-left: 10px; }
.idcell { font-weight: 700; font-variant-numeric: tabular-nums; }
.who { display: flex; gap: 10px; align-items: center; }
.who .pawn { width: 20px; height: 20px; }
.who .pawn.on { fill: var(--member); }
.who .pawn.wait { fill: var(--warm); }
.who .pawn.off { fill: var(--soft); opacity: .6; }
.iconrow { display: flex; gap: 6px; }
.iconbtn { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 7px; color: #0b0c28; }
.iconbtn.plain { background: var(--raised2); color: var(--ink); border: 1px solid var(--line); }
.chart.box { padding: 14px 18px; }
.bars { height: 110px; }
.tip { top: 12px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .bottable thead { display: none; }
  .bottable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .bottable tr:last-child { border-bottom: 0; }
  .bottable td { border: 0; padding: 0; }
  .bottable td.idcell { grid-column: 1 / -1; color: var(--soft); font-size: 13px; }
  .tile { padding: 12px; gap: 10px; }
  .badge { width: 36px; height: 36px; }
}
.bottable tr.botcard { display: table-row; border-left: 0; padding: 0; }
.bottable tr.botcard:hover { background: var(--raised2); }
#ticketList { padding: 0; }
@media (max-width: 620px) {
  .bottable tr.botcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .bottable tr.botcard:last-child { border-bottom: 0; }
}

/* Support tickets */
.ticketbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ticketbar input { flex: 1 1 220px; margin: 0; }
.ticketbar select { width: auto; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { background: transparent; border: 1px solid var(--line); border-radius: 18px; color: var(--soft); font-weight: 400; padding: 6px 12px; }
.pills button.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pills b { margin-left: 3px; color: var(--ink); }
#ticketList { padding: 4px 16px; }
.tickettable { width: 100%; border-collapse: collapse; }
.tickettable th { text-align: left; font-size: 13px; font-weight: 400; color: var(--soft); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.tickettable td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
.tickettable tr:last-child td { border-bottom: 0; }
.ticketline:hover { background: var(--raised2); }
.ticketsubject { font-size: 25px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag.open { background: rgba(124, 196, 255, .18); color: var(--mod); }
.tag.answered { background: rgba(255, 207, 63, .2); color: var(--warm); }
.tag.closed { background: var(--raised2); color: var(--soft); }
.prio.high { color: var(--warm); font-weight: 700; }
.prio.emergency { color: var(--danger); font-weight: 700; }
.ticketnewgrid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.choiceitem { position: relative; font-weight: 400; cursor: pointer; }
.choiceitem input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choiceitem span { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); }
.choiceitem input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.choiceitem input:focus-visible + span { outline: 3px solid var(--mod); outline-offset: 2px; }
.quickstart { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.tips { margin: 0; padding-left: 18px; color: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 820px; background: var(--raised); border: 1px solid var(--line); }
.msg.staff { margin-left: 28px; }
@media (max-width: 900px) { .ticketnewgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .tickettable thead { display: none; }
  .tickettable tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .tickettable tr:last-child { border-bottom: 0; }
  .tickettable td { border: 0; padding: 0; }
  .tickettable td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ticketbar select { flex: 1 1 130px; }
  .msg.staff { margin-left: 0; }
}

.ticketsimple { max-width: 820px; }
.ticketdetail { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.ticketinfo { position: sticky; top: 74px; }
.infolist { margin: 0; display: grid; gap: 3px; }
.infolist dt { color: var(--soft); font-size: 13px; margin-top: 9px; }
.infolist dt:first-child { margin-top: 0; }
.infolist dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.assignbox { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.assignbox button { align-self: flex-start; }
.msg { max-width: none; padding: 0; white-space: normal; border-left: 4px solid var(--mod); }
.msg.staff { margin-left: 0; border-left-color: var(--member); }
.msghead { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.msghead .tag { margin-left: auto; }
.msgavatar { width: 34px; height: 34px; border-radius: 50%; background: var(--raised2); display: grid; place-items: center; font-weight: 700; flex: none; }
.msgbody { padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.threadevent { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 8px 14px; border-radius: 8px; background: rgba(255, 143, 138, .12); color: var(--danger); font-size: 14px; }
.threadevent span { color: var(--soft); }
@media (max-width: 800px) { .ticketdetail { grid-template-columns: minmax(0, 1fr); } .ticketinfo { position: static; } }

.accessbox { max-width: 720px; }

.plantable { width: 100%; border-collapse: collapse; }
.plantable th { text-align: left; color: var(--soft); font-weight: 400; font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.plantable td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.plantable tr:last-child td { border-bottom: 0; }
.plantable .yes { color: var(--member); font-weight: 700; }
.plantable .no { color: var(--soft); }
.package { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.package strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 700 18px var(--display); }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.codelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.codelist li { font: 700 15px ui-monospace, Consolas, monospace; background: var(--raised2); border-radius: 6px; padding: 6px 10px; text-align: center; }
#tsSecret { font: 700 15px ui-monospace, Consolas, monospace; background: var(--raised2); padding: 2px 8px; border-radius: 5px; overflow-wrap: anywhere; }
#twoStepNag button { margin-left: 8px; }

.progress { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; }
.progress p { font-weight: 700; margin-bottom: 8px; overflow-wrap: anywhere; }
.progresstrack { height: 8px; background: var(--deep); border-radius: 4px; overflow: hidden; }
.progressbar { height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .35s ease; }
.progress.done .progressbar { background: var(--member); }
.progress.waiting .progressbar { background: var(--warm); }
.progress.failed { border-color: var(--danger); }
.progress.failed p { color: var(--danger); }
.progress.failed .progressbar { background: var(--danger); }
@media (prefers-reduced-motion: reduce) { .progressbar { transition: none; } }

.payactions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.payactions .smallinput { width: 6.5rem; }
.authbrand { display: flex; gap: 12px; align-items: center; font: 700 26px var(--display); }
.narrow { max-width: 320px; }
.stafftable input, .stafftable select { margin: 0; }
.stafftable td:nth-child(2) { width: 22%; }
.stafftable td:nth-child(3) { width: 22%; }
.stafftable td:last-child { width: 1%; white-space: nowrap; }
@media (max-width: 620px) {
  .stafftable tr { grid-template-columns: 1fr 1fr; }
  .stafftable td:last-child { grid-column: 1 / -1; }
}

/* Room lists: a quick-add bar, then rows like a chat room's user list. */
.addbar { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 12px; align-items: end; }
.addbar .wide { grid-column: span 1; }
.addbar .error { grid-column: 1 / -1; margin: 0; }
.addbar input, .addbar select { margin-top: 4px; }
.roster { padding: 0; overflow: hidden; }
.rosterhead { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rosterhead .inline { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--soft); }
.rosterhead .inline input { width: 90px; margin: 0; }
.rosterlist { list-style: none; margin: 0; padding: 0; }
.rosterrow { display: grid; grid-template-columns: 38px minmax(140px, 1.2fr) auto minmax(0, 1.6fr) auto; gap: 14px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.rosterrow:last-child { border-bottom: 0; }
.rosterrow:hover { background: var(--raised2); }
.rosterrow .who b { display: block; overflow-wrap: anywhere; }
.rosterrow .initial { width: 38px; height: 38px; font-size: 16px; }
.rosternote { color: var(--soft); font-size: 13.5px; overflow-wrap: anywhere; }
.rosternote[data-band] { display: flex; gap: 8px; align-items: center; }
.rosteractions { display: flex; gap: 6px; justify-content: flex-end; }
.rosteredit { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 14px; padding: 6px 0 4px; }
.rosteredit input, .rosteredit select { margin-top: 4px; }
.emptyline { padding: 16px 20px; }
.initial { border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--display); background: var(--accent-soft); color: var(--accent); }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--raised2); color: var(--soft); border: 1px solid var(--line); justify-self: start; }
.rosterrow.locked { opacity: .92; }
/* VOX Admin: a quiet gold outline rather than a solid yellow badge. */
.chip.vox { font-size: 11px; padding: 2px 8px; letter-spacing: .02em; background: transparent; color: #9a7200; border-color: rgba(217, 164, 0, .45); }
:root[data-theme="dark"] .chip.vox { color: #f2c94c; border-color: rgba(242, 201, 76, .35); }
.initial.voxface { background: var(--rail); }
.initial.voxface .pawn { width: 18px; height: 18px; }
.lockmark { font-size: 12px; }
.chip.r5 { background: var(--smiley); color: var(--on-smiley); border-color: transparent; }
.chip.r4 { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip.r3 { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.r2 { color: var(--member); }
.chip.ban { background: rgba(198, 47, 39, .1); color: var(--danger); border-color: transparent; }
.chip.kick { background: rgba(168, 92, 0, .12); color: var(--warm); border-color: transparent; }
.rosternote[data-band]::before, .legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--band, var(--soft)); }
[data-band="now"] { --band: var(--member); }
[data-band="day"] { --band: #2fb3a0; }
[data-band="week"] { --band: var(--accent); }
[data-band="month"] { --band: var(--warm); }
[data-band="old"] { --band: var(--danger); }
.rosternote[data-band="never"]::before, .legend li[data-band="never"]::before { background: transparent; border: 1.5px dashed var(--soft); width: 7px; height: 7px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend li { display: flex; gap: 6px; align-items: center; color: var(--soft); font-size: 12.5px; }
@media (max-width: 860px) {
  .addbar { grid-template-columns: 1fr 1fr; }
  .addbar button { grid-column: 1 / -1; justify-self: start; }
  .rosterrow { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .rosternote { grid-column: 2 / -1; }
  .rosteractions { grid-column: 2 / -1; justify-content: flex-start; }
}
.settingsboxes { align-items: stretch; }
.switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; margin-top: 12px; }

/* Admin tables */
.admintable td { vertical-align: middle; }
.admintable td .hint { display: block; }
.adminacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.daysinput { width: 70px; margin: 0; padding: 6px 8px; }
.editrow td { background: var(--raised2); }
.edituser { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; align-items: end; padding: 6px 0; }
.edituser .row { grid-column: 1 / -1; }
.chip.site-admin { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip.site-staff { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.notes { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.notelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notelist li { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.notelist li.hint { background: none; border: 0; padding: 0; }
.notelist p { margin-top: 2px; overflow-wrap: anywhere; }
.noteadd { display: flex; gap: 8px; align-items: flex-end; }
.noteadd textarea { margin: 0; flex: 1; }

a.authbrand { color: inherit; text-decoration: none; }
.badgepick { width: auto; padding: 5px 8px; font-size: 13px; }
.admintable .dot { white-space: nowrap; }
.adminacts { flex-wrap: wrap; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--soft); font-weight: 400; }
.agree input { margin-top: 3px; width: auto; }
.authhead { margin: 0 0 4px; font-size: 20px; }
.authswitch { margin: 2px 0 0; font-size: 13.5px; color: var(--soft); text-align: center; }
.authswitch button { background: none; border: 0; padding: 0; width: auto; min-height: 0; box-shadow: none; color: var(--accent, #2b59ff); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* What's new: posts look like messages from the bot (dashboard card and Admin, Updates). */
.newsbox { display: flex; flex-direction: column; gap: 14px; }
.newshead { display: flex; justify-content: space-between; align-items: baseline; }
.newshead a { font-weight: 700; font-size: 14px; color: var(--accent); }
.newsfeed { display: flex; flex-direction: column; gap: 18px; }
.post { display: flex; gap: 12px; align-items: flex-start; }
.postav { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; flex: none; }
.postav svg { width: 22px; height: 22px; fill: var(--on-accent); }
.postmain { flex: 1; min-width: 0; }
.postmeta { display: flex; gap: 10px; align-items: center; color: var(--soft); font-size: 13px; margin: 2px 0 6px; }
.posttag { font: 800 11px/1 var(--text); letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; }
.posttag.new { background: rgba(15, 138, 76, .14); color: var(--member); }
.posttag.fix { background: rgba(255, 207, 63, .25); color: var(--warm); }
.posttag.info { background: var(--accent-soft); color: var(--accent); }
.bubble { background: var(--deep); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 16px; }
.post:first-child .bubble { border-color: var(--accent); }
.bubble h3 { margin: 0 0 4px; font: 700 17px var(--display); }
.newsfeed.compact .bubble p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.posttools { margin-top: 8px; gap: 6px; }
/* Official team: rows like a chat's user list, with a ring in the rank's colour. */
.teamhead { display: flex; gap: 10px; align-items: baseline; margin: 22px 0 10px; flex-wrap: wrap; }
.teamhead .count { font-size: 13px; font-weight: 700; background: var(--raised2); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; }
.teamlist { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.teamrow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); --ring: var(--accent); }
.teamrow:first-child { border-top: 0; }
.teamrow.founder { --ring: #d9a400; }
.teamrow.admin { --ring: var(--danger); }
.memberav { position: relative; width: 42px; height: 42px; border-radius: 13px; background: var(--raised2); display: grid; place-items: center; font: 800 18px var(--display); box-shadow: 0 0 0 2px var(--ring); flex: none; }
.memberav::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--ring); border: 3px solid var(--raised); }
.memberwho { flex: 1; min-width: 0; }
.memberwho b { overflow-wrap: anywhere; }
.membersub { color: var(--soft); font-size: 13px; margin: 2px 0 0; }
.memberrank { text-align: right; font-weight: 700; font-size: 14px; flex: none; }
.memberrank small { display: block; color: var(--member); font-size: 12px; }
.warnnote { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--danger); background: rgba(198, 47, 39, .07); }
.checkline { flex-direction: row; align-items: center; gap: 8px; }
@media (max-width: 560px) { .teamrow { flex-wrap: wrap; } .memberrank { text-align: left; width: 100%; padding-left: 56px; } }

/* Mail */
.navcount { margin-left: auto; background: var(--accent); color: #fff; }
.mailhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mailrow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mailrow:last-child { border-bottom: 0; }
.mailrow.unread .mailbody { font-weight: 700; }
.mailmain { min-width: 0; }
.mailfrom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mailbody { margin: 6px 0 4px; overflow-wrap: anywhere; white-space: pre-wrap; }
.mailtools { flex-wrap: wrap; justify-content: flex-end; }
.mailrow .memberav::after { display: none; }
#blockForm { flex-wrap: nowrap; }
#blockForm input { flex: 1; min-width: 0; }
.blockline { justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.blockline:last-child { border-bottom: 0; }
@media (max-width: 640px) { .mailrow { grid-template-columns: auto 1fr; } .mailtools { grid-column: 1 / -1; justify-content: flex-start; } }
.ownerform { flex-wrap: nowrap; gap: 6px; }
.ownerform input { width: 170px; min-width: 0; }

/* Account, Ticket alerts: quiet hours start and end on one line. */
.quietrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quietrow[hidden] { display: none; }
.quietrow select { width: auto; min-width: 110px; margin: 0; }

/* Logs, Stats: tiles, a per-day chart, top commands, busiest hours and CSV downloads. */
.stattiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stattiles .tile { align-items: flex-start; }
.stattiles .tile b { margin: 2px 0; }
.delta { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.delta.up { color: var(--member); }
.delta.down { color: var(--danger); }
.lockchip { font-size: 10.5px; font-weight: 700; color: var(--warm); margin-left: 6px; }
.statgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.statkey { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--soft); }
.statkey li { display: flex; align-items: center; gap: 6px; }
.statkey li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.statkey .k-msg::before { background: var(--accent); }
.statkey .k-cmd::before { background: var(--smiley); }
.statkey .k-mod::before { background: var(--danger); }
.statchart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.statchart .grid { stroke: var(--line); stroke-width: 1; }
.statchart .axis { fill: var(--soft); font: 400 11px var(--text); }
.statchart .bar { fill: var(--accent); pointer-events: none; }
.statchart .lcmd, .statchart .lmod, .statchart text { pointer-events: none; }
.statchart .hit { fill: transparent; cursor: default; }
.statchart .hit:hover + .bar { fill: var(--ink); }
.statchart .lcmd { fill: none; stroke: var(--smiley); stroke-width: 2.5; stroke-linejoin: round; }
.statchart .lmod { fill: none; stroke: var(--danger); stroke-width: 2.5; stroke-dasharray: 5 4; stroke-linejoin: round; }
.cmdbars { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cmdbars li { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.cmdbars b { overflow-wrap: anywhere; }
.cmdbars .track { height: 9px; border-radius: 5px; background: var(--raised2); overflow: hidden; }
.cmdbars .fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.cmdbars .custom .fill { background: var(--member); }
.cmdbars .n { text-align: right; color: var(--soft); font-variant-numeric: tabular-nums; }
.cmdbars .chip { margin-left: 6px; font-size: 10.5px; padding: 1px 7px; }
.heatgrid { display: grid; grid-template-columns: 36px repeat(24, minmax(0, 1fr)); gap: 3px; margin-top: 10px; font-size: 11px; color: var(--soft); }
.heatgrid i { height: 16px; border-radius: 3px; background: var(--accent); }
.heatgrid i.zero { background: var(--raised2); }
.exprange label { flex: 0 1 180px; }
.expgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.expcard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--raised2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.expcard p { flex: 1; }
.expcard button:disabled { opacity: .45; }
.delta[title] { cursor: help; }
@media (max-width: 1100px) { .stattiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .statgrid, .expgrid { grid-template-columns: minmax(0, 1fr); } .stattiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .heatgrid { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; } .heatgrid i { height: 12px; } #statRange { width: 100%; } }

/* ===== ACGbots look, 5 Nov 2026: a deeper night rail in sections, tinted action buttons, plan badges, glowing tiles,
   a notifications bell and an account menu with an online dot. Dark is the default theme. ===== */
:root[data-theme="dark"] {
  --room: #0b0f1d; --deep: #090d19; --raised: #121829; --raised2: #19203a; --line: #232b47;
  --rail: #080b17; --rail-hover: #141a33; --rail-line: #171d36;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 30px -18px rgba(0, 0, 0, .7);
}
.rail { gap: 4px; background: linear-gradient(180deg, var(--rail) 0%, color-mix(in srgb, var(--rail) 85%, #1b1550) 100%); }
.brand { font-size: 21px; letter-spacing: -.01em; padding: 2px 8px 10px; }
.brand .pawn { width: 30px; height: 30px; filter: drop-shadow(0 4px 10px rgba(255, 207, 63, .35)); }
.navhead { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rail-soft); opacity: .55; padding: 14px 10px 4px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navhead.searching { display: none; }
.rail .navitem { border-radius: 9px; padding: 7px 10px; font-size: 14.5px; }
.rail .navitem > .ico { width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: rgba(255, 255, 255, .05); color: var(--rail-soft); transition: background .15s, color .15s; }
.rail .navitem:hover > .ico { background: rgba(255, 255, 255, .09); color: var(--rail-ink); }
.rail .navitem.on { background: linear-gradient(90deg, rgba(109, 141, 255, .22), rgba(109, 141, 255, 0) 85%); }
.rail .navitem.on > .ico { background: var(--smiley); color: #241c00; }
.rail .navitem.sub { padding-left: 46px; font-size: 14px; }
.rail .navitem.sub.on { background: none; box-shadow: none; color: var(--smiley); font-weight: 700; }
.navcount { margin-left: auto; background: var(--accent); color: #0a0f2a; border-radius: 9px; padding: 0 7px; font-size: 11.5px; font-weight: 800; line-height: 18px; }

/* Top bar: glassy, with the bell and the round avatar. */
.topbar { background: color-mix(in srgb, var(--raised) 80%, transparent); backdrop-filter: blur(10px); }
.bellmenu { position: relative; }
.bellmenu summary, .accountmenu summary { list-style: none; cursor: pointer; }
.bellmenu summary::-webkit-details-marker { display: none; }
.bellmenu summary { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--raised2); display: grid; place-items: center; color: var(--ink); position: relative; }
.bellmenu summary:hover, .bellmenu[open] summary { border-color: var(--accent); }
.bellcount { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ff5d6c; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--room); }
.bellbox { min-width: 270px; top: 50px; }
.bellhead { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 8px 12px 4px; margin: 0; }
.bellempty { padding: 6px 12px 12px; }
.accountmenu summary { height: auto; padding: 0; border: 0; background: none; border-radius: 50%; gap: 0; }
.accountmenu summary .whoname, .accountmenu summary .chev { display: none; }
.whoav { position: relative; width: 40px; height: 40px; background: linear-gradient(135deg, #7b5cff, #4f7bff); color: #fff; font-size: 16px; box-shadow: 0 6px 18px -6px rgba(91, 108, 255, .7); }
.whoav::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--raised); }
.accountmenu[open] summary .whoav { outline: 2px solid var(--accent); outline-offset: 2px; }
.whoav.big { width: 46px; height: 46px; font-size: 19px; }
.menubox { top: 52px; border-radius: 14px; padding: 8px; min-width: 270px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .65); }
.menuwho { flex-direction: row; align-items: center; gap: 12px; padding: 10px 10px 14px; }
.menuwho > div { display: flex; flex-direction: column; min-width: 0; }
.menuwho b { font-size: 15.5px; }
.menuwho .menurole { color: var(--smiley); margin-top: 0; font-size: 12.5px; }
:root:not([data-theme="dark"]) .menuwho .menurole { color: #9a7200; }
.menuitem { display: flex; align-items: center; gap: 12px; padding: 10px 10px; }
.menuitem .ico { color: var(--soft); }
.menuitem .toggle { margin-left: auto; width: 40px; height: 23px; border-radius: 12px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.menuitem .toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; }
.menuitem[aria-checked="true"] .toggle { background: var(--accent); }
.menuitem[aria-checked="true"] .toggle::after { transform: translateX(17px); }
.menuitem.out { justify-content: center; margin-top: 6px; border: 1px solid var(--line); background: var(--raised2); color: var(--soft); }
.menuitem.out .ico { color: inherit; }
.menuitem.out:hover { color: var(--danger); border-color: var(--danger); }

/* Dashboard tiles: big glowing round icons. */
.tile { border-radius: 14px; padding: 20px; gap: 16px; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile .badge { width: 54px; height: 54px; }
.tile .badge .ico { width: 24px; height: 24px; }
:root[data-theme="dark"] .badge.green { background: rgba(61, 220, 132, .14); color: #3ddc84; box-shadow: 0 0 24px -6px rgba(61, 220, 132, .45); }
:root[data-theme="dark"] .badge.yellow { background: rgba(255, 207, 63, .14); color: var(--smiley); box-shadow: 0 0 24px -6px rgba(255, 207, 63, .45); }
:root[data-theme="dark"] .badge.blue { background: rgba(109, 141, 255, .16); color: var(--accent); box-shadow: 0 0 24px -6px rgba(109, 141, 255, .5); }
:root[data-theme="dark"] .badge.coral { background: rgba(255, 107, 107, .14); color: #ff6b6b; box-shadow: 0 0 24px -6px rgba(255, 107, 107, .45); }
.tile b { font-size: 30px; }

/* Bot table: tidy headings, plan badges, status in words, tinted round actions. */
.botlist { border-radius: 14px; padding: 6px 18px 8px; }
.bottable th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 14px 12px 12px 0; }
.bottable td { padding: 14px 12px 14px 0; }
.bottable .idcell { color: var(--soft); font-weight: 600; }
.bottable .botname { font-weight: 700; font-size: 15px; }
.roomlink { color: var(--accent); text-decoration: none; }
.roomlink:hover { text-decoration: underline; }
.plan { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 3px 10px; white-space: nowrap; }
.plan.paid { background: rgba(255, 207, 63, .14); color: #e0a800; border: 1px solid rgba(255, 207, 63, .4); }
:root[data-theme="dark"] .plan.paid { color: var(--smiley); }
.plan.free { background: var(--raised2); color: var(--soft); border: 1px solid var(--line); }
.bottable .dot { font-size: 13.5px; white-space: nowrap; }
.iconrow { gap: 7px; }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; transition: transform .12s, filter .12s; }
.iconbtn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.iconbtn .ico { width: 17px; height: 17px; }
.iconbtn.green { background: rgba(61, 220, 132, .16); color: #2bbf6c; }
.iconbtn.blue { background: rgba(79, 179, 255, .16); color: #2f95e0; }
.iconbtn.yellow { background: rgba(255, 181, 71, .18); color: #d98a00; }
:root[data-theme="dark"] .iconbtn.green { color: #3ddc84; }
:root[data-theme="dark"] .iconbtn.blue { color: #4fb3ff; }
:root[data-theme="dark"] .iconbtn.yellow { color: #ffb547; }
.iconbtn.plain { background: var(--raised2); }
.iconbtn.green .ico, .iconbtn.yellow .ico { fill: currentColor; }

/* Good to know. */
.tipsbox { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: linear-gradient(135deg, rgba(109, 141, 255, .12), rgba(169, 139, 255, .06) 60%, transparent); }
.tipsbox h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tipsbox h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--smiley); box-shadow: 0 0 10px var(--smiley); }
.tipsbox ul { margin: 8px 0 0; padding-left: 18px; color: var(--soft); display: grid; gap: 4px; }
.tipsbox b { color: var(--ink); font-weight: 700; }

/* Boxes everywhere: a little rounder, a touch of depth. */
.box, .chart.box, .newsbox { border-radius: 14px; }
@media (max-width: 620px) {
  .whoav { width: 36px; height: 36px; }
  .bellmenu summary { width: 36px; height: 36px; }
  .bellbox, .menubox { position: fixed; right: 12px; left: 12px; top: 60px; min-width: 0; }
}
.page > .notice { margin-bottom: 0; }
.menuwho .whoav { color: #fff; }
@media (max-width: 620px) {
  .tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .tile .badge { width: 40px; height: 40px; box-shadow: none !important; }
  .tile .badge .ico { width: 19px; height: 19px; }
  .tile b { font-size: 24px; }
}

/* Our own spin (5 Nov): trend lines in the tiles, chat-bubble bots, and one joined button group per bot. */
.tile { position: relative; overflow: hidden; }
.spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 46px; opacity: .9; pointer-events: none; }
.spark .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { stroke: none; opacity: .14; }
.spark.yellow .line { stroke: var(--smiley); } .spark.yellow .area { fill: var(--smiley); }
.spark.blue .line { stroke: var(--accent); } .spark.blue .area { fill: var(--accent); }
.spark.coral .line { stroke: #ff6b6b; } .spark.coral .area { fill: #ff6b6b; }
:root:not([data-theme="dark"]) .spark.yellow .line { stroke: #e0a800; }
.tile > div { position: relative; z-index: 1; }
.botdots { position: absolute; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 4px; max-width: 46%; }
.botdots .pawn { width: 16px; height: 16px; }
.botdots .pawn.on { fill: #3ddc84; filter: drop-shadow(0 0 4px rgba(61, 220, 132, .6)); }
.botdots .pawn.wait { fill: var(--warm); }
.botdots .pawn.off { fill: var(--soft); opacity: .45; }
.bottable .who { gap: 10px; }
.bottable .who .pawn { width: 22px; height: 22px; flex: none; }
.bottable .who .pawn.on { fill: #3ddc84; filter: drop-shadow(0 0 5px rgba(61, 220, 132, .45)); }
.actgroup { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--raised2); }
.actgroup .iconbtn { border-radius: 0; width: 38px; height: 34px; background: transparent; border-right: 1px solid var(--line); }
.actgroup .iconbtn:last-child { border-right: 0; }
.actgroup .iconbtn:hover { transform: none; background: var(--accent-soft); filter: none; }
.actgroup .iconbtn.plain { background: transparent; border-top: 0; border-bottom: 0; border-left: 0; }
@media (max-width: 620px) { .spark { width: 60%; height: 34px; } .botdots { display: none; } }
.tile { padding-bottom: 34px; }
.spark { left: 0; right: 0; width: 100%; height: 28px; opacity: .85; }
.botdots { left: 20px; right: auto; bottom: 10px; max-width: none; justify-content: flex-start; flex-wrap: nowrap; }
@media (max-width: 620px) { .tile { padding-bottom: 30px; } .spark { width: 100%; height: 24px; } .botdots { display: flex; left: 14px; } }

/* ===== Site look, 5 Nov 2026 (late): the panel matches acgbots.com. Dark only: night violet, an aurora behind the top
   of every page, glass boxes, gold pill buttons, Unbounded headings, the shield crest. Overrides everything above. ===== */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  color-scheme: dark;
  --room: #070b16; --deep: #050812; --raised: #111a2e; --raised2: #16213a; --line: #22304f;
  --ink: #eef4ff; --soft: #9fb0cc; --note: #16253f;
  --accent: #38bdf8; --on-accent: #04121f; --accent-soft: rgba(56, 189, 248, .14);
  --smiley: #38bdf8; --on-smiley: #04121f;
  --member: #34d399; --mod: #9fc0ff; --danger: #ff5f7a; --warm: #ffb057;
  --rail: #050812; --rail-ink: #eef4ff; --rail-soft: #9fb0cc; --rail-hover: #15203a; --rail-line: #1a2540;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --violet: #6366f1; --pink: #0ea5e9; --blue: #6366f1; --mint: #34d399; --orange: #7dd3fc;
}
body { background: var(--room); }
/* The aurora: fixed behind everything, strongest at the top right of the work area. */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(620px 460px at 22% -8%, rgba(99, 102, 241, .32), transparent 70%),
              radial-gradient(560px 420px at 92% 0%, rgba(14, 165, 233, .18), transparent 70%),
              radial-gradient(700px 420px at 60% 30%, rgba(99, 102, 241, .10), transparent 70%); }
h1, h2, .pagetitle, .brand, .authbrand span { font-family: var(--display); letter-spacing: -.02em; }
.pagetitle { font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
h2 { font-weight: 600; }
.brand { font-weight: 800; }
.brand .pawn, .authbrand .pawn { width: 34px; height: 34px; filter: drop-shadow(0 6px 14px rgba(56, 189, 248, .35)); }
.authbrand .pawn.big { width: 56px; height: 56px; }

/* Rail: the website's night, gold for where you are. */
.rail { background: linear-gradient(180deg, rgba(5, 8, 18, .92), rgba(17, 26, 46, .92)); backdrop-filter: blur(14px); border-right: 1px solid var(--rail-line); }
.rail .navitem > .ico { background: rgba(255, 255, 255, .06); }
.rail .navitem.on { background: linear-gradient(90deg, rgba(56, 189, 248, .16), rgba(56, 189, 248, 0) 85%); color: var(--rail-ink); }
.rail .navitem.on > .ico { background: linear-gradient(135deg, #7dd3fc, #0ea5e9); color: #04121f; }
.navcount { background: var(--pink); color: #fff; }

/* Boxes become glass tiles like the site's. */
.box, .chart.box, .newsbox { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .1); border-radius: 22px; backdrop-filter: blur(10px); }
.topbar { background: rgba(7, 11, 22, .6); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(14px); }

/* Buttons: gold pills for the main action, glass pills for the rest. */
/* Only plain action buttons (no class, or just "small") get the gold pill; menu items, icons and chart bars keep theirs. */
button:not([class]):not([role="group"] button):not(.authswitch button), button[class="small"]:not([role="group"] button) { border-radius: 999px; padding: 9px 18px; border: 0; background: linear-gradient(92deg, #38bdf8, #7dd3fc); color: #04121f; box-shadow: 0 8px 24px -10px rgba(56, 189, 248, .6); }
button.quiet, button.ghost { border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ink); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; }
button.quiet:hover, button.ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
button.danger { background: transparent; color: var(--danger); box-shadow: none; border: 1px solid transparent; }
button.danger:hover { border-color: var(--danger); }
button.small:not(.iconbtn) { padding: 6px 13px; }
input, textarea, select { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .12); border-radius: 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Avatar and badges in the site's colours. */
.whoav { background: linear-gradient(135deg, var(--violet), var(--pink)); box-shadow: 0 6px 18px -6px rgba(14, 165, 233, .6); }
.whoav::after { background: var(--mint); }
.bellcount { background: var(--pink); }
.badge.blue { background: rgba(99, 102, 241, .2) !important; color: #c7d2fe !important; }
.badge.green { color: var(--mint) !important; }

/* Light mode is gone: the panel is dark only, like the site. */
#theme { display: none !important; }
/* Filter groups (All, Needs attention, Running...): glass pills, the chosen one white like the website's. */
[role="group"] button { border-radius: 999px; border: 0; background: transparent; color: var(--soft); box-shadow: none; }
[role="group"] button.on { background: var(--ink); color: #0b1222; }
.authswitch button { color: var(--accent); }
