/* ==========================================================================
 * graffiti.css — the Graffiti design system. One hand-written stylesheet,
 * no build step, served as-is. docs/web.md describes how to extend it.
 * --------------------------------------------------------------------------
 * HOW TO CHANGE THE BRAND
 * Edit §1 (raw cans) or §2 (semantic tokens). Nothing below §3 hardcodes a
 * colour, so a rebrand is a handful of lines here and no template edits.
 * graffiti/services/branding.py mirrors §1 for Discord embeds, and a test
 * reads this file back to prove the two agree.
 *
 * THE FIVE RULES (not negotiable — see docs/web.md "Colour"):
 *   1. Dark text on brand, never white. Brand fills carry --brand-ink.
 *   2. Pink never carries state alone. Decoration and emphasis only.
 *   3. Severity separates by treatment, not hue. Destructive is
 *      white-on-solid-red; brand is always dark-on-bright.
 *   4. Brand colour is not status colour. "Healthy" is --live, always.
 *   5. A brand FILL and brand TEXT are different tokens (--brand vs
 *      --brand-text); #FF5A1F on white is ~3:1, unusable as type.
 *
 * SECTIONS
 *   §1 raw palette   §2 semantic tokens + themes   §3 type, space, motion
 *   §4 base          §5 utilities                  §6 layout
 *   §7 typography    §8 treatments                 §9 components
 *   §10 pages        §11 responsive                §12 reduced motion
 * ========================================================================== */

/* ==========================================================================
 * §1  RAW PALETTE — the physical cans. Referenced only by §2.
 * ========================================================================== */
:root {
  /* Safety Orange — the brand */
  --o-300: #FFA37D;
  --o-400: #FF7A47;
  --o-500: #FF5A1F;
  --o-600: #E84711;
  --o-700: #AE3208;

  /* Fluoro Pink — the second can */
  --p-300: #FF8FC4;
  --p-400: #FF5FAD;
  --p-500: #FF2D95;
  --p-600: #E5117C;
  --p-700: #A80B59;

  /* Ink that sits ON a bright fill */
  --ink-on-brand: #1A0600;
  --ink-on-pink: #2B0014;

  /* Neutral ground — deliberately hue-neutral */
  --n-0: #FFFFFF;
  --n-50: #F4F4F4;
  --n-100: #E8E8E8;
  --n-200: #DCDCDC;
  --n-300: #C4C4C4;
  --n-400: #A8A8A8;
  --n-500: #888888;
  --n-600: #656565;
  --n-700: #525252;
  --n-750: #313131;
  --n-800: #1F1F1F;
  --n-850: #161616;
  --n-900: #131313;
  --n-950: #0A0A0A;
  --n-1000: #050505;

  /* Status: emerald has exactly one job */
  --status-live: #10B981;
  --status-live-soft: #34D399;
  --status-live-dark: #047354;

  /* Warning — pure yellow, never amber beside an orange brand */
  --y-400: #FACC15;
  --y-500: #EAB308;
  --y-600: #CA8A04;
  --y-700: #915806;

  /* Danger */
  --r-400: #F87171;
  --r-500: #EF4444;
  --r-600: #DC2626;
  --r-700: #B91C1C;

  /* Discord's blurple: their identity, kept exact on the sign-in button */
  --discord: #5865F2;
  --discord-hover: #4752C4;
  /* Discord's client chrome, for the panel preview only (exempt like blurple) */
  --dc-bg: #313338;
  --dc-embed: #2B2D31;
  --dc-text: #DBDEE1;
  --dc-title: #F2F3F5;
  --dc-btn: #4E5058;
  --dc-success: #248046;
  --dc-danger: #DA373C;
  --dc-btn-ink: #FFFFFF;
}

/* ==========================================================================
 * §2  SEMANTIC TOKENS + THEMES
 * Order is load-bearing: bare :root is DARK (the primary experience and the
 * no-JS default); the media query applies light only while no explicit
 * choice is stored; [data-theme] is an explicit choice and wins both ways.
 * ========================================================================== */
