#composer,#contactsDialog,#accountMenu{width:min(420px,94vw);border-radius:24px;background:#111b1d;color:#fafffd;padding:26px}dialog form[method=dialog]{float:right}#composer small,#contactsDialog small,.liveStories{font-size:.74rem;letter-spacing:.12em;color:#8bd9ba}#storyPreview{aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:radial-gradient(at 10% 0,#225448,#101918);color:#b6c9c3}#storyPreview img,#storyPreview video{width:100%;height:100%;max-height:32vh;object-fit:contain}.sourceActions,.storyActions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.sourceActions>*{flex:1;padding:12px;text-align:center;border-radius:12px;cursor:pointer;background:#253732}.reader{width:100%;height:100%;overflow:hidden!important}.storyStage{position:relative;isolation:isolate;height:100%;max-width:680px;margin:auto;display:flex;flex-direction:column;justify-content:space-between;background:#08130f;color:white}.storyStage>video,.storyStage>img{position:absolute;width:100%;height:100%;object-fit:contain;inset:0;z-index:-2}.storyStage>header,.storyStage>section{background:linear-gradient(#0009,transparent);padding:20px}.storyStage>section{margin-top:auto;background:linear-gradient(transparent,#000d);z-index:2}.storyStage progress{width:100%;height:3px;accent-color:white}.storyStage header small{margin-left:12px}.tapZone{position:absolute;top:18%;height:52%;width:27%;background:transparent!important}.tapZone.prev{left:0}.tapZone.next{right:0}.storyActions button{border-radius:18px;background:#21392ede;color:white}.storyStage h2{font-size:clamp(1.2rem,3vw,2rem)}#closeStory{z-index:5}#contactsDialog button,#savedPeople button{display:block;margin:6px 0}#roomInfo,#options,#accountMenu{transform-origin:top right}#highlights .tile small{letter-spacing:.06em}#publisherNote{color:#9fb9ae}

