:root {
  --bg: oklch(0.956 0.007 80);
  --paper: oklch(0.993 0.003 85);
  --oat-50: oklch(0.985 0.004 75);
  --oat-100: oklch(0.968 0.006 75);
  --oat-200: oklch(0.93 0.008 75);
  --oat-300: oklch(0.872 0.011 75);
  --hairline: oklch(0.905 0.009 78);
  --field-edge: oklch(0.62 0.013 75);

  --ink: oklch(0.27 0.009 75);
  --ink-strong: oklch(0.225 0.008 75);
  --ink-soft: oklch(0.385 0.011 75);
  --muted: oklch(0.52 0.013 75);
  --muted-light: oklch(0.58 0.012 75);

  --haze-50: oklch(0.975 0.012 245);
  --haze-100: oklch(0.948 0.022 245);
  --haze-200: oklch(0.895 0.034 245);
  --haze-600: oklch(0.55 0.068 245);
  --haze-700: oklch(0.46 0.064 245);

  --sage-50: oklch(0.974 0.012 150);
  --sage-100: oklch(0.946 0.022 150);
  --sage-700: oklch(0.46 0.058 150);

  --honey-50: oklch(0.975 0.018 72);
  --honey-100: oklch(0.948 0.034 72);
  --honey-700: oklch(0.47 0.086 72);

  --rose-50: oklch(0.975 0.014 18);
  --rose-100: oklch(0.948 0.026 18);
  --rose-600: oklch(0.54 0.095 18);
  --rose-700: oklch(0.47 0.088 18);

  --mauve-50: oklch(0.975 0.012 315);
  --mauve-100: oklch(0.948 0.022 315);
  --mauve-700: oklch(0.47 0.056 315);

  --shadow-xs: 0 1px 1px oklch(0.4 0.02 70 / 0.04);
  --shadow-sm: 0 1px 2px oklch(0.4 0.02 70 / 0.05), 0 4px 14px -8px oklch(0.4 0.02 70 / 0.14);
  --shadow-md: 0 2px 4px oklch(0.4 0.02 70 / 0.05), 0 14px 30px -14px oklch(0.4 0.02 70 / 0.22);

  --radius-sm: 0.75rem;
  --radius-md: 1.05rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.625rem;
  --radius-pill: 999px;

  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.281 6.7%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.077 22.1%, 1.104 24.8%, 1.11 27.8%,
    1.074 34.2%, 1.032 40.3%, 0.996 49.4%, 0.991 53.7%, 1.001 70.5%, 1
  );
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-padding-top: 5rem;
  accent-color: var(--haze-600);
  caret-color: var(--haze-600);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.975rem;
  line-height: 1.68;
}
::selection {
  background: var(--haze-200);
  color: var(--ink-strong);
}

main {
  flex: 1;
  overflow-wrap: break-word;
  animation: page-rise 260ms var(--ease-out) both;
}
@keyframes page-rise {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}

.nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 100;
  background: var(--haze-600);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}
.nav-progress.is-loading {
  opacity: 1;
  animation: nav-loading 5s cubic-bezier(0.1, 0.6, 0.2, 1) forwards;
}
@keyframes nav-loading {
  from { transform: scaleX(0.06); }
  to { transform: scaleX(0.86); }
}

a {
  color: var(--haze-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}
a:hover { color: var(--ink-strong); }

a, button, summary, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  transition-property: color, background-color, border-color, box-shadow, opacity, scale, translate;
  transition-duration: 180ms, 180ms, 180ms, 180ms, 180ms, 420ms, 220ms;
  transition-timing-function:
    var(--ease-out), var(--ease-out), var(--ease-out), var(--ease-out), var(--ease-out), var(--ease-spring), var(--ease-out);
}
:focus-visible {
  outline: 2px solid var(--haze-600);
  outline-offset: 2px;
  border-radius: 0.35rem;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: balance;
  line-height: 1.26;
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--ink-strong);
}
h3 {
  line-height: 1.35;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--ink-strong);
}
img { max-inline-size: 100%; }
svg {
  display: block;
  flex: none;
  transition: rotate 420ms var(--ease-spring), translate 260ms var(--ease-out), scale 420ms var(--ease-spring);
}