:root {
  color-scheme: dark;

  --bg: var(--n-950);
  --bg-raised: var(--n-900);
  --bg-sunken: var(--n-1000);
  --bg-inset: var(--n-850);
  --bg-hover: var(--n-800);

  --ink: #EDEDED;
  --ink-muted: var(--n-400);
  --ink-faint: var(--n-500);
  --ink-invert: var(--n-950);

  --line: var(--n-800);
  --line-strong: var(--n-750);

  --brand: var(--o-500);
  --brand-hover: var(--o-400);
  --brand-ink: var(--ink-on-brand);
  --brand-text: var(--o-400);
  --brand-wash: rgba(255, 90, 31, 0.12);
  --brand-edge: rgba(255, 90, 31, 0.34);

  --pink: var(--p-500);
  --pink-ink: var(--ink-on-pink);
  --pink-text: var(--p-400);
  --pink-wash: rgba(255, 45, 149, 0.12);

  --live: var(--status-live-soft);
  --live-wash: rgba(16, 185, 129, 0.14);
  --live-edge: rgba(16, 185, 129, 0.32);

  --warn: var(--y-400);
  --warn-wash: rgba(250, 204, 21, 0.12);
  --warn-edge: rgba(250, 204, 21, 0.32);

  --danger: var(--r-600);
  --danger-text: var(--r-400);
  --danger-ink: #FFFFFF;
  --danger-wash: rgba(239, 68, 68, 0.12);
  --danger-edge: rgba(239, 68, 68, 0.36);

  --focus: var(--o-400);
  --selection: rgba(255, 90, 31, 0.28);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.55);
  --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, 0.9);

  --grain-opacity: 0.035;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: var(--n-50);
    --bg-raised: var(--n-0);
    --bg-sunken: var(--n-100);
    --bg-inset: #EFEFEF;
    --bg-hover: #E4E4E4;
    --ink: #111111;
    --ink-muted: var(--n-700);
    --ink-faint: var(--n-600);
    --ink-invert: var(--n-0);
    --line: var(--n-200);
    --line-strong: var(--n-300);
    --brand-hover: var(--o-600);
    --brand-text: var(--o-700);
    --brand-wash: rgba(255, 90, 31, 0.07);
    --brand-edge: rgba(194, 56, 11, 0.32);
    --pink-text: var(--p-700);
    --pink-wash: rgba(255, 45, 149, 0.09);
    --live: var(--status-live-dark);
    --live-wash: rgba(4, 120, 87, 0.1);
    --live-edge: rgba(4, 120, 87, 0.28);
    --warn: var(--y-700);
    --warn-wash: rgba(161, 98, 7, 0.1);
    --warn-edge: rgba(161, 98, 7, 0.3);
    --danger: var(--r-600);
    --danger-text: var(--r-700);
    --danger-wash: rgba(220, 38, 38, 0.08);
    --danger-edge: rgba(220, 38, 38, 0.3);
    --focus: var(--o-600);
    --selection: rgba(255, 90, 31, 0.24);
    --shadow-1: 0 1px 2px rgba(16, 16, 16, 0.08);
    --shadow-2: 0 10px 30px -14px rgba(16, 16, 16, 0.22);
    --shadow-3: 0 24px 60px -22px rgba(16, 16, 16, 0.28);
    --grain-opacity: 0.03;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: var(--n-50);
  --bg-raised: var(--n-0);
  --bg-sunken: var(--n-100);
  --bg-inset: #EFEFEF;
  --bg-hover: #E4E4E4;
  --ink: #111111;
  --ink-muted: var(--n-700);
  --ink-faint: var(--n-600);
  --ink-invert: var(--n-0);
  --line: var(--n-200);
  --line-strong: var(--n-300);
  --brand-hover: var(--o-600);
  --brand-text: var(--o-700);
  --brand-wash: rgba(255, 90, 31, 0.07);
  --brand-edge: rgba(194, 56, 11, 0.32);
  --pink-text: var(--p-700);
  --pink-wash: rgba(255, 45, 149, 0.09);
  --live: var(--status-live-dark);
  --live-wash: rgba(4, 120, 87, 0.1);
  --live-edge: rgba(4, 120, 87, 0.28);
  --warn: var(--y-700);
  --warn-wash: rgba(161, 98, 7, 0.1);
  --warn-edge: rgba(161, 98, 7, 0.3);
  --danger: var(--r-600);
  --danger-text: var(--r-700);
  --danger-wash: rgba(220, 38, 38, 0.08);
  --danger-edge: rgba(220, 38, 38, 0.3);
  --focus: var(--o-600);
  --selection: rgba(255, 90, 31, 0.24);
  --shadow-1: 0 1px 2px rgba(16, 16, 16, 0.08);
  --shadow-2: 0 10px 30px -14px rgba(16, 16, 16, 0.22);
  --shadow-3: 0 24px 60px -22px rgba(16, 16, 16, 0.28);
  --grain-opacity: 0.03;
}

/* ==========================================================================
 * §3  TYPE, SPACE, MOTION
 * ========================================================================== */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --font-display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5.2vw, 5.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --header-h: 64px;
  --sidebar-w: 264px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 120ms;
  --med: 220ms;
}

/* ==========================================================================
 * §4  BASE
 * ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--selection); }
img, svg, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--bg-inset); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.38em; overflow-wrap: anywhere; }
pre { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); overflow: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
main { flex: 1 0 auto; }

/* ==========================================================================
 * §5  UTILITIES
 * ========================================================================== */
