/* VOXbots: 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; } }
