/* SiswaCap: Sihat (kalori dan langkah) */
.sh-grid { display: grid; gap: 0 14px; }
@media (min-width: 900px) { .sh-grid { grid-template-columns: 1fr 1fr; } .sh-today { grid-column: 1 / -1; } }
.sh-grid h2 { margin-bottom: 12px; }
.sh-today { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (min-width: 760px) { .sh-today { grid-template-columns: 1fr 1fr 1.2fr; } }
.sh-ring { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; }
.sh-ring svg { width: min(150px, 100%); transform: rotate(-90deg); }
.sh-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.sh-ring .bg { stroke: var(--surface-2); }
.sh-ring .fg { transition: stroke-dashoffset .6s ease; }
.sh-ring > div { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 150px; margin: 0 auto; display: grid; place-content: center; line-height: 1.1; }
.sh-ring b { font-family: var(--display, inherit); font-size: 1.7rem; font-weight: 600; }
.sh-ring span { font-size: .75rem; color: var(--muted); }
.sh-ring p { margin: 0; }
.sh-macro { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 760px) { .sh-macro { grid-column: auto; grid-template-columns: 1fr; align-self: center; } }
.sh-macro > div { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.sh-macro i { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; opacity: .8; }
.sh-add { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-add label { cursor: pointer; }
.sh-pend { display: grid; gap: 10px; margin-top: 12px; }
.sh-pend img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.sh-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sh-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sh-items li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.sh-qty { display: inline-flex; align-items: center; gap: 4px; }
.sh-qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 700; }
.sh-qty span { min-width: 34px; text-align: center; font-size: .85rem; }
.sh-tot { font-size: 1.05rem; padding-top: 4px; }
.sh-mh { margin: 12px 0 4px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sh-log { list-style: none; margin: 0; padding: 0; }
.sh-log li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); }
.sh-log .icon-btn { width: 34px; height: 34px; }
.sh-big { font-family: var(--display, inherit); font-size: 3rem; font-weight: 600; line-height: 1; }
.sh-sensors { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.sh-sensors li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 8px; }
.sh-sensors li.ok::before { background: var(--up); }
.sh-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; align-items: end; }
.sh-col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; }
.sh-bars { display: flex; gap: 3px; align-items: flex-end; justify-content: center; }
.sh-bars span { width: 40%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; }
.sh-bars .k, .sh-leg .k { background: var(--brand); } .sh-bars .s, .sh-leg .s { background: var(--gold); }
.sh-col small { color: var(--muted); font-size: .72rem; }
.sh-leg { display: flex; gap: 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.sh-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sh-prof summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sh-prof summary::-webkit-details-marker { display: none; }
.sh-prof summary h2 { margin: 0; }
.sh-prof form { margin-top: 14px; }
.sh-prof .field:last-child { display: grid; gap: 8px; align-content: end; }
.sh-health { display: grid; gap: 6px; justify-items: start; padding: 10px 12px; margin: 8px 0 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.sh-health p { margin: 0; }
.sh-health .num { font-size: 1.2rem; }
