:root {
  --parent-bg: #f4f6fb;
  --parent-card: #ffffff;
  --parent-text: #0f172a;
  --parent-muted: #64748b;
  --parent-border: #e2e8f0;
  --parent-accent: #2563eb;
  --parent-accent-soft: #dbeafe;
  --parent-success: #15803d;
  --parent-danger: #b91c1c;
}

.parent-page {
  background: var(--parent-bg);
  color: var(--parent-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  margin: 0;
}

.parent-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 60px;
}

.parent-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.parent-top-title h1 {
  margin: 0;
  font-size: 22px;
}
.parent-top-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--parent-muted);
}

.parent-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.parent-user {
  color: var(--parent-muted);
  font-size: 14px;
}

.parent-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 880px) {
  .parent-layout { grid-template-columns: 1fr; }
  .task-template-grid { grid-template-columns: 1fr; }
}

.parent-sidebar {
  background: var(--parent-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 16px;
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sidebar-head h2 {
  margin: 0;
  font-size: 16px;
}

.child-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.child-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: var(--parent-text);
  width: 100%;
  font-family: inherit;
}
.child-row:hover {
  background: var(--parent-accent-soft);
}
.child-row.active {
  background: var(--parent-accent);
  color: #fff;
}
.child-row .child-avatar {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  font-size: 18px;
  flex-shrink: 0;
}
.child-row.active .child-avatar {
  background: rgba(255,255,255,0.2);
}
.child-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.2;
}
.child-meta strong { font-size: 14px; }
.child-meta small {
  font-size: 11px;
  opacity: 0.8;
}

.sidebar-empty {
  color: var(--parent-muted);
  font-size: 13px;
}

.parent-main { min-width: 0; }

.parent-placeholder {
  padding: 48px 24px;
  text-align: center;
  color: var(--parent-muted);
  background: var(--parent-card);
  border-radius: 16px;
}

.parent-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--parent-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}
.card-head h3 {
  margin: 0;
  font-size: 16px;
}
.today-meta {
  color: var(--parent-muted);
  font-size: 13px;
}

.today-status {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--parent-border);
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--parent-muted);
}
.today-status.published {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: var(--parent-success);
}
.today-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.today-word-group {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.today-word-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--parent-muted);
  margin-right: 2px;
}
.today-words .word-chip {
  background: #f1f5f9;
  border: 1px solid var(--parent-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.today-words .review-chip {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}
.today-actions { margin-top: 12px; }

.today-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  margin: 8px 0 10px;
  font-size: 13px;
}
.today-progress .progress-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
}
.today-progress .progress-cell span {
  color: var(--parent-muted);
  font-size: 11px;
}
.today-progress .progress-cell strong { font-size: 18px; }
.today-progress .progress-bar {
  flex: 1 1 100%;
  height: 6px;
  background: #e0f2fe;
  border-radius: 999px;
  overflow: hidden;
}
.today-progress .progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  transition: width 200ms ease;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}
.history-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  font-size: 13px;
}
.history-list li.empty {
  color: var(--parent-muted);
  border-style: dashed;
  justify-content: center;
}
.history-list li .h-date {
  font-weight: 600;
  min-width: 96px;
  color: var(--parent-text);
}
.history-list li .h-meta {
  color: var(--parent-muted);
  flex: 1;
}
.history-list li .h-pill {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--parent-muted);
}
.history-list li.in-progress .h-pill {
  background: #fef3c7;
  color: #92400e;
}
.history-list li.finished .h-pill {
  background: #dcfce7;
  color: var(--parent-success);
}
.history-list li.abandoned .h-pill {
  background: #fee2e2;
  color: var(--parent-danger);
}

.review-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.review-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.review-tab {
  padding: 6px 12px;
  border: 1px solid var(--parent-border);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: var(--parent-muted);
  font-family: inherit;
}
.review-tab.active {
  background: var(--parent-accent);
  color: #fff;
  border-color: var(--parent-accent);
}

