:root {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --ink: #202123;
  --muted: #6e6e80;
  --line: #e5e7eb;
  --accent: #202123;
  --accent-soft: #9aa0a6;
  --male: #0f766e;
  --female: #be185d;
  --surface-soft: #f9fafb;
  --surface-muted: #f3f4f6;
  --surface-strong: #eceff3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfcfd 0%, var(--bg) 100%);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.workspace-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.workspace-main > .panel:first-child {
  margin-top: 0;
}

.workspace-sidebar {
  position: sticky;
  top: 18px;
  z-index: 30;
  width: 220px;
  max-height: calc(100vh - 36px);
}

.mobile-dock-reveal-button {
  display: none;
}

.sidebar-panel {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.sidebar-panel .sidebar-account-card {
  margin-top: auto;
}

.sidebar-head {
  display: grid;
  gap: 4px;
}

.sidebar-kicker,
.sidebar-title {
  margin: 0;
}

.sidebar-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #2d2f35;
}

.sidebar-account-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-account-card button {
  width: 100%;
  min-height: 34px;
  margin-top: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #475569;
  border-color: transparent;
  box-shadow: none;
}

.sidebar-account-card button:hover {
  background: #f8fafc;
}

.sidebar-project-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(42px, auto) auto;
  gap: 0;
  width: 100%;
  padding: 0;
  text-align: center;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
  overflow: hidden;
}

.sidebar-card-label,
.sidebar-group-title,
.sidebar-account-card small,
.sidebar-action-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.sidebar-project-card strong {
  grid-column: auto;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.sidebar-project-card .sidebar-card-label,
.sidebar-project-card strong,
.sidebar-project-card .sidebar-project-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: 100%;
  padding: 6px 10px;
}

.sidebar-project-card strong {
  min-height: 42px;
  padding-block: 8px;
}

.sidebar-project-card .sidebar-card-label,
.sidebar-project-card strong {
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.sidebar-project-card .sidebar-card-label {
  color: #64748b;
  font-weight: 800;
}

.sidebar-project-card .sidebar-project-state {
  border-radius: 0;
  background: transparent;
}

.sidebar-project-card:hover {
  background: #f8fafc;
}

.sidebar-project-state,
.sidebar-account-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-project-state.is-dirty {
  background: #fff7ed;
  color: #9a3412;
}

.sidebar-project-state.is-saving {
  background: #eff6ff;
  color: #1d4ed8;
}

.sidebar-account-card span.is-trial {
  background: #fff7ed;
  color: #9a3412;
}

.sidebar-account-card span.is-user {
  background: #ecfdf5;
  color: #047857;
}

.sidebar-action-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.sidebar-group-title {
  padding: 0 2px 2px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-action-group button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 12px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: none;
}

.sidebar-action-group .sidebar-project-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(42px, auto) auto;
  align-items: stretch;
  justify-content: stretch;
}

.sidebar-action-group button:hover {
  background: #f8fafc;
}

#parseGenerateAllButton,
#downloadProjectMp3Button {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

#parseGenerateAllButton:hover:not(:disabled),
#downloadProjectMp3Button:hover:not(:disabled) {
  background: #f1f5f9;
}

#parseGenerateAllButton:active:not(:disabled),
#downloadProjectMp3Button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.sidebar-action-group button.is-soft-state {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.sidebar-action-group button.is-dirty-state {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.sidebar-action-group button.is-ready-state {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.sidebar-action-note {
  padding: 0 2px;
  line-height: 1.45;
}

.import-panel.is-collapsed .card {
  padding-bottom: 18px;
}

.import-panel.is-collapsed .workspace-grid {
  display: none;
}

.import-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(255, 255, 255, 0.92));
}

.import-summary > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.import-summary strong {
  color: #166534;
}

.import-summary span {
  color: #475569;
  font-size: 13px;
}

.import-summary button {
  flex: 0 0 auto;
  border-radius: 12px;
  background: #ffffff;
  color: #166534;
  border-color: rgba(22, 163, 74, 0.2);
}

.import-summary button:hover {
  background: #ecfdf3;
}

.section-directory {
  margin: 10px 0 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.1), transparent 32%),
    linear-gradient(145deg, #ffffff, #f8fafc);
}

.section-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-directory-head h3 {
  margin: 3px 0 0;
  color: #111827;
  font-size: 19px;
}

.section-directory-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section-directory-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 12px;
  background: #202123;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.section-sidebar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding: 2px;
  overflow: visible;
}

.current-section-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.section-nav-button {
  position: relative;
  flex: 1 1 210px;
  max-width: 280px;
  min-width: 190px;
  min-height: 62px;
  border-radius: 16px;
  padding: 12px 12px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    #fff;
  color: #3f3f46;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.section-nav-button.is-draggable {
  cursor: grab;
}

.section-nav-button.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
  transform: scale(0.98);
}

.section-nav-button.is-drop-target {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.12);
}

.section-nav-button.is-drop-before::before,
.section-nav-button.is-drop-after::after {
  position: absolute;
  top: -8px;
  bottom: -8px;
  z-index: 3;
  width: 6px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
  content: "";
}

.section-nav-button.is-drop-before::before {
  left: -7px;
}

.section-nav-button.is-drop-after::after {
  right: -7px;
}

.section-nav-button.is-drop-before .section-nav-main::after,
.section-nav-button.is-drop-after .section-nav-main::after {
  position: absolute;
  top: -18px;
  z-index: 4;
  border-radius: 999px;
  padding: 4px 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.section-nav-button.is-drop-before .section-nav-main::after {
  left: 8px;
  content: "插入到前面";
}

.section-nav-button.is-drop-after .section-nav-main::after {
  right: 8px;
  content: "插入到后面";
}

.section-nav-button.is-reorder-flash {
  animation: sectionReorderFlash 1.3s ease;
}

@keyframes sectionReorderFlash {
  0% {
    border-color: rgba(37, 99, 235, 0.62);
    background: rgba(239, 246, 255, 0.98);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  }
  100% {
    border-color: rgba(226, 232, 240, 0.92);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  }
}

.section-nav-button.is-locked {
  cursor: pointer;
}

.section-nav-drag-handle {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2em;
  transform: rotate(90deg);
}

.section-nav-number {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
}

.section-nav-main {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-nav-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  font-size: 11px;
  color: #475569;
  font-weight: 800;
  white-space: nowrap;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-nav-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c4c7cf;
}

.section-nav-status.is-ready::before {
  background: #16a34a;
}

.section-nav-status.is-ready {
  background: #dcfce7;
  color: #166534;
}

.section-nav-status.is-stale::before {
  background: #f97316;
}

.section-nav-status.is-stale {
  background: #ffedd5;
  color: #9a3412;
}

.section-nav-status.is-working::before {
  background: #2563eb;
}

.section-nav-status.is-working {
  background: #dbeafe;
  color: #1d4ed8;
}

.section-nav-button.is-active .section-nav-status {
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.12);
}

.section-nav-button:hover {
  background: #f8fafc;
}

.section-nav-button.is-active {
  background:
    linear-gradient(145deg, rgba(238, 242, 255, 0.98), rgba(255, 255, 255, 0.96)),
    #eef2ff;
  color: #202123;
  font-weight: 700;
  border-color: #a5b4fc;
  box-shadow:
    inset 5px 0 0 #4f46e5,
    0 14px 30px rgba(79, 70, 229, 0.14);
}

.section-nav-button.is-active .section-nav-number {
  background: #4f46e5;
  color: #ffffff;
}

.hero h1 {
  margin: 0;
  font-size: 40px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  font-weight: 700;
}

