:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --sidebar: #f3f2ef;
  --paper: #ffffff;
  --paper-soft: #faf9f6;
  --ink: #37352f;
  --muted: #8a877f;
  --faint: #b9b5aa;
  --line: rgba(55, 53, 47, 0.11);
  --line-strong: rgba(55, 53, 47, 0.18);
  --green: #3f6f65;
  --green-soft: #e5f2ef;
  --blue: #2f7fd1;
  --blue-soft: #e8f2ff;
  --rose: #c8708c;
  --rose-soft: #faedf2;
  --amber: #a96f24;
  --amber-soft: #f8ecd8;
  --danger: #bf3f3f;
  --shadow: 0 22px 60px rgba(50, 45, 34, 0.08);
  --ease: cubic-bezier(.22, .9, .28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "LXGW WenKai Screen", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea {
  font: inherit;
}

button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

button:hover:not(:disabled) {
  background: rgba(55, 53, 47, 0.06);
}

button:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47, 127, 209, .18); }

.primary, form button[type="submit"] {
  background: #2f7fd1;
  color: #fff;
  border-color: #2f7fd1;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(47, 127, 209, .18);
}

.primary:hover:not(:disabled), form button[type="submit"]:hover:not(:disabled) {
  background: #286fb8;
}

.pill { border-radius: 999px; }
.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 52px;
  display: grid;
  grid-template-columns: 260px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 248, .86);
  backdrop-filter: blur(14px);
}

.brandLockup { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brandMark {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #e1f0dd, #eef7f4);
  border: 1px solid rgba(63, 111, 101, .16);
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 900;
}

.brandLockup h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.breadcrumb {
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
}

.navLinks {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.62);
}

.navLinks button {
  min-height: 30px;
  color: var(--muted);
  font-size: 13px;
}

.navLinks button.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(50,45,34,.05);
}

.account {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.account span {
  color: var(--muted);
  font-size: 13px;
}

.page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 52px);
}

.workspaceSidebar {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow: auto;
  padding: 24px 10px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}

.sidebarLabel {
  margin: 6px 8px 8px;
  color: #aaa69b;
  font-size: 12px;
  font-weight: 700;
}

.sideItem, .quickTag {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  color: #5f5c55;
  text-align: left;
  font-size: 14px;
}

.sideItem.active, .quickTag.active {
  background: rgba(55, 53, 47, .08);
  color: var(--ink);
  font-weight: 800;
}

.quickTag span {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(55, 53, 47, .07);
  color: var(--muted);
  font-size: 12px;
}

.categoryNav {
  display: grid;
  gap: 2px;
}

body.adminRoute .categoryNav,
body.adminRoute .teacherRankBox,
body.adminRoute .workspaceSidebar .sidebarLabel:nth-of-type(2) {
  display: none;
}

.contentCanvas {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 44px 80px;
}

body.adminRoute .contentCanvas {
  width: min(100%, 1280px);
}

