:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --surface-soft: #f2f2f3;
  --line: #ececec;
  --line-strong: #dedee0;
  --text: #17191c;
  --muted: #777b86;
  --faint: #979799;
  --green: #17191c;
  --green-dark: #17191c;
  --green-soft: #f2f2f3;
  --highlight: #fbe1d1;
  --row-active: #f2f2f3;
  --row-hover: #f7f7f8;
  --table-head-bg: #ffffff;
  --shadow: none;
  --shadow-soft: none;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html,
body {
  min-width: 1080px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

button,
input {
  font-family: var(--font-sans);
}

[hidden] {
  display: none !important;
}

.app-shell {
  grid-template-columns: 220px minmax(510px, 1fr) 380px;
  grid-template-rows: 84px minmax(0, 1fr);
  width: min(1248px, 100vw);
  max-width: 1248px;
  height: 100vh;
  min-height: 720px;
  margin-inline: auto;
  padding: 0 24px 24px;
  background: var(--bg);
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  height: 84px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand {
  width: auto;
  min-height: 0;
  gap: 10px;
  padding: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  filter: grayscale(1);
}

.brand h1 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.3px;
}

.module-tabs {
  justify-content: flex-end;
  gap: 8px;
  overflow: visible;
}

.module-tab {
  position: relative;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.module-tab:hover {
  color: var(--text);
  background: transparent;
}

.module-tab.active {
  border-color: transparent;
  color: var(--text);
  background: transparent;
}

.module-tab.active::after {
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 1px;
  background: var(--text);
  content: "";
}

.module-tab.disabled {
  color: var(--faint);
  opacity: 0.62;
}

.module-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 500;
}

.sidebar,
.table-pane,
.detail-pane {
  min-height: 0;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 24px 0 0 24px;
  background: var(--bg);
}

.filter-section {
  padding: 26px 20px 22px;
  border-color: var(--line);
}

.filter-section:last-child {
  border-bottom: 0;
}

.filter-section h2 {
  padding: 0 10px 12px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.choice-list {
  gap: 4px;
}

.choice {
  position: relative;
  min-height: 40px;
  padding: 0 10px 0 30px;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
}

.choice::before {
  position: absolute;
  left: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid #b9b9bc;
  border-radius: 50%;
  background: transparent;
  content: "";
}

.choice:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.choice.active {
  color: var(--text);
  background: var(--surface-soft);
  box-shadow: none;
}

.choice.active::before {
  border-color: var(--text);
  background: var(--text);
  box-shadow: inset 0 0 0 2px var(--surface-soft);
}

.choice-count {
  color: var(--faint);
  font-size: 12px;
}

.workspace {
  display: contents;
}

.table-pane {
  grid-column: 2;
  grid-row: 2;
  border: 1px solid var(--line);
  border-radius: 0;
}

.detail-pane {
  grid-column: 3;
  grid-row: 2;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 24px 24px 0;
}

.table-wrap {
  scrollbar-color: #d5d5d8 transparent;
  scrollbar-width: thin;
}

table {
  font-size: 14px;
}

thead th {
  height: 58px;
  padding: 0 16px;
  border-color: var(--line);
  color: var(--faint);
  background: rgba(255, 255, 255, 0.98);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

td {
  height: 68px;
  padding: 0 16px;
  border-bottom: 0;
  color: var(--muted);
  background-color: var(--surface);
  background-image: linear-gradient(var(--line), var(--line));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 1px;
}

tbody tr {
  --current-row-bg: var(--surface);
}

tbody tr:not(.skeleton-row):hover {
  --current-row-bg: var(--row-hover);
}

tbody tr.active {
  --current-row-bg: var(--surface-soft);
}

tbody tr:not(.skeleton-row):hover td,
tbody tr.locked-row:hover td,
tbody tr.active td {
  background-color: var(--current-row-bg);
  background-image: none;
}

tbody tr:has(+ tr:not(.skeleton-row):hover) td,
tbody tr.before-active td {
  background-image: none;
}

tbody tr:not(.skeleton-row):hover td:first-child,
tbody tr.active td:first-child {
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

tbody tr:not(.skeleton-row):hover td:last-child,
tbody tr.active td:last-child {
  border-radius: 0;
  background-color: transparent;
}

tbody td:first-child,
tbody td:last-child {
  position: relative;
}

tbody td:first-child {
  background-position: right bottom;
  background-size: calc(100% - 16px) 1px;
}

tbody td:last-child {
  background-position: left bottom;
  background-size: calc(100% - 8px) 1px;
}

tbody tr:not(.skeleton-row):hover td:first-child::before,
tbody tr.active td:first-child::before,
tbody tr:not(.skeleton-row):hover td:last-child::before,
tbody tr.active td:last-child::before {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  background: var(--current-row-bg);
  content: "";
}

tbody tr:not(.skeleton-row):hover td:first-child::before,
tbody tr.active td:first-child::before {
  right: 0;
  left: 16px;
  border-radius: 14px 0 0 14px;
}

tbody tr:not(.skeleton-row):hover td:last-child::before,
tbody tr.active td:last-child::before {
  right: 0;
  left: 0;
  border-radius: 0 14px 14px 0;
}

tbody td:first-child > *,
tbody td:last-child > * {
  position: relative;
  z-index: 1;
}

.rank-col,
tbody td:first-child {
  width: 58px;
  padding-right: 0;
  padding-left: 32px;
  text-indent: 0;
  text-overflow: clip;
}

.term-cell,
thead th:nth-child(2) {
  width: 205px;
}

.doc-col {
  width: 82px;
}

.freq-col {
  width: 86px;
}

.term-cell {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.freq,
.doc-count,
tbody td:first-child {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.loading-row td,
.error-row td,
.empty-row td {
  color: var(--muted);
}

.detail-content {
  scrollbar-color: #d5d5d8 transparent;
  scrollbar-width: thin;
}

.skeleton-line {
  background: #e3e3e5;
}

.skeleton-line::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
}

.skeleton-row td,
.skeleton-row:hover td,
.speaking-skeleton-list,
.speaking-skeleton-detail,
.speaking-skeleton-card,
.speaking-skeleton-card:hover {
  background: var(--surface);
}

.skeleton-row.skeleton-active td,
.speaking-skeleton-card.active {
  background: var(--surface-soft);
}

.skeleton-row.skeleton-active td:first-child {
  box-shadow: none;
}

.detail-head {
  padding: 30px 28px 14px;
  background: rgba(255, 255, 255, 0.98);
}

.detail-title {
  gap: 10px;
}

.detail-title h2 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.phonetic-line {
  gap: 14px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 13px;
}

.audio-actions {
  gap: 8px;
  margin-top: 2px;
}

.audio-button {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  font-weight: 400;
}

.audio-button:hover,
.audio-button.playing {
  border-color: var(--text);
  color: var(--surface);
  background: var(--text);
}

.definition-block {
  padding: 8px 28px 24px;
  border-color: var(--line);
}

.definition-list {
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.definition-item {
  gap: 10px;
}

.pos-tag {
  color: var(--faint);
  font-weight: 400;
}

.examples-block {
  padding: 22px 0 34px;
}

.examples-title {
  padding: 0 28px 14px;
}

.examples-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 480;
}

.examples-title span {
  color: var(--faint);
  font-size: 12px;
}

.example {
  position: relative;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 22px 28px;
  border-top: 0;
}

.example::before,
.example:last-child::after {
  position: absolute;
  right: 8px;
  left: 16px;
  height: 1px;
  background: var(--line);
  content: "";
}

.example::before {
  top: 0;
}

.example:last-child {
  border-bottom: 0;
}

.example:last-child::after {
  bottom: 0;
}

.example-number {
  color: var(--faint);
  font-size: 11px;
}

.example-text {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.62;
}

.example-source {
  margin-top: 9px;
  color: var(--faint);
  font-size: 11px;
}

mark {
  padding: 0 2px;
  color: inherit;
  background: transparent;
  box-shadow: inset 0 -5px var(--highlight);
}

.empty-state {
  padding: 44px 28px;
}

.empty-state h2 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
}

.empty-state p {
  max-width: 290px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.locked-content {
  filter: blur(5px);
  opacity: 0.36;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

tbody tr.locked-row td {
  text-overflow: clip;
}

.wechat-contact {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: center;
  width: auto;
  min-height: 52px;
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: var(--bg);
  flex: 0 0 auto;
}

.sidebar > .filter-section:last-of-type {
  border-bottom: 0;
}

.corner-link {
  padding: 0 10px;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}

.corner-link:first-child {
  padding-left: 10px;
}

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

.corner-link + .corner-link {
  border-color: var(--line-strong);
}

.access-bar {
  bottom: 16px;
  width: min(680px, calc(100vw - 420px));
  min-height: 64px;
  padding: 10px 10px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.access-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 480;
}

.access-copy span {
  color: var(--muted);
  font-size: 12px;
}

.access-primary,
.access-secondary,
.modal-primary {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--text);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.access-primary,
.modal-primary {
  color: var(--surface);
  background: var(--text);
}

.access-secondary {
  color: var(--text);
  background: transparent;
}

.modal-backdrop {
  background: rgba(23, 25, 28, 0.18);
}

.access-modal {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.module-tab:focus-visible,
.choice:focus-visible,
.speaking-unit-tabs button:focus-visible,
.speaking-topic-tags button:focus-visible,
.speaking-detail-tabs button:focus-visible,
.speaking-question-card:focus-visible,
.access-primary:focus-visible,
.access-secondary:focus-visible,
.modal-primary:focus-visible,
.admin-primary:focus-visible,
.admin-ghost:focus-visible,
.admin-row-action:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

/* Speaking surfaces keep the original information architecture while sharing
   the same quiet monochrome treatment as the vocabulary workspace. */
.speaking-mode .app-shell {
  --speaking-right-pane-width: 380px;
  grid-template-columns: 220px minmax(510px, 1fr) 380px;
  width: min(1248px, 100vw);
  max-width: 1248px;
}

.speaking-mode .table-pane.speaking-single-pane {
  grid-column: 2 / -1;
  border-right: 1px solid var(--line);
  border-radius: 0 24px 24px 0;
}

.speaking-mode .table-pane.speaking-p2-pane {
  grid-column: 2;
}

.speaking-mode .detail-pane.speaking-p3-pane {
  grid-column: 3;
}

.speaking-panel-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(510px, 1fr) var(--speaking-right-pane-width);
  overflow: hidden;
}

.speaking-panel-grid > .speaking-board,
.speaking-panel-grid > .speaking-detail-board,
.speaking-panel-grid .speaking-topic-stack {
  min-width: 0;
}

.speaking-board,
.speaking-detail-board,
.speaking-question-card,
.speaking-answer-card,
.speaking-cue-card,
.speaking-qa,
.speaking-template-slot {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}

.speaking-board,
.speaking-detail-board {
  border-radius: 24px;
}

.speaking-panel-grid > .speaking-board:first-child {
  border-radius: 0;
}

.speaking-panel-grid > .speaking-detail-board {
  border-radius: 0 24px 24px 0;
}

.speaking-panel-grid .speaking-topic-stack,
.speaking-panel-grid .speaking-detail-body {
  scrollbar-color: #d5d5d8 transparent;
  scrollbar-width: thin;
}

.speaking-unit-tabs,
.speaking-topic-section,
.speaking-stage,
.speaking-detail-tabs,
.speaking-detail-body {
  border-color: var(--line);
  background: var(--surface);
}

.speaking-board-head,
.speaking-detail-head,
.speaking-detail-tabs,
.speaking-topic-section,
.speaking-reference-answer,
.speaking-qa,
.speaking-cue-card {
  border-color: var(--line);
}

.speaking-board-head h2,
.speaking-board-title span,
.speaking-detail-head .detail-title h2,
.speaking-section-heading h3,
.speaking-stage-title h3 {
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 400;
}

.speaking-unit-tabs button,
.speaking-topic-tags button,
.speaking-detail-tabs button {
  border-color: transparent;
  border-radius: 9999px;
  color: var(--muted);
  background: transparent;
  font-weight: 400;
  box-shadow: none;
}

.speaking-unit-tabs button:hover,
.speaking-topic-tags button:hover,
.speaking-detail-tabs button:hover,
.speaking-unit-tabs button.active,
.speaking-topic-tags button.active,
.speaking-detail-tabs button.active {
  border-color: transparent;
  color: var(--text);
  background: var(--surface-soft);
  box-shadow: none;
}

.speaking-question-card:hover,
.speaking-question-card.active {
  border-color: transparent;
  color: var(--text);
  background: var(--surface-soft);
  box-shadow: none;
}

.speaking-question-card strong,
.speaking-answer-card strong,
.speaking-answer strong,
.speaking-template-slot strong {
  color: var(--text);
  font-weight: 480;
}

.speaking-question-card > span,
.speaking-unit-tabs small,
.speaking-topic-tags small,
.question-zh,
.speaking-section-heading p,
.speaking-stage-title span,
.speaking-translation,
.speaking-answer.zh p,
.speaking-answer-card p,
.speaking-answer-card.zh p,
.speaking-qa p,
.speaking-answer p,
.speaking-template-slot p {
  color: var(--muted);
}

.speaking-question-card > span {
  color: var(--text);
  background: var(--surface-soft);
}

.speaking-cue-card pre,
.speaking-template-slot {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface-soft);
  box-shadow: none;
}

.speaking-reference-answer h4 {
  color: var(--text);
  font-weight: 480;
}

.speaking-reference-answer {
  border-color: var(--line);
}

.speaking-detail-tabs button::after,
.speaking-detail-tabs button.active::after {
  display: none;
  background: transparent;
}

/* Admin */
.admin-page {
  min-width: 0;
  min-height: 100vh;
  overflow: auto;
  background: var(--bg);
}

.admin-shell {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0;
}

.admin-panel {
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: none;
}

.admin-kicker {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
}

.admin-head h1 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.admin-login,
.admin-add-form {
  gap: 16px;
}

.admin-login {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.admin-login label,
.admin-add-form label {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.admin-login input,
.admin-add-form input,
.admin-add-form select,
.admin-toolbar input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  font-size: 14px;
}

.admin-login input:focus,
.admin-add-form input:focus,
.admin-add-form select:focus,
.admin-toolbar input:focus {
  border-color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(23, 25, 28, 0.06);
}

.admin-primary,
.admin-ghost,
.admin-row-action {
  border-radius: 9999px;
  font-weight: 400;
  box-shadow: none;
}

.admin-primary {
  color: var(--surface);
  background: var(--text);
}

.admin-primary:hover {
  background: #2a2d31;
}

.admin-ghost,
.admin-row-action {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
}

.admin-ghost:hover,
.admin-row-action:hover {
  border-color: var(--text);
}

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-color: var(--line);
  color: var(--text);
  font-size: 13px;
}

.admin-table th {
  color: var(--faint);
  background: var(--bg);
  font-weight: 400;
}

.admin-table tbody tr:hover td {
  background: var(--bg);
}

.admin-table tbody tr {
  cursor: default;
}

.admin-table tbody td:first-child > .admin-cell-value {
  position: relative;
  z-index: 1;
}

.admin-table tbody tr.is-editing td {
  background: var(--bg);
}

.admin-inline-field {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

.admin-inline-field:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(23, 25, 28, 0.06);
}

.admin-row-action.primary {
  border-color: var(--text);
  color: var(--surface);
  background: var(--text);
}

.admin-row-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-table th:last-child {
  width: 210px;
}

.admin-row-action.danger {
  border-color: #ead6d6;
  color: #8f3f3f;
  background: #fffafa;
}

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

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 190px minmax(500px, 1fr) 340px;
    width: 1080px;
    padding-inline: 18px;
  }

  .speaking-mode .app-shell {
    --speaking-right-pane-width: 340px;
    grid-template-columns: 190px minmax(500px, 1fr) 340px;
    width: 1080px;
  }

  .topbar {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .module-tab {
    padding-inline: 9px;
    font-size: 13px;
  }

  .module-icon {
    display: none;
  }

  .detail-title h2 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    min-width: 0;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell,
  .speaking-mode .app-shell {
    display: flex;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100vh;
    padding: 0 12px 24px;
    flex-direction: column;
    gap: 12px;
  }

  .topbar {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .brand {
    min-height: 64px;
    flex: 0 0 64px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .module-tabs {
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .module-tab {
    flex: 0 0 auto;
    height: 42px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .module-icon {
    display: none;
  }

  .sidebar {
    display: grid;
    width: 100%;
    min-height: 0;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 24px;
  }

  .filter-section {
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .filter-section:nth-child(2) {
    border-right: 0;
  }

  .speaking-filter-section {
    border-top: 1px solid var(--line);
  }

  .workspace,
  .speaking-mode .workspace {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .table-pane,
  .detail-pane,
  .speaking-mode .table-pane,
  .speaking-mode .detail-pane {
    width: 100%;
    min-width: 0;
    height: 560px;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 24px;
  }

  .table-wrap table {
    min-width: 720px;
  }

  .detail-pane,
  .speaking-mode .detail-pane {
    height: 640px;
  }

  .speaking-panel-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(420px, 1fr) minmax(420px, 1fr);
    overflow-y: auto;
  }

  .speaking-panel-grid > .speaking-board,
  .speaking-panel-grid > .speaking-detail-board {
    min-height: 420px;
  }

  .access-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    min-height: 0;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    transform: none;
  }

  .access-actions {
    justify-content: flex-end;
  }

  .wechat-contact {
    position: static;
    display: flex;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 24px;
    grid-column: 1 / -1;
  }

  .admin-shell {
    width: min(100vw - 24px, 560px);
    padding: 20px 0;
  }

  .admin-panel {
    padding: 20px;
  }

  .admin-head h1 {
    font-size: 36px;
  }
}

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