.intro {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.grid,
.stack,
.results {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.grid {
  grid-template-columns: 1.5fr 0.9fr;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

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

.step-kicker {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-head h2,
.section-head h2 {
  margin: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(460px, 1.14fr);
  gap: 16px;
  align-items: start;
}

.import-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.raw-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.import-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.import-section-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.import-section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.raw-input-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-ocr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.photo-ocr-actions button {
  flex: 0 0 auto;
  min-height: 38px;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.photo-ocr-actions button:hover:not(:disabled) {
  background: #dbeafe;
}

.photo-ocr-actions span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.ocr-section-picker {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.ocr-focus-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: #eff6ff;
}

.ocr-focus-bar div {
  display: grid;
  gap: 2px;
}

.ocr-focus-bar span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ocr-focus-bar strong {
  color: #0f172a;
  font-size: 15px;
}

.ocr-picker-head,
.ocr-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ocr-picker-head div {
  display: grid;
  gap: 4px;
}

.ocr-picker-head strong {
  color: #111827;
  font-size: 15px;
}

.ocr-picker-head span,
.ocr-picker-footer span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.ocr-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ocr-section-cards {
  display: grid;
  gap: 12px;
  max-height: min(68vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 12px 2px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.ocr-section-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 16px;
  border: 2px solid rgba(148, 163, 184, 0.42);
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.ocr-section-card.is-selected {
  border-color: rgba(37, 99, 235, 0.72);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.62));
  box-shadow: inset 4px 0 0 rgba(37, 99, 235, 0.3);
}

.ocr-section-card.is-selected::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: rgba(59, 130, 246, 0.08);
  content: "";
  pointer-events: none;
}

.ocr-section-check {
  position: relative;
  z-index: 2;
  display: block;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.ocr-section-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ocr-section-check > span:last-child {
  line-height: 1.45;
}

.ocr-section-select-mark {
  position: absolute;
  left: 50%;
  top: 62px;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 3px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(13, 148, 136, 0.82);
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.66;
}

.ocr-section-card.is-selected .ocr-section-select-mark {
  border-color: rgba(37, 99, 235, 0.62);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(37, 99, 235, 0.86);
  opacity: 0.92;
}

.ocr-section-meta,
.ocr-section-preview {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.ocr-section-full {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 12px;
  overflow: visible;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  color: #111827;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ocr-section-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ocr-picker-footer button {
  flex: 0 0 auto;
  min-height: 38px;
}

.photo-order-panel {
  max-width: 880px;
}

.photo-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.photo-order-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 12px;
  border: 2px solid rgba(148, 163, 184, 0.34);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.photo-order-rank {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 156px;
  border-radius: 16px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
}

.photo-order-rank strong {
  font-size: 44px;
  line-height: 1;
}

.photo-order-rank span {
  font-size: 13px;
}

.photo-order-card img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background: #f8fafc;
}

.photo-order-info {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  color: #334155;
}

.photo-order-info strong {
  color: #0f172a;
  font-size: 15px;
}

.photo-order-info span,
.photo-order-info small,
.photo-order-tip span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.photo-order-tip {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 16px;
  background: #eff6ff;
}

.photo-order-tip strong {
  color: #1d4ed8;
  font-size: 13px;
}

.parse-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.parse-actions button {
  min-width: 140px;
}

#parseButton:not(.is-parse-complete) {
  background: #eef6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

#parseButton:not(.is-parse-complete):hover:not(:disabled) {
  background: #dbeafe;
}

.parse-actions button.is-parse-complete {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff;
  opacity: 1;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: start;
}

.voice-block {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(64px, 0.32fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: inset 4px 0 0 rgba(100, 116, 139, 0.18), 0 8px 20px rgba(15, 23, 42, 0.035);
}

.voice-block:nth-child(2) {
  box-shadow: inset 4px 0 0 rgba(15, 23, 42, 0.22), 0 8px 20px rgba(15, 23, 42, 0.035);
}

.voice-block:nth-child(3) {
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.3), 0 8px 20px rgba(15, 23, 42, 0.035);
}

.voice-block:nth-child(4) {
  box-shadow: inset 4px 0 0 rgba(190, 24, 93, 0.24), 0 8px 20px rgba(15, 23, 42, 0.035);
}

.question-prompt-block,
.voice-block:nth-child(5) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, 0.26), 0 8px 20px rgba(15, 23, 42, 0.035);
}

.voice-block label {
  min-width: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.voice-block select {
  margin-top: 6px;
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.9);
}

.question-prompt-toggle {
  display: grid;
  gap: 6px;
}

.question-prompt-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.question-prompt-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #f59e0b;
}

.question-prompt-note {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.preset-block {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.preset-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

textarea {
  width: 100%;
  min-height: 280px;
  margin-top: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  resize: vertical;
}

.raw-input-block textarea {
  min-height: 330px;
}

.settings label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

select {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

input {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.settings input {
  margin-bottom: 2px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.actions.compact {
  margin-top: 0;
}

button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.ghost:hover:not(:disabled) {
  background: #f8fafc;
}

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

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-height: 420px;
  overflow: auto;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 420px;
}

.timeline-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: visible;
}

.timeline-row.speech-group,
.timeline-row.speech-sequence,
.timeline-row.dialogue-group {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #ffffff;
}

.question-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.question-card-summary.is-compact-single {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.question-card-summary:hover {
  background: #f8fafc;
}

.question-card-summary.is-compact-single:hover {
  background: transparent;
}

.question-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.question-card-title {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.question-card-preview {
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.question-card-meta span,
.question-card-meta strong {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.question-card-toggle {
  min-height: 30px;
  padding: 5px 9px;
  background: #202123;
  color: #ffffff;
  border-color: #202123;
  box-shadow: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.question-card-toggle:hover:not(:disabled) {
  background: #eef6ff;
}

.mobile-focus-button,
.mobile-focus-bar {
  display: none;
}

.question-card-meta .inline-actions {
  padding: 0;
  background: transparent;
}

.question-format-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  border-radius: 999px;
  padding: 3px 5px 3px 10px;
  background: #eef6ff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.question-format-control span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: 1;
}

.question-format-control select {
  width: 92px;
  height: 30px;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 0 22px 0 10px;
  background-color: #ffffff;
  color: #1f2937;
  font-size: 11px;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
  text-align-last: center;
}

.timeline-row.is-expanded .question-card-summary:not(.is-compact-single) {
  border-color: #a5b4fc;
  background:
    linear-gradient(145deg, rgba(238, 242, 255, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.question-card-editor {
  display: grid;
  gap: 12px;
}

.badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.badge.male {
  background: var(--male);
}

.badge.female {
  background: var(--female);
}

.badge.pause {
  background: #9ca3af;
}

.badge.opening {
  background: #111827;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.text {
  line-height: 1.6;
}

.status {
  margin-top: 16px;
  color: var(--muted);
  min-height: 24px;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.96));
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.08);
}

.app-status:empty {
  display: none;
}

.app-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.main-audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.app-hidden-audio-controls {
  display: none !important;
}

.audio-player {
  width: min(720px, 100%);
}

.main-audio-download-button {
  min-width: 72px;
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #15803d;
  justify-content: center;
  text-decoration: none;
}

.main-audio-download-button:hover:not(:disabled) {
  background: #dcfce7;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.helper {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.project-browser-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 18px;
}

.project-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(360px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.project-toolbar-head {
  align-self: center;
}

.project-toolbar-head .mini-label {
  margin-bottom: 4px;
  color: #111827;
  font-size: 13px;
}

.project-toolbar-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.project-toolbar-fields {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(180px, 1.1fr);
  gap: 10px;
}

.project-name-field,
.project-note-field {
  margin: 0;
}

.project-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-toolbar-actions button {
  min-height: 40px;
  padding-inline: 13px;
  white-space: nowrap;
}

.project-toolbar-actions button.is-saved-state {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

button.danger-ghost,
a.danger-ghost {
  color: #b42318;
  border-color: #fecaca;
  background: #fffafa;
}

button.danger-ghost:hover,
a.danger-ghost:hover {
  background: #fff1f2;
}

.project-browser-column {
  min-width: 0;
}

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

.admin-toolbar .admin-log-filters {
  flex: 1;
  width: 100%;
  margin-bottom: 0;
}

.admin-toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toolbar-actions button {
  min-width: 112px;
}

.admin-account-detail-panel,
.admin-project-panel,
.admin-promotion-create-panel,
.admin-promotion-list-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #ffffff;
}

.admin-detail-head,
.admin-project-panel-head,
.admin-promotion-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-detail-head h3,
.admin-project-panel-head h3,
.admin-promotion-list-head h3 {
  margin: 0;
  font-size: 20px;
}

.admin-detail-head p,
.admin-project-panel-head p,
.admin-promotion-list-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-detail-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-inline-status {
  min-height: 22px;
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-inline-status:empty {
  display: none;
}

.admin-inline-status.is-success {
  color: #047857;
}

.admin-inline-status.is-error {
  color: #b91c1c;
}

.admin-inline-status.is-working {
  color: #1d4ed8;
}

.admin-detail-head button,
.admin-detail-actions button {
  flex: 0 0 auto;
  min-width: 118px;
}

.admin-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.3fr);
  gap: 16px;
  align-items: stretch;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-user-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-detail-layout .admin-user-summary {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.admin-summary-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 6px;
}

.admin-summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.admin-summary-card strong {
  font-size: 18px;
}

.admin-points-overview .admin-summary-card.is-primary {
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.94));
}

.admin-points-overview .admin-summary-card.is-primary strong {
  color: #0f766e;
}

.admin-note-input {
  min-height: 82px;
  margin-top: 8px;
  padding: 12px;
  resize: vertical;
}

.admin-permission-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.admin-permission-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.admin-check-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #202123;
}

.admin-project-panel {
  padding-bottom: 16px;
}

.admin-project-panel-head {
  align-items: flex-end;
  margin-bottom: 0;
}

.admin-project-search {
  flex: 0 1 420px;
  min-width: min(100%, 320px);
}

.admin-promotion-list-panel {
  padding-bottom: 0;
  overflow: hidden;
}

.admin-promotion-list-panel .admin-table-wrap {
  margin: 0 -18px;
  border-right: 0;
  border-left: 0;
  border-radius: 0 0 22px 22px;
}

.admin-promotion-table th:last-child,
.admin-promotion-table td:last-child {
  text-align: right;
}

.admin-sensitive-settings,
.admin-sensitive-editor,
.admin-sensitive-list-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-sensitive-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-sensitive-settings h3 {
  margin: 0;
  font-size: 18px;
}

.admin-sensitive-settings p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 250, 252, 0.86);
  font-weight: 800;
  white-space: nowrap;
}

.admin-sensitive-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-sensitive-editor-head h3 {
  margin: 0;
  font-size: 18px;
}

.admin-sensitive-editor-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-sensitive-add-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) minmax(130px, 0.5fr) minmax(120px, 0.45fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.admin-sensitive-list-panel {
  padding-bottom: 0;
  overflow: hidden;
}

.admin-sensitive-list-panel .admin-table-wrap {
  margin: 12px -18px 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.admin-sensitive-table {
  min-width: 920px;
}

.admin-sensitive-pagination {
  margin: 0 -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.72);
  border-radius: 0 0 22px 22px;
}

.admin-sensitive-table th:last-child,
.admin-sensitive-table td:last-child {
  text-align: right;
}

.admin-row-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-inline-select {
  width: 100%;
  min-width: 108px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-inline-select.is-sub {
  margin-top: 0;
}

.announcement-table-row {
  cursor: pointer;
}

.announcement-table-row.is-active {
  background: rgba(15, 118, 110, 0.08);
}

.admin-muted-cell {
  color: var(--muted);
  font-weight: 700;
}

.danger-text {
  color: #b42318;
}

.danger-text:hover:not(:disabled) {
  background: #fef2f2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.is-active {
  background: #dcfce7;
  color: #166534;
}

.status-pill.is-disabled {
  background: #f1f5f9;
  color: #475569;
}

.status-pill.is-expired {
  background: #fff7ed;
  color: #9a3412;
}

.status-pill.is-deleted {
  background: #fee2e2;
  color: #991b1b;
}

button.danger-action {
  border-color: rgba(248, 113, 113, 0.4);
  background: #fff7f7;
  color: #b91c1c;
}

button.danger-action:hover:not(:disabled) {
  background: #fee2e2;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 14px;
}

.admin-actions button {
  min-width: 112px;
}

.admin-subsection-head {
  display: grid;
  gap: 4px;
  margin: 22px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-subsection-head h3 {
  margin: 0;
  font-size: 18px;
}

.admin-subsection-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-points-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.96));
  border-radius: 20px;
  padding: 18px;
}

.admin-points-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-points-card-head h3 {
  margin: 0;
  font-size: 18px;
}

.admin-points-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-points-card-head button {
  flex: 0 0 auto;
}

.admin-points-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-points-preset-group {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-points-preset-group .mini-label {
  margin-bottom: 8px;
}

.admin-points-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-points-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.admin-points-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.admin-points-preview strong {
  color: var(--ink);
  font-size: 18px;
}

.admin-points-preview strong.is-negative {
  color: #b42318;
}

.admin-points-preview strong.is-positive {
  color: #0f766e;
}

.admin-ledger-table-card {
  margin-top: 18px;
}

.admin-ledger-table-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.admin-table-wrap.compact .admin-account-table {
  min-width: 760px;
}

.admin-table-wrap.compact .admin-account-table th,
.admin-table-wrap.compact .admin-account-table td {
  padding: 10px 12px;
}

.points-delta {
  font-weight: 800;
}

.points-delta.is-positive {
  color: #166534;
}

.points-delta.is-negative {
  color: #b42318;
}

.admin-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-activity-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}

.admin-activity-card-wide {
  grid-column: 1 / -1;
}

.admin-log-card {
  grid-column: 1 / -1;
}

.admin-inline-actions {
  display: flex;
  gap: 8px;
}

.admin-toolbar-actions {
  flex-wrap: wrap;
}

.admin-bulk-plan-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-bulk-plan-control select {
  width: 110px;
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.admin-points-user-picker {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface-soft);
}

.admin-points-user-table td,
.admin-points-user-table th {
  vertical-align: middle;
}

.admin-log-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-points-batch-summary {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.72);
}

.admin-points-batch-summary strong {
  color: #1d4ed8;
  font-size: 14px;
}

.admin-points-batch-summary span {
  color: var(--muted);
  font-size: 12px;
}

.admin-log-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.admin-log-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.admin-pagination-text {
  color: var(--muted);
  font-size: 12px;
}

.admin-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
}

.admin-activity-item {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.admin-activity-title {
  font-size: 13px;
  font-weight: 700;
}

.admin-activity-title.is-positive {
  color: #166534;
}

.admin-activity-title.is-negative {
  color: #b42318;
}

.admin-activity-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-log-metadata {
  max-height: 220px;
  overflow: auto;
  margin: 6px 0 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-log-entry {
  gap: 8px;
  border-left-width: 4px;
}

.admin-log-entry.is-error {
  border-left-color: #dc2626;
}

.admin-log-entry.is-warn {
  border-left-color: #f59e0b;
}

.admin-log-entry.is-info {
  border-left-color: #3b82f6;
}

.admin-log-entry.is-debug {
  border-left-color: #94a3b8;
}

.admin-log-entry-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.admin-log-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.admin-log-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-log-context span {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.admin-log-details {
  margin-top: 2px;
}

.admin-log-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-library-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.project-batch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: #f8fafc;
}

.project-batch-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field.compact {
  gap: 6px;
}

.field.compact input,
.field.compact select {
  min-height: 42px;
}

.mini-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-list,
.project-asset-list {
  display: grid;
  gap: 10px;
}

.project-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.project-table th,
.project-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #475569;
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

.project-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.project-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  box-shadow: none;
}

.project-sort-button:hover {
  background: transparent;
}

.project-sort-button.is-active {
  background: transparent;
  color: #1d4ed8;
}

.project-sort-indicator {
  display: inline-flex;
  min-width: 10px;
  color: #2563eb;
}

.project-table tbody tr {
  cursor: pointer;
}

.project-table tbody tr:hover {
  background: #f8fafc;
}

.project-table tbody tr.is-selected {
  background: #eef6ff;
  box-shadow: inset 4px 0 0 #2563eb;
}

.project-table tbody tr.is-current .project-table-title strong {
  color: #1d4ed8;
}

.project-table-check-cell {
  width: 38px;
  text-align: center;
}

.project-table-check-cell input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.project-table-title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 2px 0;
}

.project-table-title strong {
  max-width: 220px;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-table-title strong:hover {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-inline-name-input {
  width: min(240px, 100%);
  min-height: 30px;
  margin: 0;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.project-table-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.project-mobile-open-button {
  display: none;
}

.project-table-note {
  max-width: 240px;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-asset-group,
.project-asset-list-inner {
  display: grid;
  gap: 10px;
}

.project-item,
.project-asset-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.project-item {
  cursor: pointer;
}

.project-item.is-active {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.project-summary-card {
  background: #f9fafb;
}

.project-item-head,
.project-asset-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-item-title,
.project-asset-title {
  margin: 0;
  font-weight: 700;
  color: #202123;
}

.project-item-meta,
.project-asset-meta,
.project-item-preview {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.project-item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-item-stats span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.project-item-actions,
.project-asset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.asset-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 7px 12px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.asset-action-button.play:hover {
  background: #f8fafc;
}

.asset-action-button.download {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #15803d;
}

.asset-action-button.download:hover {
  background: #dcfce7;
}

.project-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  background: #fff;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-shell[aria-hidden="true"] {
  display: none !important;
  pointer-events: none;
}

body.has-open-modal {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.28), transparent 34%),
    rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  margin: 48px auto;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    #fcfcfd;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
  padding: 22px;
}

.file-manager-panel {
  min-height: min(760px, calc(100vh - 96px));
}

.login-panel {
  width: min(460px, calc(100vw - 40px));
  margin-top: 10vh;
}

.inline-field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.inline-field-action button {
  min-height: 44px;
  white-space: nowrap;
}

.agreement-panel {
  width: min(620px, calc(100vw - 40px));
  margin-top: 8vh;
}

.agreement-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.agreement-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.text-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.text-link-button:hover {
  background: transparent;
  color: #1d4ed8;
}

.agreement-content {
  display: grid;
  gap: 10px;
  max-height: min(52vh, 520px);
  overflow: auto;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
  color: #475569;
  line-height: 1.75;
}

.agreement-content p {
  margin: 0;
}

.admin-standalone-body {
  background: linear-gradient(180deg, #fcfcfd 0%, var(--bg) 100%);
}

.admin-standalone-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.admin-standalone-page .hero {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.admin-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-hero-top .eyebrow {
  margin-bottom: 6px;
}

.auth-summary {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.password-rule-hint {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f5f9ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-hero-actions .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  color: #202123;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.admin-login-card {
  max-width: 720px;
}

.admin-console-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-side-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.admin-nav-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 12px;
  background: transparent;
  color: #475569;
  text-align: left;
}

.admin-nav-button:hover {
  background: #f8fafc;
}

.admin-nav-button.is-active {
  background: #202123;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.admin-view-area {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.admin-view-card {
  min-width: 0;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-overview-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #fff;
}

.admin-overview-card span,
.admin-overview-card small {
  color: var(--muted);
  font-size: 12px;
}

.admin-overview-card strong {
  align-self: end;
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
}

.admin-overview-card.danger-soft {
  border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.92));
}

.admin-overview-card.danger-soft strong {
  color: #b42318;
}

.admin-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-stats-range {
  width: min(220px, 100%);
}

.admin-stats-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)),
    #fff;
  align-content: start;
}

.admin-stats-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.admin-stats-panel-head h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
}

.admin-stats-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-stats-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-mini-bar-chart,
.admin-stats-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-mini-bar-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 68px minmax(118px, auto);
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 12px;
}