/* [hidden] must beat any component rule that sets display. Deliberate. */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.mono { font-family: var(--font-mono); font-size: 0.88em; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-6); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--nowrap { flex-wrap: nowrap; }
.row--nowrap > :last-child { min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0.feature__icon, .feature__icon.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-section { margin-bottom: var(--space-5); }
.small { font-size: var(--text-sm); }
.panel.center .btn-row { justify-content: center; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
 * §6  LAYOUT
 * ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

/* Site header — shared by every surface so the halves feel like one product */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__glyph {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  color: var(--brand-ink); font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: var(--space-1); }
.site-nav a {
  color: var(--ink-muted); text-decoration: none; font-weight: 550; font-size: var(--text-sm);
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); transition: color var(--fast), background var(--fast);
}
.site-nav a:hover { color: var(--ink); background: var(--bg-hover); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
/* .btn sets display, so these need the extra specificity to stay hidden on desktop */
.btn.nav-toggle { display: none; }

/* Account menu (a disclosure, not an ARIA menu: it holds links and a form) */
.account { position: relative; }
.account__trigger {
  display: flex; align-items: center; gap: var(--space-2); background: none; border: 1px solid transparent;
  border-radius: var(--radius-pill); padding: 3px 10px 3px 3px; color: var(--ink);
}
.account__trigger:hover, .account__trigger[aria-expanded="true"] { background: var(--bg-hover); border-color: var(--line); }
.account__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-inset); }
.account__name { font-size: var(--text-sm); font-weight: 600; max-width: 14ch; }
.account__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 50;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-3); padding: var(--space-2);
}
.account__head { padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-2); }
.account__panel a, .account__panel button.account__item {
  display: flex; width: 100%; align-items: center; gap: var(--space-2); text-align: left;
  padding: 0.5rem var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
  background: none; border: 0; font-size: var(--text-sm);
}
.account__panel a:hover, .account__panel button.account__item:hover { background: var(--bg-hover); }
.account__panel svg { width: 16px; height: 16px; color: var(--ink-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--space-8); padding: var(--space-7) 0 var(--space-6); color: var(--ink-muted); font-size: var(--text-sm); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-6); }
.site-footer h2 { font-family: var(--font-display); font-size: var(--text-sm); color: var(--ink); margin: 0 0 var(--space-3); letter-spacing: 0.02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__base { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: var(--space-6); padding-top: var(--space-5); }

/* App shell: sidebar + content for a server's pages */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); align-content: start; gap: 0; flex: 1 0 auto; width: 100%; max-width: 1400px; margin-inline: auto; }
.app--single { display: block; }
.sidebar {
  position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto;
  border-right: 1px solid var(--line); padding: var(--space-5) var(--space-4) var(--space-6);
}
.sidebar__guild { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); margin-bottom: var(--space-4); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.sidebar__guild:hover { background: var(--bg-hover); }
.sidebar__guild strong { display: block; font-size: var(--text-sm); line-height: 1.3; }
.sidebar__group { margin-top: var(--space-5); }
.sidebar__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint); padding: 0 var(--space-2); margin: 0 0 var(--space-2); }
.sidebar a.sidebar__link {
  display: flex; align-items: center; gap: var(--space-3); padding: 0.45rem var(--space-2); border-radius: var(--radius-sm);
  color: var(--ink-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 550; position: relative;
}
.sidebar a.sidebar__link svg { width: 17px; height: 17px; }
.sidebar a.sidebar__link:hover { background: var(--bg-hover); color: var(--ink); }
.sidebar a.sidebar__link[aria-current="page"] { background: var(--brand-wash); color: var(--ink); }
.sidebar a.sidebar__link[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.sidebar a.sidebar__link[aria-current="page"] svg { color: var(--brand-text); }
.content { padding: var(--space-6) var(--gutter) var(--space-8); min-width: 0; }
.content--narrow { max-width: 920px; }
/* The title block takes the room; actions keep their place at the right however long
 * the description is (they wrap under it only on a phone). */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.page-head > :first-child { flex: 1 1 auto; min-width: 0; }
.page-head > :not(:first-child) { flex-shrink: 0; }
.page-head h1 { margin: 0; }
.page-head p { margin: var(--space-2) 0 0; color: var(--ink-muted); max-width: 64ch; }
.breadcrumbs { display: flex; gap: var(--space-2); font-size: var(--text-sm); color: var(--ink-faint); margin-bottom: var(--space-3); flex-wrap: wrap; }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ==========================================================================
 * §7  TYPOGRAPHY
 * ========================================================================== */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--space-3); font-weight: 800; }
h1 { font-size: var(--text-2xl); font-weight: 900; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
p { margin: 0 0 var(--space-4); }
.lede { font-size: var(--text-md); color: var(--ink-muted); max-width: 62ch; }
.display { font-size: var(--text-hero); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95; font-stretch: 112%; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: var(--space-3); display: inline-block; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-7); padding-top: var(--space-2); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--space-4); }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--brand-text); }
.prose table { margin: var(--space-4) 0 var(--space-5); font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink-muted); font-weight: 650; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.prose blockquote { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--brand); background: var(--bg-raised); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-muted); }
.prose kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.35em; background: var(--bg-raised); }

/* ==========================================================================
 * §8  TREATMENTS — hue- and shape-independent, so they survive a rebrand
 * ========================================================================== */
/* A sticker slapped on a wall, not a favicon */
.slap { transform: rotate(-4deg); }
.slap-hover { transition: transform var(--med) var(--ease); }
a:hover .slap-hover, .slap-hover:hover { transform: rotate(3deg) scale(1.04); }
/* The orange→pink fade: a blend between two adjacent cans. The one earned gradient. */
.mark-fill { background: linear-gradient(135deg, var(--o-400) 0%, var(--o-500) 38%, var(--p-500) 100%); color: var(--brand-ink); }
.mark-text { background: linear-gradient(100deg, var(--o-400), var(--o-500) 40%, var(--p-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* A marker swipe behind a word — the headline treatment, instead of gradient text everywhere */
.swipe { position: relative; white-space: nowrap; z-index: 0; color: var(--brand-ink); padding: 0 0.12em; }
.swipe::before {
  content: ""; position: absolute; z-index: -1; inset: 0.08em -0.08em 0.02em -0.1em;
  background: var(--brand); border-radius: 0.18em 0.3em 0.22em 0.35em / 0.4em 0.25em 0.4em 0.3em; transform: rotate(-1.6deg) skewX(-4deg);
}
.underline-mark { text-decoration: none; background: linear-gradient(transparent 62%, var(--brand-wash) 62%, var(--brand-wash) 92%, transparent 92%); padding: 0 0.06em; }
.sticker {
  display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--brand); color: var(--brand-ink); padding: 0.32em 0.75em; border-radius: 4px; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--pink);
}
.rule-mark { height: 4px; width: 64px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--pink)); border: 0; margin: var(--space-4) 0; }
/* Paper tooth. ~400 bytes, no request. */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
 * §9  COMPONENTS
 * ========================================================================== */
