/* Snapmy.site studio: the workspace a film is made and edited in. */

/* ---------- studio mode ---------- */
body.studio-mode main > section:not(#studio) {
  display: none;
}
body.studio-mode .nav {
  visibility: hidden;
}
body.studio-mode .foot {
  display: none;
}
body.studio-mode .bar {
  border-bottom-color: var(--rule);
}

.studio {
  max-width: 1560px;
  margin: 0 auto;
  padding: var(--space-5) var(--pad) var(--space-7);
  min-height: calc(100dvh - var(--header-h));
  scroll-margin-top: var(--header-h);
}

/* ---------- head ---------- */
.studio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.studio-id {
  min-width: 0;
  flex: 1;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin: 0 0 10px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font: 500 var(--text-xs) / 1 var(--font-mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally);
}
.status-pill[data-state="working"] .dot {
  animation: blink 1s steps(2) infinite;
}
.status-pill[data-state="ready"] .dot {
  background: #2f9e6b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2f9e6b 22%, transparent);
}
.status-pill[data-state="warn"] .dot {
  background: var(--warn);
}
.status-pill[data-state="error"] {
  border-color: color-mix(in srgb, var(--tally) 50%, var(--rule));
}
.status-pill[data-state="error"] .dot {
  background: var(--tally);
}
.studio-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-sub {
  margin: 6px 0 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-xs);
}
.studio-sub #studioDomain {
  color: var(--ink-2);
}
.studio-sub:has(#studioDomain:empty) .sep,
.studio-sub:has(#dirReadout:empty) .sep {
  display: none;
}
.studio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.studio-actions .icon-btn {
  width: 44px;
  height: 44px;
}
#exportBtn {
  min-width: 190px;
}
.export-res {
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 0.72;
}

/* ---------- warn notice ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 8px 12px 16px;
  border: 1px solid var(--warn);
  border-radius: 12px;
  background: color-mix(in srgb, var(--warn) 9%, var(--surface));
  color: var(--ink);
}
.notice > svg {
  flex: none;
  margin-top: 2px;
  color: color-mix(in srgb, var(--warn) 70%, var(--ink));
}
.notice p {
  flex: 1;
  margin: 1px 0 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.notice .icon-btn {
  border-color: transparent;
  margin: -6px 0 -6px;
}

/* ---------- grid ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.stage-col {
  min-width: 0;
}

/* ---------- stage ---------- */
.stage-wrap {
  --stage-max: max(320px, calc(100dvh - var(--header-h) - 260px));
  display: grid;
  place-items: center;
  background: var(--monitor);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rule) 60%, transparent);
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: var(--stage-max);
  max-width: calc(var(--stage-max) * 16 / 9);
  overflow: hidden;
  background: var(--monitor);
  color: var(--on-monitor);
}
.stage[data-aspect="9:16"] {
  aspect-ratio: 9 / 16;
  max-width: calc(var(--stage-max) * 9 / 16);
}
.stage[data-aspect="1:1"] {
  aspect-ratio: 1;
  max-width: var(--stage-max);
}
.stage[data-aspect="4:5"] {
  aspect-ratio: 4 / 5;
  max-width: calc(var(--stage-max) * 4 / 5);
}
.stage .hfp {
  position: absolute;
  inset: 0;
  background: var(--monitor);
}
.stage.updating::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 6;
  background: linear-gradient(90deg, transparent, var(--tally), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: updating 1.1s linear infinite;
}
@keyframes updating {
  0% {
    background-position: -40% 0;
  }
  100% {
    background-position: 140% 0;
  }
}

/* progress overlay */
.scan-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tally) 10%, transparent), transparent 60%),
    var(--monitor);
  color: var(--on-monitor);
  transition: opacity 0.5s var(--ease);
}
.scan-overlay.done {
  opacity: 0;
  pointer-events: none;
}
/* What the read found, arriving one by one. */
.scan-found {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(720px, 94%);
  min-height: 34px;
}
.scan-found:empty {
  display: none;
}
.found-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 9px;
  background: #ffffff10;
  box-shadow: inset 0 0 0 1px #ffffff1f;
  color: #fff;
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: found-in 0.55s var(--ease) both;
  animation-delay: calc(var(--k, 0) * 0.22s);
}
.found-chip em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tally);
}
.found-chip i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #ffffff26;
}
@keyframes found-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}
@media (max-width: 760px) {
  .scan-found .found-chip:nth-child(n + 4) {
    display: none;
  }
}

