/* Floating navigation and optical glass surfaces; customer app only. */
:root{--liquid-fill:linear-gradient(125deg,#ffffff17 0%,#d2e9e208 38%,#bfd9ed0a 73%,#ffffff13 100%);--liquid-edge:#e3f5f32d;--liquid-shadow:inset 0 1px 1px #ffffff40,inset 0 -1px 1px #b6d5df12,0 12px 40px #00000022}
.platform.app-shell{--shell-width:92px;padding:82px 0 0 92px}
.platform.app-shell .platform-nav{display:contents!important;backdrop-filter:none;border:0;box-shadow:none}
.platform.app-shell .platform-brand{position:fixed;left:28px;top:26px;z-index:36;margin:0;width:70px}
.platform.app-shell .platform-brand .teos-logo{width:70px}
.platform.app-shell :is(.platform-brand small,.nav-section-label,.nav-signature,.workspace-context){display:none!important}
.platform.app-shell.is-home .platform-brand{display:none!important}
.platform.app-shell .platform-nav > nav{position:fixed!important;inset:50% auto auto 16px!important;transform:translateY(-50%);z-index:40;width:62px!important;height:auto;max-height:calc(100dvh - 140px);margin:0!important;padding:8px!important;gap:6px;border:1px solid var(--liquid-edge);border-radius:32px;background:var(--liquid-fill),#112022bd;box-shadow:var(--liquid-shadow);backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%);overflow:visible}
.platform.app-shell .platform-nav > nav a{display:flex!important;position:relative;flex:none;width:44px!important;min-height:44px!important;height:44px!important;padding:12px!important;gap:0;border:1px solid transparent;border-radius:23px;color:#c0cdce;overflow:hidden;white-space:nowrap;transition:width .24s cubic-bezier(.22,1,.36,1),background .2s,box-shadow .2s,color .2s}
.platform.app-shell .platform-nav > nav a .navigation-icon{width:18px;height:18px;flex:0 0 18px;opacity:1}
.platform.app-shell .platform-nav > nav a span{display:block!important;width:0;opacity:0!important;visibility:hidden!important;padding:0!important;white-space:nowrap!important;pointer-events:none;font-size:12px!important;transition:opacity .16s,margin-left .24s}
.platform.app-shell .platform-nav > nav a:is(:hover,:focus-visible){width:188px!important;overflow:visible;gap:0;color:#f0faf6;background:linear-gradient(120deg,#475958f5,#233137f5);border-color:#edfff547;box-shadow:inset 0 1px #ffffff45,0 12px 28px #0005}
.platform.app-shell .platform-nav > nav a:is(:hover,:focus-visible) span{width:auto;opacity:1!important;visibility:visible!important;margin-left:14px}
.platform.app-shell .platform-nav > nav a[aria-current]{background:linear-gradient(140deg,#fbfff9,#d5e4df);color:#172a29;border-color:#fff8;box-shadow:inset 0 1px #fff,0 2px 12px #def7e71c}
.platform.app-shell .platform-nav > nav a[aria-current]:is(:hover,:focus-visible){color:#172a29;background:linear-gradient(140deg,#fbfff9,#d5e4df)}
.platform.app-shell .platform-nav > nav a[aria-current]::before{display:none}
.platform.app-shell .platform-nav .top-actions{position:fixed;inset:14px 28px auto auto;z-index:35;max-width:calc(100% - 130px);height:48px;padding:0;gap:9px;background:none;border:0;backdrop-filter:none}
.platform.app-shell .top-actions :is(.balance-pill,.account-button,.account-entry){background:var(--liquid-fill),#152427b5;border:1px solid var(--liquid-edge);box-shadow:var(--liquid-shadow);backdrop-filter:blur(20px) saturate(145%);-webkit-backdrop-filter:blur(20px) saturate(145%)}
.app-shell .teos-dashboard{max-width:1570px;padding:32px 42px 60px}
.app-shell .dashboard-masthead{grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr);min-height:270px;gap:60px;padding:18px 0 42px;margin-bottom:36px;border-bottom:0}
.app-shell .dashboard-brand .dashboard-wordmark{display:block;width:clamp(240px,31vw,490px);max-width:100%;height:auto;filter:brightness(0) invert(1);opacity:.94;margin:0 0 24px}
.app-shell .dashboard-brand h1{font-size:clamp(19px,2.05vw,29px);font-weight:400;line-height:1.35;letter-spacing:-.035em;margin:0 0 10px;max-width:500px}
.app-shell .dashboard-brand>p{font-size:12px;color:#adbcb9;max-width:440px}
.app-shell .dashboard-mosaic{height:225px;border-radius:26px;box-shadow:0 10px 35px #0002}
.platform :is(.dashboard-tool,.panel,.wizard-panel,.look-panel,.studio-composer,.clean-composer,.billing-plan,.billing-account,.dashboard-new-project,.dashboard-saved-project,.subscription-banner){background:var(--liquid-fill),#10202491;border:1px solid var(--liquid-edge);box-shadow:var(--liquid-shadow);backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%);border-radius:26px}
.platform .dashboard-tool{padding:8px;background:var(--liquid-fill),#13202280;transition:border-color .2s,box-shadow .2s}
.platform .dashboard-tool:hover{background:var(--liquid-fill),#22323590;border-color:#f0fffa55;box-shadow:inset 0 1px 1px #ffffff70,inset 0 -1px #bfd9d924,0 16px 35px #0004}
.platform :is(.dashboard-use,.dashboard-studio-cta,.btn.secondary,.tabs,.billing-payment-callout){background:linear-gradient(115deg,#ffffff24,#d3e6e00b 48%,#ffffff1b);border:1px solid #f0fff13b;box-shadow:inset 0 1px #ffffff36,inset 0 -1px #ffffff08,0 4px 16px #0002;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.platform :is(.dashboard-use,.dashboard-studio-cta){border-radius:16px}
.platform :is(.dashboard-use,.dashboard-studio-cta):hover{background:linear-gradient(115deg,#ffffff35,#d3e6e019 48%,#ffffff2c);border-color:#ffffff65}
.app-shell .subscription-banner{margin:10px 42px 0;padding:16px 22px;border-radius:22px}
.app-shell .subscription-banner strong{font-size:15px}.app-shell .subscription-banner p{font-size:12px}
.platform .billing-plan.is-featured{background:radial-gradient(ellipse at 100% 0,#c1e5d32c,transparent 65%),var(--liquid-fill),#16312fba;border-color:#dcf7e878;box-shadow:var(--liquid-shadow),0 0 35px #bbe0d00a}
@media(max-width:1100px) and (min-width:761px){.app-shell .dashboard-masthead{gap:30px}.app-shell .teos-dashboard{padding:26px}.app-shell .subscription-banner{margin-left:26px;margin-right:26px}}
@media(max-width:760px){
 .platform.app-shell{padding:76px 0 104px}
 .platform.app-shell .platform-brand{left:18px;top:25px;width:64px}.platform.app-shell .platform-brand .teos-logo{width:64px}
 .platform.app-shell .platform-nav .top-actions{inset:12px 14px auto auto;height:46px;gap:6px;max-width:calc(100% - 90px)}
 .platform.app-shell.is-home .platform-nav .top-actions{max-width:calc(100% - 28px)}
 .platform.app-shell .platform-nav > nav{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px!important;transform:none;flex-direction:row;align-items:center;justify-content:space-around;gap:2px;width:calc(100% - 24px)!important;max-height:none;height:72px;padding:7px!important;overflow-x:auto;border-radius:28px;background:var(--liquid-fill),#112022ed}
 .platform.app-shell .platform-nav > nav a,.platform.app-shell .platform-nav > nav a:is(:hover,:focus-visible){width:auto!important;flex:1;min-width:46px;height:54px!important;min-height:54px!important;padding:6px 2px!important;flex-direction:column;justify-content:center;gap:6px;overflow:visible;border-radius:20px}
 .platform.app-shell .platform-nav > nav a span,.platform.app-shell .platform-nav > nav a:is(:hover,:focus-visible) span{width:auto;opacity:1!important;visibility:visible!important;margin:0;font-size:8px!important;line-height:1.2}
 .app-shell .teos-dashboard{padding:26px 20px 36px}.app-shell .dashboard-masthead{grid-template-columns:1fr;gap:24px;padding:10px 0 24px;margin-bottom:14px;min-height:0}
 .app-shell .dashboard-brand .dashboard-wordmark{width:68%;max-width:320px;margin-bottom:20px}.app-shell .dashboard-brand h1{font-size:24px}.app-shell .dashboard-brand>p{font-size:12px}
 .app-shell .dashboard-mosaic{height:190px}.app-shell .subscription-banner{margin:8px 18px 0;padding:16px;gap:12px;flex-wrap:wrap}.app-shell .subscription-banner strong{font-size:14px}.app-shell .subscription-banner .btn{min-height:40px}
 .app-shell .dashboard-track{grid-auto-columns:82%;gap:14px}
 .platform :is(.dashboard-tool,.panel,.billing-plan,.clean-composer){backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
}
@media(hover:none) and (min-width:761px){.platform.app-shell{padding-left:112px}.platform.app-shell .platform-nav > nav{width:82px!important}.platform.app-shell .platform-nav > nav a{width:64px!important;height:60px!important;flex-direction:column;padding:8px 2px!important;gap:5px}.platform.app-shell .platform-nav > nav a span{width:auto;opacity:1!important;visibility:visible!important;font-size:9px!important}}
@media(prefers-reduced-motion:reduce){.platform.app-shell .platform-nav > nav a,.platform.app-shell .platform-nav > nav a span{transition:none}}
@supports not (backdrop-filter:blur(1px)){.platform :is(.dashboard-tool,.panel,.billing-plan,.subscription-banner){background:#1c2b2e}.platform.app-shell .platform-nav > nav{background:#17272b}}
/* November refinement: fluid canvas, undistorted mosaic and centered studio. */
.app-shell .teos-dashboard{width:100%;max-width:none;margin:0;padding:24px clamp(24px,3.2vw,64px) 60px}
.app-shell .dashboard-masthead{grid-template-columns:minmax(0,1fr) minmax(300px,560px);gap:clamp(32px,5vw,100px);min-height:300px;padding:10px 0 34px;margin-bottom:24px}
.app-shell .dashboard-studio-entry{display:block;width:100%;max-width:560px;justify-self:end}
.app-shell .dashboard-studio-entry>p{display:none}
.app-shell .dashboard-mosaic{width:100%;height:auto;aspect-ratio:2 / 1;grid-template-columns:1.15fr 1fr 1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:6px}
.app-shell .dashboard-mosaic>img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;border-radius:7px}
.app-shell .dashboard-mosaic>img:first-child{grid-row:span 2;object-position:center 35%}
.app-shell .dashboard-track{grid-auto-columns:clamp(270px,25vw,380px);gap:20px;padding:4px 4px 12px}
.dashboard-carousel{--fade-start:0px;--fade-end:0px}
.dashboard-carousel.has-previous{--fade-start:65px}.dashboard-carousel.has-next{--fade-end:85px}
.dashboard-carousel .dashboard-track{mask-image:linear-gradient(to right,transparent,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent)}
.platform.app-shell:has(.clean-workspace) .platform-brand{display:none!important}
.app-shell .clean-workspace{min-height:calc(100svh - 152px);justify-content:center;padding:44px 24px 64px;max-width:1100px}
.app-shell .clean-identity{width:100%;margin-bottom:18px}
.app-shell .studio-wordmark{display:block;width:clamp(160px,17vw,245px);height:auto;margin:0 auto 30px;filter:brightness(0) invert(1)}
.app-shell .clean-identity h1.workspace-title{font-size:clamp(28px,2.7vw,42px);margin:0 0 24px}
.app-shell .clean-composer{padding:24px;border-radius:28px;max-width:860px}
.app-shell .clean-composer textarea{min-height:90px}
.platform.app-shell:has(#quick-results:has(> :not([hidden]))) .clean-workspace{min-height:0;padding-top:35px;padding-bottom:30px}
body:has(.clean-workspace,.teos-dashboard) .ambient-layer{opacity:.95}
body:has(.clean-workspace,.teos-dashboard) .ambient-teal{background:radial-gradient(ellipse at 26% 38%,#317e8290,transparent 52%);animation-duration:14s}
body:has(.clean-workspace,.teos-dashboard) .ambient-violet{background:radial-gradient(ellipse at 74% 48%,#53568280,transparent 52%);animation-duration:18s}
body:has(.clean-workspace,.teos-dashboard) .ambient-warm{background:radial-gradient(ellipse at 50% 85%,#729f8338,transparent 48%);animation-duration:16s}
@media(max-width:1100px){.app-shell .dashboard-masthead{grid-template-columns:1fr 1fr;gap:30px}.app-shell .dashboard-brand .dashboard-wordmark{width:90%;max-width:350px}.app-shell .dashboard-brand>p{letter-spacing:0;line-height:1.6}}
@media(max-width:760px){.app-shell .teos-dashboard{padding:26px 20px 40px}.app-shell .dashboard-masthead{grid-template-columns:1fr;gap:28px;min-height:0;margin-bottom:14px;padding:0 0 24px}.app-shell .dashboard-studio-entry{justify-self:start;max-width:560px}.app-shell .dashboard-brand .dashboard-wordmark{width:65%}.app-shell .dashboard-track{grid-auto-columns:84%;gap:14px}.dashboard-carousel.has-next{--fade-end:38px}.dashboard-carousel.has-previous{--fade-start:30px}.app-shell .clean-workspace{min-height:calc(100svh - 190px);padding:30px 18px;justify-content:center}.app-shell .studio-wordmark{width:165px;margin-bottom:26px}.app-shell .clean-composer{padding:18px}.app-shell .clean-composer textarea{min-height:90px}.app-shell .clean-identity h1.workspace-title{font-size:28px}}

.quick-results:not(:has(> :not([hidden]))){display:none}
.app-shell main:has(>.subscription-banner) .clean-workspace{min-height:calc(100svh - 248px)}
.platform.app-shell:has(#quick-results:has(> :not([hidden]))) main .clean-workspace{min-height:0}

/* Keep home and studio on the same animated light field and grain. */
body:has(.clean-workspace,.teos-dashboard) .ambient-background{background:#07090a}
body:has(.clean-workspace,.teos-dashboard) .ambient-background::after{opacity:.12}