.admin-mini-bar-row > span {
  font-weight: 700;
}

.admin-mini-bar-row strong {
  color: #111827;
  text-align: right;
}

.admin-mini-bar-row small {
  color: var(--muted);
}

.admin-mini-bar-row.is-stat {
  grid-template-columns: minmax(120px, 1.3fr) minmax(0, 2fr) minmax(76px, auto);
  row-gap: 4px;
}

.admin-mini-bar-row.is-stat > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mini-bar-row.is-stat small {
  grid-column: 1 / 3;
}

.admin-mini-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
}

.admin-mini-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.72), rgba(59, 130, 246, 0.72));
}

.admin-mini-bar-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.admin-mini-bar-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-stats-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-stats-list-item div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-stats-list-item strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stats-list-item small {
  color: var(--muted);
  font-size: 12px;
}

.admin-stats-list-item > span {
  flex: 0 0 auto;
  color: #0f766e;
  font-weight: 800;
  font-size: 16px;
}

.admin-global-status {
  margin: 0;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-account-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-account-table th,
.admin-account-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.admin-account-table .admin-checkbox-cell {
  width: 44px;
  padding-left: 12px;
  padding-right: 8px;
  text-align: center;
}

.admin-account-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #202123;
  cursor: pointer;
}

.admin-account-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}

.admin-sort-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 700;
  border-radius: 0;
}

.admin-sort-button::after {
  content: "↕";
  margin-left: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.admin-sort-button.is-active-asc::after {
  content: "↑";
  color: #334155;
}

.admin-sort-button.is-active-desc::after {
  content: "↓";
  color: #334155;
}

.admin-account-table tbody tr {
  cursor: pointer;
}

.admin-account-table tbody tr:hover {
  background: #f8fafc;
}

.admin-account-table tbody tr.is-active {
  background: #eef4ff;
}

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

.admin-log-list {
  max-height: 420px;
}

@media (max-width: 900px) {
  .admin-console-shell {
    grid-template-columns: 1fr;
  }

  .admin-side-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-mini-bar-row {
    grid-template-columns: 48px minmax(0, 1fr) 56px;
  }

  .admin-mini-bar-row small {
    grid-column: 2 / -1;
  }

  .admin-mini-bar-row.is-stat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 8px;
  }

  .admin-mini-bar-row.is-stat > span {
    grid-column: 1 / -1;
  }

  .admin-mini-bar-row.is-stat .admin-mini-bar-track {
    grid-column: 1 / -1;
  }

  .admin-mini-bar-row.is-stat strong {
    text-align: left;
  }

  .admin-mini-bar-row.is-stat small {
    grid-column: 1 / -1;
  }

  .admin-points-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-points-card-head button {
    width: 100%;
  }

  .admin-points-preset-grid,
  .admin-points-grid,
  .admin-sensitive-add-grid {
    grid-template-columns: 1fr;
  }

  .admin-sensitive-editor-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.login-helper {
  margin-top: 12px;
}

.login-error {
  margin: 12px 0 0;
}

.save-project-panel {
  width: min(520px, calc(100vw - 40px));
  margin-top: 12vh;
}

.parse-review-panel {
  width: min(920px, calc(100vw - 36px));
  margin-top: 5vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 251, 235, 0.52));
}

.parse-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.parse-review-summary div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.parse-review-summary div.has-warning {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(255, 251, 235, 0.9);
}

.parse-review-summary strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.parse-review-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.parse-review-content {
  display: grid;
  gap: 14px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding-right: 4px;
}

.parse-review-document {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(241, 245, 249, 0.8) 1px, transparent 1px) 0 0 / 32px 32px,
    #fffef8;
  color: #1f2937;
}

.parse-review-section {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.78);
}

.parse-review-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.parse-review-section.is-warning {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 251, 235, 0.62);
  border: 1px solid rgba(245, 158, 11, 0.34);
}

.parse-review-md-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.35;
}

.parse-review-md-heading > span {
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
}

.parse-review-md-heading small,
.parse-review-md-heading mark {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.parse-review-md-heading small {
  margin-left: auto;
  color: #475569;
  background: rgba(226, 232, 240, 0.78);
}

.parse-review-md-heading mark {
  color: #92400e;
  background: rgba(254, 243, 199, 0.96);
}

.parse-review-md-body {
  display: grid;
  gap: 10px;
  padding-left: 8px;
}

.parse-review-md-item {
  display: grid;
  gap: 7px;
  padding: 10px 0 12px;
  border-bottom: 1px dashed rgba(203, 213, 225, 0.82);
}

.parse-review-md-item:last-child {
  border-bottom: 0;
}

.parse-review-md-item.has-warning {
  margin-left: -8px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 14px;
  background: rgba(255, 251, 235, 0.58);
}

.parse-review-md-item h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.parse-review-md-item h4 small {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.parse-review-md-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.parse-review-md-line p {
  margin: 0;
  white-space: pre-wrap;
}

.parse-review-line-prefix {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  min-width: 30px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.parse-review-md-line.is-preface {
  background: rgba(239, 246, 255, 0.8);
}

.parse-review-md-line.is-preface .parse-review-line-prefix {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.9);
}

.parse-review-md-line.speaker-m .parse-review-line-prefix {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.78);
}

.parse-review-md-line.speaker-w .parse-review-line-prefix {
  color: #be185d;
  background: rgba(252, 231, 243, 0.86);
}

.parse-review-md-line.speaker-q .parse-review-line-prefix,
.parse-review-md-line.speaker-cn .parse-review-line-prefix {
  color: #b45309;
  background: rgba(254, 243, 199, 0.86);
}

.parse-review-md-line.speaker-text .parse-review-line-prefix {
  color: #475569;
  background: rgba(226, 232, 240, 0.76);
}

.parse-review-md-line.is-warning {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(255, 237, 213, 0.82);
}

.parse-review-md-line.is-warning .parse-review-line-prefix {
  color: #9a3412;
  background: rgba(254, 215, 170, 0.95);
}

.parse-review-warning-list {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 16px;
  background: rgba(255, 251, 235, 0.92);
}

.parse-review-warning-list strong {
  color: #92400e;
  font-size: 14px;
}

.parse-review-warning-list p {
  margin: 0;
  color: #78350f;
  font-size: 13px;
  line-height: 1.45;
}

.parse-review-empty {
  padding: 20px;
  border: 1px dashed rgba(148, 163, 184, 0.72);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.78);
  font-weight: 800;
}

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

.modal-head.compact {
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 4px 0 0;
}

.modal-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0;
  background: rgba(248, 250, 252, 0.78);
  color: #475569;
  cursor: pointer;
  font-size: 22px;
  line-height: 0;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.modal-close-button:hover {
  background: #ffffff;
}

.modal-toolbar {
  margin-top: 8px;
}

.modal-helper {
  margin-top: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  min-height: 40px;
  border-radius: 14px;
}

.trial-panel {
  width: min(560px, calc(100vw - 40px));
  margin-top: 14vh;
}

.export-confirm-panel {
  width: min(640px, calc(100vw - 40px));
  margin-top: 10vh;
}

.confirm-panel {
  width: min(500px, calc(100vw - 40px));
  margin-top: 16vh;
}

.queue-panel {
  width: min(560px, calc(100vw - 40px));
  margin-top: 14vh;
}

.queue-status-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(248, 250, 252, 0.96)),
    #ffffff;
}

.queue-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.queue-status-message {
  margin: 12px 0 0;
  color: #334155;
  line-height: 1.7;
}

.queue-meter {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.queue-meter span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
  transition: width 0.25s ease;
}

.queue-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.queue-stat-grid div {
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.queue-stat-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.queue-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
}

.queue-helper {
  margin: 12px 2px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.confirm-message {
  color: #475569;
  line-height: 1.65;
}

.confirm-details {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
  max-height: 160px;
  overflow: auto;
}

button.danger-button {
  background: #dc2626;
  border-color: rgba(220, 38, 38, 0.16);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18);
}

button.danger-button:hover:not(:disabled) {
  background: #b91c1c;
}

button.safe-button {
  background: #0f766e;
  border-color: rgba(15, 118, 110, 0.16);
  color: #ffffff;
}

button.safe-button:hover:not(:disabled) {
  background: #0d6b63;
}

button.warning-button {
  background: #d97706;
  border-color: rgba(217, 119, 6, 0.18);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.18);
}

button.warning-button:hover:not(:disabled) {
  background: #b45309;
}

.export-estimate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.export-estimate-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.export-estimate-card span {
  color: var(--muted);
  font-size: 12px;
}

.export-estimate-card strong {
  color: var(--ink);
  font-size: 22px;
}

.export-estimate-card.warn {
  border-color: rgba(180, 83, 9, 0.24);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.14), #fffaf0);
}

.export-section-plan {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.export-section-plan-item,
.export-section-plan-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.export-section-plan-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-section-plan-item strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.export-section-plan-item.needs-generation {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(255, 251, 235, 0.88);
}

.export-section-plan-item.needs-generation strong {
  color: #92400e;
}

.export-free-note {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(255, 255, 255, 0.9));
  color: #166534;
}

.export-free-note span {
  color: #475569;
  font-size: 13px;
}

.export-ai-notice {
  display: grid;
  gap: 5px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.78), rgba(255, 255, 255, 0.92));
  color: #1e40af;
}

.export-ai-notice span {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .export-estimate-grid {
    grid-template-columns: 1fr;
  }

  .export-section-plan-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.trial-notice-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(180, 35, 24, 0.08), rgba(255, 255, 255, 0.85)),
    #fff;
  color: #475569;
}

.trial-notice-card strong {
  color: #991b1b;
}