.shell { width: min(100% - 2.75rem, 66rem); margin-inline: auto; }
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 30;
  translate: 0 -220%;
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { translate: 0; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(button, a):hover .icon-arrow-right { translate: 3px 0; }
  :is(button, a):hover .icon-arrow-left { translate: -3px 0; }
  :is(button, a):hover .icon-up-right { translate: 2px -2px; }
  :is(button, a):hover .icon-download { translate: 0 2px; }
  :is(button, a):hover .icon-copy { scale: 1.15; }
  :is(button, a):hover .icon-heart { scale: 1.14; }
  :is(button, a):hover .icon-sparkle { animation: icon-twinkle 700ms var(--ease-out); }
  :is(button, a):hover .icon-check { scale: 1.08; }
}
@keyframes icon-twinkle {
  40% { rotate: -14deg; scale: 1.18; }
  70% { rotate: 8deg; }
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.956 0.007 80 / 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1.65rem;
}
.site-header {
  min-height: 4.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.site-header a { text-decoration: none; font-weight: 500; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.36rem 0.92rem;
  border-radius: var(--radius-pill);
  font-size: 0.885rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.site-header nav a:hover {
  color: var(--ink-strong);
  background: var(--oat-200);
}
.site-header nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink-strong);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--hairline);
}
.site-header .lookup-link {
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.site-header .lookup-link:hover {
  background: var(--paper);
  border-color: var(--oat-300);
  box-shadow: var(--shadow-sm);
}
.site-header .lookup-link[aria-current="page"] {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--paper);
}

.brand {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  inline-size: 2.05rem;
  block-size: 2.05rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xs);
  color: var(--ink-strong);
}
.brand:hover .brand-mark {
  border-color: var(--oat-300);
  box-shadow: var(--shadow-sm);
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.14rem 0.56rem;
  border-radius: var(--radius-pill);
  background: var(--oat-100);
  border: 1px solid var(--hairline);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.22fr minmax(0, 0.98fr);
  align-items: center;
  overflow: clip;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 86% 18%, oklch(0.955 0.02 245 / 0.55), transparent 52%),
    radial-gradient(circle at 12% 94%, oklch(0.96 0.02 72 / 0.48), transparent 48%),
    var(--paper);
  box-shadow: var(--shadow-sm);
}
.hero-copy {
  padding: clamp(1.85rem, 4.6vw, 3.45rem);
  padding-inline-end: 1.1rem;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  margin-bottom: 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--oat-50);
  border: 1px solid var(--hairline);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-700);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
.hero p {
  max-width: 27em;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.985rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.45rem;
}
.quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--oat-50);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.885rem;
}
.quiet:hover {
  background: var(--paper);
  border-color: var(--oat-300);
  color: var(--ink-strong);
  box-shadow: var(--shadow-xs);
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 20.5rem;
  display: grid;
  place-items: center;
  padding: 1.75rem 2rem 1.75rem 0.5rem;
}
.art-ring {
  position: absolute;
  left: 52%;
  top: 50%;
  width: 66%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  box-shadow:
    0 0 0 1.85rem transparent,
    0 0 0 calc(1.85rem + 1px) oklch(0.905 0.009 78 / 0.72),
    0 0 0 3.7rem transparent,
    0 0 0 calc(3.7rem + 1px) oklch(0.905 0.009 78 / 0.42);
}
.echo-stack {
  position: relative;
  z-index: 2;
  width: min(100%, 19.5rem);
  display: grid;
  gap: 0.75rem;
}
.echo-card {
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.echo-card-student {
  transform: translateX(-0.55rem);
}
.echo-card-reply {
  transform: translateX(0.55rem);
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}
.echo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.echo-card-reply .echo-meta { color: oklch(0.84 0.008 80); }
.echo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.48rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--honey-50);
  color: var(--honey-700);
}
.echo-card-reply .echo-tag {
  background: oklch(1 0 0 / 0.12);
  color: oklch(0.95 0.006 80);
}
.echo-line {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
}
.echo-card-reply .echo-line { color: oklch(0.96 0.004 85); }

.entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}
.entry {
  display: flex;
  position: relative;
  align-items: center;
  gap: 1.05rem;
  min-height: 6.8rem;
  padding: 1.2rem 1.35rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.entry:hover {
  translate: 0 -2px;
  border-color: var(--oat-300);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.entry:active {
  translate: 0 0;
  box-shadow: var(--shadow-sm);
}
.entry h2 {
  font-size: clamp(1.14rem, 1.9vw, 1.32rem);
  font-weight: 500;
}
.entry p {
  font-size: 0.885rem;
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.55;
}
.tile {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}
.tile-review {
  background: var(--honey-50);
  color: var(--honey-700);
  border-color: var(--honey-100);
}
.tile-suggestion {
  background: var(--mauve-50);
  color: var(--mauve-700);
  border-color: var(--mauve-100);
}
.entry-verb {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--oat-50);
  border: 1px solid var(--hairline);
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.entry:hover .entry-verb {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--paper);
}

.public-section { margin-top: clamp(2.1rem, 4.5vw, 3.1rem); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}
.section-head h2 { font-size: clamp(1.28rem, 2.4vw, 1.58rem); }
.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.885rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}
.section-head a:hover { color: var(--ink-strong); }

