body:has(.rap-landing) { background: #f8f5ee; }
.rap-landing {
  --lp-text: #241d18;
  --lp-body: #453a31;
  --lp-muted: #625348;
  --lp-line: #dfd4c7;
  --lp-warm: #f3ebe0;
  --lp-warm-2: #eaded0;
  --lp-orange: #a33b13;
  --lp-orange-text: #9d3610;
  background: #f8f5ee;
}
.rap-landing .lp-hero { padding-block: clamp(24px, 4vw, 56px) 26px; background: transparent; }
.rap-landing .lp-hero > .rap-page-width {
  display: block;
  text-align: left;
}
.rap-landing .lp-hero :is(.lp-hero-copy, .lp-hero-lede) { max-width: 760px; }
.rap-landing .lp-hero h1 { font-size: clamp(38px, 6vw, 74px); letter-spacing: -.055em; }
.rap-landing .lp-dock { background: transparent; padding-block: 0 38px; }
.rap-landing .studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}
.rap-landing .studio-grid > * { min-width: 0; }
.rap-landing .studio-grid .rap-tool {
  --lp-text: #fff5e8;
  --lp-body: #f1dfcf;
  --lp-muted: #cdb9a9;
  --lp-line: #66554a;
  --lp-orange-text: #ffb786;
  width: 100%;
  margin: 0;
  padding: clamp(16px, 2.5vw, 30px);
  color: #fff5e8;
  background: #251e1b;
  border: 1px solid #45362e;
  border-radius: 20px;
  box-shadow: 0 12px 30px #39221524;
}
.rap-landing .rap-tool :is(.rap-upload, .rap-stage-choice, .rap-settings, input[type="text"], textarea) {
  color: #fff5e8;
  background: #342922;
  border-color: #806859;
}
.rap-landing .rap-tool :is(.rap-upload-name, .rap-settings-current, .rap-settings-current span, .rap-upload-label) {
  color: #f2decb;
}
.rap-landing .rap-tool .rap-upload { min-height: 110px; transition: background .16s, border-color .16s; }
.rap-landing .rap-tool .rap-upload:hover,
.rap-landing .rap-tool .rap-upload[data-drag-over],
.rap-landing .rap-tool .rap-upload:focus-within {
  background: #473126;
  border-color: #ff9b58;
  outline: 2px solid #ff9b58;
  outline-offset: -2px;
}
.rap-landing .rap-tool .rap-upload:has(img[data-preview]) .rap-upload-plus { display: none; }
.rap-landing .rap-tool .rap-upload:has(img[data-preview]) { border-style: solid; border-color: #e58b54; }
.rap-landing .rap-tool .rap-stage-choice:has(input:checked) {
  background: #54372a;
  box-shadow: inset 0 0 0 2px #ff9b58;
}
.rap-landing .rap-tool .rap-stage-choice strong { color: #fff5e8; }
.rap-landing .rap-tool .rap-primary { background: #ff9b58; color: #29190f; }
.rap-landing .rap-tool .rap-primary:hover:not(:disabled) { background: #ffc094; }
.rap-landing .rap-tool .rap-primary:disabled { background: #56463b; color: #e5d2c0; }
.rap-landing .rap-tool .rap-mode-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #46372f;
  border-color: #705c4f;
}
.rap-mode-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #ffbd8f;
  transition: transform .18s ease-out;
}
.rap-mode-switch:has(button:nth-of-type(2)[aria-pressed="true"])::before { transform: translateX(100%); }
.rap-landing .rap-tool .rap-mode-switch button { background: transparent; color: #fff5e8; box-shadow: none; }
.rap-landing .rap-tool .rap-mode-switch button[aria-pressed="true"] { color: #29190f; }
.rap-landing .studio-gallery {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px;
  list-style: none;
  background: #efe5d8;
  border: 1px solid #ded0be;
  border-radius: 20px;
  overflow: visible;
}
.rap-landing .studio-gallery > li { width: 100%; min-width: 0; margin: 0; transform: none; }
.studio-gallery [hidden] { display: none !important; }
.studio-gallery figure { margin: 0; }
.rap-landing .studio-gallery :is(.rap-video-frame, .rap-inline-video) { width: 100%; max-width: none; }
.rap-landing .studio-gallery .rap-inline-video { aspect-ratio: 4 / 5; background: #211a17; border-radius: 12px; overflow: hidden; }
.rap-landing .studio-gallery video { width: 100%; height: 100%; object-fit: contain; }
.studio-gallery .rap-inline-video-sound { display: none; }
.studio-play {
  position: absolute;
  inset: auto auto 12px 12px;
  z-index: 2;
  min-width: 72px;
  min-height: 42px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: #211915e8;
  color: white;
  cursor: pointer;
}
.studio-thumbs { display: flex; gap: 8px; padding: 3px; overflow-x: auto; scroll-snap-type: x proximity; }
.studio-thumbs button {
  flex: 0 0 66px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}
.studio-thumbs button[aria-pressed="true"] { border-color: #a33b13; }
.studio-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.studio-gallery :focus-visible, .rap-tool :focus-visible { outline: 2px solid #f17b31; outline-offset: 2px; }
.rap-upload-name { overflow-wrap: anywhere; }
.merge-help { margin: .35rem 0 .75rem; font-size: .875rem; color: #e6cdbb; }
.merge-result { margin-top: 1rem; padding: 1rem; border: 1px solid #c08761; border-radius: .75rem; overflow-wrap: anywhere; }
.merge-result img { display: inline-block; width: 4rem; height: 4rem; object-fit: cover; border-radius: .4rem; margin-right: .5rem; }
@media (max-width: 760px) {
  .rap-landing .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .rap-landing .studio-gallery .rap-inline-video { aspect-ratio: 4 / 3; }
  .rap-landing .rap-tool .rap-mode-switch { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rap-mode-switch::before, .rap-landing .rap-tool .rap-upload { transition: none; }
}
.studio-gallery .rap-inline-video { position: relative; }
.rap-landing .studio-grid > .studio-gallery {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  align-items: stretch;
  justify-content: stretch;
}
.rap-landing .studio-grid > .studio-gallery > li { width: 100%; max-width: none; }
.rap-landing .studio-gallery .rap-video-frame { background: #211a17; border-radius: 12px; }
.rap-landing .studio-gallery .rap-inline-video { aspect-ratio: 1; }
.rap-landing .rap-tool :is(.rap-field-help, .rap-topic summary, summary small, input::placeholder) { color: #e2c8b4; }
.rap-landing .rap-tool details > summary { color: #ffbd8f; }
@media (max-width: 760px) {
  .rap-landing .studio-gallery .rap-inline-video { aspect-ratio: 4 / 3; }
}
.rap-landing .rap-tool .rap-settings button {
  background: #45362d;
  border-color: #806859;
  color: #fff5e8;
}
.rap-landing .rap-tool .rap-settings button[aria-pressed="true"] {
  background: #ffbd8f;
  border-color: #ffbd8f;
  color: #29190f;
}
.rap-landing .rap-tool .rap-settings button :is(span, strong) { color: inherit; }
.rap-landing .rap-tool .rap-settings button:hover:not([aria-pressed="true"]) { background: #584336; }