/* Premiere leader: 3-2-1 before a new film's first play. */
.leader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, transparent 0 34%, #0000008c 35% 36%, transparent 37%),
    #111110;
  color: #f3f1ec;
  transition: opacity 0.26s var(--ease);
}
.leader[hidden] {
  display: none;
}
.leader.out {
  opacity: 0;
}
/* Leader crosshair, like a film countdown. */
.leader::before,
.leader::after {
  content: "";
  position: absolute;
  background: #ffffff1c;
}
.leader::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}
.leader::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}
.leader-sweep {
  position: absolute;
  width: min(46vh, 40%);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #ffffff30;
  background: conic-gradient(from 0deg, #ffffff22 0turn, #ffffff22 var(--sweep, 0turn), transparent var(--sweep, 0turn));
}
.leader.tick .leader-sweep {
  animation: leader-sweep 0.52s linear both;
}
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0turn;
}
@keyframes leader-sweep {
  to {
    --sweep: 1turn;
  }
}
.leader-n {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
}
.leader.tick .leader-n {
  animation: leader-pop 0.52s var(--ease) both;
}
@keyframes leader-pop {
  from {
    transform: scale(1.25);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}
.leader-cap {
  position: absolute;
  bottom: 12%;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff80;
}

.scan-hero {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: min(560px, 90%);
}
.scan-now {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4f2ec;
  animation: logIn 0.45s var(--ease);
}
.scan-sub {
  margin: 0;
  color: var(--on-monitor-muted);
  font-size: var(--text-sm);
}
.scan-bar {
  width: min(480px, 80%);
  height: 5px;
  border-radius: 5px;
  background: #ffffff1f;
  overflow: hidden;
  margin-top: 10px;
}
.scan-bar i {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--tally), #ff9a7a);
  transition: width 1.2s var(--ease);
}
.scan-bar i.creep {
  transition: width 40s cubic-bezier(0.1, 0.6, 0.2, 1);
}
.scan-stepnum {
  display: none;
  margin: 4px 0 0;
  font-size: var(--text-xs);
  color: var(--on-monitor-muted);
}
.scan-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(620px, 94%);
  position: relative;
}
.scan-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--on-monitor-muted);
  font-size: var(--text-xs);
  line-height: 1.3;
}
.scan-steps li:before {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(-50% + 10px);
  right: calc(50% + 10px);
  height: 1px;
  background: #ffffff2b;
}
.scan-steps li:first-child:before {
  display: none;
}
.scan-steps li.done:before,
.scan-steps li.active:before {
  background: color-mix(in srgb, var(--tally) 70%, transparent);
}
.scan-steps i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #ffffff59;
  background: transparent;
}
.scan-steps li.done {
  color: var(--on-monitor);
}
.scan-steps li.done i {
  background: var(--on-monitor);
  border-color: var(--on-monitor);
}
.scan-steps li.active {
  color: #fff;
  font-weight: 600;
}
.scan-steps li.active i {
  background: var(--tally);
  border-color: var(--tally);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tally) 30%, transparent);
  animation: blink 1s steps(2) infinite;
}
.scan-details {
  position: absolute;
  right: 10px;
  bottom: 8px;
  min-height: 32px;
  background: none;
  border: 0;
  color: var(--on-monitor-muted);
  font-size: var(--text-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.scan-log {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 40px;
  max-height: 45%;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  background: #0b0b0aee;
  border-radius: 8px;
  text-align: left;
  font-size: var(--text-xs);
  line-height: 1.7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--on-monitor);
}
.scan-log li {
  white-space: pre-wrap;
}
.scan-log li .ts {
  color: var(--on-monitor-muted);
  margin-right: 12px;
}
.scan-log li.ok:before {
  content: "✓ ";
  color: var(--tally);
}
.scan-log li.warn:before {
  content: "! ";
  color: var(--warn);
}
.scan-log li.err {
  color: #ff8a78;
}
@keyframes logIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* export overlay */
.export-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 16px;
  background: #080807e0;
  color: var(--on-monitor);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  text-align: center;
}
.export-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  letter-spacing: -0.02em;
}
.export-overlay #exportPct {
  margin: 0;
  color: var(--on-monitor-muted);
  font-variant-numeric: tabular-nums;
}
.meter {
  width: min(360px, 60vw);
  height: 5px;
  background: #ffffff26;
  border-radius: 5px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--tally);
  transition: width 0.2s linear;
}
.stage .btn-ghost {
  color: var(--on-monitor);
  border-color: #ffffff40;
}
.stage .btn-ghost:hover:not(:disabled) {
  background: #ffffff14;
  border-color: #ffffff66;
}

