:root{font-family:Arial,Helvetica,sans-serif;color:#f5f4f4;background:#0d0d0d;font-synthesis:none;--pink:#fd5fc2;--muted:#8c898f;--border:#262426}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--pink);outline-offset:4px}button{transition:background .18s,color .18s,transform .18s}svg{width:21px;height:21px;display:block;stroke-width:1.65;flex-shrink:0}button:hover{color:#fff} .sidebar{position:fixed;inset:0 auto 0 0;width:222px;background:#131213;border-right:1px solid #242224;padding:30px 16px 18px;display:flex;flex-direction:column;z-index:30}.logo{font-size:32px;font-weight:800;letter-spacing:-1.8px;display:flex;align-items:center;padding:0 10px 30px}.logo span{color:var(--pink)}.logo i{height:7px;width:7px;background:var(--pink);border-radius:50%;align-self:flex-end;margin:0 0 8px 3px}.create-button{width:100%;border:1px solid #60334f;background:linear-gradient(110deg,#35202f,#241b22);border-radius:10px;padding:13px 10px;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;margin-bottom:26px}.create-button svg{width:17px}.spark{margin-left:auto;color:var(--pink);font-size:24px}.nav-item{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border-radius:9px;text-align:left;font-size:14px;color:#a9a5aa;margin-bottom:5px}.nav-item.active{color:var(--pink);background:#30202b;font-weight:600}.nav-item:hover{background:#242024}.nav-count{margin-left:auto;font-size:11px;background:#292629;color:#969097;border-radius:5px;padding:2px 6px}.nav-divider{height:1px;background:#282428;margin:17px 10px}.mini-badge{font-size:8px;font-weight:700;border:1px solid #4c3946;padding:3px 4px;border-radius:4px;color:#d7b3cb;margin-left:auto;letter-spacing:.5px}.sidebar-bottom{margin-top:auto;padding-top:25px}.upgrade-card{padding:16px 13px 12px;background:radial-gradient(ellipse at top right,#52283d55,transparent 80%),#1c181b;border:1px solid #362730;border-radius:12px;position:relative}.upgrade-stars{display:block;font-size:30px;color:var(--pink);margin-bottom:8px}.upgrade-card strong{font-size:12px}.upgrade-card p{font-size:10px;color:#9b8d98;margin:7px 0 17px}.upgrade-card button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px 12px;background:#f7d5e9;border-radius:6px;color:#2a1722;font-size:11px;font-weight:700}.utility{width:100%;display:flex;align-items:center;gap:9px;font-size:11px;color:#959096;padding:14px 7px 0}.utility svg{width:15px;height:15px}.utility>span:last-child{margin-left:auto}.sidebar-footer{border-top:1px solid #292329;margin:20px 4px 0;padding-top:16px}.footer-mark{font-size:14px;font-weight:700;letter-spacing:-.5px;color:#b5aeb4}.footer-mark span{color:#7b7179}.sidebar-footer p{font-size:8px;color:#716a70;margin:8px 0 12px}.sidebar-footer>div:last-child{display:flex;gap:9px;color:#7d747c;font-size:9px}.sidebar-footer button{padding:0;font-size:9px;color:inherit}.workspace{margin-left:222px}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-bottom:1px solid #242124;background:#0d0d0df5}.top-tabs{height:100%;display:flex;gap:28px}.top-tabs button{position:relative;color:#928b92;font-size:13px;padding:0}.top-tabs button.selected{color:#fff}.top-tabs button.selected:after{position:absolute;content:'';bottom:0;left:0;right:0;height:2px;background:var(--pink)}.top-tabs button span{color:var(--pink);margin-left:7px}.header-actions{display:flex;align-items:center;gap:23px;font-size:12px}.login{color:#d5cfd4}.join{background:var(--pink);color:#24101c;font-weight:700;border-radius:7px;padding:11px 17px}.join:hover,.primary:hover{background:#ff84d2;color:#251020}.join span{margin-left:13px}main{padding:25px 34px 0;max-width:1900px;margin:auto}.announcement{padding:12px 17px;border:1px solid #39232f;border-radius:9px;background:linear-gradient(100deg,#2a1923 0%,#191418 80%);display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:12px}.announcement>div{display:flex;align-items:center;gap:11px}.announcement-star{font-size:24px;color:var(--pink);line-height:1}.announcement strong{font-weight:500;color:#efdce7}.announcement>div>span:last-child{color:#9c8495}.announcement button{font-size:10px;color:#eab9d6;white-space:nowrap}.announcement button span{margin-left:10px}.explore-head{display:flex;align-items:center;justify-content:space-between;margin:33px 0 26px;gap:20px}.eyebrow{font-size:9px;letter-spacing:2px;color:#a58c9d;font-weight:600;margin-bottom:13px}h1{font-size:clamp(24px,2.35vw,38px);letter-spacing:-1.1px;margin:0;line-height:1.15}h1>span{color:var(--pink)}.explore-head p{font-size:12px;color:#938a92;margin:12px 0 0}.community-proof{display:flex;align-items:center;gap:10px}.avatar-stack{display:flex;padding-left:5px}.avatar-stack img{height:28px;width:28px;object-fit:cover;border:2px solid #0d0d0d;border-radius:50%;margin-left:-7px}.community-proof strong{font-size:9px;display:block;font-weight:500;color:#c6bfc4}.community-proof>div>span{font-size:8px;color:#877e85;display:flex;gap:4px;align-items:center;margin-top:6px}.community-proof i{width:4px;height:4px;border-radius:50%;background:#95b997}.search-row{display:flex;gap:10px}.search-box{display:flex;align-items:center;gap:12px;background:#1a181a;border:1px solid #302a2f;border-radius:9px;padding:0 15px;flex:1;height:46px;color:#817580}.search-box svg{height:18px;width:18px}.search-box input{background:none;border:0;color:white;outline:none;width:100%;min-width:0;font-size:12px}.search-box:focus-within{border-color:#a3467f}.search-box input::placeholder{color:#8e828c}.search-box kbd{font-size:11px;background:#252025;border:1px solid #3c323a;border-radius:4px;width:22px;height:22px;display:grid;place-items:center;color:#95858f}.filter-button{display:flex;align-items:center;gap:8px;border:1px solid #302a2f;border-radius:9px;padding:0 17px;background:#1a181a;font-size:11px}.filter-button svg{height:16px;width:16px}.filter-button i{height:5px;width:5px;background:var(--pink);border-radius:50%}.category-row{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:18px 0 25px;padding-bottom:3px}.category-row::-webkit-scrollbar{display:none}.chip{font-size:11px;color:#b6abb3;background:#1d191c;border:1px solid #2a2429;border-radius:7px;white-space:nowrap;padding:9px 13px}.chip.active{background:#f5d2e7;border-color:#f5d2e7;color:#392031;font-weight:600}.chip:hover{background:#372530}.chip.active:hover{background:#f5d2e7;color:#392031}.results-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:10px}.result-tabs{display:flex;gap:22px}.result-tabs button{padding:0;color:#827780;font-size:12px;display:flex;align-items:center;gap:5px}.result-tabs button.active{color:#f6edf3;font-weight:600}.result-tabs button i{width:4px;height:4px;border-radius:50%;background:var(--pink)}.sort-control{display:flex;align-items:center;gap:16px;font-size:9px;color:#796d77}.sort-control label{display:flex;align-items:center;gap:5px}.sort-control svg{height:13px;width:13px}.sort-control select{font-size:10px;color:#ada0aa;background:#0d0d0d;border:0;max-width:125px;cursor:pointer}.character-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px 13px}.character-card{position:relative;border-radius:11px;overflow:hidden;background:#1e1a1e;aspect-ratio:.635;cursor:pointer;isolation:isolate;outline:none;border:1px solid #ffffff08}.character-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.character-card:after{position:absolute;inset:0;content:'';background:linear-gradient(180deg,#00000010 20%,#00000000 30%,#09070930 45%,#0e0a0eaa 68%,#100c10fa 100%);z-index:0;pointer-events:none}.character-card:hover>img{transform:scale(1.055)}.character-card:hover{border-color:#a05d86}.card-top{position:absolute;top:10px;left:10px;right:9px;z-index:2;display:flex;justify-content:space-between;align-items:flex-start}.card-badge{font-size:8px;font-weight:600;padding:5px 7px;border:1px solid #ffffff20;border-radius:5px;background:#1c182b65;backdrop-filter:blur(10px)}.card-badge.new{color:#fae3ef;background:#6e2e5070}.save-button{display:grid;place-items:center;height:27px;width:27px;background:#1d141c55;border:1px solid #ffffff20;border-radius:50%;backdrop-filter:blur(10px);color:#fff}.save-button svg{height:14px;width:14px}.save-button.saved{color:var(--pink);background:#3e182ebd}.save-button.saved svg{fill:var(--pink)}.card-bottom{position:absolute;bottom:0;left:0;right:0;z-index:1;padding:14px 12px 11px}.card-title-row{display:flex;align-items:center;gap:5px}.card-title-row h2{font-size:16px;letter-spacing:-.35px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card-title-row .age{font-size:10px;color:#d0bfca;margin-left:2px}.online-dot{width:5px;height:5px;background:#92d3a5;border-radius:50%;flex-shrink:0;margin-left:auto}.card-tagline{font-size:9px;color:#e0cfd9;margin:7px 0;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-description{font-size:9px;line-height:1.65;color:#ad9faa;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 10px}.card-meta{display:flex;align-items:center;gap:9px;padding-top:9px;border-top:1px solid #ffffff15;font-size:8px;color:#a99ba5}.card-meta span{display:flex;align-items:center;gap:4px}.card-meta svg{height:11px;width:11px}.card-meta .creator{margin-left:auto;font-size:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:45%}.load-more{display:flex;align-items:center;justify-content:center;gap:25px;margin:32px auto 38px;padding:12px 21px;border-radius:8px;border:1px solid #3c2d37;font-size:11px;color:#dbc2d2;background:#1c161a}.load-more:hover{background:#38212f}.main-footer{border-top:1px solid #262026;display:flex;gap:15px;align-items:center;padding:23px 0 25px;color:#6f616c}.little-logo{font-size:17px;font-weight:700;letter-spacing:-.7px;color:#bbb0b8}.little-logo>span{color:#b96999}.main-footer p{font-size:9px}.main-footer>span:last-child{margin-left:auto;font-size:8px}.mobile-menu,.mobile-bottom,.mobile-shade{display:none}.empty-state{text-align:center;padding:60px 20px}.empty-state>span{font-size:40px;color:var(--pink)}.empty-state h2{font-size:22px}.empty-state p{font-size:13px;color:#a395a0}.primary{background:var(--pink);color:#28111f;border:0;border-radius:8px;padding:12px 20px;font-weight:700;font-size:12px}.empty-state .primary{margin-top:15px}dialog{background:#1a151a;color:#f4edf2;border:1px solid #4d3343;border-radius:18px;padding:0;width:min(460px,calc(100% - 30px));max-height:90dvh;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#050305b8;backdrop-filter:blur(7px)}.icon-button{display:grid;place-items:center;height:32px;width:32px}.modal-close{position:absolute;right:12px;top:12px;border-radius:50%;background:#100b10a8;color:white;z-index:2;font-size:23px}.modal-pad{padding:36px 30px 30px}.modal-pad h2{font-size:26px;letter-spacing:-.6px;margin:10px 0}.modal-pad p{font-size:12px;line-height:1.8;color:#b2a0ad}.modal-symbol{color:var(--pink);font-size:34px}.modal-pad label{display:block;font-size:11px;color:#cbb9c5;margin-top:18px}.modal-pad input,.modal-pad textarea,.modal-pad select{display:block;width:100%;margin-top:8px;background:#100d10;border:1px solid #47323e;padding:12px;color:#f6eaf2;border-radius:7px;outline:none;font-size:12px}.modal-pad textarea{resize:vertical;min-height:80px}.modal-pad .primary{margin-top:23px;width:100%}.modal-note{font-size:10px!important;text-align:center}.profile-image{height:275px;width:100%;object-fit:cover;object-position:center 30%;display:block}.profile-copy{padding:22px 27px 27px}.profile-copy h2{margin:0;font-size:27px}.profile-copy h2 span{font-weight:400;color:#ad95a4;font-size:16px}.profile-copy p{font-size:12px;line-height:1.8;color:#b6a2b0}.profile-tags{display:flex;gap:7px;margin:16px 0}.profile-tags span{font-size:10px;background:#38232f;border-radius:5px;padding:6px 9px;color:#e6b5d2}.profile-copy .primary{width:100%;display:flex;justify-content:center;align-items:center;gap:9px;margin-top:20px}.profile-copy .primary svg{width:16px;height:16px}.filter-options{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.filter-options button{padding:9px 12px;font-size:11px;background:#2a2028;border:1px solid #45303e;border-radius:6px}.filter-options button.selected{background:#f0c7df;color:#2e1927}.chat-messages{height:250px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:14px 0}.message{font-size:12px;line-height:1.7;background:#2d2029;padding:11px 14px;border-radius:10px;max-width:90%;align-self:flex-start}.message.user{background:#74405f;align-self:flex-end}.chat-form{display:flex;gap:8px;margin-top:15px}.chat-form input{margin:0;flex:1;min-width:0}.chat-form .primary{width:auto;margin:0}.toast{position:fixed;bottom:28px;left:calc(50% + 111px);transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#f2d5e7;color:#321627;border-radius:9px;padding:12px 20px;font-size:12px;z-index:100;transition:opacity .2s,transform .2s;box-shadow:0 5px 35px #0005;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(min-width:1600px){.character-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.card-title-row h2{font-size:19px}.card-description,.card-tagline{font-size:11px}.card-meta{font-size:10px}.card-meta .creator{font-size:9px}}@media(max-width:1200px){.character-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.community-proof{display:none}.sidebar{width:205px}.workspace{margin-left:205px}main{padding:23px 25px 0}.topbar{padding:0 25px}.logo{font-size:30px}.create-button{font-size:11px}.toast{left:calc(50% + 102px)}}@media(max-width:980px){.character-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.announcement>div>span:last-child{display:none}.sidebar{width:190px;padding-left:12px;padding-right:12px}.workspace{margin-left:190px}.logo{font-size:28px}.create-button{padding-left:7px;gap:5px;font-size:10px}.top-tabs{gap:21px}.card-title-row h2{font-size:17px}.card-description,.card-tagline{font-size:10px}.toast{left:calc(50% + 95px)}}@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .25s;width:222px}.sidebar.open{transform:translateX(0)}.mobile-shade.show{display:block;position:fixed;inset:0;background:#0009;z-index:25}.workspace{margin-left:0}.topbar{height:65px;padding:0 18px;gap:15px}.mobile-menu{display:grid;color:#c2b5be}.top-tabs{gap:20px;flex:1}.top-tabs button{font-size:11px}.top-tabs button:last-child{display:none}.header-actions{gap:12px;font-size:11px}.join{padding:9px 12px}.join span{display:none}main{padding:18px 17px 65px}.announcement{padding:9px 11px}.announcement strong{font-size:9px}.announcement button{font-size:9px}.announcement>div{gap:7px}.announcement-star{font-size:20px}.explore-head{margin:28px 0 23px}h1{font-size:28px;letter-spacing:-.9px}.eyebrow{font-size:8px}.explore-head p{font-size:10px;line-height:1.7;max-width:280px}.search-box{padding:0 11px;height:44px;gap:8px}.search-box input{font-size:10px}.search-box kbd{display:none}.filter-button{padding:0 12px}.filter-button>span:nth-child(2){display:none}.category-row{margin:15px 0 23px;gap:6px}.chip{padding:8px 11px;font-size:10px}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}.character-card{aspect-ratio:.62}.card-bottom{padding:11px 10px 10px}.card-title-row h2{font-size:17px}.card-description{font-size:9px;line-height:1.5;margin-bottom:8px}.card-tagline{font-size:9px}.card-meta{font-size:8px;gap:7px}.card-meta .creator{font-size:7px}.result-tabs{gap:18px}.result-tabs button{font-size:11px}.sort-control{gap:0}.sort-control>#resultCount{display:none}.sort-control select{font-size:9px;max-width:105px}.main-footer{flex-wrap:wrap;gap:6px 12px}.main-footer>span:last-child{width:100%;margin-left:0}.mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;background:#151115f5;backdrop-filter:blur(14px);border-top:1px solid #35232f;padding:10px 0 max(10px,env(safe-area-inset-bottom));z-index:20;justify-content:space-around}.mobile-bottom button{display:flex;align-items:center;flex-direction:column;gap:5px;color:#968590;font-size:9px;min-width:55px}.mobile-bottom button.active{color:var(--pink)}.mobile-bottom svg{height:20px;width:20px}.toast{left:50%;bottom:85px;white-space:nowrap;font-size:11px}.load-more{margin:25px auto}.modal-pad{padding:32px 24px 24px}.profile-image{height:240px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
/* Locale controls use native language names so they remain recognizable. */
.header-language{display:flex;align-items:center;gap:6px;color:#bdacb8;font-size:10px;white-space:nowrap;padding:6px 0}.header-language svg{width:15px;height:15px}.language-options{display:grid;gap:9px;margin:22px 0 0}.language-options button{display:flex;align-items:center;justify-content:space-between;text-align:left;border:1px solid #48303f;background:#251b23;border-radius:8px;padding:13px;font-size:12px;gap:10px}.language-options button.selected{background:#ecd0e0;color:#301c28;border-color:#ecd0e0}.language-options button:not(.selected):hover{background:#3a2533}html:lang(zh-CN){font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif}html:lang(zh-CN) .eyebrow{letter-spacing:2px}html:lang(es-419) .create-button{font-size:11px}html:lang(es-419) .nav-item{gap:10px}html:lang(es-419) .top-tabs{gap:20px}.utility[data-action="settings"]>[data-language-label]{margin-left:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.announcement strong{line-height:1.5}.card-tagline{line-height:1.5}@media(max-width:700px){.header-actions{gap:10px}.header-language{font-size:9px;gap:4px}.header-language svg{width:13px;height:13px}html:lang(es-419) .top-tabs{gap:10px}html:lang(es-419) .topbar{gap:9px;padding:0 12px}html:lang(es-419) .top-tabs button{font-size:10px}html:lang(es-419) .login{font-size:10px}html:lang(es-419) .join{font-size:10px;padding:9px}html:lang(es-419) .announcement>div{min-width:0}html:lang(es-419) .announcement strong{font-size:9px}html:lang(es-419) .announcement button{font-size:8px}html:lang(es-419) .explore-head h1{font-size:26px}html:lang(es-419) .result-tabs{gap:12px}html:lang(es-419) .result-tabs button{font-size:10px}html:lang(es-419) .sort-control select{max-width:92px;font-size:8px}}@media(max-width:380px){.top-tabs button[data-style="Realistic"]{display:none}.topbar{gap:10px}.header-actions{gap:8px}}
/* Immersive portrait feed — reference screenshot supplied by the user. */
body.immersive-feed{background:#000;overflow:hidden}.immersive-feed .topbar,.immersive-feed .mobile-bottom{display:none!important}.immersive-feed main{padding:0;max-width:none}.immersive-feed main>:not(#grid){display:none!important}.immersive-feed #grid{display:block;margin:0}.reel-shell{height:100dvh;background:#000;position:relative;overflow:hidden}.reel-viewport{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;outline:none}.reel-viewport::-webkit-scrollbar{display:none}.reel-scene{height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;position:relative}.reel-composition{position:relative;height:calc(100dvh - 58px);max-height:1100px;aspect-ratio:9/16;transform:translateX(-26px)}.reel-card{position:relative;width:100%;height:100%;border-radius:28px;overflow:hidden;background:#171317;isolation:isolate}.reel-media{display:block;height:100%;width:100%;object-fit:cover}.reel-scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0002 0%,transparent 35%,#0000 58%,#0005 77%,#000d 100%)}.reel-mute{position:absolute;top:15px;left:15px;border-radius:50%;background:#0008;width:58px;height:58px;display:grid;place-items:center;color:white}.reel-mute svg{width:24px;height:24px}.reel-mute:disabled{cursor:default;opacity:1}.reel-caption{position:absolute;bottom:39px;left:34px;right:30px;color:#fff}.reel-avatar-wrap{position:relative;width:60px;height:60px;margin-bottom:18px}.reel-avatar{display:block;width:60px;height:60px;border-radius:50%;overflow:hidden;padding:0}.reel-avatar img{height:100%;width:100%;object-fit:cover}.reel-follow{position:absolute;bottom:-1px;right:-3px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#ed42aa;color:white;font-size:24px;line-height:1;padding:0}.reel-follow.saved{font-size:14px}.reel-name{padding:0;display:block;font-size:27px;line-height:1.3;letter-spacing:-.5px;font-weight:600;text-align:left;color:#fff}.reel-description{margin:5px 0 0;font-size:18px;line-height:1.35;color:#aaa;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.reel-actions{position:absolute;left:calc(100% + 26px);bottom:35px;display:flex;flex-direction:column;gap:36px;align-items:center}.reel-actions button{height:42px;width:42px;display:grid;place-items:center;padding:6px;color:#fff}.reel-actions svg{width:29px;height:29px;stroke-width:2}.reel-actions .reel-chat svg{fill:#fff;stroke:#fff}.reel-actions .liked{color:#fd5fc2}.reel-actions .liked svg{fill:currentColor}.reel-actions button:hover{transform:scale(1.1)}.reel-navigation{position:absolute;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:37px}.reel-navigation button{width:42px;height:42px;display:grid;place-items:center;color:#fff}.reel-navigation svg{width:29px;height:29px;stroke-width:2.4}.reel-exit{position:absolute;left:23px;top:22px;z-index:3;color:#aaa;border-radius:50%;background:#0005;width:36px;height:36px;display:grid;place-items:center;opacity:.5}.reel-exit:hover{opacity:1;background:#242024}.reel-position{position:absolute;bottom:12px;right:31px;color:#666;font-size:10px;pointer-events:none}.immersive-feed .toast{left:50%}.feed-comments{max-height:260px;overflow:auto;padding:8px 0}.feed-comment{padding:12px 0;border-bottom:1px solid #3b2834}.feed-comment strong{font-size:12px;color:#e3bbd2}.feed-comment p{margin:5px 0;overflow-wrap:anywhere}@media(max-width:700px){.reel-composition{height:calc(100dvh - 28px);max-width:calc(100vw - 85px);aspect-ratio:9/16;transform:translateX(-15px)}.reel-card{border-radius:19px}.reel-caption{left:20px;right:17px;bottom:26px}.reel-name{font-size:22px}.reel-description{font-size:13px;line-height:1.5}.reel-avatar-wrap,.reel-avatar{height:46px;width:46px}.reel-avatar-wrap{margin-bottom:14px}.reel-follow{width:22px;height:22px;font-size:21px}.reel-mute{width:44px;height:44px;top:11px;left:11px}.reel-mute svg{width:20px;height:20px}.reel-actions{left:calc(100% + 7px);gap:21px;bottom:24px}.reel-actions button{width:35px;height:35px;padding:5px}.reel-actions svg{width:25px;height:25px}.reel-navigation{right:4px;top:46%;gap:15px}.reel-navigation button{width:30px;height:35px}.reel-navigation svg{height:23px;width:23px}.reel-exit{left:5px;top:5px;width:27px;height:27px}.reel-exit svg{width:18px;height:18px}.reel-position{right:8px;bottom:10px;font-size:9px}}@media(max-width:420px){.reel-composition{max-width:calc(100vw - 58px);transform:translateX(-17px);height:min(calc(100dvh - 24px),calc((100vw - 58px)*16/9))}.reel-caption{left:17px;bottom:24px}.reel-navigation{top:40%}}

/* Keep the site's sidebar alongside the immersive viewer. */
.immersive-feed{--feed-sidebar-width:222px}.immersive-feed .workspace{margin-left:var(--feed-sidebar-width)}.immersive-feed .sidebar{overflow-y:auto}.reel-menu{display:none}
@media(min-width:701px){.reel-composition{height:min(calc(100dvh - 58px),calc((100vw - var(--feed-sidebar-width) - 118px)*16/9))}}
@media(max-width:1200px){.immersive-feed{--feed-sidebar-width:205px}}
@media(max-width:980px){.immersive-feed{--feed-sidebar-width:190px}}
@media(max-width:700px){.immersive-feed{--feed-sidebar-width:0px}.reel-menu{display:grid;position:absolute;left:7px;top:7px;z-index:4;width:34px;height:34px;border-radius:50%;background:#0009;color:#fff}.reel-menu svg{width:20px;height:20px}.immersive-feed .sidebar.open{display:flex}.immersive-feed .mobile-shade.show{display:block}}
/* Subtle dark scrollbars for the sidebar and scrollable dialogs. */
.sidebar,.feed-comments,.chat-messages,dialog{scrollbar-width:thin;scrollbar-color:#494047 transparent}
.sidebar::-webkit-scrollbar,.feed-comments::-webkit-scrollbar,.chat-messages::-webkit-scrollbar,dialog::-webkit-scrollbar{width:5px;height:5px}
.sidebar::-webkit-scrollbar-track,.feed-comments::-webkit-scrollbar-track,.chat-messages::-webkit-scrollbar-track,dialog::-webkit-scrollbar-track{background:transparent}
.sidebar::-webkit-scrollbar-thumb,.feed-comments::-webkit-scrollbar-thumb,.chat-messages::-webkit-scrollbar-thumb,dialog::-webkit-scrollbar-thumb{background:#494047;border-radius:99px}
.sidebar::-webkit-scrollbar-thumb:hover,.feed-comments::-webkit-scrollbar-thumb:hover,.chat-messages::-webkit-scrollbar-thumb:hover,dialog::-webkit-scrollbar-thumb:hover{background:#75606e}
.sidebar::-webkit-scrollbar-corner,.feed-comments::-webkit-scrollbar-corner,.chat-messages::-webkit-scrollbar-corner,dialog::-webkit-scrollbar-corner{background:transparent}

/* Remove the redundant top category strip and promotional banner. */
.topbar{height:64px;justify-content:flex-end}.topbar .mobile-menu{margin-right:auto}.explore-head{margin-top:12px}
/* One consistent search toolbar: aligned surfaces, sizing, type and spacing. */
.search-row{--control-height:46px;--control-radius:10px;display:flex;align-items:stretch;gap:10px;min-width:0}
.search-row .search-box,.search-row .filter-pill{height:var(--control-height);background:#1a181a;border:1px solid #302a2f;border-radius:var(--control-radius);transition:border-color .18s,background .18s}
.search-row .search-box{flex:1;min-width:0;padding:0 15px;gap:11px}
.search-row .search-box input{font-size:12px;line-height:1.4}
.search-row .search-box:focus-within{border-color:#a3467f}
.search-row .search-selects{display:flex;align-items:stretch;gap:10px;margin:0;flex-shrink:0;flex-wrap:nowrap}
.search-row .filter-pill{position:relative;display:block;min-width:0}
.search-row .filter-pill:hover{background:#211c20;border-color:#55404d}
.search-row .filter-pill:focus-within{border-color:#a3467f;outline:2px solid #fd5fc233;outline-offset:2px}
.search-row .filter-pill select{appearance:none;-webkit-appearance:none;display:block;height:100%;width:126px;max-width:none;padding:0 35px 0 16px;border:0;border-radius:var(--control-radius);outline:none;background:transparent;color:#d9cfd5;font-size:12px;font-weight:400;line-height:1.4;cursor:pointer}
.search-row .filter-pill:first-child select{width:104px}
.search-row .filter-pill select:focus-visible{outline:none}
.search-row .filter-pill select option{background:#211c20;color:#f5edf2}
.search-row .filter-pill>span{position:absolute;right:16px;top:50%;width:7px;height:7px;font-size:0;border-right:1.5px solid #a798a2;border-bottom:1.5px solid #a798a2;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.search-row+.category-row{margin-top:18px}
@media(max-width:1100px){.search-row .filter-pill select{width:110px;padding-left:13px}.search-row .filter-pill:first-child select{width:86px}}
@media(max-width:700px){.search-row{--control-height:40px;--control-radius:8px;gap:6px}.search-row .search-box{padding:0 9px;gap:6px}.search-row .search-box svg{width:14px;height:14px}.search-row .search-box input{font-size:11px}.search-row .search-selects{gap:6px}.search-row .filter-pill select{width:78px;max-width:none;padding:0 21px 0 10px;font-size:11px}.search-row .filter-pill:first-child select{width:55px}.search-row .filter-pill>span{width:6px;height:6px;right:10px}html:lang(es-419) .search-row .filter-pill select{width:86px;font-size:10px}html:lang(es-419) .search-row .filter-pill:first-child select{width:65px}}
/* My AI library and its empty state. */
.is-myai>:not(.myai-page){display:none!important}.myai-page{padding:8px 0 28px;min-height:calc(100dvh - 120px)}.myai-search{display:flex;align-items:center;gap:13px;width:min(600px,70%);height:56px;margin:0 auto;background:#2b2b2b;border-radius:999px;padding:0 21px;color:#a5a5a5}.myai-search input{width:100%;min-width:0;outline:none;border:0;background:none;color:white;font-size:15px}.myai-search input::placeholder{color:#aaa}.myai-search:focus-within{outline:1px solid #98617f}.myai-toolbar{position:relative;display:flex;align-items:center;justify-content:center;margin:24px 0 0;min-height:50px}.myai-tabs{display:flex;align-items:center;gap:9px}.myai-tabs button{font-size:15px;color:#999;padding:13px 18px;border-radius:999px;white-space:nowrap}.myai-tabs button.active{color:#fff;background:#2c2c2c}.myai-filters{position:absolute;right:0;display:flex;align-items:center;gap:10px;padding:13px 19px;background:#2e2e2e;border-radius:999px;font-size:14px}.myai-filters svg{width:19px;height:19px}.myai-filters i{width:5px;height:5px;background:var(--pink);border-radius:50%}.library-empty{display:flex;flex-direction:column;align-items:center;padding:77px 0 5px}.library-empty-title{font-size:23px;color:#929292;font-weight:400;margin:0 0 25px;text-align:center;line-height:1.5}.library-create-card{background:#232323;border:1px solid #3b3b3b;border-radius:29px;padding:13px;width:320px;max-width:90%;box-shadow:0 0 0 1px #ffffff03}.library-collage{position:relative;overflow:hidden;height:435px;border-radius:20px;background:linear-gradient(#303030,#101010)}.library-collage img{position:absolute;object-fit:cover;box-shadow:0 12px 35px #0005}.library-collage-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,#57366755,transparent 70%)}.library-collage .collage-back{width:63%;height:65%;top:8%;left:21%;transform:rotate(-5deg);border-radius:15px;object-position:50% 25%;z-index:1}.library-collage .collage-left{width:47%;height:43%;left:-6%;bottom:10%;transform:rotate(-11deg);border-radius:10px;z-index:2}.library-collage .collage-right{width:47%;height:43%;right:-7%;bottom:10%;transform:rotate(12deg);border-radius:10px;z-index:2}.library-create-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 6px 4px}.library-create-footer h2{font-size:22px;margin:0;line-height:1.15;max-width:130px}.library-create-footer button{color:#111;background:#fff;border-radius:999px;font-size:15px;font-weight:600;padding:15px 18px;white-space:nowrap}.library-create-footer button:hover{background:#f3d9e8;color:#111}.library-other-empty{text-align:center;color:#999;padding:100px 20px}.library-other-empty>span{font-size:38px;color:#b99aaa}.library-other-empty p{line-height:1.7;font-size:16px;margin:20px 0}.library-characters{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px;margin:45px 0}.library-character{position:relative;border-radius:15px;overflow:hidden;padding:0;aspect-ratio:3/4;background:#252025;text-align:left}.library-character img{width:100%;height:100%;object-fit:cover}.library-character>span{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,#000c);padding:40px 15px 15px;font-size:19px;font-weight:600}.library-add{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;border:1px dashed #715266;border-radius:15px;color:#d2adc5;font-size:14px;aspect-ratio:3/4}.library-add>span{font-size:45px;font-weight:300}@media(max-width:1100px){.myai-toolbar{justify-content:flex-start}.myai-tabs{gap:2px}.myai-tabs button{font-size:13px;padding:12px 13px}.myai-filters{font-size:12px;padding:12px 14px}.myai-search{width:min(600px,90%)}}@media(max-width:700px){.myai-page{padding-top:5px}.myai-search{width:100%;height:46px;padding:0 16px}.myai-search input{font-size:13px}.myai-toolbar{margin-top:19px;gap:7px;justify-content:space-between}.myai-tabs{gap:2px}.myai-tabs button{font-size:12px;padding:11px 12px}.myai-filters{position:static;font-size:11px;padding:11px 12px;gap:6px}.myai-filters svg{width:15px;height:15px}.library-empty{padding-top:57px}.library-empty-title{font-size:18px;margin-bottom:23px}.library-create-card{width:280px;padding:11px;border-radius:24px}.library-collage{height:345px;border-radius:15px}.library-create-footer h2{font-size:20px;max-width:110px}.library-create-footer button{font-size:13px;padding:13px 16px}.library-characters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:30px}.library-other-empty{padding:75px 10px}html:lang(es-419) .myai-tabs button{padding:10px 8px;font-size:11px}html:lang(es-419) .myai-filters{font-size:10px;padding:10px 9px}}@media(max-width:370px){.myai-tabs button{padding:10px 8px}.myai-filters{padding:10px 9px}.myai-filters svg{display:none}}
@media(max-width:700px){.library-collage{height:clamp(210px,calc(100dvh - 470px),345px)}.library-empty{padding-top:45px}}
/* Generator workspace: preset panel and inspiration gallery. */
.is-generator>:not(.generator-page){display:none!important}.generator-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:36px;align-items:start;padding:0 0 28px}.generator-panel{position:sticky;top:16px;display:flex;flex-direction:column;height:calc(100dvh - 110px);min-height:570px;max-height:1100px;background:#111;border:1px solid #303030;border-radius:29px;padding:17px;overflow:hidden}.gen-panel-scroll{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#494047 transparent;padding:0 2px 14px;flex:1;min-height:0}.gen-mode{display:flex;background:#111;border:1px solid #303030;border-radius:999px;padding:5px;gap:4px}.gen-mode button{flex:1;border-radius:999px;padding:12px 4px;font-size:14px;color:#888;font-weight:600}.gen-mode button.active{background:#fff;color:#111}.gen-subtabs{display:flex;gap:10px;align-items:center;margin:16px 0 22px}.gen-subtabs button{padding:11px 13px;border-radius:999px;color:#999;font-size:12px}.gen-subtabs button.active{background:#303030;color:white}.gen-subtabs span{color:var(--pink);font-size:19px}.gen-section-title{font-size:13px;font-weight:600;margin:0 0 11px}.gen-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.gen-preset{position:relative;background:#292929;border:1px solid #383838;border-radius:11px;aspect-ratio:.82;overflow:hidden;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;padding:18px 8px 14px}.gen-preset.active{border:2px solid #ef5ab3;box-shadow:inset 0 0 26px #f669b34a,0 0 0 2px #5d2b4744;background:linear-gradient(#4a3540,#292929 42%,#3e2a35)}.gen-preset-icon{background:#232323;display:grid;place-items:center;height:49px;width:49px;border-radius:50%;margin:auto 0;color:#aaa}.gen-preset-icon svg{height:26px;width:26px}.gen-preset-copy{display:flex;align-items:center;flex-direction:column;gap:5px;z-index:1;max-width:100%;margin-top:auto}.gen-preset strong{font-size:17px;font-weight:600}.gen-preset small{font-size:11px;color:#999;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gen-preset>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.gen-preset:has(>img):after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#000b)}.gen-preset:has(>img) small{color:#d5c2ce}.gen-check{position:absolute;top:8px;right:8px;z-index:1;background:var(--pink);border-radius:50%;height:21px;width:21px;display:grid;place-items:center;color:#24121e;font-size:12px}.gen-prompt-label{display:flex;align-items:center;justify-content:space-between;margin:25px 0 11px;gap:8px}.gen-prompt-label label{font-size:13px;font-weight:600}.gen-prompt-label>span{font-size:10px;background:#e547a6;color:white;padding:3px 6px;border-radius:4px}.generator-panel textarea{width:100%;min-height:92px;resize:vertical;background:#1e1e1e;border:1px solid #262126;border-radius:11px;color:#eee;font-size:12px;padding:13px;line-height:1.7;outline:none}.generator-panel textarea:focus{border-color:#8a4a70}.gen-panel-bottom{padding-top:13px;background:#111;flex-shrink:0}.gen-utilities{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.gen-utilities>button,.gen-count{height:40px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;background:#303030;padding:0 15px;font-size:12px}.gen-utilities svg{width:17px;height:17px}.gen-count select{appearance:auto;border:0;background:none;color:#fff;outline:none;min-width:38px;cursor:pointer;font-size:12px}.gen-count select option{background:#242024}.gen-submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:16px;border-radius:999px;background:linear-gradient(#fe79d0,#f32ba3);font-size:17px;font-weight:600;color:#fff}.gen-submit:hover{background:linear-gradient(#ff9bde,#f74eb5)}.gen-panel-bottom>p{text-align:center;font-size:9px;color:#806b79;margin:9px 0 0}.generator-gallery{padding:14px 0 0;min-width:0}.generator-gallery h1{font-size:28px;text-align:center;letter-spacing:-.5px;line-height:1.4}.gen-gallery-filters{display:flex;justify-content:center;gap:10px;margin:20px 0 30px}.gen-gallery-filters label{position:relative;background:#303030;border-radius:999px}.gen-gallery-filters select{appearance:none;padding:12px 34px 12px 18px;color:#eee;background:none;outline:none;border:0;font-size:13px;cursor:pointer;border-radius:999px;max-width:190px}.gen-gallery-filters select option{background:#292529}.gen-gallery-filters label>span{position:absolute;right:14px;top:50%;transform:translateY(-55%);pointer-events:none;font-size:15px}.gen-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gen-example{position:relative;padding:0;background:#222;border:1px solid #333;border-radius:11px;aspect-ratio:.8;overflow:hidden;text-align:left}.gen-example img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s}.gen-example:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,#000a)}.gen-example>span{position:absolute;left:13px;right:10px;bottom:15px;font-size:18px;font-weight:500;z-index:1;line-height:1.3}.gen-example:hover img{transform:scale(1.04)}.gen-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:20px;max-height:400px;overflow-y:auto}.gen-picker button{padding:0;background:#30232b;border-radius:9px;overflow:hidden;min-width:0}.gen-picker img{display:block;width:100%;height:120px;object-fit:cover}.gen-picker span{font-size:11px;display:block;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gen-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gen-results img{width:100%;height:auto;object-fit:cover;border-radius:9px}.gen-gallery-empty{color:#999;text-align:center;padding:50px 0}.gen-upload{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:140px;margin:0 0 20px;border:1px dashed #765267;border-radius:12px;background:#251d23;cursor:pointer;overflow:hidden}.gen-upload>span{font-size:25px;color:#e7b1d1}.gen-upload strong{font-size:12px}.gen-upload small{font-size:9px;color:#95828e}.gen-upload input{position:absolute;width:1px;height:1px;opacity:0}.gen-upload img{max-width:100%;max-height:170px;object-fit:contain;margin-bottom:10px}.gen-upload:focus-within{outline:2px solid var(--pink);outline-offset:2px}@media(max-width:1350px){.generator-layout{grid-template-columns:290px minmax(0,1fr);gap:24px}.generator-panel{padding:14px}.generator-gallery h1{font-size:24px}.gen-example>span{font-size:15px}.gen-presets{gap:10px}.gen-preset{aspect-ratio:.83}.gen-preset strong{font-size:15px}}@media(max-width:1100px){.generator-layout{grid-template-columns:260px minmax(0,1fr);gap:20px}.gen-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gen-preset{padding-top:14px}.gen-preset-icon{height:40px;width:40px}.gen-subtabs{gap:2px}.gen-subtabs button{font-size:11px;padding:10px}.generator-gallery h1{font-size:22px}}@media(max-width:850px){.generator-layout{grid-template-columns:minmax(0,1fr)}.generator-panel{position:static;height:auto;min-height:0;max-height:none;max-width:480px;width:100%;margin:auto}.gen-panel-scroll{overflow:visible}.gen-preset{aspect-ratio:1.25}.generator-gallery{padding-top:10px}.gen-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gen-prompt-label{margin-top:20px}}@media(max-width:700px){.generator-layout{gap:28px}.generator-panel{border-radius:23px;padding:15px}.gen-preset{aspect-ratio:1.3}.gen-preset-icon{height:40px;width:40px}.gen-preset-copy{gap:3px}.gen-preset strong{font-size:15px}.gen-preset small{font-size:10px}.gen-panel-bottom{padding-top:12px}.gen-submit{font-size:16px;padding:13px}.gen-utilities{margin-bottom:12px}.gen-prompt-label{margin-top:18px}.generator-panel textarea{min-height:75px}.gen-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.generator-gallery h1{font-size:23px}.gen-gallery-filters{margin:18px 0 22px}.gen-example>span{font-size:15px}.gen-picker img{height:110px}.gen-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.gen-results img:only-child{grid-column:1/-1;max-height:55dvh;object-fit:contain}}
.topbar .mobile-menu{display:none}@media(max-width:700px){.topbar .mobile-menu{display:grid}}
@media(min-width:851px) and (max-height:850px){.gen-preset{aspect-ratio:1.18;padding:10px 7px}.gen-preset-icon{width:36px;height:36px}.gen-preset-icon svg{width:22px;height:22px}.gen-preset strong{font-size:14px}.gen-preset small{font-size:10px}.gen-mode button{padding:10px 4px}.gen-subtabs{margin:11px 0 16px}.gen-prompt-label{margin-top:18px}.gen-panel-bottom{padding-top:10px}.gen-submit{padding:13px}.gen-utilities{margin-bottom:10px}}
/* Extra-fine scrollbars, including the generator's inner panel. */
:is(html,.sidebar,.gen-panel-scroll,.gen-picker,.feed-comments,.chat-messages,dialog,textarea){scrollbar-width:thin;scrollbar-color:#393239 transparent}
:is(html,.sidebar,.gen-panel-scroll,.gen-picker,.feed-comments,.chat-messages,dialog,textarea)::-webkit-scrollbar{width:3px;height:3px}
:is(html,.sidebar,.gen-panel-scroll,.gen-picker,.feed-comments,.chat-messages,dialog,textarea)::-webkit-scrollbar-track{background:transparent}
:is(html,.sidebar,.gen-panel-scroll,.gen-picker,.feed-comments,.chat-messages,dialog,textarea)::-webkit-scrollbar-thumb{background:#393239;border:0;border-radius:99px}
:is(html,.sidebar,.gen-panel-scroll,.gen-picker,.feed-comments,.chat-messages,dialog,textarea)::-webkit-scrollbar-thumb:hover{background:#66525f}
:is(html,.sidebar,.gen-panel-scroll,.gen-picker,.feed-comments,.chat-messages,dialog,textarea)::-webkit-scrollbar-corner{background:transparent}
@supports selector(::-webkit-scrollbar){:is(html,.sidebar,.gen-panel-scroll,.gen-picker,.feed-comments,.chat-messages,dialog,textarea){scrollbar-width:auto;scrollbar-color:auto}}
/* Mobile preset rail: show two cards and a preview of the next one. */
@media(max-width:700px){
 .gen-presets{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:42%;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:2px;padding:3px 2px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .gen-presets::-webkit-scrollbar{display:none}
 .gen-presets .gen-preset{scroll-snap-align:start;min-width:0}
 .gen-presets .gen-preset-icon{height:44px;width:44px}
 .gen-presets .gen-preset-copy{margin-top:auto;margin-bottom:2px}
}


/* Single size rule shared by all four presets. Mobile cannot stretch the cards. */
.generator-panel .gen-presets>.gen-preset{box-sizing:border-box;block-size:170px;min-block-size:170px;max-block-size:170px;aspect-ratio:auto;align-self:start}
@media(max-width:700px){.generator-panel .gen-presets{grid-template-rows:170px;align-items:start;padding-block:3px 6px}.generator-panel .gen-presets>.gen-preset{padding:12px 8px}.generator-panel .gen-preset-icon{flex:0 0 40px;width:40px;height:40px;margin:18px 0 0}.generator-panel .gen-preset-copy{margin-top:auto;margin-bottom:3px}}

/* Hide the generator panel scrollbar while retaining scroll interaction. */
.generator-panel .gen-panel-scroll{scrollbar-width:none;-ms-overflow-style:none}
.generator-panel .gen-panel-scroll::-webkit-scrollbar{display:none;width:0;height:0}
/* Preset selection stays a dialog on desktop and slides up as a mobile sheet. */
.preset-picker-dialog{width:min(760px,calc(100% - 36px));background:#232323;border-color:#363036}.preset-sheet{display:flex;flex-direction:column;max-height:85dvh}.preset-sheet-head{position:relative;padding:27px 55px 20px;flex-shrink:0}.preset-sheet-head h2{font-size:22px;text-align:center;margin:0;line-height:1.4}.preset-search-toggle{position:absolute;right:19px;top:25px;padding:4px;display:grid;place-items:center}.preset-picker-dialog #closeModal{left:17px;right:auto;top:24px;background:none}.preset-sheet-tools{padding:0 20px 18px;flex-shrink:0}.preset-sheet-filters{display:flex;align-items:center;gap:9px;overflow-x:auto;scrollbar-width:none}.preset-sheet-filters::-webkit-scrollbar{display:none}.preset-sheet-filters select{appearance:none;background:#343434 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23eeeeee' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;border:0;border-radius:999px;padding:11px 30px 11px 15px;color:#eee;font-size:12px;flex-shrink:0;max-width:190px;cursor:pointer}.preset-sheet-filters select option{background:#292629}.preset-sheet-search{display:flex;align-items:center;gap:10px;background:#333;border-radius:12px;padding:11px 13px;margin-bottom:15px;color:#aaa}.preset-sheet-search input{background:none;outline:none;border:0;color:#fff;min-width:0;width:100%;font-size:13px}.preset-sheet-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 20px;scrollbar-width:none}.preset-sheet-content::-webkit-scrollbar{display:none}.preset-sheet .gen-picker{max-height:none;overflow:visible;margin:0;gap:12px}.preset-sheet .gen-picker button{position:relative;aspect-ratio:4/5;text-align:left;background:#303030;border:1px solid #ffffff0c}.preset-sheet .gen-picker img{height:100%;width:100%;object-fit:cover}.preset-sheet .gen-picker button:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#000b);pointer-events:none}.preset-sheet .gen-picker span{position:absolute;left:12px;right:10px;bottom:12px;z-index:1;padding:0;font-size:17px;font-weight:600;white-space:normal;line-height:1.3}.preset-sheet .gen-picker button.selected{border:2px solid var(--pink)}.preset-sheet .gen-picker i{position:absolute;right:10px;top:10px;width:23px;height:23px;display:grid;place-items:center;background:var(--pink);color:#26101d;border-radius:50%;font-style:normal}.preset-sheet-footer{padding:12px 18px 18px;flex-shrink:0;border-top:1px solid #ffffff12}.preset-sheet-footer button{width:100%}.preset-no-results{font-size:13px;color:#aaa;text-align:center;padding:35px 10px}.preset-picker-dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
@media(max-width:700px){
 dialog.preset-picker-dialog{position:fixed;inset:auto 0 0;top:auto;margin:0;width:100%;max-width:none;height:92dvh;max-height:92dvh;border:0;border-radius:27px 27px 0 0;padding:0;overflow:hidden;background:#232323}
 .preset-picker-dialog[open]{animation:preset-sheet-up .26s cubic-bezier(.2,.75,.25,1)}
 .preset-picker-dialog:before{content:'';position:absolute;left:50%;top:16px;width:33px;height:5px;border-radius:999px;background:#a7a7a7;transform:translateX(-50%);z-index:2}
 .preset-sheet{height:100%;max-height:100%;padding-bottom:env(safe-area-inset-bottom)}
 .preset-sheet-head{padding:51px 50px 23px;touch-action:pan-x}
 .preset-sheet-head h2{font-size:20px}
 .preset-picker-dialog #closeModal{top:47px;left:18px;width:30px;height:30px;font-size:27px}
 .preset-search-toggle{top:49px;right:18px}
 .preset-search-toggle svg{width:21px;height:21px}
 .preset-sheet-tools{padding:0 17px 19px}
 .preset-sheet-filters{gap:8px}
 .preset-sheet-filters select{font-size:12px;padding:11px 27px 11px 14px;background-position:right 9px center;max-width:160px}
 .preset-sheet-content{padding:0 10px 20px}
 .preset-sheet .gen-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .preset-sheet .gen-picker button{border-radius:8px}
 .preset-sheet .gen-picker span{font-size:16px;left:10px;bottom:11px}
}
@keyframes preset-sheet-up{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.preset-picker-dialog[open]{animation:none}}
body:has(dialog.preset-picker-dialog[open]){overflow:hidden}
/* Locally authored presets and their editor. */
.preset-custom-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.preset-custom-toolbar>button{background:#efc7df;color:#311426;border-radius:8px;font-size:12px;font-weight:600;padding:9px 13px;white-space:nowrap}.preset-custom-toolbar>span{font-size:10px;color:#a28c99;line-height:1.5}.preset-choice{position:relative;min-width:0}.preset-sheet .gen-picker .preset-choice>[data-gen-pick]{display:block;width:100%;height:100%}.preset-sheet .gen-picker .preset-custom-menu{position:absolute;z-index:3;right:8px;top:8px;background:#171017bb;border:1px solid #ffffff38;color:#fff;backdrop-filter:blur(7px);width:32px;height:26px;aspect-ratio:auto;min-height:0;border-radius:7px;padding:0;text-align:center;font-size:12px;letter-spacing:1px;line-height:1}.preset-sheet .gen-picker .preset-custom-menu:after{display:none}.preset-sheet .preset-choice [data-gen-pick]>i{left:10px;right:auto}.preset-editor{padding:35px 25px 25px;overflow-y:auto;max-height:85dvh;scrollbar-width:none}.preset-editor h2{font-size:23px;text-align:center;margin:0 0 7px}.preset-editor-kind{color:#a58d9e;font-size:12px;text-align:center;margin:0 0 25px}.preset-editor>label,.preset-editor-details>label{display:block;font-size:12px;color:#d6c4cf;margin-top:17px}.preset-editor input:not([type=file]),.preset-editor select{display:block;width:100%;padding:12px;border:1px solid #4a3541;background:#171217;border-radius:8px;color:#f4e7ef;margin-top:8px;font-size:13px;outline:none}.preset-editor input:focus,.preset-editor select:focus{border-color:#c966a2}.preset-editor .preset-editor-upload{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:160px;margin-top:18px;padding:16px;border:1px dashed #876077;background:#2b2028;border-radius:13px;cursor:pointer;overflow:hidden}.preset-editor-upload img{display:block;max-height:160px;max-width:100%;border-radius:7px;object-fit:contain}.preset-editor-upload>span{font-size:13px;color:#f0c3df}.preset-editor-upload>small{font-size:10px;color:#a8909f}.preset-editor-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.preset-editor-upload:focus-within{outline:2px solid var(--pink);outline-offset:3px}.preset-editor-details{display:grid;grid-template-columns:1fr 1fr 85px;gap:10px}.preset-editor-error{font-size:12px;color:#ffb9ce;line-height:1.6}.preset-editor-buttons{display:flex;justify-content:stretch;gap:10px;margin-top:24px}.preset-editor-buttons>button{flex:1;padding:12px 15px;border-radius:9px;font-size:12px;background:#40303b}.preset-editor-buttons>.primary{background:var(--pink);color:#301326}.preset-editor-buttons>button:disabled{opacity:.5;cursor:wait}.preset-danger{color:#ff9aba!important}@media(max-width:700px){.preset-editor{padding:54px 20px 28px;max-height:100%;height:100%;padding-bottom:max(28px,env(safe-area-inset-bottom))}.preset-custom-toolbar{margin-bottom:14px;gap:8px}.preset-custom-toolbar>span{font-size:9px}.preset-custom-toolbar>button{font-size:12px;padding:9px 12px}.preset-editor-details{grid-template-columns:1fr 1fr 75px}.preset-editor-details input,.preset-editor-details select{font-size:12px;padding:11px 9px}}

/* Character creation is a six-step page, with a retained draft between steps. */
main.is-create>:not(#createPage){display:none!important}.create-page{width:100%;padding:30px 0 54px}.creator-wrap{max-width:1040px;margin:auto}.creator-steps{display:flex;align-items:center;justify-content:center;gap:15px;max-width:600px;margin:0 auto 35px}.creator-steps button{color:#57545e;padding:0;flex-shrink:0}.creator-steps button.reached{color:var(--pink)}.creator-steps button:disabled{cursor:default}.creator-steps svg{width:26px;height:26px}.creator-steps>span{height:3px;background:#28262a;flex:1;border-radius:2px}.creator-wrap h1{text-align:center;font-size:clamp(30px,4.5vw,68px);line-height:1.25;letter-spacing:-1.6px;margin:0 0 32px;font-weight:750}.creator-wrap h1 em{font-style:normal;color:var(--pink)}.creator-genders{display:grid;grid-template-columns:repeat(3,1fr);border:2px solid #2b2a2d;padding:5px;border-radius:50px;gap:5px;margin-bottom:28px;background:#111}.creator-genders button{border-radius:40px;color:#aaa;font-size:22px;padding:14px 5px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:12px}.creator-genders button span{font-size:27px}.creator-genders button.selected{background:#303030;color:#fff}.creator-styles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.creator-styles button{position:relative;aspect-ratio:3/4;border:2px solid #4a454d;border-radius:32px;overflow:hidden;padding:0;background:#222}.creator-styles button.selected{border:4px solid #ec4aa7;box-shadow:0 0 0 2px #494047}.creator-styles img{width:100%;height:100%;object-fit:cover}.creator-styles button:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0009);pointer-events:none}.creator-styles strong{position:absolute;bottom:22px;left:0;right:0;font-size:36px;z-index:1}.creator-styles .selected strong{color:var(--pink)}.creator-styles i,.creator-portraits i{position:absolute;top:20px;right:20px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ec4aa7;color:#fff;font-style:normal;font-weight:bold;font-size:24px}.creator-footer{display:flex;justify-content:center;gap:16px;margin:38px auto 0;max-width:710px}.creator-next{flex:1;background:linear-gradient(165deg,#ff9cdc,#ff22ae);border-radius:45px;padding:22px;font-size:22px;font-weight:650;color:#fff}.creator-footer #creatorBack{border:1px solid #3b333e;border-radius:40px;padding:15px 28px;color:#bbb}.creator-intro{text-align:center;color:#a5a0a8;font-size:17px;margin:-12px 0 34px;line-height:1.7}.creator-fields{max-width:650px;margin:auto;display:grid;gap:24px}.creator-fields label{display:grid;gap:12px;color:#c5bec8;font-size:16px}.creator-fields input,.creator-fields textarea{background:#232124;border:1px solid #443948;border-radius:15px;color:#fff;padding:18px;width:100%;font:inherit}.creator-fields textarea{resize:vertical;min-height:190px}.creator-personalities{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:750px;margin:auto}.creator-personalities button{border:1px solid #463c49;background:#232025;border-radius:18px;min-height:140px;font-size:18px}.creator-personalities span{display:block;font-size:34px;margin-bottom:14px;color:var(--pink)}.creator-personalities button.selected,.creator-portraits button.selected{border:2px solid var(--pink);background:#382333}.creator-portraits{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;max-width:740px;margin:auto}.creator-portraits button{aspect-ratio:3/4;position:relative;border:2px solid #39313d;border-radius:14px;overflow:hidden;padding:0}.creator-portraits img{width:100%;height:100%;object-fit:cover}.creator-portraits i{top:10px;right:10px;width:24px;height:24px;font-size:18px}.creator-summary{max-width:740px;margin:24px auto;background:#211c22;border:1px solid #3c303d;border-radius:16px;padding:22px;overflow-wrap:anywhere}.creator-summary strong{display:block;font-size:22px;margin-bottom:10px}.creator-summary span,.creator-summary p{color:#b1a6b4;line-height:1.6}.creator-note{text-align:center;color:#8b808e;font-size:13px}@media(max-width:700px){.create-page{padding:16px 0 30px}.creator-steps{gap:10px;margin-bottom:26px;max-width:350px}.creator-steps svg{width:22px;height:22px}.creator-wrap h1{font-size:32px;letter-spacing:-1px;margin-bottom:26px}.creator-genders{margin-bottom:20px;padding:4px;gap:2px}.creator-genders button{font-size:15px;padding:10px 3px;gap:6px}.creator-genders button span{font-size:20px}.creator-styles{gap:12px}.creator-styles button{border-radius:20px;aspect-ratio:3/4.4}.creator-styles strong{font-size:25px;bottom:18px}.creator-styles i{width:24px;height:24px;font-size:18px;top:12px;right:12px}.creator-footer{margin-top:26px;gap:10px}.creator-next{padding:17px;font-size:19px}.creator-intro{font-size:14px}.creator-personalities{grid-template-columns:repeat(2,1fr);gap:12px}.creator-personalities button{min-height:125px}.creator-portraits{grid-template-columns:repeat(3,1fr);gap:10px}}

/* Compact creation flow proportions. */
.create-page{padding-top:18px}.creator-wrap{max-width:780px}.creator-steps{max-width:440px;margin-bottom:24px;gap:12px}.creator-steps svg{width:22px;height:22px}.creator-wrap h1{font-size:clamp(28px,3.3vw,46px);margin-bottom:24px}.creator-genders{max-width:700px;margin:0 auto 20px;padding:4px}.creator-genders button{font-size:18px;padding:10px 5px}.creator-genders button span{font-size:23px}.creator-styles{max-width:640px;margin:auto;gap:22px}.creator-styles button{border-radius:24px;aspect-ratio:3/3.8}.creator-styles strong{font-size:28px;bottom:18px}.creator-styles i{width:27px;height:27px;font-size:20px;top:15px;right:15px}.creator-footer{max-width:560px;margin-top:26px}.creator-next{font-size:18px;padding:16px}.creator-footer #creatorBack{padding:12px 22px}.creator-fields{max-width:560px;gap:18px}.creator-fields input,.creator-fields textarea{padding:14px}.creator-personalities{max-width:620px;gap:14px}.creator-personalities button{min-height:112px;font-size:16px}.creator-personalities span{font-size:28px;margin-bottom:10px}.creator-intro{font-size:15px;margin-bottom:26px}.creator-portraits,.creator-summary{max-width:620px}@media(max-width:700px){.create-page{padding-top:10px}.creator-wrap{max-width:460px}.creator-steps{max-width:290px;margin-bottom:22px;gap:9px}.creator-steps svg{width:19px;height:19px}.creator-wrap h1{font-size:27px;margin-bottom:22px}.creator-genders button{font-size:14px;padding:8px 3px}.creator-genders button span{font-size:18px}.creator-styles{max-width:330px;gap:12px}.creator-styles button{border-radius:18px;aspect-ratio:3/4}.creator-styles strong{font-size:22px;bottom:15px}.creator-styles i{width:22px;height:22px;font-size:16px;top:10px;right:10px}.creator-footer{max-width:330px;margin-top:22px}.creator-next{font-size:17px;padding:14px}.creator-personalities button{min-height:105px}.creator-intro{font-size:14px}}

/* Smaller creation entry cards and controls. */
.creator-wrap{max-width:620px}.creator-steps{max-width:320px;gap:10px;margin-bottom:18px}.creator-steps svg{width:18px;height:18px}.creator-wrap h1{font-size:clamp(25px,2.5vw,34px);margin-bottom:20px;letter-spacing:-.8px}.creator-genders{max-width:500px;margin-bottom:18px}.creator-genders button{font-size:15px;padding:7px 4px}.creator-genders button span{font-size:20px}.creator-styles{max-width:460px;gap:18px}.creator-styles button{border-radius:19px;aspect-ratio:3/3.7}.creator-styles strong{font-size:23px;bottom:15px}.creator-styles i{width:23px;height:23px;font-size:17px;top:12px;right:12px}.creator-footer{max-width:400px;margin-top:20px}.creator-next{font-size:16px;padding:13px}.creator-fields{max-width:480px}.creator-personalities{max-width:500px}.creator-personalities button{min-height:94px}.creator-portraits,.creator-summary{max-width:500px}@media(max-width:700px){.create-page{padding-top:8px}.creator-steps{max-width:240px;margin-bottom:17px;gap:8px}.creator-steps svg{width:16px;height:16px}.creator-wrap h1{font-size:23px;margin-bottom:18px}.creator-genders{max-width:300px;margin-bottom:16px}.creator-genders button{font-size:12px;padding:6px 2px;gap:4px}.creator-genders button span{font-size:16px}.creator-styles{max-width:260px;gap:10px}.creator-styles button{border-radius:15px;aspect-ratio:3/3.8}.creator-styles button.selected{border-width:3px}.creator-styles strong{font-size:18px;bottom:12px}.creator-styles i{width:19px;height:19px;font-size:14px;top:8px;right:8px}.creator-footer{max-width:260px;margin-top:18px}.creator-next{font-size:15px;padding:11px}.creator-footer #creatorBack{font-size:13px;padding:10px 15px}}

/* Intermediate creation entry size. */
.creator-wrap{max-width:700px}.creator-wrap h1{font-size:clamp(26px,2.9vw,40px)}.creator-genders{max-width:580px}.creator-styles{max-width:540px;gap:20px}.creator-styles strong{font-size:25px}.creator-footer{max-width:460px}.creator-next{font-size:17px;padding:14px}@media(max-width:700px){.creator-wrap h1{font-size:25px}.creator-steps{max-width:265px}.creator-genders{max-width:330px}.creator-genders button{font-size:13px;padding:7px 3px}.creator-styles{max-width:295px;gap:11px}.creator-styles strong{font-size:20px}.creator-footer{max-width:295px}.creator-next{font-size:16px;padding:12px}}

/* Step two: ethnicity cards and skin-tone swatches. */
.creator-traits-page .creator-wrap{max-width:1040px}.creator-steps>span.complete{background:var(--pink)}.creator-traits .creator-trait-title{font-size:21px;font-weight:500;letter-spacing:0;text-align:center;margin:26px 0 20px}.creator-ethnicities{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.creator-ethnicities button{position:relative;aspect-ratio:3/4;border:2px solid #454047;border-radius:18px;overflow:hidden;padding:0;background:#252126}.creator-ethnicities button.selected{border:3px solid #ed4aa6;box-shadow:0 0 0 2px #372a33}.creator-ethnicities img{width:100%;height:100%;object-fit:cover}.creator-ethnicities button:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#000c);pointer-events:none}.creator-ethnicities strong{position:absolute;bottom:12px;left:4px;right:4px;font-size:20px;font-weight:600;z-index:1}.creator-ethnicities .selected strong{color:var(--pink)}.creator-ethnicities i{position:absolute;top:12px;right:12px;width:24px;height:24px;background:#ed4aa6;border-radius:50%;font-size:18px;display:grid;place-items:center;font-style:normal}.ethnicity-custom-art{display:grid;place-items:center;width:100%;height:100%;font-size:74px;color:#c1a1ba;background:radial-gradient(ellipse at 30% 20%,#655367,transparent 70%),#29242c}.creator-skintones{display:flex;gap:20px;justify-content:center;align-items:center;padding:4px 6px}.creator-skintones button{width:52px;height:52px;padding:3px;border:2px solid transparent;border-radius:50%;flex-shrink:0}.creator-skintones button span{display:block;width:100%;height:100%;border:1px solid #ffffff30;background:var(--skin-color);border-radius:50%}.creator-skintones button.selected{border-color:#ed4aa6;transform:scale(1.12)}.creator-tone-name{text-align:center;margin:14px 0 0;font-size:17px}.creator-custom-ethnicity{margin-top:22px}.creator-traits-page .creator-footer{margin-top:25px}@media(max-width:700px){.creator-traits-page .creator-wrap{max-width:460px}.creator-traits .creator-trait-title{font-size:18px;margin:22px 0 17px}.creator-ethnicities{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.creator-ethnicities button{border-radius:13px;aspect-ratio:3/4}.creator-ethnicities strong{font-size:14px;bottom:10px}.creator-ethnicities i{top:8px;right:8px;width:19px;height:19px;font-size:14px}.creator-skintones{gap:10px}.creator-skintones button{width:40px;height:40px}.creator-tone-name{font-size:15px}.ethnicity-custom-art{font-size:48px}}

/* Compact second-step choices. */
.creator-traits-page .creator-wrap{max-width:850px}.creator-traits .creator-trait-title{font-size:18px;margin:20px 0 16px}.creator-ethnicities{gap:11px}.creator-ethnicities button{border-radius:14px;aspect-ratio:3/3.7}.creator-ethnicities strong{font-size:17px;bottom:10px}.creator-ethnicities i{width:21px;height:21px;top:9px;right:9px;font-size:15px}.creator-skintones{gap:16px}.creator-skintones button{width:44px;height:44px}.creator-tone-name{font-size:15px;margin-top:10px}@media(max-width:700px){.creator-traits-page .creator-wrap{max-width:330px}.creator-traits .creator-trait-title{font-size:16px;margin:18px 0 14px}.creator-ethnicities{gap:8px}.creator-ethnicities button{border-radius:11px;aspect-ratio:3/3.6}.creator-ethnicities strong{font-size:12px;bottom:8px}.creator-ethnicities i{width:17px;height:17px;top:6px;right:6px;font-size:12px}.creator-skintones{gap:8px}.creator-skintones button{width:34px;height:34px}.creator-tone-name{font-size:14px}.creator-traits-page .creator-footer{margin-top:18px}}

/* Third-step color palettes share the compact second-step card scale. */
.creator-color-palette{gap:16px;flex-wrap:wrap;max-width:650px;margin:auto}.creator-hair .creator-trait-title:not(:first-child){margin-top:26px}.creator-fields select{font:inherit;color:#fff;background:#232124;border:1px solid #443948;border-radius:15px;padding:14px;width:100%}@media(max-width:700px){.creator-color-palette{display:grid;grid-template-columns:repeat(5,34px);gap:12px 18px;justify-content:center}.creator-hair .creator-trait-title:not(:first-child){margin-top:22px}}

/* Fourth-step clothed illustrations use the same compact choice cards. */
.creator-body .creator-trait-title:first-child{margin-top:0}.creator-body .creator-trait-title:not(:first-child){margin-top:24px}.creator-body-art{display:block;width:100%;height:100%;stroke-width:0;object-fit:cover}.creator-body-options{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:700px){.creator-body-options{grid-template-columns:repeat(3,minmax(0,1fr))}.creator-body .creator-trait-title:not(:first-child){margin-top:22px}}

/* Fifth-step identity and editable detail cards. */
.creator-details-page .creator-wrap{max-width:850px}.creator-identity-row{display:grid;grid-template-columns:1.6fr 1fr;gap:38px;align-items:start}.creator-identity-row>label{display:grid;gap:14px;text-align:center;font-size:18px}.creator-identity-row h1{font-size:18px;font-weight:400;letter-spacing:0;margin:0 0 14px}.creator-name{width:100%;height:65px;text-align:center;border:1px solid #ed4aa6;border-radius:12px;background:#242424;color:white;font-size:28px;font-weight:650;padding:12px}.creator-age-picker{height:65px;display:grid;grid-template-columns:24px repeat(5,minmax(0,1fr)) 24px;align-items:center;background:#131313;border-radius:12px;gap:3px;padding:3px 7px}.creator-age-picker button{font-size:19px;color:#aaa;padding:3px 0}.creator-age-picker button:first-child,.creator-age-picker button:last-child{border-radius:50%;background:#050505;font-size:23px}.creator-age-picker button.selected{height:59px;border:2px solid #b3347b;border-radius:8px;color:#fff;font-size:32px;font-weight:700}.creator-age-picker button:disabled{opacity:.25}.creator-details>h2{text-align:center;font-size:19px;font-weight:500;margin:26px 0 5px}.creator-details-hint{text-align:center;color:#999;font-size:14px;margin:0 0 14px}.creator-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.creator-detail-card{position:relative;border:1px solid #302e30;border-radius:20px;background:linear-gradient(#252525,#0f0f0f);min-height:116px;overflow:hidden}.creator-detail-edit{display:flex;align-items:center;gap:16px;padding:16px;width:100%;height:100%;text-align:left}.creator-detail-icon{width:78px;height:78px;flex-shrink:0;border-radius:15px;background:linear-gradient(#ff8ad3,#ff1bb0);display:grid;place-items:center;font-size:43px;color:#562142}.creator-detail-icon.empty{background:#393939;color:#aaa;font-size:32px}.creator-detail-copy{display:grid;gap:8px;min-width:0}.creator-detail-copy small{font-size:14px;color:#aaa}.creator-detail-copy strong{font-size:21px;font-weight:600;overflow-wrap:anywhere}.creator-voice-card .creator-detail-icon{display:none}.creator-voice-card .creator-detail-edit{padding-bottom:36px;width:calc(100% - 70px)}.creator-voice-play{position:absolute;right:16px;top:16px;background:linear-gradient(#ff87d2,#ff1aad);height:55px;width:55px;border-radius:50%;font-size:24px;color:#fff}.creator-wave{position:absolute;bottom:0;left:16px;right:16px;display:flex;align-items:flex-end;justify-content:space-between;gap:3px;height:27px;pointer-events:none}.creator-wave i{display:block;background:#888;width:3px;max-height:27px;opacity:.65}.creator-extra-details{margin:18px auto 0;max-width:650px;color:#aaa;font-size:14px}.creator-extra-details summary{cursor:pointer}.creator-extra-details .creator-fields{margin-top:20px}.creator-extra-details textarea{min-height:100px}.creator-detail-dialog{background:#201b23;border:1px solid #514052;border-radius:18px;color:white;width:min(420px,calc(100% - 30px));max-height:85dvh;padding:24px}.creator-detail-dialog::backdrop{background:#000b}.creator-detail-dialog h2{margin:0 0 20px;font-size:22px}.creator-detail-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creator-detail-options label{display:flex;align-items:center;gap:7px;background:#302734;border-radius:9px;padding:12px;font-size:14px}.creator-detail-options input{accent-color:#ef4fa9}.creator-detail-custom{display:grid;gap:10px;margin-top:18px;color:#bfb2c4;font-size:14px}.creator-detail-custom input{width:100%;border:1px solid #514052;border-radius:8px;padding:11px;color:white;background:#151217}.creator-detail-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.creator-detail-dialog footer button{padding:10px 18px;border-radius:20px;background:#403047}.creator-detail-dialog footer button[type=submit]{background:#e84ca6}.creator-detail-error{color:#ff9bb6;font-size:13px}@media(max-width:700px){.creator-details-page .creator-wrap{max-width:350px}.creator-identity-row{grid-template-columns:1fr;gap:20px}.creator-identity-row>label,.creator-identity-row h1{font-size:16px}.creator-name{height:54px;font-size:23px}.creator-age-picker{max-width:290px;margin:auto;height:56px}.creator-age-picker button.selected{height:50px;font-size:28px}.creator-detail-grid{gap:9px}.creator-detail-card{min-height:116px;border-radius:14px}.creator-detail-edit{padding:12px;gap:9px;flex-direction:column;align-items:flex-start}.creator-detail-icon{width:40px;height:40px;border-radius:9px;font-size:27px}.creator-detail-icon.empty{font-size:24px}.creator-detail-copy{gap:5px}.creator-detail-copy small{font-size:12px}.creator-detail-copy strong{font-size:16px}.creator-voice-card .creator-detail-edit{width:100%;padding:14px 8px 32px 12px}.creator-voice-play{width:34px;height:34px;right:10px;top:12px;font-size:16px}.creator-voice-card .creator-detail-copy{max-width:95px;padding-top:40px}.creator-wave{left:12px;right:12px}.creator-details>h2{font-size:18px;margin-top:24px}}

/* Smaller fifth-step profile controls. */
.creator-details-page .creator-wrap{max-width:710px}.creator-identity-row{gap:26px}.creator-identity-row>label{font-size:16px;gap:10px}.creator-identity-row h1{font-size:16px;margin-bottom:10px}.creator-name{height:53px;font-size:23px;padding:10px}.creator-age-picker{height:53px;gap:2px;padding:3px 6px}.creator-age-picker button{font-size:16px}.creator-age-picker button.selected{height:47px;font-size:27px}.creator-details>h2{font-size:17px;margin-top:20px}.creator-details-hint{font-size:12px;margin-bottom:12px}.creator-detail-grid{gap:10px}.creator-detail-card{min-height:94px;border-radius:16px}.creator-detail-edit{padding:13px;gap:13px}.creator-detail-icon{width:62px;height:62px;border-radius:12px;font-size:35px}.creator-detail-icon.empty{font-size:27px}.creator-detail-copy{gap:6px}.creator-detail-copy small{font-size:12px}.creator-detail-copy strong{font-size:18px}.creator-voice-play{height:44px;width:44px;right:13px;top:13px;font-size:19px}.creator-voice-card .creator-detail-edit{padding-bottom:28px;width:calc(100% - 58px)}.creator-wave{height:21px;left:13px;right:13px}.creator-wave i{max-height:21px}.creator-extra-details{font-size:12px;margin-top:14px}.creator-details-page .creator-footer{max-width:390px;margin-top:20px}@media(max-width:700px){.creator-details-page .creator-wrap{max-width:310px}.creator-identity-row{gap:15px}.creator-identity-row>label,.creator-identity-row h1{font-size:14px}.creator-name{height:46px;font-size:20px}.creator-age-picker{max-width:260px;height:48px}.creator-age-picker button.selected{height:42px;font-size:24px}.creator-detail-grid{gap:8px}.creator-detail-card{min-height:100px;border-radius:12px}.creator-detail-edit{padding:10px;gap:7px}.creator-detail-icon{width:34px;height:34px;border-radius:8px;font-size:23px}.creator-detail-icon.empty{font-size:21px}.creator-detail-copy small{font-size:11px}.creator-detail-copy strong{font-size:14px}.creator-voice-play{height:29px;width:29px;font-size:13px;right:9px;top:10px}.creator-voice-card .creator-detail-edit{width:100%;padding:10px 8px 25px 10px}.creator-voice-card .creator-detail-copy{padding-top:31px;max-width:85px}.creator-details>h2{font-size:16px}.creator-details-page .creator-footer{max-width:260px;margin-top:17px}}

/* Keep a single border around the editable generated name. */
.creator-name:focus,.creator-name:focus-visible{outline:none;box-shadow:none;border-color:var(--pink)}

/* Sixth-step review, without the reference's promotional copy. */
.creator-review-page .creator-wrap{max-width:980px}.creator-review-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.creator-review-left{display:grid;gap:12px}.creator-review-preview{border-radius:24px;background:#202020;overflow:hidden;padding:16px}.creator-review-preview>button:first-child{position:relative;display:block;width:100%;padding:0;border-radius:16px;overflow:hidden;aspect-ratio:4/4.4}.creator-review-preview img{display:block;width:100%;height:100%;object-fit:cover}.creator-review-preview>button:first-child>span{position:absolute;right:12px;top:12px;background:#0009;border-radius:50%;padding:7px 11px;font-size:22px}.creator-review-preview .creator-next{width:100%;margin-top:16px;padding:16px}.creator-review-tags{background:linear-gradient(#242424,#101010);border:1px solid #302e30;border-radius:20px;padding:18px}.creator-review-tags header{display:flex;justify-content:space-between;align-items:center;color:#aaa;font-size:14px;margin-bottom:12px}.creator-review-tags header button{font-size:23px;padding:0}.creator-review-tags>div{display:flex;gap:8px;flex-wrap:wrap}.creator-review-tags>div>span,.creator-review-tags>div>button{font-size:13px;padding:9px 13px;border-radius:25px;background:#303030}.creator-review-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid #323032;background:#111;border-radius:40px;padding:4px;margin-bottom:12px}.creator-review-tabs button{font-size:16px;color:#aaa;border-radius:30px;padding:12px}.creator-review-tabs button.selected{color:white;background:#303030}.creator-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.creator-review-card{display:flex;align-items:center;gap:13px;min-width:0;width:100%;text-align:left;padding:13px;border:1px solid #302e30;border-radius:17px;background:linear-gradient(#252525,#101010);min-height:88px}.creator-review-card>img,.creator-review-card>svg,.creator-review-swatch{width:57px;height:57px;border-radius:12px;object-fit:cover;flex-shrink:0;overflow:hidden}.creator-review-card>span:not(.creator-review-swatch){display:grid;gap:6px;min-width:0}.creator-review-card small,.creator-review-text small{color:#999;font-size:12px}.creator-review-card strong{font-size:16px;overflow-wrap:anywhere}.creator-review-text{position:relative;display:grid;gap:9px;text-align:left;padding:16px 35px 16px 16px;width:100%;margin-top:10px;border:1px solid #302e30;border-radius:17px;background:linear-gradient(#252525,#101010)}.creator-review-text>span{color:#b5aeb7;font-size:14px;overflow-wrap:anywhere}.creator-review-text i{position:absolute;right:15px;top:16px;font-style:normal;font-size:22px;color:#999}.creator-review-text+.creator-review-card{margin-top:10px}.creator-review-page .creator-footer{justify-content:flex-start;max-width:none;margin-top:18px}.creator-review-page .creator-footer>.creator-next{display:none}.creator-detail-dialog textarea{font:inherit;background:#151217;color:white;padding:12px;border:1px solid #514052;border-radius:10px;resize:vertical;min-height:110px;width:100%}.creator-review-right .creator-detail-grid{margin-top:10px}.creator-review-right .creator-detail-card{min-height:96px}.creator-review-right .creator-detail-icon{width:45px;height:45px;font-size:28px}.creator-review-right .creator-detail-copy strong{font-size:16px}.creator-review-right .creator-detail-edit{gap:9px;padding:12px}.creator-detail-dialog .creator-portraits{grid-template-columns:repeat(3,1fr)}@media(max-width:700px){.creator-review-page .creator-wrap{max-width:350px}.creator-review-layout{grid-template-columns:1fr;gap:18px}.creator-review-preview{padding:12px;border-radius:19px}.creator-review-preview>button:first-child{aspect-ratio:4/3.7}.creator-review-preview .creator-next{margin-top:12px;padding:13px}.creator-review-card{padding:11px;gap:9px;min-height:77px;border-radius:13px}.creator-review-card>img,.creator-review-card>svg,.creator-review-swatch{width:43px;height:49px;border-radius:9px}.creator-review-card small{font-size:11px}.creator-review-card strong{font-size:14px}.creator-review-grid{gap:8px}.creator-review-tabs button{font-size:14px;padding:10px}.creator-review-tags{padding:14px;border-radius:15px}}

/* Compact final review proportions. */
.creator-review-page .creator-wrap{max-width:800px}.creator-review-layout{gap:16px}.creator-review-preview{padding:12px;border-radius:19px}.creator-review-preview>button:first-child{aspect-ratio:4/4;border-radius:12px}.creator-review-preview .creator-next{margin-top:12px;padding:13px;font-size:15px}.creator-review-tags{padding:14px;border-radius:16px}.creator-review-tags header{font-size:12px;margin-bottom:9px}.creator-review-tags>div>span,.creator-review-tags>div>button{font-size:12px;padding:7px 10px}.creator-review-tabs{margin-bottom:9px;padding:3px}.creator-review-tabs button{font-size:14px;padding:9px}.creator-review-grid{gap:8px}.creator-review-card{min-height:72px;padding:10px;gap:10px;border-radius:13px}.creator-review-card>img,.creator-review-card>svg,.creator-review-swatch{width:45px;height:45px;border-radius:9px}.creator-review-card small,.creator-review-text small{font-size:11px}.creator-review-card strong{font-size:14px}.creator-review-text{padding:12px 30px 12px 12px;margin-top:8px;gap:6px;border-radius:13px}.creator-review-text>span{font-size:12px}.creator-review-text i{font-size:19px;right:11px;top:12px}.creator-review-right .creator-detail-card{min-height:82px}.creator-review-right .creator-detail-icon{width:36px;height:36px;font-size:23px}.creator-review-right .creator-detail-copy strong{font-size:14px}.creator-review-right .creator-detail-edit{padding:10px;gap:8px}@media(max-width:700px){.creator-review-page .creator-wrap{max-width:300px}.creator-review-layout{gap:14px}.creator-review-preview>button:first-child{aspect-ratio:4/3.5}.creator-review-preview .creator-next{padding:11px;font-size:14px}.creator-review-card{padding:9px;gap:8px;min-height:66px}.creator-review-card>img,.creator-review-card>svg,.creator-review-swatch{width:36px;height:40px}.creator-review-card strong{font-size:12px}.creator-review-card small{font-size:10px}.creator-review-tabs button{font-size:13px;padding:8px}.creator-review-right .creator-detail-copy strong{font-size:13px}}

/* Mobile opening step follows the tall, full-width two-card reference. */
@media(max-width:700px){
 .creator-start-page{padding-top:18px}
 .creator-start-page .creator-wrap{max-width:none;width:100%}
 .creator-start-page .creator-steps{max-width:none;width:100%;gap:9px;margin-bottom:24px}
 .creator-start-page .creator-steps svg{width:21px;height:21px}
 .creator-start-page .creator-steps>span{background:#777;height:2px}
 .creator-start-page .creator-steps button:not(.reached){color:#aaa}
 .creator-start-page .creator-wrap h1{font-size:clamp(23px,5.5vw,34px);letter-spacing:-.7px;margin-bottom:24px;white-space:nowrap}
 .creator-start-page .creator-genders{max-width:none;margin-bottom:20px;padding:4px;gap:3px}
 .creator-start-page .creator-genders button{font-size:16px;padding:12px 3px;gap:7px}
 .creator-start-page .creator-genders button span{font-size:21px}
 .creator-start-page .creator-styles{max-width:none;gap:12px}
 .creator-start-page .creator-styles button{aspect-ratio: .45;border-radius:24px}
 .creator-start-page .creator-styles button.selected{border-width:3px}
 .creator-start-page .creator-styles img{object-fit:cover;object-position:center}
 .creator-start-page .creator-styles strong{font-size:27px;bottom:20px}
 .creator-start-page .creator-styles i{width:26px;height:26px;top:14px;right:14px;font-size:19px}
 .creator-start-page .creator-footer{max-width:none;margin-top:22px}
 .creator-start-page .creator-next{font-size:19px;padding:18px}
}

/* Five mobile navigation items with the supplied filled SVG paths. */
@media(max-width:700px){.mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr));justify-content:space-around}.mobile-bottom button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#a6a6aa}.mobile-bottom button.active{color:#fff}.mobile-bottom button>svg{width:24px;height:24px;fill:currentColor;stroke:none;stroke-width:0}}

/* Preserve filled step-icon geometry across global SVG styles. */
.creator-steps svg{fill:currentColor;stroke:none;stroke-width:0;transition:color .3s ease}

@media(max-width:700px){.mobile-bottom button{font-size:14px;line-height:1.3}}

/* Equal visual bounds for step icons with different source viewBox ratios. */
.creator-steps button{width:24px;height:24px;display:grid;place-items:center}
.creator-steps svg{width:20px;height:20px;overflow:visible}
.creator-steps svg[viewBox="0 0 16 16"]{width:24px;height:24px}
.creator-steps svg[viewBox="0 0 576 512"]{width:22px;height:20px}
.creator-steps svg[viewBox="0 0 384 512"]{width:15px;height:20px}
@media(max-width:700px){
 .creator-steps button{width:22px;height:22px}
 .creator-steps svg,.creator-start-page .creator-steps svg{width:18px;height:18px}
 .creator-steps svg[viewBox="0 0 16 16"]{width:22px;height:22px}
 .creator-steps svg[viewBox="0 0 576 512"]{width:20px;height:18px}
 .creator-steps svg[viewBox="0 0 384 512"]{width:13.5px;height:18px}
}

/* Paired twinkles around the opening action. */
.creator-start-page .creator-next{display:flex;align-items:center;justify-content:center;gap:12px}
.creator-start-page .creator-next::before,.creator-start-page .creator-next::after{content:'✦';display:inline-block;color:#fff;font-size:19px;line-height:1;animation:creator-twinkle 1.8s ease-in-out infinite;pointer-events:none}
.creator-start-page .creator-next::after{animation-delay:.9s;font-size:15px}
@keyframes creator-twinkle{0%,100%{opacity:.35;transform:scale(.7) rotate(-10deg)}50%{opacity:1;transform:scale(1.15) rotate(10deg)}}
@media(prefers-reduced-motion:reduce){.creator-start-page .creator-next::before,.creator-start-page .creator-next::after{animation:none;opacity:1;transform:none}}

/* One progress-strip layout for every creation step. */
.create-page .creator-steps{width:100%;max-width:440px;gap:12px;margin:0 auto 24px}
.create-page .creator-steps button{width:24px;height:24px;color:#aaa}
.create-page .creator-steps button.reached{color:var(--pink)}
.create-page .creator-steps>span{height:2px;background:#777}
.create-page .creator-steps>span.complete{background:var(--pink)}
@media(max-width:700px){
 .create-page .creator-steps{position:relative;left:50%;transform:translateX(-50%);width:calc(100vw - 36px);max-width:none;gap:9px;margin:0 0 24px}
 .create-page .creator-steps button{width:22px;height:22px}
}

@media(max-width:700px){.creator-ethnicity-page .creator-ethnicities{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.creator-ethnicity-page .creator-ethnicities strong{font-size:11px;left:2px;right:2px}.creator-ethnicity-page .creator-ethnicities i{width:15px;height:15px;top:5px;right:5px;font-size:11px}}

@media(max-width:700px){.creator-ethnicity-page .creator-wrap{max-width:none;width:100%}.creator-ethnicity-page .creator-ethnicities{width:100%}}

@media(max-width:700px){.creator-ethnicity-page .creator-ethnicities{gap:5px}.creator-ethnicity-page .creator-ethnicities button{height:110px;min-height:110px;aspect-ratio:auto}}

@media(max-width:700px){.creator-hair-page .creator-wrap{max-width:none;width:100%}.creator-hair-page .creator-ethnicities{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.creator-hair-page .creator-ethnicities button{height:110px;min-height:110px;aspect-ratio:auto}.creator-hair-page .creator-ethnicities strong{font-size:11px;left:2px;right:2px}.creator-hair-page .creator-ethnicities i{width:15px;height:15px;top:5px;right:5px;font-size:11px}}

/* Mobile eye/hair colors form individual horizontal swipe rails. */
@media(max-width:700px){.creator-hair-page .creator-color-palette{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:16px;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:8px 7px;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.creator-hair-page .creator-color-palette::-webkit-scrollbar{display:none}.creator-hair-page .creator-color-palette button{flex:0 0 40px;width:40px;height:40px;scroll-snap-align:center}}

@media(max-width:700px){.creator-ethnicity-page .creator-ethnicities button,.creator-hair-page .creator-ethnicities button{height:130px;min-height:130px}}

/* Mobile body selectors: centered, enlarged active card with swipe snapping. */
@media(max-width:700px){
 .creator-body-page .creator-wrap{width:100%;max-width:none}
 .creator-body-page .creator-body-options{display:flex;flex-wrap:nowrap;gap:9px;width:100%;overflow-x:auto;overflow-y:hidden;padding:18px calc(50% - 55px);scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .creator-body-page .creator-body-options::-webkit-scrollbar{display:none}
 .creator-body-page .creator-body-options>button{flex:0 0 110px;width:110px;height:154px;min-height:154px;aspect-ratio:auto;scroll-snap-align:center;border-radius:11px;transform:scale(.92);transition:transform .2s,border-color .2s;opacity:.8}
 .creator-body-page .creator-body-options>button.selected{transform:scale(1.1);opacity:1;z-index:1;border-radius:14px;border-width:2px;box-shadow:none}
 .creator-body-page .creator-body-options strong{font-size:13px;bottom:9px}
 .creator-body-page .creator-body-options i{width:18px;height:18px;font-size:13px;top:7px;right:7px}
 .creator-body-page .creator-body .creator-trait-title{margin:12px 0 0;font-size:17px}
 .creator-body-page .creator-body .creator-trait-title:not(:first-child){margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.creator-body-page .creator-body-options>button{transition:none}}

.creator-detail-icon svg{width:72%;height:72%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){
 .creator-details-page .creator-wrap{max-width:none;width:100%}
 .creator-details-page .creator-detail-grid{gap:9px}
 .creator-details-page .creator-detail-card{height:83px;min-height:83px;border-radius:17px}
 .creator-details-page .creator-detail-edit{flex-direction:row;align-items:center;gap:11px;padding:13px}
 .creator-details-page .creator-detail-icon{width:43px;height:43px;border-radius:12px;flex:0 0 43px}
 .creator-details-page .creator-detail-copy{gap:5px;min-width:0}
 .creator-details-page .creator-detail-copy small{font-size:13px}
 .creator-details-page .creator-detail-copy strong{font-size:15px;line-height:1.2}
 .creator-details-page .creator-voice-play{width:43px;height:43px;left:13px;right:auto;top:19px;font-size:19px;z-index:2}
 .creator-details-page .creator-voice-card .creator-detail-edit{width:100%;padding:13px 8px 13px 67px;align-items:center}
 .creator-details-page .creator-voice-card .creator-detail-copy{padding-top:0;max-width:calc(100% - 30px);position:relative;z-index:1}
 .creator-details-page .creator-wave{left:auto;right:10px;bottom:0;width:45px;height:40px;gap:3px;opacity:.65;overflow:hidden}
 .creator-details-page .creator-wave i{flex:0 0 3px;max-height:40px}
 .creator-details-page .creator-wave i:nth-child(n+10){display:none}
}
@media(max-width:360px){.creator-details-page .creator-detail-edit{gap:8px;padding:10px}.creator-details-page .creator-detail-icon{width:36px;height:36px;flex-basis:36px}.creator-details-page .creator-detail-copy strong{font-size:14px}.creator-details-page .creator-detail-copy small{font-size:12px}.creator-details-page .creator-voice-play{width:36px;height:36px;left:10px;top:23px}.creator-details-page .creator-voice-card .creator-detail-edit{padding-left:54px}.creator-details-page .creator-wave{width:27px}}

@media(max-width:700px){.creator-review-page .creator-wrap{max-width:none;width:100%}}

/* Final image preparation and download, without an edit overlay. */
.creator-output-frame{display:grid;place-items:center;aspect-ratio:1;background:radial-gradient(ellipse at 50% 40%,#35303a,#171519);border-radius:13px;overflow:hidden;width:100%}.creator-output-frame>img{width:100%;height:100%;object-fit:cover;display:block}.creator-output-placeholder{font-size:78px;color:#776778;animation:creator-output-pulse 1.5s ease-in-out infinite}.creator-output-progress{padding:14px 2px 0}.creator-output-caption{display:flex;justify-content:space-between;gap:10px;color:#c7bac9;font-size:12px}.creator-output-progress progress{appearance:none;-webkit-appearance:none;width:100%;height:5px;border:0;border-radius:9px;overflow:hidden;background:#3b303e;display:block;margin-top:9px}.creator-output-progress progress::-webkit-progress-bar{background:#3b303e;border-radius:9px}.creator-output-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#ff9ad9,#f32ba8);border-radius:9px;transition:width .3s}.creator-output-progress progress::-moz-progress-bar{background:#ed4eac}.creator-output-progress p{color:#a195a4;font-size:12px;line-height:1.5;margin:9px 0 0}.creator-review-preview .creator-next:disabled{opacity:.45;cursor:wait}.creator-review-preview .creator-next{display:block}.creator-review-page .creator-footer>.creator-next{display:none}@keyframes creator-output-pulse{50%{opacity:.4;transform:scale(.9)}}@media(prefers-reduced-motion:reduce){.creator-output-placeholder{animation:none}.creator-output-progress progress::-webkit-progress-value{transition:none}}

/* App handoff keeps the final preview empty in every state. */
.creator-output-frame{aspect-ratio:1;background:#202020}
.creator-review-marker{width:45px;height:45px;flex:0 0 45px;border-radius:9px;background:#342a37;color:#b897b6;display:grid!important;place-items:center;font-size:25px}

/* Dotted-heart preparation view; download action appears only on completion. */
.creator-review-preview:has(.creator-particle-frame){padding:0;background:transparent;border-radius:20px}
.creator-output-frame.creator-particle-frame{position:relative;display:block;aspect-ratio:4/5;background:#232323;border-radius:22px;overflow:hidden}
.creator-particle-caption{position:absolute;z-index:2;left:18px;right:18px;top:18px;display:grid;gap:5px;text-align:left}
.creator-particle-caption strong{font-size:14px;font-weight:500;color:#fff}
.creator-particle-caption>span{font-size:12px;line-height:1.5;color:#999}
.creator-particle-heart{display:block;width:100%;height:100%;color:#c6c6c6;fill:currentColor;stroke:none;stroke-width:0;animation:creator-heart-breathe 2.2s ease-in-out infinite}
.creator-particle-frame.is-ready .creator-particle-heart{animation:none;opacity:.85}
.creator-particle-frame .creator-frame-progress{position:absolute;left:0;bottom:0;display:block;appearance:none;-webkit-appearance:none;width:100%;height:3px;border:0;background:transparent;margin:0;border-radius:4px;overflow:hidden}
.creator-frame-progress::-webkit-progress-bar{background:transparent}
.creator-frame-progress::-webkit-progress-value{background:#f34ca8;border-radius:4px;box-shadow:0 0 13px #ff4eb0;transition:width .5s ease}
.creator-frame-progress::-moz-progress-bar{background:#f34ca8;border-radius:4px}
.creator-review-preview:has(.creator-particle-frame)>.creator-next{width:100%;margin-top:14px}
@keyframes creator-heart-breathe{0%,100%{opacity:.5;transform:scale(.98)}50%{opacity:1;transform:scale(1.015)}}
@media(max-width:700px){.creator-particle-caption{top:16px;left:16px;right:16px}.creator-particle-caption strong{font-size:14px}.creator-particle-caption>span{font-size:12px}.creator-output-frame.creator-particle-frame{border-radius:22px}}
@media(prefers-reduced-motion:reduce){.creator-particle-heart{animation:none}.creator-frame-progress::-webkit-progress-value{transition:none}}

/* Generator uses the same preparation effect; no credit cost or point count. */
.gen-preparation-shell{width:min(380px,100%);padding:14px;margin:auto}.gen-preparation-shell .creator-particle-frame{border-radius:20px}.gen-app-download{display:block;text-align:center;margin-top:14px;border-radius:35px;padding:15px;background:linear-gradient(165deg,#ff9cdc,#ff22ae);font-size:17px;font-weight:600;color:#fff}.gen-app-download[hidden]{display:none!important}

/* Explore character details slide up as a mobile sheet. */
.character-profile-handle{display:none}.character-profile-dialog .profile-copy{overflow-wrap:anywhere}
body:has(dialog.character-profile-dialog[open]){overflow:hidden}
@media(max-width:700px){
 dialog.character-profile-dialog{position:fixed;inset:auto 0 0;top:auto;margin:0;width:100%;max-width:none;height:92dvh;max-height:92dvh;padding:0;border:1px solid #323232;border-bottom:0;border-radius:28px 28px 0 0;background:#111;overflow:hidden}
 .character-profile-dialog[open]{animation:character-profile-rise .3s cubic-bezier(.2,.75,.25,1)}
 .character-profile-dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
 .character-profile-sheet{height:100%;display:flex;flex-direction:column}
 .character-profile-handle{display:flex;align-items:flex-start;justify-content:center;flex:0 0 58px;padding-top:12px;touch-action:none}
 .character-profile-handle>span{width:34px;height:4px;background:#666;border-radius:99px}
 .character-profile-dialog #closeModal{left:16px;right:auto;top:13px;width:36px;height:36px;display:grid;place-items:center;background:#050505;border-radius:50%;font-size:26px;z-index:3}
 .character-profile-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 18px max(20px,env(safe-area-inset-bottom));scrollbar-width:none}
 .character-profile-scroll::-webkit-scrollbar{display:none}
 .character-profile-dialog .profile-image{width:82%;height:auto;aspect-ratio:3/4;max-height:56dvh;object-fit:cover;object-position:center 25%;border-radius:15px;margin:0 auto;display:block}
 .character-profile-dialog .profile-copy{padding:18px 0 24px}
 .character-profile-dialog .profile-copy h2{font-size:24px;text-align:center;line-height:1.3}
 .character-profile-dialog .profile-copy h2>span{font-size:15px}
 .character-profile-dialog .profile-copy p{font-size:14px;line-height:1.65}
 .character-profile-dialog .profile-tags{justify-content:center}
 .character-profile-dialog .profile-copy .primary{border-radius:28px;padding:15px;font-size:16px;background:#fff;color:#111}
}
@keyframes character-profile-rise{from{transform:translateY(100%);opacity:.65}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.character-profile-dialog[open]{animation:none}}

.creator-detail-icon>img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.creator-detail-icon:has(>img){overflow:hidden}
.creator-genders button>span>img{width:23px;height:23px;border-radius:50%;object-fit:cover;display:block}

/* Uploaded videos keep the same geometry as still-image cards. */
.character-card>video{position:absolute;width:100%;height:100%;inset:0;object-fit:cover}
.library-character>video{width:100%;height:100%;object-fit:cover}
video.profile-image{display:block;width:100%;object-fit:cover}
.gen-preset>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gen-example>video{width:100%;height:100%;object-fit:cover;display:block}
.preset-sheet .gen-picker video{width:100%;height:100%;object-fit:cover;display:block}
.gen-upload>video{width:100%;max-height:180px;object-fit:contain;display:block}
.creator-styles video,.creator-ethnicities video{width:100%;height:100%;object-fit:cover;display:block}
.creator-detail-icon>video{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.creator-genders button>span>video{width:23px;height:23px;border-radius:50%;object-fit:cover;display:block}

/* Voice equalizer: staggered idle motion, stronger movement during preview. */
.creator-wave i{transform-origin:center bottom;animation:creator-voice-level var(--wave-duration,950ms) ease-in-out var(--wave-delay,0ms) infinite;will-change:transform}
.creator-voice-card.is-playing .creator-wave i{animation-name:creator-voice-playing;animation-duration:450ms;background:#c9c5ca;opacity:1}
@keyframes creator-voice-level{0%,100%{transform:scaleY(.4)}45%{transform:scaleY(1)}75%{transform:scaleY(.6)}}
@keyframes creator-voice-playing{0%,100%{transform:scaleY(.2)}50%{transform:scaleY(1.3)}}
@media(prefers-reduced-motion:reduce){.creator-wave i,.creator-voice-card.is-playing .creator-wave i{animation:none;will-change:auto}}

.creator-detail-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(640px,100%);max-width:100%;max-height:88dvh;border:1px solid #393539;border-bottom:0;border-radius:26px 26px 0 0;padding:12px 22px max(22px,env(safe-area-inset-bottom));background:#222;overscroll-behavior:contain}
.creator-detail-sheet[open]{animation:creator-sheet-enter .28s cubic-bezier(.2,.75,.25,1)}
.creator-sheet-handle{display:block;width:42px;height:4px;margin:0 auto 18px;background:#696569;border-radius:10px}
.creator-detail-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.creator-detail-sheet header h2{margin:0}.creator-detail-sheet header button{font-size:28px;color:#bbb;padding:0 4px}
.creator-detail-sheet .creator-detail-options>label{background:#303030;border:1px solid #474147;border-radius:12px;padding:16px}.creator-detail-sheet .creator-detail-options>label:has(input:checked){border-color:#ef419e;background:#3b2935}
.creator-detail-sheet .creator-voice-options{display:flex;flex-direction:column;gap:12px}
.creator-voice-option{display:flex;align-items:center;gap:18px;border:2px solid transparent;border-radius:24px;background:#2e2e2e;padding:10px;min-height:86px}
.creator-voice-option.selected{border-color:#ef419e}.creator-voice-option>button{flex:0 0 62px;height:62px;border-radius:13px;background:#252525;font-size:25px;color:#bcbcbc}.creator-voice-option.selected>button{background:#ee439f;color:white}
.creator-detail-sheet .creator-voice-option>label{display:flex;flex:1;align-items:center;gap:12px;padding:0;background:none;min-width:0;font-size:18px;font-weight:600;cursor:pointer}
.creator-voice-option input{position:absolute;width:1px;height:1px;opacity:0}.creator-voice-option:has(input:focus-visible){outline:2px solid white;outline-offset:2px}.creator-voice-option>label>span:first-of-type{overflow-wrap:anywhere}
.creator-voice-option-wave{display:flex;align-items:center;justify-content:center;gap:2px;margin-left:auto;flex:0 0 135px;height:44px;pointer-events:none}.creator-voice-option-wave i{display:block;flex:0 0 3px;border-radius:2px;background:#eee;transform-origin:center}
.creator-voice-option.is-playing .creator-voice-option-wave i{animation:creator-voice-level .55s ease-in-out var(--wave-delay) infinite}
@keyframes creator-sheet-enter{from{transform:translateY(100%);opacity:.6}to{transform:translateY(0);opacity:1}}
@media(max-width:480px){.creator-detail-sheet{padding-left:14px;padding-right:14px}.creator-voice-option{gap:12px;min-height:75px;border-radius:20px}.creator-voice-option>button{height:50px;flex-basis:50px}.creator-detail-sheet .creator-voice-option>label{font-size:16px}.creator-voice-option-wave{flex-basis:106px;gap:1px}.creator-voice-option-wave i{flex-basis:3px}}
@media(prefers-reduced-motion:reduce){.creator-detail-sheet[open],.creator-voice-option.is-playing .creator-voice-option-wave i{animation:none}}
/* Character conversation */
body.in-conversation .topbar,body.in-conversation .mobile-bottom,body.in-conversation main> :not(#conversationPage){display:none!important}body.in-conversation main{padding:0;max-width:none}body.in-conversation .workspace{height:100dvh}body.in-conversation .nav-item[data-page=chat]{color:var(--pink);background:#30202b}
.conversation-page{height:100dvh;background:#141313}.conversation-shell{height:100%;max-width:1000px;margin:auto;position:relative;isolation:isolate;display:flex;flex-direction:column;overflow:hidden}.conversation-backdrop{position:absolute;inset:0;z-index:-2;opacity:0;transition:opacity .2s;pointer-events:none}.has-scene .conversation-backdrop{opacity:.19}.conversation-scene{height:100%;width:100%;object-fit:cover}.conversation-backdrop::after{content:'';position:absolute;inset:0;background:linear-gradient(#17151544,#16131288 55%,#131212)}
.conversation-header{min-height:78px;display:flex;align-items:center;gap:13px;padding:12px 22px;background:#242323d9;border-bottom:1px solid #ffffff09;backdrop-filter:blur(18px)}.conversation-header button{width:32px;height:36px;display:grid;place-items:center;padding:0;flex-shrink:0}.conversation-header strong{font-size:19px;font-weight:600;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-avatar{width:43px;height:43px;border-radius:50%;overflow:hidden;flex-shrink:0;border:1px solid #73665c}.conversation-avatar img,.conversation-avatar video{width:100%;height:100%;object-fit:cover}.conversation-settings{padding:14px 24px;background:#292329;display:flex;align-items:center;gap:22px;font-size:13px}.conversation-settings span{color:#b8a5b2}.conversation-settings input{accent-color:#ec4ca8}
.conversation-messages{flex:1;overflow:auto;min-height:0;padding:32px clamp(20px,5vw,65px) 14px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#65515e transparent}.conversation-message{max-width:88%;margin:0 0 24px;display:flex;flex-direction:column;align-items:flex-start}.conversation-bubble{background:#252424;border-radius:24px;padding:23px 26px;font-size:18px;line-height:1.85;overflow-wrap:anywhere;white-space:normal}.conversation-bubble em{color:#e8b6d0}.conversation-message.from-user{margin-left:auto;align-items:flex-end;max-width:78%}.from-user .conversation-bubble{background:#673e58;color:#fff1fa;border-bottom-right-radius:7px}.from-character .conversation-bubble{border-bottom-left-radius:7px}.conversation-message-actions{display:flex;gap:13px;padding:12px 12px 0;color:#d5d1d4}.conversation-message-actions button{display:grid;place-items:center;width:26px;height:28px;padding:0}.conversation-message-actions svg{width:19px;height:19px}.conversation-message-actions button:disabled{opacity:.3;cursor:wait}.large-text .conversation-bubble{font-size:22px}
.conversation-compose{padding:10px clamp(18px,4vw,45px) max(14px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#141212cc 35%)}.conversation-suggestion{display:flex;align-items:center;justify-content:space-between;width:100%;background:linear-gradient(110deg,#754361,#563046);box-shadow:inset 0 0 8px #d4a1bc25;border:1px solid #8c5576;border-radius:17px;text-align:left;padding:14px 18px;color:#f3c5df;margin-bottom:12px}.conversation-suggestion small{display:block;color:#f3a5cf;font-size:12px;margin-bottom:5px}.conversation-suggestion strong{font-size:15px;font-weight:500}.conversation-suggestion svg{color:white;width:21px;margin-left:12px}.conversation-form{border:1px solid #413b3f;background:#232222f5;border-radius:29px;padding:18px 15px 13px}.conversation-form textarea{width:100%;resize:none;display:block;background:transparent;border:0;outline:0;color:#f2edf0;font:inherit;font-size:18px;line-height:1.45;padding:0 8px;max-height:150px}.conversation-form textarea::placeholder{color:#aaa2a8}.conversation-tools{display:flex;align-items:center;gap:10px;margin-top:12px}.conversation-mode{height:40px;border-radius:24px;background:#333;display:flex;align-items:center;gap:7px;padding:0 14px;font-size:12px;color:#bfb5bc}.conversation-mode svg{width:17px;height:17px}.conversation-scene-toggle{display:flex;align-items:center;gap:8px;background:#fff;color:#171517;border-radius:25px;padding:11px 17px;font-size:13px;font-weight:600}.conversation-scene-toggle svg{width:18px;height:18px}.conversation-send{margin-left:auto;display:grid;place-items:center;border-radius:50%;background:#ed4ea9;width:43px;height:43px}.conversation-send:disabled{opacity:.4;cursor:wait}.conversation-disclosure{display:block;text-align:center;font-size:10px;color:#978891;margin-top:9px}.conversation-error{color:#f5adc8;font-size:13px;line-height:1.6;margin-bottom:8px}.conversation-error:empty{display:none}.conversation-thinking{display:flex;gap:7px;padding:18px 24px;border-radius:22px;background:#292529;width:fit-content;margin-bottom:16px}.conversation-thinking i{width:7px;height:7px;background:#e5a6ca;border-radius:50%;animation:chat-thinking 1s infinite alternate}.conversation-thinking i:nth-child(2){animation-delay:.2s}.conversation-thinking i:nth-child(3){animation-delay:.4s}@keyframes chat-thinking{to{opacity:.3;transform:translateY(-4px)}}
@media(max-width:700px){body.in-conversation .sidebar{display:none}body.in-conversation .workspace{margin:0}.conversation-header{min-height:68px;padding:10px 14px;gap:10px}.conversation-header strong{font-size:17px}.conversation-header button{width:27px}.conversation-avatar{width:37px;height:37px}.conversation-messages{padding:22px 19px 8px}.conversation-message{max-width:93%}.conversation-bubble{padding:19px 20px;font-size:17px;line-height:1.85;border-radius:24px}.conversation-compose{padding:10px 15px max(12px,env(safe-area-inset-bottom))}.conversation-suggestion{padding:12px 16px}.conversation-form{padding:16px 12px 12px;border-radius:27px}.conversation-form textarea{font-size:17px}.conversation-settings{align-items:flex-start;flex-direction:column;gap:8px}.large-text .conversation-bubble{font-size:20px}}
@media(prefers-reduced-motion:reduce){.conversation-thinking i{animation:none}}

.chat-download-dialog{width:min(390px,calc(100% - 36px));max-height:90dvh;padding:35px 27px 28px;border:1px solid #674358;border-radius:26px;background:radial-gradient(ellipse at top,#4b263e,#201b22 65%);color:#fff;text-align:center;box-shadow:0 20px 90px #0009}.chat-download-dialog::backdrop{background:#000b;backdrop-filter:blur(7px)}.chat-download-close{position:absolute;right:14px;top:10px;color:#c6b7c1;font-size:27px}.chat-download-symbol{width:66px;height:66px;margin:0 auto 22px;background:linear-gradient(130deg,#fb8fd4,#ed26a0);border-radius:20px;font-size:42px;display:grid;place-items:center;box-shadow:0 8px 35px #e946a83b}.chat-download-dialog h2{font-size:25px;margin:0 0 12px}.chat-download-dialog p{font-size:22px;color:#ff9ed8;margin:0 0 16px;font-weight:700}.chat-download-dialog small{display:block;font-size:13px;color:#b7a5b1;line-height:1.8}.chat-download-button{display:block;background:linear-gradient(110deg,#ff90d6,#fa25aa);padding:16px;border-radius:30px;margin-top:25px;color:white;font-size:17px;font-weight:700}.chat-download-dialog[open]{animation:chat-download-in .2s ease-out}@keyframes chat-download-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.chat-download-dialog[open]{animation:none}}
/* Mobile brand and Arabic right-to-left layout. */
.mobile-logo{display:none}
@media(max-width:700px){.topbar{gap:10px;padding-inline:16px}.topbar .mobile-menu{margin:0}.mobile-logo{display:inline-flex;align-items:baseline;font-size:23px;font-weight:800;letter-spacing:-1.1px;white-space:nowrap;flex-shrink:0}.mobile-logo span{color:var(--pink)}.topbar .header-actions{margin-inline-start:auto;gap:10px}.topbar .login{display:none}.topbar .join{padding:9px 12px;font-size:11px}.topbar .header-language{gap:4px}.topbar .header-language svg{width:16px;height:16px}.topbar .join span{margin:0 0 0 4px}}
@media(max-width:360px){.topbar{padding-inline:10px;gap:7px}.mobile-logo{font-size:21px}.topbar .header-actions{gap:7px}.topbar .join{padding:8px 9px}.topbar .join>span{display:none}}
html[dir=rtl]{font-family:Tahoma,Arial,sans-serif}html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] .mobile-logo,html[dir=rtl] .logo{letter-spacing:0}html[dir=rtl] .logo{direction:ltr;justify-content:flex-end}html[dir=rtl] .sidebar{left:auto;right:0;border-right:0;border-left:1px solid #242224}html[dir=rtl] .workspace{margin-left:0;margin-right:222px}html[dir=rtl] .nav-item{text-align:right}html[dir=rtl] .nav-count,html[dir=rtl] .mini-badge,html[dir=rtl] .spark{margin-left:0;margin-right:auto}html[dir=rtl] .utility>span:last-child{margin-left:0;margin-right:auto}html[dir=rtl] .character-card,html[dir=rtl] .profile-copy,html[dir=rtl] .conversation-bubble{text-align:right}html[dir=rtl] .conversation-header strong{unicode-bidi:plaintext}html[dir=rtl] .conversation-header [data-chat-back] svg{transform:rotate(180deg)}html[dir=rtl] .conversation-message.from-user{margin-left:0;margin-right:auto}html[dir=rtl] .conversation-message-actions{direction:rtl}html[dir=rtl] .conversation-suggestion{text-align:right}html[dir=rtl] .conversation-send{margin-left:0;margin-right:auto}html[dir=rtl] .conversation-voice-option-wave{margin-left:0;margin-right:auto}html[dir=rtl] .creator-voice-option-wave{margin-left:0;margin-right:auto}html[dir=rtl] .creator-detail-copy{text-align:right}html[dir=rtl] .creator-detail-options label{direction:rtl}html[dir=rtl] .creator-age-picker{direction:ltr}html[dir=rtl] .creator-review-card{text-align:right}html[dir=rtl] input[type=url],html[dir=rtl] input[type=email]{direction:ltr}html[dir=rtl] [data-user-content]{unicode-bidi:plaintext}html[dir=rtl] .conversation-form textarea{direction:rtl;text-align:start}html[dir=rtl] .preset-sheet-head,html[dir=rtl] .gen-preset{text-align:right}html[dir=rtl] .creator-start-page h1{line-height:1.5}html[dir=rtl] .creator-progress{direction:rtl}
@media(max-width:700px){html[dir=rtl] .workspace{margin:0}html[dir=rtl] .sidebar{transform:translateX(100%)}html[dir=rtl] .sidebar.open{transform:translateX(0)}html[dir=rtl] .header-actions{margin-left:0;margin-right:auto}html[dir=rtl] .creator-detail-edit{direction:rtl}html[dir=rtl] .creator-voice-card .creator-detail-edit{padding-left:12px;padding-right:74px}html[dir=rtl] .creator-details-page .creator-voice-play{left:auto;right:13px}html[dir=rtl] .creator-details-page .creator-wave{right:auto;left:10px}}
/* Arabic Explore: logical controls and readable mobile filter rows. */
html:lang(ar) .explore-head{text-align:start}html:lang(ar) .explore-head h1{line-height:1.5;letter-spacing:0}html:lang(ar) .explore-head p{line-height:1.8}
html:lang(ar) .search-row .filter-pill select{padding-inline:14px 32px;text-align:start;direction:rtl}html:lang(ar) .search-row .filter-pill>span{right:auto;left:13px}html:lang(ar) .search-box input{text-align:start;direction:rtl}html:lang(ar) .search-box kbd{direction:ltr}
html:lang(ar) .result-tabs button{white-space:nowrap}html:lang(ar) .sort-control select{direction:rtl;text-align:start}html:lang(ar) .card-title-row h2{min-width:0;flex:1;text-align:start;unicode-bidi:isolate}html:lang(ar) .card-title-row .age{flex-shrink:0;margin-left:0;margin-inline-start:3px;unicode-bidi:isolate}html:lang(ar) .card-description,html:lang(ar) .card-tagline{text-align:start;unicode-bidi:plaintext}
@media(max-width:700px){html:lang(ar) .search-row{flex-direction:column;gap:9px}html:lang(ar) .search-row .search-box{width:100%;height:44px;flex:auto;min-height:44px}html:lang(ar) .search-row .search-box input{font-size:13px}html:lang(ar) .search-row .search-selects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}html:lang(ar) .search-row .filter-pill{height:42px;width:100%}html:lang(ar) .search-row .filter-pill select,html:lang(ar) .search-row .filter-pill:first-child select{width:100%;padding-inline:12px 27px;font-size:12px}html:lang(ar) .search-row .filter-pill>span{left:12px}html:lang(ar) .category-row{margin-top:15px;gap:8px}html:lang(ar) .chip{font-size:12px;line-height:1.6;padding:8px 12px}html:lang(ar) .results-bar{align-items:stretch;flex-direction:column;gap:13px}html:lang(ar) .result-tabs{justify-content:space-between;gap:10px;width:100%}html:lang(ar) .result-tabs button{font-size:12px;line-height:1.6}html:lang(ar) .sort-control{justify-content:space-between;width:100%;gap:10px}html:lang(ar) .sort-control>#resultCount{display:block;font-size:11px}html:lang(ar) .sort-control select{max-width:145px;font-size:12px}html:lang(ar) .card-description{font-size:10px;line-height:1.65}html:lang(ar) .card-title-row h2{font-size:16px}}
@media(min-width:701px) and (max-width:1200px){html[dir=rtl] .workspace{margin-right:205px;margin-left:0}}
@media(min-width:701px) and (max-width:980px){html[dir=rtl] .workspace{margin-right:190px;margin-left:0}}
@media(max-width:700px){html[dir=rtl] .sidebar:not(.open){visibility:hidden;pointer-events:none}html[dir=rtl] .sidebar.open{visibility:visible;pointer-events:auto}}
/* Arabic bottom navigation: equal columns keep labels inside narrow screens. */
@media(max-width:700px){html:lang(ar) .mobile-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;direction:rtl;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}html:lang(ar) .mobile-bottom button{width:100%;max-width:100%;min-width:0;padding:0 2px;font-family:Tahoma,Arial,sans-serif;font-size:clamp(11px,3.15vw,14px);line-height:1.7;white-space:nowrap;letter-spacing:0;gap:5px}html:lang(ar) .mobile-bottom button>svg{width:24px;height:24px;flex-shrink:0}}
/* Keep translated My AI tabs from widening the RTL page and fixed navigation. */
html:lang(ar) .workspace,html:lang(ar) main,html:lang(ar) .myai-page{min-width:0}html:lang(ar) .myai-search{min-width:0}html:lang(ar) .myai-tabs{min-width:0}html:lang(ar) .myai-filters{right:auto;left:0;white-space:nowrap}html:lang(ar) .library-character>span{text-align:start;unicode-bidi:plaintext}html:lang(ar) .library-add{padding:12px;text-align:center;overflow-wrap:anywhere}
@media(max-width:700px){html:lang(ar) body{overflow-x:clip}html:lang(ar) .myai-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start;max-width:100%}html:lang(ar) .myai-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;max-width:100%}html:lang(ar) .myai-tabs button{min-width:0;max-width:100%;padding:10px 5px;font-size:12px;line-height:1.55;white-space:normal;overflow-wrap:break-word;min-height:48px;display:grid;place-items:center}html:lang(ar) .myai-filters{position:static;justify-self:end;max-width:100%;padding:10px 14px;gap:7px;font-size:12px;line-height:1.5}html:lang(ar) .myai-filters svg{display:block;width:16px;height:16px;flex-shrink:0}html:lang(ar) .library-characters{width:100%;min-width:0;margin-top:22px}html:lang(ar) .library-character,html:lang(ar) .library-add{min-width:0}html:lang(ar) .library-character>span{font-size:16px;padding-inline:12px}html:lang(ar) .mobile-bottom{width:100%;max-width:100%;box-sizing:border-box}}
@media(min-width:701px){html:lang(ar) .myai-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px}html:lang(ar) .myai-tabs{overflow-x:auto;scrollbar-width:none}html:lang(ar) .myai-filters{position:static;flex-shrink:0}}