@media (max-width: 900px) {
  .project-toolbar {
    grid-template-columns: 1fr;
  }

  .project-library-filters {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

.section-navigator {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.section-progress {
  min-width: 0;
  padding: 4px 4px 0;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 6px;
  row-gap: 10px;
  flex-wrap: wrap;
  min-height: 58px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.section-repeat-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 3px 5px 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.section-repeat-control span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  line-height: 1;
}

.section-repeat-control select {
  width: 92px;
  height: 30px;
  min-height: 30px;
  padding: 0 22px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  line-height: 1;
}

.background-task-status {
  margin: -4px 8px 2px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.88);
  border: 1px solid rgba(191, 219, 254, 0.88);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.background-task-status.is-error {
  background: rgba(254, 242, 242, 0.9);
  border-color: rgba(254, 202, 202, 0.9);
  color: #b91c1c;
}

.background-task-status.is-success {
  background: rgba(240, 253, 244, 0.9);
  border-color: rgba(187, 247, 208, 0.9);
  color: #15803d;
}

.background-task-status.is-working {
  background: rgba(239, 246, 255, 0.94);
  border-color: rgba(147, 197, 253, 0.9);
  color: #1d4ed8;
}

.background-task-status.is-working::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
  animation: taskStatusPulse 1.2s ease-in-out infinite;
}

@keyframes taskStatusPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.section-generate-button {
  min-height: 40px;
  border-radius: 14px;
  padding: 0 16px;
  background: #2563eb;
  border-color: rgba(37, 99, 235, 0.12);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.section-generate-button:hover:not(:disabled) {
  background: #1d4ed8;
}

.section-generate-button.soft {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: none;
}

.section-generate-button.soft:hover:not(:disabled) {
  background: #e2e8f0;
}

.section-generate-button.is-regenerate {
  min-width: 96px;
  background: #fff7ed;
  border-color: #fed7aa;
  color: #b45309;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.08);
}

.section-generate-button.is-regenerate:hover:not(:disabled) {
  background: #fed7aa;
}

.section-generate-button.is-update {
  background: #0f766e;
  border-color: rgba(15, 118, 110, 0.16);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
}

.section-generate-button.is-update:hover:not(:disabled) {
  background: #0d6b63;
}

.current-section-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.section-current-label {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
}

.section-progress-text,
.section-heading-text {
  margin: 0;
}

.section-progress-text {
  color: var(--muted);
  font-size: 12px;
}

.section-heading-text {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.section-generation-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.35;
}

.section-audio-player {
  width: min(100%, 560px);
  display: block;
  height: 42px;
}

.section-audio-controls {
  order: -1;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
}

.section-download-button {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  min-height: 40px;
  border-radius: 14px;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #bbf7d0;
  text-decoration: none;
  background: #ecfdf3;
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.section-download-button:hover {
  background: #dcfce7;
}

.section-generation-status.is-working {
  background: rgba(226, 157, 77, 0.15);
  color: #9a5b13;
}

.section-generation-status.is-ready {
  background: rgba(52, 145, 101, 0.15);
  color: #207044;
}

.section-generation-status.is-stale {
  background: rgba(200, 92, 92, 0.14);
  color: #9b3838;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.group-note {
  color: var(--muted);
  font-size: 14px;
}

.row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.row-top.question-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.single-speech-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.single-speech-editor .field {
  width: 100%;
}

.single-segment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}

.single-pause-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-pause-row .repeat-pause-card {
  flex: 0 0 112px;
  height: 100%;
}

.draggable-head {
  cursor: grab;
  user-select: none;
}

.dragging {
  opacity: 0.55;
  transform: scale(0.995);
}

.timeline-row.drop-before,
.timeline-row.drop-after {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.timeline-row.drop-before::before,
.timeline-row.drop-after::after {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 5;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
  content: "";
}

.timeline-row.drop-before::before {
  top: -8px;
}

.timeline-row.drop-after::after {
  bottom: -8px;
}

.timeline-row.drop-before .row-top::after,
.timeline-row.drop-after .row-top::after {
  position: absolute;
  right: 18px;
  z-index: 6;
  border-radius: 999px;
  padding: 4px 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.timeline-row.drop-before .row-top::after {
  top: -22px;
  content: "插入到上方";
}

.timeline-row.drop-after .row-top::after {
  bottom: -22px;
  content: "插入到下方";
}

.timeline-row.is-reorder-flash {
  animation: reorderFlash 1.3s ease;
}

@keyframes reorderFlash {
  0% {
    border-color: rgba(37, 99, 235, 0.68);
    background: rgba(239, 246, 255, 0.96);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  }
  100% {
    border-color: rgba(226, 232, 240, 0.95);
    background: #ffffff;
    box-shadow: none;
  }
}

.inline-actions {
  display: flex;
  gap: 8px;
}

.top-preview {
  margin-top: 0;
  margin-bottom: 0;
  white-space: nowrap;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.8fr);
  gap: 12px;
}

.speech-detail-card {
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
}

.repeat-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.compact-repeat-grid {
  display: grid;
  grid-template-columns: minmax(370px, 1fr) minmax(370px, 1fr);
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.compact-left-row,
.compact-right-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 96px;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.compact-right-stack {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.compact-left-row .repeat-card,
.compact-left-row .repeat-pause-card,
.compact-right-row .repeat-card,
.compact-right-row .repeat-pause-card {
  width: 100%;
  flex: none;
}

.dialogue-repeat-grid {
  flex-direction: row;
  overflow-x: auto;
}

.dialogue-editor {
  display: grid;
  gap: 12px;
}

.dialogue-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.dialogue-editor.is-expanded .dialogue-summary-card {
  padding: 8px 10px;
  border-radius: 12px;
}

.dialogue-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dialogue-summary-lines {
  display: grid;
  gap: 3px;
}

.dialogue-summary-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.25;
}

.dialogue-summary-line strong {
  font-size: 12px;
  line-height: 1.2;
}

.dialogue-summary-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialogue-summary-more {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.dialogue-expanded-grid {
  display: grid;
  grid-template-columns: 360px 96px 300px 96px;
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.dialogue-stack-card {
  width: 360px;
  background: var(--surface-soft);
}

.dialogue-line-stack {
  display: grid;
  gap: 10px;
}

.dialogue-compact-list {
  display: grid;
  gap: 8px;
}

.dialogue-compact-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 7px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.dialogue-compact-toolbar {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.dialogue-speaker-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 26px;
  min-width: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
}

.dialogue-compact-text {
  width: 100%;
  min-height: 28px;
  margin-top: 0;
  padding: 4px 7px;
  font-size: 13px;
  line-height: 1.2;
}

.dialogue-compact-voice select {
  width: 100%;
  margin-top: 0;
  padding: 7px 6px;
  font-size: 12px;
}

.dialogue-line-stack .dialogue-line-card {
  flex: none;
  width: 100%;
}

.dialogue-compact-line.speaker-m {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.34);
}

.dialogue-compact-line.speaker-w {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: inset 4px 0 0 rgba(190, 24, 93, 0.28);
}

.dialogue-compact-line.speaker-q {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: inset 4px 0 0 rgba(180, 83, 9, 0.3);
}

.dialogue-compact-line.speaker-m .dialogue-speaker-pill {
  color: var(--male);
  background: rgba(240, 253, 250, 0.94);
}

.dialogue-compact-line.speaker-w .dialogue-speaker-pill {
  color: var(--female);
  background: rgba(253, 242, 248, 0.94);
}

.dialogue-compact-line.speaker-q .dialogue-speaker-pill {
  color: #b45309;
  background: rgba(255, 251, 235, 0.94);
}

.dialogue-line-card.speaker-m,
.readonly-dialogue-line.speaker-m {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.34);
}

.dialogue-line-card.speaker-w,
.readonly-dialogue-line.speaker-w {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: inset 4px 0 0 rgba(190, 24, 93, 0.28);
}

.dialogue-line-card.speaker-q,
.readonly-dialogue-line.speaker-q {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: inset 4px 0 0 rgba(180, 83, 9, 0.3);
}

.dialogue-line-card.speaker-m .repeat-label,
.readonly-dialogue-line.speaker-m strong {
  color: var(--male);
}

.dialogue-line-card.speaker-w .repeat-label,
.readonly-dialogue-line.speaker-w strong {
  color: var(--female);
}

.auto-repeat-card {
  width: 300px;
  flex: none;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.96), rgba(255, 255, 255, 0.98));
  border-color: rgba(148, 163, 184, 0.65);
  border-style: solid;
  box-shadow: inset 4px 0 0 rgba(100, 116, 139, 0.28), 0 10px 24px rgba(15, 23, 42, 0.045);
}

.readonly-repeat-card {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.96), rgba(255, 255, 255, 0.98));
  border-color: rgba(148, 163, 184, 0.65);
  border-style: solid;
  box-shadow: inset 4px 0 0 rgba(100, 116, 139, 0.28), 0 10px 24px rgba(15, 23, 42, 0.045);
}

.auto-repeat-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.readonly-repeat-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.readonly-text {
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.readonly-dialogue-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
}

.readonly-dialogue-line {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.readonly-dialogue-line strong {
  color: var(--accent);
  font-size: 12px;
}

.readonly-dialogue-line span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.repeat-card {
  flex: 0 0 280px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.repeat-card,
.speech-detail-card {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.speech-card-male,
.speech-card-female,
.speech-card-instruction,
.speech-card-opening {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(203, 213, 225, 0.9);
}

.speech-card-male {
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.34), 0 10px 26px rgba(15, 23, 42, 0.05);
}

.speech-card-female {
  box-shadow: inset 4px 0 0 rgba(190, 24, 93, 0.28), 0 10px 26px rgba(15, 23, 42, 0.05);
}

.speech-card-instruction {
  box-shadow: inset 4px 0 0 rgba(180, 83, 9, 0.3), 0 10px 26px rgba(15, 23, 42, 0.05);
}

.speech-card-opening {
  box-shadow: inset 4px 0 0 rgba(15, 23, 42, 0.24), 0 10px 26px rgba(15, 23, 42, 0.05);
}

.repeat-card .segment-text,
.speech-detail-card .segment-text {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.82);
}

.repeat-card select,
.speech-detail-card select {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.86);
}

.repeat-pause-card {
  flex: 0 0 96px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface-soft);
}

.repeat-pause-card .repeat-head {
  justify-content: center;
}

.pause-duration-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.pause-duration-control input {
  width: 54px;
  min-width: 0;
  padding: 7px 6px;
  text-align: center;
}

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

.repeat-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.repeat-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field {
  display: block;
  color: var(--muted);
}

.field.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 700;
}

.field.checkbox-field input {
  width: auto;
  margin: 0;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 54px;
}

.password-visibility-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  transform: translateY(-50%);
  box-shadow: none;
}

.password-visibility-toggle::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 7px auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M12%205C6.5%205%202.3%208.6%201%2012c1.3%203.4%205.5%207%2011%207s9.7-3.6%2011-7c-1.3-3.4-5.5-7-11-7Zm0%2011.5A4.5%204.5%200%201%201%2012%207.5a4.5%204.5%200%200%201%200%209Zm0-2A2.5%202.5%200%201%200%2012%209.5a2.5%202.5%200%200%200%200%205Z%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M12%205C6.5%205%202.3%208.6%201%2012c1.3%203.4%205.5%207%2011%207s9.7-3.6%2011-7c-1.3-3.4-5.5-7-11-7Zm0%2011.5A4.5%204.5%200%201%201%2012%207.5a4.5%204.5%200%200%201%200%209Zm0-2A2.5%202.5%200%201%200%2012%209.5a2.5%202.5%200%200%200%200%205Z%27/%3E%3C/svg%3E") center / contain no-repeat;
}

.password-visibility-toggle.is-visible::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3.3%202.3%202%203.6l3%203C3.2%208%201.8%209.9%201%2012c1.3%203.4%205.5%207%2011%207%201.8%200%203.4-.4%204.9-1.1l3.5%203.5%201.3-1.3L3.3%202.3ZM12%2016.5A4.5%204.5%200%200%201%207.5%2012c0-.8.2-1.5.6-2.2l1.8%201.8V12a2.5%202.5%200%200%200%202.5%202.5h.4l1.4%201.4c-.7.4-1.4.6-2.2.6ZM12%205c5.5%200%209.7%203.6%2011%207-.5%201.4-1.4%202.7-2.6%203.8l-3-3c0-.3.1-.5.1-.8A4.5%204.5%200%200%200%2012%207.5c-.3%200-.5%200-.8.1L8.9%205.3C9.9%205.1%2010.9%205%2012%205Z%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3.3%202.3%202%203.6l3%203C3.2%208%201.8%209.9%201%2012c1.3%203.4%205.5%207%2011%207%201.8%200%203.4-.4%204.9-1.1l3.5%203.5%201.3-1.3L3.3%202.3ZM12%2016.5A4.5%204.5%200%200%201%207.5%2012c0-.8.2-1.5.6-2.2l1.8%201.8V12a2.5%202.5%200%200%200%202.5%202.5h.4l1.4%201.4c-.7.4-1.4.6-2.2.6ZM12%205c5.5%200%209.7%203.6%2011%207-.5%201.4-1.4%202.7-2.6%203.8l-3-3c0-.3.1-.5.1-.8A4.5%204.5%200%200%200%2012%207.5c-.3%200-.5%200-.8.1L8.9%205.3C9.9%205.1%2010.9%205%2012%205Z%27/%3E%3C/svg%3E") center / contain no-repeat;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.compact-text-field textarea {
  margin-top: 0;
}

.field.has-error input,
.field.has-error select {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.35;
}

.field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.required-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.field.wide {
  grid-column: span 2;
}

.segment-text {
  min-height: 84px;
  margin-top: 8px;
}

.segment-text.compact {
  min-height: 68px;
}

.dialogue-compact-line .dialogue-compact-text {
  min-height: 28px;
  height: 28px;
  margin-top: 0;
  padding: 4px 7px;
  line-height: 1.2;
}

.danger {
  background: #fff;
  color: #b42318;
  border: 1px solid #f1b2b2;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.danger:hover:not(:disabled) {
  background: #fff1f2;
}

button.small {
  padding: 8px 12px;
  font-size: 13px;
}

button.tiny {
  padding: 6px 9px;
  font-size: 12px;
}

