:root {
  --ink: #14211d;
  --muted: #61706a;
  --paper: #f4f6ef;
  --surface: #ffffff;
  --line: #dbe2d9;
  --accent: #ec5f3f;
  --accent-dark: #c74329;
  --green: #1f6a51;
  --green-soft: #dff0e7;
  --shadow: 0 20px 60px rgba(28, 54, 43, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 4%, rgba(236, 95, 63, 0.09), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

button,
select,
input[type="file"] + label {
  cursor: pointer;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}

.brand strong,
.brand small {
  display: block;
}

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

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.shell {
  width: min(980px, calc(100% - 40px));
  margin: 36px auto 80px;
}

.intro {
  max-width: 760px;
  margin: 0 0 44px;
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
}

.panel {
  margin: 18px 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(20, 33, 29, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.auth-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.8fr);
  gap: 48px;
  align-items: end;
}

.panel-heading,
.review-heading,
.finalize-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-heading {
  margin-bottom: 24px;
}

.step-state,
.draft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: white;
  color: var(--ink);
  transition:
    border-color 150ms,
    box-shadow 150ms;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 150px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 106, 81, 0.11);
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 17px;
  font-weight: 800;
  transition:
    transform 120ms,
    background 120ms,
    opacity 120ms;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px rgba(236, 95, 63, 0.24);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: var(--ink);
  color: white;
}

.button-quiet {
  background: rgba(20, 33, 29, 0.06);
  color: var(--ink);
}

.supporting {
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.account-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  min-height: 78px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.account-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.account-card:has(input:disabled) {
  opacity: 0.58;
  cursor: not-allowed;
}

.account-card input {
  width: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  accent-color: var(--green);
}

.account-card strong,
.account-card small {
  display: block;
}

.account-card small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

.provider-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-field label {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed #a9b5ad;
  border-radius: 17px;
  background: #fafbf8;
  text-align: center;
}

.upload-field label:hover {
  border-color: var(--green);
  background: #f5faf7;
}

.upload-field strong,
.upload-field small {
  display: block;
}

.upload-field small {
  color: var(--muted);
}

.upload-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: -12px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.35rem;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebe5;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f09b55);
  transition: width 400ms ease;
}

#progress-message {
  margin: 14px 0 0;
}

.review-heading {
  margin: 52px 0 22px;
}

.media-summary {
  min-width: 180px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.version-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(28, 54, 43, 0.06);
}

.version-card-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.version-card-header span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.version-card textarea {
  min-height: 190px;
}

.youtube-fields {
  display: grid;
  gap: 13px;
  margin-bottom: 14px;
}

.finalize-card {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.finalize-card p {
  max-width: 620px;
  margin-bottom: 0;
  color: #bdc8c3;
}

.finalize-card .button {
  flex: 0 0 auto;
}

.success-panel {
  display: flex;
  gap: 24px;
  align-items: center;
  border-color: rgba(31, 106, 81, 0.2);
  background: #f4fbf7;
}

.success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.7rem;
}

.alert {
  margin: 18px 0;
  padding: 15px 17px;
  border: 1px solid #e9b4a8;
  border-radius: 13px;
  background: #fff1ed;
  color: #8f2f1c;
}

.is-hidden {
  display: none !important;
}

footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 32px 20px 48px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .site-header,
  .shell {
    width: min(100% - 24px, 980px);
  }

  .shell {
    margin-top: 20px;
  }

  .auth-panel,
  .field-grid,
  .account-grid,
  .version-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    gap: 20px;
  }

  .panel-heading,
  .review-heading,
  .finalize-card {
    align-items: stretch;
    flex-direction: column;
  }

  .finalize-card .button {
    width: 100%;
  }

  .header-actions .draft-pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

