/* Neutral blockout: plain surfaces and readable interaction states. */
:root{color-scheme:light;font-family:Arial,"Segoe UI",sans-serif;font-size:14px;font-synthesis:none;--bg:#f5f5f5;--panel:#fff;--panel-raised:#eee;--line:#ccc;--text:#202020;--muted:#595959;--faint:#666;--lime:#303030;--ink:#fff;--danger:#a12626;--radius:4px}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #333;outline-offset:3px}[hidden]{display:none!important}
svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:600;line-height:1.25}h1{font-size:32px}h2{font-size:24px}h3{font-size:18px}p{line-height:1.5}small{font-size:12px;line-height:1.4}.muted,.help{color:var(--muted)}.help{font-size:12px;line-height:1.5}.eyebrow{color:var(--muted);font-size:12px;font-weight:600}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.brand{display:inline-flex;align-items:center;font-size:20px;font-weight:600;text-decoration:none;white-space:nowrap}.brand span{color:inherit}.brand-mark{display:none}.button,.icon-button,.send-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #b7b7b7;border-radius:4px;background:#fff;color:var(--text);text-decoration:none}.button{padding:10px 14px;font-size:14px;font-weight:500}.button:hover,.icon-button:hover{background:#e9e9e9}.button.primary,.send-button{background:#303030;border-color:#303030;color:#fff}.button.primary:hover,.send-button:hover{background:#494949}.button.ghost{background:transparent}.button.small{padding:8px 10px;font-size:13px}.icon-button{width:44px;padding:0;flex-shrink:0}.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #ccc;border-radius:3px;background:#f2f2f2;color:var(--muted);font-size:12px;line-height:1.3}.pill.lime,.connected-pill{color:var(--text);border-color:#999}
.avatar{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #a6a6a6;border-radius:50%;background:#e6e6e6;color:#333;font-size:11px;font-weight:600;flex-shrink:0}.avatar-stack{display:flex;padding-left:6px}.avatar-stack .avatar{margin-left:-6px}.error{color:var(--danger);font-size:13px;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}.error:empty{display:none}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.field label{font-weight:600}.field input,.field textarea,.field select,.modal input,.modal textarea,.shared-brief{width:100%;border:1px solid #aaa;border-radius:4px;padding:10px 12px;background:#fff;color:var(--text);font-size:16px;line-height:1.5}.field textarea{min-height:120px;resize:vertical}input::placeholder,textarea::placeholder{color:#707070;opacity:1}
.empty{padding:24px 12px;text-align:center;color:var(--muted)}.empty>svg{width:24px;height:24px;margin-bottom:12px}.empty h2,.empty h3{margin-bottom:8px;color:var(--text);font-size:18px}.empty p{max-width:360px;margin:0 auto 16px;font-size:14px}.boot{min-height:100dvh;display:grid;place-content:center;padding:24px;color:var(--muted)}.toast{position:fixed;z-index:60;left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 32px);margin:auto;border:1px solid #888;border-radius:4px;background:#fff;padding:12px 16px;font-size:14px;line-height:1.4;opacity:0;pointer-events:none}.toast.visible{opacity:1}
/* Authentication. Provider branding remains conventional. */
.welcome{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr)}.welcome-story{padding:40px;border-right:1px solid #ccc;display:flex;flex-direction:column;background:#f0f0f0}.welcome-copy{margin:auto 0;padding:48px 0;max-width:560px}.welcome-copy h1{font-size:40px;margin-bottom:20px}.welcome-copy>p{max-width:480px;color:var(--muted);font-size:16px}.welcome-form{display:flex;align-items:center;justify-content:center;padding:40px;background:#fff}.auth-card{width:100%;max-width:380px}.auth-card h2{margin-bottom:12px}.auth-card>p{color:var(--muted);font-size:14px}.signin-note{color:var(--muted);font-size:12px;line-height:1.5;margin-top:20px}.social-auth{display:flex;flex-direction:column;gap:12px;margin:24px 0}.button.social-button{position:relative;padding-left:44px;padding-right:44px;font-weight:500;border-radius:4px}.button.google-button,.button.google-button:active,.button.google-link{color:#1f1f1f;background:#fff;border:1px solid #747775;font-family:Arial,sans-serif}.button.google-button:hover,.button.google-link:hover{background:#f3f6fb}.button.discord-button{color:#fff;background:#5865f2;border-color:#5865f2}.button.discord-button:hover{background:#4752c4}.social-logo{height:18px!important;width:18px!important;display:block;flex-shrink:0;stroke:none;object-fit:contain}.social-button .social-logo{position:absolute;left:14px}.signin-unavailable{padding:24px;border:1px solid #ccc;background:#f5f5f5;margin-top:24px}.signin-unavailable h3{margin-bottom:12px}.signin-unavailable p{color:var(--muted);font-size:14px}
/* Project lists and the shared top bar. */
.shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;padding:24px 12px 16px;border-right:1px solid #ccc;display:flex;flex-direction:column;background:#eee;z-index:20}.sidebar .brand{margin:0 10px 24px;font-size:18px}.nav-item{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:10px;text-align:left;text-decoration:none;border-radius:4px}.nav-item:hover{background:#e0e0e0}.nav-item.active{background:#ddd;font-weight:600}.sidebar-footer{margin-top:auto;padding-top:24px}.user-row{display:flex;align-items:center;gap:8px}.user-info{min-width:0;flex:1;padding:0;text-align:left}.user-info strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis}.user-info small{color:var(--muted)}.workspace-main{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:6px 20px;border-bottom:1px solid #ccc;background:#fff}.breadcrumbs{display:flex;align-items:center;gap:10px;min-width:0;color:var(--muted)}.breadcrumbs strong{color:var(--text);font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.collaborators{display:flex;align-items:center;gap:8px}.collaborators small{color:var(--muted);white-space:nowrap}.mobile-menu{display:none}
.dashboard{max-width:1240px;margin:auto;padding:32px}.dashboard-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.dashboard-intro h1{margin:0}.dashboard-intro p{margin-bottom:0;color:var(--muted)}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2{font-size:20px;margin:0}.section-heading small{color:var(--muted)}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.project-card{display:block;min-width:0;border:1px solid #ccc;background:#fff;padding:20px;text-align:left}.project-card:hover{border-color:#777;background:#fafafa}.project-card-info h2{margin-bottom:8px;font-size:18px;overflow-wrap:anywhere}.project-card-info p{color:var(--muted);font-size:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.project-card-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px;border-top:1px solid #ccc;padding-top:12px}.dashboard-empty{border:1px dashed #ccc;background:#fff;padding:24px}
/* Viewport-constrained project: internal panel scrolling never moves the game. */
.shell.project-shell{display:block;height:100dvh;min-height:0;overflow:hidden}.project-shell>.workspace-main{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.project-shell .topbar{height:56px;min-height:56px;flex:0 0 56px;padding:6px 12px}.project-shell .breadcrumbs{flex:1}.project-back{flex-shrink:0;white-space:nowrap}.project-title{min-width:0;margin:0;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,380px);flex:1;min-height:0;overflow:hidden}.play-area{min-width:0;min-height:0;display:flex;flex-direction:column;gap:8px;padding:12px;overflow:hidden}.play-stage-wrap{flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid #b5b5b5;background:#161616;overflow:hidden}.stage-topline{flex:0 0 32px;min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 10px;border-bottom:1px solid #ccc;background:#eee;color:#444;font-size:12px}.stage-state,.stage-device{display:flex;align-items:center;gap:6px;min-width:0}#stage-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-device{flex-shrink:0}.play-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#161616}.play-stage iframe,.play-stage video{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;object-fit:contain;background:#161616}.play-stage video{pointer-events:auto;touch-action:none}.stage-bottomline{flex:0 0 44px;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px 0 10px;border-top:1px solid #ccc;background:#eee;color:#444;font-size:12px}.stage-controls{display:flex;align-items:center;gap:4px}.stage-controls .icon-button{border:0;background:transparent}.revision-label{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.revision-label svg{width:14px;height:14px}.stage-empty{position:absolute;inset:0;display:grid;place-content:center;padding:16px;background:#e6e6e6;overflow:auto}.stage-empty .empty{padding:8px}.play-stage:fullscreen{background:#161616}.play-toolbar{display:flex;align-items:center;flex:0 0 auto;min-height:44px}.play-toolbar-actions{display:flex;align-items:center;gap:8px}.feedback-on{background:#dedede!important;border-color:#555!important;color:#202020!important}.room-notice{color:var(--muted);font-size:12px;line-height:1.4;max-height:34px;overflow:auto;flex-shrink:0}.room-notice:empty{display:none}
.right-panel{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid #ccc;background:#fff}.panel-tabs{display:flex;align-items:stretch;flex:0 0 44px;min-height:44px;border-bottom:1px solid #ccc;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.panel-tabs::-webkit-scrollbar{display:none}.panel-tab{display:flex;align-items:center;justify-content:center;gap:5px;flex:1 0 auto;min-height:44px;padding:0 10px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent}.panel-tab.active{color:var(--text);border-bottom-color:#333;background:#eee}.panel-tab:hover{background:#f3f3f3}.panel-body{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:16px}
/* Conversation, shared brief, feedback, assets and versions. */
.panel-intro{display:flex;align-items:center;gap:10px;margin-bottom:20px;font-size:14px}.panel-intro small{display:block;color:var(--muted);margin-top:3px}.agent-mark{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #ccc;border-radius:3px;flex-shrink:0}.agent-mark svg{width:16px;height:16px}.message{margin-bottom:20px}.message-head{display:flex;align-items:center;gap:7px;margin-bottom:8px}.message-head strong{font-size:13px}.message-head time{margin-left:auto;color:var(--muted);font-size:12px}.message-head .avatar,.message-head .agent-mark{width:25px;height:25px;font-size:10px}.message-body{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.message.user .message-body{border:1px solid #ccc;padding:10px;background:#f6f6f6}.job-card{border:1px solid #ccc;padding:12px;margin:16px 0;background:#f5f5f5}.job-title{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:600;margin-bottom:8px}.job-card p{margin:0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}.job-card.failed .job-title{color:var(--danger)}
.composer{flex:0 0 auto;min-height:0;padding:12px;border-top:1px solid #ccc;background:#fff}.composer-box{padding:8px;border:1px solid #aaa;border-radius:4px;background:#fff}.composer-box:focus-within{border-color:#444}.composer textarea{display:block;width:100%;height:62px;min-height:62px;max-height:110px;padding:0;resize:vertical;border:0;outline:none;color:var(--text);background:transparent;font-size:16px;line-height:1.4}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}.composer select{min-width:0;min-height:40px;max-width:calc(100% - 52px);padding:4px;background:#fff;border:1px solid #ccc;border-radius:3px;color:var(--text);font-size:13px}.send-button{width:44px;height:44px;padding:0;flex-shrink:0}.composer>.help{font-size:12px;margin:6px 0 0;line-height:1.4}.generation-note{padding:8px;margin-bottom:8px;border:1px solid #ccc;background:#f5f5f5;color:var(--muted);font-size:12px;line-height:1.4;max-height:54px;overflow:auto}.typing-indicator,.brief-presence{color:var(--muted);font-size:12px;line-height:1.4;margin:0 0 8px}.typing-indicator:empty,.brief-presence:empty{display:none}
.panel-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}.panel-section-head h3{margin:0;font-size:17px}.panel-section-head small{color:var(--muted);flex-shrink:0}.asset-help{color:var(--muted);font-size:14px;line-height:1.5;margin-bottom:16px}.feedback-card,.revision-card{border:1px solid #ccc;padding:12px;margin-bottom:12px;background:#fafafa}.feedback-card-head{display:flex;align-items:center;gap:6px;margin-bottom:10px;font-size:13px}.feedback-card-head time{margin-left:auto;font-size:12px;color:var(--muted)}.feedback-number{display:inline-grid;place-content:center;min-width:22px;height:22px;border:1px solid #999;background:#eee;font-size:12px}.feedback-card p,.revision-card p{margin-bottom:12px;color:var(--muted);font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.feedback-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.feedback-card-foot span{display:flex;align-items:center;gap:4px}.feedback-card-foot svg{width:13px;height:13px}
.upload-zone{padding:20px 12px;margin-bottom:20px;border:1px dashed #999;text-align:center;background:#f5f5f5}.upload-zone>svg{width:24px;height:24px;margin-bottom:10px}.upload-zone strong{display:block;margin-bottom:8px;font-size:14px}.upload-zone p{font-size:13px;color:var(--muted)}.upload-zone.dragover{border-color:#555;background:#e6e6e6}.upload-options{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-bottom:12px;font-size:13px}.upload-options select{min-height:44px;max-width:100%;padding:8px;border:1px solid #aaa;border-radius:4px;background:#fff;font-size:16px}.asset-card{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #ccc}.asset-icon{width:36px;height:36px;display:grid;place-content:center;border:1px solid #ccc;background:#eee;flex-shrink:0;overflow:hidden}.asset-icon img{width:36px;height:36px;object-fit:cover}.asset-info{min-width:0;flex:1}.asset-info a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.asset-info small{display:block;margin-top:4px;color:var(--muted)}.asset-card .pill{max-width:76px}.revision-card-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.revision-card-header strong{font-size:14px}.revision-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.revision-card-footer time,.playing-label{color:var(--muted);font-size:12px}.brief-label{display:block;margin-bottom:8px;font-size:14px;font-weight:600}.shared-brief{min-height:240px;resize:vertical;margin-bottom:12px}.settings-note{border:1px solid #ccc;padding:14px;font-size:13px;line-height:1.6;color:var(--muted)}
/* Annotation and cursor layers keep their existing pointer routing. */
.game-overlay{position:absolute;inset:0;z-index:4;pointer-events:none}.game-overlay.feedback-mode{pointer-events:auto;cursor:crosshair;outline:2px solid #ddd;outline-offset:-2px}.feedback-mode::before{content:"Click or tap to leave a note";position:absolute;top:8px;left:8px;right:8px;width:max-content;max-width:calc(100% - 16px);margin:auto;padding:6px 10px;border:1px solid #777;border-radius:3px;background:#fff;color:#202020;font-size:12px;line-height:1.4;text-align:center;pointer-events:none}#live-cursors{pointer-events:none}.pin-dot{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:0;border:2px solid #fff;border-radius:50%;background:#333;color:#fff;font-size:12px;font-weight:600;pointer-events:auto;cursor:pointer}.pin-editor{position:absolute;z-index:8;left:8px;right:8px;bottom:8px;max-width:400px;max-height:calc(100% - 16px);padding:12px;overflow:auto;border:1px solid #777;border-radius:3px;background:#fff}.pin-editor .eyebrow{margin-bottom:8px}.pin-editor textarea{display:block;width:100%;min-height:64px;max-height:120px;padding:8px;resize:vertical;border:1px solid #aaa;border-radius:3px;font-size:16px;line-height:1.4}.pin-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.pin-editor-actions small{color:var(--muted);font-size:12px;max-width:170px}.pin-editor-actions>div{display:flex;gap:6px}
/* Dialogs and account connections. */
.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;background:#0006}.modal{width:100%;max-width:560px;max-height:calc(100dvh - 40px);padding:24px;overflow:auto;overscroll-behavior:contain;border:1px solid #888;border-radius:4px;background:#fff}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.modal-header h2{margin:0}.modal-header .eyebrow{margin-bottom:8px}.modal-header .icon-button{margin:-6px -6px 0 0}.modal>p{color:var(--muted);font-size:14px}.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}.modal-actions small{max-width:240px;color:var(--muted)}.polish-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.polish-option{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #ccc;background:#fff;cursor:pointer}.polish-option.selected{border-color:#555;background:#eee}.polish-option>input{width:16px;height:16px;min-height:0;margin:3px 0 0;accent-color:#333;flex-shrink:0}.polish-option strong{display:block;font-size:14px;margin-bottom:5px}.polish-option small{display:block;color:var(--muted);line-height:1.5}.invite-link{display:flex;align-items:center;gap:8px}.invite-link input{min-width:0;font-size:13px}.member-list{margin-top:24px;padding-top:20px;border-top:1px solid #ccc}.member-row{display:flex;align-items:center;gap:8px;margin:14px 0}.member-row>div{min-width:0}.member-row strong,.member-row small{display:block;overflow-wrap:anywhere}.member-row strong{font-size:14px}.member-row small{color:var(--muted)}.member-row>.pill{margin-left:auto;flex-shrink:0}
.account-identity{display:flex;align-items:center;gap:12px;border:1px solid #ccc;padding:16px;margin-bottom:24px}.account-identity>div{min-width:0}.account-identity strong{display:block;margin-bottom:6px;font-size:16px}.account-identity p{margin:0;color:var(--muted);overflow-wrap:anywhere;font-size:13px}.account-identity .avatar{width:44px;height:44px;font-size:16px}.account-section-title{margin-bottom:10px}.account-connections{margin-top:20px;border-top:1px solid #ccc}.account-connection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #ccc}.connection-provider{display:flex;align-items:center;gap:8px;font-size:14px}.connected-pill svg{width:14px;height:14px}.invite-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:24px}.invite-page .modal{text-align:center}.invite-page .modal h1{font-size:28px}
/* Owner operations, with table scrolling contained in its own region. */
.admin-dashboard{max-width:1400px}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.metric-card{padding:20px;border:1px solid #ccc;background:#fff}.metric-card>span,.metric-card>strong,.metric-card>small{display:block}.metric-card>span{color:var(--muted);font-size:13px;margin-bottom:12px}.metric-card>strong{font-size:26px;font-weight:600;margin-bottom:12px;overflow-wrap:anywhere}.metric-card>small{color:var(--muted);line-height:1.5}.admin-cost-note{max-width:850px;margin-bottom:28px}.table-scroll{max-width:100%;overflow:auto;border:1px solid #ccc;background:#fff}.admin-table{width:100%;min-width:750px;border-collapse:collapse;text-align:left;font-size:13px}.admin-table th{padding:14px;border-bottom:1px solid #ccc;background:#eee;font-size:12px;font-weight:600;white-space:nowrap}.admin-table td{padding:14px;border-bottom:1px solid #ccc;vertical-align:top;font-variant-numeric:tabular-nums}.admin-table tr:last-child td{border-bottom:0}.admin-table td>strong,.admin-table td>small{display:block}.admin-table td>strong{font-size:14px;margin-bottom:6px}.admin-table td>small{max-width:320px;margin-top:6px;color:var(--muted)}.admin-table td>.error,.failed-pill{color:var(--danger)}.table-project{min-height:44px;font-size:14px;font-weight:600;text-align:left;padding:0}.table-project:hover{text-decoration:underline}.table-prompt{display:-webkit-box;max-width:350px;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);line-height:1.5}.service-resources{display:flex;flex-wrap:wrap;gap:18px;margin-top:24px;padding-top:20px;border-top:1px solid #ccc;color:var(--muted);font-size:12px}.service-resources strong{margin-left:6px;font-weight:600}.modal .metric-grid{grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.modal .metric-card{padding:14px}.modal .metric-card>strong{font-size:22px}
/* Portrait phones stack; short landscape keeps a useful game column. */
@media(max-width:1100px){.project-workspace{grid-template-columns:minmax(0,1fr) 340px}.project-shell .collaborators small{display:none}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{display:none;position:fixed;inset:0 auto 0 0;width:240px}.shell.menu-open .sidebar{display:flex}.mobile-menu{display:inline-flex}.dashboard{padding:24px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-workspace{grid-template-columns:minmax(0,1fr) 320px}.project-shell .collaborators{display:none}.project-back-label{display:none}.project-back{width:44px;padding:0}.stage-device{display:none}}
@media(max-width:700px){.welcome{grid-template-columns:1fr}.welcome-story{border-right:0;border-bottom:1px solid #ccc;padding:24px}.welcome-copy{margin:0;padding:32px 0 12px}.welcome-copy h1{font-size:32px}.welcome-form{padding:28px 24px}.topbar{padding-left:12px;padding-right:12px}.project-shell .topbar{padding:6px 8px;gap:6px}.project-shell .breadcrumbs{gap:6px}.project-shell .topbar-actions{gap:4px}.project-shell .topbar-actions .button{padding:8px;font-size:12px}.project-shell .share-label{display:none}.project-shell [data-action="share"],.project-shell [data-action="account"]{min-width:44px}.project-shell .take-control-label{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,42fr) minmax(0,58fr)}.play-area{padding:8px;gap:6px}.play-toolbar-actions{width:100%;gap:6px}.play-toolbar-actions .button{flex:1;white-space:nowrap}.right-panel{border-left:0;border-top:1px solid #ccc}.stage-topline{min-height:28px;flex-basis:28px}.panel-body{padding:14px}.panel-tab{padding:0 8px}.composer{padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.composer>.help{display:none}.generation-note{padding:6px 8px;margin-bottom:6px;max-height:46px}.dashboard{padding:24px 16px}.dashboard-intro{align-items:flex-start;flex-wrap:wrap}.dashboard-intro h1{font-size:28px}.project-grid{grid-template-columns:1fr}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);padding:20px}.modal-header h2{font-size:24px}.modal-actions{flex-wrap:wrap}.modal-actions small{max-width:none}.polish-options{grid-template-columns:1fr}.pin-editor{padding:8px}.pin-editor-actions small{display:none}.pin-editor-actions{justify-content:flex-end}.account-connection{gap:8px}.account-connection .button{padding:8px;font-size:12px}.metric-card{padding:14px}.metric-card>strong{font-size:22px}}
@media(max-height:500px) and (min-width:701px){.project-workspace{grid-template-columns:minmax(0,1fr) 320px}.play-area{padding:8px;gap:6px}.project-back-label{display:none}.project-back{width:44px;padding:0}.project-shell .collaborators,.composer>.help{display:none}.composer{padding:8px}.composer textarea{height:44px;min-height:44px;max-height:70px}.generation-note{max-height:36px;padding:5px 8px;margin-bottom:6px}.stage-topline{min-height:28px;flex-basis:28px}.room-notice{max-height:17px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
