.ck-controls{display:grid;gap:16px;margin-bottom:16px}
.ck-label{display:block;font-size:14px;font-weight:600;color:var(--muted);margin-bottom:8px}
.ck-presets{display:flex;flex-wrap:wrap;gap:8px}
.ck-presets button{min-height:44px;padding:0 16px;border:1px solid var(--line);background:var(--card);border-radius:var(--r);font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
.ck-presets button:hover{border-color:var(--brand);color:var(--brand)}
.ck-presets button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.ck-custom{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);font-weight:600;color:var(--muted)}
.ck-custom input{width:64px;border:0;background:transparent;font:inherit;font-weight:600;color:var(--ink);outline:none}
.ck-custom.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.ck-custom:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.2)}
.ck-row{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;font-size:14px}
.ck-select{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.ck-select select{min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);font:inherit;font-weight:400;color:var(--ink);max-width:100%}
.ck-check{display:inline-flex;align-items:center;gap:8px;min-height:40px;cursor:pointer}
.ck-check input{width:18px;height:18px;accent-color:var(--brand);margin:0}
.ck-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;min-height:180px;padding:24px;border:2px dashed #cbd5e1;border-radius:var(--r);background:var(--bg);cursor:pointer;transition:border-color .15s,background-color .15s}
.ck-drop:hover,.ck-drop.is-over{border-color:var(--brand);background:#eff6ff}
.ck-drop svg{width:40px;height:40px;color:var(--brand)}
.ck-drop strong{font-size:18px}
.ck-drop u{color:var(--brand);text-decoration-thickness:2px;text-underline-offset:3px}
.ck-drop span{font-size:14px;color:var(--muted)}
.ck-sample{display:block;margin:8px auto 0;min-height:44px;padding:0 8px;background:none;border:0;color:var(--brand);font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ck-sample:disabled{color:var(--muted);cursor:wait}
.ck-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.ck-bar[hidden],.ck-bar [hidden]{display:none}
.ck-bar>span{flex:1 1 220px;font-size:14px;color:var(--muted)}
.ck-bar .btn:disabled{opacity:.6;cursor:wait}
.ck-list{list-style:none;margin:0;padding:0}
.ck-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px 16px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}
.ck-item:first-child{margin-top:16px}
.ck-thumb{width:56px;height:56px;object-fit:cover;border-radius:8px;background:var(--line)}
.ck-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ck-gauge{position:relative;height:12px;margin:24px 0 8px;background:var(--line);border-radius:8px}
.ck-fill{position:absolute;left:0;top:0;bottom:0;width:100%;max-width:100%;border-radius:8px;background:#94a3b8;transition:width .6s ease,background-color .3s}
.ck-cap{position:absolute;top:-6px;bottom:-6px;width:2px;margin-left:-1px;background:var(--ink)}
.ck-cap span{position:absolute;bottom:100%;left:0;margin-bottom:2px;font-size:12px;font-weight:600;white-space:nowrap;color:var(--ink)}
.ck-cap.flip span{left:auto;right:0}
.ck-item[data-state="work"] .ck-fill{background:repeating-linear-gradient(45deg,#94a3b8 0 8px,#cbd5e1 8px 16px);background-size:23px 23px;animation:ck-stripe 1s linear infinite}
.ck-item[data-state="ok"] .ck-fill{background:var(--accent)}
.ck-item[data-state="over"] .ck-fill{background:#f59e0b}
.ck-item[data-state="err"] .ck-fill{background:transparent}
@keyframes ck-stripe{to{background-position:23px 0}}
.ck-meta{font-size:14px;color:var(--muted)}
.ck-act{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ck-badge{font-size:14px;font-weight:600;padding:4px 8px;border-radius:8px}
.ck-badge:empty{display:none}
.ck-item[data-state="ok"] .ck-badge{background:#ccfbf1;color:var(--accent-d)}
.ck-item[data-state="over"] .ck-badge{background:#fef3c7;color:#92400e}
.ck-item[data-state="err"] .ck-badge{background:#fee2e2;color:#991b1b}
.ck-compare{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ck-compare[hidden]{display:none}
.ck-compare figure{margin:0}
.ck-compare img{display:block;width:100%;border-radius:8px;background:var(--line)}
.ck-compare figcaption{font-size:12px;color:var(--muted);margin-top:4px}
@media (min-width:640px){
  .ck-item{grid-template-columns:56px minmax(0,1fr) auto}
  .ck-act{grid-column:auto;justify-content:flex-end}
}
@media (max-width:640px){
  .ck-presets button{flex:1 1 calc(33% - 8px);padding:0 8px}
  .ck-custom{flex:1 1 100%}
  .ck-custom input{flex:1}
  .ck-act .btn,.ck-act .btn-ghost{flex:1}
  .ck-bar .btn,.ck-bar .btn-ghost{flex:1}
}
@media (prefers-reduced-motion:reduce){.ck-item[data-state="work"] .ck-fill{animation:none}}
