/* 课堂卡片学生端：所有样式使用 ccs- 命名空间，避免影响既有学生页面。 */

.classroom-cards-page,
.classroom-cards-embedded,
.classroom-cards-page *,
.classroom-cards-embedded *,
.classroom-cards-page *::before,
.classroom-cards-embedded *::before,
.classroom-cards-page *::after,
.classroom-cards-embedded *::after {
  box-sizing: border-box;
}

.classroom-cards-page {
  padding: 0;
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 50% -20%, rgba(108, 92, 231, 0.24), transparent 42%),
    var(--bg, #0f0f1a);
}

.classroom-cards-page button:focus-visible {
  outline: 3px solid rgba(162, 155, 254, 0.58);
  outline-offset: 3px;
}

.ccs-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px
    calc(28px + env(safe-area-inset-bottom, 0px));
}

.ccs-shell.ccs-shell-embedded {
  width: 100%;
  min-height: 0;
  padding: 18px 16px 32px;
}

.test-env .classroom-cards-page .ccs-shell {
  padding-top: calc(58px + env(safe-area-inset-top, 0px));
}

.ccs-header {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ccs-back {
  justify-self: start;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--muted, #8888aa);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ccs-heading {
  min-width: 160px;
  text-align: center;
}

.ccs-title {
  color: var(--text, #e8e8f0);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ccs-subtitle {
  margin-top: 3px;
  color: var(--muted, #8888aa);
  font-size: 11px;
  line-height: 1.35;
}

.ccs-sync {
  min-height: 30px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 6px 11px;
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 999px;
  background: rgba(0, 184, 148, 0.08);
  color: #8ff0d3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.ccs-sync.is-syncing {
  border-color: rgba(116, 185, 255, 0.36);
  background: rgba(116, 185, 255, 0.1);
  color: #b9dcff;
}

.ccs-sync.is-local {
  border-color: rgba(253, 203, 110, 0.4);
  background: rgba(253, 203, 110, 0.1);
  color: #ffe39a;
}

.ccs-sync.is-paused {
  border-color: rgba(253, 203, 110, 0.4);
  background: rgba(253, 203, 110, 0.1);
  color: #ffe39a;
}

.ccs-sync.is-conflict {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.11);
  color: #ffc2c2;
}

.ccs-body {
  width: 100%;
}

.ccs-panel,
.ccs-review {
  width: 100%;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--border, #2d2d5a);
  border-radius: 18px;
  background: rgba(34, 34, 64, 0.96);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
}

.ccs-panel-title {
  margin: 0;
  color: var(--text, #e8e8f0);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}

.ccs-muted {
  margin: 9px 0 0;
  color: var(--muted, #8888aa);
  font-size: 13px;
  line-height: 1.7;
}

.ccs-access-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 15px;
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 14px;
  background: rgba(0, 184, 148, 0.08);
}

.ccs-access-notice.is-locked {
  border-color: rgba(253, 203, 110, 0.34);
  background: rgba(253, 203, 110, 0.08);
}

.ccs-access-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 184, 148, 0.45);
  border-radius: 50%;
  color: #83e7ca;
  font-size: 15px;
  font-weight: 900;
}

.ccs-access-notice.is-locked .ccs-access-icon {
  border-color: rgba(253, 203, 110, 0.42);
  color: #ffe39a;
}

.ccs-access-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ccs-access-copy strong {
  color: var(--text, #e8e8f0);
  font-size: 14px;
  line-height: 1.4;
}

.ccs-access-copy .ccs-muted {
  margin: 0;
}

.ccs-access-countdown {
  color: #83e7ca;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.ccs-summary-hero .ccs-panel-title {
  text-align: center;
}

.ccs-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.ccs-metric {
  min-width: 0;
  padding: 11px 5px;
  border: 1px solid rgba(162, 155, 254, 0.15);
  border-radius: 12px;
  background: rgba(15, 15, 26, 0.34);
  text-align: center;
}

.ccs-metric strong,
.ccs-metric span {
  display: block;
}

.ccs-metric strong {
  color: var(--accent-light, #a29bfe);
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ccs-metric span {
  margin-top: 2px;
  color: var(--muted, #8888aa);
  font-size: 11px;
}

.ccs-deck-list {
  display: grid;
  gap: 12px;
}

.ccs-library {
  margin-top: 18px;
}

.ccs-library-group {
  margin: 10px 0;
  border: 1px solid rgba(162, 155, 254, 0.22);
  border-radius: 14px;
  background: var(--panel, #16162a);
  overflow: hidden;
}

.ccs-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.ccs-library-heading::-webkit-details-marker {
  display: none;
}

.ccs-library-heading::after {
  content: '+';
  flex: 0 0 auto;
  color: #c5bfff;
  font-size: 22px;
}

.ccs-library-group[open] > .ccs-library-heading::after {
  content: '−';
}

.ccs-library-heading:focus-visible,
.ccs-library-back:focus-visible {
  outline: 3px solid #a29bfe;
  outline-offset: -3px;
}

.ccs-library-label {
  display: grid;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ccs-library-label strong {
  color: var(--text, #e8e8f0);
  font-size: 16px;
}

.ccs-library-label small {
  color: #b8b8d4;
  font-size: 12px;
  line-height: 1.5;
}

.ccs-library-content {
  padding: 0 10px 10px;
}

.ccs-library-content > button {
  margin-top: 10px;
}

.ccs-library-content > button[hidden] {
  display: none;
}

.ccs-today-entry,
.ccs-resume-entry {
  border-color: rgba(0, 184, 148, 0.3);
}

.ccs-library-back {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid rgba(162, 155, 254, 0.25);
  border-radius: 9px;
  background: transparent;
  color: #c5bfff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ccs-library-back:disabled {
  opacity: 0.45;
  cursor: default;
}

.ccs-deck {
  margin: 0;
}

.ccs-deck-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ccs-deck-title-box {
  min-width: 0;
}

.ccs-deck-title {
  overflow-wrap: anywhere;
  color: var(--text, #e8e8f0);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.ccs-deck-progress {
  margin-top: 4px;
  color: var(--muted, #8888aa);
  font-size: 12px;
}

.ccs-deck-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 999px;
  background: rgba(0, 184, 148, 0.08);
  color: #8ff0d3;
  font-size: 11px;
  font-weight: 800;
}

.ccs-deck-status.is-paused {
  border-color: rgba(253, 203, 110, 0.35);
  background: rgba(253, 203, 110, 0.1);
  color: #ffe39a;
}

.ccs-deck-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.ccs-deck-counts span {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted, #8888aa);
  font-size: 12px;
}

.ccs-live-check-entry {
  border-color: rgba(0, 184, 148, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 184, 148, 0.1), transparent 55%),
    var(--panel, #16162a);
}

.ccs-live-check-title,
.ccs-live-check-kicker {
  color: #8ff0d3;
  font-size: 12px;
  font-weight: 900;
}

.ccs-live-check {
  display: grid;
  gap: 14px;
}

.ccs-live-check-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ccs-live-check-progress span {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 184, 148, 0.09);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
}

.ccs-live-check-question {
  padding: 16px;
  border: 1px solid rgba(162, 155, 254, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #e8e8f0);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ccs-live-check-options {
  display: grid;
  gap: 10px;
}

.ccs-live-check-option {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(162, 155, 254, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text, #e8e8f0);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.ccs-live-check-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ccs-live-check-result {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 184, 148, 0.1);
  color: #a7f3d0;
  font-weight: 850;
}

.ccs-live-check-result.is-wrong {
  background: rgba(253, 203, 110, 0.12);
  color: #ffe39a;
}

.ccs-live-check-answer {
  margin-top: 6px;
  color: var(--text, #e8e8f0);
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ccs-button,
.ccs-primary,
.ccs-secondary,
.ccs-reveal,
.ccs-rating {
  min-height: 46px;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.ccs-primary,
.ccs-secondary,
.ccs-reveal {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 850;
}

.ccs-primary,
.ccs-reveal {
  border: 0;
  background: linear-gradient(135deg, var(--accent, #6c5ce7), #8275ef);
  color: #fff;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.22);
}

.ccs-secondary {
  margin-top: 9px;
  border: 1px solid var(--border, #2d2d5a);
  background: transparent;
  color: var(--muted, #8888aa);
}

.ccs-primary:disabled,
.ccs-secondary:disabled,
.ccs-reveal:disabled,
.ccs-rating:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  box-shadow: none;
}

.ccs-primary:not(:disabled):active,
.ccs-secondary:not(:disabled):active,
.ccs-reveal:not(:disabled):active,
.ccs-rating:not(:disabled):active {
  transform: translateY(1px);
}

.ccs-review {
  margin: 0;
  padding: 14px;
}

.ccs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 2px 8px;
}

.ccs-card-kind {
  font-size: 12px;
  font-weight: 800;
}

.ccs-card-kind {
  padding: 4px 8px;
  border-radius: 999px;
}

.ccs-card-kind.is-new {
  background: rgba(116, 185, 255, 0.12);
  color: #a9d5ff;
}

.ccs-card-kind.is-due {
  background: rgba(253, 203, 110, 0.12);
  color: #ffe093;
}

.ccs-card-progress {
  color: var(--text, #eeeef8);
  font-size: 15px;
  font-weight: 800;
}

.ccs-group-progress {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(162, 155, 254, 0.25);
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.10);
  font-variant-numeric: tabular-nums;
}

.ccs-group-progress-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.ccs-group-remaining {
  color: #c5bfff;
  font-size: 17px;
}

.ccs-group-progress-bar {
  display: block;
  width: 100%;
  height: 7px;
  margin: 10px 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(162, 155, 254, 0.14);
  accent-color: #a29bfe;
}

.ccs-group-progress-bar::-webkit-progress-bar {
  background: rgba(162, 155, 254, 0.14);
  border-radius: 999px;
}

.ccs-group-progress-bar::-webkit-progress-value {
  background: #a29bfe;
  border-radius: 999px;
}

.ccs-group-progress-bar::-moz-progress-bar {
  background: #a29bfe;
  border-radius: 999px;
}

.ccs-group-progress-note {
  color: #b8b8d4;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ccs-current-deck {
  margin: 0 2px 12px;
  overflow: hidden;
  color: var(--muted, #8888aa);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccs-card-timing {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
  padding: 8px 10px;
  border: 1px solid rgba(116, 185, 255, 0.22);
  border-radius: 8px;
  background: rgba(116, 185, 255, 0.07);
}

.ccs-card-timing span {
  color: var(--muted, #8888aa);
  font-size: 12px;
  font-weight: 800;
}

.ccs-card-timing strong {
  color: #a9d5ff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ccs-card-timing small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted, #8888aa);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccs-card-timing.is-warning {
  border-color: rgba(253, 203, 110, 0.42);
  background: rgba(253, 203, 110, 0.1);
}

.ccs-card-timing.is-warning strong {
  color: #ffe093;
}

.ccs-card-timing.is-warning small {
  color: #f6d27d;
}

.ccs-card-face {
  min-height: clamp(250px, 48vh, 470px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 6vw, 42px) clamp(16px, 5vw, 38px);
  border: 1px solid rgba(162, 155, 254, 0.2);
  border-radius: 17px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(15, 15, 26, 0.54);
}

.ccs-source-label {
  align-self: center;
  max-width: 100%;
  margin: 0 0 8px;
  color: var(--muted, #8888aa);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.ccs-face-label {
  margin-bottom: 12px;
  color: var(--accent-light, #a29bfe);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
}

.ccs-card-html {
  overflow-wrap: anywhere;
  color: var(--text, #e8e8f0);
  font-size: clamp(18px, 5vw, 27px);
  line-height: 1.72;
  text-align: left;
  user-select: text;
  -webkit-user-select: text;
}

.ccs-card-html p,
.ccs-card-html div {
  margin: 0.28em 0;
}

.ccs-card-html ol,
.ccs-card-html ul {
  margin: 0.35em 0;
  padding-left: 1.45em;
}

.ccs-card-html li + li {
  margin-top: 0.18em;
}

.ccs-card-html strong,
.ccs-card-html b {
  color: #fff;
}

.ccs-answer-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 17px;
  color: #8ff0d3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ccs-answer-divider::before,
.ccs-answer-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(0, 184, 148, 0.26);
}

.ccs-card-back {
  color: #d9fff5;
}

.ccs-card-detail {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(162, 155, 254, 0.18);
}

.ccs-card-detail-label {
  margin-bottom: 5px;
  color: var(--muted, #8888aa);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.ccs-card-detail-body {
  color: var(--text, #e8e8f0);
  font-size: clamp(15px, 4.2vw, 20px);
}

.ccs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.ccs-card-tag {
  padding: 4px 8px;
  border: 1px solid rgba(162, 155, 254, 0.2);
  border-radius: 999px;
  color: var(--muted, #8888aa);
  font-size: 11px;
  line-height: 1.2;
}

.ccs-reveal {
  margin-top: 14px;
}

.ccs-assistance-open {
  width: 100%;
  color: #bfc5db;
}

.ccs-assistance {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(162, 155, 254, 0.22);
  border-radius: 14px;
  background: rgba(162, 155, 254, 0.06);
}

.ccs-assistance-title {
  margin: 0 0 10px;
  color: var(--text, #e8e8f0);
  font-size: 14px;
  font-weight: 850;
}

.ccs-assistance-options {
  display: grid;
  gap: 8px;
}

.ccs-assistance-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid rgba(162, 155, 254, 0.24);
  border-radius: 11px;
  background: rgba(15, 15, 26, 0.58);
  color: var(--text, #e8e8f0);
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}

.ccs-assistance-option.is-correct {
  border-color: rgba(0, 184, 148, 0.72);
  background: rgba(0, 184, 148, 0.15);
}

.ccs-assistance-option.is-wrong {
  border-color: rgba(255, 107, 107, 0.78);
  background: rgba(255, 107, 107, 0.14);
}

.ccs-assistance-option:disabled {
  cursor: default;
  opacity: 1;
}

.ccs-assistance-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: rgba(162, 155, 254, 0.15);
  color: #d9d5ff;
  font-size: 13px;
  font-weight: 900;
}

.ccs-assistance-answer {
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.45;
}

.ccs-assistance-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.ccs-assistance-feedback.is-correct {
  background: rgba(0, 184, 148, 0.15);
  color: #8ff0d3;
}

.ccs-assistance-feedback.is-wrong {
  background: rgba(255, 107, 107, 0.13);
  color: #ffc2c2;
}

.ccs-assistance-next {
  margin-top: 10px;
}

.ccs-speech-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 11px;
}

.ccs-speech-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(116, 185, 255, 0.34);
  border-radius: 999px;
  background: rgba(116, 185, 255, 0.1);
  color: #cfe7ff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
}

.ccs-speech-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.ccs-speech-icon {
  font-size: 11px;
  line-height: 1;
}

.ccs-speech-note {
  min-width: 0;
  color: var(--muted, #8888aa);
  font-size: 12px;
  line-height: 1.35;
}

.ccs-rating-hint,
.ccs-rating-title {
  margin: 10px 2px 0;
  color: var(--muted, #8888aa);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.ccs-rating-title {
  margin-top: 15px;
  color: var(--text, #e8e8f0);
  font-size: 13px;
  font-weight: 800;
}

.ccs-ratings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.ccs-rating {
  min-width: 0;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text, #e8e8f0);
}

.ccs-rating strong,
.ccs-rating span {
  display: block;
}

.ccs-rating strong {
  font-size: 14px;
  font-weight: 900;
}

.ccs-rating span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted, #8888aa);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccs-rating.is-again {
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(255, 107, 107, 0.1);
}

.ccs-rating.is-hard {
  border-color: rgba(253, 203, 110, 0.38);
  background: rgba(253, 203, 110, 0.09);
}

.ccs-rating.is-good {
  border-color: rgba(0, 184, 148, 0.38);
  background: rgba(0, 184, 148, 0.09);
}

.ccs-rating.is-easy {
  border-color: rgba(116, 185, 255, 0.38);
  background: rgba(116, 185, 255, 0.09);
}

.ccs-correction {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(162, 155, 254, 0.28);
  border-radius: 12px;
  background: rgba(162, 155, 254, 0.065);
  text-align: left;
}

.ccs-correction.is-unavailable {
  border-color: rgba(253, 203, 110, 0.32);
  background: rgba(253, 203, 110, 0.065);
}

.ccs-correction-heading {
  color: var(--text, #e8e8f0);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.ccs-correction-note,
.ccs-correction-question {
  margin: 5px 0 0;
  color: var(--muted, #8888aa);
  font-size: 12px;
  line-height: 1.55;
}

.ccs-correction-question {
  color: var(--text, #e8e8f0);
  font-weight: 750;
}

.ccs-correction-open,
.ccs-correction-cancel,
.ccs-correction-choice {
  min-height: 46px;
  border-radius: 11px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.ccs-correction-open {
  width: 100%;
  margin-top: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(162, 155, 254, 0.34);
  background: rgba(162, 155, 254, 0.1);
  color: #ddd9ff;
}

.ccs-correction-ratings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.ccs-correction-choice {
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid var(--border, #2d2d5a);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #e8e8f0);
  font-size: 12px;
}

.ccs-correction-choice.is-again {
  border-color: rgba(255, 107, 107, 0.38);
}

.ccs-correction-choice.is-hard {
  border-color: rgba(253, 203, 110, 0.38);
}

.ccs-correction-choice.is-good {
  border-color: rgba(0, 184, 148, 0.38);
}

.ccs-correction-choice.is-easy {
  border-color: rgba(116, 185, 255, 0.38);
}

.ccs-correction-choice[aria-current="true"] {
  border-style: dashed;
  opacity: 0.6;
}

.ccs-correction-cancel {
  width: 100%;
  margin-top: 7px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--muted, #8888aa);
}

.ccs-correction-open:disabled,
.ccs-correction-cancel:disabled,
.ccs-correction-choice:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ccs-loading,
.ccs-empty,
.ccs-complete,
.ccs-blocked {
  padding: 30px 22px;
  text-align: center;
}

.ccs-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  border: 3px solid rgba(162, 155, 254, 0.18);
  border-top-color: var(--accent-light, #a29bfe);
  border-radius: 50%;
  animation: ccs-spin 0.8s linear infinite;
}

.ccs-loading-text {
  color: var(--muted, #8888aa);
  font-size: 13px;
}

.ccs-empty-icon,
.ccs-complete-icon,
.ccs-blocked-icon {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1;
}

.ccs-complete .ccs-primary,
.ccs-blocked .ccs-primary,
.ccs-empty .ccs-primary {
  margin-top: 20px;
}

.ccs-blocked.is-conflict {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(55, 31, 43, 0.96);
}

.ccs-blocked.is-paused {
  border-color: rgba(253, 203, 110, 0.36);
  background: rgba(48, 42, 31, 0.96);
}

.ccs-incident {
  margin-top: 16px;
  padding: 9px 10px;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: var(--muted, #8888aa);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.ccs-inline-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.09);
  color: #ffc4c4;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.ccs-inline-warning {
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(253, 203, 110, 0.4);
  border-radius: 11px;
  background: rgba(253, 203, 110, 0.09);
  color: #ffe39a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  text-align: center;
}

@keyframes ccs-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .ccs-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ccs-header {
    grid-template-columns: 82px 1fr 82px;
  }

  .ccs-subtitle {
    display: none;
  }

  .ccs-panel,
  .ccs-review {
    border-radius: 15px;
  }

  .ccs-metrics {
    gap: 5px;
  }

  .ccs-metric {
    padding: 9px 3px;
  }

  .ccs-metric strong {
    font-size: 18px;
  }

  .ccs-card-face {
    min-height: clamp(245px, 47vh, 410px);
  }

  .ccs-card-timing {
    grid-template-columns: auto auto;
  }

  .ccs-card-timing small {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .ccs-speech-row {
    flex-wrap: wrap;
    gap: 7px;
  }

  .ccs-speech-note {
    flex-basis: 100%;
    text-align: center;
  }

  .ccs-ratings {
    gap: 5px;
  }

  .ccs-rating strong {
    font-size: 13px;
  }

  .ccs-rating span {
    font-size: 9px;
  }

  .ccs-correction {
    padding: 11px;
  }
}

@media (max-width: 360px) {
  .ccs-shell {
    padding-left: 9px;
    padding-right: 9px;
  }

  .ccs-header {
    grid-template-columns: 76px 1fr 76px;
  }

  .ccs-heading {
    min-width: 0;
  }

  .ccs-title {
    font-size: 17px;
  }

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

  .ccs-correction-ratings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccs-rating span {
    color: #b8b8d4;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccs-spinner {
    animation: none;
  }

  .ccs-primary,
  .ccs-secondary,
  .ccs-reveal,
  .ccs-rating,
  .ccs-correction-open,
  .ccs-correction-cancel,
  .ccs-correction-choice {
    transition: none;
  }
}
