/* ============================================================
   AniAnswer — anime Q&A community
   "Manga Pop" — manga panel language, done professionally
   Paper · hard ink outlines · halftone dots · red/blue/yellow
   ============================================================ */

:root {
  --paper: #f7f4ec;
  --panel: #ffffff;
  --ink: #16130e;
  --ink-soft: #4c463a;
  /* --muted is 4.85:1 on --paper (WCAG AA for body text);
     --faint is only for icons and dividers (3.4:1, AA for non-text). */
  --muted: #726a5c;
  --faint: #8a8271;
  --line-soft: #e7e1d2;
  --red: #e8362d;
  --red-deep: #c22218;
  --blue: #2456d6;
  --yellow: #ffd21f;
  --yellow-soft: #ffe98f;
  --green: #1f8a53;
  --radius: 10px;
  --radius-sm: 8px;
  --bw: 2px;
  --shadow-1: 3px 3px 0 var(--ink);
  --shadow-2: 5px 5px 0 var(--ink);
  /* Self-hosted (assets/fonts/fonts.css) — no request ever reaches Google.
     Only latin/latin-ext are bundled; Japanese text falls back to --font-jp. */
  --font-head: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-jp: 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'MS PGothic', sans-serif;
  --font-mono: Consolas, 'SF Mono', Menlo, monospace;
  --halftone: radial-gradient(rgba(22, 19, 14, .08) 1.2px, transparent 1.3px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; }
main { flex: 1; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 28px; padding-bottom: 64px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 8px 16px;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--panel);
  border-bottom: var(--bw) solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  color: var(--ink); letter-spacing: -.02em;
}
.brand-accent { color: var(--red); }

.main-nav { display: flex; gap: 18px; }
.main-nav a {
  color: var(--ink-soft); font-weight: 700; font-size: 13.5px;
  font-family: var(--font-head);
  padding: 3px 4px;
  transition: color .15s;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a.active {
  color: var(--ink);
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
}

.header-search {
  flex: 1; max-width: 360px; margin-left: auto;
  display: flex; align-items: center; gap: 9px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: 999px; padding: 7px 15px;
  color: var(--muted);
}
.header-search:focus-within { background: var(--panel); box-shadow: var(--shadow-1); }
.header-search input {
  flex: 1; background: none; border: 0; outline: 0;
  color: var(--ink); font: inherit; font-size: 13.5px;
}
.header-search input::placeholder { color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 700 13.5px var(--font-head);
  padding: 8px 17px; border-radius: var(--radius-sm);
  border: var(--bw) solid var(--ink); cursor: pointer;
  background: var(--panel); color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .12s, box-shadow .12s, background-color .15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-outline { background: var(--panel); }
.btn-ghost {
  border-color: transparent; box-shadow: none; background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover { transform: none; box-shadow: none; color: var(--ink); background: var(--paper); }
.btn-danger { background: var(--panel); color: var(--red-deep); }
.btn-danger:hover { background: var(--red); border-color: var(--ink); color: #fff; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-sm { padding: 4px 12px; font-size: 12.5px; box-shadow: 2px 2px 0 var(--ink); }
.btn-block { width: 100%; }

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 13px;
}
.linklike:hover { color: var(--red); text-decoration: underline; }
.linklike.danger:hover { color: var(--red-deep); }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--ink-soft); transition: background-color .15s;
}
.icon-btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.badge-dot {
  position: absolute; top: 0; right: -3px;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 3px 5.5px; border-radius: 999px;
  border: 2px solid var(--panel);
}
.badge-dot.inline { position: static; border: 0; margin-left: 4px; }

/* ---------- User menu ---------- */

.user-menu { position: relative; }
.user-menu-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-sm); line-height: 0; }
.user-menu-btn .avatar { border: var(--bw) solid var(--ink); }
.user-menu-btn:hover .avatar { box-shadow: 2px 2px 0 var(--ink); }
.user-menu-drop {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 210px;
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: 6px; display: none; z-index: 120;
}
.user-menu.open .user-menu-drop { display: block; }
.user-menu-drop a, .user-menu-drop button {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 6px;
  color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none;
}
.user-menu-drop a:hover, .user-menu-drop button:hover { background: var(--yellow-soft); color: var(--ink); text-decoration: none; }
.user-menu-head {
  padding: 9px 12px; border-bottom: 2px dashed var(--line-soft); margin-bottom: 5px;
  display: flex; flex-direction: column; gap: 2px;
}

