/* Slice C4: History, Nutrition Trends, Hydration. Dark only, house colors. */
.c4-ico{width:18px;height:18px;fill:var(--blue);vertical-align:-3px;margin-right:6px}
.c4-sm{padding:6px 10px;min-height:0;font-size:13px}
.c4-sm svg{width:18px;height:18px}
.c4-flip svg{transform:rotate(180deg)}
.c4-miss{color:#eab308}
.c4-wrow{display:flex;gap:14px;align-items:center;margin-top:8px}
.c4-wring{flex:0 0 112px;max-width:112px}
.c4-wbtns{display:flex;flex-direction:column;gap:8px;min-width:0}
.c4-wbtns .btn{justify-content:flex-start}
.c4-wbtns .btn .tiny{margin-left:auto;color:var(--muted)}
.c4-wcustom{gap:8px;align-items:flex-end;margin:0}
.c4-wcustom label{font-size:12px}
.c4-wcustom input{min-width:0}
.c4-hubgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.c4-hubgrid .c4-wide{grid-column:1/-1}
.c4-hubgrid svg,.c4-star svg,.c4-staron svg,[data-star] svg{width:18px;height:18px}
.c4-star.on svg,.c4-staron svg{fill:#eab308}
.c4-star.on{border-color:#eab308}
.c4-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.c4-wd{text-align:center;font-size:11px;color:var(--muted);padding-bottom:2px}
.c4-day{position:relative;min-height:56px;border:1px solid var(--line);border-radius:8px;background:var(--ctl);color:var(--text);padding:4px 2px;display:flex;flex-direction:column;align-items:center;gap:2px;font:inherit;cursor:pointer;min-width:0}
.c4-day .n{font-size:13px;font-weight:700}
.c4-day .k{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;max-width:100%}
.c4-day .w{position:absolute;top:3px;right:3px}
.c4-day.today{border-color:var(--blue)}
.c4-day.logged{background:#1f2a1f;border-color:#2f4f35}
.c4-day.future,.c4-day.closed{cursor:default;opacity:.35;background:transparent}
.c4-day.closed{border-style:dashed}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green)}
.dot.over{background:var(--red)}
.w svg,.c4-legend .w svg{width:10px;height:10px;fill:var(--blue)}
.c4-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;align-items:center}
.c4-legend>span{display:inline-flex;align-items:center;gap:5px}
.c4-legend .sw{display:inline-block;width:12px;height:10px;border-radius:2px}
.sw.ok{background:var(--green)} .sw.off{background:var(--red)} .sw.none{background:var(--line);height:3px}
.sw.part{background:repeating-linear-gradient(45deg,#3a6b45 0 2px,#1f2a1f 2px 4px);border:1px solid var(--green)}
.c4-li{padding:9px 0;border-bottom:1px solid var(--line);cursor:pointer;gap:10px}
.c4-li:last-child{border-bottom:0}
.c4-tbl{width:100%;border-collapse:collapse;font-size:14px}
.c4-tbl th,.c4-tbl td{text-align:left;padding:7px 4px;border-bottom:1px solid var(--line);vertical-align:top}
.c4-tbl thead th{font-size:12px;color:var(--muted);font-weight:600}
.c4-tbl tbody th{color:var(--head);font-weight:600}
.c4-chart{width:100%;height:auto;display:block;margin:8px 0 4px}
.c4-chart .c4-ok{fill:var(--green)} .c4-chart .c4-off{fill:var(--red)}
.c4-chart .c4-part{stroke:var(--green);stroke-width:1}
.c4-chart .c4-pbg{fill:#1f2a1f} .c4-chart .c4-pln{stroke:#3a6b45;stroke-width:3}
.c4-chart .c4-none{fill:var(--line)} .c4-chart .c4-closed{fill:#2a2a2a}
.c4-chart .c4-q{fill:#eab308;font-size:10px;font-weight:700}
.c4-chart .c4-base{stroke:var(--line);stroke-width:1}
.c4-chart .c4-goal{stroke:var(--head);stroke-width:1;stroke-dasharray:4 3;opacity:.7}
.c4-chart .c4-gl{fill:var(--muted);font-size:9px}
.c4-chart .c4-ax{fill:var(--muted);font-size:9px}
b.c4-q{color:#eab308}
.has-back .c4-navrow{padding-right:48px}
@media (max-width:380px){.c4-wrow{flex-direction:column;align-items:stretch}.c4-wring{margin:0 auto}.c4-day{min-height:48px}.c4-day .k{font-size:9px}}
