/* Welcome screen (v76): owner's "Welcome to Lookrobe" reference. Always the dark brand palette, in light mode too,
   because the garment artwork is cut from the reference on its dark/beige grounds. Sizes are the reference's at
   402pt wide and scale with the sheet (cqw), with floors so text never gets too small on 320pt phones. */
#welcomeDialog.welcome-sheet {
  --wl-bg: #191b17; --wl-card: #1c1e1b; --wl-line: rgba(255,255,255,.085); --wl-ink: #f5efe4; --wl-sage: #cad8ba;
  --wl-muted: #9a988f; --wl-beige: #e9e0ce; --wl-beige-ink: #1d1f1b; --wl-num: #1f2a22; --wl-ico: #c4cbad;
  --wl-chip: #2e332f; --wl-chip-on: #f5f0e7; --wl-round: #2a2d28; --wl-btn-sage: #6c7d6d; --wl-cream: #f2ece2;
  color-scheme: dark;
  width: min(calc(100% - 16px), 440px); margin: auto; padding: 0; border: 1px solid var(--wl-line); border-radius: 24px;
  background: var(--wl-bg); color: var(--wl-ink); max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
#welcomeDialog.welcome-sheet::backdrop { background: rgba(14,15,13,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#welcomeDialog .sheet-content {
  container-type: inline-size; position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain;
  padding: 15px 8px 14px; display: flex; flex-direction: column;
}
#welcomeDialog .sheet-handle { width: 44px; height: 4.5px; margin: 0 auto; background: rgba(255,255,255,.2); flex: none; }
#welcomeDialog button { font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
#welcomeDialog .sheet-content:focus { outline: none; }
#welcomeDialog :focus-visible { outline: 2px solid var(--wl-sage); outline-offset: 2px; }

.wl-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; background: #141512; color: var(--wl-ink); cursor: pointer; }

/* Hero */
.wl-hero { position: relative; min-height: 47.4cqw; margin: 0 0 2.1cqw; flex: none; }
.wl-hero-copy { position: relative; z-index: 1; padding: 9.6cqw 0 0 4.1cqw; }
.wl-hero h2 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--wl-ink); letter-spacing: -.025em; font-optical-sizing: auto; }
.wl-hero h2 span { display: block; font-size: clamp(25px, 8.8cqw, 38px); line-height: 1.02; }
.wl-hero h2 em { display: block; margin-top: .06em; font-style: normal; font-size: clamp(32px, 11.5cqw, 50px); line-height: 1.04; color: var(--wl-sage); letter-spacing: -.03em; }
.wl-tag { max-width: 58cqw; margin: 5.4cqw 0 0; color: var(--wl-muted); font: 500 clamp(9px, 2.65cqw, 11.5px)/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.wl-hero-art { position: absolute; right: 2.7cqw; top: 9.6cqw; width: 39.8cqw; height: auto; pointer-events: none; user-select: none; }

/* Install hints (only when they apply) */
.wl-card { border: 1px solid var(--wl-line); border-radius: clamp(16px, 5cqw, 20px); background: var(--wl-card); }
.wl-install { display: flex; align-items: center; gap: 12px; margin: 0 0 1.9cqw; padding: 11px 12px; }
.wl-install[hidden] { display: none; }
.wl-install > div { flex: 1; min-width: 0; }
.wl-install strong { display: block; font-size: 13.5px; font-weight: 650; }
.wl-install span:not(.wl-round) { display: block; margin-top: 2px; color: var(--wl-muted); font-size: 12px; line-height: 1.38; }
.wl-round { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--wl-round); color: var(--wl-ink); }