.empty-state {
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .page {
    padding: 24px 16px 120px;
  }

  .workspace-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .workspace-sidebar {
    position: relative;
    top: 0;
    width: 220px;
    max-height: none;
  }

  .sidebar-panel {
    width: 100%;
  }

  .sidebar-panel .sidebar-account-card {
    width: 100%;
    margin-top: 0;
  }

  .sidebar-action-group button {
    width: 100%;
  }

  .sidebar-action-group {
    display: grid;
    gap: 6px;
  }

  .section-sidebar-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-nav-button {
    width: calc(50% - 6px);
  }

  .current-section-bar {
    grid-template-columns: 1fr;
  }

  .section-audio-player {
    width: 100%;
  }

  .section-audio-controls {
    width: 100%;
    border-radius: 18px;
  }

  .repeat-grid {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .dialogue-summary-card {
    grid-template-columns: 1fr;
  }

  .dialogue-expanded-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .dialogue-stack-card {
    width: 100%;
  }

  .auto-repeat-card {
    width: 100%;
  }

  .dialogue-compact-toolbar {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .repeat-card,
  .repeat-pause-card {
    flex: 1 1 100%;
  }

  .grid,
  .stack,
  .results {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .section-head,
  .row-top {
    flex-direction: column;
    align-items: stretch;
  }

  .section-toolbar {
    justify-content: flex-start;
  }

  .row-top.question-card-summary {
    grid-template-columns: 1fr;
  }

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

  .section-navigator {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .section-actions {
    justify-content: stretch;
  }

  .section-actions button {
    flex: 1;
  }

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

  .voice-block {
    grid-template-columns: 1fr;
  }

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

  .admin-detail-head,
  .admin-project-panel-head,
  .admin-promotion-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-detail-head button,
  .admin-detail-actions,
  .admin-detail-actions button,
  .admin-project-search {
    width: 100%;
  }

  .admin-detail-layout,
  .admin-form-grid,
  .admin-user-summary,
  .admin-activity-grid {
    grid-template-columns: 1fr;
  }

  .repeat-grid,
  .repeat-fields {
    grid-template-columns: 1fr;
  }

  .field.wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 236px;
  }

  .page {
    width: 100%;
    max-width: 100%;
    padding: 20px 12px 28px;
    overflow-x: hidden;
  }

  .hero {
    margin-bottom: 12px;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }

  .hero .eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .announcement-banner {
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .announcement-banner-shell {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .announcement-banner strong {
    font-size: 14px;
  }

  .announcement-banner .ghost.small {
    min-width: 76px;
    padding: 0 10px;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .workspace-sidebar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 10px;
    top: auto;
    z-index: 80;
    width: auto;
    height: auto;
    max-height: none;
    transition: transform 0.24s ease;
  }

  .workspace-sidebar::before {
    display: none;
    content: "";
  }

  .workspace-sidebar.is-dock-hidden {
    pointer-events: none;
    transform: translateY(calc(100% + 8px));
  }

  .workspace-sidebar.is-dock-hidden::before {
    display: none;
  }

  .mobile-dock-reveal-button {
    position: absolute;
    left: 50%;
    top: -18px;
    z-index: 3;
    display: flex;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: min(156px, 48vw);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.98);
    border-radius: 18px 18px 0 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
      #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0.04em;
    box-shadow:
      0 -8px 22px rgba(15, 23, 42, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    touch-action: manipulation;
  }

  .mobile-dock-reveal-button:hover {
    background: #f8fafc;
  }

  .workspace-sidebar.is-dock-hidden .mobile-dock-reveal-button {
    pointer-events: auto;
    top: -54px;
  }

  .workspace-sidebar.is-dock-hidden .sidebar-panel {
    pointer-events: none;
  }

  body.is-mobile-dock-revealing .sidebar-panel {
    pointer-events: none;
  }

  .sidebar-panel {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 7px;
    min-height: 0;
    padding: 9px;
    border-radius: 22px;
    overflow: visible;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  }

  .sidebar-panel .sidebar-account-card {
    margin-top: 0;
  }

  .sidebar-action-group {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.72);
  }

  .sidebar-group-title,
  .sidebar-action-note,
  .sidebar-card-label,
  .sidebar-account-card small {
    display: none;
  }

  .sidebar-project-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(28px, auto) auto;
    min-height: 48px;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    text-align: center;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .sidebar-project-card .sidebar-card-label,
  .sidebar-project-card strong,
  .sidebar-project-card .sidebar-project-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    width: 100%;
    padding: 3px 8px;
  }

  .sidebar-project-card .sidebar-card-label,
  .sidebar-project-card strong {
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  }

  .sidebar-project-card .sidebar-card-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
  }

  .sidebar-project-card strong {
    grid-column: auto;
    font-size: 14px;
    min-height: 30px;
    line-height: 1.2;
    overflow-wrap: break-word;
    padding-block: 4px;
    white-space: normal;
  }

  .sidebar-project-card .sidebar-project-state {
    border-radius: 0;
    background: transparent;
  }

  .sidebar-project-card.is-attention-needed {
    border-color: rgba(251, 146, 60, 0.52);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.14);
  }

  .sidebar-project-card.is-auto-hidden {
    display: none;
  }

  .sidebar-project-state,
  .sidebar-account-card span {
    font-size: 11px;
    padding: 3px 7px;
  }

  .sidebar-action-group button,
  .sidebar-account-card button {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 13px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    touch-action: pan-y;
  }

  .sidebar-file-group {
    grid-template-columns: minmax(0, 1fr) 92px;
    align-items: stretch;
  }

  .sidebar-file-group:has(.sidebar-project-card.is-auto-hidden) {
    grid-template-columns: 1fr;
  }

  .sidebar-file-group .sidebar-project-card {
    grid-row: 1 / span 2;
  }

  .sidebar-file-group #sidebarNewProjectButton,
  .sidebar-file-group #sidebarSaveProjectButton {
    align-self: center;
    min-height: 52px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 14px;
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.86);
    color: #111827;
    font-size: 12px;
    line-height: 1.2;
  }

  .sidebar-file-group #sidebarNewProjectButton {
    grid-column: 2;
    grid-row: 1;
  }

  .sidebar-file-group #sidebarSaveProjectButton {
    grid-column: 2;
    grid-row: 2;
  }

  .sidebar-file-group:has(.sidebar-project-card.is-auto-hidden) .sidebar-project-card,
  .sidebar-file-group:has(.sidebar-project-card.is-auto-hidden) #sidebarNewProjectButton,
  .sidebar-file-group:has(.sidebar-project-card.is-auto-hidden) #sidebarSaveProjectButton {
    grid-column: auto;
    grid-row: auto;
  }

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

  .sidebar-edit-group button {
    background: #f8fafc;
    border-color: rgba(226, 232, 240, 0.92);
  }

  .sidebar-edit-group button:disabled {
    background: #f8fafc;
    color: #94a3b8;
    opacity: 0.72;
  }

  .sidebar-export-group {
    grid-template-columns: 1fr;
  }

  #parseGenerateAllButton,
  #downloadProjectMp3Button {
    grid-column: auto;
    min-height: 44px;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
  }

  .sidebar-account-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 9px 10px;
    border-radius: 16px;
  }

  .sidebar-account-card span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-account-card button {
    width: auto;
    min-width: 58px;
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.86);
  }

  .workspace-main {
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .panel,
  .card,
  .import-section,
  .workspace-grid,
  .section-directory,
  .current-section-bar,
  .timeline,
  .timeline-item,
  .question-card,
  .question-card-body,
  .row-top {
    min-width: 0;
    max-width: 100%;
  }

  .card {
    padding: 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .workspace-head,
  .section-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .workspace-head h2,
  .section-head h2 {
    font-size: 24px;
  }

  .settings-grid,
  .import-panel.is-collapsed .settings-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }

  .voice-block,
  .import-panel.is-collapsed .voice-block {
    grid-template-columns: minmax(0, 1fr) 82px 58px;
    align-items: end;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 14px;
    min-width: 0;
  }

  .preset-block,
  .question-prompt-block,
  .import-panel.is-collapsed .preset-block {
    grid-template-columns: 1fr;
  }

  .question-prompt-block {
    align-items: start;
  }

  .question-prompt-note {
    font-size: 11px;
  }

  .settings-section .import-section-subtitle,
  .preset-hint {
    display: none;
  }

  .voice-block label {
    font-size: 11px;
    line-height: 1.25;
  }

  .voice-block select,
  .import-panel.is-collapsed .voice-block select,
  textarea,
  input,
  select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 15px;
  }

  .voice-block select,
  .import-panel.is-collapsed .voice-block select {
    height: 36px;
    min-height: 36px;
    margin-top: 3px;
    padding: 0 24px 0 9px;
    border-radius: 11px;
    font-size: 14px;
  }

  .voice-block .top-preview {
    width: 58px;
    min-height: 36px;
    padding: 0;
    border-radius: 11px;
    font-size: 13px;
  }

  #rawText {
    min-height: 220px;
  }

  .photo-ocr-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .photo-ocr-actions button {
    width: 100%;
  }

  .ocr-picker-head,
  .ocr-picker-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ocr-picker-actions,
  .ocr-picker-footer button {
    width: 100%;
  }

  .ocr-picker-actions button {
    flex: 1 1 0;
  }

  .ocr-section-cards {
    max-height: 360px;
  }

  .photo-order-list {
    grid-template-columns: 1fr;
  }

  .photo-order-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .photo-order-rank,
  .photo-order-card img {
    min-height: 132px;
    height: 132px;
  }

  .photo-order-rank strong {
    font-size: 36px;
  }

  .parse-actions {
    justify-content: stretch;
  }

  .parse-actions button,
  #parseButton {
    width: 100%;
  }

  .section-directory {
    gap: 8px;
    margin: 8px 0 12px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f9fafb);
  }

  .section-directory-head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .section-directory-head h3 {
    font-size: 17px;
  }

  .section-directory-subtitle {
    display: none;
  }

  .section-directory-head > span {
    padding: 5px 9px;
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
  }

  .section-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-wrap: initial;
    justify-content: initial;
    overflow-x: visible;
    gap: 7px;
    margin: 0;
    padding: 2px;
    scroll-snap-type: none;
  }

  .section-nav-button {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 14px;
    gap: 7px;
    scroll-snap-align: none;
  }

  .section-nav-drag-handle {
    display: none;
  }

  .section-nav-number {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    font-size: 11px;
  }

  .section-nav-main {
    font-size: 12px;
  }

  .section-nav-status {
    position: absolute;
    right: 7px;
    bottom: 5px;
    width: 8px;
    height: 8px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .section-nav-status::before {
    width: 8px;
    height: 8px;
  }

  .current-section-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .section-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    min-height: 0;
  }

  .section-audio-controls {
    order: 0;
    width: 100%;
  }

  .section-audio-player {
    width: 100%;
    min-width: 0;
  }

  audio {
    max-width: 100%;
  }

  .section-download-button,
  .section-generate-button,
  .section-repeat-control {
    width: 100%;
  }

  .section-repeat-control {
    justify-content: space-between;
  }

  .section-repeat-control select {
    min-width: 96px;
  }

  .row-top.question-card-summary,
  .single-segment-grid,
  .dialogue-expanded-grid,
  .dialogue-summary-card,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .mobile-focus-button {
    display: inline-flex;
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.24);
    color: #047857;
  }

  .mobile-focus-button:hover:not(:disabled) {
    background: #d1fae5;
  }

  .mobile-focus-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, 0.26);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
  }

  .mobile-focus-bar div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-focus-bar span {
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .mobile-focus-bar strong {
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-focus-bar button {
    flex: 0 0 auto;
  }

  body.is-mobile-focus-mode .timeline-row.is-mobile-focus-hidden {
    display: none;
  }

  body.is-mobile-focus-mode .hero,
  body.is-mobile-focus-mode #announcementBanner,
  body.is-mobile-focus-mode #importPanel,
  body.is-mobile-focus-mode #timelinePanel > .card > .section-head,
  body.is-mobile-focus-mode #timelinePanel .section-directory {
    display: none !important;
  }

  body.is-mobile-focus-mode .page {
    padding-top: 12px;
  }

  body.is-mobile-focus-mode .workspace-layout {
    display: block;
  }

  body.is-mobile-focus-mode .workspace-main {
    display: block;
  }

  body.is-mobile-focus-mode #timelinePanel,
  body.is-mobile-focus-mode #timelinePanel > .card {
    margin: 0;
  }

  body.is-mobile-focus-mode #timelinePanel > .card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  body.is-mobile-focus-mode #timelineOutput {
    gap: 10px;
  }

  body.is-mobile-focus-mode .timeline-row.is-mobile-focus-active {
    border-color: rgba(37, 99, 235, 0.42);
    background:
      linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98)),
      #ffffff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
  }

  body.is-mobile-focus-mode .question-card-summary:not(.is-compact-single) {
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.74), rgba(255, 255, 255, 0.98));
  }

  body.is-ocr-selection-focus-mode .hero,
  body.is-ocr-selection-focus-mode #announcementBanner,
  body.is-ocr-selection-focus-mode .setup-section,
  body.is-ocr-selection-focus-mode #rawText,
  body.is-ocr-selection-focus-mode .parse-actions,
  body.is-ocr-selection-focus-mode #timelinePanel {
    display: none !important;
  }

  body.is-ocr-selection-focus-mode .page {
    padding-top: 12px;
  }

  body.is-ocr-selection-focus-mode .workspace-layout,
  body.is-ocr-selection-focus-mode .workspace-main {
    display: block;
  }

  body.is-ocr-selection-focus-mode #importPanel,
  body.is-ocr-selection-focus-mode #importPanel > .card {
    margin: 0;
  }

  body.is-ocr-selection-focus-mode #importPanel > .card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.is-ocr-selection-focus-mode .import-section:not(.raw-section),
  body.is-ocr-selection-focus-mode .import-section-head,
  body.is-ocr-selection-focus-mode .photo-ocr-actions {
    display: none !important;
  }

  body.is-ocr-selection-focus-mode .raw-input-block {
    gap: 0;
  }

  body.is-ocr-selection-focus-mode .ocr-section-picker {
    min-height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 24px;
    overflow: hidden;
  }

  body.is-ocr-selection-focus-mode .ocr-focus-bar {
    display: flex;
  }

  body.is-ocr-selection-focus-mode .ocr-section-cards {
    max-height: calc(100vh - 210px);
    padding-bottom: 24px;
  }

  .repeat-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .compact-repeat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .compact-left-row,
  .compact-right-row {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 8px;
  }

  .compact-right-stack {
    gap: 10px;
  }

  .repeat-card,
  .repeat-pause-card {
    flex: 0 0 min(86vw, 320px);
  }

  .pause-card {
    min-width: 112px;
  }

  .modal-panel {
    width: min(100vw - 24px, 720px);
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    padding: 16px;
    border-radius: 20px;
  }

  .file-manager-panel {
    min-height: calc(100vh - 28px);
  }

  .file-manager-panel .modal-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .file-manager-panel .project-toolbar {
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .file-manager-panel .project-toolbar-fields {
    grid-template-columns: 1fr;
  }

  .file-manager-panel .project-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .file-manager-panel .project-toolbar-actions button {
    width: 100%;
  }

  .file-manager-panel .project-browser-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .file-manager-panel .project-browser-column {
    min-width: 0;
  }

  .file-manager-panel .project-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .file-manager-panel .project-table,
  .file-manager-panel .project-table thead,
  .file-manager-panel .project-table tbody,
  .file-manager-panel .project-table tr,
  .file-manager-panel .project-table td {
    display: block;
    width: 100%;
  }

  .file-manager-panel .project-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .file-manager-panel .project-table thead {
    display: none;
  }

  .file-manager-panel .project-table tbody tr {
    position: relative;
    padding: 12px 12px 12px 42px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: #ffffff;
  }

  .file-manager-panel .project-table tbody tr.is-selected {
    border-color: rgba(37, 99, 235, 0.28);
    background: #f8fbff;
    box-shadow: inset 4px 0 0 #2563eb;
  }

  .file-manager-panel .project-table td {
    padding: 0;
    border: 0;
  }

  .file-manager-panel .project-table-check-cell {
    position: absolute;
    top: 14px;
    left: 14px;
    width: auto;
  }

  .file-manager-panel .project-table-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-right: 0;
  }

  .file-manager-panel .project-table-title strong {
    max-width: none;
    font-size: 15px;
  }

  .file-manager-panel .project-table-title span {
    grid-column: 1 / -1;
    justify-self: start;
    width: fit-content;
    margin-top: 2px;
  }

  .file-manager-panel .project-mobile-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: auto;
    min-width: 64px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
  }

  .file-manager-panel .project-mobile-open-button:hover:not(:disabled) {
    background: #dbeafe;
  }

  .file-manager-panel .project-table td:nth-child(3),
  .file-manager-panel .project-table td:nth-child(4),
  .file-manager-panel .project-table td:nth-child(5) {
    display: inline-flex;
    width: auto;
    margin: 8px 6px 0 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
  }

  .file-manager-panel .project-table td:nth-child(3)::before {
    content: "部分 ";
  }

  .file-manager-panel .project-table td:nth-child(4)::before {
    content: "音频 ";
  }

  .file-manager-panel .project-table td:nth-child(5)::before {
    content: "更新 ";
  }

  .file-manager-panel .project-batch-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .file-manager-panel .project-batch-toolbar button {
    width: 100%;
  }

  .file-manager-panel .project-asset-item {
    padding: 12px;
    border-radius: 16px;
  }

  .file-manager-panel .project-asset-head {
    display: grid;
    gap: 6px;
  }

  .file-manager-panel .project-asset-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .file-manager-panel .asset-action-button {
    width: 100%;
    min-height: 40px;
  }
}