/* -- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--bg-raised); --btn-ink: var(--ink); --btn-edge: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 40px; padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--btn-edge); background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 650; font-size: var(--text-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background var(--fast), border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: var(--bg-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--brand); --btn-ink: var(--brand-ink); --btn-edge: var(--brand); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset; }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--ghost { --btn-bg: transparent; --btn-edge: transparent; color: var(--ink-muted); }
.btn--ghost:hover { color: var(--ink); }
.btn--danger { --btn-bg: var(--danger); --btn-ink: var(--danger-ink); --btn-edge: var(--danger); }
.btn--danger:hover { background: var(--r-700); border-color: var(--r-700); }
.btn--danger-quiet { --btn-bg: transparent; --btn-ink: var(--danger-text); --btn-edge: var(--danger-edge); }
.btn--danger-quiet:hover { background: var(--danger-wash); }
.btn--discord { --btn-bg: var(--discord); --btn-ink: var(--dc-btn-ink); --btn-edge: var(--discord); }
.btn--discord:hover { background: var(--discord-hover); border-color: var(--discord-hover); }
.btn--lg { min-height: 50px; padding: 0.75rem 1.4rem; font-size: var(--text-base); border-radius: var(--radius); }
.btn--sm { min-height: 32px; padding: 0.3rem 0.7rem; font-size: var(--text-xs); }
.btn--icon { padding: 0; width: 40px; }
.btn--block { width: 100%; }
.btn--icon.btn--sm { width: 32px; }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* -- Badges, pills, status ------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.18em 0.55em; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--ink-muted); background: var(--bg-inset); white-space: nowrap; line-height: 1.5;
}
.badge svg { width: 12px; height: 12px; }
.badge--brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.badge--live { color: var(--live); border-color: var(--live-edge); background: var(--live-wash); }
.badge--warn { color: var(--warn); border-color: var(--warn-edge); background: var(--warn-wash); }
.badge--danger { color: var(--danger-text); border-color: var(--danger-edge); background: var(--danger-wash); }
.badge--outline { background: transparent; }

.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); flex-shrink: 0; vertical-align: middle; }
.status-dot--live { background: var(--live); box-shadow: 0 0 0 3px var(--live-wash); }
.status-dot--warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-wash); }
.status-dot--danger { background: var(--danger-text); box-shadow: 0 0 0 3px var(--danger-wash); }
.status-dot--off { background: transparent; border: 2px solid var(--ink-faint); }
.status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; }

/* -- Cards ---------------------------------------------------------------- */
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.card--flush { padding: 0; overflow: hidden; }
.card--inset { background: var(--bg-inset); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card__head h2, .card__head h3 { margin: 0; font-size: var(--text-md); }
.card__head p { margin: var(--space-1) 0 0; color: var(--ink-muted); font-size: var(--text-sm); }
.card__foot { border-top: 1px solid var(--line); margin: var(--space-5) calc(-1 * var(--space-5)) calc(-1 * var(--space-5)); padding: var(--space-4) var(--space-5); background: var(--bg-inset); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.card-grid--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Entity: a server or a bot, with an avatar and the one fact it exists to carry */
.entity { display: flex; flex-direction: column; gap: var(--space-4); position: relative; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); transition: border-color var(--fast), transform var(--fast); }
.entity:hover { border-color: var(--line-strong); }
.entity__head { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.entity__name { font-weight: 700; font-size: var(--text-base); line-height: 1.3; }
.entity__meta { font-size: var(--text-sm); color: var(--ink-muted); }
.entity__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: auto; flex-wrap: wrap; }
.entity__foot > .btn, .entity__foot > form { margin-left: auto; }
.entity--muted { background: transparent; border-style: dashed; }
/* Premium is an accent on the card itself: tinted edge plus the fade down the left. Brand, never --live. */
.entity--premium { border-color: var(--brand-edge); background: linear-gradient(180deg, var(--brand-wash), transparent 45%), var(--bg-raised); }
.entity--premium::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--o-400), var(--o-500) 40%, var(--p-500)); }

.avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-inset); border: 1px solid var(--line); object-fit: cover; flex-shrink: 0; display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--ink-muted); font-size: 1.1rem; overflow: hidden; }
.avatar--sm { width: 32px; height: 32px; border-radius: 9px; font-size: 0.9rem; }
.avatar--xs { width: 24px; height: 24px; border-radius: 50%; font-size: 0.7rem; }
.avatar--lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.5rem; }
.avatar--round { border-radius: 50%; }
.avatar.mark-fill { background: linear-gradient(135deg, var(--o-400) 0%, var(--o-500) 38%, var(--p-500) 100%); color: var(--brand-ink); border-color: transparent; }

/* -- Stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.stat { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.stat__value { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--text-sm); color: var(--ink-muted); margin-top: var(--space-1); }

/* -- Alerts / callouts ---------------------------------------------------- */
.callout { display: flex; gap: var(--space-3); align-items: flex-start; border: 1px solid var(--line-strong); background: var(--bg-raised); border-radius: var(--radius); padding: var(--space-4); font-size: var(--text-sm); }
.callout > svg { width: 20px; height: 20px; margin-top: 1px; color: var(--ink-muted); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout--brand { border-color: var(--brand-edge); background: var(--brand-wash); }
.callout--brand > svg { color: var(--brand-text); }
.callout--live { border-color: var(--live-edge); background: var(--live-wash); }
.callout--live > svg { color: var(--live); }
.callout--warn { border-color: var(--warn-edge); background: var(--warn-wash); }
.callout--warn > svg { color: var(--warn); }
.callout--danger { border-color: var(--danger-edge); background: var(--danger-wash); }
.callout--danger > svg { color: var(--danger-text); }

/* -- Toasts (flash messages) ---------------------------------------------- */
.toasts { position: fixed; z-index: 90; right: var(--space-4); top: calc(var(--header-h) + var(--space-3)); display: flex; flex-direction: column; gap: var(--space-2); max-width: min(420px, calc(100vw - 2rem)); }
.toast {
  display: flex; gap: var(--space-3); align-items: flex-start; background: var(--bg-raised); border: 1px solid var(--line-strong); border-left: 4px solid var(--live);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-3); font-size: var(--text-sm); animation: toast-in var(--med) var(--ease);
}
.toast--error { border-left-color: var(--danger-text); }
.toast__close { margin-left: auto; background: none; border: 0; color: var(--ink-muted); padding: 0 0.25rem; font-size: 1.2rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* -- Forms ---------------------------------------------------------------- */
.form-section { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); }
.form-section + .form-section { margin-top: var(--space-4); }
.form-section__head { margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.form-section__head h2 { font-size: var(--text-md); margin: 0; }
.form-section__head p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--ink-muted); }
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-2) var(--space-6); align-items: start; padding: var(--space-4) 0; }
.field + .field { border-top: 1px solid var(--line); }
.field--stacked { grid-template-columns: 1fr; }
.field__label { font-weight: 650; font-size: var(--text-sm); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.field__help { font-size: var(--text-sm); color: var(--ink-muted); margin: var(--space-1) 0 0; }
.field__error { color: var(--danger-text); font-size: var(--text-sm); font-weight: 600; margin: var(--space-2) 0 0; display: flex; gap: var(--space-2); align-items: center; }
.field__error svg { width: 15px; height: 15px; }
.field--invalid .input, .field--invalid .select, .field--invalid .picker { border-color: var(--danger-text); }
.field__control { min-width: 0; }
.field--locked .field__control { opacity: 0.6; }
.unit { display: flex; align-items: center; gap: var(--space-2); }
.unit span { color: var(--ink-muted); font-size: var(--text-sm); white-space: nowrap; }

.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 0.5rem 0.75rem; background: var(--bg-sunken); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); font-size: var(--text-sm); transition: border-color var(--fast), box-shadow var(--fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--brand-wash); }
.input[disabled], .select[disabled], .textarea[disabled] { cursor: not-allowed; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.select[multiple] { background-image: none; padding-right: 0.75rem; min-height: 140px; }
.input--color { padding: 4px; width: 56px; height: 40px; }
.input--short { max-width: 140px; }
label.check { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); cursor: pointer; }

