/* Conversation-first GM Discovery | public development preview */
.gm-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:stretch;max-width:1190px;min-height:calc(100dvh - 210px)}
.gm-shell:has(.gm-outline-closed){grid-template-columns:minmax(0,1fr);max-width:900px}
.gm-chat-wrap{background:#0e0e0e;border:1px solid #303030;border-radius:18px;display:flex;flex-direction:column;min-width:0;overflow:hidden;min-height:560px}
.gm-header{padding:22px 24px 19px;border-bottom:1px solid #2a2a2a;display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.gm-eyebrow{font-size:10px;color:#c4a0a8;letter-spacing:1.2px;font-weight:700}
.gm-header h1{font-size:25px;line-height:1.2;margin:9px 0 6px;letter-spacing:-.5px}
.gm-header p{font-size:13px;color:#999;line-height:1.6;margin:0;max-width:490px}
.gm-secondary{border:1px solid #3c3c3c;background:#1b1b1b;color:#e8e8e8;padding:10px 12px;border-radius:9px;font-size:12px;white-space:nowrap;cursor:pointer}
.gm-secondary:hover{background:#252525}
.gm-metrics{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 23px;border-bottom:1px solid #252525;color:#9a9a9a;font-size:11px}
.gm-metrics span:first-child{font-weight:700;color:#f0e1e5}
.gm-metrics button{border:0;background:none;color:#b7b7b7;font-size:11px;padding:2px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.gm-messages{height:clamp(360px,48dvh,660px);overflow:auto;padding:24px 23px;display:flex;flex-direction:column;gap:18px;scrollbar-color:#454545 transparent}
.gm-message{max-width:84%;display:flex;flex-direction:column;gap:5px}
.gm-ai{align-self:flex-start}.gm-user{align-self:flex-end}
.gm-sender{color:#8e8e8e;font-size:10px;letter-spacing:.3px}
.gm-user .gm-sender{text-align:right}
.gm-bubble{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;padding:13px 16px;border-radius:15px}
.gm-ai .gm-bubble{background:#1b1b1b;border:1px solid #303030;color:#efefef;border-top-left-radius:5px}
.gm-user .gm-bubble{background:#35252b;border:1px solid #63444f;color:#fff;border-top-right-radius:5px}
.gm-thinking{color:#bcbcbc!important;font-style:italic}
.gm-error{font-size:12px;margin:0 21px 11px;padding:11px 13px;border:1px solid #985657;background:#281819;border-radius:9px;color:#ffb5b5;line-height:1.5}
.gm-compose{border-top:1px solid #313131;padding:15px 20px 10px;margin-top:auto;background:#121212}
.gm-compose form>label{font-size:11px;font-weight:650;color:#b7b7b7;display:block;margin-bottom:9px}
.gm-input-row{display:flex;align-items:stretch;gap:10px}
.gm-input-row textarea{resize:vertical;flex:1;min-height:78px;max-height:180px;min-width:0;background:#090909;border:1px solid #484848;border-radius:12px;color:#fff;padding:13px;font:inherit;font-size:14px;line-height:1.55;outline:none}
.gm-input-row textarea:focus{border-color:#bd94a0}
.gm-send{padding:10px 19px;border:1px solid #f4f4f4;background:#f4f4f4;color:#101010;border-radius:10px;font-weight:750;font-size:12px;cursor:pointer}
.gm-send:disabled{opacity:.4;cursor:not-allowed}
.gm-input-help{display:flex;gap:12px;justify-content:space-between;margin-top:8px;align-items:center;font-size:10px;color:#777}
.gm-input-help button{background:none;border:0;color:#d1b0b9;cursor:pointer;font-size:11px}
.gm-demo-disclaimer{color:#7d7d7d;line-height:1.5;padding:0 20px 17px;background:#121212;font-size:10px}
.gm-outline{border:1px solid #303030;border-radius:18px;background:#111;max-height:calc(100dvh - 220px);overflow:auto;min-width:0;padding:18px;scrollbar-color:#444 transparent}
.gm-outline-closed{display:none}
.gm-outline-head{display:flex;align-items:start;justify-content:space-between;gap:8px}
.gm-outline-head h2{font-size:17px;margin:6px 0 0}
.gm-plain-btn{border:0;background:none;color:#aaa;text-decoration:underline;font-size:11px;padding:4px;cursor:pointer}
.gm-subtle{font-size:11px;color:#888;line-height:1.65}
.gm-outline-section{border-top:1px solid #2d2d2d;padding:7px 0}
.gm-section-head{background:none;border:0;color:#f5f5f5;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:9px 0;text-align:left;font-size:12px;cursor:pointer}
.gm-section-head strong,.gm-section-head small{display:block}
.gm-section-head small{color:#999;font-size:10px;font-weight:400;margin-top:5px}
.gm-section-count{color:#888;font-size:10px;white-space:nowrap;margin-left:auto}
.gm-no-data{font-size:11px;color:#666;margin:7px}
.gm-fact{width:100%;background:#191919;border:1px solid #292929;border-radius:9px;color:#d9d9d9;padding:11px;text-align:left;margin:5px 0;display:grid;gap:5px;cursor:pointer}
.gm-fact:hover{border-color:#656065}
.gm-fact strong{font-size:11px;color:#dfd1d7}
.gm-fact span{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.gm-fact small{color:#8c8c8c;font-size:10px}
.gm-small-row{display:block;width:100%;background:none;border:0;border-bottom:1px solid #292929;color:#bbb;text-align:left;padding:10px 2px;line-height:1.5;font-size:11px;cursor:pointer}
.gm-small-row small{color:#a78c94;margin-left:5px}
.gm-add-related{width:100%;padding:9px;border:1px dashed #59484c;background:#191517;color:#d3adb9;border-radius:8px;text-align:left;font-size:11px;margin-top:10px;cursor:pointer}
.gm-side-block{border-top:1px solid #3a3a3a;margin-top:14px;padding-top:14px}
.gm-side-block h3{font-size:12px;margin:0 0 7px}.gm-side-block h3 span{color:#aaa}
.gm-side-block p{font-size:11px;color:#888;line-height:1.5;margin:0 0 12px}
.gm-suggestion{background:#181818;border:1px solid #303030;padding:12px;border-radius:10px;margin:10px 0;display:grid;gap:8px}
.gm-suggestion strong{font-size:12px;line-height:1.5;font-weight:600}
.gm-suggestion small{color:#999;font-size:10px;line-height:1.5}
.gm-suggestion>div{display:flex;gap:6px;flex-wrap:wrap}
.gm-suggestion button{padding:7px 8px;background:#252525;color:#eee;border:1px solid #454545;border-radius:6px;font-size:10px;cursor:pointer}
.gm-footer-link{display:block;width:100%;border:0;background:none;color:#ddd;text-align:left;margin:9px 0;text-decoration:underline;text-underline-offset:3px;font-size:12px;padding:3px 0;cursor:pointer}
.gm-pending-view{max-width:920px}.gm-pending-view h1{font-size:36px;margin:12px 0}.gm-pending-view h1 span{color:#999}
.gm-pending-view>p{font-size:13px;line-height:1.65;color:#aaa}.gm-pending-actions{display:flex;gap:9px;margin:22px 0}
.gm-pending-card{padding:19px;border:1px solid #353535;background:#121212;border-radius:14px;margin:12px 0}
.gm-pending-card p{font-size:13px;color:#b9b9b9;line-height:1.7}.gm-pending-title{display:flex;gap:12px;align-items:center;justify-content:space-between}
.gm-pending-title h2{font-size:17px;margin:6px 0}.gm-pending-title small{color:#9d9d9d}
.gm-pending-title span{font-size:11px;color:#bcbcbc}.gm-empty-pending{padding:30px;color:#8e8e8e;border:1px dashed #444;border-radius:13px}
@media(max-width:1170px){.gm-shell{grid-template-columns:minmax(0,1fr) 270px}.gm-outline{padding:13px}}
@media(max-width:985px){.gm-shell{grid-template-columns:1fr}.gm-outline{display:none}.gm-shell:has(.gm-outline:not(.gm-outline-closed)) .gm-outline{display:block;position:fixed;z-index:29;top:12px;bottom:12px;right:10px;left:10px;max-height:none;box-shadow:0 0 0 200vmax #000b;overflow:auto}.gm-header{padding:19px}.gm-messages{height:clamp(310px,52dvh,590px)}}
@media(max-width:760px){.gm-shell{margin:0 -7px}.gm-chat-wrap{border-radius:14px}.gm-header{padding:17px}.gm-header h1{font-size:21px}.gm-header p{font-size:12px}.gm-messages{padding:15px;gap:14px}.gm-message{max-width:92%}.gm-bubble{font-size:13px;padding:11px 13px}.gm-metrics{padding:11px 14px;gap:9px}.gm-compose{padding:12px}.gm-input-row textarea{font-size:13px}.gm-send{padding:8px 11px}.gm-demo-disclaimer{padding:0 12px 13px}}


/* Command Center — unified discovery navigation in the existing right sidebar. */
.gm-sidebar-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:13px 0 15px}
.gm-sidebar-switch button{display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:39px;padding:8px;border:1px solid #383036;border-radius:9px;background:#181719;color:#a69da2;font-size:10px;text-align:left;cursor:pointer}
.gm-sidebar-switch button.active{color:#f2dbe3;background:#2a2024;border-color:#936a76}
.gm-sidebar-switch button strong{font-size:12px;font-variant-numeric:tabular-nums}
.gm-sidebar-switch button:focus-visible,.gm-queue-item:focus-visible,.gm-subject-picker select:focus-visible{outline:2px solid #c59ba9;outline-offset:2px}
.gm-subject-picker{display:grid;gap:6px;margin:6px 0 12px;font-size:10px;line-height:1.5;color:#a6a0a2}
.gm-subject-picker select{width:100%;min-width:0;background:#191719;border:1px solid #474045;border-radius:8px;color:#eee;padding:9px 10px;font-size:11px;outline:none}
.gm-queue-item{display:grid;gap:6px;width:100%;min-height:69px;margin:6px 0;padding:10px 11px;border:1px solid #343036;border-radius:9px;background:#171617;text-align:left;color:#e6e1e4;cursor:pointer}
.gm-queue-item:hover{background:#241e22;border-color:#775b66}
.gm-queue-item.current{border-color:#ac7b8d;background:#30222a}
.gm-queue-item strong{font-size:11px;line-height:1.48;font-weight:620;color:#eee6e9}
.gm-queue-path{font-size:9px;line-height:1.5;color:#b59ca6;overflow-wrap:anywhere}
.gm-queue-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#91898d;line-height:1.4}
.gm-queue-item.current .gm-queue-bottom{color:#dbb9c7}
.gm-load-more,.gm-open-folder{display:block;width:100%;border:0;background:transparent;color:#c9b1bb;cursor:pointer;text-align:left;font-size:11px;line-height:1.5;padding:10px 6px}
.gm-load-more:hover,.gm-open-folder:hover{text-decoration:underline;text-underline-offset:3px}
.gm-open-folder{border-top:1px solid #302b2e;margin-top:7px}
.gm-unmapped-note{color:#a49aa0;font-size:11px;line-height:1.6;margin:8px 0 14px}
.gm-optional{border-top:1px solid #292529;margin-top:12px;padding:14px 0}
.gm-optional summary{color:#b6a5ae;font-size:11px;cursor:pointer}
.gm-outline-foot{margin-top:12px}
.gm-active-topic{display:flex;align-items:center;gap:10px;padding:9px 22px;border-bottom:1px solid #443139;background:#21191c;min-width:0}
.gm-active-topic span{font-size:10px;color:#c9a4b2;white-space:nowrap}
.gm-active-topic strong{font-size:11px;color:#f1e1e6;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gm-active-topic button{font-size:10px;background:transparent;border:0;color:#d6acbb;text-decoration:underline;cursor:pointer}
@media(max-width:980px){
 .gm-sidebar-switch{margin-top:12px}
 .gm-active-topic{padding:10px 15px}
 .gm-active-topic span{display:none}
}


/* COMMAND CENTER / FULL VIEWPORT
   This page occupies the monitor frame; only chat transcript and opened drawers scroll. */
body.bb-command-mode{overflow:hidden;height:100dvh;overscroll-behavior:none}
#app.command-center-view,#app.command-center-view .app{
 height:100dvh;min-height:0;overflow:hidden;width:100%;
}
#app.command-center-view .app>.sidebar,
#app.command-center-view .topbar,
#app.command-center-view .mobile-top,
#app.command-center-view .capture-bar,
#app.command-center-view .mobile-tabs,
#app.command-center-view .preview-warning{display:none!important}
#app.command-center-view .shell{height:100dvh;min-height:0;margin:0;overflow:hidden}
#app.command-center-view .main{
 display:block;
 width:100%;max-width:none;
 height:100dvh;min-height:0;
 margin:0;padding:0!important;overflow:hidden;
}
#app.command-center-view .gm-shell{
 position:relative;display:grid;
 grid-template-columns:222px minmax(0,1fr);
 grid-template-rows:minmax(0,1fr);
 gap:0;
 width:100%;max-width:none;
 height:100%;min-height:0;max-height:100%;
 margin:0;padding:0;overflow:hidden;
 align-items:stretch;
 background:#080808;
}
#app.command-center-view .gm-shell:has(.gm-outline-closed){
 grid-template-columns:222px minmax(0,1fr);
 max-width:none;
}
#app.command-center-view .gm-chat-wrap{
 position:relative;display:flex;flex-direction:column;
 border:0;border-radius:0;
 min-width:0;min-height:0;max-height:100%;
 height:100%;overflow:hidden;background:#080808;
}
#app.command-center-view .gm-header{
 position:relative;z-index:35;flex:none;
 display:flex;justify-content:space-between;align-items:center;gap:14px;
 padding:15px 24px 14px;min-height:70px;
 background:#090909;border-bottom:1px solid #252125;
}
#app.command-center-view .gm-header-copy{min-width:0;flex:1}
#app.command-center-view .gm-header h1{
 font-size:clamp(20px,2vw,26px);letter-spacing:-.5px;line-height:1.1;
 margin:6px 0 0;
}
#app.command-center-view .gm-eyebrow{font-size:9px;letter-spacing:1.1px}
#app.command-center-view .gm-discovery-star{
 display:grid;place-items:center;flex:none;width:43px;height:43px;
 border:1px solid #54404a;border-radius:12px;
 background:#1a1317;color:#efdae0;
 font-size:25px;line-height:1;cursor:pointer;
 transition:background .15s ease,border-color .15s ease;
}
#app.command-center-view .gm-discovery-star:hover,
#app.command-center-view .gm-discovery-star.active{
 background:#3c2530;border-color:#ad8491;color:white;
}
#app.command-center-view .gm-discovery-star:focus-visible{
 outline:2px solid #d3aabb;outline-offset:3px;
}
#app.command-center-view .gm-folder-mobile-button{display:none}
#app.command-center-view .gm-metrics{
 flex:none;padding:10px 24px;min-height:40px;
 gap:15px;background:#0b0b0b;flex-wrap:wrap;
}
#app.command-center-view .gm-messages{
 flex:1 1 auto;height:auto;min-height:0;max-height:none;
 overflow-y:auto;overscroll-behavior:contain;
 padding:22px clamp(17px,4.2vw,64px);
 gap:17px;scrollbar-color:#4c3f45 transparent;
}
#app.command-center-view .gm-message{max-width:min(84%,760px)}
#app.command-center-view .gm-compose{
 flex:0 0 auto;margin-top:0;
 padding:12px 22px 13px;
 background:#0d0d0d;border-top:1px solid #2e282b;
}
#app.command-center-view .gm-compose form>label{
 margin-bottom:7px;color:#b7b0b3;
}
#app.command-center-view .gm-input-row{align-items:flex-end;gap:9px}
#app.command-center-view .gm-input-row textarea{
 flex:1;min-height:58px;height:58px;max-height:118px;
 resize:vertical;padding:12px 13px;
 border-color:#494044;background:#0a0a0a;
 font-size:13px;line-height:1.5;
}
#app.command-center-view .gm-send{
 display:flex;align-items:center;justify-content:center;
 flex:none;align-self:flex-end;
 height:44px;min-width:78px;
 border-radius:11px;
 padding:0 15px;border:1px solid #f4edf0;
 background:#f1e9ed;color:#121011;
 font-size:12px;font-weight:720;white-space:nowrap;
}
#app.command-center-view .gm-send:hover:not(:disabled){
 background:#fff;color:#000;
}
#app.command-center-view .gm-input-help{margin-top:7px}
#app.command-center-view .gm-demo-disclaimer{display:none}
#app.command-center-view .gm-active-topic{
 flex:none;padding:10px 24px;
}

/* Department / folder navigation is a separate, internally scrolling column. */
#app.command-center-view .gm-folder-nav{
 display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;
 overflow:hidden;
 padding:18px 12px 12px;
 background:#0d0c0d;border-right:1px solid #2d292b;
}
#app.command-center-view .gm-folder-brand{
 display:flex;align-items:center;gap:10px;
 padding:5px 7px 20px;border-bottom:1px solid #292529;
}
#app.command-center-view .gm-folder-brand>span{font-size:31px;color:#dec3ce;line-height:1}
#app.command-center-view .gm-folder-brand div{display:grid;gap:5px;min-width:0}
#app.command-center-view .gm-folder-brand strong{font-size:12px;letter-spacing:.4px;white-space:nowrap}
#app.command-center-view .gm-folder-brand small{font-size:9px;letter-spacing:1.4px;color:#9c8d95}
#app.command-center-view .gm-folder-label{
 font-size:9px;letter-spacing:1.4px;color:#9b8b91;
 margin:21px 10px 9px;
}
#app.command-center-view .gm-folder-list{
 flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#4e444b transparent;
}
#app.command-center-view .gm-folder-unit{margin:2px 0}
#app.command-center-view .gm-dept-folder{
 display:flex;align-items:center;width:100%;gap:8px;
 padding:11px 9px;min-height:39px;
 background:transparent;border:1px solid transparent;border-radius:9px;
 color:#b5b1b3;font-size:12px;text-align:left;
}
#app.command-center-view .gm-dept-folder:hover{background:#1b181a;color:white}
#app.command-center-view .gm-dept-folder.active{
 color:#f4e9ed;background:#2a2024;border-color:#59434c;font-weight:630;
}
#app.command-center-view .gm-folder-glyph{
 font-size:13px;width:12px;color:#b48f9c;flex:none;
}
#app.command-center-view .gm-folder-children{
 display:grid;gap:1px;margin:2px 0 8px 20px;
 padding-left:0;border:0;background:transparent;
}
#app.command-center-view .gm-folder-children button{
 width:100%;text-align:left;padding:7px 8px;
 border:0;border-radius:7px;background:transparent;
 color:#9d9298;font-size:11px;
}
#app.command-center-view .gm-folder-children button:hover{
 color:#fff;background:#242024;
}
#app.command-center-view .gm-folder-children button.current{
 color:#fff;background:#30232a;font-weight:700;
 box-shadow:inset 2px 0 #c89aaa;
}
#app.command-center-view .gm-folder-children button:focus-visible{
 outline:2px solid #d7abbc;outline-offset:2px;
}
#app.command-center-view .gm-folder-helper{
 font-size:10px;line-height:1.6;color:#827a7f;
 padding:5px 10px 11px 28px;
}
#app.command-center-view .gm-folder-foot{
 flex:none;display:grid;gap:5px;
 padding:12px 9px 4px;margin-top:10px;
 border-top:1px solid #2e292b;
}
#app.command-center-view .gm-folder-foot strong{
 font-size:9px;letter-spacing:1.2px;color:#c9a7b5;
}
#app.command-center-view .gm-folder-foot span{
 font-size:10px;color:#91888d;line-height:1.6;
}

/* Star opens a drawer over the chat, rather than resizing the workspace. */
#app.command-center-view .gm-discovery-overlay,
#app.command-center-view .gm-folder-overlay{
 position:absolute;inset:0;z-index:20;
 border:0;background:rgba(0,0,0,.58);cursor:default;
}
#app.command-center-view .gm-outline{
 display:block;
 position:absolute;
 z-index:32;
 top:70px;right:12px;bottom:12px;
 width:min(370px,calc(100% - 24px));
 height:auto;max-height:none;min-height:0;
 border:1px solid #54434b;border-radius:14px;
 background:#111011;padding:16px;
 overflow-y:auto;overscroll-behavior:contain;
 box-shadow:0 14px 55px #000b;
}
#app.command-center-view .gm-outline.gm-outline-closed{display:none!important}
#app.command-center-view .gm-shell:has(.gm-outline-closed){
 grid-template-columns:222px minmax(0,1fr);
}
#app.command-center-view .gm-folder-overlay{display:none}

/* Compact heights still fit within one display, with no outer page scroll. */
@media(max-height:720px){
 #app.command-center-view .gm-header{min-height:60px;padding:9px 17px}
 #app.command-center-view .gm-header h1{font-size:21px}
 #app.command-center-view .gm-metrics{padding:7px 17px;gap:10px}
 #app.command-center-view .gm-messages{padding:14px 20px}
 #app.command-center-view .gm-compose{padding:9px 15px 9px}
 #app.command-center-view .gm-input-row textarea{min-height:50px;height:50px}
 #app.command-center-view .gm-outline{top:60px}
 #app.command-center-view .gm-folder-nav{padding-top:10px}
 #app.command-center-view .gm-folder-brand{padding-bottom:11px}
 #app.command-center-view .gm-folder-label{margin-top:12px}
}

@media(max-width:820px){
 #app.command-center-view .gm-shell,
 #app.command-center-view .gm-shell:has(.gm-outline-closed){
  grid-template-columns:minmax(0,1fr);
 }
 #app.command-center-view .gm-folder-mobile-button{
  display:grid;place-items:center;flex:none;
  width:39px;height:39px;border:1px solid #493e43;border-radius:10px;
  background:#1a1719;color:#ead4dd;font-size:19px;
 }
 #app.command-center-view .gm-folder-nav{
  position:absolute;top:0;bottom:0;left:0;z-index:43;
  width:min(290px,88vw);height:100%;
  transform:translateX(-105%);
  transition:transform .18s ease;
  box-shadow:10px 0 35px #0008;
 }
 #app.command-center-view .gm-shell.gm-folders-open .gm-folder-nav{
  transform:translateX(0);
 }
 #app.command-center-view .gm-folder-overlay{display:block;z-index:42}
 #app.command-center-view .gm-header{padding:12px 15px}
 #app.command-center-view .gm-metrics{padding:8px 16px}
 #app.command-center-view .gm-messages{padding:18px 18px}
 #app.command-center-view .gm-outline{
  right:8px;bottom:8px;width:min(370px,calc(100% - 16px));
 }
}
@media(max-width:460px){
 #app.command-center-view .gm-header h1{font-size:20px}
 #app.command-center-view .gm-header{gap:9px}
 #app.command-center-view .gm-discovery-star{
  height:39px;width:39px;font-size:22px;
 }
 #app.command-center-view .gm-metrics{font-size:10px;gap:10px}
 #app.command-center-view .gm-metrics button{font-size:10px}
 #app.command-center-view .gm-input-row textarea{
  height:52px;min-height:52px;padding:10px;font-size:12px;
 }
 #app.command-center-view .gm-send{
  min-width:69px;padding:0 11px;height:42px;font-size:11px;
 }
 #app.command-center-view .gm-input-help{font-size:9px}
 #app.command-center-view .gm-folder-foot{padding-bottom:calc(6px + env(safe-area-inset-bottom))}
}


/* Persistent three-column workspace: folders | center content | optional Discovery.
   The right panel participates in the grid, never blocks the conversation on desktop. */
#app.command-center-view .gm-shell,
#app.command-center-view .gm-shell:has(.gm-outline-closed){
 grid-template-columns:218px minmax(0,1fr);
 grid-template-rows:minmax(0,1fr);
}
#app.command-center-view .gm-shell:has(.gm-outline:not(.gm-outline-closed)){
 grid-template-columns:218px minmax(0,1fr) clamp(286px,23vw,348px);
}
#app.command-center-view .gm-folder-nav{
 grid-column:1;grid-row:1;position:relative;min-height:0;
}
#app.command-center-view .gm-chat-wrap{
 grid-column:2;grid-row:1;min-height:0;
}
#app.command-center-view .gm-outline:not(.gm-outline-closed){
 grid-column:3;grid-row:1;
 position:relative;display:block;
 top:auto;right:auto;bottom:auto;
 width:100%;height:100%;max-width:none;max-height:100%;
 min-width:0;min-height:0;
 overflow-y:auto;overscroll-behavior:contain;
 border:0;border-left:1px solid #393139;
 border-radius:0;background:#100e10;box-shadow:none;
 z-index:1;padding:20px 16px;
}
#app.command-center-view .gm-discovery-overlay{display:none!important}
#app.command-center-view .gm-command-link{
 display:flex;align-items:center;gap:10px;
 flex:none;width:100%;min-height:43px;margin:12px 0 9px;
 padding:10px 11px;border-radius:10px;
 border:1px solid transparent;background:transparent;
 color:#b9b0b5;text-align:left;font-size:12px;
}
#app.command-center-view .gm-command-link span{color:#bf9ba9;font-size:20px;line-height:1}
#app.command-center-view .gm-command-link strong{font-weight:650}
#app.command-center-view .gm-command-link.active{
 background:#2a2025;border-color:#6e5360;color:#fff;
}
#app.command-center-view .gm-command-link:hover{background:#241d22;color:#fff}
#app.command-center-view .gm-back-command{
 flex:none;min-height:35px;
 border:1px solid #3d343a;border-radius:9px;
 background:#171416;color:#cdb3be;
 padding:8px 11px;font-size:11px;cursor:pointer;
}
#app.command-center-view .gm-back-command:hover{background:#2a2026;color:#fff}
#app.command-center-view .gm-work-area{
 flex:1 1 auto;min-height:0;min-width:0;
 overflow-y:auto;overscroll-behavior:contain;
 padding:24px clamp(16px,3vw,48px) 35px;
 scrollbar-color:#4f4249 transparent;
}
#app.command-center-view .gm-work-area .v-folder{
 width:100%;max-width:1050px;min-height:0;margin:0 auto;
}
#app.command-center-view .gm-work-area .v-section-content{min-height:0}
#app.command-center-view .gm-work-area .v-folder-top{padding-top:0}
#app.command-center-view .gm-pending-view{width:100%;max-width:1050px;margin:0 auto}
#app.command-center-view .gm-metrics{min-width:0}
#app.command-center-view .gm-header{min-width:0}
#app.command-center-view .gm-outline-head{position:relative}
#app.command-center-view .gm-plain-btn{font-size:11px}
#app.command-center-view .gm-folder-label{margin-top:12px}
#app.command-center-view .gm-folder-list{overflow-y:auto}

/* On narrower laptops, keep the center readable by making the left folders
   collapsible; Discovery still uses a genuine right column. */
@media(max-width:1100px){
 #app.command-center-view .gm-shell,
 #app.command-center-view .gm-shell:has(.gm-outline-closed){
  grid-template-columns:minmax(0,1fr);
 }
 #app.command-center-view .gm-shell:has(.gm-outline:not(.gm-outline-closed)){
  grid-template-columns:minmax(0,1fr) min(34vw,310px);
 }
 #app.command-center-view .gm-folder-nav{
  position:absolute;top:0;bottom:0;left:0;z-index:44;
  width:min(270px,85vw);height:100%;
  transform:translateX(-105%);
  transition:transform .18s ease;
  box-shadow:8px 0 34px #0009;
 }
 #app.command-center-view .gm-shell.gm-folders-open .gm-folder-nav{transform:translateX(0)}
 #app.command-center-view .gm-folder-mobile-button{
  display:grid;place-items:center;flex:none;
  width:39px;height:39px;
  border:1px solid #493e43;border-radius:10px;
  background:#1a1719;color:#ead4dd;font-size:19px;
 }
 #app.command-center-view .gm-chat-wrap{grid-column:1;grid-row:1}
 #app.command-center-view .gm-outline:not(.gm-outline-closed){
  grid-column:2;grid-row:1;position:relative;
  top:auto;bottom:auto;right:auto;width:100%;height:100%;
  border-left:1px solid #393139;border-radius:0;box-shadow:none;
 }
 #app.command-center-view .gm-folder-overlay{display:block;z-index:43}
 #app.command-center-view .gm-header{padding:12px 15px}
 #app.command-center-view .gm-work-area{padding:18px 17px 26px}
}
@media(max-width:690px){
 /* On phones a slim side sheet can be dismissed with the star or Close.
    The full-screen layout itself still never scrolls. */
 #app.command-center-view .gm-shell:has(.gm-outline:not(.gm-outline-closed)){
  grid-template-columns:minmax(0,1fr);
 }
 #app.command-center-view .gm-outline:not(.gm-outline-closed){
  position:absolute;z-index:32;
  grid-column:1;grid-row:1;
  right:0;left:auto;top:64px;bottom:0;
  width:min(330px,86vw);height:auto;max-height:none;
  border-left:1px solid #58434c;
  border-radius:12px 0 0 0;
  box-shadow:-12px 0 30px #0008;
 }
 #app.command-center-view .gm-header{padding:10px 13px}
 #app.command-center-view .gm-back-command{font-size:0;padding:7px 9px}
 #app.command-center-view .gm-back-command::after{content:"← Chat";font-size:11px}
}
@media(max-height:650px){
 #app.command-center-view .gm-folder-foot{display:none}
 #app.command-center-view .gm-header{min-height:54px;padding-top:7px;padding-bottom:7px}
 #app.command-center-view .gm-metrics{padding:5px 15px;min-height:30px}
 #app.command-center-view .gm-work-area{padding-top:12px}
}


/* Global Settings stays separate from the Venue department folders. */
#app.command-center-view .gm-settings-link{
 flex:none;display:flex;align-items:center;gap:10px;
 width:100%;min-height:41px;margin:8px 0 0;
 padding:9px 11px;border:1px solid transparent;
 border-radius:9px;background:transparent;
 color:#aaa0a5;font-size:12px;text-align:left;
 cursor:pointer;
}
#app.command-center-view .gm-settings-link span{
 width:16px;font-size:18px;line-height:1;color:#b695a1;text-align:center;
}
#app.command-center-view .gm-settings-link strong{font-weight:620}
#app.command-center-view .gm-settings-link:hover{background:#221b20;color:white}
#app.command-center-view .gm-settings-link.active{
 background:#292026;color:#f8edf1;border-color:#664c57;
}
#app.command-center-view .gm-settings-link:focus-visible{
 outline:2px solid #c49bac;outline-offset:2px;
}


/* Only the workspace header owns Venue titles; no top-right duplicate back action. */
#app.command-center-view .gm-work-area:has(.v-folder-embedded){padding-top:18px}
#app.command-center-view .gm-work-area .v-folder-embedded{max-width:1050px}
#app.command-center-view .gm-header .gm-header-copy h1{white-space:normal}


/* Unified Command Center: a readable workspace above a permanently docked composer. */
#app.command-center-view .gm-command-switch{
 flex:none;display:flex;gap:4px;align-items:center;padding:8px clamp(15px,2.7vw,32px);
 border-bottom:1px solid var(--theme-border,#3d3239);
 background:var(--theme-surface,#151116);
}
#app.command-center-view .gm-command-switch button{
 border:1px solid transparent;background:transparent;color:var(--theme-muted,#b0a0a8);
 border-radius:8px;padding:8px 15px;cursor:pointer;font-size:12px;font-weight:680;
}
#app.command-center-view .gm-command-switch button.active{
 background:var(--theme-elevated,#30212a);
 border-color:var(--theme-border,#5d4653);
 color:var(--theme-text,#fbf0f4);
}
#app.command-center-view .gm-command-switch button:hover{
 border-color:var(--theme-brand,#ad7c8e);
}
#app.command-center-view .gm-board{
 flex:1 1 auto;min-height:0;min-width:0;
 overflow-y:auto;overscroll-behavior:contain;
 padding:clamp(16px,2.6vw,30px) clamp(16px,3.2vw,42px) 34px;
 scrollbar-color:var(--theme-border,#4b3c44) transparent;
 color:var(--theme-text,#f8eef1);
 background:var(--theme-canvas,#090809);
}
#app.command-center-view .gm-board-intro{
 display:flex;justify-content:space-between;align-items:center;gap:14px;
 margin:0 0 13px;
}
#app.command-center-view .gm-board-intro h2{
 font-size:clamp(19px,2.2vw,24px);letter-spacing:-.55px;margin:0 0 4px;
 color:var(--theme-text,#f5e9ee);
}
#app.command-center-view .gm-board-intro p{
 font-size:11px;line-height:1.45;color:var(--theme-muted,#aaa);
 margin:0;
}
#app.command-center-view .gm-board-add{
 flex:none;background:var(--theme-elevated,#251b21);
 color:var(--theme-text,#f6eaf1);border:1px solid var(--theme-border,#58434d);
 border-radius:8px;padding:9px 12px;font-size:11px;font-weight:680;cursor:pointer;
}
#app.command-center-view .gm-board-add:hover{border-color:var(--theme-brand,#bf9cab)}
#app.command-center-view .gm-board-summary{
 display:flex;flex-wrap:wrap;gap:6px 24px;
 border-top:1px solid var(--theme-border,#4b4147);
 border-bottom:1px solid var(--theme-border,#4b4147);
 padding:13px 0;margin:0 0 12px;
 color:var(--theme-muted,#b8abb1);font-size:11px;
}
#app.command-center-view .gm-board-summary strong{
 color:var(--theme-text,#fff);font-size:14px;font-weight:740;margin-right:4px;
}
#app.command-center-view .gm-board-section{margin:0;padding:17px 0 19px;border-bottom:1px solid var(--theme-border,#443640)}
#app.command-center-view .gm-board-section header{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 margin-bottom:5px;
}
#app.command-center-view .gm-board-section h3{
 font-size:15px;line-height:1.35;letter-spacing:-.2px;font-weight:730;
 color:var(--theme-text,#f8edf1);margin:0;
}
#app.command-center-view .gm-board-section h3 small{
 font-size:11px;color:var(--theme-muted,#a99ca3);margin-left:6px;font-weight:500;
}
#app.command-center-view .gm-board-section header>button{
 border:0;background:transparent;
 font-size:11px;color:var(--theme-brand,#c29dad);font-weight:630;
 padding:6px 0;cursor:pointer;white-space:nowrap;
}
#app.command-center-view .gm-board-section header>button:hover{text-decoration:underline;text-underline-offset:3px}
#app.command-center-view .gm-board-list{display:grid;gap:0}
#app.command-center-view .gm-board-row{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:11px 2px;border-bottom:1px solid var(--theme-border,#332b31);
}
#app.command-center-view .gm-board-row:last-child{border-bottom:0}
#app.command-center-view .gm-board-row-copy{display:grid;gap:5px;min-width:0}
#app.command-center-view .gm-board-row-copy strong{
 font-size:12px;line-height:1.48;font-weight:620;overflow-wrap:anywhere;
 color:var(--theme-text,#f8ebf0);
}
#app.command-center-view .gm-board-row-copy small{
 font-size:10px;line-height:1.5;color:var(--theme-muted,#aaa);
 overflow-wrap:anywhere;
}
#app.command-center-view .gm-board-row-actions{flex:none;display:flex;align-items:center;gap:7px}
#app.command-center-view .gm-board-row-actions button{
 border:1px solid var(--theme-border,#57454f);
 background:var(--theme-surface,#181219);
 color:var(--theme-text,#f3e3eb);
 border-radius:7px;font-size:10px;font-weight:640;
 padding:7px 9px;cursor:pointer;
}
#app.command-center-view .gm-board-row-actions button:hover{
 background:var(--theme-elevated,#2b2028);border-color:var(--theme-brand,#b88d9e);
}
#app.command-center-view .gm-board-empty{margin:6px 0 0;color:var(--theme-muted,#aaa);font-size:11px;line-height:1.6}
#app.command-center-view .gm-board-facts{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
 padding-top:10px;
}
#app.command-center-view .gm-board-fact{
 display:grid;gap:6px;align-content:start;text-align:left;
 padding:11px 12px;min-width:0;border-radius:9px;
 border:1px solid var(--theme-border,#55464d);
 background:var(--theme-surface,#191519);cursor:pointer;
}
#app.command-center-view .gm-board-fact span{font-size:10px;color:var(--theme-muted,#aaa)}
#app.command-center-view .gm-board-fact strong{
 font-size:11px;line-height:1.45;color:var(--theme-text,#f7e8ee);
 overflow-wrap:anywhere;font-weight:630;
}
#app.command-center-view .gm-board-fact:hover{border-color:var(--theme-brand,#b68b9c)}
#app.command-center-view .gm-chat-collapsed{
 flex:none;display:flex;align-items:center;justify-content:space-between;gap:13px;
 padding:10px clamp(16px,2.7vw,32px);
 background:var(--theme-elevated,#20171e);
 border-top:1px solid var(--theme-border,#55414c);
}
#app.command-center-view .gm-chat-collapsed>div{
 flex:1;min-width:0;display:flex;align-items:center;gap:12px;
}
#app.command-center-view .gm-chat-collapsed strong{
 font-size:11px;font-weight:740;color:var(--theme-text,#f5e7ed);white-space:nowrap;
}
#app.command-center-view .gm-chat-collapsed span{
 font-size:11px;line-height:1.3;color:var(--theme-muted,#b9a7b1);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;
}
#app.command-center-view .gm-chat-collapsed button{
 border:0;background:transparent;color:var(--theme-brand,#e0b5c5);
 font-size:11px;font-weight:680;cursor:pointer;white-space:nowrap;
}
#app.command-center-view .gm-chat-collapsed button:hover{text-decoration:underline}
#app.command-center-view .gm-command-switch button:focus-visible,
#app.command-center-view .gm-board :is(button,[tabindex="0"]):focus-visible,
#app.command-center-view .gm-chat-collapsed button:focus-visible{
 outline:2px solid var(--theme-brand,#c9a2b1);outline-offset:2px;
}
@media(max-width:700px){
 #app.command-center-view .gm-board{padding:16px 15px 24px}
 #app.command-center-view .gm-board-summary{gap:8px 16px}
 #app.command-center-view .gm-board-facts{grid-template-columns:minmax(0,1fr)}
 #app.command-center-view .gm-board-intro{align-items:flex-start}
 #app.command-center-view .gm-board-intro h2{font-size:20px}
 #app.command-center-view .gm-board-row{align-items:flex-start}
 #app.command-center-view .gm-board-row-actions{gap:5px}
 #app.command-center-view .gm-chat-collapsed{padding:9px 14px}
 #app.command-center-view .gm-chat-collapsed span{display:none}
}
@media(max-height:600px){
 #app.command-center-view .gm-chat-collapsed{padding-top:6px;padding-bottom:6px}
 #app.command-center-view .gm-command-switch{padding-top:4px;padding-bottom:4px}
}

/* Small Settings sheet anchored to bottom of folder menu, never a whole page. */
#app.command-center-view .gm-settings-anchor{position:relative;flex:none;padding:5px 0}
#app.command-center-view .gm-settings-anchor > .gm-settings-link{width:100%}
#app.command-center-view .gm-settings-popover{
 position:absolute;bottom:calc(100% + 9px);left:3px;right:3px;z-index:60;
 display:grid;gap:3px;padding:9px;border:1px solid #7a5565;border-radius:13px;
 background:#080607;color:#f4eaee;box-shadow:0 15px 45px #000a;
 max-height:min(420px,65dvh);overflow-y:auto;
}
#app.command-center-view .gm-settings-popover .gm-settings-label{
 font-size:10px;letter-spacing:.08em;text-transform:uppercase;
 color:#cfa4b5;padding:9px 10px 5px;
}
#app.command-center-view .gm-settings-popover button{
 display:block;width:100%;min-height:40px;padding:10px 12px;
 border:1px solid transparent;border-radius:8px;background:transparent;
 color:inherit;font:inherit;font-size:12px;text-align:left;cursor:pointer;
}
#app.command-center-view .gm-settings-popover button[aria-pressed="true"]{
 background:#281a22;border-color:#6a4354;color:#fff;
}
#app.command-center-view .gm-settings-popover button:hover{background:#241b20}
@media(max-width:1100px){
 #app.command-center-view .gm-settings-popover{position:absolute;bottom:calc(100% + 8px)}
}

/* Left navigation folders are simple collapsible text links, not bordered cards. */
#app.command-center-view .gm-folder-children,
html[data-theme="light"] #app.command-center-view .gm-folder-children {
 border:0!important;border-left:0!important;
 box-shadow:none!important;background:transparent!important;
}
#app.command-center-view .gm-folder-children button{
 border:0!important;box-shadow:none!important;
 border-radius:6px;background:transparent;
}
#app.command-center-view .gm-folder-children button.current{
 color:var(--theme-text,#fff);background:transparent!important;
 box-shadow:none!important;font-weight:750;
}
#app.command-center-view .gm-folder-children button:hover{
 background:var(--theme-hover,#1b1116)!important;
}
#app.command-center-view .gm-dept-folder{
 cursor:pointer;
}
#app.command-center-view .gm-dept-folder:focus-visible{
 outline:2px solid var(--theme-brand,#d8a5ba);outline-offset:2px;
}

/* Marketing Assistant: concise, directly actionable saved-work results */
.gm-result-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;max-width:100%}
.gm-result-link{appearance:none;border:1px solid var(--theme-border,#575057);border-radius:10px;
 background:var(--theme-elevated,#282127);color:var(--theme-text,#f7f3f5);padding:10px 13px;
 min-height:40px;font:inherit;font-size:12px;font-weight:650;text-align:left;
 cursor:pointer;overflow-wrap:anywhere;transition:border-color .15s,background .15s}
.gm-result-link:hover,.gm-result-link:focus-visible{border-color:var(--theme-brand,#d5aaba);
 background:var(--theme-surface,#30252c);outline-offset:2px}
.gm-result-link span{opacity:.7;padding-left:5px}
.gm-ai:has(.gm-result-links){max-width:min(92%,740px)}
.gm-work-details{border:1px solid var(--theme-border,#3b363b);border-radius:9px;
 margin-top:4px;color:var(--theme-muted,#b5acb2);font-size:12px;max-width:100%}
.gm-work-details summary{padding:9px 12px;cursor:pointer;font-weight:600}
.gm-work-details>div{padding:0 12px 12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.gm-work-issues{border-color:#8a6952}
@media(max-width:700px){.gm-ai:has(.gm-result-links){max-width:100%}.gm-result-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.gm-result-link{min-width:0;padding:9px 10px}}

/* GM Assistant typing indicator: quiet three-dot reply, not a loading page. */
#app.command-center-view .gm-message.gm-assistant-typing .gm-bubble{
 width:max-content;min-width:61px;min-height:38px;
 display:flex;align-items:center;justify-content:center;
 padding:10px 14px;
 border-radius:14px;border-top-left-radius:5px;
 font-style:normal;
}
#app.command-center-view .gm-typing-dots{
 display:inline-flex;align-items:center;justify-content:center;
 gap:5px;height:14px;
}
#app.command-center-view .gm-typing-dots>span{
 width:7px;height:7px;flex:none;display:block;
 border-radius:50%;background:#AF2447;
 opacity:.3;transform:translateY(0);
 animation:bb-gm-chat-typing 1.1s ease-in-out infinite;
}
#app.command-center-view .gm-typing-dots>span:nth-child(2){animation-delay:.16s}
#app.command-center-view .gm-typing-dots>span:nth-child(3){animation-delay:.32s}
@keyframes bb-gm-chat-typing{
 0%,65%,100%{opacity:.3;transform:translateY(0)}
 32%{opacity:1;transform:translateY(-4px)}
}
#app.command-center-view .gm-owner-live-messages .gm-assistant-typing{
 width:max-content;max-width:100%;margin:12px auto 0;
}
body.bb-gm-assistant-pending>.bbbs-operation-overlay{display:none!important}
@media(prefers-reduced-motion:reduce){
 #app.command-center-view .gm-typing-dots>span{animation:none;opacity:.7}
}

/* Older long GM replies: concise first sentence on screen, rest only on demand. */
#app.command-center-view .gm-chat-expand-old{
 display:block;max-width:min(85%,720px);
 margin:6px 0 0 0;padding:0;
 font-size:12px;line-height:1.5;
 color:var(--theme-muted,#625044);
}
#app.command-center-view .gm-chat-expand-old summary{
 cursor:pointer;display:inline-block;
 color:#AF2447;font-weight:720;
 padding:6px 2px;text-decoration:underline;
 text-underline-offset:3px;
}
#app.command-center-view .gm-chat-expand-old>div{
 white-space:pre-wrap;overflow-wrap:anywhere;
 margin:8px 0 0;padding:14px;
 border:1px solid var(--theme-border,#C3B5A1);
 border-radius:10px;
 color:var(--theme-text,#41291F);
 background:var(--theme-surface,#FFF9EF);
 max-height:50dvh;overflow:auto;
}
#app.command-center-view .gm-ai .gm-chat-expand-old{align-self:flex-start}
@media(max-width:760px){
 #app.command-center-view .gm-chat-expand-old{max-width:100%;}
}

/* Shared GM mobile density standard: preserve readable type; reduce blank space. */
@media(max-width:760px){
 #app.command-center-view .gm-header{min-height:55px;padding:8px 12px}
 #app.command-center-view .gm-metrics{padding:6px 12px;gap:8px;min-height:29px}
 #app.command-center-view .gm-messages{padding:11px 13px 14px;gap:11px}
 #app.command-center-view .gm-message{gap:5px}
 #app.command-center-view .gm-bubble{padding:10px 12px;line-height:1.5}
 #app.command-center-view .gm-compose{padding:7px 11px 9px}
 #app.command-center-view .gm-compose form>label{margin-bottom:4px}
 #app.command-center-view .gm-input-row{gap:7px}
 #app.command-center-view .gm-input-row textarea{min-height:49px;height:49px;max-height:104px;padding:9px 11px;font-size:14px;line-height:1.4}
 #app.command-center-view .gm-send{min-width:64px;min-height:43px;height:43px}
 #app.command-center-view .gm-input-help{margin-top:4px}
 #app.command-center-view .gm-work-area:not(:has(.sc-restored-ownership-meeting)){padding:10px 11px 18px}
}
@media(max-height:690px) and (max-width:760px){
 #app.command-center-view .gm-input-help{display:none}
 #app.command-center-view .gm-metrics{min-height:25px;padding-block:4px}
 #app.command-center-view .gm-header{min-height:50px;padding-block:5px}
}
