.native-topbar{display:none}
html.studio-installed{--studio-top-inset:env(safe-area-inset-top,0px);--studio-bottom-inset:env(safe-area-inset-bottom,0px)}
html.studio-installed.studio-android-wrapper{--studio-top-inset:0px;--studio-bottom-inset:0px}
html.studio-drawer-open{overflow:hidden}
.front-home,.studio-installed body:not(.admin-workspace):not(.admin-login){
    color-scheme:dark;
    --canvas:#080d18;--surface:#121a2c;--ink:#f1f4fc;--muted:#abb7d1;--line:#283550;
    --tint:#263256;--accent:#ff8293;--accent-strong:#ffa9b3;--danger:#ff9eaa;--shadow:0 16px 34px #0005;
    background:radial-gradient(ellipse at 75% 6%,#101b34 0%,transparent 54%),var(--canvas);
}
html .catalog-mode.front-home,html[data-theme=dark] .catalog-mode.front-home,
html.studio-installed body.catalog-mode:not(.admin-workspace):not(.admin-login){background-color:#080d18;--canvas:#080d18;--surface:#121a2c}
.front-home .home-topbar{background:#090f1e;border-color:#24304a}
.front-home .home-topbar .mark,.studio-installed .primary{background:#c52640;border-color:#c52640;color:#fff}
.studio-installed .primary:hover{background:#ad1b33}
.front-home #content{max-width:1510px}
.front-home .home-footer{background:#101829}
.studio-installed .catalog-activity{display:none}
.front-home .home-slide::after,.studio-installed .home-slide::after{background:linear-gradient(90deg,#070a14 0%,#0d1527cc 42%,#0a132315 85%)}
.front-home .home-slide{min-height:370px}
.front-home .home-slide h1,.studio-installed .home-slide h1{letter-spacing:-.038em}
.front-home .home-slide-cover,.studio-installed .home-slide-cover{object-position:center 51%}
.active-category{margin-bottom:12px}.active-category h3{font-size:.9rem;margin:0 0 7px;color:var(--muted)}
.front-home .catalog-shelf,.studio-installed .catalog-shelf{border-top:1px solid var(--line);padding-top:15px;margin-top:21px}
.front-home .shelf-heading h2,.studio-installed .shelf-heading h2{padding-left:10px;border-left:3px solid #da3852}
.front-home .poster-card,.studio-installed .poster-card{background:#121a2c;border-color:#2d3955}
.front-home .poster-card:hover,.studio-installed .poster-card:hover{border-color:#e54964}
.front-home .poster-art,.studio-installed .poster-art{aspect-ratio:3/4}
.front-home .poster-info,.studio-installed .poster-info{padding:9px 8px 10px}.poster-info small{font-size:.72rem}
.catalog-shelf .poster-rail{grid-auto-flow:row;grid-template-rows:none;grid-template-columns:repeat(8,minmax(115px,1fr));grid-auto-columns:auto;gap:10px}
.catalog-shelf .poster-rail:not(:has(.poster-card:nth-child(5))){grid-template-rows:none}
.history-grid{display:grid;gap:11px;max-width:820px}
.history-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;color:var(--ink);padding:13px}
.history-item:not(:has(img)){grid-template-columns:1fr auto}
.history-item:hover{text-decoration:none;border-color:var(--accent)}
.history-item p{margin:.2em 0}
.history-cover{width:52px;height:65px;object-fit:cover;border-radius:7px}
.chat-action{color:var(--accent);font-style:italic}
.chat-format-hint{color:var(--muted)}
html.studio-installed body:not(.admin-workspace):not(.admin-login) .topbar{display:none}
html.studio-installed body:not(.admin-workspace):not(.admin-login) .native-topbar{
    position:sticky;top:0;z-index:8;display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;
    gap:8px;min-height:calc(55px + var(--studio-top-inset));padding:calc(6px + var(--studio-top-inset)) 13px 6px;
    background:linear-gradient(115deg,#101a30,#0d1425 63%);border-bottom:1px solid #253451;
}
html.studio-installed body.workspace:not(.admin-workspace):not(.admin-login){padding-left:0}
html.studio-installed body:not(.admin-workspace):not(.admin-login) .sidebar,
html.studio-installed body:not(.admin-workspace):not(.admin-login) .footer{display:none}
html.studio-installed body:not(.admin-workspace):not(.admin-login):has(.mobile-dock){padding-bottom:calc(61px + var(--studio-bottom-inset))}
html.studio-installed body:not(.admin-workspace):not(.admin-login) .mobile-dock{
    display:flex;position:fixed;z-index:7;inset:auto 0 0;min-height:calc(57px + var(--studio-bottom-inset));padding:5px 4px calc(5px + var(--studio-bottom-inset));
    justify-content:space-around;align-items:center;background:#0c1425;border-top:1px solid #293755
}
html.studio-installed .mobile-dock a{display:grid;justify-items:center;gap:4px;text-align:center;min-width:55px;color:#aebbd4;font-size:.73rem}
html.studio-installed .mobile-dock a span{font-size:1.24rem;line-height:1.05}
html.studio-installed .mobile-dock a[aria-current=page]{color:#ff899c}
.native-logo img{width:37px;height:37px;display:block;border-radius:11px;box-shadow:0 0 18px #c5264024}
.native-account{justify-self:end;display:flex;gap:6px;align-items:center}
.native-menu-trigger,.native-profile,.native-wallet{display:flex;align-items:center;justify-content:center;min-height:37px;min-width:37px;gap:5px;color:#f1f4fb;background:#162239;border:1px solid #2b3d60;border-radius:11px;text-decoration:none}
.native-menu-trigger{justify-self:start;padding:0;font-size:1.08rem}
.native-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(84vw,332px);max-width:none;height:100dvh;max-height:none;padding:0;color:#eef3fd;background:#101a2f;border:0;border-right:1px solid #344668;border-radius:0 18px 18px 0;box-shadow:15px 0 55px #0007}
.native-drawer::backdrop{background:#040811a3;backdrop-filter:blur(3px)}
.native-drawer-inner{min-height:100%;display:flex;flex-direction:column;padding:calc(18px + var(--studio-top-inset)) 13px calc(15px + var(--studio-bottom-inset));background:radial-gradient(ellipse at 15% 0%,#222f53,transparent 55%),#101a2f}
.native-drawer-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:0 2px 17px;border-bottom:1px solid #334478}
.native-drawer-head img{width:43px;height:43px;border-radius:12px}
.native-drawer-head strong,.native-drawer-head small{display:block;overflow-wrap:anywhere}
.native-drawer-head small{color:#aabbd4}
.native-drawer-head button{width:35px;min-height:35px;padding:0;font-size:1.2rem}
.native-drawer nav{display:grid;gap:5px;padding-top:14px}
.native-drawer nav a{display:flex;align-items:center;gap:10px;padding:9px 10px;min-height:43px;color:#e5edfc;border-radius:10px}
.native-drawer nav a span{width:24px;text-align:center;color:#ff9aaa;font-size:1.1rem}
.native-drawer nav a:hover,.native-drawer nav a[aria-current=page]{background:#26365a;text-decoration:none}
.native-drawer nav a[aria-current=page]{box-shadow:inset 3px 0 #e44965}
.native-drawer-foot{margin-top:auto;padding-top:16px}
.native-drawer-foot .button,.native-drawer-foot button{width:100%}
@media(prefers-reduced-motion:no-preference){.native-drawer[open]{animation:drawer-in .2s ease-out}@keyframes drawer-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}}
.native-wallet{padding:0 7px;color:#ffe0a9;font-size:.82rem;font-weight:750}
.native-profile{font-size:1.15rem}
.dock-symbol[data-app-icon=chat],.dock-symbol[data-app-icon=account]{font-size:0!important;position:relative;display:inline-grid;place-items:center;min-width:20px;height:21px}
.dock-symbol[data-app-icon=chat]::before{content:"";width:16px;height:12px;border:1.5px solid currentColor;border-radius:5px}
.dock-symbol[data-app-icon=chat]::after{content:"";position:absolute;bottom:2px;left:calc(50% - 5px);height:5px;width:5px;border-bottom:1.5px solid currentColor;border-left:1.5px solid currentColor;background:#0c1425;transform:skewY(-30deg)}
.dock-symbol[data-app-icon=account]::before{content:"";position:absolute;top:1px;width:7px;height:7px;border:1.5px solid currentColor;border-radius:50%}
.dock-symbol[data-app-icon=account]::after{content:"";position:absolute;bottom:1px;width:16px;height:8px;border:1.5px solid currentColor;border-radius:8px 8px 3px 3px}
@media(max-width:760px){
    .front-home .home-slide,.studio-installed .home-slide{min-height:288px}
    .front-home .home-slide-content,.studio-installed .home-slide-content{padding-top:26px;padding-bottom:63px}
    .front-home .home-slide h1,.studio-installed .home-slide h1{font-size:clamp(1.9rem,7.5vw,3.2rem)}
    .front-home .home-slide p,.studio-installed .home-slide p{font-size:.9rem}
    .catalog-shelf .poster-rail{grid-template-columns:repeat(8,clamp(99px,30vw,143px));gap:8px}
    .front-home .catalog-shelf,.studio-installed .catalog-shelf{margin-bottom:16px}
    html.studio-installed body:not(.admin-workspace):not(.admin-login) .auth-card{margin:10px auto 22px;padding:22px}
    html.studio-installed body:not(.admin-workspace):not(.admin-login) .auth-card .primary{justify-self:stretch}
}
@media(max-width:370px){.front-home .home-main-nav{gap:10px;font-size:.78rem}}