#options:not([hidden]){position:absolute;z-index:6;right:12px;top:62px;display:block;max-height:min(68vh,560px);width:min(310px,88vw);overflow:auto;background:#152024;border:1px solid #35413d;border-radius:18px;box-shadow:none;padding:8px}#conversation{position:relative}#options details{padding:5px}#options summary{cursor:pointer;padding:8px;font-weight:600}#options button{display:block;width:100%;text-align:left;background:none;color:inherit}#accountMenu #archiveRoom{display:none}#highlights header img{margin-right:8px}#highlights header h1{font-size:clamp(16px,2vw,23px)}
#controls:has(#highlights:not([hidden])){display:block;height:100dvh;background:#050708}#controls:has(#highlights:not([hidden]))>nav{display:none}#highlights:not([hidden]){height:100%;padding:0;position:relative;display:block;overflow:hidden;background:#060909}#highlights .reelHead{position:absolute;inset:0 0 auto;max-width:min(100%,56.25dvh);margin:auto;z-index:4;background:linear-gradient(#000a,transparent);border:none;display:flex;align-items:center;gap:12px;padding:max(14px,env(safe-area-inset-top)) 14px 28px;color:white}.reelHead strong{font-size:.85rem}.reelHead #writeStory{margin-left:auto;background:#ffffff21;border:1px solid #ffffff70;border-radius:50%;width:38px;height:38px;padding:0;color:white;font-size:24px}.reelHead #reelBack{color:white;font-size:32px}
#highlights #cards{position:relative;height:100%;max-width:none;margin:0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none}#cards .reel{position:relative;display:block;width:100%;height:100%;min-height:100%;padding:0;background:#060909;scroll-snap-stop:always}#cards .reel:after{display:none}.reelFrame{position:absolute;inset:0;margin-inline:auto;height:100%;width:min(100%,56.25dvh);overflow:hidden;background:radial-gradient(at 30% 20%,#24443b,#08120f);isolation:isolate;color:white}.reelVisual{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;z-index:-2}.reelFrame:after{content:'';pointer-events:none;position:absolute;inset:35% 0 0;z-index:-1;background:linear-gradient(transparent,#0002 35%,#000b)}
.reelFooter{position:absolute;left:18px;right:78px;bottom:max(30px,env(safe-area-inset-bottom));text-align:left}.reelAuthor{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.reelAvatar{width:35px;height:35px;display:grid;place-items:center;border:2px solid #66f7b7;border-radius:50%;background:#16382b;font-weight:700}.reelFollow{background:#0003;color:white;border:1px solid #ffffff80;border-radius:8px;font-size:12px;padding:5px 9px}.reelCaption{margin:10px 0 0;font-size:15px;line-height:1.45}.reelRail{position:absolute;bottom:30px;right:10px;display:grid;gap:12px;justify-items:center}.reelTool{padding:0;background:none!important;color:white;display:grid;place-items:center;gap:4px;min-width:48px;border:0;filter:none}.reelTool svg{width:29px;height:29px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;fill:none}.reelTool span{font-size:11px;font-weight:650}.reelTool.isLiked svg{fill:#16e994;color:#16e994}.reelProgress{position:absolute;bottom:0;left:0;width:100%;height:3px;accent-color:#31dd94}.reelFrame button:focus-visible{outline:2px solid white}#highlights #moreStories{position:absolute;bottom:8px;left:8px}
@media(max-width:700px){#highlights .reelHead,.reelFrame{max-width:none;width:100%}}@media(prefers-reduced-motion:no-preference){.reelVisual{animation:reel-in .24s ease-out}.reelTool.isLiked svg{animation:reel-pop .25s ease-out}@keyframes reel-in{from{opacity:.45}to{opacity:1}}@keyframes reel-pop{50%{transform:scale(1.15)}}}

#reelMenu{color:white;font-size:23px;background:transparent;width:32px}
#highlights .reelHead{pointer-events:none;background:none}#highlights #writeStory{pointer-events:auto;background:none;margin:0;border:0;color:white;font:300 38px/1 system-ui;text-shadow:0 2px 5px #0009}.reelAuthor{flex-wrap:nowrap}.reelAuthor strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reelFollow,.reelAvatar{flex-shrink:0}.seenCount{display:block;color:#ddd}.reelComments header,#composer header,#myProfile header,.profileBar,.studioStrip{display:flex;align-items:center;justify-content:space-between;gap:8px}.profileGrid,.assetGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.profileGrid button,.assetGrid button{aspect-ratio:1;padding:0;overflow:hidden}.profileGrid img,.profileGrid video,.assetGrid img,.assetGrid video,.reelAvatar img{width:100%;height:100%;object-fit:cover}.profileBar{flex-wrap:wrap}.reelAvatar{overflow:hidden}.reelComments section{max-height:50dvh;overflow:auto}.reelComments form{display:flex}.reelComments form input{min-width:0;flex:1}
#composer[open]{width:min(100vw,510px);max-height:92dvh;overflow:auto;padding:16px;border-radius:24px;background:#0d1217;color:white}#composer header{position:sticky;top:-16px;background:#0d1217;z-index:4;padding:10px 0}#composer header button{background:none;color:white}#composer header button:last-child{color:#63eeab}.cropStage{aspect-ratio:9/16;height:min(42dvh,480px);margin:auto;position:relative;overflow:hidden;touch-action:none;background:#191f24}.cropStage img,.cropStage video{width:100%;height:100%;object-fit:cover}.typeLayer{position:absolute;top:46%;left:6%;right:6%;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;color:white;font:700 clamp(20px,4vw,32px)/1.14 system-ui;text-shadow:0 1px 5px black;pointer-events:none}.studioStrip{padding:8px 0}.assetGrid{grid-template-columns:repeat(4,1fr);max-height:16dvh;overflow:auto}.galleryFull .cropStage,.galleryFull .studioTools{display:none}.galleryFull .assetGrid{max-height:72dvh;min-height:50dvh;align-content:start}.studioTools label,.publishSettings label{display:grid;gap:6px;margin:12px 0}.studioTools [hidden],#composer [hidden]{display:none!important}.studioTools output{font-variant-numeric:tabular-nums}.uploadIsland:not([hidden]){position:fixed;z-index:100;top:max(7px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);border-radius:44px;padding:10px 22px;background:#060908;color:#98ffd0;box-shadow:none;font:600 14px system-ui}.reelComments{min-width:min(86vw,360px)}@media(prefers-reduced-motion:no-preference){.uploadIsland:not([hidden]),#composer[open]{animation:studioEnter .32s cubic-bezier(.18,.82,.22,1)}@keyframes studioEnter{from{opacity:.4;translate:0 22px}to{opacity:1;translate:0 0}}}

#controls:has(#highlights:not([hidden])){display:flex;flex-direction:column}#controls:has(#highlights:not([hidden]))>nav{display:flex;position:static;order:2;flex-direction:row;width:100%;height:54px;align-items:center;justify-content:space-evenly;flex:none}#controls:has(#highlights:not([hidden]))>nav img{display:none}#highlights:not([hidden]){flex:1;min-height:0;width:100%}.reelHead #writeStory{line-height:1}#accountMenu[open]{border-radius:24px;padding:24px;width:min(90vw,390px)}#accountMenu label{display:grid;gap:6px;margin-block:14px}#accountMenu #tabCalls,#accountMenu #signOut{display:block;width:100%;text-align:left;padding:12px 16px}

@media(prefers-reduced-motion:no-preference){.uploadIsland:not([hidden]){transform-origin:50% 0;animation:vipesArrive 1.18s cubic-bezier(.18,.82,.2,1) both}.uploadIsland.leaving:not([hidden]){animation:vipesLeave .62s ease-in both}@keyframes vipesArrive{0%{transform:translate(-50%,-65px) scale(.16,.18);opacity:0}48%{transform:translate(-50%,2px) scale(1.018,.94);opacity:1}63%{transform:translate(-50%,-1px) scale(.985,1.035)}82%{transform:translate(-50%,0) scale(1.006,.995)}100%{transform:translate(-50%,0) scale(1)}}@keyframes vipesLeave{0%{transform:translate(-50%,0)}35%{transform:translate(-50%,1px) scale(1.01,.985)}100%{transform:translate(-50%,-65px) scale(.18,.2);opacity:0}}}
#accountMenu details{margin:.4rem 0;border-radius:14px;background:#ffffff08;padding:12px}#accountMenu summary{list-style:none;font-weight:600}#accountMenu .settingsLine{display:flex;align-items:center;gap:12px}#accountMenu .settingsLine span{width:24px;color:#9ed6ba}#myProfile header .reelAvatar{width:62px;height:62px}

.reelFrame .reelVolume{position:absolute;top:76px;left:16px;font-size:11px}.reelFrame .centerPlayback{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#0004!important;width:44px;height:44px;border-radius:50%;opacity:0}.centerPlayback:focus-visible,.reelFrame:hover .centerPlayback,.reelFrame:focus-within .centerPlayback{opacity:1}.reelFrame .centerPlayback:active{transform:translate(-50%,-50%) scale(.96)}
@media(prefers-reduced-motion:no-preference){.cropStage{max-height:48dvh;transition:max-height .27s cubic-bezier(.18,.82,.22,1),opacity .22s}.galleryFull .cropStage{display:block;max-height:0;opacity:0}.assetGrid{transition:max-height .3s ease}}

.reelFrame .reelVolume{top:calc(50% - 82px);left:50%;transform:translateX(-50%);opacity:0}.reelFrame:hover .reelVolume,.reelFrame:focus-within .reelVolume{opacity:1}@media(hover:none){.reelFrame .reelVolume{opacity:.85}}
#mainActions{position:fixed;inset:auto;margin:0;padding:5px;width:min(220px,calc(100vw - 16px));border:1px solid #ffffff12;border-radius:13px;background:#20282c;color:#f2f5f5;box-shadow:none;transform-origin:top right}
#mainActions button,#accountMenu .prefRow{background:transparent;color:inherit;display:block;width:100%;min-height:43px;padding:8px 14px;border-radius:7px;text-align:start;font-size:15px}
#mainActions button:is(:hover,:focus-visible),#accountMenu .prefRow:hover{background:#ffffff0f}#mainActions button:last-child{margin-top:4px;border-top:1px solid #ffffff14;border-radius:0}
@media(prefers-reduced-motion:no-preference){#mainActions:popover-open{animation:menuIn .15s cubic-bezier(.2,.75,.25,1)}@keyframes menuIn{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}}
#accountMenu[open]{width:min(calc(100vw - 24px),390px);padding:20px;color:#f4f6f7}#accountMenu h2{font-size:20px;margin:0 50px 12px 0}#accountMenu .prefRow{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff12;border-radius:0}#accountMenu .prefRow::after{content:'›';font-size:20px;color:#a5b0b2}#accountMenu [hidden]{display:none!important}#accountMenu label:has(input[type=checkbox]){display:flex;align-items:center}#accountMenu select,#accountMenu input:not([type=checkbox]){width:100%;min-height:42px}
#myProfile[open]{box-sizing:border-box;width:min(840px,calc(100vw - 20px));max-height:90dvh;overflow:auto;padding:clamp(16px,4vw,38px);margin:auto}#myProfile section{max-width:740px;margin:auto;min-width:0}#myProfile section header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(16px,4vw,38px);background:none;position:static;padding:8px 36px 12px 0}#myProfile section header>*{min-width:0;overflow-wrap:anywhere}#myProfile header .reelAvatar{width:clamp(68px,10vw,100px);height:auto;aspect-ratio:1}#myProfile h2{font-size:18px;margin:6px 0}#myProfile p{margin:6px 0}#myProfile .profileTabs{display:flex;border-bottom:1px solid #ffffff24;margin:16px 0 4px}#myProfile .profileTabs button,#myProfile .profileBar button{background:transparent;padding:10px 12px}#myProfile .profileTabs button[aria-pressed=true]{border-bottom:2px solid currentColor;border-radius:0}#myProfile .profileGrid{grid-template-columns:repeat(3,minmax(0,1fr))}#myProfile .profileGrid button{width:100%;min-width:0;aspect-ratio:4/5;border-radius:2px}
#composer[open]{display:flex;flex-direction:column;height:min(780px,92dvh);max-height:92dvh;overflow:hidden;padding:0 16px 12px}#composer header{flex:none;position:static;display:grid;grid-template-columns:64px 1fr 64px;align-items:center;text-align:center;border-bottom:1px solid #ffffff12}#composer header button{padding:8px}#composer .editStage{display:flex;flex-direction:column;min-height:0;flex:1}#composer .assetGrid{flex:1;min-height:0;max-height:none;align-content:start;overscroll-behavior:contain}#composer .assetGrid button{border-radius:1px}#composer .assetGrid button[aria-pressed=true]{outline:3px solid #32d68a;outline-offset:-3px}#composer.galleryFull .cropStage{display:none}#composer .studioTools,#composer .publishSettings{overflow:auto;overscroll-behavior:contain}#composer .studioTools{padding:4px 8px}#composer .studioStrip{display:flex;justify-content:space-between;align-items:center}#composer .studioStrip button{background:transparent;padding:8px;font-size:14px}#composer[data-step="1"] .cropStage{flex-shrink:1;min-height:80px}#composer .publishSettings{flex:1}#composer .publishSettings label:has(input[type=checkbox]){display:flex;align-items:center;justify-content:space-between}

#options:not([hidden]){display:block;width:min(260px,94%);padding:6px;max-height:min(66dvh,480px);border-radius:13px;background:#20282c;box-shadow:none;transform-origin:top right}
#options [hidden]{display:none!important}#options button{display:block;width:100%;min-height:42px;text-align:start;border-radius:7px;background:transparent;padding:8px 14px}#options button:hover{background:#ffffff10}#options section label{display:block;padding:10px 12px;line-height:1.45}#options select{width:100%;margin-top:6px} @media(prefers-reduced-motion:no-preference){#options:not([hidden]){animation:menuIn .15s ease-out}}
@font-face{font-family:Manrope;src:url(/fonts/manrope.ttf)}@font-face{font-family:Lora;src:url(/fonts/lora.ttf)}@font-face{font-family:NotoSansArabic;src:url(/fonts/notosansarabic.ttf)}
.cropStage .typeLayer{position:absolute;inset:0;pointer-events:none;z-index:1}.sticker{position:absolute;z-index:1;max-width:90%;white-space:pre-wrap;overflow-wrap:anywhere;padding:.1em .25em;border-radius:.23em;font-size:clamp(16px,5cqw,42px);line-height:1.2;font-weight:700;text-align:center;touch-action:none}.cropStage,.reelFrame{container-type:inline-size}.cropStage .sticker{pointer-events:auto}.sticker.selected{outline:1px dashed #fffa}.editRail{position:absolute;z-index:4;right:3px;top:5%;display:grid;gap:3px}.editRail button{width:32px;height:32px;padding:0;background:#101414c9;color:white}.layerPalette{position:absolute;z-index:5;bottom:0;left:0;right:0;display:flex;flex-wrap:wrap;gap:2px;background:#1119}.layerPalette input{width:100%;background:transparent;color:white}.layerPalette select,.layerPalette button{font-size:11px;min-width:0;padding:2px}.reelFrame .reelRail :is(.centerPlayback,.reelVolume){position:static;transform:none;opacity:1;width:40px;height:40px;background:transparent!important}.reelRail .reelVolume span{display:none}
.placeMap{height:min(48dvh,350px);overflow:hidden;position:relative;background:#17414a;touch-action:none;cursor:grab}.placeMap b{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#e81c46;font-size:36px;text-shadow:0 1px white}.mapTiles img{position:absolute;inset:0 auto auto 0;max-width:none;pointer-events:none}.mapPicker>a{font-size:12px;color:#b2dbcb}.mapPicker input{width:100%;margin-block:10px}.numberPad{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:12px 0}.numberPad button{font-variant-numeric:tabular-nums;font-size:20px;border-radius:12px}.lockSheet input{width:100%;text-align:center;letter-spacing:.3em}#controls{width:100%;max-width:none}.bubbleMore{opacity:0;float:right;padding:0 4px;background:none}.bubble:hover .bubbleMore,.bubble:focus-within .bubbleMore{opacity:1}.replyLine{display:block;border-inline-start:2px solid #36bf85;padding-left:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assetPicker a{display:block;padding:8px;color:#afc7bf;font-size:12px}@media(hover:none){.bubbleMore{opacity:1}}#controls>nav,#controls:has(#highlights:not([hidden]))>nav{border-radius:999px;background:#090e10;align-self:center;justify-self:center;width:min(430px,calc(100% - 20px));height:52px;flex:none;margin:4px auto;gap:0;justify-content:space-evenly}#controls nav .icon{min-width:0;flex:1;max-width:78px;height:42px}#controls nav .icon::after,#controls nav img{display:none}#chatBar .draft:focus-within,#chatBar input:focus{box-shadow:none;transform:none}#pickEmoji{border-radius:50%;flex:none}
#myProfile:not([hidden]){display:block;grid-row:1;grid-column:1/-1;width:100%;height:100%;overflow:auto;padding:20px max(16px,calc((100% - 790px)/2));background:var(--bg)}#myProfile form:first-child button{background:none}#myProfile section header{grid-template-columns:auto 1fr;justify-content:start}#myProfile .profileBar{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:270px;justify-content:start;gap:0}#myProfile .profileBar button{white-space:nowrap}#myProfile .profileTabs{justify-content:center;gap:20px}#myProfile .profileTabs svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6}#myProfile .editProfile{padding:7px 14px;border-radius:9px;margin-top:5px}.profileEditor{display:grid;gap:8px;padding:10px}.assetPicker,#contactsDialog,#groupWizard,#accountMenu[open]{width:min(420px,94vw);max-height:85dvh;border-radius:16px;padding:18px}.assetPicker header,#groupWizard form{display:flex;align-items:center;gap:12px;font-weight:650}.assetPicker>button,#groupWizard label{display:block;width:100%;text-align:left;margin-top:10px}.emojiGrid{display:grid;grid-template-columns:repeat(5,1fr);max-height:48dvh;overflow:auto}.emojiGrid button{padding:4px;background:none}.emojiGrid img{width:100%}#groupWizard input,#contactsDialog input{width:100%;margin:5px 0}
#devicePanel button,#blockedPanel button{display:block;margin:6px 0;width:100%;text-align:start}.mapPicker :is(input,button){margin:4px}.assetPicker h2{font-size:20px}.sticker:link,.sticker:visited{text-decoration:none}.mapPicker{max-width:450px}#mainActions{max-height:calc(100dvh - 24px);overflow-y:auto}#myProfile .profileEditor{padding:16px 0}
#groupPeople{max-height:32dvh;overflow:auto}#groupPeople label{display:flex;align-items:center;gap:12px;padding:6px 0}#groupPeople input{width:auto}#controls #chatBar input:hover,#controls #chatBar input:focus{background:transparent;outline:0}

.cropStage .inlineType{position:absolute;z-index:5;min-width:4ch;max-width:90%;border:0;border-radius:3px;text-align:center;font-size:clamp(18px,3vmin,40px);font-weight:700;padding:2px;background:transparent;outline:0;caret-color:#00e999}.cropStage .inlineType[hidden],.trimTrack[hidden]{display:none}.cropStage .layerPalette{position:absolute;top:6px;left:8px;bottom:auto;right:54px;max-width:calc(100% - 65px);z-index:6;overflow-x:auto;flex-wrap:nowrap}
.trimTrack{height:48px;position:relative;grid-column:1/-1;touch-action:none;user-select:none;overflow:hidden;border-radius:9px;background:#202a2a}.trimFilm{position:absolute;inset:0;display:flex}.trimFilm canvas{width:12.5%;height:100%}.trimWindow{position:absolute;top:0;bottom:0;left:var(--left,0%);right:var(--right,0%);border:3px solid #31d390;border-radius:7px;box-shadow:none;cursor:grab}.trimWindow .trimHandle{position:absolute;top:0;height:100%;width:22px;min-width:0;padding:0;background:transparent;cursor:ew-resize}.trimHandle.left{left:-4px}.trimHandle.right{right:-4px}.trimHandle:after{content:'';position:absolute;top:9px;bottom:9px;width:5px;border-radius:4px;background:white;box-shadow:none}.trimHandle.left:after{left:3px}.trimHandle.right:after{right:3px}

.dropLayer{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:30px;color:#fff;background:#27282cde;pointer-events:none;z-index:7;white-space:nowrap}.dropLayer.ready{background:#ab313a}.dropLayer[hidden]{display:none}

@font-face{font-family:Pacifico;src:url('/fonts/pacifico.ttf');font-display:swap}
@font-face{font-family:Lobster;src:url('/fonts/lobster.ttf');font-display:swap}
@font-face{font-family:Bangers;src:url('/fonts/bangers.ttf');font-display:swap}
@font-face{font-family:Anton;src:url('/fonts/anton.ttf');font-display:swap}
@font-face{font-family:BebasNeue;src:url('/fonts/bebasneue.ttf');font-display:swap}
@font-face{font-family:Caveat;src:url('/fonts/caveat.ttf');font-display:swap}
@font-face{font-family:Orbitron;src:url('/fonts/orbitron.ttf');font-display:swap}
@font-face{font-family:PlayfairDisplay;src:url('/fonts/playfairdisplay.ttf');font-display:swap}
@font-face{font-family:SpaceMono;src:url('/fonts/spacemono.ttf');font-display:swap}
/* Canvas and app chrome */
:root{--bg:#000;--panel:#141414;--green:#06c167;--ink:#f6f7f6;--control:#232523}
html,body,main{margin:0;width:100%;max-width:none;min-width:0}main:has(#controls:not([hidden])){position:fixed;inset:0;min-height:0;overflow:hidden}main #controls:not([hidden]){width:100%;max-width:none;min-width:0;margin:0;box-sizing:border-box}
#controls #sidebar,#controls #sidebar header,#controls #conversation header,#myProfile:not([hidden]){background:var(--bg);color:var(--ink)}#controls #conversation{min-width:0;width:100%}
#controls:has(#highlights:not([hidden]))>nav{display:flex;position:absolute;z-index:8;bottom:max(9px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 28px));margin:0;border-radius:50px;background:#0a0c0de8;box-shadow:none}#highlights .reelFooter,#highlights .reelRail{bottom:max(80px,calc(66px + env(safe-area-inset-bottom)))}.timeRing{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;overflow:visible}.timeRing rect{width:calc(100% - 4px);height:calc(100% - 4px);x:2px;y:2px;stroke:var(--green);stroke-width:2px;fill:none;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .19s linear;animation:lightRing 2.6s ease-in-out infinite alternate}.reelProgress{display:none}@keyframes lightRing{to{stroke:#84ffbf;filter:none}}@media(prefers-reduced-motion:reduce){.timeRing rect{animation:none;transition:none}}
#composer[open],#composer header,.profileEditor,.peoplePicker,.cropAvatar,.placeSheet{background:var(--bg);color:var(--ink)}#composer textarea:not(.inlineType),.profileEditor :is(input:not([type=checkbox]),textarea),.peoplePicker input,.placeSheet input{background:var(--control);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:14px;width:100%;box-sizing:border-box}#composer textarea:not(.inlineType){min-height:125px;resize:vertical}#composer textarea:focus::placeholder{opacity:0}.cropStage .editRail{right:15px;top:15px;gap:5px}.cropStage .editRail button{color:var(--green);background:none!important;box-shadow:none;filter:none;width:36px;height:38px}.cropStage .layerPalette{top:49px;left:50%;transform:translateX(-50%);right:auto;bottom:auto;padding:0;gap:4px;background:none;max-width:74%}.cropStage .layerPalette select{background:white;color:#151815;border:0;border-radius:12px;padding:6px;min-width:0;max-width:33%;font-size:12px}.cropStage .inlineType,.cropStage .sticker,.reelFrame .sticker{padding:17px;box-sizing:border-box;border-radius:12px;white-space:pre-wrap}.cropStage .inlineType{min-height:3.5em;resize:none;line-height:1.2;font-family:inherit}.onMediaSlider{position:absolute;z-index:5;accent-color:var(--green);touch-action:none;padding:0;background:none;border:0}.onMediaSlider.sizeCtrl{writing-mode:vertical-lr;direction:rtl;left:15px;top:33%;height:32%;width:16px}.onMediaSlider.spaceCtrl{left:23%;top:15px;width:54%;height:18px}.onMediaSlider:active{filter:none}.cropStage.guiding:before,.cropStage.guiding:after{content:'';pointer-events:none;position:absolute;z-index:3}.cropStage.guiding:before{inset:10% 15% 24% 4.5%;border:1px dashed #fff9}.cropStage.horizontal:after{top:50%;left:0;right:0;border-top:1px solid #70ffc0}.cropStage.vertical:after{left:50%;top:0;bottom:0;border-left:1px solid #70ffc0}.dropLayer{display:grid;place-items:center;height:44px;width:44px;padding:0}.profileEditor label,.peoplePicker{display:grid;gap:7px}.profileEditor label:has(input[type=checkbox]){display:flex;align-items:center}.peoplePicker:not([open]){display:none}.peoplePicker,.cropAvatar{width:min(400px,94vw);padding:22px;border-radius:22px}.peoplePicker>div{max-height:30dvh;overflow:auto}.peoplePicker button{margin:4px}.cropAvatar canvas{display:block;width:100%;border-radius:50%;touch-action:none}.cropAvatar input{width:100%}.placeSheet{padding:0;width:min(620px,100vw);height:86dvh;overflow:hidden}.mapCanvas{position:absolute;inset:0}.placeSheet header,.placeSheet footer{position:absolute;left:15px;right:15px;display:flex;gap:6px;align-items:center}.placeSheet header{top:15px}.placeSheet footer{bottom:15px;flex-wrap:wrap}.placeSheet output{width:100%;background:var(--panel);border-radius:12px;padding:8px}.placeSheet button{border-radius:18px;background:white;color:#121912}

.cropStage.horizontal:after{top:var(--guideY,50%)}.cropStage.vertical:after{left:var(--guideX,50%)}.cropStage .onMediaSlider[hidden],.cropStage .layerPalette[hidden],.dropLayer[hidden],.editRail[hidden]{display:none!important}.cropStage .editRail svg{pointer-events:none}.studioTools input[type=range]{accent-color:var(--green);transition:filter .16s,opacity .16s}.studioTools input[type=range]:active{filter:none}
.onMediaSlider{appearance:none;-webkit-appearance:none;border-radius:12px;cursor:pointer}.onMediaSlider.spaceCtrl{background:linear-gradient(90deg,#fff8,#06c167) center/100% 4px no-repeat}.onMediaSlider.sizeCtrl{background:linear-gradient(#06c167,#fff8) center/4px 100% no-repeat}.onMediaSlider::-webkit-slider-thumb,.studioTools input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:white;border:2px solid #06c167;box-shadow:none;transition:transform .16s cubic-bezier(.2,.8,.2,1)}.onMediaSlider:active::-webkit-slider-thumb{transform:scale(1.18)}.onMediaSlider::-moz-range-thumb{border:2px solid #06c167;background:white;border-radius:50%}.studioTools input[type=range]{height:24px;appearance:none;background:linear-gradient(90deg,#06c167,#9af8c8) center/100% 4px no-repeat}

.formatList{background:#fcfffd;color:#101512;border:0;border-radius:19px;width:min(300px,84vw);max-height:48dvh;padding:14px;box-shadow:none}.formatList h3{margin:0 6px 8px;font-size:15px}.formatList button{width:100%;text-align:start;border-radius:10px;padding:9px 12px;background:transparent;color:inherit}.formatList button[aria-pressed=true]{background:#dff8e9}.formatList i{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:10px;border:1px solid #888}.formatList::backdrop{background:#0004}

:root{color-scheme:dark;--bg:#000;--panel:#08110c;--control:#102018;--ink:#fafcfb;--line:#203728;--green:#06c167;background:var(--bg);color:var(--ink)}:root[data-theme=light]{color-scheme:light;--bg:#f8fcf9;--panel:white;--control:#e8f2eb;--ink:#102018;--line:#c9d9cf}
html,body{width:100%;height:100%;margin:0;background:var(--bg)}main #controls:not([hidden]){position:fixed;inset:0;width:auto;height:auto;max-height:none;max-width:none;color:var(--ink);background:var(--bg)}#sidebar,#conversation header,nav{background:var(--bg);color:var(--ink)}.search,.draft,#controls .search{background:var(--control)}.thread[aria-current=true],.bubble{background:var(--control);color:var(--ink)}#conversation{background-color:var(--panel)}.bubble{font-size:var(--chatSize,16px)}.bubble.mine{background:#144b39;color:white}#controls nav{border:none!important}#controls:has(#highlights:not([hidden])) nav{background:#07100b;color:white}nav .current{color:var(--green)!important}#contactsDialog details[open]{display:grid;gap:16px}#contactsDialog details label,.profileEditor label,#appearance label{display:grid;gap:8px;margin:0}#contactsDialog details label[hidden]{display:none}#myProfile .profileEditor{display:grid;gap:16px}#myProfile header a{display:inline-block;background:var(--control);color:var(--ink);padding:7px 12px;margin:4px;border-radius:12px}.profilePhotoControl{display:grid;justify-items:center;gap:10px}.profilePhotoControl .reelAvatar{width:82px;height:82px}.profileEditor label>div{display:grid;gap:10px}
.cropStage .editRail button{color:white}.cropStage .layerPalette{top:auto;bottom:15px;align-items:center;overflow:visible}.cropStage .layerPalette select{height:36px;border-radius:18px;max-width:none;text-align:center}.cropStage .layerPalette select:not(:first-child){width:36px;color:transparent;background:radial-gradient(circle,#151515 29%,white 32%);cursor:pointer}.cropStage .layerPalette select:last-child{background:radial-gradient(circle,#ac94bf 29%,white 32%)}.cropStage .sticker,.cropStage .inlineType{outline:none!important;border:0!important}.cropStage.guiding:before{inset:10% 15% 18% 4.5%;border-color:white}.cropStage.horizontal:after{border-color:white}.cropStage.vertical:after{border-color:white}.cropStage.guiding.vertical.horizontal:after{inset:0;border:0;background:linear-gradient(white,white) var(--guideX) center/1px 100% no-repeat,linear-gradient(white,white) center var(--guideY)/100% 1px no-repeat}.onMediaSlider.spaceCtrl,.studioTools input[type=range]{background:linear-gradient(white,white) center/100% 3px no-repeat}.onMediaSlider.sizeCtrl{background:linear-gradient(white,white) center/3px 100% no-repeat}.onMediaSlider::-webkit-slider-thumb,.studioTools input[type=range]::-webkit-slider-thumb{border-color:white}.swatches[open]{display:flex;flex-wrap:wrap;gap:10px}.swatches h3,.swatches button:last-child{width:100%}.swatches button:has(i){font-size:0;width:34px;height:34px;padding:3px}.swatches i{width:26px;height:26px;margin:0}.reelFrame .reelRail .reelVolume{position:static;background:none!important;color:white}.studioSettings,#composer textarea:not(.inlineType){margin-top:16px}.lockSheet[open]{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;display:grid;align-content:center;justify-content:center;background:var(--bg);color:var(--ink)}.lockSheet .numberPad{gap:12px}.lockSheet .numberPad button{border-radius:50%;width:58px;height:58px;background:var(--control)}.lockSheet button[type=button]:last-child:not(.numberPad button){border:none;background:none}

#controls nav .current{color:var(--green)!important}#accountMenu[open],#mainActions,#options,#contactsDialog{background:var(--panel);color:var(--ink)}#controls :is(input:not([type=checkbox]),select,textarea):not(.inlineType,.onMediaSlider,[type=range]){color:var(--ink);background-color:var(--control)}#controls .draft input,#controls .search input{background:transparent!important}#controls #mainActions button{color:var(--ink)}#myProfile .profileEditor .reelAvatar img{width:100%;height:100%;object-fit:cover}.placeSheet output:empty{display:none}.placeResults{position:absolute;top:74px;left:15px;right:15px;display:grid;border-radius:16px;overflow:auto;max-height:46%;background:var(--panel);box-shadow:none}.placeResults:empty{display:none}.placeResults button{color:var(--ink);text-align:left;background:var(--panel);border-radius:0;padding:12px 16px}

:root{--section-gap:16px}small+h2,#contactsDialog small+h2{margin-top:var(--section-gap)}#contactsDialog summary{list-style:none}summary::-webkit-details-marker{display:none}#chatBar{padding:12px 16px max(16px,env(safe-area-inset-bottom))}#localTalk label,#roomInfo section,#options label{display:grid;gap:8px;margin-block:16px}select{appearance:none;background-image:none;padding-inline:16px!important}#accountMenu .prefRow::after{content:none}button[aria-label*=Kapat],button[aria-label=Geri],.closeGlyph,#closeStory{background:transparent!important;border:none!important;box-shadow:none;color:inherit}.closeGlyph{font-size:25px;line-height:1;min-width:40px;min-height:40px}#myProfile .profileEditor{max-width:640px;margin:auto;display:grid;gap:16px}.primaryPill,.secondaryPill{border-radius:999px!important;padding:13px 22px!important}.primaryPill{background:var(--green)!important;color:#00170a}.secondaryPill{background:var(--control)!important;color:var(--ink)}input[type=checkbox]:not([hidden]){appearance:none;flex:none;position:relative;width:42px;height:25px;border:0;border-radius:30px;background:var(--control);box-shadow:none;cursor:pointer;vertical-align:middle}input[type=checkbox]:before{content:'';position:absolute;left:4px;top:4px;width:17px;height:17px;border-radius:50%;background:var(--ink);transition:transform .16s}input[type=checkbox]:checked{background:var(--green)}input[type=checkbox]:checked:before{background:#fff;transform:translateX(17px)}
.cropStage.guiding:before{left:5%;right:5%}.cropStage .editRail{top:8px;right:8px}.cropStage .onMediaSlider{border:0!important;padding:0!important;box-shadow:none}.cropStage .spaceCtrl{top:8px}.cropStage .sizeCtrl{left:8px}.cropStage .layerPalette select{background:var(--panel)!important;color:var(--ink);height:38px;text-align:center;appearance:none}.cropStage .layerPalette select:not(:first-child){width:38px;min-width:38px;border-radius:50%;padding:0!important;color:transparent;background:radial-gradient(circle,var(--ink) 22%,var(--panel) 26%)!important}.cropStage .layerPalette select:last-child{background:radial-gradient(circle,transparent 18%,var(--ink) 20% 27%,var(--panel) 30%)!important}.formatList{color:var(--ink);background:var(--panel);scrollbar-width:thin;scrollbar-color:var(--line) transparent}.formatList button[aria-pressed=true]{background:var(--control)}.formatList.swatches{max-width:min(285px,85vw);max-height:220px}.formatList.swatches h3,.formatList.swatches button:last-child{display:none}.formatList.swatches::backdrop{background:transparent}#composer .studioSettings>.cropStage,#composer section:not(.editStage)>.cropStage{width:min(180px,100%);height:230px;min-height:0;flex:none;margin:0 auto var(--section-gap);aspect-ratio:9/16;pointer-events:none}.timeRing{display:none}.reelFrame .reelProgress{display:block;position:absolute;z-index:5;bottom:0;left:0;width:100%;height:2px;border:0;appearance:none;background:#ffffff40}.reelProgress::-webkit-progress-bar{background:#ffffff40}.reelProgress::-webkit-progress-value{background:white}.reelProgress::-moz-progress-bar{background:white}.reelTool.isLiked svg{color:#ff3156!important;fill:#ff3156!important;stroke:#ff3156!important}.heartParticle{position:absolute;pointer-events:none;z-index:5;color:#ff3156;font-size:42px;animation:heartFloat 1s ease-out forwards}@keyframes heartFloat{0%{transform:scale(.2)}55%{transform:translateY(-45px) scale(1.45)}100%{transform:translateY(-110px) scale(2);opacity:0}}.emojiBurst{position:fixed;width:min(45vw,320px);left:50%;top:45%;z-index:70;pointer-events:none;animation:emojiPop 1.2s both}@keyframes emojiPop{0%{transform:translate(-50%,-50%) scale(.25)}65%{transform:translate(-50%,-50%) scale(1.1)}100%{transform:translate(-50%,-56%);opacity:0}}.working:before{content:'';display:inline-block;width:14px;height:14px;margin-right:10px;border:2px solid #fff5;border-top-color:white;border-radius:50%;animation:upspin .8s linear infinite}@keyframes upspin{to{transform:rotate(360deg)}}.reelComments[open]{margin:auto auto 0;width:min(520px,100%);border-radius:22px 22px 0 0;padding:16px;max-height:75dvh;background:var(--panel);color:var(--ink)}.reelComments header,.reelComments form{display:flex;justify-content:space-between;align-items:center;gap:12px}.reelComments section{overflow:auto;max-height:48dvh;padding:16px 0}.reelComments section p{padding:10px 2px}.reelComments input{flex:1}.attachSheet[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attachSheet header{grid-column:1/-1}.attachSheet>button{text-align:start;background:var(--control);border-radius:14px;padding:12px}.attachSheet svg{margin-right:8px;vertical-align:middle}
@media(prefers-reduced-motion:reduce){.heartParticle,.emojiBurst{animation-duration:.01s}}

#roomInfo[open]{position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100%);height:100dvh;max-height:none;border:0;border-radius:0;background:var(--bg);color:var(--ink);padding:24px;overflow:auto}#roomInfo #infoContent{max-height:none;display:grid;gap:16px;margin-top:16px}#roomInfo button{border-radius:12px;text-align:start}.publishSettings:has(>.cropStage){display:flex;flex-direction:column;align-items:stretch;gap:16px}.publishSettings[hidden]{display:none!important}.publishSettings .cropStage{display:block!important}.publishSettings label:has(input[type=checkbox]),.profileEditor label:has(input[type=checkbox]){display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:16px}

@media(prefers-reduced-motion:no-preference){body,#controls,#sidebar,#conversation,#conversation header,nav,#myProfile,dialog{transition:background-color .24s ease,color .24s ease}}#appearance{display:grid;gap:14px}#appearance[hidden]{display:none}

@keyframes heartFloat{0%{transform:translateY(12px) scale(.14);opacity:0}18%{opacity:1}58%{transform:translateY(-16px) scale(var(--pop-size,1));opacity:1}78%{transform:translateY(-24px) scale(calc(var(--pop-size,1)*.92))}100%{transform:translateY(-42px) scale(calc(var(--pop-size,1)*1.5));opacity:0}}
.formatList:not(.swatches)::backdrop{background:transparent}.formatList{overscroll-behavior:contain}.formatList.swatches[open]{display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:6px;padding:10px}.formatList.swatches button[aria-pressed]{border:0;padding:0;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:0}.formatList.swatches button i{width:23px;height:23px;margin:0}.formatList.swatches button[aria-pressed=true]{outline:1px solid var(--ink)}.formatList.swatches input[type=color]{height:34px;width:34px;padding:4px;border-radius:50%;overflow:hidden;cursor:pointer}

dialog.assetPicker.attachSheet[open]{inset:auto;position:fixed;margin:0;padding:8px;display:flex;flex-direction:column;gap:1px;width:min(245px,calc(100vw - 16px));overflow-y:auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:none;transform-origin:bottom center;animation:attachAppear .16s ease-out}dialog.attachSheet::backdrop{background:transparent}dialog.attachSheet header{display:none}dialog.attachSheet>button{width:100%;display:flex;align-items:center;gap:14px;color:var(--ink);background:transparent;border:0;border-radius:9px;padding:10px 12px;min-height:42px;font-weight:500}dialog.attachSheet>button:is(:hover,:focus-visible){background:var(--control)}dialog.attachSheet svg{width:22px;height:22px;flex:none;margin:0;color:var(--icon-color,#8992ff);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.85}.attachSheet>button:nth-of-type(2){--icon-color:#6599ff}.attachSheet>button:nth-of-type(3){--icon-color:#ff6a93}.attachSheet>button:nth-of-type(4){--icon-color:#ff9052}.attachSheet>button:nth-of-type(5){--icon-color:#43b9f4}.attachSheet>button:nth-of-type(6){--icon-color:#f1c952}.attachSheet>button:nth-of-type(7){--icon-color:#ec689c}.attachSheet>button:nth-of-type(8){--icon-color:#4ac998}@keyframes attachAppear{from{opacity:0;transform:translateY(4px) scale(.97)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){dialog.assetPicker.attachSheet{animation:none!important}}

#myProfile header{align-items:start}#myProfile header>div:first-of-type{min-width:0}#myProfile header a{display:block;width:100%;overflow-wrap:anywhere;color:var(--ink)}#myProfile .profileBar{display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,22px)}#myProfile .profileBar>*{color:var(--ink);opacity:1;font:inherit}.profileActions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.profileActions button,.peerOptions button{color:var(--ink);background:var(--control);border-radius:30px;padding:10px 16px}#myProfile>form{display:flex;align-items:center;gap:8px}#myProfile>form .profileAction{font-size:26px;background:none;color:var(--ink);padding:5px 10px}#myProfile>form .profileAction:last-child{margin-inline-start:auto}.profilePhotoControl input[hidden]{display:none!important}.profileMail[open],.peoplePicker[open]{position:fixed;inset:auto 0 0;margin:0 auto;width:min(560px,100%);max-height:85dvh;padding:22px;border:1px solid var(--line);border-radius:24px 24px 0 0;background:var(--bg);color:var(--ink);animation:composeRise .28s cubic-bezier(.2,.8,.2,1)}.profileMail form,.peoplePicker[open]{display:grid;gap:16px}.profileMail label{display:grid;gap:8px}.profileMail header{display:flex;justify-content:space-between}.profileMail input,.profileMail textarea,.peoplePicker input,.audienceButton,.audienceOptions button{background:var(--control);color:var(--ink);padding:12px;border:0;border-radius:18px}.profileMail form>button,.peoplePicker>button:last-child{border-radius:30px;padding:12px 24px;background:var(--green);color:#04160b;justify-self:center}.peoplePicker>div:not(.pickedPeople){max-height:30dvh;overflow:auto}.pickedPeople{display:flex;align-items:center;min-width:0}.pickedPeople button{width:40px;height:40px;flex:0 0 40px;margin-right:-19px;padding:0;overflow:hidden;border-radius:50%;border:2px solid var(--bg);background:var(--control);color:var(--ink)}.pickedPeople img{width:100%;height:100%;object-fit:cover}.pickedPeople span{margin-left:22px}.publishSettings textarea{scrollbar-width:thin;scrollbar-color:var(--line) transparent}.audienceOptions:not([hidden]){display:grid;gap:4px;border-radius:18px;padding:6px;background:var(--control)}.audienceButton{text-align:start;width:100%}#accountMenu>section:not([hidden]){display:grid;gap:16px;padding:16px 0}#accountMenu label{display:grid;gap:8px}#accountMenu input:not([type=checkbox]):not([type=range]),#accountMenu select{border-radius:30px;padding:10px 16px;background:var(--control);color:var(--ink)}.fontSample,#chatHistory .bubble{font-family:var(--message-font,sans-serif)}#appearance,#appearance .fontSample{font-size:var(--chatSize,16px);transition:font-size .20s ease}.superTitle{position:absolute;z-index:6;top:46%;left:0;right:0;text-align:center;background:linear-gradient(115deg,#ff466e,#ff8796,#ffd084);background-clip:text;color:transparent;font:clamp(38px,8vw,64px) Lobster,cursive;pointer-events:none;animation:superArrival .95s both}@keyframes superArrival{0%{opacity:0;transform:scale(.6)}28%{opacity:1;transform:scale(1.09)}54%{transform:scale(1)}80%{opacity:1}100%{opacity:0;transform:translateY(-14px)}}@keyframes composeRise{from{transform:translateY(80%);opacity:.4}to{transform:none;opacity:1}}
.studioTools .durationDial{display:block;position:relative;width:100%;height:46px;overflow:hidden}.durationTicks{position:absolute;inset:0;pointer-events:none}.durationTicks i{position:absolute;left:50%;top:45%;width:2px;height:11px;border-radius:3px;background:currentColor}.durationDial input[type=range]{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:ew-resize}.durationDial:focus-within{outline:1px solid currentColor}.onMediaSlider::-webkit-slider-thumb{transition:scale .15s cubic-bezier(.2,.8,.2,1.3)}.onMediaSlider:active::-webkit-slider-thumb{scale:1.17}@media(prefers-reduced-motion:reduce){.superTitle,.peoplePicker,.profileMail{animation-duration:.01s}}

#myProfile section header{align-items:start}#myProfile section header .profileBar{grid-column:1/-1;max-width:none;justify-self:stretch}#myProfile section header>div:first-of-type>a{display:block;width:100%;box-sizing:border-box}#myProfile:has(.profileEditor) .profileAction{display:none}#myProfile:not(:has(.profileEditor))>form:has(.profileAction:nth-of-type(3))>button:first-child{display:none}#myProfile .profileBar button:disabled{color:var(--ink);opacity:1}

.studioTools .durationDial[hidden],#groupWizard label[hidden],.publishSettings .audienceOptions[hidden]{display:none!important}#appearance select option,.fontSample{font-family:var(--message-font,sans-serif)}

#appearance .themeGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.themeGrid button{display:flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:18px;background:var(--control);color:var(--ink);padding:8px 10px}.themeGrid button i{width:24px;height:24px;flex:none;border-radius:50%;border:1px solid currentColor}.themeGrid button[aria-pressed=true]{border-color:var(--green)}.profileMail[open]::backdrop{background:#0006}.fontSample{padding:16px;background:var(--control);border-radius:18px}

.durationDial input{touch-action:none}.cropStage .onMediaSlider{touch-action:none}.profileMail label>textarea{resize:vertical}

#myProfile:not([hidden]){padding-top:0}#myProfile>form{position:relative;min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:0;margin:0}#myProfile .profileName{position:absolute;inset-inline:52px;text-align:center;font-size:18px;pointer-events:none}#myProfile section header{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px 12px;padding:0;align-items:center}#myProfile .profileIdentity{display:contents}#myProfile section header>.reelAvatar{grid-column:1;grid-row:1/3;width:84px;height:84px;cursor:pointer}#myProfile .profileIdentity>strong{grid-column:2;grid-row:1;font-size:16px;align-self:end}#myProfile section header .profileBar{grid-column:2;grid-row:2;align-self:start;justify-content:flex-start;gap:8px;flex-wrap:wrap}#myProfile .profileIdentity>p,#myProfile .profileIdentity>a,#myProfile .editProfile,#myProfile .profileActions{grid-column:1/-1;margin:0}#myProfile .editProfile,#myProfile .profileActions button{min-height:40px;padding:8px 16px;border-radius:999px;background:var(--control);color:var(--ink);border:1px solid var(--line);font-size:14px;justify-self:start}#myProfile header .profileActions{order:5}#myProfile>form .profileAction,#highlights #writeStory{box-sizing:border-box;width:56px;height:56px;display:grid;place-items:center;font:normal 28px/1 system-ui;padding:0;margin:0}.reelHead{padding:env(safe-area-inset-top) 0 0!important}.profileStory[open]{box-sizing:border-box;inset:0;width:min(100%,650px);height:100dvh;max-height:none;margin:auto;padding:0;background:black;overflow:hidden;border:0;border-radius:0}.profileStory .reel,.profileStory .reelFrame{width:100%;height:100%;margin:0}.storyClose{position:absolute;top:max(12px,env(safe-area-inset-top));right:12px;color:white;background:transparent;font-size:28px;z-index:9}.metric{display:grid;grid-template-columns:1fr auto;gap:6px;margin:12px 0}.metric progress{grid-column:1/-1;width:100%;height:6px;accent-color:var(--green)}.appLockup{display:inline-flex!important;align-items:center;gap:4px;width:auto!important;height:30px!important}.appLockup img{width:30px;height:30px}.appLockup i{display:block;width:70px;height:27px;background:var(--ink);mask:url('/wordmark.svg') center/contain no-repeat}.superTitle{display:flex;justify-content:center;gap:.12em;animation:impactExit .96s both;background:none;color:#ff456b}.superTitle b{-webkit-text-stroke:4px white;paint-order:stroke fill;animation:wordImpact .32s cubic-bezier(.2,.95,.32,1.18) both}.superTitle b:last-child{--entry:100vw;color:#ff9c68}@keyframes wordImpact{from{transform:translateX(var(--entry,-100vw))}to{transform:none}}@keyframes impactExit{0%,65%{opacity:1;transform:none}100%{opacity:0;transform:scale(5)}}@keyframes heartFloat{0%{opacity:0;transform:translate(-50%,-50%) scale(.15)}16%{opacity:1}83%{opacity:.95}100%{opacity:0;transform:translate(calc(-50% + var(--fly-x)),calc(-50% + var(--fly-y))) scale(var(--pop-size,1))}}@media(prefers-reduced-motion:reduce){.superTitle b{animation:none}}

.cropStage .layerPalette{inset:auto 12px 12px;display:flex;flex-direction:column;gap:6px;max-width:none}.cropStage .layerPalette[hidden]{display:none!important}.inlineChoices{box-sizing:border-box;width:100%;min-width:0;display:flex;align-items:center;gap:6px;height:44px;padding:4px 8px;overflow-x:auto;background:#000a;border-radius:22px;scrollbar-width:none}.inlineChoices button,.inlineModes button{flex:none;min-height:34px;background:transparent;color:white;border:0;border-radius:18px;padding:5px 12px}.inlineChoices button[aria-pressed=true],.inlineModes button[aria-pressed=true]{background:white;color:black}.inlineChoices .inkDot,.inlineChoices input[type=color]{width:28px;height:28px;min-height:28px;padding:0;border-radius:50%;border:1px solid white}.inlineChoices .inkDot[aria-pressed=true]{outline:2px solid white}.inlineModes{display:flex;gap:6px}.inlineModes button{width:40px;height:40px;padding:0;border-radius:50%;background:#0009}.studioTools .durationDial{height:72px}.durationTicks i{top:66%}#accountMenu .prefRow,#accountMenu label:has(select),#accountMenu section>button{border-radius:24px;font-size:15px;background:var(--control);color:var(--ink)}#accountMenu .prefRow{margin-block:6px}

#accountMenu select[hidden]{display:none!important}.settingChoice,.choiceSheet{font:500 15px/1.35 system-ui;background:var(--control);color:var(--ink);border-radius:24px;border:1px solid var(--line)}.settingChoice{width:100%;text-align:start;min-height:44px;padding:10px 16px}.choiceSheet[open]{box-sizing:border-box;position:fixed;inset:auto;margin:0;max-height:40dvh;padding:6px;overflow:auto}.choiceSheet::backdrop{background:transparent}.choiceSheet button{width:100%;text-align:start;padding:10px 14px;border:0;border-radius:24px;background:transparent;color:var(--ink);font-size:15px}.choiceSheet button[aria-selected=true]{box-shadow:none}.choiceSheet button:focus-visible{outline:2px solid var(--green)}

.profileStoryName{position:absolute;left:16px;top:max(18px,env(safe-area-inset-top));color:#fff;text-shadow:0 1px 3px #0008}.profileStory.ownStory .reelRail,.profileStory.ownStory .reelFooter>:not(.seenCount){display:none}.profileStory.ownStory .reelFooter{left:16px;bottom:max(12px,env(safe-area-inset-bottom))}.profileStory .seenCount{background:transparent;color:white;font-size:15px}

.cropStage .layerPalette{transform:none;width:auto;box-sizing:border-box}.inlineChoices{flex:0 0 44px}.inlineModes{align-self:center}.cropStage .inlineChoices input[type=color]{width:28px;min-width:28px;flex:none}

#myProfile section header .profileBar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:min(100%,340px)}#myProfile .profileBar>*{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:6px 0;background:none;border:0}#myProfile .profileBar b{font-size:16px}#myProfile .profileBar small{font-size:12px}#myProfile:not([hidden])>form{margin-inline:calc(-1 * max(16px,(100vw - 790px)/2));padding-inline:4px}

#myProfile section header .profileBar>button,#myProfile section header .profileBar>span{box-sizing:border-box;height:52px;min-height:52px;margin:0;padding:6px 0;align-self:stretch;line-height:1.2}

/* Keep page content on the same inset as the 48px toolbar actions. */
:root {--page-gutter:24px}
html #myProfile:not([hidden]) {padding-inline:var(--page-gutter);box-sizing:border-box}
html #myProfile section {max-width:none;width:100%}
html #myProfile:not([hidden])>form {margin:0 calc(-1 * var(--page-gutter));padding:0}
html #myProfile>form .profileAction {width:48px}
html #myProfile section header {align-items:start}
html #myProfile .profileIdentity>strong {align-self:start}
html #myProfile .profileBar {width:100%}
html #myProfile .profileIdentity>a {padding-inline:0}
html #myProfile .profileWebsite {color:var(--green)}
html #myProfile header .profileActions {order:5;display:flex;gap:8px;width:100%}
html #myProfile header .profileActions button {flex:1;min-width:0}
html #myProfile header :is(.profileSocialLink,.profileActions button) {box-sizing:border-box;background:transparent;color:var(--ink);border:1px solid currentColor;border-radius:999px}
html #myProfile header .profileSocialLink {order:6;text-align:center;padding:9px 12px}
html .reelAuthor .reelFollow {background:transparent;color:white;border:1px solid currentColor;min-height:28px;padding:3px 10px;font-size:13px}
html .studioTools .durationDial {margin-top:24px;height:82px}
html .durationTicks i {top:18%;color:white}
html .durationTicks i small {position:absolute;top:100%;left:50%;transform:translateX(-50%);font:11px system-ui}

html #myProfile section header>.reelAvatar {align-self:start}
html .durationTicks i small {white-space:nowrap}
html #myProfile .profileIdentity>a.profileWebsite {color:var(--profile-link,var(--green))}
html[data-theme=light] {--profile-link:#006b36}
html .durationTicks i {color:var(--ink)}

#controls :is(#accountMenu,#contactsDialog,#groupWizard,#roomInfo,#localTalk)[open],
#controls #composer[open],#controls #chatBar {padding-inline:var(--page-gutter);box-sizing:border-box}
#controls #sidebar .thread,#controls #chatHistory {padding-inline:var(--page-gutter)}
#controls #composer[open],#controls #composer>header {background:var(--bg);color:var(--ink)}
#controls #composer>header button {color:inherit}
#controls #composer>header button:last-child {color:var(--profile-link,var(--green))}
#controls #composer .durationDial input[type=range] {height:100%}

/* Primary destinations occupy the window. Scroll their contents independently. */
html main #controls:not([hidden]) {position:absolute;inset:0;height:auto;width:auto;min-height:0}
#controls>nav {grid-column:1/-1;border:0;background:var(--bg);padding:0}
#controls>nav .icon {height:48px;max-width:none}
#controls :is(#accountMenu,#contactsDialog,#localTalk,#groupWizard,#composer,#roomInfo)[open],
dialog.profileStory[open] {
  position:fixed;inset:0;box-sizing:border-box;margin:0;width:100%;height:100dvh;
  max-width:none;max-height:none;border:0;border-radius:0;background:var(--bg);color:var(--ink);
}
#controls #myProfile .profileEditor {max-width:none}
#controls #myProfile>form {min-height:56px}
#controls #myProfile header .profileBar {width:100%;max-width:none}
#controls #myProfile header .profileActions button,#controls #myProfile .editProfile {font-size:14px;line-height:20px;min-height:40px}
#controls #composer[data-step="1"] .editStage>.cropStage {
  height:min(calc(100dvh - 240px), calc((100vw - 48px)*16/9));
  max-height:none;max-width:100%;margin:0 auto;flex:0 1 auto
}
#controls #composer .editStage>.studioTools {flex:none;max-height:42dvh}
#controls #composer .durationDial {width:100%;margin-inline:auto}
#controls #sidebar,#controls #conversation,#controls #myProfile {min-height:0;min-width:0}
@media(max-width:680px){
  #controls.inChat:not([hidden]) {grid-template-rows:minmax(0,1fr)}
  #controls #conversation {grid-column:1;grid-row:1}
}
