/* Keuangan Seumur Hidup (koleksi.js, canvas K1–K4). Phone: one column. Computer (≥1024): summary left, list right. */
.ko-grid,.ko-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.ko-l{font-size:13px;font-weight:700;color:var(--kl-muted)}
.ko-hero{display:flex;flex-direction:column;gap:2px;padding:4px 2px 0}
.ko-big{font:800 38px/1.1 var(--kl-font-head);letter-spacing:-.01em;color:var(--kl-ink);font-variant-numeric:tabular-nums}
.ko-gain{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--kl-chart-green)}
.ko-gain .kl-icon{width:14px;height:14px;stroke-width:3}
.ko-gain.is-neg{color:var(--kl-neg)}.ko-gain.is-muted{color:var(--kl-muted);font-weight:600}

/* K1 step line: value of the collection, amber dot at each juara */
.ko-chart{margin:8px 0 0}
.ko-chart svg{display:block;width:100%;height:auto;overflow:visible}
.ko-line{fill:none;stroke:var(--kl-chart-green);stroke-width:2.5;stroke-linejoin:round}
.ko-area{fill:var(--kl-chart-green);opacity:.12}
.ko-dot{fill:var(--kl-amber);stroke:var(--kl-card);stroke-width:2}
.ko-axis{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px;font-size:12px;color:var(--kl-muted)}
.ko-key{display:flex;align-items:center;gap:5px;color:var(--kl-amber-text);font-weight:700}
.ko-key i{width:8px;height:8px;border-radius:50%;background:var(--kl-amber)}

.ko-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ko-card{min-height:76px;box-sizing:border-box;background:var(--kl-card);border:0;border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;font:inherit;color:var(--kl-ink);text-decoration:none;min-width:0}
button.ko-card,a.ko-card{cursor:pointer}
.ko-card>span{font-size:12px;font-weight:700;color:var(--kl-muted)}
.ko-card strong{font-size:18px;font-variant-numeric:tabular-nums}
.ko-card strong.is-pos{color:var(--kl-green)}.ko-card strong.is-neg{color:var(--kl-neg)}
.ko-card strong.is-empty{font-size:16px;color:var(--kl-green)}
.ko-card small{font-size:12px;color:var(--kl-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.ko-card.is-amber{background:var(--kl-amber-light)}
.ko-card.is-amber>span,.ko-card.is-amber small{color:var(--kl-amber-text)}

.ko-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.ko-h h2{margin:0;font:800 19px var(--kl-font-head)}
.ko-h span{font-size:13px;color:var(--kl-muted)}
.ko-list{list-style:none;margin:0;padding:2px 14px;background:var(--kl-card);border-radius:20px}
.ko-list li+li{border-top:1px solid var(--kl-divider)}
.ko-list a,.ko-list li>div,.ko-list li>button{min-height:70px;width:100%;box-sizing:border-box;display:flex;align-items:center;gap:12px;color:var(--kl-ink);text-decoration:none;background:none;border:0;padding:0;font:inherit;text-align:left}
.ko-list li>button{cursor:pointer}
.ko-list.is-rows a,.ko-list.is-rows li>div,.ko-list.is-rows li>button{min-height:56px;gap:10px}
.ko-list .bd-photo{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.ko-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.ko-t strong{font-size:15px}.ko-t small{font-size:13px;color:var(--kl-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ko-v{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.ko-v b{font-size:15px;font-variant-numeric:tabular-nums}.ko-v b.is-empty{color:var(--kl-green)}
.ko-list b.is-pos{color:var(--kl-green)}.ko-list b.is-neg{color:var(--kl-neg)}
.ko-list.is-rows b{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ko-pill{align-self:flex-end;padding:2px 8px;border-radius:999px;background:var(--kl-green-light);color:var(--kl-green);font-size:12px;font-weight:800;white-space:nowrap}
.ko-pill.is-neg{background:#F6E6DC;color:var(--kl-neg)}
.ko-pill.is-lg{align-self:flex-start;margin-top:6px;padding:4px 10px;font-size:14px}
.ko-ico{width:32px;height:32px;border-radius:10px;background:var(--kl-amber-light);color:var(--kl-amber-text);display:flex;align-items:center;justify-content:center;flex:none}
.ko-ico.is-in{background:var(--kl-green-light);color:var(--kl-green)}
.ko-ico .kl-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* K2 / K3 header: back, photo, name */
.ko-head{display:flex;align-items:center;gap:12px;min-height:64px}
.ko-head>span{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.ko-head h1{font:800 20px/1.15 var(--kl-font-head);margin:0}
.ko-head small{font-size:13px;color:var(--kl-muted)}
.ko-head .bd-photo{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none}
.ko-back{width:44px;height:44px;border-radius:50%;background:var(--kl-card);display:flex;align-items:center;justify-content:center;color:var(--kl-ink);flex:none}
.ko-back .kl-icon{width:20px;height:20px;stroke-width:2.4}
.ko-bird .ko-big{font-size:36px}
.ko-rows{margin:0;padding:4px 14px;background:var(--kl-card);border-radius:18px}
.ko-rows div{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}
.ko-rows div+div{border-top:1px solid var(--kl-divider)}
.ko-rows dt{color:var(--kl-muted);font-weight:600}
.ko-rows dd{margin:0;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.ko-rows dd.is-pos{color:var(--kl-green)}.ko-rows dd.is-neg{color:var(--kl-neg)}
.ko-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ko-actions .kc-btn{min-height:52px;font-size:15px}

/* K3 */
.ko-sub{margin:2px 0 0;font:700 15px var(--kl-font-body)}
.ko-add{min-height:48px;border-radius:14px;border:1.5px dashed var(--kl-dashed);background:transparent;color:var(--kl-green);font:700 15px var(--kl-font-body);display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.ko-add .kl-icon{width:18px;height:18px}
.ku-split dt i.is-other{background:#F2B48F}

/* K4 and the K3 sheet: cream sheet, white fields */
.ko-sheet .kc-sheet-box{background:var(--kl-bg)}
.ko-form{display:flex;flex-direction:column;gap:14px}
.ko-form [hidden]{display:none!important}
.ko-form .kc-input{background:var(--kl-card)}
.ko-rp{position:relative;display:block}
.ko-rp>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--kl-muted);font-weight:600;pointer-events:none}
.ko-rp .kc-input{padding-left:42px}
.ko-rp.is-big .kc-input{height:56px;font-size:18px;font-weight:500}
.ko-rp.is-big>span{font-size:18px;font-weight:600}
.ko-rp.is-big .kc-input{padding-left:52px}
.ko-opt{font-weight:500;color:var(--kl-muted)}
.ko-form .kc-field>label{justify-content:flex-start;gap:4px}
.ko-select{max-width:none}
.ko-select select{height:50px;background:var(--kl-card)}
.ko-err{margin:0;color:var(--kl-neg);font-size:14px;font-weight:600}
.ko-note{margin:0;font-size:12px;color:var(--kl-muted);text-align:center}
.ko-del{width:44px;height:44px;border-radius:50%;border:0;background:var(--kl-bg);color:var(--kl-ink);font-size:22px;cursor:pointer;flex:none}
.ko-sheet .ko-list{margin-bottom:14px}

@media(min-width:1024px){
  .ko-grid{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:24px;align-items:start}
  .ko-bird .ko-actions{max-width:420px}
}
