@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg: #eff6ff;
  --bg-deep: #d7e8ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(29, 83, 167, 0.12);
  --text: #103257;
  --muted: #5d7798;
  --accent: #1d6fff;
  --accent-strong: #0f55d8;
  --accent-soft: #e9f2ff;
  --accent-soft-2: #d9e8ff;
  --success: #0fa968;
  --warning: #ff9c2b;
  --danger: #f05d5e;
  --shadow: 0 30px 80px rgba(15, 61, 138, 0.16);
  --shadow-soft: 0 16px 36px rgba(22, 72, 145, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(29, 111, 255, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(112, 182, 255, 0.28), transparent 26%),
    linear-gradient(160deg, #f7fbff 0%, var(--bg) 48%, #e5f0ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  animation: drift 16s ease-in-out infinite;
}

body::before {
  width: 280px;
  height: 280px;
  top: 72px;
  right: -40px;
  background: rgba(50, 130, 255, 0.18);
}

body::after {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: 64px;
  background: rgba(127, 194, 255, 0.18);
  animation-delay: -6s;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  align-items: center;
}

.dashboard-shell {
  padding-top: 24px;
}

.topbar,
.card-surface,
.glass-card,
.auth-panel,
.hero-panel,
.section-block {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel,
.auth-panel,
.profile-hero,
.section-block {
  border-radius: var(--radius-xl);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  min-height: 680px;
  display: grid;
  align-content: space-between;
}

.hero-panel--login {
  gap: 24px;
  background:
    radial-gradient(circle at right bottom, rgba(29, 111, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92));
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(29, 111, 255, 0.12), rgba(29, 111, 255, 0.02));
}

.brand-mark,
.brand-inline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-orb {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, #8ec3ff 0%, #3b85ff 42%, #1153d6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 18px 32px rgba(17, 83, 214, 0.28);
}

.brand-orb.compact {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.brand-mark--login {
  align-items: flex-start;
  gap: 18px;
}

.hero-copy-block {
  display: grid;
  gap: 8px;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero-panel h1,
.topbar h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 9ch;
}

.topbar h1 {
  font-size: clamp(24px, 4vw, 38px);
  max-width: none;
}

.hero-copy,
.panel-copy,
.section-note,
.meta-note,
.feedback,
.empty-state p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 46ch;
  font-size: 17px;
}

.hero-copy.compact {
  max-width: 56ch;
}

.showcase-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29, 111, 255, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(29, 111, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

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

.showcase-steps {
  display: grid;
  gap: 14px;
}

.showcase-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 111, 255, 0.1);
}

.showcase-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 111, 255, 0.14), rgba(29, 111, 255, 0.04));
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.showcase-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.showcase-step p {
  color: var(--muted);
  line-height: 1.6;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preview-grid--login {
  align-self: end;
}

.preview-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 111, 255, 0.14);
  box-shadow: var(--shadow-soft);
}

.preview-card strong,
.meta-card strong,
.stat-card strong,
.info-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.preview-card span,
.meta-card span,
.metric-block span,
.card-meta span,
.status-chip {
  color: var(--muted);
  font-size: 13px;
}

.signal-panel {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 83, 214, 0.1), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(17, 83, 214, 0.12);
}

.signal-panel > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.signal-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(29, 111, 255, 0.14);
}

.auth-panel {
  padding: 34px;
}

.auth-panel--login {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 680px;
}

.panel-head {
  margin-bottom: 20px;
}

.panel-head--login {
  margin-bottom: 0;
}

.panel-head h2 {
  font-size: 36px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.auth-banner {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29, 111, 255, 0.09), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(29, 111, 255, 0.12);
}

.auth-banner strong {
  font-size: 16px;
}

