/* Contenu (Louis's personal brand: rushes → Claude's edit → review → Instagram), on the CRM's design system (ui.css + app.css).
   Videos are shown as phones: 9:16 frames with rounded corners on near-black. Each step of the board keeps one colour
   (--st), used for its dot, its pills and the left edge of its cards. */
:root{
  --st-idee:#a78bfa; --st-rush:#94a3b8; --st-montage:#3b82f6; --st-valider:#f59e0b; --st-publier:#14b8a6; --st-programme:#8b5cf6; --st-publie:#22c55e; --st-archive:#a1a1aa;
}
[data-st="idee"]{--st:var(--st-idee)} [data-st="rush"]{--st:var(--st-rush)} [data-st="montage"]{--st:var(--st-montage)} [data-st="valider"]{--st:var(--st-valider)}
[data-st="publier"]{--st:var(--st-publier)} [data-st="programme"]{--st:var(--st-programme)} [data-st="publie"]{--st:var(--st-publie)} [data-st="archive"]{--st:var(--st-archive)}

/* ---- small parts ---- */
.ct-pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500;background:color-mix(in srgb,var(--st) 14%,transparent);color:color-mix(in srgb,var(--st) 70%,#0b0b0f);white-space:nowrap}
.ct-pill i{width:7px;height:7px;border-radius:99px;background:var(--st)}
.ct-thumb{flex:none;width:54px;aspect-ratio:9/16;border-radius:10px;background:#16161c center/cover no-repeat;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(11,11,15,.06)}
.ct-thumb.lg{width:84px;border-radius:14px}
.ct-thumb.xl{width:132px;border-radius:18px}
.ct-thumb .ico{position:absolute;inset:0;margin:auto;width:20px;height:20px;color:rgba(255,255,255,.55)}
.ct-thumb .dur{position:absolute;right:4px;bottom:4px;font:500 10px/1 var(--mono);color:#fff;background:rgba(0,0,0,.55);padding:3px 4px;border-radius:5px;letter-spacing:-.02em}
.ct-thumb.empty{background:linear-gradient(160deg,#26262e,#121217)}
.ct-bar{height:4px;border-radius:99px;background:var(--fill-2);overflow:hidden}
.ct-bar i{display:block;height:100%;border-radius:99px;background:var(--ink);transition:width .4s var(--ease)}
.ct-bar.blue i{background:var(--st-montage)}
.ct-spin{width:12px;height:12px;border-radius:99px;border:2px solid currentColor;border-right-color:transparent;animation:ct-spin .8s linear infinite;flex:none;opacity:.8}
@keyframes ct-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ct-spin{animation:none;border-right-color:currentColor;opacity:.5}}
.ct-ai{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--st-montage);min-width:0}
.ct-ai.bad{color:var(--danger)} .ct-ai.wait{color:var(--ink-3)} .ct-ai.ok{color:var(--ok)} .ct-ai.need{color:var(--warn)}
.ct-ai span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-chips{display:flex;gap:5px;flex-wrap:wrap}
.ct-chips .chip{height:22px;font-size:11.5px;padding:0 8px}
.ct-k{font:500 11px/1 var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3)}
.ct-status{display:flex;gap:8px;flex-wrap:wrap;margin:-10px 0 18px}
.ct-status .chip{height:28px;font-size:12.5px;padding:0 12px;background:var(--card);box-shadow:var(--lift);text-decoration:none;color:var(--ink-2)}
.ct-status a.chip:hover{color:var(--ink)}
.ct-i{display:inline-flex;align-items:center;gap:6px}
.ct-i .ico{width:15px;height:15px;flex:none}
a.ct-i{text-decoration:none}
/* the sidebar now holds the Contenu section too: it scrolls when the screen is short */
.side{overflow-y:auto;scrollbar-width:none}
.side::-webkit-scrollbar{display:none}
/* phones: importing is one tap away on the board */
.ct-fab{display:none}
@media (max-width:720px){.ct-fab{display:inline-flex;position:fixed;right:16px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:40;height:52px;padding:0 20px;border-radius:999px;border:0;background:var(--ink);color:#fff;align-items:center;gap:8px;font-size:15px;font-weight:500;box-shadow:0 14px 30px -12px rgba(11,11,15,.55)}
  .ct-fab .ico{width:18px;height:18px}}
.ct-status .chip .dot{width:7px;height:7px;border-radius:99px;background:var(--ink-3)}
.ct-status .chip .dot.on{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18)}
.ct-status .chip .dot.off{background:#f59e0b}

/* ---- board ---- */
.ct-board .kcol{flex-basis:288px}
.ct-board .kcol header i{background:var(--st)}
.ct-card{flex-direction:row!important;align-items:stretch;gap:11px!important;padding:9px!important;position:relative}
.ct-card::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--st);opacity:.9}
.ct-card .ct-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;padding:2px 2px 2px 0}
.ct-card .ct-title{font-size:13.5px;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ct-card .ct-title.none{color:var(--ink-3);font-weight:450}
.ct-card .ct-meta{font-size:11.5px;color:var(--ink-3);display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.ct-card .ct-meta b{font:500 11.5px/1.3 var(--mono);color:var(--ink-2);letter-spacing:-.02em}
.ct-card.up{cursor:default;opacity:.92}
.ct-card.up .ct-bar{margin-top:auto}
.ct-col-more{font-size:12px;color:var(--ink-3);text-align:center;padding:6px}
.ct-add-col{display:flex;align-items:center;justify-content:center;gap:6px;height:38px;border-radius:var(--r-md);border:1.5px dashed var(--line-2);color:var(--ink-3);font-size:12.5px;background:transparent;cursor:pointer;margin-top:8px;flex:none}
.ct-add-col:hover{color:var(--ink);border-color:var(--ink-3)}
.ct-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.ct-tools .search-in{height:38px;border-radius:999px;border:0;background:var(--ctl);box-shadow:var(--lift);padding:0 14px;width:auto;flex:0 1 300px;min-width:180px;font-size:13.5px;outline:0}
.ct-tools .grow{flex:1}

/* list view */
.ct-list .row{gap:12px}
.ct-list .ct-thumb{width:38px;border-radius:8px}

/* ---- one video ---- */
.ct-item{display:grid;grid-template-columns:minmax(260px,380px) minmax(0,1fr);gap:22px;align-items:start}
.ct-left{position:sticky;top:84px;display:flex;flex-direction:column;gap:12px}
.ct-phone{position:relative;width:100%;aspect-ratio:9/16;max-height:calc(100vh - 210px);margin:0 auto;border-radius:32px;background:#0b0b0f;overflow:hidden;box-shadow:0 30px 60px -30px rgba(11,11,15,.55),0 0 0 6px #fff,0 0 0 7px rgba(11,11,15,.08)}
.ct-phone video,.ct-phone img{width:100%;height:100%;object-fit:contain;display:block;background:#0b0b0f}
.ct-phone .ph-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:rgba(255,255,255,.7);padding:24px;font-size:13px;line-height:1.5}
.ct-phone .ph-empty .ico{width:28px;height:28px;margin:0 auto 10px;color:rgba(255,255,255,.5)}
.ct-phone .ph-tag{position:absolute;left:12px;top:12px;z-index:2;font:500 11px/1 var(--mono);color:#fff;background:rgba(0,0,0,.5);padding:6px 8px;border-radius:8px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ct-versions{display:flex;gap:4px;justify-content:center;flex-wrap:wrap}
.ct-versions button{border:0;height:30px;padding:0 12px;border-radius:999px;background:var(--ctl);box-shadow:var(--lift);font-size:12.5px;cursor:pointer;color:var(--ink-2)}
.ct-versions button[aria-pressed="true"]{background:var(--ink);color:#fff}
.ct-under{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.ct-right{display:flex;flex-direction:column;gap:14px;min-width:0}
.ct-right>.card{margin:0}
.ct-hero{--glow:rgba(50,25,110,.45);padding:22px 24px;border-radius:var(--r-lg);color:#fff;position:relative;overflow:hidden;isolation:isolate;background-blend-mode:overlay,normal;box-shadow:var(--rim),0 20px 40px -28px var(--glow)}
.ct-hero[data-st="idee"],.ct-hero[data-st="programme"]{background:var(--g-grape);--glow:rgba(50,25,110,.5)}
.ct-hero[data-st="rush"]{background:var(--g-violet);--glow:rgba(60,60,180,.5)}
.ct-hero[data-st="montage"]{background:var(--g-ocean);--glow:rgba(40,80,200,.48)}
.ct-hero[data-st="valider"]{background:var(--g-sun);--glow:rgba(220,90,20,.45)}
.ct-hero[data-st="publier"],.ct-hero[data-st="publie"]{background:var(--g-lime);--glow:rgba(25,110,55,.45)}
.ct-hero[data-st="archive"]{background:var(--g-violet)}
.ct-hero .ct-k{color:rgba(255,255,255,.75)}
.ct-hero h1{font-size:26px;line-height:1.15;margin:8px 0 6px;word-break:break-word}
.ct-hero h1[contenteditable]{outline:0;border-radius:8px}
.ct-hero h1[contenteditable]:focus{box-shadow:0 0 0 2px rgba(255,255,255,.5)}
.ct-hero .sub{color:rgba(255,255,255,.85);font-size:13.5px}
.ct-hero .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.ct-hero .btn{background:rgba(255,255,255,.95);color:var(--ink);box-shadow:none}
.ct-hero .btn.ghost{background:var(--frost);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.ct-hero .btn.ghost:hover{background:var(--frost-2)}
.ct-steps{display:flex;gap:4px;margin-top:16px}
.ct-steps span{flex:1;height:4px;border-radius:99px;background:rgba(255,255,255,.25)}
.ct-steps span.on{background:#fff}
.ct-steplabels{display:flex;justify-content:space-between;margin-top:6px;font:500 10.5px/1 var(--mono);color:rgba(255,255,255,.7);letter-spacing:.02em}
.ct-claude{display:flex;gap:12px;align-items:flex-start}
.ct-claude .si{flex:none}
.ct-claude .grow{min-width:0}
.ct-claude b{font-weight:500}
.ct-needs{margin:8px 0 0;padding-left:18px;font-size:13px;line-height:1.6}
.ct-notes{white-space:pre-wrap;font-size:13px;color:var(--ink-2);line-height:1.55;margin-top:6px;background:var(--fill);border-radius:12px;padding:10px 12px}
.ct-fields .f textarea{min-height:120px}
.ct-copy{position:relative}
.ct-copy textarea{padding-bottom:44px}
.ct-copy .btn{position:absolute;right:8px;bottom:8px}
.ct-alts{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.ct-alts button{border:0;background:var(--fill);border-radius:999px;padding:6px 11px;font-size:12.5px;cursor:pointer;text-align:left;color:var(--ink-2)}
.ct-alts button:hover{background:var(--fill-2);color:var(--ink)}
.ct-tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ct-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ct-metric{background:var(--fill);border-radius:14px;padding:12px 14px}
.ct-metric .v{font:400 22px/1.1 var(--mono);letter-spacing:-.04em;margin-top:6px}
.ct-metric .d{font-size:11.5px;color:var(--ink-3);margin-top:3px}
.ct-files .row{gap:10px}
.ct-time{max-height:340px;overflow:auto}
.ct-time .row{align-items:flex-start;font-size:13px}
.ct-time .when{width:auto;min-width:92px;font:400 11.5px/1.6 var(--mono);color:var(--ink-3)}

/* ---- review queue ---- */
.ct-review{display:grid;grid-template-columns:minmax(260px,400px) minmax(0,1fr);gap:24px;align-items:start}
.ct-review .ct-phone{max-height:calc(100vh - 170px)}
.ct-keys{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--ink-3)}
.ct-keys kbd{font:500 11px/1 var(--mono);background:var(--card);box-shadow:var(--lift);border-radius:6px;padding:4px 6px;margin-right:4px;color:var(--ink-2)}
.ct-qbar{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.ct-qbar .ct-bar{flex:1;max-width:280px}
.ct-slots{display:flex;gap:6px;flex-wrap:wrap}
.ct-slots button{border:0;height:34px;padding:0 12px;border-radius:999px;background:var(--fill);font-size:12.5px;cursor:pointer;color:var(--ink-2)}
.ct-slots button:hover{background:var(--fill-2);color:var(--ink)}
.ct-slots button[aria-pressed="true"]{background:var(--ink);color:#fff}
.ct-slots button small{font:500 11px/1 var(--mono);opacity:.7;margin-left:4px}

/* ---- posting ---- */
.ct-post{display:grid;grid-template-columns:132px minmax(0,1fr);gap:18px;align-items:start}
.ct-post+.ct-post{margin-top:18px;padding-top:18px;border-top:1px solid var(--rl)}
.ct-post .ct-thumb.xl{cursor:pointer}
.ct-todo{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.ct-todo button,.ct-todo a{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:0;border-radius:14px;background:var(--fill);padding:12px;font-size:12.5px;cursor:pointer;text-decoration:none;color:var(--ink);text-align:left;min-height:84px;transition:background .15s}
.ct-todo button:hover,.ct-todo a:hover{background:var(--fill-2)}
.ct-todo .n{font:500 11px/1 var(--mono);color:var(--ink-3)}
.ct-todo .ico{width:18px;height:18px}
.ct-todo .done{background:#ecfaf1;color:#0f5c33}
.ct-todo .done .n{color:#15803d}
.ct-todo .main-act{background:var(--ink);color:#fff}
.ct-todo .main-act .n{color:rgba(255,255,255,.6)}
.ct-todo .main-act:hover{background:#26262e}
.ct-cap{white-space:pre-wrap;font-size:13px;line-height:1.55;color:var(--ink-2);max-height:7.6em;overflow:hidden;position:relative;margin-top:8px}
.ct-cap.open{max-height:none}

/* ---- calendar ---- */
.ct-calwrap{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:start}
.ct-pool{position:sticky;top:84px}
.ct-pool header i{background:var(--st)}
.ct-pool .kcards{max-height:calc(100vh - 260px)}
.ct-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.ct-cal .wd{font:500 11px/1 var(--mono);text-transform:uppercase;letter-spacing:.04em;color:var(--ink-3);padding:4px 6px}
.ct-day{background:var(--card);border-radius:14px;min-height:118px;padding:7px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--lift);transition:background .15s,box-shadow .15s}
.ct-day.out{opacity:.45}
.ct-day.today{box-shadow:var(--lift),inset 0 0 0 2px var(--ink)}
.ct-day.over{background:#f0effd;box-shadow:inset 0 0 0 2px var(--st-programme)}
.ct-day .dn{font:500 12px/1 var(--mono);color:var(--ink-2);padding:2px 3px 4px}
.ct-ev{display:flex;align-items:center;gap:6px;border-radius:9px;padding:3px 6px 3px 3px;font-size:11.5px;line-height:1.25;background:color-mix(in srgb,var(--st) 12%,#fff);cursor:pointer;min-width:0}
.ct-ev[draggable="true"]{cursor:grab}
.ct-ev .ct-thumb{width:18px;border-radius:4px}
.ct-ev span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ct-ev time{font:500 10.5px/1 var(--mono);color:var(--ink-3);flex:none}
.ct-ev.ig{background:var(--fill)}

/* ---- stats ---- */
.ct-insight{padding:24px 26px;margin-bottom:14px}
.ct-insight-grid+.card,.ct-insight-grid{margin-bottom:14px}
.ct-ptitle{margin:8px 0 0;font-size:16px;font-weight:500;letter-spacing:-.01em}
.ct-ptitle a{text-decoration:none}
.ct-insight h2{font-size:22px;line-height:1.25;margin:8px 0 8px;font-weight:500;letter-spacing:-.02em}
.ct-insight .sum{color:rgba(255,255,255,.88);font-size:14px;line-height:1.6;max-width:900px}
.ct-insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.ct-insight-grid .card{margin:0}
.ct-insight-grid ul{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:1.6}
.ct-hooks .row{align-items:flex-start}
.ct-hooks q{font-weight:500;quotes:"« " " »"}
.ct-ideas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ct-idea{background:var(--fill);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px}
.ct-idea b{font-weight:500;font-size:13.5px}
.ct-idea q{font-size:13px;color:var(--ink);quotes:"« " " »"}
.ct-idea p{margin:0;font-size:12.5px;color:var(--ink-2);line-height:1.5}
.ct-idea .btn{align-self:flex-start;margin-top:auto}
.ct-tops{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
.ct-top{display:flex;flex-direction:column;gap:6px;cursor:pointer;text-decoration:none;color:inherit}
.ct-top .ct-thumb{width:100%;border-radius:16px}
.ct-top .v{font:500 13px/1 var(--mono);letter-spacing:-.03em}
.ct-top .s{font-size:11.5px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-score{position:absolute;left:6px;top:6px;font:500 10.5px/1 var(--mono);color:#fff;background:rgba(0,0,0,.55);padding:4px 5px;border-radius:6px}
.ct-score.hot{background:#e8693a}
.ct-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ct-groups .card{margin:0}
.ct-gmetric{margin-left:auto}
.ct-src{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ---- style ---- */
.ct-refs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.ct-ref{background:var(--fill);border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:8px;position:relative}
.ct-ref video{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:11px;background:#0b0b0f;display:block}
.ct-ref .lnk{aspect-ratio:9/16;border-radius:11px;background:linear-gradient(160deg,#26262e,#121217);color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:12px;font-size:12px;word-break:break-all;text-decoration:none;gap:6px}
.ct-ref .lnk .ico{width:22px;height:22px;margin-bottom:auto;opacity:.8}
.ct-ref .x{position:absolute;right:12px;top:12px;width:28px;height:28px;border-radius:99px;border:0;background:rgba(0,0,0,.55);color:#fff;display:grid;place-items:center;cursor:pointer}
.ct-ref .x .ico{width:14px;height:14px}
.ct-ref p{margin:0 4px 2px;font-size:12px;color:var(--ink-2);line-height:1.4}
.ct-md{font-size:13.5px;line-height:1.65;color:var(--ink-2);max-height:520px;overflow:auto;padding-right:6px}
.ct-md h1,.ct-md h2,.ct-md h3{color:var(--ink);font-size:15px;margin:16px 0 6px;font-weight:560;letter-spacing:-.01em}
.ct-md h1{font-size:17px}
.ct-md ul{padding-left:18px;margin:6px 0}
.ct-md code{font:12px var(--mono);background:var(--fill);padding:1px 5px;border-radius:5px}
.ct-md table{border-collapse:collapse;font-size:12.5px;margin:8px 0}
.ct-md td,.ct-md th{border:1px solid var(--line);padding:4px 8px;text-align:left}
.ct-cmd{font:12.5px/1.5 var(--mono);background:#0b0b0f;color:#e7e7ee;border-radius:14px;padding:14px 16px;word-break:break-all;position:relative}
.ct-cmd .btn{position:absolute;right:8px;top:8px;background:rgba(255,255,255,.12);color:#fff;box-shadow:none}

/* ---- settings ---- */
.ct-taglist{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.ct-taglist .tag{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 6px 0 12px;border-radius:999px;background:var(--fill);font-size:13px}
.ct-taglist .tag input{border:0;background:transparent;width:auto;min-width:40px;padding:0;height:30px;font-size:13px;outline:0;field-sizing:content}
.ct-taglist .tag button{border:0;background:transparent;width:24px;height:24px;border-radius:99px;display:grid;place-items:center;cursor:pointer;color:var(--ink-3)}
.ct-taglist .tag button:hover{background:var(--fill-2);color:var(--ink)}
.ct-taglist .tag button .ico{width:13px;height:13px}
.ct-steps-list{margin:10px 0 14px;padding-left:20px;font-size:13px;line-height:1.75;color:var(--ink-2)}
#c-ig{margin-bottom:16px}
select[data-acc]{width:auto;flex:none;min-width:170px}
.ct-steps-list b{color:var(--ink)}

/* ---- uploads ---- */
.ct-drop{position:fixed;inset:0;z-index:80;background:rgba(245,245,247,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:grid;place-items:center;pointer-events:none;animation:ct-fade .15s var(--ease)}
.ct-drop>div{width:min(560px,86vw);aspect-ratio:16/9;border-radius:32px;border:2px dashed var(--ink-3);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:20px;font-weight:500;letter-spacing:-.02em}
.ct-drop .ico{width:34px;height:34px}
.ct-drop small{font-size:13px;color:var(--ink-3);font-weight:400}
@keyframes ct-fade{from{opacity:0}}
.ct-dz{border:1.5px dashed var(--line-2);border-radius:20px;padding:26px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;transition:border-color .15s,background .15s}
.ct-dz:hover,.ct-dz.over{border-color:var(--ink);background:var(--fill)}
.ct-dz .ico{width:28px;height:28px;color:var(--ink-2)}
.ct-dz b{font-weight:500;font-size:15px}
.ct-pick{max-height:280px;overflow:auto;margin-top:12px;display:flex;flex-direction:column;gap:6px}
.ct-pick .row{padding:6px 4px;gap:10px}
.ct-pick .ct-thumb{width:30px;border-radius:6px}
.ct-pick .ct-thumb .dur{display:none}
.ct-upl{position:fixed;right:20px;bottom:20px;z-index:60;width:340px;max-width:calc(100vw - 32px);background:var(--card);border-radius:20px;box-shadow:var(--shadow-2);overflow:hidden;animation:ct-up .25s var(--spring)}
@keyframes ct-up{from{transform:translateY(20px);opacity:0}}
.ct-upl header{display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer}
.ct-upl header b{font-weight:500;font-size:13.5px;flex:1}
.ct-upl header .n{font:500 12px/1 var(--mono);color:var(--ink-3)}
.ct-upl .ct-bar{margin:0 16px 12px}
.ct-upl .list{max-height:260px;overflow:auto;padding:0 8px 8px}
.ct-upl .row{padding:7px 8px;gap:10px;font-size:12.5px}
.ct-upl .row .grow{min-width:0}
.ct-upl .row .ct-bar{margin:5px 0 0}
.ct-upl.min .list{display:none}
.ct-upl .iconbtn{width:30px;height:30px}

/* ---- phones ---- */
@media (max-width:1100px){
  .ct-item,.ct-review{grid-template-columns:1fr}
  .ct-left{position:static;max-width:380px;width:100%;margin:0 auto}
  .ct-review .ct-phone{max-height:68vh}
  .ct-insight-grid,.ct-groups,.ct-ideas{grid-template-columns:1fr 1fr}
  .ct-calwrap{grid-template-columns:1fr}
  .ct-pool{position:static}
  .ct-pool .kcards{flex-direction:row;overflow-x:auto;max-height:none}
  .ct-pool .kcard{flex:0 0 240px}
}
@media (max-width:720px){
  .ct-metrics,.ct-todo{grid-template-columns:1fr 1fr}
  .ct-tags{grid-template-columns:1fr}
  .ct-insight-grid,.ct-groups,.ct-ideas{grid-template-columns:1fr}
  .ct-post{grid-template-columns:84px minmax(0,1fr);gap:12px}
  .ct-post .ct-thumb.xl{width:84px;border-radius:14px}
  .ct-cal{gap:3px}
  .ct-day{min-height:76px;padding:4px;border-radius:10px}
  .ct-ev{padding:2px}
  .ct-ev span,.ct-ev time{display:none}
  .ct-upl{right:12px;left:12px;width:auto;bottom:calc(84px + env(safe-area-inset-bottom))}
  .ct-tools .search-in{min-width:0;flex:1 1 140px}
  .ct-hero h1{font-size:22px}
}

/* ---- styles (Jun, Leila…) ---- */
.ct-styles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin:16px 0}
.ct-refcard{margin-bottom:16px}
.ct-style{display:flex;flex-direction:column;background:var(--card);border-radius:var(--r-lg);box-shadow:var(--lift);overflow:hidden;text-decoration:none;color:inherit;transition:transform .15s var(--ease),box-shadow .15s;--ctl:var(--fill)}
.ct-style:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.ct-style-top{height:104px;padding:16px 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;border-radius:0;background-blend-mode:overlay,normal}
.ct-style-top b{font-family:var(--head);font-size:26px;font-weight:500;letter-spacing:-.03em;line-height:1}
.ct-def{font:500 10.5px/1 var(--mono);text-transform:uppercase;letter-spacing:.05em;background:var(--frost);padding:6px 8px;border-radius:99px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.ct-style-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px;flex:1}
.ct-style-body p{margin:0;font-size:13px;line-height:1.5;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ct-style-body .chip .ct-spin{width:10px;height:10px;margin-right:2px}
.ct-style.new{border:1.5px dashed var(--line-2);background:transparent;box-shadow:none;align-items:center;justify-content:center;text-align:center;gap:8px;padding:24px;min-height:200px;cursor:pointer;font:inherit;color:var(--ink-2)}
.ct-style.new .ico{width:24px;height:24px}
.ct-style.new b{font-weight:500;font-size:15px;color:var(--ink)}
.ct-style.new span{font-size:12.5px;line-height:1.5;max-width:260px}
.ct-style.new:hover{border-color:var(--ink-3);transform:none;box-shadow:none;background:var(--card)}
.ct-pick .ct-hookin{margin-top:7px;height:36px;font-size:13px}
.ct-card .ct-meta .ct-st{color:var(--ink-2);font-weight:500}
.ct-slots button small{font:500 10px/1 var(--mono);opacity:.6;margin-left:6px;text-transform:uppercase;letter-spacing:.03em}
