/* Solidbooru base site: the board's own design language (its tokens, its navigation bar, its 3 px corners; the accent is neutral, because this page is shared by the board (red) and the listening rooms (green)), so the page you arrive on and the board you sign in to are one product.
   Values are the board's (frontend designSystem.scss and board.scss); plain system sans, no web fonts. */
:root {
  color-scheme: dark;
  --color-canvas: #161618;
  --color-nav: #101112;
  --color-side: #1b1c1e;
  --color-surface-1: #212121;
  --color-surface-2: #2a2e31;
  --color-surface-3: #30353a;
  --color-field: #242526;
  --color-text-strong: #f2f5f4;
  --color-text: #c7c9cb;
  --color-text-muted: #a5a7aa;
  --color-border-subtle: #303234;
  --color-border: #676d72;
  --color-accent: #e8ebea;
  --color-accent-hover: #ffffff;
  --color-accent-text: #f2f5f4;
  --color-accent-soft: #2a2c2e;
  --color-on-accent: #161618;
  --color-success: #62ba84; --color-success-soft: #1c3028;
  --color-warning: #e2af50; --color-warning-soft: #302a1b;
  --color-danger: #e35a5a; --color-danger-soft: #3a2024;
  --color-focus: color-mix(in srgb, var(--color-accent) 70%, white);
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-s: 3px;
  --radius-m: 8px;
  --radius-l: 16px;
  --control-height: 44px;
  --width-site: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--color-canvas); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; min-height: 100vh; font: 400 16px/1.65 var(--font-body); color: var(--color-text); background: var(--color-canvas); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-s); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 40; padding: 12px 16px; border-radius: var(--radius-s); background: var(--color-accent); color: var(--color-on-accent); font-weight: 650; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--width-site) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* the board's navigation bar */
.site-nav { position: relative; z-index: 10; background: var(--color-nav); border-bottom: 1px solid var(--color-border-subtle); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; color: var(--color-text-strong); }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 9px; border-radius: var(--radius-s); background: var(--color-accent); color: #111; font-size: 23px; font-weight: 800; line-height: 1; }
.brand-name { font-size: 1.12rem; font-weight: 650; letter-spacing: -.04em; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; }
.nav-link { display: inline-flex; align-items: center; min-height: var(--control-height); padding: 0 12px; border-radius: var(--radius-s); color: var(--color-text-strong); transition: background .11s; }
.nav-link:hover { background: var(--color-surface-2); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 0 18px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-s); background: transparent; color: var(--color-text-strong); font: 600 14px/1 var(--font-body); cursor: pointer; transition: background .11s, border-color .11s; }
.btn:hover { background: var(--color-surface-2); border-color: var(--color-border); }
.btn:disabled { cursor: wait; opacity: .55; }
.btn-primary, .primary { border-color: transparent; background: var(--color-accent); color: var(--color-on-accent); font-weight: 650; }
.btn-primary:hover, .primary:hover { background: var(--color-accent-hover); border-color: transparent; color: var(--color-on-accent); }
.btn-large { min-height: 52px; padding: 0 26px; font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--control-height); color: var(--color-text-strong); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 5px; transition: text-decoration-color .11s; }
.link:hover { text-decoration-color: var(--color-accent); }
.link::after { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; min-height: var(--control-height); padding: 10px 14px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-s); background: var(--color-field); color: var(--color-text-strong); font: 400 16px/1.4 var(--font-body); transition: border-color .11s; }
input:not([type=radio]):not([type=checkbox]):hover, select:hover, textarea:hover { border-color: var(--color-border); }
input:not([type=radio]):not([type=checkbox]):focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-accent); }
input::placeholder, textarea::placeholder { color: var(--color-text-muted); opacity: .75; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c7c9cb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea { resize: vertical; min-height: 96px; }
.kicker { margin: 0 0 18px; color: var(--color-accent-text); font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px solid var(--color-border-subtle); border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--color-text); }
.pill-good, .pill-warn, .pill-bad { border-color: transparent; }
.pill-good { background: var(--color-success-soft); color: var(--color-success); }
.pill-warn { background: var(--color-warning-soft); color: var(--color-warning); }
.pill-bad { background: var(--color-danger-soft); color: var(--color-danger); }
.pill-good::before, .pill-warn::before, .pill-bad::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