.auth-banner span {
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(29, 111, 255, 0.14);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8ba3bf;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(29, 111, 255, 0.38);
  box-shadow: 0 0 0 5px rgba(29, 111, 255, 0.12);
  transform: translateY(-1px);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button,
.secondary-button {
  padding: 15px 20px;
  font-weight: 800;
}

.primary-button {
  margin-top: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 20px 32px rgba(29, 111, 255, 0.26);
}

.primary-button--wide {
  width: 100%;
}

.secondary-button {
  color: var(--accent);
  background: rgba(29, 111, 255, 0.1);
  border: 1px solid rgba(29, 111, 255, 0.16);
}

.ghost-button {
  padding: 14px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(29, 111, 255, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button[disabled],
.secondary-button[disabled] {
  cursor: wait;
  opacity: 0.78;
}

.button-loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  display: none;
  animation: spin 0.9s linear infinite;
}

.primary-button.is-loading .button-loader {
  display: inline-block;
}

.primary-button.is-loading .button-text {
  opacity: 0.86;
}

.feedback {
  min-height: 26px;
  margin-top: 16px;
}

.feedback.is-error {
  color: #c83f50;
}

.feedback.is-success {
  color: var(--success);
}

.meta-note {
  min-height: 22px;
  margin-top: 8px;
  font-size: 14px;
}

.auth-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-layout {
  display: grid;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

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

.meta-card,
.stat-card,
.ecard-card,
.assignment-card {
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid rgba(29, 111, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.meta-card,
.stat-card {
  padding: 18px;
}

.meta-card span,
.stat-card span {
  display: block;
  margin-bottom: 10px;
}

.section-block {
  padding: 24px;
}

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

.section-head h3 {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.ecard-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ecard-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.ecard-card .card-topline,
.assignment-card .card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ecard-card h4,
.assignment-card h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

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

.loading-board {
  min-height: 200px;
}

.skeleton-grid,
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.assignment-skeleton {
  min-height: 220px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(226, 237, 255, 0.72) 0%, rgba(244, 248, 255, 1) 50%, rgba(226, 237, 255, 0.72) 100%);
  background-size: 240% 100%;
  animation: shimmer 1.35s linear infinite;
}

.assignment-card {
  padding: 18px;
  display: grid;
  gap: 16px;
  animation: fadeUp 0.45s ease forwards;
  cursor: pointer;
}

.assignment-card.is-pending {
  border-color: rgba(29, 111, 255, 0.16);
}

.assignment-card.is-done {
  border-color: rgba(15, 169, 104, 0.16);
}

.assignment-card.is-expired {
  border-color: rgba(240, 93, 94, 0.16);
}

.assignment-card .title-stack {
  display: grid;
  gap: 8px;
}

.assignment-card .subtitle {
  color: var(--muted);
  line-height: 1.55;
  min-height: 42px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f8ff;
  border: 1px solid rgba(29, 111, 255, 0.1);
  color: var(--text);
  font-weight: 700;
}

.status-chip.is-done {
  background: rgba(15, 169, 104, 0.1);
  color: #0e8758;
}

.status-chip.is-pending {
  background: rgba(29, 111, 255, 0.1);
  color: var(--accent-strong);
}

.status-chip.is-expired {
  background: rgba(240, 93, 94, 0.12);
  color: #c14949;
}

.status-chip.is-retry {
  background: rgba(255, 156, 43, 0.14);
  color: #d97800;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-block {
  padding: 14px;
  border-radius: var(--radius-md);
  background: #f7fbff;
  border: 1px solid rgba(29, 111, 255, 0.08);
}

.metric-block strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.resource-stack {
  display: grid;
  gap: 16px;
}

.modal-open {
  overflow: hidden;
}

.answer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.answer-modal[hidden] {
  display: none;
}

.answer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 29, 61, 0.48);
  backdrop-filter: blur(10px);
  animation: fadeIn 180ms ease forwards;
}

.answer-modal__dialog {
  position: relative;
  width: min(1120px, 100%);
  height: min(920px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  animation: modalRise 220ms ease forwards;
}

.answer-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(29, 111, 255, 0.08);
}

.answer-modal__close {
  flex: 0 0 auto;
}

.answer-modal__summary,
.answer-modal__note {
  margin: 0 24px;
}

.answer-modal__tabs {
  display: flex;
  gap: 10px;
  padding: 0 24px 4px;
}

.answer-modal__tab {
  padding: 12px 16px;
  border: 1px solid rgba(29, 111, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.answer-modal__tab:hover {
  transform: translateY(-1px);
}

.answer-modal__tab.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 14px 28px rgba(29, 111, 255, 0.22);
}

.answer-modal__panel {
  grid-row: 3;
  min-height: 0;
}

.answer-modal__panel[hidden] {
  display: none !important;
}

#answer-tab-panel {
  display: grid;
  grid-template-rows: auto auto auto;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  min-height: 0;
  max-height: 100%;
}

#voice-upload-tab-panel {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 0 24px;
  scrollbar-gutter: stable both-edges;
}

.answer-modal__dialog.is-voice-mode #answer-tab-panel {
  display: none !important;
}

.answer-modal__dialog.is-answer-mode #voice-upload-tab-panel {
  display: none !important;
}

