/* One phone canvas at every window size; the installed app uses the full screen. */
body.pwa-only{--canvas:#09080e;--surface:#15121c;--accent:#c51d72;--pink:#ff65b1;--muted-text:#b5adbe;--app-height:100dvh;--sheet-height:var(--app-height);--page-gutter:18px;--control-size:44px;display:grid;place-items:center;min-height:0;height:var(--app-height);padding:0;margin:0;background:#07040b;font:var(--type-body)/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;overflow:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.pwa-only .phone{display:flex;flex-direction:column;position:relative;width:min(100%,430px);max-width:430px;height:var(--app-height);min-height:0;margin:0 auto;padding:env(safe-area-inset-top,0px) 0 0!important;border:0;border-radius:0;background:var(--canvas);overflow:hidden}
body.pwa-only [hidden]{display:none!important}
body.pwa-only .notch{display:none}
body.pwa-only .phone main{flex:1;min-height:0;width:100%;height:auto!important;overflow:auto;overscroll-behavior-y:contain;scrollbar-width:none;scroll-padding:16px;background:var(--canvas)}
body.pwa-only main::-webkit-scrollbar{display:none}
body.pwa-only #nav{position:relative;inset:auto;display:flex;flex-direction:row;flex:0 0 auto;gap:0;width:100%;height:calc(68px + env(safe-area-inset-bottom,0px));padding:4px 7px calc(4px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid #2a2138;background:#0d0a16}
body.pwa-only #nav:before,body.pwa-only #nav:after{display:none;content:none}
body.pwa-only #nav button{flex:1;min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 0;border:0;border-radius:8px;background:transparent;color:#a49daa;font-size:11.5px;font-weight:600;text-align:center}
body.pwa-only #nav .nav-icon{width:32px;height:29px;background:transparent}
body.pwa-only #nav .nav-icon svg{width:24px;height:24px;stroke-width:1.8}
body.pwa-only #nav .nav-label{font-size:var(--type-caption);line-height:18px}
body.pwa-only #nav button.active{color:#ff65b1;background:transparent}
body.pwa-only #nav button.active:after{display:none}
body.pwa-only #nav button.active .nav-icon{background:transparent;color:#ff65b1}
body.pwa-only :is(button,input,select,textarea,a,summary){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
body.pwa-only button{min-height:44px;font-size:var(--type-control);border-color:#302737;background:#1b1722;border-radius:12px}
body.pwa-only button:active{transform:scale(.98)}
body.pwa-only .primary{color:#fff;background:var(--accent);border:1px solid transparent;font-size:var(--type-control);font-weight:700;border-radius:12px}
body.pwa-only .primary:hover{background:#bf1267;color:#fff}
body.pwa-only :is(input,select,textarea){font-size:16px;border-radius:12px;border-color:#3b3048;background:#100d17;min-width:0}
body.pwa-only :is(input,select,textarea,summary,a):focus-visible{outline:none;background-color:#35273d;outline-offset:2px}
body.pwa-only .pad{padding:22px 18px 28px;max-width:100%;margin:0}
body.pwa-only h1{font-size:var(--type-title);line-height:1.25;letter-spacing:-.5px;font-weight:750}
body.pwa-only h2{font-size:var(--type-section);line-height:1.35;letter-spacing:-.25px;font-weight:700}
body.pwa-only h3{font-size:var(--type-card);line-height:1.4;font-weight:700}
body.pwa-only p{font-size:var(--type-body);line-height:1.6}
body.pwa-only .top{display:flex;padding:18px;border:0;background:transparent}
body.pwa-only .top .brand{display:block;font-size:var(--type-title);line-height:1;letter-spacing:-1.3px}
body.pwa-only .studio-top{display:flex;padding:16px 18px;border-bottom:1px solid #231b2b;justify-content:flex-start}
body.pwa-only .studio-top .brand{display:block;font-size:var(--type-title);line-height:1;letter-spacing:-1.3px}
body.pwa-only .explore-content{padding-top:24px}
body.pwa-only .scene-heading{align-items:flex-start;gap:12px}
body.pwa-only .scene-heading h2{font-size:var(--type-section);line-height:1.3}
body.pwa-only .scene-heading p{font-size:13px;margin-top:5px}
body.pwa-only .scene-pagination button{width:44px;height:44px;padding:0;border-radius:50%;font-size:22px}
body.pwa-only .face-home-preview{margin-bottom:26px}
body.pwa-only .face-home-carousel{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 20px)/2.35);gap:10px;padding:17px 0 12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
body.pwa-only .face-home-select{aspect-ratio:3/4.5;border-radius:14px}
body.pwa-only .face-five{top:9px;left:8px;bottom:auto;font-size:10px;padding:4px 6px;line-height:1.3}
body.pwa-only .face-scene-caption{padding-top:8px;gap:5px}
body.pwa-only .face-scene-caption b{font-size:13px;line-height:1.4}
body.pwa-only .face-scene-caption small{font-size:11px}
body.pwa-only .face-home-play{position:static;flex-shrink:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:12px;border:0;background:transparent}
body.pwa-only .scene-reuse{min-height:32px;padding:6px 10px;border-radius:20px;font-size:12px;background:#cf247c;color:#fff}
body.pwa-only .face-home-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:8px}
body.pwa-only .face-home-actions>button{font-size:13px!important;min-height:46px;padding:10px 12px}
body.pwa-only .catalogue-heading h2{font-size:19px}
body.pwa-only .catalogue-heading p{font-size:13px;margin-top:5px}
body.pwa-only .explore-sessions{padding-top:4px;margin-bottom:26px}
body.pwa-only .session-list{display:flex;gap:10px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:14px 0 5px}
body.pwa-only .session-item{flex:0 0 80%;display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #2b2435;border-radius:14px;background:#15111e;min-height:89px;scroll-snap-align:start}
body.pwa-only .session-item img{width:46px;height:60px;border-radius:9px;object-fit:cover}
body.pwa-only .session-item b{font-size:var(--type-card)}.pwa-only .session-item small{font-size:12px}.pwa-only .session-open{font-size:12px}
body.pwa-only .catalogue-search{margin-top:16px}.pwa-only .catalogue-search>span{font-size:12px}
body.pwa-only .search{padding:12px 14px;min-height:46px}
body.pwa-only .filters{display:flex;flex-wrap:nowrap;gap:7px;overflow-x:auto;scrollbar-width:none;margin:12px 0;padding-bottom:7px}
body.pwa-only .filters button{flex-shrink:0;min-height:40px;padding:8px 13px;font-size:12px;white-space:nowrap;border-radius:22px}
body.pwa-only .filters button.active{color:#fff;background:#a51c66;border-color:#a51c66}
body.pwa-only .character-catalogue .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.pwa-only .card.character-card{min-height:190px;padding:13px;border-radius:15px;gap:12px;background:#15111e}
body.pwa-only .character-card-identity{display:flex;flex-wrap:wrap;gap:8px;position:relative;padding-right:22px}
body.pwa-only .character-card-avatar{width:36px;height:36px;border-radius:10px;font-size:16px}
body.pwa-only .character-card h2{font-size:15px!important;line-height:1.3}
body.pwa-only .character-card-role{font-size:11px;line-height:1.5}
body.pwa-only .character-card .heart{position:absolute;right:-8px;top:-6px;width:38px;height:44px;min-height:44px;padding:10px}
body.pwa-only .character-card p{font-size:12px!important;line-height:1.5;min-height:36px}
body.pwa-only .character-card .primary{font-size:12px!important;min-height:44px;padding:8px!important;text-align:center}
body.pwa-only .explore-heading{margin:0 0 20px}.pwa-only .explore-heading h1{font-size:var(--type-title)}.pwa-only .explore-heading p{font-size:14px;margin-top:8px;max-width:none}
body.pwa-only .creator-count{font-size:12px;padding-bottom:16px;margin-bottom:16px}
body.pwa-only .feature{display:flex;align-items:center;gap:14px;width:100%;padding:20px 16px;margin:0 0 12px;border:1px solid #302539;border-radius:16px;background:#15131b;text-align:left;min-height:102px}
body.pwa-only .feature .glyph{display:grid;place-items:center;width:44px;height:48px;min-width:44px;color:#f2a3ca}
body.pwa-only .feature h3{font-size:var(--type-card);line-height:1.35;margin-bottom:5px}
body.pwa-only .feature p{font-size:13px!important;line-height:1.5;color:#aaa4b3}
body.pwa-only .panel{padding:18px!important;border-radius:17px;background:#15121c!important;border-color:#2c2436}
body.pwa-only .panel p,body.pwa-only .panel small,body.pwa-only .notice{font-size:13px!important;line-height:1.6}
body.pwa-only .profile-page>.row{gap:12px;flex-wrap:wrap}.pwa-only .profile-page h2{font-size:var(--type-section)}
body.pwa-only .profile-page>.row>.avatar{width:52px;height:52px;font-size:21px}
body.pwa-only .profile-page .pill{padding:6px 9px;min-height:40px;font-size:12px}
body.pwa-only .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
body.pwa-only .stats button{font-size:11px;border:0;border-radius:12px;padding:12px 4px;background:#211a2b}
body.pwa-only .stats strong{font-size:var(--type-section);line-height:1.25;margin-bottom:5px;color:#ff70b9}
body.pwa-only .tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;gap:3px;border-radius:13px;margin:18px 0}
body.pwa-only .tabs button{font-size:12px;min-width:0;min-height:44px;padding:8px 3px;border-radius:9px}
body.pwa-only .tabs button.active{background:#a71c66;color:#fff}
body.pwa-only .price{padding:15px 13px;min-height:65px;border-radius:13px;margin-top:10px}.pwa-only .price b{font-size:15px}.pwa-only .price strong{font-size:16px}
body.pwa-only .messages-hub{padding:24px 18px;min-height:100%}
body.pwa-only .messages-heading{gap:10px;align-items:flex-start}.pwa-only .messages-heading h1{font-size:24px}.pwa-only .messages-heading p{font-size:13px!important;margin-top:7px}
body.pwa-only .messages-workspace{display:block;margin-top:22px}.pwa-only .discover-panel{display:none}
body.pwa-only .new-conversation{min-width:44px;width:44px;height:44px;padding:10px;border-radius:12px}.pwa-only .new-conversation span{display:none}
body.pwa-only .conversation-panel{border:0;border-radius:0;background:transparent;padding:0}
body.pwa-only .conversation-row{padding:14px 0;gap:12px;min-height:84px}.pwa-only .conversation-avatar{width:48px;height:48px;flex-shrink:0;border-radius:50%}
body.pwa-only .conversation-name{font-size:15px}.pwa-only .conversation-preview{font-size:13px!important}.pwa-only .conversation-section-title{padding:18px 0 6px}
body.pwa-only .conversation-empty{padding:54px 8px;min-height:340px}.pwa-only .conversation-empty h3{font-size:17px}.pwa-only .conversation-empty p{font-size:13px}
body.pwa-only .swap-page,body.pwa-only .swap-workbench{max-width:100%;padding:19px 18px 28px;margin:0;background:var(--canvas)}
body.pwa-only .swap-page-head{gap:9px;margin-bottom:18px}.pwa-only .swap-page-head h1{font-size:var(--type-title)!important;line-height:1.3}.pwa-only .swap-page-head small{display:none}
body.pwa-only .swap-page-head>button{width:42px;height:44px;flex-shrink:0;border-radius:50%;padding:10px}.pwa-only .swap-head-price{font-size:13px}
body.pwa-only .swap-workspace{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}
body.pwa-only .swap-workbench .swap-hero{order:0;width:100%;height:300px;aspect-ratio:auto!important;border-radius:18px}
body.pwa-only .swap-workbench .swap-input-panel{order:1;padding:17px!important;border-radius:17px;width:100%}
body.pwa-only .swap-workbench .swap-input-panel .swap-section-title>span{display:inline;font-size:12px}
body.pwa-only .swap-workbench .swap-input-panel .swap-source-tabs{grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}
body.pwa-only .swap-workbench .swap-input-panel .swap-source-tabs button{font-size:12px!important;min-height:44px;padding:8px}
body.pwa-only .swap-workbench .swap-input-panel .swap-upload{min-height:110px;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;padding:14px;gap:12px;text-align:left}
body.pwa-only .swap-workbench .swap-input-panel .swap-upload b{font-size:14px}.pwa-only .swap-workbench .swap-input-panel .swap-upload>small{font-size:12px;width:100%;max-width:none}
body.pwa-only .swap-workbench .swap-upload:has(img){height:190px;align-items:flex-end;justify-content:flex-start}
body.pwa-only .swap-mode-tabs{gap:5px;margin:0 0 16px;border-radius:13px}.pwa-only .swap-mode-tabs button{font-size:13px;min-height:44px}
body.pwa-only .swap-mode-tabs [aria-pressed=true]{background:#51203e;color:#fff}
body.pwa-only .swap-hero{border-radius:18px!important}.pwa-only .swap-hero-label h2{font-size:var(--type-card)}.pwa-only .swap-player-controls button{width:38px;height:44px;min-height:44px}
body.pwa-only .mio-provider-panel{grid-template-columns:minmax(0,1fr);gap:10px;padding:17px;border-radius:17px;background:#15121c;border-color:#302539}
body.pwa-only .mio-provider-panel h3{font-size:var(--type-section)}.pwa-only .mio-provider-panel p{font-size:12px;line-height:1.6}
body.pwa-only .mio-provider-panel>label{grid-column:1/-1;font-size:12px;gap:7px}.pwa-only .mio-provider-panel :is(input,select){font-size:14px;min-height:46px;width:100%}.pwa-only .mio-provider-panel input{font-size:16px}
body.pwa-only .swap-create-video{min-height:49px;font-size:15px;color:#fff;background:#b31a70;border-radius:13px}
body.pwa-only .swap-service-note{font-size:12px!important;line-height:1.6;text-align:left;margin:10px 0 18px}
body.pwa-only .generation-result :is(video,img){aspect-ratio:3/4;max-height:420px;border-radius:14px;object-fit:contain;background:#050407}
body.pwa-only .generation-result p{font-size:14px}.pwa-only .generation-result a{font-size:13px;min-height:44px;padding:12px 8px}
body.pwa-only .swap-section-title :is(b,span){font-size:12px!important}.pwa-only .swap-reference-card{width:104px;height:145px;border-radius:13px}.pwa-only .swap-role-carousel>button{min-width:142px;padding:10px;border-radius:13px}
body.pwa-only .swap-reference-details{margin-top:20px}.pwa-only .swap-reference-details summary{font-size:13px;min-height:44px}
body.pwa-only .short{max-width:100%;width:100%;height:100%;min-height:0;margin:0;border:0;border-radius:0}
body.pwa-only .short-top-controls{top:15px;right:12px;gap:8px}.pwa-only .short-switcher{width:40px;border-radius:24px}.pwa-only .short-switcher button{width:38px;height:38px;min-height:38px;padding:9px}.pwa-only .short-sound{width:40px;height:40px;min-height:40px;padding:9px}
body.pwa-only .short-actions{right:7px;bottom:46px;gap:12px;width:68px}.pwa-only .short-action{width:68px;min-height:60px;gap:4px;padding:0;background:transparent;border:0;font-size:11px!important}
body.pwa-only .short-action>.short-disc{width:44px;height:44px;min-width:44px;min-height:44px;aspect-ratio:1;border-radius:50%;flex-shrink:0}.pwa-only .short-action>span:last-child{font-size:11px;line-height:16px;white-space:nowrap}
body.pwa-only .short-follow{width:44px;height:50px;min-height:50px;margin-bottom:2px}.pwa-only .short-follow>img{width:44px;height:44px;aspect-ratio:1;object-fit:cover}.pwa-only .short-follow b{width:20px;height:20px;font-size:16px;right:-3px;bottom:0}
body.pwa-only .short .media-expand{width:44px;height:44px;min-height:44px;min-width:44px;aspect-ratio:1;border-radius:50%;padding:10px;align-self:center}
body.pwa-only .short-caption{left:14px;right:82px;bottom:43px;max-width:none;width:auto}.pwa-only .media-person-name{font-size:var(--type-section);font-weight:750;min-height:34px;padding:0}.pwa-only .short-role{font-size:10px!important;min-height:21px;padding:3px 7px;border-radius:6px;max-width:120px}
body.pwa-only .short-tags{gap:5px;margin:6px 0}.pwa-only .short-tags span{font-size:10px;padding:3px 5px;border-radius:4px;line-height:1.5}.pwa-only .short-caption>p{font-size:12px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pwa-only .short-status{font-size:10px!important;line-height:1.5;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pwa-only .media-timeline{left:10px;right:10px;bottom:5px;gap:6px}.pwa-only .media-timeline button{width:32px;min-width:32px;height:34px;min-height:34px;padding:6px}.pwa-only .media-timeline :is(span,input){font-size:10px}.pwa-only .media-tap-surface{border-radius:0}
body.pwa-only .companion-detail{position:absolute;inset:0;left:0;max-width:100%;width:100%;z-index:20}.pwa-only .companion-detail-footer{padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px));gap:10px}.pwa-only .companion-detail-footer button{min-height:48px;font-size:14px}.pwa-only .companion-body{padding:20px 18px}.pwa-only .companion-cover{height:390px;max-height:55dvh}.pwa-only .companion-identity h1{font-size:var(--type-title)}.pwa-only .companion-identity>img{width:76px;height:76px}.pwa-only .companion-about p{font-size:14px}
body.pwa-only .live-studio{height:100%;display:flex;flex-direction:column;overflow:hidden}.pwa-only .studio-header{flex-shrink:0;padding:13px 14px;gap:8px}.pwa-only .studio-header button{min-height:40px;font-size:11px;padding:8px}.pwa-only .studio-name b{font-size:13px!important}.pwa-only .studio-camera{flex:0 0 42%;min-height:180px!important;max-height:43%}.pwa-only .studio-messages{min-height:100px;flex:1;overflow:auto}.pwa-only .studio-empty{padding:25px 18px}.pwa-only .studio-empty h2{font-size:15px!important}.pwa-only .studio-empty p{font-size:13px!important}.pwa-only .studio-tools{flex-shrink:0;gap:7px;padding:9px 12px}.pwa-only .studio-tools button{font-size:11px;min-height:40px}.pwa-only .studio-composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));flex-shrink:0}.pwa-only .studio-composer input{font-size:16px;min-width:0}.pwa-only .studio-sheet{padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px));max-height:85%;border-radius:22px 22px 0 0}.pwa-only .studio-sheet h2{font-size:var(--type-section)}.pwa-only .studio-sheet textarea{font-size:16px}
body.pwa-only dialog{position:fixed;inset:0;max-width:min(430px,calc(100% - 24px));width:calc(100% - 24px);max-height:calc(var(--app-height) - 40px);margin:auto;padding:23px 18px;border-radius:20px;background:#15111e;border-color:#3e2d4c;overflow:auto}.pwa-only dialog::backdrop{background:#030208b8;backdrop-filter:blur(5px)}.pwa-only dialog h2{font-size:var(--type-section);margin:3px 34px 17px 0}.pwa-only dialog label{font-size:var(--type-body)}.pwa-only dialog .close{width:44px;height:44px;padding:8px;font-size:25px}
body.pwa-only .chat-head{padding:13px 15px;gap:10px}.pwa-only .chat-head .avatar{width:38px;height:38px}.pwa-only .chat-head>b{font-size:14px}.pwa-only .camera{height:35%;min-height:160px}.pwa-only .messages{min-height:120px}.pwa-only .composer{padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))}.pwa-only .composer input{font-size:16px}
body.pwa-only #toast{position:fixed;left:50%;bottom:calc(82px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:max-content;max-width:min(390px,calc(100% - 32px));font-size:13px;line-height:1.5;padding:11px 14px;border-radius:12px;background:#352236;color:#fff;z-index:100}
body.pwa-only .saved-video-row{display:flex;align-items:center;gap:11px;width:100%;min-height:76px;padding:10px;text-align:left;margin-top:8px}.pwa-only .saved-video-row img{width:42px;height:56px;object-fit:cover;border-radius:8px}.pwa-only .saved-video-row span{min-width:0}.pwa-only .saved-video-row small{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pwa-only .explore-sessions .catalogue-heading h2{font-size:var(--type-section)}
body.pwa-only .session-item{position:relative;flex-basis:calc((100% - 10px)/2.12);height:220px;padding:14px;align-items:flex-end;overflow:hidden;border-radius:19px;background:#15111e}
body.pwa-only .session-item>img{position:absolute;inset:0;width:100%;height:100%;border-radius:0;object-fit:cover}
body.pwa-only .session-item:after{position:absolute;inset:30% 0 0;content:'';background:linear-gradient(transparent,#07050bd9 75%,#07050b);pointer-events:none}
body.pwa-only .session-item>span{position:relative;z-index:1;min-width:0;display:block}
body.pwa-only .session-item b{font-size:var(--type-card);line-height:1.35;color:#fff}.pwa-only .session-item small{display:block;margin-top:4px;font-size:11px;color:#ddd4df}
body.pwa-only .session-item .session-open{display:grid;place-items:center;position:absolute;right:11px;bottom:14px;width:30px;height:30px;min-width:30px;border-radius:50%;background:#cc1d79;color:#fff;padding:6px}
body.pwa-only .session-open svg{width:17px;height:17px}
body.pwa-only .session-item>span:first-of-type{padding-right:26px}
body.pwa-only .card.character-card .primary{background:#a51a63;color:#fff;border-color:transparent}
body.pwa-only .creations-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:49px;margin:17px 0 24px;padding:12px 15px;font-size:14px;font-weight:650;background:#26182c;border-color:#50304b}
body.pwa-only .local-tools{border-top:1px solid #2b2335;padding-top:5px;margin-top:5px}.pwa-only .local-tools summary{font-size:14px;min-height:49px;padding:14px 0;font-weight:600;cursor:pointer}.pwa-only .local-tools .feature{min-height:92px}
body.pwa-only .create-page>.notice{margin-top:18px;font-size:12px!important}
body.pwa-only .creations-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.pwa-only .creations-heading h2{font-size:19px}.pwa-only .creations-heading button{font-size:12px;min-height:44px;padding:8px 12px}
body.pwa-only .creation-filters{display:flex;gap:8px;margin:15px 0 12px}.pwa-only .creation-filters button{min-height:40px;padding:8px 15px;font-size:12px;border-radius:21px}.pwa-only .creation-filters button[aria-pressed=true]{background:#9f1b63;color:#fff;border-color:#9f1b63}
body.pwa-only .creation-status{font-size:12px;line-height:1.5;margin-bottom:15px;min-height:36px}
body.pwa-only .creations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 11px}
body.pwa-only .creation-card{min-width:0;overflow:hidden;border:1px solid #2d2336;border-radius:15px;background:#15111e}
body.pwa-only .creation-preview{position:relative;display:block;padding:0;width:100%;aspect-ratio:3/4;overflow:hidden;border-radius:0;border:0;background:#08060b}
body.pwa-only .creation-preview :is(img,video){display:block;width:100%;height:100%;object-fit:cover}
body.pwa-only .creation-state{position:absolute;top:8px;left:8px;border-radius:5px;background:#0b0719d9;color:#f5eaf2;padding:3px 6px;font-size:10px;line-height:1.6}
body.pwa-only .creation-pending{display:grid;height:100%;align-items:center;padding:16px;color:#d1bacb;font-size:13px}
body.pwa-only .creation-copy{padding:11px 10px 5px}.pwa-only .creation-copy b{display:block;font-size:13px;font-weight:650;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pwa-only .creation-copy small{display:block;font-size:11px;margin-top:5px;color:#b3a7b8}
body.pwa-only .creation-actions{display:flex;flex-wrap:wrap;gap:0 4px;padding:0 6px 4px}.pwa-only .creation-actions :is(a,button){display:flex;align-items:center;justify-content:center;flex:1;min-height:42px;padding:7px 5px;font-size:11px;white-space:nowrap;color:#ffafd4;border:0;background:transparent;text-decoration:none}
body.pwa-only .creation-retry{margin:4px 8px 10px;min-height:42px;padding:8px;font-size:12px;width:calc(100% - 16px)}
body.pwa-only .creation-empty-action{grid-column:1/-1;min-height:48px}
body.pwa-only .creation-result-view :is(video,img){display:block;width:100%;max-height:55dvh;aspect-ratio:3/4;object-fit:contain;background:#070509;border-radius:13px}
body.pwa-only .creation-preview-error{font-size:12px;line-height:1.6;margin:13px 0}
body.pwa-only .creation-save{display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;color:#fff;width:100%;font-size:14px}
body.pwa-only .feature{padding:17px 16px;min-height:100px}.pwa-only .feature h3{font-size:16px}
body.pwa-only .filters button,body.pwa-only .creation-filters button{min-height:44px}
body.pwa-only .scene-reuse{min-height:44px;padding:9px 10px}
body.pwa-only .character-card .heart{width:44px;right:-11px}
body.pwa-only .short-switcher{width:46px}.pwa-only .short-switcher button{width:44px;height:44px;min-height:44px}.pwa-only .short-sound{width:44px;height:44px;min-height:44px}
body.pwa-only .swap-player-controls button,body.pwa-only .swap-page-head>button{width:44px;height:44px;min-height:44px}
body.pwa-only .creation-actions :is(a,button),body.pwa-only .creation-retry{min-height:44px}
body.pwa-only .media-timeline button{width:44px;min-width:44px;height:44px;min-height:44px}
body.pwa-only .media-seek{height:44px;min-height:44px;background:transparent;border:0}
body.pwa-only .media-seek::-webkit-slider-runnable-track{height:2px;background:#ffffff75;border-radius:2px}
body.pwa-only .media-seek::-webkit-slider-thumb{margin-top:-4px}
body.pwa-only .short .media-tap-surface{background:transparent!important;border:0!important;border-radius:0!important}
body.pwa-only .short .short-switcher{border:1px solid #ffffff30;border-radius:28px;background:#15151bb8;overflow:hidden;padding:2px 0}
body.pwa-only .short .short-switcher button{background:transparent!important;border:0!important;border-radius:0!important}
body.pwa-only .short .short-sound{border-radius:50%;background:#52263ab8;border-color:#c17a9644}
body.pwa-only .short .media-profile-avatar{background:transparent;border:0;border-radius:50%;padding:0;overflow:visible}
body.pwa-only .short .media-profile-avatar>img{position:absolute;inset:0;width:44px;height:44px;object-fit:cover;border:1.5px solid #8b73ff;border-radius:50%}
body.pwa-only .companion-back{width:44px;height:44px;min-height:44px;padding:10px;border-radius:50%;background:#100d17aa;border-color:#ffffff26}
body.pwa-only .swap-workbench .swap-input-panel .swap-upload:has(img){height:220px;min-height:220px;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px;padding:12px}
body.pwa-only .swap-workbench .swap-input-panel .swap-upload .swap-upload-icon img{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:100%;object-fit:contain!important}
body.pwa-only .mio-provider-panel :is(input,select){font-size:16px}
body.pwa-only .media-person-name{background:transparent!important;border:0;border-radius:0;color:#fff;text-align:left}
body.pwa-only .media-timeline .media-toggle{background:transparent!important;border:0;border-radius:0}
body.pwa-only .companion-back{top:calc(14px + env(safe-area-inset-top,0px))}
@media(max-height:620px){body.pwa-only .short-top-controls{left:12px;right:auto;flex-direction:row;align-items:flex-start}body.pwa-only .local-short .media-reuse{left:126px;top:12px;padding:9px 11px}}
body.pwa-only .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pwa-only .media-pagination{gap:8px}.pwa-only .media-pagination button{font-size:12px;padding:8px 10px}.pwa-only .media-pagination span{font-size:12px}
body.pwa-only #app:has(>.chat-head){display:flex;flex-direction:column}.pwa-only .chat-head{flex-shrink:0}.pwa-only .chat-head button{font-size:12px;padding:9px}.pwa-only .chat-head [data-action=back] svg{transform:rotate(180deg)}.pwa-only .camera{flex:0 0 30%;max-height:30%}.pwa-only #app:has(>.chat-head) .messages{flex:1;min-height:0;width:100%;overflow:auto}.pwa-only .composer,.pwa-only .log{flex-shrink:0}
@media(max-height:700px){body.pwa-only .short-actions{gap:7px;bottom:42px}.pwa-only .short-action{min-height:55px}.pwa-only .short-top-controls{top:10px}.pwa-only .short-caption>p{-webkit-line-clamp:1}.pwa-only .studio-camera{flex-basis:35%}.pwa-only .swap-workbench .swap-hero{height:260px}}
/* Keep icon geometry and text baselines consistent across the phone flows. */
body.pwa-only :is(.settings-icon,.settings-chevron,.feature-arrow,.feature .glyph,.account-name button){display:grid;place-items:center;flex-shrink:0}
body.pwa-only :is(.settings-icon,.feature .glyph) svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.pwa-only :is(.settings-chevron,.feature-arrow) svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.pwa-only .feature{gap:12px;padding:18px 15px;min-height:104px;border-color:#302939}
body.pwa-only .feature .glyph{width:36px;min-width:36px;height:44px;padding:5px}
body.pwa-only .feature-copy{display:block;flex:1;min-width:0}
body.pwa-only .feature-title{display:block;font-size:var(--type-card);line-height:1.4;font-weight:700;color:#f5f0f8;letter-spacing:-.2px}
body.pwa-only .feature-description{display:block;margin-top:5px;font-size:var(--type-secondary);line-height:1.55;color:var(--muted-text)}
body.pwa-only .feature-arrow{width:18px;color:#9c90a7}
body.pwa-only .local-tools .feature{min-height:96px}
body.pwa-only .create-page>.notice{padding:0;border:0;background:transparent;color:var(--muted-text);font-size:12px!important}
body.pwa-only .scene-pagination button:disabled{opacity:.4}
body.pwa-only .face-scene-caption{align-items:center;padding:9px 8px 9px 11px;gap:4px}
body.pwa-only .face-scene-caption>div{min-width:0}
body.pwa-only .face-scene-caption b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pwa-only .face-scene-caption small{font-size:11px;line-height:1.5;color:var(--muted-text)}
body.pwa-only .session-item b{font-size:var(--type-card);background:transparent;padding:0}
body.pwa-only .session-item small{font-size:12px;line-height:1.5;color:#d1c6d5}
body.pwa-only .account-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px!important}
body.pwa-only .account-card .avatar{width:52px;height:52px;font-size:20px;border-width:1.5px}
body.pwa-only .account-identity{min-width:0}
body.pwa-only .account-name{display:flex;align-items:center;gap:2px;min-width:0}
body.pwa-only .account-name h1{font-size:var(--type-title);line-height:1.3;letter-spacing:-.4px;overflow-wrap:anywhere}
body.pwa-only .account-name button{width:44px;min-width:44px;height:44px;padding:12px;border:0;background:transparent;border-radius:50%}
body.pwa-only .account-name svg{display:block;width:19px;height:19px}
body.pwa-only .account-identity>small{display:block;font-size:12px;line-height:1.5;color:var(--muted-text);margin-top:2px}
body.pwa-only .account-card .pill{min-height:44px;display:flex;align-items:center;gap:5px;padding:8px;font-size:12px}
body.pwa-only .account-card .pill svg{width:15px;height:15px;margin:0}
body.pwa-only .stats{padding:12px!important;gap:8px}
body.pwa-only .stats button{padding:13px 4px;font-size:12px;line-height:1.5}
body.pwa-only .stats strong{font-size:var(--type-section);font-weight:700;line-height:1.2;margin-bottom:7px;font-variant-numeric:tabular-nums}
body.pwa-only .tabs{border:1px solid #302939;background:#14111a;box-shadow:none}
body.pwa-only .tabs button{font-size:13px;font-weight:600;line-height:1.3}
body.pwa-only .balance-panel .gold{font-size:var(--type-value);line-height:1.2;margin-top:6px;font-variant-numeric:tabular-nums}
body.pwa-only .balance-panel .gold small{font-size:14px!important}
body.pwa-only .settings-panel{overflow:hidden;border:1px solid #302939;border-radius:16px;background:var(--surface)}
body.pwa-only .settings-row{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;gap:13px;align-items:center;width:100%;padding:16px;min-height:76px;border:0;border-bottom:1px solid #2c2434;border-radius:0;background:transparent;text-align:left}
body.pwa-only .settings-row:last-child{border-bottom:0}
body.pwa-only .settings-icon{color:#d0b6c9}
body.pwa-only .settings-copy{min-width:0}
body.pwa-only .settings-copy b{display:block;font-size:14px;line-height:1.4;font-weight:600}
body.pwa-only .settings-copy small{display:block;margin-top:3px;font-size:12px;line-height:1.5;color:var(--muted-text)}
body.pwa-only .settings-chevron{color:#9c90a7}
body.pwa-only .settings-note{font-size:12px;line-height:1.65;color:var(--muted-text);padding:15px 2px 0}
body.pwa-only .conversation-search{display:flex;align-items:center;gap:10px;padding:0 13px;min-height:48px;border:1px solid #403548;border-radius:12px;background:var(--surface)}
body.pwa-only .conversation-search>svg{width:20px;height:20px;flex-shrink:0;color:#b5a5bc}
body.pwa-only .new-conversation svg{width:22px;height:22px;fill:none;stroke:#e1c2d7;stroke-width:1.8}
body.pwa-only .conversation-search input{width:100%;border:0;box-shadow:none;background:transparent;min-height:46px;padding:10px 0;font-size:16px}
body.pwa-only #conversation-list:has(.conversation-row){border:1px solid #302939;border-radius:16px;overflow:hidden;background:var(--surface)}
body.pwa-only .conversation-row{border:0;border-bottom:1px solid #2c2434;border-radius:0;background:transparent;padding:14px 12px;gap:12px;min-height:82px}
body.pwa-only .conversation-row:last-child{border-bottom:0}
body.pwa-only .conversation-avatar{width:44px;height:44px}
body.pwa-only .conversation-copy{min-width:0}
body.pwa-only .conversation-name{font-size:15px;line-height:1.45;font-weight:600}
body.pwa-only .conversation-name time{font-size:11px;line-height:1.5;color:var(--muted-text);font-weight:400}
body.pwa-only .conversation-preview{font-size:13px!important;line-height:1.5;color:var(--muted-text)}
body.pwa-only .conversation-chevron{display:block;width:16px;flex-shrink:0;color:#9c90a7;transform:none}
body.pwa-only .conversation-chevron svg{width:16px;height:16px;transform:rotate(-90deg)}
body.pwa-only .creation-preview{isolation:isolate}
body.pwa-only .creation-preview :is(img,video){opacity:0;transition:opacity .18s ease}
body.pwa-only .creation-preview.preview-loaded :is(img,video){opacity:1}
body.pwa-only .creation-preview.preview-unavailable :is(img,video){visibility:hidden}
body.pwa-only .creation-media-status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px;background:#17121e;color:#b8adbf;text-align:center;font-size:12px;line-height:1.5}
body.pwa-only .creation-media-status svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}
body.pwa-only .creation-media-status[hidden]{display:none}
body.pwa-only .creation-state{z-index:1;font-size:11px;line-height:1.5;padding:4px 6px}
body.pwa-only .creation-loading{grid-column:1/-1;font-size:13px;color:var(--muted-text);padding:20px 0}
body.pwa-only .creation-actions :is(a,button){font-size:12px;min-width:44px;min-height:44px}
body.pwa-only .creation-copy b{font-size:14px;line-height:1.4}
body.pwa-only .swap-source-clear{display:block;min-height:44px;margin-top:8px;padding:9px 12px;font-size:13px;background:transparent;color:#f4bfd9}
body.pwa-only .generation-history{margin:22px 0 16px;border-top:1px solid #302939;padding-top:5px}
body.pwa-only .generation-history>summary{min-height:48px;padding:14px 0;font-size:14px;font-weight:600;cursor:pointer}
body.pwa-only .generation-history>label{display:block;margin:8px 0 12px;font-size:13px;line-height:1.5}
body.pwa-only .generation-history select{display:block;width:100%;margin-top:8px;min-height:46px;font-size:16px}
body.pwa-only .generation-history>button{min-height:44px;margin-bottom:14px;font-size:13px;padding:10px 13px}
body.pwa-only .generation-result>p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body.pwa-only .mio-provider-panel>p{grid-column:1/-1;line-height:1.6}
body.pwa-only .mio-provider-status{color:#dfc3d5!important;margin:0}
body.pwa-only .swap-upload:focus-within,body.pwa-only .conversation-search:focus-within{outline:none;background-color:#35273d;outline-offset:3px}
body.pwa-only .conversation-search input:focus{outline:0;box-shadow:none;border-color:transparent}
body.pwa-only .swap-source-tabs button[aria-pressed=true],body.pwa-only .swap-quality button[aria-pressed=true]{color:#fff;background:#b51b68;border-color:#dc4e99;box-shadow:none}
body.pwa-only .short-role{font-size:11px!important;line-height:16px;min-height:24px;padding:3px 7px;letter-spacing:0;font-weight:600}
body.pwa-only .media-person-name{max-width:100%;min-height:44px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pwa-only .short-tags span{font-size:11px;line-height:1.45}
body.pwa-only .short-caption>p{font-size:13px;line-height:1.5;color:#eee8f0;text-shadow:0 1px 3px #0009}
body.pwa-only dialog:not([open]){display:none!important}
body.pwa-only dialog.studio-sheet[open]{display:block;position:fixed;inset:auto 0 0;width:min(100%,430px);max-width:430px;max-height:min(82dvh,calc(var(--app-height) - 40px));margin:0 auto;padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px))!important;border:1px solid #45334f;border-bottom:0;border-radius:22px 22px 0 0;overflow:auto;overscroll-behavior:contain}
body.pwa-only .studio-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
body.pwa-only .studio-sheet>header h2{margin:0;font-size:var(--type-section);line-height:1.3}
body.pwa-only .studio-sheet>header button{width:44px;min-width:44px;height:44px;padding:11px;border-radius:50%}
body.pwa-only .studio-sheet>header svg{width:20px;height:20px}
body.pwa-only .studio-sheet p{font-size:var(--type-body);line-height:1.6;color:#c4b8cd;margin-bottom:18px}
body.pwa-only .studio-header{display:flex;align-items:center;gap:8px;padding:10px 12px;min-height:64px}
body.pwa-only .studio-header button{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border-radius:50%}
body.pwa-only .studio-header img{width:32px;height:32px;border-radius:50%;object-fit:cover}
body.pwa-only .studio-name{min-width:0;flex:1}
body.pwa-only .studio-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;line-height:1.4}
body.pwa-only .studio-name small{display:block;font-size:10px;line-height:1.5;letter-spacing:0;color:var(--muted-text)}
body.pwa-only .studio-header svg{width:20px;height:20px}
body.pwa-only .studio-sequence button{width:44px;height:44px;padding:13px;min-width:44px}
body.pwa-only .studio-sequence svg{width:18px;height:18px}
body.pwa-only .studio-sequence [data-studio=next] svg{transform:rotate(180deg)}
body.pwa-only .studio-pause,body.pwa-only .studio-zoom{min-height:44px;font-size:12px;padding:10px 12px}
body.pwa-only .studio-pause svg{width:16px;height:16px}
body.pwa-only .studio-camera-label{font-size:11px;line-height:1.5;letter-spacing:0;padding:5px 9px}
body.pwa-only .studio-log{font-size:12px;padding:11px 14px;letter-spacing:.4px;flex-shrink:0}
body.pwa-only .studio-log>span{font-size:12px;font-weight:600}
body.pwa-only .studio-tools{display:flex;gap:8px;padding:9px 12px}
body.pwa-only .studio-tools button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:48px;font-size:12px!important;padding:8px!important;white-space:normal;line-height:1.3;border-radius:12px}
body.pwa-only .studio-tools svg{width:17px;height:17px;flex-shrink:0}
body.pwa-only .studio-composer{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center}
body.pwa-only .studio-composer button{width:44px;height:44px;min-height:44px;padding:11px;border-radius:12px}
body.pwa-only .studio-composer svg{width:21px;height:21px}
body.pwa-only .studio-composer input{min-height:46px;width:100%;padding:10px 12px;line-height:1.5;font-size:16px}
body.pwa-only .studio-empty h2{font-size:18px!important;line-height:1.4;letter-spacing:-.2px;margin:12px 0 7px}
body.pwa-only .studio-empty p{line-height:1.6}
body.pwa-only .studio-bubble{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
body.pwa-only .live-studio.studio-camera-expanded .studio-camera{flex:1;min-height:0!important;max-height:none;height:auto}
body.pwa-only :is(button,input,select,textarea,.studio-camera-label,.studio-counter,.studio-log,.short-status,.swap-section-title){font-family:inherit}
body.pwa-only .close{display:grid;place-items:center;line-height:1}
body.pwa-only dialog form label{display:block;font-size:13px;font-weight:600;line-height:1.5;margin:16px 0 7px}
body.pwa-only dialog form :is(input,select){min-height:46px;width:100%;font-size:16px}
@media(max-width:360px){body.pwa-only .account-card{grid-template-columns:48px minmax(0,1fr);gap:8px 12px}body.pwa-only .account-card .pill{grid-column:2;justify-self:start}body.pwa-only .feature{padding:16px 12px;gap:9px}body.pwa-only .feature .glyph{width:28px;min-width:28px}body.pwa-only .feature-title{font-size:var(--type-card)}body.pwa-only .feature-description{font-size:var(--type-secondary)}}
@media(max-height:620px){body.pwa-only .studio-camera{min-height:80px!important;flex-basis:24%;max-height:30%}body.pwa-only .studio-messages{min-height:0}body.pwa-only .studio-empty{padding:12px}body.pwa-only .studio-empty>svg{display:none}body.pwa-only .studio-empty h2{font-size:15px!important;margin-top:0}body.pwa-only .studio-log{padding:8px 12px}body.pwa-only .studio-tools{padding:7px 12px}body.pwa-only .studio-tools button{min-height:44px}}
@media(hover:hover){body.pwa-only .settings-row:hover,body.pwa-only .conversation-row:hover{background:#211929}body.pwa-only .feature:hover{border-color:#786175;background:#211827}}
body.pwa-only dialog.entry-gate{width:calc(100% - 32px);max-width:390px;max-height:calc(var(--app-height) - 32px);padding:25px 22px 12px;border:1px solid #39343e;border-radius:24px;background:#1b191e;color:#faf7fb;overscroll-behavior:contain;box-shadow:0 18px 70px #0005}
body.pwa-only .entry-gate::backdrop{background:#07060bec;backdrop-filter:blur(12px)}
body.pwa-only .entry-brand{display:flex;flex-direction:column;align-items:center;gap:9px;margin-bottom:20px}
body.pwa-only .entry-brand img{display:block;width:48px;height:48px;border-radius:13px}
body.pwa-only .entry-brand h1{font-size:var(--type-value);font-weight:750;line-height:1.1;letter-spacing:-1.2px;margin:0}
body.pwa-only .entry-brand h1 span{color:#ff78b6}
body.pwa-only .entry-rules{display:grid;gap:10px;list-style:none;padding:0;margin:0}
body.pwa-only .entry-rules li{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:12px;padding:16px 14px;border-radius:16px;background:#2c2931}
body.pwa-only .entry-rules .entry-rule-icon{display:block;width:32px;height:32px;overflow:visible;fill:none;stroke:#ef9bc6;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;color:#f6bddc}
body.pwa-only .entry-rule-icon .entry-icon-wash{fill:#ef9bc6;fill-opacity:.09;stroke:none}
body.pwa-only .entry-rule-icon .entry-icon-secondary{stroke-opacity:.5}
body.pwa-only .entry-rule-icon .entry-icon-ink{stroke:currentColor;stroke-width:1.8}
body.pwa-only .entry-rule-icon .entry-icon-surface{fill:#2c2931}
body.pwa-only .entry-rule-icon .entry-icon-plus{stroke:currentColor;stroke-width:1.5}
body.pwa-only .entry-rule-icon .entry-icon-solid{fill:currentColor;stroke:none}
body.pwa-only .entry-rules p{font-size:var(--type-body);line-height:1.55;margin:0;color:#f4eef6}
body.pwa-only .entry-rules strong{font-weight:650}
body.pwa-only .entry-agreement{font-size:12px;line-height:1.65;color:#bdb4c5;text-align:center;margin:22px 4px 20px}
body.pwa-only .entry-actions{display:grid;justify-items:center;gap:3px;padding-bottom:env(safe-area-inset-bottom,0px)}
body.pwa-only .entry-continue{width:min(100%,220px);min-height:50px;padding:12px 22px;border:0;border-radius:28px;background:#faf8fb;color:#17121b;font-size:var(--type-control);line-height:1.5;font-weight:650}
body.pwa-only .entry-continue:hover{background:#e9e1ed}
body.pwa-only .entry-leave{min-height:44px;padding:10px 18px;border:0;background:transparent;color:#c2b6cc;font-size:12px;font-weight:500}
body.pwa-only .entry-gate{scrollbar-width:none}
body.pwa-only .entry-gate::-webkit-scrollbar{display:none}
body.pwa-only .drama-page{padding:24px 18px 28px}
body.pwa-only .drama-heading{margin-bottom:18px}
body.pwa-only .drama-heading h1{font-size:var(--type-title);line-height:1.25}
body.pwa-only .drama-heading p{font-size:var(--type-secondary);line-height:1.6;color:var(--muted-text);margin-top:7px}
body.pwa-only .drama-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:0 0 6px}
body.pwa-only .drama-filters button{flex-shrink:0;min-height:44px;padding:9px 15px;border-radius:24px;font-size:var(--type-secondary);line-height:1.5;background:#16121d;border-color:#372c40}
body.pwa-only .drama-filters button[aria-pressed=true]{color:#fff;background:#b51b68;border-color:#bc347b}
body.pwa-only .drama-status{font-size:12px;line-height:1.6;color:var(--muted-text);margin:8px 0 17px;min-height:19px}
body.pwa-only .drama-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 11px}
body.pwa-only .drama-card{position:relative;display:block;isolation:isolate;aspect-ratio:3/5;width:100%;min-width:0;padding:0;overflow:hidden;border:1px solid #302737;border-radius:16px;background:#201a27;text-align:left;color:#fff}
body.pwa-only .drama-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;transition:transform .25s ease}
body.pwa-only .drama-card:after{content:'';position:absolute;inset:28% 0 0;z-index:-1;pointer-events:none;background:linear-gradient(transparent,#0b07135c 25%,#0b0713e8 75%)}
body.pwa-only .drama-mini{position:absolute;top:11px;left:12px;width:32px;height:43px;object-fit:cover;border:1.5px solid #fff;border-radius:9px;transform:rotate(-7deg);box-shadow:0 2px 8px #0005}
body.pwa-only .drama-saved-mark{position:absolute;top:12px;right:11px;display:grid;place-items:center;width:25px;height:25px;color:#ff80bc}
body.pwa-only .drama-saved-mark svg{width:21px;height:21px;fill:currentColor;stroke:none}
body.pwa-only .drama-poster-copy{position:absolute;left:13px;right:12px;bottom:56px}
body.pwa-only .drama-poster-copy>small{display:block;font-size:10px;line-height:1.5;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#eed6e6;margin-bottom:7px}
body.pwa-only .drama-poster-title{display:block;font-family:Georgia,'Times New Roman',serif;font-size:var(--type-section);font-weight:500;line-height:1.02;letter-spacing:-.7px;color:#fff3e5;text-wrap:balance;overflow-wrap:normal}
body.pwa-only .drama-sans .drama-poster-title{font-family:inherit;font-size:var(--type-section);font-weight:750;line-height:1.04;color:#fff}
body.pwa-only .drama-card-footer{position:absolute;left:11px;right:11px;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;line-height:1.5;font-weight:650;font-variant-numeric:tabular-nums}
body.pwa-only .drama-card-footer>span:first-child{display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #ff91c24d;border-radius:16px;background:#a11967;color:#fff}
body.pwa-only .drama-card-footer svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
body.pwa-only .drama-card-footer>span:last-child{color:#f0e6ef;text-shadow:0 1px 3px #0009}
body.pwa-only .drama-empty{grid-column:1/-1;text-align:center;padding:48px 12px}
body.pwa-only .drama-empty>svg{width:34px;height:34px;fill:none;stroke:#d58cb6;stroke-width:1.6;margin:0 auto 17px}
body.pwa-only .drama-empty h2{font-size:var(--type-section);margin-bottom:8px}
body.pwa-only .drama-empty p{font-size:13px;color:var(--muted-text);margin-bottom:22px}
body.pwa-only .drama-empty button{min-height:46px;padding:11px 18px;font-size:14px}
body.pwa-only .drama-detail{padding:0 0 26px}
body.pwa-only .drama-detail-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px;padding:12px 18px}
body.pwa-only .drama-detail-head>span{text-align:center;font-size:14px;font-weight:600;color:#d6c9dc}
body.pwa-only .drama-detail-head button{width:44px;height:44px;min-height:44px;padding:11px;border-radius:50%;background:#19131f}
body.pwa-only .drama-detail-head svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.pwa-only .drama-save.is-saved{color:#ff80bc;border-color:#b05687}
body.pwa-only .drama-save.is-saved svg{fill:currentColor}
body.pwa-only .drama-detail-cover{position:relative;isolation:isolate;height:clamp(300px,54dvh,460px);overflow:hidden;background:#19131f}
body.pwa-only .drama-detail-cover>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 30%}
body.pwa-only .drama-detail-cover:after{content:'';position:absolute;inset:35% 0 0;z-index:-1;background:linear-gradient(transparent,#09080ef5 95%);pointer-events:none}
body.pwa-only .drama-detail-cover>div{position:absolute;bottom:23px;left:20px;right:20px}
body.pwa-only .drama-genre{font-size:12px;line-height:1.5;color:#f2a7cc;font-weight:600}
body.pwa-only .drama-detail-cover h1{font-family:Georgia,'Times New Roman',serif;font-size:var(--type-value);line-height:1.05;font-weight:500;letter-spacing:-.6px;margin:9px 0;color:#fff3e5;max-width:300px}
body.pwa-only .drama-detail-cover p{font-size:12px;color:#d2c5d9}
body.pwa-only .drama-preview-play{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;min-height:54px;padding:15px;border:1px solid #ffffff75;border-radius:50%;background:#17121d75;backdrop-filter:blur(5px)}
body.pwa-only .drama-preview-play svg{display:block;width:23px;height:23px;fill:#fff;stroke:none}
body.pwa-only .drama-preview-play:active{transform:translate(-50%,-50%) scale(.96)}
body.pwa-only .drama-detail-copy{padding:0 20px}
body.pwa-only .drama-detail-copy>p{font-size:14px;line-height:1.7;color:#d8ccdf}
body.pwa-only .drama-outline{margin-top:25px;padding-top:22px;border-top:1px solid #34283c}
body.pwa-only .drama-outline h2{font-size:var(--type-section);margin-bottom:12px}
body.pwa-only .drama-outline ol{list-style:none;margin:0;padding:0}
body.pwa-only .drama-outline li{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:12px;min-height:51px;border-bottom:1px solid #241c2b}
body.pwa-only .drama-outline li>span{font-size:12px;color:#c28daf;font-variant-numeric:tabular-nums}
body.pwa-only .drama-outline li>p{font-size:14px;line-height:1.5}
body.pwa-only .drama-outline .drama-outline-note{font-size:12px;line-height:1.65;color:var(--muted-text);margin-top:15px}
body.pwa-only .drama-reuse{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:50px;padding:12px 16px;font-size:14px}
body.pwa-only .drama-reuse svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
body.pwa-only .drama-detail-copy .drama-reuse-note{font-size:12px;line-height:1.6;color:var(--muted-text);margin-top:11px}
body.pwa-only .drama-preview-dialog video{display:block;width:100%;max-height:60dvh;background:#07050a;border-radius:12px;object-fit:contain}
body.pwa-only .drama-preview-dialog h2{font-size:19px}
body.pwa-only .drama-preview-dialog .close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
body.pwa-only .drama-preview-note{font-size:12px;color:var(--muted-text);margin-top:14px;line-height:1.6}
body.pwa-only .drama-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.pwa-only .drama-mini-group{position:absolute;top:10px;left:12px;display:grid;gap:7px}
body.pwa-only .drama-mini-group>span{position:relative;display:block;width:34px;height:44px;transform:rotate(-6deg)}
body.pwa-only .drama-mini-group .drama-mini{position:static;display:block;width:34px;height:44px;transform:none}
body.pwa-only .drama-mini-group i{position:absolute;bottom:-4px;left:-4px;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#fff;color:#17121c;font-size:10px;line-height:1;font-weight:800;font-style:normal}
body.pwa-only .drama-player{height:100%;min-height:0;width:100%;position:relative;isolation:isolate;overflow:hidden;padding:0;background:#000}
body.pwa-only .drama-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:0}
body.pwa-only .drama-player:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(#0005,transparent 18%,transparent 40%,#0009 75%,#000d)}
body.pwa-only .drama-tap{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent!important;transform:none!important}
body.pwa-only .drama-paused{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);z-index:3;pointer-events:none}
body.pwa-only .drama-paused svg{display:block;width:47px;height:47px;fill:#fffffff0;stroke:none;filter:drop-shadow(0 1px 3px #0006)}
body.pwa-only .drama-player-back,body.pwa-only .drama-player-sound{position:absolute;top:calc(14px + env(safe-area-inset-top,0px));z-index:4;width:44px;height:44px;min-height:44px;padding:11px;border:1px solid #ffffff30;border-radius:50%;background:#08080b80;color:white}
body.pwa-only .drama-player-back{left:15px}.pwa-only .drama-player-sound{right:15px}
body.pwa-only :is(.drama-player-back,.drama-player-sound) svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.pwa-only .drama-fullscreen{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);z-index:4;display:flex;align-items:center;gap:6px;min-height:44px;padding:10px 13px;border:1px solid #ffffff24;border-radius:24px;background:#151518a6;color:#fff;font-size:12px;white-space:nowrap}
body.pwa-only .drama-fullscreen:active{transform:translate(-50%,-50%) scale(.98)}
body.pwa-only .drama-fullscreen svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
body.pwa-only .drama-player-caption{position:absolute;left:15px;right:80px;bottom:123px;z-index:3;pointer-events:none}
body.pwa-only .drama-player-caption h1{font-size:var(--type-title);font-weight:750;line-height:1.2;letter-spacing:-.3px;text-transform:uppercase;margin-bottom:12px;text-shadow:0 1px 4px #0009}
body.pwa-only .drama-player-tags{display:flex;flex-wrap:wrap;gap:6px}
body.pwa-only .drama-player-tags>span{font-size:11px;line-height:1.5;color:#f2edf4;padding:4px 8px;border:1px solid #ffffff2d;border-radius:15px;background:#29262cbf;backdrop-filter:blur(5px)}
body.pwa-only .drama-player-actions{position:absolute;right:12px;bottom:126px;z-index:4;display:flex;flex-direction:column;align-items:center;gap:18px;width:52px}
body.pwa-only .drama-player-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:52px;min-width:44px;min-height:57px;padding:0;border:0;border-radius:0;background:transparent!important;color:#fff}
body.pwa-only .drama-player-actions button>svg{display:block;width:32px;height:32px;fill:currentColor;stroke:none;filter:drop-shadow(0 1px 3px #0005)}
body.pwa-only .drama-player-actions button>span{font-size:11px;line-height:1.5;font-weight:600}
body.pwa-only .drama-player-actions .drama-source-avatar{min-height:44px;height:44px;margin-bottom:6px}
body.pwa-only .drama-source-avatar img{width:44px;height:44px;object-fit:cover;border:1.5px solid #fff;border-radius:50%}
body.pwa-only .drama-player-actions .is-saved{color:#ff4679}
body.pwa-only .drama-player-reuse{position:absolute;right:15px;bottom:55px;z-index:4;display:flex;align-items:center;justify-content:center;gap:7px;width:111px;min-height:48px;padding:11px 16px;border:0;border-radius:26px;background:#c51d72;color:#fff;font-size:15px;font-weight:700}
body.pwa-only .drama-player-reuse svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
body.pwa-only .drama-source-link{position:absolute;left:15px;bottom:56px;z-index:4;display:flex;align-items:center;gap:7px;min-height:44px;max-width:calc(100% - 146px);padding:8px 0;border:0;background:transparent!important;color:#ddd5e2;font-size:12px}
body.pwa-only .drama-source-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;flex-shrink:0}.pwa-only .drama-source-link svg:last-child{width:12px;height:12px}
body.pwa-only .drama-player-timeline{position:absolute;bottom:5px;left:9px;right:12px;z-index:4;display:flex;align-items:center;gap:7px;min-height:44px;color:#ded5e4;font-size:10px;font-variant-numeric:tabular-nums}
body.pwa-only .drama-player-timeline button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:12px;border:0;border-radius:0;background:transparent!important;color:#fff}
body.pwa-only .drama-player-timeline svg{width:18px;height:18px;fill:currentColor;stroke:currentColor;stroke-width:1.7}
body.pwa-only .drama-player-timeline input{width:100%;min-width:0;flex:1;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:0;background:transparent;accent-color:#f3c0df}
body.pwa-only .drama-player-timeline input::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:linear-gradient(to right,#fff var(--played,0%),#ffffff55 var(--played,0%))}
body.pwa-only .drama-player-timeline input::-webkit-slider-thumb{margin-top:-5px}
body.pwa-only .drama-player-status{position:absolute;left:15px;right:15px;top:75px;z-index:5;margin:0;min-height:0;font-size:12px;line-height:1.5;color:#fff}
body.pwa-only .drama-player-status:not(:empty){padding:10px 13px;border:1px solid #ffffff2a;border-radius:11px;background:#17111de8}
body.pwa-only .drama-player:fullscreen{width:100vw;height:100dvh;max-width:none}
body.pwa-only .drama-info-dialog :is(p,li){font-size:14px;line-height:1.65;color:#d7cadf}
body.pwa-only .drama-info-dialog h3{font-size:16px;margin:22px 0 12px}
body.pwa-only .drama-info-dialog ol{padding-left:20px;margin-bottom:18px}.pwa-only .drama-info-dialog li{padding:5px}
body.pwa-only dialog.reuse-modal{width:calc(100% - 20px);max-width:410px;max-height:calc(var(--app-height) - 28px);padding:18px 15px;border-radius:22px;border-color:#46394a;background:#1a171f;overscroll-behavior:contain;scrollbar-width:none}
body.pwa-only .reuse-modal::-webkit-scrollbar{display:none}
body.pwa-only .reuse-modal-head{display:flex;align-items:center;gap:4px;margin-bottom:6px}
body.pwa-only .reuse-modal-head h2{flex:1;min-width:0;margin:0 5px 0 0;font-size:19px;font-weight:700;line-height:1.25;letter-spacing:-.3px}
body.pwa-only .reuse-modal-head button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:12px;background:transparent;border:0;border-radius:50%;color:#e7dbe9}
body.pwa-only .reuse-modal-head svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.pwa-only .reuse-modal-head .is-saved{color:#ff78b6}.pwa-only .reuse-modal-head .is-saved svg{fill:currentColor}
body.pwa-only .reuse-modal-label{font-size:12px;line-height:1.5;color:#bcadbf;margin:0 0 18px}
body.pwa-only .reuse-modal .swap-page{padding:0!important;min-height:0;background:transparent}
body.pwa-only .reuse-modal .swap-page-head{display:none}
body.pwa-only .reuse-modal .swap-mode-tabs{margin-bottom:10px;padding:4px;gap:4px;border:1px solid #493b4e;background:#17141b;border-radius:12px}
body.pwa-only .reuse-modal .swap-mode-tabs button{min-height:44px;padding:9px 6px;font-size:13px;line-height:1.3;background:transparent;border:0;border-radius:8px}
body.pwa-only .reuse-modal .swap-mode-tabs button[aria-pressed=true]{background:#3a303e;color:white}
body.pwa-only .reuse-modal .swap-workspace{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin-bottom:16px;align-items:start}
body.pwa-only .reuse-modal .swap-workbench .swap-input-panel{position:relative;order:0;min-width:0;padding:0!important;margin:0;border:0;border-radius:12px;background:transparent}
body.pwa-only .reuse-modal .swap-input-panel>.swap-section-title,body.pwa-only .reuse-modal .swap-source-tabs{display:none}
body.pwa-only .reuse-modal .swap-source-content{display:block;min-width:0;width:100%;margin:0}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:260px;padding:12px 9px;border:1px solid #382d3d;border-radius:12px;background:#110e15;text-align:center}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload-icon{width:42px;height:42px;min-width:0;padding:0;color:#d3aec7}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload-icon svg{width:30px;height:30px}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload b{font-size:13px;line-height:1.45}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload>small{width:100%;font-size:10px;line-height:1.5;color:#a99bb0}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload:has(img){height:260px;min-height:260px;padding:10px;justify-content:flex-end;align-items:stretch}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload:has(img)>b{position:relative;padding:10px 4px;z-index:1;border-radius:20px;background:#19131dcc;font-size:12px}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload:has(img)>small{display:none}
body.pwa-only .reuse-modal .swap-input-panel .swap-upload:has(img) .swap-upload-icon{position:absolute;inset:0;width:100%;height:100%}
body.pwa-only .reuse-modal .swap-upload-status{font-size:11px;line-height:1.5;margin-top:8px}
body.pwa-only .reuse-modal .swap-source-clear{position:absolute;right:4px;top:4px;z-index:3;width:44px;height:44px;padding:9px;margin:0;border:0;border-radius:50%;background:#100a15bf;color:#fff;font-size:0}
body.pwa-only .reuse-modal .swap-source-clear:after{content:'×';font-size:22px;line-height:1}
body.pwa-only .reuse-modal .swap-workbench .swap-hero{order:1;width:100%;height:260px;margin:0;border-radius:12px!important;aspect-ratio:auto!important}
body.pwa-only .reuse-modal .swap-hero-label{display:none}
body.pwa-only .reuse-modal .swap-hero-duration{bottom:9px;right:8px;font-size:10px;padding:4px 7px}
body.pwa-only .reuse-modal .swap-player-controls{top:7px;right:7px;gap:3px}
body.pwa-only .reuse-modal .swap-player-controls button{width:44px;height:44px;min-height:44px;padding:12px}
body.pwa-only .reuse-modal .swap-player-controls svg{width:17px;height:17px}
body.pwa-only .reuse-flow-arrow{position:absolute;top:117px;left:50%;transform:translateX(-50%);z-index:4;pointer-events:none;color:#ed74b0}
body.pwa-only .reuse-flow-arrow svg{display:block;width:31px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #0008)}
body.pwa-only .reuse-modal .mio-provider-panel{padding:14px;gap:12px;margin-bottom:14px;background:#211a27;border-color:#3b2d42}
body.pwa-only .reuse-modal .mio-provider-panel h3{font-size:var(--type-card)}
body.pwa-only .reuse-modal .mio-provider-panel p{font-size:11px;line-height:1.6}
body.pwa-only .reuse-modal .mio-provider-panel>button{font-size:11px;padding:8px;min-height:44px}
body.pwa-only .reuse-modal .swap-create-video{min-height:50px;font-size:var(--type-control);background:#c51d72}
body.pwa-only .reuse-modal .swap-service-note{font-size:12px!important;margin:10px 0}
body.pwa-only .reuse-modal .swap-reference-section,body.pwa-only .reuse-modal .swap-role-section,body.pwa-only .reuse-modal .swap-reference-details{display:none}
body.pwa-only .reuse-modal-status{font-size:12px;line-height:1.5;color:#f0bddb;margin:8px 0 0}.pwa-only .reuse-modal-status:empty{display:none}
body.pwa-only .reuse-portrait-slots{display:grid;gap:8px}
body.pwa-only .reuse-portrait-slot{position:relative;min-width:0}
body.pwa-only .reuse-modal .reuse-portrait-slot .swap-upload,body.pwa-only .reuse-modal .reuse-portrait-slot .swap-upload:has(img){height:126px;min-height:126px;padding:10px 7px;gap:7px}
body.pwa-only .reuse-modal .reuse-portrait-slot .swap-upload b{font-size:12px;line-height:1.4;padding:5px 2px}
body.pwa-only .reuse-modal .reuse-portrait-slot .swap-upload-icon{width:30px;height:30px}
body.pwa-only .reuse-modal .reuse-portrait-slot .swap-upload-icon svg{width:23px;height:23px}
body.pwa-only .reuse-slot-number{position:absolute;top:6px;left:6px;z-index:2;display:grid;place-items:center;width:19px;height:19px;border:1px solid #ffffff6a;border-radius:50%;background:#281e30d9;color:#fff;font-size:10px;font-weight:700}
body.pwa-only .reuse-slot-remove{position:absolute;right:0;top:0;z-index:3;width:44px;height:44px;min-height:44px;padding:9px;border:0;border-radius:50%;background:#100b16bd;font-size:20px;color:#fff}
body.pwa-only .reuse-pair-note{font-size:12px!important;line-height:1.55!important;color:#c3b7cb;margin-top:8px}
body.pwa-only .reuse-portrait-slots{width:100%;min-width:0}
body.pwa-only .reuse-modal .mio-compact{display:block;padding:0;background:transparent;border:0}
body.pwa-only .reuse-model-options{border:1px solid #433449;border-radius:12px;padding:0 12px;margin-bottom:12px;background:#211b27}
body.pwa-only .reuse-model-options>summary{min-height:46px;padding:13px 0;font-size:13px;font-weight:600;line-height:1.5;cursor:pointer}
body.pwa-only .reuse-model-options>label{display:block;margin:11px 0;font-size:12px;line-height:1.5}
body.pwa-only .reuse-model-options select{display:block;width:100%;min-height:46px;margin-top:6px;font-size:16px}
body.pwa-only .reuse-model-options>button{min-height:44px;margin:0 0 12px;font-size:12px;padding:9px 12px}
body.pwa-only .reuse-modal .mio-compact>p{font-size:11px!important;line-height:1.5;margin:7px 0}
@media(min-width:480px) and (min-height:640px){
 body.pwa-only{--sheet-height:min(calc(var(--app-height) - 48px),900px)}
 body.pwa-only .phone{height:var(--sheet-height);width:430px;max-width:calc(100% - 40px);padding:21px 0 0!important;border:8px solid #241637;border-radius:39px;box-shadow:0 0 0 1px #4223473b,0 24px 80px #14051b70;background:#0d0818}
 body.pwa-only .phone .notch{display:block;position:absolute;top:0;left:0;z-index:15;width:112px;height:15px;border-radius:0 0 16px 0;background:#170f25;pointer-events:none}
 body.pwa-only dialog{max-height:calc(var(--sheet-height) - 48px)}
 body.pwa-only dialog.entry-gate,body.pwa-only dialog.reuse-modal{max-height:calc(var(--sheet-height) - 48px)}
}
@media(display-mode:standalone){body.pwa-only{--sheet-height:var(--app-height)}body.pwa-only .phone{height:var(--app-height);width:min(100%,430px);max-width:430px;padding:env(safe-area-inset-top,0px) 0 0!important;border:0;border-radius:0;box-shadow:none}body.pwa-only .phone .notch{display:none}}
body.pwa-only .drama-card.has-provided-cover:after{display:none}
body.pwa-only .drama-card.has-provided-cover{aspect-ratio:2/3}
body.pwa-only .has-provided-cover .drama-poster{object-fit:contain;background:#08070b}
body.pwa-only .drama-duration-badge{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;height:22px;padding:0 7px;border-radius:20px;background:#c42be6;color:white;white-space:nowrap;box-shadow:0 2px 10px #0005}
body.pwa-only .drama-duration-badge>b{position:relative;font-size:var(--type-card);line-height:1;font-weight:800;font-style:italic;letter-spacing:-.035em;text-shadow:1px 1px 0 #7a118e}
body.pwa-only .drama-duration-badge small{font-size:var(--type-caption);letter-spacing:0;margin-left:1px}
body.pwa-only .drama-duration-badge em{font-size:var(--type-caption);font-weight:750}
body.pwa-only .has-provided-cover:has(.is-dual) .drama-duration-badge>b{color:#fff173}
body.pwa-only .has-provided-cover .drama-saved-mark{top:auto;bottom:55px;right:10px}
body.pwa-only .drama-info-tags{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 22px}
body.pwa-only .drama-info-tags span{font-size:var(--type-secondary);line-height:1.4;padding:6px 10px;border:1px solid #47414b;border-radius:18px;background:#27222b;color:#e2dce6}
body.pwa-only .drama-player-caption h1{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
body.pwa-only .drama-player-tags span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pwa-only .short-tags span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.pwa-only .media-caption .short-identity{gap:7px;margin-bottom:8px}
body.pwa-only .media-caption .short-age{min-height:26px;padding:3px 7px;border:1px solid #817cd75c;border-radius:5px;background:#38316e99;color:#c0c5ff;font:600 12px/18px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.2px}
body.pwa-only .media-caption .short-role{min-height:26px;padding:3px 8px;border:1px solid #45be9359;border-radius:14px;background:#104e3ca8;color:#76e8c4;font-size:11px!important;line-height:18px}
body.pwa-only .media-caption .short-tags{margin:0 0 9px;gap:6px}
body.pwa-only .media-caption .short-tags span{font-size:12px;line-height:1.4;padding:4px 7px;color:#eee8ef;border-color:#ffffff2b;background:#17141bba}
body.pwa-only .media-caption>p{font-size:14px;line-height:1.5;-webkit-line-clamp:3;color:#f4eff5}
body.pwa-only .companion-about .companion-disclosure{font-size:12px;line-height:1.6;color:#b7adbf;margin-top:16px}
body.pwa-only .library-startup{padding:28px 20px}
body.pwa-only .library-startup h1{font-size:var(--type-title);margin-bottom:12px}
body.pwa-only .library-startup p{font-size:15px;line-height:1.6;color:#c3b7cc;margin-bottom:20px}
body.pwa-only .media-like-count{font:650 12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1px;color:#f6f3f8;text-shadow:0 1px 3px #0008}
body.pwa-only .media-audio{width:44px;height:44px;min-width:44px;min-height:44px;aspect-ratio:1;flex-shrink:0;display:grid;place-items:center;border-radius:50%;padding:10px;border:1px solid #ffffff14;background:#100d18b8;color:#a295ff}
body.pwa-only .media-audio svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-12deg)}
body.pwa-only .media-audio[aria-pressed=true]{border-color:#ab9fff80;background:#211a35cc}
body.pwa-only .short .media-fullscreen-top{position:absolute;top:14px;left:14px;z-index:3;background:#17121a66;color:#eee8f5;border-color:#ffffff24}
body.pwa-only .short .media-fullscreen-top svg{width:19px;height:19px}
body.pwa-only .local-short .media-reuse{left:68px;top:14px}
body.pwa-only .local-short .media-caption{bottom:22px}
body.pwa-only .drama-filters{margin-bottom:14px}
body.pwa-only .drama-detail-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%;z-index:0}
body.pwa-only .drama-detail-cover[hidden],body.pwa-only .drama-fullscreen[hidden]{display:none!important}
body.pwa-only .drama-paused{top:48%}
body.pwa-only .drama-paused svg{width:84px;height:84px;fill:#ffffffe0;stroke:#ffffffd9;stroke-width:.6;stroke-linejoin:round;filter:drop-shadow(0 2px 4px #0004)}
body.pwa-only .drama-fullscreen{top:calc(14px + env(safe-area-inset-top,0px));left:auto;right:68px;width:44px;height:44px;min-height:44px;padding:11px;border-radius:50%;transform:none;justify-content:center;background:#08080b80}
body.pwa-only .drama-fullscreen:active{transform:scale(.98)}
body.pwa-only .drama-fullscreen svg{width:20px;height:20px}
body.pwa-only .drama-player-caption h1{text-transform:none;font-size:var(--type-title);margin-bottom:12px}
body.pwa-only .drama-player-tags>span{font-size:12px;line-height:1.4;padding:4px 8px;background:#ffffff16;border-color:#ffffff3b;backdrop-filter:none}
body.pwa-only .drama-player-timeline{left:12px;right:12px;bottom:0}
body.pwa-only .drama-player-timeline input{-webkit-appearance:none;appearance:none;display:block;height:44px;min-height:44px;cursor:pointer}
body.pwa-only .drama-player-timeline input::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,#fff var(--played,0%),#ffffff70 var(--played,0%))}
body.pwa-only .drama-player-timeline input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:7px;height:7px;border:0;border-radius:50%;margin-top:-2px;background:#fff}
body.pwa-only .drama-player-timeline input::-moz-range-track{height:3px;background:#ffffff70;border-radius:2px}
body.pwa-only .drama-player-timeline input::-moz-range-progress{height:3px;background:#fff}
body.pwa-only .drama-player-timeline input::-moz-range-thumb{width:7px;height:7px;border:0;border-radius:50%;background:#fff}
@media(max-width:360px){body.pwa-only .drama-paused{top:40%}}
@media(max-height:620px){body.pwa-only .short .media-fullscreen-top{left:auto;right:12px;top:12px}body.pwa-only .local-short .media-reuse{left:126px;top:12px}}
@media(hover:hover){body.pwa-only .drama-card:not(.has-provided-cover):hover .drama-poster{transform:scale(1.025)}}
@media(max-width:360px){body.pwa-only dialog.entry-gate{padding:21px 17px 10px;border-radius:21px}body.pwa-only .entry-brand{margin-bottom:20px}body.pwa-only .entry-rules li{padding:14px 12px;gap:10px}body.pwa-only .entry-agreement{margin:19px 0 16px}}
@media(prefers-reduced-motion:reduce){body.pwa-only *,body.pwa-only *:before,body.pwa-only *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact video overlays keep the viewing area clear on smaller screens. */
body.pwa-only .local-short .media-person-name {
 font-size:var(--type-card);
 line-height:1.2;
}
body.pwa-only .local-short .media-caption>p {
 font-size:var(--type-secondary)!important;
 line-height:1.45!important;
}
body.pwa-only .local-short .media-caption :is(.short-age,.short-role,.short-tags span) {
 font-size:clamp(9px,2.7vw,11px)!important;
}
body.pwa-only .local-short .media-caption :is(.short-age,.short-role) {
 min-height:21px;
 line-height:15px;
}
body.pwa-only .local-short :is(.media-reuse,.short-action,.media-like-count) {
 font-size:clamp(9px,2.65vw,11px);
}

body.pwa-only .local-short { touch-action:pan-x pinch-zoom; }

body.pwa-only .local-short .short-actions {
 bottom:14px;
 max-height:calc(100% - 145px);
 gap:clamp(3px,1.05dvh,8px);
 overflow:auto;
 scrollbar-width:none;
}
body.pwa-only .local-short .short-actions > * { flex-shrink:0; }
body.pwa-only .local-short .short-top-controls {
 position:absolute;
 top:12px;
 right:7px;
 left:auto;
 width:68px;
 display:flex;
 flex-direction:column;
 align-items:center;
 gap:5px;
}
body.pwa-only .local-short .short-actions .short-action { min-height:48px; gap:2px; }
body.pwa-only .local-short .short-follow[aria-pressed=true] b { background:#654fdb;color:#fff; }
body.pwa-only .local-short.is-video-playing .media-audio svg { animation:short-audio-spin 4s linear infinite; }
@keyframes short-audio-spin { from { transform:rotate(-12deg); } to { transform:rotate(348deg); } }

body.pwa-only .swap-workbench .swap-service-note:empty,
body.pwa-only .pc-output .swap-service-note:empty{display:none}
.mio-frame-attachment{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;font-size:var(--type-secondary)}
body.pwa-only .mio-frame-attachment button{padding-inline:10px;font-size:var(--type-secondary)}

.local-short .short-incoming{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;z-index:0}

.local-short .short-handoff{opacity:1;z-index:1}

body.pwa-only .local-short [data-media-action="favorite"] .short-disc{position:relative;overflow:visible}
.short-like-burst{position:absolute;inset:0;pointer-events:none;z-index:1}
.short-like-burst i{position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#ff5ba4;animation:short-heart-spark .5s ease-out both}
.short-like-burst i:nth-child(even){background:#ffd1e3;width:4px;height:4px}
@keyframes short-heart-spark{
 0%{opacity:1;transform:translate(-50%,-50%) scale(.4)}
 30%{opacity:1}
 100%{opacity:0;transform:translate(calc(-50% + var(--burst-x)),calc(-50% + var(--burst-y))) scale(.35)}
}

.mio-generate-actions { display:flex; align-items:stretch; gap:8px; }
body.pwa-only .mio-generate-actions .swap-create-video { flex:1; width:auto; min-width:0; }
body.pwa-only .mio-tips-trigger {
 flex:0 0 46px;
 display:grid;
 place-items:center;
 padding:0;
 border:0;
 border-radius:12px;
 background:#2a1d31;
 color:#ffb5d9;
 font-size:var(--type-section);
 font-weight:700;
}
body.pwa-only dialog.mio-video-tips {
 width:min(390px,calc(100% - 28px));
 padding:14px 16px 16px;
 background:#191220;
}
body.pwa-only .mio-video-tips header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
body.pwa-only .mio-video-tips h2 { margin:0; }
body.pwa-only .mio-video-tips header button { width:44px; padding:0; border:0; background:#2b2032; font-size:18px; }
.mio-video-tips ul { display:grid; gap:10px; padding-inline-start:16px; margin:12px 0 16px; color:#cfbfd5; }
.mio-video-tips li::marker { color:#f390c0; }
.mio-video-tips strong { color:#faf2fa; }
.mio-video-tips > .primary { width:100%; }

body.pwa-only .profile-account-page .creations-grid{grid-template-columns:minmax(0,1fr);gap:8px}
body.pwa-only .profile-account-page .creation-card{
 display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;
 gap:8px;padding:8px;background:#15101f;
}
body.pwa-only .profile-account-page .creation-preview{
 min-height:52px;width:52px;height:52px;aspect-ratio:1;border-radius:10px;
}
body.pwa-only .profile-account-page .creation-copy{min-width:0;padding:0}
body.pwa-only .profile-account-page .creation-copy small{margin:1px 0 3px;overflow-wrap:anywhere}
body.pwa-only .profile-account-page .creation-state{position:static;display:inline-block;padding:1px 6px;background:#352041;color:#ffc5e5}
body.pwa-only .profile-account-page .creation-pending{padding:3px;font-size:9px;line-height:1.15}
body.pwa-only .profile-account-page .creation-actions{flex-direction:column;padding:0;gap:0}
body.pwa-only .profile-account-page .creation-retry{width:auto;margin:0;padding:5px;font-size:11px}

.local-short .short-identity-actions{position:relative;display:grid;justify-items:center;width:44px;height:44px;margin-bottom:9px}
body.pwa-only .local-short .short-follow-toggle{position:absolute;inset: auto 0 -15px;margin-inline:auto;width:28px;min-width:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:white;display:grid;place-items:center}
.short-follow-toggle b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#654fdb;font-size:15px;line-height:1}

body.pwa-only .local-short .short-identity-actions .media-profile-avatar{width:44px;height:44px;min-height:44px;margin:0}

body.pwa-only .drama-player-actions .short-disc {
 position:relative;display:grid;place-items:center;width:44px;height:44px;
 background:#151518d9;border:1px solid #ffffff26;border-radius:50%;
}
body.pwa-only .drama-player-save .short-disc { background:transparent;border:0; }
body.pwa-only .drama-player-save .short-disc svg { width:30px;height:30px;fill:currentColor;stroke:none; }
body.pwa-only .drama-player-share .short-disc svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6; }
