.ch-create{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-bottom:20px}
.ch-create-card{display:grid;gap:4px;justify-items:start;border:1px solid var(--line);border-radius:15px;background:#fff;padding:18px;text-align:left}
.ch-create-card:hover{border-color:var(--blue);box-shadow:0 8px 22px rgba(57,135,229,.2);transform:translateY(-1px)}
.ch-create-card span{font-size:26px}.ch-create-card b{font-size:15px}.ch-create-card small{color:var(--muted);font-size:12px}
.ch-toolbar{flex-wrap:wrap;align-items:center;gap:12px}.ch-toolbar input{max-width:280px}.ch-toolbar .count{margin-left:6px;opacity:.7;font-size:12px}
.ch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.ch-empty{grid-column:1/-1}
.ch-card{display:flex;overflow:hidden;flex-direction:column;border:1px solid var(--line);border-radius:15px;background:#fff}
.ch-thumb{display:grid;height:190px;place-items:center;overflow:hidden;background:#111;font-size:40px}
.ch-thumb img{width:100%;height:100%;object-fit:contain}
.ch-thumb.text{align-content:start;justify-items:start;gap:6px;padding:16px;background:#eaf2ff;font-size:24px}
.ch-thumb.text p{display:-webkit-box;overflow:hidden;margin:0;color:#526078;font-size:12px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:6}
.ch-body{display:flex;flex:1;flex-direction:column;gap:6px;padding:14px 16px}
.ch-body h3{margin:4px 0 0;font-size:15px;line-height:1.3}.ch-body>small{color:var(--muted);font-size:12px}
.ch-meta{display:flex;gap:6px}
.ch-body footer{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:auto;padding-top:8px}.ch-body footer .text-button{padding:0;font-size:13px}
.modal.ch-modal{width:min(1180px,100%)}
.ch-writer{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px}
.ch-brief{display:grid;align-content:start;gap:12px;border-radius:14px;background:#eaf2ff;padding:16px}
.ch-brief h4{margin:0}
.ch-brief label,.ch-editor>label,.ch-controls label{display:grid;gap:6px;font-size:13px;font-weight:700}
.ch-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ch-editor{display:flex;min-width:0;flex-direction:column;gap:10px}
.ch-tabs{display:flex;align-items:center;gap:6px}
.ch-tabs button{border:1px solid var(--line);border-radius:9px;background:#fff;padding:6px 14px;font-weight:700}
.ch-tabs button.active{border-color:var(--blue);background:#eaf2ff}
.ch-count{margin-left:auto;color:var(--muted);font-size:12px}
.ch-body-input{min-height:52vh;font:15px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
.ch-preview{min-height:52vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:10px 24px;font-size:15px;line-height:1.7}
.md h1{font-size:26px}.md h2{margin-top:26px;font-size:20px}.md h3{font-size:17px}.md mark{background:#eaf2ff}.md code{border-radius:5px;background:#f4f6fa;padding:1px 5px}
.ch-foot-left{flex-wrap:wrap}
.modal-foot select{width:auto}
.ch-designer{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px}
.ch-canvas-wrap{display:grid;align-content:start;gap:8px;justify-items:center;position:sticky;top:0}
.ch-canvas-wrap canvas{width:auto;max-width:100%;height:auto;max-height:66vh;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.ch-controls{display:grid;align-content:start;gap:12px}
.ch-layouts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ch-layouts button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 6px;font-weight:700}
.ch-layouts button.active{border-color:var(--blue);background:#eaf2ff}
.ch-ai{border-radius:12px;background:#eaf2ff;padding:10px 14px}.ch-ai summary{cursor:pointer;color:var(--accent-ink);font-weight:800}.ch-ai[open]{display:grid;gap:10px}
.ch-colors{grid-template-columns:repeat(4,auto) 1fr;align-items:end}
.ch-colors input[type=color]{width:52px;height:36px;padding:2px}
.ch-check{display:flex!important;align-items:center;gap:6px}.ch-check input{width:auto}
.ch-bg{align-items:end}
@media(max-width:900px){.ch-writer,.ch-designer{grid-template-columns:1fr}.ch-canvas-wrap{position:static}}
.ch-quick{display:grid;gap:12px;margin-bottom:20px;border:1px solid #9cc3f2;border-radius:16px;background:linear-gradient(135deg,#eaf2ff,#eaf2ff);padding:18px 20px}
.ch-quick h3{margin:0 0 4px}.ch-quick p{margin:0;color:#526078;font-size:13px}
.ch-quick textarea{font-size:15px}
.ch-quick-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ch-quick-row select{width:auto}.ch-quick-row .button{margin-left:auto}
.ch-chips{display:flex;flex-wrap:wrap;gap:8px}
.ch-chips label{cursor:pointer}.ch-chips input{position:absolute;opacity:0;pointer-events:none}
.ch-chips span{display:inline-block;border:1px solid var(--line);border-radius:20px;background:#fff;padding:7px 13px;font-size:13px;font-weight:700}
.ch-chips input:checked+span{border-color:var(--blue);background:var(--blue);color:#fff}
.ch-chips input:focus-visible+span{outline:2px solid var(--dark,#111);outline-offset:2px}
.ch-ai-off{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.ch-quick textarea,.ch-quick select{width:100%;border:1px solid #9cc3f2;border-radius:12px;background:#fff;padding:12px 14px;color:var(--ink);font:inherit}.ch-quick select{width:auto;padding:9px 12px}.ch-quick textarea:focus,.ch-quick select:focus{border-color:var(--blue);outline:0;box-shadow:0 0 0 3px rgba(57,135,229,.25)}
.ch-quick textarea.ch-quick-prompt{min-height:96px;max-height:420px;resize:vertical;overflow-y:auto;line-height:1.5}
.ch-quick-count{display:block;margin-top:4px;min-height:16px;color:var(--muted);font-size:12px;text-align:right}
.ch-image-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:12px}.ch-image-row label{margin:0}
@media(max-width:760px){.ch-image-row{grid-template-columns:1fr}}
.ch-trained{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0 0;border-radius:10px;background:#e8f8f2;padding:8px 12px;color:#0f6b4e;font-size:13px}.ch-trained.warn{background:#eaf2ff;color:#1d4fa8}.ch-trained .text-button{font-size:13px}.ch-q-image{display:inline-flex;align-items:center;gap:8px}.ch-q-image[hidden]{display:none}.ch-q-thumb{position:relative;display:inline-block}.ch-q-thumb[hidden]{display:none}.ch-q-thumb img{display:block;width:44px;height:44px;border-radius:8px;object-fit:cover;border:2px solid #3987e5}.ch-q-thumb button{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border:0;border-radius:50%;background:#c0283c;color:#fff;font-size:13px;line-height:1;cursor:pointer}.ch-bg label{font-weight:750}
.ch-trained.muted{background:#eef3fb;color:#55688a}.ch-style-refs{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.ch-style-ref{position:relative;width:110px;height:110px;border-radius:10px;overflow:hidden;border:1px solid var(--line)}.ch-style-ref img{width:100%;height:100%;object-fit:cover}.ch-style-ref.new{border:2px solid #3987e5}.ch-style-ref span{position:absolute;left:6px;bottom:6px;border-radius:10px;background:#3987e5;padding:1px 7px;font-size:10px;font-weight:800}.ch-style-ref button{position:absolute;top:4px;right:4px;width:22px;height:22px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;cursor:pointer}.ch-style-empty{padding:18px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);width:100%;text-align:center}.ch-style-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.ch-style-fields textarea{width:100%}
.ch-creative section{margin-bottom:18px;border:1px solid var(--line);border-radius:14px;padding:14px 16px}.ch-creative h3{margin:0 0 4px}.ch-creative details{margin-top:10px}.ch-creative summary{cursor:pointer;font-weight:700}.ch-creative ol{padding-left:18px;line-height:1.6}.ch-creative code{word-break:break-all}
.ch-video-actions{flex-wrap:wrap;margin:10px 0}
.ch-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-top:14px}
.ch-video-item{display:grid;gap:6px;border:1px solid var(--line);border-radius:12px;padding:10px}.ch-video-item p{margin:0;font-size:13px}.ch-video-item footer{display:flex;flex-wrap:wrap;gap:12px}.ch-video-item .text-button{padding:0;font-size:13px}
.ch-video-box video{width:100%;max-height:360px;border-radius:8px;background:#000}
.ch-video-wait{display:flex;align-items:center;justify-content:center;gap:8px;min-height:90px;border-radius:8px;background:#f6f7fb;padding:12px;color:var(--muted);font-size:13px;text-align:center}.ch-video-wait.error{background:#eaf2ff;color:#1d4fa8}
.ch-video-wait .spinner{width:16px;height:16px;border:2px solid #ddd;border-top-color:#1d4fa8;border-radius:50%;animation:ch-spin 1s linear infinite}@keyframes ch-spin{to{transform:rotate(360deg)}}
.button.ch-canva{border-color:#7d2ae8;background:#7d2ae8;color:#fff}.button.ch-canva:hover{background:#6a1fd0}
.ch-modal .button[hidden]{display:none}
.ch-cr-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.ch-cr-links{display:flex;flex-wrap:wrap;gap:6px}.ch-cr-links .button{padding:6px 12px;font-size:13px;text-decoration:none}
.ch-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:10px 14px}
.ch-tools-title{margin-right:4px;font-weight:800}
.ch-tool{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:20px;background:#fafbfd;padding:5px 12px;color:var(--ink);font-size:13px;font-weight:700;text-decoration:none}.ch-tool:hover{border-color:#3987e5;background:#eaf2ff}
.ch-tools .text-button{margin-left:auto;padding:0;font-size:13px}
.ch-ai-pic{display:grid;gap:6px;margin:-4px 0 4px;border-radius:12px;background:#f6f7fb;padding:10px 12px}.ch-ai-pic .ch-image-row{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.ch-ai-pic label{font-size:12px}.ch-ai-pic select{padding:8px 10px}
.ch-img-status{color:var(--muted);font-size:12px}.ch-img-status.error{color:#1d4fa8}
.canva-help ol{padding-left:20px;line-height:1.7}.canva-help p{margin:0 0 10px}
.ch-q-thumb.ref img{outline:2px solid #3987e5}

.ch-layouts .ch-gpt{background:linear-gradient(135deg,#071120 0%,#12294f 100%);color:#19c8ff;border-color:#071120}.ch-layouts .ch-gpt:disabled{opacity:.5;cursor:not-allowed}
.ch-img-prompt{display:grid;gap:6px;margin-top:10px}.ch-img-prompt textarea{width:100%;min-height:72px;resize:vertical}.ch-ai-pic .ch-check{margin-top:6px;align-items:flex-start}.ch-ai-pic .ch-check small{font-weight:400}
.ch-exact{display:flex!important;flex-direction:row!important;gap:8px;align-items:flex-start;margin-top:8px;font-weight:500}.ch-exact input{width:auto!important;margin-top:3px;flex:none}.ch-exact span{flex:1;line-height:1.35}
.ch-q-video{display:inline-flex;gap:4px;align-items:center}.ch-q-video select{width:auto;min-width:84px}.ch-q-prompts{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:12px;margin-top:14px}.ch-q-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:grid;gap:8px}.ch-q-card header{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.ch-q-card header .right-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}.ch-q-card textarea{width:100%;font-size:13px;line-height:1.45;resize:vertical}

.ch-textstyle{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.ch-ts-row{display:grid;grid-template-columns:96px minmax(0,1fr) 44px auto;gap:8px;align-items:center}
.ch-ts-row span{font-size:12.5px;font-weight:600}.ch-ts-row input[type=color]{width:44px;height:34px;padding:2px;border-radius:8px}.ch-ts-row input[type=color][data-on=""]{opacity:.35}

.ch-tools-mini{margin:8px 0 0;padding:8px 10px;border-radius:12px;background:#fff;border:1px dashed #dbe3ef;flex-wrap:wrap;gap:6px}.ch-tools-mini .ch-tools-title{font-size:12px;width:100%}

.ch-tools-split{display:flex;flex-direction:column;gap:8px;align-items:stretch}.ch-tools-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ch-tools-row .ch-tools-title{min-width:120px}

.ch-prompt-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}

.ch-brand-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}@media(max-width:700px){.ch-brand-tabs{grid-template-columns:1fr 1fr}}
.ch-brand-tabs button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:9px 12px;border:1.5px solid #e3ebf7;border-radius:12px;background:#fff;cursor:pointer;font:inherit;text-align:left;min-height:56px}
.ch-brand-tabs button.active{border-color:#3987e5;background:#eaf2ff}.ch-brand-tabs button b{font-size:11px;color:#94a3b8}
.ch-brand-logo{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ch-brand-logo-img{max-height:56px;max-width:180px;object-fit:contain;border:1px solid #e3ebf7;border-radius:8px;padding:4px;background:#fff}
.ch-brand-use{margin-top:12px}.ch-brand-switch{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600}.ch-brand-switch select{min-width:140px}

.ch-themes{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.ch-theme-list{display:flex;flex-wrap:wrap;gap:8px}
.ch-theme{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 8px;border:1.5px solid #e3ebf7;border-radius:999px;background:#fff;cursor:pointer;font:inherit;font-size:12.5px;font-weight:600}
.ch-theme:hover,.ch-theme.active{border-color:#3987e5;background:#eaf2ff}
.ch-theme-sw{display:inline-flex;border-radius:6px;overflow:hidden;border:1px solid rgba(0,0,0,.12)}.ch-theme-sw i{display:block;width:14px;height:20px}
.ch-quick-for{margin:12px 0 10px}.ch-quick-for h4{margin:0 0 8px;font-size:16px}.ch-quick-for label{display:grid;gap:6px;font-size:14px;font-weight:700}.ch-quick-for label small{font-weight:600}.ch-quick .ch-quick-for select{width:100%;max-width:520px;font-weight:600}
.ch-quick-for>*+*{margin-top:12px}.ch-for-goals .pc-label{margin-bottom:8px;font-size:14px;font-weight:700}
.ch-q-other{margin-top:14px}
.ch-q-flow{margin-top:16px;border-top:1px dashed #9cc3f2;padding-top:14px}.ch-q-flow h3{display:flex;align-items:center;margin:0 0 6px;font-size:16px}.ch-q-flow label{display:grid;gap:6px;margin:10px 0;font-weight:700;font-size:14px}.ch-q-flow textarea{min-height:110px}
.ch-pv{margin:10px 0 4px;padding:12px 14px;border:1px dashed #9cc3f2;border-radius:12px;background:#eaf2ff}.ch-pv b{font-size:15px}.ch-pv .subtext{margin:4px 0 10px}.ch-pv textarea{width:100%;margin-top:10px;font-size:13px;min-height:120px}

.ch-caption-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ch-caption-head .text-button{font-size:12.5px;font-weight:600}
/* Create with AI: goal groups, the hook / call to action / language / format row, compliance, and brand-yellow selection. */
.ch-goal-group{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;align-items:start;margin-top:6px}
.ch-goal-group>small{padding-top:7px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.ch-q-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.ch-q-fields label{display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:13px}
.ch-q-compliance{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:8px;margin-top:12px;font-size:12.5px;font-weight:500!important;color:var(--muted)}
.ch-q-compliance input{margin-top:2px;accent-color:#3987e5}.ch-q-compliance b{color:var(--ink)}
.ch-quick .pc-chip.on{background:#3987e5!important;border-color:#3987e5!important;color:#fff!important}
.ch-quick select:focus,.ch-quick textarea:focus,.ch-quick input:focus,.ch-quick .pc-chip:focus-visible{outline:none;border-color:#3987e5!important;box-shadow:0 0 0 3px rgba(57,135,229,.35)}
.ch-trained .right-actions{display:flex;gap:12px;align-items:center}
@media(max-width:900px){.ch-q-fields{grid-template-columns:1fr 1fr}.ch-goal-group{grid-template-columns:1fr;gap:4px}.ch-goal-group>small{padding-top:0}}
.ch-quick .pc-chip{color:var(--ink)}
.ch-q-fields label[hidden]{display:none}
.ch-tts{display:grid;gap:10px}.ch-tts label{display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:13px}.ch-tts textarea{width:100%}
.ch-tts-out{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.ch-tts-out audio{flex:1 1 260px;min-width:0}
.ch-ve{margin-top:12px}.ch-ve [data-ve-notes]{width:100%;margin-top:8px}.ch-ve textarea{width:100%;margin-top:8px}.ch-ve [data-ve-info]{align-self:center}
.ch-ve [data-ve-notes]{border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;font-size:14px;background:var(--surface);color:var(--ink)}
.ch-ve [data-ve-actions][hidden],.ch-ve textarea[hidden]{display:none}
.ch-tts-out[hidden]{display:none}
.ch-tts-ai{border:1px dashed #19c8ff;border-radius:12px;background:color-mix(in srgb,#3987e5 7%,var(--surface));padding:10px 14px}
.ch-tts-ai summary{cursor:pointer;font-weight:700}.ch-tts-ai .ch-q-fields{margin-top:10px}.ch-tts-ai .rg-tools{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ch-tts-media{display:inline-flex;gap:6px;align-items:center}.ch-tts-media img{width:40px;height:40px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.ch-ideas{display:grid;gap:8px;margin:2px 0 6px;border:1px dashed var(--line);border-radius:12px;padding:12px 14px}
.ch-ideas-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ch-ideas-bar select{width:auto;min-width:210px}.ch-ideas-bar input{flex:1;min-width:200px;border:1px solid #9cc3f2;border-radius:12px;background:#fff;padding:9px 12px;color:var(--ink);font:inherit}.ch-ideas-bar input[hidden]{display:none}
.ch-ideas-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.ch-idea{display:grid;align-content:start;gap:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);padding:12px;font-size:13px}.ch-idea.picked{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.ch-idea header{display:flex;align-items:center;gap:8px}.ch-idea p{margin:0;line-height:1.45}.ch-idea-hook{color:var(--accent-ink);font-weight:600}.ch-ideas-more{justify-self:start;grid-column:1/-1}
.hm-modal{width:min(1100px,100%)}.hm-drop{display:grid;gap:4px;justify-items:center;border:2px dashed #b9d5fa;border-radius:14px;background:#f6faff;padding:34px;cursor:pointer;text-align:center}.hm-drop.over{border-color:var(--blue);background:#e8f1fe}.hm-drop small{color:var(--muted)}
.hm-main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:18px;align-items:start}.hm-report{grid-column:1/-1}
.hm-canvas-wrap{position:relative;display:inline-block;max-width:100%;border:1px solid var(--line);border-radius:10px;overflow:hidden;line-height:0}.hm-canvas-wrap canvas{display:block;max-width:100%;height:auto}
.hm-peaks span{position:absolute;display:grid;width:26px;height:26px;margin:-13px 0 0 -13px;place-items:center;border:2px solid #fff;border-radius:50%;background:#111;color:#fff;font-size:12px;font-weight:700;line-height:1;box-shadow:0 2px 6px rgba(0,0,0,.45)}
.hm-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}.hm-views{display:flex;gap:6px}.hm-views button{border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px 11px;font-size:12.5px;font-weight:500}.hm-views button.active{border-color:var(--blue);background:#eef5ff;color:var(--accent-ink);font-weight:600}
.hm-controls label{display:flex;align-items:center;gap:6px;font-size:12.5px}.hm-side h4{margin:14px 0 6px;font-size:13px}.hm-side h4:first-child{margin-top:0}
.hm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.hm-grid div{display:grid;aspect-ratio:1.25;place-items:center;border-radius:8px;background:rgba(235,60,40,var(--a,.2));color:#111;font-size:12px}.hm-grid b{background:rgba(255,255,255,.8);border-radius:5px;padding:0 5px}
.hm-first{display:grid;gap:4px;margin:0;padding:0;list-style:none;font-size:13px}.hm-first b{display:inline-grid;width:20px;height:20px;place-items:center;border-radius:50%;background:#111;color:#fff;font-size:11px}
.hm-ctx{display:grid;gap:8px;margin-bottom:10px}.hm-ctx label{display:grid;gap:4px;font-size:12.5px;font-weight:600}.hm-ctx select,.hm-ctx input{width:100%}
.hm-report-head{display:flex;align-items:center;justify-content:space-between;gap:10px}@media(max-width:900px){.hm-main{grid-template-columns:1fr}}
.hm-drop[hidden],.hm-main[hidden],.hm-report[hidden]{display:none}
.ch-svc-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0}.ch-svc-chips>span{color:var(--muted);font-size:13px}
.ch-hm-card{display:grid;gap:8px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff);padding:18px 20px;margin-bottom:16px}.ch-hm-card h3{margin:0}.ch-hm-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.ch-hm-row input[data-hmc-goal]{flex:1;min-width:220px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);padding:10px 12px;color:var(--ink);font:inherit}

/* Compact poster designer controls: less padding and empty space, related options on one line */
.ch-controls{gap:8px}
.ch-controls input:not([type=checkbox]):not([type=color]):not([type=file]),.ch-controls select,.ch-controls textarea{padding:7px 10px;font-size:13px;min-height:0}
.ch-controls label{gap:3px;font-size:12.5px}
.ch-controls .subtext,.ch-controls small{font-size:11px;line-height:1.3;margin:0}
.ch-controls .ch-colors{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 12px}
.ch-controls .ch-colors label{width:auto}
.ch-controls .ch-colors input[type=color]{width:44px;height:30px}
.ch-controls .ch-colors .ch-check{align-self:center;padding-bottom:0}
.ch-controls .ch-colors select{min-width:130px}
.ch-controls .ch-colors .text-button{margin-left:auto;align-self:center;font-size:12.5px}
.ch-controls .ch-themes{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0}
.ch-controls .ch-themes>b{font-size:12.5px;white-space:nowrap}
.ch-controls .ch-themes>b small{display:none}
.ch-controls .ch-theme-list{gap:6px}
.ch-controls .ch-theme{padding:3px 10px 3px 5px;font-size:12px;gap:6px}
.ch-controls .ch-theme-sw i{width:11px;height:16px}
.ch-theme:hover,.ch-theme.active{border-color:#2f7df6}
html[data-theme="dark"] .ch-theme:hover,html[data-theme="dark"] .ch-theme.active{background-color:#134193;border-color:#2f7df6}
.ch-controls .ch-textstyle{gap:4px;margin:0}
.ch-controls .ch-textstyle>b{font-size:12.5px}
.ch-controls .ch-ts-row{grid-template-columns:74px minmax(0,1fr) 36px auto;gap:6px}
.ch-controls .ch-ts-row span{font-size:12px}
.ch-controls .ch-ts-row select{padding:5px 8px}
.ch-controls .ch-ts-row input[type=color]{width:36px;height:28px}
.ch-controls .ch-bg{display:flex;align-items:flex-end;gap:10px}
.ch-controls .ch-bg>label{flex:1;min-width:0}
.ch-controls .ch-bg.ch-refimg{margin-top:-2px}
.ch-controls .ch-bg input[type=file]{padding:4px;font-size:12px;width:100%}
.ch-controls .ch-bg .text-button{font-size:12px;white-space:nowrap;padding-bottom:6px}

/* Multi-select dropdown (target audience) */
.ch-multi{position:relative;max-width:520px}
.ch-multi>summary{list-style:none;cursor:pointer;border:1px solid var(--line,#e3ebf7);border-radius:10px;padding:9px 34px 9px 12px;font-size:13.5px;font-weight:600;background:var(--surface,#fff);color:var(--ink);position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-multi>summary::-webkit-details-marker{display:none}
.ch-multi>summary::after{content:"▾";position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:11px;opacity:.7}
.ch-multi-list{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:260px;overflow:auto;border:1px solid var(--line,#e3ebf7);border-radius:10px;background:var(--surface,#fff);padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.28)}
.ch-multi-list label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer}
.ch-multi-list label:hover{background:rgba(47,125,246,.14)}

/* Compact Create with AI: tight rows, buttons grouped together instead of spread across the row */
.ch-quick{gap:8px;margin-bottom:12px;padding:12px 14px}
.ch-quick .button{padding:7px 12px;font-size:13px;min-height:0;margin-left:0}
.ch-quick select,.ch-quick textarea{padding:7px 10px;font-size:13px}
.ch-quick textarea{font-size:14px}
.ch-quick .subtext,.ch-quick small{font-size:11.5px;line-height:1.35}
.ch-quick-row{gap:6px 8px}
.ch-quick-row>.button.primary{margin-left:auto}
.ch-quick-row .ch-q-image,.ch-quick-row .ch-q-video{gap:6px}
.ch-chips{gap:6px}
.ch-chips span{padding:5px 11px;font-size:12.5px}
.ch-ideas{gap:5px;margin:0;padding:8px 10px}
.ch-ideas-bar{gap:6px}
.ch-ideas-bar b{font-size:13px}
.ch-ideas-bar select{min-width:170px}
.ch-ideas-bar input{padding:7px 10px;font-size:13px}
.ch-quick-for{margin:6px 0}
.ch-quick-for h4{margin:0 0 5px;font-size:14px}
.ch-quick-for>*+*{margin-top:8px}
.ch-quick-for label,.ch-quick-for .pc-label{font-size:13px;gap:4px}
.ch-q-other{margin-top:8px}
.ch-q-flow{margin-top:10px;padding-top:10px}
.ch-q-flow h3{font-size:14.5px;margin:0 0 4px}
.ch-q-flow label{margin:6px 0;font-size:13px}
.ch-q-flow textarea{min-height:80px}
.ch-q-fields{gap:8px;margin-top:8px}
.ch-q-prompts{margin-top:8px;gap:8px}
.ch-q-card{padding:8px 10px;gap:6px}
.ch-quick-count{margin-top:2px}

/* Poster templates: collection and layer editor */
.tpl-coll-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
.tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.tpl-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface,#fff);display:flex;flex-direction:column}
.tpl-thumb{border:0;padding:0;background:#0003;cursor:pointer;display:block;aspect-ratio:4/5;overflow:hidden}
.tpl-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tpl-card-body{display:grid;gap:4px;padding:8px 10px}
.tpl-card-body b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpl-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tpl-modal{width:min(1500px,98vw)!important;height:min(94vh,1000px);display:flex;flex-direction:column;overflow:hidden!important}
.tpl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line)}
.tpl-name{flex:1;max-width:420px;font-weight:700;font-size:15px;padding:7px 10px}
.tpl-head-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tpl-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px}
.tpl-left{display:flex;flex-direction:column;min-width:0;min-height:0;padding:8px 10px;gap:6px}
.tpl-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tpl-toolbar .button,.tpl-logo-sel{padding:6px 10px;font-size:12.5px;min-height:0}
.tpl-logo-sel{width:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink)}
.tpl-zoom{margin-left:auto;display:inline-flex;gap:4px}
.tpl-stage{flex:1;min-height:0;overflow:auto;display:grid;place-items:center;border-radius:12px;background:repeating-conic-gradient(#8883 0% 25%,#0000 0% 50%) 50%/18px 18px;padding:8px}
.tpl-stage canvas{display:block;touch-action:none;box-shadow:0 8px 30px rgba(0,0,0,.35);max-width:none}
.tpl-status{min-height:16px}
.tpl-side{border-left:1px solid var(--line);overflow:auto;display:flex;flex-direction:column}
.tpl-side-title{font-weight:700;font-size:13px;margin:8px 10px 4px}
.tpl-layers{padding-bottom:6px;border-bottom:1px solid var(--line);max-height:34%;overflow:auto}
.tpl-layer{display:flex;align-items:center;gap:8px;margin:2px 8px;padding:5px 8px;border-radius:8px;cursor:pointer;font-size:12.5px}
.tpl-layer:hover{background:rgba(47,125,246,.12)}
.tpl-layer.on{background:rgba(47,125,246,.28);font-weight:700}
.tpl-layer.bgrow{opacity:.7;cursor:default}
.tpl-lic{width:18px;text-align:center}
.tpl-lname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpl-mini{border:0;background:transparent;cursor:pointer;font-size:13px;padding:0 2px}
.tpl-props{padding:6px 10px 12px;display:grid;gap:7px;align-content:start}
.tpl-props label{display:grid;gap:3px;font-size:12px;font-weight:700}
.tpl-props input:not([type=checkbox]):not([type=color]),.tpl-props select,.tpl-props textarea{padding:5px 8px;font-size:13px;min-height:0;width:100%}
.tpl-props input[type=color]{width:100%;height:30px;padding:2px}
.tpl-row{display:flex;flex-wrap:wrap;gap:6px;align-items:end}
.tpl-row>label{flex:1 1 90px;min-width:70px}
.tpl-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.tpl-hint{padding:10px}
@media(max-width:900px){.tpl-body{grid-template-columns:1fr;overflow:auto}.tpl-side{border-left:0;border-top:1px solid var(--line)}}
.tpl-toolbar .tpl-logo-sel{width:auto;flex:none;max-width:150px}
.tpl-modal .tpl-toolbar select.tpl-logo-sel{padding:5px 8px;height:30px;font-size:12.5px;border-radius:10px}

/* Poster layouts: simple small pills instead of big cards */
.ch-layouts{display:flex;flex-wrap:wrap;gap:5px}
.ch-layouts button{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.3;min-height:0;white-space:nowrap}
.ch-size-ctl{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;white-space:nowrap}
.ch-size-ctl .button{padding:3px 8px;min-height:0;font-size:12px;line-height:1.2}
.ch-size-ctl b{min-width:40px;text-align:center}
.ch-size-lab{font-weight:700}
.ch-controls .ch-ts-row{grid-template-columns:74px minmax(0,1fr) 36px auto auto}

/* Phones: poster designer, template editor and Creative Hub */
@media(max-width:760px){
  .ch-controls .ch-ts-row{grid-template-columns:minmax(0,1fr) 36px auto;grid-template-areas:"lab lab lab" "sel sel sel" "col auto size";gap:5px 8px;padding:6px 0;border-bottom:1px solid var(--line)}
  .ch-controls .ch-ts-row>span:first-child{grid-area:lab}
  .ch-controls .ch-ts-row>select{grid-area:sel;width:100%}
  .ch-controls .ch-ts-row>input[type=color]{grid-area:col;width:44px;height:34px}
  .ch-controls .ch-ts-row>.text-button{grid-area:auto}
  .ch-controls .ch-ts-row>.ch-size-ctl{grid-area:size;justify-self:end}
  .modal-foot{flex-wrap:wrap;gap:8px}
  .modal-foot .right-actions{display:flex;flex-wrap:wrap;gap:6px;width:100%}
  .modal-foot .right-actions .button{flex:1 1 calc(50% - 6px);min-height:42px;padding:8px 10px;font-size:13px}
  .modal-foot .right-actions select{flex:1 1 100%}
  .ch-controls input:not([type=checkbox]):not([type=color]):not([type=file]),.ch-controls select,.ch-controls textarea{font-size:16px!important}
  .ch-controls .button,.ch-quick .button{min-height:40px}
  .ch-size-ctl .button{min-height:36px;min-width:38px}
  .ch-quick-row{gap:8px}
  .ch-quick-row>.button.primary{margin-left:0;flex:1 1 100%;min-height:46px}
  .tpl-modal{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
  .tpl-head{flex-wrap:wrap;padding:8px 10px;padding-top:max(8px,env(safe-area-inset-top))}
  .tpl-name{flex:1 1 100%;max-width:none;order:-1}
  .tpl-head-actions{width:100%}
  .tpl-head-actions .button{flex:1 1 auto;min-height:38px}
  .tpl-body{display:block;overflow:auto}
  .tpl-left{min-height:0}
  .tpl-stage{flex:none;height:52dvh}
  .tpl-toolbar .button,.tpl-logo-sel{min-height:38px}
  .tpl-side{border-left:0;border-top:1px solid var(--line);overflow:visible}
  .tpl-layers{max-height:200px}
  .tpl-props{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .tpl-props input:not([type=checkbox]):not([type=color]),.tpl-props select,.tpl-props textarea{font-size:16px!important;padding:8px}
  .tpl-grid{grid-template-columns:repeat(2,1fr)}
  .dx-range,.dashboard-range{overflow-x:auto;max-width:100%;scrollbar-width:none;scroll-snap-type:x proximity}
  .dx-range button,.dashboard-range button{flex:0 0 auto;scroll-snap-align:start}
}

/* Publish menu on library cards */
.ch-pubmenu{position:fixed;z-index:300;min-width:250px;border:1px solid var(--line,#e3ebf7);border-radius:12px;background:var(--surface,#fff);padding:6px;box-shadow:0 14px 40px rgba(0,0,0,.35)}
.ch-pubmenu-title{padding:6px 10px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ch-pubmenu button{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:8px;width:100%;border:0;border-radius:9px;background:transparent;padding:8px 10px;text-align:left;color:var(--ink);cursor:pointer}
.ch-pubmenu button:hover,.ch-pubmenu button:focus-visible{background:rgba(47,125,246,.16);outline:0}
.ch-pubmenu button span{grid-row:1/3;font-size:18px;text-align:center}
.ch-pubmenu button b{font-size:13.5px}
.ch-pubmenu button small{color:var(--muted);font-size:11.5px}

/* Poster designer: the preview panel only as tall as its content; the action buttons and caption sit under the poster */
.ch-designer>.ch-canvas-wrap{align-self:start;max-height:calc(100dvh - 130px);overflow:auto}
.ch-canvas-wrap .ch-canvas-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%}
.ch-canvas-wrap .ch-canvas-actions .button{padding:7px 12px;font-size:12.5px;min-height:0}
.ch-canvas-wrap>label{width:100%;display:grid;gap:4px;font-size:12.5px;font-weight:700}
.ch-canvas-wrap>label textarea{min-height:70px;font-size:13px}
.ch-canvas-wrap .ch-caption-head{display:flex;justify-content:space-between;align-items:center}
@media(max-width:900px){.ch-designer>.ch-canvas-wrap{max-height:none;overflow:visible}.ch-canvas-wrap .ch-canvas-actions .button{flex:1 1 calc(50% - 6px);min-height:42px}}

/* Caption pack window */
.cp-bar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:10px}
.cp-bar label{display:grid;gap:4px;font-weight:700;font-size:13px}
.cp-out{display:grid;gap:10px}
.cp-card{display:grid;gap:6px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface,#fff)}
.cp-card header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cp-card textarea{width:100%;font-size:13.5px;line-height:1.45;resize:vertical}
.cp-card .right-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}

/* Brand check window */
.bc-score{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.bc-score b{font-size:44px;line-height:1}
.bc-score span{opacity:.7}
.bc-score p{margin:0 0 0 10px;font-weight:700}
.bc-score.good b{color:#22c55e}.bc-score.mid b{color:#3987e5}.bc-score.bad b{color:#ef4444}
.bc-list{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
.bc-list li{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.bc-list li div{display:grid;gap:2px}
.bc-list li small{color:var(--muted);font-size:12px}
.bc-list li.bc-ok{opacity:.75;padding:5px 10px}
.bc-list li.bc-fail{border-color:#ef4444}.bc-list li.bc-warn{border-color:#3987e5}
.tpl-toolbar .button.on{background:#ef4444;border-color:#ef4444;color:#fff}

/* Write with AI inside the template editor */
.ai-tpl{display:grid;gap:10px}
.ai-tpl label{display:grid;gap:4px;font-weight:700;font-size:13px}
.ai-tpl .tpl-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ai-tpl .ch-check{display:flex;align-items:flex-start;gap:8px;font-weight:500}
@media(max-width:760px){.ai-tpl .tpl-row{grid-template-columns:1fr}}
.ch-brand-inline{margin-top:28px}
/* Writer window: the text box fills the height next to the brief (beats the general .modal textarea min-height), and the brief is tighter. */
.ch-writer{grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:stretch}
.ch-writer .ch-editor .ch-body-input,.ch-writer .ch-editor .ch-preview{flex:1 1 auto;min-height:60vh}
.ch-writer .ch-brief{gap:9px;padding:14px}
.ch-writer .ch-brief .pc-chips{gap:6px}
.ch-writer .ch-brief .pc-chip{padding:4px 10px;font-size:12px}
.ch-writer .ch-brief .pc-label{margin-bottom:6px}
.ch-writer .ch-brief textarea{min-height:0}
@media(max-width:900px){.ch-writer .ch-editor .ch-body-input,.ch-writer .ch-editor .ch-preview{min-height:45vh}}
.ch-vsave{display:inline-flex;align-items:center;gap:6px;margin-left:auto}.ch-vsave select{width:auto;padding:6px 8px;border-radius:9px}
.ch-vsaved{margin-left:auto;color:var(--success,#108661);font-weight:600;font-size:13px}
.ch-vbadge{border:0;cursor:pointer;background:#f3e8ff;color:#6b21a8}.ch-vbadge:hover{filter:brightness(.95)}
html[data-theme="dark"] .ch-vbadge{background:color-mix(in srgb,#a855f7 22%,var(--surface));color:#e9d5ff}
/* ---- Posters / Videos pages: big options first, details folded away */
.ch-heading{margin-bottom:14px}.ch-heading p{margin-top:4px}
.ch-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:14px}
.ch-mode{display:flex;align-items:center;gap:14px;border:1.5px solid var(--line);border-radius:16px;background:#fff;padding:16px 18px;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.ch-mode:hover{border-color:var(--blue)}
.ch-mode.active{border-color:var(--blue);box-shadow:0 0 0 3px rgba(57,135,229,.18);background:#f2f7fe}
.ch-mode-ic{display:grid;flex:none;width:44px;height:44px;place-items:center;border-radius:12px;background:#eaf2fd;color:var(--blue);font-size:22px}
.ch-mode.active .ch-mode-ic{background:var(--blue);color:#fff}
.ch-mode b{display:block;font-size:16px}.ch-mode small{display:block;margin-top:2px;color:var(--muted);font-size:13px}
.ch-panel{display:grid;gap:10px;margin-bottom:16px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:16px 18px}
.ch-panel[hidden]{display:none}
.ch-compose{display:grid;gap:10px;min-width:0}
.ch-compose textarea,.ch-compose input:not([type=checkbox]):not([type=file]){width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 14px;color:var(--ink);font:inherit;font-size:15px;line-height:1.5}
.ch-compose textarea{min-height:78px;resize:vertical}
.ch-compose-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.ch-compose-row label,.ch-more-grid label{display:grid;gap:4px;color:var(--muted);font-size:12px;font-weight:700}
.ch-compose-row select,.ch-more-grid select{min-width:150px;max-width:320px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 10px;color:var(--ink);font:inherit;font-size:14px}
.ch-go{margin-left:auto;min-height:44px;padding:0 22px;font-size:15px}
.ch-q-attach{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ch-compose>.text-button,.ch-q-attach>.text-button{justify-self:start;padding:0;font-size:13px}
.ch-compose .ch-trained{margin:0}
.ch-more{border:1px solid var(--line);border-radius:12px;background:#fafbfd}
.ch-more>summary{padding:10px 14px;color:var(--ink);font-size:14px;font-weight:700;cursor:pointer}
.ch-more>summary small{margin-left:6px;font-weight:500}
.ch-more[open]>summary{border-bottom:1px solid var(--line)}
.ch-more-grid{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:12px 14px}
.ch-more-grid .ch-for-goals{display:grid;gap:4px}.ch-more-grid .pc-label{color:var(--muted);font-size:12px;font-weight:700}
.ch-more-grid .ch-q-compliance{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:500}
.ch-more-body{display:grid;gap:12px;padding:12px 14px}
.ch-more .ch-ideas{margin:0;border:0;padding:12px 14px}
.ch-more-tools{margin-top:16px}.ch-more-tools .ch-create{margin:0}
/* Upload areas */
.ch-drop{display:grid;place-items:center;align-content:center;gap:6px;min-height:170px;border:2px dashed #c9d6e8;border-radius:16px;background:#f7faff;padding:20px;text-align:center;cursor:pointer;position:relative}
.ch-drop:hover,.ch-drop.over,.ch-drop:focus-visible{border-color:var(--blue);background:#eef5fe;outline:none}
.ch-drop b{font-size:16px}.ch-drop small{max-width:440px;color:var(--muted);font-size:13px}
.ch-drop-ic{font-size:30px}
.ch-drop.small{width:180px;min-height:200px;flex:none;padding:10px}
.ch-drop-img{max-width:100%;max-height:190px;border-radius:10px;object-fit:contain}
.ch-drop-x{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:16px;line-height:1}
.ch-pv-row{display:flex;gap:16px;align-items:stretch}.ch-pv-src{display:flex;width:180px;flex:none;flex-direction:column;gap:8px}.ch-pv-src>.ch-drop.small{width:auto;flex:1}.ch-pv-src>.button{width:100%}.ch-lib-search{width:100%;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit}.ch-lib-pick{max-height:60vh;overflow-y:auto}.ch-pv-row>.ch-compose{flex:1;align-content:start}
.ch-sub{margin:6px 0 0;font-size:15px}.ch-sub-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ch-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.ch-pick{display:grid;gap:4px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:6px;color:var(--ink);font-size:12px;text-align:left}
.ch-pick img{width:100%;height:120px;border-radius:8px;background:#111;object-fit:contain}.ch-pick span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ch-pick:hover{border-color:var(--blue)}
/* Long text: three lines, then Read more */
.ch-clampbox{display:grid;gap:2px;min-width:0}
.ch-clamp{display:-webkit-box;overflow:hidden;margin:0;color:#3d4a60;font-size:13px;line-height:1.5;white-space:pre-line;word-break:break-word;-webkit-box-orient:vertical;-webkit-line-clamp:var(--lines,3)}
.ch-clamp.open{display:block;-webkit-line-clamp:unset}
.ch-more-btn{justify-self:start;padding:0;font-size:13px}
.ch-pbox{display:grid;gap:6px;border:1px solid #d6e4f7;border-radius:12px;background:#f5f9ff;padding:10px 12px}
.ch-pbox[hidden]{display:none}
.ch-pbox-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.ch-pbox-head .text-button{padding:0;font-size:13px}
.ch-pbox textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px;font:inherit;font-size:13px;line-height:1.5}
.ch-q-card{display:grid;gap:8px}
/* Your videos */
.ch-vlist-wrap{display:grid;gap:10px}
.ch-vlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.ch-vlist>p{grid-column:1/-1;margin:0}
.ch-vlist .ch-video-item{display:flex;flex-direction:column;gap:6px}.ch-vlist .ch-video-item footer{margin-top:auto}
.ch-vlist .ch-video-box{display:grid;width:100%;height:300px;place-items:center;border-radius:8px;background:#000;overflow:hidden}
.ch-vlist .ch-video-box video{width:100%;height:100%;max-height:none;object-fit:contain}
.ch-video-wait{padding:12px;color:#d7deea;font-size:13px;text-align:center}.ch-video-wait.error{color:#ffb4b4}
.ch-thumb.video{background:#000}.ch-thumb.video video{width:100%;height:100%;object-fit:contain}
.ch-create-slim{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin-bottom:14px}
#content-root .ch-create-slim .ch-create-card{grid-auto-flow:column;align-items:center;justify-content:start;gap:10px;min-height:0;padding:12px 14px}
#content-root .ch-more-tools .ch-create-card{min-height:0;padding:14px 16px}
.ch-create-slim .ch-create-card span{font-size:20px}
@media(max-width:760px){
  .ch-modes{grid-template-columns:1fr 1fr;gap:8px}.ch-mode{flex-direction:column;align-items:flex-start;gap:8px;padding:12px}.ch-mode small{font-size:12px}
  .ch-compose-row select{min-width:0;max-width:none;width:100%}.ch-compose-row label{flex:1 1 140px}
  .ch-go{width:100%;margin-left:0}
  .ch-pv-row{flex-direction:column}.ch-pv-src{width:100%}.ch-drop.small{width:100%;min-height:96px;padding:8px}.ch-drop.small .ch-drop-ic{font-size:22px}.ch-drop.small small{display:none}.ch-drop-img{max-height:120px}
  .ch-mode-ic{width:34px;height:34px;border-radius:10px;font-size:17px}.ch-mode b{font-size:15px}.ch-panel{padding:12px}.ch-drop{min-height:120px}
}
/* Poster designer: text, size and layout always visible; the rest folds open */
.ch-controls .ch-sec-fixed{display:grid;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px}
.ch-controls .ch-sec-title{font-size:13px}
.ch-controls .ch-sec-fixed .ch-layouts{margin:0}
.ch-controls .ch-sec{border:1px solid var(--line);border-radius:12px;background:#fafbfd}
.ch-controls .ch-sec>summary{padding:9px 12px;font-size:13px;font-weight:700;cursor:pointer}
.ch-controls .ch-sec>summary small{margin-left:4px;font-weight:500}
.ch-controls .ch-sec[open]>summary{border-bottom:1px solid var(--line)}
.ch-controls .ch-sec-body{display:grid;gap:10px;padding:10px 12px}
.ch-controls .ch-ai{border-radius:12px}
/* Script / blog / article writer: the topic and Write button first, the rest folds open */
.ch-brief{gap:10px}
.ch-brief .ch-sec-fixed{display:grid;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px}
.ch-brief .ch-sec-title{font-size:13px}
.ch-brief .ch-sec{border:1px solid var(--line);border-radius:12px;background:#fafbfd}
.ch-brief .ch-sec>summary{padding:9px 12px;font-size:13px;font-weight:700;cursor:pointer}
.ch-brief .ch-sec>summary small{display:block;margin-top:2px;font-weight:500}
.ch-brief .ch-sec[open]>summary{border-bottom:1px solid var(--line)}
.ch-brief .ch-sec-body{display:grid;gap:10px;padding:10px 12px}
/* Poster designer: a wider window and a bigger canvas (the controls keep a readable width) */
.modal.ch-modal.ch-designer-modal{width:min(1560px,100%)}
@media(min-width:901px){
  .ch-designer-modal .ch-designer{grid-template-columns:minmax(0,1.45fr) minmax(380px,1fr)}
  .ch-designer-modal .ch-canvas-wrap canvas{max-height:calc(100dvh - 200px)}
  .ch-designer-modal .ch-designer>.ch-canvas-wrap{max-height:calc(100dvh - 150px)}
}
.ch-box{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.ch-box:focus-within{border-color:#3987e5;box-shadow:0 0 0 3px rgba(57,135,229,.12)}
.ch-compose .ch-box textarea{border:0;border-radius:0;box-shadow:none;background:transparent;min-height:84px}
.ch-box-bar{display:flex;align-items:center;gap:8px;padding:6px 10px 8px}.ch-box-sp{flex:1}
.ch-ib{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid rgba(57,135,229,.3);border-radius:50%;background:#eaf2ff;color:#3987e5;cursor:pointer}.ch-ib svg{width:18px;height:18px}
.ch-ib:hover:not(:disabled),.ch-ib.on{background:#3987e5;color:#fff}.ch-ib:disabled{opacity:.45;cursor:not-allowed}
[data-q-mic].on{animation:gnmic 1.4s ease-in-out infinite}
.ch-compose .ch-box textarea:focus{outline:0;box-shadow:none;border:0}
.ch-compose .ch-vo-own textarea{min-height:60px}
.ch-compose-row label[hidden],.ch-box[hidden]{display:none}
