@font-face{font-family:Diatype;src:url('../assets/abc-diatype-regular.woff2') format('woff2');font-display:swap}
:root{color-scheme:dark;--bg:#080808;--surface:#181818;--muted:#8c8c8c;--line:#ffffff18;--nav:88px;--dock:64px;--safe-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px));--safe-top:calc(max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px)) + var(--tg-content-safe-area-inset-top,0px));--safe-left:calc(max(env(safe-area-inset-left,0px),var(--tg-safe-area-inset-left,0px)) + var(--tg-content-safe-area-inset-left,0px));--safe-right:calc(max(env(safe-area-inset-right,0px),var(--tg-safe-area-inset-right,0px)) + var(--tg-content-safe-area-inset-right,0px))}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:#f7f7f7;font:15px/1.4 Diatype,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}button,a,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid #ddd;outline-offset:4px}button:active:not(:disabled){transform:scale(.96)}button{transition:background .16s,transform .16s,opacity .16s}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{object-fit:cover;max-width:100%}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.skip-link{position:fixed;top:-100px;z-index:100;background:white;color:#111;padding:12px}.skip-link:focus{top:8px}h1,h2,p{margin:0}.round-button{display:grid;place-items:center;min-width:42px;height:42px;border-radius:50%;background:#ffffff0b}.round-button:hover{background:#ffffff20}.solid-button{border-radius:30px;background:#f5f5f5;color:#111;padding:13px 24px;font-weight:600}.muted{color:var(--muted)}
.navigation{width:var(--nav);position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;align-items:center;border-right:1px solid #ffffff08;background:var(--bg);padding:27px 12px 18px}.wordmark{display:flex;align-items:center;gap:10px;font-weight:700;font-size:21px;letter-spacing:-.9px}.wordmark img{width:35px;height:35px;object-fit:contain}.wordmark span{display:none}.navigation nav{margin:auto 0;display:grid;gap:24px;width:100%}.nav-item{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;min-height:49px;color:#777;border-radius:14px;padding:10px}.nav-item>span:not(.create-pill){display:none}.nav-item svg{width:27px;height:27px}.nav-item.active{color:white}.nav-item:hover{background:#ffffff0a;color:#eee}.nav-item.active svg{stroke-width:2.1}.create-pill{display:grid;place-items:center;width:46px;height:35px;border-radius:20px;background:#f5f5f5;color:#111}.create-pill svg{width:23px;height:23px;stroke-width:2.1}.nav-more{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff25;border-radius:50%;color:#aaa}main{margin-left:var(--nav);height:100%}.screen{height:100%;position:relative}
.feed-screen{display:flex;align-items:center;justify-content:center;padding:16px 62px}.feed-frame{touch-action:pan-y;position:relative;height:100%;width:100%;max-width:calc((100dvh - 32px)*.59);min-width:320px;overflow:hidden;border-radius:24px;background:#151515;isolation:isolate}.feed-header{position:absolute;z-index:5;inset:0 0 auto;display:flex;align-items:center;justify-content:center;padding:15px 18px 32px;background:linear-gradient(#0005,transparent);pointer-events:none}.feed-header button{pointer-events:auto}.sound-button{position:absolute;right:12px;top:calc(var(--safe-top) + 2px);display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;background:#0005;backdrop-filter:blur(8px)}.sound-button svg{width:20px;height:20px}.feed-scroll{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior-y:contain;outline:none}.feed-scroll::-webkit-scrollbar{display:none}.feed-slide{position:relative;height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#181818}.feed-slide>img,.feed-slide>video{user-select:none;-webkit-user-drag:none;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.feed-slide>video{z-index:1;opacity:0;transition:opacity .2s}.feed-slide>video.ready{opacity:1}.feed-slide:after{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent 25%,#0002 55%,#000a);z-index:2;pointer-events:none}.feed-tap{position:absolute;inset:0;width:100%;z-index:3;cursor:pointer}.feed-rail{position:absolute;z-index:6;right:16px;bottom:40px;display:flex;flex-direction:column;gap:18px;align-items:center}.rail-button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;min-height:42px;width:57px;text-shadow:0 1px 8px #0006}.rail-button svg{width:29px;height:29px;filter:drop-shadow(0 1px 4px #0004)}.rail-button span{font-size:10px;font-weight:500;line-height:13px}.rail-button[aria-pressed=true]{color:#ff617b}.rail-button[aria-pressed=true] svg{fill:currentColor;animation:like-pop .24s ease-out}.more-button{min-height:28px}.more-button svg{width:25px;height:25px}.feed-caption{position:absolute;z-index:5;bottom:24px;left:24px;right:85px;pointer-events:none;text-shadow:0 2px 16px #0008}.feed-caption button{pointer-events:auto}.feed-caption h1{font-size:21px;line-height:1.18;letter-spacing:-.4px;font-weight:600;margin:0 0 7px}.feed-caption p{font-size:13px;line-height:1.45;color:#ffffffe0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.play-indicator{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:4;width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:#0003;backdrop-filter:blur(5px)}.play-indicator svg{width:35px;height:35px;fill:white;stroke:none;margin-left:4px}.feed-arrows{position:absolute;left:calc(50% + min((100dvh - 32px)*.295,36vw) + 20px);display:grid;gap:12px}.feed-arrows .round-button{background:#1a1a1a;width:44px;height:44px}.rotate{transform:rotate(180deg)}.feed-empty{padding:100px 25px;text-align:center;color:#aaa;height:100%;align-content:center}.feed-empty button{display:block;margin:24px auto}
.create-screen{max-width:760px;margin:auto;display:flex;flex-direction:column;padding:0 36px 27px;overflow-y:auto;overscroll-behavior:contain}.page-header{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;padding:calc(23px + var(--safe-top)) 0 16px;flex-shrink:0}.page-header h1{font-size:17px;font-weight:600;letter-spacing:-.15px;text-align:center}.creation-stage{flex:1;min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:16px 0 28px}.creation-empty{text-align:center;color:#888;animation:soft-in .25s ease-out}.creation-orbit{width:94px;height:94px;display:grid;place-items:center;margin:0 auto 23px;position:relative}.creation-orbit:before,.creation-orbit:after{content:'';position:absolute;inset:8px;border:1px solid #ffffff25;border-radius:28px;transform:rotate(22deg)}.creation-orbit:after{transform:rotate(-22deg);border-color:#ffffff12}.creation-orbit svg{width:37px;height:37px;color:#ddd;stroke-width:1.2}.creation-empty h2{font-size:24px;color:#c8c8c8;font-weight:400;letter-spacing:-.65px}.creation-empty p{font-size:13px;color:#666;margin-top:9px}.remix-reference{position:relative;display:flex;align-items:center;flex-direction:column;gap:12px}.remix-reference>img{max-height:calc(100dvh - 470px);min-height:135px;max-width:270px;object-fit:cover;border-radius:18px}.remix-reference p{font-size:12px;color:#999;max-width:270px;text-align:center}.remix-reference .round-button{position:absolute;right:-15px;top:-15px;width:31px;height:31px;min-width:31px;background:#292929;border:2px solid var(--bg)}.remix-reference .round-button svg{width:14px;height:14px}.creation-form{width:100%;flex-shrink:0;animation:soft-in .22s ease-out}.creation-options{display:flex;gap:8px;align-items:center;margin-bottom:27px;flex-wrap:wrap}.option-chip{display:flex;align-items:center;gap:4px;font-size:12px;color:#c1c1c1;min-height:32px;border:1px solid #ffffff1c;border-radius:30px;padding:5px 13px}.option-chip svg{width:12px;height:12px}.option-chip:hover{background:#ffffff10}.character-heading{min-height:25px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#a7a7a7;margin-bottom:13px}.character-heading button{display:flex;align-items:center;gap:3px;color:#777;font-size:11px;padding:0}.character-heading svg{width:13px;height:13px;transform:rotate(-90deg)}.characters{height:82px;align-items:flex-start;flex-shrink:0;display:flex;gap:17px;margin:0 -3px 22px;padding:3px;overflow-x:auto;scrollbar-width:none}.character{position:relative;display:flex;flex-direction:column;align-items:center;width:56px;flex-shrink:0;padding:0;gap:6px}.character>img,.character>span:first-child{height:51px;width:51px;border-radius:50%;object-fit:cover;background:#1a1a1a;border:1px solid #ffffff15}.character>span:first-child{display:grid;place-items:center}.character small{font-size:10px;color:#999;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.character.selected>img{outline:2px solid white;outline-offset:3px}.character.selected:after{content:'✓';position:absolute;right:0;top:36px;font-size:9px;font-weight:bold;background:#fff;color:#111;border-radius:50%;width:15px;height:15px;border:2px solid var(--bg);display:grid;place-items:center}.prompt-box{background:#1c1c1c;border:1px solid #ffffff08;border-radius:25px;padding:16px 15px 10px;box-shadow:0 8px 35px #0001}.prompt-box:focus-within{border-color:#ffffff2d}.prompt-box textarea{resize:none;width:100%;max-height:168px;min-height:58px;padding:1px 3px 6px;border:0;outline:0;background:none;color:#eee;font-size:16px;line-height:1.5;scrollbar-width:thin}.prompt-box textarea::placeholder{color:#939393}.prompt-actions{display:flex;align-items:center;gap:12px}.prompt-actions .round-button{background:#292929;width:35px;min-width:35px;height:35px}.prompt-actions svg{width:18px;height:18px}.prompt-actions>span{font-size:11px;color:#666;flex:1}.submit-button{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#f5f5f5;color:#111;margin-left:auto}.submit-button svg{width:21px;height:21px;stroke-width:2.2}.submit-button:disabled{background:#363636;color:#747474}.create-status{text-align:center;color:#626262;font-size:11px;margin:13px 0 0;min-height:16px}.attachment-row{display:flex;gap:9px;overflow:auto;margin-bottom:14px}.attachment{position:relative;flex-shrink:0}.attachment img{height:76px;width:65px;object-fit:cover;border-radius:12px}.attachment button{position:absolute;top:-2px;right:-3px;background:#323232;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;border:2px solid var(--bg)}.attachment svg{width:13px;height:13px}
.profile-screen{max-width:940px;height:calc(100% - var(--safe-top));top:var(--safe-top);margin:auto;padding:0 40px 40px;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:none;overflow-anchor:none;scroll-padding-top:48px;scrollbar-width:none}.profile-top{display:flex;justify-content:center;align-items:center;position:relative;padding:25px 0;font-size:13px;font-weight:600;min-height:78px}.profile-top>.round-button{position:absolute;right:0;width:36px;height:36px;min-width:36px}.profile-top svg{width:18px;height:18px}.profile-identity{text-align:center;padding:5px 0 30px;animation:soft-in .24s ease-out}.profile-avatar{display:grid;place-items:center;width:105px;height:105px;background:#252028;border-radius:50%;padding:25px;margin:0 auto 16px;box-shadow:inset 0 0 0 1px #ffffff09}.profile-avatar img{width:100%;height:100%;object-fit:contain}.profile-avatar.has-photo{padding:0;overflow:hidden}.profile-avatar.has-photo img{object-fit:cover}.profile-identity h1{font-size:25px;letter-spacing:-.7px;font-weight:600}.profile-identity>p{font-size:13px;color:#929292;margin:7px 0 0}.profile-stats{display:flex;justify-content:center;gap:38px;margin:22px 0 23px}.profile-stats>div{display:flex;flex-direction:column;gap:2px;min-width:55px}.profile-stats strong{font-size:18px;font-weight:600;line-height:1.3}.profile-stats span{font-size:11px;color:#8c8c8c}.profile-actions{display:flex;gap:10px;justify-content:center}.profile-actions button{border:1px solid #ffffff26;border-radius:25px;min-height:39px;padding:8px 23px;font-size:12px;font-weight:500}.profile-actions button:hover{background:#ffffff0b}.profile-tabs{position:sticky;top:0;z-index:3;height:48px;background:var(--bg);display:flex;justify-content:center;border-bottom:1px solid var(--line);margin-bottom:3px;gap:15px}.profile-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;padding:13px 19px;position:relative;color:#747474;font-size:12px;min-width:110px}.profile-tabs svg{width:17px;height:17px}.profile-tabs button[aria-selected=true]{color:#f0f0f0}.profile-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:10px;right:10px;height:2px;background:#f4f4f4}.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.gallery-tile{display:block;position:relative;aspect-ratio:3/4;padding:0;overflow:hidden;background:#171717}.gallery-tile>img{height:100%;width:100%;transition:transform .3s;display:block}.gallery-tile:hover>img{transform:scale(1.025)}.gallery-tile:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0006);pointer-events:none}.gallery-tile>.tile-label{position:absolute;z-index:1;bottom:12px;left:12px;right:12px;font-size:11px;color:#eee;text-align:left}.gallery-tile .tile-icon{position:absolute;z-index:1;top:12px;right:12px;width:17px;height:17px;filter:drop-shadow(0 1px 3px #0008)}.drafts-tile{background:#211d21;text-align:left}.drafts-tile>img{filter:blur(18px) brightness(.48);transform:scale(1.15);opacity:.75}.drafts-tile .draft-heading{position:absolute;z-index:2;top:15px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:center;font-size:14px}.draft-heading svg{width:18px;height:18px}.drafts-tile .draft-number{display:grid;place-items:center;background:#ffffff23;width:24px;height:24px;border-radius:50%;font-size:11px}.drafts-tile>.tile-label{color:#bbb}.grid-empty{grid-column:1/-1;min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:13px;color:#888;padding:30px}.grid-empty>svg{width:33px;height:33px;color:#666}.grid-empty strong{color:#ddd;font-size:17px;font-weight:400}.grid-empty p{font-size:13px;max-width:280px}.grid-empty button{margin-top:8px}.character-tile{aspect-ratio:auto;padding:27px 10px;display:flex;flex-direction:column;align-items:center;gap:11px;background:none}.character-tile img{width:90px;height:90px;border-radius:50%;object-fit:cover}.character-tile span{font-size:13px;color:#bbb}
.sheet{color:#eee;border:1px solid #ffffff1c;background:#191919;border-radius:27px;padding:0;width:min(510px,calc(100vw - 32px));max-height:min(80dvh,780px);box-shadow:0 25px 120px #000a;overflow:hidden}.sheet[open]{display:flex;flex-direction:column;animation:sheet-in .22s cubic-bezier(.2,.8,.2,1)}.sheet::backdrop{background:#0008;backdrop-filter:blur(7px)}.sheet-handle{display:none}.sheet-header{display:flex;justify-content:space-between;align-items:center;padding:20px 22px 13px;gap:15px;flex-shrink:0}.sheet-header h2{font-size:18px;font-weight:600;letter-spacing:-.3px}.sheet-header .round-button{width:33px;min-width:33px;height:33px}.sheet-header svg{width:18px;height:18px}.sheet-content{padding:5px 22px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.sheet-content>p{font-size:13px;line-height:1.6;color:#a2a2a2}.sheet-content .empty-message{padding:42px 5px;text-align:center;color:#888}.sheet-option{display:flex;align-items:center;gap:12px;min-height:53px;width:100%;padding:11px 3px;border-bottom:1px solid #ffffff0b;text-align:left;font-size:14px}.sheet-option svg{width:20px;height:20px;color:#aaa}.sheet-option .trailing{margin-left:auto}.sheet-option.selected{color:white}.sheet-option.selected .trailing{color:#fff}.setting-group{margin:10px 0 23px}.setting-group>p{color:#8e8e8e;font-size:12px;margin:0 0 10px}.segmented{display:flex;gap:7px;flex-wrap:wrap}.segmented button{padding:10px 17px;background:#262626;color:#aaa;border:1px solid transparent;border-radius:13px;font-size:13px}.segmented button.selected{color:#111;background:#eee}.style-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.style-tile{padding:0;position:relative;border-radius:14px;overflow:hidden;background:#242424;aspect-ratio:3/4;border:2px solid transparent}.style-tile.selected{border-color:white}.style-tile img{height:100%;width:100%;opacity:.7}.style-tile span{position:absolute;bottom:10px;left:5px;right:5px;font-size:11px;text-shadow:0 2px 5px #000}.style-tile:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0006);z-index:0}.style-tile span{z-index:1}.sheet-search{width:100%;min-height:45px;padding:11px 15px;background:#292929;border:1px solid #ffffff10;border-radius:14px;color:#fff;margin-bottom:17px;font-size:14px}.draft-row{display:flex;align-items:center;gap:13px;padding:12px 0;width:100%;text-align:left;border-bottom:1px solid #ffffff0c}.draft-row>img,.draft-row>.draft-icon{width:54px;height:65px;border-radius:9px;object-fit:cover;background:#333;flex-shrink:0}.draft-icon{display:grid;place-items:center}.draft-row>span{min-width:0;display:flex;flex-direction:column;gap:5px}.draft-row strong{font-weight:400;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px}.draft-row small{font-size:11px;color:#888}.draft-row>svg{margin-left:auto;width:15px;height:15px;transform:rotate(-90deg)}.comment-list{max-height:40dvh;overflow:auto}.comment{display:flex;gap:10px;margin:12px 0 23px}.comment .comment-avatar{display:grid;place-items:center;background:#2c2c2c;border-radius:50%;width:30px;height:30px;flex-shrink:0}.comment-avatar svg{width:19px;height:19px}.comment p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.comment strong{display:block;color:#929292;font-size:11px;font-weight:400;margin-bottom:3px}.comment-form{display:flex;gap:9px;margin-top:12px}.comment-form input{width:100%;min-width:0;padding:11px 15px;border:1px solid #ffffff15;background:#252525;border-radius:22px;color:white;outline:none;font-size:13px}.comment-form .submit-button{flex-shrink:0}.local-note{color:#666;font-size:10px;margin-top:9px;display:block}.edit-form label{display:block;font-size:12px;color:#999;margin:14px 0 5px}.edit-form input,.edit-form textarea{width:100%;background:#262626;border:1px solid #ffffff15;border-radius:12px;color:white;padding:12px;resize:vertical}.edit-form .solid-button{margin-top:20px;width:100%}.source-link{display:block;margin-top:16px;font-size:13px;text-decoration:underline;text-underline-offset:4px}.toast{position:fixed;z-index:100;bottom:30px;left:calc(50% + var(--nav)/2);transform:translateX(-50%);padding:13px 20px;background:#efefef;color:#171717;border-radius:24px;font-size:13px;max-width:calc(100vw - 40px);width:max-content;box-shadow:0 8px 40px #0004;animation:soft-in .18s ease-out}
@keyframes soft-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes sheet-in{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}@keyframes like-pop{50%{transform:scale(1.2)}}
@media(min-width:1400px){:root{--nav:215px}.navigation{align-items:stretch;padding:29px 24px}.wordmark span{display:block}.navigation nav{gap:16px}.nav-item{justify-content:flex-start;padding-left:15px}.nav-item>span:not(.create-pill){display:inline;font-size:14px}.create-pill{margin-left:-9px;margin-right:-5px}.nav-more{margin-left:12px}.feed-frame{max-width:calc((100dvh - 32px)*.59)}}
@media(max-width:700px){:root{--nav:0px}.navigation{width:100%;inset:auto 0 0;min-height:calc(var(--dock) + var(--safe-bottom));padding:0 10px var(--safe-bottom);border:0;border-top:1px solid #ffffff09}.wordmark,.nav-more{display:none}.navigation nav{display:flex;align-items:center;justify-content:space-around;gap:0;width:100%;margin:0}.nav-item{flex:1;height:var(--dock);border-radius:0;min-width:0;padding:0}.nav-item svg{width:25px;height:25px}.nav-item:hover{background:none}.create-pill{width:45px;height:32px}.create-pill svg{width:23px;height:23px}main{margin:0;height:calc(100dvh - var(--dock) - var(--safe-bottom))}.feed-screen{padding:0}.feed-frame{border-radius:0;max-width:none;min-width:0}.feed-header{padding:calc(var(--safe-top) + 2px) 16px 26px;justify-content:center}.feed-arrows{display:none}.feed-caption{left:24px;right:85px;bottom:24px}.feed-caption h1{font-size:20px}.feed-caption p{font-size:12px}.feed-rail{right:16px;bottom:40px;gap:18px}.rail-button{width:53px}.rail-button svg{width:28px;height:28px}.rail-button span{font-size:9px}.feed-scroll{touch-action:pan-y}.create-screen{padding:0 20px max(16px,var(--safe-bottom));height:100dvh}.page-header{padding:calc(var(--safe-top) + 15px) 0 10px}.page-header h1{font-size:15px}.page-header svg{width:19px;height:19px}.creation-stage{padding:12px 0 24px;min-height:140px}.creation-empty h2{font-size:23px}.creation-empty p{font-size:12px}.creation-options{margin-bottom:23px;gap:7px}.option-chip{font-size:11px;padding:5px 12px;min-height:31px}.characters{gap:17px;margin-bottom:19px}.character{width:49px}.character>img,.character>span:first-child{width:47px;height:47px}.character small{font-size:9px}.prompt-box{padding:14px 12px 9px;border-radius:25px}.prompt-box textarea{font-size:16px;min-height:70px}.prompt-actions>span{font-size:10px}.create-status{font-size:10px;margin-top:11px}.remix-reference>img{max-height:calc(100dvh - 430px);max-width:210px}.profile-screen{padding:0 0 20px}.profile-top{padding:19px 21px 12px;min-height:60px}.profile-top>.round-button{right:17px}.profile-identity{padding:15px 20px 23px}.profile-avatar{width:91px;height:91px;padding:22px;margin-bottom:14px}.profile-identity h1{font-size:23px}.profile-identity>p{font-size:12px}.profile-stats{gap:31px;margin:21px 0 23px}.profile-stats strong{font-size:17px}.profile-stats span{font-size:10px}.profile-actions{gap:9px}.profile-actions button{font-size:11px;min-height:37px;padding:8px 22px}.profile-tabs{gap:0;margin-bottom:3px}.profile-tabs button{font-size:10px;min-width:0;flex:1;padding:14px 4px;gap:4px}.profile-tabs button:after{left:25px!important;right:25px!important}.profile-tabs svg{width:16px;height:16px}.profile-grid{gap:2px}.drafts-tile .draft-heading{font-size:12px;left:10px;right:10px;top:11px}.gallery-tile>.tile-label{font-size:10px;left:9px;right:9px;bottom:10px}.draft-heading .draft-number{width:19px;height:19px;font-size:10px}.character-tile img{width:70px;height:70px}.sheet{width:100%;max-width:none;margin:auto 0 0;border-radius:27px 27px 0 0;max-height:87dvh;border-bottom:0}.sheet-content{padding:2px 20px calc(25px + var(--safe-bottom))}.sheet-handle{display:block;width:31px;height:4px;border-radius:10px;background:#ffffff36;margin:10px auto 0;flex-shrink:0}.sheet-header{padding:13px 20px 13px}.sheet-header h2{font-size:17px}.sheet::backdrop{backdrop-filter:blur(5px)}.toast{bottom:calc(var(--dock) + var(--safe-bottom) + 16px);left:50%;font-size:12px}body[data-screen=create] .navigation{display:none}body[data-screen=create] main{height:100dvh}body[data-screen=create] .toast{bottom:30px}}
@media(max-width:350px){.feed-caption{left:15px}.feed-caption h1{font-size:18px}.feed-rail{gap:14px;right:12px}.rail-button span{font-size:8px}.create-screen{padding-left:15px;padding-right:15px}.characters{gap:13px}.option-chip{padding:5px 10px;font-size:10px}.profile-actions button{padding:8px 18px}.profile-tabs button{font-size:10px;gap:4px}.profile-tabs svg{display:none}}
@media(max-height:680px){.creation-stage{min-height:95px;padding:8px 0 15px}.creation-orbit{width:60px;height:60px;margin-bottom:12px}.creation-orbit svg{width:28px;height:28px}.creation-orbit:before,.creation-orbit:after{border-radius:18px}.creation-empty h2{font-size:20px}.creation-empty p{display:none}.creation-options{margin-bottom:15px}.characters{margin-bottom:14px}.remix-reference>img{max-height:135px;min-height:80px}.feed-rail{gap:12px;bottom:40px}.feed-caption h1{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.gallery-tile:hover>img{transform:none}}

.creation-picker-tabs{display:flex;gap:22px}.character-heading .creation-picker-tabs button{font-size:12px;color:#686868;padding:0 0 4px;border-bottom:1px solid transparent}.creation-picker-tabs button[aria-selected=true]{color:#e0e0e0;border-color:#d0d0d0}.characters.style-strip{gap:24px}.strip-style{display:flex;align-items:center;flex-direction:column;gap:6px;flex-shrink:0;padding:0;width:62px}.strip-style img{width:32px;height:48px;object-fit:cover;border-radius:8px;border:1px solid #ffffff15}.style-strip.has-selection .strip-style:not(.selected){opacity:.5}.strip-style small{font-size:10px;color:#999;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drafts-tile .draft-heading{top:12px;left:12px;right:12px}
.creation-stage{flex:1 0 auto}
.trends-screen{max-width:760px;margin:auto;padding:0 20px 32px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;scroll-padding-top:132px;outline:none}
.trends-screen::-webkit-scrollbar{display:none}
.trends-header{position:sticky;top:0;z-index:3;padding:calc(14px + var(--safe-top)) 3px 14px;background:var(--bg)}
.trends-heading{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:10px}
.trends-search{display:flex;align-items:center;gap:9px;height:44px;padding:0 12px;background:#ffffff0c;border:1px solid #ffffff08;border-radius:14px;color:#828282}
.trends-search>svg{width:18px;height:18px}
/* iOS zooms focused inputs below 16px. Keep the field inside the 44px search row. */
.trends-search input{min-width:0;width:100%;height:100%;border:0;padding:0;outline:0;background:none;color:#eee;font-size:16px}
.trends-search input::placeholder{color:#828282}
.trends-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.trends-search:focus-within{border-color:#ffffff30}
.trends-search button{display:grid;place-items:center;align-self:stretch;width:36px;flex-shrink:0;padding:0;margin-right:-8px}
.trends-search button svg{width:17px;height:17px}
.trends-header h1{font-size:23px;letter-spacing:-.65px;font-weight:600}


.trends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.trend-column{display:flex;flex-direction:column;gap:10px;min-width:0}
.trend-card{position:relative;display:block;width:100%;padding:0;overflow:hidden;border-radius:14px;background:#181818;text-align:left;isolation:isolate}
.trend-card>img{display:block;width:100%;height:100%;object-fit:cover}
.trend-card:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0009);pointer-events:none}
.trend-title{position:absolute;z-index:1;bottom:12px;left:12px;right:12px;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 8px #0006}
.trend-views{position:absolute;z-index:1;top:9px;right:9px;display:flex;align-items:center;gap:5px;padding:5px 7px;border-radius:12px;background:#0007;font-size:10px;line-height:1;backdrop-filter:blur(8px)}
.trend-views svg{width:12px;height:12px;stroke-width:1.8}
.profile-top>.profile-activity{left:0;right:auto}
.profile-activity i{position:absolute;right:5px;top:5px;width:6px;height:6px;background:white;border-radius:50%}
.feed-slide[data-kind=photo]>img{object-fit:contain}
.toast button{margin-left:14px;padding:0;color:#282828;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.trend-tabs{display:flex;align-items:baseline;gap:21px;height:44px}
.trend-tabs button{height:44px;padding:0;font-size:21px;font-weight:500;letter-spacing:-.6px;color:#747474;transition:font-size .2s,color .2s}
.trend-tabs button[aria-selected=true]{font-size:29px;font-weight:600;color:#f4f4f4;letter-spacing:-.85px}
.feed-header{padding:calc(var(--safe-top) + 2px) 16px 30px;min-height:0}
.feed-tabs{display:flex;justify-content:center;align-items:baseline;gap:17px;pointer-events:auto;min-width:0}
.feed-tabs button{position:relative;white-space:nowrap;padding:5px 0 13px;font-size:14px;font-weight:500;color:#ffffffa3;text-shadow:0 1px 10px #0008}
.feed-tabs button[aria-selected=true]{font-size:17px;font-weight:600;color:white}
.feed-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:1px;left:50%;width:27px;height:3px;border-radius:3px;background:white;transform:translateX(-50%)}
.page-header{grid-template-columns:72px minmax(0,1fr) 72px}
.page-header h1{grid-column:2}
.header-balance{display:flex;justify-content:flex-end;align-items:center;gap:5px;min-height:38px;padding:4px 0 4px 8px;font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}
.page-header .header-balance svg{width:15px;height:15px;color:#aaa}
.generation-submit{min-width:44px;width:auto;height:44px;padding:0 11px;border-radius:50%;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.generation-submit #generation-cost{font-size:inherit;color:inherit}
.trend-card>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;pointer-events:none;opacity:0;transition:opacity .18s}
.trend-card>video.ready{opacity:1}
.trend-card:after{z-index:2}
.trend-card .trend-title,.trend-card .trend-views{z-index:3}
.reference-media{position:relative;overflow:hidden;border-radius:18px;line-height:0;max-width:100%}
.reference-media>img{display:block;max-height:calc(100dvh - 415px);max-width:270px;width:auto;object-fit:contain}
.reference-media>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0}
.reference-media>video.ready{opacity:1}
.reference-tap{position:absolute;inset:0;display:grid;place-items:center;width:100%;padding:0}
.reference-tap svg{width:48px;height:48px;padding:13px;background:#0005;backdrop-filter:blur(8px);border-radius:50%;opacity:0;fill:white;stroke:none;transition:opacity .18s}
.reference-tap.paused svg{opacity:1}
.reference-tap:focus-visible{outline-offset:-4px}
.creation-footer .create-status:empty{display:none}
@media(max-width:700px){.feed-header{padding:calc(var(--safe-top) + 2px) 15px 28px}.page-header{grid-template-columns:65px minmax(0,1fr) 65px}.trends-heading{margin-bottom:12px}.reference-media>img{max-height:calc(100dvh - 405px);max-width:250px}}
@media(max-width:350px){.feed-tabs{gap:11px}.feed-tabs button{font-size:12px}.feed-tabs button[aria-selected=true]{font-size:14px}.feed-header{padding-left:12px;padding-right:12px}.header-balance{font-size:14px}.page-header{grid-template-columns:58px minmax(0,1fr) 58px}}
.profile-wallet{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.wallet-summary{display:flex;align-items:center;gap:12px;text-align:left;padding:0;min-width:0}
.wallet-summary>svg{width:23px;height:23px;color:#c6c6c6}
.wallet-summary>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.wallet-summary strong{font-size:16px;font-weight:500;letter-spacing:-.3px}
.wallet-summary small{font-size:10px;color:#858585;line-height:1.5}
.wallet-add{border:1px solid #ffffff30;border-radius:24px;padding:9px 14px;font-size:11px;flex-shrink:0}
.profile-status{padding:0 20px;font-size:12px;line-height:1.5;color:#aaa;text-align:center}
.profile-status:not(:empty){margin-bottom:16px}
.comment-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.comment p{min-width:0;flex:1}.comment p>span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.comment-author{display:block;padding:0;margin-bottom:5px;font-size:12px;font-weight:600;text-align:left}.comment-menu{align-self:flex-start;padding:5px;color:#888}.comment-menu svg{width:15px;height:15px}.form-error{color:#d99b9b;font-size:12px;line-height:1.4}.form-error:empty{display:none}.public-profile{text-align:center;padding:20px}.public-profile>img,.public-profile>svg{width:80px;height:80px;border-radius:50%;object-fit:cover;margin:0 auto 16px}.public-profile h3{margin:0 0 10px}.public-profile p{white-space:pre-wrap;overflow-wrap:anywhere}.admin-link{display:block;text-align:center;color:#aaa;font-size:12px;padding:0 0 20px}.admin-link[hidden]{display:none}





.generation-input-hint{color:#a4a4a4;font-size:12px;line-height:1.55;margin-bottom:16px;white-space:pre-line}
.creation-footer{text-align:center;padding-top:12px}
.creation-footer>button{padding:5px 12px;color:#777;font-size:11px}
.creation-footer>button:disabled{opacity:.4}
.creation-footer .create-status{margin:5px 0 0;line-height:1.5;color:#888}
.creation-form .creation-options{margin-bottom:13px}
.wallet-amount{font-size:47px;letter-spacing:-2px;padding:13px 0 20px}
.wallet-amount span{display:block;font-size:12px;letter-spacing:0;color:#888}
.wallet-breakdown{border-block:1px solid var(--line);padding:9px 0;margin-bottom:14px}
.wallet-breakdown p{display:flex;justify-content:space-between;gap:15px;padding:8px 0;font-size:13px;color:#a4a4a4}
.wallet-breakdown strong{color:#eee;font-weight:400}
.wallet-reset{font-size:11px!important}
.wallet-topup{width:100%;margin-top:21px;font-size:13px}
.wallet-topup:disabled{background:#303030;color:#808080}
.credit-packages{display:grid;gap:9px;margin-top:20px}
.credit-package{display:flex;align-items:center;gap:12px;padding:17px 15px;border:1px solid #ffffff16;border-radius:16px;text-align:left;font-size:12px;color:#aaa}
.credit-package.selected{border-color:#d8d8d8;background:#ffffff07}
.credit-package strong{font-size:20px;font-weight:500;color:#eee;margin-right:3px}
.credit-package b{margin-left:auto;font-size:15px;font-weight:400;color:#ddd;white-space:nowrap}
.credit-package svg,.package-check{width:17px;height:17px;flex-shrink:0}
.job-placeholder{display:grid;place-items:center;height:100%;color:#777;background:linear-gradient(140deg,#222,#131313)}
.job-tile .tile-label small{display:block;font-size:9px;color:#aaa;margin-top:5px}
.job-result>img,.job-result>video{width:100%;max-height:57dvh;object-fit:contain;border-radius:12px;background:#111}
.job-result>p{font-size:13px;color:#aaa;line-height:1.6;padding:20px 0}
.profile-grid .drafts-tile+.grid-empty{min-height:160px}
@media(max-width:700px){.profile-wallet{margin:0 20px 10px}.remix-reference>img{max-height:calc(100dvh - 480px)}.creation-empty p{max-width:240px;margin-left:auto;margin-right:auto}}

@media(max-width:700px){
  .trends-screen{padding:0 10px calc(104px + var(--safe-bottom));scroll-padding-top:128px;scroll-padding-bottom:100px}
  .trends-header{padding:calc(11px + var(--safe-top)) 2px 12px}
  .trends-heading{padding:0 4px}
  .trends-header h1{font-size:22px}
  .trend-title{bottom:11px;left:10px;right:10px;font-size:12px}
  main{height:100dvh}
  .navigation{inset:auto auto calc(12px + var(--safe-bottom)) 50%;width:min(300px,calc(100% - 28px));transform:translateX(-50%);min-height:68px;padding:5px 6px;border:1px solid #ffffff24;border-radius:28px;background:#181a1db8;backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);box-shadow:0 8px 32px #0003}
  .navigation nav{gap:3px}
  .nav-item{height:56px;min-height:56px;flex-direction:column;gap:5px;border-radius:21px;color:#ffffffa6;transition:color .18s,background .18s,transform .18s}
  .nav-item svg{width:22px;height:22px;stroke-width:1.7}
  .nav-item>span:not(.create-pill){display:block;font-size:9px;line-height:11px}
  .nav-item.active{background:#ffffff14;color:#fff}
  .nav-item:hover{color:#fff;background:#ffffff0a}
  .create-pill{width:43px;height:43px;border-radius:50%;background:#f8f8f8;box-shadow:0 2px 9px #0002}
  .create-pill svg{width:24px;height:24px;stroke-width:1.8}
  .nav-item>.nav-label{display:none!important}
  .feed-caption{bottom:calc(108px + var(--safe-bottom))}
  .feed-rail{bottom:calc(122px + var(--safe-bottom))}
  .profile-screen{padding-bottom:calc(104px + var(--safe-bottom))}
  .profile-top>.profile-activity{left:17px;right:auto}
  .toast{bottom:calc(100px + var(--safe-bottom))}
}

.in-telegram main{padding-left:var(--safe-left);padding-right:var(--safe-right)}

.creation-stage,.page-header,.creation-options,.character-heading,.creation-footer,.prompt-actions{touch-action:pan-y}
.creation-stage img{user-select:none;-webkit-user-drag:none}

.feed-header{padding-right:60px}

.profile-screen::-webkit-scrollbar{display:none}
/* Short sections still scroll far enough to keep the profile tabs pinned. */
.profile-screen>.profile-grid{min-height:calc(100% - 48px);align-content:start}
