/* investment plan page (plan.html) */
.pl-form { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; padding: 18px 20px; margin-bottom: 16px; }
.pl-pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.pl-pick .seg { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pl-pick .seg button { flex: none; white-space: nowrap; }
.pl-lbl, .pl-opts label { font-size: 13px; color: var(--muted); }
.pl-own { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pl-own .field { width: 120px; }
.pl-pick:first-child { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.pl-pick:first-child .pl-lbl { flex-basis: 100%; }
.pl-opts { display: flex; gap: 12px; }
.pl-opts label { display: flex; flex-direction: column; gap: 4px; }
.pl-opts .field { width: 120px; }
.pl-stats { gap: 12px 28px; }
.pl-stats .pill { vertical-align: 3px; margin-left: 4px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 960px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } }
.pl-grid > section { margin-bottom: 0; }
.pl-bar { display: flex; height: 12px; margin: 0 16px 4px; border-radius: 6px; overflow: hidden; gap: 2px; }
.pl-bar i { display: block; height: 100%; background: var(--c); }
.pl-alloc .table-wrap { margin-top: 6px; }
table.pl-table { min-width: 0; }
.pl-table td { white-space: normal; vertical-align: top; }
.pl-table td.num, .pl-table th { white-space: nowrap; }
.pl-table td:nth-child(2), .pl-table th:nth-child(2) { text-align: right; }
.pl-table th.left, .pl-table td.left { text-align: left; }
.pl-asset { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.pl-asset .hint { font-size: 12px; line-height: 1.4; }
.pl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; }
.pl-table .tags { flex-wrap: nowrap; }
.pl-chart-wrap { padding: 0 16px 14px; }
.pl-chart-wrap .hint { margin: 8px 0 0; }
.chart .pl-band { fill: var(--cmp-2); fill-opacity: .13; stroke: none; }
.pl-sq { display: inline-block; width: 12px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--cmp-2) 22%, transparent); }
.pl-text { padding: 18px 22px 8px; }
.pl-text h2 { margin: 0 0 8px; font-size: 20px; }
.pl-fits { margin: 0 0 12px; color: var(--muted); max-width: 820px; }
.pl-fits b { color: var(--text); }
.pl-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); max-width: 820px; font-size: 14px; }
.pl-steps { padding-left: 22px; max-width: 820px; margin: 0 0 12px; }
.pl-steps > li { margin-bottom: 12px; }
.pl-steps ul { margin: 6px 0; padding-left: 18px; }
.pl-steps ul li { margin-bottom: 2px; }
.pl-cmp-t td:first-child { white-space: nowrap; }
.pl-cmp-t tr.pl-on td { background: var(--accent-soft); }
.pl-pick-btn { all: unset; cursor: pointer; font-weight: 600; }
.pl-pick-btn:hover { color: var(--accent); text-decoration: underline; }
.pl-pick-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 640px) {
  .pl-form { padding: 14px; }
  .pl-text { padding: 14px 16px 4px; }
  .pl-opts { width: 100%; }
  .pl-opts label { flex: 1; }
  .pl-opts .field { width: 100%; }
}
