* { box-sizing: border-box; }
:root {
  --ink: #202120;
  --muted: #737570;
  --line: #e5e6e3;
  --red: #c4142c;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
body, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #567762; outline-offset: -3px; }
.replay { position: relative; border: 1px solid #d9ddd9; border-radius: 13px; overflow: clip; background: #fff; }
.panes { position: relative; height: clamp(385px, 47vw, 455px); overflow: clip; }
.chat, .store { position: absolute; inset-block: 0; min-width: 0; background: white; }
.chat { inset-inline-start: 0; width: 100%; display: grid; grid-template-rows: 46px minmax(0, 1fr); }
.has-shop .chat { width: 46%; }
.chat-head, .store-head { display: flex; align-items: center; }
.chat-head { justify-content: space-between; padding: 4px 17px 3px 19px; }
.chat-name { font-size: 18px; font-weight: 600; letter-spacing: -.045em; }
.chat-logo { display: block; width: 23px; height: 23px; object-fit: contain; }
.chat-body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 0; padding-bottom: 44px; }
#welcome { padding: 0 16px; margin-bottom: 23px; text-align: center; font-size: clamp(27px, 3.4vw, 37px); font-weight: 525; line-height: 1.18; letter-spacing: -.037em; }
.has-messages #welcome { display: none; }
.thread { display: none; min-height: 0; width: min(100%, 620px); align-self: center; padding: 14px clamp(18px, 2.6vw, 30px); }
.has-messages .chat-body { justify-content: start; padding-bottom: 14px; }
.has-messages .thread { display: grid; align-content: center; flex: 1; }
.has-shop.typing .thread:has(#messages:empty) { display: none; }
.has-shop.typing .chat-body:has(#messages:empty) { justify-content: center; }
.prompt, .answer, .working { font-size: clamp(14px, 1.65vw, 16px); line-height: 1.42; letter-spacing: -.015em; text-wrap: pretty; }
.prompt { width: fit-content; max-width: 89%; margin-left: auto; padding: 9px 13px; border-radius: 18px; background: #f0f1ee; }
.answer, .working { margin-top: 14px; }
.answer { max-width: 94%; padding-inline: 1px; }
.working { display: flex; gap: 8px; align-items: center; color: #626660; }
.working::before { content: ''; flex: 0 0 12px; width: 12px; height: 12px; border: 1.6px solid #d2d5d0; border-top-color: #555951; border-right-color: #555951; border-radius: 50%; }
.attachments { display: flex; gap: 5px; }
.attachments:empty { display: none; }
.attachments img { width: 43px; height: 35px; object-fit: cover; border-radius: 6px; }
.prompt .attachments { margin-top: 7px; }
.composer { width: min(520px, calc(100% - 38px)); flex-shrink: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border: 1px solid #d9dcd7; border-radius: 23px; background: #fff; box-shadow: 0 2px 8px #16251d08, 0 1px 2px #16251d06; padding: 8px 9px 8px 17px; }
.draft-body { align-self: center; flex: 1; min-width: 0; line-height: 1.4; font-size: clamp(14px, 1.7vw, 16px); letter-spacing: -.012em; }
#draft-photos:not(:empty) { margin: 2px 0 5px; }
#draft:empty::before { content: 'Message ChatGPT'; color: #858781; }
.typing #draft:empty::before { content: none; }
.typing #draft::after { content: ''; display: inline-block; height: 1em; margin-left: 1px; border-left: 1.5px solid currentColor; vertical-align: -.15em; }
.send-icon { flex: 0 0 29px; display: grid; place-content: center; width: 29px; height: 29px; border-radius: 50%; color: white; background: #c6c8c4; }
.typing .send-icon { background: #222420; }
.send-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.has-messages .composer { width: min(600px, calc(100% - 30px)); margin-top: 6px; }
.store { inset-inline-end: 0; width: 54%; display: flex; flex-direction: column; visibility: hidden; opacity: 0; border-left: 1px solid var(--line); }
.has-shop .store { visibility: visible; opacity: 1; }
.store-head { flex: 0 0 47px; justify-content: center; border-bottom: 1px solid var(--line); background: #fff; }
.wordmark { display: inline-block; color: #171715; border: 1.2px solid currentColor; font-size: 12px; line-height: 1; font-weight: 560; letter-spacing: .20em; white-space: nowrap; padding: 6px 8px 5px 10px; }
.store-view { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.store[data-view="products"] .shop-hero,
.store[data-view="products"] #offer,
.store[data-view="home"] .market { display: none; }
.shop-hero { display: flex; align-items: flex-end; position: relative; min-height: 0; flex: 1; overflow: clip; isolation: isolate; background: #655451; color: white; }
.shop-hero img { z-index: -2; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.shop-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#180f1680,transparent 95%); }
.hero-title { padding: 12px clamp(12px, 2vw, 23px); font-size: clamp(29px, 4.5vw, 48px); font-weight: 740; line-height: .9; letter-spacing: -.065em; }
#offer { flex: none; display: flex; justify-content: center; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: white; background: var(--red); padding: 9px 6px; font-size: clamp(12px, 1.45vw, 15px); font-weight: 650; }
#offer::after { content: '→'; }
.market { min-height: 0; padding: clamp(14px, 2vw, 23px) clamp(11px, 1.7vw, 20px); }
.market h2 { margin-bottom: 12px; color: #181816; text-transform: uppercase; font-size: clamp(17px, 2.5vw, 26px); font-weight: 675; letter-spacing: -.05em; line-height: 1; }
#products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, .9vw, 11px); }
.product { min-width: 0; }
.product-media { position: relative; aspect-ratio: .78; overflow: clip; background: #eeeae4; }
.product-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.product-media img[src$="sweetheart.webp"] { object-position: 34% center; }
.product-media img.departing { z-index: 1; opacity: 0; pointer-events: none; }
.product h3 { margin: 7px 0 3px; font-size: clamp(11px, 1.5vw, 15px); font-weight: 610; line-height: 1.14; letter-spacing: -.025em; }
.prices { width: fit-content; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: clamp(11px, 1.45vw, 15px); }
.prices del { color: #6c6d67; font-size: .9em; } .prices strong { color: var(--red); font-weight: 650; }
#error, noscript p { padding: 12px 18px; }
noscript img { display: block; width: 100%; }
@media (max-width: 569px) {
  .panes { height: 455px; }
  .chat { width: 100%; height: 100%; grid-template-rows: 37px minmax(0,1fr); inset-block-end: auto; }
  .has-shop .chat { width: 100%; height: 48%; }
  .chat-head { padding: 1px 12px 0 13px; }
  .chat-logo { width: 20px; height: 20px; }
  .chat-name { font-size: 16px; }
  .store { top: auto; bottom: 0; width: 100%; height: 52%; border-left: 0; border-top: 1px solid var(--line); }
  .store-head { flex-basis: 33px; }
  .wordmark { font-size: 10px; padding: 4px 6px 3px 8px; }
  .thread { padding: 8px 13px 5px; }
  .has-shop.has-messages:not(.typing) .composer { display: none; }
  .prompt, .answer, .working, .draft-body { font-size: 14px; }
  .prompt { padding: 7px 11px; }
  .answer, .working { margin-top: 8px; }
  .has-messages .chat-body { padding-bottom: 8px; }
  .has-messages .composer { width: calc(100% - 20px); margin-top: 3px; padding: 5px 6px 5px 12px; }
  .has-messages .send-icon { flex-basis: 24px; width: 24px; height: 24px; }
  .has-messages .send-icon svg { width: 15px; height: 15px; }
  .attachments img { width: 32px; height: 26px; }
  .market { padding: 11px 10px 14px; }
  .market h2 { margin-bottom: 8px; font-size: 17px; }
  .product-media { height: min(26vw, 105px); aspect-ratio: auto; }
  .product h3 { font-size: 12px; margin-top: 6px; }
  .prices { font-size: 12px; }
}
@media (prefers-reduced-motion:no-preference) {
  .panes { transition: opacity .22s ease-in-out; }
  .rewinding .panes { opacity: 0; }
  .chat { transition: width .36s var(--ease), height .36s var(--ease); }
  .has-shop .store { animation: open-shop .36s var(--ease) both; }
  .working::before { animation: spin .8s linear infinite; }
  .typing #draft::after { animation: blink 1s step-end infinite; }
  .turn .prompt, .turn .answer, .turn .working { animation: appear .2s var(--ease) both; }
  .product.new, .prices.updated, #offer.reveal { animation: appear .36s var(--ease) both; }
  .product-media .departing { animation: remove-picture .4s var(--ease) both; }
  .paused *, .paused *::before, .paused *::after { animation-play-state: paused; }
  @keyframes open-shop { from { opacity: 0; transform: translateX(12px); } }
  @keyframes appear { from { opacity: .1; transform: translateY(3px); } }
  @keyframes remove-picture { from { opacity: 1; } to { opacity: 0; } }
  @keyframes spin { to { transform: rotate(1turn); } }
  @keyframes blink { 50% { opacity: 0; } }
}
@media (max-width:569px) and (prefers-reduced-motion:no-preference) {
  @keyframes open-shop { from { opacity: 0; transform: translateY(8px); } }
}