/* ---------- Avatars ---------- */

.avatar { border-radius: var(--radius-sm); object-fit: cover; background: var(--paper); }
.avatar-xs { width: 22px; height: 22px; border-radius: 6px; }
.avatar-sm { width: 34px; height: 34px; }
.avatar-lg { width: 56px; height: 56px; border: var(--bw) solid var(--ink); }
.avatar-xl { width: 96px; height: 96px; border-radius: 14px; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-1); }

.rep-inline { color: #b07f0e; font-size: 12.5px; font-weight: 700; }

/* ---------- Flash ---------- */

.flash {
  margin-top: 14px; padding: 11px 16px;
  border-radius: var(--radius); font-size: 14px;
  background: var(--panel);
  border: var(--bw) solid var(--ink);
}
.flash-success { border-color: var(--green); color: #14603a; }
.flash-error { border-color: var(--red); color: var(--red-deep); }
.flash-info { border-color: var(--blue); color: #1c3f9e; }
.error-list { margin: 0; padding-left: 18px; }

/* ---------- Hero ---------- */

.hero { margin: 10px 0 34px; }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px;
  align-items: center; padding: 40px 0 30px;
}
.hero-kicker {
  font-family: var(--font-jp);
  color: var(--red); font-weight: 700; font-size: 14px;
  letter-spacing: .18em; margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 54px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12; margin-bottom: 16px;
}
.grad-text {
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
  padding: 0 4px;
}
.hero-sub { color: var(--ink-soft); font-size: 16.5px; max-width: 46ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative; min-height: 300px;
  display: block;
}
.hero-art::before {
  content: '';
  position: absolute; right: -10px; top: -20px;
  width: 220px; height: 220px;
  background-image: var(--halftone);
  background-size: 11px 11px;
  border-radius: 50%;
  z-index: 0;
}
.hero-bubble {
  position: absolute; z-index: 1;
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: 14px;
  padding: 13px 17px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  max-width: 260px;
  animation: floaty 7s ease-in-out infinite;
}
.hero-bubble::after {
  content: '';
  position: absolute; left: 26px; bottom: -9px;
  width: 14px; height: 14px;
  background: var(--panel);
  border-right: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  transform: skewX(35deg) rotate(45deg);
}
.hero-bubble span {
  display: inline-block; margin-left: 6px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
}
.hero-bubble.b1 { top: 0; right: 6%; transform: rotate(-2deg); }
.hero-bubble.b2 { top: 38%; left: 0; transform: rotate(1.5deg); animation-delay: 2.2s; }
.hero-bubble.b3 { bottom: 0; right: 10%; transform: rotate(-1deg); animation-delay: 4.1s; }
@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -9px; }
}

/* ---------- Page layout ---------- */

.page-grid { display: grid; grid-template-columns: 1fr 296px; gap: 40px; align-items: start; }
.page-narrow { max-width: 760px; margin: 0 auto; }