/* Three steps */
.wl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 122fr 112.5fr 122fr; gap: 1.95cqw; flex: none; }
.wl-step { position: relative; aspect-ratio: 258 / 467; min-height: 168px; border-radius: clamp(14px, 4.9cqw, 20px); background: var(--wl-beige); color: var(--wl-beige-ink); overflow: visible; }
.wl-step:nth-child(2) { aspect-ratio: 238 / 467; }
.wl-step > img { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: auto; border-radius: 6px; pointer-events: none; user-select: none; }
.wl-num { position: absolute; z-index: 1; left: 2.15cqw; top: 1.5cqw; width: clamp(17px, 5.1cqw, 22px); height: clamp(17px, 5.1cqw, 22px); border-radius: 50%; display: grid; place-items: center; background: var(--wl-num); color: #f2ede2; font: 650 clamp(10px, 3.05cqw, 13px)/1 var(--sans); }
.wl-step-foot { position: absolute; left: 2.9cqw; right: 1.2cqw; bottom: 6.3cqw; display: flex; align-items: center; gap: clamp(5px, 2.2cqw, 10px); }
.wl-ico { flex: none; width: clamp(26px, 9.4cqw, 40px); height: clamp(26px, 9.4cqw, 40px); border-radius: 50%; display: grid; place-items: center; background: var(--wl-ico); color: #1d221c; }
.wl-ico svg { width: 56%; height: 56%; }
.wl-step-foot > span:last-child { min-width: 0; font: 450 clamp(9.5px, 2.85cqw, 12.5px)/1.32 var(--sans); color: #1b1d19; text-wrap: balance; }
/* arrow connectors sit on the gaps between cards */
.wl-step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; top: 47%; right: calc(-.975cqw - 3.4cqw); width: 6.8cqw; height: 6.8cqw; transform: translateY(-50%);
  border-radius: 50%; background: var(--wl-beige) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320221e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 7l5 5-5 5'/%3E%3C/svg%3E") center / 64% no-repeat;
}

/* Weather */
.wl-weather { position: relative; margin-top: 3.35cqw; min-height: 29.3cqw; display: grid; grid-template-columns: 1fr 41.4%; align-items: stretch; overflow: hidden; flex: none; }
.wl-weather-main { padding: 4.6cqw 0 4.2cqw 3.6cqw; display: grid; align-content: space-between; gap: 12px; min-width: 0; }
.wl-weather h3 { display: flex; align-items: center; gap: clamp(8px, 3cqw, 13px); margin: 0; color: #fff; font: 500 clamp(12.5px, 3.55cqw, 15.5px)/1.25 var(--sans); letter-spacing: -.01em; }
.wl-weather h3 svg { flex: none; width: clamp(22px, 6.8cqw, 28px); height: auto; }
.wl-chips { display: flex; gap: clamp(6px, 2.6cqw, 12px); padding-left: 2.4cqw; }
.wl-chip { flex: none; width: clamp(30px, 9cqw, 38px); height: clamp(30px, 9cqw, 38px); padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--wl-chip); color: #fff; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.wl-chip svg { width: 58%; height: 58%; }
.wl-chip[aria-pressed="true"] { background: var(--wl-chip-on); color: #1d1f1b; }
.wl-chip:active { transform: scale(.94); }
.wl-polaroids { position: relative; align-self: center; margin: 1.5cqw 1.5cqw 1.5cqw 0; aspect-ratio: 324 / 220; }
.wl-polaroids img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s, filter .3s; pointer-events: none; user-select: none; }
.wl-pol-warm { clip-path: inset(0 47.5% 0 0); }
.wl-pol-cold { clip-path: inset(0 0 0 52.5%); }
.wl-polaroids[data-wl-show="warm"] .wl-pol-cold, .wl-polaroids[data-wl-show="cold"] .wl-pol-warm { opacity: .5; filter: saturate(.6); }

/* Location */
.wl-location { margin-top: 1.95cqw; padding: 2.9cqw 3.4cqw 2.9cqw 3.4cqw; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(8px, 3cqw, 13px); flex: none; }
.wl-pin { width: clamp(36px, 10.8cqw, 46px); height: clamp(36px, 10.8cqw, 46px); }
.wl-location-copy { min-width: 0; }
.wl-location-copy strong { display: block; color: #fff; font: 600 clamp(13px, 3.9cqw, 16px)/1.2 var(--sans); }
.wl-location-copy span { display: block; margin-top: 3px; color: var(--wl-muted); font: 450 clamp(11.5px, 3.25cqw, 13.5px)/1.3 var(--sans); }
.wl-location-actions { display: grid; gap: 6px; width: clamp(118px, 34.3cqw, 148px); }
.wl-pill { position: relative; min-height: 30px; padding: 6px 10px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; background: transparent; color: #fff; font: 600 clamp(11.5px, 3cqw, 13px)/1.1 var(--sans); white-space: nowrap; cursor: pointer; }
.wl-pill::before { content: ""; position: absolute; inset: -3px 0; }
.wl-pill-sage { border-color: transparent; background: var(--wl-btn-sage); }
.wl-pill:disabled { opacity: .6; }
.wl-install .wl-pill { flex: none; padding-inline: 14px; }
@container (max-width: 330px) {
  .wl-step, .wl-step:nth-child(2) { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; padding: 27px 0 10px; }
  .wl-step > img { position: static; width: calc(var(--w) * .9); margin-left: var(--l); }
  .wl-step-foot { position: static; flex-direction: column; align-items: flex-start; gap: 4px; margin: auto 8px 0; }
  .wl-location { grid-template-columns: auto 1fr; }
  .wl-location-actions { grid-column: 1 / -1; width: auto; grid-template-columns: 1fr 1fr; }
  .wl-pill { min-height: 36px; }
}

/* Actions */
.wl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; margin: 16.5px 1.25cqw 0; padding-top: 15px; border-top: 1px solid var(--wl-line); flex: none; }
.wl-restore, .wl-add { min-width: 0; min-height: clamp(48px, 11.7cqw, 52px); border-radius: 99px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wl-restore { gap: clamp(8px, 3.4cqw, 14px); padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); background: #171915; color: #fff; text-align: left; }
.wl-restore svg { flex: none; width: clamp(20px, 6.3cqw, 26px); height: auto; }
.wl-restore span { min-width: 0; }
.wl-restore strong { display: block; font: 600 clamp(12.5px, 3.75cqw, 15.5px)/1.2 var(--sans); white-space: nowrap; }
.wl-restore small { display: block; margin-top: 2px; color: #8a8982; font: 450 clamp(10px, 2.9cqw, 12px)/1.2 var(--sans); white-space: nowrap; }
.wl-add { gap: clamp(6px, 3cqw, 13px); padding: 6px 12px; border: 0; background: var(--wl-cream); color: #151612; font: 600 clamp(14px, 4.2cqw, 17px)/1 var(--sans); white-space: nowrap; }
.wl-add { overflow: hidden; }
.wl-add span { flex: none; }
.wl-add .wl-chev { flex: 0 1 20px; min-width: 0; margin-left: clamp(0px, 2.4cqw, 12px); }
.wl-add > svg:first-child { flex: none; }
.wl-add:active, .wl-restore:active { transform: scale(.98); }
.wl-fine { margin: 12px 0 2px; text-align: center; color: #7f7e77; font: 450 11.5px/1.4 var(--sans); }
.wl-fine a { color: #b9b7ad; }
@media (prefers-reduced-motion: reduce) { .wl-polaroids img, .wl-chip { transition: none; } }
