/* =========================================================
   临汾一中 · 教师红榜
   Editorial paper / red-and-ink visual system
   ========================================================= */

:root {
  --paper: #f3ede1;
  --paper-deep: #e9e0d0;
  --paper-dark: #ded2be;
  --card: #fffdf8;
  --ink: #1e1d19;
  --ink-soft: #3f3c35;
  --muted: #756e62;
  --muted-light: #9b9385;
  --line: rgba(30, 29, 25, 0.13);
  --line-strong: rgba(30, 29, 25, 0.28);
  --red: #a52f27;
  --red-deep: #7f211c;
  --red-bright: #c2473b;
  --red-wash: #f4dfd9;
  --charcoal: #22211e;
  --gold: #aa8247;
  --green: #4d6551;
  --green-wash: #e1e8dd;
  --display: Georgia, "Times New Roman", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 0 rgba(30, 29, 25, 0.04), 0 8px 22px rgba(54, 43, 25, 0.05);
  --shadow-md: 0 2px 0 rgba(30, 29, 25, 0.03), 0 18px 48px rgba(54, 43, 25, 0.09);
  --shadow-lg: 0 30px 90px rgba(34, 27, 16, 0.22);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --header-h: 76px;
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 8% 2%, rgba(255, 253, 247, 0.9) 0%, transparent 42%),
    radial-gradient(ellipse at 94% 12%, rgba(165, 47, 39, 0.045) 0%, transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(170, 130, 71, 0.06) 0%, transparent 46%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

::selection {
  color: var(--card);
  background: var(--red);
}

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

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 3000;
  padding: 10px 16px;
  color: var(--card);
  background: var(--ink);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 3000;
  padding: 14px 18px;
  color: var(--card);
  background: var(--red);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ---------- Shared type ---------- */

.section-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-error {
  padding: 10px 13px;
  color: var(--red-deep);
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  font-size: 13px;
  line-height: 1.6;
}

.form-success {
  padding: 10px 13px;
  color: var(--green);
  background: var(--green-wash);
  border-left: 3px solid var(--green);
  font-size: 13px;
}

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

.button {
  --btn-bg: var(--ink);
  --btn-fg: var(--card);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 24px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 29, 25, 0.14);
}

.button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.button-red {
  --btn-bg: var(--red);
  --btn-border: var(--red);
  --btn-fg: #fff9f3;
}

.button-red:hover:not(:disabled) {
  --btn-bg: var(--red-deep);
  --btn-border: var(--red-deep);
}

.button-ink {
  --btn-bg: var(--ink);
  --btn-border: var(--ink);
  --btn-fg: var(--card);
}

.button-ghost {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
  --btn-fg: var(--ink);
}

.button-ghost:hover:not(:disabled) {
  --btn-bg: rgba(255, 253, 248, 0.55);
  --btn-border: var(--ink);
}

.button-paper {
  --btn-bg: var(--paper);
  --btn-border: var(--paper);
  --btn-fg: var(--ink);
}

.button-danger {
  --btn-bg: var(--red);
  --btn-border: var(--red);
  --btn-fg: #fff9f3;
}

.button-sm {
  min-height: 38px;
  padding: 0 17px;
  font-size: 13px;
}