.answer-modal__summary {
  margin-top: 18px;
}

.answer-modal__note {
  padding: 16px 2px 8px;
}

.answer-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 8px;
}

.answer-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(29, 111, 255, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.answer-filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(29, 111, 255, 0.12);
}

.answer-filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, #5ea1ff 0%, #1d6fff 100%);
  border-color: transparent;
}

.answer-modal__body {
  min-height: 0;
  overflow: visible;
  padding: 10px 24px 24px;
  grid-template-columns: 1fr;
  align-content: start;
}

.answer-modal__body.big-question-grid {
  grid-template-columns: 1fr;
}

#answer-tab-panel::-webkit-scrollbar,
#voice-upload-tab-panel::-webkit-scrollbar,
.voice-upload-log::-webkit-scrollbar {
  width: 10px;
}

#answer-tab-panel::-webkit-scrollbar-thumb,
#voice-upload-tab-panel::-webkit-scrollbar-thumb,
.voice-upload-log::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(29, 111, 255, 0.18);
}

.modal-skeleton-grid {
  display: grid;
  gap: 14px;
}

.modal-skeleton {
  min-height: 260px;
}

.voice-upload-card {
  margin: 0 24px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid rgba(29, 111, 255, 0.1);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
}

.voice-upload-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.voice-upload-card__head h4 {
  margin: 0;
  font-size: 24px;
}

.voice-upload-actions,
.voice-enroll-controls,
.voice-enroll-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.voice-upload-progress {
  display: grid;
  gap: 10px;
}

.voice-target-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #f7fbff;
  border: 1px solid rgba(29, 111, 255, 0.08);
}

.voice-queue-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(29, 111, 255, 0.07), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(29, 111, 255, 0.1);
}

.voice-queue-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-queue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.voice-queue-metric {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 111, 255, 0.08);
}

.voice-queue-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.voice-queue-metric strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.voice-target-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-target-card__head strong {
  color: var(--text);
}

.voice-target-card__range {
  width: 100%;
  accent-color: var(--accent);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.voice-upload-progress__bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(29, 111, 255, 0.1);
  overflow: hidden;
}

.voice-upload-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #5ea1ff 0%, #1d6fff 100%);
  transition: width 240ms ease;
}

.voice-upload-log {
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.voice-upload-log__item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f7fbff;
  border: 1px solid rgba(29, 111, 255, 0.08);
}

.voice-upload-log__item strong {
  display: block;
  margin-bottom: 6px;
}

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

.voice-upload-log__score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.voice-upload-log__score span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 111, 255, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.voice-upload-log__item.is-failed {
  border-color: rgba(240, 93, 94, 0.16);
  background: rgba(240, 93, 94, 0.08);
}

.voice-upload-log__item.is-completed {
  border-color: rgba(15, 169, 104, 0.16);
  background: rgba(15, 169, 104, 0.08);
}

@media (max-width: 980px) {
  .voice-queue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.voice-enroll-modal .answer-modal__dialog,
.voice-enroll-modal {
  max-width: 760px;
}

.voice-enroll-modal__content {
  display: grid;
  gap: 18px;
  padding: 8px 24px 24px;
}

.voice-enroll-prompt {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29, 111, 255, 0.08), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(29, 111, 255, 0.08);
}

.voice-enroll-prompt blockquote {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.7;
  font-weight: 700;
}

.voice-enroll-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.recording-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.recording-indicator.idle {
  background: rgba(29, 111, 255, 0.1);
  color: var(--accent-strong);
}

.recording-indicator.live {
  background: rgba(240, 93, 94, 0.12);
  color: #c14949;
}

.recording-indicator.done {
  background: rgba(15, 169, 104, 0.1);
  color: #0e8758;
}

.recording-indicator.blocked {
  background: rgba(255, 156, 43, 0.14);
  color: #d97800;
}

.resource-summary,
.big-question-card {
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid rgba(29, 111, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.resource-summary,
.big-question-card {
  padding: 18px;
}

.big-question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

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

.assignment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(22, 72, 145, 0.12);
}

.assignment-card.is-active {
  border-color: rgba(29, 111, 255, 0.36);
  box-shadow: 0 18px 40px rgba(29, 111, 255, 0.16);
}

.resource-summary h4,
.big-question-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.paper-card {
  overflow: hidden;
  padding: 0;
  min-width: 0;
}

.paper-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(29, 111, 255, 0.12), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(29, 111, 255, 0.1);
}

.paper-card-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.part-section {
  min-height: 100%;
}

