/* BuildAne v1.4.0 — Project Room UX Split
   This file intentionally scopes every override under .creator-v140. */

.creator-v140{
  --v140-bg:#f4f7fb;
  --v140-card:#ffffff;
  --v140-ink:#102d4a;
  --v140-muted:#64798d;
  --v140-line:#dfe7ef;
  --v140-soft:#eef5fb;
  --v140-blue:#0b7fe5;
  --v140-blue-2:#095fb4;
  --v140-navy:#071d36;
  --v140-green:#177a4c;
  --v140-amber:#8b6413;
  --v140-danger:#9b3131;
  min-height:100vh;
  background:var(--v140-bg);
  color:var(--v140-ink);
}
.creator-v140 *{box-sizing:border-box}
.creator-v140 button,.creator-v140 input,.creator-v140 textarea,.creator-v140 select{font:inherit}
.creator-v140 [hidden]{display:none!important}

.v140-topbar{
  min-height:72px;
  display:grid;
  grid-template-columns:minmax(280px,1fr) auto minmax(350px,1fr);
  align-items:center;
  gap:18px;
  padding:10px 24px;
  background:linear-gradient(120deg,#061a31,#082c53 62%,#073763);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky;
  top:0;
  z-index:80;
  box-shadow:0 10px 30px rgba(4,25,48,.12);
}
.v140-brand-cluster,.v140-top-actions,.v140-project-ident,.simple-commandbar,.simple-heading,.simple-product-actions,.simple-device-switch,.advanced-toolbar,.advanced-toolbar-controls,.simple-app-head,.simple-app-head-actions,.simple-chat-head{display:flex;align-items:center}
.v140-brand-cluster{gap:18px;min-width:0}
.v140-brand{display:flex;align-items:center;flex:0 0 auto}
.v140-brand img{height:34px;width:auto;display:block;filter:brightness(0) invert(1)}
.v140-project-ident{gap:9px;min-width:0}
.v140-project-ident small{font-size:9px;letter-spacing:.18em;color:#8db5d8}
.v140-project-ident strong{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.v140-state-badge{font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#b9dbf8;white-space:nowrap}
.v140-view-switch{justify-self:center;display:flex;align-items:center;gap:5px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);border-radius:12px;padding:4px}
.v140-view-switch>span{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#9fc0dc;padding:0 8px}
.v140-view-switch button{border:0;background:transparent;color:#cde2f4;border-radius:9px;padding:8px 13px;font-size:12px;font-weight:700;cursor:pointer;transition:.18s ease}
.v140-view-switch button:hover{background:rgba(255,255,255,.08)}
.v140-view-switch button.active{background:#fff;color:#12324e;box-shadow:0 4px 14px rgba(0,0,0,.16)}
.v140-top-actions{justify-content:flex-end;gap:9px;min-width:0}
.v140-top-actions .btn{white-space:nowrap}
.v140-top-actions .credit-counter{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.08)}
.v140-top-actions .credit-counter small{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#9fc0dc}
.v140-top-actions .credit-counter strong{font-size:14px}
.v140-top-actions .core-status{white-space:nowrap}

.v140-alerts{position:relative;z-index:60;max-width:1580px;margin:0 auto;padding:0 24px}
.v140-alerts>section{margin-top:14px!important;margin-bottom:0!important}
.v140-floating-bars{position:relative;z-index:62;max-width:1580px;margin:0 auto;padding:0 24px}
.v140-floating-bars>section{margin:14px 0 0!important}

.v140-workspace{max-width:1640px;margin:0 auto;padding:20px 24px 34px}
.v140-mode-panel{display:none}
.v140-mode-panel.active{display:block}

/* SIMPLE */
.simple-commandbar{
  gap:18px;
  min-height:74px;
  padding:12px 16px 12px 18px;
  background:var(--v140-card);
  border:1px solid var(--v140-line);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(20,54,84,.05);
  margin-bottom:16px;
}
.simple-heading{gap:12px;min-width:260px;flex:1}
.simple-heading>.section-kicker{writing-mode:vertical-rl;transform:rotate(180deg);font-size:8px;letter-spacing:.2em;color:#7d93a7}
.simple-heading h1{font-size:17px;line-height:1.2;margin:0 0 4px;color:var(--v140-ink);max-width:380px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.simple-app-status{font-size:11px;font-weight:700;color:#648098}
.simple-app-status.live{color:var(--v140-green)}
.simple-app-status.offline{color:var(--v140-amber)}
.simple-device-switch{gap:4px;border:1px solid var(--v140-line);background:#f9fbfd;padding:4px;border-radius:12px}
.simple-device-switch>span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#71879c;padding:0 8px}
.simple-device-switch button,.device-chip-group button{border:0;background:transparent;color:#5b7389;padding:8px 10px;border-radius:9px;cursor:pointer;font-size:12px;font-weight:750}
.simple-device-switch button.active,.device-chip-group button.active{background:#fff;color:#0b6fca;box-shadow:0 3px 11px rgba(31,77,116,.12)}
.simple-product-actions{justify-content:flex-end;gap:8px;flex-wrap:wrap}
.simple-product-actions .btn{min-height:38px}

.simple-progress{display:flex;align-items:center;gap:10px;background:#eaf5ff;border:1px solid #bbddfa;color:#174f7f;padding:11px 14px;border-radius:14px;margin:0 0 16px}
.simple-progress i{width:15px;height:15px;border-radius:50%;border:2px solid #91c6f4;border-top-color:#0b7fe5;animation:v140spin .75s linear infinite}
.simple-progress strong{font-size:13px}
.simple-progress span{font-size:12px;color:#527b9d}
@keyframes v140spin{to{transform:rotate(360deg)}}

.simple-stage{display:grid;grid-template-columns:minmax(340px,.78fr) minmax(540px,1.45fr);gap:18px;min-height:calc(100vh - 205px)}
.simple-chat-card,.simple-app-card,.advanced-preview-card,.advanced-ane-dock,.panel-card,.deploy-command-card,.foundation-grid article,.integration-grid article,.current-user-card,.secrets-placeholder{background:var(--v140-card);border:1px solid var(--v140-line);border-radius:18px;box-shadow:0 10px 32px rgba(17,51,80,.045)}
.simple-chat-card{display:grid;grid-template-rows:auto 1fr auto;min-height:650px;overflow:hidden}
.simple-chat-head{justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--v140-line)}
.simple-chat-head .ane-compact{border:0;padding:0;background:transparent;min-width:0}
.simple-chat-head .ane-compact img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.simple-chat-head .ane-compact strong{font-size:12px}
.simple-channel-switch{flex:0 0 auto}
.simple-channel-switch button{padding:7px 9px}
.v140-messages{padding:18px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#c9d8e6 transparent}
.v140-messages.compact{padding:12px}
.v140-messages .message{margin-bottom:12px}
.v140-messages .message-bubble{max-width:88%}
.v140-messages.compact .message-bubble{max-width:94%}
.v140-composer{border-top:1px solid var(--v140-line);padding:12px;background:#fbfdff}
.v140-composer textarea{width:100%;resize:vertical;border:1px solid #cfdae5;border-radius:12px;background:#fff;color:var(--v140-ink);padding:11px 12px;outline:none;min-height:74px}
.v140-composer textarea:focus{border-color:#7bb9ee;box-shadow:0 0 0 3px rgba(24,132,225,.09)}
.v140-composer textarea:disabled{background:#f1f4f7;color:#8799a8}
.v140-composer .composer-row{gap:8px;margin-top:9px}
.v140-composer .composer-row>span{font-size:10px;line-height:1.3;color:#75899b;flex:1}
.v140-composer.compact{padding:10px}
.v140-composer.compact textarea{min-height:68px}

.simple-app-card{display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;min-height:650px;background:linear-gradient(180deg,#fff,#f8fbfe)}
.simple-app-head{justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--v140-line)}
.simple-app-head small{display:block;font-size:8px;letter-spacing:.16em;color:#7d93a7;margin-bottom:2px}
.simple-app-head strong{font-size:13px}
.simple-app-head-actions{gap:8px}
.simple-preview-host{min-height:0;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 15%,#f9fcff 0,#eef4fa 64%,#e9f0f7 100%);overflow:auto}
.device-shell{display:none;overflow:hidden}
.simple-preview-host.device-mobile .phone-shell{display:block}
.simple-preview-host.device-desktop .desktop-shell{display:grid}
.phone-shell{width:min(360px,100%);height:min(690px,calc(100vh - 275px));min-height:520px;border:9px solid #0a223a;border-radius:38px;background:#0a223a;box-shadow:0 28px 65px rgba(8,35,61,.2);position:relative;padding-top:13px}
.phone-speaker{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:74px;height:5px;border-radius:99px;background:#20384e;z-index:4}
.phone-shell .device-screen{height:100%;border-radius:28px;overflow:hidden;background:#fff}
.desktop-shell{width:100%;height:min(690px,calc(100vh - 270px));min-height:540px;border:1px solid #cad8e5;border-radius:15px;background:#fff;box-shadow:0 22px 50px rgba(20,56,88,.11);grid-template-rows:34px 1fr;overflow:hidden}
.desktop-browserbar,.advanced-browserbar{display:flex;align-items:center;gap:6px;background:#edf2f6;border-bottom:1px solid #dce5ed;padding:0 11px}
.desktop-browserbar span,.advanced-browserbar span{width:8px;height:8px;border-radius:50%;background:#bdc9d3}
.desktop-browserbar em,.advanced-browserbar em{font-style:normal;font-size:10px;color:#738698;margin-left:7px}
.device-screen{background:#fff;min-width:0;min-height:0;position:relative}
.device-screen iframe,.advanced-preview-frame iframe{width:100%;height:100%;border:0;background:#fff}
.v140-preview-empty{height:100%;min-height:300px;display:grid;place-content:center;text-align:center;gap:8px;color:#71889b;padding:26px}
.v140-preview-empty span{font-size:30px;color:#86b8df}
.v140-preview-empty strong{color:#365873;font-size:14px}
.v140-preview-empty small{font-size:11px}
.simple-app-foot{display:flex;justify-content:space-between;gap:14px;padding:10px 16px;border-top:1px solid var(--v140-line);font-size:11px;color:#6e8295;background:#fbfdff}
.simple-app-foot #simpleApprovalHint{color:#8b6413;text-align:right}

.simple-stage.device-desktop{display:flex;flex-direction:column}
.simple-stage.device-desktop .simple-app-card{order:1;min-height:650px}
.simple-stage.device-desktop .simple-chat-card{order:2;min-height:340px;max-height:430px;grid-template-rows:auto 1fr auto}
.simple-stage.device-desktop .simple-preview-host{padding:18px;min-height:590px}
.simple-stage.device-desktop .simple-chat-card .v140-messages{min-height:130px}

/* ADVANCED */
.advanced-nav{display:flex;gap:5px;align-items:center;overflow-x:auto;padding:6px;background:#e8eef4;border:1px solid #dae4ed;border-radius:14px;margin-bottom:16px;scrollbar-width:none}
.advanced-nav::-webkit-scrollbar{display:none}
.advanced-nav button{border:0;background:transparent;color:#536b80;white-space:nowrap;border-radius:10px;padding:10px 13px;font-size:12px;font-weight:750;cursor:pointer}
.advanced-nav button.active{background:#fff;color:#0b6fca;box-shadow:0 3px 13px rgba(24,61,92,.11)}
.nav-soon{font-size:8px;padding:2px 5px;border-radius:999px;background:#dbe6ef;color:#7890a3;margin-left:4px;text-transform:uppercase;letter-spacing:.04em}
.advanced-panel{display:none}
.advanced-panel.active{display:block}
.advanced-toolbar{justify-content:space-between;gap:18px;margin:4px 2px 14px}
.advanced-toolbar h2,.module-heading h2{margin:3px 0 0;font-size:22px;color:var(--v140-ink)}
.advanced-toolbar-controls{gap:9px}
.advanced-toolbar select{border:1px solid var(--v140-line);background:#fff;color:#48647a;padding:9px 11px;border-radius:10px;font-size:12px}
.device-chip-group{display:flex;gap:3px;border:1px solid var(--v140-line);background:#eef3f7;padding:3px;border-radius:11px}
.advanced-app-grid{display:grid;grid-template-columns:minmax(600px,1.55fr) minmax(320px,.62fr);gap:16px;min-height:calc(100vh - 185px)}
.advanced-preview-card{padding:14px;min-height:650px}
.advanced-preview-host{height:100%;min-height:620px;display:grid;grid-template-rows:34px 1fr;border:1px solid #cddae5;border-radius:13px;overflow:hidden;background:#fff}
.advanced-preview-host.device-mobile,.advanced-preview-host.device-tablet{display:grid;place-items:center;background:#eef4f9;border:0}
.advanced-preview-host.device-mobile .advanced-browserbar,.advanced-preview-host.device-tablet .advanced-browserbar{display:none}
.advanced-preview-host.device-mobile .advanced-preview-frame{width:360px;max-width:92%;height:620px;border:8px solid #0b2238;border-radius:34px;overflow:hidden;background:#fff;box-shadow:0 20px 48px rgba(9,34,56,.17)}
.advanced-preview-host.device-tablet .advanced-preview-frame{width:720px;max-width:94%;height:590px;border:7px solid #0b2238;border-radius:25px;overflow:hidden;background:#fff;box-shadow:0 20px 48px rgba(9,34,56,.16)}
.advanced-preview-frame{min-width:0;min-height:0}
.advanced-ane-dock{display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;min-height:650px}
.advanced-ane-dock>header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--v140-line);padding:12px 13px}
.advanced-ane-dock>header small{display:block;font-size:8px;letter-spacing:.13em;color:#7c92a5}
.advanced-ane-dock>header strong{font-size:12px}
.advanced-ane-dock .channel-switch button{padding:6px 8px}

.module-heading{margin:8px 2px 16px;max-width:940px}
.module-heading p{margin:7px 0 0;color:#667d91;font-size:13px;line-height:1.55}
.ide-foundation{display:grid;grid-template-columns:220px 1fr 220px;min-height:610px;background:#0c1c2b;border:1px solid #132d43;border-radius:17px;overflow:hidden;color:#d8e5ef;box-shadow:0 16px 38px rgba(9,31,50,.14)}
.ide-foundation>aside{padding:15px;border-right:1px solid #18364f}
.ide-foundation>aside:last-child{border-left:1px solid #18364f;border-right:0}
.ide-foundation aside>strong{display:block;font-size:11px;color:#91abc0;margin-bottom:15px}
.fake-tree{display:grid;gap:9px;font-size:12px;color:#abc0d2}
.ide-editor-placeholder{display:grid;grid-template-rows:38px 1fr}
.ide-tabs{display:flex;align-items:end;gap:2px;padding:0 8px;border-bottom:1px solid #18364f;background:#0b1926}
.ide-tabs span{font-size:11px;padding:10px 13px;color:#718da5}
.ide-tabs span.active{color:#e7f3fc;border-bottom:2px solid #2c93ea}
.ide-empty{display:grid;place-content:center;text-align:center;padding:50px;max-width:680px;margin:auto}
.ide-empty strong{font-size:16px;margin-bottom:10px}
.ide-empty p{font-size:12px;line-height:1.6;color:#8da6ba}
.ide-ane{display:flex;flex-direction:column!important;gap:8px}
.ide-ane small{font-size:8px;letter-spacing:.14em;color:#6e8da5}
.ide-ane button{border:1px solid #27445b;background:#11283b;color:#7e9aaf;padding:9px;border-radius:9px;text-align:left}

.foundation-grid,.integration-grid,.operations-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.foundation-grid article,.integration-grid article{padding:18px;min-height:150px}
.foundation-grid article small,.integration-grid article>span{display:block;font-size:9px;letter-spacing:.13em;color:#7b93a7;margin-bottom:10px}
.foundation-grid article strong,.integration-grid article strong{display:block;font-size:14px;color:#183a57;margin-bottom:7px}
.foundation-grid article p,.integration-grid article p{font-size:12px;line-height:1.55;color:#6b8296;margin:0}
.integration-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.integration-grid article>button{margin-top:15px;border:1px solid #d7e2eb;background:#f1f5f8;color:#94a4b1;border-radius:9px;padding:8px 10px;font-size:11px}
.secrets-placeholder{margin-top:14px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.secrets-placeholder small{display:block;font-size:9px;letter-spacing:.14em;color:#8297a9;margin-bottom:4px}
.secrets-placeholder strong{font-size:14px}
.secrets-placeholder code{font-size:11px;line-height:1.8;color:#60758a;background:#f5f8fb;border:1px solid #e4ebf1;border-radius:11px;padding:12px 16px}

.quality-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.quality-summary>div,.operations-grid>article{padding:16px;background:#fff;border:1px solid var(--v140-line);border-radius:14px}
.quality-summary small,.operations-grid small{display:block;color:#8296a8;font-size:9px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:5px}
.quality-summary strong,.operations-grid strong{font-size:16px;color:#173a57}
.technical-list{display:grid;gap:8px}
.technical-list .tech-row{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(170px,1.3fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e1e8ee;background:#fff;border-radius:11px;font-size:11px}
.technical-list .tech-row strong{font-size:12px;color:#274a66}
.technical-list .tech-row span{color:#71879a;overflow:hidden;text-overflow:ellipsis}
.technical-list .tech-row em{font-style:normal;font-size:10px;font-weight:800;padding:5px 7px;border-radius:999px;background:#eef4f8;color:#5d7488}
.technical-list .tech-row em.ok{background:#e8f6ef;color:#24754e}
.technical-list .empty-inline{padding:14px;border:1px dashed #d6e0e9;border-radius:11px;background:#f9fbfd;color:#74899b;font-size:12px}

.deploy-command-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px;margin-bottom:14px}
.deploy-command-card>div:first-child{display:grid;gap:4px}
.deploy-command-card strong{font-size:14px;color:#173b59}
.deploy-command-card span{font-size:11px;color:#6f8598}
.deploy-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.two-col-tech{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.two-col-tech>div>h3{font-size:13px;margin:0 0 9px;color:#425f76}
.operations-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}
.operations-grid>article strong.ok{color:#237650}
.operations-grid>article strong.warn{color:#8b6413}
.current-user-card{padding:18px;display:flex;align-items:center;gap:15px;margin-bottom:14px}
.current-user-card .user-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e8f3fc;color:#0e72c7;font-weight:800}
.current-user-card small{display:block;color:#8195a7;font-size:9px;letter-spacing:.1em;margin-bottom:3px}
.current-user-card strong{display:block;font-size:14px}
.current-user-card span{font-size:11px;color:#6c8194}
.permissions-preview{display:flex;gap:8px;flex-wrap:wrap}
.permissions-preview span{font-size:11px;padding:8px 10px;border-radius:999px;background:#eef3f7;color:#647b8f;border:1px solid #e0e7ed}

.project-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.project-summary-grid>div{padding:13px 14px;background:#fff;border:1px solid var(--v140-line);border-radius:13px}
.project-summary-grid small{display:block;font-size:9px;letter-spacing:.09em;text-transform:uppercase;color:#8194a5;margin-bottom:4px}
.project-summary-grid strong{font-size:13px;color:#234561}
.project-tech-grid{align-items:start}
.project-tech-grid .panel-card{padding:16px}
.project-tech-grid textarea{width:100%;border:1px solid #d4dfe8;border-radius:11px;padding:12px;resize:vertical;outline:none;color:#25455f;background:#fbfdff}
.v140-approval-grid{grid-template-columns:1fr!important;gap:8px!important}
.v140-approval-grid .approval-card{min-height:0;padding:12px!important;border-radius:12px!important}
.v140-approval-grid .approval-card p{display:none}
.v140-approval-grid .approval-number{width:25px;height:25px;font-size:10px}

/* DRAWER / VERSIONS */
.v140-drawer-backdrop{position:fixed;inset:0;background:rgba(5,22,38,.36);z-index:110;display:flex;justify-content:flex-end;backdrop-filter:blur(2px)}
.versions-drawer{width:min(480px,92vw);height:100%;background:#fff;border-left:1px solid #dbe5ed;padding:22px;box-shadow:-20px 0 55px rgba(4,26,44,.17);overflow:auto}
.versions-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e2e9ef;padding-bottom:14px}
.versions-drawer>header small{display:block;font-size:8px;letter-spacing:.15em;color:#8297a8}
.versions-drawer>header h2{margin:2px 0 0;font-size:20px}
.versions-drawer>header button{border:0;background:#eef3f7;color:#536d82;width:32px;height:32px;border-radius:50%;font-size:20px;cursor:pointer}
.versions-drawer>p{font-size:12px;line-height:1.55;color:#6d8295}
.versions-list{display:grid;gap:9px;margin-top:15px}
.version-card{border:1px solid #e0e7ee;border-radius:13px;padding:13px;display:grid;grid-template-columns:1fr auto;gap:10px;background:#fbfdff}
.version-card.current{border-color:#9bc9ef;background:#eef7ff}
.version-card strong{font-size:13px;color:#244763}
.version-card small{display:block;font-size:10px;color:#7a8fa1;margin-top:4px}
.version-card .version-actions{display:flex;align-items:center;gap:6px}
.version-card button,.version-card a{font-size:10px;padding:6px 8px;border-radius:8px;border:1px solid #d5e0e8;background:#fff;color:#527087;text-decoration:none;cursor:pointer}

/* MEDIA PIP */
.creator-v140 .v140-voice-pip{position:fixed!important;inset:auto 22px 22px auto!important;width:min(390px,calc(100vw - 30px));height:auto!important;background:transparent!important;z-index:130!important;padding:0!important;display:block}
.creator-v140 .v140-voice-pip[hidden]{display:none!important}
.creator-v140 .v140-voice-pip .voice-stage-card{width:100%;max-width:none;margin:0;border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(5,25,43,.35);border:1px solid rgba(255,255,255,.12)}
.creator-v140 .v140-voice-pip .avatar-frame{height:360px;max-height:48vh}
.creator-v140 .v140-voice-pip .voice-top{padding:10px 12px}
.creator-v140 .v140-voice-pip .voice-actions{display:flex;gap:6px}
.creator-v140 .v140-voice-pip .voice-actions .btn{padding:7px 9px;font-size:10px}
.creator-v140.modal-open{overflow:auto!important}
.creator-v140 .modal-backdrop:not([hidden]){z-index:140}

/* common states */
.v140-status-pill{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef3f7;color:#647b8f}
.v140-status-pill.ok{background:#e9f7ef;color:#24754d}
.v140-status-pill.warn{background:#fff6df;color:#8a6416}
.v140-status-pill.off{background:#f2f3f5;color:#747f88}

@media(max-width:1240px){
  .v140-topbar{grid-template-columns:1fr auto;grid-template-areas:"brand view" "actions actions";gap:8px 14px}
  .v140-brand-cluster{grid-area:brand}.v140-view-switch{grid-area:view}.v140-top-actions{grid-area:actions;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}
  .simple-commandbar{flex-wrap:wrap}.simple-heading{min-width:230px}.simple-product-actions{width:100%;justify-content:flex-start}
  .simple-stage{grid-template-columns:minmax(320px,.75fr) minmax(460px,1.2fr)}
  .advanced-app-grid{grid-template-columns:1fr}.advanced-ane-dock{min-height:430px;max-height:520px}
  .integration-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .v140-workspace{padding:14px 12px 24px}.v140-alerts,.v140-floating-bars{padding:0 12px}
  .v140-topbar{padding:9px 12px}.v140-project-ident .v140-state-badge,.v140-top-actions .core-status{display:none}
  .simple-stage{display:flex;flex-direction:column}.simple-chat-card{min-height:540px}.simple-app-card{min-height:600px}.simple-stage.device-desktop .simple-chat-card{max-height:none}
  .simple-device-switch>span{display:none}
  .advanced-toolbar{align-items:flex-start;flex-direction:column}.advanced-toolbar-controls{width:100%;justify-content:space-between}
  .advanced-preview-card{min-height:560px}.advanced-preview-host{min-height:530px}.advanced-app-grid{min-height:0}
  .ide-foundation{grid-template-columns:180px 1fr}.ide-foundation .ide-ane{display:none!important}
  .foundation-grid,.operations-grid,.quality-summary{grid-template-columns:repeat(2,1fr)}
  .two-col-tech{grid-template-columns:1fr}.project-summary-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .v140-topbar{display:flex;flex-wrap:wrap}.v140-brand-cluster{width:100%}.v140-project-ident{flex:1}.v140-project-ident small{display:none}.v140-view-switch{order:3}.v140-top-actions{order:4;width:100%}.v140-top-actions .locale-compact,.v140-top-actions .core-status{display:none}
  .simple-commandbar{padding:12px}.simple-heading{width:100%;min-width:0}.simple-heading>.section-kicker{display:none}.simple-device-switch{order:3}.simple-product-actions{gap:6px}.simple-product-actions .btn{font-size:10px;padding:8px 9px}
  .simple-chat-head{align-items:flex-start;flex-direction:column}.simple-channel-switch{width:100%}.simple-channel-switch button{flex:1}
  .simple-preview-host{padding:14px}.phone-shell{height:610px;min-height:480px}.desktop-shell{min-height:470px;height:540px}
  .advanced-nav{border-radius:11px}.advanced-nav button{padding:9px 10px}
  .advanced-toolbar-controls{align-items:stretch;flex-direction:column}.advanced-toolbar select{width:100%}.device-chip-group{width:100%}.device-chip-group button{flex:1}
  .advanced-preview-card{padding:8px}.advanced-preview-host.device-mobile .advanced-preview-frame{width:330px;height:570px}.advanced-preview-host.device-tablet .advanced-preview-frame{width:95%;height:540px}
  .ide-foundation{grid-template-columns:1fr}.ide-foundation>aside{display:none}.ide-empty{padding:28px}
  .foundation-grid,.integration-grid,.operations-grid,.quality-summary,.project-summary-grid{grid-template-columns:1fr}
  .secrets-placeholder{align-items:flex-start;flex-direction:column}.secrets-placeholder code{width:100%;overflow:auto}
  .deploy-command-card{align-items:flex-start;flex-direction:column}.deploy-actions{justify-content:flex-start}
  .technical-list .tech-row{grid-template-columns:1fr}.technical-list .tech-row em{justify-self:start}
  .creator-v140 .v140-voice-pip{right:10px!important;bottom:10px!important;width:calc(100vw - 20px)}
}

/* BuildAne v1.4.1 — visibility and workspace behavior fixes */
.creator-v140 .v140-brand img{height:28px;filter:none}

/* Keep the controls that change the working surface visible after the user scrolls. */
.creator-v140 .simple-commandbar{
  position:sticky;
  top:82px;
  z-index:52;
  backdrop-filter:blur(12px);
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 30px rgba(20,54,84,.08);
}
.creator-v140 .simple-device-switch-command{flex:0 0 auto}
.creator-v140 .simple-device-switch-inline{background:#eef4f8;flex:0 0 auto}
.creator-v140 .simple-app-head-actions{flex-wrap:wrap;justify-content:flex-end}

/* Desktop is a real working mode: preview first and almost full-screen, chat below. */
.creator-v140 .simple-stage.device-desktop{display:flex;flex-direction:column;gap:18px}
.creator-v140 .simple-stage.device-desktop .simple-app-card{
  order:1;
  min-height:calc(100vh - 178px);
}
.creator-v140 .simple-stage.device-desktop .simple-preview-host{
  padding:14px;
  min-height:calc(100vh - 275px);
}
.creator-v140 .simple-stage.device-desktop .desktop-shell{
  display:grid;
  width:100%;
  height:calc(100vh - 285px);
  min-height:620px;
}
.creator-v140 .simple-stage.device-desktop .simple-chat-card{
  order:2;
  min-height:400px;
  max-height:none;
}
.creator-v140 .simple-stage.device-desktop .simple-chat-card .v140-messages{min-height:190px}

/* Advanced mode must be visually and structurally different from Simple. */
.creator-v140 .advanced-mode-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  padding:20px 22px;
  margin-bottom:12px;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(120deg,#071d36,#0a355f 68%,#0a4f83);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 32px rgba(9,38,66,.10);
}
.creator-v140 .advanced-mode-header .section-kicker{color:#79c9ff;margin:0 0 5px}
.creator-v140 .advanced-mode-header h1{margin:0;font-size:24px;line-height:1.15;color:#fff}
.creator-v140 .advanced-mode-header p{margin:6px 0 0;font-size:12px;color:#b9d2e7}
.creator-v140 .advanced-mode-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.creator-v140 .advanced-mode-badges span{font-size:9px;font-weight:800;letter-spacing:.04em;padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#d7ebfa;white-space:nowrap}
.creator-v140 .advanced-nav{
  position:sticky;
  top:82px;
  z-index:53;
  padding:7px;
  margin-bottom:18px;
  background:rgba(232,238,244,.97);
  backdrop-filter:blur(12px);
  box-shadow:0 9px 24px rgba(18,53,82,.08);
}
.creator-v140 .advanced-nav button{padding:11px 14px}
body.creator-v140[data-view-mode="advanced"] .v140-workspace{max-width:1760px}
.creator-v140 #advancedWorkspace .advanced-panel{min-height:520px}
.creator-v140 #advancedWorkspace [data-advanced-panel="code"].active .ide-foundation{box-shadow:0 20px 48px rgba(9,31,50,.18)}

@media(max-width:1240px){
  .creator-v140 .simple-commandbar,.creator-v140 .advanced-nav{position:static}
  .creator-v140 .advanced-mode-header{align-items:flex-start;flex-direction:column}
  .creator-v140 .advanced-mode-badges{justify-content:flex-start}
}
@media(max-width:900px){
  .creator-v140 .simple-device-switch-command{display:none}
  .creator-v140 .simple-app-head{align-items:flex-start;flex-direction:column}
  .creator-v140 .simple-app-head-actions{width:100%;justify-content:flex-start}
  .creator-v140 .simple-stage.device-desktop .simple-app-card{min-height:720px}
  .creator-v140 .simple-stage.device-desktop .simple-preview-host{min-height:620px}
  .creator-v140 .simple-stage.device-desktop .desktop-shell{height:600px;min-height:600px}
}
@media(max-width:620px){
  .creator-v140 .advanced-mode-header{padding:16px}
  .creator-v140 .advanced-mode-header h1{font-size:20px}
  .creator-v140 .advanced-mode-badges{display:none}
  .creator-v140 .simple-device-switch-inline{width:100%}
  .creator-v140 .simple-device-switch-inline button{flex:1}
}
