/* ==========================================================================
   tryonlook app skin (2026-09-17)

   Loaded by views/partials/tryonlook-app-nav.hbs, i.e. on every tryonlook.com
   page that used to render a header. Every rule is scoped to `html.has-tla-nav`
   (set by that partial), so no other brand can be affected.

   1. The app menu (bottom tab bar) and removal of the old header space
   2. One image frame site-wide: 3:4 portrait
   3. The Closet page (views/dashboard/artifacts.hbs rendered at /closet)
   ========================================================================== */

html.has-tla-nav {
  --tla-bg: #f3f1ec;
  --tla-paper: #fbfaf7;
  --tla-sunk: #e7e4dc;
  --tla-ink: #15150f;
  --tla-ink-2: #4f4e46;
  --tla-ink-3: #85837a;
  --tla-line: rgba(21, 21, 15, .12);
  --tla-accent: #2f4a36;
  --tla-accent-soft: #dbe6dc;
  --tla-ratio: 3 / 4;
}

/* ── 1. App menu ────────────────────────────────────────────────────────── */

.tla-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1060;
  display: flex;
  align-items: center;
  gap: 2px;
  width: min(520px, calc(100vw - 20px));
  padding: 6px;
  border-radius: 999px;
  background: rgba(21, 21, 15, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.tla-tab {
  flex: 1 1 0;
  min-width: 0;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .6) !important;
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, color .2s ease;
}
.tla-tab i { font-size: 1.2rem; line-height: 1; }
.tla-tab:hover { color: #fff !important; }
.tla-tab.is-active { background: rgba(255, 255, 255, .13); color: #fff !important; }
.tla-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Room for the bar at the bottom of every page. */
html.has-tla-nav body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }

/* No header any more: the fixed-header spacer only clears the notch, the
   chips row stays hidden (live code still writes into it), and the app's old
   bottom bar gives way to this one. */
html.has-tla-nav .main-nav-spacer { height: env(safe-area-inset-top, 0px) !important; }
html.has-tla-nav #avatarMenuContainer.nav-action-bar { display: none !important; }
html.has-tla-nav .sticky-bottom-nav { display: none !important; }
/* The Outfit Studio overlay covers the page; its own floating button sits
   where the bar is, so the bar steps aside while it is open. */
html.has-tla-nav body:has(#os-root.is-open) .tla-nav,
html.has-tla-nav body:has(#os-root.is-open) .tla-top { display: none; }

/* ── 2. One image frame: 3:4 ────────────────────────────────────────────── */
/* Photos (products worn, try-ons, heroes) FILL the frame. Garment cut-outs on
   white are shown WHOLE inside it (contain), so nothing is cropped off. */

html.has-tla-nav .sh-card .sh-media,
html.has-tla-nav .sh-hero-figure,
html.has-tla-nav .sh-cat .sh-shot,
html.has-tla-nav .sh-tryon,
html.has-tla-nav .mp-media,
html.has-tla-nav .mp-card > a,
html.has-tla-nav .all-images-card,
html.has-tla-nav .os-result-card,
html.has-tla-nav .arf-card-img {
  aspect-ratio: var(--tla-ratio) !important;
}
html.has-tla-nav .sh-card .sh-media img,
html.has-tla-nav .sh-hero-figure img,
html.has-tla-nav .sh-cat .sh-shot img,
html.has-tla-nav .sh-tryon img,
html.has-tla-nav .mp-media img,
html.has-tla-nav .mp-card > a img,
html.has-tla-nav .all-images-card img,
html.has-tla-nav .os-result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.has-tla-nav .arf-card-img { background: #fff; }
html.has-tla-nav .arf-card-img img { object-fit: contain !important; padding: 8px; }

/* Studio item tiles: the grid fixes the row height (see outfit-studio.css), so
   the heights below are set to give ~3:4 tiles at each column width. */
html.has-tla-nav .os-grid { --os-card-h: 216px; }
@media (min-width: 640px) { html.has-tla-nav .os-grid { --os-card-h: 248px; } }
@media (max-width: 560px) { html.has-tla-nav .os-grid { --os-card-h: 228px; } }
html.has-tla-nav .os-tile { background: #fff; }
html.has-tla-nav .os-tile.os-tile-skeleton { aspect-ratio: var(--tla-ratio); }

/* ── 3. Closet (dashboard/artifacts.hbs on tryonlook) ───────────────────── */

html.has-tla-nav body.tla-closet {
  background: var(--tla-bg) !important;
  color: var(--tla-ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html.has-tla-nav body.tla-closet .artifacts-dashboard { padding-top: 24px; }
html.has-tla-nav body.tla-closet .arf-header h1 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--tla-ink);
}
html.has-tla-nav body.tla-closet .arf-header h1 i { display: none; }
html.has-tla-nav body.tla-closet .arf-header p,
html.has-tla-nav body.tla-closet .arf-section-head p { color: var(--tla-ink-2); }
html.has-tla-nav body.tla-closet .arf-section-head h2 { color: var(--tla-ink); }
html.has-tla-nav body.tla-closet .arf-btn-secondary {
  background: var(--tla-paper) !important;
  color: var(--tla-ink) !important;
  border: 1px solid var(--tla-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
html.has-tla-nav body.tla-closet .arf-btn-primary {
  background: var(--tla-ink) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
html.has-tla-nav body.tla-closet .arf-chip {
  background: var(--tla-paper) !important;
  color: var(--tla-ink-2) !important;
  border: 1px solid var(--tla-line) !important;
  border-radius: 999px !important;
}
html.has-tla-nav body.tla-closet .arf-chip.active {
  background: var(--tla-ink) !important;
  color: #fff !important;
  border-color: var(--tla-ink) !important;
}
html.has-tla-nav body.tla-closet .arf-card {
  background: var(--tla-paper) !important;
  border: 1px solid var(--tla-line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  overflow: hidden;
}
html.has-tla-nav body.tla-closet .arf-card-name { color: var(--tla-ink) !important; }
html.has-tla-nav body.tla-closet .arf-empty { color: var(--tla-ink-2); }

/* ── 4. Shop, product and store pages: the app palette ─────────────────── */
/* Same markup, same page; only the tokens change so /shop, /product and
   /store match the home page (stone ground, green accent, Manrope +
   Instrument Serif) instead of the older cream-and-Georgia shop skin. */

html.has-tla-nav:root {
  --sh-bg: #f3f1ec;
  --sh-surface: #fbfaf7;
  --sh-ink: #15150f;
  --sh-muted: #4f4e46;
  --sh-line: rgba(21, 21, 15, .12);
  --sh-sunken: #e7e4dc;
  --sh-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mp-bg: #f3f1ec;
  --mp-surface: #fbfaf7;
  --mp-ink: #15150f;
  --mp-muted: #4f4e46;
  --mp-line: rgba(21, 21, 15, .12);
  --mp-sunken: #e7e4dc;
  --mp-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --store-accent: #2f4a36;
  --store-accent-2: #2f4a36;
  --store-accent-grad: linear-gradient(135deg, #2f4a36 0%, #3d5c45 100%);
}
html.has-tla-nav body.sh-body,
html.has-tla-nav body.store-paper {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

/* ── 5. The Try on studio in the app font ──────────────────────────────── */
html.has-tla-nav .os-root,
html.has-tla-nav .os-root button,
html.has-tla-nav .os-root input,
html.has-tla-nav .os-root textarea,
html.has-tla-nav .os-root select {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.tla-tab.is-loading i { animation: tla-spin .9s linear infinite; }
@keyframes tla-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tla-tab.is-loading i { animation: none; } }

/* ── 6. Top floating bar: page menu + account ─────────────────────────── */
.tla-top {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  width: min(760px, calc(100vw - 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: rgba(251, 250, 247, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(21, 21, 15, .08);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #15150f;
}
.tla-top-page, .tla-top-account { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tla-top-page { overflow-x: auto; scrollbar-width: none; }
.tla-top-page::-webkit-scrollbar { display: none; }
.tla-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.45rem; line-height: 1; padding: 0 8px; white-space: nowrap; color: #15150f !important; text-decoration: none !important; }
.tla-top-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(21, 21, 15, .12); background: #fff;
  color: #15150f !important; font: 600 .82rem/1 'Manrope', system-ui, sans-serif;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.tla-top-btn i { font-size: 1rem; }
.tla-top-btn:hover { border-color: #15150f; }
.tla-top-btn.tla-icon { width: 38px; padding: 0; justify-content: center; }
.tla-top-btn.tla-primary, .tla-top-try { background: #15150f; border-color: #15150f; color: #fff !important; }
.tla-top-btn.tla-primary:hover, .tla-top-try:hover { background: #000; }
.tla-top-btn.is-loading i { animation: tla-spin .9s linear infinite; }
.tla-coins { background: #dbe6dc; border-color: transparent; }
.tla-avatar { display: block; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #2f4a36; flex: 0 0 auto; }
.tla-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tla-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #e7e4dc; flex: 0 0 auto; }
.tla-seg a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .82rem; color: #4f4e46 !important; text-decoration: none !important; }
.tla-seg a.is-on { background: #fff; color: #15150f !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tla-top-btn:focus-visible, .tla-seg a:focus-visible, .tla-avatar:focus-visible { outline: 2px solid #2f4a36; outline-offset: 2px; }
.tla-tab-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.tla-tab.is-active .tla-tab-avatar { box-shadow: 0 0 0 2px #fff; }

/* Room under the top bar on every page. */
html.has-tla-nav body { padding-top: calc(66px + env(safe-area-inset-top, 0px)) !important; }

@media (max-width: 640px) {
  .tla-top { padding-left: 6px; }
  .tla-top-btn span { display: none; }
  .tla-top-btn { width: 38px; padding: 0; justify-content: center; }
  .tla-coins { width: auto !important; padding: 0 10px !important; }
  .tla-coins span { display: inline !important; }
  .tla-seg a { padding: 8px 11px; }
  .tla-title { font-size: 1.25rem; }
}

/* ── 7. The account drawer: a bottom sheet on mobile ───────────────────── */
@media (max-width: 768px) {
  html.has-tla-nav #tryonSidebar.offcanvas-start {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    --bs-offcanvas-width: 100vw;
    height: auto !important;
    max-height: 85vh;
    border-radius: 22px 22px 0 0;
    border-right: 0 !important;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html.has-tla-nav #tryonSidebar.offcanvas-start.showing,
  html.has-tla-nav #tryonSidebar.offcanvas-start.show:not(.hiding) { transform: none; }
  html.has-tla-nav #tryonSidebar.offcanvas-start::before {
    content: ''; display: block; width: 40px; height: 4px; border-radius: 4px;
    background: rgba(21, 21, 15, .2); margin: 10px auto 0;
  }
}

/* Closet: Upload is the headline action, placed last (top right). */
html.has-tla-nav body.tla-closet .arf-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
html.has-tla-nav body.tla-closet #arf-upload-btn { order: 99; background: #15150f !important; color: #fff !important; border-color: #15150f !important; }
html.has-tla-nav body.tla-closet #arf-tryon-studio-btn { order: 98; background: #fff !important; color: #15150f !important; border: 1px solid rgba(21,21,15,.12) !important; }

/* ── 8. Page transition veil ───────────────────────────────────────────── */
.tla-veil {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: rgba(243, 241, 236, .72);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.tla-veil.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease, visibility 0s; }
/* Arrival: fades out by itself even if the script never runs. */
.tla-veil.is-arriving { animation: tla-veil-out .45s ease .25s forwards; }
@keyframes tla-veil-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.tla-veil-mark {
  font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2.4rem, 8vw, 3.6rem); color: #15150f;
  letter-spacing: -.01em; animation: tla-veil-pulse 1.1s ease-in-out infinite alternate;
}
.tla-veil-mark em { font-style: italic; color: #2f4a36; }
@keyframes tla-veil-pulse { from { transform: scale(.97); opacity: .75; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tla-veil, .tla-veil.is-on { transition: none; }
  .tla-veil-mark { animation: none; }
  .tla-veil.is-arriving { animation: none; opacity: 0; visibility: hidden; }
}

/* ── 9. Try-ons page heading in the app type ───────────────────────────── */
html.has-tla-nav body.tf-body { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; background: #f3f1ec; }
html.has-tla-nav .tf-head h1 {
  font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400 !important;
  font-size: clamp(2.2rem, 6vw, 3rem) !important; letter-spacing: -.01em !important; line-height: 1 !important;
}
html.has-tla-nav .tf-head p { font-family: 'Manrope', system-ui, sans-serif; color: #4f4e46 !important; }
.tla-top-btn.is-on { background: #15150f; color: #fff !important; border-color: #15150f; }

/* ── 10. Studio overlay: full height (there is no fixed header to sit under) ─ */
html.has-tla-nav .os-root { --os-nav-h: 0px; top: 0 !important; z-index: 1070; padding-top: env(safe-area-inset-top, 0px); }

/* ── 11. Plan upsell (opened on 402 SUBSCRIPTION_REQUIRED) ─────────────── */
.tla-upsell {
  position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px;
  background: rgba(21, 21, 15, .35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #15150f;
}
.tla-upsell.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.tla-upsell-panel {
  position: relative; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  background: rgba(251, 250, 247, .92); border: 1px solid rgba(255, 255, 255, .8); border-radius: 28px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); transform: translateY(12px); transition: transform .3s ease;
}
.tla-upsell.is-open .tla-upsell-panel { transform: none; }
.tla-upsell-hero { min-height: 100%; background: #e7e4dc; }
.tla-upsell-hero img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.tla-upsell-body { padding: 28px 26px 22px; display: grid; gap: 12px; align-content: start; }
.tla-upsell-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #2f4a36; }
.tla-upsell-body h2 { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.02; }
.tla-upsell-sub { margin: 0; color: #4f4e46; }
.tla-upsell-perks { list-style: none; padding: 0; margin: 2px 0; display: grid; gap: 6px; font-size: .92rem; }
.tla-upsell-perks i { color: #2f4a36; margin-right: 8px; }
.tla-upsell-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.tla-upsell-plan {
  position: relative; display: grid; gap: 2px; padding: 16px 12px 12px; border-radius: 18px; text-decoration: none !important;
  color: #15150f !important; background: #fff; border: 1px solid rgba(21, 21, 15, .12); transition: transform .15s ease, border-color .15s ease;
}
.tla-upsell-plan:hover { transform: translateY(-2px); border-color: #15150f; }
.tla-upsell-plan.is-featured { background: #15150f; color: #fff !important; border-color: #15150f; }
.tla-upsell-plan:focus-visible, .tla-upsell-x:focus-visible { outline: 2px solid #2f4a36; outline-offset: 2px; }
.tla-upsell-name { font-weight: 700; font-size: .85rem; opacity: .8; }
.tla-upsell-price { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tla-upsell-price small { font-family: 'Manrope', system-ui, sans-serif; font-size: .72rem; opacity: .7; margin-left: 3px; }
.tla-upsell-per { font-size: .74rem; opacity: .7; font-variant-numeric: tabular-nums; }
.tla-upsell-allow { font-size: .74rem; font-weight: 700; color: #2f4a36; }
.tla-upsell-plan.is-featured .tla-upsell-allow { color: #dbe6dc; }
.tla-upsell-save { position: absolute; top: -9px; right: 10px; padding: 3px 8px; border-radius: 999px; background: #2f4a36; color: #fff; font-size: .66rem; font-weight: 700; }
.tla-upsell-fine { margin: 2px 0 0; font-size: .76rem; color: #85837a; }
.tla-upsell-x {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; color: #15150f;
}
@media (max-width: 720px) {
  .tla-upsell { place-items: end center; padding: 0; }
  .tla-upsell-panel { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; max-height: 92vh; }
  .tla-upsell-hero img { aspect-ratio: 16 / 9; object-position: center 30%; }
  .tla-upsell-plans { grid-template-columns: 1fr; }
  .tla-upsell-plan { grid-template-columns: 1fr auto; align-items: center; }
  .tla-upsell-plan .tla-upsell-per, .tla-upsell-plan .tla-upsell-allow { grid-column: 1; }
  .tla-upsell-plan .tla-upsell-price { grid-row: 1 / span 3 !important; }
  .tla-upsell-plan .tla-upsell-price { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .tla-upsell, .tla-upsell-panel { transition: none; } }

/* ── 12. Studio skeleton (first open while it loads) ───────────────────── */
.tla-studio-skel {
  position: fixed; inset: 0; z-index: 1069; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, #f6f6f7 0%, #fff 42%); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.tla-studio-skel.is-on { opacity: 1; visibility: visible; transition: opacity .15s ease; }
.tla-skel-sheet {
  width: min(100% - 1.6rem, 1080px); height: calc(100% - 90px); margin-bottom: .6rem; border-radius: 24px;
  background: #fff; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35); padding: 16px; display: grid; gap: 14px; align-content: start;
  transform: translateY(24px); transition: transform .35s ease;
}
.tla-studio-skel.is-on .tla-skel-sheet { transform: none; }
.tla-skel-bar { height: 36px; border-radius: 999px; }
.tla-skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tla-skel-grid span { aspect-ratio: 3 / 4; border-radius: 14px; }
.tla-skel-bar, .tla-skel-grid span {
  background: linear-gradient(110deg, #f0efeb 30%, #e4e2dc 50%, #f0efeb 70%); background-size: 200% 100%;
  animation: tla-shimmer 1.2s ease-in-out infinite;
}
@keyframes tla-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 560px) { .tla-skel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tla-skel-bar, .tla-skel-grid span { animation: none; } .tla-skel-sheet { transition: none; } }

/* ── 13. The wardrobe ground (2026-09-18) ──────────────────────────────────
   Every tryonlook page sits on the same surface as the app's own artwork: warm
   stone paper with the faint pegboard dot grid, lifted by two soft washes (sage
   top-left, sand top-right). Fixed, so it stays still while the page scrolls
   and reads as one room rather than a repeating tile.

   `!important` because several pages paint `body` from their own tokens
   (`.sh-body` on the shop, `.mp-*` on a product, `.ol-body` on Outfits) in a
   style block that loads after this file. Panels, sheets and cards stay opaque
   or frosted, so text never sits directly on the dots.                      */
html.has-tla-nav body { background-color: var(--tla-bg) !important; }
/* THE GROUND GOES ON `body::before`, NOT ON `body`.
   public/css/style.css paints a FIXED, full-viewport `body::before` in
   `--surface-page` (white) at z-index -2 — above the body's own background
   layer — so a pattern set on `body` is invisible behind it. That is why the
   first version of this looked like nothing had shipped. */
html.has-tla-nav body::before {
  background-color: var(--tla-bg) !important;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21, 21, 15, .16) 1.4px, transparent 0),
    radial-gradient(900px 520px at 8% -8%, rgba(150, 175, 150, .55) 0%, rgba(150, 175, 150, 0) 62%),
    radial-gradient(760px 460px at 104% 2%, rgba(209, 180, 140, .5) 0%, rgba(209, 180, 140, 0) 58%) !important;
  background-size: 20px 20px, auto, auto !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
}/* The studio overlay is its own room (monochrome fitting room) — leave it. */
html.has-tla-nav .os-root { background: linear-gradient(180deg, var(--os-bg-top) 0%, var(--os-bg-bottom) 42%); }

/* ── 14. Closet: clean cards, one item sheet (2026-09-18) ─────────────────
   A card used to carry a row of floating icon buttons; on the app shell it
   shows the piece and its tags, and tapping it opens the sheet below with the
   actions as round buttons (public/js/dashboard-artifacts.js).             */
html.has-tla-nav body.tla-closet .arf-card-actions { display: none !important; }
html.has-tla-nav body.tla-closet .arf-card { cursor: pointer; transition: transform .18s ease, box-shadow .2s ease; }
html.has-tla-nav body.tla-closet .arf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(21, 21, 15, .5) !important; }
html.has-tla-nav body.tla-closet .arf-card:active { transform: scale(.985); }

.arf-sheet {
  position: fixed; inset: 0; z-index: 2090; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(21, 21, 15, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
.arf-sheet.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.arf-sheet-panel {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: #fbfaf7; border-radius: 26px 26px 0 0; padding: 14px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(14px); transition: transform .32s cubic-bezier(.16, 1, .3, 1);
  display: grid; gap: 12px; justify-items: center;
}
.arf-sheet.is-open .arf-sheet-panel { transform: none; }
.arf-sheet-x {
  width: 42px; height: 6px; border: 0; padding: 0; border-radius: 999px; background: rgba(21, 21, 15, .18);
  font-size: 0; color: transparent; cursor: pointer;
}
.arf-sheet-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.arf-sheet-shot {
  width: min(320px, 78%); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 21, 15, .08);
}
.arf-sheet-shot img { width: 100%; height: 100%; object-fit: contain; padding: 10px; display: block; }
.arf-sheet-name { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 1.5rem; text-align: center; padding: 0 20px; color: #15150f; }
.arf-sheet-acts {
  width: 100%; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 20px 2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.arf-sheet-acts::-webkit-scrollbar { display: none; }
.arf-sheet-act {
  flex: 0 0 auto; width: 88px; border: 0; background: none; padding: 0; cursor: pointer; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 8px; font: 600 .78rem/1.2 inherit; color: #4f4e46; text-align: center;
}
.arf-sheet-act-icon {
  width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; font-size: 1.5rem; color: #15150f;
  background: #efece5; box-shadow: inset 0 -3px 0 rgba(21, 21, 15, .07), 0 6px 14px -8px rgba(21, 21, 15, .4);
  transition: transform .16s ease, background .18s ease;
}
.arf-sheet-act:hover .arf-sheet-act-icon { transform: translateY(-2px); background: #e6e2d8; }
.arf-sheet-act:active .arf-sheet-act-icon { transform: scale(.94); }
.arf-sheet-act.is-danger .arf-sheet-act-icon { color: #a23b2a; }
.arf-sheet-act:focus-visible .arf-sheet-act-icon { outline: 2px solid #2f4a36; outline-offset: 3px; }

/* ── 15. App-shaped buttons: a small card with a bigger icon ─────────────── */
html.has-tla-nav body.tla-closet .arf-header-actions .arf-btn-secondary,
html.has-tla-nav body.tla-closet .arf-header-actions .arf-btn-primary {
  flex-direction: column !important; gap: 6px !important; width: 92px; height: 82px; padding: 10px 6px !important;
  border-radius: 20px !important; font-size: .74rem !important; line-height: 1.15; text-align: center;
  box-shadow: inset 0 -3px 0 rgba(21, 21, 15, .06), 0 8px 18px -12px rgba(21, 21, 15, .45) !important;
  transition: transform .16s ease, box-shadow .2s ease;
}
html.has-tla-nav body.tla-closet .arf-header-actions .arf-btn-primary {
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .18), 0 10px 20px -12px rgba(21, 21, 15, .6) !important;
}
html.has-tla-nav body.tla-closet .arf-header-actions [class*="arf-btn"] i { font-size: 1.35rem; }
html.has-tla-nav body.tla-closet .arf-header-actions [class*="arf-btn"]:hover { transform: translateY(-2px); }
html.has-tla-nav body.tla-closet .arf-header-actions [class*="arf-btn"]:active { transform: translateY(0) scale(.96); }
@media (max-width: 560px) {
  html.has-tla-nav body.tla-closet .arf-header-actions { gap: 8px; overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  html.has-tla-nav body.tla-closet .arf-header-actions::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .arf-sheet, .arf-sheet-panel, .arf-sheet-act-icon,
  html.has-tla-nav body.tla-closet .arf-card { transition: none; }
}

/* ── 16. The outfit scanner, in the app's clothes (2026-09-18) ─────────────
   public/js/image-save-artifact.js injects its own (chat-era) styles; these
   restyle it for tryonlook without touching that file, so the chat keeps its
   look. Same flow: scan the photo, tick the pieces, each is cut out.        */
html.has-tla-nav .sa-modal {
  background: rgba(21, 21, 15, .38) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  align-items: flex-end !important; padding: 0 !important;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
html.has-tla-nav .sa-sheet {
  background: #fbfaf7 !important; color: #15150f !important;
  max-width: 560px !important; max-height: 92vh !important;
  border-radius: 26px 26px 0 0 !important;
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .55) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: tla-sheet-up .34s cubic-bezier(.16, 1, .3, 1);
}
@keyframes tla-sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
html.has-tla-nav .sa-head {
  border-bottom: 0 !important; padding: 16px 20px 6px !important;
  font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400 !important; font-size: 1.5rem !important;
}
html.has-tla-nav .sa-close { color: #15150f !important; }
html.has-tla-nav .sa-body { padding: 4px 20px 16px !important; }
html.has-tla-nav .sa-intro img { width: 92px !important; height: 122px !important; border-radius: 16px !important; }
html.has-tla-nav .sa-intro p, html.has-tla-nav .sa-hint { color: #4f4e46 !important; }
html.has-tla-nav .sa-cat-title { color: #85837a !important; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem !important; }
html.has-tla-nav .sa-item {
  background: #fff !important; border: 1px solid rgba(21, 21, 15, .1) !important; border-radius: 18px !important;
}
html.has-tla-nav .sa-item-label { color: #15150f !important; }
html.has-tla-nav .sa-item-desc { color: #85837a !important; }
html.has-tla-nav .sa-foot { border-top: 0 !important; padding: 8px 20px calc(18px + env(safe-area-inset-bottom, 0px)) !important; background: transparent !important; }
html.has-tla-nav .sa-btn, html.has-tla-nav .sa-detect-btn, html.has-tla-nav .sa-generate-btn {
  background: #15150f !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  font: 700 .95rem/1 'Manrope', system-ui, sans-serif !important; padding: 15px 22px !important; width: 100%;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .16), 0 10px 22px -14px rgba(21, 21, 15, .8) !important;
}
html.has-tla-nav .sa-retry-btn, html.has-tla-nav .sa-close-btn {
  background: #efece5 !important; color: #15150f !important; border: 0 !important; border-radius: 999px !important;
}
html.has-tla-nav .sa-check { accent-color: #2f4a36; }
/* "Extract outfit" is the closet's magic action: give it the accent. */
html.has-tla-nav body.tla-closet #arf-scan-btn {
  background: #dbe6dc !important; color: #2f4a36 !important; border-color: transparent !important;
}
html.has-tla-nav body.tla-closet #arf-scan-btn.is-loading i { animation: tla-spin .9s linear infinite; }
