:root {
  color-scheme: light;
  --ink: #18191f;
  --muted: #626873;
  --paper: #fbf7f2;
  --panel: #fffaf4;
  --line: rgba(24, 25, 31, 0.12);
  --coral: #db5b45;
  --teal: #0b7f83;
  --gold: #c9963f;
  --plum: #3a2434;
  --shadow: 0 24px 70px rgba(24, 25, 31, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.app-shell {
  min-height: 100vh;
}

.support-page {
  background: var(--paper);
}

.support-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.support-hero {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.support-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.support-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.support-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: white;
}

.support-card:nth-child(3n) {
  border-left-color: var(--coral);
}

.support-card:nth-child(3n + 1) {
  border-left-color: var(--gold);
}

.support-card h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.15rem;
}

.support-card p,
.support-card li {
  color: var(--muted);
  line-height: 1.55;
}

.support-card a {
  color: var(--teal);
  font-weight: 800;
}

.support-card ol,
.support-card ul {
  margin: 0;
  padding-left: 20px;
}

.support-note {
  margin-bottom: 0;
  color: var(--coral) !important;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 18, 0.88), rgba(12, 13, 18, 0.48) 48%, rgba(12, 13, 18, 0.16)),
    linear-gradient(0deg, rgba(251, 247, 242, 0.98) 0%, rgba(251, 247, 242, 0) 28%);
  z-index: -1;
}

.hero__content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 112px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 13vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero__copy {
  width: min(640px, 100%);
  margin-bottom: 26px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero__stats span {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  padding: 9px 14px;
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.workspace {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.mode-switch {
  width: min(1120px, calc(100% - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.98);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 24px);
}

.mode-switch h2 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.mode-switch p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.secondary-action,
.back-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--plum);
  color: white;
  padding: 10px 14px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.back-action {
  margin-bottom: 18px;
  background: white;
  color: var(--plum);
}

.audition-workspace {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 18px;
  align-items: start;
}

.audition-workspace[hidden] {
  display: none;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: var(--shadow);
}

.upload-panel,
.feedback-panel,
.audition-panel,
.audition-results-panel {
  padding: clamp(18px, 3vw, 28px);
}

.section-copy {
  max-width: 680px;
  margin: -8px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.drop-zone {
  min-height: 176px;
  border: 1.5px dashed rgba(11, 127, 131, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 127, 131, 0.08), rgba(219, 91, 69, 0.08));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging,
.drop-zone.has-file {
  border-color: var(--teal);
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(11, 127, 131, 0.14), rgba(219, 91, 69, 0.12));
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.drop-zone__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
}

.drop-zone__title {
  display: block;
  margin-top: 12px;
  font-weight: 800;
}

.drop-zone__hint {
  display: block;
  max-width: 34rem;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.audition-drop-zone {
  min-height: 150px;
}

.audition-fields {
  margin: 18px 0;
}

.video-frame {
  position: relative;
  margin: 18px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #171820;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-frame.is-empty video {
  display: none;
}

.upload-confirmation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 18px;
  border: 1px solid rgba(11, 127, 131, 0.24);
  border-radius: 8px;
  background: rgba(11, 127, 131, 0.09);
  padding: 12px 14px;
}

.upload-confirmation[hidden] {
  display: none;
}

.upload-confirmation span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.upload-confirmation strong {
  display: block;
  color: var(--plum);
}

.upload-confirmation p {
  margin: 2px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.video-guidance {
  margin: -4px 0 18px;
  border: 1px solid rgba(201, 150, 63, 0.34);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(201, 150, 63, 0.1);
  padding: 12px 14px;
}

.video-guidance strong {
  display: block;
  color: var(--plum);
}

.video-guidance p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.empty-state span {
  font-size: 2.4rem;
  color: var(--gold);
}

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

label,
legend {
  color: var(--plum);
  font-weight: 750;
}

select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.goals {
  margin: 18px 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.goals legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.goals label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
  font-weight: 650;
  color: var(--ink);
}

.goals input {
  accent-color: var(--coral);
}

.primary-action {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: white;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(219, 91, 69, 0.24);
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  background: #c94f3b;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.primary-action.is-loading span:first-child {
  display: inline-block;
  animation: pulse-turn 900ms ease-in-out infinite alternate;
}

@keyframes pulse-turn {
  from {
    transform: scale(0.9) rotate(0deg);
  }

  to {
    transform: scale(1.1) rotate(18deg);
  }
}

.feedback-panel {
  position: sticky;
  top: 18px;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-header .section-heading {
  flex: 1;
  min-width: 0;
}

.feedback-header .section-heading h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.share-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--plum);
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

.share-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.is-exporting-report .share-action,
.is-exporting-report .share-fallback,
.is-exporting-report .save-panel,
.is-exporting-report .saved-reviews,
.is-exporting-report .season-progress {
  display: none;
}

.score-ring {
  width: 168px;
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at center, var(--panel) 0 57%, transparent 58%),
    conic-gradient(var(--teal) var(--score, 0%), rgba(24, 25, 31, 0.11) 0);
}

.score-ring span {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

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

.feedback-list article,
.practice-plan,
.share-fallback,
.save-panel,
.saved-reviews,
.season-progress,
.audition-results article {
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: white;
  padding: 14px 15px;
}

.feedback-list .feedback-alert {
  border-left-color: var(--coral);
}

.feedback-list h3,
.practice-plan h3,
.saved-reviews h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.feedback-list p,
.practice-plan li,
.feedback-section li,
.empty-saved,
.audition-results p,
.audition-results li {
  color: var(--muted);
  line-height: 1.5;
}

.audition-results {
  display: grid;
  gap: 12px;
}

.audition-card {
  border-left-color: var(--plum) !important;
}

.audition-card__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.audition-card__header span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.audition-card__header h3 {
  margin: 3px 0 3px;
}

.audition-card__header p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.audition-card__header strong {
  min-width: 82px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 1.25rem;
}

.audition-criteria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.audition-criteria span {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.audition-criteria b {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.audition-notes-list h4 {
  margin: 12px 0 4px;
  color: var(--plum);
  font-size: 0.95rem;
}

.audition-notes-list ul {
  margin: 0;
  padding-left: 18px;
}

.feedback-section ul {
  margin: 0;
  padding-left: 18px;
}

.feedback-section li + li {
  margin-top: 9px;
}

.feedback-section li strong {
  display: block;
  color: var(--ink);
}

.feedback-section li span {
  display: block;
}

.practice-plan {
  margin-top: 14px;
  border-left-color: var(--coral);
}

.practice-plan ol {
  margin: 0;
  padding-left: 20px;
}

.save-panel {
  margin-top: 14px;
  border-left-color: var(--gold);
}

.share-fallback {
  margin-top: 14px;
  border-left-color: var(--gold);
}

.share-fallback textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  resize: vertical;
}

.share-fallback[hidden] {
  display: none;
}

.save-panel input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
}

.save-meta-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 10px;
  margin: 10px 0;
}

.save-action {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--plum);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.save-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.save-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--teal);
  font-weight: 800;
}

