/* Media Picker Lite — dark plum & pink. Loaded after app.css; overrides its tokens and adds the Lite screens. */
html[data-lite] {
  --bg: #120D15; --surface: #1D1622; --surface-2: #261D2D; --surface-3: #33283B;
  --line: #2E2436; --ink: #F4EEF6; --ink-2: #E2D8E6; --muted: #A596AD;
  --teal: #F08A9B; --ring: #F08A9B;
  --danger: #ff8a8a; --ok: #7ee0b0;
  --c1: #F08A9B; --c2: #9C8CF8; --grid: #261D2D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 34px rgba(0, 0, 0, .45);
  --scrim: rgba(8, 4, 10, .74);
  --acc: #F08A9B; --acc-ink: #1A0F14; --acc-text: #F6A6B3;
  --acc-soft: color-mix(in srgb, #F08A9B 18%, #1D1622);
  --acc-line: #F08A9B;
  --pink: #F08A9B; --vio: #9C8CF8;
  --font-ui: "Lexend", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Lexend", "Inter", system-ui, sans-serif;
  --r-m: 18px; --r-l: 24px;
  --tabbar-h: 72px;
  color-scheme: dark;
}
html[data-lite] body { background: var(--bg); }
html[data-lite] .topbar { display: none; }
html[data-lite] .btn-primary { background: var(--pink); color: #1A0F14; border-color: var(--pink); }
html[data-lite] .modal { background: var(--surface); border: 1px solid var(--line); }

/* ---------- bottom bar: the active tab pops up in a pink circle ---------- */
html[data-lite] .tabbar { background: rgba(29, 22, 34, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; overflow: visible; }
html[data-lite] .tab { gap: 2px; color: var(--muted); font-size: 11px; }
html[data-lite] .tab[aria-current="page"]::before { display: none; }
html[data-lite] .tab .tab-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
html[data-lite] .tab[aria-current="page"] { color: var(--pink); }
html[data-lite] .tab[aria-current="page"] .tab-dot { background: var(--pink); color: #1A0F14; transform: translateY(-16px); box-shadow: 0 0 0 6px var(--bg), 0 8px 18px rgba(240, 138, 155, .35); }
html[data-lite] .tab[aria-current="page"] svg { color: #1A0F14; }
html[data-lite] .tab[aria-current="page"] > span:last-child { transform: translateY(-8px); font-weight: 700; }

/* ---------- pages ---------- */
.lt-page { display: flex; flex-direction: column; gap: 14px; padding: calc(var(--sat) + 14px) 16px 24px; max-width: 720px; margin: 0 auto; }
.lt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lt-head h1 { margin: 0; font: 700 28px/1.1 var(--font-display); letter-spacing: -.01em; }
.lt-gear { background: var(--surface); border-radius: 50%; }
.lt-label { margin: 6px 0 -4px; font: 700 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lt-bar { display: block; height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.lt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--vio)); }
.lt-charge { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); }
.lt-charge small { color: var(--muted); }

.lt-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; min-height: 104px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.lt-card strong { font-size: 17px; }
.lt-card small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.lt-card-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-3); color: var(--pink); margin-bottom: 6px; }
.lt-card.pink { background: linear-gradient(150deg, #F08A9B, #C9607A); border: 0; color: #1A0F14; min-height: 128px; }
.lt-card.vio { background: linear-gradient(150deg, #9C8CF8, #6E5FD0); border: 0; color: #120D15; min-height: 128px; }
.lt-card.pink small, .lt-card.vio small { color: rgba(18, 13, 21, .75); }
.lt-card.pink .lt-card-ic, .lt-card.vio .lt-card-ic { background: rgba(255, 255, 255, .28); color: #120D15; }
.lt-card:active, .lt-tile:active, .lt-row:active, .lt-girl:active, .lt-pin:active { transform: scale(.98); }
.lt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lt-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 12px/1.2 var(--font-ui); text-align: center; cursor: pointer; }
.lt-tile-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--acc-soft); color: var(--pink); }
.lt-photo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-photo-cards .lt-card { min-height: 92px; }
.lt-taw .taw-card { border-radius: var(--r-l); background: linear-gradient(135deg, #2A1B2E, #1D1622); border: 1px solid #4A2B3E; }

.lt-list { display: flex; flex-direction: column; border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.lt-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.lt-row:last-child { border-bottom: 0; }
.lt-row-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--pink); flex: none; }
.lt-row-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lt-row-txt strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-row-txt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-row-right { color: var(--muted); font-size: 13px; }
.lt-chev { transform: rotate(180deg); color: var(--muted); flex: none; }
.lt-thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3) center/cover; flex: none; box-shadow: 0 0 0 2px var(--pink); }

.lt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lt-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-m); background: var(--surface); border: 0; color: var(--ink); font: inherit; text-align: left; min-width: 0; }
.lt-stat small { color: var(--muted); font-size: 12px; }
.lt-stat strong { font: 700 19px/1.2 var(--font-display); }
.lt-stat span { color: var(--muted); font-size: 12px; }
.lt-stat-btn { cursor: pointer; }
.lt-goal { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); border: 0; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.lt-goal small { color: var(--muted); }
.lt-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.lt-chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 13px/1 var(--font-ui); cursor: pointer; }
.lt-chip.on { background: var(--pink); color: #1A0F14; border-color: var(--pink); }

.lt-girls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lt-girl { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; border: 0; padding: 0; background: var(--surface); cursor: pointer; color: #fff; text-align: left; }
.lt-girl-cover { position: absolute; inset: 0; background: var(--surface-3) center 30% / cover; }
.lt-girl-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 6, 12, .88)); }
.lt-girl-mood { position: absolute; top: 8px; left: 8px; }
.lt-girl-txt { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.lt-girl-txt strong { font-size: 15px; }
.lt-girl-txt small { font-size: 12px; opacity: .8; }

.lt-size { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: var(--r-m); background: var(--surface); }
.lt-size small { color: var(--muted); }
.lt-size strong { font: 700 18px/1.2 var(--font-display); }

.lt-recs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-rec { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: var(--r-m); background: var(--surface); border: 0; color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.lt-rec small { color: var(--muted); font-size: 12px; }
.lt-rec strong { font: 700 22px/1.15 var(--font-display); color: var(--pink); }
.lt-rec span { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.lt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- full-screen sheets ---------- */
.lt-sheet { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--bg); animation: lt-in .2s ease-out; }
.lt-sheet.out { animation: lt-out .18s ease-in forwards; }
@keyframes lt-in { from { transform: translateX(30px); opacity: 0; } }
@keyframes lt-out { to { transform: translateX(30px); opacity: 0; } }
.lt-sheet-head { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 8px) 10px 8px; }
.lt-sheet-head h2 { flex: 1; margin: 0; font: 700 18px/1.2 var(--font-display); }
.lt-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.lt-sheet-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 16px calc(var(--sab) + 18px); }
.lt-sheet-body h3, .lt-sheet-body h4 { margin: 4px 0 0; }
.lt-pr-photo { height: 240px; border-radius: var(--r-l); background: var(--surface) center/cover; }

