@font-face {
  font-family: Barlow Condensed;
  src: url("/assets/barlow-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #211f20;
  --muted: #706d6a;
  --hair: #e4e0da;
  --paper: #faf9f6;
  --accent: #db462b;
  --pale: #fff0e9;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font:
    15px/1.45 "Helvetica Neue",
    Arial,
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
a {
  font: inherit;
}
button,
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.dropzone:focus-within {
  outline: 3px solid #216ad2;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.defs {
  position: absolute;
  width: 0;
  height: 0;
}
.ico {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  left: 10px;
  top: -80px;
  z-index: 20;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--hair);
}
.header-inner,
main {
  max-width: 1450px;
  margin: auto;
  padding: 0 clamp(22px, 4.4vw, 78px);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 35px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -2.5px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 30px;
  transform: skew(-14deg);
}
.brand-mark i {
  width: 5px;
  border-radius: 2px;
  background: var(--accent);
  height: 14px;
}
.brand-mark i:nth-child(2) {
  height: 23px;
}
.brand-mark i:nth-child(3) {
  height: 30px;
}
.brand-mark i:last-child {
  height: 19px;
  align-self: flex-start;
  margin-top: 3px;
}
nav,
.header-actions,
.wallet,
nav a,
.guide,
.primary,
.reference,
.transport,
.save-motion,
.dialog-close {
  display: flex;
  align-items: center;
}
nav {
  gap: 5px;
}
nav a {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  gap: 8px;
  padding: 9px 13px;
  border-radius: 7px;
}
nav a[aria-current="page"] {
  background: var(--pale);
  color: #ac3823;
}
nav a:hover,
.guide:hover,
.wallet:hover,
.secondary:hover {
  background: #f6f3ef;
}
.header-actions {
  margin-left: auto;
  gap: 12px;
}
.wallet,
.guide,
.secondary {
  border: 1px solid #dedad5;
  background: #fff;
  border-radius: 7px;
  gap: 7px;
  font-weight: 550;
  font-size: 13px;
  padding: 8px 12px;
}
.wallet .ico {
  color: var(--accent);
  width: 16px;
}
main {
  padding-bottom: 45px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 25px;
}
.page-heading h1 {
  font-size: clamp(38px, 4.2vw, 66px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.05;
  margin: 0;
}
.page-heading h1 span {
  color: var(--accent);
}
.page-heading p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 9px 0 0;
}
.guide {
  background: transparent;
  white-space: nowrap;
}
.guide .ico {
  width: 16px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  grid-template-areas: "preview composer" "motions motions";
  gap: 28px;
  align-items: stretch;
}
.panel, .empty {
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: #fff;
}
.setup {
  grid-area: composer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 34px);
}
.setup-heading h2, .shelf-heading h2 {
  margin: 0;
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.setup-heading p { margin: 7px 0 19px; color: var(--muted); font-size: 14px; }
.motion-library { grid-area: motions; min-width: 0; }
.shelf-heading { display: flex; gap: 10px; align-items: center; margin: 4px 0 16px; }
.dance-count {
  padding: 4px 8px; border-radius: 100px; background: var(--pale);
  color: #803a26; font: 600 12px/1 var(--mono);
}
#to-setup { display: none; }
#composer-title { scroll-margin-top: 20px; }
.dance-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr));
  gap: clamp(18px, 2vw, 30px) clamp(12px, 1.5vw, 22px);
}
.style-card { min-width: 0; }
.card-preview {
  position: absolute; bottom: 7px; left: 7px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 7px; border-radius: 100px; background: #221a18d9; color: white;
  font-size: 11px; line-height: 1; font-weight: 600; pointer-events: none;
}
.card-preview .ico { width: 10px; height: 10px; fill: currentColor; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}
.style-pick {
  padding: 0;
  width: 100%;
  display: block;
  text-align: left;
  border-radius: 7px;
}
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #372b26;
  isolation: isolate;
}
.thumb video {
  display: block;
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: inherit;
}
.style-pick:hover video {
  filter: brightness(1.08);
}
.style-pick[aria-pressed="true"] .thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.style-pick strong,
.style-pick small {
  display: block;
}
.style-pick strong {
  font-size: 13px;
  line-height: 1.2;
  margin: 9px 0 2px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.style-pick small,
.dropzone small {
  font-size: 11px;
  color: var(--muted);
}
.checked {
  display: none;
}
.style-pick[aria-pressed="true"] .checked {
  position: absolute;
  right: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  background: var(--accent);
  color: white;
  border: 1px solid #fff8;
  border-radius: 50%;
}
.checked .ico {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.dropzone {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 9px; padding: 17px; min-height: 122px;
  background: #fcf6ef; border: 1.5px dashed #c9a899; border-radius: 11px; cursor: pointer;
  text-align: center;
}
.upload-copy { display: grid; gap: 3px; min-width: 0; }
.dropzone:hover,
.dropzone.over {
  border-color: var(--accent);
  background: #fff7f1;
}
.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-icon {
  color: var(--accent);
  background: #fff; border: 1px solid #eddbce;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  margin-bottom: 3px;
}
.dropzone strong {
  font-size: 16px;
  font-weight: 650;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.dropzone u {
  color: #b13e24;
  text-underline-offset: 2px;
}
.dropzone img {
  height: 50px;
  max-width: 110px;
  object-fit: contain;
  border-radius: 4px;
}
#photo-options {
  display: flex;
  align-items: start;
  gap: 8px;
  justify-content: space-between;
  margin: 11px 0 0;
  font-size: 12px;
  color: var(--muted);
}
#photo-options label {
  display: flex;
  gap: 5px;
}
#photo-options input {
  accent-color: var(--accent);
}
#remove-photo {
  font-size: 11px;
  text-decoration: underline;
  flex-shrink: 0;
}
#editor-error,
#player-error,
.error {
  color: #a32618;
  font-size: 12px;
}
#editor-error:empty,
#player-error:empty {
  display: none;
}
.generation-details {
  display: flex; gap: 12px; justify-content: space-between; align-items: end;
  padding: 17px 0 15px;
}
.generation-details small { display: block; margin-bottom: 3px; font-size: 12px; color: var(--muted); }
.generation-details strong { display: inline-flex; gap: 5px; align-items: center; font-size: 15px; }
.motion-change { display: inline-flex; gap: 6px; align-items: center; min-height: 25px; padding: 0; }
.motion-change:hover { color: #a33e28; }
.motion-change svg { transform: rotate(90deg); }
.generation-details div:last-child { text-align: right; }
.generation-details svg { color: #ad412c; width: 15px; }
.primary {
  padding: 13px 16px;
  gap: 9px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  justify-content: center;
  font-size: 14px;
  font-weight: 620;
}
.primary:hover {
  background: #c53e24;
}
.generate {
  width: 100%;
  position: relative;
}
.generate > .ico:last-child {
  position: absolute;
  right: 16px;
  width: 15px;
}
.generate:disabled {
  opacity: 0.65;
}
#mode-note {
  color: var(--muted);
  margin: 8px 0 -2px;
  text-align: center;
  font-size: 11px;
}
.save-motion,
.dialog-close {
  justify-content: center;
  border: 1px solid var(--hair);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  background: white;
}
.save-motion[aria-pressed="true"] {
  background: var(--pale);
  color: var(--accent);
}
.save-motion[aria-pressed="true"] svg {
  fill: currentColor;
}
.save-motion .ico {
  width: 14px;
}
.monitor {
  grid-area: preview; min-width: 0; overflow: hidden; align-self: stretch;
  display: flex; flex-direction: column; border-radius: 16px;
  background: #231b18; color: #fff;
}
.stage {
  flex: 1; position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(305px, 28vw, 418px);
  background: #37251e;
}
.stage::before {
  content: ""; position: absolute; inset: -20px; z-index: -2;
  background: var(--motion-image) center 40% / cover; filter: blur(28px) saturate(.8); opacity: .78;
}
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(100deg, #251714e8, #39221e9e 48%, #32252126 84%);
}
.stage video {
  position: absolute; right: 5%; width: 53%; height: 100%;
  object-fit: contain; cursor: pointer;
}
.reference, .save-motion {
  position: absolute; top: 18px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #ffffff45; color: white; background: #281f1cba; backdrop-filter: blur(6px);
}
.reference { left: 22px; border-radius: 20px; padding: 5px 10px; font-size: 11px; pointer-events: none; }
.reference i { height: 6px; width: 6px; border-radius: 50%; background: #ff9a70; }
#clip-duration:not(:empty) { padding-left: 6px; border-left: 1px solid #ffffff66; font-variant-numeric: tabular-nums; }
.save-motion { right: 18px; width: 34px; height: 34px; border-radius: 50%; }
.save-motion[aria-pressed="true"] { background: #a23b24; color: white; }
#big-play {
  position: absolute; top: 50%; left: 68.5%; transform: translate(-50%,-50%);
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center;
  color: #261e1c; background: #fffffff0; box-shadow: 0 2px 12px #19121020;
}
#big-play svg, #toggle svg { fill: currentColor; }
.caption {
  position: absolute; left: clamp(20px, 2.6vw, 38px); bottom: clamp(25px, 2.8vw, 42px);
  width: 42%; pointer-events: none; text-shadow: 0 2px 12px #22171455;
}
.caption small { font: 600 11px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: #ffd1ba; }
.caption h2 {
  margin: 6px 0 14px; font: 700 clamp(48px, 6.1vw, 94px)/.91 "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase; letter-spacing: -.025em; text-wrap: balance;
}
.motion-facts { display: flex; flex-wrap: wrap; gap: 6px 13px; font-size: 12px; color: #fff4ec; }
.motion-facts span { display: inline-flex; align-items: center; gap: 4px; }
.motion-facts svg { width: 14px; height: 14px; }
.transport { display: flex; align-items: center; gap: 7px; padding: 3px 14px; min-height: 39px; background: #251d1a; }
.transport button { display: grid; place-items: center; color: #fff; width: 32px; height: 32px; }
.transport button:hover { background: #ffffff26; border-radius: 50%; }
.transport svg { width: 15px; height: 15px; }
.transport span { font: 11px var(--mono); color: #e9dcd5; }
#seek { flex: 1; min-width: 25px; accent-color: #f18162; height: 4px; cursor: pointer; }
#player-error:not(:empty) { background: #fff4eb; margin: 0; padding: 8px 15px; }
.monitor:fullscreen, .monitor.expanded { background: #181514; }
.monitor.expanded { position: fixed; inset: 3vh 3vw; z-index: 10; box-shadow: 0 0 0 100vmax #000a; }
.monitor:is(:fullscreen,.expanded) .stage video { right: 0; width: 100%; }
.monitor:is(:fullscreen,.expanded) .caption { display: none; }
.monitor:is(:fullscreen,.expanded) #big-play { left: 50%; }
.empty {
  padding: 22px;
}
.empty h2 {
  font-size: 21px;
  margin: 0;
  letter-spacing: -0.04em;
}
.empty p,
.modal-body p,
.modal-body li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.empty p {
  margin: 7px 0 16px;
}
#new-dance { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
#new-dance .ico { width: 15px; color: #a33e28; }
.library-message:not(:empty) { margin: 0 0 16px; }
.library-more { display: block; margin: 20px auto; }
.film-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 246px), 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.film-card {
  position: relative; aspect-ratio: 1; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: 17px; background: #392725; color: #fff5eb;
  border: 1px solid #32201b26;
}
.film-cover, .film-ready:not(.is-playing)::after {
  position: absolute; inset: 0;
}
.film-cover { display: grid; place-items: center; }
.film-working .film-cover, .film-neutral .film-cover {
  background:
    radial-gradient(ellipse at 73% 34%, #b86c4c9c, transparent 47%),
    radial-gradient(ellipse at 31% 63%, #95463b80, transparent 57%),
    linear-gradient(145deg, #784733, #3d262a 65%, #291c20);
}
.film-neutral .film-cover { background: linear-gradient(135deg, #514540, #322a28); }
.film-working .film-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#ffe6cf40 .8px, transparent 1px); background-size: 7px 7px;
  mask-image: linear-gradient(150deg, #0009, transparent 76%);
}
.render-wave { display: flex; align-items: center; gap: 5px; transform: translateY(-14%) skew(-13deg); height: 25%; }
.render-wave i {
  width: clamp(5px, .65vw, 9px); height: 82%; background: #ffb78d;
  border-radius: 8px; box-shadow: 0 3px 22px #ef916e56; transform-origin: center;
  animation: render-pulse 1.8s ease-in-out infinite alternate;
}
.render-wave i:nth-child(1), .render-wave i:nth-child(7) { height: 25%; animation-delay: -.7s; }
.render-wave i:nth-child(2), .render-wave i:nth-child(6) { height: 45%; animation-delay: -.25s; }
.render-wave i:nth-child(3), .render-wave i:nth-child(5) { height: 68%; animation-delay: -.9s; }
@keyframes render-pulse { from { transform: scaleY(.66); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .render-wave i { animation: none; } }
.film-top, .film-copy { position: absolute; z-index: 1; left: 16px; right: 16px; pointer-events: none; }
.film-top { top: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.film-status, .film-time:not(:empty) {
  display: inline-flex; align-items: center; gap: 6px; color: #fff8f3;
  background: #231b1ccd; border: 1px solid #ffffff32; border-radius: 50px; padding: 4px 9px;
  font: 600 11px/1.3 "Helvetica Neue", Arial, sans-serif;
}
.film-status .ico { width: 13px; height: 13px; color: #b6efbc; }
.film-status i { width: 6px; height: 6px; border-radius: 50%; background: #ffad81; }
.film-time:not(:empty) { font-variant-numeric: tabular-nums; font-weight: 500; }
.film-copy { bottom: 18px; }
.film-download { pointer-events:auto; width:fit-content; margin-top:8px; padding:5px 10px; border:1px solid #ffffff75; border-radius:8px; color:white; background:#211c1dbb; font:inherit; font-size:12px; cursor:pointer; }
.film-download:focus-visible { outline:2px solid white; outline-offset:2px; }
.film-copy h2 { margin: 0; font: 700 clamp(26px, 2.6vw, 41px)/1 "Barlow Condensed","Arial Narrow",sans-serif; letter-spacing: -.018em; overflow-wrap: anywhere; }
.film-copy p { margin: 6px 0 0; max-width: 33ch; font-size: 12px; color: #f6e4d9; line-height: 1.45; }
.film-ready { background: #262120; }
.film-cover video { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.film-ready:not(.is-playing)::after { content: ""; pointer-events: none; background: linear-gradient(0deg,#171314e0,transparent 52%,#17131424); }
.film-play {
  position: absolute; z-index: 2; left: 50%; top: 47%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff7ed;
  color: #3d2c27; box-shadow: 0 2px 16px #23181744;
}
.film-play .ico { fill: currentColor; margin-left: 3px; }
.film-play:disabled { cursor: wait; opacity: .75; }
.film-card.is-playing { background: #161313; }
.film-card.is-playing video { object-fit: contain; }
.film-card.is-playing :is(.film-top,.film-copy,.film-play) { display: none; }
.film-actions { display: flex; align-items: center; gap: 12px; pointer-events: auto; margin-top: 10px; }
.video-actions { gap: 14px; flex-wrap: wrap; }
.video-actions .film-download { margin: 0; min-height: 32px; }
.video-actions .film-delete, .expired-delete { color: #fff; background: #211c1dbb; padding: 6px 9px; min-height: 32px; border-radius: 6px; }
.expired-delete { margin-top: 8px; pointer-events: auto; }
.film-delete:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.delete-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.confirm-delete { min-height: 42px; padding: 8px 15px; font-weight: 600; border-radius: 8px; color: #fff; background: #a23137; }
.confirm-delete:hover { background: #82252b; }
.delete-choices button:disabled { opacity: .6; cursor: wait; }
.film-actions .secondary { color: var(--ink); }
.film-delete { text-decoration: underline; font-size: 12px; }
@media (min-width: 520px) and (max-width: 830px) {
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  .film-grid { grid-template-columns: minmax(0, 1fr); max-width: 410px; }
  .film-copy h2 { font-size: 36px; }
  .film-copy p { font-size: 13px; }
}
.saved-grid {
  max-width: 710px;
}
.saved-item {
  position: relative;
}
.saved-item .unsave {
  font-size: 11px;
  text-decoration: underline;
  margin-top: 4px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
}
.dialog-close svg {
  width: 15px;
}
dialog {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 24px;
  width: min(410px, calc(100vw - 26px));
  background: white;
  color: var(--ink);
  box-shadow: 0 15px 70px #24201b30;
}
dialog::backdrop {
  background: #19161176;
  backdrop-filter: blur(4px);
}
.modal-body h2 {
  margin: 3px 24px 12px 0;
  letter-spacing: -0.04em;
}
.modal-body ol {
  padding-left: 22px;
}
.modal-body li {
  margin: 6px 0;
}
.modal-body video {
  width: 100%;
  max-height: 54vh;
  background: black;
}
.modal-body .primary {
  margin-top: 16px;
}
#toast:not(:empty) {
  position: fixed;
  z-index: 11;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 10px 14px;
  background: #272322;
  color: white;
  font-size: 13px;
}
@media (min-width: 761px) and (max-width: 1000px) {
  .header-inner, main { padding-inline: 22px; }
  .header-inner { gap: 18px; }
  nav a { padding-inline: 8px; }
  .workspace { gap: 18px; grid-template-columns: minmax(0, 1.22fr) minmax(285px, .9fr); }
}
@media (max-width: 760px) {
  .header-inner, main { padding-inline: 16px; }
  .header-inner { gap: 10px; height: 59px; }
  .brand { font-size: 30px; }
  nav { gap: 2px; }
  nav a { padding: 7px 6px; font-size: 12px; }
  nav a .ico { width: 15px; }
  .header-actions { gap: 6px; }
  .wallet { padding: 6px 8px; font-size: 12px; }
  .page-heading { margin: 18px 0 14px; }
  .page-heading h1 { font-size: 35px; }
  .page-heading p { font-size: 13px; margin-top: 3px; }
  .guide { padding: 7px 8px; }
  .workspace { grid-template-columns: minmax(0,1fr); grid-template-areas: "preview" "motions"; gap: 14px; }
  .workspace:not(.setup-open) .setup { display: none; }
  .workspace.setup-open { grid-template-areas: "preview" "composer" "motions"; }
  .workspace.setup-open #to-setup { display: none; }
  .stage { min-height: clamp(172px, 26svh, 235px); }
  .caption { left: 17px; bottom: 16px; }
  .caption h2 { font-size: clamp(33px, 9vw, 56px); margin: 4px 0 8px; }
  .caption small { font-size: 9px; }
  .caption h2 { overflow-wrap: anywhere; }
  .motion-facts { font-size: 11px; gap: 3px 8px; }
  .reference { top: 10px; left: 14px; font-size: 10px; padding: 3px 7px; }
  .save-motion { top: 9px; right: 10px; }
  .transport { min-height: 44px; padding-block: 0; }
  .transport button, .save-motion, .guide { min-width: 44px; min-height: 44px; }
  .guide { justify-content: center; }
  .shelf-heading { gap: 8px; margin: 0 0 10px; }
  .shelf-heading h2, .setup-heading h2 { font-size: 22px; }
  #to-setup {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto;
    min-height: 44px; padding: 0 6px; font-size: 13px; font-weight: 600; color: #903b24;
  }
  #to-setup .ico { width: 15px; height: 15px; transform: rotate(90deg); }
  .dance-grid, .tiles.saved-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .style-pick strong { font-size: 14px; margin-top: 8px; overflow-wrap: anywhere; }
  .style-pick small { font-size: 12px; line-height: 1.4; }
  .setup { padding: 14px; }
  .setup-heading p { margin: 2px 0 10px; font-size: 12px; }
  .dropzone { flex-direction: row; min-height: 60px; gap: 12px; padding: 8px 12px; text-align: left; }
  .upload-icon { margin: 0; }
  .generation-details { padding: 10px 0; }
}
@media (max-width: 860px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 8px; gap: 4px; }
  .header-inner nav { order: 2; width: 100%; justify-content: space-between; }
}
@media (max-width: 580px) {
  .guide { font-size: 0; }
}
@media (max-width: 540px) {
  .dance-grid, .tiles.saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
}
.pack-card { padding: clamp(20px, 3vw, 32px); }
.pack-card header, .pack-card header span, .pack-card button, .pricing-studio {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pack-card header { justify-content: space-between; }
.pack-card h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.pack-card header span { color: #94402e; font-size: 13px; font-weight: 600; }
.pack-price { margin: 24px 0 0; font: 700 62px/1 'Barlow Condensed', sans-serif; }
.pack-price small { margin-left: 10px; font: 500 13px/1.4 'Helvetica Neue', Arial, sans-serif; color: var(--muted); }
.estimate-picker { display: flex; gap: 10px; align-items: center; margin: 0 0 13px; font-size: 14px; }
.estimate-picker select { max-width: 62%; padding: 6px 10px; border: 1px solid var(--hair); border-radius: 7px; background: white; font: inherit; color: var(--ink); }
.pack-estimate { margin: 16px 0 24px; padding-top: 16px; border-top: 1px solid var(--hair); }
.pack-estimate strong, .pack-estimate span { display: block; }
.pack-estimate strong { font-size: 17px; letter-spacing: -.025em; }
.pack-estimate span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.pricing-studio p { color: var(--muted); font-size: 13px; }
.pack-card button { width: 100%; justify-content: space-between; }
.pricing-studio { max-width: 860px; justify-content: space-between; margin-top: 18px; }
.credit-link { display: inline-block; margin-top: 5px; text-decoration: underline; color: #94402e; }
.modal-body .pack-total { color: var(--ink); font-size: 18px; font-weight: 600; }
.checkout-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.checkout-actions .primary { margin: 0; gap: 8px; }
.account-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  background: var(--ink); color: white; font-size: 13px; font-weight: 600; border-radius: 7px; padding: 9px 13px;
}
.account-button:hover { background: #413935; }
.account-button .ico { width: 15px; height: 15px; }
.pricing-account {
  display: flex; gap: 12px; align-items: center; max-width: 860px; margin: 0 0 18px; padding: 15px 18px;
  border: 1px solid var(--hair); border-radius: 10px; background: white;
}
.account-emblem {
  display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%;
  background: var(--pale); color: #94402e;
}
.pricing-account div { min-width: 0; }
.pricing-account strong { font-size: 14px; overflow-wrap: anywhere; }
.pricing-account p, .checkout-status { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pricing-account button { margin-left: auto; white-space: nowrap; }
.pricing-studio .checkout-status { margin: 0; }
#pricing { max-width: 860px; margin-inline: auto; }
.modal-body [data-owner], #account-detail { overflow-wrap: anywhere; }
.auth-button { width: 100%; margin-top: 12px; }
.auth-button:disabled { opacity: .65; }
@media (max-width: 600px) {
  .pack-list { grid-template-columns: 1fr; gap: 12px; }
  .pricing-studio { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .header-inner nav { justify-content: space-between; gap: 2px; }
  .header-inner nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 44px; padding: 4px 0; white-space: nowrap; }
}

/* Keep the destination account and the download window together before checkout. */
.pack-facts { display: grid; grid-template-columns: 1.2fr 1fr; margin: 0 0 23px; border: 1px solid var(--hair); border-radius: 12px; background: white; }
.pack-facts .pricing-account, .storage-fact { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 18px; border: 0; }
.pack-facts .pricing-account { background: transparent; }
.pack-facts .pricing-account button { align-self: center; }
.storage-fact { border-left: 1px solid var(--hair); }
.pack-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.storage-fact strong { font-size: 14px; }
.storage-fact p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.checkout-policies a, .info-section p a:not(.secondary), .case-receipt > a { color: #8d3826; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--hair); }
.footer-inner { max-width: 1450px; margin: auto; padding: 20px clamp(16px,4.4vw,78px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner > span { color: var(--muted); font-size: 13px; }
.footer-inner nav { flex-wrap: wrap; }
.footer-inner nav a { padding: 6px 9px; }
.info-page { min-height: 100vh; display: flex; flex-direction: column; }
.info-page .header-inner { flex-wrap: nowrap; }
.back-studio { margin-left: auto; }
main.info-layout { width: min(100%,1100px); display: grid; flex: 1; grid-template-columns: 150px minmax(0,680px); gap: clamp(28px,6vw,88px); padding-top: clamp(28px,5vw,64px); padding-bottom: 56px; }
.info-menu { position: sticky; top: 24px; flex-direction: column; align-items: stretch; gap: 4px; }
.info-menu a { padding: 9px 12px; }
.info-intro h1 { font-size: clamp(40px,5vw,66px); line-height: 1.04; letter-spacing: -.055em; margin: 0; }
.info-intro h1 span { color: var(--accent); }
.info-intro p { font-size: 18px; line-height: 1.55; margin: 14px 0 10px; }
.info-intro small { color: var(--muted); font-size: 13px; }
.info-section { padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--hair); scroll-margin-top: 16px; }
.info-section h2 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.035em; }
.info-section p { margin: 8px 0; line-height: 1.65; }
.info-section details { padding: 13px 0; border-bottom: 1px solid var(--hair); }
.info-section summary { cursor: pointer; font-weight: 600; }
.info-cta { display: inline-block; margin-top: 6px; }
.case-form { display: grid; gap: 8px; margin-top: 15px; }
.case-form label, .case-receipt label { font-size: 14px; font-weight: 650; }
.case-form input, .case-form select, .case-form textarea, .case-receipt input { width: 100%; min-width: 0; border: 1px solid #bcb6ae; border-radius: 7px; padding: 11px 12px; font: inherit; color: var(--ink); background: white; }
.case-form textarea { resize: vertical; min-height: 112px; }
.case-form select { margin-bottom: 9px; }
.case-form button { justify-self: start; margin-top: 6px; }
.case-form .field-help, .case-form .form-status { margin: 0; font-size: 13px; color: var(--muted); }
.case-form .form-status:empty { display: none; }
.case-receipt { margin-top: 15px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 9px; background: white; }
.case-receipt h3 { margin: 0; }
.case-code-row { display: flex; gap: 8px; margin-top: 6px; }
.case-code-row input { font-family: var(--mono); }
.case-code-row button { white-space: nowrap; }
#copy-status { margin-left: 12px; font-size: 13px; }
#support-reply { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 710px) {
  .pack-facts { grid-template-columns: 1fr; }
  .storage-fact { border-left: 0; border-top: 1px solid var(--hair); }
  .pack-facts .pricing-account, .storage-fact { padding: 13px; }
  .info-page .header-inner { height: 60px; padding-block: 0; }
  main.info-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .info-menu { position: static; flex-direction: row; flex-wrap: wrap; }
  .info-menu a { padding: 7px 10px; }
  .info-intro p { font-size: 16px; }
  .footer-inner { flex-wrap: wrap; }
}

.account-credit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.account-credit-actions .credit-link { margin: 0; }
.modal-body .history-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin: 14px 0 6px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 13px; }
.history-balance strong { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 17px; }
.history-list { list-style: none; margin: 0; padding: 0; }
.modal-body .history-list li { display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; align-items: start; gap: 9px; margin: 0; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.history-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #834330; background: var(--pale); }
.history-icon .ico { width: 16px; height: 16px; }
.history-detail > * { display: block; }
.history-detail strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.history-detail small, .history-detail time { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.history-delta { font: 600 15px/1.5 var(--mono); color: var(--ink); }
.history-delta.positive { color: #24633e; }
.history-status:empty { display: none; }
.history-more { margin: 12px 0; }
.history-more[hidden] { display: none; }
.history-back { display: block; padding: 9px 0; margin-top: 9px; color: #85402d; text-decoration: underline; font-size: 13px; }
.film-reference { display: block; margin-bottom: 3px; color: #f9ece5; font: 10px/1.4 var(--mono); }

.photo-guide { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 14px; margin: 12px 0 15px; }
.photo-guide button { position: relative; padding: 0; overflow: hidden; border: 1px solid var(--hair); border-radius: 8px; color: white; }
.photo-guide img { width: 100%; height: auto; display: block; }
.photo-guide button span { position: absolute; bottom: 3px; right: 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #29201cc4; }
.photo-guide .ico { width: 11px; height: 11px; }
.photo-guide strong { font-size: 14px; }
.photo-guide p { margin: 4px 0; font-size: 13px; line-height: 1.4; }
.photo-guide small, #photo-check-status { color: var(--muted); font-size: 12px; line-height: 1.4; }
#photo-check-status { margin: 7px 0 0; }
#photo-check-status:empty { display: none; }
.example-full { display: block; width: 100%; height: auto; max-height: 62svh; object-fit: contain; background: var(--paper); border-radius: 8px; }
