/* ============================================================
   Excessorize v3 — "Atelier"
   Premium-native, HIG-grounded. Two full themes:
   porcelain daylight + refined noir. One champagne accent.
   No build step. System fonts only (SF Pro / New York on iOS).
   ============================================================ */

:root {
  color-scheme: light;
  /* ground */
  --bg0: #F5F2EB;
  --bg1: #FBF9F4;
  --surface: #FFFFFF;
  --surface-2: #F2EEE5;
  /* ink */
  --ink: #1D1913;
  --sec: #665D4F;
  --ter: #78705F;
  /* champagne / bronze accent (AA on light ground) */
  --gold: #85621D;
  --gold-strong: #6E5118;
  --gold-tint: rgba(146, 111, 38, 0.10);
  --gold-tint-border: rgba(146, 111, 38, 0.22);
  /* primary button keeps the champagne identity in both themes */
  --gold-ink: #241B0B;
  /* lines & shadow */
  --hairline: rgba(29, 25, 19, 0.12);
  --hairline-strong: rgba(29, 25, 19, 0.18);
  --shadow-card: 0 1px 2px rgba(29, 25, 19, 0.05), 0 8px 28px rgba(29, 25, 19, 0.07);
  --shadow-float: 0 12px 40px rgba(29, 25, 19, 0.16);
  /* semantics */
  --danger: #B0392E;
  --danger-tint: rgba(176, 57, 46, 0.10);
  --info: #55705F;
  --info-tint: rgba(85, 112, 95, 0.10);
  --scrim: rgba(23, 19, 13, 0.42);
  /* imagery backdrop */
  --photo-bg: #EBE6DB;
  /* geometry */
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  /* motion */
  --ease-out: cubic-bezier(0.22, 0.9, 0.24, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0.24, 1.02);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 400ms;
  /* bars */
  --tabbar-h: 78px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg0: #0D0C0A;
  --bg1: #151310;
  --surface: #1C1915;
  --surface-2: #242019;
  --ink: #F3EDE2;
  --sec: #A89D8B;
  --ter: #776D5D;
  --gold: #E2BF7A;
  --gold-strong: #F0D49B;
  --gold-tint: rgba(226, 191, 122, 0.12);
  --gold-tint-border: rgba(226, 191, 122, 0.28);
  --hairline: rgba(255, 255, 255, 0.11);
  --hairline-strong: rgba(255, 255, 255, 0.17);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 34px rgba(0, 0, 0, 0.38);
  --shadow-float: 0 18px 54px rgba(0, 0, 0, 0.55);
  --danger: #E07A6C;
  --danger-tint: rgba(224, 122, 108, 0.12);
  --info: #9DB8A6;
  --info-tint: rgba(157, 184, 166, 0.10);
  --scrim: rgba(0, 0, 0, 0.55);
  --photo-bg: #26221C;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }

body {
  font-family: -apple-system, 'SF Pro Text', system-ui, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg0);
  color: var(--ink);
  min-height: 100%;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t-med);
}

/* soft atelier light — one warm wash top-left, whisper of depth below */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80rem 52rem at 12% -10%, var(--gold-tint), transparent 62%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 52%);
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
::selection { background: rgba(196, 158, 84, 0.35); }

:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

#app { max-width: 560px; margin: 0 auto; padding: 0 18px calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }

/* ---------- type ---------- */
.serif, h1.large, .card h2, .sheet h2, .look-card h2, .ob-title, .empty h3, .section-head h2, .stat .n {
  font-family: 'New York', ui-serif, Georgia, 'Times New Roman', serif;
  letter-spacing: -0.012em;
}
h1.large { font-size: 34px; font-weight: 700; line-height: 1.06; }
.subtitle { color: var(--sec); font-size: 15px; margin-top: 5px; }
.eyebrow {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}

/* ---------- header: large title + compact bar on scroll ---------- */
.top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: 8px;
}
.top-actions { display: flex; gap: 8px; flex-shrink: 0; padding-bottom: 4px; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 25;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg0) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 0.5px solid var(--hairline);
  transform: translateY(-102%); transition: transform var(--t-med) var(--ease-out);
  pointer-events: none;
}
.navbar.show { transform: none; pointer-events: auto; }
.navbar .inner { max-width: 560px; margin: 0 auto; padding: 10px 18px; text-align: center; }
.navbar .t { font-size: 16px; font-weight: 650; }