/* her profile: fits one screen; only Photos scrolls */
.lt-her .lt-sheet-body { overflow: hidden; padding-bottom: calc(var(--sab) + 10px); gap: 10px; }
.lt-her-head { position: relative; flex: none; height: min(34vh, 280px); border-radius: var(--r-l); overflow: hidden; }
.lt-her-cover { position: absolute; inset: 0; background: var(--surface-2) 50% 35% / cover; }
.lt-her-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 6, 12, .25), transparent 35%, rgba(10, 6, 12, .9)); }
.lt-her-over { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; }
.lt-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-badge { padding: 5px 10px; border-radius: 999px; background: rgba(18, 13, 21, .72); backdrop-filter: blur(6px); color: #fff; font: 600 12px/1 var(--font-ui); }
.lt-rings { display: flex; gap: 6px; }
.lt-ring { --p: 0; position: relative; display: grid; place-items: center; align-content: center; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 13, 21, .88) 76%, transparent 78% 100%), conic-gradient(var(--pink) calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); color: #fff; }
.lt-ring.solid { background: radial-gradient(closest-side, rgba(18, 13, 21, .88) 76%, transparent 78% 100%), conic-gradient(var(--vio) 100%, var(--vio) 0); }
.lt-ring b { font-size: 14px; line-height: 1; }
.lt-ring small { font-size: 8.5px; opacity: .8; }
.lt-her-name { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.lt-her-name h2 { margin: 0; font: 700 26px/1.1 var(--font-display); }
.lt-her-name p { margin: 4px 0 0; font-size: 13.5px; opacity: .85; }
.lt-strip { flex: none; display: flex; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface); border: 0; color: var(--ink); font: inherit; cursor: pointer; }
.lt-strip > span { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; flex: 1; }
.lt-strip strong { font: 700 14.5px/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lt-strip small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.lt-latest { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-m); background: var(--surface); }
.lt-latest small { color: var(--muted); font-size: 11.5px; display: block; }
.lt-latest strong { font-size: 13.5px; }
.lt-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); }
.lt-tabs button { padding: 8px 0; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 600 13px/1 var(--font-ui); cursor: pointer; }
.lt-tabs button.on { background: var(--surface-3); color: var(--ink); }
.lt-her-panel { flex: 1; min-height: 0; overflow: hidden; }
.lt-her-panel.scroll, .lt-her-panel:has(.lt-list) { overflow-y: auto; }
.lt-pins { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; height: 100%; max-height: 260px; }
.lt-pin { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-height: 0; overflow: hidden; }
.lt-pin small { color: var(--muted); font-size: 11.5px; }
.lt-pin strong { font: 700 17px/1.15 var(--font-display); }
.lt-pin span { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.lt-pin.vio { background: linear-gradient(150deg, #2A2346, #1D1622); border-color: #3E3570; }
.lt-pin.vio strong { color: var(--vio); }
.lt-her-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lt-ph { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; border: 0; background: var(--surface-2) center/cover; cursor: pointer; }
.lt-ph-n { position: absolute; right: 5px; bottom: 5px; min-width: 20px; padding: 2px 6px; border-radius: 9px; background: var(--pink); color: #1A0F14; font: 700 11px/16px var(--font-ui); }
.lt-her-cta { flex: none; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.lt-her-cta .btn { min-height: 48px; border-radius: 16px; }

/* customize */
.lt-crop { position: relative; height: 150px; border-radius: 14px; background: var(--surface-2) 50% 35% / cover; touch-action: none; cursor: ns-resize; }
.lt-crop i { position: absolute; left: 0; right: 0; height: 2px; background: var(--pink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.lt-chks { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-chk { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: 600 12.5px/1 var(--font-ui); cursor: pointer; }
.lt-chk.on { background: var(--acc-soft); border-color: var(--pink); color: var(--ink); }

/* jar */
.lt-jar-row { display: flex; gap: 16px; align-items: center; }
.lt-jar { position: relative; width: 86px; height: 120px; border-radius: 14px 14px 22px 22px; border: 3px solid rgba(255, 255, 255, .5); border-top-width: 8px; overflow: hidden; background: rgba(255, 255, 255, .04); flex: none; }
.lt-jar i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #fbf7ee, #e9e1d1); }
.lt-jar b { position: absolute; inset: auto 0 6px; text-align: center; color: #3a2e2a; font-size: 12px; }

/* worship part picker */
.lt-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lt-part { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.lt-part small { color: var(--muted); font-size: 10.5px; }
.lt-part.on { background: var(--pink); border-color: var(--pink); color: #1A0F14; }
.lt-part.on small { color: rgba(26, 15, 20, .7); }

@media (min-width: 900px) {
  html[data-lite] .sidebar { background: var(--surface); }
}

/* ---------- the X-ray ---------- */
.lx-root { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; gap: 8px; padding: calc(var(--sat) + 10px) 14px calc(var(--sab) + 14px); background: #160A12; color: #F6EEF2; overflow: hidden; }
.lx-top { display: flex; align-items: center; gap: 10px; }
.lx-x { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); }
.lx-title { flex: 1; font: 600 17px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-kinds, .lx-poses { display: flex; gap: 6px; }
.lx-chip { flex: 1; height: 36px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); font: 600 13px/1 var(--font-ui); cursor: pointer; }
.lx-chip.on { background: var(--pink); color: #1A0F14; }
.lx-pose { flex: 1; height: 32px; border-radius: 10px; border: 0; background: var(--surface); color: var(--ink); font: 600 12px/1 var(--font-ui); cursor: pointer; }
.lx-pose.on { background: var(--vio); color: #15102E; }
.lx-note { text-align: center; color: var(--muted); font-size: 11px; margin-top: -2px; }
.lx-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.lx-svg { width: 100%; height: 100%; max-height: 100%; touch-action: none; cursor: grab; }
.lx-photo, .lx-cam { position: absolute; top: 0; width: 78px; height: 104px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .18); color: #F6EEF2; cursor: pointer; }
.lx-photo { left: 0; background: #3B2434; }
.lx-cam { right: 0; background: #0B0A10; }
.lx-cam.on { border-color: #9FE1CB; }
.lx-pimg { position: absolute; inset: 0; background: center 30% / cover; }
.lx-plbl, .lx-clbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 2px; background: rgba(18, 13, 21, .75); font: 600 10.5px/1.2 var(--font-ui); text-align: center; display: flex; flex-direction: column; }
.lx-clbl small { color: var(--muted); font-size: 9.5px; }
.lx-cam.on .lx-clbl b { color: #9FE1CB; }
.lx-cic { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); opacity: .6; }
.lx-chud { position: absolute; inset: 0; }
.lx-chud .pace-hud { display: none; }
.lx-cam .pace-preview { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; margin: 0 !important; }
.lx-cam .pace-preview video, .lx-cam .pace-preview canvas { width: 100%; height: 100%; object-fit: cover; }
.lx-read { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-height: 44px; }
.lx-read strong { font: 600 18px/1.2 var(--font-display); }
.lx-read span { color: var(--muted); font-size: 12.5px; }
.lx-gauge { display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--font-ui); color: var(--muted); }
.lx-gbar { flex: 1; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.lx-gbar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #9FE1CB, #FAC775 50%, #E2577A); transition: width .1s; }
.lx-word { width: 70px; text-align: right; color: var(--ink); }
.lx-womb { display: flex; align-items: center; gap: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.lx-wbar { width: 10px; height: 22px; border-radius: 5px; background: var(--surface-3); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.lx-wbar i { display: block; background: #FFF6E8; }
.lx-wt { display: flex; flex-direction: column; line-height: 13px; }
.lx-wt b { color: var(--ink); }
.lx-slide { display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--font-ui); color: var(--muted); }
.lx-range { flex: 1; accent-color: var(--pink); }
.lx-btns { display: flex; flex-direction: column; gap: 8px; }
.lx-push { height: 54px; border: 0; border-radius: 18px; background: var(--pink); color: #1A0F14; font: 700 16px/1 var(--font-ui); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.lx-row { display: flex; gap: 8px; }
.lx-btn { flex: 1; min-height: 46px; border-radius: 16px; background: var(--surface-2); }
.lx-og { flex: 1.25; border: 1.5px solid var(--pink); background: rgba(240, 138, 155, .14); }
.lx-sl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.lx-sl input { accent-color: var(--pink); }
@media (max-height: 700px) { .lx-photo, .lx-cam { width: 62px; height: 84px; } .lx-read strong { font-size: 16px; } }
