/* Projection: one monthly workspace, progressive detail, shared Neon rhythm. */
.np-projection-page { gap:24px; min-width:0; }
.np-projection-page h2,.np-projection-page h3,.np-projection-page p { margin:0; }
.np-proj-heading,.np-proj-chart-head,.np-proj-workspace-head { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.np-proj-heading>div,.np-proj-chart-head>div:first-child,.np-proj-workspace-head>div:first-child { display:grid; gap:8px; min-width:0; }
.np-proj-heading h2 { font:600 clamp(24px,2.2vw,32px)/1.2 var(--f-display); letter-spacing:-.6px; }
.np-proj-heading p,.np-proj-workspace-head p,.np-proj-chart-head p,.np-proj-selected>header p { color:var(--muted); font-size:14px; line-height:1.5; max-width:64ch; }
.np-proj-heading>.btn { flex:none; }
.np-proj-controls { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.np-proj-controls .seg { flex:none; }
.np-proj-controls .seg button { min-height:44px; }
.np-proj-scenario { font-size:13px; color:var(--muted); }
.np-proj-stats { margin:0; gap:16px; }
.np-proj-stats .np-stat { min-width:0; }
.np-proj-stats .np-stat-note { line-height:1.5; }
.np-proj-chart { min-width:0; display:grid; gap:24px; }
.np-proj-chart-head h2,.np-proj-workspace-head h2 { font:600 clamp(20px,1.8vw,25px)/1.25 var(--f-display); letter-spacing:-.3px; }
.np-proj-chart .legend { display:flex; gap:16px; flex-wrap:wrap; flex:none; font-size:12px; }
.np-proj-chart .legend>span { display:inline-flex; align-items:center; gap:8px; }
.np-proj-chart .legend i { width:18px; height:3px; border-radius:3px; }
.np-proj-chart .cjwrap,.np-proj-chart .chartwrap { min-width:0; width:100%; }
.np-proj-chart .chartwrap svg text { font-family:var(--f-body); }
.np-proj-chart .tip { background:#10231a; color:#f3f7f4; border:1px solid #00ff7c33; border-radius:14px; padding:12px; font-family:var(--f-body); box-shadow:0 8px 28px #071b1326; }
.np-proj-chart .tip .r { color:#f3f7f4; }
.np-proj-chart-note { font-size:12px; line-height:1.5; color:var(--muted); }
.np-proj-disclosure { min-width:0; border:1px solid var(--line); border-radius:20px; background:var(--surface); overflow:hidden; }
.np-proj-disclosure>summary { display:flex; align-items:center; gap:12px; padding:18px 20px; cursor:pointer; list-style:none; min-height:76px; }
.np-proj-disclosure>summary::-webkit-details-marker { display:none; }
.np-proj-disclosure>summary>span:not(.np-icon-aura) { flex:1; min-width:0; display:grid; gap:5px; }
.np-proj-disclosure>summary b { font-size:14px; font-weight:600; line-height:1.4; }
.np-proj-disclosure>summary small { font-size:12px; color:var(--muted); line-height:1.5; }
.np-proj-disclosure>summary>svg { flex:none; width:18px; height:18px; color:var(--muted); transition:transform .15s; }
.np-proj-disclosure[open]>summary>svg { transform:rotate(180deg); }
.np-proj-disclosure>summary:hover { background:var(--sunk); }
.np-proj-disclosure>summary:focus-visible,.np-proj-month:focus-visible,.np-proj-selected:focus-visible { outline:2px solid var(--peak,#008754); outline-offset:-3px; }
.np-proj-disclosure-body { padding:0 20px 20px; }
.np-proj-disclosure-body>p { color:var(--muted); font-size:13px; line-height:1.7; }
.np-proj-disclosure-body>p+p { margin-top:12px; }
.np-proj-settings-grid { display:grid; grid-template-columns:1fr 1fr 1.2fr; align-items:start; gap:24px; padding-top:8px; }
.np-proj-settings-grid>label { display:grid; gap:8px; min-width:0; font-size:13px; font-weight:600; }
.np-proj-settings-grid small,.np-proj-uncertain>small { color:var(--muted); font-size:12px; line-height:1.5; font-weight:400; }
.np-proj-input { display:flex; align-items:center; gap:10px; }
.np-proj-input>span { font-size:13px; white-space:nowrap; color:var(--muted); font-weight:400; }
.np-proj-input>.field { min-width:0; width:100%; }
.np-proj-uncertain { display:grid; gap:12px; padding-top:21px; }
.np-proj-uncertain .switchrow { justify-content:flex-start; font-size:13px; line-height:1.5; min-height:44px; }
.np-proj-workspace { display:grid; gap:24px; min-width:0; }
.np-proj-month-nav { display:flex; align-items:center; gap:8px; flex:none; }
.np-proj-month-nav>label { margin:0; min-width:0; }
.np-proj-month-nav .field { min-width:192px; height:48px; }
.np-proj-month-nav .iconbtn { width:44px; height:44px; flex:none; }
.np-proj-months { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.np-proj-month { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--ground); color:var(--ink); text-align:left; cursor:pointer; min-width:0; transition:background .15s,border-color .15s; }
.np-proj-month>span:first-child { text-transform:capitalize; font-size:13px; font-weight:500; }
.np-proj-month>strong { font-family:var(--f-display); font-size:23px; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; white-space:nowrap; }
.np-proj-month>small { color:var(--muted); font-size:11px; }
.np-proj-month:hover { background:var(--sunk); border-color:var(--muted); }
.np-proj-month.is-selected { background:linear-gradient(135deg,#f4ff0026,#00ff7c1f); border-color:var(--peak,#008754); box-shadow:inset 0 0 0 1px var(--peak,#008754); }
.np-proj-event { display:flex; align-items:center; gap:5px; width:100%; padding-top:4px; font-size:10px; color:var(--muted); }
.np-proj-event>svg { width:12px; height:12px; flex:none; }
.np-proj-event>span { text-overflow:ellipsis; white-space:nowrap; overflow:hidden; }
.np-proj-months-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:-12px; font-size:12px; color:var(--muted); }
.np-proj-months-footer .linkbtn { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:13px; }
.np-proj-months-footer svg { width:16px; height:16px; }
.np-proj-selected { min-width:0; display:grid; gap:20px; padding-top:24px; border-top:1px solid var(--line); scroll-margin-top:110px; }
.np-proj-selected>header { display:grid; gap:8px; }
.np-proj-selected h3 { font:600 22px/1.25 var(--f-display); letter-spacing:-.3px; }
.np-proj-month-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:start; gap:32px; }
.np-proj-composition { min-width:0; }
.np-proj-composition .lines { display:grid; gap:0; }
.np-proj-composition .ln { align-items:center; padding:14px 0; gap:20px; }
.np-proj-composition .ln>span { font-size:14px; line-height:1.4; min-width:0; }
.np-proj-composition .ln .num { font-family:var(--f-display); font-size:19px; font-weight:600; white-space:nowrap; }
.np-proj-composition .ln small { display:block; padding-top:5px; color:var(--muted); font-size:11px; line-height:1.5; }
.np-proj-composition .ln.tot { border-top:1px solid var(--line); margin-top:4px; padding:18px 16px; background:linear-gradient(120deg,#f4ff0026,#00ff7c1c); border-radius:16px; }
.np-proj-composition .ln.tot>span { font-weight:600; }
.np-proj-composition .ln.tot .num { font-size:27px; }
.np-proj-equation { padding:12px 0 20px; font-size:11px; line-height:1.6; color:var(--muted); }
.np-proj-cashflow .fl-g>summary { flex-wrap:wrap; }
.np-proj-cashflow .fl-g>summary>span { min-width:95px; }
.np-proj-cashflow .fl-row { gap:8px; }
.np-proj-cashflow .fl-row>b { white-space:nowrap; }
.np-proj-cashflow .fl-row>span { font-size:13px; }
.np-proj-cashflow .fl-i { padding:10px 12px; }
.np-proj-adjustments { min-width:0; padding:20px; border:1px solid var(--line); border-radius:20px; }
.np-proj-adjustments-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:16px; }
.np-proj-adjustments-head h3 { font:600 17px/1.3 var(--f-display); }
.np-proj-adjustments-head p { color:var(--muted); font-size:12px; line-height:1.5; margin-top:8px; }
.np-proj-adjustments-head>.btn { flex:none; }
.np-proj-adjustments .row { grid-template-columns:auto minmax(0,1fr) auto; gap:10px; }
.np-proj-adjustments .row .t small { white-space:normal; }
.np-proj-adjustments .row .a { flex-direction:column; gap:8px; }
.np-proj-adjustments-empty { display:grid; justify-items:center; text-align:center; gap:12px; padding:16px 8px 8px; }
.np-proj-adjustments-empty>b { font-size:14px; }
.np-proj-adjustments-empty>p { color:var(--muted); font-size:13px; line-height:1.6; max-width:32ch; }
.np-proj-table-scroll { width:100%; max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:16px; }
.np-proj-table-scroll table { width:100%; min-width:930px; border-collapse:collapse; }
.np-proj-table-scroll caption { text-align:left; padding:16px; color:var(--muted); font-size:12px; }
.np-proj-table-scroll .ptable td,.np-proj-table-scroll .ptable th { padding:14px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.np-proj-table-scroll thead { background:var(--sunk); }
.np-proj-table-scroll th[scope=row] { min-width:160px; font-weight:400; text-align:left; }
.np-proj-table-scroll th[scope=row] .linkbtn { min-height:32px; }
.np-proj-table-scroll tr.now>th { background:var(--accent-soft); }
.np-proj-table-scroll .ev { max-width:180px; line-height:1.5; }
.np-proj-table-scroll .num { white-space:nowrap; }
.np-proj-table-scroll tr:last-child>th,.np-proj-table-scroll tr:last-child>td { border-bottom:0; }
@media(max-width:1100px){
 .np-proj-heading,.np-proj-chart-head,.np-proj-workspace-head { flex-wrap:wrap; }
 .np-proj-months { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .np-proj-month-layout { gap:24px; }
 .np-proj-adjustments-head { flex-wrap:wrap; }
 .np-proj-settings-grid { grid-template-columns:1fr 1fr; }
 .np-proj-uncertain { grid-column:1/-1; padding-top:0; }
}
@media(max-width:760px){
 .np-projection-page { gap:16px; }
 .np-proj-stats .np-stat-value { font-size:clamp(24px,4.4vw,28px); white-space:nowrap; overflow-wrap:normal; word-break:normal; }
 .np-proj-heading,.np-proj-chart-head,.np-proj-workspace-head { gap:16px; }
 .np-proj-heading>.btn { width:100%; justify-content:center; }
 .np-proj-controls { gap:10px; }
 .np-proj-controls .seg { flex:1; justify-content:space-between; }
 .np-proj-controls .seg button { flex:1; }
 .np-proj-scenario { width:100%; }
 .np-proj-chart { gap:16px; }
 .np-proj-chart .legend { gap:12px; }
 .np-proj-workspace { gap:20px; }
 .np-proj-month-nav { width:100%; gap:6px; }
 .np-proj-month-nav>label { flex:1; }
 .np-proj-month-nav .field { width:100%; min-width:0; padding-right:30px; }
 .np-proj-months { gap:8px; }
 .np-proj-month { padding:12px 10px; border-radius:14px; }
 .np-proj-month>strong { font-size:20px; }
 .np-proj-months-footer { align-items:flex-start; flex-direction:column; gap:4px; }
 .np-proj-months-footer .linkbtn { align-self:flex-end; }
 .np-proj-month-layout { grid-template-columns:1fr; gap:20px; }
 .np-proj-composition .ln .num { font-size:18px; }
 .np-proj-composition .ln.tot { padding:16px 12px; }
 .np-proj-composition .ln.tot .num { font-size:24px; }
 .np-proj-adjustments { padding:16px; }
 .np-proj-adjustments-head { flex-wrap:nowrap; }
 .np-proj-adjustments-head>.btn { font-size:12px; padding-inline:10px; }
 .np-proj-disclosure>summary { padding:16px; gap:10px; }
 .np-proj-disclosure-body { padding:0 16px 16px; }
 .np-proj-disclosure>summary>.np-icon-aura { width:36px; height:36px; flex:none; }
 .np-proj-settings-grid { grid-template-columns:1fr; gap:20px; }
 .np-proj-uncertain { grid-column:auto; }
 .np-projection-goals .np-pot-home-row { padding-inline:0; }
}
/* Full currency values need a full card on narrow phones, including their cents. */
@media(max-width:540px){
 .np-proj-stats { grid-template-columns:minmax(0,1fr); }
 .np-proj-stats .np-stat-value { font-size:clamp(26px,7vw,30px); }
}
@media(prefers-reduced-motion:reduce){.np-proj-disclosure>summary>svg,.np-proj-month { transition:none; }}