/* Toggle switch: a real checkbox, styled. Without CSS it is still a checkbox. */
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: var(--text-sm); font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch__track { width: 44px; height: 26px; border-radius: 999px; background: var(--bg-hover); border: 1px solid var(--line-strong); position: relative; transition: background var(--fast), border-color var(--fast); flex-shrink: 0; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-muted); transition: transform var(--med) var(--ease), background var(--fast); }
.switch input:checked + .switch__track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--brand-ink); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + .switch__track { opacity: 0.5; }

/* Picker: the enhanced multi/single select for channels, roles and members */
.picker { position: relative; border: 1px solid var(--line-strong); background: var(--bg-sunken); border-radius: var(--radius-sm); min-height: 40px; padding: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; cursor: text; }
.picker:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--brand-wash); }
.picker__chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-hover); border: 1px solid var(--line-strong); border-radius: 5px; padding: 2px 4px 2px 8px; font-size: var(--text-xs); font-weight: 600; max-width: 100%; }
.picker__chip--missing { border-style: dashed; color: var(--danger-text); }
.picker__chip button { background: none; border: 0; color: var(--ink-muted); padding: 0 3px; line-height: 1; font-size: 1rem; border-radius: 3px; }
.picker__chip button:hover { color: var(--ink); background: var(--bg-inset); }
.picker__swatch { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--ink-faint); }
.picker__input { flex: 1 1 120px; min-width: 80px; border: 0; background: transparent; padding: 4px 6px; font-size: var(--text-sm); outline: none; }
.picker__list { position: absolute; left: -1px; right: -1px; top: calc(100% + 4px); z-index: 30; max-height: 280px; overflow-y: auto; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-3); padding: 4px; margin: 0; list-style: none; }
.picker__group { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); padding: 8px 8px 4px; }
.picker__option { padding: 6px 8px; border-radius: 5px; font-size: var(--text-sm); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.picker__option[aria-selected="true"] { color: var(--brand-text); font-weight: 600; }
.picker__option.is-active { background: var(--bg-hover); }
.picker__empty { padding: 8px; font-size: var(--text-sm); color: var(--ink-faint); }

.lock-note { display: inline-flex; gap: 0.35em; align-items: center; font-size: var(--text-xs); color: var(--brand-text); font-weight: 650; }
.lock-note svg { width: 13px; height: 13px; }

/* Sticky save bar for long forms */
.save-bar { position: sticky; bottom: 0; z-index: 20; margin-top: var(--space-5); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: var(--space-3) 0; display: flex; align-items: center; gap: var(--space-3); justify-content: flex-end; }
.save-bar__note { margin-right: auto; font-size: var(--text-sm); color: var(--ink-muted); }
.save-bar__note:empty { display: none; }

/* Fields that read as one line ("Block · Action · Timeout length") share a row. */
.field-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; }
.field + .field-row, .field-row + .field, .field-row + .field-row { border-top: 1px solid var(--line); }
/* A section that is one row of controls reads as one line: its title on the left. */
.form-section--line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: center; gap: var(--space-2) var(--space-6); padding-block: var(--space-4); }
.form-section--line .form-section__head { margin: 0; padding: 0; border: 0; }
.form-section--line .field-row { padding: 0; flex-wrap: nowrap; }
.form-section--line .field-row .select { min-width: 0; width: 12rem; }
.form-section + .form-section--line, .form-section--line + .form-section { margin-top: var(--space-3); }
.field-row > .field { display: flex; flex-direction: column; gap: var(--space-2); padding: 0; border: 0; min-width: 0; }
.field-row > .field[hidden] { display: none; }
.field-row .select { min-width: 12rem; }
.select--short { max-width: 12rem; }

