/* Full viewport shell and compact, native-swipe Studio pages. */
html{min-height:100%;background:#070707;scroll-padding-top:90px}
body{margin:0;padding:0;min-height:100vh;min-height:100dvh}
.app{width:100%;max-width:none;min-height:100vh;min-height:100dvh;margin:0;border-radius:0;box-shadow:none;overflow:clip}
header{width:100%;gap:8px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top))}
header>div:first-child{margin-right:auto;min-width:0}
.logo{font-size:clamp(20px,5.5vw,25px);white-space:nowrap}
.tag{font-size:8px;white-space:nowrap}
header .credits{padding:6px 8px;font-size:10px;white-space:nowrap}
.auth-header-btn{min-height:36px;padding:7px 9px}
header .avatar{width:32px;height:32px;margin-left:0}
.fullscreen-button{flex:0 0 36px;min-height:36px;border:1px solid #72571d;border-radius:12px;background:#17130c;color:var(--gold2);font-size:22px;line-height:1}
.fullscreen-button:focus-visible,.text-button:focus-visible,.studio-page-button:focus-visible,.studio-dot:focus-visible,.studio-track:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}
#screen{min-height:calc(100vh - 150px)}
#screen>main{width:100%;max-width:1120px;margin:auto;padding:18px max(16px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.bottom{left:0;transform:none;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));grid-template-columns:repeat(4,minmax(0,1fr))}
.hero{padding:18px;margin-bottom:14px}
.hero-row{gap:12px}.hero img{width:64px;height:64px;flex-shrink:0}
.hero h1{font-size:clamp(27px,5.8vw,36px);line-height:1.12}
.hero .subtitle{font-size:13px}.hero .eyebrow{font-size:9px}
.studio-shortcut{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;padding:8px 12px;border:1px solid #72571d;border-radius:999px;background:#211909;color:var(--gold2);font-size:12px;font-weight:700}
.kpi .notice{padding:9px}
.grid>.card{min-width:0}.card small{display:block}.card b,.tool-mini b,.tool-mini small{overflow-wrap:anywhere}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 8px}
.section-heading h2{margin:0;font:22px Georgia,serif;white-space:nowrap}
.text-button{border:0;background:none;color:var(--gold2);font-size:12px;font-weight:700;padding:10px 0;min-height:44px;text-align:right}
.studio-hint{color:var(--muted);font-size:12px;margin:0 0 12px}
.studio-track{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;padding:3px 0 5px}
.studio-track::-webkit-scrollbar{display:none}
.studio-page{flex:0 0 calc(100% - 24px);min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;scroll-snap-align:start;align-content:start}
.studio-page .tool-mini{min-height:116px;width:100%;min-width:0}
.studio-page .tool-mini small{display:block;font-size:12px}
.studio-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 8px}
.studio-page-button{width:44px;height:44px;border:1px solid #594418;border-radius:50%;background:#17130c;color:var(--gold2);font-size:22px}
.studio-page-button:disabled{opacity:.35;cursor:default}
.studio-dots{display:flex;align-items:center;gap:0}
.studio-dot{width:40px;height:44px;border:0;background:none;display:grid;place-items:center}
.studio-dot span{width:8px;height:8px;border-radius:50%;background:#55482c;transition:background .15s,width .15s}
.studio-dot[aria-current="true"] span{width:22px;border-radius:8px;background:var(--gold)}
.studio-page-status{color:var(--muted);font-size:12px;min-width:40px;text-align:center}
.studio-all-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.studio-all-grid .tool-mini{min-width:0;min-height:116px}
.project-summary{flex:1;min-width:0}.project-summary b{overflow-wrap:anywhere}
.project-open{border:1px solid #72571d;border-radius:12px;background:#17130c;color:var(--gold2);font-weight:700;min-height:44px;padding:8px 12px;flex-shrink:0}
.recent-projects .creation{align-items:center}.recent-projects .thumb{width:48px;height:48px;flex-shrink:0}
@media(max-width:389px){header .avatar{display:none}header{gap:6px;padding-left:12px;padding-right:12px}.tag{font-size:7px}.hero-row{align-items:flex-start}.hero img{width:48px;height:48px}.hero{padding:14px}.section-heading h2{font-size:20px}.section-heading{gap:8px}.studio-page .tool-mini{padding:11px}.badge{font-size:9px}}
@media(min-width:700px){body{padding:0}.app{border-radius:0;box-shadow:none}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-row{max-width:760px}.hero{padding:26px}.studio-page{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-page .tool-mini{min-height:108px}.studio-all-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){.studio-all-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.studio-dot span{transition:none}.card{transition:none}}
/* Profile: compact identity, workspace shortcuts and grouped settings. */
#screen>main.profile-page{max-width:920px;padding-top:24px}
.profile-page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.profile-page-heading h1{font-size:32px;margin:5px 0 0}.profile-brand-label{font-size:11px;letter-spacing:2px;color:#a89976}
.profile-identity{display:flex;align-items:center;gap:16px;padding:22px;border:1px solid #30291b;border-radius:22px;background:linear-gradient(120deg,#18150f,#10100f);margin-bottom:12px}
.profile-portrait{width:68px;height:68px;flex:0 0 68px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(140deg,#614b22,#221b10);border:1px solid #a38340;color:#f6d888;font:28px Georgia,serif;overflow:hidden}.profile-portrait img{width:100%;height:100%;object-fit:cover}
.profile-identity-copy{min-width:0;flex:1}.profile-identity-copy h2{font:600 20px system-ui,sans-serif;margin:0 0 5px;overflow-wrap:anywhere}.profile-identity-copy p{font-size:13px;color:#aaa69b;margin:0 0 7px;overflow-wrap:anywhere}.profile-status{font-size:11px;color:#c9b886}
.profile-edit{background:none;color:#ead49c;border:1px solid #514225;border-radius:999px;padding:9px 14px;min-height:44px;font-size:12px;font-weight:600;flex-shrink:0}
.profile-wallet{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;background:linear-gradient(110deg,#2a2111,#17140e);border:1px solid #514020;border-radius:18px}.profile-wallet-label{font-size:11px;text-transform:uppercase;letter-spacing:1.3px;color:#c7b784}.profile-wallet p{font-size:23px;font-weight:600;color:#f4e5bc;margin:6px 0}.profile-wallet small{font-size:12px;color:#a99b7a}.profile-credit-button{background:#ebc465;color:#201806;border:0;border-radius:12px;min-height:44px;padding:10px 15px;font-size:13px;font-weight:700;white-space:nowrap}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0 12px;gap:12px}.profile-section-heading h2{font:600 16px system-ui,sans-serif;margin:0}.profile-section-heading>span{font-size:12px;color:#8c887e}
.profile-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.profile-shortcut{display:flex;flex-direction:column;align-items:center;gap:10px;justify-content:center;padding:17px 6px;border:1px solid #2c2921;border-radius:16px;background:#131311;color:#e6dfcc;font-size:12px;min-height:104px}.profile-shortcut-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#252014;color:#e0bf72}.profile-shortcut svg,.profile-group-icon svg{width:23px;height:23px}
.profile-groups{border:1px solid #302b21;border-radius:18px;overflow:hidden;background:#111110}.profile-group+ .profile-group{border-top:1px solid #29261e}.profile-group summary{display:flex;align-items:center;gap:13px;padding:18px;min-height:76px;cursor:pointer;list-style:none}.profile-group summary::-webkit-details-marker{display:none}.profile-group-icon{color:#b9a77a;display:flex;flex-shrink:0}.profile-group-copy{flex:1;min-width:0}.profile-group-copy b{display:block;font:600 14px system-ui,sans-serif;color:#e6e1d6}.profile-group-copy small{display:block;color:#8f8c82;font-size:12px;margin-top:5px;line-height:1.4}.profile-expand{color:#a39777;font-size:20px;transition:transform .15s}.profile-group[open] .profile-expand{transform:rotate(180deg)}.profile-group[open] summary{background:#191710}.profile-group-content{padding:0 18px 8px 54px}
.profile-setting-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;border:0;border-bottom:1px solid #27241d;background:none;color:#d4d0c5;padding:14px 0;min-height:52px}.profile-setting-row:last-child{border-bottom:0}.profile-row-label{display:block;font-size:13px;font-weight:500}.profile-row-note{display:inline-block;margin-top:5px;font-size:10px;color:#c5ad70;background:#252014;border-radius:6px;padding:3px 6px}.profile-chevron{font-size:22px;color:#8c8064}
.profile-session-footer{text-align:center;padding-top:20px}.profile-auth-summary{font-size:12px;line-height:1.6;color:#8d8a80;max-width:520px;margin:0 auto 10px}.profile-session-button,.profile-signout{min-height:44px;padding:10px 18px;background:none;border:0;color:#c9b57d;font-size:13px}.profile-signout{display:block;margin:6px auto 0;color:#bd8f85}.profile-signout:disabled{display:none}.profile-edit:hover,.profile-shortcut:hover,.profile-setting-row:hover{background:#211d13}.profile-page button:focus-visible,.profile-page summary:focus-visible{outline:2px solid #efcb70;outline-offset:-3px}
@media(max-width:480px){.profile-identity{padding:16px;gap:12px;flex-wrap:wrap}.profile-portrait{width:56px;height:56px;flex-basis:56px}.profile-identity-copy h2{font-size:18px}.profile-edit{margin-left:68px;margin-top:-4px}.profile-wallet{padding:18px 16px}.profile-wallet p{font-size:20px}.profile-shortcuts{gap:7px}.profile-shortcut{font-size:11px;min-height:98px}.profile-group summary{padding:16px 14px}.profile-group-content{padding-left:50px;padding-right:14px}.profile-page-heading h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){.profile-expand{transition:none}}

.brand-lockup{display:flex;align-items:center;gap:8px}.brand-mark{width:34px;height:34px;flex-shrink:0}.brand-lockup .logo{font:600 clamp(17px,4.6vw,23px) system-ui,sans-serif;letter-spacing:1.4px}.brand-lockup .tag{font-size:7px}@media(max-width:389px){.brand-mark{width:27px;height:27px}.brand-lockup{gap:6px}.brand-lockup .logo{font-size:16px}.brand-lockup .tag{font-size:6px}}
