/* Compact searchable History manager */
#history.view.active{display:block!important;overflow-x:hidden}.historyFilterArea{padding:0 20px}.historyIntro{padding:12px 2px 14px}.historyIntro .eyebrow{color:#93465c}.historyIntro h1{font-size:clamp(26px,7vw,31px);line-height:1.08;margin:6px 0 0;letter-spacing:-.035em;color:#282525}.historyControls{display:grid;gap:9px;padding:12px;background:#f4e4e5;border:1px solid rgba(169,53,85,.12);border-radius:18px}.historySearch{height:46px;display:grid;grid-template-columns:22px 1fr;align-items:center;gap:8px;padding:0 12px;background:#fffaf7;border:1px solid rgba(103,93,91,.14);border-radius:13px}.historySearch svg{width:19px;color:#9b5366}.historySearch input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#292626;font:inherit;font-size:14px}.historySelects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.historySelects label{display:grid;gap:4px}.historySelects label>span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#786b68;margin-left:3px}.historySelects select{width:100%;min-height:43px;padding:0 30px 0 10px;border:1px solid rgba(103,93,91,.14);border-radius:12px;background:#fffaf7;color:#332f2e;font-size:12px;font-weight:700}
#historyContent{display:block!important;padding:10px 20px 4px}.historyResultsMeta{display:flex;justify-content:space-between;padding:2px 2px 9px;font-size:11px;color:#786f6c}.historyDateGroup{margin-bottom:11px;border:1px solid rgba(103,93,91,.13);border-radius:17px;overflow:hidden;background:#fffaf7}.historyDateButton{width:100%;min-height:45px;padding:8px 12px;border:0;border-bottom:1px solid rgba(103,93,91,.1);background:#f6e7e7;color:#342e2e;display:grid;grid-template-columns:1fr auto 18px;align-items:center;gap:7px;text-align:left}.historyDateButton span{font-size:14px;font-weight:800}.historyDateButton small{font-size:10px;color:#846f72}.historyDateButton svg{width:16px;color:#A93555}.historyCompactList{display:grid}.historyCompactRow{min-height:66px;display:grid;grid-template-columns:46px 34px minmax(0,1fr) 38px;align-items:center;gap:8px;padding:8px 7px 8px 11px;background:#fffaf7}.historyCompactRow+.historyCompactRow{border-top:1px solid rgba(103,93,91,.1)}.historyCompactRow:nth-child(even){background:#fcf4f2}.historyCompactRow time{font-size:11px;font-weight:750;color:#746966}.historyCompactIcon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#f2dfe2;color:#995168}.historyCompactIcon svg{width:18px;height:18px}.historyCompactMain{min-width:0;display:flex;flex-direction:column;gap:3px}.historyCompactMain b{font-size:14px;line-height:1.2}.historyCompactMain small{font-size:11px;line-height:1.3;color:#6f6562;overflow-wrap:anywhere}.historyMore{width:38px;height:44px;border:0;background:transparent;color:#786f6c;font-size:16px;letter-spacing:1px}.historyLoadMore{width:100%;min-height:46px;margin:4px 0 12px;border:1px solid rgba(169,53,85,.2);border-radius:14px;background:#f4e4e5;color:#923e57;font-weight:800}.historyLoadMore span{display:block;font-size:10px;font-weight:600;margin-top:2px}.historyEmptyState{min-height:190px;border:1px dashed rgba(103,93,91,.2);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#766d69;text-align:center;padding:24px}.historyEmptyState svg{width:27px;color:#a45b6f}.historyEmptyState b{color:#3a3432}.historyEmptyState span{font-size:12px}.historyDaySummary h2{margin:6px 0 2px}.historySummaryList{margin:16px 0;border:1px solid rgba(103,93,91,.13);border-radius:16px;overflow:hidden}.historySummaryList button{width:100%;min-height:58px;border:0;background:#fffaf7;display:grid;grid-template-columns:34px 1fr 18px;align-items:center;gap:10px;padding:9px 12px;text-align:left;color:#2c2928}.historySummaryList button+button{border-top:1px solid rgba(103,93,91,.1)}.historySummaryList button>svg:first-child{width:34px;height:34px;padding:8px;border-radius:10px;background:#f2dfe2;color:#995168}.historySummaryList button>svg:last-child{width:16px;color:#995168}.historySummaryList span{display:flex;flex-direction:column;gap:2px}.historySummaryList b{font-size:13px}.historySummaryList small{font-size:11px;color:#726866}.addEntry{display:grid!important;place-items:center;position:fixed!important;left:calc(50% + 143px)!important;right:auto!important;bottom:calc(92px + env(safe-area-inset-bottom))!important;width:54px!important;height:54px!important;padding:0!important;border:0!important;border-radius:50%!important;z-index:55!important;background:#A93555!important;color:#fff!important;font-size:25px!important;line-height:1!important;box-shadow:0 8px 22px rgba(80,42,51,.2)!important}.view#history{padding-bottom:calc(118px + env(safe-area-inset-bottom))!important}
html[data-mode="dark"] .historyIntro h1{color:#f5efec}html[data-mode="dark"] .historyControls,html[data-mode="dark"] .historyDateButton{background:#453136}html[data-mode="dark"] .historySearch,html[data-mode="dark"] .historySelects select,html[data-mode="dark"] .historyDateGroup,html[data-mode="dark"] .historyCompactRow,html[data-mode="dark"] .historySummaryList button{background:#292523;color:#f5efec}html[data-mode="dark"] .historyCompactRow:nth-child(even){background:#332a2a}
@media(max-width:430px){.addEntry{left:auto!important;right:18px!important}}@media(max-width:365px){.historyFilterArea,#historyContent{padding-left:12px;padding-right:12px}.historySelects{grid-template-columns:1fr}.historyCompactRow{grid-template-columns:40px 32px minmax(0,1fr) 36px;gap:6px}.historyCompactRow time{font-size:10px}}
