/* Daily care: Hari Ini (C1, C3, AppToday) and the Catat pakan / rawatan sheets (C2, C4). Tokens from design-system.css.
   Phone: one column (week, next contest, tasks, recordings). Desktop ≥1024: tasks 2/3 left; week, contest, recordings right.
   The shared pieces (.dc-card, .dc-head, .dc-solid, .dc-outline, .dc-bar, .dc-eyebrow) are also used by Lomba, Riwayat and Hari H. */
.dc-page{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding-bottom:32px}
.dc-page h1,.dc-page h2{font-family:var(--kl-font-head);margin:0}
.dc-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px}
.dc-date{display:block;font-size:14px;font-weight:700;color:var(--kl-muted-2)}
.dc-head h1{font-weight:800;font-size:clamp(26px,3.2vw,34px);line-height:1.12;letter-spacing:-.02em}
.dc-head-actions{display:none;gap:10px}.dc-head>.dc-head-actions{container-type:normal;flex:none}.dc-head-actions .kc-btn{min-height:52px;padding:0 22px}
.dc-outline,.dc-solid,.dc-pill{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 20px;border-radius:999px;font:700 16px var(--kl-font-body);text-decoration:none;cursor:pointer}
.dc-outline{border:1.5px solid var(--kl-green);color:var(--kl-green);background:transparent}
.dc-solid{border:0;background:var(--kl-green);color:var(--kl-bg)}.dc-solid:hover{background:var(--kl-green-dark)}
.dc-outline .kl-icon,.dc-solid .kl-icon{width:20px;height:20px}
.dc-pill{align-self:flex-start;justify-self:start;min-height:44px;padding:0 18px;background:var(--kl-bg);color:var(--kl-green);font-size:14px;border:0}
.dc-card{background:var(--kl-card);border-radius:24px;padding:18px 18px;display:grid;gap:12px;align-content:start;min-width:0}
.dc-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dc-card-head h2{font-weight:800;font-size:20px;letter-spacing:-.01em}.dc-card-head>span,.dc-card-head>a{font-size:14px;color:var(--kl-muted-2)}.dc-card-head>a{font-weight:700;color:var(--kl-green);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.dc-eyebrow{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--kl-amber)}
.dc-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px}
.dc-bar{height:8px;border-radius:999px;background:var(--kl-sand);overflow:hidden}.dc-bar i{display:block;height:100%;border-radius:inherit;background:var(--kl-green);transition:width .5s cubic-bezier(.2,.7,.2,1)}.dc-bar.is-amber i{background:var(--kl-amber)}
.dc-legend{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--kl-muted)}
.dc-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;grid-template-areas:"week" "contest" "tasks" "recs"}
.dc-week{grid-area:week}.dc-contest{grid-area:contest}.dc-taskcard{grid-area:tasks}.dc-recs{grid-area:recs}

/* week strip (C1) */
.dc-streak-n{font-size:14px!important;font-weight:700;color:var(--kl-green)!important}.dc-streak-n b{font-weight:800}
.dc-rings{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.dc-rings li{display:flex;flex-direction:column;align-items:center;gap:8px}.dc-rings li>span:first-child{font-size:13px;font-weight:700;color:var(--kl-muted-2)}.dc-rings li.is-now>span:first-child{color:var(--kl-ink)}
.dc-rings i{width:36px;height:36px;border-radius:50%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:1.5px dashed var(--kl-dashed);transition:background-color .3s ease,border-color .3s ease}
.dc-rings .is-full i{background:var(--kl-green);border:0;color:var(--kl-bg)}.dc-rings .is-part i{background:var(--kl-green-light);border:1.5px solid var(--kl-green)}
.dc-rings .is-today i{border:2.5px solid var(--kl-amber)}.dc-rings .is-none i{border-style:solid;border-color:var(--kl-border)}
.dc-streak-line{margin:0;font-size:14px;color:var(--kl-muted-2)}
.dc-medals{display:none;gap:8px}.dc-medals>span{font-size:13px;font-weight:700;color:var(--kl-muted-2)}
.dc-medals>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}
.dc-medals figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:16px;background:var(--kl-bg)}.dc-medals figure.is-earned{background:var(--kl-amber-light)}
.dc-medals img{height:44px;width:auto;filter:grayscale(1);opacity:.45}.dc-medals .is-earned img{filter:none;opacity:1}.dc-medals figcaption{font-size:12px;font-weight:700;color:var(--kl-muted-2)}

