/* Atlas command workspace: compact surfaces, consistent exits, clear focus. */
body.is-v2 {
  --ui-radius:8px;
  --ui-control-radius:6px;
  --ui-shadow:0 2px 10px #172b4a10,0 1px 2px #172b4a08;
}
body.is-v2 :is(.v2-panel-tasks,.v2-panel-wide,.v2-panel-sel,.v2-jarvis-panel,.v2-grok-panel,.hp-collection,.hp-almaro-card,#atlasInvestmentHUD) { margin:0; }
body.is-v2 .v2-topbar { left:12px;right:12px;top:12px;height:52px;min-height:52px;padding:0 12px;gap:10px;border-radius:var(--ui-radius);border-color:var(--ui-line); }
body.is-v2 .v2-brand { width:74px;height:36px; }
body.is-v2 .v2-brand-logo { width:72px;height:34px; }
body.is-v2 .v2-search { max-width:460px; }
body.is-v2 .v2-search-field { height:34px;padding:0 9px;gap:8px;border-radius:var(--ui-control-radius); }
body.is-v2 #v2SearchInput { font-size:13px;min-width:0; }
body.is-v2 .v2-topbar-actions { gap:6px;height:36px; }
body.is-v2 .v2-topbar .atlas-reminders-toggle { flex-basis:36px;width:36px;height:36px; }
body.is-v2 .v2-topbar :is(.v2-btn-secondary,.v2-btn-primary,.v2-burger,.v2-dd-toggle) { min-height:36px;height:36px;border-radius:var(--ui-control-radius);font-size:12px;padding:0 10px; }
body.is-v2 .v2-topbar #v2UploadBtn { background:transparent;color:var(--ui-muted);padding:0 10px; }
body.is-v2 .v2-topbar .v2-burger { width:36px;min-width:36px;padding:8px; }
body.is-v2 .atlas-ask-trigger,body.is-v2 .v2-topbar .atlas-ask-trigger { display:inline-flex;align-items:center;justify-content:center;background:var(--ui-blue);color:#fff;border:1px solid var(--ui-blue);border-radius:6px;font:500 12px/1.2 "IBM Plex Sans",system-ui,sans-serif;white-space:nowrap;cursor:pointer; }
body.is-v2 .atlas-ask-trigger:hover,body.is-v2 .v2-topbar .atlas-ask-trigger:hover { background:#193bbd;color:#fff; }
body.is-v2 .atlas-command-trigger { flex:none;min-width:38px;min-height:26px;padding:3px 5px;border:1px solid #d7dfea;border-radius:4px;background:#fff;color:var(--ui-muted);cursor:pointer; }
body.is-v2 kbd { font:500 11px/1.2 "IBM Plex Sans",system-ui,sans-serif;white-space:nowrap; }
body.is-v2 :is(.v2-dd-menu,.v2-layers-menu,.v2-search-menu,.atlas-map-extra) { border-radius:8px;padding:6px; }
body.is-v2 :is(.v2-menu-opt,.v2-layers-menu button) { border-radius:6px;min-height:34px;padding:8px 10px; }
body.is-v2 .v2-menu-opt kbd { margin-left:auto;color:var(--ui-muted); }
body.is-v2 .atlas-collection-actions { left:84px;top:76px;padding:3px;border-radius:8px;border-color:var(--ui-line); }
body.is-v2 .atlas-collection-actions[hidden] { display:none!important; }
body.is-v2 .atlas-collection-actions :is(#hospitalityInventoryButton,#hospitalityMessageButton) { min-height:34px;padding:0 12px;font-size:12px;border-radius:6px; }
body.is-v2 .hp-message-status { left:84px;top:120px; }
body.is-v2 #v2Rail { left:12px;width:56px;border-radius:8px;padding:5px;gap:2px;border-color:var(--ui-line); }
body.is-v2 #v2Rail .v2-rail-btn { width:44px;height:44px;border-radius:6px;gap:3px; }
body.is-v2 #v2Rail .v2-rail-on { border-radius:6px; }
body.is-v2 #v2Rail .v2-rail-label { font-size:10px; }
body.is-v2 #navControls { right:12px;bottom:12px;padding:3px;gap:0;border-radius:8px;border-color:var(--ui-line); }
body.is-v2 #navControls .v2-nav-btn,body.is-v2 .atlas-map-more > summary { width:34px;min-width:34px;height:34px;border-radius:6px; }
body.is-v2 .atlas-map-extra { bottom:46px;padding:10px; }
body.is-v2 #lgLayersMenu { bottom:62px;right:12px; }

/* Map chrome never sits on top of a work screen. Selection survives navigation. */
body.is-v2.is-workspace-frame :is(#atlasInvestmentHUD,.atlas-collection-actions,#hospitalityCollection,#hospitalityMessageStatus,#v2DealCard,.opportunity-orbit) { display:none!important; }
body.is-v2 :is(.v2-panel-tasks,.v2-panel-wide,.v2-panel-sel,.v2-jarvis-panel,.v2-grok-panel) { top:76px;bottom:12px;left:84px;border:1px solid var(--ui-line);border-radius:8px;background:#fff;box-shadow:var(--ui-shadow); }
body.is-v2 :is(.v2-panel-wide,.v2-grok-panel) { right:12px; }
body.is-v2 .v2-panel-tasks { width:min(520px,calc(100vw - 96px)); }
body.is-v2 .v2-panel-sel { left:616px;right:12px; }
body.is-v2 .v2-bhead { padding:12px 16px; }
body.is-v2 .v2-bhead h2 { margin-top:4px;font:600 20px/1.25 "IBM Plex Sans",system-ui,sans-serif;letter-spacing:-.01em;color:var(--ui-ink); }
body.is-v2 .v2-folio { font-size:11px;letter-spacing:.04em; }
body.is-v2 .v2-bhead :is(.v2-quiet-btn,.v2-sort-btn) { min-height:32px;padding:6px 9px;border-radius:6px;letter-spacing:0;text-transform:none; }
body.is-v2 :is(.v2-sel-head,.v2-sel-body,.v2-score-body) { padding-left:16px;padding-right:16px; }
body.is-v2 .v2-sel-title { font-size:20px;line-height:1.3; }
body.is-v2 :is(.v2-btn-mini,.v2-verb-btn,.v2-tsearch,.v2-composer,.v2-guide) { border-radius:6px; }

body.is-almaro-collection .hp-almaro-collection { left:84px;top:126px;bottom:12px;width:min(430px,calc(100vw - 108px)); }
body.is-almaro-collection .hp-almaro-collection .hp-collection-head { padding:14px 48px 12px 16px; }
body.is-almaro-collection .hp-almaro-collection .hp-collection-head h2 { font-size:20px; }
body.is-almaro-collection .hp-almaro-card { top:76px;right:12px;max-height:calc(100dvh - 140px);border-radius:8px; }
body.is-almaro-collection .hp-almaro-card :is(.hp-button,.hp-close,.hp-location) { border-radius:6px; }
body.is-v2 .opportunity-orbit { left:84px;top:124px;padding:6px 8px 6px 12px;gap:8px;border-radius:8px; }
body.is-v2 .opportunity-orbit button { min-height:34px;padding:6px 10px;border-radius:6px; }
body.is-almaro-collection.has-investment-hud:not(.is-investment-details-open) #atlasInvestmentHUD { width:min(700px,calc(100vw - 168px));bottom:64px;padding:12px 16px;border-radius:8px;border-color:var(--ui-line);box-shadow:var(--ui-shadow); }
body.is-almaro-collection #atlasInvestmentHUD .ih-top { margin-bottom:10px; }
body.is-almaro-collection #atlasInvestmentHUD .ih-numbers { gap:12px; }
body.is-almaro-collection #atlasInvestmentHUD .ih-metric { gap:3px; }
body.is-almaro-collection #atlasInvestmentHUD .ih-metric strong { font-size:clamp(20px,2vw,26px); }
body.is-almaro-collection #atlasInvestmentHUD .ih-note { margin-top:10px; }
body.is-almaro-collection #atlasInvestmentHUD .ih-scenarios { border-radius:6px;padding:2px; }
body.is-v2 .br-review { border-radius:8px; }
body.is-v2 .br-review .br-header { padding:16px 64px 12px 20px; }
body.is-v2 .br-review .br-header h2 { font-size:20px; }
body.is-v2 .br-review :is(.br-next,.br-prev,.br-close,.hp-button) { border-radius:6px; }
body.is-v2 .br-review .br-footer { padding:12px 20px; }

/* Native dialog provides a focus boundary and Escape behavior. */
body.is-v2 .atlas-commands { width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--ui-line);border-radius:8px;background:#fff;color:var(--ui-ink);box-shadow:0 18px 64px #172b4a30;font:400 14px/1.4 "IBM Plex Sans",system-ui,sans-serif; }
body.is-v2 .atlas-commands[open] { display:flex;flex-direction:column; }
body.is-v2 .atlas-commands::backdrop { background:#14233c55; }
.atlas-commands header { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 8px; }
.atlas-commands h2 { margin:0;font:600 18px/1.3 "IBM Plex Sans",system-ui,sans-serif;color:var(--ui-ink); }
.atlas-commands [data-command-close] { height:34px;width:34px;border:0;border-radius:6px;background:transparent;color:var(--ui-muted);font-size:22px;cursor:pointer; }
.atlas-command-search { padding:0 16px 12px; }
.atlas-command-search input { width:100%;height:40px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:6px;background:#f7f9fc;font:400 14px/1.4 "IBM Plex Sans",system-ui,sans-serif;color:var(--ui-ink); }
.atlas-command-results { min-height:0;overflow:auto;padding:6px;border-top:1px solid var(--ui-line); }
.atlas-command-results button { display:flex;align-items:center;justify-content:space-between;text-align:left;gap:16px;width:100%;min-height:44px;padding:10px;border:0;border-radius:6px;background:transparent;color:var(--ui-ink);cursor:pointer; }
.atlas-command-results button strong { font:500 13px/1.3 "IBM Plex Sans",system-ui,sans-serif; }
.atlas-command-results button span { color:var(--ui-muted);font:400 12px/1.3 "IBM Plex Sans",system-ui,sans-serif; }
.atlas-command-results button:is(:hover,:focus-visible) { background:var(--ui-tint); }
.atlas-command-results p { margin:12px 10px;color:var(--ui-muted); }
body.is-v2 .atlas-commands footer { display:flex;justify-content:space-between;gap:16px;padding:10px 16px;border-top:1px solid var(--ui-line);color:var(--ui-muted);font-size:10px; }

@media(min-width:769px) and (max-width:1199px) {
  body.is-v2 .v2-panel-tasks { width:calc(100vw - 96px); }
  body.is-v2 .v2-panel-sel { left:84px;z-index:6; }
}
@media(max-width:900px) and (min-width:769px) {
  body.is-v2 #v2PipelineLink { display:none; }
  body.is-v2 .v2-topbar { gap:8px; }
}
@media(max-width:768px) {
  body.is-v2 #app { --mbar-h:calc(56px + env(safe-area-inset-top,0px));--mtab-h:calc(60px + env(safe-area-inset-bottom,0px)); }
  body.is-v2 #v2Mbar { padding-left:8px;padding-right:8px;gap:4px; }
  body.is-v2 .v2-mbrand { width:70px;min-width:70px; }
  body.is-v2 .v2-mbrand-logo { width:68px;height:32px; }
  body.is-v2 .v2-mfilter { height:44px;border-radius:6px;padding:0 8px;font-size:10px; }
  body.is-v2 .v2-micon { border-radius:6px; }
  body.is-v2 #v2Mbar .atlas-ask-mobile { min-width:44px;height:44px;padding:0 9px;background:var(--ui-blue);border-color:var(--ui-blue);color:#fff; }
  body.is-v2 .atlas-collection-actions { left:8px;top:calc(var(--mbar-h) + 8px);padding:2px;border-radius:8px; }
  body.is-v2 .atlas-collection-actions :is(#hospitalityInventoryButton,#hospitalityMessageButton) { min-height:44px;padding:0 10px; }
  body.is-v2 .hp-message-status { left:8px;right:8px;top:calc(var(--mbar-h) + 60px); }
  body.is-v2 .opportunity-orbit { left:8px;top:calc(116px + env(safe-area-inset-top,0px)); }
  body.is-v2 .opportunity-orbit button { min-height:44px; }
  body.is-v2 #v2Rail { left:0;width:auto;height:var(--mtab-h);padding:3px 6px calc(3px + env(safe-area-inset-bottom,0px));border-radius:0; }
  body.is-v2 #v2Rail .v2-rail-btn { width:auto;height:52px;min-height:52px; }
  body.is-v2 :is(.v2-panel-tasks,.v2-panel-wide,.v2-panel-sel,.v2-jarvis-panel,.v2-grok-panel) { left:0;right:0;top:var(--mbar-h);bottom:var(--mtab-h);width:auto;border-radius:0;border-left:0;border-right:0; }
  body.is-v2 .v2-bhead-actions { flex-wrap:wrap; }
  body.is-v2 .v2-bhead :is(.v2-quiet-btn,.v2-sort-btn) { min-height:44px; }
  body.is-almaro-collection .hp-almaro-collection { left:8px;right:8px;top:calc(var(--mbar-h) + 64px);bottom:calc(var(--mtab-h) + 8px);width:auto;border-radius:8px; }
  body.is-almaro-collection .hp-almaro-card { top:calc(var(--mbar-h) + 64px);right:8px;left:8px;width:auto;max-height:calc(100dvh - var(--mbar-h) - var(--mtab-h) - 72px); }
  body.is-almaro-collection.has-investment-hud:not(.is-investment-details-open) #atlasInvestmentHUD { left:8px;right:8px;bottom:calc(68px + env(safe-area-inset-bottom,0px));transform:none;width:auto;padding:10px 12px;border-radius:8px; }
  body.is-almaro-collection #atlasInvestmentHUD .ih-numbers { gap:8px; }
  body.is-almaro-collection #atlasInvestmentHUD .ih-metric strong { font-size:clamp(17px,5vw,23px); }
  body.is-almaro-collection #atlasInvestmentHUD .ih-note { margin-top:8px;font-size:10px; }
  body.is-v2 .atlas-commands { max-height:calc(100dvh - 24px); }
  .atlas-commands [data-command-close] { width:44px;height:44px; }
  .atlas-command-search input { font-size:16px;height:44px; }
  .atlas-command-results button { align-items:flex-start;flex-direction:column;gap:3px;min-height:52px; }
  body.is-v2 .atlas-commands footer { display:none; }
}
@media(max-height:540px) and (min-width:769px) {
  body.is-almaro-collection.has-investment-hud:not(.is-investment-details-open) #atlasInvestmentHUD { left:84px;right:60px;bottom:12px;transform:none;width:auto; }
  body.is-almaro-collection #atlasInvestmentHUD .ih-note { display:none; }
}