/* Placeholder buttons under a text box */
.tokens { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: var(--space-2) 0 0; }
.tokens__label { font-size: var(--text-xs); color: var(--ink-faint); font-weight: 650; }
.token { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink); background: var(--bg-inset); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 2px 8px; cursor: pointer; }
.token:hover { background: var(--bg-hover); }
.token:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Docs search: the box tops the docs sidebar; results open on their section */
.docs__search { margin-bottom: var(--space-4); }
.docs__search .input { width: 100%; }
.search-results { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.prose .search-results { padding: 0; }
.prose .search-results li { margin: 0; padding: 0; }
.prose .search-results li::marker { content: none; }
.search-results a { display: grid; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); color: var(--ink); text-decoration: none; }
.search-results a:hover { border-color: var(--line-strong); background: var(--bg-hover); }
.search-results a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-results__where { font-weight: 700; color: var(--brand-text); }
.search-results__snippet { font-size: var(--text-sm); color: var(--ink-muted); }
.search-results mark { background: var(--brand-wash); color: var(--ink); border-radius: 2px; padding: 0 1px; }
/* A slider with its two ends named and its value read out */
.range { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "track track track" "low value high"; align-items: center; gap: var(--space-1) var(--space-3); }
.range > :nth-child(1) { grid-area: low; }
.range > :nth-child(2) { grid-area: track; }
.range > :nth-child(3) { grid-area: high; }
.range > :nth-child(4) { grid-area: value; }
.range__end { font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; }
.range__input { width: 100%; accent-color: var(--brand); cursor: pointer; }
.range__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.range__value { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.colour-swatch { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-inset); cursor: pointer; }
.input--file::file-selector-button { font: inherit; font-weight: 650; font-size: var(--text-sm); color: var(--ink); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.35rem 0.8rem; margin-right: var(--space-3); cursor: pointer; }
.btn.btn--start { justify-self: start; align-self: flex-start; }

/* The first steps on a new server's overview */
.checklist__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checklist__steps li { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.checklist__steps li.is-done { color: var(--ink-muted); font-weight: 500; text-decoration: line-through; }
.checklist__mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; }
.is-done .checklist__mark { background: var(--live); border-color: var(--live); color: var(--bg); }
.checklist__mark svg { width: 13px; height: 13px; }
.status--warn { color: var(--warn); }
.sidebar a.sidebar__link .status { gap: 0; }
.save-bar.is-dirty .save-bar__note { color: var(--warn); font-weight: 600; }

/* -- Tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); }
.table { font-size: var(--text-sm); }
.table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-inset); white-space: nowrap; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--bg-hover) 45%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--compact td, .table--compact th { padding: 0.5rem 0.75rem; }

/* -- Tabs ----------------------------------------------------------------- */
.tabs { display: flex; gap: var(--space-1); box-shadow: inset 0 -1px 0 var(--line); margin-bottom: var(--space-5); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 0.6rem 0.9rem; color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: var(--text-sm); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* -- Filters bar ----------------------------------------------------------- */
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--space-4); }
.filters .input, .filters .select { width: auto; min-width: 160px; }
.filters label { display: grid; gap: 4px; font-size: var(--text-xs); color: var(--ink-muted); font-weight: 600; }

/* -- Pagination ------------------------------------------------------------ */
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); font-size: var(--text-sm); color: var(--ink-muted); }

/* -- Empty states ---------------------------------------------------------- */
.empty { text-align: center; padding: var(--space-7) var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-muted); }
.empty h2, .empty h3 { color: var(--ink); font-size: var(--text-md); }
.empty p { max-width: 46ch; margin-inline: auto; }

/* -- Dialog ---------------------------------------------------------------- */
dialog.dialog { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-raised); color: var(--ink); padding: var(--space-5); width: min(460px, calc(100vw - 2rem)); box-shadow: var(--shadow-3); }
dialog.dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
dialog.dialog h2 { font-size: var(--text-md); }

/* -- Disclosure ------------------------------------------------------------ */
details.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
details.disclosure + details.disclosure { margin-top: var(--space-2); }
details.disclosure > summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 650; list-style: none; display: flex; align-items: center; gap: var(--space-3); }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); transition: transform var(--fast); }
details.disclosure[open] > summary::after { transform: rotate(225deg); }
details.disclosure > summary.danger-summary { color: var(--danger-text); }
details.disclosure > .disclosure__body { padding: 0 var(--space-4) var(--space-4); }

/* -- Meter (leaderboard bars, usage) ---------------------------------------- */
/* A <progress>: inline style attributes are blocked by the CSP, so bars are native elements. */
progress.meter { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 6px; background: var(--bg-hover); overflow: hidden; color: var(--brand); }
progress.meter::-webkit-progress-bar { background: var(--bg-hover); border-radius: 6px; }
progress.meter::-webkit-progress-value { background: var(--brand); border-radius: 6px; }
progress.meter::-moz-progress-bar { background: var(--brand); border-radius: 6px; }
progress.meter--pink::-webkit-progress-value { background: linear-gradient(90deg, var(--o-500), var(--p-500)); }
progress.meter--pink::-moz-progress-bar { background: linear-gradient(90deg, var(--o-500), var(--p-500)); }

/* -- Key/value list ----------------------------------------------------------- */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-5); font-size: var(--text-sm); margin: 0; }
.kv dt { color: var(--ink-muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* -- Timeline (audit history) ----------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 var(--space-4) var(--space-6); font-size: var(--text-sm); }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.timeline time { color: var(--ink-faint); font-size: var(--text-xs); display: block; }

/* -- Diff (before → after) ------------------------------------------------------ */
.diff { display: grid; gap: 2px; font-size: var(--text-xs); margin-top: var(--space-2); }
.diff div { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: var(--space-3); }
.diff dt { color: var(--ink-muted); font-family: var(--font-mono); }
.diff dd { margin: 0; font-family: var(--font-mono); overflow-wrap: anywhere; }
.diff del { color: var(--danger-text); text-decoration-thickness: 1px; }
.diff ins { color: var(--live); text-decoration: none; }

/* ==========================================================================
 * §10  PAGES
 * ========================================================================== */
/* -- Landing ------------------------------------------------------------------ */
.hero { padding-block: var(--space-9) var(--space-8); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.hero h1 { margin: var(--space-4) 0 var(--space-5); }
.hero .lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); }
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.hero__wall { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 85% 20%, var(--brand-wash), transparent 40%),
  repeating-linear-gradient(0deg, transparent 0 46px, color-mix(in srgb, var(--line) 55%, transparent) 46px 47px),
  repeating-linear-gradient(90deg, transparent 0 94px, color-mix(in srgb, var(--line) 35%, transparent) 94px 95px); }