/* next contest (C1): dark green row, whole card is the link */
.dc-contest{display:flex;align-items:center;gap:14px;padding:16px 18px;background:var(--kl-green);color:var(--kl-bg);text-decoration:none;border-radius:24px}
a.dc-contest:hover{background:var(--kl-green-dark)}a.dc-contest:focus-visible{outline:3px solid var(--kl-focus);outline-offset:2px}
.dc-flag{width:44px;height:44px;flex:none;border-radius:12px;background:var(--kl-bg);display:flex;align-items:center;justify-content:center}.dc-flag img{width:30px;height:30px;object-fit:contain}
.dc-contest-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.dc-contest-t strong{font:800 19px/1.2 var(--kl-font-head)}.dc-contest-t small{font-size:14px;color:var(--kl-banner-bg)}
.dc-contest-go{flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--kl-bg)}
.dc-contest.is-empty .dc-contest-go{border-radius:50%}
.dc-contest.is-locked{display:grid;background:var(--kl-card);color:var(--kl-ink)}.dc-contest.is-locked .dc-eyebrow{color:var(--kl-amber-text)}
.dc-lockline{display:flex;gap:10px;align-items:flex-start;margin:0;color:var(--kl-muted-2);font-size:15px}.dc-lockline .kl-icon{width:18px;height:18px;flex:none;margin-top:2px}

/* tasks (C1, C3) */
.dc-count{font-weight:700;color:var(--kl-muted-2)!important}
.dc-tasks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.dc-tasks+.dc-tasks,.dc-later+.dc-tasks,.dc-tasks+.dc-later{border-top:1px solid var(--kl-divider)}
.dc-task{display:flex;align-items:center;gap:12px;min-height:68px;padding:8px 0}.dc-task+.dc-task{border-top:1px solid var(--kl-divider)}
.dc-task .bd-photo.is-task{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;background:var(--kl-green-light)}.dc-task .bd-photo.is-task.is-avatar{object-fit:contain;padding:3px;box-sizing:border-box}
.dc-care-i{width:44px;height:44px;flex:none;border-radius:12px;background:var(--kl-green-light);display:flex;align-items:center;justify-content:center}.dc-care-i img{width:30px;height:30px;object-fit:contain}
.dc-task-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:4px 0;border:0;background:none;text-align:left;color:var(--kl-ink);font:inherit;cursor:pointer;border-radius:10px}
.dc-task-t strong{font-size:16px;font-weight:800;line-height:1.25}.dc-task-t small{font-size:14px;color:var(--kl-muted-2);line-height:1.35}
button.dc-task-t:hover strong{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}button.dc-task-t:focus-visible{outline:3px solid var(--kl-focus);outline-offset:2px}
.dc-catat{flex:none;min-height:44px;min-width:76px;padding:0 18px;border-radius:999px;border:1.5px solid var(--kl-green);background:var(--kl-green);color:var(--kl-bg);font:700 15px var(--kl-font-body);cursor:pointer;transition:transform .15s ease,background-color .2s ease}
.dc-catat:hover{background:var(--kl-green-dark)}.dc-catat:active{transform:scale(.95)}
.dc-catat.is-later{background:transparent;color:var(--kl-green)}.dc-catat.is-later:hover{background:var(--kl-green-light)}
.dc-task.is-done{min-height:60px}
.dc-tick{width:44px;height:44px;flex:none;border-radius:50%;background:var(--kl-green-light);color:var(--kl-green);display:flex;align-items:center;justify-content:center}.dc-tick svg{width:18px;height:18px}
.dc-task.is-done .dc-task-t{cursor:default}.dc-task.is-done strong{font-weight:700;color:var(--kl-muted-2)}.dc-task.is-done s{text-decoration-thickness:1.5px}
.dc-later{padding:4px 0}.dc-later summary{display:flex;align-items:center;min-height:48px;font-weight:700;font-size:15px;color:var(--kl-green);cursor:pointer;list-style:none}
.dc-later summary::-webkit-details-marker{display:none}.dc-later summary::after{content:"";width:8px;height:8px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .2s ease}
.dc-later[open] summary::after{transform:rotate(225deg)}
.dc-alldone{display:flex;align-items:center;gap:14px;margin:0;padding:12px 14px;border-radius:18px;background:var(--kl-green-light);font-size:15px}.dc-alldone img{flex:none;width:auto;height:72px}

