/* Pengasuh (pengasuh.js): the pengasuh's screens (#diundang, #pengasuh-mulai, #pengasuh-saya), the owner's code system on
   Pengaturan › Pengasuh, and the limited app on a pengasuh's phone (.kl-ct on <html>). Tokens and spacing: DESIGN-RULES.md. */

/* ---------- #diundang ---------- */
.cg-join .ml-mid{gap:var(--kl-space-5)}
.cg-otp-l{margin:0 0 calc(var(--kl-space-3) * -1);font-size:var(--kl-fs-small);font-weight:700;color:var(--kl-ink)}
.cg-otp.lg-otp{justify-content:start!important}
.cg-otp .lg-cell{text-transform:uppercase}
.cg-uji{margin:0}
.cg-join .lg-bar,.cg-wait+.lg-bar{display:flex;flex-direction:column;gap:var(--kl-space-2)}
.cg-join .ml-wa{display:inline-flex;align-items:center;justify-content:center;gap:var(--kl-space-2)}
.cg-join .ml-wa svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.cg-wait{display:flex;flex-direction:column;align-items:flex-start;gap:var(--kl-space-5)}
.cg-pulse{width:64px;height:64px;border-radius:50%;background:var(--kl-amber-light);color:var(--kl-amber-text);display:flex;align-items:center;justify-content:center;animation:cg-pulse 1.8s ease-in-out infinite}
.cg-pulse.is-off{background:var(--kl-sand);color:var(--kl-muted);animation:none}
.cg-pulse svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@keyframes cg-pulse{50%{box-shadow:0 0 0 12px rgba(224,165,38,.12)}}
@media (prefers-reduced-motion:reduce){.cg-pulse{animation:none}}
.cg-facts{align-self:stretch}
.cg-facts .ml-ico svg{fill:none;stroke:currentColor;stroke-width:2}

/* ---------- #pengasuh-mulai: the tutorial ---------- */
.cg-tut{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:var(--kl-space-5)}
.cg-tut-h{display:flex;align-items:center;gap:var(--kl-space-4)}
.cg-tut-h h1{margin:0;font:800 var(--kl-fs-h1)/var(--kl-lh-head) var(--kl-font-head)}
.cg-tut-h p{margin:var(--kl-space-1) 0 0;font-size:var(--kl-fs-small);color:var(--kl-muted)}
.cg-tut-ok{width:56px;height:56px;border-radius:50%;background:var(--kl-green);color:var(--kl-bg);display:flex;align-items:center;justify-content:center;flex:none}
.cg-tut-ok svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.cg-birds{list-style:none;margin:0;padding:var(--kl-space-1) var(--kl-space-4);border-radius:var(--kl-radius-lg);background:var(--kl-card)}
.cg-birds li{display:flex;align-items:center;gap:var(--kl-space-3);min-height:var(--kl-h-row);border-top:1px solid var(--kl-divider)}
.cg-birds li:first-child{border-top:0}
.cg-birds li>span{display:flex;flex-direction:column;line-height:1.3}
.cg-birds small{font-size:var(--kl-fs-caption);color:var(--kl-muted)}
.cg-tut-t{margin:0;font:800 var(--kl-fs-h3)/var(--kl-lh-head) var(--kl-font-head)}
.cg-tut-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--kl-space-3)}
.cg-tut-steps li{position:relative;display:flex;align-items:flex-start;gap:var(--kl-space-3);padding:var(--kl-space-4);border-radius:var(--kl-radius-lg);background:var(--kl-card)}
.cg-tut-steps li>span:last-child{display:flex;flex-direction:column;gap:var(--kl-space-1);line-height:1.35}
.cg-tut-steps strong{font-size:var(--kl-fs-body)}
.cg-tut-steps small{font-size:var(--kl-fs-small);color:var(--kl-muted)}
.cg-tut-ic{width:40px;height:40px;border-radius:12px;background:var(--kl-green-light);color:var(--kl-green);display:flex;align-items:center;justify-content:center;flex:none}
.cg-tut-ic .kl-icon{width:22px;height:22px}
.cg-tut-lock{margin:0;display:flex;align-items:flex-start;gap:var(--kl-space-2);font-size:var(--kl-fs-small);color:var(--kl-muted)}
.cg-tut-lock .kl-icon{width:18px;height:18px;flex:none;margin-top:1px}
.cg-tut-bar .kc-btn{width:100%}