.list-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 10px; flex-wrap: wrap;
}
.list-title { font-size: 28px; margin-bottom: 2px; }
.list-sub { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.list-count { color: var(--muted); margin: 2px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Tabs ---------- */

.tabs {
  display: flex; gap: 16px; margin: 10px 0 18px; flex-wrap: wrap;
  border-bottom: var(--bw) solid var(--ink);
  padding-bottom: 0;
}
.tab {
  color: var(--ink-soft); font-family: var(--font-head); font-size: 13.5px; font-weight: 700;
  padding: 6px 4px 9px;
  margin-bottom: 0;
  transition: color .15s;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active {
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
}
.tabs-sm { border: 0; margin: 0; gap: 12px; }
.tabs-sm .tab { padding: 3px 4px 5px; }

/* ---------- Question cards (manga panels) ---------- */

.q-list { display: flex; flex-direction: column; gap: 14px; }
.q-card {
  display: flex; gap: 20px;
  background: var(--panel);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 18px 20px;
  transition: transform .12s, box-shadow .12s;
}
.q-card:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-2); }
.q-stats { display: flex; flex-direction: column; gap: 7px; width: 86px; flex-shrink: 0; }
.q-stat {
  display: flex; align-items: baseline; gap: 5px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.q-stat strong { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink); }
.q-stat span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.q-stat.is-answered strong { color: var(--blue); }
.q-stat.is-accepted strong, .q-stat.is-accepted span { color: var(--red); }
.q-stat-views strong { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); font-weight: 600; }

.q-body { flex: 1; min-width: 0; }
.q-title { font-size: 17.5px; font-weight: 800; line-height: 1.35; margin-bottom: 6px; font-family: var(--font-head); }
.q-title a { color: var(--ink); }
.q-title a:hover { color: var(--red); text-decoration: none; }
.q-excerpt { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 12px; }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.q-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.q-author { color: var(--blue); font-weight: 700; }
.q-time { white-space: nowrap; }

/* ---------- Tags (sticker chips) ---------- */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--panel);
  color: var(--ink-soft);
  border: 1.5px solid var(--ink);
  font-size: 12px; font-weight: 700;
  padding: 2px 11px; border-radius: 999px;
  transition: background-color .15s, color .15s;
}
.tag:hover { background: var(--yellow); color: var(--ink); text-decoration: none; }
.tag-lg { font-size: 14px; padding: 4px 15px; }
.tag-count { color: var(--muted); font-weight: 600; }

/* ---------- Keyboard focus ---------- */

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .tag:focus-visible, .page-link:focus-visible {
  outline-offset: 3px;
}
.field input:focus-visible, .field textarea:focus-visible,
.editor textarea:focus-visible, .comment-form textarea:focus-visible,
.header-search input:focus-visible, .filter-search input:focus-visible,
.search-big input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
/* The search wrapper gets the ring when the inner input is focused. */
.header-search:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.header-search:focus-within input:focus-visible { outline: none; }

.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.tag-card {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 16px;
}
.tag-card-count { display: block; color: var(--muted); font-size: 12px; margin: 8px 0 5px; font-variant-numeric: tabular-nums; }
.tag-card-desc { color: var(--ink-soft); font-size: 13px; margin: 0; }

/* ---------- Sidebar ---------- */

