.portfolio{max-width:1200px}.portfolio form>.financial-card,.portfolio>.financial-card{margin-bottom:24px}.portfolio-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.portfolio-sleeve{border:0;border-top:1px solid var(--border-strong);margin-top:20px;padding:20px 0}.portfolio-sleeve legend{padding:0 8px;font-weight:700}.portfolio-advanced>summary{font-size:1.15rem}.portfolio #portfolio-error{color:var(--text-primary);border:2px solid var(--color-danger);padding:16px}.portfolio .dashboard{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.portfolio .dashboard>div{border:1px solid var(--border-strong);background:var(--bg-surface);border-radius:12px;padding:18px}.portfolio .dashboard dt{font-size:.85rem}.portfolio .dashboard dd{text-align:left;margin:12px 0 0;font-size:clamp(1.1rem,3vw,1.75rem);font-weight:700}.portfolio .portfolio-chart{border:1px solid var(--border-subtle);border-radius:12px;margin:24px 0;padding:16px;overflow:auto}.portfolio svg{width:100%;min-width:540px;display:block}.portfolio svg text{fill:var(--text-primary);font-family:system-ui,sans-serif;font-size:14px}.portfolio-line{fill:none;stroke-width:3px}.line-0{stroke:var(--color-brand)}.line-1{stroke:var(--color-accent);stroke-dasharray:8 4}.line-2{stroke:var(--text-primary);stroke-dasharray:3 4}.portfolio-bar{fill:var(--color-brand)}.portfolio .table-scroll{max-height:460px}.portfolio table{min-width:650px}.portfolio caption{text-align:left;padding:12px;font-weight:700}.portfolio thead th{background:var(--bg-surface);position:sticky;top:0}.portfolio .financial-education details{margin:12px 0}.portfolio :focus-visible{outline:3px solid var(--color-brand);outline-offset:3px}.portfolio select{min-height:44px}.portfolio dl.dashboard{display:grid}.portfolio dl.dashboard dt{color:var(--text-secondary)}@media (width<=800px){.portfolio-grid,.portfolio .dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=480px){.portfolio-grid,.portfolio .dashboard{grid-template-columns:minmax(0,1fr)}.portfolio .financial-card{padding:16px}.portfolio input,.portfolio select{max-width:100%}.portfolio .dashboard dd{font-size:1.5rem}}.investing-workspace{max-width:1200px;font:var(--text-base)/1.55 var(--font-sans);padding:var(--space-8) var(--space-4)}.investing-workspace .financial-heading{max-width:none;margin-bottom:var(--space-6)}.investing-workspace .financial-heading h1{margin:var(--space-2) 0 var(--space-3);font-size:clamp(1.75rem,3.2vw,2.7rem);line-height:1.16}.investing-workspace .financial-heading p{font-size:var(--text-base);max-width:68ch;margin:0;line-height:1.5}.investing-workspace .financial-heading .eyebrow{font-size:var(--text-xs);margin-bottom:var(--space-3)}.investing-workspace h2{font-size:var(--text-xl);margin:0 0 var(--space-4);line-height:1.35}.investing-workspace h3{font-size:var(--text-base);line-height:1.45}.investing-workspace p,.investing-workspace li{font-size:var(--text-base);line-height:1.6;font-weight:var(--font-normal)}.investing-workspace .financial-card{padding:var(--space-6);border-radius:var(--radius-md);margin-bottom:var(--space-5)}.investing-workspace .investing-plan-heading{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-2);display:flex}.investing-workspace .investing-plan-heading h2{margin:0}.investing-workspace button{font-size:var(--text-sm);border-radius:var(--radius-sm);min-height:44px;font-weight:var(--font-semibold)}.investing-workspace .investing-reset{background:var(--bg-surface);padding:8px 12px;font-size:.8125rem}.investing-workspace [data-default-note],.investing-workspace .investing-notice,.investing-workspace #portfolio-weight-total,.investing-workspace #portfolio-edits{color:var(--text-secondary);margin:var(--space-2) 0 var(--space-4);font-size:.8125rem;line-height:1.5;font-weight:var(--font-normal)}.investing-workspace .portfolio-grid{column-gap:var(--space-5);row-gap:var(--space-2);margin-top:var(--space-4);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.investing-workspace .portfolio-grid>.investing-field{grid-template-rows:subgrid;gap:var(--space-2);grid-row:span 3;min-width:0;display:grid}.investing-workspace .investing-field>label{font-size:var(--text-sm);font-weight:var(--font-medium);align-self:end;margin:0;line-height:1.45;display:block}.investing-workspace .input-primary>label{font-weight:var(--font-semibold)}.investing-workspace .investing-field>input,.investing-workspace .investing-field>select,.investing-workspace .investing-input-wrap{grid-row:2;align-self:start}.investing-workspace input:not([type=checkbox]),.investing-workspace select{-webkit-appearance:none;appearance:none;border:1px solid var(--text-muted);border-radius:var(--radius-sm);background-color:var(--bg-surface-hover);width:100%;max-width:100%;height:48px;min-height:48px;color:var(--text-primary);font:var(--font-medium) var(--text-base)/1.4 var(--font-sans);font-variant-numeric:tabular-nums;box-sizing:border-box;margin:0;padding:10px 12px;display:block}.investing-workspace input[inputmode=decimal],.investing-workspace input[type=number]{text-align:right}.investing-workspace .input-primary input,.investing-workspace .input-primary select{font-weight:var(--font-semibold);border-width:2px}.investing-workspace select{background-image:linear-gradient(45deg,transparent 50%,var(--text-secondary) 50%),linear-gradient(135deg,var(--text-secondary) 50%,transparent 50%);background-position:calc(100% - 18px),calc(100% - 13px);background-repeat:no-repeat;background-size:5px 5px;padding-right:36px}.investing-workspace .investing-input-wrap{position:relative}.investing-workspace .investing-input-wrap input{padding-right:54px}.investing-workspace .investing-input-unit{font-size:var(--text-xs);color:var(--text-secondary);pointer-events:none;position:absolute;top:50%;right:13px;transform:translateY(-50%)}.investing-workspace .input-unit{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.investing-workspace input:read-only{background-color:var(--bg-surface);opacity:1}.investing-workspace input:disabled,.investing-workspace select:disabled{opacity:.6;cursor:not-allowed}.investing-workspace input[aria-invalid=true]{border-color:var(--color-danger);outline:1px solid var(--color-danger)}.investing-workspace .field-error{font-size:var(--text-xs);color:var(--text-primary);grid-row:3;margin:0;line-height:1.4}.investing-workspace .field-error:empty{display:none}.investing-workspace :focus-visible{outline:3px solid var(--color-brand);outline-offset:3px}.investing-workspace .term-tip{font-size:var(--text-sm);margin-left:4px;font-weight:400;display:inline-block;position:relative}.investing-workspace .term-tip>span{z-index:5;background:var(--bg-surface-elevated);width:220px;max-width:65vw;color:var(--text-primary);border:1px solid var(--border-strong);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);padding:12px;font-size:.8125rem;line-height:1.5;display:none;position:absolute;bottom:120%;right:0}.investing-workspace .term-tip:hover>span,.investing-workspace .term-tip:focus>span{display:block}.investing-workspace details{margin:var(--space-4) 0}.investing-workspace summary{font-size:var(--text-base);line-height:1.5;font-weight:var(--font-semibold);cursor:pointer;min-height:44px;padding:10px 0;display:list-item}.investing-workspace .portfolio-advanced>summary{font-size:var(--text-base)}.investing-workspace .portfolio-sleeve,.investing-workspace .investing-months{border-radius:var(--radius-sm);padding:var(--space-4);margin:var(--space-5) 0;background:var(--bg-surface);border:0}.investing-workspace .portfolio-sleeve legend,.investing-workspace .investing-months legend{float:left;width:100%;max-width:100%;margin:0 0 var(--space-3);font-size:var(--text-sm);line-height:1.5;font-weight:var(--font-semibold);padding:0}.investing-workspace .portfolio-sleeve>.portfolio-grid,.investing-workspace .investing-months>p{clear:both}.investing-workspace #dividend-history-context:not([hidden]){display:contents}.investing-workspace .investing-month-grid{clear:both;gap:var(--space-2);grid-template-columns:repeat(6,minmax(0,1fr));display:grid}.investing-workspace .investing-month-choice{border:1px solid var(--text-muted);border-radius:var(--radius-sm);background:var(--bg-surface-elevated);min-height:44px;font-size:var(--text-sm);font-weight:var(--font-medium);cursor:pointer;align-items:center;gap:8px;padding:10px;line-height:1.3;display:flex;position:relative}.investing-workspace .investing-month-choice:has(:checked){background:var(--color-brand-light);border-color:var(--color-brand);box-shadow:inset 0 0 0 1px var(--color-brand)}.investing-workspace .investing-month-choice:focus-within{outline:3px solid var(--color-brand);outline-offset:3px}.investing-workspace .investing-month-choice input{-webkit-appearance:none;appearance:none;border:1.5px solid var(--text-muted);background:var(--bg-page);border-radius:4px;flex:0 0 18px;width:18px;height:18px;margin:0}.investing-workspace .investing-month-choice input:checked{background-color:var(--color-brand);border-color:var(--color-brand)}.investing-workspace .investing-month-choice:has(input:checked):after{content:"";border:solid var(--bg-page);pointer-events:none;border-width:0 2px 2px 0;width:5px;height:9px;position:absolute;top:calc(50% - 6px);left:16px;transform:rotate(45deg)}.investing-workspace .investing-month-choice input:focus-visible{outline:none}.investing-workspace [role=alert]:not([hidden]){padding:var(--space-4);border:1px solid var(--color-danger);border-radius:var(--radius-sm);font-size:var(--text-sm);color:var(--text-primary);border-left-width:4px}.investing-workspace .results-heading{margin-bottom:var(--space-4)}.investing-workspace .dashboard{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));margin:0;display:grid}.investing-workspace .dashboard>div{border-radius:var(--radius-sm);padding:var(--space-4);background:var(--bg-surface);border:0}.investing-workspace .dashboard dt{font-size:.8125rem;line-height:1.45;font-weight:var(--font-normal)}.investing-workspace .dashboard dd{font-size:clamp(1.625rem,2.4vw,2.125rem);font-weight:var(--font-bold);margin:var(--space-3) 0 0;text-align:left;letter-spacing:-.025em;overflow-wrap:anywhere;line-height:1.25}.investing-workspace .dashboard dd.long-number{letter-spacing:-.035em;font-size:clamp(1.125rem,1.7vw,1.5rem)}.investing-workspace .dashboard>div:first-child dd{color:var(--color-brand)}.investing-workspace .investing-context{gap:var(--space-5);margin:var(--space-3) 0;font-size:var(--text-sm);flex-wrap:wrap;display:flex}.investing-workspace .investing-context>div{align-items:baseline;gap:8px;display:flex}.investing-workspace .investing-context dd{font-size:var(--text-sm);font-weight:var(--font-semibold);text-align:left}.investing-workspace [data-result-section]>summary{font-size:var(--text-lg)}.investing-workspace .investing-chart-grid{gap:var(--space-4);margin:var(--space-3) 0;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;display:grid}.investing-workspace .portfolio-chart{background:var(--bg-surface);border-radius:var(--radius-sm);min-width:0;max-width:100%;padding:var(--space-4);border:0;margin:0;overflow:visible}.investing-workspace .portfolio-chart figcaption{font-size:var(--text-xs);color:var(--text-secondary);margin-top:var(--space-3);line-height:1.5}.investing-workspace .portfolio-chart h3{font-size:var(--text-sm);font-weight:var(--font-semibold);margin:0 0 var(--space-3)}.investing-workspace .portfolio-chart svg{width:100%;min-width:0;max-width:100%;height:190px;display:block}.investing-workspace .portfolio-line{vector-effect:non-scaling-stroke;stroke-width:3px}.investing-workspace .investing-plot-scale,.investing-workspace .investing-plot-years{font-size:var(--text-xs);color:var(--text-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;gap:8px;line-height:1.4;display:flex}.investing-workspace .investing-plot-scale{margin-bottom:8px}.investing-workspace .investing-plot-years{margin:8px 0}.investing-workspace .investing-legend{flex-wrap:wrap;gap:8px 16px;margin:12px 0 0;padding:0;list-style:none;display:flex}.investing-workspace .investing-legend li{font-size:var(--text-xs);align-items:center;gap:7px;line-height:1.4;display:flex}.investing-workspace .investing-legend i{border-top:3px solid var(--color-brand);width:20px;display:inline-block}.investing-workspace .investing-legend .key-1{border-color:var(--color-accent);border-top-style:dashed}.investing-workspace .investing-legend .key-2{border-color:var(--text-primary);border-top-style:dotted}.investing-workspace .investing-allocation{--allocation-row:38px;position:relative}.investing-workspace .investing-allocation svg{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.investing-workspace .investing-allocation ul{margin:0;padding:0;list-style:none}.investing-workspace .investing-allocation li{height:var(--allocation-row);justify-content:space-between;gap:12px;padding:2px 0 18px;font-size:.8125rem;line-height:1.4;display:flex}.investing-workspace .investing-allocation strong{font-size:.8125rem;font-weight:var(--font-semibold);white-space:nowrap}.investing-workspace .financial-education{width:100%;max-width:none;margin:var(--space-6) 0 0;font-size:var(--text-base);line-height:1.6}.investing-workspace .financial-education>details{padding:var(--space-4) var(--space-6);margin:0 0 var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-md)}.investing-workspace .financial-education .faq-item{border:0;border-bottom:1px solid var(--border-subtle);padding:var(--space-2) 0;border-radius:0;margin:0}.investing-workspace .financial-education .faq-item:last-child{border-bottom:0}.investing-workspace .financial-education .faq-item summary{font-size:var(--text-sm)}.investing-workspace .investing-related{padding:var(--space-4) 0;margin-top:var(--space-4)}.investing-workspace .investing-related h2{font-size:var(--text-sm);margin:0 0 var(--space-2)}.investing-workspace .investing-related ul{flex-wrap:wrap;gap:8px 20px;margin:0;padding:0;list-style:none;display:flex}.investing-workspace .investing-related li{font-size:var(--text-sm)}.investing-workspace .investing-related a{min-height:44px;font-size:var(--text-sm);font-weight:var(--font-medium);align-items:center;gap:8px;text-decoration:none;display:inline-flex}.investing-workspace .investing-related a:hover{text-decoration:underline}.investing-workspace .table-scroll{margin-top:var(--space-3);max-height:460px}.investing-workspace caption{font-size:var(--text-sm);line-height:1.5}@media (width<=1100px){.investing-workspace .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.investing-workspace .investing-month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=800px){.investing-workspace .investing-chart-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=600px){.investing-workspace .portfolio-grid{grid-template-columns:minmax(0,1fr)}.investing-workspace .financial-card,.investing-workspace .financial-education>details{padding:var(--space-4)}.investing-workspace .investing-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.investing-workspace .investing-allocation{--allocation-row:76px}.investing-workspace .investing-allocation li{display:block}.investing-workspace .investing-allocation strong{margin-top:4px;display:block}.investing-workspace .dashboard{grid-template-columns:minmax(0,1fr)}}@media (width<=419px){.investing-workspace .investing-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.investing-workspace .financial-heading p{font-size:var(--text-sm)}}@media (forced-colors:active){.investing-workspace select{appearance:auto;background-image:none}.investing-workspace .investing-month-choice input{appearance:auto}.investing-workspace .investing-month-choice:has(:checked){outline:2px solid highlight}}.investing-workspace .portfolio-chart figcaption{font-size:var(--text-sm);font-weight:var(--font-semibold);color:var(--text-primary);margin:0 0 var(--space-3);line-height:1.5}.investing-workspace .investing-chart-grid>.portfolio-chart:last-child:nth-child(odd){grid-column:1/-1}.investing-workspace .official-field:has(input[readonly]) [data-field-reset]{display:none}.investing-workspace .portfolio-grid>[data-reference-review]{grid-template-rows:subgrid;grid-row:span 7;gap:8px;display:grid}.investing-workspace [data-reference-review]>.official-field{display:contents}.investing-workspace [data-reference-review] .official-field>label{font-size:var(--text-sm);grid-row:1;align-self:end;margin:0}.investing-workspace [data-reference-review] .field-input-row{grid-row:2;margin:0}.investing-workspace [data-reference-review] .value-origin{grid-row:3;width:fit-content;margin:0}.investing-workspace [data-reference-review] .official-field>small{margin:0}.investing-workspace [data-reference-review] .official-field>.field-error:empty{display:none}.investing-workspace [data-reference-review] .source-metadata{grid-row:7;margin:0}.investing-workspace .dashboard>div{flex-direction:column;display:flex}.investing-workspace .dashboard dd{padding-top:var(--space-3);margin-top:auto}.investing-workspace .investing-related{padding:var(--space-4) var(--space-6)}@media (width<=600px){.investing-workspace .investing-related{padding:var(--space-4)}}.investing-workspace [data-result-section=annual]>.table-scroll{max-height:none}.investing-workspace .investing-table-hint{font-size:var(--text-xs);color:var(--text-secondary);margin:var(--space-2) 0;line-height:1.5;display:none}@media (width<=900px){.investing-workspace .investing-table-hint{display:block}}