.button-xs {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.button-block {
  width: 100%;
}

.button-quiet {
  min-height: 32px;
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
}

.button-quiet:hover {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link span {
  transition: transform 0.18s ease;
}

.text-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.text-link:hover span {
  transform: translateY(3px);
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.back-link:hover {
  color: var(--red);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(243, 237, 225, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  width: min(100% - 48px, var(--max));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-seal {
  display: inline-grid;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 4px 0;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px rgba(165, 47, 39, 0.35);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-1.5deg);
}

.brand-seal span {
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.brand-large {
  margin-bottom: 58px;
}

.brand-seal-large {
  width: 58px;
  height: 58px;
  font-size: 21px;
}

.brand-large .brand-text strong {
  font-size: 24px;
}

.brand-large .brand-text small {
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff8f2;
  background: var(--red);
  border-radius: 9px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 6px 4px 4px;
  background: rgba(255, 253, 248, 0.5);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.account-chip:hover {
  background: var(--card);
  border-color: var(--line-strong);
}

.account-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip .role-chip {
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--card);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.avatar-red {
  background: var(--red);
}

.avatar-lg {
  width: 68px;
  height: 68px;
  font-size: 30px;
}

.verified-mark {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: var(--card);
  background: var(--green);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--paper-deep);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.role-chip.owner {
  color: var(--card);
  background: var(--red);
}

.role-chip.admin {
  color: var(--card);
  background: var(--ink);
}

.role-chip.verified {
  color: var(--green);
  background: var(--green-wash);
}

.role-chip.banned {
  color: var(--card);
  background: var(--red-deep);
}

.button-danger-ghost {
  --btn-bg: transparent;
  --btn-border: rgba(165, 47, 39, 0.3);
  --btn-fg: var(--red-deep);
}

.button-danger-ghost:hover:not(:disabled) {
  --btn-bg: var(--red-wash);
  --btn-border: var(--red);
}

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

.hero-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-wrap::before {
  content: "榜";
  position: absolute;
  top: 46%;
  right: -2%;
  color: rgba(30, 29, 25, 0.027);
  font-family: var(--display);
  font-size: clamp(380px, 46vw, 680px);
  line-height: 0.8;
  pointer-events: none;
  transform: translateY(-50%) rotate(-4deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.72fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 84px 0 92px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(45px, 5.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero h1 em {
  position: relative;
  color: var(--red);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 4px;
  left: 1px;
  height: 7px;
  background: var(--red);
  opacity: 0.18;
  transform: skewX(-10deg);
}

.hero-lead {
  max-width: 530px;
  margin-top: 27px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.hero-disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
}

.hero-board {
  position: relative;
  z-index: 1;
  animation: rise-in 0.7s 0.13s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.board-frame {
  position: relative;
  padding: 25px 26px 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 38%),
    var(--card);
  border: 1px solid var(--line-strong);
  box-shadow:
    12px 12px 0 rgba(165, 47, 39, 0.065),
    0 24px 60px rgba(67, 52, 29, 0.1);
}

.frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.frame-top span:last-child {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.frame-counts {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--line);
}

.frame-count {
  position: relative;
  padding: 20px 4px 17px;
}

.frame-count span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.frame-count strong {
  display: block;
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: clamp(52px, 5.5vw, 72px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.frame-count small {
  color: var(--muted);
  font-size: 10px;
}

.frame-count-red span,
.frame-count-red strong {
  color: var(--red);
}

.frame-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.frame-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-right: 14px;
}

.frame-meta div + div {
  padding-right: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.frame-meta span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.frame-meta strong {
  font-family: var(--display);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.frame-teachers {
  padding-top: 15px;
}

.frame-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.teacher-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.teacher-chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  overflow: hidden;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

button.teacher-chip:hover {
  color: var(--red);
  background: var(--red-wash);
  border-color: rgba(165, 47, 39, 0.3);
}

.teacher-chip.placeholder {
  color: var(--muted);
  border-style: dashed;
}

.frame-stamp {
  position: absolute;
  top: 64px;
  right: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 3px;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 2px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.5;
  transform: rotate(7deg);
}

.frame-stamp::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 0.5px solid rgba(165, 47, 39, 0.55);
}

.board-caption {
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: center;
}

.vertical-motto {
  position: absolute;
  top: 50%;
  right: 10px;
  color: rgba(30, 29, 25, 0.28);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.35em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

/* ---------- Board ---------- */

.board-section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 78px 0 30px;
  scroll-margin-top: 96px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading h2 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-intro {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  text-align: right;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
}

.board-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.board-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.board-summary-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}

.board-summary strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 264px;
  height: 42px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.search-box:focus-within {
  background: var(--card);
  border-color: var(--ink);
}

.search-icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0 10px 0 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0 8px 0 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted-light);
}

.search-clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

.search-clear:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sort-button:hover {
  background: var(--card);
  border-color: var(--line-strong);
}

.sort-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 14px;
}

.sort-icon::before,
.sort-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.sort-icon::before {
  top: 0;
  border-bottom: 5px solid var(--muted);
}

.sort-icon::after {
  bottom: 0;
  border-top: 5px solid var(--muted);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  min-height: 280px;
}

.evaluation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 25px 24px 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 30%),
    var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  animation: card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.evaluation-card[data-type="red"] {
  border-top-color: var(--red);
}

.evaluation-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.evaluation-card::after {
  content: "“";
  position: absolute;
  right: 18px;
  bottom: 54px;
  color: rgba(30, 29, 25, 0.045);
  font-family: Georgia, serif;
  font-size: 105px;
  line-height: 0.8;
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  color: var(--card);
  background: var(--ink);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.type-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.type-badge.red {
  background: var(--red);
}

.card-date {
  color: var(--muted-light);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.teacher-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.teacher-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.teacher-subject {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.card-content {
  position: relative;
  z-index: 1;
  margin: 10px 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.card-content.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.read-more {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: -14px 0 18px;
  padding: 0;
  color: var(--red);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.read-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.author .avatar {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

.author-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anonymous-name {
  color: var(--muted);
  font-style: normal;
}

.card-kind-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 34px solid var(--paper-deep);
  border-left: 34px solid transparent;
  opacity: 0.65;
  pointer-events: none;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 54px 24px;
  background: rgba(255, 253, 248, 0.45);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 31px;
  opacity: 0.7;
}

.empty-state h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.empty-state p {
  max-width: 380px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state .button {
  margin-top: 22px;
}

.skeleton-card {
  min-height: 268px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-top: 3px solid var(--paper-dark);
  overflow: hidden;
}

.skeleton-line {
  height: 10px;
  margin: 18px 24px;
  background: linear-gradient(90deg, var(--paper-deep) 20%, #f8f3e9 45%, var(--paper-deep) 70%);
  background-size: 300% 100%;
  border-radius: 4px;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-line.short {
  width: 42%;
}

.skeleton-line.title {
  height: 24px;
  width: 56%;
  margin-top: 32px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  margin-top: 32px;
}

.pager button,
.pager span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.pager button:hover:not(:disabled) {
  background: var(--card);
  border-color: var(--line);
}

.pager button.is-current {
  color: var(--card);
  background: var(--ink);
  border-color: var(--ink);
}

.pager .pager-info {
  margin-left: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* ---------- Principles ---------- */

.principles {
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 88% 0%, rgba(165, 47, 39, 0.22), transparent 42%),
    radial-gradient(ellipse at 6% 100%, rgba(170, 130, 71, 0.1), transparent 42%),
    var(--ink);
}

.principles::before {
  content: "约";
  position: absolute;
  right: -1%;
  bottom: -14%;
  color: rgba(243, 237, 225, 0.035);
  font-family: var(--display);
  font-size: 430px;
  line-height: 0.8;
  pointer-events: none;
}

.principles-inner,
.principles > div {
  position: relative;
  z-index: 1;
}

.principles {
  padding: 82px 0;
}

.principles > div {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 120px);
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.principles-heading .section-kicker {
  color: #d98b7f;
}

.principles-heading h2 {
  margin: 16px 0 22px;
  font-family: var(--display);
  font-size: clamp(36px, 4.1vw, 54px);
  font-weight: 700;
  line-height: 1.18;
}

.principles-heading > p:last-child {
  max-width: 340px;
  color: rgba(243, 237, 225, 0.6);
  font-size: 13px;
  line-height: 1.9;
}

.principle-list {
  display: flex;
  flex-direction: column;
}

.principle-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 23px 0 27px;
  border-top: 1px solid rgba(243, 237, 225, 0.17);
}

.principle-list li:last-child {
  border-bottom: 1px solid rgba(243, 237, 225, 0.17);
}

.principle-num {
  color: rgba(217, 139, 127, 0.9);
  font-family: var(--display);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.principle-list h3 {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.principle-list p {
  max-width: 570px;
  color: rgba(243, 237, 225, 0.66);
  font-size: 13px;
  line-height: 1.9;
}

/* ---------- CTA ---------- */

.write-cta {
  position: relative;
  width: min(100% - 48px, var(--max));
  margin: 90px auto;
  padding: 68px 72px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), transparent 48%),
    var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.cta-stripe {
  position: absolute;
  top: 0;
  width: 50%;
  height: 7px;
}

.cta-stripe-red {
  left: 0;
  background: var(--red);
}

.cta-stripe-ink {
  right: 0;
  background: var(--ink);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.write-cta h2 {
  margin: 13px 0 19px;
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.15;
}

.write-cta p:not(.section-kicker) {
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.cta-mark {
  position: absolute;
  right: 42px;
  bottom: -45px;
  color: rgba(165, 47, 39, 0.055);
  font-family: var(--display);
  font-size: 300px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

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

.site-footer {
  color: rgba(243, 237, 225, 0.68);
  background: var(--charcoal);
  border-top: 4px solid var(--red);
}

.footer-inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 54px 0 46px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-seal-small {
  width: 37px;
  height: 37px;
  color: #d98b7f;
  border-color: #d98b7f;
  box-shadow: inset 0 0 0 2px var(--charcoal), inset 0 0 0 3px rgba(217, 139, 127, 0.35);
  font-size: 13px;
}

.footer-brand strong {
  display: block;
  color: var(--paper);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.footer-brand p {
  color: rgba(243, 237, 225, 0.38);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.footer-note {
  max-width: 620px;
  color: rgba(243, 237, 225, 0.45);
  font-size: 11px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: rgba(243, 237, 225, 0.45);
  font-size: 10px;
}

.footer-links a {
  color: rgba(243, 237, 225, 0.7);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #e2a79d;
}

/* ---------- Generic page / forms ---------- */

.page-shell {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 62px 0 100px;
}

.page-heading {
  max-width: 700px;
  margin-bottom: 45px;
}

.page-heading h1 {
  margin: 8px 0 13px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
}

.page-heading > p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.field > span small {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  font-size: 14px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input {
  height: 47px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-light);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: var(--card);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(30, 29, 25, 0.055);
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.checkbox-row input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

/* ---------- Setup ---------- */

.view-setup {
  min-height: calc(100vh - var(--header-h));
}

body.setup-mode .site-header {
  position: relative;
}

body.setup-mode .main-nav,
body.setup-mode .header-actions,
body.setup-mode .site-footer,
body.setup-mode .paper-grain {
  display: none;
}

.setup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  width: min(100% - 48px, 1160px);
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: 70px 0;
}

.setup-brand h1 {
  margin: 16px 0 24px;
  font-family: var(--display);
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.12;
}

.setup-lead {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

.setup-lead strong {
  color: var(--red);
}

.setup-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 30px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.setup-notes div {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
}

.setup-notes span {
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.setup-notes p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.setup-footnote {
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.setup-card {
  position: relative;
  padding: 38px 38px 30px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 12px 12px 0 rgba(165, 47, 39, 0.07), var(--shadow-md);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.setup-card h2 {
  margin: 23px 0 5px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
}

.setup-card > .muted {
  margin-bottom: 24px;
  font-size: 12px;
}

.setup-card .fine-print {
  margin-top: 18px;
  text-align: center;
}

/* ---------- Verify ---------- */

.verify-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.verify-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 4px;
}

.verify-steps::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 38px;
  left: 17px;
  width: 1px;
  background: var(--line-strong);
}

.verify-step {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 15px;
}

.verify-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.verify-step.is-current > span {
  color: var(--card);
  background: var(--red);
  border-color: var(--red);
}

.verify-step h3 {
  margin: 2px 0 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}

.verify-step p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.privacy-note {
  margin-top: 35px;
  padding: 18px;
  background: var(--paper-deep);
  border-left: 2px solid var(--gold);
}

.privacy-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.privacy-note p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.verify-main {
  min-width: 0;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
}

.form-heading {
  margin-bottom: 2px;
}

.form-heading h2 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
}

.form-heading p {
  color: var(--muted);
  font-size: 11px;
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 245px;
  padding: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  background: #fffaf1;
  border-color: var(--red);
}

.upload-zone.has-file {
  padding: 10px;
  border-style: solid;
}

.upload-icon {
  position: relative;
  width: 38px;
  height: 34px;
  margin-bottom: 16px;
  border: 1.5px solid var(--red);
  border-radius: 4px;
}

.upload-icon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 7px;
  width: 13px;
  height: 7px;
  border: 1.5px solid var(--red);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.upload-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  transform: translateX(-50%);
}

.upload-title {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.upload-hint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.upload-preview {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  border-radius: 2px;
}

.upload-zone.has-file .upload-icon,
.upload-zone.has-file .upload-title,
.upload-zone.has-file .upload-hint {
  display: none;
}

.verification-status-card {
  margin-bottom: 25px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.verification-status-card.status-approved {
  border-left-color: var(--green);
}

.verification-status-card.status-pending {
  border-left-color: var(--gold);
}

.verification-status-card.status-rejected {
  border-left-color: var(--red);
  background: #fffaf7;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.status-head h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  color: var(--muted);
  background: var(--paper-deep);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.status-pill.approved {
  color: var(--green);
  background: var(--green-wash);
}

.status-pill.pending {
  color: #8b692f;
  background: #f3e7cd;
}

.status-pill.rejected {
  color: var(--red-deep);
  background: var(--red-wash);
}

.status-pill.admin {
  color: var(--card);
  background: var(--ink);
}

.status-pill.owner {
  color: var(--card);
  background: var(--red);
}

.verification-status-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.verification-status-card .status-meta {
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 10px;
}

.verification-status-card blockquote {
  margin: 12px 0 0;
  padding: 10px 13px;
  color: var(--ink-soft);
  background: var(--paper);
  border-left: 2px solid var(--line-strong);
  font-size: 12px;
  line-height: 1.7;
}

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

.account-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(165, 47, 39, 0.4), transparent 55%),
    var(--ink);
  border: 1px solid var(--ink);
}

.profile-card::after {
  content: "档案";
  position: absolute;
  right: -12px;
  bottom: -28px;
  color: rgba(243, 237, 225, 0.035);
  font-family: var(--display);
  font-size: 100px;
  line-height: 1;
  pointer-events: none;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}

.profile-top .avatar {
  color: var(--ink);
  background: var(--paper);
}

.profile-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.profile-handle {
  color: rgba(243, 237, 225, 0.5);
  font-size: 11px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.profile-card .role-chip {
  color: rgba(243, 237, 225, 0.8);
  background: rgba(243, 237, 225, 0.1);
}

.profile-card .role-chip.owner {
  color: #fff;
  background: var(--red);
}

.profile-card .role-chip.admin {
  color: var(--ink);
  background: var(--paper);
}

.profile-card .role-chip.verified {
  color: #c4d8c0;
  background: rgba(109, 145, 105, 0.22);
}

.profile-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid rgba(243, 237, 225, 0.14);
  font-size: 11px;
}

.profile-stat span {
  color: rgba(243, 237, 225, 0.5);
}

.profile-stat strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.profile-card .button-ghost {
  --btn-border: rgba(243, 237, 225, 0.28);
  --btn-fg: var(--paper);
  --btn-bg: transparent;
}

.profile-card .button-ghost:hover {
  --btn-bg: rgba(243, 237, 225, 0.08);
  --btn-border: rgba(243, 237, 225, 0.55);
}

.account-main {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
}

.account-status-panel .verification-status-card {
  margin-bottom: 0;
}

.my-posts {
  padding: 28px;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}

.panel-heading h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.panel-heading p {
  color: var(--muted);
  font-size: 11px;
}

.my-evaluations {
  display: flex;
  flex-direction: column;
}

.mini-evaluation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.mini-type {
  width: 5px;
  height: 100%;
  min-height: 43px;
  background: var(--ink);
  border-radius: 2px;
}

.mini-type.red {
  background: var(--red);
}

.mini-body {
  min-width: 0;
}

.mini-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-title strong {
  font-family: var(--display);
  font-size: 17px;
}

.mini-title span {
  color: var(--muted);
  font-size: 10px;
}

.mini-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-date {
  color: var(--muted-light);
  font-size: 10px;
  white-space: nowrap;
}

.account-empty {
  padding: 35px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}

.profile-logout {
  margin-top: 4px;
}

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

.admin-shell {
  max-width: 1180px;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.admin-heading h1 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.1;
}

.admin-heading p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 13px;
}

.admin-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.admin-identity strong {
  display: block;
  font-size: 12px;
}

.admin-identity > div > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 35px;
  background: var(--line);
  border: 1px solid var(--line);
}

.admin-stat {
  padding: 21px 22px;
  background: var(--card);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.admin-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.admin-stat.stat-red strong {
  color: var(--red);
}

.admin-stat.stat-gold strong {
  color: #9a712f;
}

.admin-stat.stat-green strong {
  color: var(--green);
}

.admin-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 0 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.admin-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: var(--ink);
}

.admin-tab.is-active::after {
  transform: scaleX(1);
}

.admin-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 3px;
  padding: 0 5px;
  color: var(--card);
  background: var(--red);
  border-radius: 10px;
  font-size: 9px;
  line-height: 1;
}

.admin-panel {
  min-height: 330px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--paper-deep);
  border-radius: var(--radius-sm);
}

.segmented button {
  min-height: 30px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
}

.segmented button.is-active {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 4px rgba(30, 29, 25, 0.09);
}

.admin-search {
  width: min(100%, 300px);
}

.admin-search .search-box {
  width: 100%;
  background: var(--card);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 40px 20px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.45);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.admin-empty .empty-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  font-size: 23px;
}

.admin-empty h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

.admin-empty p {
  max-width: 390px;
  font-size: 11px;
  line-height: 1.7;
}

.verification-item {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--card);
}

.verification-thumb {
  position: relative;
  display: block;
  width: 125px;
  height: 88px;
  padding: 0;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.verification-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.verification-thumb:hover img {
  transform: scale(1.04);
}

.verification-thumb.is-loading::after {
  content: "加载中";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.verification-thumb.is-error::after {
  content: "图片不可用";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--red);
  background: var(--red-wash);
  font-size: 10px;
}

.verification-thumb img[hidden] {
  display: none;
}

.verification-info {
  min-width: 0;
}

.verification-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.verification-name strong {
  font-family: var(--display);
  font-size: 18px;
}

.verification-name span {
  color: var(--muted);
  font-size: 10px;
}

.verification-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.verification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted-light);
  font-size: 9px;
}

.verification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 210px;
}

.admin-evaluation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--card);
}

.admin-evaluation-body {
  min-width: 0;
}

.admin-evaluation-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-evaluation-top strong {
  font-family: var(--display);
  font-size: 18px;
}

.admin-evaluation-content {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-evaluation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted-light);
  font-size: 9px;
}

.admin-evaluation .button-danger {
  justify-self: end;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--card);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.member-info .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.member-name {
  min-width: 0;
}

.member-name strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.member-name span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.member-name .ban-note {
  margin-top: 2px;
  color: var(--red-deep);
  font-size: 10px;
}

.member-flags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.member-date {
  color: var(--muted-light);
  font-size: 9px;
  white-space: nowrap;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.audit-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 15px 18px;
  background: var(--card);
}

.audit-action {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.audit-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.audit-detail {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.audit-detail small {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
}

.audit-time {
  color: var(--muted-light);
  font-size: 9px;
  white-space: nowrap;
}

.admin-pager {
  margin-top: 18px;
}

/* ---------- Modals ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 21, 16, 0.58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fade-in 0.18s ease both;
}

.modal {
  position: relative;
  width: min(100%, 600px);
  max-height: min(90vh, 920px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 16%),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  overscroll-behavior: contain;
}

.modal-lg {
  width: min(100%, 760px);
}

.modal-sm {
  width: min(100%, 440px);
}

.modal-image {
  width: min(100%, 940px);
}

.modal-header {
  position: relative;
  padding: 27px 30px 17px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  padding-right: 40px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
}

.modal-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 19px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--paper);
}

.modal-body {
  padding: 24px 30px 28px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 17px 30px;
  background: rgba(243, 237, 225, 0.55);
  border-top: 1px solid var(--line);
}

.modal-footer .button {
  min-height: 40px;
}

.modal-image .modal-body {
  padding: 18px;
  background: var(--paper-deep);
}

.modal-image img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.auth-switch {
  display: flex;
  gap: 25px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.auth-switch button {
  position: relative;
  padding: 0 0 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
}

.auth-switch button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.auth-switch button.is-active {
  color: var(--ink);
}

.auth-switch button.is-active::after {
  transform: scaleX(1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-hint {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.auth-footer {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.char-counter {
  margin-top: -2px;
  color: var(--muted-light);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.form-divider {
  height: 1px;
  margin: 2px 0;
  background: var(--line);
}

.confirm-copy {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.confirm-copy strong {
  color: var(--red);
}

.confirm-copy p + p {
  margin-top: 9px;
}

.owner-transfer-note {
  margin: 12px 0;
  padding: 11px 13px;
  color: var(--muted);
  background: var(--paper);
  border-left: 2px solid var(--gold);
  font-size: 11px;
  line-height: 1.75;
}

.image-loading {
  display: grid;
  place-items: center;
  min-height: 45vh;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Toast ---------- */

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  color: var(--paper);
  background: var(--ink);
  border-left: 3px solid var(--red);
  box-shadow: 0 14px 36px rgba(20, 17, 12, 0.28);
  font-size: 12px;
  line-height: 1.6;
  animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: auto;
}

.toast.is-success {
  border-left-color: #7ea27d;
}

.toast.is-error {
  border-left-color: var(--red-bright);
}

.toast.is-leaving {
  animation: toast-out 0.22s ease both;
}

.toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

/* ---------- Animations ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(18px);
  }
}

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

@media (max-width: 1120px) {
  .hero {
    gap: 55px;
  }

  .hero h1 {
    font-size: clamp(44px, 5.6vw, 64px);
  }

  .vertical-motto {
    display: none;
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 12px;
  }

  .account-name,
  .account-chip .role-chip {
    display: none;
  }

  .account-chip {
    width: 38px;
    padding: 4px;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 67px 0 70px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-board {
    width: min(100%, 480px);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-intro {
    max-width: 600px;
    text-align: left;
  }

  .principles > div {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .principles-heading > p:last-child {
    max-width: 500px;
  }

  .setup-shell {
    grid-template-columns: 1fr;
    gap: 45px;
    max-width: 620px;
    padding: 55px 0 70px;
  }

  .setup-brand h1 {
    font-size: 48px;
  }

  .setup-notes {
    max-width: 100%;
  }

  .verify-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .verify-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .verify-steps {
    gap: 20px;
  }

  .privacy-note {
    margin-top: 0;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 420px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-links {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .header-inner {
    width: min(100% - 32px, var(--max));
    gap: 14px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .button-sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .brand-seal {
    width: 37px;
    height: 37px;
    font-size: 13px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .hero {
    width: min(100% - 32px, var(--max));
    padding: 48px 0 58px;
  }

  .hero h1 {
    font-size: clamp(40px, 10.5vw, 54px);
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 27px;
  }

  .board-section {
    width: min(100% - 32px, var(--max));
    padding-top: 55px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .board-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 17px 0;
  }

  .toolbar-right {
    width: 100%;
  }

  .search-box {
    flex: 1;
    width: auto;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .principles {
    padding: 58px 0;
    margin-top: 58px;
  }

  .principles > div {
    width: min(100% - 32px, var(--max));
  }

  .principles-heading h2 {
    font-size: 38px;
  }

  .principle-list li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .write-cta {
    width: min(100% - 32px, var(--max));
    margin: 58px auto;
    padding: 46px 30px;
  }

  .cta-mark {
    right: -30px;
    font-size: 210px;
  }

  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .page-shell {
    width: min(100% - 32px, 1120px);
    padding: 42px 0 70px;
  }

  .page-heading {
    margin-bottom: 32px;
  }

  .page-heading h1 {
    font-size: 40px;
  }

  .setup-shell {
    width: min(100% - 32px, 620px);
    padding-top: 40px;
  }

  .setup-brand h1 {
    font-size: 42px;
  }

  .setup-card {
    padding: 27px 22px 24px;
    box-shadow: 7px 7px 0 rgba(165, 47, 39, 0.07), var(--shadow-md);
  }

  .verify-aside {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .verify-steps {
    display: none;
  }

  .verify-form {
    padding: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .my-posts {
    padding: 22px;
  }

  .mini-evaluation {
    grid-template-columns: auto 1fr;
  }

  .mini-date {
    display: none;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .admin-identity {
    align-self: stretch;
    white-space: normal;
  }

  .verification-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 15px;
  }

  .verification-thumb {
    width: 88px;
    height: 75px;
  }

  .verification-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
    padding-top: 3px;
  }

  .admin-evaluation {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-evaluation .button-danger {
    justify-self: start;
  }

  .member-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .member-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .member-date {
    display: none;
  }

  .audit-item {
    grid-template-columns: 1fr auto;
    gap: 5px 14px;
    padding: 13px 15px;
  }

  .audit-action {
    grid-column: 1;
  }

  .audit-detail {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .audit-time {
    grid-column: 2;
    grid-row: 1;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    max-height: 92vh;
  }

  .modal-header {
    padding: 22px 20px 15px;
  }

  .modal-header h2 {
    font-size: 23px;
  }

  .modal-body {
    padding: 19px 20px 22px;
  }

  .modal-footer {
    padding: 14px 20px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 39px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .frame-counts {
    grid-template-columns: 1fr;
  }

  .frame-count strong {
    font-size: 49px;
  }

  .frame-stamp {
    display: none;
  }

  .sort-button {
    padding: 0 10px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .principles-heading h2 {
    font-size: 34px;
  }

  .write-cta {
    padding: 38px 23px;
  }

  .write-cta h2 {
    font-size: 36px;
  }

  .setup-brand h1 {
    font-size: 37px;
  }

  .brand-large {
    margin-bottom: 38px;
  }

  .setup-card {
    padding: 24px 18px 22px;
  }

  .page-heading h1 {
    font-size: 36px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stat {
    padding: 16px;
  }

  .admin-stat strong {
    font-size: 29px;
  }

  .admin-tabs {
    gap: 20px;
  }

  .verification-item {
    grid-template-columns: 1fr;
  }

  .verification-thumb {
    width: 100%;
    height: 150px;
  }

  .verification-actions {
    grid-column: 1;
  }

  .audit-item {
    grid-template-columns: 1fr;
  }

  .audit-time {
    grid-column: 1;
    grid-row: 3;
  }

  .toast-root {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