/* The fade into the page is a painted layer, not a mask: a mask (like a blend mode) forces an
 * offscreen surface the blurred sticky header recomposites on every scroll frame. */
.hero__wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg) 95%); }

/* A mock mod-log card: shows what Graffiti does instead of saying it */
.log-mock { background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: var(--space-4); transform: rotate(1.2deg); font-size: var(--text-sm); }
.log-mock__row { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); padding: var(--space-3) 0; }
.log-mock__row + .log-mock__row { border-top: 1px solid var(--line); }
.log-mock__embed { border-left: 4px solid var(--brand); background: var(--bg-inset); border-radius: 0 6px 6px 0; padding: var(--space-3); margin-top: var(--space-2); }
.log-mock__embed--danger { border-left-color: var(--danger); }
.log-mock__embed--warn { border-left-color: var(--warn); }
.log-mock__embed--live { border-left-color: var(--live); }
.log-mock__time { color: var(--ink-faint); font-size: var(--text-xs); }

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section__head { max-width: 680px; margin-bottom: var(--space-6); }
.section__head--center { margin-inline: auto; text-align: center; }

.ticker { border-block: 1px solid var(--line); background: var(--bg-raised); }
.ticker .stats { padding: var(--space-5) 0; }
.ticker .stat { background: transparent; border: 0; padding: 0 var(--space-3); }

.feature { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); position: relative; }
.feature__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand-text); border: 1px solid var(--brand-edge); margin-bottom: var(--space-4); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.feature p { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; }
.feature ul { margin: var(--space-3) 0 0; padding-left: 1.1rem; font-size: var(--text-sm); color: var(--ink-muted); }

a.entity { color: var(--ink); text-decoration: none; }
a.entity:hover { border-color: var(--brand-edge); }
.split[data-align-start] { align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: var(--brand-ink); transform: rotate(-4deg); }
.steps h3 { font-size: var(--text-base); margin: 0.4rem 0 var(--space-1); }
.steps p { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); }

.cta-band { border: 1px solid var(--brand-edge); border-radius: var(--radius-lg); padding: var(--space-7); background: linear-gradient(120deg, var(--brand-wash), transparent 60%), var(--bg-raised); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

/* -- Docs ------------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-7); padding-top: var(--space-6); }
.docs > * { min-width: 0; }
.docs__nav { position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; font-size: var(--text-sm); }
.docs__nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs__nav a { display: block; padding: 0.4rem var(--space-4); color: var(--ink-muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.docs__nav a:hover { color: var(--ink); }
.docs__nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--brand); font-weight: 650; }
.docs__pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); }
.docs__pager a { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); text-decoration: none; color: var(--ink); background: var(--bg-raised); }
.docs__pager a:hover { border-color: var(--brand-edge); }
.docs__pager small { display: block; color: var(--ink-faint); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.docs__pager .next { text-align: right; grid-column: 2; }
.doc-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.doc-index a { display: block; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); color: var(--ink); text-decoration: none; }
.doc-index a:hover { border-color: var(--brand-edge); }
.doc-index h2 { font-size: var(--text-md); margin-top: 0; padding-top: 0; }
.doc-index p { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; }

/* -- Leaderboard ------------------------------------------------------------- */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.board li { display: grid; grid-template-columns: 48px 40px minmax(0, 1fr) minmax(110px, 0.6fr) minmax(110px, 0.6fr); align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.board__rank { font-family: var(--font-display); font-weight: 900; font-size: var(--text-md); color: var(--ink-faint); text-align: center; font-variant-numeric: tabular-nums; }
.board li:nth-child(-n+3) .board__rank { color: var(--brand-ink); background: var(--brand); border-radius: 10px; transform: rotate(-4deg); padding: 4px 0; }
.board__metric { font-size: var(--text-sm); display: grid; gap: 4px; }
.board__metric b { font-variant-numeric: tabular-nums; }

/* -- Custom bot -------------------------------------------------------------- */
.bot-state { display: flex; gap: var(--space-4); align-items: flex-start; }
.bot-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); background: var(--bg-inset); }
.fact__label { font-size: var(--text-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.fact__value { margin-top: var(--space-1); font-weight: 650; display: flex; align-items: center; gap: var(--space-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin 0.8s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.log-view { max-height: 420px; font-size: var(--text-xs); white-space: pre-wrap; }

/* -- Images ------------------------------------------------------------------- */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-3); }
.thumb { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); color: var(--ink); text-decoration: none; }
.thumb:hover { border-color: var(--line-strong); }
.thumb__img { aspect-ratio: 4 / 3; background: var(--bg-sunken) repeating-conic-gradient(var(--bg-inset) 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.thumb__img img { width: 100%; height: 100%; object-fit: contain; }
.thumb__img--blur img { filter: blur(14px) saturate(0.6); transform: scale(1.1); transition: filter var(--med); }
.thumb:hover .thumb__img--blur img, .thumb:focus-visible .thumb__img--blur img { filter: none; transform: none; }
.thumb__body { padding: var(--space-3); font-size: var(--text-sm); display: grid; gap: 4px; }
.thumb__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-sunken) repeating-conic-gradient(var(--bg-inset) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.sample img { max-height: 420px; margin-inline: auto; }

/* -- Ticket editor ------------------------------------------------------------ */
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.order-list li { display: flex; align-items: center; gap: var(--space-2); padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-inset); font-size: var(--text-sm); }
.order-list li .grow { font-weight: 600; }
.messages-list { display: grid; gap: var(--space-2); }
.discord-preview { background: var(--dc-bg); color: var(--dc-text); border-radius: var(--radius); padding: var(--space-4); font-family: "gg sans", var(--font-body); font-size: 0.9rem; }
.discord-preview__embed { border-left: 4px solid var(--brand); background: var(--dc-embed); border-radius: 4px; padding: 10px 14px; }
.discord-preview__title { font-weight: 700; color: var(--dc-title); margin-bottom: 4px; }
.discord-preview__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-preview__embed--rich { display: flex; gap: var(--space-3); align-items: flex-start; max-width: 520px; }
.discord-preview__body { flex: 1 1 auto; min-width: 0; }
.discord-preview__thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--dc-btn); color: var(--dc-title); font-weight: 700; flex-shrink: 0; }
.discord-preview__field { display: grid; margin-top: 8px; font-size: 0.85rem; }
.discord-preview__field strong { color: var(--dc-title); }
.discord-preview__banner { margin-top: 10px; height: 88px; border-radius: 4px; display: grid; place-items: center; background: var(--dc-btn); font-size: 0.8rem; }
.discord-preview__footer { display: flex; gap: 6px; margin-top: 8px; font-size: 0.75rem; color: color-mix(in srgb, var(--dc-text) 70%, transparent); }
.discord-preview__footer span:not([hidden]) ~ span:not([hidden])::before { content: "• "; }
.discord-preview__footer:not(:has(span:not([hidden]))) { display: none; }
.discord-preview__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.discord-preview__btn { border-radius: 4px; padding: 5px 14px; font-size: 0.85rem; font-weight: 500; color: var(--dc-btn-ink); background: var(--dc-btn); }
.discord-preview__btn--primary { background: var(--discord); }
.discord-preview__btn--success { background: var(--dc-success); }
.discord-preview__btn--danger { background: var(--dc-danger); }