.teacherRankBox {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rankHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rankHead .sidebarLabel {
  margin: 0;
}

.rankHead button {
  min-height: 26px;
  padding: 3px 8px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.teacherRankList {
  display: grid;
  gap: 4px;
}

.rankItem {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--ink);
  text-align: left;
}

.rankItem:hover {
  background: rgba(55, 53, 47, .06);
}

.rankNo {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(55, 53, 47, .08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rankName {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rankItem b {
  color: var(--green);
  font-size: 15px;
}

.rankItem em {
  grid-column: 2 / -1;
  margin-top: -4px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-style: normal;
}

.rankPager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.rankPager button {
  min-height: 26px;
  padding: 3px 6px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.rankPager button:last-child {
  justify-self: end;
}

.tinyText {
  font-size: 12px;
}

.hero {
  position: relative;
  padding-bottom: 28px;
  animation: pageIn .5s var(--ease) both;
}

.coverArt {
  height: 214px;
  margin: 0 -44px 0;
  background:
    radial-gradient(circle at 16% 74%, rgba(63, 111, 101, .22), transparent 15%),
    radial-gradient(circle at 70% 20%, rgba(200, 112, 140, .16), transparent 22%),
    linear-gradient(105deg, #f7ead5 0%, #eff4e6 36%, #e5f4f2 67%, #f7e8f1 100%);
  border-bottom: 1px solid var(--line);
}

.pageIcon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: -32px 0 12px;
  border-radius: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  box-shadow: 0 12px 32px rgba(50,45,34,.08);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 900;
}

.heroCopy {
  width: min(840px, 100%);
  margin: 0 auto;
}

.heroCopy h2 {
  margin: 0 0 16px;
  color: #2f2d29;
  font-size: 46px;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: pretty;
}

.heroCopy p {
  margin: 0 0 24px;
  max-width: 760px;
  color: #5f5c55;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  text-wrap: pretty;
}

.heroSearch {
  width: min(620px, 100%);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.heroActions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.heroActions button {
  border-color: var(--line);
  background: var(--paper);
  color: var(--green);
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(50,45,34,.045);
}

.heroSearch:focus-within {
  transform: translateY(-1px);
  border-color: rgba(47, 127, 209, .35);
  box-shadow: 0 14px 34px rgba(47, 127, 209, .10);
}

.heroSearch span {
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.heroSearch input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 15px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.sectionHead {
  width: min(840px, 100%);
  margin: 34px auto 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.sectionHead.compact {
  width: 100%;
  margin-top: 0;
}

.sectionHead h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: #f0efeb;
}

.segmented button {
  min-height: 30px;
  color: var(--muted);
  font-size: 13px;
}

.segmented button.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(50,45,34,.05);
  font-weight: 800;
}

.resultBar {
  width: min(840px, 100%);
  margin: 20px auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.grid {
  width: min(840px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.reviewCard {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  animation: riseIn .42s var(--ease) both;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.reviewCard:hover {
  transform: translateY(-2px);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(50,45,34,.07);
}

.cardTop {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 900;
}

.crest {
  border: 1px solid rgba(63, 111, 101, .12);
}

.cardTop h4 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #34312c;
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cardTop p, .muted {
  margin: 0;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.cardScore {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  gap: 4px;
}

.cardScore b {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.cardScore span {
  color: var(--faint);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.cardScore em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.tagLine {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 56px;
}

.tagLine span, .detailTags span {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.tagLine span:nth-child(2), .detailTags span:nth-child(2) {
  background: var(--green-soft);
  color: var(--green);
}

.tagLine span:nth-child(3), .detailTags span:nth-child(3) {
  background: var(--blue-soft);
  color: var(--blue);
}

.pager {
  width: min(840px, 100%);
  margin: 26px auto 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.pager button {
  border-color: var(--line);
  background: var(--paper);
}

.compactPager { width: auto; margin: 0; }
.compactPager button { min-height: 30px; }

.detailView {
  width: min(900px, 100%);
  margin: 0 auto;
  padding-bottom: 60px;
  animation: pageIn .35s var(--ease) both;
}

.backBtn {
  margin: 18px 0 14px;
  color: var(--muted);
}

.aiSummaryCard {
  position: relative;
  margin: 20px 0 22px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(242, 199, 122, .18), rgba(111, 171, 152, .14) 48%, rgba(201, 176, 205, .16)),
    var(--paper);
  box-shadow: 0 18px 50px rgba(55, 53, 47, .08);
  animation: riseIn .42s ease both;
}

.aiSummaryCard h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: 0;
}

.aiSummaryText {
  margin: 0;
  color: #4d4942;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}

.aiSummaryCard.error {
  background: #fff8f8;
  border-color: rgba(191,63,63,.18);
}

.detailHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 22px;
  align-items: start;
}

.detailMain, .detailScore, .commentPanel, .writePanel, .panel {
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(50,45,34,.055);
}

.detailMain {
  padding: 0 28px 28px;
}

.detailMain .pageIcon {
  margin-top: -32px;
}

.detailMain h2 {
  margin: 0 0 12px;
  color: #2f2d29;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.16;
  text-wrap: pretty;
}

.detailMain p {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

.detailTags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detailScore {
  padding: 24px;
}

.detailScore b {
  display: block;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.starsLine {
  display: flex;
  gap: 2px;
  color: #d9d5cb;
  margin-bottom: 12px;
}

.starsLine .on { color: #d69a31; }
.detailScore p { margin: 0; color: var(--muted); font-family: "Microsoft YaHei", sans-serif; }

.detailGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
}

.commentPanel, .writePanel {
  padding: 22px;
}

.list {
  display: grid;
  gap: 10px;
}

.listItem {
  border-radius: 9px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.listItem strong {
  display: block;
  margin-bottom: 4px;
}

.listItem span {
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.listItem p {
  margin: 10px 0 0;
  color: #4d4942;
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

.stars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.stars button {
  border-radius: 8px;
  background: var(--paper-soft);
  border-color: var(--line);
  font-size: 16px;
}

.stars button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

textarea, input, select {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: "Microsoft YaHei", sans-serif;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.65;
}

.captchaBox {
  display: grid;
  grid-template-columns: 148px auto;
  gap: 10px;
  align-items: center;
}

.checkLine {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.checkLine input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.captchaBox img {
  width: 148px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-soft);
}

.captchaBox input {
  grid-column: 1 / -1;
}

.captchaBox .ghost {
  min-height: 36px;
  border-color: var(--line);
  background: var(--paper-soft);
}

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

.emailCodeBox button {
  border-color: var(--line);
  background: var(--paper-soft);
  white-space: nowrap;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 800;
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(38, 35, 28, .28);
  backdrop-filter: blur(8px);
}

.dialogCard {
  width: min(520px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dialogHeader {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 4px;
}

.dialogHeader h2 {
  margin: 0;
  font-size: 24px;
}

.formMessage {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f1;
  border: 1px solid rgba(191,63,63,.18);
  color: #9f2f2f;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.formMessage.success {
  background: var(--green-soft);
  border-color: rgba(63,111,101,.18);
  color: var(--green);
}

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

.linkBtn {
  color: var(--blue);
}

.loginHint {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 9px;
  background: var(--blue-soft);
  border: 1px solid rgba(47, 127, 209, .14);
}

.loginHint span {
  color: #465f78;
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.admin {
  width: min(1060px, 100%);
  margin: 28px auto 0;
}

.sectionTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0 6px;
}

.sectionTitle h2 {
  margin: 4px 0 0;
  font-size: 34px;
  letter-spacing: 0;
}

.adminGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.adminGrid.single {
  grid-template-columns: 1fr;
}

.usersGrid {
  grid-template-columns: minmax(320px, 520px);
}

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

.adminPanelHead h3 {
  margin: 0;
}

.commentPanel {
  padding-bottom: 18px;
}

.commentPanel .list {
  display: grid;
  gap: 8px;
}

.commentRow {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.commentRow strong {
  margin-bottom: 2px;
}

.commentRow p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.commentRow .listActions {
  margin-top: 0;
  justify-content: flex-end;
}

.commentMeta {
  min-width: 0;
}

.commentMeta span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.adminCommentPager {
  width: auto;
  margin: 0;
}

.adminCommentPager span {
  white-space: nowrap;
}

.panel {
  padding: 20px;
}

.panel h3 {
  margin: 0 0 14px;
}

.panel form, .panel {
  font-family: "Microsoft YaHei", sans-serif;
}

.listActions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger {
  color: var(--danger);
  border-color: rgba(191,63,63,.24);
}

.feedbackItem {
  border-color: rgba(47, 127, 209, .14);
  background: #fbfdff;
}

.feedbackItem.resolved {
  opacity: .68;
  background: var(--paper-soft);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483647;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  padding: 12px 14px;
  border-radius: 9px;
  background: #2f2d29;
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.emptyState, .detailLoading {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 10px;
  background: var(--paper-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

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

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 56px;
  }
  .breadcrumb, .navLinks {
    display: none;
  }
  .page {
    grid-template-columns: 1fr;
  }
  .workspaceSidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebarLabel {
    grid-column: 1 / -1;
  }
  .contentCanvas {
    padding: 0 24px 70px;
  }
  .coverArt {
    margin-inline: -24px;
  }
  .detailHero, .detailGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }
  .account {
    width: 100%;
    justify-content: flex-start;
    grid-column: 1 / -1;
  }
  .workspaceSidebar {
    grid-template-columns: 1fr;
  }
  .contentCanvas {
    padding: 0 16px 60px;
  }
  .coverArt {
    height: 150px;
    margin-inline: -16px;
  }
  .heroCopy h2 {
    font-size: 32px;
  }
  .sectionHead, .resultBar {
    align-items: flex-start;
    flex-direction: column;
  }
  .compactPager {
    display: none;
  }
  .reviewCard {
    grid-template-columns: 1fr;
  }
  .cardScore {
    justify-content: start;
  }
  .cardScore em {
    text-align: left;
  }
  .tagLine {
    padding-left: 0;
  }
  .detailMain h2 {
    font-size: 30px;
  }
  .adminGrid {
    grid-template-columns: 1fr;
  }
  .usersGrid {
    grid-template-columns: 1fr;
  }
  .adminPanelHead {
    align-items: flex-start;
    flex-direction: column;
  }
  .commentRow {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .commentRow p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .commentRow .listActions {
    justify-content: flex-start;
  }
}
