:root {
  --accent: #1f6f5b;
  --accent-secondary: #c65048;
  --accent-contrast: #fff;
  --ink: #202b2a;
  --muted: #667470;
  --line: #dce4df;
  --surface: #fff;
  --background: #f8faf9;
  --soft: #eaf4ef;
  --card-padding: 20px;
  --radius: 6px;
  --button-radius: 5px;
  --theme-shadow: none;
  --hero-image: none;
  --page-pattern: none;
}
* { box-sizing: border-box; }
.personal-appearance { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 12px 0; margin-bottom: 18px; border-block: 1px solid var(--line); }
.personal-appearance > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.personal-appearance strong { font-size: 14px; }
.personal-appearance small { color: var(--muted); font-size: 12px; }
.personal-appearance select { width: 260px; max-width: 100%; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; }
.appearance-preferences { max-width: 720px; padding-bottom: 30px; }
.appearance-modes { display: grid; gap: 12px; border: 0; padding: 0; margin: 0 0 24px; }
.appearance-modes legend { font-size: 14px; font-weight: 650; padding-bottom: 12px; }
.appearance-mode { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.appearance-mode:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.appearance-mode input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.appearance-mode span { min-width: 0; }
.appearance-mode strong,.appearance-mode small { display: block; }
.appearance-mode small { margin-top: 6px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.appearance-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14px; }
.appearance-status small { color: var(--muted); }
.theme-fallback { margin: 0 0 18px; border-left: 3px solid #B98221; padding: 12px; background: var(--surface); font-size: 13px; }
.site-theme-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 20px 0 26px; margin-bottom: 26px; border-block: 1px solid var(--line); }
.site-theme-summary > div { max-width: 650px; }
.site-theme-summary h2 { font-size: 23px; margin: 8px 0; }
.site-theme-summary p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.theme-library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.theme-library-item { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding: 0 16px 16px; background: var(--surface); min-width: 0; }
.theme-library-image,.theme-library-sample { display: block; width: calc(100% + 32px); margin: 0 -16px 16px; aspect-ratio: 900/383; object-fit: contain; background: var(--soft); }
.theme-library-sample { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 24px; }
.theme-library-sample strong { font: 700 30px/1.2 Georgia,serif; }
.theme-library-sample span { font-size: 13px; }
.theme-library-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.theme-library-title h3 { font-size: 18px; margin: 0; }
.theme-swatches { display: flex; gap: 7px; margin: 16px 0; }
.theme-swatches span { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; }
.theme-library-item .theme-actions { margin-bottom: 14px; }
.theme-library-item .theme-actions button { min-height: 38px; font-size: 12px; padding: 0 10px; }
@media(max-width:760px) { .theme-library-grid { grid-template-columns: minmax(0,1fr); } .appearance-mode { padding: 14px; } .site-theme-summary h2 { font-size: 20px; } }
.season-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; cursor: pointer; }
.season-toggle input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.christmas-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-size: 12px; color: var(--accent); font-weight: 650; }
.christmas-toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.christmas-reduced { font-size: 11px; font-weight: 400; }
.christmas-page { min-width: 0; }
.christmas-route { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; color: var(--accent); font-size: 14px; }
.christmas-selected-sticker { display: inline-block; flex: 0 0 38px; width: 38px; height: 38px; text-align: center; font-size: 26px; line-height: 38px; }
.christmas-route .christmas-selected-sticker { margin-left: auto; }
.christmas-footer { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.christmas-keepsakes { margin-top: 28px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.christmas-keepsakes .section-title { align-items: flex-start; flex-wrap: wrap; }
.christmas-keepsakes h2 { font-size: 20px; }
.christmas-keepsakes .hint { font-size: 12px; }
.christmas-stickers { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.christmas-stickers button { display: grid; grid-template-rows: 38px 32px; justify-items: center; align-content: center; width: 100%; height: 90px; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.christmas-stickers button > span { font-size: 28px; line-height: 38px; }
.christmas-stickers small { align-self: center; line-height: 15px; font-size: 12px; overflow-wrap: anywhere; }
.christmas-stickers [aria-pressed="true"] { border: 2px solid var(--accent); background: var(--soft); }
.christmas-fx,.christmas-snow { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; contain: strict; }
.christmas-fx span { position: absolute; color: #B47815; font-size: 22px; width: 24px; height: 24px; will-change: transform,opacity; }
.christmas-snow { z-index: 3; }
.christmas-snow span { position: absolute; top: -30px; width: 20px; height: 20px; color: #9CC5BC; opacity: .6; animation: christmas-snowfall linear infinite; }
@keyframes christmas-snowfall { to { transform: translate(24px,calc(100vh + 60px)) rotate(100deg); } }
@keyframes christmas-glimmer { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes christmas-arrive { from { opacity: .75; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
:root[data-style="christmas"] .topbar { background: var(--accent); color: var(--accent-contrast); border-bottom: 2px solid #D6AC63; }
:root[data-style="christmas"] .topbar :is(.brand-button,.brand-button small,.nav > button,.profile-menu summary) { color: var(--accent-contrast); }
:root[data-style="christmas"] .brand-mark { background: #C34440; color: white; }
:root[data-style="christmas"] .brand-button strong { font-family: Georgia,"Times New Roman",serif; font-size: 19px; }
:root[data-style="christmas"] .topbar .nav > button:is(.active,:hover) { color: var(--accent); background: var(--surface); }
:root[data-style="christmas"] .language-switch { background: var(--surface); }
:root[data-style="christmas"] .primary-button { background: #BD3E3A; color: #fff; }
:root[data-style="christmas"] .eyebrow { letter-spacing: 0; }
:root[data-style="christmas"][data-hero="yes"] .home-intro::before { display: none; }
:root[data-style="christmas"][data-hero="yes"] .home-intro { padding-right: 20px; }
:root[data-style="christmas"] .christmas-intro { position: relative; isolation: isolate; width: 100%; max-width: none; min-height: 490px; padding: 146px 20px 180px; margin: 0 0 20px; background: #10513D; color: #FFFCF5; text-align: center; overflow: hidden; }
.christmas-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.christmas-copy { max-width: 500px; margin: 0 auto; padding-top: 22px; }
:root[data-style="christmas"] .christmas-intro h1 { margin: 0; font: 700 48px/1.12 Georgia,"Times New Roman",serif; color: #FFFCF5; letter-spacing: 0; }
:root[data-style="christmas"] .christmas-intro .eyebrow { color: #F3D693; font-size: 11px; margin: 0 0 10px; }
.christmas-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.5; margin: 12px 0 18px; }
.christmas-copy .hero-actions { justify-content: center; gap: 12px; }
:root[data-style="christmas"] .christmas-copy .primary-button { position: relative; margin: 0; }
.christmas-copy .primary-button::after { content: ""; position: absolute; right: 6px; top: -6px; width: 10px; height: 21px; border-radius: 0 0 2px 2px; background: #F4D681; border-block: 3px solid #FAF7ED; transform: rotate(-12deg); pointer-events: none; }
.christmas-copy .secondary-button { background: #FFFCF5; color: #104936; border-color: #FFFCF5; }
.christmas-wreath { position: absolute; top: 8px; left: calc(50% - 50px); width: 100px; height: 112px; background: transparent; border: 0; border-radius: 50%; }
.christmas-wreath:focus-visible { outline-color: #F3D693; }
.christmas-twinkle { position: absolute; right: 13%; top: 27%; font-size: 32px; color: #F5D789; pointer-events: none; }
.christmas-wish { position: absolute; z-index: 2; left: 50%; top: 118px; transform: translateX(-50%); width: min(360px,calc(100% - 32px)); padding: 8px 12px; background: #FFFCF5; border: 1px solid #D6AC63; border-radius: 6px; color: #104936; font-size: 13px; }
:root[data-style="christmas"] :is(.ask-form,.contributor-form,.profile-form) { padding-top: 20px; border-top: 2px solid var(--accent-secondary); }
:root[data-style="christmas"] .freshman-band { border: 0; border-bottom: 1px solid var(--line); padding: 12px 0 28px; background: transparent; }
:root[data-style="christmas"][data-christmas-motion="on"] .christmas-twinkle { animation: christmas-glimmer 4s ease-in-out infinite; }
:root[data-style="christmas"][data-christmas-motion="on"] .christmas-page { animation: christmas-arrive 180ms ease-out; }
:root[data-style="christmas"][data-christmas-motion="on"] .christmas-copy .primary-button::after { transition: transform 180ms ease; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  :root[data-style="christmas"][data-christmas-motion="on"] .christmas-copy .primary-button:hover::after { transform: rotate(10deg); }
}
@media (max-width:760px) {
  .christmas-stickers { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .christmas-toolbar { gap: 4px 14px; font-size: 11px; }
  .christmas-toolbar > div { gap: 8px 12px; }
  :root[data-style="christmas"] .christmas-intro { min-height: 460px; padding: 110px 16px 160px; }
  .christmas-art { top: auto; height: auto; object-fit: contain; object-position: center bottom; clip-path: inset(35% 0 0); }
  :root[data-style="christmas"] .christmas-intro::after { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 80px; background-image: var(--hero-image); background-size: 480px auto; background-position: center top; pointer-events: none; }
  :root[data-style="christmas"] .christmas-intro h1 { font-size: 36px; }
  .christmas-copy > p:not(.eyebrow) { font-size: 14px; }
  .christmas-copy .hero-actions { gap: 10px; flex-wrap: wrap; }
  .christmas-copy .hero-actions button { min-height: 44px; padding: 0 12px; }
  .christmas-wreath { top: 4px; left: calc(50% - 32px); width: 64px; height: 70px; }
  .christmas-wish { top: 76px; }
  .christmas-twinkle { top: 20%; right: 9%; font-size: 22px; }
}
@media (prefers-reduced-motion:reduce) {
  .christmas-page *, .christmas-snow *, .christmas-fx * { animation: none !important; transition: none !important; }
}
:root[data-style="christmas"][data-christmas-motion="off"] { scroll-behavior: auto; }
.theme-preview-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.theme-preview-bar > div { display: flex; gap: 18px; flex-wrap: wrap; }
.theme-art-preview { display: block; width: 100%; aspect-ratio: 1280 / 539; object-fit: cover; margin: 0 0 20px; border-radius: 6px; }
.halloween-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.halloween-icon { display: block; width: 100%; height: 100%; }
.halloween-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 0 0 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 12px; font-weight: 700; }
.halloween-motion-control { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.halloween-motion-control input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-secondary); }
.halloween-page, .halloween-content { min-width: 0; }
.halloween-route-heading { display: flex; align-items: center; gap: 12px; min-height: 64px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 750; }
.halloween-route-symbol, .halloween-selected-charm { display: block; flex: 0 0 42px; width: 42px; height: 42px; pointer-events: none; }
.halloween-selected-charm { margin-left: auto; transform: rotate(6deg); }
.halloween-keepsakes { margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--line); }
.halloween-keepsakes .section-title { align-items: flex-start; flex-wrap: wrap; }
.halloween-keepsakes .section-title h2 { font-size: 20px; }
.halloween-keepsakes .hint { font-size: 12px; }
.halloween-charm-options { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; }
.halloween-charm { display: grid; grid-template-rows: 38px 28px; justify-items: center; align-content: center; gap: 5px; width: 100%; height: 88px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 4px; background: var(--surface); color: var(--accent); font-size: 11px; line-height: 14px; }
.halloween-charm .halloween-icon { width: 38px; height: 38px; }
.halloween-charm span { align-self: center; text-align: center; overflow-wrap: anywhere; }
.halloween-charm[aria-pressed="true"] { border: 2px solid var(--accent-secondary); background: var(--soft); }
.halloween-page-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 100px; margin-top: 38px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }
.halloween-footer-castle { display: block; flex: 0 0 100px; height: 82px; }
.halloween-footer-friend { display: block; flex: 0 0 58px; height: 58px; }
.halloween-fx-layer { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; contain: strict; }
.halloween-particle { position: absolute; display: block; width: 20px; height: 20px; pointer-events: none; will-change: transform,opacity; }
.halloween-hero-friend { position: absolute; z-index: 2; left: 24px; bottom: 20px; display: grid; place-items: center; width: 58px; height: 58px; padding: 3px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 3px 10px #462c4426; }
.halloween-greeting { position: absolute; z-index: 2; left: 92px; bottom: 25px; max-width: min(240px,calc(100% - 120px)); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--accent); font-size: 12px; text-align: left; }
:root[data-style="halloween"] .topbar { background: var(--accent); color: var(--accent-contrast); border-bottom-color: var(--accent-secondary); }
:root[data-style="halloween"] .topbar .brand-button,
:root[data-style="halloween"] .topbar .brand-button small,
:root[data-style="halloween"] .topbar .nav > button,
:root[data-style="halloween"] .topbar .profile-menu summary { color: var(--accent-contrast); }
:root[data-style="halloween"] .topbar .nav > button.active,
:root[data-style="halloween"] .topbar .nav > button:hover { background: var(--surface); color: var(--accent); }
:root[data-style="halloween"] .topbar .language-switch { background: var(--surface); }
:root[data-style="halloween"] .topbar .language-switch button.active { background: var(--accent-secondary); color: #fff; }
:root[data-style="halloween"] .brand-mark:has(.halloween-icon) { padding: 2px; background: transparent; }
:root[data-style="halloween"] .desk-nav button.selected { border-color: var(--accent-secondary); }
:root[data-style="halloween"] .halloween-content :is(.page-heading,.role-hero,.profile-heading) { border-bottom-color: var(--line); }
:root[data-style="halloween"] .halloween-content :is(.ask-form,.profile-form,.contributor-form) { border-top: 2px solid var(--accent-secondary); padding-top: 20px; }
:root[data-style="halloween"] .halloween-content :is(input,textarea,select):focus-visible { outline-color: var(--accent-secondary); }
:root[data-style="halloween"][data-halloween-motion="on"] :is(.primary-button,.secondary-button,.question-row,.halloween-charm,.halloween-hero-friend) { transition: transform 150ms ease,box-shadow 150ms ease; }
:root[data-style="halloween"][data-halloween-motion="on"] :is(.primary-button,.secondary-button,.halloween-charm):active { transform: translateY(1px); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  :root[data-style="halloween"][data-halloween-motion="on"] #search-results .question-row:hover,
  :root[data-style="halloween"][data-halloween-motion="on"] .halloween-charm:hover { transform: translateY(-2px); }
  :root[data-style="halloween"][data-halloween-motion="on"] .halloween-hero-friend:hover { transform: rotate(-8deg); }
}
@media (max-width:760px) {
  .halloween-charm-options { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .halloween-route-heading { gap: 8px; font-size: 12px; }
  .halloween-route-symbol, .halloween-selected-charm { flex-basis: 34px; width: 34px; height: 34px; }
  .halloween-hero-friend { left: 12px; bottom: 14px; width: 44px; height: 44px; }
  .halloween-greeting { left: 65px; bottom: 15px; max-width: calc(100% - 78px); }
  .halloween-footer-castle { flex-basis: 56px; height: 58px; }
  .halloween-footer-friend { flex-basis: 40px; height: 40px; }
  .halloween-page-footer { gap: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .halloween-page *, .halloween-particle { animation: none !important; transition: none !important; }
}
:root[data-style="halloween"][data-halloween-motion="off"] { scroll-behavior: auto; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  background-image: var(--page-pattern);
  background-repeat: repeat;
  font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.22; }
.hint { color: var(--muted); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px max(28px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand-button {
  display: flex;
  flex: none;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: var(--accent-contrast);
  background: var(--accent);
  font-size: 20px;
  font-weight: 850;
}
.brand-button strong { display: block; font-size: 16px; line-height: 1.1; }
.brand-button small { display: block; color: var(--muted); font-size: 11px; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.nav > button, .language-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 0 11px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}
.nav > button:hover, .nav > button.active { color: var(--accent); background: var(--soft); }
.nav-count { display: inline-grid; min-width: 18px; height: 18px; margin-left: 3px; place-items: center; border-radius: 9px; color: var(--accent-contrast); background: var(--accent); font-size: 10px; }
.language-switch { display: inline-flex; margin: 0 5px; border: 1px solid var(--line); border-radius: 5px; }
.language-switch button { min-width: 42px; border-radius: 0; }
.language-switch button.active { color: var(--accent-contrast); background: var(--accent); }
.main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 80px; }
.primary-button, .secondary-button, .choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  padding: 0 17px;
  font-weight: 700;
}
.primary-button { color: var(--accent-contrast); background: var(--accent); }
.primary-button:hover { filter: brightness(.91); }
.primary-button:disabled { opacity: .48; cursor: not-allowed; }
.secondary-button { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.secondary-button:hover { background: var(--soft); }
.link-button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 750;
  white-space: nowrap;
}
.link-button:hover { text-decoration: underline; }
.text-action { min-height: 34px; border: 0; padding: 0; color: var(--muted); background: none; text-align: left; }
.text-action:hover { color: var(--accent); }
.danger-text { color: #a04f49; }
.hero-actions, .choice-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-intro { position: relative; max-width: 800px; padding: 46px 0 56px; }
:root[data-hero="yes"] .home-intro { padding-right: 34%; }
:root[data-hero="yes"] .home-intro::before { content: ""; position: absolute; right: 0; top: 20px; width: 30%; height: calc(100% - 40px); background: var(--hero-image) center / cover no-repeat; border-radius: var(--radius); }
.home-intro h1 { margin: 0; font-size: clamp(38px, 4vw, 56px); line-height: 1.12; }
.home-intro > p:not(.eyebrow) { margin: 14px 0 24px; color: var(--muted); font-size: 18px; }
.home-intro .primary-button { margin-top: 16px; }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  padding: 0 14px;
  border: 1px solid #bdcdc3;
  border-radius: 6px;
  background: var(--surface);
}
.search-wrap > span { color: var(--accent); font-size: 27px; }
.search { width: 100%; min-height: 50px; border: 0; outline: none; background: transparent; }
.search:focus { outline: 0; }
.home-section { margin: 0 0 56px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; }
.section-title h2 { margin: 0; font-size: 23px; }
.freshman-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 36px;
  padding: 28px 30px;
  border: 1px solid #d5e8dd;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}
.freshman-band h2 { margin: 0 0 6px; font-size: 25px; }
.freshman-band p:last-child { margin: 0; }
.journey-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.journey-shortcuts button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid #cdded4;
  padding: 6px 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}
.journey-shortcuts span { color: var(--accent); font-size: 12px; }
.question-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 230px 18px;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 76px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 12px 4px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.question-row:hover { background: #f0f6f2; }
.row-topic { color: var(--accent); font-size: 12px; font-weight: 800; }
.row-main { display: grid; min-width: 0; gap: 2px; }
.row-main strong { font-size: 16px; }
.row-main small, .row-meta { color: var(--muted); font-size: 12px; }
.row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-arrow { color: var(--accent); font-size: 20px; }
.empty-state { padding: 20px 0; color: var(--muted); }
.topic-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }
.topic-strip button {
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}
.topic-strip button.selected { border-color: var(--accent); color: white; background: var(--accent); }
.page-heading { margin: 12px 0 30px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 3vw, 42px); }
.page-heading > p:not(.eyebrow) { max-width: 700px; margin: 9px 0 0; color: var(--muted); }
.results-list { margin-top: 12px; }
.journey-list { max-width: 900px; }
.journey-section { padding: 16px 0 34px; border-top: 1px solid var(--line); }
.journey-heading { display: flex; align-items: center; gap: 18px; }
.journey-heading span { color: var(--accent); font-size: 13px; font-weight: 800; }
.journey-heading h2 { margin: 0; font-size: 22px; }
.ask-form, .login-form { width: min(720px, 100%); }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfccc4;
  border-radius: 5px;
  padding: 9px 11px;
  color: var(--ink);
  background: white;
}
.field textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.similar-results { margin-top: 12px; }
.similar-results > strong { color: var(--accent); }
.similar-results > p { margin: 4px 0 0; }
.similar-results .question-row { min-height: 60px; grid-template-columns: 95px minmax(0, 1fr) 18px; }
.similar-results .row-meta { display: none; }
.identity-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 15px 0 0;
}
.draft-save-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.draft-save-bar > span { flex: 1; min-width: 140px; color: var(--muted); font-size: 12px; }
.draft-center { display: grid; gap: 42px; }
.draft-center section > h2, .draft-center .section-title h2 { font-size: 20px; }
.draft-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.draft-row h3 { margin: 7px 0 3px; font-size: 17px; }
.draft-row p { margin: 0; }
.empty-panel { max-width: 600px; padding: 45px 0; }
.role-hero { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.role-hero h1 { margin: 0 0 24px; font-size: 34px; }
.role-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; border: 1px solid var(--line); background: var(--surface); }
.role-counts span { display: grid; gap: 3px; padding: 17px; border-right: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.role-counts span:last-child { border-right: 0; }
.role-counts strong { color: var(--ink); font-size: 25px; }
.role-counts:has(span:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
.tutor-intro { margin-top: 30px; }
.tutor-intro h2 { margin-bottom: 4px; font-size: 19px; }
.tutor-intro p { margin-top: 0; }
.faculty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-top: 30px; }
.faculty-grid > section > h2 { min-height: 48px; margin: 0; font-size: 18px; }
.faculty-task, .verification-task { margin-bottom: 12px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faculty-task h3 { margin: 9px 0; font-size: 16px; }
.verification-task blockquote { margin: 10px 0 16px; border-left: 3px solid var(--accent); padding-left: 12px; }
.verification-task .choice-row { align-items: stretch; }
.faculty-answer-panel { max-width: 760px; padding-top: 30px; }
.verification-status { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--soft); }
.verification-status span { color: var(--muted); font-size: 12px; }
.request-form summary { color: var(--accent); cursor: pointer; font-weight: 750; }
.identity-field legend { padding-top: 13px; font-size: 13px; font-weight: 750; }
.identity-field label { display: flex; align-items: center; gap: 6px; }
.identity-field .hint { flex-basis: 100%; margin: 0; font-size: 12px; }
.form-submit { margin-top: 22px; }
.success-view { max-width: 640px; padding: 32px 0; }
.success-mark { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 20px; border-radius: 50%; color: white; background: var(--accent); font-size: 23px; }
.success-view h1 { margin: 0; font-size: 38px; }
.success-view > p:not(.eyebrow) { color: var(--muted); }
.success-view h2 { margin-top: 38px; font-size: 19px; }
.process-steps { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: step; }
.process-steps li { padding: 13px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.process-steps li::before { content: "0" counter(step); display: inline-block; width: 45px; color: var(--accent); font-weight: 800; }
.success-view .hero-actions { margin-top: 25px; }
.detail { width: min(760px, 100%); }
.detail-header { padding: 22px 0 30px; }
.detail-header h1 { margin: 0 0 12px; font-size: clamp(32px, 3.3vw, 44px); }
.detail-section { padding: 25px 0; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0 0 15px; font-size: 22px; }
.detail-section > p, .detail-section li { line-height: 1.75; }
.answer-lead { padding: 23px; border: 1px solid #d3e6d9; background: var(--soft); }
.answer-lead > p:last-child { margin: 0; font-size: 18px; }
.perspective { padding: 14px 0; border-bottom: 1px solid var(--line); }
.perspective:last-child { border: 0; }
.perspective-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.perspective p { margin-bottom: 0; line-height: 1.7; }
.identity-badge { padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 11px; }
.takeaway { margin: 8px 0; padding: 24px; border: 0; border-left: 3px solid var(--accent); background: #f0f5f2; }
.takeaway ul { margin: 0; padding-left: 20px; }
.feedback .choice { color: var(--ink); border-color: var(--line); background: white; }
.feedback .choice.selected { color: var(--accent); border-color: var(--accent); }
.feedback-reasons { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.feedback-reasons button { border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; background: white; }
.contribute-section { margin-bottom: 24px; }
.credential { display: grid; gap: 5px; margin: 15px 0 22px; padding: 14px; border: 1px solid var(--line); background: var(--soft); }
.auth-links { display: flex; gap: 20px; margin-top: 22px; }
.auth-agree { margin-top: 22px; }
.profile-details { display: grid; max-width: 680px; border-top: 1px solid var(--line); }
.profile-details div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.profile-details span { color: var(--muted); }
.role-guide { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 760px; margin-bottom: 28px; padding: 20px; border-left: 3px solid var(--accent); background: var(--soft); }
.role-guide h2 { margin: 8px 0 4px; font-size: 20px; }
.role-guide p { margin: 0; color: var(--muted); }
.feedback-page { width: min(720px, 100%); }
.feedback-form { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.feedback-form .form-submit { justify-self: start; margin-top: 0; }
.feedback-inbox { display: grid; gap: 12px; }
.feedback-item { padding: var(--card-padding); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--theme-shadow); }
.feedback-item > p { margin: 16px 0; white-space: pre-wrap; }
.feedback-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.feedback-meta > span:last-child { color: var(--muted); font-size: 12px; }
.feedback-triage { display: grid; grid-template-columns: 150px minmax(180px, 1fr) auto; align-items: end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.feedback-triage label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.feedback-triage input, .feedback-triage select { min-height: 38px; border: 1px solid var(--line); border-radius: var(--button-radius); padding: 6px 9px; color: var(--ink); background: var(--surface); }
.my-question { display: grid; gap: 6px; max-width: 720px; padding: 18px 0; border-top: 1px solid var(--line); }
.my-question span { color: var(--muted); font-size: 12px; }
.my-question .link-button { justify-self: start; }
.user-list { display: grid; gap: 0; }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 120px; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.user-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.user-row small { color: var(--muted); overflow-wrap: anywhere; }
.user-row label { display: grid; gap: 3px; color: var(--muted); font-size: 11px; }
.user-row select { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.user-actions button { min-height: 34px; width: 100%; padding: 0 8px; font-size: 12px; }
.user-actions button:disabled { opacity: .4; cursor: not-allowed; }
.invite-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 30px; margin-bottom: 42px; padding: 24px; border-left: 3px solid var(--accent); background: var(--soft); }
.invite-panel h2, .people-section h2 { margin: 6px 0; font-size: 19px; }
.invite-panel p { margin: 0; color: var(--muted); }
.invite-actions { display: flex; align-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-number { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--accent-contrast); background: var(--accent); font-size: 12px; font-weight: 800; }
.people-section { margin-bottom: 42px; }
.people-section .section-title > div { display: flex; align-items: center; gap: 10px; }
.people-section .section-title h2 { margin: 0; }
.approval-row { margin-bottom: 8px; border: 1px solid var(--line); padding: 14px; background: var(--surface); }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: 350px; padding: 12px 15px; border-radius: 5px; color: white; background: #243c34; }
.desk-layout { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 30px; }
.desk-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 3px; }
.desk-label { padding: 8px 8px 17px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.desk-nav button { display: flex; justify-content: space-between; align-items: center; min-height: 38px; border: 0; border-radius: 4px; padding: 0 10px; color: var(--ink); background: transparent; text-align: left; }
.desk-nav button.selected { color: var(--accent); background: var(--soft); font-weight: 800; }
.desk-nav button:hover { background: var(--soft); }
.desk-nav button span { color: var(--accent); font-size: 12px; }
.desk-nav .contributor-entry { margin-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.desk-main { min-width: 0; }
.desk-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.desk-heading h1 { margin: 0; font-size: 30px; }
.desk-heading p:last-child { margin: 6px 0 0; }
.pipeline-summary { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 32px; }
.pipeline-summary button { min-height: 86px; border: 1px solid var(--line); border-radius: 5px; padding: 10px; background: white; text-align: left; }
.pipeline-summary button:hover { border-color: var(--accent); }
.pipeline-summary strong { display: block; font-size: 26px; }
.pipeline-summary span { display: block; color: var(--muted); font-size: 11px; }
.admin-task-list { display: grid; max-width: 820px; border-top: 1px solid var(--line); }
.admin-task { display: grid; grid-template-columns: 64px minmax(0, 1fr) 24px; align-items: center; gap: 16px; min-height: 94px; border: 0; border-bottom: 1px solid var(--line); padding: 14px 8px; color: var(--ink); background: transparent; text-align: left; }
.admin-task:hover { background: var(--soft); }
.admin-task > strong { color: var(--accent); font-size: 34px; text-align: center; }
.admin-task span { display: grid; gap: 3px; }
.admin-task b { font-size: 17px; }
.admin-task small { color: var(--muted); }
.admin-task i { color: var(--accent); font-size: 20px; font-style: normal; }
.settings-links { display: grid; max-width: 720px; border-top: 1px solid var(--line); }
.settings-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; border: 0; border-bottom: 1px solid var(--line); padding: 12px 8px; color: var(--ink); background: transparent; text-align: left; }
.settings-link:hover { background: var(--soft); }
.settings-link span { display: grid; gap: 4px; }
.settings-link small { color: var(--muted); }
.settings-link > b { color: var(--accent); }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.dashboard-columns h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 18px; }
.attention-row, .activity-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.attention-row strong { color: var(--accent); font-size: 20px; }
.activity-row { display: block; padding: 10px 0; }
.activity-row small { display: block; color: var(--muted); }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.segmented button { min-height: 36px; border: 0; padding: 0 14px; background: white; }
.segmented button.selected { color: white; background: var(--accent); }
.status-filters { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 17px; padding-bottom: 4px; }
.status-filters button { flex: none; min-height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 9px; background: white; color: var(--muted); font-size: 12px; }
.status-filters button.selected { border-color: var(--accent); color: white; background: var(--accent); }
.status-filters b { margin-left: 3px; }
.workspace-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr) 200px; min-height: 600px; border: 1px solid var(--line); background: white; }
.workspace-list { max-height: 850px; overflow-y: auto; border-right: 1px solid var(--line); }
.workspace-list-item { display: grid; gap: 5px; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 15px 12px; color: var(--ink); background: white; text-align: left; }
.workspace-list-item:hover, .workspace-list-item.selected { background: var(--soft); }
.workspace-list-item.selected { border-left: 3px solid var(--accent); padding-left: 9px; }
.workspace-list-item small, .workspace-list-item span { color: var(--muted); font-size: 11px; }
.workspace-list-item strong { font-size: 13px; line-height: 1.35; }
.workspace-content { min-width: 0; padding: 22px; }
.workspace-title h2 { margin: 0 0 12px; font-size: 25px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 3px; color: var(--accent); background: var(--soft); font-size: 11px; font-weight: 800; }
.workspace-section { padding: 20px 0; border-top: 1px solid var(--line); }
.workspace-section:first-of-type { margin-top: 24px; }
.workspace-section h3 { margin: 0 0 13px; font-size: 16px; }
.workspace-section > p { margin: 8px 0; }
.context-text { color: var(--muted); }
.meta-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.meta-pairs div { display: grid; gap: 2px; min-width: 0; }
.meta-pairs small { color: var(--muted); }
.meta-pairs strong { overflow-wrap: anywhere; font-size: 12px; }
.source-line { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.source-line span { color: var(--muted); text-align: right; }
.raw-answer { padding: 12px 0; border-bottom: 1px solid var(--line); }
.raw-answer p { margin: 6px 0 0; white-space: pre-wrap; }
.workspace-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 20px 14px; border-left: 1px solid var(--line); }
.workspace-actions h3 { margin: 0 0 5px; font-size: 14px; }
.workspace-actions .primary-button, .workspace-actions .secondary-button { width: 100%; padding: 0 8px; font-size: 12px; }
.action-note { margin-top: 15px; font-size: 11px; }
.request-form h4 { margin: 0 0 10px; }
.request-choices { display: grid; gap: 7px; }
.request-choices label { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; }
.request-choices small { display: block; color: var(--muted); font-size: 10px; }
.request-form .field { margin-top: 10px; }
.request-form .field textarea { min-height: 75px; }
.request-form .primary-button { margin-top: 12px; }
.board { display: flex; gap: 11px; overflow-x: auto; padding-bottom: 12px; }
.board-column { flex: 0 0 205px; min-height: 300px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #f2f6f3; }
.board-column h2 { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 12px; }
.board-column span { color: var(--muted); }
.board-question { display: grid; gap: 5px; width: 100%; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 4px; padding: 11px; background: white; text-align: left; }
.board-question small { color: var(--muted); font-size: 10px; }
.board-question strong { font-size: 12px; }
.editor-section .section-title { align-items: flex-start; }
.editor-section .section-title h3 { margin: 0; }
.edited-perspective { min-height: 95px; }
.inline-checkbox { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 400 !important; }
.inline-checkbox input { width: auto; min-height: auto; }
.related-picker { display: grid; gap: 6px; margin-top: 17px; border: 1px solid var(--line); padding: 11px; }
.related-picker legend { font-size: 12px; font-weight: 750; }
.related-picker label { font-size: 12px; }
.editor-preview { margin-top: 24px; padding: 18px; border-left: 3px solid var(--accent); background: var(--soft); }
.editor-preview h3 { font-size: 20px; }
.editor-preview > strong { display: block; margin-top: 16px; }
.editor-preview > p { margin: 7px 0; }
.ready-checks { display: grid; gap: 10px; }
.ready-checks p { margin: 0; }
.ready-checks label { display: flex; gap: 8px; align-items: center; }
.ready-checks button { justify-self: start; }
.valid { color: var(--accent); }
.invalid { color: #a04f49; }
.log-line { color: var(--muted); font-size: 12px; }
.answer-review-list { display: grid; gap: 15px; max-width: 760px; }
.answer-review-list article { border: 1px solid var(--line); padding: 19px; background: white; }
.answer-review-list h2 { font-size: 18px; }
.answer-review-list blockquote { margin: 14px 0; padding-left: 14px; border-left: 2px solid var(--accent); }
.contributor-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
.contributor-list { display: grid; align-content: start; gap: 7px; }
.contributor-list button { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 5px; padding: 14px; background: white; text-align: left; }
.contributor-list button.selected { border-color: var(--accent); background: var(--soft); }
.contributor-list small { color: var(--muted); }
.contributor-form { padding: 24px; border: 1px solid var(--line); background: white; }
.contributor-form h2 { margin: 0 0 10px; }
.contributor-form blockquote { padding-left: 12px; border-left: 2px solid var(--accent); color: var(--muted); }
.contributor-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contributor-cards article { padding: var(--card-padding); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.contributor-cards p { font-size: 12px; }
.contributor-cards small { color: var(--muted); overflow-wrap: anywhere; }
.contributor-numbers { display: flex; gap: 12px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.inline-add-form { max-width: 670px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.inline-add-form h2 { font-size: 19px; }
.collection-admin-list { max-width: 760px; }
.collection-admin-list article { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.collection-admin-list p { margin: 3px 0 0; font-size: 12px; }
.library-table { width: 100%; overflow-x: auto; }
.library-head, .library-table button { display: grid; grid-template-columns: minmax(240px, 1fr) 110px 85px 70px; gap: 10px; align-items: center; min-width: 580px; }
.library-head { padding: 9px 10px; color: var(--muted); font-size: 12px; }
.library-table button { width: 100%; min-height: 50px; border: 0; border-top: 1px solid var(--line); padding: 10px; background: transparent; text-align: left; }
.library-table button:hover { background: var(--soft); }
.appearance-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 30px; }
.setting-row { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.setting-row > strong { font-size: 13px; }
.setting-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.theme-list { display: flex; flex-wrap: wrap; gap: 7px; }
.theme-list button, .choice { min-height: 36px; border: 1px solid var(--line); border-radius: var(--button-radius); padding: 0 11px; color: var(--ink); background: var(--surface); font-size: 12px; }
.theme-list button.selected, .choice.selected { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.setting-row > .primary-button { justify-self: start; }
.theme-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-actions a.secondary-button { text-decoration: none; }
.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.theme-form-grid label { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; }
.theme-form-grid input, .theme-form-grid select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: var(--button-radius); padding: 6px 9px; color: var(--ink); background: var(--surface); }
.theme-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.theme-color-field { display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid var(--line); padding: 7px 9px; font-size: 12px; }
.theme-color-field span { flex: 1; }
.theme-color-field input { flex: none; width: 30px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.theme-color-field code { font-size: 11px; }
.asset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.asset-row div { display: grid; flex: 1; min-width: 160px; font-size: 12px; }
.asset-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.appearance-preview { align-self: start; position: sticky; top: 98px; padding: 22px; color: var(--ink); background: var(--background); }
.appearance-preview h2 { font-size: 27px; }
.appearance-preview[data-preview-style="editorial"] h2 { font-family: Georgia, "Times New Roman", serif; }
.appearance-preview > p:not(.eyebrow) { color: var(--muted); }
.preview-question { margin-top: 25px; padding: var(--card-padding); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--theme-shadow); }
.preview-question h3 { font-size: 17px; }
.preview-question p { color: var(--muted); font-size: 12px; }
.topic-strip button, .field input, .field textarea, .field select, .feedback .choice,
.feedback-reasons button, .user-row select, .pipeline-summary button, .segmented button,
.status-filters button, .workspace-layout, .workspace-list-item, .board-question,
.answer-review-list article, .contributor-list button, .contributor-form,
.contributor-cards article { background: var(--surface); }
.pipeline-summary button, .board-question, .contributor-list button,
.contributor-cards article { border-radius: var(--radius); box-shadow: var(--theme-shadow); }
.topic-strip button.selected, .segmented button.selected, .status-filters button.selected { color: var(--accent-contrast); background: var(--accent); }
.search-wrap { border-color: var(--line); }
.freshman-band { border-color: var(--line); border-left-color: var(--accent-secondary); }
.success-mark { color: var(--accent-contrast); }
:root[data-style="editorial"] .home-intro h1,
:root[data-style="editorial"] .detail-header h1 { font-family: Georgia, "Times New Roman", serif; }
:root[data-style="halloween"] { --season-gold: #FFD48C; --season-hero: #FFD08D; }
:root[data-style="halloween"] .topbar { border-bottom: 2px solid var(--line); }
:root[data-style="halloween"] .brand-mark { background: var(--accent-secondary); }
:root[data-style="halloween"] .brand-button strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
:root[data-style="halloween"] .primary-button { background: var(--accent-secondary); color: #fff; }
:root[data-style="halloween"] .eyebrow { letter-spacing: 0; }
:root[data-style="halloween"] .search-wrap { border-color: var(--line); border-radius: var(--button-radius); }
:root[data-style="halloween"] .halloween-intro { isolation: isolate; max-width: none; width: 100%; min-height: 490px; padding: 44px 24px 190px; margin: 0 0 24px; background: var(--season-hero); text-align: center; overflow: hidden; }
:root[data-style="halloween"][data-hero="yes"] .home-intro::before { display: none; }
.halloween-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; }
.halloween-copy { max-width: 620px; margin: 0 auto; }
:root[data-style="halloween"] .halloween-intro h1 { font: 700 52px/1.1 Georgia, "Times New Roman", serif; color: var(--accent); margin: 0; letter-spacing: 0; }
.halloween-tagline { font-size: 26px; font-weight: 750; line-height: 1.3; margin: 12px 0; color: var(--accent); }
.halloween-description { font-size: 16px; max-width: 510px; margin: 0 auto 20px; }
.halloween-copy .hero-actions { justify-content: center; }
.halloween-copy .primary-button { margin: 0; }
.seasonal-search { margin: 0 0 30px; }
.seasonal-search .search-wrap { max-width: none; }
:root[data-style="halloween"] .freshman-band { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-left: 0; padding: 12px 0 28px; }
:root[data-style="halloween"] #search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
:root[data-style="halloween"] #search-results .question-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: auto 1fr auto; gap: 12px; min-height: 210px; padding: var(--card-padding); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--theme-shadow); }
:root[data-style="halloween"] #search-results .row-topic { grid-column: 1 / -1; color: var(--accent-secondary); }
:root[data-style="halloween"] #search-results .row-main { grid-column: 1 / -1; }
:root[data-style="halloween"] #search-results .row-main strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
:root[data-style="halloween"] #search-results .row-main strong,
:root[data-style="halloween"] #search-results .row-main small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
:root[data-style="halloween"] #search-results .row-meta { grid-column: 1; grid-row: 3; }
:root[data-style="halloween"] #search-results .row-arrow { grid-column: 2; grid-row: 3; }
:root[data-style="halloween"] .detail-header h1 { font-family: Georgia, "Times New Roman", serif; }
:root[data-style="halloween"] .preview-question { border-radius: var(--radius); }
@media (max-width: 760px) {
  :root[data-style="halloween"] .halloween-intro { min-height: 490px; padding: 54px 18px 170px; }
  :root[data-style="halloween"] .halloween-intro::after { content: ""; position: absolute; inset: 0 0 auto; height: 36px; z-index: -1; background-image: var(--hero-image); background-size: auto 380px; background-position: center top; pointer-events: none; }
  :root[data-style="halloween"] .halloween-art { top: auto; height: auto; clip-path: inset(15% 0 0); }
  :root[data-style="halloween"] .halloween-intro h1 { font-size: 38px; }
  .halloween-tagline { font-size: 23px; }
  .halloween-description { font-size: 15px; }
  .halloween-copy .hero-actions { gap: 10px; }
  .halloween-copy .primary-button, .halloween-copy .secondary-button { padding: 0 12px; min-height: 44px; }
  :root[data-style="halloween"] #search-results { grid-template-columns: minmax(0, 1fr); }
  :root[data-style="halloween"] #search-results .question-row { min-height: 190px; }
}
@media (max-width: 1100px) {
  .desk-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 16px; }
  .workspace-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .workspace-actions { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .workspace-actions > * { max-width: 100%; }
  .workspace-actions .primary-button, .workspace-actions .secondary-button { width: auto; }
  .request-form { width: 100%; }
}
@media (max-width: 760px) {
  .topbar { display: block; padding: 12px 18px; }
  .nav { justify-content: flex-start; margin-top: 10px; }
  .nav > button { padding: 0 8px; font-size: 12px; }
  .main { width: min(100% - 32px, 580px); padding-top: 20px; }
  .home-intro { padding: 25px 0 35px; }
  :root[data-hero="yes"] .home-intro { padding-right: 0; }
  :root[data-style="halloween"][data-hero="yes"] .home-intro { padding-right: 18px; }
  :root[data-hero="yes"] .home-intro::before { position: relative; display: block; top: 0; width: 100%; height: 140px; margin-bottom: 22px; }
  .home-section { margin-bottom: 38px; }
  .freshman-band, .dashboard-columns, .appearance-layout, .contributor-layout, .form-grid { grid-template-columns: 1fr; }
  .freshman-band { padding: 21px; gap: 18px; }
  .question-row { grid-template-columns: 1fr 18px; gap: 2px 7px; min-height: 80px; }
  .row-topic { grid-column: 1 / -1; }
  .row-main { grid-column: 1; }
  .row-meta { grid-column: 1; }
  .row-arrow { grid-column: 2; grid-row: 2 / 4; }
  .desk-layout { display: block; }
  .desk-nav { position: static; display: flex; gap: 4px; overflow-x: auto; margin: -4px 0 25px; padding-bottom: 8px; }
  .desk-label { display: none; }
  .desk-nav button { flex: none; padding: 0 10px; font-size: 12px; }
  .desk-nav .contributor-entry { margin: 0; border: 0; }
  .desk-heading { align-items: flex-start; }
  .desk-heading h1 { font-size: 26px; }
  .pipeline-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-layout { display: block; }
  .workspace-list { display: flex; overflow-x: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-list-item { flex: 0 0 185px; border-right: 1px solid var(--line); }
  .workspace-content { padding: 18px; }
  .workspace-actions { border-top: 1px solid var(--line); }
  .contributor-cards { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: minmax(0, 1fr) 120px; }
  .user-actions { grid-column: 2; }
  .invite-panel { grid-template-columns: 1fr; }
  .profile-details div { grid-template-columns: 110px minmax(0, 1fr); }
  .role-guide { align-items: flex-start; flex-direction: column; }
  .feedback-triage { grid-template-columns: 1fr; }
  .feedback-triage .secondary-button { justify-self: start; }
  .appearance-preview { position: static; }
  .theme-form-grid, .theme-colors { grid-template-columns: 1fr; }
  .draft-row { grid-template-columns: 1fr; }
  .draft-row .primary-button { justify-self: start; }
  .role-counts { grid-template-columns: 1fr; }
  .role-counts span { grid-template-columns: 42px minmax(0, 1fr); align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .role-counts span:last-child { border-bottom: 0; }
  .faculty-grid { grid-template-columns: 1fr; gap: 32px; }
  .faculty-grid > section > h2 { min-height: auto; }
}

/* Student identity and task-focused operations share the existing theme tokens. */
.profile-menu { position: relative; }
.profile-menu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary > span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-items { position: absolute; top: calc(100% + 12px); right: 0; width: 224px; max-height: 72vh; overflow: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 28px #10243e18; z-index: 40; }
.nav .profile-menu-items button { display: block; width: 100%; text-align: left; padding: 9px 12px; white-space: normal; }
.community-avatar { position: relative; display: grid; place-items: center; width: 120px; height: 120px; flex: none; border: 5px solid var(--line); border-radius: 50%; background: var(--surface); color: #10243e; }
.community-avatar > span { display: grid; place-items: center; width: 90%; height: 90%; border-radius: 50%; background: #ecf2ef; font-size: 46px; font-weight: 700; }
.community-avatar.small { width: 32px; height: 32px; border-width: 2px; }
.community-avatar.small > span { font-size: 14px; }
.frame-classic { border-color: #315d50; }
.frame-open-question { border: 5px dashed #7b9b83; }
.frame-supporter { border-color: #d8ad58; }
.avatar-pin { position: absolute; right: -20px; bottom: -10px; display: block; width: 50px; height: 50px; background: var(--surface); border-radius: 50%; }
.avatar-pin .reward-art { width: 100%; height: 100%; }
.reward-art { display: block; width: 80px; height: 80px; flex: none; object-fit: contain; }
.growth-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
.growth-items > button, .growth-items > div { display: flex; gap: 18px; align-items: center; padding: 16px 0; min-width: 0; text-align: left; background: transparent; border: 0; color: var(--ink); }
.growth-items > button:hover { color: var(--accent); }
.growth-items span { min-width: 0; }
.growth-items strong, .growth-items small { display: block; }
.growth-items small { color: var(--muted); margin-top: 5px; }
.growth-items > button > strong, .support-transparency .growth-items strong { font-size: 24px; font-weight: 650; }
.support-transparency .growth-items > div { align-items: flex-start; flex-direction: column; gap: 4px; }
.support-band { display: flex; gap: 28px; align-items: center; justify-content: space-between; background: transparent; border-top: 2px solid #d8ad58; }
.support-band p { max-width: 620px; color: var(--muted); }
.community-footer { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); }
.community-footer > span { margin-right: auto; }
.profile-heading { display: flex; align-items: center; gap: 36px; padding: 46px 0 30px; border-bottom: 1px solid var(--line); }
.profile-heading h1 { font-size: 32px; margin: 6px 0; }
.profile-form { max-width: 650px; padding: 26px 0; }
.reward-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.reward-item { display: flex; align-items: flex-start; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.reward-item h3 { font-size: 17px; margin: 16px 0 8px; }
.reward-item p { color: var(--muted); font-size: 14px; flex: 1; }
.reward-item .link-button { margin-top: 12px; }
.reward-item label { display: block; margin: 12px 0; }
.reward-item form { width: 100%; }
.reward-item .inline-checkbox { display: flex; }
.reward-item input:not([type=checkbox]):not([type=file]) { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--surface); color: var(--ink); }
.reward-item.locked .reward-art { opacity: .6; }
.search-empty { padding:24px 0; }
.search-empty h2 { font-size:18px; }
.editor-recovery { padding:16px 0; border-block:2px solid var(--line); overflow-wrap:anywhere; }
.editor-recovery pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; max-height:260px; overflow:auto; }
.editor-recovery summary { cursor:pointer; }
.workspace-layout[aria-busy="true"] { opacity:.7; }
.studio-layout { display: grid; grid-template-columns: minmax(240px,1fr) minmax(260px,1fr); gap: 48px; align-items: start; }
.avatar-preview { position: sticky; top: 100px; padding: 32px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.avatar-preview h2, .avatar-preview h3 { margin: 8px 0 0; }
.avatar-preview p { max-width: 320px; color: var(--muted); }
.decoration-list { display: grid; gap: 8px; }
.decoration-choice { display: flex; align-items: center; gap: 16px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.decoration-choice.selected { border-color: var(--accent); background: var(--soft); }
.decoration-choice .reward-art { width: 58px; height: 58px; }
.decoration-choice strong, .decoration-choice small { display: block; }
.decoration-choice small { color: var(--muted); }
.support-notice, .review-hold { border-left: 3px solid #d8ad58; padding: 14px 20px; margin: 16px 0; background: color-mix(in srgb,#d8ad58 7%,var(--surface)); }
.support-notice p, .review-hold p { margin: 6px 0; }
.budget-table > div { display: flex; justify-content: space-between; gap: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.budget-table span { text-align: right; color: var(--muted); }
.supporter-preview { display: flex; align-items: center; gap: 26px; }
.community-rules { padding-left: 22px; max-width: 760px; }
.community-rules li { padding: 10px 0; }
.question-preview { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.question-preview h2 { font-size: 22px; line-height: 1.55; }
.question-preview h2, .question-preview p, .original-text, .context-text, .my-question p, .raw-answer p { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-title h2, .workspace-list strong, .question-row strong, .my-question strong { overflow-wrap: anywhere; }
.workspace-title h2 { font-size: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.workspace-section details summary { cursor: pointer; }
.workspace-section details summary h3 { display: inline; }
.permission-editor { min-width: 0; }
.permission-editor summary { cursor: pointer; color: var(--accent); }
.permission-editor fieldset { display: grid; gap: 8px; margin-top: 12px; border: 1px solid var(--line); padding: 12px; }
.permission-editor .inline-checkbox { margin: 0; }
.reward-history { display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.reward-history > div { min-width: 0; }
.reward-history span, .reward-history small { display: block; overflow-wrap: anywhere; }
.reward-history small { color: var(--muted); }
.finance-form { padding: 26px 0; border-bottom: 1px solid var(--line); }
.finance-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.finance-fields label { display: flex; flex-direction: column; gap: 6px; }
.finance-fields input, .finance-fields select { min-width: 0; width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--surface); color: var(--ink); }
.activity-list article { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.activity-list p { margin: 6px 0; }
.activity-list small { color: var(--muted); }
.activity-list .link-button { display: block; margin-top: 8px; }
.notification-unread { border-left: 3px solid var(--accent); padding-left: 16px !important; }
.manual-approval-dialog { width: min(520px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.manual-approval-dialog::backdrop { background: rgba(16,36,62,.4); }
.manual-approval-dialog h2 { font-size: 22px; margin: 0 0 16px; }
.manual-approval-dialog .inline-checkbox { align-items: flex-start; margin: 20px 0; }
.manual-approval-dialog .inline-checkbox input { flex: none; margin-top: 5px; }
.manual-approval-dialog textarea { width: 100%; min-height: 100px; }
.manual-approval-dialog input:not([type=checkbox]) { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--surface); color: var(--ink); }
.user-actions .primary-button { white-space: normal; }
.eyebrow { letter-spacing: 0; }
@media (max-width: 900px) {
  .reward-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topbar { gap: 12px; }
  .profile-menu { margin-left: auto; }
}
@media (max-width: 600px) {
  .growth-items, .reward-grid, .studio-layout, .finance-fields { grid-template-columns: 1fr; }
  .growth-items > button { border-bottom: 1px solid var(--line); }
  .profile-heading { gap: 20px; padding: 28px 0; align-items: flex-start; }
  .profile-heading .community-avatar { width: 76px; height: 76px; border-width: 3px; }
  .profile-heading .community-avatar > span { font-size: 30px; }
  .profile-heading h1 { font-size: 24px; }
  .profile-heading > div { min-width: 0; }
  .avatar-preview { position: static; }
  .support-band { flex-direction: column; align-items: flex-start; gap: 12px; }
  .budget-table > div { flex-direction: column; gap: 4px; }
  .budget-table span { text-align: left; }
  .supporter-preview { align-items: flex-start; gap: 16px; }
  .supporter-preview > div { min-width: 0; }
  .supporter-preview .reward-art { width: 50px; height: 50px; }
  .reward-history { align-items: flex-start; flex-direction: column; }
  .permission-editor { grid-column: 1 / -1; }
  .profile-menu-items { right: 0; }
  .question-preview h2 { font-size: 20px; }
}
