/* KB_CREATOR: compact full-screen studio look. Dark stage, large tap targets, no clutter. */
.cr{--cr-bg:#101218;--cr-card:#181b24;--cr-line:#2a2e3a;--cr-ink:#f4f4f5;--cr-mut:#a1a1aa;--cr-acc:#818cf8;--cr-acc2:#4f46e5;--cr-ok:#34d399;--cr-warn:#fbbf24;--cr-rad:16px;
  font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--cr-ink);background:var(--cr-bg);border-radius:var(--cr-rad);padding:14px;margin:0 -2px}
.cr *,.cr::before,.cr::after{box-sizing:border-box}
.cr button,.cr input,.cr select,.cr textarea{font:inherit;color:inherit}
.cr h2,.cr h3{margin:0 0 8px;font-weight:720;letter-spacing:-.02em}
.cr p{margin:0 0 10px}
.cr .mut{color:var(--cr-mut)}
.cr .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cr .stack{display:grid;gap:10px}
.cr .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--cr-acc2);color:#fff;font-weight:650;cursor:pointer}
.cr .btn:disabled{opacity:.45;cursor:not-allowed}
.cr .btn-g{background:#272a35;color:var(--cr-ink)}
.cr .btn-g:hover{background:#323644}
.cr .btn-t{background:transparent;border:1px solid var(--cr-line);color:var(--cr-ink)}
.cr .btn-sm{min-height:36px;padding:0 12px;font-size:.9rem}
.cr .drop{display:grid;place-items:center;text-align:center;gap:6px;min-height:160px;padding:20px;border:1.5px dashed #3f4556;border-radius:var(--cr-rad);background:#14171f;cursor:pointer}
.cr .drop strong{font-size:1.05rem}
.cr .drop input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.cr .stage{position:relative;background:#000;border-radius:12px;overflow:hidden;display:grid;place-items:center;min-height:220px}
.cr .stage video,.cr .stage canvas,.cr .stage img{max-width:100%;max-height:min(70dvh,720px);display:block}
.cr .stage.portrait{max-width:360px;margin:0 auto}
.cr .ov{position:absolute;inset:0;pointer-events:none}
.cr .safe-top,.cr .safe-bot,.cr .safe-side{position:absolute;background:rgba(244,63,94,.18);border:0}
.cr .safe-top{left:0;right:0;top:0;height:12%}
.cr .safe-bot{left:0;right:0;bottom:0;height:22%}
.cr .safe-side{top:12%;bottom:22%;width:6%}
.cr .safe-side.l{left:0}.cr .safe-side.r{right:0}
.cr .safe-lab{position:absolute;left:50%;transform:translateX(-50%);font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fecdd3;background:rgba(0,0,0,.45);padding:2px 8px;border-radius:999px}
.cr .safe-lab.t{top:4%}.cr .safe-lab.b{bottom:8%}
.cr label.field{display:grid;gap:4px;font-size:.82rem;font-weight:650;color:var(--cr-mut)}
.cr label.field input,.cr label.field select,.cr label.field textarea{min-height:44px;padding:8px 12px;border:1px solid var(--cr-line);border-radius:12px;background:#12141b;color:var(--cr-ink);font-weight:500}
.cr label.field textarea{min-height:120px;resize:vertical;line-height:1.5}
.cr .chips{display:flex;flex-wrap:wrap;gap:6px}
.cr .chip{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--cr-line);background:#12141b;color:var(--cr-ink);font-weight:650;cursor:pointer}
.cr .chip.on{background:var(--cr-acc2);border-color:var(--cr-acc2);color:#fff}
.cr .list{display:grid;gap:8px}
.cr .item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px;border-radius:12px;background:#14171f;border:1px solid var(--cr-line)}
.cr .item b{display:block;font-size:.95rem}
.cr .item small{color:var(--cr-mut)}
.cr .prog{height:6px;border-radius:99px;background:#272a35;overflow:hidden}
.cr .prog>i{display:block;height:100%;width:0;background:var(--cr-acc);border-radius:99px}
.cr .post{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--cr-line)}
.cr .post a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;background:#272a35;color:#fff;font-weight:650;text-decoration:none}
.cr .post a:hover{background:#323644;text-decoration:none}
.cr .hint{font-size:.82rem;color:var(--cr-mut)}
.cr .err{color:#fca5a5;font-weight:600}
.cr .ok{color:var(--cr-ok)}
.cr .film{display:flex;gap:6px;overflow-x:auto;padding:4px 0 8px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.cr .film button{flex:0 0 auto;width:72px;padding:0;border:2px solid transparent;border-radius:8px;background:#000;cursor:pointer;scroll-snap-align:start}
.cr .film button.on{border-color:var(--cr-acc)}
.cr .film img,.cr .film canvas{display:block;width:72px;height:128px;object-fit:cover;border-radius:6px}
.cr .film.wide canvas,.cr .film.wide img{width:128px;height:72px}
.cr .range{width:100%;accent-color:var(--cr-acc)}
.cr .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.cr-toast{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:80;background:#111827;color:#fff;padding:10px 16px;border-radius:999px;font-weight:650;box-shadow:0 8px 24px rgba(0,0,0,.3)}
/* Hub (full-screen app) */
.crh{--cr-bg:#0c0d12;--cr-card:#181b24;--cr-line:#2a2e3a;--cr-ink:#fafafa;--cr-mut:#a1a1aa;--cr-acc:#818cf8;
  min-height:100dvh;background:var(--cr-bg);color:var(--cr-ink);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;display:flex;flex-direction:column}
.crh *{box-sizing:border-box}
.crh-bar{display:flex;align-items:center;gap:8px;min-height:52px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));position:sticky;top:0;z-index:5;background:rgba(12,13,18,.92);backdrop-filter:blur(10px)}
.crh-bar h1{flex:1;margin:0;font-size:1.05rem;font-weight:750;letter-spacing:-.02em}
.crh-back{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--cr-ink);text-decoration:none;background:#1a1d27}
.crh-body{flex:1;overflow:auto;padding:8px 16px calc(28px + env(safe-area-inset-bottom))}
.crh-hero{padding:10px 2px 18px}
.crh-hero h2{margin:0 0 8px;font-size:clamp(1.6rem,6vw,2.3rem);letter-spacing:-.03em;line-height:1.15;font-weight:780}
.crh-hero p{margin:0;color:var(--cr-mut);max-width:36rem}
.crh-sec{margin:8px 0 22px}
.crh-sec h3{margin:0 0 10px;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--cr-mut);font-weight:750}
.crh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:10px}
.crh-card{display:flex;flex-direction:column;gap:6px;min-height:132px;padding:14px;border-radius:18px;background:var(--cr-card);border:1px solid var(--cr-line);color:var(--cr-ink);text-decoration:none}
.crh-card:hover{border-color:#4f46e5;text-decoration:none;background:#1c2030}
.crh-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:1.2rem;background:#232636}
.crh-card strong{font-size:.98rem;line-height:1.25;font-weight:720}
.crh-card span{color:var(--cr-mut);font-size:.82rem;line-height:1.35}
.crh-checks{display:grid;gap:8px;background:var(--cr-card);border:1px solid var(--cr-line);border-radius:18px;padding:14px}
.crh-checks label{display:flex;gap:10px;align-items:flex-start;min-height:44px;font-size:.95rem}
.crh-checks input{width:20px;height:20px;margin-top:2px;accent-color:#4f46e5}
.crh-post{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.crh-post a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;background:#4f46e5;color:#fff;font-weight:700;text-decoration:none}
.crh-post a.alt{background:#272a35}
@media(min-width:800px){
  .crh-body{max-width:980px;margin:0 auto;width:100%;padding:16px 24px 40px}
  .crh-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:640px){
  .cr{padding:12px;border-radius:12px}
  .crh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .crh-card{min-height:120px;padding:12px}
}
