.modal.history{flex-direction:column;width:min(58rem,100%);height:min(46rem,100%);padding-bottom:1rem;display:flex;overflow:hidden}.modal.history .modal-head{flex:none;margin-bottom:.6rem}.history-tabs{flex:none;margin-bottom:.7rem;display:flex}.history-tabs .seg-btn{flex:1;min-height:2.5rem}.history-tabs .seg-btn .ico{font-size:1.1rem}.history-body{overscroll-behavior:contain;scrollbar-width:thin;flex-direction:column;flex:1;gap:.65rem;min-height:0;padding:.15rem .15rem .4rem;display:flex;overflow-y:auto}.history-period{scrollbar-width:none;flex:none;align-self:flex-start;max-width:100%;overflow-x:auto}.history-period .seg-btn{white-space:nowrap}.history-body>.search{flex:none}.history-body .hint{color:var(--muted);margin:0;font-size:.8rem;font-weight:700}.history-filter{flex-direction:column;flex:none;gap:.5rem;display:flex}.history-filter-row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.history-cats{gap:.35rem}.hchip{cursor:pointer;color:var(--ink);transition:background .2s, color .2s, transform .15s var(--ease-pop);background:#232a4d0f;padding:.3rem .7rem;font-size:.8rem}.hchip:hover{background:#232a4d1c}.hchip[aria-pressed=true]{background:var(--night);color:#fff;box-shadow:0 3px 10px #262d5840}.hchip.fav .ico{color:var(--gold)}.hchip.person{color:var(--accent-deep);background:#ffe3ea;align-self:flex-start}.hchip.person .ico.x{opacity:.8;font-size:.8rem}.hchip.pname{padding:.18rem .55rem;font-size:.74rem}.history-status{color:var(--muted);flex:none;margin:0;font-size:.82rem;font-weight:800}.history-list{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.hrow{box-shadow:inset 0 0 0 1px var(--line);background:#ffffffb3;border-radius:14px;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.65rem;padding:.5rem .7rem;display:grid}.hrow.pinned{background:linear-gradient(135deg,#fffaf0,#fff3f7);box-shadow:inset 0 0 0 1px #ffd3df}.hico{width:2rem;height:2rem;color:var(--violet);background:#efeaff;border-radius:50%;place-items:center;font-size:1.05rem;display:grid}.hrow[data-cat="0"] .hico{color:#0f8f7a;background:#e6f7ee}.hrow[data-cat="1"] .hico{color:#2a6fc0;background:#e1f1ff}.hrow[data-cat="2"] .hico{color:#b8600d;background:#fff0d9}.hrow[data-cat="3"] .hico{color:var(--accent-deep);background:#ffe3ea}.hrow[data-cat="4"] .hico{color:#c03f80;background:#ffe8f3}.hrow[data-cat="5"] .hico{color:#3a8a2c;background:#e9f9df}.hrow[data-cat="6"] .hico{color:#3d55b8;background:#e3eaff}.hrow[data-cat="7"] .hico{color:#a86f00;background:#fff3c7}.hrow-main{flex-direction:column;gap:.2rem;min-width:0;display:flex}.hrow-text{overflow-wrap:anywhere;margin:0;font-size:.9rem;font-weight:700;line-height:1.3}.hrow-when{color:var(--muted);margin-right:.3rem;font-size:.74rem;font-weight:800}.hrow-people{flex-wrap:wrap;align-items:center;gap:.25rem .3rem;display:flex}.hwho{align-items:center;gap:.1rem;display:inline-flex}.hrow-people .hgo{width:1.8rem;height:1.8rem}.hrow-people .hgo .ico{color:var(--sky);font-size:1rem}.hpin{color:var(--gold);filter:drop-shadow(0 1px #c98a00);font-size:1rem}.history-tail{flex-direction:column;flex:none;align-items:flex-start;gap:.5rem;display:flex}.history-charts{grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:.65rem;display:grid}.hchart{box-shadow:inset 0 0 0 1px var(--line);background:#ffffffbf;border-radius:16px;flex-direction:column;gap:.25rem;min-width:0;padding:.7rem .8rem .6rem;display:flex}.hchart-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.hchart-head h3{align-items:center;gap:.4rem;font-size:1rem;display:flex}.hchart-head h3 .ico{color:var(--accent)}.hchart-value{font-family:var(--display);font-variant-numeric:tabular-nums;color:var(--ink);font-size:.95rem;font-weight:600}.hchart-step{color:var(--muted);margin:0;font-size:.72rem;font-weight:800}.chart{position:relative}.chart svg{touch-action:pan-y;width:100%;height:auto;display:block;overflow:visible}.chart svg:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:8px}.chart-grid line{stroke:#232a4d1a;stroke-width:1px}.chart-grid line.chart-zero{stroke:#232a4d59;stroke-dasharray:3 3}.chart-axis{font:700 9.5px var(--body);fill:var(--muted);font-variant-numeric:tabular-nums}.chart-line{fill:none;stroke:#5a4cc8;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.chart-area{fill:#5a4cc81f;stroke:none}.chart-dot{fill:#5a4cc8;stroke:#fff;stroke-width:2px}.chart-col{fill:#d2456f}.chart-cursor{stroke:#232a4d73;stroke-width:1px}.chart-focus{fill:#fff;stroke:#5a4cc8;stroke-width:2.5px}.chart[data-kind=bar] .chart-focus{stroke:#d2456f}.chart-tip{pointer-events:none;background:var(--night);color:#fff;white-space:nowrap;box-shadow:var(--shadow-soft);z-index:1;border-radius:10px;flex-direction:column;align-items:center;padding:.3rem .55rem;font-size:.72rem;font-weight:700;display:flex;position:absolute;top:-.4rem;transform:translate(-50%,-100%)}.chart-tip strong{font-family:var(--display);font-size:.95rem;font-weight:600}.chart-tip.flip{transform:translate(-85%,-100%)}.history-notify-intro{flex-direction:column;gap:.35rem;display:flex}.history-notify-intro h3{align-items:center;gap:.45rem;font-size:1.05rem;display:flex}.history-notify-intro h3 .ico{color:var(--accent)}.history-person{box-shadow:inset 0 0 0 1px var(--line);background:#fff9;border-radius:16px;flex-direction:column;gap:.45rem;padding:.7rem .8rem;display:flex}.history-person h4{font-family:var(--display);margin:0;font-size:.95rem;font-weight:600}:root[data-layout=phone] .history-backdrop{padding:0 var(--pad-r) 0 var(--pad-l);place-items:end center}:root[data-layout=phone] .modal.history{width:100%;height:auto;max-height:calc(100% - var(--pad));padding:.8rem .9rem calc(.6rem + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;animation-name:sheet-in}:root[data-layout=phone] .modal.history .modal-head h2{font-size:1.25rem}:root[data-layout=phone] .history-tabs .seg-btn{padding-inline:.4rem}:root[data-layout=phone] .history-charts{grid-template-columns:minmax(0,1fr)}:root[data-layout=phone] .history-cats,:root[data-layout=phone] .history-filter-row{scrollbar-width:none;flex-wrap:nowrap;margin-inline:-.15rem;padding-inline:.15rem;overflow-x:auto}:root[data-layout=phone] .history-cats .hchip,:root[data-layout=phone] .history-filter-row>*{flex:none}:root[data-layout=phone][data-orientation=landscape] .history-charts{grid-template-columns:repeat(2,minmax(0,1fr))}:root[data-coarse] .modal.history .seg-btn,:root[data-coarse] .modal.history .hchip,:root[data-coarse] .modal.history .btn{min-height:44px}:root[data-coarse] .modal.history .seg-btn,:root[data-coarse] .modal.history .hchip,:root[data-coarse] .modal.history .hgo{justify-content:center;min-width:44px}:root[data-coarse] .modal.history .hgo,:root[data-coarse] .modal.history .search{height:44px}.toast.digest{background:linear-gradient(135deg,#f7f5ff,#fff8ef)}.toast.digest .tico{color:#5a4cc8;background:#ece9ff}.modal.history .btn:disabled{opacity:.5;pointer-events:none}
