@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f2e9;
  --surface: #fbf9f3;
  --surface-2: #efece2;
  --ink: #171913;
  --ink-soft: #34372d;
  --muted: #6f7165;
  --faint: #929486;
  --line: #d8d3c5;
  --line-strong: #bdb7a7;
  --accent: #1f4d3a;
  --accent-hover: #173c2d;
  --accent-soft: #e2e9df;
  --accent-ink: #173a2b;
  --dark: #10120f;
  --dark-2: #181b16;
  --dark-3: #22261f;
  --dark-line: #30352c;
  --dark-ink: #f2efe5;
  --dark-muted: #a3a596;
  --danger: #8a2e25;
  --danger-soft: #f4e4df;
  --warn: #8a5b16;
  --warn-soft: #f4ead7;
  --info: #2c4c66;
  --info-soft: #e2e9ee;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 16px 44px rgba(16, 18, 15, 0.12);
  --radius: 2px;
  --container: 1240px;
  --container-wide: 1360px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #11130f;
  --surface: #191b16;
  --surface-2: #20231c;
  --ink: #efece1;
  --ink-soft: #d4d1c4;
  --muted: #a3a596;
  --faint: #858779;
  --line: #2d3028;
  --line-strong: #44483d;
  --accent: #8fbaa1;
  --accent-hover: #a9ceb7;
  --accent-soft: #213229;
  --accent-ink: #b4d4bf;
  --dark: #0c0e0b;
  --dark-2: #151812;
  --dark-3: #1e221b;
  --dark-line: #2c3128;
  --dark-ink: #f2efe5;
  --dark-muted: #a3a596;
  --danger: #e09284;
  --danger-soft: #35211d;
  --warn: #d5ab6a;
  --warn-soft: #332a1b;
  --info: #9dbdd3;
  --info-soft: #1c2830;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

main { display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 650; }
em, i { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.svg-icon, .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 1.7;
  vertical-align: -0.18em;
}

