/* v2 portfolio + personal pages (portfolio, holding, wallets, cost basis, swap, transaction edit, watchlist,
   alerts, account). 2026-11-02, release/v2. Uses the tokens and components in static/v2.css; this file only
   adds what these pages need. The old pf-* / ex-* hooks stay in the markup (portfolio.js reads them). */

/* ---------------------------------------------------------------- page head */
.pv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.pv-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-actions form { margin: 0; }
.pv-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--dim) !important; margin-bottom: 10px; }
.pv-back:hover { color: var(--text) !important; }
.pv-crumbs { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.pv-crumbs .pv-back { margin: 0; }
.pv-sub { color: var(--dim); font-size: 14.5px; margin-top: 6px; }

/* alerts / status lines */
.pv-msg { border-radius: 11px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; border: 1px solid; }
.pv-msg-err { color: #FDA4AF; background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .28); }
.pv-msg-ok { color: #6EE7B7; background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .25); }
.pv-msg-warn { color: #FCD34D; background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .25); }
.pv-msg a { color: inherit; text-decoration: underline; }
.pv-note { display: flex; align-items: center; gap: 7px; color: var(--amber); font-size: 12.5px; margin-top: 6px; }
.pv-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.pv-fine { color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- portfolio switcher */
.pv-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.pv-tab, .pv-tab:visited { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--dim); background: transparent; border: 1px solid var(--line-strong); }
.pv-tab:hover { color: var(--text); background: var(--raised); }
.pv-tab.active { color: #fff; background: var(--blue-soft); border-color: rgba(59, 130, 246, .5); }
.pv-tab .pv-star { color: var(--amber); font-size: 11px; }
.pv-manage { position: relative; }
.pv-manage > summary { list-style: none; cursor: pointer; }
.pv-manage > summary::-webkit-details-marker { display: none; }
.pv-manage-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 32px));
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
    display: grid; gap: 10px; }
.pv-manage-pop form { display: flex; gap: 8px; margin: 0; }
.pv-manage-pop input[type=text] { flex: 1; min-width: 0; height: 36px; padding: 0 11px; }
.pv-manage-pop .pf-danger { width: 100%; }

/* ---------------------------------------------------------------- hero */
.pv-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 14px; margin-bottom: 14px; }
.pv-hero-main { position: relative; overflow: hidden; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
    background: radial-gradient(420px 220px at 0% 0%, rgba(59, 130, 246, .18), transparent 70%),
                linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)), var(--surface); }
.pv-total { font-size: clamp(34px, 5vw, 48px); font-weight: 760; letter-spacing: -.035em; line-height: 1.05; color: #fff;
    font-variant-numeric: tabular-nums; margin-top: 6px; }
.pv-hero-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pv-tiles .v2-card { padding: 16px; }
.pv-tiles .v2-kpi-value { font-size: 22px; }
.pv-tiles .v2-kpi-value .pv-pct { font-size: 14px; font-weight: 600; margin-left: 4px; }
.v2-kpi-value.pos, .pv-total.pos { color: var(--up) !important; }
.v2-kpi-value.neg, .pv-total.neg { color: var(--down) !important; }
.pv-lock-tile a { color: var(--dim) !important; }
@media (max-width: 900px) { .pv-hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pv-tiles .v2-card { padding: 13px; } .pv-tiles .v2-kpi-value { font-size: 18px; } }

