/* /launch/ — the "Launch My TV Channel" wizard.
   Same world as the rest of the site (website/DESIGN.md, "The Listings Page"):
   true black, paper ink, hairline rules, zero radius, zero shadow. Red is the one
   primary action on each step and the ON AIR state, nothing else. */

.lx-wrap { max-width: 680px; margin: 0 auto; padding: 34px 18px 72px; }

.lx-hero h1 {
  font-variation-settings: 'wdth' 112, 'wght' 800;
  font-size: clamp(1.9rem, 5.4vw, 2.55rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lx-hero p { color: var(--ink-dim); max-width: 60ch; }
.lx-hero p.lx-traction { color: var(--ink); margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--live); font-size: 14px; }

/* --- Progress ------------------------------------------------------------- */
.lx-progress { margin: 26px 0 0; }
.lx-progress-of,
.lx-label {
  font-variation-settings: 'wdth' 70, 'wght' 700;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.lx-progress ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 7px;
  border-top: 1px solid var(--rule-strong);
}
.lx-progress li {
  padding: 7px 4px 0 0;
  border-top: 3px solid transparent;
  margin-top: -2px;
  font-variation-settings: 'wdth' 70, 'wght' 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-progress li.is-done { color: var(--ink-dim); border-top-color: var(--ink-faint); }
.lx-progress li.is-current { color: var(--ink); border-top-color: var(--ink); }

/* --- Steps ---------------------------------------------------------------- */
.lx-step {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 0;
}
.lx-step[hidden] { display: none !important; }
.lx-step h2 {
  font-variation-settings: 'wdth' 100, 'wght' 800;
  font-size: clamp(1.25rem, 4.2vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
/* Headings take focus on each step change so screen readers announce the step; they
   are not controls, so no ring. */
.lx-step h2:focus, .lx-step h2:focus-visible { outline: none; }
.lx [hidden] { display: none !important; }
.lx-sub { color: var(--ink-dim); margin-bottom: 16px; max-width: 62ch; }
.lx-note { color: var(--ink-faint); }

/* --- Fields: ruled inputs, an underline that turns red on focus ----------- */
.lx-field { margin: 16px 0 0; }
.lx-field label,
.lx-check span { display: block; }
.lx-field > label {
  font-variation-settings: 'wdth' 70, 'wght' 700;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.lx input[type=text],
.lx input[type=url] {
  width: 100%;
  min-width: 0;
  background: var(--ground-plate);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming the page on focus */
  padding: 11px 12px 10px;
}
.lx input[type=text]:focus,
.lx input[type=url]:focus { outline: none; border-bottom-color: var(--live); }
.lx input[aria-invalid="true"] { border-bottom-color: var(--live); }

.lx-handle { display: flex; align-items: stretch; border: 0; }
.lx-handle input { flex: 1 1 auto; text-align: right; }
.lx-handle-suffix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-left: 0;
  border-bottom-width: 2px;
  color: var(--ink-dim);
  font-size: 14px;
  white-space: nowrap;
}
[dir="rtl"] .lx-handle { direction: ltr; }

.lx-inline { display: flex; gap: 0; }
.lx-inline input { flex: 1 1 auto; }
.lx-inline .lx-btn { border-left: 0; white-space: nowrap; }

.lx-hint { color: var(--ink-faint); font-size: 13px; margin-top: 6px; max-width: 62ch; }
.lx-hint-strong { color: var(--ink-dim); margin-top: 14px; }
.lx-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 14px; }
.lx-mini { list-style: none; margin: 4px 0 14px; border-top: 1px solid var(--rule); }
.lx-mini li { padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-dim); overflow-wrap: anywhere; }
.lx-status { font-size: 13.5px; margin-top: 6px; color: var(--ink-dim); min-height: 1px; }
.lx-status.is-ok { color: var(--ink); }
.lx-status.is-ok::before { content: '\2713\00a0'; }
.lx-status.is-bad { color: var(--ink); }
.lx-status.is-bad::before { content: '\2715\00a0'; }

.lx-err {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  background: var(--ground-band);
}
.lx-err[hidden], .lx-status[hidden], .lx-notice[hidden] { display: none; }
.lx-notice { border: 1px solid var(--rule-strong); padding: 10px 12px; color: var(--ink-dim); margin-bottom: 8px; font-size: 14px; }

/* --- Buttons -------------------------------------------------------------- */
.lx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.lx-actions-tight { margin-top: 12px; }
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  font-family: inherit;
  font-variation-settings: 'wdth' 76, 'wght' 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s linear, border-color 0.12s linear;
}
.lx-btn:hover:not(:disabled) { background: var(--ground-band); border-color: var(--ink-faint); }
.lx-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.lx-btn[hidden] { display: none; }
.lx-primary {
  background: var(--live);
  border-color: var(--live);
  color: var(--on-live);
  min-height: 52px;
  padding: 14px 28px;
  font-size: 13px;
}
.lx-primary:hover:not(:disabled) { background: var(--live-deep); border-color: var(--live-deep); color: var(--ink); }
.lx-ghost { border-color: transparent; color: var(--ink-dim); }
.lx-small { min-height: 36px; padding: 7px 11px; font-size: 11px; }
.lx-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lx-linkbtn {
  background: none; border: 0; padding: 0; color: var(--ink-dim);
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* --- Source choice -------------------------------------------------------- */
.lx-choice { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 16px; }
.lx-choice-opt {
  position: relative;
  display: block;
  padding: 14px 14px 14px 40px;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
}
.lx-choice-opt + .lx-choice-opt { border-left: 0; }
[dir="rtl"] .lx-choice-opt { padding: 14px 40px 14px 14px; }
[dir="rtl"] .lx-choice-opt + .lx-choice-opt { border-left: 1px solid var(--rule-strong); border-right: 0; }
.lx-choice-opt input { position: absolute; inset-inline-start: 14px; top: 17px; accent-color: var(--ink); width: 16px; height: 16px; }
.lx-choice-opt:hover { background: var(--ground-band); }
.lx-choice-opt:has(input:checked) { box-shadow: inset 0 3px 0 var(--ink); background: var(--ground-band); }
.lx-choice-opt:has(input:focus-visible) { outline: 2px solid var(--live); outline-offset: 2px; }
.lx-choice-name { display: block; font-variation-settings: 'wdth' 88, 'wght' 700; font-size: 15px; line-height: 1.3; }
.lx-choice-desc { display: block; color: var(--ink-dim); font-size: 13px; margin-top: 3px; }

/* --- Drop zone ------------------------------------------------------------ */
.lx-drop {
  border: 1px dashed var(--rule-strong);
  padding: 26px 16px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.lx-drop.is-over { border-color: var(--ink); background: var(--ground-band); }
.lx-drop-title { font-variation-settings: 'wdth' 96, 'wght' 800; font-size: 17px; text-transform: uppercase; letter-spacing: -0.005em; }

/* --- Item rows: ruled, like listing rows ---------------------------------- */
.lx-list-title { font-variation-settings: 'wdth' 88, 'wght' 700; font-size: 15px; margin-top: 18px; }
.lx-items { list-style: none; margin-top: 14px; border-top: 1px solid var(--rule); }
.lx-items:empty { border-top: 0; margin-top: 0; }
.lx-item { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.lx-item-head { display: flex; gap: 12px; align-items: flex-start; }
.lx-item-main { flex: 1 1 auto; min-width: 0; }
.lx-thumb { width: 96px; height: 54px; object-fit: cover; border: 1px solid var(--rule-strong); flex: 0 0 96px; }
.lx-item-title { font-variation-settings: 'wdth' 88, 'wght' 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.lx-item-meta { color: var(--ink-dim); font-size: 13px; margin-top: 2px; }
.lx-item-status { font-size: 13px; color: var(--ink-dim); margin-top: 6px; }
.lx-item-status:empty { display: none; }
.lx-item.is-rejected .lx-item-status { color: var(--ink); }
.lx-item-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lx-item-actions[hidden] { display: none; }
.lx-item-link { margin-top: 10px; }
.lx-item-link label { font-size: 11px; }
.lx-item-link input { font-size: 15px !important; padding: 8px 10px 7px !important; }

.lx-bar, .lx-meter { position: relative; height: 6px; background: var(--ground-plate); border: 1px solid var(--rule); margin-top: 8px; }
.lx-bar[hidden], .lx-meter[hidden] { display: none; }
.lx-bar > i, .lx-meter > i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.3s linear; }

/* --- Totals --------------------------------------------------------------- */
.lx-totals { margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--rule-strong); }
.lx-totals[hidden] { display: none; }
.lx-totals-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; }
.lx-totals-row b { font-variation-settings: 'wdth' 100, 'wght' 800; font-size: 20px; margin-inline-start: 6px; }
.lx-meter { height: 10px; margin-top: 10px; }
.lx-meter-min { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink-dim); }

/* --- Rights --------------------------------------------------------------- */
.lx-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--rule-strong); cursor: pointer; }
.lx-check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--ink); }
.lx-code { display: flex; align-items: stretch; margin-top: 6px; }
.lx-code code {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-right: 0;
  background: var(--ground-plate);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
  user-select: all;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* --- Sign in -------------------------------------------------------------- */
.lx-signin { display: grid; gap: 10px; margin-top: 18px; max-width: 340px; }
.lx-signin[hidden] { display: none; }
.lx-apple { background: var(--ink); color: #000; border-color: var(--ink); min-height: 48px; font-size: 13px; letter-spacing: 0.04em; text-transform: none; font-variation-settings: 'wdth' 100, 'wght' 600; }
.lx-apple:hover:not(:disabled) { background: #fff; color: #000; }
.lx-apple svg { width: 15px; height: 18px; }
.lx-google:empty { display: none; }
.lx-google { min-height: 44px; }

/* --- Done ----------------------------------------------------------------- */
.lx-done-title { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
.lx-done-steps { margin: 4px 0 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.lx-done-steps li::marker { font-variation-settings: 'wdth' 80, 'wght' 800; }
.lx-get { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 14px; justify-items: start; }
.lx-get-primary:empty { display: none; }
.lx-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lx-badges a[hidden] { display: none; }
.lx-badges img { height: 44px; width: auto; }
.lx-qr { display: grid; gap: 6px; justify-items: start; }
.lx-qr[hidden] { display: none; }
.lx-qr img { width: 168px; height: 168px; background: #fff; padding: 8px; image-rendering: pixelated; }
.lx-qr figcaption { color: var(--ink-dim); font-size: 13px; }
.lx-state { margin-top: 22px; padding: 14px; border: 1px solid var(--rule-strong); }
.lx-state-line { margin-top: 6px; font-size: 15px; }
.lx-state-line.is-live {
  display: inline-block;
  background: var(--live);
  color: var(--on-live);
  padding: 3px 9px;
  font-variation-settings: 'wdth' 80, 'wght' 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lx-onair { border-color: var(--ink); }
.lx-after { list-style: none; margin-top: 20px; display: grid; gap: 10px; }

/* --- Header language select ---------------------------------------------- */
.lx-lang { margin-inline-start: 4px; }
.lx-lang select {
  background: var(--ground);
  color: var(--ink-dim);
  border: 1px solid var(--rule-strong);
  font-family: inherit;
  font-size: 12px;
  padding: 5px 6px;
  border-radius: 0;
}
.lx .nav-links + .lx-lang { margin-inline-start: 12px; }
.lx .header-inner > .logo + .lx-lang { margin-inline-start: auto; }

@media (max-width: 860px) {
  .lx .lx-lang { margin-inline-start: auto; }
}

@media (max-width: 560px) {
  .lx-wrap { padding-top: 24px; }
  .lx-choice { grid-template-columns: 1fr; }
  .lx-choice-opt + .lx-choice-opt { border-left: 1px solid var(--rule-strong); border-top: 0; }
  .lx-progress li span { display: block; }
  .lx-progress li { font-size: 0; }
  .lx-progress li::before { content: attr(data-step); font-size: 11px; }
  .lx-progress li span { display: none; }
  .lx-inline { flex-direction: column; }
  .lx-inline .lx-btn { border-left: 1px solid var(--rule-strong); border-top: 0; }
  .lx-handle-suffix { font-size: 12px; padding: 0 6px; }
  .lx-primary { width: 100%; }
  .lx-code code { font-size: 17px; }
  .lx-thumb { width: 72px; height: 40px; flex-basis: 72px; }
}

.lx-signin.is-blocked .lx-google { pointer-events: none; opacity: 0.45; }