.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.announcement-banner[data-type="important"] {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.95));
  border-color: rgba(249, 115, 22, 0.26);
}

.announcement-banner[data-type="maintenance"] {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.95));
  border-color: rgba(59, 130, 246, 0.24);
}

.announcement-banner-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.announcement-banner strong {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 18px;
}

.announcement-banner strong::after {
  content: "·";
  margin: 0 12px;
  color: rgba(100, 116, 139, 0.75);
}

.announcement-marquee {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.announcement-marquee-track {
  display: inline-flex;
  align-items: center;
  min-width: 100%;
  width: max-content;
  color: var(--muted);
  line-height: 1.5;
  white-space: nowrap;
  animation: announcement-marquee 22s linear infinite;
}

.announcement-banner:hover .announcement-marquee-track {
  animation-play-state: paused;
}

.announcement-banner #announcementBannerContent {
  color: var(--muted);
}

.announcement-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}

@keyframes announcement-marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 640px) {
  .announcement-banner {
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .announcement-banner-shell {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .announcement-banner strong {
    font-size: 14px;
  }

  .announcement-banner .ghost.small {
    min-width: 76px;
    padding: 0 10px;
  }
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-help-link {
  text-decoration: none;
}

.notice-page {
  max-width: 1120px;
}

.notice-hero {
  display: grid;
  gap: 12px;
}

.notice-hero-text {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.notice-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.notice-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.notice-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: #334155;
  font-weight: 900;
  text-decoration: none;
}

.notice-nav a:hover,
.notice-nav a:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
}

.notice-content {
  display: grid;
  gap: 18px;
}

.notice-loading {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.notice-loading.error {
  border-color: rgba(239, 68, 68, 0.24);
  color: #b91c1c;
  background: #fff7f7;
}

.notice-section {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  scroll-margin-top: 18px;
}

.notice-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.notice-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.notice-section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.notice-card-list {
  display: grid;
  gap: 12px;
}

.notice-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.notice-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.notice-card-meta strong {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
}

.notice-card h3 {
  margin: 0;
  font-size: 21px;
}

.notice-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 760px) {
  .hero-topline {
    align-items: flex-start;
  }

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

  .notice-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-section {
    padding: 18px;
    border-radius: 22px;
  }

  .notice-section-head {
    display: grid;
  }

  .notice-section-head p {
    text-align: left;
  }
}

.notice-intro-description {
  margin: 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.8;
}

.notice-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notice-intro-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.96));
}

.notice-intro-card h3 {
  margin: 0;
  font-size: 20px;
}

.notice-intro-card p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

@media (max-width: 760px) {
  .notice-intro-grid {
    grid-template-columns: 1fr;
  }
}

.longform-page {
  max-width: 1360px;
}

.longform-hero-text,
.longform-muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.longform-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 30px;
}

.longform-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.longform-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.longform-toolbar,
.longform-scale-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.longform-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.longform-toolbar select,
.longform-scale-control input {
  min-height: 38px;
}

.longform-textarea {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 24px;
  padding: 20px;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  font-size: 16px;
  line-height: 1.8;
  outline: none;
}

.longform-textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.18);
}

.longform-helper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.longform-helper-grid span {
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.longform-block-list {
  display: grid;
  gap: 12px;
}

.longform-empty {
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.65);
  border-radius: 22px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.longform-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.longform-block.pause {
  background: #f8fafc;
}

.longform-block.sfx {
  border-color: rgba(251, 146, 60, 0.45);
  background: #fff7ed;
}

.longform-block.bgm,
.longform-block.bgm-stop {
  border-color: rgba(20, 184, 166, 0.35);
  background: #f0fdfa;
}

.longform-block-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 950;
}

.longform-block-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.longform-block-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.longform-block-meta strong {
  color: #0f172a;
}

.longform-block-meta span,
.longform-block-meta em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.longform-block p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.longform-block-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.longform-scale-control {
  min-width: min(100%, 330px);
  padding: 8px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
  font-weight: 900;
}

.longform-scale-control input {
  flex: 1;
}

.longform-timeline {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.65) 1px, transparent 1px) 0 0 / 36px 100%,
    #ffffff;
}

.longform-track {
  display: grid;
  grid-template-columns: 92px minmax(680px, 1fr);
  gap: 10px;
  align-items: center;
}

.longform-track-label {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 10px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.longform-track-lane {
  position: relative;
  min-width: var(--timeline-width);
  height: 54px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.8);
  overflow: hidden;
}

.longform-timeline-item {
  position: absolute;
  top: 8px;
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.longform-timeline-item.pause {
  background: #94a3b8;
}

.longform-timeline-item.bgm {
  background: #0f766e;
}

.longform-timeline-item.sfx {
  background: #ea580c;
}

.longform-timeline-item.is-highlighted {
  outline: 4px solid rgba(250, 204, 21, 0.75);
}

.longform-audio-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.longform-library-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: #ffffff;
}

.longform-library-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.longform-library-card h3,
.longform-library-card p {
  margin: 0;
}

.longform-library-card h3 {
  color: #0f172a;
  font-size: 18px;
}

.longform-library-card p {
  color: var(--muted);
  font-size: 13px;
}

.longform-library-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .longform-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .longform-helper-grid,
  .longform-audio-library {
    grid-template-columns: 1fr;
  }

  .longform-block {
    grid-template-columns: 1fr;
  }

  .longform-block-index {
    width: 38px;
    height: 38px;
  }

  .longform-track {
    grid-template-columns: 76px minmax(520px, 1fr);
  }
}

/* Landing homepage */
.landing-body {
  min-height: 100vh;
  margin: 0;
  color: #142033;
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #eef7f4 46%, #fff8ec 100%);
}

.landing-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.landing-nav,
.landing-nav-actions,
.landing-brand,
.landing-hero-actions,
.landing-proof-row {
  display: flex;
  align-items: center;
}

.landing-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.landing-brand {
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.landing-brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand strong {
  font-size: 18px;
}

.landing-brand small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-nav-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav-actions > a,
.landing-nav-actions > .language-select-wrap {
  display: inline-flex;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
}

.landing-nav-actions a,
.landing-secondary,
.landing-app-card a,
.landing-social-grid a {
  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
}

.landing-nav-actions > a:not(.ghost):not(.landing-primary-link) {
  padding: 10px 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1;
}

.landing-cta {
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: #14181f;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
  text-decoration: none;
}

.landing-primary-link {
  padding: 10px 12px;
  color: #6f6254 !important;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  gap: 36px;
  align-items: center;
  padding: 84px 0 56px;
}

.landing-kicker {
  margin: 0 0 14px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #101827;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.landing-hero-text {
  max-width: 700px;
  margin: 28px 0 0;
  color: #475569;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
}

.landing-hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.landing-cta,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  font-size: 17px;
}

.landing-secondary {
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.landing-proof-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-proof-row span,
.landing-card-tag,
.landing-demo-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.landing-proof-row span {
  padding: 9px 13px;
  color: #155e75;
  background: rgba(236, 254, 255, 0.9);
}

.landing-hero-card {
  position: relative;
  min-height: 470px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(240, 253, 250, 0.7)),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.06) 0 1px, transparent 1px 72px);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

.landing-orbit {
  position: absolute;
  inset: 48px 28px auto auto;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(37, 99, 235, 0.12);
  border-left-color: rgba(15, 118, 110, 0.38);
  border-radius: 999px;
}

.landing-demo-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 28px;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.landing-demo-panel h2,
.landing-section h2,
.landing-app-card h3 {
  margin: 0;
  color: #101827;
}

.landing-demo-panel h2 {
  margin-top: 14px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.landing-demo-panel p,
.landing-section-head p,
.landing-about p,
.landing-app-card p,
.landing-app-card li {
  color: #64748b;
  font-weight: 700;
  line-height: 1.75;
}

.landing-demo-badge,
.landing-card-tag {
  padding: 8px 12px;
  color: #0f766e;
  background: #ccfbf1;
}

.landing-card-tag.muted {
  color: #64748b;
  background: #f1f5f9;
}

.landing-demo-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.landing-demo-list span {
  padding: 14px 16px;
  border-radius: 18px;
  color: #0f172a;
  background: #f8fafc;
  font-weight: 900;
}

.landing-section {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.07);
}

.landing-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.landing-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
}

.landing-app-grid,
.landing-social-grid {
  display: grid;
  gap: 18px;
}

.landing-app-grid {
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
}

.landing-app-card {
  padding: 26px;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 28px;
  background: #fff;
}

.landing-app-card.is-featured {
  background: linear-gradient(145deg, #ffffff, #f0fdfa);
}

.landing-app-card.is-featured.classcheck-product-card {
  border-color: rgba(251, 146, 60, 0.34);
  background: linear-gradient(145deg, #ffffff, #fff7ed);
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card-head small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(154, 52, 18, 0.16);
}

.product-card-main .product-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}

.landing-card-tag.warm {
  color: #9a3412;
  background: #ffedd5;
}

.classcheck-product-card {
  background: linear-gradient(145deg, #ffffff, #fff7ed);
}

.landing-app-card h3 {
  margin-top: 16px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.landing-app-card ul {
  padding-left: 20px;
}

.landing-app-card a {
  display: inline-flex;
  margin-top: 8px;
  color: #2563eb;
}

.product-card > a {
  margin-top: auto;
}

.landing-about {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 28px;
}

.landing-about p {
  margin: 0;
  font-size: 18px;
}

.landing-social-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-social-grid a {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 24px;
  background: #fff;
  font-size: 22px;
}

.landing-social-grid span {
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 920px) {
  .landing-page {
    width: min(100% - 24px, 720px);
    padding-top: 14px;
  }

  .landing-nav,
  .landing-about {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .landing-nav-actions {
    justify-content: flex-start;
  }

  .landing-hero,
  .landing-app-grid,
  .landing-social-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 52px 0 26px;
  }

  .landing-hero-card {
    min-height: 390px;
  }

  .landing-section {
    padding: 24px;
    border-radius: 28px;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  width: 100%;
  margin: 42px auto 0;
  padding: 26px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

.site-footer-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.site-footer-brand {
  display: grid;
  gap: 5px;
}

.site-footer-brand strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.site-footer-brand span,
.site-footer-links span {
  color: #64748b;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer-social {
  display: flex;
  gap: 14px;
}

.site-footer-social figure {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 110px;
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.site-footer-social figure a {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: inherit;
  text-decoration: none;
}

.site-footer-social figure a:hover,
.site-footer-social figure a:focus-visible {
  color: #2563eb;
}

.site-footer-social figure a:hover img,
.site-footer-social figure a:focus-visible img {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.site-footer-social img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 18px;
  background: #fff;
}

.site-footer a {
  color: #334155;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #0f172a;
  text-decoration: underline;
}

.studio-page > .site-footer {
  width: calc(100% - 238px);
  margin-left: 238px;
}

/* Lighter landing visual tuning */
.landing-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(186, 230, 253, 0.32), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(204, 251, 241, 0.28), transparent 32%),
    linear-gradient(135deg, #fcfdff 0%, #f8fbff 50%, #fffdf8 100%);
}

.landing-page {
  width: min(1100px, calc(100% - 44px));
  padding: 22px 0 54px;
}

.landing-nav {
  padding: 10px 12px;
  border-color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.landing-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: 14px;
}

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

.landing-brand small {
  font-size: 10px;
}

.landing-primary-link {
  padding: 10px 16px;
}

.landing-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.68fr);
  gap: 30px;
  padding: 64px 0 42px;
}

.landing-kicker {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.13em;
}

.landing-hero h1 {
  max-width: 690px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.landing-hero-text {
  max-width: 640px;
  margin-top: 22px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.72;
}

.landing-hero-actions {
  margin-top: 28px;
}

.landing-cta,
.landing-secondary {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.landing-cta {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.13);
}

.landing-proof-row {
  margin-top: 20px;
}

.landing-proof-row span {
  padding: 7px 11px;
  font-size: 13px;
}

.landing-hero-card {
  min-height: 390px;
  border-color: rgba(226, 232, 240, 0.92);
  border-radius: 32px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86)),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 76px);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.075);
}

.landing-orbit {
  inset: 42px 24px auto auto;
  width: 170px;
  height: 170px;
  border-width: 20px;
  border-color: rgba(96, 165, 250, 0.1);
  border-left-color: rgba(20, 184, 166, 0.24);
}

.landing-demo-panel {
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 22px;
  border-color: rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.landing-demo-panel h2 {
  margin-top: 12px;
  font-size: 26px;
}

.landing-demo-panel p,
.landing-section-head p,
.landing-about p,
.landing-app-card p,
.landing-app-card li {
  font-weight: 650;
  line-height: 1.68;
}

.landing-demo-badge,
.landing-card-tag {
  padding: 7px 10px;
  font-size: 12px;
}

.landing-demo-list {
  gap: 8px;
  margin-top: 14px;
}

.landing-demo-list span {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 850;
}

.landing-section {
  margin-top: 22px;
  padding: 28px;
  border-color: rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.05);
}

.landing-section-head {
  margin-bottom: 20px;
}

.landing-section h2 {
  font-size: clamp(26px, 3.3vw, 38px);
  letter-spacing: -0.045em;
}

.landing-app-grid {
  gap: 14px;
}

.landing-app-card {
  padding: 22px;
  border-color: rgba(226, 232, 240, 0.95);
  border-radius: 22px;
}

