:root {
  color-scheme: light;
  --ink: #121212;
  --paper: #f6f5f0;
  --surface: #fff;
  --yellow: #ffdc15;
  --lime: #c8f341;
  --line: #d7d6cf;
  --muted: #575954;
  --radius: 24px;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body,
figure,
h1,
h2,
p,
dl,
dd,
ul,
fieldset {
  margin: 0;
}
body {
  min-width: 0;
  container: studio / inline-size;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #3764e7;
  outline-offset: 3px;
}
h1:focus {
  outline: 0;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg:not(.icon-library) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.top {
  background: #111;
  color: #fff;
}
.top-inner {
  max-width: 1220px;
  margin: auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-workshop {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 17px;
}
.top-workshop svg {
  width: 17px;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 44px 24px 132px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5cqw, 76px);
  align-items: start;
}
.work,
.panel,
.field,
form,
.fold-body {
  min-width: 0;
}
.sample-card {
  position: sticky;
  top: 24px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  background: var(--yellow);
}
.cover-copy {
  padding: 32px 32px 28px;
}
.cover-kicker {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.cover-title {
  font-size: clamp(44px, 5.7cqw, 80px);
  line-height: 0.95;
  font-weight: 760;
  letter-spacing: -0.072em;
  margin-top: 14px;
}
.cover-image {
  aspect-ratio: 1.15;
  overflow: hidden;
}
.cover-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 49% 47%;
}
.sample-play {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 24px;
  font-weight: 650;
  font-size: 13px;
}
.sample-play svg {
  width: 14px;
}
.sample-play span {
  color: #e4e3df;
}
.step-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 18px;
}
.segments {
  display: flex;
  gap: 4px;
}
.segments i {
  width: 22px;
  height: 4px;
  border-radius: 8px;
  background: #deded8;
}
.segments i.active {
  background: #151515;
}
.panel {
  background: var(--surface);
  border: 1px solid #e1e0da;
  border-radius: var(--radius);
  padding: clamp(20px, 3cqw, 34px);
}
h1,
h2,
.cover-title {
  text-wrap: balance;
}
h1 {
  font-size: clamp(39px, 4.6cqw, 63px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  font-weight: 745;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.intro {
  font-size: 16px;
  line-height: 1.43;
  color: var(--muted);
  margin: 12px 0 24px;
}
form {
  display: grid;
  gap: 19px;
}
label,
legend {
  font-size: 15px;
  font-weight: 660;
  letter-spacing: -0.015em;
}
.field {
  display: grid;
  gap: 7px;
}
.field label span,
small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}
.field input,
.field select,
.field textarea,
#invite-link {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #c9cac3;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.35;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #73756e;
}
.field textarea {
  resize: vertical;
  min-height: 78px;
}
#saved-phrase-options {
  display: grid;
  justify-items: start;
}
#saved-phrase-options button {
  text-align: left;
  overflow-wrap: anywhere;
}
.field-meta,
.format-note,
.price-row,
.field-heading,
.order-head,
.dialog-head,
.list-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.field-meta {
  font-size: 12px;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
legend {
  margin-bottom: 8px;
}
.stress-choices {
  display: grid;
  gap: 8px;
}
.additional-children, .additional-child, .add-child-row {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.additional-child {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.additional-child > legend { padding-inline: 5px; margin: 0; }
.additional-child .remove-child, .add-child-row button { justify-self: start; }
.stress-row .choice { max-width: 100%; overflow-wrap: anywhere; }
#payment-name, #preview-instructions, #order-info { overflow-wrap: anywhere; }
.scene-options legend { margin-bottom: 3px; }
.scene-help, .scene-photo-tools p, .scene-option-detail {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.scene-option {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.scene-option:has(.scene-choice input:checked) { border-color: var(--ink); }
.scene-choice {
  min-height: 58px;
  display: grid;
  grid-template-columns: 19px 42px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.24;
}
.scene-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.scene-choice img { width: 42px; height: 42px; object-fit: cover; border-radius: 9px; background: var(--paper); }
.scene-choice strong { font-size: 13px; white-space: nowrap; }
.scene-choice:has(input:checked) { background: #f3f8df; }
.scene-choice:has(:focus-visible) { outline: 2px solid #334fa2; outline-offset: -3px; }
.scene-option-detail { margin: 0; padding: 0 12px 12px; }
.scene-option:has(.scene-choice input:checked) .scene-option-detail { background: #f3f8df; }
.scene-photo-tools { padding: 12px; }
.scene-photo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.scene-photo-tools p { width: 100%; }
.scene-upload {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px; border-radius: 22px;
  background: var(--ink); color: white; font-size: 13px;
}
#scene-options { scroll-margin-block: 20px; }
#greeting-form .format-note { border-top: 1px solid var(--line); padding-top: 12px; }
.scene-review { display: grid; gap: 4px; padding: 10px 0; font-size: 14px; }
.scene-review p { display: flex; justify-content: space-between; gap: 12px; }
.scene-review b { white-space: nowrap; }
.scene-phrase {
  display: block; min-height: 44px; margin: 4px 0; padding: 8px 13px;
  background: var(--paper); color: var(--ink); text-align: left;
  border: 1px solid var(--line); border-radius: 15px; font-size: 14px;
}
.scene-phrase::before { content: '+'; margin-right: 7px; }
.scene-phrase:disabled { opacity: .66; }
.scene-phrase[data-added=true]::before { content: '✓'; }
.stress-row,
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stress-row small {
  width: 100%;
}
.choice {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  font-weight: 590;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.choice[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.primary,
.secondary,
.back,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  line-height: 1.22;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.018em;
  text-align: center;
  padding: 11px 16px;
}
.primary {
  width: 100%;
  background: var(--ink);
  color: #fff;
  min-height: 50px;
}
.secondary {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #c8c9c1;
}
.primary:disabled,
.secondary:disabled {
  background: #d9dad4;
  color: #64665f;
}
.text-button,
.back {
  min-height: 44px;
  padding: 8px 0;
  justify-content: flex-start;
  background: none;
  color: var(--ink);
  font-size: 14px;
}
.text-button:disabled {
  color: #6b6d67;
}
.back {
  color: var(--muted);
  margin-bottom: 10px;
}
.back svg {
  width: 15px;
}
.list-heading {
  justify-content: flex-start;
}
.list-heading span,
.status-chip {
  border-radius: 24px;
  padding: 5px 10px;
  background: #e8e7e1;
  font-weight: 680;
  font-size: 12px;
}
.fold,
.subtle-fold {
  border-top: 1px solid var(--line);
}
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.fold summary,
.subtle-fold summary {
  min-height: 46px;
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  padding: 11px 24px 11px 0;
  font-weight: 620;
  font-size: 14px;
}
.fold summary::after,
.subtle-fold summary::after {
  content: '';
  position: absolute;
  right: 4px;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid;
  border-bottom: 1.7px solid;
  transform: rotate(45deg);
  top: 17px;
}
details[open] > summary::after {
  transform: rotate(225deg);
  top: 21px;
}
.fold summary span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.fold-body {
  display: grid;
  gap: 15px;
  padding: 4px 0 15px;
}
.format-note {
  padding: 13px 0 0;
  font-size: 14px;
}
.format-note span {
  font-weight: 700;
}
.subtle-fold {
  margin-top: 15px;
}
.subtle-fold summary {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.feedback,
.muted,
.receipt,
.eyebrow,
.invite p {
  font-size: 14px;
  line-height: 1.42;
  color: var(--muted);
}
.feedback {
  padding: 9px 12px;
  border-radius: 12px;
  background: #eeeee9;
}
.feedback.error {
  color: #8f271c;
  background: #fff0eb;
}
.buttons {
  display: grid;
  gap: 9px;
}
.video-frame {
  overflow: hidden;
  background: #141414;
  color: #fff;
  border-radius: 18px;
  margin: 17px 0 10px;
}
video {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #111;
}
.video-frame video,
dialog video {
  aspect-ratio: 16/9;
  object-fit: contain;
}
.video-caption {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 13px;
  font-size: 12px;
}
.video-caption span:last-child {
  color: #e9e9df;
}
.short-poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
#sample .format-note {
  margin-bottom: 14px;
}
.selection {
  margin: 12px 0;
  min-width: 0;
}
.selection div {
  padding: 8px 0;
  border-bottom: 1px solid #e4e4dd;
  display: grid;
  grid-template-columns: minmax(80px, 0.65fr) minmax(0, 1.35fr);
  gap: 10px;
}
.selection dt {
  font-size: 13px;
  color: var(--muted);
}
.selection dd {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.selection .script-summary {
  grid-template-columns: 1fr;
  gap: 4px;
}
.approval {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 570;
  cursor: pointer;
}
.approval input {
  flex: none;
  width: 19px;
  height: 19px;
  accent-color: var(--ink);
  margin: 1px 0 0;
}
.checkout-card {
  background: var(--yellow);
  border-radius: 19px;
  padding: 19px;
  margin-bottom: 16px;
}
.checkout-card > strong {
  display: block;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.checkout-card > span,
.checkout-card p,
.price-row {
  font-size: 14px;
}
.checkout-card small {
  display: block;
  margin-top: 5px;
  color: #403714;
}
.price-row {
  border-top: 1px solid #bca305;
  margin-top: 18px;
  padding-top: 12px;
}
.price-row strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}
.order-head {
  margin: 0 0 12px;
}
.eyebrow {
  font-size: 12px;
}
.status-chip[data-status='ready'] {
  background: var(--lime);
}
.status-chip[data-status='processing'] {
  background: #fff1b1;
}
.status-chip[data-status='failed'] {
  background: #f8ddd6;
}
.receipt {
  display: inline-block;
  font-size: 13px;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 12px;
}
#waiting-scene {
  position: relative;
  aspect-ratio: 800/686;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 16px;
  background: #fff;
}
#waiting-scene img,
#waiting-scene video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
#waiting-film {
  opacity: 0;
}
#waiting-film.playing {
  opacity: 1;
}
#order .intro {
  margin-bottom: 10px;
}
.letter-link,
#paid-detail,
#retry,
#retry-script {
  margin-top: 12px;
}
.invite {
  border-radius: 20px;
  background: #f1f0e9;
  padding: 18px;
  margin-top: 17px;
}
.invite h2 {
  font-size: 21px;
}
.invite p {
  margin-top: 8px;
}
.archive .list-heading {
  margin: 28px 0 14px;
}
.order-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
}
.order-card {
  display: grid;
  width: 100%;
  grid-template-columns: 70px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  color: var(--ink);
}
.order-card .order-thumb {
  width: 70px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}
.order-card strong {
  display: block;
  font-size: 19px;
  overflow-wrap: anywhere;
  letter-spacing: -0.03em;
}
.order-card .card-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.order-card small {
  font-size: 12px;
}
.order-card .status-chip {
  justify-self: start;
}
.order-excerpt {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--muted);
}
.order-card > svg {
  width: 18px;
}
.invite .secondary {
  margin-top: 12px;
}
.invite input {
  margin-top: 10px;
}
.shell[data-screen='archive'],
.shell[data-screen='order'],
.shell[data-screen='gift-scene'] {
  display: block;
  max-width: 760px;
}
.shell:is([data-screen='archive'], [data-screen='order'], [data-screen='gift-scene']) .sample-card {
  display: none;
}
.log {
  margin: 22px 4px 0;
}
.log .fold-body {
  font-size: 12px;
}
.log ul {
  padding-left: 18px;
  overflow-wrap: anywhere;
}
.dock {
  position: fixed;
  z-index: 5;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  width: min(365px, calc(100% - 24px));
  height: 62px;
  padding: 0 10px;
  border-radius: 40px;
  background: #101010;
  color: #fff;
  box-shadow: 0 5px 18px #0002;
}
.dock a {
  min-width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 650;
  min-height: 48px;
}
.dock a[aria-current='page'] {
  color: var(--lime);
}
.dock #menu-create {
  border-radius: 50%;
  height: 70px;
  width: 70px;
  background: #fff;
  border: 1px solid #e1e1dc;
  color: var(--ink);
  gap: 2px;
}
.dock-plus svg {
  width: 24px;
  height: 24px;
}
.dock #menu-create[aria-current='page'] {
  box-shadow: inset 0 0 0 3px var(--lime);
}
dialog {
  width: min(640px, calc(100cqw - 24px));
  padding: 12px;
  border: 0;
  border-radius: 24px;
  background: white;
  color: var(--ink);
}
dialog::backdrop {
  background: #000b;
}
.dialog-head {
  padding: 0 0 10px 8px;
}
.dialog-head button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eeeee9;
}
.dialog-head h2 {
  font-size: 22px;
}
dialog video {
  border-radius: 14px;
}
@media (hover: hover) {
  .primary:hover:not(:disabled),
  .sample-play:hover {
    background: #30302c;
  }
  .secondary:hover,
  .choice:hover:not([aria-pressed='true']),
  .order-card:hover {
    border-color: var(--ink);
  }
  .back:hover,
  .text-button:hover {
    text-decoration: underline;
  }
}
@container studio (max-width: 719px) {
  .top-inner {
    height: 60px;
    padding: 0 16px;
  }
  .top-workshop {
    font-size: 12px;
    min-height: 36px;
    padding: 0 12px;
  }
  .top-workshop svg {
    display: none;
  }
  .shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 14px 14px calc(105px + env(safe-area-inset-bottom));
  }
  .work {
    width: 100%;
  }
  .sample-card {
    position: relative;
    top: auto;
    width: 100%;
    min-height: 144px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    border-radius: 21px;
  }
  .cover-copy {
    padding: 17px 8px 14px 17px;
  }
  .cover-kicker {
    font-size: 11px;
  }
  .cover-title {
    font-size: clamp(32px, 8.5cqw, 45px);
    margin-top: 8px;
  }
  .cover-image {
    position: relative;
    aspect-ratio: auto;
    min-width: 0;
  }
  .cover-image img {
    position: absolute;
    inset: 0;
    object-position: 50% 46%;
  }
  .sample-play {
    bottom: 8px;
    left: auto;
    right: 8px;
    min-height: 31px;
    padding: 5px 8px;
    font-size: 11px;
    gap: 3px;
  }
  .sample-play svg {
    width: 12px;
  }
  .shell:not([data-screen='details']) .sample-card {
    display: none;
  }
  .step-line {
    margin: 0 2px 10px;
  }
  .panel {
    padding: 20px 16px;
    border-radius: 21px;
  }
  .intro {
    font-size: 15px;
    margin: 10px 0 17px;
  }
  form {
    gap: 14px;
  }
  h1 {
    font-size: 40px;
  }
  .archive {
    background: none;
    border: 0;
    padding: 8px 0;
  }
  .shell[data-screen='archive'] {
    padding-top: 23px;
  }
  .archive h1 {
    font-size: clamp(40px, 10.7cqw, 54px);
  }
}
@container studio (max-width: 350px) {
  .shell {
    padding-inline: 10px;
  }
  .top-inner {
    padding: 0 12px;
  }
  .cover-title {
    font-size: 31px;
  }
  .cover-copy {
    padding: 15px 7px 13px 14px;
  }
  .fold summary {
    flex-wrap: wrap;
    gap: 3px 6px;
  }
  .panel {
    padding: 17px 13px;
  }
  .archive {
    padding: 6px 0;
  }
  .dock {
    height: 56px;
  }
  .dock #menu-create {
    height: 63px;
    width: 63px;
  }
  .order-card {
    grid-template-columns: 52px minmax(0, 1fr) 16px;
    gap: 8px;
  }
  .order-card .order-thumb {
    width: 52px;
    height: 70px;
  }
}
@container studio (max-width: 380px) {
  #preview-title {
    font-size: 32px;
  }
  .cover-title {
    line-height: 0.98;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.55;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.gift-back {
  min-height: 44px;
  margin: -7px 0 5px;
  font-size: 0.85rem;
}
.gift-back span {
  margin-inline-end: 4px;
}
.gift-scene .intro {
  margin-bottom: 16px;
}
.gift-source {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf7;
}
.gift-source-info {
  display: flex;
  gap: 12px;
  align-items: center;
}
.gift-source-info img {
  flex: 0 0 64px;
  border-radius: 7px;
  background: var(--paper);
  object-fit: contain;
}
.gift-source-info p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}
.gift-source-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 7px;
}
.gift-source-actions button {
  min-height: 44px;
  font-size: 0.83rem;
}
.gift-source-actions .gift-file-button {
  position: relative;
  width: auto;
  min-height: 44px;
  padding: 7px 11px;
  cursor: pointer;
}
.gift-source-actions .gift-camera {
  display: none;
}
.gift-file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.gift-file-button:focus-within {
  outline: 3px solid #ac5924;
  outline-offset: 3px;
}
.gift-controls {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.gift-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}
.gift-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.89rem;
}
.gift-check input {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--spruce);
}
.gift-check-detail {
  margin-inline: 10px;
  padding-inline: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}