.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.side-card {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 17px 18px;
}
.side-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 800;
  color: var(--ink); margin-bottom: 13px;
}
.side-title::before {
  content: ''; width: 9px; height: 9px; background: var(--red);
  border-radius: 2px; flex-shrink: 0;
}
.side-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.side-more { display: inline-block; margin-top: 11px; font-size: 13px; font-weight: 600; }
.stat-grid { display: flex; gap: 24px; }
.stat-grid > div { display: flex; flex-direction: column; }
.stat-grid strong { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--red); line-height: 1.15; }
.stat-grid span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.side-users { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-users li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.side-users a { color: var(--blue); font-weight: 700; }
.side-rank { font-family: var(--font-head); font-weight: 800; color: var(--muted); font-size: 13px; width: 14px; }
.side-cta { background: var(--yellow); }
.side-cta .side-title::before { background: var(--ink); }
.side-cta p { color: var(--ink); font-size: 13px; margin: 0 0 13px; }
.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.related-list li { display: flex; gap: 9px; align-items: baseline; font-size: 13.5px; line-height: 1.45; }
.related-list a { color: var(--blue); font-weight: 500; }
.related-list a:hover { color: var(--red); }
.related-score {
  flex-shrink: 0; min-width: 26px; text-align: center;
  font-family: var(--font-head); font-weight: 800; font-size: 12px;
  border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 4px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.related-score.is-pos { color: var(--red); }

/* ---------- Question detail ---------- */

.question-head { border-bottom: var(--bw) solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.question-title { font-size: 27px; font-weight: 800; max-width: 62rem; }
.question-facts { display: flex; gap: 20px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.question-facts strong { color: var(--ink); font-weight: 700; }

.post-layout { display: flex; gap: 22px; }
.post-gutter {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0; width: 46px;
}
.vote-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vote-btn {
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: var(--faint); border-radius: var(--radius-sm); line-height: 0;
  transition: color .12s, transform .12s;
}
.vote-btn:hover { color: var(--ink); transform: scale(1.12); }
.vote-up.voted { color: var(--red); }
.vote-down.voted { color: var(--blue); }
.vote-btn.pulse { animation: votepulse .3s ease; }
@keyframes votepulse { 50% { transform: scale(1.35); } }
.vote-score { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }

.gutter-btn {
  background: none; border: 0; cursor: pointer; padding: 6px;
  color: var(--muted); border-radius: var(--radius-sm); line-height: 0;
  transition: color .12s, background-color .12s;
}
.gutter-btn:hover { color: var(--ink); background: var(--paper); }
.bookmark-btn.active { color: #dfa90c; }
.accept-btn:hover { color: var(--red); }
.accept-mark { color: var(--red); line-height: 0; }

.post-content { flex: 1; min-width: 0; }
.post-body { font-size: 15px; line-height: 1.68; color: var(--ink); overflow-wrap: break-word; }
.post-body p { margin: 0 0 14px; }
.post-body h3, .post-body h4 { margin-top: 22px; }
.post-body blockquote {
  margin: 0 0 14px; padding: 10px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-soft);
}
.post-body code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: 1.5px 6px; border-radius: 6px;
}
.post-body .codeblock {
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm); padding: 14px 16px;
  overflow-x: auto; margin: 0 0 14px;
}
.post-body .codeblock code { background: none; border: 0; padding: 0; }
.post-body ul, .post-body ol { margin: 0 0 14px; padding-left: 24px; }
.post-body li { margin-bottom: 4px; }
.post-img { border-radius: var(--radius-sm); margin: 4px 0; max-height: 480px; border: 1.5px solid var(--ink); }

/* Spoilers */
.spoiler {
  cursor: pointer; border-radius: 6px;
  background: #ece5d2;
  padding: 0 4px;
  transition: background-color .2s;
}
.spoiler .spoiler-inner { filter: blur(6px); transition: filter .25s; }
.spoiler:hover { outline: 1.5px dashed var(--red); }
.spoiler.revealed { background: var(--yellow-soft); cursor: text; }
.spoiler.revealed .spoiler-inner { filter: none; }

.post-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
.post-actions-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 14px; flex-wrap: wrap; margin-bottom: 8px;
}
.post-actions { display: flex; gap: 15px; align-items: center; }
.inline-form { display: inline; }

.author-card {
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12px; min-width: 200px;
}
.author-card-accepted { background: #fdeae8; border-color: var(--red); }
.author-card-label { color: var(--muted); display: block; margin-bottom: 7px; }
.author-card-user { display: flex; align-items: center; gap: 9px; }
.author-card-user a { font-weight: 700; color: var(--blue); display: block; font-size: 13px; }

/* Answers */
.answers-section { margin-top: 38px; }
.answers-title {
  font-size: 23px; margin-bottom: 0;
  border-bottom: var(--bw) solid var(--ink); padding-bottom: 10px;
}
.post.answer {
  border-bottom: 2px dashed var(--line-soft);
  padding: 26px 0;
}
.post.answer.accepted {
  background: var(--panel);
  border: var(--bw) solid var(--red);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(232, 54, 45, .35);
  padding: 24px 20px;
  margin: 16px 0 8px;
}
.accepted-banner {
  display: inline-block;
  background: var(--red); color: #fff;
  border: var(--bw) solid var(--ink);
  font-family: var(--font-head);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 14px;
}
.accepted-banner::before { content: '✓ '; }

/* Comments */
.comments { margin-top: 12px; border-top: 1.5px solid var(--line-soft); padding-top: 8px; }
.comment {
  padding: 7px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-soft);
}
.comment:last-of-type { border-bottom: 0; }
.comment-meta { color: var(--muted); font-size: 12px; margin-left: 6px; }
.comment-meta a { color: var(--blue); font-weight: 600; }
.comment-toggle { margin-top: 6px; color: var(--blue); font-weight: 700; font-size: 12.5px; }
.comment-form { margin-top: 8px; }
.comment-form textarea {
  width: 100%; resize: vertical;
  background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  padding: 9px 12px; font: 13.5px/1.5 var(--font-body);
}
.comment-form textarea:focus { outline: 0; box-shadow: 2px 2px 0 var(--ink); }
.comment-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.hint { color: var(--muted); font-size: 12.5px; }

/* Answer form */
.answer-form-section { margin-top: 38px; }
.answer-form-section h2 { font-size: 21px; }
.signin-prompt {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 24px; text-align: center;
}
.signin-prompt p { margin: 0 0 16px; color: var(--ink-soft); }
.signin-prompt .btn { margin: 0 4px; }

/* ---------- Forms & editor ---------- */

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="search"], .field textarea, .editor textarea {
  width: 100%;
  background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  padding: 11px 14px; font: 14.5px/1.55 var(--font-body);
  transition: box-shadow .15s;
}
.field input:focus, .field textarea:focus, .editor textarea:focus {
  outline: 0; box-shadow: 2px 2px 0 var(--ink);
}
.field input[type="file"] { color: var(--ink-soft); font-size: 13.5px; }
.check-field { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.check-field input { margin-top: 3px; accent-color: var(--red); }
.form-actions { display: flex; gap: 12px; align-items: center; }

.editor { border: 1.5px solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.editor textarea { border: 0; border-radius: 0; display: block; }
.editor textarea:focus { box-shadow: none; }
.editor-tabs {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper); border-bottom: 1.5px solid var(--ink);
  padding: 7px 9px;
}
.editor-tab {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font: 700 12.5px var(--font-head);
  padding: 4px 12px; border-radius: 999px;
}
.editor-tab:hover { color: var(--ink); }
.editor-tab.active { background: var(--yellow); color: var(--ink); }
.editor-help { margin-left: auto; color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.editor-preview { padding: 14px 16px; min-height: 120px; }

.post-form .btn[type="submit"] { margin-top: 4px; }
.ask-form {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 26px;
}
.ask-form .editor, .ask-form .field input { background: var(--panel); }

.tag-suggest {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm); margin-top: 6px; overflow: hidden;
  box-shadow: var(--shadow-2);
}
.tag-suggest button {
  display: flex; justify-content: space-between; width: 100%;
  background: none; border: 0; cursor: pointer;
  padding: 8px 14px; color: var(--ink-soft); font: 600 13.5px var(--font-body);
}
.tag-suggest button:hover { background: var(--yellow-soft); color: var(--ink); }
.tag-suggest .tag-suggest-count { color: var(--muted); font-size: 12px; }

.tips-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; }
.tips-list li { margin-bottom: 9px; }