/* errors inside the stage */
.stage-msg {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--monitor);
  text-align: center;
}
.stage-msg-card {
  max-width: 440px;
}
.stage-msg h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f4f2ec;
}
.stage-msg p {
  margin: 0;
  color: var(--on-monitor-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.stage-msg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.stage-msg .btn-primary {
  background: #f4f2ec;
  color: #151513;
}
.stage-msg .btn-primary:hover {
  background: #fff;
}

/* ---------- transport + timeline ---------- */
.transport {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.transport-spacer {
  display: none;
}
.tc {
  font-variant-numeric: tabular-nums;
  min-width: 88px;
  color: var(--ink-2);
  font-size: var(--text-xs);
  text-align: center;
}
#muteBtn .cross {
  display: none;
}
#muteBtn[aria-pressed="true"] .cross {
  display: inline;
}
#muteBtn[aria-pressed="true"] .wave {
  display: none;
}
.timeline {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 56px;
  border-radius: 10px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
}
.tl-scenes {
  position: absolute;
  inset: 0;
  display: flex;
}
.tl-scenes > div {
  position: relative;
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 8px 8px 0;
  border-right: 1px solid var(--paper);
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink-2);
  font-size: var(--text-xs);
  line-height: 1.2;
  transition: background 0.15s;
}
.tl-scenes > div:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.tl-scenes .n {
  font-family: var(--font-mono);
  color: var(--muted);
}
.tl-scenes .nm {
  font-weight: 600;
  overflow: hidden;
}
.tl-scenes > div.num-only .nm,
.tl-scenes > div.bare .n,
.tl-scenes > div.bare .nm {
  display: none;
}
.tl-scenes > div:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--c, var(--ink));
  opacity: 0.9;
}
.tl-scenes > div.drop:after {
  background: var(--tally) !important;
  height: 6px;
}
.tl-scenes > div.active {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  box-shadow: inset 0 -4px 0 var(--tally);
}
.tl-scenes > div.active .nm {
  color: var(--ink);
}
.tl-beats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  pointer-events: none;
  opacity: 0.4;
  background-image: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px calc(var(--beat) * 1%));
}
.tl-head {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--tally);
  left: 0;
  pointer-events: none;
}
.tl-head:before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 0 0 3px 3px;
  background: var(--tally);
}
.timeline:focus-visible {
  outline-offset: 3px;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.dl-row:has(> :not([hidden])) {
  margin-top: 14px;
}

/* ---------- shot list ---------- */
.shots-block {
  margin-top: 28px;
}
.shots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.shots-head .panel-h {
  margin: 0;
  font-size: 1.05rem;
}
.script {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.shot {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.shot.active {
  border-color: var(--tally);
  box-shadow: inset 3px 0 0 var(--tally);
}
.glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--g, var(--ink));
  color: var(--gi, #fff);
}
.shot-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.shot-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
  font-size: var(--text-sm);
}
.shot-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-name .n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-right: 2px;
}
.shot-time {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.shot-fields {
  display: flex;
  gap: 8px;
}
.shot-field {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.shot-field.w30 {
  flex: 0 0 32%;
}
/* On a phone two full text fields stack; a short number keeps its place beside its label. */
@media (max-width: 480px) {
  .shot-fields:not(:has(.w30)) {
    flex-direction: column;
  }
}
.shot-field > span {
  font-size: var(--text-xs);
  color: var(--muted);
}
.shot .helper {
  margin: 0;
}
.shot .helper.need {
  color: var(--tally-text);
  font-weight: 500;
}
.shot input {
  width: 100%;
  min-height: 40px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0 10px;
  font-size: var(--text-sm);
  transition: border-color 0.2s;
}
.shot input:hover {
  border-color: color-mix(in srgb, var(--ink) 25%, var(--rule));
}
.shot input:focus {
  outline: 0;
  border-color: var(--ink);
}
.shot input:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 1px;
}
.shot input::placeholder {
  color: var(--muted);
}
.shot input[aria-invalid="true"] {
  border-color: var(--tally);
}

/* Shot arrangement: move, duplicate, remove, add (paid plans). */
.shot-tools {
  display: flex;
  gap: 2px;
  margin-top: -2px;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.shot:hover .shot-tools,
.shot:focus-within .shot-tools,
.shot.active .shot-tools {
  opacity: 1;
}
.shot-tool {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.shot-tool:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink);
}
.shot-tool:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 1px;
}
.shot-tool:disabled {
  opacity: 0.3;
  cursor: default;
}
.shot-tool[data-act="del"]:hover:not(:disabled) {
  color: var(--tally);
}
.shot-grip {
  cursor: grab;
  touch-action: none;
}
.script.is-dragging,
.script.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.shot.dragging {
  z-index: 5;
  opacity: 0.92;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transition: none;
}
.shot.drop-target {
  border-color: var(--tally);
  border-style: dashed;
  background: color-mix(in srgb, var(--tally) 6%, var(--surface));
}
.shot-add {
  display: grid;
  gap: 8px;
  align-content: start;
}
.shot-add-btn {
  min-height: 56px;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.shot-add-btn:hover,
.shot-add-btn[aria-expanded="true"] {
  border-color: var(--tally);
  color: var(--ink);
}
.shot-add-menu {
  display: grid;
  gap: 12px;
  padding: 4px 2px;
}
.shot-add-group {
  display: grid;
  gap: 6px;
}
.shot-add-h {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.shot-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shot-add-menu[hidden] {
  display: none;
}
.shot-add-menu button {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
}
.shot-add-menu button:hover {
  border-color: var(--tally);
}
.script.locked .shot-tools,
.script.locked .shot-add {
  display: none;
}
@media (hover: none) {
  .shot-tools {
    opacity: 1;
  }
}

/* ---------- side panel ---------- */
.panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100dvh - var(--header-h) - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  scrollbar-width: thin;
}
.panel-block {
  border-bottom: 1px solid var(--rule);
}
.panel-block:last-child {
  border-bottom: 0;
}
.panel-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
}
.panel-block > summary::-webkit-details-marker {
  display: none;
}
.panel-block > summary:hover .panel-h {
  color: var(--ink);
}
.panel-block > summary:focus-visible {
  outline-offset: -2px;
}
.panel-body {
  padding: 0 20px 20px;
}
.panel-h {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field > span:first-child {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 500;
}
.select-wrap {
  position: relative;
  display: block;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.6px solid var(--ink-2);
  border-bottom: 1.6px solid var(--ink-2);
  transform: rotate(45deg);
  pointer-events: none;
}
.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
}
.select-wrap select:hover {
  border-color: color-mix(in srgb, var(--ink) 25%, var(--rule));
}
.select-wrap select:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 1px;
}
.seg-aspect button {
  display: grid;
  place-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 4px 2px;
  line-height: 1.15;
}
.seg-aspect b {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
}
.seg-aspect small {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
}
.seg-aspect button[aria-checked="true"] small {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.seg-3 {
  grid-template-columns: repeat(3, 1fr);
}
.accent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.swatch-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--sw);
  box-shadow:
    inset 0 0 0 1px #0000002a,
    0 0 0 2px var(--surface),
    0 0 0 3px transparent;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.swatch:hover {
  box-shadow:
    inset 0 0 0 1px #0000002a,
    0 0 0 2px var(--surface),
    0 0 0 3px var(--rule);
}
.swatch[aria-checked="true"] {
  box-shadow:
    inset 0 0 0 1px #0000002a,
    0 0 0 2px var(--surface),
    0 0 0 4px var(--ink);
}
.swatch.custom {
  background: conic-gradient(from 0deg, #ff5a5a, #ffd23f, #3ddc84, #36c5f0, #7a5cff, #ff5ac8, #ff5a5a);
  overflow: hidden;
}
.swatch.custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.swatch.custom:has(input:focus-visible) {
  outline: 2px solid var(--tally);
  outline-offset: 3px;
}
.why-lede {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.5;
}
.panel-notes {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
}
.panel-notes li {
  border-left: 2px solid var(--tally);
  padding: 2px 0 2px 12px;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.panel-notes li b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 0;
}
.facts div {
  min-width: 0;
}
.facts dt {
  font-size: var(--text-xs);
  color: var(--muted);
}
.facts dd {
  margin: 3px 0 0;
  font-weight: 600;
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swatches {
  display: flex;
  gap: 4px;
}
.swatches i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #0000001f;
}

/* ---------- my films dialog ---------- */
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 14px;
}
.dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dialog-head p {
  margin: 4px 0 0;
}
.films-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 14px;
  overflow: auto;
}
.films-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 10px;
  border-radius: 12px;
}
.films-list li:hover {
  background: var(--paper);
}
.films-list li + li {
  border-top: 1px solid var(--rule);
}
.films-list li:hover + li,
.films-list li:hover {
  border-color: transparent;
}
.film-thumb {
  position: relative;
  width: 96px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--pbg);
  color: var(--pfg);
  box-shadow: inset 0 0 0 1px #0000001a;
}
.film-thumb i {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 30%;
  background: var(--pc);
}
.film-thumb b {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.film-meta {
  min-width: 0;
}
.film-meta b {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.film-meta span {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.film-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.film-actions .confirm {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-right: 4px;
}
.btn-danger {
  background: var(--tally);
  color: #fff;
  border-color: var(--tally);
}
.btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--tally) 88%, #000);
  border-color: transparent;
}
.films-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 22px 34px;
  text-align: center;
  color: var(--ink-2);
}
.films-empty p {
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .script {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1099px) {
  .studio-head {
    flex-wrap: wrap;
  }
  .studio-id {
    min-width: min(100%, 380px);
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .stage-col,
  .panel {
    display: contents;
  }
  .stage-wrap {
    order: 1;
  }
  .transport {
    order: 2;
  }
  .dl-row {
    order: 3;
  }
  .panel-block {
    order: 4;
  }
  .shots-block {
    order: 6;
    margin-top: 0;
  }
  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stage-wrap,
  .transport,
  .dl-row,
  .shots-block {
    grid-column: 1 / -1;
  }
  .transport {
    margin-top: -10px;
  }
  .dl-row:has(> :not([hidden])) {
    margin-top: -10px;
  }
  .dl-row:not(:has(> :not([hidden]))) {
    display: none;
  }
  #lookBlock {
    grid-row: span 2;
  }
  .panel-block {
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: var(--surface);
    align-self: start;
  }
  .panel-block:last-child {
    border-bottom: 1px solid var(--rule);
  }
  .stage-wrap {
    --stage-max: max(320px, calc(100dvh - var(--header-h) - 300px));
  }
}
@media (max-width: 760px) {
  .studio {
    padding: 12px 12px 96px;
    min-height: 0;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  #lookBlock {
    grid-row: auto;
    order: 4;
  }
  .shots-block {
    order: 5;
  }
  #whyBlock {
    order: 6;
  }
  #aboutBlock {
    order: 7;
  }
  .transport,
  .dl-row:has(> :not([hidden])) {
    margin-top: -6px;
  }
  .studio-head {
    display: block;
    margin-bottom: 14px;
  }
  .studio-title {
    font-size: 1.6rem;
  }
  .studio-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
  }
  .studio-actions .icon-btn,
  .studio-actions .btn-ghost,
  .studio-actions .btn-primary {
    height: 48px;
    min-height: 48px;
  }
  .studio-actions .icon-btn {
    width: 48px;
  }
  #exportBtn {
    min-width: 0;
    width: 100%;
  }
  body.studio-mode .toast {
    bottom: 88px;
  }
  .stage-wrap {
    --stage-max: 60dvh;
    border-radius: 12px;
  }
  .transport {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    row-gap: 8px;
  }
  .timeline {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 48px;
  }
  .transport-spacer {
    display: block;
  }
  .tc {
    text-align: left;
  }
  .tl-scenes > div {
    padding: 6px 6px 0;
  }
  .shots-head {
    margin-bottom: 10px;
  }
  .shot {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .glyph {
    width: 32px;
    height: 32px;
  }
  .glyph svg {
    width: 16px;
    height: 16px;
  }
  .panel-block > summary {
    padding: 0 16px;
  }
  .panel-body {
    padding: 0 16px 16px;
  }
  /* progress overlay: dots only */
  .scan-overlay {
    padding: 16px;
    gap: 18px;
  }
  .scan-now {
    font-size: 1.25rem;
  }
  .scan-sub {
    font-size: 13px;
  }
  .scan-stepnum {
    display: block;
  }
  .scan-steps {
    width: min(220px, 80%);
  }
  .scan-steps span {
    display: none;
  }
  .films-list li {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px 12px;
  }
  .film-thumb {
    width: 64px;
    height: 36px;
  }
  .film-thumb b {
    display: none;
  }
  .film-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }
}
@media (max-width: 420px) {
  .studio-actions #newUrlBtn span {
    display: none;
  }
  .studio-actions #newUrlBtn {
    width: 48px;
    padding: 0;
  }
}
@media (pointer: coarse) {
  .select-wrap select,
  .shot input,
  .seg button {
    min-height: 44px;
  }
  .select-wrap select {
    height: 44px;
  }
  .swatch {
    width: 44px;
    height: 44px;
  }
  .panel-block > summary {
    min-height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .status-pill .dot,
  .scan-steps li.active i,
  .stage.updating::before {
    animation: none;
  }
}

/* ---------- account + sign-in ---------- */
.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.user-info[hidden],
#signInBtn[hidden] {
  display: none;
}
.user-email {
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 var(--text-xs) / 1 var(--font-mono);
  color: var(--ink-2);
}

