/* Custom tabs (sidebar "+" and tile boards) */
.ctnav{margin:10px 0 6px;border-top:1px solid rgba(255,255,255,.12);padding-top:8px}
.cthead{display:flex;align-items:center;justify-content:space-between;padding:2px 10px 4px 16px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.ctadd{width:26px;height:26px;padding:0!important;border-radius:50%!important;font-size:18px;line-height:24px;font-weight:700;background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important;cursor:pointer}
.ctadd:hover{background:rgba(255,255,255,.28)!important}
.ctnav a.ctdrag{opacity:.4}.ctnav a.ctdropt{box-shadow:inset 0 2px 0 #7ed957}.ctnav a.ctdropb{box-shadow:inset 0 -2px 0 #7ed957}
.ctren{display:block;width:calc(100% - 20px);margin:3px 10px;padding:6px 8px;font:inherit;border-radius:6px;border:1px solid #7ed957}
.ctmenu{position:fixed;z-index:9999;min-width:190px;background:#fff;color:#222;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.06);padding:5px;display:flex;flex-direction:column}
.ctmenu button{all:unset;padding:7px 12px;border-radius:6px;cursor:pointer;font-size:14px}.ctmenu button:hover{background:#eef6ea}.ctmenu button.danger{color:#c62828}.ctmenu hr{border:0;border-top:1px solid #eee;margin:4px 0}
.ctdlg label{display:block;margin:8px 0;font-weight:600;font-size:13px}.ctdlg select,.ctdlg input{display:block;width:100%;margin-top:4px;box-sizing:border-box}
.ctprev{margin-top:10px;padding:8px 10px;background:#f4f8f2;border-radius:8px;min-height:20px;font-size:13px}
.cthdr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-bottom:12px}.cthdr h2{margin:0}.cthdr .mut{font-size:12px}.ctbtns{margin-left:auto;display:flex;gap:6px}
.ctboard{position:relative;width:100%;min-height:320px;user-select:none;-webkit-user-select:none}
.ctempty{position:absolute;inset:20px 0 auto;margin:auto;max-width:440px;text-align:center;padding:30px;border:2px dashed #c9d8c3;border-radius:14px;color:#556}
.cttile{position:absolute;box-sizing:border-box;background:#fff;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.08),0 0 0 1px rgba(0,0,0,.06);display:flex;flex-direction:column;overflow:hidden;
 transition:left .23s cubic-bezier(.34,1.32,.64,1),top .23s cubic-bezier(.34,1.32,.64,1),width .23s cubic-bezier(.34,1.32,.64,1),height .23s cubic-bezier(.34,1.32,.64,1),box-shadow .15s,transform .23s cubic-bezier(.34,1.32,.64,1)}
.ctnoanim .cttile,.ctsizing{transition:none!important}
.cttile.ctlift{z-index:50;transition:box-shadow .15s!important;box-shadow:0 18px 40px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.05);cursor:grabbing;opacity:.97}
.cttile.ctsettle{z-index:40}
body.ctdragging{cursor:grabbing}
.cth{display:flex;align-items:center;gap:6px;padding:7px 8px 4px 6px;cursor:grab;touch-action:none}
.ctgrip{color:#9aa;font-size:15px;padding:0 3px}.ctt{flex:1;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctdots,.ctx{all:unset;cursor:pointer;width:22px;height:22px;text-align:center;border-radius:6px;color:#889;font-size:14px;line-height:22px}.ctdots:hover,.ctx:hover{background:#f0f2f0;color:#222}
.cttile .ctx{opacity:.55}.cttile:hover .ctx{opacity:1}
.ctb{flex:1;min-height:0;padding:2px 12px 10px;display:flex;flex-direction:column;overflow:hidden}
.ctrz{position:absolute;right:2px;bottom:2px;width:14px;height:14px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 50%,#b8c4b4 50%,#b8c4b4 60%,transparent 60%,transparent 72%,#b8c4b4 72%,#b8c4b4 82%,transparent 82%)}
.ctph{background:repeating-linear-gradient(45deg,#fafcf9,#fafcf9 10px,#f3f7f1 10px,#f3f7f1 20px);box-shadow:none;border:2px dashed #c3d4bd;cursor:grab;touch-action:none}
.ctph .ctx{position:absolute;top:4px;right:4px}.ctphb{all:unset;margin:auto;color:#5a7a50;font-weight:600;cursor:pointer;padding:8px 12px;border-radius:8px}.ctphb:hover{background:#e7f1e2}
.ctghost{position:absolute;border:2px dashed #66bb6a;border-radius:12px;background:rgba(102,187,106,.08);box-sizing:border-box;pointer-events:none;transition:left .18s,top .18s,width .18s,height .18s;display:flex;align-items:center;justify-content:center}
.ctghost.fit{border-color:#ffb300;background:rgba(255,179,0,.1)}.ctghost span{background:#ffb300;color:#3a2a00;font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px}
.ctload{margin:auto;color:#99a;font-size:13px;text-align:center}
.ctkpi{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.ctbig{font-size:30px;font-weight:800;letter-spacing:-.02em;color:#1b2b1b}
.ctpill{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#eef0ee;color:#556}.ctpill.good{background:#e3f4e1;color:#2e7d32}.ctpill.bad{background:#fde8e6;color:#c62828}
.ctsub{font-size:12px;color:#778;margin-bottom:4px}.ctspark{flex:1;min-height:20px;margin-top:4px}
.ctsvg{width:100%;height:100%;display:block}.ctline{fill:none;stroke:#2e7d32;stroke-width:2}.ctarea{fill:rgba(46,125,50,.12)}
.ctchart{flex:1;min-height:30px}.ctaxis{display:flex;justify-content:space-between;font-size:11px;color:#99a}
.ctbars{flex:1;display:flex;align-items:flex-end;gap:3px;min-height:30px;padding-top:6px}.ctbarw{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0}
.ctbar{width:100%;background:linear-gradient(#4caf50,#2e7d32);border-radius:4px 4px 0 0}.ctbar.neg{background:#e57373}.ctbarw span{font-size:10px;color:#889;white-space:nowrap;overflow:hidden;max-width:100%;height:14px}
.ctdonut{flex:1;display:flex;gap:10px;align-items:center;min-height:0}.ctdonut svg{height:100%;max-height:100%;aspect-ratio:1;flex-shrink:0}.ctdt{font-size:12px;font-weight:800;fill:#1b2b1b}
.ctdonut ul{list-style:none;margin:0;padding:0;font-size:12px;overflow:auto;max-height:100%}.ctdonut li{white-space:nowrap}.ctdonut i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px}
.cttbl{flex:1;overflow:auto;min-height:0}.cttbl table{width:100%;border-collapse:collapse;font-size:12.5px}.cttbl th{position:sticky;top:0;background:#fff;text-align:left;color:#778;font-weight:600;border-bottom:1px solid #eee;padding:4px}.cttbl td{padding:4px;border-bottom:1px solid #f3f3f3}
.ctcal{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:1fr;gap:3px;min-height:0}.ctcal i{font-style:normal;font-size:10px;color:#99a;text-align:center}
.ctday{background:#f6f8f5;border-radius:6px;padding:2px 4px;font-size:11px;color:#889;display:flex;flex-direction:column;min-height:0}.ctday.has{background:#e3f4e1;color:#2e5e2e}.ctday b{font-size:15px;margin:auto}.ctday.td{outline:2px solid #66bb6a}
.ctprog{margin:6px 0}.ctprog>div:first-child{display:flex;justify-content:space-between;font-size:12px}.ctpbar{height:10px;background:#eef1ec;border-radius:999px;overflow:hidden;margin-top:4px}.ctpbar i{display:block;height:100%;background:linear-gradient(90deg,#66bb6a,#2e7d32);border-radius:999px}
@media(max-width:600px){.ctbtns{margin-left:0}.cthdr .mut{display:none}.ctbig{font-size:24px}}
@media(prefers-reduced-motion:reduce){.cttile,.ctghost{transition:none!important}}
.ctlock{display:inline-flex;align-items:center;justify-content:center;width:36px;height:32px;padding:0!important}.ctlock.on{background:#fff3cd!important;color:#7a5600!important;border:1px solid #e0b84a!important}
.ctlocked .cth{cursor:default}.ctlocked .ctgrip,.ctlocked .ctx,.ctlocked .ctrz,.ctlocked .ctdots{display:none}.ctlocked .ctph{cursor:default}.ctlocked .ctphb{pointer-events:none}