.part-section__head {
  min-height: 132px;
}

.part-section__title {
  display: grid;
  gap: 6px;
}

.part-section__body {
  align-content: start;
}

.part-section__block {
  display: grid;
  gap: 10px;
}

.part-lead {
  display: grid;
  gap: 10px;
}

.part-lead__label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 111, 255, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.paper-part {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.paper-header-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.paper-type-tag,
.paper-order-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.paper-type-tag {
  background: rgba(29, 111, 255, 0.12);
  color: var(--accent-strong);
}

.paper-order-tag {
  background: rgba(16, 50, 87, 0.08);
  color: var(--text);
}

.paper-intro {
  display: grid;
  gap: 10px;
}

.paper-subtitle {
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 700;
}

.paper-block h5,
.question-list h5,
.answer-list h5 {
  color: var(--accent-strong);
}

.resource-summary p,
.big-question-card p {
  color: var(--muted);
}

.detail-block {
  display: grid;
  gap: 8px;
}

.detail-block h5 {
  margin: 0;
  font-size: 16px;
}

.detail-text {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f7fbff;
  border: 1px solid rgba(29, 111, 255, 0.08);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.65;
}

.detail-text--lead {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(232, 241, 255, 0.88));
  border-color: rgba(29, 111, 255, 0.14);
  font-size: 14px;
}

.detail-text--light {
  background: #f8fbff;
}

.detail-text--accent {
  background: rgba(29, 111, 255, 0.06);
  border-color: rgba(29, 111, 255, 0.14);
}

.answer-list,
.question-list,
.nested-answer-list {
  display: grid;
  gap: 12px;
}

.answer-card,
.question-card,
.nested-answer-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f7fbff;
  border: 1px solid rgba(29, 111, 255, 0.08);
}

.answer-sheet-card {
  display: grid;
  gap: 10px;
}

.answer-sheet-card__title {
  display: block;
  margin: 0;
  color: var(--accent-strong);
}

.answer-card strong,
.question-card strong,
.nested-answer-card strong {
  display: block;
  margin-bottom: 8px;
}

.collapsed-group {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(29, 111, 255, 0.16);
  background: rgba(247, 251, 255, 0.72);
  padding: 12px 14px;
}

.answer-collapse {
  display: grid;
  gap: 12px;
}

.collapsed-group summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
  list-style: none;
}

.collapsed-group summary::-webkit-details-marker {
  display: none;
}

.collapsed-group[open] summary {
  margin-bottom: 12px;
}

.resource-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.resource-status.is-ready {
  background: rgba(15, 169, 104, 0.1);
  color: #0e8758;
}

.resource-status.is-missing {
  background: rgba(255, 156, 43, 0.12);
  color: #d97800;
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 200px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed rgba(29, 111, 255, 0.16);
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.72s cubic-bezier(.2, .8, .2, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }

body.is-leaving .auth-shell {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -16px, 0);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -40% 0;
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .auth-shell,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .auth-panel--login {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero-panel,
  .auth-panel,
  .section-block,
  .profile-hero {
    padding: 20px;
  }

  .showcase-panel,
  .auth-banner,
  .showcase-step {
    padding: 16px;
  }

  .topbar {
    padding: 16px;
  }

  .topbar,
  .section-head,
  .topbar-actions,
  .card-metrics,
  .meta-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .showcase-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-step {
    grid-template-columns: 1fr;
  }

  .paper-card-header {
    flex-direction: column;
  }

  .answer-modal {
    padding: 12px;
  }

  .answer-modal__dialog {
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
  }

  .answer-modal__header,
  .answer-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .answer-modal__summary,
  .answer-modal__note,
  .answer-filter-bar {
    margin-left: 18px;
    margin-right: 18px;
  }

  .answer-modal__tabs,
  .voice-upload-card,
  .voice-enroll-modal__content {
    padding-left: 18px;
    padding-right: 18px;
    margin-left: 0;
    margin-right: 0;
  }

  .voice-upload-actions,
  .voice-enroll-controls,
  .voice-enroll-actions {
    flex-direction: column;
  }

  .answer-modal__tab {
    flex: 1 1 0;
  }

  .paper-header-tags {
    justify-content: start;
  }

  .topbar,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .secondary-button,
  .ghost-button,
  .primary-button {
    width: 100%;
  }

  .skeleton-grid,
  .assignment-grid,
  .ecard-strip,
  .big-question-grid,
  .part-layout {
    grid-template-columns: 1fr;
  }
}