/* -- Auth / errors ---------------------------------------------------------- */
.centered { display: grid; place-items: center; padding: var(--space-8) var(--gutter); flex: 1 0 auto; }
.panel { width: min(480px, 100%); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-2); }
.panel h1 { font-size: var(--text-xl); }
.error-code { font-family: var(--font-display); font-weight: 900; font-size: 5rem; line-height: 1; letter-spacing: -0.05em; }

/* -- Developer console -------------------------------------------------------- */
.dev-banner { background: repeating-linear-gradient(-45deg, var(--warn-wash) 0 12px, transparent 12px 24px); border-bottom: 1px solid var(--warn-edge); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); text-align: center; padding: 4px; }
.bot-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; }
.metric-table td.num { font-family: var(--font-mono); font-size: var(--text-xs); }

.btn.sidebar__toggle { display: none; }
.sidebar__toggle svg { transition: transform var(--fast); }
.sidebar__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ==========================================================================
 * §11  RESPONSIVE
 * ========================================================================== */
@media (max-width: 1080px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .log-mock { transform: none; max-width: 560px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
/* The header's full width (brand, five links, support, theme, account) needs about
 * 1000px: the name goes first, then the links fold into the menu with the sidebar. */
@media (max-width: 1100px) {
  .account__name { display: none; }
}
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: var(--space-3) var(--gutter); box-shadow: var(--shadow-2); }
  .site-nav.is-open { display: flex; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
  .btn.nav-toggle { display: inline-flex; }
  .app { grid-template-columns: 1fr; }
  .form-section--line { grid-template-columns: 1fr; }
  .form-section--line .field-row { flex-wrap: wrap; }
  .field-row .select, .form-section--line .field-row .select { width: auto; min-width: 0; max-width: 100%; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: var(--space-3) var(--gutter); }
  .sidebar__groups { display: none; }
  .sidebar.is-open .sidebar__groups { display: block; }
  .btn.sidebar__toggle { display: inline-flex; }
  .docs { grid-template-columns: 1fr; gap: var(--space-4); }
  .docs__nav { position: static; }
  .docs__nav ol { display: flex; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--line); }
  .docs__nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; }
  .docs__nav a[aria-current="page"] { border-bottom-color: var(--brand); }
  .field { grid-template-columns: 1fr; gap: var(--space-2); }
  /* Name on the first line, both counts side by side on the second. */
  .board li { grid-template-columns: 40px 36px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "rank avatar name name" "rank avatar messages voice"; gap: var(--space-1) var(--space-3); padding-block: var(--space-2); }
  .board__rank { grid-area: rank; }
  .board li > img { grid-area: avatar; }
  .board li > strong { grid-area: name; }
  .board__metric--messages { grid-area: messages; }
  .board__metric--voice { grid-area: voice; }
  .bot-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .card-grid--pairs { grid-template-columns: 1fr; }
  .page-head { flex-wrap: wrap; }
  .header-cta { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding-block: var(--space-7) var(--space-6); }
  .section { padding-block: var(--space-7); }
  .cta-band { padding: var(--space-5); }
  .docs__pager { grid-template-columns: 1fr; }
  .docs__pager .next { grid-column: 1; }
  .filters .input, .filters .select { min-width: 0; width: 100%; }
  .filters label { flex: 1 1 140px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: var(--space-2); }
  .table-wrap--stack .table thead { display: none; }
  .table-wrap--stack .table tr { display: block; border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
  .table-wrap--stack .table td { display: block; border: 0; padding: 0.25rem 1rem; }
  .table-wrap--stack .table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.68rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
}

/* ==========================================================================
 * §12  REDUCED MOTION — the one place all motion is switched off
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .slap-hover:hover, a:hover .slap-hover { transform: rotate(-4deg); }
}
