/* refinement pass: spacing, type, press states. No layout or colour changes. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"kern","liga"}
:focus-visible{outline:2px solid #e93795;outline-offset:2px;border-radius:10px}
button,.fb-pill,.tag,.filters button,.header-actions a,.header-actions button,nav.bottom button{-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:transform .16s cubic-bezier(.2,.8,.2,1),background-color .2s ease,box-shadow .2s ease,opacity .2s ease,color .2s ease}
button:active,.fb-pill:active,.filters button:active,.header-actions a:active,.header-actions button:active{transform:scale(.96)}
nav.bottom button:active{transform:scale(.92)}
@media(hover:hover){.fb-pill:hover{background:#e8eaed!important}.filters button:hover,.header-actions a:hover,.header-actions button:hover{box-shadow:0 2px 10px #e9379522}}
header{backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);box-shadow:0 1px 0 #f0e3e8,0 6px 20px -12px #4921361f}
.brand{letter-spacing:-.2px;font-weight:700}
.header-actions{gap:8px}
.header-actions a,.header-actions button{border-radius:999px;font-weight:600;letter-spacing:.1px}
.hero{border-radius:24px;box-shadow:0 14px 34px -18px #e9379566}
.hero h1{letter-spacing:-.6px;line-height:1.08;text-wrap:balance}
.hero p{line-height:1.5;opacity:.96}
.filters button{border-radius:999px;line-height:1.1}
.tag{letter-spacing:1.6px;font-weight:700;font-size:11.5px}
.explore-head h2,.layout h2{letter-spacing:-.4px;line-height:1.15;text-wrap:balance}
.story-heading{font-weight:700;letter-spacing:-.1px}
.ig-ring-lg{transition:transform .2s cubic-bezier(.2,.8,.2,1)}.ig-story:active .ig-ring-lg{transform:scale(.94)}
body .layout:not(.explore-layout) .post{margin:0 0 8px;box-shadow:0 1px 0 #f0e3e8}
.post-top{padding-top:12px;padding-bottom:10px}
.post-top .avatar{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #f4cbdb}
.body{padding-top:4px}
.actions{gap:10px;padding:12px 0 8px}
.fb-pill{height:42px;font-size:14.5px;letter-spacing:.1px}
.fb-pill:active{background:#e1e3e7!important}
.fb-summary{font-size:13.5px;color:#65676b}
.post-meta{gap:4px 14px;font-size:12.5px;line-height:1.5;color:#6a6d73;padding-bottom:8px}
.post-meta button{color:#6a6d73;text-underline-offset:2px}
.post-hashtags{line-height:1.7;font-size:14px}
.ai-badge{border-radius:999px;font-weight:600;letter-spacing:.2px}
.media,.gallery-slide{border-radius:0}
.vs-bar,.vs-mute,.vs-full{transition:opacity .25s ease,transform .16s ease}
nav.bottom{backdrop-filter:saturate(1.5) blur(16px);-webkit-backdrop-filter:saturate(1.5) blur(16px)}
nav.bottom button{font-weight:600;letter-spacing:.1px}
nav.bottom button.active{font-weight:700}
.creator-panel,.detail-close,.settings-section{transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.2,1)}
.status{font-size:13px;line-height:1.5}
/* motion layer: CSS only, transform/opacity only, ease-out curves, 180-380ms */
:root{--ease:cubic-bezier(.22,.8,.3,1);--spring:cubic-bezier(.3,1.45,.5,1)}
@keyframes cp-rise{from{opacity:0;transform:translate3d(0,14px,0)}}
@keyframes cp-fade{from{opacity:0}}
@keyframes cp-view{from{opacity:0;transform:translate3d(0,10px,0)}}
@keyframes cp-pop{0%{transform:scale(1)}35%{transform:scale(1.32) rotate(-6deg)}70%{transform:scale(.92)}100%{transform:scale(1)}}
@keyframes cp-sheet{from{opacity:0;transform:translate3d(0,22px,0) scale(.97)}}
@keyframes cp-scrim{from{opacity:0}}
@keyframes cp-tick{from{opacity:0;transform:translate3d(0,6px,0)}}
.layout .post,.discovery-tile{animation:cp-rise .42s var(--ease) both}
.layout .post:nth-child(2){animation-delay:.04s}.layout .post:nth-child(3){animation-delay:.08s}
.media img,.gallery-slide img,.discovery-tile img,.ig-story img,.post-top .avatar img{animation:cp-fade .4s ease both}
.layout:not([hidden]),.explore-layout:not([hidden]),.market-preview:not([hidden]),.settings-view:not([hidden]){animation:cp-view .32s var(--ease) both}
.hero{animation:cp-rise .5s var(--ease) both}
.ig-story{animation:cp-rise .4s var(--ease) both}.ig-story:nth-child(2){animation-delay:.03s}.ig-story:nth-child(3){animation-delay:.06s}.ig-story:nth-child(4){animation-delay:.09s}.ig-story:nth-child(5){animation-delay:.12s}
.fb-pill.fb-on .fb-ic,.fb-pill.fb-on .fb-emoji,.fb-pill.fb-on svg,.ig-save.saved svg,.discovery-tile.saved svg{animation:cp-pop .4s var(--spring)}
.fb-n{animation:cp-tick .24s var(--ease) both}
dialog.creator-panel[open]{animation:cp-sheet .3s var(--ease) both}
dialog.creator-panel[open]::backdrop{animation:cp-scrim .25s ease both}
.kb-sheet{transition:transform .32s var(--ease)}
.kb-scrim{transition:opacity .26s ease}
.kb-row{transition:background-color .15s ease,transform .15s var(--ease)}.kb-row:active{transform:scale(.985)}
.ig-ring-lg,.ig-ring{transition:transform .25s var(--ease)}
.discovery-tile{transition:transform .2s var(--ease),opacity .2s ease}.discovery-tile:active{transform:scale(.97)}
.vs-ui,.vs-center,.vs-bar{transition:opacity .28s ease}
nav.bottom button{transition:transform .2s var(--ease),color .2s ease,background-color .2s ease}
nav.bottom button svg,nav.bottom button .ico{transition:transform .28s var(--spring)}nav.bottom button.active svg,nav.bottom button.active .ico{transform:translateY(-1px) scale(1.08)}
.hero-dots *,.hero-dots span,.hero-dots i{transition:width .3s var(--ease),background-color .3s ease,opacity .3s ease}
.status:not(:empty),.toast{animation:cp-tick .28s var(--ease) both}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}}
.cp-coll{padding:10px 14px 4px}.cp-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0 8px}.cp-chips::-webkit-scrollbar{display:none}
.cp-chip{flex:0 0 auto;border:0;border-radius:999px;background:#f1f2f4;color:#4b4f56;font:600 14px/1 system-ui,sans-serif;padding:11px 16px;cursor:pointer}
.cp-chip.on{background:#fde8f1;color:#c92a79}.cp-new{background:#fff;box-shadow:inset 0 0 0 1px #ead9e1}
.cp-note{display:block;font-size:12px;line-height:1.5;color:#6a6d73;padding:0 2px 4px}.cp-del{background:none;border:0;color:#b3261e;font-size:13px;padding:6px 2px;cursor:pointer}
.cp-add{margin-left:auto;border:0;border-radius:999px;background:#f1f2f4;color:#4b4f56;font:600 13px/1 system-ui,sans-serif;padding:10px 14px;cursor:pointer}
.cp-form{display:flex;gap:8px;padding:12px 14px}.cp-form input{flex:1;min-width:0;border:1px solid #ead9e1;border-radius:12px;padding:11px 12px;font-size:16px;background:#fff;color:#3b2431}
.cp-facets{padding:6px 14px 2px}.cp-frow{display:flex;align-items:center;gap:8px;margin:0 0 2px}.cp-flabel{flex:0 0 auto;font:700 11px/1 system-ui,sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#6a6d73;width:62px;white-space:normal;line-height:1.25}
.cp-frow .cp-chips{flex:1;min-width:0}.cp-facets .cp-chip{padding:9px 13px;font-size:13px}
.ck{position:fixed;inset:0;z-index:1200;background:#fff;color:#3b2431;overflow:auto;padding:max(14px,env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));animation:cp-sheet .3s var(--ease) both;transition:opacity .22s ease}
.ck-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.ck-head b{font:700 13px/1 system-ui,sans-serif;letter-spacing:.8px;text-transform:uppercase;color:#a3335d}
.ck-x{border:0;border-radius:999px;background:#fde8f1;color:#c92a79;font:600 14px/1 system-ui,sans-serif;padding:11px 18px}
.ck h2{font:26px/1.2 Georgia,serif;margin:8px 0 14px}.ck h3{font:700 13px/1 system-ui,sans-serif;letter-spacing:.7px;text-transform:uppercase;color:#6a6d73;margin:20px 0 8px}
.ck-row{display:flex;gap:12px;align-items:flex-start;padding:13px 2px;border-bottom:1px solid #f4e3ea;font-size:19px;line-height:1.4;transition:opacity .2s ease}.ck-row input{width:24px;height:24px;margin-top:2px;accent-color:#e93795;flex:0 0 auto}.ck-row.done{opacity:.45;text-decoration:line-through}
.ck-empty{font-size:17px;line-height:1.55;color:#4b4f56}.ck textarea{width:100%;box-sizing:border-box;border:1px solid #ead9e1;border-radius:12px;padding:12px;font-size:17px;line-height:1.4;font-family:inherit;margin-bottom:8px}.ck-foot{display:block;margin-top:22px;font-size:12px;color:#6a6d73}
header .brand>img:not(.cp-logo){display:none!important}header .brand .cp-logo{width:34px!important;height:34px!important;border-radius:50%;object-fit:cover;margin-right:8px;box-shadow:0 0 0 2px #fff,0 0 0 3.5px #f4cbdb}
header .brand span{font-size:17px!important;font-weight:700;letter-spacing:-.2px}
.cp-menu{flex:0 0 auto;width:42px;height:42px;border:0;border-radius:50%;background:#f1f2f4;color:#3b2431;display:grid;place-items:center;margin-left:8px;padding:0;cursor:pointer}
nav.bottom button.cp-hide-nav{display:none!important}nav.bottom:has(.cp-hide-nav){grid-template-columns:repeat(4,minmax(0,1fr))}
.ps-card{border:1px solid #f0e3e8;border-radius:18px;overflow:hidden;background:#fff;padding-bottom:14px;text-align:center}.ps-banner{height:110px;background:#fde8f1 center/cover no-repeat}
.ps-av{width:76px;height:76px;border-radius:50%;margin:-38px auto 6px;border:3px solid #fff;background:#f16a2a;color:#fff;display:grid;place-items:center;font:700 28px system-ui;overflow:hidden}.ps-av img{width:100%;height:100%;object-fit:cover}
.ps-name{display:block;font-size:18px}.ps-bio{font-size:14px;line-height:1.5;margin:6px 16px 4px;color:#4b4f56}.ps-link{font-size:14px;color:#c92a79;word-break:break-all}
.ps-f{display:block;margin:16px 0 0}.ps-f>span{display:block;font:700 12px/1 system-ui;letter-spacing:.5px;text-transform:uppercase;color:#6a6d73;margin-bottom:8px}.ps-f input[type=text],.ps-f input[type=url],.ps-f textarea{width:100%;box-sizing:border-box;border:1px solid #ead9e1;border-radius:12px;padding:12px;font-size:16px;font-family:inherit}
.ps-file{display:flex;gap:10px;align-items:center}.ps-file input{flex:1;min-width:0;font-size:14px}.ps .cp-chip{margin-top:14px}.ps-file .cp-chip{margin:0}.ps-msg{min-height:20px;font-size:14px;color:#a3335d;margin:10px 0 0}.ps-prev{margin:10px 0 4px}
header .brand .cp-logo{cursor:pointer;transition:transform .16s var(--ease)}header .brand .cp-logo:active{transform:scale(.92)}
header .cp-hide-act{display:none!important}header .brand{min-width:0;flex:1 1 auto;white-space:nowrap}header .header-actions{flex:0 0 auto}
header .brand:has(.cp-logo) span{font-size:15px!important}header .brand .cp-logo{width:30px!important;height:30px!important;margin-right:7px}.cp-menu{margin-left:4px;width:40px;height:40px}header .header-actions{gap:6px}
.ps-soc{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:8px 12px 0}.ps-chip{background:#f1f2f4;color:#4b4f56;border-radius:999px;padding:7px 12px;font:600 13px/1 system-ui,sans-serif;text-decoration:none}
.ps-socrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #f0e3e8;border-radius:12px;margin-bottom:8px;font-size:14px;word-break:break-all}.ps-x{border:0;background:none;color:#b3261e;font-size:13px;flex:0 0 auto}
.ps-socadd{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ps-socadd select{border:1px solid #ead9e1;border-radius:12px;padding:11px;font-size:15px;background:#fff}.ps-socadd input{flex:1;min-width:120px;border:1px solid #ead9e1;border-radius:12px;padding:12px;font-size:16px}.ps-socadd .cp-chip{margin-top:0}
.story-strip.cp-shelf{max-width:none;margin:10px 12px;padding:14px 12px 12px;background:#fff;border:1px solid #f0e3e8;border-radius:18px}
.cp-shelf .story-heading{font-size:17px;font-weight:700;color:#3d1f2e;margin-bottom:12px;gap:8px;justify-content:flex-start}
.cp-shelf .story-heading b{flex:1}.cp-shelf-ic{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(120deg,#F16A2A,#E93795);color:#fff;font-size:16px;line-height:1}
.cp-shelf .story-heading button{font-size:12px;padding:7px 12px;border-radius:999px}
#story-items{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
#story-items .story-empty{grid-column:1/-1;justify-self:start;font-size:13px;color:#7a6470}


.cp-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cp-more{background:none;border:0;padding:2px 0 6px;color:#a52c59;font:600 13px system-ui;cursor:pointer}
.cp-ib{display:flex;align-items:center;gap:10px;margin:8px 12px;padding:10px 12px;border:1px solid #f0e3e8;border-radius:16px;background:linear-gradient(110deg,#fff1e7,#ffe4f0);transition:opacity .25s}
.cp-ib-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.cp-ib-t b{font-size:14px;color:#3d1f2e}.cp-ib-t small{font-size:12px;color:#6b4a5a;line-height:1.3}
.cp-ib-go{border:0;border-radius:999px;padding:8px 14px;background:linear-gradient(120deg,#F16A2A,#E93795);color:#fff;font:700 13px system-ui}
.cp-ib-x{border:0;background:none;font-size:22px;line-height:1;color:#7a6470;padding:4px 6px}

.cp-shelf .story-person{position:relative;display:block;padding:0;border:0;border-radius:18px;overflow:hidden;aspect-ratio:2/3;width:100%;background:#2b2024;color:#fff;text-align:left;cursor:pointer;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.cp-shelf .story-person:active{transform:scale(.97)}
.cp-shelf .story-person img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cp-shelf .story-person::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0) 55%)}
.cp-shelf .story-person .cp-sc-t{position:absolute;left:12px;right:12px;bottom:12px;z-index:1;display:flex;flex-direction:column;gap:3px}
.cp-shelf .story-person .cp-sc-t b{font:600 15px/1.25 system-ui;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cp-shelf .story-person .cp-sc-t small{font:500 12px system-ui;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-shelf .story-person .cp-sc-new{position:absolute;top:10px;left:10px;z-index:1;background:rgba(0,0,0,.55);color:#fff;border-radius:6px;padding:4px 8px;font:700 12px system-ui}
#ig-stories,.ig-stories{display:none!important}
.cp-shelf .story-person{min-width:0;max-width:none}
.cp-shelf .story-person span.cp-sc-new{display:block;width:auto;height:auto;border:0;border-radius:6px;background:rgba(0,0,0,.55);margin:0;color:#fff;font:700 12px system-ui;padding:4px 8px}
.cp-shelf .story-person span.cp-sc-t{display:flex;width:auto;height:auto;border:0;border-radius:0;background:none;margin:0;color:#fff;font:inherit;text-align:left}
.cp-shelf .story-person .cp-sc-t small{display:block;font-size:12px;margin:0;color:#fff;opacity:.85}
/* shorts-style shelf (matches owner YouTube reference): 2 equal 2:3 cards, tight 8px gap, 12px side margin, no outer box */
.cp-shelf{margin:8px 0;padding:12px 12px 4px;border:0;border-radius:0;background:transparent}
.cp-shelf .story-heading{padding:0;margin-bottom:12px}
.cp-shelf #story-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;overflow:visible}
.cp-shelf .story-person{aspect-ratio:2/3;border-radius:14px;width:100%;flex:none}
.cp-shelf .story-person .cp-sc-t small{display:none}
.cp-shelf .story-person .cp-sc-t b{font-weight:500;font-size:15px}
