/* Butterfly profile wizard, edit profile and profile sections. Loaded after member-app.css and member-redesign.css,
   and uses their tokens (--bg, --ink, --rose, --line …) so the new pages match the member panel. */

/* ---------- shared resets inside the profile screens ---------- */
.bfp input[type="radio"], .bfp input[type="checkbox"], .bfp input[type="range"] { width: auto; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.bfp .bfp-label { color: #514651; font-size: 13px; font-weight: 700; }
.bfp .bfp-req { color: var(--rose); }
.bfp .bfp-wide { grid-column: 1 / -1; }
.bfp .bfp-field { align-content: start; }
.bfp .hint { line-height: 1.5; }
.bfp .bfp-legacy { padding: 6px 9px; border-radius: 7px; color: #6f4c29; background: #fff6e6; }
.bfp .field-error { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: 13px; font-weight: 600; line-height: 1.45; }
.bfp .field-error svg { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.bfp .error-field select, .bfp .error-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { border-color: #cf8a8d; background: #fffafa; }
.bfp .error-field .bfp-choice-opt { border-color: #e2b3b5; }
.bfp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bfp .notice { margin-bottom: 16px; }
.bfp-link { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 4px 8px; border: 0; border-radius: 7px; color: var(--rose-dark); background: transparent; font-size: 13px; font-weight: 700; }
.bfp-link:hover { background: #f6eef1; }
.bfp-link svg { width: 16px; height: 16px; }
.bfp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bfp-tag { display: inline-flex; min-height: 26px; align-items: center; padding: 2px 10px; border: 1px solid #eadfe3; border-radius: 999px; color: var(--ink-soft); background: #fcf8f9; font-size: 12px; line-height: 1.4; }
.bfp-skel { display: block; width: 100%; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #eee7e3 20%, #f7f2ef 40%, #eee7e3 60%) 0 0 / 300% 100%; animation: bfp-shimmer 1.4s linear infinite; }
.bfp-skel.short { width: 60%; }

/* ---------- wizard page ---------- */
.bfp-page { min-height: 100vh; background: var(--bg); }
.bfp-top { position: sticky; top: 0; z-index: 30; display: flex; height: 68px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); background: rgba(253, 252, 250, .96); backdrop-filter: blur(12px); }
.bfp-top .brand { display: inline-flex; min-height: 0; padding: 0; }
.bfp-top .brand-logo { width: auto; height: 42px; }
.bfp-lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.bfp-lang button { min-height: 34px; padding: 4px 13px; border: 0; border-radius: 999px; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 600; }
.bfp-lang button[aria-pressed="true"] { color: #fff; background: var(--rose-dark); }
.bfp-lang button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bfp-layout { display: grid; max-width: 1340px; grid-template-columns: 250px minmax(0, 1fr) 290px; align-items: start; gap: 28px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 72px; }
.bfp-rail, .bfp-side { position: sticky; top: 92px; }
.bfp-rail-head .status { margin-bottom: 12px; }
.bfp-rail-head h2 { margin: 0 0 2px; font-size: 21px; }
.bfp-rail-head p { margin: 0; color: var(--muted); font-size: 13px; }
.bfp-steps { display: grid; gap: 4px; margin: 18px 0 0; padding: 0; list-style: none; }
.bfp-step { position: relative; }
.bfp-step:not(:last-child)::after { position: absolute; top: 44px; bottom: -6px; left: 27px; width: 1.5px; border-radius: 2px; background: #e3d9dc; content: ''; }
.bfp-step.is-done:not(:last-child)::after { background: #d9b9c6; }
.bfp-step button { display: grid; width: 100%; min-height: 50px; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 7px 10px; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; text-align: left; }
.bfp-step button:not(:disabled):hover { background: #efe9e5; }
.bfp-step button:disabled { opacity: 1; cursor: default; }
.bfp-step button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.bfp-step-dot { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 1.5px solid #d8ced2; border-radius: 50%; color: var(--muted); background: #fff; font-size: 14px; font-weight: 700; }
.bfp-step-dot svg { width: 16px; height: 16px; stroke-width: 2.4; }
.bfp-step.is-current .bfp-step-dot { border-color: var(--rose); color: #fff; background: var(--rose); box-shadow: 0 0 0 4px #f6e3ea; }
.bfp-step.is-done .bfp-step-dot { border-color: #dcbccb; color: var(--rose-dark); background: #f5e9ee; }
.bfp-step-text strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.bfp-step-text small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.bfp-step.is-current .bfp-step-text small { color: var(--rose-dark); }
.bfp-step.is-todo .bfp-step-text strong { color: var(--muted); font-weight: 500; }
.bfp-rail-mid { display: none; margin-top: 20px; }
.bfp-rail-note { display: flex; gap: 10px; margin-top: 22px; padding: 14px; border: 1px solid #e4dcd8; border-radius: 12px; background: #fbf9f7; }
.bfp-rail-note svg { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.bfp-rail-note p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; }
.bfp-main { min-width: 0; }
.bfp-card { padding: clamp(22px, 3vw, 36px); }
.bfp-step-count { margin: 0 0 6px; color: var(--rose-dark); font-size: 13px; font-weight: 700; }
.bfp-step-head h1 { margin: 0 0 6px; font-size: clamp(25px, 2.4vw, 31px); outline: none; }
.bfp-step-intro { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.bfp-group + .bfp-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid #efe8e5; }
.bfp-group-head { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bfp-group-head h3 { margin: 0; font-size: 16px; }
.bfp-grid { gap: 18px 18px; }
.bfp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #efe8e5; }
.bfp-nav .button { min-width: 150px; }
.bfp-nav .button svg { width: 18px; height: 18px; }
.bfp-mprog { display: none; margin: 0 0 12px; }
.bfp-mprog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.bfp-mprog-top strong { color: var(--ink); font-size: 15px; }
.bfp-mprog-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bfp-mprog-bar span { height: 4px; border-radius: 4px; background: #e5dcd9; }
.bfp-mprog-bar span.on { background: var(--rose); }
.bfp-loading { display: grid; width: min(560px, calc(100% - 32px)); gap: 12px; margin: 60px auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bfp-loading p { margin: 6px 0 0; color: var(--muted); }

/* ---------- controls ---------- */
.bfp-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.bfp-choice-profile_for { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bfp .bfp-choice-opt { position: relative; display: grid; min-height: 50px; align-content: center; gap: 3px; padding: 11px 14px 11px 44px; border: 1px solid #ded3d8; border-radius: 10px; color: var(--ink); background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.bfp .bfp-choice-opt:hover { border-color: #cfaebb; }
.bfp .bfp-choice-opt input { position: absolute; top: 50%; left: 15px; width: 18px; height: 18px; margin: 0; transform: translateY(-50%); accent-color: var(--rose); }
.bfp .bfp-choice-opt.is-on { border-color: var(--rose); background: #fdf5f8; box-shadow: inset 0 0 0 1px var(--rose); }
.bfp .bfp-choice-opt.is-off { opacity: .5; cursor: default; }
.bfp .bfp-choice-opt:has(input:disabled) { cursor: default; }
.bfp .bfp-choice-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bfp-dob { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.bfp-age { margin: 4px 0 0; color: var(--green); font-size: 13px; font-weight: 700; }
.bfp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bfp .bfp-chip { position: relative; display: inline-flex; min-height: 40px; align-items: center; gap: 6px; padding: 6px 15px; border: 1px solid #ded3d8; border-radius: 999px; color: var(--ink); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; transition: border-color .15s, background-color .15s, color .15s; }
.bfp .bfp-chip:hover { border-color: #cfaebb; }
.bfp .bfp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bfp .bfp-chip.is-on { border-color: var(--rose); color: #fff; background: var(--rose); }
.bfp .bfp-chip.is-on::before { width: 6px; height: 10px; margin: -3px 2px 0 0; border: solid currentColor; border-width: 0 2px 2px 0; content: ''; transform: rotate(45deg); }
.bfp .bfp-chip.is-disabled { opacity: .45; cursor: not-allowed; }
.bfp .bfp-chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bfp-count { margin: 0; color: var(--muted); font-size: 12px; }
.bfp-pw { position: relative; }
.bfp .bfp-pw input { padding-right: 50px; }
.bfp-pw-toggle { position: absolute; top: 50%; right: 4px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; transform: translateY(-50%); }
.bfp-pw-toggle:hover { color: var(--rose-dark); background: #f6eef1; }
.bfp-pw-rules { display: flex; flex-wrap: wrap; gap: 3px 14px; margin: 2px 0 0; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.bfp-pw-rules li { display: inline-flex; align-items: center; gap: 6px; }
.bfp-pw-rules li::before { width: 7px; height: 7px; border-radius: 50%; background: #d3c8cc; content: ''; }
.bfp-pw-rules li[data-ok="true"] { color: var(--green); }
.bfp-pw-rules li[data-ok="true"]::before { background: var(--green); }
.bfp-static { display: flex; min-height: 46px; align-items: center; gap: 9px; padding: 10px 12px; border: 1px dashed #ddd2d6; border-radius: 8px; color: var(--ink-soft); background: #f8f5f4; }
.bfp-static svg { width: 16px; height: 16px; color: var(--muted); }
.bfp-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfp-suggest { margin: 2px 0 0; padding: 8px 10px; border-radius: 8px; color: #6f4c29; background: #fff6e6; font-size: 13px; }
.bfp-suggest button { min-height: 0; margin-left: 4px; padding: 0; border: 0; color: var(--rose-dark); background: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bfp .bfp-check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.6; cursor: pointer; }
.bfp .bfp-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rose); }
.bfp-summary { margin: 0 0 22px; padding: 14px 16px; border: 1px solid #efcfcc; border-left: 4px solid var(--danger); border-radius: 10px; background: #fff7f6; outline: none; }
.bfp-summary strong { display: block; margin-bottom: 4px; color: #8c3439; font-size: 14px; }
.bfp-summary ul { display: grid; gap: 2px; margin: 0; padding-left: 18px; }
.bfp-summary button { min-height: 28px; padding: 0; border: 0; color: #8c3439; background: none; font-size: 13px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.bfp-consent { margin-top: 24px; padding: 15px 16px; border: 1px solid #eadfe3; border-radius: 12px; background: #fff; }
.bfp-consent.error-field { border-color: #e5b7b9; background: #fffafa; }

/* ---------- live preview ---------- */
.bfp-preview-kicker { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.bfp-preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bfp-preview-photo { position: relative; display: grid; overflow: hidden; aspect-ratio: 4 / 4.4; place-items: center; background: #eae5df; }
.bfp-preview-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.bfp-preview-empty svg { width: 56px; height: 56px; color: #afa39e; stroke-width: 1; }
.bfp-preview-body { padding: 15px 16px 17px; }
.bfp-preview-body h3 { margin: 0 0 1px; font-size: 22px; }
.bfp-preview-loc { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.bfp-preview-facts { display: grid; gap: 5px; margin: 0; }
.bfp-preview-facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.bfp-preview-facts dt { color: var(--muted); }
.bfp-preview-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.bfp-preview-body .bfp-tags { margin-top: 12px; }
.bfp-ph { color: #b8adb3; }
.bfp-preview-note { display: flex; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.bfp-preview-note svg { width: 15px; height: 15px; margin-top: 2px; flex: none; }

/* ---------- photo step ---------- */
.bfp-drop { display: grid; justify-items: center; gap: 6px; padding: 30px 20px; border: 1.5px dashed #d6c3ca; border-radius: 14px; background: #fcfaf9; text-align: center; transition: border-color .15s, background-color .15s; }
.bfp-drop.is-over { border-color: var(--rose); background: #fdf3f6; }
.bfp-drop-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 4px; border-radius: 50%; color: var(--rose-dark); background: #f3e8ec; }
.bfp-drop-icon svg { width: 24px; height: 24px; }
.bfp-drop-title { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.bfp-drop .hint { margin: 0 0 8px; }
.bfp-drop-or { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.bfp-photo-tips { display: grid; gap: 4px; margin: 16px 0 6px; padding-left: 20px; color: var(--ink-soft); font-size: 13px; }
.bfp-photo-busy { display: grid; max-width: 300px; gap: 10px; }
.bfp-photo-busy .bfp-skel { height: auto; aspect-ratio: 4 / 5; border-radius: 12px; }
.bfp-photo-busy p { margin: 0; color: var(--muted); font-size: 14px; }
.bfp-cropper { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); align-items: start; gap: 24px; }
.bfp-crop-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 12px; background: #2b2228; }
#bfp-crop { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#bfp-crop:active { cursor: grabbing; }
#bfp-crop:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.bfp-crop-guide { position: absolute; inset: 11% 21% 31%; border: 1.5px dashed rgba(255, 255, 255, .8); border-radius: 50%; box-shadow: 0 0 0 999px rgba(20, 12, 18, .12); pointer-events: none; }
.bfp-crop-panel h3 { margin: 0 0 4px; font-size: 17px; }
.bfp-crop-panel .hint { display: block; margin-bottom: 16px; }
.bfp-crop-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.bfp .bfp-crop-tools input[type="range"] { flex: 1; min-width: 80px; height: 30px; accent-color: var(--rose); }
.bfp-icon-btn { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid #ded3d8; border-radius: 8px; color: var(--ink-soft); background: #fff; }
.bfp-icon-btn:hover { border-color: #cfaebb; color: var(--rose-dark); }
.bfp-icon-btn svg { width: 18px; height: 18px; }
.bfp-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bfp-photo-actions .button svg { width: 17px; height: 17px; }
.bfp-photo-done { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 20px; }
.bfp-photo-done img { width: 150px; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; }
.bfp-photo-meta { margin: 4px 0 2px; color: var(--ink); font-weight: 700; }
.bfp-photo-done .bfp-photo-actions { margin-top: 14px; }

/* ---------- review ---------- */
.bfp-review { display: grid; gap: 12px; }
.bfp-review-preview { display: none; }
.bfp-review-sec { padding: 15px 18px; border: 1px solid #eee6e3; border-radius: 12px; background: #fdfbfa; }
.bfp-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bfp-review-head h3 { margin: 0; font-size: 15px; }
.bfp-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; margin: 0; }
.bfp-review-list div { display: grid; min-width: 0; gap: 1px; }
.bfp-review-list dt { color: var(--muted); font-size: 12px; }
.bfp-review-list dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- edit profile ---------- */
.bfp-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 24px; }
.bfp-edit-main { min-width: 0; }
.bfp-edit-nav { position: sticky; top: 88px; z-index: 6; display: flex; gap: 4px; overflow-x: auto; margin: 0 0 14px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(253, 252, 250, .96); backdrop-filter: blur(10px); scrollbar-width: none; }
.bfp-edit-nav::-webkit-scrollbar { display: none; }
.bfp-edit-nav button { min-height: 38px; flex: none; padding: 4px 12px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; font-size: 14px; white-space: nowrap; }
.bfp-edit-nav button:hover { background: #f1ebe8; }
.bfp-edit-nav button.is-active { color: var(--rose-dark); background: #f3e8ec; font-weight: 700; }
.bfp-section { padding: 24px 26px; scroll-margin-top: 150px; }
.bfp-section + .bfp-section { margin-top: 14px; }
.bfp-sec-head { margin-bottom: 18px; }
.bfp-sec-head .eyebrow { margin-bottom: 2px; }
.bfp-sec-head h2 { margin: 0 0 4px; font-size: 19px; outline: none; }
.bfp-sec-head p { margin: 0; color: var(--muted); font-size: 13px; }
.bfp-savebar { align-items: center; }
.bfp-dirty { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; color: var(--muted); font-size: 13px; }
.bfp-dirty::before { width: 8px; height: 8px; border-radius: 50%; background: var(--green); content: ''; }
.bfp-dirty.is-on { color: var(--warning); }
.bfp-dirty.is-on::before { background: var(--orange); }
.bfp-edit-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.bfp-side-note { padding: 18px; }
.bfp-side-note h3 { margin: 0 0 8px; font-size: 16px; }
.bfp-side-note ul { display: grid; gap: 5px; margin: 0 0 12px; padding-left: 18px; color: var(--ink-soft); font-size: 13px; }

/* ---------- my profile / profile details ---------- */
.bfp-created { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; margin: 0 0 16px; padding: 18px 20px; border: 1px solid #cde7d5; border-radius: 14px; background: #f0faf4; }
.bfp-created > svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: #fff; background: var(--green); stroke-width: 2.6; }
.bfp-created h2 { margin: 0 0 6px; font-size: 18px; }
.bfp-created ol { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.bfp-mine { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 16px; }
.bfp-hero { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 22px; padding: 16px; }
.bfp-hero .profile-photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; border-radius: 12px; }
.bfp-hero-body h1 { margin: 4px 0 4px; font-size: 32px; }
.bfp-hero-body > .muted { margin: 0 0 12px; }
.bfp-hero-body .bfp-tags { margin-bottom: 12px; }
.bfp-hero-status { display: flex; flex-wrap: wrap; gap: 8px; }
.bfp-complete { display: grid; align-content: start; gap: 10px; padding: 20px; }
.bfp-complete-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bfp-complete-top h2 { margin: 0; font-size: 17px; }
.bfp-complete-top strong { color: var(--rose-dark); font-size: 26px; line-height: 1; }
.bfp-complete progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 8px; background: #efe7e9; accent-color: var(--rose); appearance: none; }
.bfp-complete progress::-webkit-progress-bar { border-radius: 8px; background: #efe7e9; }
.bfp-complete progress::-webkit-progress-value { border-radius: 8px; background: var(--rose); }
.bfp-complete progress::-moz-progress-bar { border-radius: 8px; background: var(--rose); }
.bfp-complete p { margin: 0; }
.bfp-missing { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bfp-missing a { display: inline-flex; min-height: 32px; align-items: center; padding: 2px 11px; border: 1px dashed #d6c3ca; border-radius: 999px; color: var(--rose-dark); font-size: 13px; text-decoration: none; }
.bfp-missing a:hover { border-style: solid; background: #fdf5f8; }
.bfp-state { display: grid; gap: 0; margin: 6px 0 0; padding: 0; border-top: 1px solid #efe8e5; list-style: none; }
.bfp-state li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid #efe8e5; font-size: 14px; }
.bfp-state span { color: var(--ink-soft); }
.bfp-state strong { font-size: 13px; }
.bfp-state strong.is-good { color: var(--green); }
.bfp-state strong.is-warn { color: var(--warning); }
.bfp-state .inline-link { font-size: 13px; }
/* Two balanced columns, so short cards (Location) do not leave tall gaps beside long ones (Key details). */
.bfp-sections { display: block; column-count: 2; column-gap: 14px; }
.bfp-sections > .card { display: block; margin: 0 0 14px; break-inside: avoid; }
.bfp-sections .bfp-sec-about, .bfp-sections .bfp-sec-partner { column-span: all; }
.bfp-sections .bfp-sec-partner .detail-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bfp-private { margin-top: 16px; }

/* ---------- motion (occasional, subtle; off for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bfp-step-anim { animation: bfp-in .24s cubic-bezier(.2, .8, .2, 1) backwards; }
  .bfp-summary { animation: bfp-in .2s ease-out backwards; }
}
@keyframes bfp-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes bfp-shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .bfp-skel { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .bfp-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .bfp-side { display: none; }
  .bfp-rail-mid { display: block; }
}
@media (max-width: 1100px) {
  .bfp-edit-layout { grid-template-columns: minmax(0, 1fr); }
  .bfp-edit-side { display: none; }
  .bfp-mine { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .bfp-layout { display: block; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .bfp-rail { display: none; }
  .bfp-mprog { display: block; }
  .bfp-review-preview { display: block; max-width: 340px; }
  .bfp-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); }
  .bfp-nav .button { min-width: 0; flex: 1; }
  .bfp-nav > span:first-child { display: none; }
  .bfp-edit-nav { top: 72px; }
}
@media (max-width: 740px) {
  .bfp-top { height: 58px; }
  .bfp-top .brand-logo { height: 34px; }
  .bfp-card { padding: 20px 16px 22px; border-radius: 12px; }
  .bfp-step-intro { margin-bottom: 18px; font-size: 14px; }
  .bfp-group + .bfp-group { margin-top: 20px; padding-top: 18px; }
  .bfp-grid { gap: 14px; }
  .bfp-cropper { grid-template-columns: minmax(0, 1fr); }
  .bfp-crop-stage { width: min(100%, 300px); margin: 0 auto; }
  .bfp-photo-done { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .bfp-photo-done img { width: 112px; }
  .bfp-review-list { grid-template-columns: minmax(0, 1fr); }
  .bfp-sections { column-count: 1; }
  .bfp-choice-profile_for { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfp .bfp-choice-opt { padding-left: 40px; font-size: 14.5px; }
  .bfp .bfp-choice-opt input { left: 13px; }
  .bfp-section { padding: 18px 16px; scroll-margin-top: 130px; }
  .bfp-hero { grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 12px; }
  .bfp-hero-body h1 { font-size: 26px; }
  .bfp-created { grid-template-columns: minmax(0, 1fr) auto; }
  .bfp-created > svg { display: none; }
  .bfp-savebar .bfp-dirty { width: 100%; justify-content: center; margin: 0; }
}
@media (max-width: 380px) {
  .bfp-dob { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bfp-dob > select:last-child { grid-column: 1 / -1; }
  .bfp-lang button { padding: 4px 10px; }
}
.bfp-claim-main { width: min(100% - 2rem, 34rem); margin: 4rem auto; }
.bfp-claim .bfp-card { padding: clamp(1.25rem, 4vw, 2.5rem); }
.bfp-claim form { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.bfp-claim form .button { min-height: 3rem; }
