/* GPT_STILL_MATERIAL_V8 — isolated Petal overrides; the Polaroid frame keeps its original shape. */
@font-face{font-family:Still Label;src:url('../assets/fonts/instrument-serif/InstrumentSerif-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Still Script;src:url('../assets/fonts/ballet/Ballet-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Still Editorial;src:url('../assets/fonts/CormorantGaramond-21114939.woff2') format('woff2');font-display:swap}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail){--ps-serif:'Still Editorial',Georgia,serif;--ps-label:'Still Label',Didot,serif;--ps-paper:var(--petal-paper,#fbf6ea);--ps-ink:var(--petal-ink,#493a38);--ps-muted:var(--petal-muted,#776160);--ps-edge:var(--petal-edge,#e7d8d4);--ps-pink:var(--petal-pink,#edbbcf);background-color:var(--petal-bg,#f5efdb)!important}
html[data-skin="petal"] #keptPanel .ps-wall{display:block;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail) button{touch-action:manipulation}
html[data-skin="petal"] #keptPanel .kp-scroll{scroll-behavior:smooth;padding-bottom:calc(env(safe-area-inset-bottom) + 28px);overscroll-behavior-y:contain}
html[data-skin="petal"] :is(#keptPanel,#reelDetail)::after{display:none!important}
html[data-skin="petal"] #keptPanel .kp-tools{gap:3px}
.ps-tool{display:none}
html[data-skin="petal"] .ps-tool{display:grid;place-items:center;flex:none;width:40px;min-width:40px;height:40px;padding:6px;border:0;background:none}
html[data-skin="petal"] .ps-tool img{width:21px;height:21px;object-fit:contain;filter:drop-shadow(0 2px 1px #0002)}
html[data-skin="petal"] #keptDetail #psDetailClipTool{margin-left:auto;margin-right:12px}
html[data-skin="petal"] #keptPanel :is(.kp-manage,.kp-search-btn){min-height:40px}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .kp-pin{display:none}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .kp-card{position:relative}
/* GPT_STILL_PREVIEW_CLIP_V1: chat preview uses the same small clip as the gallery. */
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#kpPreview) .ps-clip{position:absolute;top:-23px;left:var(--ps-clip-x,50%);transform:translateX(-50%) rotate(var(--ps-clip-r,0deg));width:46px;height:46px;min-height:40px;min-width:40px;z-index:4;background:none!important;border:0;padding:0;filter:drop-shadow(0 2px 1px #0004);touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#kpPreview) .ps-clip img{width:100%;height:100%;object-fit:contain;pointer-events:none}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .ps-clip.is-target{filter:drop-shadow(0 0 3px #d68cac) drop-shadow(0 2px 1px #0004)}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .ps-clip.is-target::after{content:'✓';position:absolute;right:-3px;top:2px;display:grid;place-items:center;width:14px;height:14px;font:10px/1 sans-serif;border-radius:50%;background:#b37590;color:#fff}
html[data-skin="petal"] #keptPanel .ps-photo-wall{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:32px 18px;padding:20px 0}
html[data-skin="petal"] #keptPanel .ps-entry{position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent}
html[data-skin="petal"] #keptPanel .ps-entry:focus-visible{outline:2px solid var(--petal-accent);outline-offset:6px}
html[data-skin="petal"] #keptPanel .kp-cell .kp-photo{max-height:220px;min-height:180px}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .kp-photo{gap:5px;background:color-mix(in srgb,var(--ps-paper) 76%,var(--petal-chat))}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .kp-b{flex:none}
/* GPT_STILL_CHAT_BUBBLES_V2: preserve Chat shapes and colors, with a visible edge on pale yan bubbles. */
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-b,.rl-b){font-family:var(--font-sans)!important;line-height:1.55!important;border-radius:22px!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;min-height:0!important}
html[data-skin="petal"] #reelDetail .rl-b{font-size:15px!important;padding:4px 15px!important}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .kp-b{padding:calc(var(--kp-fs)*.2666667) var(--kp-fs)!important}
html[data-skin="petal"][data-skin] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-b.u,.rl-m.u .rl-b){background:var(--bub-me,var(--petal-pink))!important;color:var(--bub-me-ink,#493a38)!important}
html[data-skin="petal"][data-skin] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-b.a,.rl-m.a .rl-b){background:var(--bub-you,var(--petal-ai))!important;color:var(--bub-you-ink,var(--petal-ai-ink))!important}
html[data-skin="petal"][data-pt-bubble="frost"] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-b.u,.rl-m.u .rl-b){background:linear-gradient(170deg,rgba(255,255,255,.35),rgba(255,255,255,0) 70%),color-mix(in srgb,var(--bub-me,var(--petal-pink)) 52%,transparent)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),0 8px 20px -12px #493a3833!important;backdrop-filter:blur(16px) saturate(1.3)!important;-webkit-backdrop-filter:blur(16px) saturate(1.3)!important}
html[data-skin="petal"][data-pt-bubble="frost"] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-b.a,.rl-m.a .rl-b){background:linear-gradient(170deg,rgba(255,255,255,.4),rgba(255,255,255,0) 65%),color-mix(in srgb,var(--bub-you,var(--petal-ai)) 58%,transparent)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 8px 22px -12px #493a3833!important;backdrop-filter:blur(16px) saturate(1.3)!important;-webkit-backdrop-filter:blur(16px) saturate(1.3)!important}
html[data-skin="petal"][data-pt-bubble="frost"][data-chat-bg="dark"] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-b,.rl-m .rl-b){box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 8px 20px -12px rgba(0,0,0,.5)!important}
html[data-skin="petal"][data-skin] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-b.a,.rl-m.a .rl-b){outline:1px solid color-mix(in srgb,var(--bub-you-ink,var(--petal-ai-ink)) 35%,transparent)!important;outline-offset:-1px}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail) .ps-quote{display:block;box-sizing:border-box;width:fit-content;max-width:100%;margin:-1px 0 0;padding:.25em .916667em .25em .75em;border:1px solid var(--border);border-radius:.916667em;background:var(--bg-elevated,rgba(255,255,255,.5));color:var(--text-secondary)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:400 12px/1.55 var(--font-sans);flex:none}
html[data-skin="petal"][data-petal-tone] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-photo,.rl-m) .ps-quote:is(.u,.a){color:var(--text-secondary)!important}
html[data-skin="petal"][data-petal-tone] :is(#keptPanel,#keptDetail,#reelDetail) :is(.kp-photo,.rl-m) .ps-quote:is(.u,.a)>span{color:var(--text-faint)!important}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail) .ps-quote.u{align-self:flex-end}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail) .ps-quote.a{align-self:flex-start}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail) .ps-quote::before{content:'';display:inline-block;width:.166667em;height:.833333em;margin-right:.583333em;vertical-align:-1px;border-radius:1px;background:var(--accent)}
html[data-skin="petal"] :is(#keptPanel,#keptDetail,#reelDetail) .ps-quote>span{margin-right:.5em;color:var(--text-faint);letter-spacing:.04em}
html[data-skin="petal"] #keptPanel .kp-cell .ps-quote{font-size:9px}
html[data-skin="petal"] :is(#keptDetail,#reelDetail) .kp-rv-new{background:var(--ps-paper)!important;border:1px solid var(--ps-edge)!important;box-shadow:0 5px 15px -12px #493a3866!important}
html[data-skin="petal"] :is(#keptDetail,#reelDetail) .kp-rv-new textarea{background:transparent!important;color:var(--ps-ink)!important;font-size:16px}
html[data-skin="petal"] :is(#keptDetail,#reelDetail) .kp-rv-new textarea::placeholder{color:var(--ps-muted)!important;font-size:13px}
html[data-skin="petal"] :is(#keptDetail,#reelDetail) .kp-rv-go{background:var(--ps-pink)!important;color:#493a38!important;box-shadow:none!important;min-width:44px;min-height:40px}
html[data-skin="petal"] #keptDetail .kp-d-scroll{padding-top:30px}
html[data-skin="petal"] #keptPanel .ps-monthbar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--ps-edge);margin-bottom:18px;padding:0 0 7px;font:italic 17px var(--ps-serif)}
html[data-skin="petal"] #keptPanel .ps-monthbar button{background:none;border:0;min-height:40px;font:italic 15px var(--ps-serif);color:var(--ps-muted)!important}
html[data-skin="petal"] #keptPanel .ps-search-month{font:italic 20px var(--ps-serif);color:var(--ps-muted)!important;font-weight:400}
html[data-skin="petal"] #keptPanel .ps-moment-stack{--ps-extra:0;--ps-expanded:0;position:relative;isolation:isolate;max-width:520px;margin:auto}
html[data-skin="petal"] #keptPanel .ps-stack-art{position:relative;width:calc(100% - 6px);aspect-ratio:1000/700;margin:18px 3px calc(var(--ps-extra)*38px + var(--ps-expanded)*70% - var(--ps-expanded)*22px + 8px);transition:margin-bottom .32s cubic-bezier(.2,.75,.2,1);isolation:isolate}
html[data-skin="petal"] #keptPanel .ps-folder{position:absolute;inset:0;top:calc(var(--ps-index)*38px);bottom:calc(var(--ps-index)*-38px);z-index:var(--ps-order);cursor:pointer;transition:transform .32s cubic-bezier(.2,.75,.2,1),filter .32s;transform:translate3d(var(--ps-shift,0px),calc(var(--ps-after-selected,0)*(100% - 22px)),0) rotate(var(--ps-turn,0deg));transform-origin:50% 70%;filter:drop-shadow(0 3px 2px #71344d24)}
html[data-skin="petal"] #keptPanel .ps-pink-paper{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-folder.selected{transform:translate3d(var(--ps-shift,0px),-14px,0) rotate(var(--ps-turn,0deg));filter:drop-shadow(0 10px 6px #71344d38);z-index:80}
html[data-skin="petal"] #keptPanel .ps-month-tab{position:absolute;left:var(--ps-tab-x);top:2%;transform:translateX(-50%);white-space:nowrap;color:#24161d!important;-webkit-text-fill-color:#24161d!important;font:400 clamp(17px,4.8vw,23px)/1 var(--ps-label);letter-spacing:-.025em;text-shadow:none!important;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-folder-face{position:absolute;inset:10% 0 0;opacity:0;transition:opacity .2s;pointer-events:none}
html[data-skin="petal"] #keptPanel :is(.ps-front,.ps-folder.selected) .ps-folder-face{opacity:1}
html[data-skin="petal"] #keptPanel .ps-folder-script{position:absolute;top:3%;left:5%;font:400 clamp(38px,12vw,68px)/1.05 'Still Script',cursive;color:#21151c!important}
html[data-skin="petal"] #keptPanel .ps-bead-word{position:absolute;left:4%;top:27%;width:92%;height:43%;object-fit:contain;filter:drop-shadow(0 1px 1px #72384b11)}
html[data-skin="petal"] #keptPanel .ps-folder-meta{position:absolute;left:5%;bottom:5%;font:400 clamp(14px,4vw,21px)/1.25 var(--ps-label);letter-spacing:-.02em;color:#24161d!important}
html[data-skin="petal"] #keptPanel .ps-folder-signature{position:absolute;right:7%;bottom:8%;font:400 clamp(30px,10vw,54px)/1.05 'Still Script',cursive;color:#21151c!important}
html[data-skin="petal"] #keptPanel .ps-camera-photo{position:static;width:60px;height:64px;object-fit:cover;border:2px solid #fffaf1;box-shadow:0 1px 2px #412b2430;transition:opacity .18s ease;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-camera-photo.changing{opacity:.55}
html[data-skin="petal"] #keptPanel .ps-camera{position:static;display:grid;place-items:center;width:72px;height:72px;min-height:40px;border:0;background:none;padding:5px;cursor:pointer;flex:none}
html[data-skin="petal"] #keptPanel .ps-camera img{width:100%;height:100%;object-fit:contain;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-camera:active{transform:scale(.985)}
html[data-skin="petal"] #keptPanel .ps-archive-caption{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:18px 0 10px;color:var(--ps-muted)!important}
html[data-skin="petal"] #keptPanel .ps-archive-caption>span{font:italic 15px var(--ps-serif);margin-right:auto}
html[data-skin="petal"] #keptPanel .ps-archive-caption>small{flex-basis:100%;text-align:right;font:7px -apple-system,sans-serif;letter-spacing:.05em;white-space:nowrap}
/* GPT_STILL_MATERIAL_V8: approved integrated white cards, retained ears, and a wider mobile cover. */
html[data-skin="petal"] #keptPanel .kp-scroll:has(.ps-reel-deck){padding-bottom:0}
html[data-skin="petal"] #keptPanel .ps-reel-deck{box-sizing:border-box;width:calc(100% + 24px);margin:0 -12px;height:calc(100dvh - 220px);padding:3px 2px calc(env(safe-area-inset-bottom) + 10px);overflow:hidden;isolation:isolate}
html[data-skin="petal"] #keptPanel .ps-reel-stage{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;isolation:isolate;touch-action:pan-y;user-select:none;-webkit-user-select:none;--ps-drag:0px}
html[data-skin="petal"] #keptPanel .ps-reel-stage:focus{outline:none}
html[data-skin="petal"] #keptPanel .ps-reel-stage:focus-visible{outline:2px solid var(--petal-accent);outline-offset:-2px;border-radius:22px}
/* GPT_REELS_TRANSPARENT_WRAP_V1: keep the shared Petal card fill off this SVG wrapper. */
html[data-skin="petal"] #keptPanel .ps-reel-card{position:absolute;top:7px;bottom:8px;left:0;width:var(--ps-card-width,calc(100% - 8px));padding:0;border:0;background:transparent!important;border-radius:0;pointer-events:none;overflow:visible;filter:drop-shadow(1.5px 2px 2px #34252e35);transform:translate3d(calc(var(--ps-x,4px) + var(--ps-shift,0px)),0,0);transition:transform .55s cubic-bezier(.22,.75,.2,1),width .55s cubic-bezier(.22,.75,.2,1);will-change:transform}
html[data-skin="petal"] #keptPanel .ps-reel-card.current{--ps-shift:var(--ps-drag)}
html[data-skin="petal"] #keptPanel .ps-reel-stage[data-drag-direction="right"] .ps-reel-card.previous{--ps-shift:var(--ps-drag)}
html[data-skin="petal"] #keptPanel .ps-reel-stage.dragging .ps-reel-card{transition:none}
html[data-skin="petal"] #keptPanel .ps-reel-paper{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-reel-paper path{fill:#fffefd}
html[data-skin="petal"] #keptPanel .ps-reel-photo{position:absolute;top:8px;bottom:8px;left:8px;width:calc(93% - 16px);overflow:hidden;border-radius:17px;background:#d8c5bd;pointer-events:auto;cursor:grab;outline-offset:-3px}
html[data-skin="petal"] #keptPanel .ps-reel-photo:active{cursor:grabbing}
html[data-skin="petal"] #keptPanel .ps-reel-photo:focus-visible{outline:2px solid var(--petal-accent)}
html[data-skin="petal"] #keptPanel .ps-reel-cover-art{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
html[data-skin="petal"] #keptPanel .ps-reel-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#24191b75 0%,#24191b10 35%,transparent 65%,#24191b77 100%);pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-reel-titles{position:absolute;top:22px;left:21px;right:15px;z-index:1;color:#fff9ef;text-shadow:0 2px 12px #271d1d50;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-reel-year{font:8px/1.3 -apple-system,sans-serif;letter-spacing:.23em;opacity:.9;margin-bottom:4px}
html[data-skin="petal"] #keptPanel .ps-reel-month{font:41px/1.06 var(--ps-label);letter-spacing:-.8px}
html[data-skin="petal"] #keptPanel .ps-reel-word{font:89px/.95 'Still Script',cursive;margin:18px 0 0 7px;transform:rotate(-7deg);transform-origin:left center}
html[data-skin="petal"] #keptPanel .ps-reel-footer{position:absolute;bottom:20px;left:21px;right:20px;z-index:1;display:flex;align-items:end;justify-content:space-between;color:#fff9ef;text-shadow:0 1px 8px #271d1d55;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-reel-footer em{font:italic 16px Georgia,serif}
html[data-skin="petal"] #keptPanel .ps-reel-footer small{font:8px/1.8 -apple-system,sans-serif;letter-spacing:.18em}
html[data-skin="petal"] #keptPanel .ps-reel-footer>span{font:24px/1 -apple-system,sans-serif}
html[data-skin="petal"] #keptPanel .ps-reel-ear{position:absolute;left:93%;width:7%;min-width:0;min-height:0;margin:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;pointer-events:auto;touch-action:pan-y}
html[data-skin="petal"] #keptPanel .ps-reel-ear:before{content:'';position:absolute;inset:0 -8px}
html[data-skin="petal"] #keptPanel .ps-reel-ear:focus-visible{outline:2px solid var(--petal-accent);outline-offset:-2px;border-radius:12px!important}
html[data-skin="petal"] #keptPanel .ps-reel-ear-label{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
html[data-skin="petal"] #keptPanel .ps-reel-ear-label text{font-family:var(--ps-label);font-size:25px;font-weight:400;letter-spacing:0;fill:#30262c}
html[data-skin="petal"] #keptPanel .ps-reel-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-height:700px){html[data-skin="petal"] #keptPanel .ps-reel-titles{top:17px}html[data-skin="petal"] #keptPanel .ps-reel-month{font-size:34px}html[data-skin="petal"] #keptPanel .ps-reel-word{font-size:72px;margin-top:13px}html[data-skin="petal"] #keptPanel .ps-reel-footer{bottom:15px}}

html[data-skin="petal"] #keptPanel .ps-ticket-wall{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:5px 0 20px}
html[data-skin="petal"] #keptPanel .ps-ticket-wall .rl-cell{transform:none}
html[data-skin="petal"] #keptPanel .ps-ticket-wall .rl-cell:active{transform:scale(.992)}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket{--ps-ticket:#ece5e2;display:grid;grid-template-columns:31% 40% 25%;gap:2%;position:relative;aspect-ratio:2.38;padding:9px 10px 9px 9px;background:var(--ps-ticket)!important;color:#39312e!important;mask:radial-gradient(9px at 0 0,#0000 98%,#000) top left,radial-gradient(9px at 100% 0,#0000 98%,#000) top right,radial-gradient(9px at 0 100%,#0000 98%,#000) bottom left,radial-gradient(9px at 100% 100%,#0000 98%,#000) bottom right;mask-size:51% 51%;mask-repeat:no-repeat;box-shadow:2px 4px 1px #493a381a;min-width:0;isolation:isolate}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket :is(div,span,small,b){color:#39312e!important}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket-info{display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:3px 0 2px}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-kicker{font:6px/1 -apple-system,sans-serif;letter-spacing:.1em;opacity:.6;margin-bottom:5px}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket-date{font:16px/1 var(--ps-serif);letter-spacing:-.03em;white-space:nowrap}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket-time{font:500 14px/1.2 var(--ps-serif);margin-top:4px}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket-title{font:400 9px/1.55 var(--font-serif,serif);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:9px;max-width:98%}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-owner{display:flex;align-items:baseline;gap:5px;margin-top:auto;padding-top:7px;font-family:var(--ps-serif)}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-owner small{font:5.5px/1 -apple-system,sans-serif;letter-spacing:.07em;opacity:.65}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-owner b{font:italic 14px/1 var(--ps-serif);font-weight:400}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket-count{font:5.5px/1 -apple-system,sans-serif;letter-spacing:.04em;opacity:.6;margin-top:5px}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket-art{width:100%;aspect-ratio:1;object-fit:cover;align-self:center;min-width:0}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-stub{position:relative;border-left:1px dotted #948f8755;margin-left:7px;padding:8px 2px 8px 10px;display:flex;justify-content:center;min-height:0}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-stub img{position:absolute;top:8px;bottom:8px;height:calc(100% - 16px);width:30px;object-fit:fill;mix-blend-mode:multiply}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-stub>small{position:absolute;left:5px;top:7px;writing-mode:vertical-rl;font:5px/1 -apple-system,sans-serif;letter-spacing:.08em}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-reel-id{position:absolute;right:-3px;top:8px;bottom:5px;writing-mode:vertical-rl;font:6px/1 var(--ps-serif);letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-notch{position:absolute;left:73%;top:-9px;width:18px;height:18px;border-radius:50%;background:var(--petal-bg)!important;z-index:5}
html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket::after{content:'';position:absolute;left:73%;bottom:-9px;width:18px;height:18px;border-radius:50%;background:var(--petal-bg)!important;z-index:5}
html[data-skin="petal"] #reelDetail #psReelTicket{margin:0 0 18px}
html[data-skin="petal"] #reelDetail .rl-d-title{font-size:20px!important;line-height:1.6!important;font-style:normal;white-space:normal;min-height:40px}
html[data-skin="petal"] #reelDetail .rl-d-meta{font:400 11px/1.9 var(--ps-serif);color:var(--ps-muted)!important}
html[data-skin="petal"] #reelDetail .rl-rod{display:none}
html[data-skin="petal"] #reelDetail .rl-d-paper{border:1px solid var(--ps-edge);border-radius:3px;box-shadow:none!important}
html[data-skin="petal"] #reelDetail .rl-m{gap:7px}
html[data-skin="petal"][data-petal-tone="dark"] #keptPanel .ps-pink-paper{filter:brightness(.88)}
html[data-skin="petal"][data-petal-tone="dark"] :is(#keptPanel,#reelDetail) .ps-ticket{--ps-ticket:#cfc0bf}
/* GPT_STILL_MATERIAL_V8 — settings sheet is outside existing keyboard/composer surfaces. */
html[data-skin="petal"] #psSettings{position:fixed;inset:0;z-index:500;display:flex;align-items:flex-end;background:#21191d66;color:var(--petal-ink,#493a38);overscroll-behavior:contain;font-family:-apple-system,BlinkMacSystemFont,sans-serif}
html[data-skin="petal"] #psSettings .ps-sheet{width:100%;max-width:600px;margin:0 auto;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;padding:10px 22px calc(env(safe-area-inset-bottom) + 22px);border-radius:27px 27px 0 0;background:var(--petal-paper,#fbf6ea);box-shadow:0 -10px 35px #0002;animation:psSheetIn .24s ease-out;scrollbar-width:thin}
html[data-skin="petal"] #psSettings .ps-handle{width:34px;height:4px;border-radius:3px;background:var(--petal-edge);margin:0 auto 12px}
html[data-skin="petal"] #psSettings button{min-height:40px;touch-action:manipulation;cursor:pointer;color:inherit;border:0;background:none;font:inherit}
html[data-skin="petal"] #psSettings button:focus-visible{outline:2px solid var(--petal-accent);outline-offset:2px}
html[data-skin="petal"] #psSettings .ps-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
html[data-skin="petal"] #psSettings h2{font:italic 29px/1 'Still Editorial',Georgia,serif;font-weight:400;margin:0}
html[data-skin="petal"] #psSettings .ps-sheet-head>button{font-size:23px;width:44px}
html[data-skin="petal"] #psSettings .ps-sheet-tabs{display:flex;gap:24px;border-bottom:1px solid var(--petal-edge);margin-bottom:14px}
html[data-skin="petal"] #psSettings .ps-sheet-tabs button{position:relative;font-size:12px;padding:5px 3px;opacity:.65}
html[data-skin="petal"] #psSettings .ps-sheet-tabs .on{opacity:1}
html[data-skin="petal"] #psSettings .ps-sheet-tabs .on::after{content:'';position:absolute;bottom:-1px;height:2px;background:var(--petal-accent);left:0;right:0}
html[data-skin="petal"] #psSettings p{font-size:11px;line-height:1.9;color:var(--petal-muted);margin:0 0 15px}
html[data-skin="petal"] #psSettings .ps-clip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:43dvh;overflow-y:auto;padding:3px}
html[data-skin="petal"] #psSettings .ps-clip-grid button{display:grid;place-items:center;gap:6px;min-height:98px;padding:10px 3px 8px;background:var(--petal-bg);border:1px solid var(--petal-edge);border-radius:15px}
html[data-skin="petal"] #psSettings .ps-clip-grid button.chosen{border-color:var(--petal-accent);box-shadow:inset 0 0 0 1px var(--petal-accent)}
html[data-skin="petal"] #psSettings .ps-clip-grid img{width:59px;height:56px;object-fit:contain;filter:drop-shadow(0 2px 1px #0002)}
html[data-skin="petal"] #psSettings .ps-clip-grid span{font-size:10px}
html[data-skin="petal"] #psSettings .ps-done{width:100%;margin-top:19px;border-radius:24px;background:var(--petal-pink);color:#493a38;font-size:13px;min-height:44px}
html[data-skin="petal"] #psSettings .ps-cover-tabs{display:flex;gap:5px;padding:4px;background:var(--petal-bg);border-radius:11px;margin-bottom:14px}
html[data-skin="petal"] #psSettings .ps-cover-tabs button{flex:1;font-size:10px;border-radius:8px;padding:3px}
html[data-skin="petal"] #psSettings .ps-cover-tabs button.on{background:var(--petal-paper);box-shadow:0 1px 4px #493a3811}
html[data-skin="petal"] #psSettings .ps-upload-row{display:flex;align-items:center;gap:13px;padding:10px;border:1px solid var(--petal-edge);border-radius:15px;margin:12px 0}
html[data-skin="petal"] #psSettings .ps-upload-preview{position:relative;width:58px;height:78px;flex:none}
html[data-skin="petal"] #psSettings .ps-upload-preview.square{width:64px;height:64px}
html[data-skin="petal"] #psSettings .ps-upload-preview img{width:100%;height:100%;object-fit:cover;border-radius:4px}
html[data-skin="petal"] #psSettings .ps-upload-preview small{position:absolute;left:-3px;top:-5px;padding:3px 5px;font:10px/1 'Still Editorial',Georgia,serif;background:var(--petal-paper);border:1px solid var(--petal-edge);border-radius:3px}
html[data-skin="petal"] #psSettings .ps-upload-info{min-width:0;flex:1}
html[data-skin="petal"] #psSettings .ps-upload-info>span{display:block;font:17px/1.4 'Still Editorial',Georgia,serif;overflow-wrap:anywhere}
html[data-skin="petal"] #psSettings .square+.ps-upload-info>span{font:11px/1.6 -apple-system,sans-serif}
html[data-skin="petal"] #psSettings .ps-upload-info>button{font-size:9px;text-decoration:underline;padding:0;color:var(--petal-muted)}
html[data-skin="petal"] #psSettings .ps-upload-control{position:relative;display:grid;place-items:center;min-width:46px;min-height:44px;border-radius:22px;background:var(--petal-pink);font-size:11px;color:#493a38;overflow:hidden;padding:0 10px}
html[data-skin="petal"] #psSettings .ps-upload-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
html[data-skin="petal"] #psSettings .ps-month-select{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--petal-muted);margin-bottom:18px}
html[data-skin="petal"] #psSettings select{min-width:0;flex:1;font:16px 'Still Editorial',Georgia,serif;min-height:42px;border:1px solid var(--petal-edge);border-radius:8px;background:var(--petal-bg);color:var(--petal-ink);padding:8px 12px}
@keyframes psSheetIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html[data-skin="petal"] :is(#keptPanel,#psSettings) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:370px){html[data-skin="petal"] #keptPanel .kp-tools{gap:0}html[data-skin="petal"] #keptPanel .ps-month-tab{font-size:13px}html[data-skin="petal"] :is(#keptPanel,#reelDetail) .ps-ticket-date{font-size:14px}}

/* GPT_STILL_MATERIAL_V8: quotes follow the owner-facing Polaroid bubble direction. */
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .kp-card.pov-me .ps-quote.u{align-self:flex-start}
html[data-skin="petal"] :is(#keptPanel,#keptDetail) .kp-card.pov-me .ps-quote.a{align-self:flex-end}
/* GPT_STILL_MATERIAL_V8: short composited transitions, with reduced-motion fallback. */
html[data-skin="petal"] #keptPanel .ps-gallery{animation:psGalleryIn .22s ease-out both}
@keyframes psGalleryIn{from{opacity:0;transform:translate3d(0,5px,0)}to{opacity:1;transform:translate3d(0,0,0)}}

/* GPT_STILL_MATERIAL_V8: compact transparent tabs and Petal stationery controls. */
html[data-skin="petal"] #keptPanel .kp-top{padding-top:calc(env(safe-area-inset-top) + 3px)!important;padding-bottom:0!important}
html[data-skin="petal"] #keptPanel .kp-scroll>.hdr-in{margin-bottom:-4px!important}
html[data-skin="petal"] #keptPanel #kpTabs{background:none!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;margin-top:0!important;padding:0 16px 3px!important;min-height:40px}
html[data-skin="petal"] #keptPanel #kpTabs::before{display:none!important}
html[data-skin="petal"] #keptPanel #kpTabs::after{display:none!important}
html[data-skin="petal"] #keptPanel #kpTabs .kp-tab{background:transparent!important;background-image:none!important;box-shadow:none!important;min-height:40px;padding-top:2px;padding-bottom:6px}
html[data-skin="petal"] #keptDetail #kpPen{background:var(--petal-pink)!important;background-image:none!important;color:#684555!important;border:1px solid var(--petal-edge)!important;box-shadow:0 4px 14px #8b52682b!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;width:46px;height:46px}
html[data-skin="petal"] #keptDetail #kpPen svg{color:inherit!important}
html[data-skin="petal"] #kpWrite .kp-sheet{background:var(--petal-paper)!important;background-image:none!important;color:var(--petal-ink)!important;border:1px solid var(--petal-edge);box-shadow:0 12px 36px #493a382b!important}
html[data-skin="petal"] #kpWrite :is(.kp-sheet-h,.kp-ta,.kp-ta-n,.kp-thread,.kp-tl,.kp-tl-t){color:var(--petal-ink)!important}
html[data-skin="petal"] #kpWrite .kp-ta{background:var(--petal-bg)!important;border:1px solid var(--petal-edge)!important;font-size:16px}
html[data-skin="petal"] #kpWrite .kp-btn{background:var(--petal-pink)!important;color:#493a38!important;box-shadow:none!important;min-height:40px}
html[data-skin="petal"] #kpWrite .kp-btn-ghost{color:var(--petal-muted)!important;min-height:40px}