/* ---------- screens & motion ---------- */
.screen { display: none; }
.screen.active { display: block; animation: screenIn var(--t-med) var(--ease-out) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--t-slow) var(--ease-out) both; }
.stagger > * { animation: rise var(--t-slow) var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 35ms; }
.stagger > *:nth-child(3) { animation-delay: 70ms; }
.stagger > *:nth-child(4) { animation-delay: 105ms; }
.stagger > *:nth-child(5) { animation-delay: 140ms; }
.stagger > *:nth-child(6) { animation-delay: 175ms; }
.stagger > *:nth-child(7) { animation-delay: 210ms; }
.stagger > *:nth-child(8) { animation-delay: 245ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast), box-shadow var(--t-fast);
  touch-action: manipulation;
}
.btn.primary {
  background: linear-gradient(165deg, #F0D8A2 0%, #DFBB74 42%, #B98F42 110%);
  color: #241B0B; border-color: rgba(120, 90, 35, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.7), 0 8px 24px rgba(164, 126, 55, 0.28);
}
[data-theme="dark"] .btn.primary {
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.55), 0 10px 30px rgba(226, 191, 122, 0.2);
}
.btn.tinted { background: var(--gold-tint); border-color: var(--gold-tint-border); color: var(--gold); box-shadow: none; }
.btn.small { min-height: 38px; padding: 8px 15px; font-size: 13px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: var(--danger); border-color: var(--danger-tint); background: var(--danger-tint); box-shadow: none; }
.btn:active { transform: scale(0.965); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 20px; margin-top: 16px;
}
[data-theme="dark"] .card {
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 60%);
}
.card h2 { font-size: 22px; font-weight: 700; margin-top: 5px; }
.card p.body { font-size: 15px; color: var(--sec); line-height: 1.5; margin-top: 7px; }

.why {
  display: flex; gap: 10px;
  background: var(--gold-tint); border: 1px solid var(--gold-tint-border);
  border-radius: var(--r-sm); padding: 13px 15px; margin-top: 12px;
}
.why p { font-size: 14px; line-height: 1.45; color: var(--ink); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none;
  margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: 38px; padding: 8px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--sec);
  background: var(--surface); border: 1px solid var(--hairline);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  touch-action: manipulation;
}
.chip:active { transform: scale(0.95); }
.chip.on {
  background: var(--ink); color: var(--bg0); border-color: var(--ink); font-weight: 650;
}
[data-theme="dark"] .chip.on { background: var(--gold); color: #241B0B; border-color: var(--gold); }

/* ---------- closet grid ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 16px; }
.tile {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r);
  overflow: hidden; text-align: left; position: relative;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.tile:active { transform: scale(0.97); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--photo-bg); }
.tile .meta { padding: 11px 13px 13px; border-top: 0.5px solid var(--hairline); }
.tile .name { font-size: 14px; font-weight: 650; }
.tile .sub { font-size: 12px; color: var(--sec); margin-top: 2px; text-transform: capitalize; }
.tile .badge {
  position: absolute; top: 9px; left: 9px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg0) 72%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 0.5px solid var(--hairline);
}
.tile .badge.demo { color: var(--info); }
.tile .badge.tier-excess { color: var(--gold); }
.tile .fav { position: absolute; top: 9px; right: 9px; color: var(--gold); font-size: 15px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }

/* ---------- recommendation rows ---------- */
.rec { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0;
  border-top: 0.5px solid var(--hairline); }
.rec:first-of-type { border-top: 0; }
.rec img { width: 66px; height: 66px; border-radius: var(--r-sm); object-fit: cover; background: var(--photo-bg);
  border: 0.5px solid var(--hairline); flex-shrink: 0; }
.rec .info { flex: 1; min-width: 0; }
.rec .name { font-size: 15px; font-weight: 650; }
.rec .why-line { font-size: 13px; color: var(--sec); line-height: 1.45; margin-top: 3px; }
.rec .swap { align-self: center; }
.tier-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-top: 7px;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--sec);
}
.tier-tag.excess { background: var(--gold-tint); border-color: var(--gold-tint-border); color: var(--gold); }
.tier-tag.elevate { background: var(--gold-tint); border-color: var(--gold-tint-border); color: var(--gold); opacity: 0.85; }

/* ---------- photo frame ---------- */
.photo-frame {
  border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; position: relative;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card); background: var(--photo-bg);
}
.photo-frame img, .photo-frame video { width: 100%; max-height: 52vh; object-fit: cover; }
.photo-frame .overlay-label {
  position: absolute; top: 13px; left: 13px; z-index: 1;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #F3EDE2;
  background: rgba(20, 17, 12, 0.55); border: 0.5px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* swatches */
.swatches { display: flex; gap: 8px; margin-top: 11px; align-items: center; flex-wrap: wrap; }
.swatch {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 5px 13px 5px 6px; text-transform: capitalize; color: var(--sec);
}
.swatch i { width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.25); }