.wrong-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.wrong-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--parent-border);
  border-radius: 12px;
  background: #fff;
}
.wrong-list li.empty {
  grid-column: 1 / -1;
  border-style: dashed;
  color: var(--parent-muted);
  justify-content: center;
}
.wrong-list li .w-emoji {
  font-size: 22px;
  flex-shrink: 0;
}
.wrong-list li .w-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.wrong-list li .w-word {
  font-weight: 600;
  font-size: 15px;
}
.wrong-list li .w-hint {
  font-size: 12px;
  color: var(--parent-muted);
}
.wrong-list li .w-stats {
  font-size: 11px;
  color: var(--parent-muted);
}
.wrong-list li .w-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wrong-list li .w-actions button {
  border: 1px solid var(--parent-border);
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--parent-text);
  font-family: inherit;
}
.wrong-list li .w-actions button:hover {
  border-color: var(--parent-accent);
  color: var(--parent-accent);
}
.wrong-list li .w-headline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wrong-list li .w-stage-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.wrong-list li .w-stages {
  font-size: 11px;
  color: var(--parent-muted);
  background: #f8fafc;
  border-radius: 6px;
  padding: 2px 6px;
  margin-top: 2px;
}
.wrong-list li.mastered { background: #f0fdf4; }
.wrong-list li.due { border-color: #fbbf24; background: #fffbeb; }

.overview-card .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--parent-border);
}
.stat-tile.accent { background: linear-gradient(135deg, #dbeafe, #ede9fe); border-color: #c7d2fe; }
.stat-tile.success { background: #ecfdf5; border-color: #bbf7d0; }
.stat-tile.warn { background: #fffbeb; border-color: #fde68a; }
.stat-tile .stat-label {
  font-size: 11px;
  color: var(--parent-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-tile .stat-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.stat-tile .stat-hint {
  font-size: 12px;
  color: var(--parent-muted);
}

.trend-row, .top-wrong-row, .dashboard-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.trend-label {
  width: 100px;
  font-size: 12px;
  color: var(--parent-muted);
  flex-shrink: 0;
}
.trend-bars {
  display: flex;
  flex: 1;
  gap: 6px;
  align-items: flex-end;
  height: 56px;
  min-width: 220px;
}
.trend-bars .trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 24px;
}
.trend-bars .trend-bar .bar {
  width: 100%;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  border-radius: 4px 4px 2px 2px;
  min-height: 2px;
  transition: height 200ms ease;
}
.trend-bars .trend-bar.empty .bar {
  background: #e2e8f0;
  height: 4px !important;
}
.trend-bars .trend-bar.today .bar {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}
.trend-bars .trend-bar .day-label {
  font-size: 10px;
  color: var(--parent-muted);
}

.top-wrong-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.top-wrong-chips .twrong-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 13px;
  color: #92400e;
}
.top-wrong-chips .twrong-chip small {
  color: #b45309;
  font-size: 11px;
}
.top-wrong-chips .empty {
  color: var(--parent-muted);
  font-size: 13px;
}

.stage-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  flex: 1;
  min-width: 240px;
}
.stage-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--parent-border);
  border-radius: 8px;
  background: #f8fafc;
}
.stage-chip.active {
  background: #fff7ed;
  border-color: #fed7aa;
}
.stage-chip strong {
  font-size: 13px;
  color: var(--parent-text);
}
.stage-chip small {
  font-size: 12px;
  color: var(--parent-muted);
}
.tomorrow-suggestion {
  flex: 1;
  min-width: 240px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tomorrow-suggestion strong {
  font-size: 14px;
  color: #1e3a8a;
}
.tomorrow-suggestion small {
  font-size: 12px;
  color: #475569;
}

.pick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.pick-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--parent-muted);
  min-width: 160px;
  flex: 1 1 160px;
}
.pick-filters select,
.pick-filters input {
  padding: 8px 10px;
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  width: 100%;
}
.pick-hint {
  font-size: 13px;
  color: var(--parent-muted);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.word-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--parent-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  font-family: inherit;
  color: var(--parent-text);
  min-height: 48px;
}
.word-tile:hover {
  border-color: var(--parent-accent);
  background: var(--parent-accent-soft);
}
.word-tile.selected {
  background: var(--parent-accent);
  color: #fff;
  border-color: var(--parent-accent);
}
.word-tile .tile-emoji {
  font-size: 20px;
  flex-shrink: 0;
}
.word-tile .tile-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.word-tile .tile-text strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.word-tile .tile-text small {
  font-size: 11px;
  opacity: 0.85;
}

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed var(--parent-border);
  margin-bottom: 12px;
}
.selected-chips:empty::before {
  content: "暂未选择任何单词";
  color: var(--parent-muted);
  font-size: 13px;
}
.chip {
  background: #fff;
  border: 1px solid var(--parent-accent);
  color: var(--parent-accent);
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip button {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.chip--leveled {
  padding: 4px 6px 4px 10px;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
}
.chip--leveled .chip-word {
  font-weight: 600;
}
.chip-levels {
  display: inline-flex;
  gap: 2px;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px;
}
.chip-level {
  border: none;
  background: transparent;
  color: var(--parent-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.chip-level:hover {
  color: var(--parent-text);
}
.chip-level.active {
  background: var(--parent-accent);
  color: #fff;
}
.chip-remove {
  font-size: 16px;
  color: var(--parent-muted);
  padding: 0 4px;
}
.chip-remove:hover {
  color: var(--parent-danger);
}

.word-levels-batch {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--parent-border);
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wl-batch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}
.wl-batch-label {
  color: var(--parent-muted);
}
.wl-summary {
  color: var(--parent-text);
  font-size: 13px;
}
.wl-summary strong {
  font-size: 16px;
  color: var(--parent-accent);
  margin: 0 2px;
}
.wl-batch-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wl-batch-btn {
  border: 1px solid var(--parent-border);
  background: #fff;
  color: var(--parent-text);
  font-family: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.wl-batch-btn:hover {
  border-color: var(--parent-accent);
  color: var(--parent-accent);
}

.task-wizard {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--parent-border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.task-wizard-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.task-wizard-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--parent-text);
}
.task-wizard-meta {
  font-size: 12px;
  color: var(--parent-muted);
}
.task-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.task-template-btn {
  min-height: 58px;
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--parent-text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.task-template-btn:hover {
  border-color: var(--parent-accent);
  background: var(--parent-accent-soft);
}
.task-template-btn strong {
  font-size: 14px;
}
.task-template-btn span {
  font-size: 12px;
  color: var(--parent-muted);
}
.assignment-estimate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--parent-muted);
  font-size: 12px;
}
.assignment-estimate span {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px 8px;
}
.assignment-estimate strong {
  color: var(--parent-accent);
}

.review-join {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
}
.review-join[hidden] {
  display: none;
}
.review-join div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.review-join strong {
  font-size: 13px;
  color: #92400e;
}
.review-join span {
  font-size: 12px;
  color: #a16207;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-join .btn.active {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

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

.publish-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.publish-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  font-size: 12px;
  color: var(--parent-muted);
}
.publish-title input {
  padding: 8px 10px;
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  font-size: 14px;
}
.publish-feedback {
  margin: 8px 0 0;
  font-size: 13px;
  min-height: 18px;
}
.publish-feedback.ok { color: var(--parent-success); }
.publish-feedback.err { color: var(--parent-danger); }

.mode-plan-editor {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  background: #f8fafc;
}
.mode-plan-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--parent-muted);
  margin-bottom: 8px;
}
.stage-plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--parent-text);
  cursor: pointer;
}
.stage-plan-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--parent-accent);
}
.stage-plan-editor {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}
.stage-plan-hint {
  font-size: 12px;
  color: var(--parent-muted);
}
.stage-plan-sum--mismatch {
  color: var(--parent-danger);
}
.stage-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.stage-plan-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--parent-border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: var(--parent-text);
}
.stage-plan-grid input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--parent-border);
  border-radius: 6px;
  font-size: 14px;
}
.stage-plan-note {
  margin: 0;
  font-size: 11px;
  color: var(--parent-muted);
}
.mode-plan-list {
  display: grid;
  gap: 6px;
}
.mode-plan-item {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--parent-border);
  border-radius: 8px;
  background: #fff;
}
.mode-order {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--parent-accent-soft);
  color: var(--parent-accent);
  font-size: 12px;
  font-weight: 700;
}
.mode-name {
  font-size: 13px;
  font-weight: 600;
}
.mode-weight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--parent-muted);
}
.mode-weight input {
  width: 56px;
  border: 1px solid var(--parent-border);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 12px;
}
.mode-actions {
  display: flex;
  gap: 4px;
}
.mode-actions button {
  border: 1px solid var(--parent-border);
  border-radius: 999px;
  background: #fff;
  color: var(--parent-text);
  font-size: 12px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
}
.mode-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn {
  border: none;
  background: var(--parent-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--parent-accent);
  border: 1px solid var(--parent-accent);
}
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.primary { background: var(--parent-accent); }

.dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(420px, 90vw);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.dialog::backdrop { background: rgba(15, 23, 42, 0.5); }
.dialog-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dialog-form h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.dialog-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--parent-muted);
}
.dialog-form input {
  padding: 8px 10px;
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  font-size: 14px;
}
.dialog-feedback {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--parent-danger);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.session-detail-form {
  width: min(520px, 90vw);
}
.session-mode-stats {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.session-mode-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #f8fafc;
}
.session-mode-row .name {
  font-size: 13px;
  font-weight: 600;
}
.session-mode-row .ratio,
.session-mode-row .acc {
  font-size: 12px;
  color: var(--parent-muted);
}

.session-error-head {
  margin-top: 12px;
  font-size: 13px;
  color: var(--parent-muted);
}
.session-error-stats {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.session-error-card {
  border: 1px solid var(--parent-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.session-error-card .title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.session-error-card .line {
  font-size: 12px;
  color: var(--parent-muted);
  line-height: 1.4;
}
