/* ==========================================================================
   c2 — dark comic stylesheet
   Night-black pages, a giant faded C2 behind everything, comic lettering,
   and very little else.
   ========================================================================== */

@font-face { font-family: "Bangers"; src: url("/assets/fonts/bangers-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --night: #14121b;
  --panel: #1d1a27;
  --edge: #3a3550;
  --text: #ecebf3;
  --muted: #a29db5;
  --mint: #9fe8c3;
  --pink: #f4a7c6;

  --comic: "Bangers", "Impact", "Arial Black", sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}

/* ---------- The background: giant C2 + halftone ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Optional background picture: save it as site/assets/img/background.jpg,
   then delete the /* and */ on the "background" line below. */
.backdrop {
  /* background: linear-gradient(rgba(20, 18, 27, .8), rgba(20, 18, 27, .92)), url("/assets/img/background.jpg") center / cover no-repeat; */
}
.backdrop::before {
  /* halftone dots, fading towards the bottom */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(159, 232, 195, .16) 1.3px, transparent 1.6px) 0 0 / 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%);
          mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%);
}
.backdrop-mark {
  position: absolute;
  right: -4vw;
  bottom: -9vw;
  margin: 0;
  font: 400 min(62vw, 46rem)/.8 var(--comic);
  color: transparent;
  -webkit-text-stroke: 2px rgba(236, 235, 243, .11);
  transform: rotate(-8deg);
  user-select: none;
}

main { flex: 1; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; padding: .5rem 1rem; background: var(--mint); color: var(--night); z-index: 10; }
.skip-link:focus { top: 1rem; }

.column { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Top and bottom bars (full width) ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  width: 100%;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.wordmark {
  font: 800 1.75rem/1 var(--body);
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--mint); }

.site-nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9375rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--mint); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

.shout {
  margin: 0;
  font-family: var(--comic);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: .95;
}
.lede { margin: 0 0 2rem; color: var(--muted); font-size: 1.125rem; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .55rem 1.5rem .45rem;
  background: var(--mint);
  color: var(--night);
  border: 2px solid var(--mint);
  border-radius: 6px;
  box-shadow: 4px 4px 0 #000;
  font: 1.3rem/1 var(--comic);
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { color: var(--night); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--edge); box-shadow: none; }
.button.secondary:hover { border-color: var(--text); color: var(--text); transform: none; }
.button:disabled { opacity: .5; cursor: default; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Home ---------- */

.intro { padding-top: 14vh; padding-bottom: 4rem; }
.intro h1 { margin-bottom: 1.25rem; font-size: clamp(3.25rem, 11vw, 5.5rem); }
.intro h1 span { color: var(--mint); }

.how { padding-bottom: 5rem; }
.how h2 { margin-bottom: 1.25rem; font-size: 1.75rem; color: var(--muted); }
.how ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.how li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--edge);
  counter-increment: step;
}
.how li::before {
  content: counter(step);
  grid-row: span 2;
  font: 2.5rem/1 var(--comic);
  color: var(--mint);
}
.how h3 { margin: 0; font-size: 1.0625rem; font-weight: 800; }
.how p { margin: 0; color: var(--muted); }

/* ---------- Panel (account page, legal pages) ---------- */

.panel {
  position: relative;
  background: #1b1824;
  border: 1px solid var(--edge);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 6px 16px rgba(0, 0, 0, .4);
}

/* ---------- Account page ---------- */

.account { padding-top: 8vh; padding-bottom: 4rem; }
.account > .panel { padding: 2rem 1.5rem 1.5rem; }
.account h1 { margin-bottom: .75rem; font-size: clamp(2.5rem, 8vw, 3.25rem); }
.account .lede { margin-bottom: 1.75rem; font-size: 1rem; }

.message {
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--mint);
  background: rgba(159, 232, 195, .08);
  font-weight: 700;
}
.message.error { border-left-color: var(--pink); background: rgba(244, 167, 198, .08); color: var(--pink); }

.accounts { margin: 0 0 1.75rem; border-top: 1px solid var(--edge); }
.accounts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--edge); }
.accounts dt { font: 1.3rem/1 var(--comic); letter-spacing: .05em; color: var(--muted); }
.accounts dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }

.fine { margin: 1.5rem 0 0; font-size: .875rem; color: var(--muted); }
.fine a { color: var(--muted); }

