/* ════════════════════════════════════════════════════════════════
   PROFILE v2 — in-app account / settings surface
   Namespace: .pfv2-*
═══════════════════════════════════════════════════════════════════ */

/* ── Variable bridge ────────────────────────────────────────────
   Map short-form design-token names to production Quartet variables.
   ─────────────────────────────────────────────────────────────── */
.pfv2-page {
  --bg:         var(--bg-deep);
  --bg-2:       var(--surface-deep);
  --surface:    var(--surface-deep);
  --surface-2:  var(--surface-deep-2);
  --surface-hi: var(--surface-deep-hi);
  --line:       var(--line-deep);
  --line-2:     var(--line-deep-2);
  --ink:        var(--ink-deep);
  --ink-2:      var(--ink-deep-2);
  --muted:      var(--muted-deep);
  --muted-2:    var(--muted-deep-2);
  --faint:      var(--faint-deep);
  --cyan:       var(--quartet-cyan);
  --cyan-2:     var(--quartet-cyan-2);
  --cyan-dim:   var(--quartet-cyan-dim);
  --accent-fill:   var(--quartet-cyan-fill);
  --accent-border: var(--quartet-cyan-border);
  --indigo:     var(--quartet-indigo);
  --violet:     var(--quartet-violet);
  --amber:      var(--quartet-amber);
  --coral:      var(--quartet-coral);
  --pos:        var(--quartet-pos);
  --pos-2:      var(--quartet-pos-2, #8de4b6);
  --pos-fill:   var(--quartet-pos-fill);
  --pos-border: var(--quartet-pos-border);
  --neg:        var(--quartet-neg);
  --neg-border: var(--quartet-neg-border, rgba(255,138,138,.30));
  --warn:       var(--quartet-amber);
  --warn-2:     color-mix(in srgb, var(--quartet-amber), white 18%);
  --font-mono:  var(--font-quartet-mono);

  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 32px 96px;
  font-family: var(--font-quartet);
  color: var(--ink);
}

[data-phue="cyan"]   { --p: var(--cyan);   --p-2: var(--cyan-2);  --p-fill: rgba(109,212,220,.10); --p-border: rgba(109,212,220,.34); }
[data-phue="indigo"] { --p: var(--indigo); --p-2: #aab8ff;        --p-fill: rgba(138,159,255,.10); --p-border: rgba(138,159,255,.36); }
[data-phue="violet"] { --p: var(--violet); --p-2: #ccb0ff;        --p-fill: rgba(184,141,255,.10); --p-border: rgba(184,141,255,.36); }
[data-phue="amber"]  { --p: var(--amber);  --p-2: var(--warn-2);  --p-fill: rgba(255,198,109,.10); --p-border: rgba(255,198,109,.36); }

/* ─── Header ─────────────────────────────────────────────────────── */
.pfv2-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.pfv2-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.20em; margin-bottom: 13px; }
.pfv2-eyebrow .pulse { width: 6px; height: 6px; border-radius: 999px; background: var(--cyan); animation: capital-pulse 2.4s ease-out infinite; }
.pfv2-eyebrow .sep { color: var(--faint); }
.pfv2-title { margin: 0; font-size: 38px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.pfv2-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 12.5px; transition: color .15s; white-space: nowrap; }
.pfv2-back:hover { color: var(--ink); }
.pfv2-back svg { width: 15px; height: 15px; }

/* ─── Two-column layout ──────────────────────────────────────────── */
.pfv2-grid { display: grid; grid-template-columns: 312px minmax(0,1fr); gap: 24px; align-items: start; }
.pfv2-rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.pfv2-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* identity card */
.pfv2-id { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 24px 22px; text-align: center; position: relative; overflow: hidden; }
.pfv2-id::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 64px; background: linear-gradient(180deg, var(--accent-fill), transparent); }
.pfv2-avatar { position: relative; width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--cyan), var(--indigo)); color: #04141a; font-size: 27px; font-weight: 600; letter-spacing: -0.02em; box-shadow: 0 6px 20px -6px rgba(109,212,220,.5); }
.pfv2-avatar.glyph { background: var(--surface-hi); border: 1px solid var(--line-2); color: var(--muted); box-shadow: none; }
.pfv2-avatar.glyph svg { width: 34px; height: 34px; }
.pfv2-id .nm { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.pfv2-id .em { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.pfv2-id .em svg { width: 13px; height: 13px; }
.pfv2-id-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pfv2-plan-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg-2); }
.pfv2-plan-pill.free .d { width: 6px; height: 6px; border-radius: 999px; background: var(--muted-2); }
.pfv2-plan-pill.premium { color: var(--amber); border-color: rgba(255,198,109,.3); background: rgba(255,198,109,.08); }
.pfv2-plan-pill.premium svg { width: 12px; height: 12px; }
.pfv2-id-since { font-size: 11px; color: var(--muted-2); }