.sr-only {
  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: fixed;
  top: 8px; left: 8px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--wide { max-width: var(--container-wide); }

.site-main {
  flex: 1 0 auto;
  padding: 40px 0 88px;
}
.page-home .site-main { padding-top: 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.dot-sep { color: var(--faint); padding: 0 2px; }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-line {
  width: 32px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--light { color: #9fc3ac; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.text-link:hover { border-color: currentColor; }
.text-link .svg-icon { width: 14px; height: 14px; }

/* header */
.utility-bar {
  background: #090b08;
  color: #a8aa9d;
  border-bottom: 1px solid #23271f;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 34px;
}
.utility-note {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #83b398;
  box-shadow: 0 0 0 3px rgba(131, 179, 152, 0.12);
  flex: 0 0 auto;
}
.utility-sep { color: #4b4f44; }
.utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.utility-links a:hover { color: #f1eee4; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  padding: 0;
  border: 1px solid #30352b;
  background: transparent;
  color: #b9bbad;
}
.theme-toggle:hover { color: #fff; border-color: #5d6353; }
.theme-toggle .svg-icon { width: 14px; height: 14px; }
:root[data-theme="light"] .theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }

.site-header {
  position: relative;
  z-index: 50;
  background: var(--dark);
  color: var(--dark-ink);
  border-bottom: 1px solid #252a21;
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 230px) auto;
  align-items: center;
  gap: 36px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-ink);
  flex: 0 0 auto;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.brand-dot { color: #87b59c; }
.brand-sub {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8f9284;
  border-left: 1px solid #343a2f;
  padding-left: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.015em;
}
.main-nav a {
  position: relative;
  color: #c3c5b7;
  padding: 27px 0;
  transition: color .15s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 19px;
  height: 1px;
  background: #8ab79f;
}
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.header-search .search-glyph {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: #8b8e80;
  pointer-events: none;
  line-height: 0;
}
.header-search .search-glyph .icon { width: 15px; height: 15px; display: block; }
.site-header .header-search input {
  width: 100%;
  min-height: 34px;
  height: 34px;
  border: 1px solid #30352b;
  background: #181b15;
  color: #f1eee4;
  padding: 0 12px 0 37px;
  font-size: 12.5px;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, background .15s ease;
}
.site-header .header-search input::-webkit-search-decoration,
.site-header .header-search input::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; }
.header-search input::placeholder { color: #858879; }
.site-header .header-search input:focus {
  outline: none;
  border-color: #6f8f7c;
  background: #1c2019;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.site-header .icon-btn { border-color: #343a2f; color: #c9cbbd; }
.site-header .icon-btn:hover { border-color: #5e6555; color: #fff; background: #1d211a; }
.notification-btn { position: relative; }
.notification-btn .svg-icon { width: 17px; height: 17px; }
.unread-dot {
  display: inline-grid;
  place-items: center;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #9dc7ac;
  color: #122018;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.notification-btn .unread-dot {
  position: absolute;
  top: -4px; right: -4px;
  border: 2px solid var(--dark);
}
.header-new .svg-icon { width: 15px; height: 15px; }
.header-login { border-color: #3d4338; color: #dbddd1; }
.header-login:hover { background: #1d211a; color: #fff; }
.mobile-toggle { display: none; }

.account-menu { position: relative; }
.account-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 3px;
  border: 1px solid transparent;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { border-color: #3a4034; }
.account-caret { color: #8c9082; display: grid; place-items: center; }
.account-caret .svg-icon { width: 13px; height: 13px; }
.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 248px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 60;
}
.account-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.account-panel-head div { display: flex; flex-direction: column; min-width: 0; }
.account-panel-head strong { font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.account-panel-head span:not(.avatar) { font-size: 11.5px; color: var(--muted); }
.account-links { padding: 7px; }
.account-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-radius: 1px;
}
.account-links a:hover { background: var(--surface-2); color: var(--ink); }
.account-links .svg-icon { width: 15px; height: 15px; color: var(--muted); }
.mini-count {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
}
.account-logout { border-top: 1px solid var(--line); padding: 7px; }
.account-logout button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12.5px;
  color: var(--muted);
}
.account-logout button:hover { background: var(--danger-soft); color: var(--danger); }
.account-logout .svg-icon { width: 15px; height: 15px; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 11, 8, 0.72);
  opacity: 0;
  transition: opacity .18s ease;
}
.mobile-drawer.is-open { opacity: 1; }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-line);
  transform: translateY(-10px);
  transition: transform .18s ease;
}
.mobile-drawer.is-open .mobile-drawer-head { transform: none; }
.drawer-search { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.mobile-drawer .drawer-search > span { position: absolute; left: 12px; top: 50%; display: flex; align-items: center; color: #8b8e80; line-height: 0; transform: translateY(-50%); pointer-events: none; }
.mobile-drawer .drawer-search .icon { width: 16px; height: 16px; display: block; }
.mobile-drawer .drawer-search input { width: 100%; height: 40px; min-height: 40px; background: #181b15; border: 1px solid #353b30; color: #fff; padding: 0 12px 0 37px; appearance: none; -webkit-appearance: none; }
.mobile-drawer .drawer-search input::-webkit-search-decoration,
.mobile-drawer .drawer-search input::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; }
.mobile-drawer-head .icon-btn { border-color: #3b4136; color: #e5e7db; }
.drawer-nav {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-line);
  padding: 8px 20px 20px;
  transform: translateY(-10px);
  transition: transform .18s ease;
  max-height: calc(100vh - 73px);
  overflow-y: auto;
}
.mobile-drawer.is-open .drawer-nav { transform: none; }
.drawer-nav a, .drawer-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid #272c24;
  background: transparent;
  color: #dfe1d5;
  font-size: 15px;
  text-align: left;
}
.drawer-nav .drawer-cta { color: #a9cfb8; font-weight: 600; }
.drawer-nav form { margin: 0; }
.drawer-nav .mini-count { margin-left: 0; }

/* footer */
.site-footer {
  flex: 0 0 auto;
  background: var(--dark);
  color: #a9ab9e;
  border-top: 1px solid #262b22;
  padding: 62px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(140px, 0.65fr));
  gap: 54px;
  padding-bottom: 48px;
}
.brand--footer { margin-bottom: 20px; }
.footer-brand p { max-width: 320px; font-size: 12.5px; line-height: 1.7; color: #919487; }
.footer-brand .footer-fine { margin-top: 14px; color: #6f7267; font-size: 11px; letter-spacing: 0.02em; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7e8174;
  margin-bottom: 4px;
}
.footer-col a { font-size: 12.5px; color: #b9bbad; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid #272c23;
  padding-top: 20px;
  font-size: 10.5px;
  color: #6f7267;
  letter-spacing: 0.01em;
}

/* announcements, notices, alerts */
.announcement {
  background: var(--accent-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.announcement .container {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.announcement-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--accent);
  flex: 0 0 auto;
}
.announcement p { font-size: 12.5px; color: var(--accent-ink); }

.notice, .form-alert, .form-alert--quiet {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 13px 15px;
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.5;
}
.notice-icon, .form-alert-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  margin-top: 1px;
}
.notice-icon .svg-icon, .form-alert-icon .svg-icon { width: 16px; height: 16px; }
.notice > div, .form-alert > div { display: flex; flex-direction: column; gap: 1px; }
.notice strong, .form-alert strong { font-size: 12.5px; }
.notice span, .form-alert span { color: inherit; opacity: 0.9; }
.form-alert {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}
.form-alert-icon { color: var(--danger); }
.form-alert--inline { margin-top: 24px; }
.form-alert--quiet {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}
.form-alert--quiet .form-alert-icon { color: var(--muted); }

/* buttons and badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn .svg-icon { width: 15px; height: 15px; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .btn--primary { color: #10140f; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-soft); color: var(--ink); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(0.93); }
.btn--small { min-height: 32px; padding: 6px 11px; font-size: 10.5px; }
.btn--xs { min-height: 27px; padding: 4px 8px; font-size: 10px; letter-spacing: 0.02em; }
.btn--large { min-height: 47px; padding: 12px 22px; font-size: 12.5px; }
.btn--full { width: 100%; }
.btn--muted { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }
.site-header .btn--primary { background: #8fbaa1; border-color: #8fbaa1; color: #10180f; }
.site-header .btn--primary:hover { background: #a6cdb4; border-color: #a6cdb4; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 1px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 1px;
  white-space: nowrap;
}
.badge .svg-icon { width: 10px; height: 10px; }
.badge--admin { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.badge--mod { color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, var(--line)); background: var(--info-soft); }
.badge--root { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-soft); }
.badge--pin { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.badge--lock { color: var(--muted); background: var(--surface-2); border-color: transparent; }
.badge--hot { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.badge--banned, .badge--danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.badge--muted { color: var(--muted); background: var(--surface-2); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill--active { color: var(--accent); }
.status-pill--banned { color: var(--danger); }
.status-pill--deleted { color: var(--faint); }
.rank { font-size: 9px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.user-link { font-weight: 600; }
.user-link:hover { color: var(--accent); }

/* avatars */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  object-fit: cover;
  background: var(--surface-2);
  color: #fff;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}
.avatar--xxs { width: 16px; height: 16px; font-size: 6px; }
.avatar--xs { width: 24px; height: 24px; font-size: 8.5px; }
.avatar--sm { width: 32px; height: 32px; font-size: 11px; }
.avatar--md { width: 42px; height: 42px; font-size: 14px; }
.avatar--lg { width: 62px; height: 62px; font-size: 20px; }
.avatar--xl { width: 100px; height: 100px; font-size: 30px; }
.avatar--c0 { background: #5b705d; }
.avatar--c1 { background: #7b6753; }
.avatar--c2 { background: #4f6572; }
.avatar--c3 { background: #77605f; }
.avatar--c4 { background: #6c6b50; }
.avatar--c5 { background: #55626f; }
.avatar--c6 { background: #6c5c72; }
.avatar--c7 { background: #706a5a; }
.category-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  flex: 0 0 auto;
}
.category-icon .svg-icon { width: 21px; height: 21px; }

/* forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin-bottom: 17px;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.field-label .req { font-size: 8px; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.field-hint { font-size: 11px; line-height: 1.5; color: var(--muted); }
.field--short { max-width: 130px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { resize: vertical; min-height: 100px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f7165' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.checkline input[type="checkbox"] {
  width: 15px; height: 15px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.checkline--stacked { margin: 4px 0 18px; }
.checkline a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inline-action { display: inline-flex; margin: 0; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.char-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.char-count.is-near { color: var(--warn); }
.char-count.is-over { color: var(--danger); }

/* shared page furniture */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 27px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .crumb-sep { width: 11px; height: 11px; transform: rotate(-90deg); color: var(--line-strong); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}
.page-heading h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); margin: 7px 0 10px; }
.page-heading p { max-width: 670px; font-size: 13.5px; color: var(--muted); }
.page-heading-main { display: flex; align-items: flex-start; gap: 18px; }
.page-heading-main .category-icon { width: 60px; height: 60px; margin-top: 4px; }
.page-heading-main .category-icon .svg-icon { width: 27px; height: 27px; }
.page-heading-actions { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; padding-bottom: 4px; }
.page-heading--simple { align-items: flex-end; }
.heading-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  line-height: 1;
  padding-bottom: 3px;
}
.heading-count strong { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -0.04em; }
.heading-count span { margin-top: 4px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); }
.board-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.board-stat strong { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.board-stat span { margin-top: 3px; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 48px;
  align-items: start;
}
.content-primary { min-width: 0; }
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
  padding: 0 0 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.list-toolbar p strong { color: var(--ink); }
.list-sort { font-size: 10.5px; letter-spacing: 0.01em; }
.list-sort strong { color: var(--ink-soft); font-weight: 600; }
.segmented-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.segmented-tab {
  position: relative;
  padding: 9px 15px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.segmented-tab:first-child { padding-left: 0; }
.segmented-tab:hover { color: var(--ink); }
.segmented-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}
.page-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.page-btn .svg-icon { width: 13px; height: 13px; }
.page-btn:first-child .svg-icon { transform: rotate(180deg); }
.page-btn.is-disabled { opacity: 0.42; pointer-events: none; }
.page-state { margin: 0 auto; color: var(--muted); }
.page-state strong { color: var(--ink); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 58px 24px;
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.empty-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-bottom: 18px;
}
.empty-mark .svg-icon { width: 20px; height: 20px; }
.empty-dot {
  position: absolute;
  right: -4px; top: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.empty-state h3 { font-size: 25px; margin-bottom: 7px; }
.empty-state p { max-width: 430px; font-size: 12.5px; color: var(--muted); margin-bottom: 19px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-heading h2 { font-size: 28px; margin-top: 4px; }

/* utility animations */
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* buttons used on dark surfaces */
.btn--accent { background: #94bda6; border-color: #94bda6; color: #10170f; }
.btn--accent:hover { background: #acd0b9; border-color: #acd0b9; }
.btn--accent .svg-icon { transform: rotate(-90deg); }
.btn--outline-light { border-color: #454b3e; color: #e4e6da; background: transparent; }
.btn--outline-light:hover { border-color: #7c8472; background: #1c2019; color: #fff; }

/* homepage hero */
.hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--dark);
  color: var(--dark-ink);
  border-bottom: 1px solid #272c23;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: #31372c;
}
.hero-inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 76px 32px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 76px;
}
.hero-copy { max-width: 670px; }
.hero-copy .eyebrow { color: #9fc3ac; }
.hero-copy h1 {
  margin: 25px 0 25px;
  color: #f4f1e6;
  font-size: clamp(3.5rem, 6.2vw, 6.15rem);
  line-height: 0.91;
  letter-spacing: -0.045em;
  font-weight: 400;
}
.hero-copy h1 em { color: #9fc3ac; font-weight: 400; }
.hero-deck {
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #a9ac9e;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 31px 0 38px; }
.hero-actions .btn { min-height: 43px; padding: 10px 18px; font-size: 11px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 27px;
  border-top: 1px solid #2c3128;
  padding-top: 19px;
  max-width: 540px;
}
.hero-meta > div { display: flex; flex-direction: column; line-height: 1; }
.hero-meta strong { font-family: var(--serif); font-size: 25px; font-weight: 400; color: #edeade; }
.hero-meta span:not(.status-dot) { margin-top: 5px; font-size: 8px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: #7f8275; }
.hero-meta .hero-meta-note {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8f9284;
}
.hero-meta .hero-meta-note .status-dot { width: 5px; height: 5px; }

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 440px;
  border: 1px solid #32382d;
  background: #141711;
  padding: 30px 20px 54px;
  overflow: hidden;
}
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  background: #2b3027;
  pointer-events: none;
}
.hero-art::before { left: 0; right: 0; top: 50%; height: 1px; }
.hero-art::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.hero-art-grid {
  position: absolute;
  inset: 14px;
  border: 1px solid #272c24;
  pointer-events: none;
}
.hero-art-label {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #85897b;
}
.hero-art-label--top { top: 25px; left: 26px; right: 26px; display: flex; justify-content: space-between; }
.hero-art-label--top span { color: #5f6458; }
.profile-study { position: relative; z-index: 1; width: 100%; height: auto; margin-top: 15px; }
.study-rules path { stroke: #2b3027; stroke-width: 1; }
.study-profile { fill: #1b2019; stroke: #d6d2c4; stroke-width: 1.1; }
.study-feature { stroke: #929687; stroke-width: 1; }
.study-accent { stroke: #8db9a1; stroke-width: 1.5; }
.study-points circle { fill: #8db9a1; }
.study-copy text { fill: #818577; font-family: var(--mono); font-size: 8px; letter-spacing: 0.13em; }
.hero-art-stamp {
  position: absolute;
  right: 25px; bottom: 52px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 66px; height: 66px;
  border: 1px solid #536154;
  border-radius: 50%;
  color: #a8b9aa;
  line-height: 1;
  transform: rotate(-8deg);
}
.hero-art-stamp span { font-size: 7px; letter-spacing: 0.15em; }
.hero-art-stamp strong { font-family: var(--serif); font-size: 19px; font-weight: 400; margin-top: 3px; }
.hero-art-caption {
  position: absolute;
  left: 26px; right: 26px; bottom: 23px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #6d7165;
}
.hero-ticker {
  border-top: 1px solid #2a2f26;
  overflow: hidden;
  white-space: nowrap;
}
.hero-ticker > div {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 55px;
  padding: 13px 0;
  animation: ticker 42s linear infinite;
}
.hero-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 55px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: #6f7466;
}
.hero-ticker span::after { content: "/"; color: #41473b; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* home index */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 54px;
  align-items: start;
  padding-top: 57px;
}
.home-primary { min-width: 0; }
.index-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 4px;
}
.index-header h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 5px; }
.index-header > p { max-width: 305px; font-size: 12px; line-height: 1.6; color: var(--muted); text-align: right; padding-bottom: 6px; }
.board-groups { display: flex; flex-direction: column; }
.board-group { padding-top: 31px; }
.board-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.board-group-index {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.board-group-head h3 {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.board-group-line { flex: 1; height: 1px; background: var(--line); }
.board-group-count { font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.board-list { border-top: 1px solid var(--line); }
.board-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(230px, 330px);
  align-items: center;
  gap: 17px;
  padding: 16px 10px 16px 2px;
  border-bottom: 1px solid var(--line);
  transition: background .14s ease, padding .14s ease;
}
.board-row:hover { background: color-mix(in srgb, var(--surface) 80%, transparent); padding-left: 9px; padding-right: 4px; }
.board-icon .category-icon { width: 43px; height: 43px; background: transparent; border-color: var(--line); }
.board-row:hover .board-icon .category-icon { border-color: var(--line-strong); background: var(--surface); color: var(--accent); }
.board-info { display: flex; flex-direction: column; min-width: 0; }
.board-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 3px;
}
.board-desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-counts { margin-top: 6px; font-size: 9px; letter-spacing: 0.045em; color: var(--faint); }
.board-latest {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-left: 19px;
  border-left: 1px solid var(--line);
}
.board-latest-inner { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.board-latest-inner > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.board-latest-inner strong {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-latest-inner em { font-style: normal; font-size: 9px; color: var(--faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-arrow {
  color: var(--faint);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform .15s ease, color .15s ease;
}
.board-arrow .svg-icon { width: 15px; height: 15px; transform: rotate(-90deg); }
.board-row:hover .board-arrow { color: var(--accent); transform: translateX(2px); }
.board-empty { display: flex; flex-direction: column; font-size: 10px; color: var(--faint); font-style: normal; }
.board-empty em { font-style: normal; font-size: 9px; color: var(--line-strong); margin-top: 2px; }
.home-principle {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-top: 37px;
  padding: 23px 24px;
  background: var(--accent);
  color: #eef3ec;
  border: 1px solid var(--accent);
}
:root[data-theme="dark"] .home-principle { background: #1d3529; border-color: #2c4d3b; }
.principle-mark { color: #a9cdb7; padding-top: 2px; }
.principle-mark .svg-icon { width: 24px; height: 24px; }
.home-principle .kicker { color: #a9cdb7; }
.home-principle h3 { color: #f2f5ed; font-size: 24px; margin: 3px 0 3px; }
.home-principle p { max-width: 620px; font-size: 11.5px; line-height: 1.65; color: #c7d4c9; }
.home-principle .text-link { color: #c3dccb; white-space: nowrap; align-self: center; font-size: 10.5px; }

/* sidebar */
.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.side-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}
.side-card .kicker { color: var(--muted); }
.side-card--accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 18%, var(--line)); }
.board-side { gap: 14px; }
.board-side-title { margin: 8px 0 9px; font-family: var(--serif); font-size: 27px; line-height: 1.1; letter-spacing: -0.01em; }
.board-side-copy { font-size: 11.5px; line-height: 1.62; color: var(--ink-soft); }
.board-points { display: flex; flex-direction: column; gap: 8px; margin: 13px 0 16px; }
.board-points li { position: relative; padding-left: 14px; font-size: 11px; line-height: 1.5; color: var(--ink-soft); }
.board-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.board-side .btn { justify-content: center; }
.board-side-rule { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.board-side-rule a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.side-card-head h2 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.side-card-head > a { color: var(--faint); display: grid; place-items: center; }
.side-card-head > a:hover { color: var(--accent); }
.side-card-head .svg-icon { width: 15px; height: 15px; }
.welcome-card {
  position: relative;
  background: var(--dark);
  color: var(--dark-ink);
  border-color: var(--dark);
  padding: 22px;
  overflow: hidden;
}
:root[data-theme="dark"] .welcome-card { background: #1a1e17; border-color: #2d3328; }
.welcome-card::after {
  content: "LM";
  position: absolute;
  right: -13px; bottom: -36px;
  font-family: var(--serif);
  font-size: 122px;
  line-height: 1;
  color: rgba(255,255,255,0.035);
  pointer-events: none;
}
.welcome-card .kicker { color: #8fbaa1; position: relative; z-index: 1; }
.welcome-title {
  position: relative;
  z-index: 1;
  font-size: 25px;
  line-height: 1.12;
  color: #f1eee3;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}
.welcome-card > p { position: relative; z-index: 1; font-size: 11.5px; line-height: 1.65; color: #a4a89a; margin-bottom: 17px; }
.welcome-card .btn { position: relative; z-index: 1; }
.welcome-card .btn--primary { background: #94bda6; border-color: #94bda6; color: #111710; }
.welcome-card .btn--primary:hover { background: #acd0b9; }
.welcome-card .text-link { position: relative; z-index: 1; margin-top: 12px; color: #a8b7aa; font-size: 10.5px; }
.welcome-card .text-link:hover { color: #fff; }
.welcome-user { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 13px 0 13px; }
.welcome-user div { display: flex; flex-direction: column; min-width: 0; }
.welcome-user strong { color: #f2efe6; font-size: 13px; }
.welcome-user span:not(.avatar) { color: #929688; font-size: 10px; margin-top: 1px; }
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.activity-item:first-child { border-top: 0; padding-top: 2px; }
.activity-avatar { padding-top: 1px; }
.activity-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.activity-body strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-item:hover .activity-body strong { color: var(--accent); }
.activity-body span { font-size: 9.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.live-label .status-dot { width: 4px; height: 4px; box-shadow: none; }
.stat-list { display: flex; flex-direction: column; }
.stat-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.stat-list > div:first-child { border-top: 0; }
.stat-list dt { font-size: 10.5px; color: var(--muted); }
.stat-list dd { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.stat-list--wide > div { padding: 9px 0; }
.stat-list--wide dt { font-size: 11px; }
.stat-list--wide dd { font-family: var(--sans); font-size: 11px; text-align: right; }
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 700;
  border-radius: 999px;
}
.online-list { display: flex; flex-wrap: wrap; gap: 5px; }
.online-list a { transition: transform .12s ease; }
.online-list a:hover { transform: translateY(-2px); }
.online-note { margin-top: 11px; font-size: 9.5px; line-height: 1.5; color: var(--faint); }
.side-card--team { padding-bottom: 16px; }
.team-list { display: flex; flex-direction: column; gap: 2px; margin-top: 11px; }
.team-member { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.team-member > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.team-member strong { font-size: 10.5px; font-weight: 600; line-height: 1.35; }
.team-member em { font-style: normal; font-size: 8.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.team-member:hover strong { color: var(--accent); }
.team-note { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.5; color: var(--faint); }

/* board listing and thread rows */
.thread-list { border-top: 1px solid var(--line-strong); }
.thread-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px minmax(150px, 175px);
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  transition: background .14s ease;
}
.thread-line:hover { background: color-mix(in srgb, var(--surface) 65%, transparent); }
.thread-line.is-pinned { background: color-mix(in srgb, var(--accent-soft) 25%, transparent); }
.thread-line-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.thread-line-avatar { padding-top: 2px; }
.thread-line-copy { min-width: 0; }
.thread-line-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.3;
}
.thread-line-title > a {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .12s ease;
}
.thread-line-title > a:hover { color: var(--accent); }
.thread-line-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--faint);
  line-height: 1.45;
}
.thread-line-meta a { color: var(--muted); }
.thread-line-meta a:hover { color: var(--accent); }
.thread-line-stats, .thread-line-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  border-left: 1px solid var(--line);
}
.thread-line-stats strong, .thread-line-view strong { font-family: var(--serif); font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.thread-line-stats span, .thread-line-view span { font-size: 7.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.thread-line-last {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.thread-line-last > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.thread-line-last strong { font-size: 9.5px; font-weight: 600; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-line-last em { font-style: normal; font-size: 8.5px; color: var(--faint); }
.last-jump { margin-left: auto; display: grid; place-items: center; color: var(--faint); flex: 0 0 auto; }
.last-jump:hover { color: var(--accent); }
.last-jump .svg-icon { width: 13px; height: 13px; transform: rotate(-90deg); }
.board-footnote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--muted);
}
.board-footnote > span { color: var(--faint); padding-top: 1px; }
.board-footnote .svg-icon { width: 14px; height: 14px; }
.board-footnote p { font-size: 10.5px; line-height: 1.55; }
.board-footnote a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* portrait proportion study */
.hero-art--portrait {
  padding: 0;
  min-height: 0;
  aspect-ratio: 4 / 5;
  max-height: 590px;
  background: #0d0f0c;
}
.hero-art--portrait::before, .hero-art--portrait::after { display: none; }
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  filter: grayscale(1) sepia(.12) contrast(1.06) brightness(.78);
  transform: scale(1.015);
}
.hero-art--portrait::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 18, 15, .15) 0%, transparent 24%, transparent 55%, rgba(16, 18, 15, .88) 100%),
    linear-gradient(90deg, rgba(31, 77, 58, .2), transparent 42%, rgba(16, 18, 15, .25));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-art--portrait .hero-art-grid { inset: 13px; z-index: 2; border-color: rgba(238, 233, 218, .22); }
.hero-art--portrait .hero-art-label { z-index: 3; color: #d5d0c1; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero-art--portrait .hero-art-label--top { top: 20px; left: 22px; right: 22px; }
.hero-art--portrait .hero-art-label--top span { color: #a8ada0; }
.proportion-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.proportion-overlay .study-rules path { stroke: rgba(235, 229, 212, .55); stroke-width: 1; }
.proportion-overlay .study-points circle { fill: #a7cdb6; stroke: #10120f; stroke-width: 1; }
.proportion-overlay .study-copy text { fill: #e6e1d2; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.proportion-overlay .study-copy-sub { fill: #b5b9aa; font-size: 9px; letter-spacing: .06em; }
.hero-art--portrait .hero-art-stamp { right: 20px; bottom: 64px; z-index: 3; background: rgba(12, 14, 11, .55); backdrop-filter: blur(2px); border-color: #8f9d8c; color: #d6ddcf; }
.hero-art--portrait .hero-art-caption {
  left: 22px; right: 22px; bottom: 20px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  color: #c9c7ba;
  font-size: 8.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
  background: linear-gradient(180deg, transparent, rgba(9, 11, 8, .55) 45%);
}
.hero-art-credit { color: #a3a697; white-space: nowrap; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 40px; }
  .hero-art--portrait { max-height: 510px; }
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 52px; gap: 34px; }
  .hero-art--portrait { max-height: 540px; width: min(100%, 470px); }
}
@media (max-width: 520px) {
  .hero-art--portrait { aspect-ratio: 5 / 6; max-height: 470px; }
  .proportion-overlay .study-copy text { font-size: 14px; }
  .proportion-overlay .study-copy-sub { font-size: 10px; }
  .hero-art--portrait .hero-art-caption { display: block; line-height: 1.7; }
  .hero-art-credit { display: block; }
}

/* thread view */
.thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 38px;
  align-items: start;
}
.thread-primary { min-width: 0; }
.thread-heading {
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 0;
}
.thread-heading-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9.5px;
  color: var(--faint);
  letter-spacing: 0.03em;
}
.thread-board {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 9px;
}
.thread-board .svg-icon { width: 13px; height: 13px; }
.thread-heading h1 {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.05;
  margin: 10px 0 14px;
  max-width: 900px;
}
.thread-heading-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.thread-byline { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); }
.thread-byline a { color: var(--ink-soft); font-weight: 600; }
.thread-byline a:hover { color: var(--accent); }
.thread-quick-stats { display: flex; align-items: center; gap: 16px; font-size: 9.5px; color: var(--faint); }
.thread-quick-stats span { display: inline-flex; align-items: center; gap: 5px; }
.thread-quick-stats .svg-icon { width: 13px; height: 13px; }
.thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.thread-toolbar-left, .thread-toolbar-right { display: flex; align-items: center; gap: 5px; }
.thread-toolbar form { margin: 0; }
.thread-toolbar .btn { border-color: transparent; color: var(--muted); padding-left: 7px; padding-right: 7px; }
.thread-toolbar .btn:hover { color: var(--ink); background: var(--surface-2); }
.thread-toolbar .btn.is-saved { color: var(--accent); }
.thread-toolbar .btn.is-copied { color: var(--accent); }
.post-stream { border-top: 1px solid var(--line-strong); }
.post {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.post:target { animation: post-highlight 1.8s ease; }
@keyframes post-highlight { 0%, 40% { background: var(--accent-soft); } 100% { background: var(--surface); } }
.post-author {
  padding: 19px 17px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 32%, var(--surface));
  min-width: 0;
}
.post-author-avatar { margin-bottom: 9px; }
.post-author-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.post-author-name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.post-author-name:hover { color: var(--accent); }
.post-author-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.post-author-handle { font-size: 9.5px; color: var(--faint); margin-top: 3px; overflow-wrap: anywhere; }
.post-author-stats {
  width: 100%;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-author-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.post-author-stats dt { font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.post-author-stats dd { font-size: 9.5px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-main { padding: 18px 23px 13px; min-width: 0; }
.post-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  font-size: 9px;
  color: var(--faint);
}
.post-stamp { letter-spacing: 0.02em; }
.post-stamp:hover { color: var(--accent); }
.post-number { font-family: var(--mono); color: var(--line-strong); }
.post-replying { margin-left: auto; }
.post-replying a { color: var(--accent); }
.post-body {
  font-size: 14px;
  line-height: 1.76;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.post-body p { margin: 0 0 13px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body--op { font-size: 15px; color: var(--ink); }
.post-body blockquote {
  margin: 0 0 14px;
  padding: 9px 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 4px;
}
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post-body .mention { font-weight: 650; text-decoration: none; background: var(--accent-soft); padding: 1px 4px; }
.post-signature {
  margin-top: 19px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--faint);
  font-style: italic;
}
.post-signature p { margin: 0; }
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.post-action .svg-icon { width: 13px; height: 13px; }
.post-action:hover { color: var(--ink); border-color: var(--line); background: var(--surface-2); }
.post-action--danger:hover { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.reaction-form { margin: 0; display: inline-flex; }
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}
.reaction-btn .svg-icon { width: 13px; height: 13px; }
.reaction-btn:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.reaction-btn.is-liked { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.reaction-btn.is-liked .svg-icon { fill: currentColor; }
.post-meta { display: flex; align-items: center; gap: 11px; font-size: 8.5px; color: var(--faint); white-space: nowrap; }
.post-meta a { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); }
.post-meta a:hover { color: var(--accent); }
.post-meta .svg-icon { width: 11px; height: 11px; }
.post--op { background: var(--surface); }
.post--op .post-head { margin-bottom: 16px; }
.thread-empty { padding: 12px 0; }

/* moderation menu */
.mod-menu { position: relative; }
.mod-menu summary { list-style: none; }
.mod-menu summary::-webkit-details-marker { display: none; }
.mod-panel {
  position: absolute;
  right: 0; top: calc(100% + 5px);
  z-index: 30;
  width: 270px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 13px;
}
.mod-panel h3 { font-family: var(--sans); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.mod-panel .btn { width: 100%; justify-content: flex-start; margin-bottom: 4px; }
.mod-panel form { margin: 0; }
.mod-panel select { min-height: 34px; font-size: 11.5px; margin-bottom: 6px; }
.mod-panel .field { margin-bottom: 8px; }
.mod-panel .field-label { font-size: 9px; }
.mod-hint { font-size: 9px; color: var(--faint); line-height: 1.45; margin-top: 5px; }

/* reply / composer */
.reply-section { margin-top: 35px; }
.reply-head { margin-bottom: 13px; }
.reply-head h2 { font-size: 28px; margin-top: 3px; }
.reply-context { font-size: 11px; color: var(--muted); margin-top: 5px; }
.composer { border: 1px solid var(--line-strong); background: var(--surface); }
.composer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}
.composer-head strong { color: var(--ink); }
.composer-hint { margin-left: auto; font-size: 9px; color: var(--faint); }
.composer textarea {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px;
  min-height: 165px;
  font-size: 13.5px;
  line-height: 1.65;
}
.composer textarea:focus { box-shadow: none; background: color-mix(in srgb, var(--surface) 50%, var(--paper)); }
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 50%, var(--surface));
}
.reply-form { margin: 0; }
.reply-guest {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 20px;
}
.reply-guest-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.reply-guest > div:nth-child(2) { flex: 1; min-width: 0; }
.reply-guest strong { font-family: var(--serif); font-size: 20px; font-weight: 400; display: block; }
.reply-guest p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.reply-guest-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.locked-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 15px;
}
.locked-note > .svg-icon { color: var(--muted); margin-top: 2px; }
.locked-note strong { font-size: 12.5px; }
.locked-note p { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* thread aside */
.thread-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 22px; }
.thread-aside-card .stat-list dd a { color: var(--accent); }
.rule-mark {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 2px 5px;
}
.aside-rule { font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--ink-soft); margin: 9px 0 11px; }
.related-list { display: flex; flex-direction: column; }
.related-list a { padding: 8px 0; border-top: 1px solid var(--line); }
.related-list a:first-child { border-top: 0; padding-top: 0; }
.related-list strong { display: block; font-family: var(--serif); font-size: 14.5px; font-weight: 400; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink-soft); }
.related-list a:hover strong { color: var(--accent); }
.related-list span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--faint); }
.side-card--quiet { background: transparent; }

/* auth */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.85fr);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  margin: 12px 0 20px;
  min-height: 580px;
}
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 50px 45px; }
.auth-form-wrap { width: 100%; max-width: 395px; }
.auth-form-wrap h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); margin: 8px 0 6px; }
.auth-subtitle { font-size: 12.5px; color: var(--muted); margin-bottom: 25px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form .field { margin-bottom: 15px; }
.auth-form .field input { min-height: 45px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 20px; }
.auth-row .text-link { font-size: 10.5px; }
.auth-switch {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.auth-switch a { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-weight: 600; }
.auth-switch .svg-icon { width: 12px; height: 12px; }
.auth-fine { margin-top: 17px; font-size: 9px; line-height: 1.55; color: var(--faint); }
.auth-aside {
  position: relative;
  background: var(--dark);
  color: #e8e9dd;
  padding: 54px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-aside::after {
  content: "LM";
  position: absolute;
  right: -24px; bottom: -74px;
  font-family: var(--serif);
  font-size: 250px;
  line-height: 1;
  color: rgba(255,255,255,0.028);
}
.auth-aside h2 {
  position: relative; z-index: 1;
  color: #f4f1e6;
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  line-height: 0.98;
  margin: 17px 0 19px;
  letter-spacing: -0.035em;
}
.auth-aside h2 em { color: #9fc3ac; }
.auth-aside > p { position: relative; z-index: 1; max-width: 330px; font-size: 12px; line-height: 1.7; color: #a0a496; }
.auth-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 15px; margin: 29px 0; }
.auth-points li { display: flex; align-items: flex-start; gap: 10px; }
.auth-points .svg-icon { width: 15px; height: 15px; color: #8fbaa1; margin-top: 2px; }
.auth-points li span { display: flex; flex-direction: column; font-size: 10px; line-height: 1.5; color: #8d9183; }
.auth-points strong { color: #dcded2; font-size: 11.5px; font-weight: 600; margin-bottom: 1px; }
.auth-quote { position: relative; z-index: 1; margin-top: auto; border-top: 1px solid #30362b; padding-top: 17px; }
.auth-quote p { font-family: var(--serif); font-size: 19px; font-style: italic; color: #c4c8b9; }
.auth-quote span { display: block; margin-top: 5px; font-size: 8px; text-transform: uppercase; letter-spacing: 0.14em; color: #757a6c; }

/* profile */
.profile-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line-strong);
}
.profile-identity { display: flex; align-items: flex-end; gap: 21px; min-width: 0; }
.profile-avatar { flex: 0 0 auto; }
.profile-avatar .avatar { width: 112px; height: 112px; font-size: 33px; border: 1px solid var(--line); }
.profile-copy { min-width: 0; padding-bottom: 3px; }
.profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.profile-name-row h1 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1; }
.profile-handle { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.profile-bio-text { max-width: 640px; margin-top: 11px; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }
.profile-meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 11px; font-size: 10px; color: var(--muted); }
.profile-meta-line > span, .profile-meta-line > a { display: inline-flex; align-items: center; gap: 4px; }
.profile-meta-line .svg-icon { width: 12px; height: 12px; }
.profile-meta-line a:hover { color: var(--accent); }
.profile-edit-link { color: var(--accent); font-weight: 600; }
.profile-stats { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); flex: 0 0 auto; background: var(--surface); }
.profile-stats > div { display: flex; flex-direction: column; align-items: center; min-width: 82px; padding: 10px 15px; border-left: 1px solid var(--line); line-height: 1.1; }
.profile-stats > div:first-child { border-left: 0; }
.profile-stats strong { font-family: var(--serif); font-size: 23px; font-weight: 400; }
.profile-stats span { margin-top: 4px; font-size: 7.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 42px;
  align-items: start;
  margin-top: 35px;
}
.profile-main { min-width: 0; display: flex; flex-direction: column; gap: 37px; }
.profile-section { min-width: 0; }
.profile-thread-list { border-top: 1px solid var(--line); }
.profile-thread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.profile-thread-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.profile-thread-main strong { font-family: var(--serif); font-size: 17px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.profile-thread:hover .profile-thread-main strong { color: var(--accent); }
.profile-thread-main span { font-size: 9px; color: var(--faint); }
.profile-thread-count { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 9px; color: var(--faint); }
.profile-thread-count .svg-icon { width: 12px; height: 12px; transform: rotate(-90deg); }
.profile-post-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.profile-post { padding: 13px 2px; border-bottom: 1px solid var(--line); }
.profile-post-title { font-size: 10px; font-weight: 650; letter-spacing: 0.02em; color: var(--accent); }
.profile-post p { margin: 4px 0 4px; max-width: 76ch; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.profile-post > span:last-child { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--faint); }
.profile-post .svg-icon { width: 11px; height: 11px; }
.profile-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.warning-list { display: flex; flex-direction: column; }
.warning-item { padding: 9px 0; border-top: 1px solid var(--line); }
.warning-item:first-child { border-top: 0; }
.warning-item strong { display: block; font-size: 11px; font-weight: 600; }
.warning-item span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 2px; }
.profile-meta-card .stat-list { margin-top: 9px; }

/* members */
.members-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.members-search { position: relative; flex: 1; min-width: 220px; max-width: 390px; display: flex; align-items: center; }
.members-search span { position: absolute; left: 12px; color: var(--faint); }
.members-search .svg-icon { width: 15px; height: 15px; }
.members-search input { padding-left: 35px; min-height: 38px; }
.members-count { font-size: 10px; color: var(--muted); }
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 11px;
}
.member-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 17px;
  transition: border-color .15s ease, background .15s ease;
}
.member-card:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface-2) 38%, var(--surface)); }
.member-card-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.member-card-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.member-card-copy strong { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-handle { font-size: 9.5px; color: var(--faint); }
.member-meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.member-meta em { font-style: normal; font-size: 8.5px; color: var(--faint); }
.member-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 8.5px;
  color: var(--faint);
}
.member-card-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* account */
.account-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
}
.account-sidebar {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
  padding-top: 17px;
  position: sticky;
  top: 22px;
}
.account-identity { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-identity div { display: flex; flex-direction: column; min-width: 0; }
.account-identity strong { font-size: 12px; line-height: 1.3; }
.account-identity span:not(.avatar) { font-size: 9.5px; color: var(--faint); }
.account-nav { display: flex; flex-direction: column; }
.account-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  font-size: 11px;
  color: var(--muted);
  border-left: 2px solid transparent;
}
.account-nav a:hover { color: var(--ink); background: var(--surface); }
.account-nav a.is-active { color: var(--accent); border-left-color: var(--accent); background: var(--surface); font-weight: 600; }
.account-nav .svg-icon { width: 14px; height: 14px; }
.account-admin-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 9px 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.account-admin-link:hover { color: var(--accent); }
.account-admin-link .svg-icon:first-child { width: 13px; height: 13px; }
.account-admin-link .svg-icon:last-child { width: 11px; height: 11px; margin-left: auto; transform: rotate(-90deg); }
.account-main { min-width: 0; }
.form-heading { margin-bottom: 24px; }
.form-heading h1 { font-size: clamp(2rem, 3.5vw, 2.9rem); margin: 6px 0 7px; }
.form-heading p { max-width: 600px; font-size: 12.5px; color: var(--muted); }
.form-heading--compact { margin-bottom: 21px; }
.form-heading--compact h1 { font-size: 34px; }
.panel-form {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}
.form-section { padding-bottom: 21px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section-head { margin-bottom: 17px; }
.form-section-head h2 { font-size: 24px; margin-top: 2px; }
.form-section-head p { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.form-section .field:last-child { margin-bottom: 0; }
.form-section .form-row .field { margin-bottom: 0; }
.form-section .form-row { margin-bottom: 17px; }
.field--static .static-value {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}
.security-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 22px;
}
.security-summary > div { border: 1px solid var(--line); background: var(--surface); padding: 15px; display: flex; flex-direction: column; }
.security-summary strong { font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.1; margin: 5px 0 4px; }
.security-summary .security-date { font-size: 17px; padding: 6px 0 2px; }
.security-summary p { font-size: 9.5px; line-height: 1.5; color: var(--faint); }
.security-summary .kicker { color: var(--muted); }
.danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
  margin-top: 25px;
  padding: 21px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  background: color-mix(in srgb, var(--danger-soft) 45%, var(--surface));
}
.danger-zone h2 { font-size: 25px; margin: 4px 0 5px; }
.danger-zone p { font-size: 11px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.danger-zone .kicker { color: var(--danger); }
.danger-zone form .field { margin-bottom: 9px; }
.danger-zone form .field-label { font-size: 9px; }

/* generic form pages and compose */
.form-page { max-width: 780px; margin: 0 auto; }
.form-page--narrow { max-width: 630px; }
.compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 46px;
  align-items: start;
}
.compose-main { min-width: 0; }
.compose-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 22px; }
.post-checklist { display: flex; flex-direction: column; margin-top: 12px; }
.post-checklist li { display: flex; flex-direction: column; padding: 9px 0; border-top: 1px solid var(--line); counter-increment: checklist; }
.post-checklist li:first-child { border-top: 0; }
.post-checklist strong { font-size: 10.5px; font-weight: 650; }
.post-checklist span { font-size: 9.5px; line-height: 1.45; color: var(--faint); margin-top: 1px; }
.report-target {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 17px;
  margin-bottom: 21px;
}
.report-target-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.report-target-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--ink); }
.report-target-title:hover { color: var(--accent); }
.report-target > p { margin: 7px 0 10px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.report-target-author { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--faint); }

/* search */
.search-header { max-width: 850px; padding: 12px 0 8px; }
.search-header h1 { font-size: clamp(2.6rem, 4.8vw, 4.1rem); margin: 7px 0 20px; }
.search-form { position: relative; display: flex; align-items: center; }
.search-form .search-icon { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.search-form .search-icon .svg-icon { width: 18px; height: 18px; }
.search-form input {
  height: 48px;
  padding-left: 44px;
  padding-right: 100px;
  background: var(--surface);
  border-color: var(--line-strong);
  font-size: 14px;
}
.search-form .btn { position: absolute; right: 5px; min-height: 38px; }
.search-form--large { margin-bottom: 13px; }
.search-summary { font-size: 11px; color: var(--muted); }
.search-summary strong { color: var(--ink); }
.search-hint { font-size: 10.5px; color: var(--faint); }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 42px; align-items: start; margin-top: 22px; }
.search-main { min-width: 0; }
.search-side { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 14px; }
.search-side-copy { margin-top: 9px; font-size: 11.5px; line-height: 1.65; color: var(--muted); }
.search-side-list { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.search-side-list li { position: relative; padding-left: 13px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.search-side-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; background: var(--accent); }
.search-side-nav { margin-top: 7px; display: flex; flex-direction: column; }
.search-side-nav a { display: grid; grid-template-columns: 16px minmax(0, 1fr) 12px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--ink-soft); }
.search-side-nav a:first-child { border-top: 0; }
.search-side-nav .svg-icon { width: 13px; height: 13px; color: var(--faint); }
.search-side-nav a:hover { color: var(--accent); }
.search-side .side-card--accent { background: var(--accent-soft); }
.segmented-tabs + .search-results { margin-top: 5px; }
.search-results { display: flex; flex-direction: column; gap: 35px; }
.search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  margin-bottom: 3px;
}
.search-group-head h2 { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.search-group-head span { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.search-thread-list, .search-post-list { border-top: 1px solid var(--line); }
.search-thread {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.search-thread:hover { background: color-mix(in srgb, var(--surface) 65%, transparent); }
.search-thread-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.search-thread-main strong { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.search-thread:hover .search-thread-main strong { color: var(--accent); }
.search-thread-excerpt { font-size: 11.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-thread-meta { margin-top: 2px; font-size: 8.5px; color: var(--faint); }
.search-thread-author { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 9px; color: var(--faint); max-width: 140px; }
.search-thread-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-post { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.search-post-title { font-size: 10px; font-weight: 650; color: var(--accent); }
.search-post p { margin: 3px 0 5px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-post-meta { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--faint); }
.search-post-meta .svg-icon { width: 11px; height: 11px; margin-left: auto; }
.search-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.search-tips ul { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.search-tips li { position: relative; padding-left: 13px; font-size: 11.5px; color: var(--muted); }
.search-tips li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: var(--accent); }
.search-tips a { color: var(--accent); text-decoration: underline; }
.search-suggested { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.search-suggested .kicker { width: 100%; margin-bottom: 4px; }
.search-suggested a { border: 1px solid var(--line); background: var(--surface); padding: 5px 10px; font-size: 10.5px; color: var(--ink-soft); }
.search-suggested a:hover { border-color: var(--accent); color: var(--accent); }

/* inbox and notifications */
.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 35px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  color: var(--muted);
}
.inbox-toolbar form { margin: 0; }
.inbox-toolbar .text-link { font-size: 10px; }
.inbox-count { font-size: 9.5px; letter-spacing: 0.02em; }
.notification-list { display: flex; flex-direction: column; }
.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.notification:hover { background: color-mix(in srgb, var(--surface) 75%, transparent); }
.notification.is-unread { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.notification-icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  flex: 0 0 auto;
}
.notification-icon .svg-icon { width: 14px; height: 14px; }
.notification-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.notification-line { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.notification-line strong { color: var(--ink); font-weight: 650; }
.notification-thread { font-family: var(--serif); font-size: 15px; color: var(--accent); line-height: 1.35; }
.notification-time { font-size: 8.5px; color: var(--faint); margin-top: 1px; }
.notification .unread-dot { flex: 0 0 auto; margin-top: 6px; width: 6px; height: 6px; min-width: 0; padding: 0; }
.inbox-foot { display: flex; align-items: flex-start; gap: 8px; margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--faint); }
.inbox-foot .svg-icon { width: 13px; height: 13px; margin-top: 1px; }
.inbox-foot p { font-size: 9.5px; line-height: 1.5; }
.inbox-foot a { color: var(--accent); text-decoration: underline; }
.bookmark-list { border-top: 1px solid var(--line-strong); }
.bookmark-item { position: relative; }
.bookmark-item .thread-line { padding-right: 35px; }
.bookmark-remove { position: absolute; right: 2px; top: 14px; }
.bookmark-remove .icon-btn { width: 27px; height: 27px; border-color: transparent; color: var(--accent); }
.bookmark-remove .svg-icon { width: 13px; height: 13px; fill: currentColor; }

/* prose / rules / privacy */
.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 58px;
  align-items: start;
  max-width: 1070px;
  margin: 0 auto;
}
.prose { max-width: 690px; }
.prose h1 { font-size: clamp(2.9rem, 5vw, 4.3rem); margin: 8px 0 17px; }
.prose h2 { font-size: 27px; margin: 36px 0 10px; scroll-margin-top: 90px; }
.prose h2:first-of-type { margin-top: 30px; }
.prose p { font-size: 13.5px; line-height: 1.78; color: var(--ink-soft); margin-bottom: 13px; }
.prose-lede { font-family: var(--serif); font-size: 20px !important; line-height: 1.55 !important; color: var(--ink) !important; margin-bottom: 26px !important; }
.prose ul { margin: 6px 0 17px; display: flex; flex-direction: column; gap: 7px; }
.prose ul li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.rule-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 23px 0 34px; border: 1px solid var(--line); background: var(--surface); }
.rule-summary > div { padding: 15px; border-left: 1px solid var(--line); }
.rule-summary > div:first-child { border-left: 0; }
.rule-summary span { font-family: var(--mono); font-size: 8.5px; color: var(--faint); }
.rule-summary strong { display: block; margin: 4px 0 3px; font-family: var(--serif); font-size: 17px; font-weight: 400; }
.rule-summary p { margin: 0; font-size: 10px; line-height: 1.55; color: var(--muted); }
.prose-callout { display: flex; gap: 11px; margin-top: 28px; padding: 16px; border: 1px solid var(--line-strong); background: var(--surface); }
.prose-callout > span { color: var(--accent); }
.prose-callout p { margin: 0; font-size: 11.5px; line-height: 1.65; }
.prose-aside { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 25px; padding-top: 5px; }
.prose-aside nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 11px; }
.prose-aside nav a { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.prose-aside nav a:hover { color: var(--accent); }
.prose-aside-note { border-left: 2px solid var(--accent); padding-left: 13px; }
.prose-aside-note p { margin: 7px 0 9px; font-size: 10px; line-height: 1.55; color: var(--muted); }

/* errors / empty pages */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 85px 20px 100px;
  max-width: 650px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--serif);
  font-size: clamp(5rem, 13vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: var(--line-strong);
  margin-bottom: 11px;
}
.error-page h1 { font-size: clamp(2.4rem, 4.7vw, 3.7rem); margin: 10px 0 11px; }
.error-page > p { max-width: 480px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.error-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.error-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 31px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.error-links a { font-size: 10px; color: var(--muted); }
.error-links a:hover { color: var(--accent); }
.thanks-page { padding-top: 70px; }
.thanks-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--accent); color: var(--accent); margin-bottom: 19px; }
.thanks-mark .svg-icon { width: 23px; height: 23px; }
.thanks-fine { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 9.5px !important; color: var(--faint) !important; }

/* admin */
.admin-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 650px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #c6c8ba;
  padding: 21px 14px;
  min-width: 0;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 19px; border-bottom: 1px solid #2b3027; }
.admin-brand-mark { font-family: var(--serif); font-size: 25px; line-height: 1; color: #f2efe5; letter-spacing: -0.05em; }
.admin-brand div { display: flex; flex-direction: column; }
.admin-brand strong { font-size: 10.5px; color: #eceade; font-weight: 600; letter-spacing: 0.01em; }
.admin-brand span:not(.admin-brand-mark) { font-size: 8px; text-transform: uppercase; letter-spacing: 0.11em; color: #74786b; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 15px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  color: #a9ac9e;
  font-size: 11px;
  border-left: 2px solid transparent;
}
.admin-nav a:hover { color: #fff; background: #1b1f18; }
.admin-nav a.is-active { color: #b5d6c1; background: #1c241d; border-left-color: #8fbaa1; }
.admin-nav .svg-icon { width: 14px; height: 14px; }
.admin-nav .nav-badge { margin-left: auto; min-width: 17px; height: 17px; display: inline-grid; place-items: center; background: #9dc7ac; color: #122018; font-size: 8px; font-weight: 750; border-radius: 999px; padding: 0 4px; }
.admin-sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid #292e25; }
.admin-user { display: flex; align-items: center; gap: 7px; padding: 0 6px 11px; }
.admin-user > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.admin-user strong { font-size: 9.5px; color: #dfe1d5; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user em { font-style: normal; font-size: 8px; color: #7f8376; text-transform: capitalize; }
.admin-back { display: flex; align-items: center; gap: 6px; padding: 7px 6px 0; border-top: 1px solid #292e25; color: #8e9284; font-size: 9px; }
.admin-back:hover { color: #fff; }
.admin-back .svg-icon { width: 12px; height: 12px; }
.admin-main { min-width: 0; padding: 27px 29px 40px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-strong); padding-bottom: 17px; margin-bottom: 21px; }
.admin-heading h1 { font-size: 35px; margin-top: 3px; }
.admin-heading p { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.admin-heading-actions { flex: 0 0 auto; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 17px; }
.admin-stat {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-stat .kicker { color: var(--muted); font-size: 8px; letter-spacing: 0.12em; }
.admin-stat strong { font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.1; margin: 4px 0 2px; }
.admin-stat-foot { font-size: 8px; color: var(--faint); }
.admin-stat-foot em { font-style: normal; color: var(--accent); }
.admin-stat.has-alert { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.admin-stat.has-alert strong { color: var(--danger); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr); gap: 12px; }
.admin-panel { border: 1px solid var(--line); background: var(--paper); padding: 16px; min-width: 0; }
.admin-panel--wide { grid-column: auto; }
.admin-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.admin-panel-head h2 { font-size: 20px; margin-top: 1px; }
.admin-panel-head .text-link { font-size: 9px; padding-bottom: 2px; }
.admin-report-mini { display: flex; flex-direction: column; }
.admin-report-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.admin-report-row:first-child { border-top: 0; padding-top: 2px; }
.admin-report-row-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.admin-report-row-copy strong { font-size: 10.5px; font-weight: 650; text-transform: capitalize; }
.admin-report-row-copy span { font-size: 8.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-report-row-time { font-size: 8px; color: var(--faint); flex: 0 0 auto; }
.report-status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.report-status-dot--open { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.report-status-dot--resolved { background: var(--accent); }
.report-status-dot--dismissed { background: var(--faint); }
.admin-member-mini { display: flex; flex-direction: column; }
.admin-member-mini > a { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-top: 1px solid var(--line); }
.admin-member-mini > a:first-child { border-top: 0; padding-top: 0; }
.admin-member-mini > a > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.admin-member-mini strong { font-size: 9.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-member-mini em { font-style: normal; font-size: 8px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-mini { display: flex; flex-direction: column; }
.audit-mini-row { display: flex; align-items: baseline; gap: 7px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 8.5px; min-width: 0; }
.audit-mini-row:first-child { border-top: 0; padding-top: 2px; }
.audit-mini-actor { color: var(--accent); font-weight: 600; flex: 0 0 auto; }
.audit-mini-action { color: var(--muted); text-transform: lowercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.audit-mini time { color: var(--faint); flex: 0 0 auto; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-toolbar--top { align-items: flex-start; }
.admin-search { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 240px; max-width: 380px; }
.admin-search > span { color: var(--faint); }
.admin-search .svg-icon { width: 15px; height: 15px; }
.admin-search input { min-height: 34px; font-size: 11px; padding: 6px 9px; }
.admin-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 9px; }
.admin-filters--line { padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.filter-label { font-size: 8px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-right: 3px; }
.filter-chip { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 9px; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.admin-count { margin-left: auto; font-size: 8.5px; color: var(--faint); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 10px; min-width: 660px; }
.admin-table th {
  text-align: left;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 650;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2);
  white-space: nowrap;
}
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.table-user { display: flex; align-items: center; gap: 6px; }
.table-user > span:last-child { display: flex; flex-direction: column; }
.table-user strong { font-size: 9.5px; font-weight: 600; }
.table-user em { font-style: normal; font-size: 8px; color: var(--faint); }
.table-actions { text-align: right; white-space: nowrap; }
.table-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 10px; }
.admin-note { font-size: 9.5px; line-height: 1.55; color: var(--muted); }
.admin-user-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 15px; }
.admin-user-identity { display: flex; gap: 14px; align-items: center; min-width: 0; }
.admin-user-identity .avatar { width: 78px; height: 78px; font-size: 24px; }
.admin-user-name { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.admin-user-name h2 { font-size: 27px; line-height: 1.1; }
.admin-user-identity p { margin-top: 4px; font-size: 9px; color: var(--muted); overflow-wrap: anywhere; }
.admin-user-links { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 5px; font-size: 8.5px; color: var(--faint); }
.admin-user-links a { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); }
.admin-user-links .svg-icon { width: 10px; height: 10px; }
.admin-user-actions { flex: 0 0 auto; }
.admin-user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.admin-form .field { margin-bottom: 10px; }
.admin-form .field-label { font-size: 9px; }
.admin-form input, .admin-form select { min-height: 34px; font-size: 11px; padding: 6px 9px; }
.ban-summary strong { font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--danger); }
.ban-summary p { font-size: 9.5px; color: var(--muted); margin: 3px 0 11px; }
.temp-password { border: 1px solid var(--warn); background: var(--warn-soft); padding: 14px; margin-bottom: 16px; }
.temp-password p { font-size: 10px; color: var(--muted); margin: 4px 0; }
.temp-password code { display: inline-block; margin: 3px 0; padding: 7px 10px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink); }
.danger-zone--admin { margin-top: 10px; }
.admin-create { position: relative; }
.admin-create summary { list-style: none; }
.admin-create summary::-webkit-details-marker { display: none; }
.admin-create-form { margin-top: 10px; border: 1px solid var(--line); background: var(--paper); padding: 15px; }
.category-admin { border: 1px solid var(--line); background: var(--paper); margin-bottom: 6px; }
.category-admin summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 9px 11px; cursor: pointer; }
.category-admin summary::-webkit-details-marker { display: none; }
.category-admin-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); color: var(--accent); }
.category-admin-icon .svg-icon { width: 13px; height: 13px; }
.category-admin-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.category-admin-copy strong { font-size: 10px; font-weight: 600; }
.category-admin-copy em { font-style: normal; font-size: 8px; color: var(--faint); }
.category-admin-state { flex: 0 0 auto; }
.category-admin summary > .svg-icon { width: 13px; height: 13px; color: var(--faint); }
.category-admin-form { border-top: 1px solid var(--line); padding: 12px; }
.category-admin-form .field { margin-bottom: 9px; }
.category-admin-form .field-label { font-size: 8.5px; }
.category-admin-form input, .category-admin-form textarea, .category-admin-form select { min-height: 33px; font-size: 10.5px; padding: 6px 8px; }
.category-delete { padding: 0 12px 10px; }
.report-card { border: 1px solid var(--line); background: var(--paper); margin-bottom: 9px; }
.report-card-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.report-card-head strong { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.report-card-head .badge { margin-left: auto; }
.report-card-body { padding: 12px; }
.report-card-target { display: flex; flex-direction: column; gap: 2px; }
.report-card-target a { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.report-card-target a:hover { color: var(--accent); }
.report-card-target span { font-size: 8px; color: var(--faint); }
.report-card-quote { margin: 9px 0; padding: 9px 11px; border-left: 2px solid var(--line-strong); background: var(--surface-2); font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.report-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 8px; color: var(--faint); margin-top: 7px; }
.report-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.report-card-actions form { margin: 0; }
.report-card-actions input[type="text"] { min-height: 30px; font-size: 10px; padding: 4px 8px; max-width: 220px; }
.audit-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 130px; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 9.5px; }
.audit-actor { color: var(--accent); }
.audit-action { color: var(--muted); }
.audit-action strong { color: var(--ink-soft); font-weight: 600; }
.audit-time { color: var(--faint); text-align: right; font-size: 8.5px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-grid .admin-panel .field:last-child { margin-bottom: 0; }

/* admin utility details */
.admin-grid--settings { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); }
.admin-grid--settings > .admin-panel--wide { grid-column: 1 / -1; }
.admin-panel--flush { padding: 0; }
.admin-panel--flush .admin-panel-head { padding: 16px 16px 0; margin-bottom: 10px; }
.admin-sub { margin-top: 3px; font-size: 9.5px; color: var(--muted); }
.quick-actions { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 10px; }
.quick-actions a { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.quick-actions a:last-child { border-bottom: 0; }
.quick-actions a > .svg-icon:first-child { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }
.quick-actions a > span { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 10px; font-weight: 600; color: var(--ink-soft); }
.quick-actions em { margin-top: 1px; font-style: normal; font-size: 8px; font-weight: 400; color: var(--faint); }
.quick-actions a > .svg-icon:last-child { width: 12px; height: 12px; color: var(--faint); transform: rotate(-90deg); }
.quick-actions a:hover > span { color: var(--accent); }
.maintenance-actions { display: flex; flex-direction: column; margin-top: 3px; }
.maintenance-actions form { padding: 10px 0; border-top: 1px solid var(--line); }
.maintenance-actions form:first-child { border-top: 0; padding-top: 0; }
.maintenance-actions strong { font-size: 10.5px; font-weight: 650; }
.maintenance-actions p { margin: 2px 0 8px; font-size: 9px; line-height: 1.5; color: var(--muted); }
.audit-table { border-top: 1px solid var(--line); }
.audit-row { grid-template-columns: 118px 92px minmax(0, 1fr) 90px; gap: 10px; align-items: baseline; padding: 7px 16px; }
.audit-meta { grid-column: 2 / -1; font-size: 8px; color: var(--faint); overflow-wrap: anywhere; }
.audit-target { font-size: 8.5px; color: var(--muted); text-align: right; }
.table-title { display: inline; font-size: 10px; line-height: 1.45; color: var(--ink-soft); }
.table-title:hover { color: var(--accent); }
.segmented-tabs--small { margin-top: 7px; margin-bottom: 9px; }
.segmented-tabs--small .segmented-tab { font-size: 9.5px; }
.admin-panel .stat-list--wide { margin-top: 7px; }
.admin-panel .stat-list--wide > div { padding: 7px 0; }
.admin-note { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 1220px) {
  .header-inner { gap: 23px; grid-template-columns: auto minmax(0, 1fr) minmax(160px, 195px) auto; }
  .main-nav { gap: 19px; }
  .home-layout { gap: 36px; grid-template-columns: minmax(0, 1fr) 296px; }
  .content-layout { gap: 35px; grid-template-columns: minmax(0, 1fr) 292px; }
  .thread-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
  .board-row { grid-template-columns: 46px minmax(0, 1fr) minmax(205px, 290px); }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .header-search { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { justify-self: center; }
  .home-layout, .content-layout, .thread-layout, .compose-layout, .profile-layout, .search-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .forum-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-top: 12px; }
  .thread-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; margin-top: 10px; }
  .compose-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-side, .search-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { gap: 28px; }
  .profile-hero { gap: 24px; }
  .admin-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-panel--wide { grid-column: auto; }
  .prose-layout { gap: 38px; grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .site-main { padding: 29px 0 65px; }
  .utility-note { font-size: 10px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 55px 24px 45px; gap: 38px; }
  .hero-copy { max-width: 650px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 9vw, 5rem); }
  .hero-art { min-height: 380px; max-width: 570px; width: 100%; }
  .home-layout { padding-top: 40px; }
  .index-header { align-items: flex-start; }
  .index-header > p { text-align: left; max-width: 260px; }
  .board-row { grid-template-columns: 46px minmax(0, 1fr) minmax(180px, 240px); }
  .board-desc { white-space: normal; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .page-heading-actions { width: 100%; justify-content: flex-start; gap: 19px; }
  .page-heading--simple { flex-direction: row; align-items: flex-end; }
  .page-heading-main .category-icon { width: 52px; height: 52px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-panel { padding: 40px 32px; min-height: 0; }
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .profile-stats { width: 100%; }
  .profile-stats > div { flex: 1; }
  .profile-identity { align-items: flex-start; width: 100%; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .account-sidebar { position: static; border: 1px solid var(--line); background: var(--surface); padding: 13px; }
  .account-identity { padding-bottom: 10px; }
  .account-nav { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .account-nav a { border-left: 0; border: 1px solid var(--line); padding: 5px 9px; font-size: 9.5px; }
  .account-nav a.is-active { background: var(--accent-soft); border-color: transparent; }
  .account-admin-link { border-top: 0; margin-top: 3px; padding: 6px; display: inline-flex; }
  .security-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .danger-zone { grid-template-columns: minmax(0, 1fr); }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { padding: 13px; }
  .admin-brand { padding-bottom: 10px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; margin-top: 9px; gap: 2px; }
  .admin-nav a { border-left: 0; border: 1px solid #30362b; padding: 6px 8px; font-size: 9.5px; }
  .admin-nav a.is-active { border-color: #617a68; background: #1f2a22; }
  .admin-sidebar-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; }
  .admin-user { padding: 0; }
  .admin-back { border-top: 0; padding: 0; }
  .admin-main { padding: 21px 18px 30px; }
  .admin-user-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-heading h1 { font-size: 29px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 480px; }
  .prose-layout { grid-template-columns: minmax(0, 1fr); }
  .prose { max-width: 100%; }
  .prose-aside { position: static; display: none; }
  .search-empty { gap: 30px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-section .form-row .field { margin-bottom: 17px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .utility-inner { min-height: 30px; }
  .utility-note { display: none; }
  .utility-inner { justify-content: flex-end; }
  .utility-note { font-size: 9.5px; }
  .utility-sep { display: none; }
  .utility-links { gap: 12px; }
  .header-inner { min-height: 62px; gap: 12px; grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .header-actions { grid-column: 3; gap: 7px; }
  .header-new span, .header-login { display: none; }
  .header-new { width: 36px; padding: 0; }
  .mobile-toggle { display: inline-grid; }
  .brand-mark { font-size: 29px; }
  .brand-sub { font-size: 7px; padding-left: 9px; }
  .account-caret { display: none; }
  .account-panel { right: -2px; }
  .hero { margin-top: -1px; }
  .hero-inner { padding: 43px 20px 35px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 12.7vw, 4.1rem); margin: 20px 0; }
  .hero-deck { font-size: 13px; }
  .hero-actions { margin: 24px 0 29px; }
  .hero-actions .btn { flex: 1; min-width: 145px; }
  .hero-meta { gap: 19px; flex-wrap: wrap; }
  .hero-meta strong { font-size: 22px; }
  .hero-meta .hero-meta-note { width: 100%; margin-left: 0; }
  .hero-art { min-height: 340px; padding: 25px 12px 45px; }
  .profile-study { max-height: 300px; }
  .hero-art-caption { left: 19px; bottom: 18px; font-size: 7px; }
  .hero-art-stamp { width: 55px; height: 55px; right: 18px; bottom: 42px; }
  .home-layout { gap: 25px; padding-top: 32px; }
  .index-header { flex-direction: column; gap: 8px; }
  .index-header > p { max-width: 100%; padding: 0; }
  .board-row { grid-template-columns: 41px minmax(0, 1fr); padding: 14px 2px; gap: 12px; }
  .board-row:hover { padding-left: 2px; padding-right: 2px; }
  .board-icon .category-icon { width: 38px; height: 38px; }
  .board-title { font-size: 19px; }
  .board-desc { font-size: 10.5px; }
  .board-latest { grid-column: 2; border-left: 0; padding-left: 0; margin-top: 4px; }
  .board-latest-inner strong { font-size: 9.5px; }
  .board-counts { display: none; }
  .home-principle { grid-template-columns: 30px minmax(0, 1fr); padding: 18px; gap: 11px; }
  .home-principle .text-link { grid-column: 2; margin-top: 4px; }
  .home-principle h3 { font-size: 21px; }
  .forum-sidebar { grid-template-columns: minmax(0, 1fr); }
  .thread-aside { grid-template-columns: minmax(0, 1fr); }
  .welcome-title { font-size: 24px; }
  .page-heading { padding-bottom: 20px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading p { font-size: 12px; }
  .page-heading-actions { gap: 13px; flex-wrap: wrap; }
  .page-heading-actions .btn { margin-left: auto; }
  .page-heading--simple { flex-direction: column; gap: 14px; }
  .heading-count { flex-direction: row; align-items: baseline; gap: 5px; }
  .heading-count strong { font-size: 25px; }
  .breadcrumbs { margin-bottom: 19px; font-size: 8.5px; }
  .board-stat strong { font-size: 21px; }
  .thread-line { grid-template-columns: minmax(0, 1fr) 54px; }
  .thread-line-view { display: none; }
  .thread-line-last { display: none; }
  .thread-line-title > a { font-size: 16px; }
  .thread-line-stats { border-left: 0; }
  .list-toolbar { font-size: 10px; }
  .list-sort { display: none; }
  .segmented-tab { padding-left: 10px; padding-right: 10px; font-size: 10px; }
  .segmented-tab:first-child { padding-left: 0; }
  .thread-heading h1 { font-size: 29px; }
  .thread-heading-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .thread-toolbar { flex-wrap: wrap; }
  .thread-toolbar-left, .thread-toolbar-right { flex-wrap: wrap; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .post-author-avatar { margin: 0; }
  .post-author-avatar .avatar { width: 40px; height: 40px; font-size: 13px; }
  .post-author-info { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 5px; }
  .post-author-name { font-size: 16px; }
  .post-author-badges { margin-top: 0; }
  .post-author-handle { margin-top: 0; margin-left: auto; }
  .post-author-stats { display: none; }
  .post-main { padding: 14px 13px 10px; }
  .post-body { font-size: 13.5px; }
  .post-body--op { font-size: 14px; }
  .post-footer { flex-wrap: wrap; }
  .post-meta { margin-left: auto; }
  .reply-guest { flex-direction: column; align-items: flex-start; }
  .reply-guest-actions { width: 100%; }
  .reply-guest-actions .btn { flex: 1; }
  .composer-hint { display: none; }
  .auth-panel { padding: 30px 21px; }
  .auth-form-wrap h1 { font-size: 36px; }
  .form-page { max-width: 100%; }
  .panel-form { padding: 18px 16px; }
  .profile-identity { flex-direction: column; gap: 13px; }
  .profile-avatar .avatar { width: 82px; height: 82px; font-size: 24px; }
  .profile-name-row h1 { font-size: 35px; }
  .profile-stats > div { min-width: 0; padding: 9px 8px; }
  .profile-stats strong { font-size: 20px; }
  .profile-thread-main strong { font-size: 15px; }
  .profile-thread-count { font-size: 8px; }
  .member-grid { grid-template-columns: minmax(0, 1fr); }
  .security-summary { grid-template-columns: minmax(0, 1fr); }
  .form-heading h1 { font-size: 34px; }
  .form-heading--compact h1 { font-size: 30px; }
  .search-header h1 { font-size: 37px; }
  .search-form input { height: 44px; padding-right: 82px; font-size: 13px; }
  .search-form .btn { min-height: 34px; font-size: 10px; padding: 5px 10px; }
  .search-empty { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .search-side { grid-template-columns: minmax(0, 1fr); }
  .search-thread { gap: 12px; }
  .search-thread-author { display: none; }
  .search-thread-main strong { font-size: 18px; }
  .notification-line { font-size: 11px; }
  .notification-thread { font-size: 14px; }
  .rule-summary { grid-template-columns: minmax(0, 1fr); }
  .rule-summary > div { border-left: 0; border-top: 1px solid var(--line); }
  .rule-summary > div:first-child { border-top: 0; }
  .prose h1 { font-size: 40px; }
  .prose h2 { font-size: 24px; }
  .prose-lede { font-size: 18px !important; }
  .admin-table--users, .admin-table--content { min-width: 0; }
  .admin-table--users th:nth-child(2), .admin-table--users td:nth-child(2),
  .admin-table--users th:nth-child(4), .admin-table--users td:nth-child(4),
  .admin-table--users th:nth-child(5), .admin-table--users td:nth-child(5),
  .admin-table--users th:nth-child(6), .admin-table--users td:nth-child(6) { display: none; }
  .admin-table--content th:nth-child(2), .admin-table--content td:nth-child(2),
  .admin-table--content th:nth-child(3), .admin-table--content td:nth-child(3),
  .admin-table--content th:nth-child(4), .admin-table--content td:nth-child(4),
  .admin-table--content th:nth-child(5), .admin-table--content td:nth-child(5) { display: none; }
  .admin-table th, .admin-table td { padding: 7px 8px; }
  .admin-table td .table-user { gap: 7px; }
  .admin-table td .table-user em { font-size: 8.5px; }
  .admin-table .btn--xs { padding: 4px 7px; font-size: 8px; }
  .admin-stats { gap: 6px; }
  .admin-stat { padding: 10px; }
  .admin-stat strong { font-size: 26px; }
  .admin-toolbar { align-items: stretch; }
  .admin-search { max-width: 100%; }
  .admin-filters { gap: 4px; }
  .admin-count { margin-left: 0; width: 100%; }
  .admin-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .admin-heading-actions { width: 100%; }
  .admin-user-head { flex-direction: column; }
  .admin-user-identity { align-items: flex-start; }
  .admin-user-identity .avatar { width: 60px; height: 60px; font-size: 18px; }
  .admin-user-name h2 { font-size: 24px; }
  .admin-user-links { gap: 7px; }
  .audit-row { grid-template-columns: 75px minmax(0, 1fr); }
  .audit-time { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 33px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: 40px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-bottom p:last-child { max-width: 340px; font-size: 9.5px; line-height: 1.5; }
  .error-page { padding: 55px 10px 70px; }
}

@media (max-width: 470px) {
  .brand-sub { display: none; }
  .header-actions { gap: 4px; }
  .notification-btn { width: 32px; height: 32px; }
  .account-menu summary { padding: 1px; }
  .header-new { width: 32px; height: 32px; min-height: 32px; }
  .mobile-toggle { width: 32px; height: 32px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 13.8vw, 3.3rem); }
  .hero-meta { gap: 14px; }
  .hero-art { display: none; }
  .profile-study { max-height: 250px; }
  .hero-art-caption { display: none; }
  .hero-art-stamp { bottom: 14px; width: 46px; height: 46px; }
  .hero-art-stamp strong { font-size: 15px; }
  .page-heading-actions .btn { margin-left: 0; }
  .page-heading-actions .board-stat { display: none; }
  .thread-line { grid-template-columns: minmax(0, 1fr); }
  .thread-line-stats { display: none; }
  .thread-line-avatar { display: none; }
  .thread-line-meta { font-size: 9px; }
  .post-action { padding: 4px 5px; font-size: 8px; }
  .post-action .svg-icon { width: 12px; height: 12px; }
  .composer textarea { min-height: 145px; }
  .profile-handle { font-size: 9.5px; }
  .member-card-foot { font-size: 8px; }
  .admin-nav a span { display: none; }
  .admin-nav a { padding: 7px; }
  .admin-nav .nav-badge { margin-left: 0; }
  .admin-sidebar-foot .admin-back { font-size: 0; }
  .admin-sidebar-foot .admin-back .svg-icon { width: 14px; height: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { border-top: 1px solid #272c23; padding-top: 13px; }
  .footer-brand { grid-column: auto; }
  .search-suggested a { font-size: 9.5px; }
}

/* PSL, tiers, tags, owner identity, uploads, post media */

/* PSL */
.psl-badge {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.psl-badge--sub3, .psl-badge--sub5 { color: #8a2e25; border-color: #b98d83; background: #f4e4df; }
.psl-badge--ltn, .psl-badge--mtn { color: #5d5a4e; }
.psl-badge--htn { color: #1f4d3a; border-color: #97b3a4; background: #e2e9df; }
.psl-badge--chadlite { color: #2c4c66; border-color: #9bb4c4; background: #e2e9ee; }
.psl-badge--chad { color: #6b4b1f; border-color: #c3a46b; background: #f2e8d4; }
.psl-badge--true_adam { color: #4c3a17; border-color: #a8873d; background: #efe2bd; }

/* tiers */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 17px;
  padding: 0 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tier-badge--grey { color: #77786d; }
.tier-badge--cyan { color: #0d6d79; border-color: #91b8bb; }
.tier-badge--purple { color: #64418c; border-color: #b4a1c7; }
.tier-badge--black { color: #25261f; border-color: #8e8f83; background: #e7e5db; }
.tier-badge--white { color: #4f4d40; border-color: #b6ad8e; background: #f8f3df; }

.tier-progress { height: 3px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.tier-progress > span { display: block; height: 100%; background: var(--muted); }
.tier-progress--cyan > span { background: #2e8c97; }
.tier-progress--purple > span { background: #7452a0; }
.tier-progress--black > span { background: #25261f; }
.tier-progress--white > span { background: #b99a4e; }
.tier-progress--max > span { background: linear-gradient(90deg, #b99a4e, #efe0ad); }

/* member tags */
.user-tags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.user-tag {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.user-tag--gold { color: #70521f; border-color: #c9ad72; background: #f3e8cc; }
.user-tag--red { color: #8a2e25; border-color: #c99a92; background: #f4e4df; }
.user-tag--violet { color: #5b3d82; border-color: #b5a0c8; background: #eee7f2; }
.user-tag--amber { color: #7b5114; border-color: #ceb180; background: #f5ead7; }
.user-tag--green { color: #1f4d3a; border-color: #9bb8a8; background: #e2e9df; }
.user-tag--blue { color: #2c4c66; border-color: #9db7c8; background: #e2e9ee; }
.user-tag--cyan { color: #0d6d79; border-color: #91b8bb; background: #e0eef0; }
.user-tag--muted { color: var(--muted); }

/* owner + staff */
.badge--owner {
  color: #4a3512;
  border-color: #b08a45;
  background: linear-gradient(100deg, #f0e2b9, #f8f0d6 45%, #e4cc92);
  letter-spacing: 0.12em;
}
.badge--owner::before { content: "◆"; font-size: 7px; margin-right: 3px; }
.identity--owner { color: #8b6428; }

/* animated usernames */
.username--tier-grey { color: #77786d; }
.username--tier-cyan { color: #0d6d79; }
.username--tier-purple { color: #64418c; }
.username--tier-black { color: #25261f; }
.username--tier-white {
  color: #f7f1dd;
  text-shadow: 0 0 1px #2d2a1e, 0 1px 0 rgba(45, 42, 30, 0.55);
}
.identity--owner.username--tier-white { color: #f0d9a0; }
.identity--owner.username--tier-black { color: #6b4b1f; }
.identity--mod.username--tier-cyan { color: #2c4c66; }

.username--apex {
  background: linear-gradient(100deg, #8a6428 0%, #d8b56c 30%, #f2e2b4 50%, #b88a3f 72%, #8a6428 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: apex-shimmer 8s linear infinite;
}
.username--jester { animation: jester-tilt 5.5s ease-in-out infinite; }
.identity--owner {
  background: linear-gradient(100deg, #5a3e18 0%, #a77b35 26%, #ecd39a 48%, #8e6529 70%, #5a3e18 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: owner-shimmer 9s linear infinite;
}
@keyframes owner-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 240% 50%; } }
@keyframes apex-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
@keyframes jester-tilt { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-1.4deg); } 94% { transform: rotate(1.2deg); } 97% { transform: rotate(-0.6deg); } }

/* profile PSL card */
.psl-card { padding: 16px; }
.psl-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.psl-card-head h2 { font-size: 28px; line-height: 1; margin-top: 2px; }
.psl-card-result {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  white-space: nowrap;
}
.psl-card-note { margin-top: 8px; font-size: 9.5px; line-height: 1.5; color: var(--muted); }
.psl-distribution { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.psl-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 20px; align-items: center; gap: 7px; font-size: 8.5px; color: var(--muted); }
.psl-row-track { height: 4px; background: var(--surface-2); overflow: hidden; }
.psl-row-track i { display: block; height: 100%; background: var(--accent); opacity: .65; }
.psl-row em { font-style: normal; text-align: right; font-family: var(--mono); font-size: 8px; color: var(--faint); }
.psl-form { margin-top: 8px; }
.psl-options { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.psl-option {
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 27px;
  padding: 3px 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  transition: border-color .12s ease, background .12s ease;
}
.psl-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.psl-option.is-selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.psl-own-note { margin-top: 10px; font-size: 9.5px; color: var(--faint); font-style: italic; }

/* post images */
.post-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 14px 0 4px; max-width: 620px; }
.post-gallery:has(.post-image:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.post-image { display: block; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.post-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.post-image:hover img { transform: scale(1.015); opacity: .92; }

/* compose upload */
.composer-attach { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.file-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.file-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-button .svg-icon { width: 12px; height: 12px; }
.file-button input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-note { font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--faint); }
.file-note.is-set { color: var(--accent); }
.file-note.is-warn { color: var(--warn); }
.file-list { flex: 1 0 100%; width: 100%; margin-top: 2px; border-top: 1px solid var(--line); }
.attach-file { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.attach-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 9px; color: var(--ink-soft); }
.attach-file-size { margin-left: auto; white-space: nowrap; font-family: var(--mono); font-size: 8px; color: var(--faint); }
.attach-file-remove { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.attach-file-remove:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft, transparent); }
.composer-meter { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 150px; }
.composer-meter-track { flex: 1; height: 3px; background: var(--line); overflow: hidden; }
.composer-meter-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .15s ease; }
.composer-meter-track span.is-near { background: var(--warn); }
.composer-meter-track span.is-over { background: var(--danger); }
.char-count { font-family: var(--mono); font-size: 8.5px; color: var(--faint); white-space: nowrap; min-width: 82px; text-align: right; }
.char-count.is-near { color: var(--warn); }
.char-count.is-over { color: var(--danger); }

/* avatar upload */
.avatar-upload { display: flex; align-items: center; gap: 18px; padding: 14px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avatar-upload-preview .avatar { width: 82px; height: 82px; font-size: 24px; border: 1px solid var(--line); }
.avatar-upload-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.avatar-upload-copy .field-label { margin: 0; }
.avatar-upload-copy .check-line { margin-top: 2px; }
.avatar-upload-copy .file-list { flex-basis: auto; }

/* owner tag panel */
.assigned-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag-remove { display: inline-flex; align-items: center; gap: 2px; }
.tag-remove button { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--faint); }
.tag-remove button:hover { color: var(--danger); border-color: var(--danger); }
.tag-remove button .svg-icon { width: 10px; height: 10px; }
.admin-panel--tags { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .identity--owner, .username--apex, .username--jester { animation: none; }
}

/* basic course */

.page-course .site-main { padding-top: 0; }
.page-course-read .site-main { padding-top: 28px; }

.course-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--dark);
  color: var(--dark-ink);
  border-bottom: 1px solid #2b3027;
  overflow: hidden;
}
.course-hero-copy, .course-hero-mark {
  max-width: var(--container-wide);
}
.course-hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 40px;
  padding: 74px max(32px, calc((100vw - var(--container-wide)) / 2 + 32px)) 58px;
  align-items: end;
}
.course-hero .kicker { color: #9fc3ac; }
.course-hero h1 {
  margin: 20px 0 20px;
  color: #f5f1e5;
  font-size: clamp(3.4rem, 6vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.course-hero-lede { max-width: 630px; font-size: 15px; line-height: 1.7; color: #b7b9ac; }
.course-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; padding-top: 14px; border-top: 1px solid #30352c; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #85897b; }
.course-hero-meta span::before { content: "/"; color: #576052; margin-right: 8px; }
.course-hero-mark {
  justify-self: end;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 4px;
  color: #ece8da;
  font-family: var(--serif);
  font-size: clamp(5.5rem, 10vw, 9rem);
  line-height: .8;
  letter-spacing: -.08em;
  align-self: center;
}
.course-hero-mark span { position: relative; }
.course-hero-mark span::after { content: ""; position: absolute; left: 4%; right: 0; bottom: 12%; height: 1px; background: #8fbaa1; }
.course-hero-mark small { font-family: var(--mono); font-size: 8px; line-height: 1.5; letter-spacing: .17em; color: #8d9182; padding-bottom: 4px; }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 54px; padding-top: 42px; align-items: start; }
.course-index-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-strong); padding-bottom: 13px; }
.course-index-head p { max-width: 430px; font-size: 10px; line-height: 1.5; color: var(--muted); text-align: right; }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; }
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 174px;
  padding: 18px 22px 16px 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background .15s ease;
}
.course-card:nth-child(2n) { border-right: 0; }
.course-card:hover { background: var(--surface); }
.course-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: transparent; }
.course-card--foundation::before { background: var(--accent); }
.course-card--face::before { background: #8a6a3c; }
.course-card--body::before { background: #3f6d79; }
.course-card--medical::before { background: #6d4e87; }
.course-card--experimental::before { background: var(--danger); }
.course-card-num { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .1em; }
.course-card-kicker { margin-top: 2px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.course-card strong { margin-top: 15px; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.02; letter-spacing: -.02em; max-width: 26ch; }
.course-card-summary { margin-top: 8px; font-size: 10.5px; line-height: 1.55; color: var(--muted); max-width: 43ch; }
.course-card-arrow { position: absolute; top: 17px; right: 17px; color: var(--faint); opacity: 0; transform: translate(-3px, 3px); transition: opacity .15s ease, transform .15s ease; }
.course-card-arrow .svg-icon { width: 14px; height: 14px; }
.course-card:hover .course-card-arrow { opacity: 1; transform: none; }
.course-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.course-aside .side-card { padding: 16px; }
.course-aside-title { margin-top: 4px; font-size: 24px; }
.course-rules { margin-top: 12px; border-top: 1px solid var(--line); }
.course-rules li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.course-rules strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 400; line-height: 1.2; }
.course-rules span { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.45; color: var(--muted); }
.aside-rule { margin-top: 7px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.course-next { display: flex; flex-direction: column; gap: 4px; padding: 15px 16px; background: var(--accent); color: #fff; }
.course-next .kicker { color: #c8ddcf; }
.course-next strong { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.1; }
.course-next span:last-child { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: #d6e5db; }
.course-next .svg-icon { width: 12px; height: 12px; }

/* chapter reading */
.course-read-layout { display: grid; grid-template-columns: 190px minmax(0, 760px) 1fr; gap: 48px; align-items: start; }
.course-toc { position: sticky; top: 24px; padding-top: 4px; }
.course-toc nav { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); }
.course-toc nav a { display: flex; align-items: baseline; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.35; color: var(--ink-soft); }
.course-toc nav a span { font-family: var(--mono); font-size: 7.5px; color: var(--faint); }
.course-toc nav a:hover { color: var(--accent); }
.course-toc-back { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.course-toc-back:hover { color: var(--accent); }
.course-toc-back .svg-icon { width: 11px; height: 11px; }
.course-article { min-width: 0; }
.course-article-head { border-bottom: 1px solid var(--line-strong); padding-bottom: 24px; }
.course-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.course-article-meta .kicker { color: var(--accent); }
.course-article h1 { margin: 20px 0 18px; font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: .92; letter-spacing: -.04em; }
.course-standfirst { max-width: 660px; font-family: var(--serif); font-size: 21px; line-height: 1.42; color: var(--ink-soft); }
.course-figure { margin: 30px 0 36px; border: 1px solid var(--line); background: var(--surface-2); padding: 18px 18px 12px; }
.course-figure svg { width: 100%; height: auto; color: var(--ink-soft); }
.course-figure .study-copy-side { font-size: 10.5px; letter-spacing: .8px; }
.course-figure--tight svg { max-height: 330px; margin: 0 auto; }
.course-figure figcaption { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 8px; line-height: 1.5; letter-spacing: .04em; color: var(--muted); }
.course-prose { margin-top: 34px; }
.course-prose section { padding-bottom: 25px; margin-bottom: 27px; border-bottom: 1px solid var(--line); }
.course-prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.course-prose h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 15px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; }
.course-prose h2 span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--faint); font-weight: 400; }
.course-prose p { max-width: 68ch; margin-bottom: 13px; font-size: 14px; line-height: 1.78; color: var(--ink-soft); }
.course-prose p:last-child { margin-bottom: 0; }
.course-prose strong { color: var(--ink); font-weight: 650; }
.course-prose blockquote {
  margin: 22px 0 4px;
  padding: 3px 0 3px 19px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 30ch;
}
.course-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-strong); margin-top: 8px; }
.course-pros, .course-cons { padding: 18px 20px 20px; }
.course-pros { border-right: 1px solid var(--line); background: color-mix(in srgb, var(--accent-soft) 45%, var(--paper)); }
.course-cons { background: color-mix(in srgb, var(--danger-soft) 32%, var(--paper)); }
.course-pros .kicker { color: var(--accent); }
.course-cons .kicker { color: var(--danger); }
.course-balance ul { margin-top: 11px; }
.course-balance li { position: relative; padding: 6px 0 6px 13px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: 10.5px; line-height: 1.5; color: var(--ink-soft); }
.course-balance li:first-child { border-top: 0; }
.course-balance li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.course-verdict { margin-top: 26px; padding: 20px 22px; background: var(--dark); color: var(--dark-ink); }
.course-verdict .kicker { color: #9fc3ac; }
.course-verdict p { margin-top: 6px; font-family: var(--serif); font-size: 24px; line-height: 1.3; max-width: 40ch; }
.course-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line-strong); margin-top: 32px; padding-top: 16px; }
.course-pager a { display: flex; flex-direction: column; gap: 3px; }
.course-pager a:hover strong { color: var(--accent); }
.course-pager strong { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.15; }
.course-pager-next { text-align: right; align-items: flex-end; }

@media (max-width: 1100px) {
  .course-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; }
  .course-read-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 860px) {
  .course-hero { grid-template-columns: 1fr; padding-top: 54px; }
  .course-hero-mark { display: none; }
  .course-layout { grid-template-columns: 1fr; }
  .course-aside { position: static; }
  .course-read-layout { grid-template-columns: 1fr; gap: 20px; }
  .course-toc { position: static; }
  .course-toc nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .course-balance { grid-template-columns: 1fr; }
  .course-pros { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .course-hero { padding-left: 20px; padding-right: 20px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { border-right: 0; min-height: 0; }
  .course-index-head { display: block; }
  .course-index-head p { margin-top: 6px; text-align: left; }
  .course-card strong { font-size: 22px; }
  .course-toc nav { grid-template-columns: 1fr; }
  .course-article h1 { font-size: 2.9rem; }
  .course-standfirst { font-size: 18px; }
  .course-prose p { font-size: 13.5px; }
  .course-balance { grid-template-columns: 1fr; }
  .course-pager { grid-template-columns: 1fr; }
  .course-pager-next { text-align: left; align-items: flex-start; }
}

/* hall of fame */

.hall-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--dark);
  color: var(--dark-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .46fr);
  gap: 40px;
  padding: 62px max(32px, calc((100vw - var(--container-wide)) / 2 + 32px)) 48px;
  border-bottom: 1px solid #2b3027;
}
.hall-hero .kicker { color: #9fc3ac; }
.hall-hero h1 { margin: 20px 0 20px; color: #f5f1e5; font-size: clamp(3.4rem, 6.4vw, 6.8rem); line-height: .88; letter-spacing: -.05em; }
.hall-hero p { max-width: 540px; font-size: 14px; line-height: 1.7; color: #adb0a2; }
.hall-hero-meta { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 26px; padding-top: 13px; border-top: 1px solid #30352c; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #85897b; }
.hall-hero-meta span::before { content: "/"; color: #576052; margin-right: 7px; }
.hall-hero-art { align-self: end; justify-self: end; text-align: right; }
.hall-arch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 230px;
  height: 310px;
  border: 1px solid #495044;
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
  padding-bottom: 24px;
  color: #eee8d8;
  background:
    linear-gradient(180deg, transparent 58%, rgba(143, 186, 161, .09) 100%),
    repeating-linear-gradient(90deg, transparent 0 47px, #252a22 47px 48px);
}
.hall-arch span { font-family: var(--serif); font-size: 84px; line-height: .75; letter-spacing: -.08em; }
.hall-arch small { margin-top: 10px; font-family: var(--mono); font-size: 7px; line-height: 1.55; letter-spacing: .19em; color: #8e9384; }
.hall-art-caption { margin-top: 11px; font-family: var(--mono); font-size: 7.5px; line-height: 1.5; letter-spacing: .08em; color: #6e7366; max-width: 230px; }

.hall-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-strong); }
.hall-feature { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 17px; padding: 24px 22px; border-right: 1px solid var(--line); align-items: start; }
.hall-feature:last-child { border-right: 0; }
.hall-feature--1 { background: color-mix(in srgb, #b69251 8%, var(--paper)); }
.hall-feature-copy { min-width: 0; padding-top: 2px; }
.hall-feature-copy h2 { margin: 7px 0 3px; font-size: clamp(1.7rem, 2.7vw, 2.4rem); line-height: .95; }
.hall-alias { font-size: 9px; color: var(--faint); font-family: var(--mono); letter-spacing: .04em; }
.hall-feature-copy > p:last-child { margin-top: 9px; font-size: 10px; line-height: 1.55; color: var(--muted); }

.hall-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #171913;
  color: #eee9db;
  border: 1px solid #3a4035;
  padding: 12px;
  isolation: isolate;
}
.hall-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(238, 233, 219, .06) 23px 24px),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(238, 233, 219, .05) 23px 24px);
}
.hall-plate::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 130%;
  height: 55%;
  left: -15%;
  bottom: -22%;
  border-radius: 50%;
  background: rgba(143, 186, 161, .12);
  filter: blur(2px);
}
.hall-plate--2::after { background: rgba(182, 146, 81, .16); }
.hall-plate--3::after { background: rgba(124, 151, 166, .14); }
.hall-plate--4::after { background: rgba(148, 118, 151, .14); }
.hall-plate--5::after { background: rgba(165, 120, 91, .14); }
.hall-plate--sm { width: 100%; min-height: 126px; }
.hall-plate--lg { width: 132px; height: 166px; }
.hall-plate-index { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: #858a7c; }
.hall-plate-initials { font-family: var(--serif); font-size: 42px; line-height: .8; letter-spacing: -.06em; color: #e9e2ce; }
.hall-plate--lg .hall-plate-initials { font-size: 56px; }
.hall-plate-name {
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d9283;
  overflow-wrap: anywhere;
}

.hall-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 36px; align-items: start; }
.hall-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-strong); padding-bottom: 11px; }
.hall-list-head p { font-size: 9.5px; color: var(--muted); text-align: right; }
.hall-grid { display: grid; grid-template-columns: 1fr 1fr; }
.hall-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 13px; padding: 16px 15px 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.hall-card:nth-child(2n) { padding-left: 15px; border-left: 1px solid var(--line); }
.hall-card .hall-plate { width: 84px; min-height: 102px; padding: 9px; }
.hall-card .hall-plate-initials { font-size: 31px; }
.hall-card-copy { min-width: 0; }
.hall-card-rank { font-family: var(--mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.hall-card-copy h2 { margin: 5px 0 2px; font-size: 20px; line-height: 1; }
.hall-card-copy > p:last-child { margin-top: 6px; font-size: 9.5px; line-height: 1.5; color: var(--muted); }
.hall-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.hall-aside .side-card { padding: 16px; }
.hall-aside .side-card p { margin-top: 7px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.hall-aside .side-card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
  .hall-body { grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; }
  .hall-feature { grid-template-columns: 106px minmax(0, 1fr); padding: 20px 16px; }
  .hall-plate--lg { width: 106px; height: 146px; }
}
@media (max-width: 860px) {
  .hall-hero { grid-template-columns: 1fr; }
  .hall-hero-art { display: none; }
  .hall-podium { grid-template-columns: 1fr; }
  .hall-feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .hall-feature:last-child { border-bottom: 0; }
  .hall-body { grid-template-columns: 1fr; }
  .hall-aside { position: static; }
  .hall-list-head { display: block; }
  .hall-list-head p { margin-top: 5px; text-align: left; }
}
@media (max-width: 620px) {
  .hall-hero { padding-left: 20px; padding-right: 20px; }
  .hall-grid { grid-template-columns: 1fr; }
  .hall-card:nth-child(2n) { padding-left: 0; border-left: 0; }
  .hall-card { grid-template-columns: 78px minmax(0, 1fr); }
  .hall-card .hall-plate { width: 78px; min-height: 96px; }
  .hall-feature { grid-template-columns: 88px minmax(0, 1fr); gap: 13px; padding: 18px 0; }
  .hall-plate--lg { width: 88px; height: 124px; }
  .hall-plate--lg .hall-plate-initials { font-size: 42px; }
}

/* dark-surface corrections and final responsive adjustments */

:root[data-theme="dark"] .psl-badge { background: #1a1e18; border-color: #434a3e; color: #c4c7b8; }
:root[data-theme="dark"] .psl-badge--sub3,
:root[data-theme="dark"] .psl-badge--sub5 { color: #dfa79c; border-color: #6d443c; background: #2a1c18; }
:root[data-theme="dark"] .psl-badge--htn { color: #9fcbb2; border-color: #3f5f4e; background: #19241d; }
:root[data-theme="dark"] .psl-badge--chadlite { color: #a9c4d6; border-color: #3f5665; background: #192229; }
:root[data-theme="dark"] .psl-badge--chad { color: #dcc18a; border-color: #695534; background: #282116; }
:root[data-theme="dark"] .psl-badge--true_adam { color: #f0d99a; border-color: #7d6430; background: #2c2514; }

:root[data-theme="dark"] .user-tag { background: #191d16; border-color: #3c4337; color: #b8bbad; }
:root[data-theme="dark"] .user-tag--gold { color: #dfc58a; border-color: #675536; background: #272116; }
:root[data-theme="dark"] .user-tag--red { color: #dda69c; border-color: #6e463e; background: #2a1c18; }
:root[data-theme="dark"] .user-tag--violet { color: #c0a8d8; border-color: #574668; background: #211b28; }
:root[data-theme="dark"] .user-tag--amber { color: #ddbd87; border-color: #665336; background: #272116; }
:root[data-theme="dark"] .user-tag--green { color: #9fcbb2; border-color: #3f5f4e; background: #19241d; }
:root[data-theme="dark"] .user-tag--blue { color: #a9c4d6; border-color: #3f5665; background: #192229; }
:root[data-theme="dark"] .user-tag--cyan { color: #8cc9cf; border-color: #385b5e; background: #162222; }

:root[data-theme="dark"] .tier-badge--grey { color: #9c9e91; }
:root[data-theme="dark"] .tier-badge--cyan { color: #7dc5cc; border-color: #3b5f62; }
:root[data-theme="dark"] .tier-badge--purple { color: #b9a0d5; border-color: #534467; }
:root[data-theme="dark"] .tier-badge--black { color: #d8d5c7; border-color: #5f6155; background: #23251e; }
:root[data-theme="dark"] .tier-badge--white { color: #f4e8c8; border-color: #857142; background: #2b2618; }

:root[data-theme="dark"] .badge--owner { color: #f0d8a1; border-color: #8c6e38; background: linear-gradient(100deg, #332614, #4b3a1e 48%, #2b2112); }
:root[data-theme="dark"] .username--tier-grey { color: #9c9e91; }
:root[data-theme="dark"] .username--tier-cyan { color: #7dc5cc; }
:root[data-theme="dark"] .username--tier-purple { color: #b9a0d5; }
:root[data-theme="dark"] .username--tier-black { color: #dedbcf; }
:root[data-theme="dark"] .psl-option { background: #171a14; }
:root[data-theme="dark"] .psl-option.is-selected { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .course-card:hover { background: #171a14; }
:root[data-theme="dark"] .course-figure { background: #151812; }

/* header with six links stays legible before the drawer takes over */
@media (max-width: 980px) {
  .main-nav a[href="/rules"] { display: none; }
  .main-nav { gap: 15px; font-size: 12px; }
}
@media (max-width: 840px) and (min-width: 701px) {
  .main-nav a[href="/new"] { display: none; }
  .main-nav { gap: 13px; font-size: 11.5px; }
}
@media (max-width: 520px) {
  .proportion-overlay .study-copy-side { display: none; }
}
@media (max-width: 470px) {
  .hero-art--portrait { display: block; width: 100%; max-width: 100%; aspect-ratio: 5 / 6; max-height: 460px; min-height: 0; padding: 0; }
  .proportion-overlay .study-copy text { font-size: 9px; }
  .proportion-overlay .study-copy-sub { font-size: 7.5px; }
  .course-hero h1 { font-size: 3rem; }
}