/* ---------- #pengasuh-saya ---------- */
.cg-mine{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:var(--kl-space-4)}
.cg-mine h1{margin:0 0 var(--kl-space-1);font:800 var(--kl-fs-h1)/var(--kl-lh-head) var(--kl-font-head)}
.cg-card{padding:var(--kl-space-4);border-radius:var(--kl-radius-lg);background:var(--kl-card);display:flex;flex-direction:column;gap:var(--kl-space-4)}
.cg-who{display:flex;align-items:center;gap:var(--kl-space-3)}
.cg-who>span:last-child{display:flex;flex-direction:column;line-height:1.3}
.cg-who strong{font-size:var(--kl-fs-lead)}
.cg-who small{font-size:var(--kl-fs-small);color:var(--kl-muted)}
.cg-dl{margin:0;display:flex;flex-direction:column}
.cg-dl div{display:flex;justify-content:space-between;gap:var(--kl-space-4);min-height:var(--kl-h-row-s);align-items:center;border-top:1px solid var(--kl-divider);font-size:var(--kl-fs-small)}
.cg-dl dt{color:var(--kl-muted)}.cg-dl dd{margin:0;text-align:right;font-weight:600}
.cg-row{display:flex;align-items:center;gap:var(--kl-space-3);min-height:var(--kl-h-row);padding:0 var(--kl-space-4);border-radius:var(--kl-radius-lg);background:var(--kl-card);color:var(--kl-ink);text-decoration:none}
.cg-row>span:nth-child(2){flex:1;display:flex;flex-direction:column;line-height:1.3}
.cg-row small{font-size:var(--kl-fs-caption);color:var(--kl-muted)}
.cg-row>.kl-icon{width:18px;height:18px;color:var(--kl-muted)}
.cg-out{display:flex;flex-direction:column;gap:var(--kl-space-2);margin-top:var(--kl-space-2)}
.cg-out small{font-size:var(--kl-fs-caption);color:var(--kl-muted)}