/* last recordings */
.dc-clip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;border-radius:16px;background:var(--kl-bg)}.dc-clip>span{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.3}.dc-clip strong{font-size:15px}.dc-clip small{font-size:13px;color:var(--kl-muted-2)}
.dc-clip>div{flex-basis:100%}.dc-clip>div:empty{display:none}
.dc-play{width:44px;height:44px;border-radius:50%;border:0;background:var(--kl-green);color:var(--kl-bg);display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer}.dc-play.is-amber{background:var(--kl-amber);color:var(--kl-ink)}.dc-play.is-playing{box-shadow:0 0 0 4px var(--kl-amber-light)}

/* Monday summary */
.dc-summary{background:var(--kl-green);color:var(--kl-bg)}.dc-summary .dc-card-head{align-items:flex-start}.dc-summary strong{display:block;font:700 22px/1.15 var(--kl-font-head)}
.dc-net{padding:8px 14px;border-radius:16px;background:var(--kl-amber);color:var(--kl-ink);display:flex;flex-direction:column;align-items:center;line-height:1.1}.dc-net small{font-size:12px;font-weight:700}.dc-net b{font:800 22px var(--kl-font-head)}
.dc-sumrow{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:rgba(246,243,234,.08);flex-wrap:wrap}.dc-sumrow>span{display:flex;flex-direction:column;line-height:1.3;flex:1;min-width:0}.dc-sumrow small{font-size:13px;color:var(--kl-banner-bg)}
.dc-sumnet{align-items:flex-end}.dc-sumnet b{font-size:16px;color:var(--kl-amber)}.dc-sumnet b.is-neg{color:#F2B28F}
.dc-diff{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:18px;background:var(--kl-bg);color:var(--kl-ink);text-decoration:none}.dc-diff span{display:flex;flex-direction:column}.dc-diff small{color:var(--kl-muted-2)}

@media(min-width:600px){.dc-card{padding:20px 22px}}
@media(min-width:1024px){
  .dc-head-actions{display:flex}
  .dc-page>.dc-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .dc-grid{grid-template-columns:minmax(0,2fr) minmax(300px,1fr);grid-template-areas:"tasks week" "tasks contest" "tasks recs" "tasks .";grid-template-rows:auto auto auto 1fr;gap:20px;align-items:start}
  .dc-taskcard{padding:22px 26px}
  .dc-medals{display:grid}
  .dc-contest{flex-wrap:wrap}
}

/* ================= sheets: Catat pakan (C2) / Catat rawatan (C4) ================= */
.dc-logsheet .kc-sheet-box{display:flex;flex-direction:column;padding:12px 16px 0}
.dc-sh{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.dc-sh .bd-photo.is-head{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none;background:var(--kl-green-light)}.dc-sh .bd-photo.is-head.is-avatar{object-fit:contain;padding:4px;box-sizing:border-box}
.dc-sh>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.dc-sh strong{font:800 22px/1.15 var(--kl-font-head);letter-spacing:-.01em}
.dc-sh>div>span{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:14px;color:var(--kl-muted-2)}
.dc-sh-x{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:var(--kl-bg);color:var(--kl-ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.dc-at input{min-height:32px;padding:0 6px;border:0;border-radius:8px;background:var(--kl-bg);color:var(--kl-ink);font:600 14px var(--kl-font-body);cursor:pointer}
.dc-sheet-b{display:flex;flex-direction:column;gap:14px;padding-bottom:12px}
.dc-sheet-f{position:sticky;bottom:0;margin:0 -16px;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--kl-card) 18%)}
.dc-group{display:flex;flex-direction:column;gap:8px}.dc-group>span,.dc-group>.dc-line>span{font-size:15px;font-weight:800;color:var(--kl-ink)}.dc-group>.dc-line b{font-size:13px;color:var(--kl-green)}.dc-group>.dc-line small{font-size:13px;color:var(--kl-muted-2)}
.dc-usual{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:18px;border:2px solid var(--kl-border);background:var(--kl-card);text-align:left;color:var(--kl-ink);font:inherit;cursor:pointer}
.dc-usual.is-on{border-color:var(--kl-amber);background:var(--kl-amber-light)}
.dc-usual-i{width:32px;height:32px;flex:none;border-radius:50%;border:2px dashed var(--kl-dashed);box-sizing:border-box;display:flex;align-items:center;justify-content:center}.is-on .dc-usual-i{background:var(--kl-green);border:0;color:var(--kl-bg)}
.dc-usual>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.dc-usual small{font-size:12px;font-weight:800;letter-spacing:.06em;color:var(--kl-amber-text)}.dc-usual strong{font-size:16px}
.dc-usual em{flex:none;font-style:normal;font-size:14px;font-weight:700;color:var(--kl-amber-text)}.dc-usual:not(.is-on) em{color:var(--kl-green)}
.dc-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dc-tiles button{position:relative;min-height:76px;padding:8px 4px;border-radius:16px;border:1.5px solid var(--kl-border);box-sizing:border-box;background:var(--kl-card);color:var(--kl-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:700 15px var(--kl-font-body);cursor:pointer;transition:transform .15s ease,border-color .2s ease,background-color .2s ease}
.dc-tiles button:active{transform:scale(.96)}.dc-tiles button.is-on{background:var(--kl-green-light);border:2px solid var(--kl-green)}
.dc-tiles img{width:40px;height:36px;object-fit:contain}
.dc-qty{list-style:none;margin:0;padding:4px 14px;border-radius:18px;background:var(--kl-bg)}
.dc-qty li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px}.dc-qty li+li{border-top:1px solid var(--kl-border)}.dc-qty li>span:first-child{font-weight:700;font-size:16px}
.dc-qty .bn-step{display:flex;align-items:center;gap:8px}.dc-qty .bn-step b{min-width:64px;text-align:center;font-size:16px;white-space:nowrap}
.dc-qty .bn-step button{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--kl-border);background:var(--kl-card);color:var(--kl-green);font:700 22px/1 var(--kl-font-body);cursor:pointer}.dc-qty .bn-step button.is-plus{background:var(--kl-green);border-color:var(--kl-green);color:var(--kl-bg)}
.dc-logsheet .kc-seg,.dc-sheetwrap .kc-seg{background:var(--kl-bg)}
.dc-note{display:flex;flex-direction:column;gap:6px}.dc-note span{font-size:15px;font-weight:800}.dc-note textarea{resize:vertical;min-height:64px;border:1.5px solid var(--kl-border);border-radius:14px;padding:12px 14px;font:16px var(--kl-font-body);color:var(--kl-ink);background:var(--kl-card)}
.dc-addnote{align-self:flex-start;padding:0;gap:6px}.dc-addnote .kl-icon{width:18px;height:18px}
.dc-durs{display:flex;flex-wrap:wrap;gap:8px}.dc-durs .kc-chip{height:44px;padding:0 16px}.dc-durs .kc-chip[aria-checked=true]{background:var(--kl-green);border-color:transparent;color:var(--kl-bg)}
.dc-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dc-checks button{min-height:52px;border-radius:14px;border:1.5px solid var(--kl-border);background:var(--kl-card);display:flex;align-items:center;gap:8px;padding:0 10px;font:700 15px var(--kl-font-body);color:var(--kl-ink);cursor:pointer;min-width:0}
.dc-checks img{width:24px;height:24px;object-fit:contain;flex:none}.dc-checks span{flex:1;min-width:0;text-align:left}
.dc-checks em{flex:none;font-style:normal;font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--kl-green-light);color:var(--kl-green)}
.dc-checks .is-bad{background:var(--kl-amber-light);border-color:var(--kl-amber)}.dc-checks .is-bad em{background:var(--kl-amber);color:var(--kl-ink)}
/* #feeding and #care as pages: the same sheet, full height on phone, a centred 480px card on bigger screens */
.dc-sheetpage{min-height:100vh;background:var(--kl-bg);font-family:var(--kl-font-body);color:var(--kl-ink)}
.dc-sheetwrap.kc-sheet-box{width:100%;max-width:none;max-height:none;border-radius:0;padding:16px 16px 0;box-sizing:border-box;display:flex;flex-direction:column;min-height:100vh;overflow:visible}
@media(min-width:600px){.dc-sheetpage{background:var(--kl-sand);padding:40px 24px}.dc-sheetwrap.kc-sheet-box{max-width:480px;margin:0 auto;min-height:0;border-radius:28px;padding:20px 20px 0;box-shadow:0 24px 60px rgba(20,34,27,.12)}.dc-sheetwrap .dc-sheet-f{margin:0 -20px;padding:12px 20px 20px;border-radius:0 0 28px 28px}}
@media(min-width:1024px){.dc-logsheet .kc-sheet-box{padding:24px 24px 0}.dc-logsheet .dc-sheet-f{margin:0 -24px;padding:14px 24px 24px}}
.dc-tile-n{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px;box-sizing:border-box}
.dc-more{border-style:dashed!important}.dc-more-i{width:36px;height:36px;border-radius:50%;background:var(--kl-green-light);color:var(--kl-green);display:flex;align-items:center;justify-content:center}.dc-more-i svg{width:20px;height:20px}
.dc-custom{margin-top:12px;display:grid;gap:10px}
.bn-custom{display:flex;gap:8px;align-items:center;margin-top:8px}.bn-custom input{flex:1;min-width:0}
