/* First-time setup uses the existing Fitness Vault palette and local gym photo. */
.fv-setup-shell { --setup-gold: var(--gold, #d1ac66); --setup-muted: var(--muted, #b6bdc7); --setup-ink: var(--ink, #f4f3ee); display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); min-height: 100dvh; background: var(--bg, #0d1014); color: var(--setup-ink); isolation: isolate; }
.fv-setup-shell *, .fv-setup-checklist * { box-sizing: border-box; }
.fv-setup-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 64px); min-width: 0; background: linear-gradient(180deg, #0b0e12b0 0%, #0b0e12a0 37%, #0b0e12f2 100%), url('/assets/images/fitness-vault-gym-editorial.webp') center 40% / cover no-repeat; border-right: 1px solid var(--line, #303640); }
.fv-setup-brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: var(--setup-ink); text-decoration: none; font-size: 12px; letter-spacing: .18em; line-height: 1.65; }
.fv-setup-brand img { flex: none; width: 42px; height: 42px; }
.fv-setup-brand strong { color: var(--setup-gold); font-weight: 700; }
.fv-setup-overline { display: block; color: var(--gold, #d1ac66); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; }
.fv-setup-visual-copy { margin: 58px 0; max-width: 390px; }
.fv-setup-visual-copy h2 { margin: 17px 0 21px; font-family: var(--font-display, 'Gym Display', sans-serif); font-size: clamp(38px, 4.1vw, 62px); line-height: 1.08; font-weight: 700; letter-spacing: -.04em; }
.fv-setup-visual-copy p { color: #ccd0d7; font-size: 15px; line-height: 1.85; max-width: 300px; margin: 0; }
.fv-setup-visual-foot { display: grid; gap: 9px; color: #c8c8c4; font-size: 11px; line-height: 1.6; }
.fv-setup-visual-foot span:first-child { letter-spacing: .14em; color: var(--setup-gold); font-size: 9px; }
.fv-setup-card { min-width: 0; max-width: 760px; width: 100%; margin: auto; padding: clamp(25px, 5vw, 70px); }
.fv-setup-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--setup-muted); font-size: 9px; letter-spacing: .13em; line-height: 1.8; margin-bottom: 26px; }
.fv-setup-topline span:last-child { color: var(--setup-gold); }
.fv-setup-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0 0 40px; gap: 10px; }
.fv-setup-progress li { display: flex; align-items: center; gap: 9px; padding-bottom: 15px; border-bottom: 2px solid var(--line, #303640); min-width: 0; }
.fv-setup-progress li > span { width: 25px; height: 25px; display: grid; place-items: center; flex: none; color: var(--setup-muted); border: 1px solid var(--line, #303640); border-radius: 50%; font-size: 11px; }
.fv-setup-progress strong { color: var(--setup-muted); font-size: 11px; font-weight: 500; line-height: 1.55; }
.fv-setup-progress .current { border-color: var(--setup-gold); }
.fv-setup-progress .current > span { background: var(--setup-gold); border-color: var(--setup-gold); color: #0d1014; }
.fv-setup-progress .current strong, .fv-setup-progress .done strong { color: var(--setup-ink); }
.fv-setup-progress .done > span { border-color: var(--gold-line, #66583b); color: var(--setup-gold); background: var(--gold-surface, #28241c); }
.fv-setup-progress svg { width: 13px; height: 13px; }
.fv-setup-form { display: block; min-width: 0; }
.fv-setup-step-copy { margin-bottom: 30px; }
.fv-setup-step-copy h1, .fv-setup-complete h1 { margin: 12px 0 13px; font-family: var(--font-display, 'Gym Display', sans-serif); color: var(--setup-ink); font-size: clamp(28px, 2.8vw, 39px); line-height: 1.16; letter-spacing: -.035em; }
.fv-setup-step-copy h1:focus, .fv-setup-complete h1:focus { outline: none; }
.fv-setup-step-copy p, .fv-setup-complete p { font-size: 14px; line-height: 1.8; color: var(--setup-muted); margin: 0; }
.fv-setup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.fv-setup-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: var(--setup-ink); font-size: 12px; font-weight: 600; line-height: 1.6; }
.fv-setup-field-wide { grid-column: 1 / -1; }
.fv-setup-field input, .fv-setup-field select { display: block; width: 100%; min-width: 0; height: 48px; padding: 10px 13px; border: 1px solid var(--line, #303640); border-radius: 5px; background: var(--surface, #161b21); color: var(--setup-ink); font-size: 14px; font-weight: 400; line-height: 1.5; font-family: inherit; }
.fv-setup-field input::placeholder { color: #8c96a4; }
.fv-setup-field select { padding-right: 32px; }
.fv-setup-field input:focus-visible, .fv-setup-field select:focus-visible { outline: 2px solid var(--setup-gold); outline-offset: 3px; }
.fv-setup-field input:disabled, .fv-setup-field select:disabled { opacity: .65; cursor: not-allowed; }
.fv-setup-hint { color: var(--setup-muted); font-size: 11px; line-height: 1.8; margin: 9px 0 0; }
.fv-setup-note { display: flex; align-items: flex-start; gap: 10px; padding: 15px 16px; border: 1px solid var(--gold-line, #66583b); border-radius: 5px; background: var(--gold-surface, #28241c); margin-top: 29px; }
.fv-setup-note svg { color: var(--setup-gold); flex: none; margin-top: 2px; }
.fv-setup-note p { color: var(--setup-muted); font-size: 12px; line-height: 1.8; margin: 0; }
.fv-setup-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px; margin: 0; background: var(--surface, #161b21); border: 1px solid var(--line, #303640); border-radius: 6px; }
.fv-setup-review div { min-width: 0; }
.fv-setup-review dt { color: var(--setup-muted); font-size: 11px; line-height: 1.6; }
.fv-setup-review dd { color: var(--setup-ink); font-size: 14px; font-weight: 600; line-height: 1.7; margin: 5px 0 0; overflow-wrap: anywhere; }
.fv-setup-later { margin: 22px 0; }
.fv-setup-later h2 { color: var(--setup-ink); font-size: 12px; line-height: 1.7; margin: 0 0 6px; }
.fv-setup-later ul { margin: 0; padding-left: 18px; color: var(--setup-muted); font-size: 12px; line-height: 2; }
.fv-setup-confirm { display: flex; align-items: flex-start; gap: 11px; color: var(--setup-ink); font-size: 12px; line-height: 1.8; cursor: pointer; }
.fv-setup-confirm input { margin: 4px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--setup-gold); }
.fv-setup-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.fv-setup-actions .btn, .fv-setup-complete .btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px; padding: 12px 17px; font-size: 12px; line-height: 1.6; white-space: normal; }
.fv-setup-actions .btn svg, .fv-setup-complete .btn svg { flex: none; }
.fv-setup-save { border-top: 1px solid var(--line, #303640); margin-top: 26px; padding-top: 16px; min-height: 45px; }
.fv-setup-save p { color: var(--setup-muted); font-size: 10px; line-height: 1.8; margin: 0; }
.fv-setup-save-error, .fv-setup-field-error { color: var(--danger, #ff9d9d) !important; font-size: 12px; line-height: 1.8; margin-top: 12px !important; }
.fv-setup-retry { background: transparent; border: 0; border-bottom: 1px solid var(--setup-gold); color: var(--setup-gold); padding: 12px 0 3px; font: inherit; font-size: 12px; cursor: pointer; min-height: 44px; }
.fv-setup-shell [hidden] { display: none !important; }
.fv-setup-complete { padding: 12px 0 18px; }
.fv-setup-complete-icon { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--gold-line, #66583b); border-radius: 50%; color: var(--setup-gold); background: var(--gold-surface, #28241c); margin-bottom: 22px; }
.fv-setup-complete .btn { margin-top: 27px; }
.fv-setup-checklist { min-width: 0; padding: 24px; border: 1px solid var(--line, #303640); border-radius: 8px; background: var(--surface, #161b21); margin: 24px 0; }
.fv-setup-checklist > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 23px; }
.fv-setup-checklist h2 { color: var(--ink, #f4f3ee); font-size: 19px; line-height: 1.5; margin: 7px 0; }
.fv-setup-checklist header p { color: var(--muted, #b6bdc7); font-size: 12px; line-height: 1.8; margin: 0; }
.fv-setup-checklist-count { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.8; color: var(--gold, #d1ac66); background: var(--gold-surface, #28241c); padding: 6px 10px; border-radius: 4px; }
.fv-setup-checklist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.fv-setup-checklist-item { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.fv-setup-checklist-item > div { min-width: 0; }
.fv-setup-checklist-index { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--line, #303640); border-radius: 50%; color: var(--muted, #b6bdc7); font-size: 11px; margin-top: 1px; }
.fv-setup-checklist-index svg { width: 14px; height: 14px; }
.fv-setup-checklist-item.done .fv-setup-checklist-index { color: var(--gold, #d1ac66); border-color: var(--gold-line, #66583b); background: var(--gold-surface, #28241c); }
.fv-setup-checklist-item h3 { color: var(--ink, #f4f3ee); font-size: 12px; line-height: 1.7; font-weight: 600; margin: 0 0 5px; overflow-wrap: anywhere; }
.fv-setup-checklist-item p { font-size: 11px; color: var(--muted, #b6bdc7); line-height: 1.8; margin: 0; }
.fv-setup-checklist-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: transparent; border: 0; padding: 10px 0; color: var(--gold, #d1ac66); font: inherit; font-size: 11px; line-height: 1.8; cursor: pointer; text-align: left; }
.fv-setup-checklist-link svg { width: 14px; height: 14px; flex: none; }
.fv-setup-checklist-link:disabled { color: var(--muted, #b6bdc7); cursor: not-allowed; }
@media (max-width: 1080px) { .fv-setup-card { padding: 34px; } .fv-setup-progress { gap: 7px; } .fv-setup-progress li { gap: 7px; } .fv-setup-progress strong { font-size: 10px; } .fv-setup-checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .fv-setup-shell { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); } .fv-setup-card { padding: 28px; } .fv-setup-visual { padding: 28px; } .fv-setup-visual-copy h2 { font-size: 37px; } .fv-setup-progress { margin-bottom: 28px; } .fv-setup-progress li { flex-direction: column; align-items: flex-start; gap: 6px; } .fv-setup-topline { font-size: 8px; } }
@media (max-width: 680px) { .fv-setup-shell { display: block; } .fv-setup-visual { min-height: 145px; padding: 22px 24px; border-right: 0; border-bottom: 1px solid var(--line, #303640); background-position: center 42%; } .fv-setup-brand img { width: 35px; height: 35px; } .fv-setup-brand { font-size: 10px; } .fv-setup-visual-copy { margin: 22px 0 0; } .fv-setup-visual-copy .fv-setup-overline, .fv-setup-visual-copy p, .fv-setup-visual-foot { display: none; } .fv-setup-visual-copy h2 { font-size: 25px; line-height: 1.25; margin: 0; } .fv-setup-visual-copy h2 br { display: none; } .fv-setup-card { padding: 26px 24px; } .fv-setup-progress li { flex-direction: row; align-items: center; } .fv-setup-fields { gap: 17px; } .fv-setup-step-copy { margin-bottom: 25px; } .fv-setup-checklist { padding: 20px; } }
@media (max-width: 420px) { .fv-setup-card { padding: 24px 18px; } .fv-setup-progress li { flex-direction: column; align-items: flex-start; } .fv-setup-fields, .fv-setup-review { grid-template-columns: 1fr; } .fv-setup-review { gap: 14px; padding: 17px; } .fv-setup-field-wide { grid-column: auto; } .fv-setup-actions .btn-primary { flex: 1; } .fv-setup-actions .btn { padding: 11px 13px; } .fv-setup-actions > span { display: none; } .fv-setup-checklist-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .fv-setup-shell *, .fv-setup-checklist * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