.landing-app-card h3 {
  margin-top: 14px;
  font-size: 23px;
}

.landing-about {
  gap: 22px;
}

.landing-about p {
  font-size: 16px;
}

@media (max-width: 920px) {
  .landing-page {
    width: min(100% - 24px, 720px);
    padding-top: 12px;
  }

  .landing-hero {
    padding: 42px 0 22px;
  }

  .landing-hero-card {
    min-height: 340px;
  }

  .landing-section {
    padding: 22px;
    border-radius: 24px;
  }
}

/* Unified marketing pages: 星鹿课笺, studio intro and help */
.marketing-page .landing-nav-actions a[href="/classcheck.html"],
.marketing-page .landing-nav-actions a[href="/about.html"] {
  padding: 10px 12px;
  color: #475569;
  font-size: 14px;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 28px;
  align-items: center;
  padding: 58px 0 30px;
}

.marketing-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #101827;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.052em;
}

.marketing-tagline {
  margin: 14px 0 0;
  color: #ea7a1f;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.marketing-lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.75;
}

.app-hero-shot {
  margin: 0;
  justify-self: center;
  width: min(280px, 100%);
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.9), rgba(255, 255, 255, 0.88));
  box-shadow: 0 24px 64px rgba(234, 122, 31, 0.15);
}

.app-hero-shot img,
.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-hero-shot img {
  border-radius: 28px;
}

.marketing-section {
  scroll-margin-top: 96px;
}

.marketing-feature-grid,
.review-note-grid {
  display: grid;
  gap: 14px;
}

.marketing-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketing-card,
.review-note-grid article,
.studio-hero-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.marketing-card {
  padding: 22px;
}

.marketing-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  font-size: 14px;
  font-weight: 950;
}

.marketing-card h3,
.review-note-grid h3,
.studio-hero-card h2 {
  margin: 16px 0 0;
  color: #101827;
  letter-spacing: -0.03em;
}

.marketing-card h3 {
  font-size: 22px;
}

.marketing-card p,
.review-note-grid p,
.studio-hero-card p {
  margin: 10px 0 0;
  color: #64748b;
  font-weight: 650;
  line-height: 1.72;
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: start;
}

.review-note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-note-grid article {
  padding: 20px;
}

.review-note-grid h3 {
  margin-top: 0;
  font-size: 20px;
}

.app-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phone-shot {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.055);
}

.phone-shot img {
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.phone-shot figcaption {
  margin-top: 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.classcheck-page .landing-card-tag,
.classcheck-page .landing-proof-row span {
  color: #9a3412;
  background: #ffedd5;
}

.classcheck-page .landing-brand-mark {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.studio-hero-card {
  padding: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(204, 251, 241, 0.58), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.studio-hero-card.compact {
  align-self: stretch;
}

.studio-hero-card h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
}

.notice-page {
  max-width: none;
}

.notice-hero-new {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
}

.notice-page .notice-layout.landing-section {
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 18px;
}

.notice-page .notice-nav {
  top: 100px;
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: none;
}

.notice-page .notice-section,
.notice-page .notice-card,
.notice-page .notice-intro-card {
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.notice-page .notice-section-head h2 {
  letter-spacing: -0.035em;
}

@media (max-width: 980px) {
  .marketing-hero,
  .notice-hero-new,
  .split-section,
  .notice-page .notice-layout.landing-section {
    grid-template-columns: 1fr;
  }

  .marketing-feature-grid,
  .review-note-grid,
  .app-screenshot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notice-page .notice-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .marketing-hero {
    padding-top: 38px;
  }

  .marketing-hero-copy h1 {
    font-size: clamp(32px, 12vw, 44px);
  }

  .marketing-feature-grid,
  .review-note-grid,
  .app-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .app-hero-shot {
    width: min(240px, 82vw);
  }

  .notice-page .notice-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile polish for public marketing pages */
@media (max-width: 760px) {
  .landing-body {
    background:
      radial-gradient(circle at 20% 0%, rgba(219, 234, 254, 0.38), transparent 30%),
      linear-gradient(180deg, #ffffff 0%, #f8fbff 58%, #fffdf8 100%);
  }

  .landing-page {
    width: min(100% - 18px, 560px);
    padding: 8px 0 34px;
  }

  .landing-nav {
    position: static;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
  }

  .landing-brand {
    gap: 9px;
  }

  .landing-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 12px;
  }

  .landing-brand strong {
    font-size: 14px;
  }

  .landing-brand small {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .landing-nav-actions {
    gap: 7px;
  }

  .landing-nav-actions > a:not(.ghost):not(.landing-primary-link),
  .marketing-page .landing-nav-actions a[href="/classcheck.html"],
  .marketing-page .landing-nav-actions a[href="/about.html"] {
    padding: 8px 9px;
    font-size: 12px;
  }

  .landing-primary-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .landing-hero,
  .marketing-hero {
    gap: 20px;
    padding: 34px 0 18px;
  }

  .landing-kicker {
    margin-bottom: 9px;
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  .landing-hero h1,
  .marketing-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(30px, 9.2vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .marketing-tagline {
    margin-top: 10px;
    font-size: clamp(19px, 5.6vw, 25px);
  }

  .landing-hero-text,
  .marketing-lead {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.68;
  }

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

  .landing-cta,
  .landing-secondary {
    min-height: 42px;
    padding: 0 15px;
    font-size: 13px;
  }

  .landing-proof-row {
    gap: 7px;
    margin-top: 15px;
  }

  .landing-proof-row span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .landing-hero-card {
    min-height: 290px;
    border-radius: 24px;
  }

  .landing-demo-panel {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .landing-demo-panel h2,
  .studio-hero-card h2 {
    font-size: 22px;
  }

  .landing-demo-panel p,
  .landing-section-head p,
  .landing-about p,
  .landing-app-card p,
  .landing-app-card li,
  .marketing-card p,
  .review-note-grid p,
  .studio-hero-card p {
    font-size: 14px;
    line-height: 1.64;
  }

  .landing-demo-list span {
    padding: 10px 12px;
    font-size: 13px;
  }

  .landing-section {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
  }

  .landing-section h2 {
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.16;
    letter-spacing: -0.035em;
  }

  .landing-section-head {
    margin-bottom: 16px;
  }

  .landing-app-card,
  .marketing-card,
  .review-note-grid article,
  .studio-hero-card {
    padding: 17px;
    border-radius: 19px;
  }

  .landing-app-card h3,
  .marketing-card h3,
  .review-note-grid h3 {
    font-size: 19px;
  }

  .product-card-head {
    align-items: flex-start;
  }

  .product-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .marketing-card span {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 12px;
  }

  .app-hero-shot {
    width: min(210px, 70vw);
    padding: 9px;
    border-radius: 28px;
  }

  .app-hero-shot img {
    border-radius: 21px;
  }

  .phone-shot {
    padding: 10px;
    border-radius: 22px;
  }

  .phone-shot img {
    border-radius: 17px;
  }

  .phone-shot figcaption {
    margin-top: 9px;
    font-size: 12px;
  }

  .notice-page .notice-layout.landing-section {
    padding: 14px;
  }

  .notice-nav a {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .notice-section {
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .notice-section-head h2 {
    font-size: 23px;
  }

  .notice-section-head p,
  .notice-card p,
  .notice-intro-description,
  .notice-intro-card p {
    font-size: 14px;
    line-height: 1.62;
  }

  .notice-card,
  .notice-intro-card {
    padding: 15px;
    border-radius: 17px;
  }

  .notice-card h3,
  .notice-intro-card h3 {
    font-size: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
    padding: 20px;
    font-size: 13px;
  }

  .studio-page > .site-footer {
    width: 100%;
    margin-left: 0;
  }

  .site-footer-links,
  .site-footer-social {
    justify-content: center;
  }

  .site-footer-main,
  .site-footer-brand {
    text-align: center;
  }

  .site-footer-social figure {
    width: 96px;
  }

  .site-footer-social img {
    width: 82px;
    height: 82px;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .landing-page {
    width: min(100% - 14px, 420px);
  }

  .landing-nav-actions {
    width: 100%;
  }

  .landing-nav-actions a,
  .landing-primary-link,
  .landing-secondary,
  .landing-cta {
    flex: 1 1 auto;
  }

  .landing-hero h1,
  .marketing-hero-copy h1 {
    font-size: clamp(28px, 10vw, 36px);
  }

  .landing-app-card ul {
    padding-left: 17px;
  }

  .notice-page .notice-nav {
    grid-template-columns: 1fr;
  }
}

/* Navigation hierarchy and homepage title refinement */
.landing-nav-actions > a[href="/#apps"] {
  padding: 10px 12px;
  color: #475569;
  font-size: 14px;
}

.landing-page > .landing-hero .landing-hero-copy > h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

@media (max-width: 760px) {
  .landing-nav-actions > a[href="/#apps"] {
    padding: 8px 9px;
    font-size: 12px;
  }

  .landing-page > .landing-hero .landing-hero-copy > h1 {
    font-size: clamp(27px, 8.4vw, 36px);
    line-height: 1.14;
  }
}

/* Homepage-only mobile layout stabilization */
@media (max-width: 760px) {
  .landing-page > .landing-nav {
    align-items: flex-start;
  }

  .landing-page > .landing-nav .landing-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .landing-page > .landing-nav .landing-nav-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    white-space: nowrap;
  }

  .landing-page > .landing-nav .landing-nav-actions > a:not(.landing-primary-link) {
    background: transparent;
  }

  .landing-page > .landing-nav .landing-nav-actions > .landing-primary-link {
    grid-column: 1 / -1;
    min-height: 40px;
    border-radius: 0;
    color: #6f6254 !important;
    background: transparent;
    box-shadow: none;
  }

  .landing-page > .landing-nav .language-select-wrap {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
  }

  .landing-page > .landing-nav .language-select {
    flex: 0 1 auto;
    min-width: 112px;
    text-align: center;
  }

  .landing-page > .landing-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 24px;
  }

  .landing-page > .landing-hero .landing-hero-card {
    display: none;
  }

  .landing-page > .landing-hero .landing-hero-copy > .landing-hero-text {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .landing-page > .landing-nav .landing-nav-actions {
    grid-template-columns: 1fr;
  }

  .landing-page > .landing-nav .landing-nav-actions > .landing-primary-link {
    grid-column: auto;
  }

  .landing-page > .landing-nav .language-select-wrap {
    grid-column: auto;
  }
}

/* 星鹿课笺 legal pages */
.legal-page {
  max-width: 920px;
}

.classcheck-legal-section {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.72));
}

.classcheck-legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.classcheck-legal-card {
  display: grid;
  gap: 9px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 22px;
  color: #101827;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.055);
}

.classcheck-legal-card span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 950;
}

.classcheck-legal-card strong {
  font-size: 20px;
  letter-spacing: 0;
}

.classcheck-legal-card small {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.legal-document {
  display: block;
  padding: 34px;
  border-color: rgba(251, 146, 60, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.62));
}

.legal-document h1 {
  margin: 0;
  color: #101827;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
}

.legal-document h2 {
  margin: 30px 0 10px;
  color: #101827;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.legal-document p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.78;
}

.legal-document a {
  color: #9a3412;
  font-weight: 850;
}

.legal-document code {
  padding: 3px 7px;
  border-radius: 8px;
  color: #0f172a;
  background: #f1f5f9;
  font-size: 0.94em;
}

.legal-updated {
  margin-top: 10px !important;
  color: #64748b !important;
  font-size: 14px !important;
}

@media (max-width: 760px) {
  .classcheck-legal-grid {
    grid-template-columns: 1fr;
  }

  .classcheck-legal-card {
    min-height: auto;
    padding: 16px;
    border-radius: 18px;
  }

  .legal-document {
    padding: 20px;
  }

  .legal-document h1 {
    font-size: 28px;
  }

  .legal-document h2 {
    margin-top: 24px;
    font-size: 18px;
  }

  .legal-document p {
    font-size: 14px;
    line-height: 1.68;
  }
}

/* Warm public site refresh: broaden studio positioning while matching 星鹿课笺 tone. */
.landing-body {
  color: #2b2118;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 214, 153, 0.34), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(255, 237, 213, 0.58), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(254, 215, 170, 0.42), transparent 30%),
    linear-gradient(135deg, #fffaf2 0%, #fff6e8 46%, #fffdf8 100%);
}

.landing-nav {
  border-color: rgba(232, 184, 121, 0.34);
  background: rgba(255, 252, 246, 0.88);
  box-shadow: 0 16px 42px rgba(154, 52, 18, 0.08);
}

.landing-brand,
.landing-demo-panel h2,
.landing-section h2,
.landing-app-card h3,
.marketing-hero-copy h1,
.marketing-card h3,
.review-note-grid h3,
.studio-hero-card h2,
.site-footer-brand strong {
  color: #24170f;
}

.landing-brand-mark,
.classcheck-page .landing-brand-mark {
  background: linear-gradient(135deg, #f6aa2f, #ff7a2f);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.2);
}

.landing-brand small,
.landing-nav-actions > a:not(.ghost):not(.landing-primary-link),
.marketing-page .landing-nav-actions a[href="/classcheck.html"],
.marketing-page .landing-nav-actions a[href="/about.html"],
.landing-demo-panel p,
.landing-section-head p,
.landing-about p,
.landing-app-card p,
.landing-app-card li,
.marketing-lead,
.marketing-card p,
.review-note-grid p,
.studio-hero-card p,
.site-footer-brand span,
.site-footer-links span {
  color: #756453;
}

.landing-kicker,
.landing-app-card a,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #c05621;
}

.landing-cta {
  background: #23180f;
  box-shadow: 0 14px 28px rgba(80, 43, 20, 0.18);
}

.landing-secondary,
.landing-section,
.landing-app-card,
.marketing-card,
.review-note-grid article,
.studio-hero-card,
.phone-shot,
.classcheck-legal-card,
.notice-page .notice-section,
.notice-page .notice-card,
.notice-page .notice-intro-card,
.legal-document,
.site-footer {
  border-color: rgba(232, 184, 121, 0.38);
  background: rgba(255, 252, 246, 0.86);
  box-shadow: 0 16px 44px rgba(154, 52, 18, 0.06);
}

.landing-hero-card {
  border-color: rgba(232, 184, 121, 0.4);
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 186, 87, 0.22), transparent 30%),
    linear-gradient(155deg, rgba(255, 252, 246, 0.94), rgba(255, 244, 226, 0.84)),
    repeating-linear-gradient(90deg, rgba(120, 53, 15, 0.045) 0 1px, transparent 1px 76px);
  box-shadow: 0 24px 68px rgba(154, 52, 18, 0.1);
}

.landing-orbit {
  border-color: rgba(251, 146, 60, 0.13);
  border-left-color: rgba(245, 158, 11, 0.4);
}

.landing-demo-panel {
  border-color: rgba(232, 184, 121, 0.42);
  background: rgba(255, 253, 249, 0.9);
}

.landing-proof-row span,
.landing-demo-badge,
.landing-card-tag,
.classcheck-page .landing-card-tag,
.classcheck-page .landing-proof-row span,
.classcheck-legal-card span {
  color: #9a3412;
  background: #ffedd5;
}

.landing-card-tag.muted {
  color: #7c6250;
  background: #fff3e1;
}

.landing-demo-list span {
  color: #3a2414;
  background: rgba(255, 247, 237, 0.92);
}

.landing-app-card.is-featured,
.landing-app-card.is-featured.classcheck-product-card,
.classcheck-product-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 226, 0.86));
}

.marketing-card span {
  background: linear-gradient(135deg, #f6aa2f, #ff7a2f);
}

.app-hero-shot,
.studio-hero-card {
  border-color: rgba(232, 184, 121, 0.4);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 214, 153, 0.5), transparent 34%),
    rgba(255, 252, 246, 0.9);
  box-shadow: 0 24px 64px rgba(234, 122, 31, 0.13);
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.97), rgba(255, 244, 226, 0.9)),
    #fffaf2;
  color: #5f4e40;
}

.site-footer a {
  color: #5f4e40;
}

.site-footer-social figure a:hover,
.site-footer-social figure a:focus-visible {
  color: #c05621;
}

.site-footer-social figure a:hover img,
.site-footer-social figure a:focus-visible img {
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.14);
}

