.live-studio {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 28px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro preview" "form preview";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 7vw, 88px);
  row-gap: 27px;
  align-items: start;
}

.live-intro { grid-area: intro; padding-top: 15px; }
.live-intro h1 {
  max-width: 9ch;
  margin: 0;
  font: 400 clamp(68px, 8vw, 108px)/.88 "Instrument Serif", Georgia, serif;
  letter-spacing: -.03em;
}
.live-intro em { color: var(--accent); }
.live-intro p { color: var(--muted); max-width: 38ch; margin: 21px 0 0; }
.masthead-inner > a.text-button { color: var(--accent); font-size: 13px; }
.upload-form { grid-area: form; display: grid; gap: 10px; }
.photo-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px;
  border: 1px dashed #c8a8a7;
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
}
.photo-upload:hover { border-color: var(--accent); }
.photo-upload:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.photo-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-upload:has(input:disabled) { cursor: default; opacity: .76; }
.upload-tile {
  position: relative;
  flex: 0 0 42px;
  height: 42px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f3e5e6;
  color: var(--accent);
}
.upload-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.upload-label { display: grid; flex: 1; min-width: 0; }
.upload-label strong { font-size: 14px; }
.upload-label > span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-action { color: var(--accent); padding: 0 3px; font-size: 12px; font-weight: 650; }
.upload-form .save-button { margin-top: 4px; }
.upload-form .save-button:disabled { opacity: .58; }
.upload-form .live-note { color: var(--muted); font-size: 12px; margin: 0; }
#service-status { min-height: 18px; }
#resume-preview { justify-self: start; font-size: 13px; }
.live-preview { grid-area: preview; }
.live-photo-stage { background: #eee4dd; min-height: 210px; max-height: 590px; }
.live-photo-stage img { object-fit: contain; }
#live-result { clip-path: inset(0 0 0 var(--split)); }
.generation-progress {
  position: absolute;
  inset: auto 12px 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #261c1ce8;
  color: white;
  font-size: 13px;
}
#download-result { font-weight: 650; white-space: nowrap; }
.live-studio [hidden] { display: none; }

.beta-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 68px;
}
.beta-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.beta-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  align-items: center;
  gap: 18px 28px;
  padding: 23px;
}
.beta-header h2 {
  margin: 0;
  font: 400 clamp(35px, 5vw, 49px)/1 "Instrument Serif", Georgia, serif;
}
.beta-header h2 + p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.beta-form fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 0;
  margin: 0;
  min-width: 0;
  border: 0;
}
.beta-form label { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 650; }
.beta-form input {
  width: 100%;
  height: 42px;
  padding: 8px 10px;
  border: 1px solid #cdbab0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.beta-form .save-button { min-height: 42px; padding: 8px 13px; white-space: nowrap; font-size: 13px; }
.beta-form .save-button:disabled { opacity: .58; }
.beta-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.beta-note:empty { display: none; }
.beta-activity { border-top: 1px solid var(--line); }
.beta-activity-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 23px 8px;
}
.beta-activity-heading h3 { margin: 0; font-size: 14px; }
#beta-pause { color: var(--accent); min-height: 32px; padding-inline: 4px; font-size: 13px; }
.beta-window { overflow: hidden; padding-block-end: 16px; }
.beta-window:focus-visible { outline-offset: -2px; }
.beta-marquee {
  display: flex;
  width: max-content;
  animation: beta-loop 100s linear infinite;
}
.beta-window.is-paused .beta-marquee,
.beta-window:focus-within .beta-marquee { animation-play-state: paused; }
.beta-track {
  list-style: none;
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0 0 0 9px;
}
.beta-track li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex: 0 0 156px;
  width: 156px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 650;
}
.beta-track bdi { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beta-track span { flex: 0 0 auto; font-size: 11px; font-weight: 500; color: var(--accent); }
.beta-track [data-kind="sample"] span { color: var(--muted); }
@keyframes beta-loop {
  0%, 2% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .beta-window { overflow-x: auto; }
  .beta-marquee { animation: none; }
  .beta-track-copy, #beta-pause { display: none; }
}

@media (max-width: 760px) {
  .live-studio {
    max-width: 540px;
    padding: 30px 18px 49px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "form" "preview";
    grid-template-rows: auto;
    gap: 19px;
  }
  .live-intro { padding-top: 0; }
  .live-intro h1 { max-width: none; font-size: clamp(56px, 12vw, 80px); }
  .live-intro p { margin-top: 13px; font-size: 14px; }
  .masthead-inner > a.text-button { font-size: 12px; }
  .photo-upload { gap: 9px; min-height: 60px; padding: 8px 9px; }
  .upload-tile { flex-basis: 34px; height: 34px; }
  .upload-label strong { font-size: 13px; }
  .upload-label > span { font-size: 11px; }
  .beta-section { max-width: 540px; padding: 0 18px 45px; }
  .beta-header { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .beta-form fieldset { grid-template-columns: minmax(0, 1fr); }
  .beta-activity-heading { padding-inline: 18px; }
}