.empty {
  border: 1px dashed var(--oat-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  color: var(--muted);
  background: var(--oat-50);
  text-align: center;
}
.empty strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.empty a { display: inline-block; margin-top: 0.65rem; font-weight: 500; }

.intro { padding: 0.35rem 0 1.45rem; }
.intro h1 { font-size: clamp(1.85rem, 4vw, 2.55rem); }
.intro p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 38em;
}
.narrow { width: min(100%, 42rem); margin-inline: auto; }
.return {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.2rem 0.72rem 0.2rem 0.55rem;
  margin-bottom: 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}
.return:hover { color: var(--ink-strong); border-color: var(--oat-300); }

.panel, .response {
  padding: clamp(1.25rem, 2.8vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 1.05rem; }
.panel h2, .response h3 { margin-bottom: 0.5rem; }
.response {
  display: flex;
  flex-direction: column;
}
.response:hover { border-color: var(--oat-300); }
.response h3 { font-size: 1.12rem; }
.response > p { color: var(--ink-soft); font-size: 0.94rem; }

.response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1.05rem;
  align-items: stretch;
}
.response-head, .response-actions, .qr-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.response-head { justify-content: space-between; margin-bottom: 0.8rem; }
.response-actions { margin-top: auto; padding-top: 0.3rem; }

time {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: var(--radius-pill);
  background: var(--haze-50);
  border: 1px solid var(--haze-100);
  color: var(--haze-700);
  padding: 0.18rem 0.66rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-reviewing { background: var(--honey-50); border-color: var(--honey-100); color: var(--honey-700); }
.status-accepted { background: var(--sage-50); border-color: var(--sage-100); color: var(--sage-700); }
.status-scheduled { background: var(--haze-50); border-color: var(--haze-200); color: var(--haze-700); }
.status-done { background: var(--sage-100); border-color: var(--sage-100); color: var(--sage-700); }
.status-deferred { background: var(--oat-100); border-color: var(--oat-200); color: var(--muted); }

.reply-public {
  position: relative;
  margin: 0.95rem 0 1.1rem;
  padding: 0.85rem 1.05rem 0.85rem 1.32rem;
  border-radius: var(--radius-md);
  background: var(--oat-50);
  border: 1px solid var(--hairline);
}
.reply-public::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.78rem;
  bottom: 0.78rem;
  width: 2.5px;
  border-radius: var(--radius-pill);
  background: var(--haze-600);
}
.reply-public strong {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--haze-700);
}
.reply-public p {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.66;
}

.form-stack { display: grid; align-items: start; gap: 0.5rem; }
.form-stack label:not(:first-child) { margin-top: 0.7rem; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
input, textarea, select, button { font: inherit; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--field-edge);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 0.6rem 0.88rem;
}
input::placeholder, textarea::placeholder { color: var(--muted-light); }
input:hover, textarea:hover, select:hover { border-color: var(--ink-soft); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--haze-600);
  box-shadow: 0 0 0 3px oklch(0.55 0.068 245 / 0.16);
}
select {
  appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size: 5.5px 5.5px;
  background-position: calc(100% - 18px) center, calc(100% - 12.5px) center;
  background-repeat: no-repeat;
}
textarea { resize: vertical; line-height: 1.65; }
[data-custom-activity] input, .receipt input, .qr-panel input { margin-top: 0.35rem; }

button, .button {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--ink-strong);
  background: var(--ink-strong);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.48rem 1.2rem;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
button:hover, .button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
:is(button, .button):not(:disabled):active {
  scale: 0.96;
  transition-duration: 180ms, 180ms, 180ms, 180ms, 180ms, 90ms, 180ms;
}

.secondary, .vote {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--hairline);
}
.secondary:hover, .vote:hover {
  background: var(--oat-100);
  border-color: var(--oat-300);
  color: var(--ink-strong);
}
.vote {
  min-height: 36px;
  padding: 0.36rem 0.88rem;
  font-size: 0.86rem;
}
.vote[aria-pressed="true"] {
  background: var(--rose-50);
  border-color: var(--rose-100);
  color: var(--rose-700);
}
.small { font-size: 0.86rem; min-height: 36px; padding: 0.36rem 0.95rem; }
.vote .heart {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.vote[aria-pressed="true"] .heart { color: var(--rose-600); }
.vote b {
  margin-left: 0.15rem;
  padding: 0.04rem 0.44rem;
  border-radius: var(--radius-pill);
  background: var(--oat-100);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vote[aria-pressed="true"] b {
  background: var(--rose-100);
  color: var(--rose-700);
}

button[data-copied="true"] {
  background: var(--sage-50);
  border-color: var(--sage-100);
  color: var(--sage-700);
  animation: btn-pop 420ms var(--ease-spring);
}
@keyframes btn-pop {
  30% { scale: 1.05; }
}
.draw-check path,
.draw-check polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw-check 340ms 60ms var(--ease-out) forwards;
}
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.form-stack > button { margin-top: 0.7rem; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.75rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--hairline);
}
.form-foot p, .receipt p, .meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.receipt-code-box {
  margin-top: 0.45rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--oat-50);
  border: 1px dashed var(--oat-300);
}
#receipt {
  margin-top: 0;
  background: var(--paper);
  border-color: var(--hairline);
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink-strong);
}
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.95rem;
}
.receipt-actions form { margin: 0; }
.receipt p { margin-top: 0.8rem; }