@media (max-width: 760px) {
  .landing-body {
    background:
      radial-gradient(circle at 14% 0%, rgba(255, 214, 153, 0.38), transparent 32%),
      linear-gradient(180deg, #fffaf2 0%, #fff6e8 58%, #fffdf8 100%);
  }
}

.police-beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-beian-link img {
  width: 18px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.language-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 0;
  color: #6f6254;
  background: transparent;
  box-shadow: none;
  transform: translateY(-4px);
}

.language-select {
  width: 92px;
  border: 0;
  outline: 0;
  color: #6f6254;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 40px;
  font-weight: 900;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.language-select-wrap::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 57%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}



.language-select-wrap:hover {
  color: #24170f;
  background: transparent;
  box-shadow: none;
}

/* Public site Apple-light refresh: fewer nested cards, lighter modules */
.landing-body {
  color: #1d1d1f;
  background: #fff;
}

.landing-page {
  width: min(100%, 1440px);
  padding: 0 0 36px;
}

.landing-nav {
  top: 0;
  width: 100vw;
  max-width: none;
  margin: 0 auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(120, 99, 76, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.landing-hero,
.marketing-hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 3vw, 88px) clamp(22px, 5vw, 72px);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.46), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.72);
}

.landing-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
}

.landing-hero.is-slogan-hero {
  display: grid;
  min-height: clamp(160px, 20vw, 280px);
  grid-template-columns: 1fr;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.32)),
    #fff;
}

.landing-hero.is-slogan-hero .landing-hero-copy {
  display: grid;
  place-items: center;
  text-align: center;
}

.landing-hero.is-slogan-hero h1 {
  max-width: 1180px;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.marketing-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.52fr);
}

.landing-hero h1,
.marketing-hero-copy h1,
.landing-page > .landing-hero .landing-hero-copy > h1 {
  max-width: 720px;
  color: #1d1d1f;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.landing-hero-text,
.marketing-lead {
  max-width: 650px;
  color: #6e6258;
  font-size: clamp(15px, 1.55vw, 19px);
  font-weight: 600;
  line-height: 1.7;
}

.landing-kicker {
  color: #a4551d;
  letter-spacing: 0.14em;
}

.landing-cta {
  background: #1d1d1f;
  box-shadow: none;
}

.landing-secondary {
  border: 0;
  color: #a4551d;
  background: transparent;
}

.landing-proof-row span,
.landing-card-tag,
.landing-demo-badge {
  color: #8a4b22;
  background: rgba(255, 241, 220, 0.56);
}

.landing-hero-card,
.studio-hero-card,
.app-hero-shot,
.marketing-card,
.review-note-grid article,
.phone-shot,
.landing-app-card,
.notice-page .notice-section,
.notice-page .notice-card,
.notice-page .notice-intro-card,
.classcheck-legal-card,
.legal-document {
  box-shadow: none;
}

.landing-hero-card {
  min-height: 390px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(255, 244, 226, 0.42) 0%, rgba(255, 255, 255, 0.9) 60%, #f8fafc 100%);
}

.landing-orbit {
  display: none;
}

.landing-demo-panel {
  inset: auto 28px 28px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.landing-demo-list span {
  border-radius: 0;
  color: #4f463d;
  background: rgba(255, 255, 255, 0.62);
}

.landing-section {
  width: min(1120px, 100%);
  margin: 0px auto 0;
  padding: clamp(34px, 1vw, 70px) clamp(22px, 1vw, 64px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.28), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: none;
}

.landing-section h2 {
  color: #1d1d1f;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
}

.landing-section-head p,
.landing-about p,
.landing-app-card p,
.landing-app-card li,
.marketing-card p,
.review-note-grid p,
.studio-hero-card p,
.notice-card p,
.notice-intro-card p {
  color: #6e6258;
  font-weight: 600;
}

.landing-app-grid {
  gap: 16px;
}

.landing-app-card,
.marketing-card,
.review-note-grid article,
.studio-hero-card,
.notice-page .notice-section,
.notice-page .notice-card,
.notice-page .notice-intro-card,
.classcheck-legal-card {
  border: 1px solid rgba(120, 99, 76, 0.08);
  border-radius: 0;
  background: rgba(251, 251, 253, 0.72);
}

.landing-app-card.is-featured,
.landing-app-card.is-featured.classcheck-product-card,
.classcheck-product-card,
.classcheck-legal-section,
.studio-hero-card {
  background: rgba(255, 248, 238, 0.52);
}

.product-app-icon {
  box-shadow: none;
}

.marketing-feature-grid,
.review-note-grid,
.app-screenshot-grid {
  gap: 16px;
}

.marketing-card span {
  border-radius: 999px;
  background: #1d1d1f;
}

.app-hero-shot {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-hero-shot img {
  border-radius: 0;
}

.phone-shot {
  border: 0;
  background: #fff;
}

.phone-shot img {
  border-radius: 0;
  box-shadow: none;
}

.notice-page .notice-layout.landing-section {
  gap: 16px;
  padding: clamp(24px, 4vw, 44px);
}

.notice-page .notice-nav {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.notice-nav a {
  border-radius: 0;
}

.site-footer {
  width: min(1120px, 100%);
  border: 0;
  border-radius: 0;
  background: rgba(255, 249, 240, 0.42);
  box-shadow: none;
}

@media (min-width: 981px) {
  .landing-app-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
  }

  .app-screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .landing-body {
    background: #fff;
  }

  .landing-page {
    width: min(100%, 560px);
    padding: 0 0 28px;
  }

  .landing-nav {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
  }

  .landing-hero,
  .marketing-hero,
  .landing-section {
    width: 100%;
    margin-top: 10px;
    padding: 28px 18px;
  }

  .landing-page > .landing-hero .landing-hero-copy > h1,
  .landing-hero h1,
  .marketing-hero-copy h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
  }

  .landing-hero-card {
    display: none;
  }

  .landing-hero.is-slogan-hero {
    min-height: 220px;
  }

  .landing-hero.is-slogan-hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.04;
  }

  .landing-app-card,
  .marketing-card,
  .review-note-grid article,
  .studio-hero-card,
  .notice-page .notice-section,
  .notice-page .notice-card,
  .notice-page .notice-intro-card,
  .classcheck-legal-card {
    padding: 16px;
  }
}

/* Slogan hero interaction: soft AI-era glow without visual noise */
.landing-hero.is-slogan-hero {
  --slogan-x: 50%;
  --slogan-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.landing-hero.is-slogan-hero::before,
.landing-hero.is-slogan-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.landing-hero.is-slogan-hero::before {
  background: radial-gradient(circle at var(--slogan-x) var(--slogan-y), rgba(255, 183, 91, 0.28), rgba(255, 222, 173, 0.12) 22%, transparent 48%);
}

.landing-hero.is-slogan-hero::after {
  background: linear-gradient(115deg, transparent 0%, transparent 36%, rgba(255, 202, 125, 0.16) 46%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 202, 125, 0.12) 54%, transparent 64%, transparent 100%);
  transform: translateX(-38%);
}

.landing-hero.is-slogan-hero:hover::before,
.landing-hero.is-slogan-hero:focus-within::before {
  opacity: 1;
}

.landing-hero.is-slogan-hero:hover::after,
.landing-hero.is-slogan-hero:focus-within::after {
  opacity: 1;
  animation: slogan-sheen 1.45s ease both;
}

.landing-hero.is-slogan-hero h1 {
  position: relative;
  color: #1d1d1f;
  background: linear-gradient(105deg, #1d1d1f 0%, #1d1d1f 36%, #8a4b22 46%, #e08a2f 50%, #1d1d1f 62%, #1d1d1f 100%);
  background-size: 240% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: color 320ms ease, background-position 720ms ease, text-shadow 320ms ease;
}

.landing-hero.is-slogan-hero:hover h1,
.landing-hero.is-slogan-hero:focus-within h1 {
  color: transparent;
  background-position: 100% 50%;
  text-shadow: 0 18px 48px rgba(224, 138, 47, 0.1);
}

@keyframes slogan-sheen {
  from {
    transform: translateX(-44%);
  }
  to {
    transform: translateX(44%);
  }
}

@media (hover: none), (pointer: coarse) {
  .landing-hero.is-slogan-hero::before,
  .landing-hero.is-slogan-hero::after {
    display: none;
  }

  .landing-hero.is-slogan-hero h1 {
    animation: slogan-mobile-settle 700ms ease both;
  }
}

@keyframes slogan-mobile-settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero.is-slogan-hero::before,
  .landing-hero.is-slogan-hero::after,
  .landing-hero.is-slogan-hero h1 {
    animation: none !important;
    transition: none !important;
  }
}

/* Homepage about block: keep title and copy stacked for a calmer hierarchy */
.landing-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.landing-about > div,
.landing-about p {
  max-width: 960px;
}

.landing-about h2 {
  max-width: none;
  white-space: normal;
}

@media (min-width: 920px) {
  .landing-about h2 {
    white-space: nowrap;
  }
}

/* Selected slogan effect 06: text spotlight, compact single-line title */
.landing-hero.is-slogan-hero::after {
  display: none;
}

.landing-hero.is-slogan-hero::before {
  background: radial-gradient(circle at var(--slogan-x) var(--slogan-y), rgba(255, 183, 91, 0.2), rgba(255, 229, 188, 0.08) 20%, transparent 42%);
}

.landing-hero.is-slogan-hero:hover::after,
.landing-hero.is-slogan-hero:focus-within::after {
  animation: none;
}

.landing-hero.is-slogan-hero h1,
.landing-hero.is-slogan-hero:hover h1,
.landing-hero.is-slogan-hero:focus-within h1 {
  max-width: none;
  color: transparent;
  white-space: nowrap;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  background: radial-gradient(circle at var(--slogan-x) var(--slogan-y), #d97706 0 8%, #1d1d1f 30%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

@media (max-width: 760px) {
  .landing-hero.is-slogan-hero h1,
  .landing-hero.is-slogan-hero:hover h1,
  .landing-hero.is-slogan-hero:focus-within h1 {
    white-space: nowrap;
    font-size: clamp(21px, 5.8vw, 36px);
    letter-spacing: -0.045em;
  }
}

/* Homepage product cards: align content rhythm across cards */
.landing-page > #apps .product-card {
  display: grid;
  grid-template-rows: 72px auto minmax(120px, auto) 1fr auto;
  align-content: stretch;
  padding: clamp(28px, 3vw, 42px);
}

.landing-page > #apps .product-card-head {
  min-height: 72px;
  align-items: start;
}

.landing-page > #apps .product-card-head .landing-card-tag {
  align-self: start;
}

.landing-page > #apps .product-card-head small {
  padding-top: 8px;
}

.landing-page > #apps .product-card h3 {
  margin: 18px 0 0;
  min-height: 1.2em;
}

.landing-page > #apps .product-card p {
  margin: 24px 0 0;
}

.landing-page > #apps .product-card ul {
  margin: 18px 0 0;
}

.landing-page > #apps .product-card > a {
  align-self: start;
  margin-top: 24px;
}

@media (max-width: 920px) {
  .landing-page > #apps .product-card {
    grid-template-rows: auto;
  }

  .landing-page > #apps .product-card-head {
    min-height: 0;
  }
}
