/* KB_CREATOR2: light, friendly creator tools (phone-first, large tap targets). */
.cr.cr-lite{--cr-bg:#fffaf5;--cr-card:#fff;--cr-line:#eadfd4;--cr-ink:#1c1712;--cr-mut:#6e6258;--cr-acc:#5b4cff;--cr-acc2:#5b4cff;--cr-ok:#0c8a62;--cr-warn:#c2410c;--cr-rad:18px;
  font:15.5px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;color:var(--cr-ink);background:var(--cr-bg);
  border:1px solid var(--cr-line);border-radius:22px;padding:16px;margin:0;box-shadow:0 10px 32px rgba(80,50,20,.06)}
.cr.cr-lite *,.cr.cr-lite *::before,.cr.cr-lite *::after{box-sizing:border-box}
.cr.cr-lite button,.cr.cr-lite input,.cr.cr-lite select,.cr.cr-lite textarea{font:inherit;color:inherit}
.cr.cr-lite h2,.cr.cr-lite h3{margin:0 0 8px;font-weight:750;letter-spacing:-.03em;color:var(--cr-ink)}
.cr.cr-lite p{margin:0 0 10px}
.cr.cr-lite .mut{color:var(--cr-mut)}
.cr.cr-lite .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cr.cr-lite .stack{display:grid;gap:12px}
.cr.cr-lite .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border:0;border-radius:999px;background:var(--cr-acc2);color:#fff;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(91,76,255,.22)}
.cr.cr-lite .btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.cr.cr-lite .btn-g{background:#fff;color:var(--cr-ink);border:1px solid var(--cr-line);box-shadow:none}
.cr.cr-lite .btn-g:hover{background:#f6efe8}
.cr.cr-lite .btn-t{background:transparent;border:1px solid var(--cr-line);color:var(--cr-ink);box-shadow:none}
.cr.cr-lite .btn-sm{min-height:38px;padding:0 12px;font-size:.92rem}
.cr.cr-lite .drop{position:relative;display:grid;place-items:center;text-align:center;gap:6px;min-height:168px;padding:22px 16px;border:1.5px dashed #d7c4b3;border-radius:var(--cr-rad);background:#fff;cursor:pointer}
.cr.cr-lite .drop:hover,.cr.cr-lite .drop.over{border-color:var(--cr-acc);background:#f4f1ff}
.cr.cr-lite .drop strong{font-size:1.06rem}
.cr.cr-lite .drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.cr.cr-lite .stage{position:relative;background:#1c1712;border-radius:14px;overflow:hidden;display:grid;place-items:center;min-height:200px}
.cr.cr-lite .stage canvas,.cr.cr-lite .stage img,.cr.cr-lite .stage video{max-width:100%;display:block}
.cr.cr-lite label.field{display:grid;gap:5px;font-size:.8rem;font-weight:700;color:var(--cr-mut);letter-spacing:.01em}
.cr.cr-lite label.field input,.cr.cr-lite label.field select,.cr.cr-lite label.field textarea{
  min-height:46px;padding:10px 12px;border:1px solid var(--cr-line);border-radius:14px;background:#fff;color:var(--cr-ink);font-weight:550}
.cr.cr-lite label.field textarea{min-height:120px;resize:vertical;line-height:1.5}
.cr.cr-lite label.field input:focus,.cr.cr-lite label.field select:focus,.cr.cr-lite label.field textarea:focus{outline:2px solid #c7c2ff;border-color:var(--cr-acc)}
.cr.cr-lite .chips{display:flex;flex-wrap:wrap;gap:6px}
.cr.cr-lite .chip{min-height:38px;padding:0 12px;border-radius:999px;border:1px solid var(--cr-line);background:#fff;color:var(--cr-ink);font-weight:700;cursor:pointer}
.cr.cr-lite .chip.on{background:var(--cr-acc2);border-color:var(--cr-acc2);color:#fff}
.cr.cr-lite .hint{font-size:.84rem;color:var(--cr-mut)}
.cr.cr-lite .err{color:#b42318;font-weight:700}
.cr.cr-lite .ok{color:var(--cr-ok);font-weight:650}
.cr.cr-lite .count{font-variant-numeric:tabular-nums;font-weight:750}
.cr.cr-lite .count.over{color:#b42318}
.cr.cr-lite .lede{font-size:.98rem;color:var(--cr-mut);margin:0 0 4px}
.cr.cr-lite .card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
.cr.cr-lite .sz-card{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--cr-line);border-radius:16px;background:#fff;text-align:left;cursor:pointer;color:inherit}
.cr.cr-lite .sz-card.on{border-color:var(--cr-acc);box-shadow:0 0 0 2px rgba(91,76,255,.2)}
.cr.cr-lite .sz-card canvas,.cr.cr-lite .sz-card img{width:100%;height:110px;object-fit:contain;background:#f3eee8;border-radius:10px}
.cr.cr-lite .sz-card b{font-size:.86rem;line-height:1.25}
.cr.cr-lite .sz-card small{color:var(--cr-mut);font-size:.75rem}
.cr.cr-lite .preview-wrap{background:#fff;border:1px solid var(--cr-line);border-radius:16px;padding:10px;overflow:auto}
.cr.cr-lite .preview-wrap canvas{max-width:100%;height:auto;border-radius:8px;display:block;margin:0 auto;touch-action:none;cursor:grab}
.cr.cr-lite .tabs{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:2px 0 8px}
.cr.cr-lite .tab{flex:0 0 auto;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--cr-line);background:#fff;font-weight:700;cursor:pointer;white-space:nowrap}
.cr.cr-lite .tab.on{background:#1c1712;color:#fff;border-color:#1c1712}
.cr.cr-lite .heat{display:grid;grid-template-columns:52px repeat(24,1fr);gap:2px;align-items:stretch;overflow-x:auto;font-size:10px}
.cr.cr-lite .heat b{display:flex;align-items:center;font-size:.7rem;color:var(--cr-mut);font-weight:700}
.cr.cr-lite .heat i{display:block;min-width:10px;aspect-ratio:1;border-radius:3px;background:#f0e6dc}
.cr.cr-lite .heat i.s1{background:#ddd6fe}.cr.cr-lite .heat i.s2{background:#a5b4fc}.cr.cr-lite .heat i.s3{background:#6366f1}.cr.cr-lite .heat i.s4{background:#4338ca}
.cr.cr-lite .heat i[data-best]{outline:2px solid #f59e0b;outline-offset:0}
.cr.cr-lite .hours{display:grid;grid-template-columns:52px repeat(24,1fr);gap:2px;font-size:9px;color:var(--cr-mut);text-align:center;margin-bottom:4px}
.cr.cr-lite .slide-list{display:grid;gap:8px}
.cr.cr-lite .slide{display:grid;gap:8px;padding:12px;border:1px solid var(--cr-line);border-radius:16px;background:#fff}
.cr.cr-lite .slide-h{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:750}
.cr.cr-lite .bio-page{max-width:360px;margin:0 auto;padding:28px 18px;border-radius:24px;background:#fff;border:1px solid var(--cr-line);text-align:center}
.cr.cr-lite .bio-page.dark{background:#16141f;color:#fafafa;border-color:#2a2736}
.cr.cr-lite .bio-page img.avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;background:#f3eee8}
.cr.cr-lite .bio-page h3{margin:10px 0 4px;font-size:1.2rem}
.cr.cr-lite .bio-page .links{display:grid;gap:8px;margin-top:16px}
.cr.cr-lite .bio-page .links a{display:block;min-height:46px;padding:12px;border-radius:999px;background:#5b4cff;color:#fff;font-weight:750;text-decoration:none}
.cr.cr-lite .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.cr.cr-lite .metric{background:#fff;border:1px solid var(--cr-line);border-radius:14px;padding:10px}
.cr.cr-lite .metric b{display:block;font-size:1.15rem}
.cr.cr-lite .metric span{font-size:.75rem;color:var(--cr-mut);font-weight:700}
.cr.cr-lite .warn-box{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:14px;padding:10px 12px;font-size:.88rem}
.cr.cr-lite audio{width:100%}
.cr.cr-lite .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media (max-width:420px){
  .cr.cr-lite{padding:12px;border-radius:16px}
  .cr.cr-lite .card-grid{grid-template-columns:repeat(2,1fr)}
}

/* KB_SPEED5: reserve the preview's final size before JS runs (no layout jump – CLS 0.18 on desktop) */
.cr.cr-lite .preview-wrap #c-prev,.cr.cr-lite .preview-wrap #q-prev{width:min(420px,100%)}
.cr.cr-lite #c-slides:empty{min-height:500px} /* KB_SPEED5: room for the 2 starter slides the script adds */
.cr.cr-lite #b-plats:empty{min-height:1606px} /* KB_SPEED5: the 9 platform rows bio.js adds (stops a 0.44 layout jump) */