.dialog.login {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 18px;
}
.dialog.login[open] {
  animation: login-in 0.36s var(--ease);
}
.dialog.login[open]::backdrop {
  animation: login-fade 0.3s ease;
}
@keyframes login-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
}
@keyframes login-fade {
  from { opacity: 0; }
}

/* On phones, Sign out lives in the menu so the header keeps the menu button. */
@media (max-width: 760px) {
  #signOutBtn {
    display: none;
  }
}
#menuSignOut[hidden] {
  display: none;
}

/* Plan chip in the header: plan and films used this period. */
.plan-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.plan-chip:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.plan-chip:not([data-tier="free"]) {
  border-color: color-mix(in srgb, var(--tally) 45%, var(--rule));
  color: var(--tally-text);
}

/* Free films show the watermark in the preview exactly where the export puts it. */
.preview-mark {
  position: absolute;
  right: 2.6%;
  bottom: 3.6%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 1em;
  border-radius: 99px;
  background: #0f0f0ed1;
  color: #fff;
  font: 600 clamp(9px, 1.15vw, 14px) / 1 "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
}
.preview-mark i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #e3412b;
}
.preview-mark[hidden] {
  display: none;
}

.script-lock {
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tally-text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.script.locked input {
  cursor: default;
  color: var(--ink-2);
}
.script.locked input:focus {
  outline: none;
}

.export-quality {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-xs);
}
.export-quality[hidden] {
  display: none;
}
#remixBtn.is-locked::after {
  content: "Paid";
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--paper-2);
  color: var(--muted);
  font: 500 10px / 1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Upgrade prompt for plan limits. */
