/* Love My V first-visit theme picker. Self-contained: fixed light dialog so it reads the same whatever theme is being previewed. */
body.tp-open { overflow: hidden; }
.tp-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(6, 8, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.tp-dialog { position: relative; width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto;
  background: #f8f7fb; color: #161a33; border-radius: 22px; padding: 26px 28px 18px; box-shadow: 0 24px 80px rgba(0,0,0,.45);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; outline: none; }
.tp-logo { display: block; height: 64px; width: auto; margin: 0 auto 4px; }
.tp-title { font: 800 clamp(26px, 4vw, 40px)/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #161a33; margin: 4px 0 6px; text-shadow: none; letter-spacing: 0; }
.tp-sub { color: #4b5068; margin: 0 auto 16px; max-width: 30em; font-size: 15px; }
.tp-skip { position: absolute; top: 14px; right: 16px; background: transparent; border: 1px solid #cfd2de; color: #3b4060; border-radius: 999px; padding: 6px 14px; font: 600 14px system-ui, sans-serif; cursor: pointer; }
.tp-skip:hover { background: #eceef5; }
.tp-skip:focus-visible { outline: 3px solid var(--lmv-accent); outline-offset: 2px; }
.tp-form { margin: 0; }
.tp-grid { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tp-card { display: flex; flex-direction: column; gap: 8px; text-align: left; background: #fff; border: 2px solid #e3e4ec; border-radius: 14px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.tp-card:hover { border-color: #c4c7d6; }
.tp-card:has(input:checked) { border-color: var(--pv-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pv-accent) 30%, transparent); }
.tp-card:has(input:focus-visible) { outline: 3px solid var(--lmv-accent); outline-offset: 2px; }
.tp-name { font-weight: 700; font-size: 17px; color: #161a33; }
.tp-prev { display: block; border-radius: 8px; overflow: hidden; background: var(--pv-bg); border: 1px solid rgba(0,0,0,.12); font-size: 9px; color: var(--pv-text); }
.tp-pv-nav { display: flex; justify-content: space-between; align-items: center; padding: 5px 7px; }
.tp-pv-logo { width: 34px; height: 6px; border-radius: 3px; background: var(--pv-accent); }
.tp-pv-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--pv-muted); }
.tp-pv-hero { display: flex; gap: 6px; padding: 2px 7px 6px; align-items: center; }
.tp-pv-car { flex: 0 0 42%; height: 40px; border-radius: 6px; background: linear-gradient(180deg, transparent 50%, var(--pv-accent) 50% 76%, transparent 76%), var(--pv-card); }
.tp-pv-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-pv-copy b { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-pv-copy span { color: var(--pv-muted); }
.tp-pv-dots { display: flex; gap: 3px; margin-top: 2px; }
.tp-pv-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--pv-accent); }
.tp-pv-bar { display: flex; gap: 4px; align-items: center; padding: 4px 7px; background: var(--pv-card); border-top: 1px solid var(--pv-line); }
.tp-pv-bar span { flex: 1; font-weight: 600; }
.tp-pv-bar i { width: 26px; height: 8px; border-radius: 4px; background: var(--pv-accent); opacity: .85; }
.tp-radio { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #23284a; }
.tp-radio input { width: 18px; height: 18px; margin: 0; accent-color: #2f55d4; }
.tp-go { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(540px, 100%); margin: 18px auto 8px; padding: 12px 20px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #e9178a, #8f2be0); color: #fff; font: 700 22px system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(160, 30, 180, .35); }
.tp-go:focus-visible { outline: 3px solid var(--lmv-accent); outline-offset: 3px; }
.tp-go-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #8f2be0; font-size: 22px; line-height: 1; }
.tp-note { color: #4b5068; font-size: 13px; margin: 4px 0 0; }
@media (max-width: 760px) { .tp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tp-dialog { padding: 18px 12px 14px; } .tp-logo { height: 46px; margin-top: 18px; } .tp-name { font-size: 14px; } .tp-radio { font-size: 13px; } .tp-card { padding: 8px; } .tp-go { font-size: 19px; } }
@media (max-width: 340px) { .tp-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tp-card { transition: none; } }
/* site.css gives labels a bottom margin; keep the grid tight and the button always reachable */
.tp-overlay .tp-card { margin: 0; }
.tp-go-wrap { position: sticky; bottom: -18px; padding: 10px 0 4px; background: linear-gradient(180deg, rgba(248,247,251,0), #f8f7fb 30%); }
.tp-go-wrap .tp-go { margin: 6px auto 2px; }
@media (max-width: 760px) { .tp-go-wrap { bottom: -14px; } }