/* ---------- forms ---------- */
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--sec); margin-bottom: 7px; }
.field input[type=text], .field select, .search input {
  width: 100%; min-height: 48px;
  border: 1px solid var(--hairline); background: var(--surface);
  border-radius: var(--r-sm); padding: 10px 15px; font-size: 16px; color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .search input:focus, .field select:focus { outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint); }
.field select option { background: var(--surface); color: var(--ink); }
.field input[type=range] { width: 100%; accent-color: var(--gold); min-height: 44px; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ter); margin-top: 3px; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.field.invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }

.search { position: relative; margin-top: 12px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ter); pointer-events: none; }
.search input { padding-left: 40px; }

/* ---------- sheet (draggable) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: none; }
.sheet-wrap.open { display: block; }
.sheet-wrap .scrim { position: absolute; inset: 0; background: var(--scrim);
  animation: fade var(--t-med) ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  background: var(--bg1);
  border: 0.5px solid var(--hairline); border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px 20px calc(26px + env(safe-area-inset-bottom));
  max-height: 88dvh; overflow-y: auto;
  box-shadow: var(--shadow-float);
  animation: up 360ms var(--ease-spring) both;
  will-change: transform;
}
.sheet.dragging { animation: none; transition: none; }
.sheet.settling { transition: transform var(--t-med) var(--ease-out); }
@keyframes up { from { transform: translateY(56px); opacity: 0.3; } to { transform: none; opacity: 1; } }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--hairline-strong); margin: 8px auto 14px; }
.sheet h2 { font-size: 24px; font-weight: 700; }
.sheet .row { display: flex; gap: 10px; margin-top: 18px; }
.sheet .row .btn { flex: 1; }

/* ---------- tab bar (iOS-native) ---------- */
nav.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: color-mix(in srgb, var(--bg0) 80%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border-top: 0.5px solid var(--hairline);
  padding: 7px 8px calc(4px + env(safe-area-inset-bottom));
}
nav.tabbar .inner { display: flex; justify-content: space-around; width: 100%; max-width: 560px; }
nav.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 650; letter-spacing: 0.02em; color: var(--ter);
  min-width: 56px; min-height: 48px; padding-top: 4px; border-radius: var(--r-sm);
  transition: color var(--t-med) var(--ease-out), transform var(--t-fast);
  touch-action: manipulation;
}
nav.tabbar button:active { transform: scale(0.92); }
nav.tabbar button.on { color: var(--gold); }
nav.tabbar svg { width: 24px; height: 24px; }

/* ---------- states ---------- */
.empty { text-align: center; padding: 46px 26px; color: var(--sec); }
.empty .art { margin: 0 auto 14px; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); border: 1px solid var(--gold-tint-border); color: var(--gold); }
.empty .art svg { width: 26px; height: 26px; }
.empty h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin-bottom: 7px; }
.empty p { font-size: 14px; line-height: 1.55; max-width: 300px; margin: 0 auto; }
.empty .btn { margin-top: 18px; }

.banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--gold-tint); border: 1px solid var(--gold-tint-border);
  color: var(--ink); border-radius: var(--r-sm); padding: 11px 15px; margin-top: 13px;
  font-size: 13px; font-weight: 600; line-height: 1.45;
}
.banner.info { background: var(--info-tint); border-color: var(--info-tint); }
.banner.error { background: var(--danger-tint); border-color: var(--danger-tint); }
.banner .b-act { color: var(--gold); font-weight: 700; flex-shrink: 0; padding: 0 2px; }

.shimmer { position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--hairline); }
.shimmer::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 32%, color-mix(in srgb, var(--surface) 65%, transparent) 50%, transparent 68%);
  animation: sh 1.5s infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.toast {
  position: fixed; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg0);
  font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-float);
  z-index: 60; white-space: nowrap; animation: toastIn var(--t-med) var(--ease-spring) both;
  max-width: calc(100vw - 32px);
}
.toast .t-act { color: var(--gold); font-weight: 750; font-size: 14px; flex-shrink: 0;
  padding: 4px 2px; margin: -4px 0; }