/* "LINKED!" stamp after verifying */
.burst {
  position: absolute;
  top: -1.1rem;
  right: 1.25rem;
  padding: .2rem .7rem .1rem;
  background: var(--mint);
  color: var(--night);
  font: 1.4rem/1.2 var(--comic);
  letter-spacing: .06em;
  box-shadow: 3px 3px 0 #000;
  opacity: 0;
  transform: scale(2.2) rotate(-12deg);
  pointer-events: none;
}
.burst.pop { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) forwards; }

/* ---------- Legal pages ---------- */

.doc { padding-top: 6vh; padding-bottom: 4rem; }
.doc-header { margin-bottom: 2rem; }
.doc-header h1 { font-size: clamp(2.75rem, 9vw, 4rem); }
.doc-header p { margin: .5rem 0 0; color: var(--muted); }
.prose { padding: 1.75rem 1.5rem .75rem; }
.prose h2 { margin: 2rem 0 .4rem; font: 1.6rem/1.1 var(--comic); letter-spacing: .04em; color: var(--mint); }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { font-weight: 800; }
.note { margin: 0 0 2rem; padding: .9rem 1rem; border-left: 4px solid var(--mint); background: rgba(159, 232, 195, .08); }

/* ---------- 404 ---------- */

.lost { padding-top: 16vh; padding-bottom: 4rem; }
.lost h1 { margin-bottom: 1rem; font-size: clamp(3.5rem, 12vw, 6rem); }

/* ---------- Footer ---------- */

.site-footer { font-size: .875rem; color: var(--muted); }

.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }

[hidden] { display: none !important; }

/* ---------- One quiet entrance ---------- */

.rise { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.rise.d1 { animation-delay: .1s; }
.rise.d2 { animation-delay: .2s; }
.backdrop-mark { animation: drift 1.4s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drift { from { opacity: 0; transform: rotate(-14deg) translateY(4vw); } }
@keyframes stamp { to { opacity: 1; transform: scale(1) rotate(-4deg); } }

@media (max-width: 520px) {
  .site-nav ul { gap: 1rem; }
  .intro { padding-top: 8vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .burst.pop { opacity: 1; transform: rotate(-4deg); }
}

/* ---------- Account page: extra colour ---------- */

:root { --lilac: #b9a8ff; }

.account { position: relative; }
/* soft coloured glow behind the box */
.account::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2% -18% 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(159, 232, 195, .5), transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(244, 167, 198, .45), transparent 45%),
    radial-gradient(circle at 55% 5%, rgba(185, 168, 255, .45), transparent 42%);
  filter: blur(60px);
  opacity: .8;
}
.account > .panel { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* colour strip across the top of the box */
.account > .panel { border-top: 0; }
.account > .panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  right: -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--mint), var(--lilac), var(--pink));
}

.account .accounts { border-top: 0; display: grid; gap: .6rem; }
.account .accounts div {
  padding: .85rem 1rem;
  border: 1px solid var(--edge);
  border-left: 4px solid var(--lilac);
  background: rgba(185, 168, 255, .07);
}
.account .accounts div:nth-child(2) { border-left-color: var(--mint); background: rgba(159, 232, 195, .07); }
.account .accounts div:nth-child(1) dt { color: var(--lilac); }
.account .accounts div:nth-child(2) dt { color: var(--mint); }
.account .accounts dd.unlinked { color: var(--pink); }