/* ---------------------------------------------------------------- chart + allocation */
.pv-charts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; margin: 14px 0; align-items: stretch; }
.pv-charts.pv-one { grid-template-columns: 1fr; }
@media (max-width: 900px) { .pv-charts { grid-template-columns: 1fr; } }
.pv-charts .pf-value-chart { margin: 0; min-width: 0; }
.pv-charts .pf-value-chart svg { height: 180px; }
/* Fill the card when the allocation card beside it is taller (no dead space under the line). */
@media (min-width: 901px) {
  .pv-charts .pf-value-chart { display: flex; flex-direction: column; }
  .pv-charts .pf-value-chart .pf-value-plot { flex: 1 1 auto; display: flex; min-height: 180px; }
  .pv-charts .pf-value-chart .pf-value-plot svg { height: auto; flex: 1 1 auto; min-height: 180px; }
}
.pv-charts .pf-value-head figcaption { color: var(--text); font-weight: 650; font-size: 14.5px; }
.pv-charts .pf-value-hl { color: var(--dim); }
.pv-charts .pf-value-legend { font-size: 12.5px; color: var(--dim); }
.pf-vsbtc { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.pf-vsbtc-head { font-size: 13px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.pf-vsbtc-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; font-size: 13px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.pf-vsbtc-row .up { color: var(--up); } .pf-vsbtc-row .down { color: var(--down); }
.pf-vsbtc-row .v2-chip { min-width: 74px; justify-content: center; }
.pv-charts .pf-btc-line { font-size: 13.5px; margin: 8px 0 0; }
.pv-alloc h3, .pv-chart-title { font-size: 14.5px; font-weight: 650; margin: 0 0 12px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.pv-alloc .pf-donut-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.pv-alloc .pf-donut { width: 128px; height: 128px; align-self: center; position: relative; border-radius: 50%; }
.pv-alloc .pf-donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); }
.pv-alloc .pf-legend { min-width: 0; font-size: 13px; }
.pv-alloc .pf-legend li { margin: 5px 0; }
.pv-alloc .pf-legend-pct { color: var(--dim); }
.pf-concentration { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pf-concentration > div { display: inline-flex; gap: 6px; align-items: center; background: var(--raised); border: 1px solid var(--line-strong);
    border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.pf-concentration dt { color: var(--muted); }
.pf-concentration dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pf-concentration .pf-conc-label { color: #8AB4FF; background: var(--blue-soft); border-color: rgba(59, 130, 246, .3); }
.price-chart-frames { display: inline-flex; gap: 2px; background: var(--nav); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.price-chart-frames .pc-frame { border: 0; background: transparent; color: var(--dim); font-size: 12.5px; font-weight: 600; padding: 4px 10px;
    border-radius: 7px; cursor: pointer; }
.price-chart-frames .pc-frame.active { background: var(--raised); color: #fff; }

/* ---------------------------------------------------------------- holdings table */
.pv-table td.num, .pv-table th.num { text-align: right; white-space: nowrap; }
.pv-table td { font-variant-numeric: tabular-nums; }
.pv-table tr[data-href] { cursor: pointer; }
.pv-coin-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.pv-coin-sub .pf-dev { color: var(--muted); }
.pv-coin-text { display: flex; flex-direction: column; min-width: 0; }
.pv-coin-text .coin-symbol { margin-left: 0; }
.pv-alloc-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pv-bar { width: 64px; height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; flex: none; }
.pv-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3B82F6, #2DD4BF); }
.pv-pnl-pct { font-size: 11.5px; opacity: .85; margin-left: 3px; }
.pv-lockchip, .pv-lockchip:visited { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 8px;
    border-radius: 8px; background: var(--raised); border: 1px dashed var(--line-strong); color: var(--muted) !important; font-size: 12px; }
.pv-lockchip:hover { color: var(--text) !important; border-color: var(--blue); }
.pv-lockchip svg { width: 12px; height: 12px; }
@media (max-width: 760px) { .pv-hide-sm { display: none; } }

/* ---------------------------------------------------------------- insights */
.pv-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pv-insights .pf-insight { margin: 0; }
.pv-insights .pf-card strong, .pv-insight-title { font-size: 14.5px; font-weight: 650; display: block; margin-bottom: 8px; }
.pf-example-band { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
    color: var(--amber); background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .22); border-radius: 8px; padding: 5px 9px; margin-bottom: 12px; }
.pf-example-band span:last-child { color: var(--dim); font-weight: 600; letter-spacing: 0; }
.pf-unlock-figure { font-size: 30px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.pf-exch-btn { display: inline-flex; align-items: center; gap: 6px; }
.pf-exch-btn svg { width: 13px; height: 13px; flex: none; }
.pf-lock-link, .pf-lock-link:visited { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.pv-small { font-size: 13px; color: var(--dim); margin: 6px 0 0; }
.pf-wl { display: flex; align-items: flex-end; gap: 8px; height: 120px; position: relative; margin: 6px 0 8px; padding-top: 8px; }
.pf-wl-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--dim); }
.pf-wl-bar { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4C8DF8, #2F6FE4); }
.pf-wl-bar.weak { background: linear-gradient(180deg, #FB7185, #E11D48); }
.pf-wl-rule { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-strong); }
.pf-wl-rule span { position: absolute; right: 0; top: -16px; font-size: 10.5px; color: var(--muted); }
.pf-wl-line { font-size: 13.5px; margin: 6px 0 0; }
.pv-bridge ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pv-bridge li { display: inline-flex; align-items: center; gap: 6px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; font-size: 13px; }

/* ---------------------------------------------------------------- forms */
.pv-form-card { padding: 18px; }
.pf-add-form { display: grid; grid-template-columns: minmax(180px, 2fr) 100px minmax(110px, 1fr) minmax(110px, 1fr) 150px auto; gap: 8px; align-items: center; margin: 0; }
.pf-add-form input, .pf-add-form select, .pv-field input, .pv-field select { height: 40px; padding: 0 12px; width: 100%; font-size: 14px; }
.pf-add-form input[name="amount"], .pf-add-form input[name="price"] { width: 100%; }
.pf-add-form .pf-combo { min-width: 0; }
.pf-add-form > .pf-more, .pf-add-form > p { grid-column: 1 / -1; margin: 0; }
.pf-more > summary { cursor: pointer; color: var(--dim); font-size: 13px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-more > summary::before { content: "+"; font-weight: 700; color: var(--blue); }
.pf-more[open] > summary::before { content: "−"; }
.pf-more[open] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf-more[open] > summary { grid-column: 1 / -1; }
.pf-more input { height: 40px; padding: 0 12px; width: 100%; }
.pf-implied { font-size: 13px; }
.pf-implied-warn { color: var(--amber); font-size: 13px; }
.pf-combo-list { background: var(--surface) !important; border: 1px solid var(--line-strong) !important; border-radius: 10px !important; }
@media (max-width: 900px) { .pf-add-form { grid-template-columns: 1fr 1fr; } .pf-add-form .pf-combo { grid-column: 1 / -1; }
    .pf-more[open] { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .pf-add-form button[type=submit] { grid-column: 1 / -1; } }

.pf-edit-form, .pv-form { display: grid; gap: 14px; max-width: 560px; }
.pf-edit-form label, .pv-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dim); }
.pf-edit-form input, .pf-edit-form select { height: 40px; padding: 0 12px; width: 100%; font-size: 14px; font-weight: 400; }
.pf-edit-form details { display: grid; gap: 12px; }
.pf-edit-form details > summary { cursor: pointer; color: var(--dim); font-size: 13.5px; }
.pf-edit-form details[open] > summary { margin-bottom: 10px; }
.pf-edit-form details label { margin-bottom: 10px; }
.pv-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-presets .pc-frame, .pv-hint .pc-frame { border: 1px solid var(--line-strong); background: var(--raised); color: var(--dim); font-size: 12.5px;
    font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.pf-presets .pc-frame:hover { color: #fff; }
.pv-hint { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.pf-danger, .pv-danger { background: transparent; border: 1px solid rgba(251, 113, 133, .35); color: var(--clay); border-radius: 10px;
    height: 36px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pf-danger:hover, .pv-danger:hover { background: rgba(251, 113, 133, .1); }
.pv-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.pv-linkbtn:hover { color: var(--clay); }
.pf-del { background: transparent; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 6px; }
.pf-del:hover { color: var(--clay); }
.pf-edit { font-size: 13px; font-weight: 600; }
.pv-row-actions { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; }
.pv-row-actions form { margin: 0; display: inline; }
.pf-txn-meta { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- holding page */
.pv-figs { display: flex; gap: 26px; flex-wrap: wrap; }
.pv-figs strong { display: block; font-size: 24px; font-weight: 720; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.pv-figs span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pf-hchart { margin: 0; }
.pf-hchart-svg { width: 100%; height: 170px; display: block; }
.pf-hchart-line { stroke: #3B82F6; stroke-width: 2; }
.pf-hchart-cost { stroke: var(--muted); stroke-width: 1.5; }
.pf-hchart-read { font-size: 12.5px; margin: 6px 0 0; }
.pv-strategy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.pv-strategy select { height: 38px; padding: 0 12px; min-width: 180px; }
.pv-locked-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: radial-gradient(380px 160px at 100% 0%, rgba(59, 130, 246, .14), transparent 70%), var(--surface); }
.pv-locked-card p { margin: 0; }

/* ---------------------------------------------------------------- swap */
.pf-swap-bars { display: flex; align-items: flex-end; gap: 18px; height: 120px; margin: 4px 0 12px; max-width: 200px; }
.pf-swap-bars .pf-wl-bar.pf-swap-now { background: var(--line-strong); }

/* ---------------------------------------------------------------- wallets */
.pv-wallets { display: grid; gap: 10px; }
.pv-wallet, .pv-wallet:visited { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 16px;
    color: var(--text) !important; }
.pv-wallet:hover { border-color: var(--line-strong); background: var(--raised); }
.pv-wallet-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.pv-wallet code, .pf-address { font-family: var(--mono); font-size: 13px; color: var(--dim); word-break: break-all; }
.pv-wallet-status { font-size: 12.5px; color: var(--muted); text-align: right; }
.pv-exch:hover { border-color: var(--line); background: var(--surface); }
.pv-exch-n { font-size: 13px; color: var(--dim); }
.pv-exch-right { display: grid; justify-items: end; gap: 2px; }
.pv-exch-val { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pv-exch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-exch-actions form { margin: 0; }
.pf-wallet-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; margin: 0; }
.pf-wallet-form input { height: 40px; padding: 0 12px; width: 100%; }
@media (max-width: 640px) { .pf-wallet-form { grid-template-columns: 1fr; } .pv-wallet { flex-direction: column; align-items: flex-start; }
    .pv-wallet-status { text-align: left; } .pv-exch-right { justify-items: start; } }

/* ---------------------------------------------------------------- example card (shared partial) */
.ex-card { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; padding: 20px !important; margin: 0 0 20px !important;
    background: radial-gradient(520px 220px at 0% 0%, rgba(59, 130, 246, .14), transparent 70%), var(--surface) !important; box-shadow: var(--shadow); }
.ex-tag { background: rgba(251, 191, 36, .1) !important; color: var(--amber) !important; border: 1px solid rgba(251, 191, 36, .25) !important;
    border-radius: 999px !important; font-size: 11.5px !important; letter-spacing: .04em; }
.ex-value { font-size: clamp(30px, 4vw, 40px) !important; font-weight: 760 !important; letter-spacing: -.03em; }
.ex-delta.pos { color: var(--up) !important; } .ex-delta.neg { color: var(--down) !important; }
.ex-score { display: grid; justify-items: end; gap: 4px; }
.ex-score-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; display: flex; gap: 6px; align-items: center; }
.ex-chart svg { height: 150px !important; }
.ex-alloc-details > summary { cursor: pointer; color: var(--dim); font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.ex-alloc { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ex-alloc li { display: flex; align-items: center; gap: 8px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.ex-alloc .ex-sym { font-weight: 650; }
.ex-alloc .ex-wt { margin-left: auto; }
.ex-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* signed-out CTA under the example */
.pv-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px;
    background: radial-gradient(420px 200px at 100% 0%, rgba(45, 212, 191, .12), transparent 70%), var(--surface); }
.pv-cta h2 { font-size: 20px; font-weight: 720; margin: 0 0 4px; color: #fff; }
.pv-cta p { margin: 0; color: var(--dim); font-size: 14px; }

/* ---------------------------------------------------------------- watchlist */
.pv-pick { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
    letter-spacing: .03em; color: var(--teal); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .3); }
.pv-risk { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 650;
    background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); white-space: nowrap; }
.pv-risk-4 { color: var(--teal); } .pv-risk-3 { color: var(--green); } .pv-risk-2 { color: var(--amber); }
.pv-risk-1 { color: #FB923C; } .pv-risk-0 { color: var(--clay); }
.star-cell { width: 34px; }

/* ---------------------------------------------------------------- alerts */
.pv-alerts { display: grid; gap: 8px; }
.pv-alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; }
.pv-alert-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.pv-alert-coin { font-weight: 700; min-width: 56px; }
.pv-alert-what { color: var(--text); }
.pv-alert-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pv-alert form { margin: 0; }
.alerts-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.alerts-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.alerts-form select, .alerts-form input { height: 40px; padding: 0 12px; width: 100%; font-size: 14px; text-transform: none; letter-spacing: 0; }
@media (max-width: 860px) { .alerts-form { grid-template-columns: 1fr 1fr; } .alerts-form .v2-btn { grid-column: 1 / -1; } }
.pv-radio { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.pv-radio legend { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; padding: 0; }
.pv-radio label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
    background: var(--nav); cursor: pointer; font-size: 14px; }
.pv-radio label:has(input:checked) { border-color: rgba(59, 130, 246, .55); background: var(--blue-soft); color: #fff; }
.pv-radio label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pv-meter { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; margin-top: 8px; }
.pv-meter > i { display: block; height: 100%; background: linear-gradient(90deg, #3B82F6, #2DD4BF); border-radius: inherit; }

/* ---------------------------------------------------------------- account */
.pv-acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pv-acct .v2-card h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: #fff; }
.pv-acct .v2-card > * + * { margin-top: 12px; }
.pv-acct-wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .pv-acct { grid-template-columns: 1fr; } }
.pv-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.pv-kv dt { color: var(--muted); }
.pv-kv dd { margin: 0; overflow-wrap: anywhere; }
.pv-switchrow { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pv-switchrow input { width: 18px; height: 18px; accent-color: var(--blue); }
.pv-admin { display: grid; gap: 12px; }
.pv-admin details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--nav); }
.pv-admin details > summary { cursor: pointer; font-weight: 650; font-size: 14px; }
.pv-admin details[open] > summary { margin-bottom: 10px; }
.pv-admin .reviewer-gen-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pv-admin .reviewer-gen-form input { height: 36px; padding: 0 10px; }
.pv-admin .reviewer-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.pv-admin .reviewer-table th, .pv-admin .reviewer-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.pv-admin .briefing-send-form { display: inline-block; margin: 4px 6px 4px 0; }
.pv-tablescroll { overflow-x: auto; }
.pv-danger-card { border-color: rgba(251, 113, 133, .22) !important; }
.pv-danger-card h2 { color: var(--clay) !important; }
.pv-switch .pv-manage { display: inline-block; flex-basis: auto; font-size: inherit; }
.pv-switch .pv-manage summary { color: var(--dim); }
.pv-manage-pop form { margin: 0 !important; flex-wrap: nowrap !important; }
.pv-acct .briefing-toggle-form { margin-top: 0; padding-top: 0; border-top: 0; }
.pv-acct .checkbox-row { margin-top: 0 !important; font-size: 14.5px; color: var(--text); }
.pv-acct .briefing-dev-tools { margin: 0; padding: 0; background: none; border: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-acct .briefing-send-form { margin: 0; }
.pv-acct .btn-secondary, .pv-acct .btn-link-danger { font-size: 13px; padding: 6px 12px; cursor: pointer; }
.pv-acct .btn-link-danger { background: none; border: 0; color: var(--clay); }
.pv-acct .briefing-dev-label { color: var(--muted); }
.pv-acct .auth-error, .pv-acct .auth-success { font-size: 13.5px; }
@media (max-width: 560px) {
    .pv-switch .pv-manage[open] { flex-basis: 100%; }
    .pv-manage-pop { position: static; width: auto; margin-top: 8px; }
    .pv-head { align-items: flex-start; }
}
.pv-acct > *, .alerts-page .v2-grid > *, .pv-insights > * { min-width: 0; }
@media (max-width: 760px) { .pv-acct { grid-template-columns: minmax(0, 1fr); } }
.alerts-breadth .v2-btn, .pv-manage-pop .v2-btn, .pv-acct .v2-btn { white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.pv-manage-pop form { min-width: 0; }
.pv-acct .pv-kv dd, .pv-sub { overflow-wrap: anywhere; }
@media (max-width: 560px) { .pv-tiles .v2-kpi-value .pv-pct { display: block; margin: 2px 0 0; font-size: 12.5px; } }
.pv-table td:first-child { min-width: 150px; }
.pv-table .coin-name { white-space: nowrap; }
.pv-coin-sub:empty { display: none; }
.pv-cta.gate-panel { text-align: left; margin: 0 0 20px; max-width: none; }
.pv-cta .gate-panel-label { margin: 0; color: var(--dim); font-size: 14px; }
.pv-cta .hero-fineprint { margin: 0; text-align: left; }
.ex-score .v2-q-0 { background: var(--blue-soft); color: #CFE0FF; border: 1px solid rgba(59, 130, 246, .35); min-width: 46px; height: 32px; font-size: 16px; }
.pv-cta.gate-panel { padding: 22px; border-color: var(--line); border-radius: var(--radius);
    background: radial-gradient(420px 200px at 100% 0%, rgba(45, 212, 191, .12), transparent 70%), var(--surface); }
.pv-flex-title { display: flex !important; align-items: center; gap: 8px; }
.pv-charts .pf-value-chart path { vector-effect: non-scaling-stroke; }

/* ---------------------------------------------------------------- value chart (2026-11-03 redesign)
   Monotone line + gradient fill, coloured by the shown range's direction (portfolio.js sets
   .pf-up / .pf-down on the figure); gridlines + compact money labels; date labels; last-point dot. */
.pf-value-chart { --pf-line: var(--blue); }
.pf-value-chart.pf-up { --pf-line: var(--up); }
.pf-value-chart.pf-down { --pf-line: var(--down); }
.pv-charts .pf-value-chart { padding-bottom: 14px; }
.pv-charts .pf-value-chart svg { height: 220px; overflow: visible; }
@media (min-width: 901px) {
  .pv-charts .pf-value-chart .pf-value-plot { min-height: 220px; }
  .pv-charts .pf-value-chart .pf-value-plot svg { min-height: 220px; }
}
.pf-value-svg { display: block; width: 100%; }
.pf-value-path { stroke: var(--pf-line); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--pf-line) 45%, transparent)); transition: stroke .25s; }
.pf-value-btc { stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 5 4; stroke-linejoin: round; opacity: .85; }
.pf-fill-top { stop-color: var(--pf-line); stop-opacity: .28; }
.pf-fill-bot { stop-color: var(--pf-line); stop-opacity: 0; }
.pf-value-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.pf-value-ylabels { position: absolute; inset: 0; pointer-events: none; }
/* Y labels sit in a right gutter OUTSIDE the plot box, so they never cover the line; every overlay
   (crosshair, markers) stays positioned in the plot's own percentages. */
.pv-charts .pf-value-plot { width: auto; margin-right: 50px; }
.pf-value-ylabels span { position: absolute; left: calc(100% + 8px); transform: translateY(-50%); font-size: 11px; line-height: 1;
  color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.pf-value-xlabels { position: relative; height: 16px; margin: 8px 50px 2px 0; }
.pf-value-xlabels span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.pf-value-xlabels span.pf-x-first { transform: none; }
.pf-value-xlabels span.pf-x-last { transform: translateX(-100%); }
.pf-value-last { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--pf-line); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-line) 25%, transparent); pointer-events: none; }
.pf-value-last::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--pf-line);
  animation: pf-pulse 2.4s ease-out infinite; }
@keyframes pf-pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pf-value-last::after { animation: none; display: none; } }
.pv-charts .pf-value-cross { background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--text) 45%, transparent) 15%, color-mix(in srgb, var(--text) 45%, transparent) 85%, transparent); }
.pv-charts .pf-value-marker { width: 11px; height: 11px; background: var(--text); border: 2px solid var(--pf-line); z-index: 2; }
.pv-charts .pf-value-readout { font-size: 12.5px; color: var(--dim); min-height: 17px; margin: 0 0 10px; }
.pv-charts .pf-value-hl { font-size: 12.5px; margin: 4px 0 0; }
.pf-hl-chg { font-weight: 650; margin-left: 4px; }
.pf-hl-chg.pos { color: var(--up); } .pf-hl-chg.neg { color: var(--down); }
.pv-charts .ex-key-pf { border-top-color: var(--pf-line); }
.price-chart-frames[hidden], .pf-tf[hidden] { display: none !important; }
@media (max-width: 560px) { .pv-charts .pf-value-chart svg { height: 180px; } }

/* Free picks panel on /watchlist (2026-11-18). */
.pv-picks { color: var(--text); border-color: rgba(45,212,191,.3); background: rgba(45,212,191,.06); display: flex; gap: 10px; align-items: flex-start; }
.pv-picks-body { display: grid; gap: 4px; min-width: 0; }
.pv-picks-row { margin: 0; }
.pv-picks-row a { color: inherit; }
.pv-pickchip { gap: 5px; font-size: 12px; font-weight: 600; }
