/* Shared visual language for every Sanad route. Loaded after component styles. */
.studio-icon{display:inline-block;width:18px;height:18px;flex-shrink:0;vertical-align:-.2em;color:inherit}
:is(button,a,summary) > .studio-icon{vertical-align:middle}
:is(button,a) > .studio-icon + span{margin-inline-start:6px}
.product-picker button,.project-tab-btn,.view-btn,.template-badge,.meta-cost,.card-location,.auth-story-tiles>span{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.card-location{justify-content:start}
.card-icon,.mini-icon,.cat-icon-pill,.vibe-sparkle,.app-chip-icon,.credits-icon{display:inline-grid;place-items:center;line-height:1}
.card-icon .studio-icon,.cat-icon-pill .studio-icon,.modality-visual .studio-icon{width:26px;height:26px}
.mini-icon .studio-icon,.vibe-sparkle .studio-icon{width:20px;height:20px}
.empty-cockpit-icon .studio-icon,.empty-glow .studio-icon{width:38px;height:38px}
.f-bullet>span{display:grid;place-items:center}.f-bullet .studio-icon{width:22px;height:22px}
.btn-card-edit,.btn-edit-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.header-account .studio-icon,.verify-assurance .studio-icon{width:16px;height:16px}
.product-studio .btn-app-builder{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 14px;border:1px solid #dccbe6;border-radius:14px;background:#f1e8f6;color:#70416c;text-decoration:none;box-shadow:none;font-size:13px}
:root {
    --burgundy:#70416c; --burgundy-2:#855d84; --burgundy-dark:#4c2d4b;
    --gold:#70416c; --gold-hover:#593256; --gold-light:#f3eaf4;
    --ink:#302b3b; --muted:#70697c; --muted-light:#81798a;
    --paper:#f8f7fc; --cream:#f0edf6; --paper-card:#fff;
    --line:#e2dce9; --line-light:#eeeaf2;
    --sidebar-bg:#fff; --sidebar-hover:#f4f0f8; --sidebar-active:#f0e8f4;
    --radius-sm:10px; --radius-md:16px; --radius-lg:24px;
    --shadow-sm:0 3px 12px #37224506; --shadow-md:0 8px 28px #37224508; --shadow-lg:0 20px 60px #37224512;
}
body {background:var(--paper);font-size:14px;line-height:1.7}
::selection{background:#e6d7ee;color:#412646}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #9671b5;outline-offset:3px}
:where(button,a){-webkit-tap-highlight-color:transparent}
:where(input,textarea,select){accent-color:#70416c}
button:disabled{cursor:not-allowed}
input[type=email],input[autocomplete=username]{direction:ltr;text-align:start}
input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #f5f2fa inset;-webkit-text-fill-color:#302b3b}
.studio-shell{background:radial-gradient(ellipse at 10% 0,#eee8fa70,transparent 45%),var(--paper)}
.studio-canvas{min-width:0;flex:1}
.studio-content{width:100%;max-width:1440px;margin-inline:auto;padding:26px 32px 48px}
.studio-content > div{min-width:0}
.studio-shell .studio-sidebar{width:246px;background:#ffffffd9;border-color:var(--line-light);box-shadow:none}
.studio-shell .sidebar-brand{background:transparent;border:0;padding:25px 20px 18px;gap:10px}
.studio-shell .brand-text h1{font-size:13px;letter-spacing:0;color:var(--ink);line-height:1.65}
.studio-shell .brand-text span{font-size:10px;letter-spacing:0;color:var(--muted)}
.studio-shell .sidebar-brand img{width:38px;height:38px}
.studio-shell .sidebar-top-action{padding:0 16px 12px}
.studio-shell .btn-sidebar-new{background:#70416c;color:white;border:0;border-radius:14px;min-height:46px;box-shadow:0 5px 14px #70416c18}
.studio-shell .sidebar-nav{padding:10px 14px;gap:20px}
.studio-shell .sidebar-link{font-size:13px;padding:9px 11px;color:#655c72;border:0;border-radius:12px;gap:10px}
.studio-shell .sidebar-link i{background:transparent;color:#83738e;border:0;box-shadow:none;width:27px;flex-basis:27px}
.studio-shell .sidebar-link.active{background:#f0e8f5;color:#673967;border:0;box-shadow:none}
.studio-shell .sidebar-link.active i{color:#70416c;background:transparent;box-shadow:none}
.studio-shell .sidebar-link:hover{background:#f7f3fa}
.studio-shell .sidebar-tree-header,.studio-shell .nav-group-label{color:#81758b;font-size:11px;letter-spacing:0}
.studio-shell .sidebar-project-header{border-radius:10px;font-size:12px}
.studio-shell .sidebar-footer{background:transparent;border-color:var(--line-light);padding:14px}
.studio-shell .wallet-pill{background:#f7f4fa;border:0;border-radius:14px}
.studio-shell .wallet-pill strong{color:var(--burgundy)}
.studio-shell .user-avatar{background:#ede3f2;color:#70416c;border-radius:12px}
.studio-shell .studio-header{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.88));backdrop-filter:blur(24px) saturate(135%);-webkit-backdrop-filter:blur(24px) saturate(135%);border-bottom:1px solid rgba(219,214,225,.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 4px 18px rgba(40,28,49,.045);isolation:isolate;flex-shrink:0}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.studio-shell .studio-header{background:#fdfcfe}}
.studio-shell .page-guide{margin-bottom:22px}
.studio-breadcrumb{font-size:12px;color:var(--muted)}
.page-help-button{border:1px solid var(--line);border-radius:100px;background:white;min-height:36px;padding:5px 13px}
.page-title-row{padding:8px 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line-light);align-items:center;gap:18px;flex-wrap:wrap}
.page-title-row h2,.models-discovery-head h2,.knowledge-head h1{color:var(--ink);font-size:28px;line-height:1.5;letter-spacing:-.02em}
.page-title-row p,.models-discovery-head p,.knowledge-head p{font-size:14px;line-height:1.9;color:var(--muted);max-width:720px;margin-top:8px}
.page-eyebrow,.product-kicker{font-size:10px;letter-spacing:.09em;color:#896c92}
.page-actions{flex-wrap:wrap;gap:10px}
.studio-content .card,.table-container,.studio-content .metric-card,.knowledge-card,.avatar-management-card,.leaderboard-card,.models-frontier-card{border:1px solid var(--line-light);border-radius:20px;box-shadow:var(--shadow-sm);background:white}
.studio-content .card{padding:24px}
.studio-content .metric-grid{gap:16px;margin-bottom:24px}
.metric-grid > :nth-child(4n+1){background:#f1ebf8}
.metric-grid > :nth-child(4n+2){background:#ebf5f1}
.metric-grid > :nth-child(4n+3){background:#fff3e8}
.metric-grid > :nth-child(4n+4){background:#edf2fb}
.btn-primary,.btn-gold,.btn-gold-large,.btn-gold-action,.btn-generate-app,.btn-project-plus-product{background:#70416c;border:1px solid #70416c;color:white;border-radius:13px;min-height:44px;box-shadow:0 4px 12px #70416c0e;font-size:13px;text-decoration:none;gap:8px}
.btn-primary:hover:not(:disabled),.btn-gold:hover:not(:disabled){background:#593256;border-color:#593256;box-shadow:0 7px 20px #70416c1a}
.btn-secondary{background:#fff;border:1px solid var(--line);border-radius:13px;min-height:42px;color:#62536f;box-shadow:none;font-size:13px;text-decoration:none}
.btn-secondary:hover:not(:disabled){background:#f6f1fa;border-color:#cdbbd8;box-shadow:none}
.form-control{border:1px solid var(--line);background:#faf8fc;border-radius:12px;min-height:46px;padding:11px 14px;font-size:14px;color:var(--ink);line-height:1.6}
.form-control:focus{background:#fff;border-color:#a789b7;box-shadow:0 0 0 4px #9472ac16;outline:0}
.form-control::placeholder{color:#8b8295;opacity:1}
.form-label{font-size:13px;color:#51465c;margin-bottom:8px}
.form-group{margin-bottom:20px}
textarea.form-control{min-height:120px;resize:vertical}
input[type=range].form-control{min-height:28px;background:transparent;border:0}
.table-container{overflow-x:auto;max-width:100%;scrollbar-width:thin}
.studio-table{font-size:13px}
.studio-table th{background:#f7f4fa;color:#766780;font-size:12px;white-space:nowrap;border-color:var(--line-light);padding:14px 18px}
.studio-table td{padding:16px 18px;border-color:var(--line-light);vertical-align:middle}
.studio-table tbody tr:hover{background:#fbf9fd}
.badge{border-radius:8px;padding:4px 9px;font-size:11px;line-height:1.5}
.badge-gold{background:#f2eaf5;color:#794d80;border-color:#e7d9ed}
.context-strip,.knowledge-assurance{border:1px solid #e5dbef;border-radius:16px;background:#f4eff9;color:#64506f;padding:18px 22px;gap:18px;flex-wrap:wrap}
.studio-empty,.studio-loading,.knowledge-state,.project-empty,.media-empty{border:1px dashed #ded3e7;border-radius:20px;padding:36px 24px;background:#fcfafe;color:var(--muted);text-align:center}
.studio-empty-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#eee6f6;color:#896398;margin:0 auto 16px}
.modal-card,.help-dialog,.avatar-editor{border-radius:24px;border:1px solid var(--line-light);box-shadow:0 24px 90px #2c173230;max-height:calc(100dvh - 36px);overflow-y:auto}
.modal-header{gap:20px;align-items:center}
.modal-close{min-width:36px;min-height:36px;background:#f5f0f8;color:#796681;border:0;border-radius:50%}
.help-dialog__accent{background:linear-gradient(90deg,#d5e9df,#dac4e7,#fae0cf)}
.start-page .start-hero{background:radial-gradient(ellipse at 0 100%,#dceee780,transparent 70%),#f0eaf8;border-color:#e5dbef;border-radius:28px}
.start-page .start-hero h1{color:#45334f}.start-page .start-hero h1 em{color:#94619a}
.start-page .start-hero p{color:#72667b}.start-page .start-actions .btn-primary{background:#70416c;border-color:#70416c}
.start-page .start-example{background:white;border-color:#e6dfed;box-shadow:0 16px 45px #5e367314;border-radius:22px}
.start-page .outcome{background:white;border-color:var(--line-light);border-radius:22px}
.start-page .outcome:nth-child(1) .outcome-icon{background:#f1e7f8;color:#88609a}
.start-page .outcome:nth-child(2) .outcome-icon{background:#e6f3ed;color:#48765f}
.start-page .outcome:nth-child(3) .outcome-icon{background:#fff0e4;color:#a87546}
.start-page .outcome h3,.start-page .start-section-heading h2,.start-page .start-bottom h2{color:var(--ink)}
.start-page .start-process,.start-page .start-account{background:#fff;border-color:var(--line-light);border-radius:22px}
.project-home .project-cockpit-hero{background:radial-gradient(ellipse at 0 0,#efe2f8,transparent 65%),#f5f0fa;border:1px solid #e8dff0;border-radius:26px;padding:32px;color:var(--ink);box-shadow:none}
.project-home .project-cockpit-hero h1{font-size:30px;color:#48334f;line-height:1.5}
.project-home .project-cockpit-hero p{color:#776780;font-size:14px;max-width:650px}
.project-home .cockpit-hero-eyebrow{color:#92659a;font-size:11px;letter-spacing:0}
.project-home .cockpit-project-card{background:#fff;border:1px solid var(--line-light);border-radius:22px;box-shadow:var(--shadow-sm);padding:23px}
.project-home .cockpit-project-card:hover{border-color:#cbb3d9;box-shadow:0 12px 30px #6541740c;transform:translateY(-3px)}
.project-home .project-card-logo{border-radius:17px;transform:rotate(-4deg)}
.project-home .card-title-group h3{font-size:19px;color:var(--ink)}
.project-home .card-desc{font-size:13px;color:var(--muted);line-height:1.9}
.project-home .project-credits-status-banner{background:#f5f1f9;border:1px solid var(--line-light);border-radius:14px;box-shadow:none;font-size:12px}
.project-home .active-project-header-bar{background:white;border:1px solid var(--line-light);border-radius:22px;padding:24px;gap:18px}
.project-home .project-tabs{border:0;background:#eeeaf4;padding:5px;border-radius:14px;gap:5px}
.project-home .project-tab-btn{border:0;border-radius:10px;font-size:13px}
.project-home .project-tab-btn.active{background:white;color:#70416c;box-shadow:0 2px 8px #5237650b}
.project-home .app-card-vibe,.project-panel{border:1px solid var(--line-light);border-radius:22px;box-shadow:var(--shadow-sm)}
.products-page .products-hero{background:radial-gradient(ellipse at 10% 0,#a279ab50,transparent 65%),#4c3457;color:#fff;box-shadow:none;border:0}
.products-page .products-hero h1{font-size:32px;line-height:1.5}
.products-page .products-hero p{color:#e4d8eb;font-size:14px;line-height:1.9}
.products-page .product-card{border-radius:22px;overflow:hidden;box-shadow:var(--shadow-sm)}
.products-page .product-card__visual{border-radius:22px 22px 0 0;min-height:180px}
.products-page .product-card__body{background:white;padding:22px}
.products-page .product-jump-nav{border-radius:16px;background:#fff;border-color:var(--line-light);flex-wrap:wrap}
.builder-form,.builder-preview,.playground-shell{border-radius:22px;border-color:var(--line-light);box-shadow:var(--shadow-sm);overflow:hidden}
.builder-head h1{font-size:28px;color:var(--ink)}
.builder-empty-state,.playground-welcome{background:radial-gradient(ellipse at 50% 0,#f0e8f8,transparent 80%),#fdfcfe}
.playground-sidebar{background:#faf8fc;border-color:var(--line-light)}
.chat-input-bar{background:white;border-color:var(--line-light)}
.chat-textarea{border-radius:14px;font-size:14px}
.vibe-studio-root .vibe-header{background:#fff;border:1px solid var(--line-light);border-radius:20px;padding:20px;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.vibe-studio-root .vibe-workspace{gap:20px;background:transparent}
.vibe-studio-root .vibe-controls,.vibe-studio-root .vibe-stage{border:1px solid var(--line-light);border-radius:22px;box-shadow:none;overflow:hidden}
.vibe-studio-root .vibe-controls{background:white}
.vibe-studio-root .control-box{border-color:var(--line-light);padding:22px}
.vibe-studio-root .template-card{background:#f8f4fc;border:1px solid #e8dff0;border-radius:14px}
.vibe-studio-root .template-card:hover{border-color:#b49ac5;background:#f3ecf9}
.vibe-studio-root .vibe-textarea{background:#fcfafe;border-color:#e3d8eb;border-radius:14px;font-size:14px}
.vibe-studio-root .stage-viewport-container{background:#f2eff7}
.vibe-studio-root .empty-stage-state{color:#655271}
.knowledge-grid,.avatar-manager-grid,.product-collection-grid{gap:20px}
.knowledge-card,.avatar-management-card,.router-card,.modality-card{overflow:hidden;border-radius:20px}
.knowledge-head{gap:20px;flex-wrap:wrap}.knowledge-create-panel{border-radius:22px;background:#fff;border-color:var(--line)}
.model-toolbar,.avatar-toolbar{gap:12px;flex-wrap:wrap}
.model-search,.avatar-search{border-radius:12px;background:#fff;border:1px solid var(--line)}
.models-section-title h3{font-size:21px;color:var(--ink)}
.feature-note{display:flex;gap:12px;align-items:start;padding:18px 22px;border:1px solid #e7dcef;border-radius:16px;background:#f7f1fb;color:#6e527c;margin-bottom:24px;font-size:13px;line-height:1.85}
.feature-note strong{display:block;color:#563e63}.feature-note .studio-icon{flex-shrink:0;margin-top:4px}
.recovery-page{min-height:70vh;display:grid;place-items:center;text-align:center;padding:30px 20px}
.recovery-card{max-width:520px;padding:40px;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:var(--shadow-md)}
.recovery-symbol{font-size:48px;color:#b398c2;display:block;margin-bottom:15px}
.recovery-card h1{font-size:28px}.recovery-card p{margin:14px 0 26px;color:var(--muted)}
/* Authentication shares one welcoming composition, including recovery routes. */
.auth-shell{background:radial-gradient(ellipse at 85% 10%,#eee3f6,transparent 55%),radial-gradient(ellipse at 0 95%,#e1efe9,transparent 50%),#faf8fd}
.auth-shell::before,.auth-shell::after,.auth-content::before{display:none}
.auth-header{background:transparent;border:0;padding:22px 36px}.auth-brand strong{color:#533c5e}.auth-brand small{color:#887291}
.auth-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1140px;width:100%;margin:auto;align-items:center;gap:50px;padding:26px 32px}
.auth-story{padding:26px;max-width:460px}.auth-story-kicker{font-size:12px;color:#936b9f;display:block;margin-bottom:24px}
.auth-story h2{font-size:clamp(32px,3.4vw,46px);line-height:1.5;color:#4b3458;margin:0 0 18px}
.auth-story p{font-size:15px;color:#7d6b87;line-height:2}
.auth-story-tiles{display:flex;gap:12px;margin-top:34px;flex-wrap:wrap}.auth-story-tiles span{padding:15px 21px;background:#ffffffae;border:1px solid #ffffff;border-radius:18px;color:#795782;box-shadow:0 8px 25px #74498b08}
.auth-story-tiles span:nth-child(2){transform:rotate(-5deg);background:#e8f2ec;color:#567d69}.auth-story-tiles span:nth-child(3){transform:rotate(4deg);background:#fff0e5;color:#a77c57}
.auth-form-region{min-width:0}.auth-form-region .login-stage,.auth-form-region .signup-stage,.auth-form-region .verify-stage{min-height:0;padding:0;display:block}
.auth-form-region .login-card,.auth-form-region .signup-card,.auth-form-region .verify-card,.auth-form-region .card{width:100%;background:#ffffffeb;border:1px solid #fff;border-radius:26px;padding:32px;box-shadow:0 20px 65px #6742780d}
.auth-form-region .login-card__accent{display:none}
.auth-form-region .login-intro h1,.auth-form-region .signup-intro h1{font-size:29px;color:#483151}
.auth-form-region .login-intro p,.auth-form-region .signup-intro p{font-size:14px;color:var(--muted)}
.auth-form-region .login-field label,.auth-form-region .signup-field label{font-size:13px}
.auth-form-region .login-field input,.auth-form-region .signup-field input,.auth-form-region .signup-field select,.verify-field input{background:#faf7fd;border:1px solid #e5dceb;border-radius:12px;font-size:14px;min-height:48px}
.auth-form-region .login-submit{background:#70416c;border-radius:13px;min-height:48px;font-size:14px;box-shadow:0 6px 20px #70416c16}
.auth-form-region .login-remember,.auth-form-region .login-signup{font-size:12px;color:#786780}
.auth-form-region .login-assurance{font-size:11px;color:#887790}
.auth-form-region .login-field__head a{font-size:12px;color:#82548e}
.auth-recovery-stage{padding:0;min-height:0}.auth-recovery-card{width:100%;padding:32px}
.auth-footer{background:transparent;border:0;color:#97879e;font-size:11px}
@media(min-width:901px){.studio-shell .studio-sidebar{position:sticky;top:0;height:100dvh;overflow-y:auto}}
@media(max-width:1100px){.studio-content{padding:22px}.auth-content{gap:20px;padding:24px}.auth-story{padding:12px}.vibe-studio-root .vibe-workspace{grid-template-columns:1fr}.models-frontier-grid,.models-signal-grid{grid-template-columns:1fr}}
@media(max-width:900px){.auth-content{grid-template-columns:1fr;max-width:600px}.auth-story{padding:0 12px;text-align:center;max-width:none}.auth-story h2{font-size:28px;margin-bottom:8px}.auth-story-kicker{margin-bottom:10px}.auth-story p{font-size:13px}.auth-story-tiles{display:none}.studio-content{padding:20px 16px 36px}.page-title-row h2{font-size:25px}.page-title-row{align-items:start}.project-home .project-cockpit-hero{padding:24px}.project-home .project-cockpit-hero h1{font-size:26px}.studio-content .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-content div[style*="grid-template-columns: 1fr 1fr"],.studio-content div[style*="grid-template-columns: 1.1fr 0.9fr"]{grid-template-columns:minmax(0,1fr)!important}.builder-layout,.playground-shell{grid-template-columns:1fr}.active-project-header-bar,.project-credits-status-banner{flex-wrap:wrap}}
@media(max-width:600px){.studio-content{padding:18px 12px 30px}.page-title-row{padding-top:4px;gap:14px;margin-bottom:20px}.page-title-row p{font-size:13px}.page-actions{width:100%}.studio-content .card{padding:18px}.studio-content .metric-grid{gap:10px}.studio-table{min-width:580px}.project-home .project-tabs{flex-direction:column}.product-grid,.project-cards-grid,.avatar-manager-grid,.knowledge-grid,.capability-grid{grid-template-columns:minmax(0,1fr)!important}.products-page .products-hero{padding:24px!important}.products-page .products-hero h1{font-size:27px}.auth-header{padding:16px 20px}.auth-content{padding:16px;gap:22px}.auth-story h2{font-size:25px}.auth-form-region .login-card,.auth-form-region .signup-card,.auth-form-region .card{padding:24px;border-radius:22px}.auth-form-region .signup-form{grid-template-columns:1fr}.auth-footer{padding:20px;gap:8px;flex-wrap:wrap}.vibe-studio-root .vibe-header{padding:16px}.product-workbench__footer{flex-wrap:wrap;gap:14px}.project-dialog-overlay .project-dialog{border-radius:22px}}
.media-page .results-gallery,.product-studio .results-gallery{border:1px solid var(--line-light);border-radius:22px;background:#fcfafe}
.media-page .media-canvas{border-color:var(--line);border-radius:18px}.media-page .canvas-toolbar{background:#f7f3fa;border-color:var(--line-light)}
.media-page .canvas-stage{background-color:#f1edf6;background-image:radial-gradient(#d4c8df .8px,transparent .8px)}
.product-studio .product-picker button{border-color:var(--line);border-radius:14px;background:#fff}
.product-studio .product-picker button.selected{background:#f0e6f6;color:#70416c;border-color:#c6afd4}
@media(max-width:900px){.studio-shell .mobile-nav-toggle{inset-inline-start:16px;inset-inline-end:auto}.studio-shell .studio-header{padding-inline-start:66px;padding-inline-end:18px}.studio-shell .header-right{margin-inline-start:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Saved project identity: scoped to the project URL, never to admin or other projects. */
.studio-shell.project-branded{--gold:var(--project-primary);--gold-hover:var(--project-primary);--gold-light:color-mix(in srgb,var(--project-primary) 8%,white);--sidebar-active:var(--gold-light)}
.studio-shell.project-branded .studio-canvas{background:radial-gradient(ellipse at top right,color-mix(in srgb,var(--project-accent) 10%,white),transparent 65%),color-mix(in srgb,var(--project-primary) 3%,white)}
.studio-shell.project-branded :is(.btn-gold,.btn-primary,.btn-gold-large,.btn-project-plus-product){background:var(--project-primary);color:var(--project-on-primary);border-color:var(--project-primary)}
.studio-shell.project-branded :is(.active-project-header-bar,.product-heading){background:linear-gradient(110deg,color-mix(in srgb,var(--project-primary) 9%,white),color-mix(in srgb,var(--project-accent) 12%,white));border-color:color-mix(in srgb,var(--project-primary) 20%,white);border-inline-start:4px solid var(--project-primary);border-radius:20px;padding:22px}
.studio-shell.project-branded :is(.project-header-logo,.project-card-logo){background:var(--project-primary)!important;color:var(--project-on-primary)!important}
.studio-shell.project-branded .project-header-logo:has(img){background:white!important;padding:5px}
.studio-shell.project-branded :is(.project-tab-btn.active,.product-picker button.selected,.sidebar-link.active){background:var(--project-primary);color:var(--project-on-primary);border-color:var(--project-primary)}
.studio-shell.project-branded .sidebar-link.active i{color:inherit}
.studio-shell.project-branded :is(input,textarea,select):focus-visible{outline:2px solid var(--project-primary);outline-offset:3px}
.studio-shell .cockpit-project-card{border-top:4px solid var(--project-primary);background:linear-gradient(155deg,color-mix(in srgb,var(--project-primary) 7%,white),white 55%)}
.studio-shell .cockpit-project-card .open-cta{background:var(--project-primary);color:var(--project-on-primary);padding:9px 15px;border-radius:12px}
.brand-completion{display:flex;align-items:center;flex-wrap:wrap;gap:16px;border:1px solid color-mix(in srgb,var(--project-primary) 20%,white);border-radius:20px;padding:20px;margin:20px 0;background:color-mix(in srgb,var(--project-accent) 8%,white);color:#302b35}
.brand-completion>div{flex:1;min-width:220px}.brand-completion p{font-size:13px;line-height:1.8;margin:5px 0 0;color:#655b6b}.brand-completion>a{white-space:nowrap;text-decoration:none}
.studio-shell.project-branded .brand-reference-panel{border:1px solid color-mix(in srgb,var(--project-primary) 24%,white);background:color-mix(in srgb,var(--project-primary) 4%,white);border-radius:16px;padding:18px;scroll-margin-top:100px}
.project-identity-ribbon{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px;border-radius:16px;padding:12px 16px;background:var(--project-primary);color:var(--project-on-primary)}
.project-identity-ribbon>img{width:42px;height:42px;object-fit:contain;background:white;border-radius:12px;padding:4px}.identity-monogram{font-size:24px}
.project-identity-ribbon>a{font-weight:700;color:inherit;text-decoration:none}.project-identity-ribbon>span{font-size:13px}
.project-identity-ribbon>button{margin-inline-start:auto;background:transparent;color:inherit;border:1px solid currentColor;border-radius:10px;padding:8px 12px;cursor:pointer}
/* Project overview: clear wallet, one identity header, compact onboarding. */
.studio-shell.project-branded .project-credits-status-banner{background:#fff;color:#302c35;border:1px solid #dedee4;padding:10px 16px;gap:12px}
.studio-shell.project-branded .project-credits-status-banner :is(.credits-label,.wallet-balance-note,.credits-icon){color:#57515e}
.studio-shell.project-branded .project-credits-status-banner strong{color:#24212a;font-variant-numeric:tabular-nums}
.studio-shell.project-branded .credits-badge-spent{background:#f4f5f7;border-color:#dce0e5;color:#57515e}
.studio-shell.project-branded .btn-sm-refill{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;background:var(--project-primary);color:var(--project-on-primary);border-radius:9px}
.studio-shell.project-branded .active-project-header-bar{padding:20px;border-inline-start-width:3px}
.project-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.studio-shell.project-branded .project-header-left{min-width:0;flex-wrap:wrap;gap:12px}
.studio-shell.project-branded .project-header-logo{flex-shrink:0;width:48px;height:48px}
.studio-shell.project-branded .project-header-logo img{object-fit:contain}
.studio-shell.project-branded .project-header-sub{display:block;margin-top:6px;color:#625b68;font-size:13px}
.studio-shell.project-branded :is(.btn-edit-badge,.btn-back-projects){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;background:#fff;color:#49424f;border:1px solid #dcd7e0;border-radius:10px;font-size:12px}
.studio-shell.project-branded .btn-project-plus-product{box-shadow:none;min-height:44px}
.studio-shell.project-branded .plus-icon{color:inherit}
.studio-shell.project-branded .brand-completion{margin:0;padding:16px;gap:12px;background:white}
.studio-shell.project-branded .brand-completion>svg{flex-shrink:0;align-self:flex-start;margin-top:4px}
.studio-shell.project-branded .brand-completion>div{min-width:180px}
.studio-shell.project-branded .brand-completion :is(.btn-gold,.btn-secondary){min-height:40px;padding:9px 14px;font-size:12px}
.studio-shell.project-branded .brand-completion p{max-width:65ch;font-size:12px;line-height:1.8}
@media(max-width:600px){.studio-shell.project-branded .credits-left,.studio-shell.project-branded .credits-right{flex-wrap:wrap}.studio-shell.project-branded .project-header-right{width:100%}.studio-shell.project-branded .btn-project-plus-product{width:100%;justify-content:center}.studio-shell.project-branded .brand-completion>div{flex-basis:calc(100% - 40px)}.studio-shell.project-branded .project-header-titles{flex:1;min-width:170px}}
/* Visual introduction to the three services. */
.auth-content .auth-story{max-width:none;padding:12px 0}
.auth-content .auth-story h2{font-size:clamp(28px,3vw,40px);line-height:1.5;margin-bottom:12px}
.auth-content .auth-story>p{font-size:14px;line-height:1.9;margin-bottom:28px}
.auth-service-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.auth-service-gallery figure{margin:0;min-width:0;background:#fff;border:1px solid #ffffff;border-radius:20px;overflow:hidden;box-shadow:0 12px 32px #583b6310}
.auth-service-gallery figure:nth-child(2){margin-top:26px}
.auth-service-gallery img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.auth-service-gallery figcaption{padding:12px 6px;text-align:center;font-size:14px;font-weight:600;color:#503856}
@media(min-width:901px){.auth-content{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:40px;max-width:1200px}}
@media(max-width:900px){.auth-content .auth-story{padding:0 8px}.auth-content .auth-story>p{margin:0 0 16px}.auth-service-gallery{max-width:440px;margin:0 auto;gap:10px}.auth-service-gallery figure:nth-child(2){margin-top:0}.auth-service-gallery img{aspect-ratio:1.4;object-fit:cover}.auth-service-gallery figcaption{padding:7px;font-size:12px}.auth-service-gallery figure{border-radius:14px}}
/* Project gallery and its native, keyboard-accessible detail dialog. */
.studio-shell.project-branded .product-studio .results-gallery{background:color-mix(in srgb,var(--project-primary) 3%,white);border:1px solid color-mix(in srgb,var(--project-primary) 18%,white);border-radius:22px;padding:24px}
.product-studio .results-gallery .media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gallery-card{min-width:0;border:1px solid #e6e2e9;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 6px 20px #28203306}
.gallery-cover{display:block;position:relative;width:100%;aspect-ratio:1;padding:0;border:0;background:color-mix(in srgb,var(--project-primary,#70416c) 8%,white);cursor:pointer;overflow:hidden}
.gallery-cover img,.gallery-cover video{display:block;width:100%;height:100%;object-fit:cover;margin:0;max-height:none}
.gallery-cover img:not([src]),.gallery-cover video:not([src]){visibility:hidden}
.gallery-open{position:absolute;bottom:12px;inset-inline:12px;text-align:center;border-radius:10px;padding:8px;background:var(--project-primary,#70416c);color:var(--project-on-primary,white);font-size:12px;opacity:0;transition:opacity .15s}
.gallery-cover:hover .gallery-open,.gallery-cover:focus-visible .gallery-open{opacity:1}
.gallery-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:#00000012;pointer-events:none}
.gallery-play svg{width:40px;height:40px;background:#0009;border-radius:50%;padding:10px}
.gallery-caption{padding:13px 15px;display:grid;gap:7px}.gallery-caption strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#332c3b}.gallery-caption span{font-size:11px;color:#746a7b}
.gallery-detail{width:min(1040px,94vw);max-height:90dvh;padding:0;border:1px solid #e1dce7;border-radius:24px;color:#302837;background:#fff;box-shadow:0 25px 80px #0003}
.gallery-detail::backdrop{background:#16111cb3;backdrop-filter:blur(6px)}
.gallery-detail>header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #ece8ef;background:color-mix(in srgb,var(--project-primary,#70416c) 6%,white)}
.gallery-detail h2{font-size:20px;margin:0}.gallery-detail h3{font-size:14px;margin:16px 0 8px}
.gallery-detail-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;padding:22px}
.gallery-detail-preview{background:color-mix(in srgb,var(--project-primary,#70416c) 5%,white);display:grid;place-items:center;border-radius:16px;min-height:240px;align-self:start;overflow:hidden}
.gallery-detail-preview :is(img,video){display:block;width:100%;max-height:65vh;object-fit:contain;margin:0}
.gallery-detail-info{min-width:0}.gallery-detail-info .gallery-prompt{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:13px;color:#4f4658}
.gallery-detail-info dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.gallery-detail-info dt{font-size:11px;color:#736b7c}.gallery-detail-info dd{margin:5px 0 0;font-size:13px;overflow-wrap:anywhere}
.gallery-detail-info small{display:block;overflow-wrap:anywhere}.gallery-detail-info summary{cursor:pointer;font-size:13px;padding:10px 0}
.gallery-file-info{font-size:12px;color:#665b70;line-height:1.8}.gallery-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.gallery-detail-actions a{text-decoration:none}
.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:22px}
.studio-shell.project-branded .product-studio .product-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.studio-shell.project-branded .product-studio .product-picker :is(button,a){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px 8px;min-height:100px;border:1px solid #e1dce5;border-radius:15px;background:#fff;color:#4e4656;font-size:12px;text-decoration:none;text-align:center;box-shadow:none}
.studio-shell.project-branded .product-studio .product-picker svg{width:24px;height:24px}
.studio-shell.project-branded .product-studio .product-picker .selected{background:var(--project-primary);color:var(--project-on-primary);border-color:var(--project-primary)}
@media(max-width:800px){.product-studio .results-gallery .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-detail-grid{grid-template-columns:1fr}.gallery-detail-preview :is(img,video){max-height:45vh}.studio-shell.project-branded .product-studio .product-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.product-studio .results-gallery .media-grid{gap:10px}.gallery-caption{padding:10px}.gallery-open{display:none}.gallery-detail-grid{padding:14px}.studio-shell.project-branded .product-studio .product-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.gallery-open{transition:none}}
.gallery-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#615869}
.gallery-cover:has([src]) .gallery-loading{display:none}
.gallery-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0}
.gallery-filters button{border:1px solid #e0dbe5;border-radius:20px;background:#fff;color:#51475b;padding:8px 18px;font-size:12px;cursor:pointer}
.gallery-filters button.selected{background:var(--project-primary,#70416c);color:var(--project-on-primary,white);border-color:var(--project-primary,#70416c)}
.gallery-filters>span{margin-inline-start:auto;font-size:12px;color:#726879}
.gallery-detail{inset:0;margin:auto}.gallery-detail-actions [hidden]{display:none!important}
/* Project navigation follows the same identity as the workspace. */
.studio-shell.project-branded .project-home .project-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:4px 0 0;padding:5px;gap:6px;border:1px solid color-mix(in srgb,var(--project-primary) 18%,white);background:color-mix(in srgb,var(--project-primary) 5%,white);border-radius:16px}
.studio-shell.project-branded .project-home .project-tab-btn{min-width:0;min-height:48px;padding:12px 16px;gap:10px;border-radius:11px;color:#554d5d;background:transparent;font-size:14px;line-height:1.5;box-shadow:none}
.studio-shell.project-branded .project-home .project-tab-btn:hover{background:color-mix(in srgb,var(--project-primary) 10%,white);color:#302b35}
.studio-shell.project-branded .project-home .project-tab-btn.active{background:var(--project-primary);color:var(--project-on-primary);box-shadow:0 3px 10px #0000000b}
.studio-shell.project-branded .project-home .project-tab-btn::after{content:none}
.studio-shell.project-branded .project-home .project-tab-btn svg{width:20px;height:20px;flex-shrink:0;color:inherit}
.studio-shell.project-branded .project-home .project-tab-btn:focus-visible{outline:2px solid var(--project-primary);outline-offset:3px}
.studio-shell.project-branded .project-home .tab-badge-count{background:#ffffff30;color:inherit;border-radius:7px;padding:2px 6px}
@media(max-width:600px){.studio-shell.project-branded .project-home .project-tab-btn{font-size:12px;padding:10px 8px;gap:6px}.studio-shell.project-branded .project-home .project-tabs{gap:4px}.studio-shell.project-branded .project-home .project-tab-btn svg{width:18px;height:18px}}
/* A single identity group and a separate, aligned action group. */
.project-overview-back{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;color:#63596d;text-decoration:none;font-size:12px;padding:4px 0}
.project-overview-back:hover{text-decoration:underline}
.studio-shell.project-branded .project-home .active-project-header-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-inline-start-width:1px;border-radius:18px}
.studio-shell.project-branded .project-home .project-header-left{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;flex:1;min-width:0}
.studio-shell.project-branded .project-home .project-header-titles{min-width:0;flex:1}
.studio-shell.project-branded .project-home .project-title-row{display:block}
.studio-shell.project-branded .project-home .project-header-titles h2{font-size:23px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.studio-shell.project-branded .project-home .project-header-sub{font-size:12px;margin-top:5px;line-height:1.6}
.studio-shell.project-branded .project-home .project-header-logo{width:52px;height:52px;border-radius:15px;font-size:18px}
.studio-shell.project-branded .project-home .project-header-right{display:flex;align-items:center;gap:10px;flex-shrink:0;width:auto}
.studio-shell.project-branded .project-home .project-header-right :is(.btn-edit-badge,.btn-project-plus-product){height:42px;min-height:42px;margin:0;padding:10px 16px;font-size:13px;border-radius:11px;white-space:nowrap}
@media(max-width:680px){.studio-shell.project-branded .project-home .active-project-header-bar{padding:16px;gap:16px;flex-direction:column;align-items:stretch}.studio-shell.project-branded .project-home .project-header-right{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}.studio-shell.project-branded .project-home .project-header-titles h2{font-size:20px}.studio-shell.project-branded .project-home .project-header-right :is(.btn-edit-badge,.btn-project-plus-product){width:100%;justify-content:center;padding:10px 8px;font-size:12px}}
/* Compact, sequential composer. */
.studio-shell.project-branded .product-studio .media-compose{padding:24px;display:flex;flex-direction:column;gap:18px}
.studio-shell.project-branded .product-studio .media-compose .product-heading{background:none;border:0;border-radius:0;padding:0;margin:0}
.studio-shell.project-branded .product-studio .product-heading h2{font-size:23px;line-height:1.5;margin:0 0 5px}
.studio-shell.project-branded .product-studio .product-heading p{font-size:13px;line-height:1.8;margin:0;color:#746a7e}
.compose-step-label{display:flex;align-items:center;gap:8px;color:#443b4e;font-size:13px;font-weight:600}
.compose-step-label>span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px;background:color-mix(in srgb,var(--project-primary,#70416c) 9%,white);font-size:10px;color:#4b4355}
.studio-shell.project-branded .product-studio .product-picker{margin:0;gap:8px}
.studio-shell.project-branded .product-studio .product-picker :is(button,a){flex-direction:row;min-height:58px;padding:12px 8px;font-size:12px;gap:8px;border-radius:12px}
.studio-shell.project-branded .product-studio .product-picker svg{width:20px;height:20px;flex-shrink:0}
.studio-shell.project-branded .product-studio .compose-prompt{margin:0}
.studio-shell.project-branded .product-studio .compose-prompt textarea{min-height:110px;max-height:300px;margin-top:10px;border:1px solid #dcd8e2;background:#fff;border-radius:14px;padding:14px;font-size:14px;line-height:1.8}
.studio-shell.project-branded .product-studio .brand-reference-panel{margin:0;padding:14px 16px;border-radius:14px;background:color-mix(in srgb,var(--project-primary) 3%,white)}
.studio-shell.project-branded .product-studio .brand-reference-panel summary{padding:0;font-size:13px;font-weight:600;cursor:pointer;line-height:1.7}
.studio-shell.project-branded .product-studio .brand-reference-panel p{font-size:12px;line-height:1.8;margin:10px 0 12px}
.reference-upload-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.product-studio .reference-upload-button{position:relative;display:inline-flex;align-items:center;gap:8px;overflow:hidden;padding:9px 14px;margin:0;min-height:40px;background:white;border:1px solid #d6d0df;border-radius:10px;color:#493e52;font-size:12px;cursor:pointer}
.reference-upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.reference-upload-button:focus-within{outline:2px solid var(--project-primary);outline-offset:3px}.reference-upload-button:has(input:disabled){opacity:.5;cursor:not-allowed}
.reference-upload-row small{font-size:11px;color:#736879}.reference-upload-row small:last-child{margin-inline-start:auto}
.reference-selection{display:flex;flex-wrap:wrap;gap:8px}.reference-selection>label{display:flex;gap:8px;align-items:center;padding:8px 10px;background:#fff;border:1px solid #ddd8e4;border-radius:10px;font-size:12px;max-width:100%}
.reference-selection input{accent-color:var(--project-primary)}.reference-selection span{overflow-wrap:anywhere}
.product-studio .compose-options{border-top:1px solid #ece8ef;padding-top:4px}.product-studio .compose-options summary{font-size:13px;color:#62566e}
.compose-submit-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #ece8ef;padding-top:16px}
.product-studio .compose-submit-row p{margin:0;font-size:12px;flex:1;min-width:160px;line-height:1.8}
.compose-submit-row>.btn-gold{min-width:150px;margin:0;min-height:44px}
@media(max-width:600px){.studio-shell.project-branded .product-studio .media-compose{padding:16px;gap:16px}.studio-shell.project-branded .product-studio .product-heading h2{font-size:20px}.studio-shell.project-branded .product-studio .product-picker :is(button,a){justify-content:flex-start}.compose-submit-row>.btn-gold{width:100%}.reference-upload-row small:last-child{margin-inline-start:0}}
/* Sidebar: one scrolling region, consistent navigation and compact footer. */
.studio-shell .studio-sidebar.studio-sidebar-claude{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden;background:#fff}
.studio-shell .sidebar-brand{flex-shrink:0;padding:20px 18px 16px;gap:10px}
.studio-shell .sidebar-brand .brand-text{min-width:0}.studio-shell .sidebar-brand h1{font-size:14px;line-height:1.6;margin:0}.studio-shell .sidebar-brand .brand-text>span{font-size:11px;line-height:1.6}
.studio-shell .sidebar-brand img{width:36px;height:36px;object-fit:contain;flex-shrink:0}
.studio-shell .sidebar-top-action{flex-shrink:0;padding:0 14px 12px}
.studio-shell .btn-sidebar-new{height:42px;min-height:42px;border-radius:11px;font-size:13px;box-shadow:none}
.studio-shell .btn-sidebar-new .btn-new-icon{color:inherit;font-size:19px}
.studio-shell .sidebar-nav{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 12px 16px;gap:18px;scrollbar-width:thin;scrollbar-color:#ded8e3 transparent;overscroll-behavior:contain}
.studio-shell .sidebar-main-menu{margin:0;padding:0;display:flex;flex-direction:column;gap:4px;flex-shrink:0}
.studio-shell .sidebar-links{list-style:none}
.studio-shell .sidebar-link{display:flex;align-items:center;justify-content:flex-start;min-height:42px;padding:9px 12px;gap:10px;font-size:13px;line-height:1.5;border-radius:10px}
.studio-shell .sidebar-link i{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;font-style:normal}
.studio-shell .sidebar-link svg{width:19px;height:19px}
.studio-shell .sidebar-tree-section{margin:0;padding:14px 0 0;border-top:1px solid #ece8f0;gap:8px;flex-shrink:0}
.studio-shell .sidebar-tree-header{padding:0 8px}.studio-shell .tree-title{font-size:11px;font-weight:600;color:#85798f;letter-spacing:0}
.studio-shell .btn-tree-add{width:28px;height:28px;background:#fff;border:1px solid #e4dfe8;border-radius:8px;color:#625569;font-size:17px}
.studio-shell .sidebar-project-header{min-height:38px;padding:9px 11px;gap:9px;font-size:12px}
.studio-shell .sidebar-project-item.is-active .sidebar-project-header{background:color-mix(in srgb,var(--project-primary,#70416c) 8%,white);color:#39303f;box-shadow:none}
.studio-shell .sidebar-project-creations{padding:5px 10px 4px 0;padding-inline-start:26px;gap:3px}
.studio-shell .sidebar-creation-pill-btn{background:none;border:0;border-radius:8px;color:#62556c;padding:7px 4px;font-size:11px;text-decoration:none;gap:6px;line-height:1.5}
.studio-shell .sidebar-creation-pill-btn svg{width:15px;height:15px;flex-shrink:0}
.studio-shell .sidebar-creation-pill-btn:hover{background:#f6f3f8}
.studio-shell .sidebar-more-tools{flex-shrink:0;margin-top:0;border-top:1px solid #eeeaf2;padding-top:10px}
.studio-shell .sidebar-more-tools summary{padding:9px 8px;font-size:11px;cursor:pointer}
.studio-shell .sidebar-footer{flex-shrink:0;padding:12px;border-top:1px solid #ece8f0;background:#fff}
.studio-shell .wallet-pill{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:0 0 10px;border-radius:12px;background:#f7f5f9}
.studio-shell .wallet-pill>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.studio-shell .wallet-pill span{font-size:10px;color:#7b6e83}
.studio-shell .wallet-pill strong{font-size:14px;color:#403449;line-height:1.3;font-variant-numeric:tabular-nums}
.sidebar-wallet-add{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border:1px solid #ded6e5;border-radius:9px;color:#61506e;background:white;text-decoration:none}
.sidebar-wallet-add svg{width:16px;height:16px}
.studio-shell .user-snippet{display:flex;align-items:center;gap:10px;padding:4px}
.studio-shell .user-avatar{width:34px;height:34px;flex-shrink:0;border-radius:10px;font-size:12px}
.studio-shell .user-info{min-width:0;display:grid;gap:2px}
.studio-shell .user-info strong{font-size:12px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-shell .user-info small{font-size:10px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-shell .studio-sidebar :is(a,button,summary):focus-visible{outline:2px solid var(--project-primary,#70416c);outline-offset:2px}
@media(max-height:650px){.studio-shell .sidebar-brand{padding:12px 16px}.studio-shell .sidebar-footer{padding:8px 12px}.studio-shell .wallet-pill{padding:7px 10px;margin-bottom:6px}}
/* Image-only cards arranged as an overlapping stack. */
.auth-content .auth-service-gallery{position:relative;display:block;width:100%;max-width:510px;height:390px;margin:32px auto 12px;isolation:isolate}
.auth-content .auth-service-gallery figure{position:absolute;width:62%;aspect-ratio:1;margin:0;border:4px solid #fff;border-radius:24px;overflow:hidden;box-shadow:0 18px 42px #49305120}
.auth-content .auth-service-gallery figure:nth-child(1){top:0;left:4%;transform:rotate(-9deg);z-index:1}
.auth-content .auth-service-gallery figure:nth-child(2){top:32px;right:2%;transform:rotate(8deg);z-index:2}
.auth-content .auth-service-gallery figure:nth-child(3){top:78px;left:19%;transform:rotate(-2deg);z-index:3}
.auth-content .auth-service-gallery img{width:100%;height:100%;aspect-ratio:1;object-fit:cover}
@media(max-width:900px){.auth-content .auth-service-gallery{max-width:320px;height:250px;margin:20px auto 12px}.auth-content .auth-service-gallery figure{border-width:3px;border-radius:18px}.auth-content .auth-service-gallery figure:nth-child(2){top:20px}.auth-content .auth-service-gallery figure:nth-child(3){top:48px}}
.studio-shell.project-branded .project-home .project-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.studio-shell.project-branded .project-home a.project-tab-btn{text-decoration:none}
.studio-shell.project-branded .product-studio .product-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:600px){.studio-shell.project-branded .product-studio .product-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* One compact project profile: identity, assets, and wallet. */
.studio-shell .project-profile{border:1px solid color-mix(in srgb,var(--project-primary,#70416c) 18%,white);border-radius:22px;background:linear-gradient(115deg,color-mix(in srgb,var(--project-primary,#70416c) 5%,white),white);padding:16px 22px 22px;margin:0 0 20px;}
.studio-shell .project-profile-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;}
.studio-shell .project-profile a{text-decoration:none;}
.studio-shell .profile-back{display:inline-flex;gap:8px;align-items:center;color:#716a78;font-size:12px;}
.studio-shell .profile-wallet{display:inline-flex;align-items:center;gap:8px;color:#625b68;font-size:12px;}
.studio-shell .profile-wallet strong{color:#332c3b;font-size:13px;font-variant-numeric:tabular-nums;}
.studio-shell .profile-wallet svg{width:17px;height:17px;}
.studio-shell .profile-wallet-add{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:color-mix(in srgb,var(--project-primary,#70416c) 10%,white);color:var(--project-primary,#70416c);font-size:19px;}
.studio-shell .project-profile-main{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.studio-shell .profile-identity{display:flex;align-items:center;gap:18px;min-width:0;}
.studio-shell .profile-avatar{position:relative;display:grid;place-items:center;width:80px;height:80px;flex:0 0 80px;padding:0;border:3px solid white;border-radius:22px;background:var(--project-primary,#70416c);color:var(--project-on-primary,white);box-shadow:0 3px 14px #29203210;cursor:pointer;font-size:25px;}
.studio-shell .profile-avatar img{width:100%;height:100%;object-fit:contain;border-radius:19px;background:white;}
.studio-shell .profile-avatar-edit{position:absolute;bottom:-5px;inset-inline-end:-5px;display:grid;place-items:center;width:26px;height:26px;border:2px solid white;border-radius:50%;background:var(--project-primary,#70416c);color:var(--project-on-primary,white);}
.studio-shell .profile-avatar-edit svg{width:13px;height:13px;}
.studio-shell .profile-info{min-width:0;}
.studio-shell .profile-name-row{display:flex;align-items:center;gap:10px;}
.studio-shell .profile-name-row h2{margin:0;font-size:25px;line-height:1.4;overflow-wrap:anywhere;color:#302a36;}
.studio-shell .profile-edit{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #e4e0e8;border-radius:10px;background:white;color:#625b68;cursor:pointer;}
.studio-shell .profile-edit svg{width:18px;height:18px;}
.studio-shell .profile-info p{margin:6px 0 0;color:#716a78;font-size:13px;}
.studio-shell .profile-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.studio-shell .profile-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border-radius:12px;font-size:13px;font-weight:650;white-space:nowrap;}
.studio-shell .profile-actions svg{width:18px;height:18px;}
.studio-shell .profile-photos{background:white;border:1px solid #e3dfe8;color:#514857;}
.studio-shell .profile-create{background:var(--project-primary,#70416c);color:var(--project-on-primary,white);border:1px solid transparent;}
.studio-shell .project-profile :is(a,button):focus-visible{outline:3px solid var(--project-primary,#70416c);outline-offset:4px;}
@media(max-width:700px){.studio-shell .project-profile{padding:14px 16px 18px;}.studio-shell .project-profile-main{flex-direction:column;align-items:stretch;gap:20px;}.studio-shell .profile-avatar{width:64px;height:64px;flex-basis:64px;border-radius:18px;}.studio-shell .profile-name-row h2{font-size:21px;}.studio-shell .profile-actions{display:grid;grid-template-columns:1fr 1fr;}.studio-shell .profile-wallet{gap:5px;font-size:11px;}.studio-shell .profile-identity{gap:14px;}}
/* Keep creation immediately below the compact project profile. */
.studio-shell .project-home .in-project-workspace{gap:16px;}
.studio-shell .project-home .project-profile{margin-bottom:0;padding-top:12px;padding-bottom:16px;}
.studio-shell .project-home .project-profile-top{margin-bottom:12px;}
.studio-shell .project-home .product-studio{margin-top:0;padding-top:0;}
.studio-shell .project-home .product-studio .media-compose{padding:20px;gap:14px;}
/* Project identity remains present across every project service. */
.studio-shell .project-frame-nav{display:flex;align-items:center;gap:6px;margin:8px 0 18px;padding:0;flex-wrap:wrap;}
.studio-shell .project-frame-nav a{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:10px;text-decoration:none;font-size:13px;color:#68606f;}
.studio-shell .project-frame-nav a.active{background:color-mix(in srgb,var(--project-primary,#70416c) 12%,white);color:var(--project-primary,#70416c);font-weight:700;}
.studio-shell .project-frame-nav svg{width:17px;height:17px;}
.studio-shell .project-profile{margin-bottom:0;padding-top:12px;padding-bottom:16px;}
.studio-shell .project-profile-top{margin-bottom:12px;}
.project-product-dialog{width:min(880px,calc(100vw - 32px));max-height:85dvh;border:1px solid #e8e2ed;border-radius:24px;padding:26px;background:#fdfcfe;color:#342c3e;box-shadow:0 28px 100px #21112840;position:fixed;inset:0;margin:auto;}
.project-product-dialog::backdrop{background:#211b2b66;backdrop-filter:blur(5px);}
.project-product-dialog header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:22px;}
.project-product-dialog h2{margin:0;font-size:24px;}.project-product-dialog p{margin:7px 0 0;color:#7b7284;font-size:13px;}
.project-product-dialog header>button{border:0;border-radius:50%;width:36px;height:36px;background:#efebf3;font-size:24px;cursor:pointer;}
.project-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.project-product-grid>button{display:flex;flex-direction:column;align-items:start;gap:9px;text-align:start;border:1px solid #e8e2ed;border-radius:16px;padding:18px;background:white;cursor:pointer;color:inherit;}
.project-product-grid>button:hover{border-color:var(--project-primary,#70416c);background:color-mix(in srgb,var(--project-primary,#70416c) 5%,white);}
.project-product-grid>button:focus-visible{outline:3px solid var(--project-primary,#70416c);outline-offset:2px;}.project-product-grid strong{font-size:14px;}.project-product-grid button>span:last-child{font-size:12px;color:#7b7284;}
.catalog-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:var(--project-primary,#70416c);background:color-mix(in srgb,var(--project-primary,#70416c) 10%,white);}.catalog-symbol svg{width:21px;height:21px;}
@media(max-width:600px){.project-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.project-product-dialog{padding:18px;}.studio-shell .profile-actions{display:flex;flex-wrap:wrap;}}
.studio-shell.project-branded .product-studio .product-picker{grid-template-columns:repeat(5,minmax(0,1fr));}
.studio-shell.project-branded .product-studio .product-picker .more-products{border-style:dashed;color:var(--project-primary,#70416c);background:color-mix(in srgb,var(--project-primary,#70416c) 4%,white);}
@media(max-width:800px){.studio-shell.project-branded .product-studio .product-picker{grid-template-columns:repeat(2,minmax(0,1fr));}.studio-shell.project-branded .product-studio .product-picker .more-products{grid-column:1 / -1;justify-content:center;}}
/* Shared product workspace: compact headings and project-colour surfaces. */
.studio-shell.project-branded .builder-page{max-width:none;width:100%;margin:0;padding:0;}
.studio-shell.project-branded .builder-head{min-height:0;gap:16px;margin:16px 0!important;padding:4px 0 16px!important;border-color:color-mix(in srgb,var(--project-primary) 16%,white);}
.studio-shell.project-branded .builder-head__title h1{font-size:25px!important;line-height:1.45!important;color:#342c3e!important;}
.studio-shell.project-branded .builder-head__title p{font-size:13px!important;color:#746a7e!important;}
.studio-shell.project-branded .builder-back{width:38px;height:38px;flex-basis:38px;background:white;border:1px solid #e6e0ea;color:var(--project-primary);}
.studio-shell.project-branded .builder-layout{align-items:start;gap:18px!important;}
.studio-shell.project-branded :is(.builder-form,.builder-preview){border:1px solid color-mix(in srgb,var(--project-primary) 16%,white);border-radius:18px!important;min-height:0;box-shadow:0 6px 24px #30243b04;}
.studio-shell.project-branded .builder-preview{background:color-mix(in srgb,var(--project-primary) 4%,white)!important;}
.studio-shell.project-branded .builder-preview:before{display:none;}
.studio-shell.project-branded .builder-empty-state{background:transparent;min-height:340px;}
.studio-shell.project-branded .builder-empty-state__icon{background:white;border-color:color-mix(in srgb,var(--project-primary) 20%,white);color:var(--project-primary);}
.studio-shell.project-branded :is(.preview-empty-eyebrow,.product-kicker,.builder-brand-chip,.builder-brand-note .studio-icon){color:var(--project-primary);}
.studio-shell.project-branded .builder-submit{background:var(--project-primary)!important;color:var(--project-on-primary)!important;border:1px solid var(--project-primary)!important;box-shadow:none;}
.studio-shell.project-branded .builder-form .form-control:focus{border-color:var(--project-primary)!important;outline:2px solid color-mix(in srgb,var(--project-primary) 18%,transparent);outline-offset:1px;}
@media(max-width:700px){.studio-shell.project-branded .builder-head__title h1{font-size:21px!important;}.studio-shell.project-branded .builder-preview{order:1;}.studio-shell.project-branded .builder-form{order:0;}.studio-shell.project-branded .builder-empty-state{min-height:240px;}}
.studio-shell.project-branded .builder-inline .builder-layout{display:flex!important;flex-direction:column;gap:18px!important;}
.studio-shell.project-branded .builder-inline .builder-form{width:100%;padding:0!important;background:transparent;border:0;box-shadow:none;min-height:0;}
.studio-shell.project-branded .builder-inline .builder-progress{display:none!important;}
.studio-shell.project-branded .builder-inline .builder-preview{width:100%;position:static;min-height:0;}
.studio-shell.project-branded .builder-inline .builder-submit{min-height:44px;border-radius:12px;}
.inline-product-name{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--project-primary);padding:8px 0;}.inline-product-name svg{width:19px;height:19px;}
.studio-shell.project-branded .product-studio .product-picker .more-products.selected{background:var(--project-primary);color:var(--project-on-primary);border-style:solid;}