.account .button { background: linear-gradient(135deg, var(--mint), #c9f5dd 60%, var(--lilac)); border-color: transparent; }
.account .button.secondary { background: transparent; border-color: rgba(185, 168, 255, .45); }
.account .button.secondary:hover { border-color: var(--lilac); background: rgba(185, 168, 255, .1); }

.account .burst { background: linear-gradient(135deg, var(--pink), var(--lilac)); }

/* ---------- Dashboard ---------- */

.dash { width: 100%; padding: 2vh clamp(1.25rem, 4vw, 2.5rem) 4rem; }
.dash-inner { max-width: 760px; margin: 0 auto; }
.dash h1 { font-size: clamp(2.25rem, 6vw, 3rem); }
.dash .lede { margin: .5rem 0 1.75rem; font-size: 1rem; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.button.small { min-height: 2.25rem; padding: .35rem .9rem .25rem; font-size: 1rem; }

.servers { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.server {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: #1b1824;
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.server.dim { opacity: .7; }
.server-name { flex: 1; font-weight: 800; overflow-wrap: anywhere; }
.server .button { min-height: 2.5rem; font-size: 1.05rem; }

.server-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--edge);
}
.server-icon.placeholder { display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--text); }
.server-icon.large { width: 64px; height: 64px; font-size: 1rem; }

.back-link { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); text-decoration: none; font-weight: 700; }
.back-link:hover { color: var(--text); }
.guild-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.guild-head h1 { overflow-wrap: anywhere; }

.status-slot:empty { display: none; }
.dash .section { margin-bottom: 1.5rem; padding: 1.5rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.dash .section::before {
  content: "";
  position: absolute;
  inset: 0 -1px auto;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--lilac), var(--pink));
}
.section-title { margin: 0 0 1rem; font: 1.75rem/1 var(--comic); letter-spacing: .04em; }
.subhead { margin: 1.75rem 0 .75rem; font-size: 1rem; font-weight: 800; }

.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 800; font-size: .9375rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { margin: 0; color: var(--muted); font-size: .875rem; }
.inline { display: flex; gap: .6rem; }
.inline input { flex: 1; }
.inline .button { min-height: 2.75rem; }

.dash input[type="text"],
.dash textarea,
.dash select {
  width: 100%;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  background: var(--night);
  color: var(--text);
  border: 1px solid var(--edge);
  border-radius: 6px;
  font: 600 1rem var(--body);
}
.dash input[type="text"]:focus,
.dash textarea:focus,
.dash select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(159, 232, 195, .2); }
.dash select:disabled { opacity: .6; }
.dash option:disabled { color: var(--muted); }

.bindings { display: grid; gap: .5rem; margin-top: 1rem; }
.binding {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  background: rgba(185, 168, 255, .06);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--lilac);
}
.binding-info { display: grid; flex: 1; min-width: 0; }
.binding-group { font-weight: 800; overflow-wrap: anywhere; }
.binding-ranks { color: var(--muted); font-size: .875rem; }
.binding-arrow { color: var(--muted); }
.role-pill {
  --role: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .15rem .65rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}
.role-pill::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--role); }
.icon-button {
  width: 2rem;
  height: 2rem;
  flex: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--edge);
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.icon-button:hover { color: var(--pink); border-color: var(--pink); }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .binding { flex-wrap: wrap; }
  .binding-arrow { display: none; }
}
.dash textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
.field.spaced { margin-top: 1rem; }

/* Message API keys */
.keys { display: grid; gap: .5rem; margin-top: 1rem; }
.key-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem .85rem;
  background: rgba(159, 232, 195, .05);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--mint);
}
.key-info { display: grid; flex: 1; min-width: 0; }
.key-name { font-weight: 800; overflow-wrap: anywhere; }
.key-actions { display: flex; gap: .5rem; flex: none; }
.button.danger:hover { border-color: var(--pink); color: var(--pink); background: rgba(244, 167, 198, .08); }
.key-reveal { margin-top: 1rem; padding: 1rem; border: 1px solid var(--mint); background: rgba(159, 232, 195, .07); }
.key-warning { margin: 0 0 .75rem; font-weight: 800; color: var(--mint); }
.key-value {
  flex: 1;
  min-width: 0;
  padding: .55rem .75rem;
  background: var(--night);
  border: 1px solid var(--edge);
  font: 600 .875rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}
.snippet {
  margin: .75rem 0 0;
  padding: .75rem;
  background: var(--night);
  border: 1px solid var(--edge);
  color: var(--muted);
  font: .8125rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
  overflow-x: auto;
  white-space: pre;
}
@media (max-width: 560px) {
  .key-row { flex-wrap: wrap; }
}
.button.secondary.on { border-color: var(--mint); color: var(--mint); }
.check { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font-weight: 700; font-size: .9375rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--mint); }

/* ---------- Tickets: dashboard ---------- */

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.section-head .section-title { margin: 0; }
.spaced-top { margin-top: 1rem; }
.key-actions.wrap { flex-wrap: wrap; justify-content: flex-end; }
.key-actions select { width: auto; min-height: 2.25rem; max-width: 11rem; padding: .25rem .5rem; font-size: .875rem; }
.field-label { font-weight: 800; font-size: .9375rem; }

