/* 28.9.2 · A calendar for days, and a compact review for the month. */
.np-spending-days{--heat1:#e3f2e7;--heat2:#b5dfc3;--heat3:#64b58c;--heat4:#226344;--heat4-ink:#fff;margin-top:16px;padding-top:16px}
.np-summary-page .np-spending-days>summary{min-height:48px;padding:4px 0}
.np-summary-page .np-spending-days>summary b{font-size:14px}
.np-heat-content{padding-top:18px}
.np-heat-insight{display:grid;grid-template-columns:34px minmax(0,1fr) auto 16px;align-items:center;gap:10px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--np-soft-gradient);text-align:left;color:var(--ink);transition:border-color .16s,box-shadow .16s}
button.np-heat-insight:hover{border-color:var(--in);box-shadow:0 3px 12px #00000008}
.np-heat-insight-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:radial-gradient(ellipse at 60% 90%,#00ff7c42,transparent 75%),var(--surface);color:var(--ink)}
.np-heat-insight-icon>svg{width:18px;height:18px}
.np-heat-insight>span:not(.np-heat-insight-icon){display:grid;gap:3px;min-width:0}
.np-heat-insight small{font-size:11.5px;line-height:1.4;color:var(--muted)}
.np-heat-insight b{font-size:13px;line-height:1.4;font-weight:600}
.np-heat-insight strong{font:600 clamp(16px,3.8vw,21px)/1.35 var(--f-display);letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}
.np-heat-insight>svg{width:16px;height:16px}
.np-heat-insight.is-muted{display:flex;font-size:12px;line-height:1.5;background:var(--sunk)}
.np-heat-insight.is-muted>svg{flex-shrink:0}
.np-heat-month{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 14px;margin:20px 0 14px}
.np-heat-month>b{font-size:13px;font-weight:600;text-transform:capitalize}
.np-heat-month>span{font-size:11.5px;color:var(--muted);line-height:1.5}
.np-heat-weekdays,.np-heatmap{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.np-heat-weekdays{margin:0 0 7px;text-align:center;font-size:11px;color:var(--muted)}
.np-heatmap{margin:0 0 14px}
.np-heatmap .np-heat-day{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:48px;height:48px;padding:6px 0;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);font:500 12px/1.2 var(--f-body,'Funnel Sans',sans-serif);transition:box-shadow .16s,transform .16s}
.np-heatmap .np-heat-day.level-1,.np-heat-legend .level-1{background:var(--heat1);color:#123523;border-color:transparent}
.np-heatmap .np-heat-day.level-2,.np-heat-legend .level-2{background:var(--heat2);color:#123523;border-color:transparent}
.np-heatmap .np-heat-day.level-3,.np-heat-legend .level-3{background:var(--heat3);color:#10291c;border-color:transparent}
.np-heatmap .np-heat-day.level-4,.np-heat-legend .level-4{background:var(--heat4);color:var(--heat4-ink);border-color:transparent}
.np-heatmap .np-heat-day:hover,.np-heatmap .np-heat-day:focus-visible{z-index:4;transform:translateY(-2px);box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--in);outline:none}
.np-heat-day-number{font-weight:600}
.np-heat-day-mark{width:12px;height:2px;background:currentColor;border-radius:9px;opacity:.65}
.np-heat-day[aria-current=date] .np-heat-day-number{text-decoration:underline;text-underline-offset:3px}
.np-heat-tooltip{position:absolute;z-index:8;left:50%;bottom:calc(100% + 8px);display:grid;gap:4px;min-width:150px;width:max-content;max-width:230px;padding:12px 14px;border-radius:12px;border:1px solid #ffffff24;background:#0b0e0d;color:#f1f5f3;box-shadow:0 8px 24px #0003;text-align:left;pointer-events:none;opacity:0;visibility:hidden;transform:translate(-50%,4px);transition:opacity .16s,transform .16s;line-height:1.4}
.np-heat-tooltip small{color:#c0cec6;font-size:11px}
.np-heat-tooltip b{color:#f4ff00;font-size:16px;font-weight:600}
.np-heat-tooltip>span{color:#c0cec6;font-size:11px}
.np-heat-tooltip.is-start{left:0;transform:translate(0,4px)}
.np-heat-tooltip.is-end{left:auto;right:0;transform:translate(0,4px)}
.np-heat-day:is(:hover,:focus-visible) .np-heat-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0)}
.np-heat-day:is(:hover,:focus-visible) .np-heat-tooltip:is(.is-start,.is-end){transform:translate(0,0)}
.np-heat-legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 16px;margin:0;color:var(--muted);font-size:10.5px;line-height:1.5}
.np-heat-legend :is(.np-heat-no-record,.np-heat-scale){display:flex;align-items:center;gap:5px;margin:0}
.np-heat-legend i{width:12px;height:12px;border-radius:3px;flex-shrink:0}
.np-heat-no-record i{border:1px solid var(--outline);background:transparent}
.np-heat-legend span:first-child,.np-heat-legend span:last-child{margin:0}
.np-heat-note{margin:14px 0 0;font-size:11px;line-height:1.6;color:var(--muted)}
:root:is(.is-dark,[data-theme=dark]) .np-spending-days{--heat1:#234337;--heat2:#396c50;--heat3:#73c794;--heat4:#c3fa69;--heat4-ink:#0b2417}
:root:is(.is-dark,[data-theme=dark]) .np-heatmap .np-heat-day:is(.level-1,.level-2){color:#f1f5f3}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .np-spending-days{--heat1:#234337;--heat2:#396c50;--heat3:#73c794;--heat4:#c3fa69;--heat4-ink:#0b2417}:root:not([data-theme=light]) .np-heatmap .np-heat-day:is(.level-1,.level-2){color:#f1f5f3}}
.np-summary-page .np-summary-check>summary b{font-size:14px}
.np-summary-page .np-summary-check.is-complete>summary small{color:var(--in)}
.np-summary-check-intro{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 6px}
.np-summary-check-grid{gap:0;margin:8px 0 0}
.np-summary-check-grid>.np-check-item{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:18px 0;background:none;border-radius:0}
.np-summary-check-grid>.np-check-item+.np-check-item{border-top:1px solid var(--line)}
.np-check-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:10px;background:var(--sunk);color:var(--muted)}
.np-check-icon.is-done{color:var(--in);background:radial-gradient(ellipse at 60% 90%,color-mix(in srgb,var(--in) 25%,transparent),transparent 80%),var(--sunk)}
.np-check-icon>svg{width:18px;height:18px}
.np-check-item-content{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.np-check-item-content>b{font-size:13px;font-weight:600;line-height:1.45}
.np-check-item-content>span{font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.np-check-action{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;min-height:36px;max-width:100%;margin-top:4px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);font-size:12px;line-height:1.4;font-weight:600;text-align:left;transition:background .16s,border-color .16s}
.np-check-action>svg{width:14px;height:14px;flex-shrink:0}
.np-check-action:hover{background:var(--sunk);border-color:var(--outline)}
.np-check-footer{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding-top:18px;margin-top:2px;border-top:1px solid var(--line)}
.np-check-status{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:12px;font-size:12px;line-height:1.5}
.np-check-status>.np-check-status-copy{display:grid;gap:5px;min-width:0}
.np-check-status b{font-size:13px;font-weight:600;line-height:1.45}
.np-check-status small{font-size:12px;color:var(--muted)}
.np-check-footer>.btn.np-check-reopen{margin-left:44px;max-width:calc(100% - 44px)}
.np-check-footer>p{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.np-check-footer>.btn{min-height:38px;padding:9px 12px;gap:8px;border-radius:10px;max-width:100%;text-align:left;white-space:normal}
.np-check-footer>.btn>svg{width:16px;height:16px;flex-shrink:0}
@media(max-width:600px){.np-heat-insight{grid-template-columns:28px minmax(0,1fr) auto;gap:8px;padding:12px}.np-heat-insight>svg:last-child{display:none}.np-heat-insight-icon{width:28px;height:28px;border-radius:9px}.np-heat-insight strong{font-size:18px;grid-column:2/-1}.np-heat-insight small{font-size:11px}.np-heat-month{margin-top:18px}.np-heat-weekdays,.np-heatmap{gap:4px}.np-heatmap .np-heat-day{height:44px;min-height:44px;border-radius:7px}.np-heat-legend{font-size:10px;gap:8px 12px}.np-heat-legend i{width:10px;height:10px}.np-check-action,.np-check-footer>.btn{min-height:44px}.np-heat-tooltip{min-width:138px;max-width:200px;padding:10px 12px}.np-heat-tooltip b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.np-heatmap .np-heat-day,.np-heat-tooltip,.np-heat-insight,.np-check-action{transition:none}.np-heatmap .np-heat-day:is(:hover,:focus-visible){transform:none}}