/* ---------- owner: Pengaturan › Pengasuh ---------- */
.tc-list{display:flex;flex-direction:column;gap:var(--kl-space-4)}
.tc-top{display:flex;align-items:center;justify-content:space-between;gap:var(--kl-space-3);min-height:44px}
.tc-top p{margin:0}
.tc-list .st-group{margin:var(--kl-space-2) 0 calc(var(--kl-space-1) * -1)}
.tc-open{margin:0}
.tc-code{padding:var(--kl-space-5);border-radius:var(--kl-radius-lg);background:var(--kl-card);border:1.5px solid var(--kl-green);display:flex;flex-direction:column;gap:var(--kl-space-4)}
.tc-code-h{display:flex;align-items:center;justify-content:space-between;gap:var(--kl-space-2)}
.tc-code-h h2{margin:0;font:800 var(--kl-fs-h3)/var(--kl-lh-head) var(--kl-font-head)}
.tc-x{width:44px;height:44px;margin:-10px -10px -10px 0;border:0;background:none;font-size:22px;color:var(--kl-muted);cursor:pointer}
.tc-cells{display:grid;grid-template-columns:repeat(6,48px);gap:var(--kl-space-2)}
.tc-cells span{height:56px;border-radius:14px;background:var(--kl-bg);display:flex;align-items:center;justify-content:center;font:800 var(--kl-fs-h2) var(--kl-font-head);color:var(--kl-green-dark);letter-spacing:0}
.tc-code-m{margin:0;display:flex;align-items:flex-start;gap:var(--kl-space-2);font-size:var(--kl-fs-small);color:var(--kl-muted);line-height:1.4}
.tc-code-m svg,.tc-dev svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.tc-code-m b{color:var(--kl-ink)}
.tc-code-a{display:grid;grid-template-columns:1fr 1fr;gap:var(--kl-space-2)}
.tc-uji{display:inline-flex;align-items:center;gap:var(--kl-space-1);font-size:var(--kl-fs-small);font-weight:700;color:var(--kl-green);text-decoration:none;min-height:44px}
.tc-uji .kl-icon{width:16px;height:16px}
.tc-req{padding:var(--kl-space-4);border-radius:var(--kl-radius-lg);background:var(--kl-amber-light);display:flex;flex-direction:column;gap:var(--kl-space-3)}
.tc-req-h{display:flex;align-items:center;gap:var(--kl-space-3)}
.tc-req-h>span:last-child,.tc-notice>span:nth-child(2){display:flex;flex-direction:column;line-height:1.3;min-width:0}
.tc-req-h strong{font-size:var(--kl-fs-body)}.tc-req-h small{font-size:var(--kl-fs-caption);color:var(--kl-muted)}
.tc-dev{list-style:none;margin:0;padding:var(--kl-space-3);border-radius:var(--kl-radius);background:var(--kl-card);display:flex;flex-direction:column;gap:var(--kl-space-2);font-size:var(--kl-fs-small)}
.tc-person .tc-dev{background:var(--kl-bg)}
.tc-dev li{display:flex;align-items:flex-start;gap:var(--kl-space-2)}
.tc-warn{margin:0;font-size:var(--kl-fs-caption);color:var(--kl-amber-text);font-weight:600}
.tc-req-a{display:grid;grid-template-columns:1fr 1fr;gap:var(--kl-space-2)}
.tc-person .tm-p-h .st-t{flex:1;min-width:0}
.tc-revoke{margin-left:auto;flex:none}
.tc-form{display:flex;flex-direction:column;gap:var(--kl-space-4)}
.tc-can{margin:0}
.tc-recent{padding:var(--kl-space-1) var(--kl-space-4);border-radius:var(--kl-radius-lg);background:var(--kl-card)}
.tc-recent .bd-note{margin:var(--kl-space-3) 0}
.tc-empty .tc-steps{text-align:left;align-self:stretch}
.tc-notice{display:flex;align-items:center;gap:var(--kl-space-3);padding:var(--kl-space-3) var(--kl-space-4);margin-bottom:var(--kl-space-4);border-radius:var(--kl-radius-lg);background:var(--kl-amber-light);color:var(--kl-ink);text-decoration:none}
.tc-notice .tm-av{width:40px;height:40px;font-size:var(--kl-fs-body)}
.tc-notice>span:nth-child(2){flex:1}
.tc-notice strong{font-size:var(--kl-fs-body)}.tc-notice small{font-size:var(--kl-fs-caption);color:var(--kl-muted)}
.tc-notice b{display:inline-flex;align-items:center;gap:2px;font-size:var(--kl-fs-small);color:var(--kl-green)}
.tc-notice b .kl-icon{width:16px;height:16px}
@media (max-width:600px){.tc-cells{grid-template-columns:repeat(6,minmax(0,44px))}.tc-cells span{height:52px}.tc-code-a{grid-template-columns:1fr}}

/* developer panel: step list and link chips */
.kp-steps{margin:0 0 var(--kl-space-3);padding-left:20px;display:flex;flex-direction:column;gap:var(--kl-space-1);font-size:var(--kl-fs-small)}
a.kp-chip{display:inline-flex;align-items:center;text-decoration:none}

/* ---------- a pengasuh's phone: the owner's controls are not there ---------- */
.dc-for{margin:var(--kl-space-1) 0 0;font-size:var(--kl-fs-small);color:var(--kl-muted)}
.kl-ct .bd-manage,.kl-ct #bd-delete,.kl-ct [data-bd-edit],.kl-ct [data-bd-delete],.kl-ct .bd-boxlink,
.kl-ct .bd-head>div>p,.kl-ct .bd-meter,.kl-ct [data-bd-headadd],.kl-ct .bd-add,.kl-ct .bd-seg,
.kl-ct .bp-seg a[href*="tab=lomba"],.kl-ct .bp-seg a[href*="tab=dokumen"],.kl-ct a[href="#export"],.kl-ct a[href^="#pengasuh-hp"],
/* Detail box on a bird: Nomor ring, Asal and Pengasuh are the owner's (rows 2, 3, 5) */
.kl-ct .bp-side>.bd-box:first-child dl>div:nth-child(2),.kl-ct .bp-side>.bd-box:first-child dl>div:nth-child(3),.kl-ct .bp-side>.bd-box:first-child dl>div:nth-child(5){display:none!important}