[data-theme="dark"] .toast { background: #F3EDE2; color: #1D1913; }
[data-theme="dark"] .toast .t-act { color: #85621D; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* offline pill */
.net-pill {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 70; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 15px; border-radius: 999px;
  background: var(--ink); color: var(--bg0);
  box-shadow: var(--shadow-float);
  animation: toastIn var(--t-med) var(--ease-spring) both;
}
[data-theme="dark"] .net-pill { background: #F3EDE2; color: #1D1913; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 26px; }
.section-head h2 { font-size: 21px; font-weight: 700; }
.section-head button { color: var(--gold); font-size: 14px; font-weight: 700; min-height: 44px; }

.stat-row { display: flex; gap: 12px; margin-top: 16px; }
.stat { flex: 1; text-align: left; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 15px; box-shadow: var(--shadow-card); }
.stat .n { font-size: 28px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--sec); font-weight: 600; margin-top: 3px; }

/* ---------- look cards ---------- */
.look-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card); margin-top: 16px; text-align: left; width: 100%;
  position: relative; transition: transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.look-card:active { transform: scale(0.98); }
.look-card img.hero { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--photo-bg); }
.look-card .heroWrap { position: relative; display: block; }
.look-card .pad { padding: 15px 17px 17px; }
.look-card .pieces { display: flex; gap: 7px; margin-top: 11px; }
.look-card .pieces img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover;
  border: 0.5px solid var(--hairline); background: var(--photo-bg); }
.look-card .lfav { position: absolute; top: 12px; right: 12px; z-index: 1; color: var(--gold);
  background: color-mix(in srgb, var(--bg0) 75%, transparent);
  border: 0.5px solid var(--hairline); border-radius: 999px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.look-card .lfav svg { width: 18px; height: 18px; }

/* ---------- segmented / sort rows ---------- */
.seg-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--sec);
  background: var(--surface); border: 1px solid var(--hairline);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  touch-action: manipulation;
}
.icon-btn:active { transform: scale(0.93); }
.icon-btn.on { color: var(--gold); border-color: var(--gold-tint-border); background: var(--gold-tint); }
.icon-btn svg { width: 19px; height: 19px; }

.option-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px; border-top: 0.5px solid var(--hairline); min-height: 56px;
  transition: opacity var(--t-fast); touch-action: manipulation; }
.option-row:active { opacity: 0.6; }
.option-row:first-of-type { border-top: 0; }
.option-row .ol { font-size: 15px; font-weight: 600; }
.option-row .od { font-size: 13px; color: var(--sec); margin-top: 2px; }
.option-row .ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  background: var(--gold-tint); border: 1px solid var(--gold-tint-border); }
.option-row .ico svg { width: 17px; height: 17px; }
.option-row .chev { color: var(--ter); }
.option-row .chev svg { width: 16px; height: 16px; }

/* theme segmented control */
.seg {
  display: flex; background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 3px; margin-top: 11px;
}
.seg button {
  flex: 1; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--sec);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  touch-action: manipulation;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); font-weight: 650; }

/* ---------- onboarding ---------- */
.ob-wrap { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--bg0); }
.ob-wrap::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(70rem 48rem at 16% -8%, var(--gold-tint), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 55%);
}
.ob { position: relative; max-width: 560px; margin: 0 auto; min-height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(30px + env(safe-area-inset-top)) 26px calc(30px + env(safe-area-inset-bottom)); }
.ob-mark { font-family: 'New York', ui-serif, Georgia, serif; font-size: 15px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ob-title { font-size: 40px; font-weight: 700; line-height: 1.06; margin-top: 16px; }
.ob-sub { font-size: 16px; color: var(--sec); line-height: 1.55; margin-top: 14px; max-width: 340px; }
.ob-body { margin-top: 22px; }
.ob-cta { margin-top: 30px; display: flex; flex-direction: column; gap: 11px; }
.ob-cta .btn { width: 100%; min-height: 52px; font-size: 16px; }
.ob-skip { text-align: center; color: var(--sec); font-size: 14px; font-weight: 600; padding: 12px; min-height: 44px; }
.ob-dots { display: flex; gap: 7px; justify-content: center; margin-top: 20px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline-strong);
  transition: background var(--t-med), width var(--t-med); }
.ob-dots i.on { background: var(--gold); width: 20px; border-radius: 4px; }
.ob-step { animation: rise var(--t-slow) var(--ease-out) both; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rise, .stagger > *, .ob-step, .screen.active { animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .sheet { animation-duration: 1ms !important; }
  .shimmer::after { animation: none; }
  .toast, .net-pill { animation: none; }
  .btn, .tile, .look-card, nav.tabbar button, .chip, .icon-btn { transition: none; }
  .navbar { transition: none; }
}