.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation h2 { margin-top: 0.6rem; font-size: 1.28rem; }
.conversation > p { margin-top: 0.45rem; color: var(--ink-soft); }
.messages {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 1.2rem;
  display: grid;
  gap: 0.75rem;
}
.messages li {
  position: relative;
  padding: 0.9rem 1.05rem 0.9rem 1.32rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--oat-50);
}
.messages li:not(.empty)::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 2.5px;
  border-radius: var(--radius-pill);
  background: var(--oat-300);
}
.messages li.msg-admin {
  background: var(--haze-50);
  border-color: var(--haze-100);
}
.messages li.msg-admin::before { background: var(--haze-600); }
.msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.messages li strong { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.messages li.msg-admin strong { color: var(--haze-700); }
.messages p { margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.93rem; }
.messages .empty { padding: 1.2rem; border-style: dashed; text-align: center; }

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.28rem;
  margin-bottom: 1.3rem;
  border-radius: var(--radius-pill);
  background: var(--oat-100);
  border: 1px solid var(--hairline);
}
.tabs a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.tabs a:hover { color: var(--ink-strong); background: oklch(1 0 0 / 0.55); }
.tabs a[aria-current="page"] {
  background: var(--ink-strong);
  color: var(--paper);
  box-shadow: var(--shadow-xs);
}

.inbox-head { margin-top: 0.3rem; }
.inbox {
  margin-top: 0.8rem;
  display: grid;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.inbox-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.inbox-row:last-child { border-bottom: none; }
a.inbox-row:hover { background: var(--oat-50); color: var(--ink-strong); }
.inbox-row .status { flex: none; }
.inbox-row strong {
  display: block;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-strong);
}
.inbox-row .meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.14rem;
  font-size: 0.8rem;
}
.pending-dot {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--haze-600);
}

.pagination { display: flex; gap: 0.65rem; margin-top: 1.05rem; }
.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--hairline);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}
.pagination a:hover { border-color: var(--oat-300); background: var(--oat-50); }

.notice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sage-700);
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.95rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.error {
  color: var(--rose-700);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.885rem;
  font-weight: 500;
}
.remove-topic { margin-block: 0.9rem; }

.qr-panel { text-align: center; }
.qr-panel img {
  display: block;
  background: var(--paper);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xs);
  margin: 0 auto 1.1rem;
}
.qr-actions { justify-content: center; }
.qr-panel label { margin-top: 1rem; text-align: left; }
.qr-panel input { font-family: var(--font-mono); font-size: 0.85rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.25rem 0 1.65rem;
  margin-top: 3.2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.84rem;
  color: var(--muted-light);
}
.footer a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--ink-strong); text-decoration: underline; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb {
  background: var(--oat-300);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 1.8rem); }
  .site-header-wrap { margin-bottom: 1.1rem; }
  .site-header { min-height: 3.85rem; }
  .brand-sub { display: none; }
  .hero { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .hero-copy { padding: 1.5rem 1.3rem 0.85rem; }
  .hero-eyebrow { margin-bottom: 0.85rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.5rem); }
  .hero p { margin-top: 0.75rem; font-size: 0.93rem; }
  .hero-actions { margin-top: 1.1rem; }
  .hero-art { min-height: 0; padding: 0.35rem 1.3rem 1.5rem; }
  .art-ring { width: 52%; opacity: 0.6; }
  .echo-card-student, .echo-card-reply { transform: none; }
  .entries { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 0.85rem; }
  .entry { min-height: 5.4rem; padding: 1rem 1.05rem; gap: 0.85rem; }
  .tile { width: 2.75rem; height: 2.75rem; }
  .tabs { display: flex; border-radius: var(--radius-md); }
  .tabs a { flex: 1 1 auto; justify-content: center; padding-inline: 0.65rem; }
  .inbox-row { padding: 0.9rem 1rem; }
}
@media (max-width: 390px) {
  .brand { font-size: 1.06rem; gap: 0.5rem; }
  .site-header nav { gap: 0.3rem; }
  .site-header nav a { font-size: 0.82rem; padding: 0.32rem 0.68rem; }
  .entry-verb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :is(button, .button):not(:disabled):active { scale: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .entry:hover, .entry:active { translate: none; }
  .draw-check path, .draw-check polyline { stroke-dashoffset: 0; }
}
