/* YA Community — by yalhamadi plugins. Uses YA Store colours (--y-*). */
.cm-ic{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cm-scr .y-body{padding-top:4px}

/* top-bar "me" button */
.cm-mebtn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 auto;border-radius:50%;color:var(--y-text)}
.cm-mebtn .cm-av{width:30px;height:30px;box-shadow:0 0 0 2px var(--y-bg),0 0 0 3.5px var(--y-accent)}

/* avatar */
.cm-av{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border-radius:50%;overflow:hidden;background:linear-gradient(140deg,#e9d6ad,var(--y-accent));color:#fff;font-size:14px;font-weight:700}
.cm-av img{width:100%;height:100%;object-fit:cover}
.cm-av .cm-ic{width:18px;height:18px}
.cm-av-sm{width:30px;height:30px;font-size:12px}
.cm-av-xl{width:96px;height:96px;font-size:36px}

/* hero */
.cm-hero{position:relative;display:flex;align-items:center;gap:12px;margin:8px 16px 16px;padding:18px 16px;border-radius:20px;overflow:hidden;background:var(--y-text);color:#fff;isolation:isolate}
.cm-hero-bg{position:absolute;inset:0;z-index:-1;pointer-events:none}
.cm-hero-bg i{position:absolute;border-radius:50%;background:radial-gradient(circle at 32% 30%,#fff8e6 0,var(--y-accent) 38%,#6e5326 100%);opacity:.55}
.cm-hero-bg i:nth-child(1){width:44px;height:44px;inset-inline-end:-8px;top:-10px;animation:cmDrift 7s ease-in-out infinite}
.cm-hero-bg i:nth-child(2){width:22px;height:22px;inset-inline-end:46px;bottom:-6px;animation:cmDrift 6s -2s ease-in-out infinite}
.cm-hero-bg i:nth-child(3){width:14px;height:14px;inset-inline-end:84px;top:14px;opacity:.35;animation:cmDrift 8s -1s ease-in-out infinite}
.cm-hero-bg i:nth-child(4){width:30px;height:30px;inset-inline-start:38%;bottom:-14px;opacity:.25;animation:cmDrift 9s -4s ease-in-out infinite}
.cm-hero-bg i:nth-child(5){width:10px;height:10px;inset-inline-start:30%;top:10px;opacity:.4;animation:cmDrift 5s -3s ease-in-out infinite}
@keyframes cmDrift{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-6px,8px,0)}}
.cm-hero-t{flex:1;min-width:0}
.cm-hero h3{margin:0;color:#fff!important;font-size:16px!important;font-weight:700}
.cm-hero p{margin:2px 0 0;color:rgba(255,255,255,.72);font-size:12px;line-height:1.5}
.cm-new{display:inline-flex;align-items:center;gap:6px;flex:none;height:40px;padding:0 14px;border-radius:999px;background:var(--y-accent);color:#fff;font-size:13px;font-weight:700;box-shadow:0 6px 18px -6px rgba(var(--y-accent-rgb),.8);transition:transform .15s ease}
.cm-new:active{transform:scale(.94)}
.cm-new .cm-ic{width:19px;height:19px;stroke-width:1.9}
.cm-new-sm{height:36px;font-size:12.5px}

/* a post */
.cm-feed{display:flex;flex-direction:column;gap:6px}
.cm-post{margin:0 12px 14px;padding:0 0 12px;border-radius:20px;background:var(--y-surface);box-shadow:0 1px 0 rgba(var(--y-line-rgb),.9),0 10px 30px -22px rgba(var(--y-text-rgb),.35);overflow:hidden}
.cm-ph{display:flex;align-items:center;gap:8px;padding:10px 12px}
.cm-u{display:inline-flex;align-items:center;gap:8px;min-width:0;color:var(--y-text)}
.cm-u b{overflow:hidden;font-size:13.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}
.cm-ph time{margin-inline-start:auto;color:var(--y-muted);font-size:11.5px}
.cm-pend{padding:2px 9px;border-radius:999px;background:rgba(var(--y-accent-rgb),.16);color:var(--y-accent);font-size:11px;font-weight:700}
.cm-media{position:relative;width:auto;max-height:min(52vh,420px);margin:0 10px;border-radius:14px;background:var(--y-card,#f1ece4);overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.cm-media img{display:block;width:100%;height:100%;object-fit:cover}
.cm-post.is-pending .cm-media img{filter:saturate(.75)}
.cm-burst{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;visibility:hidden}
.cm-burst .cm-ic{width:96px;height:96px;fill:#fff;stroke:none;filter:drop-shadow(0 6px 18px rgba(0,0,0,.35))}
.cm-act{display:flex;align-items:center;gap:2px;padding:4px 6px 0}
.cm-act button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--y-text);transition:transform .15s ease}
.cm-act button:active{transform:scale(.86)}
.cm-like.is-on{color:#E0245E}
.cm-like.is-on .cm-ic{fill:#E0245E;stroke:#E0245E}
.cm-share .cm-ic{transform:scaleX(var(--dx,1))}
.cm-del{gap:6px;width:auto!important;padding:0 10px;color:#b32d2e!important;font-size:12.5px;font-weight:700}
.cm-del-i{margin-inline-start:auto;width:42px!important;padding:0!important}
.cm-del .cm-ic{width:20px;height:20px}
.cm-likes{padding:0 14px;font-size:13px;line-height:1.5}
.cm-likes b{font-weight:700}
.cm-cap{margin:4px 14px 0;font-size:13.5px;line-height:1.6;white-space:pre-line;word-break:break-word}
.cm-cap b{font-weight:700}
.cm-vc{display:block;margin:4px 14px 0;color:var(--y-muted);font-size:12.5px}
.cm-vc[hidden]{display:none}
.cm-addc{display:flex;align-items:center;gap:8px;width:calc(100% - 28px);margin:8px 14px 0;color:var(--y-muted);font-size:12.5px;text-align:start}
.cm-av-xs{width:24px;height:24px;font-size:10px}
.cm-av-xs .cm-ic{width:14px;height:14px}
.cm-time{display:block;margin:6px 14px 0;color:var(--y-muted);font-size:10.5px}
.cm-one{padding-top:8px}

/* states */
.cm-loader{display:flex;justify-content:center;padding:26px 0}
.cm-loader[hidden]{display:none}
.cm-spin{width:22px;height:22px;border:2px solid var(--y-accent);border-inline-end-color:transparent;border-radius:50%;animation:cmSpin .7s linear infinite}
@keyframes cmSpin{to{transform:rotate(360deg)}}
.cm-empty{margin:30px 24px;color:var(--y-muted);font-size:13px;text-align:center}

/* profile */
.cm-prof{display:flex;flex-direction:column;align-items:center;padding:18px 16px 10px;text-align:center}
.cm-prof-ring{position:relative;padding:4px;border-radius:50%;background:conic-gradient(from 0deg,var(--y-accent),#f3e2bb,var(--y-accent),#7a5d2c,var(--y-accent))}
.cm-prof-ring .cm-av{box-shadow:0 0 0 3px var(--y-bg)}
.cm-prof-ed{position:absolute;bottom:0;inset-inline-end:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--y-text);color:#fff;box-shadow:0 0 0 3px var(--y-bg);cursor:pointer}
.cm-prof-ed .cm-ic{width:17px;height:17px}
.cm-prof h3{margin:10px 0 0;font-size:16px!important;font-weight:700}
.cm-stats{display:flex;gap:28px;margin-top:10px}
.cm-stats div{display:flex;flex-direction:column;align-items:center}
.cm-stats b{font-size:17px;font-weight:700;line-height:1.2}
.cm-stats span{color:var(--y-muted);font-size:11.5px}
.cm-prof-a{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}
.cm-logout{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid var(--y-line);border-radius:999px;background:var(--y-surface);color:var(--y-muted);font-size:12.5px;font-weight:600}
.cm-logout .cm-ic{width:18px;height:18px}
.cm-gridh{display:flex;justify-content:center;padding:10px 0 8px;border-top:1px solid var(--y-line);color:var(--y-text)}
.cm-gridh .cm-ic{width:20px;height:20px}
.cm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.cm-gi{position:relative;aspect-ratio:1;overflow:hidden;background:var(--y-card,#f1ece4)}
.cm-gi img{width:100%;height:100%;object-fit:cover}
.cm-gi.is-pending img{opacity:.55}
.cm-gi span{position:absolute;inset-inline:6px;bottom:6px;padding:2px 6px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;font-weight:700}

/* overlays */
html.cm-locked,html.cm-locked body{overflow:hidden}
.cm-ov{position:fixed;inset:0;left:var(--fl,0px);right:var(--fl,0px);z-index:400;background:rgba(15,12,8,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.cm-ov-card{display:flex;align-items:center;justify-content:center;padding:20px;perspective:900px}
.cm-sheet{position:absolute;inset-inline:0;bottom:var(--cm-kb,0px);display:flex;flex-direction:column;max-height:82dvh;overflow-y:auto;overscroll-behavior:contain;padding:6px 16px calc(12px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;background:var(--y-surface);box-shadow:0 -10px 40px rgba(0,0,0,.18)}
.cm-grab{align-self:center;width:38px;height:5px;margin:2px 0 8px;border-radius:5px;background:var(--y-line)}
.cm-sh-h{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px}
.cm-sh-h h4{margin:0;font-size:15px;font-weight:700}
.cm-x{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(var(--y-text-rgb),.06);color:var(--y-text)}
.cm-x .cm-ic{width:18px;height:18px}

/* comments */
.cm-clist{flex:1;min-height:120px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.cm-c{display:flex;align-items:flex-start;gap:10px;padding:8px 0}
.cm-c-b{flex:1;min-width:0}
.cm-c-b p{margin:0;font-size:13.5px;line-height:1.55;word-break:break-word}
.cm-c-b b{font-weight:700}
.cm-c-b time{color:var(--y-muted);font-size:11px}
.cm-c-del{color:var(--y-muted)}
.cm-c-del .cm-ic{width:18px;height:18px}
.cm-cform{display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid var(--y-line)}
.cm-cform input{flex:1;min-width:0;height:42px;padding:0 14px;border:1px solid var(--y-line);border-radius:999px;background:var(--y-bg);color:var(--y-text);font:500 16px/1 var(--y-font);outline:none}
.cm-cform input:focus{border-color:var(--y-accent)}
.cm-cform button{color:var(--y-accent);font-size:14px;font-weight:700}
.cm-cform.is-busy button{opacity:.4}

/* compose */
.cm-drop{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:min(210px,30dvh);border:1.5px dashed rgba(var(--y-accent-rgb),.6);border-radius:18px;overflow:hidden;background:rgba(var(--y-accent-rgb),.06);cursor:pointer}
.cm-drop.has{border-style:solid;border-color:var(--y-line)}
.cm-drop-in{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--y-accent);font-size:13px}
.cm-drop-in .cm-ic{width:32px;height:32px;stroke-width:1.4}
.cm-drop.has .cm-drop-in{display:none}
.cm-drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cm-compose textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:10px 0 0;padding:10px 14px;border:1px solid var(--y-line);border-radius:14px;background:var(--y-bg);color:var(--y-text);font:500 16px/1.5 var(--y-font);resize:none;outline:none}
.cm-compose textarea:focus{border-color:var(--y-accent)}
.cm-prog{height:4px;margin-top:12px;border-radius:4px;background:var(--y-line);overflow:hidden}
.cm-prog i{display:block;height:100%;background:var(--y-accent);transform:scaleX(0);transform-origin:var(--cm-o,right);transition:transform .2s ease}
html[dir=ltr] .cm-prog i{--cm-o:left}

/* buttons */
.cm-go{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:48px;margin-top:12px;border-radius:14px;background:var(--y-text);color:#fff;font-size:14.5px;font-weight:700;overflow:hidden;transition:transform .15s ease,opacity .2s ease}
.cm-go::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);animation:cmSweep 2.8s 1s ease-in-out infinite}
@keyframes cmSweep{0%,65%{left:-60%}100%{left:130%}}
.cm-go:active{transform:scale(.97)}
.cm-go:disabled{opacity:.45}
.cm-go.is-busy{color:transparent}
.cm-go.is-busy::before{content:"";position:absolute;width:20px;height:20px;border:2px solid #fff;border-inline-end-color:transparent;border-radius:50%;animation:cmSpin .7s linear infinite}

/* «أنشئ ملفك» card */
.cm-card{position:relative;width:min(350px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;padding:26px 22px 20px;border-radius:28px;background:linear-gradient(170deg,#fffdf8 0%,var(--y-surface) 55%,#f6ecda 100%);box-shadow:0 0 0 1px rgba(var(--y-accent-rgb),.35),0 30px 80px -20px rgba(40,25,5,.55);text-align:center;isolation:isolate}
.cm-shine{position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(120% 60% at 50% 0%,rgba(var(--y-accent-rgb),.18),transparent 60%);pointer-events:none}
.cm-card .cm-x{position:absolute;top:12px;inset-inline-end:12px}
.cm-pane[hidden]{display:none}
.cm-pane h3{margin:12px 0 0;font-size:18px!important;font-weight:800}
.cm-sub{margin:4px 0 14px;color:var(--y-muted);font-size:12px;line-height:1.55}
.cm-avimg{display:flex;align-items:center;justify-content:center;width:74px;height:74px;border-radius:50%;overflow:hidden;background:rgba(var(--y-accent-rgb),.14);color:var(--y-accent)}
.cm-avimg img{width:100%;height:100%;object-fit:cover}
.cm-avimg .cm-ic{width:34px;height:34px;stroke-width:1.4}
.cm-avimg-big{width:80px;height:80px;margin:6px auto 0}
.cm-f{display:flex;align-items:center;gap:4px;height:46px;margin-top:8px;padding:0 14px;border:1px solid var(--y-line);border-radius:14px;background:rgba(255,255,255,.85);transition:border-color .2s ease,box-shadow .2s ease}
.cm-f:focus-within{border-color:var(--y-accent);box-shadow:0 0 0 4px rgba(var(--y-accent-rgb),.16)}
.cm-f span{color:var(--y-accent);font-weight:700}
.cm-f input{flex:1;min-width:0;height:100%;padding:0;border:0;background:none;color:var(--y-text);font:500 16px/1 var(--y-font);outline:none;box-shadow:none}
.cm-f input::placeholder{color:var(--y-muted);font-size:13.5px}
.cm-f-u{flex-direction:row}
html[dir=rtl] .cm-f-u{flex-direction:row-reverse}
.cm-hint{display:block;min-height:16px;margin:4px 4px 0;color:var(--y-muted);font-size:11px;text-align:start}
.cm-hint.is-ok{color:#1E8A4C}
.cm-hint.is-bad{color:#C2283B}
.cm-link{display:block;margin:10px auto 0;color:var(--y-accent);font-size:12.5px;font-weight:700}
.cm-p-done{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;padding:22px 0 10px}
.cm-tick{width:116px;height:116px;overflow:visible}
.cm-tick-c{fill:rgba(var(--y-accent-rgb),.1);stroke:var(--y-accent);stroke-width:5;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center}
.cm-tick-p{fill:none;stroke:var(--y-accent);stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.cm-done-u{margin:2px 0 0;color:var(--y-accent);font-size:15px;font-weight:700}

/* little note */
.cm-note{position:fixed;left:50%;bottom:calc(var(--tab-h,62px) + var(--tab-gap,10px) + env(safe-area-inset-bottom,0px) + 14px);z-index:500;max-width:calc(100% - 40px);padding:10px 16px;border-radius:14px;background:var(--y-text);color:#fff;font-size:13px;font-weight:600;transform:translate(-50%,16px);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
.cm-note.is-on{opacity:1;transform:translate(-50%,0)}
.cm-note.is-bad{background:#C2283B}

@media (prefers-reduced-motion:reduce){
  .cm-hero-bg i,.cm-go::after{animation:none}
}

/* iPhone zooms into fields smaller than 16px: keep them all at 16px */
.cm-ov input,.cm-ov textarea,.cm-ov select,.cm-orders input{font-size:16px!important}
.cm-ov *,.cm-ov *::before,.cm-ov *::after{box-sizing:border-box}

/* profile tabs: صوري | طلباتي */
.cm-tabs{position:relative;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--y-line);--k:0}
.cm-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;height:46px;color:var(--y-muted);font-size:13px;font-weight:600;transition:color .2s ease}
.cm-tabs button .cm-ic{width:19px;height:19px}
.cm-tabs button.is-on{color:var(--y-text)}
.cm-tabs-line{position:absolute;top:-1px;inset-inline-start:0;width:33.334%;height:2px;background:var(--y-text);transform:translateX(calc(var(--k) * -100%));transition:transform .35s cubic-bezier(.3,1.2,.4,1)}
html[dir=ltr] .cm-tabs-line{transform:translateX(calc(var(--k) * 100%))}
.cm-orders{padding:6px 14px 10px}
.cm-orders[hidden],.cm-grid[hidden],.cm-empty[hidden]{display:none}
.cm-oh{margin:14px 2px 8px;font-size:13px;font-weight:700;color:var(--y-muted)}
.cm-ord{margin-bottom:10px;padding:12px 14px;border-radius:16px;background:var(--y-surface);box-shadow:0 0 0 1px rgba(var(--y-line-rgb),.9)}
.cm-ord.is-cur{box-shadow:0 0 0 1.5px rgba(var(--y-accent-rgb),.7),0 12px 30px -20px rgba(var(--y-accent-rgb),.8)}
.cm-ord-h{display:flex;align-items:center;gap:8px;font-size:13px}
.cm-ord-h span{color:var(--y-muted);font-size:12px}
.cm-ord-h em{margin-inline-start:auto;padding:3px 10px;border-radius:999px;background:rgba(var(--y-text-rgb),.06);font-style:normal;font-size:11px;font-weight:700}
.cm-ord-h em.s1,.cm-ord-h em.s2,.cm-ord-h em.s3{background:rgba(var(--y-accent-rgb),.16);color:var(--y-accent)}
.cm-ord-h em.s4{background:#E7F7EE;color:#1E7A45}
.cm-steps{position:relative;display:grid;grid-template-columns:repeat(4,1fr);margin:14px 0 4px;--p:1}
.cm-steps::before,.cm-steps::after{content:"";position:absolute;top:6px;inset-inline:12.5%;height:2px;border-radius:2px;background:var(--y-line)}
.cm-steps::after{background:var(--y-accent);inset-inline-end:auto;width:calc(75% * (var(--s) - 1) / 3 * var(--p));}
.cm-steps span{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--y-muted);font-size:10.5px;text-align:center}
.cm-steps i{width:14px;height:14px;border-radius:50%;background:var(--y-surface);box-shadow:0 0 0 2px var(--y-line)}
.cm-steps span.on{color:var(--y-text);font-weight:600}
.cm-steps span.on i{background:var(--y-accent);box-shadow:0 0 0 3px rgba(var(--y-accent-rgb),.25)}
.cm-ord-it{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.cm-ord-it span{display:flex;align-items:center;gap:10px;font-size:13px}
.cm-ord-it img{width:38px;height:38px;border-radius:9px;object-fit:cover;background:var(--y-card,#f1ece4)}
.cm-ord-it b{flex:1;min-width:0;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cm-ord-it small{color:var(--y-muted)}
.cm-ord-t{margin-top:8px;padding-top:8px;border-top:1px solid var(--y-line);color:var(--y-accent);font-size:13.5px;font-weight:700;text-align:end}
.cm-verify{padding:18px 6px 6px;text-align:center}
.cm-verify-i{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:rgba(var(--y-accent-rgb),.14);color:var(--y-accent)}
.cm-verify h4{margin:10px 0 4px;font-size:15px;font-weight:700}
.cm-verify p{margin:0 0 10px;color:var(--y-muted);font-size:12.5px;line-height:1.6}

/* «أنشئ ملفك»: the real misbaha hanging at the top */
.cm-card{padding-top:0!important}
.cm-hang{position:relative;display:flex;justify-content:center;height:150px;margin:0 -22px 4px;pointer-events:none}
.cm-glow{position:absolute;left:50%;top:26px;width:190px;height:150px;margin-left:-95px;border-radius:50%;background:radial-gradient(closest-side,rgba(var(--y-accent-rgb),.38),rgba(var(--y-accent-rgb),0));filter:blur(4px)}
.cm-mis{position:relative;display:block;height:150px;margin-top:-4px;transform-origin:50% 0;will-change:transform}
.cm-mis img{display:block;height:100%;width:auto;filter:drop-shadow(0 12px 14px rgba(70,45,10,.28)) drop-shadow(0 2px 3px rgba(70,45,10,.2));-webkit-user-drag:none}
.cm-gleam{position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.55) 50%,transparent 65%);mix-blend-mode:soft-light;
  -webkit-mask:var(--cm-mis) center/contain no-repeat;mask:var(--cm-mis) center/contain no-repeat;pointer-events:none}
.cm-avrow{display:flex;align-items:center;gap:10px;height:52px;margin-top:4px;padding:0 6px 0 12px;border:1px dashed rgba(var(--y-accent-rgb),.55);border-radius:14px;background:rgba(255,255,255,.6);cursor:pointer}
.cm-avrow .cm-avimg{width:38px;height:38px}
.cm-avrow .cm-avimg .cm-ic{width:20px;height:20px}
.cm-avtx{flex:1;color:var(--y-muted);font-size:12.5px;text-align:start}
.cm-avrow i{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--y-text);color:#fff}
.cm-avrow i .cm-ic{width:16px;height:16px;stroke-width:2.2}
.cm-avrow.has{border-style:solid;border-color:var(--y-line)}
.cm-avrow.has i{background:var(--y-accent)}
.cm-pane h3{margin-top:2px!important}
.cm-p-done{min-height:220px!important;padding:0 0 10px!important}
.cm-tick{width:96px!important;height:96px!important}

/* ---- v1.1.0: post laid out like Instagram (account and buttons on the left, 🔖 on the right) ---- */
.cm-post{text-align:left}
.cm-ph{gap:10px}
.cm-u b{font-size:13.5px;font-weight:700}
.cm-av-ring{box-shadow:0 0 0 2px var(--y-surface),0 0 0 3.5px var(--y-accent)}
.cm-dots{display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin-left:auto;color:var(--y-text)}
.cm-dots .cm-ic{fill:currentColor;stroke:none;width:22px;height:22px}
.cm-pend{margin-left:auto}
.cm-pend + .cm-dots{margin-left:4px}
.cm-act{padding:6px 4px 0}
.cm-act .cm-ic{width:26px;height:26px}
.cm-save{margin-left:auto}
.cm-save.is-on .cm-ic{fill:var(--y-text)}
.cm-share .cm-ic{transform:none}
.cm-likes{text-align:left}
.cm-cap{margin:4px 14px 0;font-size:13.5px;line-height:1.6}
.cm-cap b{display:block;font-weight:700}
.cm-cap p{margin:0;white-space:pre-line;word-break:break-word;text-align:start}
.cm-vc{text-align:left}
.cm-addc{text-align:left}
.cm-time{text-align:left}
/* ⋯ menu */
.cm-menu{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.cm-menu > button[data-m]{display:flex;align-items:center;gap:12px;width:100%;height:52px;padding:0 6px;border-bottom:1px solid var(--y-line);color:var(--y-text);font-size:14.5px;font-weight:600}
.cm-menu > button[data-m] .cm-ic{width:22px;height:22px}
.cm-menu > button.is-red{color:#C2283B}
.cm-menu-x{width:100%!important;height:48px!important;margin-top:12px;border-radius:14px!important;font-size:14.5px;font-weight:600}

/* ---- v1.1.0: Instagram size — every post is 3:4, full width ---- */
.cm-feed{gap:0}
.cm-post{margin:0 0 6px!important;padding:0 0 14px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border-bottom:1px solid var(--y-line)}
.cm-one .cm-post{border-bottom:0}
.cm-media{width:100%!important;max-height:none!important;margin:0!important;border-radius:0!important;aspect-ratio:3/4!important}
.cm-media img{width:100%;height:100%;object-fit:cover}

/* the 3:4 frame when posting: drag and pinch */
.cm-crop-w[hidden],.cm-drop[hidden]{display:none}
.cm-crop{position:relative;width:min(100%,calc(min(100vh - 370px,420px) * .75));height:auto;aspect-ratio:3/4;margin:0 auto;border-radius:14px;overflow:hidden;background:#111;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.cm-crop img{position:absolute;top:0;left:0;max-width:none!important;transform-origin:0 0;will-change:transform;pointer-events:none}
.cm-grid3{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(90deg,transparent calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% + .5px),transparent calc(66.66% + .5px)),
  linear-gradient(180deg,transparent calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% - .5px),rgba(255,255,255,.35) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% - .5px),rgba(255,255,255,.35) calc(66.66% + .5px),transparent calc(66.66% + .5px));
  opacity:.7}
.cm-crop-t{display:flex!important;align-items:center;justify-content:space-between;gap:8px;margin:8px 2px 0;color:var(--y-muted);font-size:11.5px}
.cm-change{color:var(--y-accent);font-weight:700;cursor:pointer}
.cm-zoom{display:block;width:100%;margin:8px 0 0;accent-color:var(--y-accent)}