.dialog.upsell {
  width: min(420px, calc(100vw - 32px));
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-radius: 18px;
  text-align: center;
}
.dialog.upsell[open] {
  animation: login-in 0.36s var(--ease);
}
.dialog.upsell h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.upsell-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.upsell-close:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.upsell-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.upsell-actions [hidden] {
  display: none;
}
.upsell-actions .upsell-later {
  flex-basis: 100%;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.upsell-note {
  margin: var(--space-4) 0 0;
}
.upsell-note[hidden] {
  display: none;
}

/* That's a wrap: share the exported film. */
.dialog.share {
  width: min(480px, calc(100vw - 32px));
  text-align: left;
}
.dialog.share h2 {
  margin: 0;
  max-width: none;
}
.share-meta {
  margin: 8px 0 18px;
  color: var(--muted);
}
.share-caption {
  display: grid;
  gap: 6px;
}
.share-caption textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.5;
  resize: vertical;
}
.share-caption textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--tally) 45%, transparent);
  outline-offset: 1px;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.share-actions [hidden] {
  display: none;
}
.share-actions .btn-primary {
  flex-basis: 100%;
}
.share-tip {
  margin: var(--space-4) 0 0;
  line-height: 1.5;
}

/* The dark strip reads as the studio's playback monitor on standby. */
.login-monitor {
  position: relative;
  display: grid;
  place-items: center;
  height: 128px;
  margin: 6px 6px 0;
  border-radius: 13px;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff12, transparent 60%),
    var(--monitor);
  color: var(--on-monitor);
  overflow: hidden;
}
.login-mark {
  width: 44px;
  height: 44px;
}
.login-rec,
.login-take {
  position: absolute;
  top: 14px;
  font: 500 10px / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-monitor-muted);
}
.login-rec {
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.login-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tally) 25%, transparent);
  animation: blink 1.6s steps(2) infinite;
}
.login-take {
  right: 52px;
}
.login-track {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 3px;
}
.login-track b {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #ffffff1f;
}
.login-track b:nth-child(-n + 2) {
  background: var(--tally);
}