/* ---------- Auth pages ---------- */

.auth-wrap { display: flex; justify-content: center; padding: 30px 0 10px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: 16px; box-shadow: 6px 6px 0 var(--ink);
  padding: 34px 34px 26px;
}
.auth-title { font-size: 26px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* ---------- Filter rows / search ---------- */

.filter-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.filter-search { display: flex; gap: 8px; margin: 14px 0; }
.filter-search input {
  background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; font: 14px var(--font-body); min-width: 240px;
}
.filter-search input:focus { outline: 0; box-shadow: 2px 2px 0 var(--ink); }
.search-big { display: flex; gap: 10px; margin-bottom: 14px; }
.search-big input {
  flex: 1; background: var(--panel); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 12px 20px; font: 15px var(--font-body);
}
.search-big input:focus { outline: 0; box-shadow: var(--shadow-1); }
.search-tags-hint { color: var(--muted); font-size: 13.5px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }

/* ---------- Users ---------- */

.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.user-card {
  display: flex; gap: 13px; align-items: center;
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 15px;
  color: var(--ink); transition: transform .12s, box-shadow .12s;
}
.user-card:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-2); text-decoration: none; }
.user-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-card-info strong { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.user-card-stats { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.chip {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  background: var(--panel); color: var(--ink-soft);
  border: 1.5px solid var(--ink); vertical-align: middle;
}
.chip-role { color: var(--blue); border-color: var(--blue); }
.chip-closed { color: var(--red-deep); border-color: var(--red); }
.chip-open { color: #9a6f00; border-color: #d7a500; }
.chip-resolved { color: var(--green); border-color: var(--green); }
.chip-dismissed { color: var(--muted); border-color: var(--line-soft); }

/* ---------- Profile ---------- */

.profile-head {
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 26px; margin-bottom: 16px;
}
.profile-info { flex: 1; min-width: 240px; }
.profile-name { font-size: 27px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-meta { color: var(--muted); font-size: 13.5px; margin: 2px 0 8px; }
.rep-big { color: #b07f0e; font-weight: 800; }
.profile-fav { font-size: 14px; margin: 0 0 6px; color: var(--ink-soft); }
.profile-bio { color: var(--ink-soft); font-size: 14px; margin: 0 0 12px; max-width: 60ch; }
.profile-stats {
  display: grid; grid-template-columns: repeat(2, minmax(96px, 1fr)); gap: 10px 26px;
}
.profile-stats > div { display: flex; flex-direction: column; }
.profile-stats strong { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--red); line-height: 1.15; }
.profile-stats span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.badge-item {
  background: var(--panel); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 4px 13px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  cursor: default; box-shadow: 2px 2px 0 var(--ink);
}
.badge-emoji { margin-right: 3px; }

.answer-row.accepted-row { border-color: var(--red); }

/* ---------- Notifications ---------- */

.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif {
  display: flex; gap: 13px; align-items: center;
  background: var(--panel); border: 1.5px solid var(--ink);
  border-radius: var(--radius); padding: 13px 16px;
}
.notif.unread { background: #fffbea; border-width: var(--bw); box-shadow: 2px 2px 0 var(--ink); }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-text { color: var(--ink-soft); font-size: 14px; }
a.notif-text:hover { color: var(--red); }
.notif-time { color: var(--muted); font-size: 12px; }

/* ---------- Empty states / 404 ---------- */

.empty-state {
  text-align: center; padding: 50px 20px;
  background: var(--panel);
  background-image: var(--halftone);
  background-size: 11px 11px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius); color: var(--ink-soft);
}
.empty-emoji { font-size: 42px; margin: 0 0 8px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }
.error-404 { border: 0; background: none; padding-top: 60px; }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: 100px; margin: 0; line-height: 1; }
.error-404 h1 { font-size: 26px; margin: 16px 0 8px; }
.error-404 .hero-actions { justify-content: center; margin-top: 18px; }

/* ---------- Pagination ---------- */

.pagination { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; align-items: center; }
.page-link {
  display: inline-block; min-width: 36px; text-align: center;
  background: var(--panel); border: 1.5px solid var(--ink);
  color: var(--ink-soft); border-radius: var(--radius-sm);
  padding: 6px 11px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.page-link:hover { box-shadow: 2px 2px 0 var(--ink); color: var(--ink); text-decoration: none; }
.page-link.current { background: var(--red); color: #fff; border-color: var(--ink); }
.page-gap { color: var(--muted); }

/* ---------- Settings ---------- */

.settings-card {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 24px; margin-bottom: 20px;
}
.settings-card h2 { font-size: 19px; margin-bottom: 16px; }
.settings-card textarea {
  width: 100%; background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  padding: 11px 14px; font: 14.5px/1.55 var(--font-body); resize: vertical;
}
.avatar-settings { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.avatar-settings form { flex: 1; min-width: 240px; }

/* ---------- Admin ---------- */

.admin-head { margin-bottom: 16px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-tile {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  text-align: center; padding: 16px 10px;
}
.stat-tile strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--red); }
.stat-tile span { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-table-wrap {
  overflow-x: auto; background: var(--panel);
  border: var(--bw) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.admin-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.flag-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: var(--panel); border: 1.5px solid var(--ink);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; flex-wrap: wrap;
}
.flag-row.flag-open { border-color: #d7a500; border-width: var(--bw); box-shadow: 2px 2px 0 var(--ink); }
.flag-main { min-width: 0; }
.flag-reason { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.flag-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cache-card { margin-bottom: 22px; }
.cron-cmd {
  background: var(--ink); color: #f4f1e8;
  border-radius: var(--radius-sm); padding: 11px 14px; margin: 0;
  font: 12.5px/1.5 var(--font-mono);
  overflow-x: auto; white-space: pre; user-select: all;
}

/* ---------- Static pages ---------- */

.static-page .static-body {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 26px 30px;
}
.static-body h3 { margin-top: 24px; color: var(--red); font-size: 17px; }

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

.site-footer {
  margin-top: 48px;
  background: var(--ink);
  color: #cfc8b8;
  border-top: 4px solid var(--red);
  background-image: radial-gradient(rgba(247, 244, 236, .05) 1.2px, transparent 1.3px);
  background-size: 11px 11px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding: 38px 20px 26px;
}
.footer-brand .brand-name { font-size: 19px; color: var(--paper); }
.footer-tagline { color: #cfc8b8; font-size: 13.5px; margin: 8px 0 4px; }
.footer-jp { font-family: var(--font-jp); color: #a49b88; font-size: 12px; margin: 0; }
.footer-col h4 { font-family: var(--font-head); font-size: 12.5px; font-weight: 800; color: var(--paper); margin-bottom: 10px; }
.footer-col a { display: block; color: #cfc8b8; font-size: 13.5px; padding: 3px 0; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(247, 244, 236, .18);
  padding-top: 16px; padding-bottom: 24px;
  color: #8b8373; font-size: 12.5px;
}

/* ---------- Analytics dashboard ---------- */

.kpi-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.kpi-tile {
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi-tile strong {
  font-family: var(--font-head); font-weight: 800; font-size: 27px;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.kpi-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi-change { font-size: 12px; font-weight: 700; margin-top: 4px; }
.kpi-up { color: var(--green); }
.kpi-down { color: var(--red-deep); }
.kpi-flat { color: var(--muted); }

.chart-wrap { position: relative; }
.chart-line { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 6px;
}
.chart-legend i, .chart-tip i {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 6px; vertical-align: -1px;
}
.chart-tip {
  position: absolute; top: 26px; z-index: 5; pointer-events: none;
  background: var(--panel); border: var(--bw) solid var(--ink);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-1);
  padding: 8px 12px; font-size: 12.5px; white-space: nowrap;
  display: flex; flex-direction: column; gap: 3px;
}
.chart-tip strong { font-family: var(--font-head); font-size: 12.5px; margin-bottom: 2px; }
.chart-band { cursor: crosshair; }

.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 12px; align-items: center; }
.hbar-label { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { background: var(--paper); border-radius: 4px; height: 16px; overflow: hidden; }
.hbar-fill {
  display: block; height: 100%; min-width: 3px;
  background: #2456d6; border-radius: 0 4px 4px 0;
}
.hbar-value {
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  display: flex; gap: 7px; align-items: baseline;
}
.hbar-value em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11.5px; }

.search-terms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.search-terms li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font-size: 13.5px; border-bottom: 1px solid var(--line-soft); padding-bottom: 6px;
}
.search-terms li:last-child { border-bottom: 0; }
.search-terms span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; }
.search-terms em { color: var(--red); font-style: normal; font-weight: 600; }

.field select {
  width: 100%; background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  padding: 11px 14px; font: 14.5px var(--font-body);
}

/* ---------- Verification banner ---------- */

.verify-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px; padding: 11px 16px;
  background: var(--yellow); border: var(--bw) solid var(--ink);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
}

/* ---------- Honeypot (must be invisible but not display:none) ---------- */

.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Duplicate suggestions on the ask form ---------- */

.similar-box {
  margin-top: 10px; padding: 13px 16px;
  background: #fffbea; border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
}
.similar-head { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; }
.similar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.similar-list li { font-size: 13.5px; line-height: 1.45; }
.similar-list a { font-weight: 600; }
.similar-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- Mentions ---------- */

.mention {
  font-weight: 700; color: var(--blue);
  background: #e8eeff; border-radius: 5px; padding: 0 4px;
}
.mention:hover { background: var(--yellow); color: var(--ink); }

/* ---------- Follow buttons ---------- */

.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.follow-tag-btn.active { background: var(--yellow); }
.linklike.follow-tag-btn {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  color: var(--blue); white-space: nowrap;
}
.linklike.follow-tag-btn.active { color: var(--green); background: none; }
.subscribe-btn.active { color: var(--red); }
.tag-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Edit history ---------- */

.revision-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.revision {
  background: var(--panel); border: 1.5px solid var(--ink);
  border-radius: var(--radius); padding: 16px 18px;
}
.revision-current { border-width: var(--bw); box-shadow: var(--shadow-1); }
.revision-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.revision-title { font-family: var(--font-head); font-weight: 800; font-size: 16px; margin: 0 0 8px; }
.revision-body { font-size: 14px; opacity: .95; }

/* ---------- Destructive settings block ---------- */

.danger-card { border-color: var(--red); box-shadow: 3px 3px 0 rgba(232, 54, 45, .35); }
.danger-card h2 { color: var(--red-deep); }

/* ---------- Toasts ---------- */

.toast-box {
  position: fixed; bottom: 22px; right: 22px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px; max-width: 320px;
}
.toast {
  background: var(--panel); color: var(--ink);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius); padding: 11px 16px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--green); }
.toast-error { border-color: var(--red); }
.toast-info { border-color: var(--blue); }

/* ---------- Nav toggle (mobile) ---------- */

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ---------- Responsive ---------- */

.hide-mobile { display: inline-flex; }

@media (max-width: 1020px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; padding: 30px 0 24px; }
  .hero-art { display: none; }
  .admin-cols { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .nav-toggle { display: flex; order: 1; margin-left: auto; }
  .brand { order: 0; }
  .header-actions { order: 2; }
  .main-nav {
    order: 4; width: 100%; display: none; flex-direction: column; gap: 8px;
    border-top: 1.5px solid var(--line-soft); padding-top: 10px;
  }
  .main-nav.open { display: flex; }
  .header-search { order: 3; max-width: none; width: 100%; margin-left: 0; }
  .btn-ask { padding: 8px 13px; }
  .hero h1 { font-size: 32px; }
  .q-card { flex-direction: column; gap: 10px; }
  .q-stats { flex-direction: row; width: auto; gap: 16px; }
  .post-layout { gap: 14px; }
  .question-title { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .profile-stats { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .hide-mobile { display: none; }
  .auth-card { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