.dash input[type="number"] {
  width: 100%; min-height: 2.75rem; padding: .5rem .75rem; background: var(--night); color: var(--text);
  border: 1px solid var(--edge); border-radius: 6px; font: 600 1rem var(--body);
}
.dash input[type="color"] { width: 100%; height: 2.75rem; padding: .2rem; background: var(--night); border: 1px solid var(--edge); border-radius: 6px; cursor: pointer; }

.types { display: grid; gap: .75rem; margin-top: 1rem; }
.type-card { border: 1px solid var(--edge); border-left: 4px solid var(--lilac); background: rgba(185, 168, 255, .04); }
.type-card > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; cursor: pointer; list-style: none; font-weight: 800;
}
.type-card > summary::-webkit-details-marker { display: none; }
.type-card > summary::before { content: "▸"; color: var(--muted); margin-right: .25rem; transition: transform .15s; }
.type-card[open] > summary::before { transform: rotate(90deg); }
.type-title { flex: 1; overflow-wrap: anywhere; }
.type-move { display: flex; gap: .35rem; }
.type-body { padding: 0 1rem 1rem; }

.role-picker { display: grid; gap: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-height: 2rem; }
.role-pill.removable { padding-right: .25rem; }
.chip-x { width: 1.35rem; height: 1.35rem; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.chip-x:hover { color: var(--pink); background: rgba(244, 167, 198, .12); }

.questions { display: grid; gap: .75rem; }
.question { padding: .75rem; border: 1px dashed var(--edge); }
.question .field { margin-bottom: .5rem; }
.question-opts { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.question-opts .check { margin: 0; }
.question-opts .icon-button { margin-left: auto; }

.sticky-save {
  position: sticky; bottom: 0; z-index: 5;
  margin: 0 -1rem; padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 18, 27, .94); border-top: 1px solid var(--edge);
  backdrop-filter: blur(6px);
}
.icon-button:disabled { opacity: .35; cursor: default; }
.icon-button:disabled:hover { color: var(--muted); border-color: var(--edge); }

.tabs { display: flex; gap: .4rem; margin: 1rem 0; }
.tab {
  padding: .45rem 1rem; background: transparent; color: var(--muted); border: 1px solid var(--edge);
  border-radius: 999px; font: 700 .9375rem var(--body); cursor: pointer;
}
.tab.active { color: var(--night); background: var(--mint); border-color: var(--mint); }

.ticket-rows { display: grid; gap: .5rem; }
.ticket-row { display: flex; align-items: center; gap: 1rem; padding: .7rem .85rem; border: 1px solid var(--edge); background: rgba(255, 255, 255, .02); }
.ticket-num { font: 1.3rem/1 var(--comic); letter-spacing: .04em; color: var(--lilac); min-width: 3.5rem; }
.status-pill { padding: .1rem .6rem; border-radius: 999px; font-size: .8125rem; font-weight: 800; border: 1px solid currentColor; }
.status-pill.open { color: var(--mint); }
.status-pill.closing { color: var(--lemon, #f5e27a); }
.status-pill.closed { color: var(--muted); }

@media (max-width: 560px) {
  .ticket-row { flex-wrap: wrap; }
  .key-actions.wrap { justify-content: flex-start; }
}

/* ---------- Transcripts ---------- */

.transcript { width: 100%; max-width: 900px; margin: 0 auto; padding: 1vh clamp(1rem, 4vw, 2rem) 4rem; }
.transcript-head { margin-bottom: 1.5rem; padding: 1.5rem; }
.transcript-head .guild-head { margin-bottom: 1rem; }
.transcript-head h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem 1.25rem; margin: 0; }
.meta div { display: grid; gap: .1rem; }
.meta dt { color: var(--muted); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.answers { margin-top: 1.25rem; display: grid; gap: .75rem; }
.answer { padding: .75rem 1rem; border-left: 3px solid var(--lilac); background: rgba(185, 168, 255, .06); }
.answer strong { display: block; font-size: .875rem; color: var(--muted); }

.chat { padding: .5rem 0; }
.msg-group { display: grid; grid-template-columns: 40px 1fr; gap: 0 .9rem; padding: .5rem 1.25rem; }
.msg-group:hover { background: rgba(255, 255, 255, .02); }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--edge); grid-row: span 99; }
.msg-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.msg-name { font-weight: 800; }
.bot-tag { padding: 0 .35rem; border-radius: 4px; background: #5865f2; color: #fff; font-size: .6875rem; font-weight: 800; text-transform: uppercase; }
.msg-time { color: var(--muted); font-size: .75rem; }
.msg { padding: .05rem 0; overflow-wrap: anywhere; }
.msg-body { white-space: pre-wrap; line-height: 1.45; }
.msg-edited { color: var(--muted); font-size: .6875rem; margin-left: .25rem; }
.msg-reply { color: var(--muted); font-size: .8125rem; margin-bottom: .1rem; }
.msg-system { color: var(--muted); font-style: italic; }
.mention { padding: 0 .2rem; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 600; }
.msg code { padding: .1rem .3rem; background: var(--night); border-radius: 4px; font: .875rem ui-monospace, Consolas, monospace; }
.msg pre { margin: .35rem 0; padding: .6rem .75rem; background: var(--night); border: 1px solid var(--edge); border-radius: 4px; overflow-x: auto; white-space: pre; font: .8125rem/1.5 ui-monospace, Consolas, monospace; }
.emoji { width: 1.375em; height: 1.375em; vertical-align: -.3em; }
.attachment { display: inline-block; margin: .35rem .35rem 0 0; }
.attachment img { max-width: min(400px, 100%); max-height: 300px; border-radius: 6px; display: block; }
.attachment.file { padding: .5rem .75rem; border: 1px solid var(--edge); border-radius: 6px; background: var(--night); }
.msg-embed { max-width: 520px; margin: .35rem 0; padding: .6rem .85rem; background: rgba(0, 0, 0, .25); border-left: 4px solid var(--edge); border-radius: 4px; }
.msg-embed-title { font-weight: 800; margin-bottom: .2rem; }
.msg-embed-field { margin-top: .4rem; }
.msg-embed-field strong { display: block; font-size: .875rem; }
.msg-embed-footer { margin-top: .4rem; color: var(--muted); font-size: .75rem; }
.transcript-note { margin-top: 1rem; color: var(--muted); font-size: .8125rem; text-align: center; }

/* Transcript media */
.attachment.media { display: block; width: fit-content; max-width: min(420px, 100%); margin: .35rem 0 0; border-radius: 8px; overflow: hidden; }
.attachment.media img, video.attachment.media { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; }
video.attachment.media.gif { max-height: 260px; }
audio.attachment { display: block; margin-top: .35rem; max-width: 100%; }
.sticker { display: block; width: 160px; height: 160px; object-fit: contain; margin-top: .35rem; }
.spoiler { position: relative; display: block; width: fit-content; margin: .35rem 0 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; overflow: hidden; }
.spoiler > :first-child { filter: blur(28px); margin: 0; }
.spoiler-label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; letter-spacing: .08em; color: #fff; background: rgba(0, 0, 0, .35); }
.spoiler.revealed > :first-child { filter: none; }
.spoiler.revealed .spoiler-label { display: none; }
.msg-embed { display: flex; gap: 1rem; align-items: flex-start; }
.msg-embed-main { flex: 1; min-width: 0; }
.msg-embed-provider, .msg-embed-author { font-size: .75rem; color: var(--muted); margin-bottom: .2rem; }
.msg-embed-author { color: var(--text); font-weight: 700; }
a.msg-embed-title { display: block; color: #00a8fc; text-decoration: none; }
a.msg-embed-title:hover { text-decoration: underline; }
.msg-embed-field.inline { display: inline-block; min-width: 150px; margin-right: 1rem; vertical-align: top; }
.msg-embed-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.msg-embed-image { display: block; max-width: 100%; max-height: 300px; margin-top: .5rem; border-radius: 4px; }
.msg-embed-video { position: relative; display: block; width: fit-content; max-width: 100%; margin-top: .5rem; }
.msg-embed-video img { display: block; max-width: 100%; max-height: 260px; border-radius: 4px; }
.msg-embed-video .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.spoiler-text { padding: 0 .15rem; border-radius: 3px; background: #2b2d31; color: transparent; cursor: pointer; }
.spoiler-text * { visibility: hidden; }
.spoiler-text.revealed { background: rgba(255, 255, 255, .08); color: inherit; cursor: auto; }
.spoiler-text.revealed * { visibility: visible; }