/* rail nav */
.pfv2-nav { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pfv2-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; transition: all .15s; cursor: pointer; }
.pfv2-nav a:hover { background: var(--bg-2); color: var(--ink); }
.pfv2-nav a.active { background: var(--accent-fill); color: var(--cyan); }
.pfv2-nav a .ni { width: 17px; height: 17px; flex-shrink: 0; display: flex; }
.pfv2-nav a .ni svg { width: 17px; height: 17px; }

/* ─── Section card ───────────────────────────────────────────────── */
.pfv2-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 24px 26px; scroll-margin-top: 24px; }
.pfv2-card-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.pfv2-card-ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--accent-fill); border: 1px solid var(--accent-border); color: var(--cyan); }
.pfv2-card-ic svg { width: 19px; height: 19px; }
.pfv2-card-titles { flex: 1; min-width: 0; padding-top: 1px; }
.pfv2-card-titles h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.pfv2-card-titles p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pfv2-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pos); font-weight: 600; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.pfv2-saved.show { opacity: 1; }
.pfv2-saved svg { width: 13px; height: 13px; }

/* form grid */
.pfv2-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pfv2-field { display: flex; flex-direction: column; min-width: 0; }
.pfv2-field.full { grid-column: 1 / -1; }
.pfv2-field .fl { font-size: 11.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.pfv2-field .fl svg { width: 13px; height: 13px; color: var(--muted-2); cursor: help; }
.pfv2-field .fhelp { font-size: 11px; color: var(--muted-2); margin-top: 7px; line-height: 1.4; }

.pfv2-input, .pfv2-select { width: 100%; padding: 11px 13px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); font-family: inherit; font-size: 14px; outline: none; transition: border-color .15s, background .15s; box-sizing: border-box; color-scheme: dark; }
.pfv2-input.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pfv2-fields input[type="date"].pfv2-input { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); color-scheme: dark; font-family: var(--font-mono); font-variant-numeric: tabular-nums; padding: 11px 13px; border-radius: 8px; }
.pfv2-fields input[type="date"].pfv2-input:focus { border-color: var(--cyan); background: var(--surface-2); }
.pfv2-input::placeholder { color: var(--muted-2); }
.pfv2-input:focus, .pfv2-select:focus { border-color: var(--cyan); background: var(--surface-2); }
.pfv2-input-wrap { position: relative; display: flex; align-items: center; }
.pfv2-input-wrap .pre { position: absolute; left: 13px; font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); pointer-events: none; }
.pfv2-input-wrap .pre + .pfv2-input { padding-left: 46px; }
.pfv2-input-wrap .suf { position: absolute; right: 13px; font-size: 12px; color: var(--muted-2); pointer-events: none; }
.pfv2-select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565d6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }

/* card footer / save row */
.pfv2-card-foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pfv2-save { display: inline-flex; align-items: center; gap: 8px; background: var(--cyan); color: #04141a; border: 0; padding: 10px 18px; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.pfv2-save:hover { background: var(--cyan-2); transform: translateY(-1px); }
.pfv2-save:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pfv2-save svg { width: 15px; height: 15px; }
.pfv2-foot-note { font-size: 11.5px; color: var(--muted-2); }

/* ─── Income computed stat strip ─────────────────────────────────── */
.pfv2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 22px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.pfv2-stat { padding: 18px 20px; border-left: 1px solid var(--line); }
.pfv2-stat:first-child { border-left: 0; }
.pfv2-stat .sl { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.pfv2-stat .sl svg { width: 13px; height: 13px; color: var(--muted-2); }
.pfv2-stat .sv { font-family: var(--font-mono); font-size: 26px; font-weight: 500; letter-spacing: -0.04em; margin-top: 11px; line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s; }
.pfv2-stat .sv .u { font-size: 13px; color: var(--muted-2); letter-spacing: 0; }
.pfv2-stat.good .sv { color: var(--pos); } .pfv2-stat.warn .sv { color: var(--warn); } .pfv2-stat.neu .sv { color: var(--cyan-2); }
.pfv2-stat .ss { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.pfv2-stat .ss b { color: var(--ink-2); font-family: var(--font-mono); font-weight: 500; }

/* ─── Risk tolerance ─────────────────────────────────────────────── */
.pfv2-risk { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 26px; align-items: center; }
.pfv2-risk-l { min-width: 0; }
.pfv2-risk-score { display: flex; align-items: baseline; gap: 12px; }
.pfv2-risk-score .num { font-family: var(--font-mono); font-size: 52px; font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; color: var(--p, var(--cyan)); }
.pfv2-risk-score .den { font-family: var(--font-mono); font-size: 18px; color: var(--muted-2); }
.pfv2-risk-cat { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--p, var(--cyan)); border: 1px solid var(--p-border); background: var(--p-fill); }
.pfv2-risk-cat .d { width: 6px; height: 6px; border-radius: 999px; background: var(--p, var(--cyan)); }
.pfv2-risk-blurb { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.55; max-width: 46ch; }
.pfv2-risk-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.pfv2-risk-meta svg { width: 13px; height: 13px; }
.pfv2-risk-na { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 20px; text-align: center; }
.pfv2-risk-na .num { font-family: var(--font-mono); font-size: 40px; font-weight: 500; color: var(--muted-2); }
.pfv2-risk-na p { font-size: 13px; color: var(--muted); max-width: 36ch; line-height: 1.55; }

/* gauge */
.pfv2-gauge { position: relative; height: 9px; border-radius: 999px; margin: 22px 0 8px; background: linear-gradient(90deg, var(--cyan) 0%, var(--indigo) 42%, var(--violet) 70%, var(--amber) 100%); opacity: .85; }
.pfv2-gauge .needle { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.5); transition: left 1s cubic-bezier(.2,.7,.2,1); }
.pfv2-gauge-scale { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted-2); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* allocation donut + legend (right side) */
.pfv2-alloc { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; }
.pfv2-alloc-ttl { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; align-self: flex-start; }
.pfv2-donut { width: 128px; height: 128px; position: relative; }
.pfv2-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pfv2-donut .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pfv2-donut .center .big { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
.pfv2-donut .center .lbl { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }
.pfv2-alloc-legend { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.pfv2-alloc-legend .row { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.pfv2-alloc-legend .row .sw { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.pfv2-alloc-legend .row .nm { color: var(--ink-2); }
.pfv2-alloc-legend .row .vv { margin-left: auto; font-family: var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }

.pfv2-risk-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pfv2-risk-cta .txt { font-size: 12.5px; color: var(--muted); max-width: 52ch; line-height: 1.5; }
.pfv2-btn-primary { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 8px; border: 0; cursor: pointer; background: var(--cyan); color: #04141a; font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, transform .15s; }
.pfv2-btn-primary:hover { background: var(--cyan-2); transform: translateY(-1px); }
.pfv2-btn-primary svg { width: 16px; height: 16px; }

/* ─── Preferences toggle row ─────────────────────────────────────── */
.pfv2-toggle-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; }
.pfv2-toggle-row .tic { color: var(--cyan); margin-top: 1px; } .pfv2-toggle-row .tic svg { width: 18px; height: 18px; }
.pfv2-toggle-row .tt { flex: 1; min-width: 0; }
.pfv2-toggle-row .tt .h { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.pfv2-toggle-row .tt .s { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.pfv2-switch { position: relative; width: 40px; height: 23px; border-radius: 999px; background: var(--surface-hi); border: 1px solid var(--line-2); cursor: pointer; flex-shrink: 0; transition: background .18s, border-color .18s; }
.pfv2-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: transform .18s, background .18s; }
.pfv2-switch.on { background: var(--accent-fill); border-color: var(--cyan); }
.pfv2-switch.on::after { transform: translateX(17px); background: var(--cyan); }

/* ─── Subscription ───────────────────────────────────────────────── */
.pfv2-sub { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; }
.pfv2-sub-l .tier { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; }
.pfv2-sub-l .tier svg { width: 13px; height: 13px; }
.pfv2-sub-l p { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 52ch; }

/* account info rows */
.pfv2-info-rows { display: flex; flex-direction: column; }
.pfv2-info-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pfv2-info-row:first-child { border-top: 0; padding-top: 0; }
.pfv2-info-row .k { font-size: 12.5px; color: var(--muted); }
.pfv2-info-row .v { font-size: 13px; color: var(--ink); font-weight: 500; }
.pfv2-info-row .v.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pfv2-link-btn { background: transparent; border: 0; color: var(--cyan); font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 0; }
.pfv2-link-btn:hover { color: var(--cyan-2); }
.pfv2-danger { color: var(--neg) !important; }
.pfv2-coming-soon { font-size: 11px; color: var(--muted-2); font-weight: 500; padding: 4px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-2); }

/* ════════════════ RISK QUESTIONNAIRE OVERLAY ══════════════════ */
.pfv2-scrim {
  --bg:         var(--bg-deep);
  --bg-2:       var(--surface-deep);
  --surface:    var(--surface-deep);
  --surface-2:  var(--surface-deep-2);
  --surface-hi: var(--surface-deep-hi);
  --line:       var(--line-deep);
  --line-2:     var(--line-deep-2);
  --ink:        var(--ink-deep);
  --ink-2:      var(--ink-deep-2);
  --muted:      var(--muted-deep);
  --muted-2:    var(--muted-deep-2);
  --faint:      var(--faint-deep);
  --cyan:       var(--quartet-cyan);
  --cyan-2:     var(--quartet-cyan-2);
  --accent-fill:   var(--quartet-cyan-fill);
  --accent-border: var(--quartet-cyan-border);
  --indigo:     var(--quartet-indigo);
  --violet:     var(--quartet-violet);
  --amber:      var(--quartet-amber);
  --pos:        var(--quartet-pos);
  --neg:        var(--quartet-neg);
  --font-mono:  var(--font-quartet-mono);

  position: fixed; inset: 0; z-index: 100; display: flex; align-items: safe center; justify-content: center; padding: 24px; overflow-y: auto; background: radial-gradient(circle at 50% 30%, rgba(12,16,26,.74), rgba(6,8,13,.93)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pfv2-modal { position: relative; width: 100%; max-width: 720px; margin: auto 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 48px); font-family: var(--font-quartet); }
.pfv2-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 20px; border-bottom: 1px solid var(--line-2); }
.pfv2-modal-head h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.pfv2-modal-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.pfv2-modal-x { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; transition: all .15s; }
.pfv2-modal-x:hover { color: var(--ink); background: var(--bg-2); }
.pfv2-modal-x svg { width: 15px; height: 15px; }

/* progress bar under header */
.pfv2-q-progress { height: 3px; background: var(--surface-hi); position: relative; }
.pfv2-q-progress .f { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--cyan), var(--cyan-2)); transition: width .4s cubic-bezier(.2,.7,.2,1); }

.pfv2-q-body { padding: 8px 28px 4px; max-height: 60vh; overflow-y: auto; overflow-x: hidden; }
.pfv2-q-body::-webkit-scrollbar { width: 8px; }
.pfv2-q-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.pfv2-q { padding: 20px 0; border-top: 1px solid var(--line); }
.pfv2-q:first-child { border-top: 0; }
.pfv2-q .q-num { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); font-weight: 500; }
.pfv2-q .q-txt { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; margin: 6px 0 14px; line-height: 1.4; }
.pfv2-opts { display: flex; flex-direction: column; gap: 8px; }
.pfv2-opt { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.pfv2-opt:hover { border-color: var(--line-2); background: var(--bg-2); }
.pfv2-opt.sel { border-color: var(--cyan); background: var(--accent-fill); }
.pfv2-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: all .15s; }
.pfv2-opt.sel .radio { border-color: var(--cyan); }
.pfv2-opt.sel .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.pfv2-opt .ot { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pfv2-opt .ot .ol { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.pfv2-opt .ot .od { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.pfv2-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 28px; border-top: 1px solid var(--line-2); background: var(--surface); }
.pfv2-q-count { font-size: 12px; color: var(--muted); }
.pfv2-q-count b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.pfv2-calc-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 8px; border: 0; cursor: pointer; background: var(--cyan); color: #04141a; font-family: inherit; font-size: 13px; font-weight: 600; transition: background .15s, transform .15s; }
.pfv2-calc-btn:hover:not(:disabled) { background: var(--cyan-2); transform: translateY(-1px); }
.pfv2-calc-btn:disabled { opacity: .4; cursor: not-allowed; }
.pfv2-calc-btn svg { width: 16px; height: 16px; }

/* result state */
.pfv2-result { padding: 36px 32px; text-align: center; }
.pfv2-result-ring { width: 168px; height: 168px; margin: 0 auto 8px; position: relative; }
.pfv2-result-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pfv2-result-ring .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pfv2-result-ring .center .big { font-family: var(--font-mono); font-size: 44px; font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; color: var(--p, var(--cyan)); }
.pfv2-result-ring .center .den { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.pfv2-result h3 { margin: 16px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--p, var(--cyan)); }
.pfv2-result .delta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pfv2-result .delta b { font-family: var(--font-mono); color: var(--ink-2); font-weight: 500; }
.pfv2-result p { font-size: 13.5px; color: var(--muted); margin: 14px auto 0; max-width: 44ch; line-height: 1.55; }
.pfv2-result-alloc { display: flex; justify-content: center; gap: 10px; margin: 24px 0 0; }
.pfv2-result-alloc .a { flex: 0 0 auto; min-width: 92px; padding: 14px 16px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-2); }
.pfv2-result-alloc .a .v { font-family: var(--font-mono); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.pfv2-result-alloc .a .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 5px; font-weight: 600; }
.pfv2-result-acts { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.pfv2-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); padding: 10px 18px; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; }
.pfv2-ghost:hover { border-color: var(--line-2); color: var(--ink); background: var(--bg-2); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .pfv2-grid { grid-template-columns: 1fr; }
  .pfv2-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .pfv2-id { flex: 1; min-width: 260px; }
  .pfv2-nav { flex: 1; min-width: 260px; flex-direction: row; flex-wrap: wrap; }
  .pfv2-nav a { flex: 1; min-width: 120px; }
  .pfv2-risk { grid-template-columns: 1fr; }
  .pfv2-alloc { max-width: 300px; }
}
@media (max-width: 620px) {
  .pfv2-page { padding: 22px 16px 72px; }
  .pfv2-title { font-size: 30px; }
  .pfv2-fields { grid-template-columns: 1fr; }
  .pfv2-stats { grid-template-columns: 1fr; }
  .pfv2-stat { border-left: 0; border-top: 1px solid var(--line); }
  .pfv2-stat:first-child { border-top: 0; }
  .pfv2-sub { grid-template-columns: 1fr; }
  .pfv2-result-alloc { flex-wrap: wrap; }
}