.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #ffffff0f;
  color: var(--on-monitor);
  cursor: pointer;
  transition: background 0.2s;
}
.login-close:hover {
  background: #ffffff26;
}
.login-close:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 2px;
}

.login-body {
  padding: var(--space-5) var(--space-6) var(--space-5);
  text-align: center;
}
.login-eyebrow {
  margin: 0 0 var(--space-2);
  font: 500 var(--text-xs) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tally-text);
}
.login-body h2 {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 1.95rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.login-sub {
  margin: var(--space-3) auto var(--space-5);
  max-width: 32ch;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}

/* Google renders its button in an iframe; this box only sizes and centres it. */
.google-signin {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.google-signin[hidden] {
  display: none;
}
.login-unavailable {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--rule));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink-2);
}

.login-points {
  display: grid;
  gap: 10px;
  width: fit-content;
  margin: var(--space-5) auto 0;
  padding: var(--space-4) 0 0;
  border-top: 1px dashed var(--rule);
  list-style: none;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-points li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    var(--tally);
}

.login-legal {
  margin: var(--space-5) 0 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--muted);
}
.login-legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.login-legal a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

@media (max-width: 480px) {
  .login-body {
    padding: var(--space-5) var(--space-4) var(--space-4);
  }
  .login-monitor {
    height: 104px;
  }
  .user-email {
    display: none;
  }
  .plan-chip {
    height: 28px;
    padding: 0 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dialog.login[open],
  .dialog.login[open]::backdrop,
  .dialog.upsell[open],
  .login-rec i {
    animation: none;
  }
}