.saved-reviews {
  margin-top: 14px;
  border-left-color: var(--teal);
}

.season-progress {
  margin-top: 14px;
  border-left-color: var(--plum);
}

.saved-review-list {
  display: grid;
  gap: 8px;
}

.saved-review-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: stretch;
}

.saved-review-list button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  padding: 10px 11px;
  cursor: pointer;
}

.saved-review-delete {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0;
  color: var(--coral);
  font-size: 1.4rem;
  font-weight: 850;
}

.saved-review-list button strong,
.saved-review-list button span {
  display: block;
}

.saved-review-list button span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.season-progress-list {
  display: grid;
  gap: 10px;
}

.progress-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.progress-heading,
.progress-timeline {
  display: flex;
  gap: 8px;
}

.progress-heading {
  justify-content: space-between;
  align-items: flex-start;
}

.progress-heading span,
.progress-compare {
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-heading b.positive {
  color: var(--teal);
}

.progress-heading b.negative {
  color: var(--coral);
}

.progress-timeline {
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.progress-timeline button {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.progress-timeline span,
.progress-timeline strong,
.progress-timeline small {
  display: block;
}

.progress-timeline small {
  color: var(--muted);
}

.progress-compare p {
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .hero {
    min-height: 620px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(12, 13, 18, 0.82), rgba(12, 13, 18, 0.34)),
      linear-gradient(0deg, rgba(251, 247, 242, 0.98) 0%, rgba(251, 247, 242, 0) 22%);
  }

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

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

  .mode-switch {
    margin-top: -58px;
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-action {
    width: 100%;
  }

  .feedback-panel {
    position: static;
  }

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

@media (max-width: 560px) {
  .hero__content {
    width: min(100% - 28px, 1120px);
    padding-bottom: 92px;
  }

  .workspace {
    width: min(100% - 20px, 1120px);
  }

  .mode-switch,
  .audition-workspace {
    width: min(100% - 20px, 1120px);
  }

  .support-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 20px;
  }

  .field-grid,
  .goals,
  .save-meta-grid,
  .audition-grid,
  .audition-criteria {
    grid-template-columns: 1fr;
  }

  .feedback-header {
    flex-direction: column;
  }

  .hero__stats span {
    flex: 1 1 30%;
    text-align: center;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body {
    background: white;
    color: #111;
  }

  .hero,
  .upload-panel,
  .audition-workspace,
  .share-action,
  .share-fallback,
  .save-panel,
  .saved-reviews,
  .season-progress {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
    width: 100%;
    margin: 0;
    min-height: auto;
  }

  .feedback-panel {
    position: static;
    box-shadow: none;
    border: 0;
    background: white;
    padding: 0;
  }

  .feedback-header {
    display: block;
    border-bottom: 2px solid #111;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }

  .feedback-header .eyebrow {
    color: #555;
  }

  .feedback-header h2 {
    color: #111;
    font-size: 24pt;
  }

  .score-ring {
    width: auto;
    aspect-ratio: auto;
    display: block;
    margin: 0 0 18px;
    border-radius: 0;
    background: white;
    text-align: left;
  }

  .score-ring span {
    font-size: 28pt;
  }

  .score-ring small::before {
    content: " / 100 ";
  }

  .feedback-list {
    display: block;
  }

  .feedback-list article,
  .practice-plan {
    break-inside: avoid;
    border: 1px solid #d7d7d7;
    border-left: 5px solid #111;
    box-shadow: none;
    margin: 0 0 12px;
    background: white;
  }

  .feedback-list h3,
  .practice-plan h3 {
    font-size: 13pt;
  }

  .feedback-list p,
  .feedback-section li,
  .practice-plan li {
    color: #222;
    font-size: 10.5pt;
  }
}