.gift-sample-preview,
.gift-sketch {
  margin-top: 16px;
}
.gift-sample-preview .video-caption {
  flex-wrap: wrap;
}
#gift-sample-message {
  padding: 0 12px 10px;
  color: #fff4df;
  font-size: 0.82rem;
}
.gift-sketch {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.gift-sketch-board {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  padding: 12px 10px;
  background: linear-gradient(160deg, #fcf4e3, #efe2c7);
}
.gift-prop {
  display: grid;
  flex: 1 1 0;
  align-content: end;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 104px;
  color: var(--ink);
  text-align: center;
  font-size: 0.81rem;
}
.gift-prop img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 82px;
  object-fit: contain;
}
.gift-sketch-empty {
  display: grid;
  place-items: center;
  width: min(100%, 96px);
  min-height: 54px;
  margin-bottom: 7px;
  border: 1px dashed #aa9576;
  border-radius: 8px;
  color: var(--muted);
}
.gift-parcel,
.gift-envelope {
  position: relative;
  display: block;
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgb(65 51 24 / 15%);
}
.gift-parcel {
  width: 55px;
  height: 47px;
  border: 1px solid #8e454d;
  border-radius: 4px;
  background: linear-gradient(90deg, #ad545a 44%, #f0c77c 45% 55%, #ad545a 56%);
}
.gift-parcel::after {
  content: '';
  position: absolute;
  inset: 45% 0 auto;
  height: 6px;
  background: #f0c77c;
}
.gift-envelope {
  width: 62px;
  height: 42px;
  border: 1px solid #a68b66;
  border-radius: 3px;
  background: #fff7de;
}
.gift-envelope::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 63%);
  background: #e5ce9e;
}
.gift-envelope::after {
  content: '';
  position: absolute;
  top: 43%;
  left: 44%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--berry);
}
.gift-envelope.is-open::before {
  inset: -21px 0 auto;
  height: 21px;
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
}
.gift-envelope.is-open::after {
  inset: 6px 10px auto;
  width: auto;
  height: 16px;
  border-radius: 0;
  background: repeating-linear-gradient(#b8a582 0 1px, transparent 1px 5px);
}
.gift-sketch-caption {
  padding: 8px 11px;
  background: #fffdf7;
  color: var(--muted);
  font-size: 0.82rem;
}
.gift-sketch-caption span {
  display: block;
  margin-top: 2px;
}

.gift-scene {
  --berry: #ad2832;
  --spruce: #181818;
  --body: inherit;
}
.home-link {
  width: 46px;
  height: 46px;
  min-height: 46px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: #242424;
  color: #fff;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.archive-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  margin-top: 24px;
}
.order-card {
  position: relative;
  grid-template-columns: clamp(62px, 29%, 114px) minmax(0, 1fr);
  padding: 11px;
  border-radius: 24px;
}
.order-card .order-thumb {
  width: 100%;
  height: 118px;
  border-radius: 14px;
}
.order-card .card-meta {
  padding-right: 8px;
}
.order-excerpt {
  max-width: calc(100% - 25px);
}
.card-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  right: 11px;
  bottom: 11px;
  background: var(--paper);
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.invite {
  background: #ffd600;
  border-radius: 24px;
}
.invite .secondary {
  color: white;
  background: #111;
  border-color: #111;
}
.invite {
  scroll-margin-bottom: 96px;
}
.invite:focus:not(:focus-visible) {
  outline: 0;
}
@container studio (min-width: 360px) and (max-width: 719px) {
  .top-inner {
    height: 68px;
  }
  .shell[data-screen='archive'] {
    padding: 26px 16px 110px;
  }
  .archive h1 {
    font-size: 52px;
    line-height: 58px;
    letter-spacing: -0.05em;
  }
  .archive .intro {
    font-size: 16px;
    line-height: 22px;
    margin: 12px 0 21px;
  }
  .archive .list-heading {
    margin: 36px 0 14px;
  }
  .archive .order-thumb {
    height: 136px;
  }
  .archive .order-card strong {
    font-size: 22px;
  }
}
@container studio (min-width: 900px) {
  .top-inner,
  .shell:not([data-screen='order']):not([data-screen='gift-scene']),
  .shell[data-screen='archive'] {
    max-width: 1440px;
    padding-inline: clamp(32px, 5.55cqw, 80px);
  }
  .dock {
    display: none;
  }
  .archive {
    background: none;
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
  }
  .archive > * {
    grid-column: 1/-1;
  }
  .archive h1 {
    grid-row: 1;
    grid-column: 1;
    font-size: clamp(60px, 6.1cqw, 80px);
  }
  .archive > .intro {
    grid-row: 2;
    grid-column: 1;
    font-size: 18px;
  }
  #archive-create {
    grid-row: 1/3;
    grid-column: 2;
    width: auto;
    padding-inline: 24px;
  }
  .archive .list-heading {
    margin-top: 42px;
  }
  .archive .order-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .archive .order-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .archive .order-thumb {
    height: auto;
    aspect-ratio: 2.55;
  }
  .archive .card-meta {
    padding: 6px 55px 11px 9px;
    min-height: 84px;
  }
  .archive .card-meta .status-chip {
    position: absolute;
    top: 21px;
    left: 21px;
  }
  .archive .card-meta strong {
    font-size: 27px;
  }
  .archive .card-arrow {
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: #111;
  }
  .archive .card-arrow img {
    filter: invert(1);
  }
  .invite {
    display: grid;
    grid-template-columns: 1fr max-content;
    gap: 0 24px;
    padding: 24px 28px;
  }
  .invite h2,
  .invite p {
    grid-column: 1;
  }
  .invite .secondary {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
    margin: 0;
    padding-inline: 22px;
  }
}
@container studio (min-width: 351px) and (max-width: 719px) {
  .shell {
    padding-inline: 16px;
  }
}
@container studio (max-width: 350px) {
  .shell {
    padding-inline: 12px;
  }
}
