﻿/* A compact, persistent command row; existing controls remain the action owners. */
#shell.omni-ready { grid-template-rows:auto auto auto minmax(0,1fr); }
#shell.omni-ready > .tabbar { grid-row:1; }
#shell.omni-ready > #myva-omni-bar { grid-row:2; grid-column:1/-1; }
#shell.omni-ready > .builder-mobile-switch { grid-row:3; }
#shell.omni-ready > #builder-main { grid-row:4; }
#myva-omni-bar { display:flex; align-items:center; gap:6px; min-width:0; padding:9px 18px; border-bottom:1px solid var(--line); background:var(--panel); position:relative; z-index:45; }
#myva-omni-bar .omni-control { min-height:42px; flex:none; padding:9px 12px; color:var(--muted); background:transparent; border:1px solid transparent; border-radius:7px; font:inherit; font-size:13px; font-weight:600; white-space:nowrap; box-shadow:none; }
#myva-omni-bar .omni-control:hover, #myva-omni-bar .omni-control[aria-expanded="true"] { background:var(--panel2); border-color:var(--line); color:var(--text); filter:none; }
#myva-omni-bar .omni-primary { background:#355fb5; color:#fff; border-color:#355fb5; padding-inline:15px; }
#myva-omni-bar .omni-primary:hover, #myva-omni-bar .omni-primary[aria-expanded="true"] { background:#294c94; border-color:#294c94; color:#fff; }
#myva-omni-bar .omni-control:disabled { opacity:.5; cursor:not-allowed; }
#myva-omni-bar #omni-form { display:flex; flex:1; min-width:100px; max-width:800px; align-items:center; flex-wrap:nowrap; gap:0; height:42px; margin:0 8px; border:1px solid var(--line); border-radius:7px; background:var(--bg); padding:0; }
#myva-omni-bar #omni-form:focus-within { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent); }
#myva-omni-bar #omni-query { width:100%; min-width:0; flex:1; height:40px; min-height:0; margin:0; padding:9px 12px; border:0; border-radius:7px; background:transparent; box-shadow:none; outline:none; font:inherit; font-size:13px; color:var(--text); }
#myva-omni-bar #omni-query::placeholder { color:var(--muted); opacity:1; }
#myva-omni-bar .omni-search-submit { flex:none; height:32px; min-height:0; margin:0 4px; padding:5px 9px; color:var(--muted); background:transparent; border:0; border-left:1px solid var(--line); border-radius:0; font-size:12px; box-shadow:none; }
#myva-omni-bar :is(button,input):focus-visible, .omni-popover button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
#myva-omni-bar #omni-query:focus-visible { outline:none; }
.omni-popover { position:fixed; z-index:140; box-sizing:border-box; padding:8px; overflow:auto; overscroll-behavior:contain; background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:10px; box-shadow:0 14px 40px #10234a26; }
.omni-popover[hidden] { display:none!important; }
.omni-menu-heading { margin:3px 10px 7px; font-size:11px; font-weight:650; color:var(--muted); text-transform:uppercase; letter-spacing:.09em; }
.omni-popover .omni-action { display:block; width:100%; min-height:48px; margin:0; padding:9px 10px; text-align:left; border:0; border-radius:6px; background:transparent; color:var(--text); box-shadow:none; font:inherit; font-size:13px; white-space:normal; overflow-wrap:anywhere; }
.omni-popover .omni-action:hover, .omni-popover .omni-action:focus { background:var(--panel2); filter:none; }
.omni-action strong { display:block; font-weight:600; line-height:1.4; }
.omni-action small { display:block; margin-top:2px; color:var(--muted); font-size:11px; line-height:1.45; font-weight:400; }
.omni-action:disabled { opacity:.5; cursor:not-allowed; }
.omni-popover .omni-search-action { color:var(--accent); font-weight:600; }
.omni-search-scope { margin:0 10px 8px; padding-bottom:9px; border-bottom:1px solid var(--line); color:var(--muted); font-size:11px; line-height:1.5; }
/* Collapse superseded rows only after the command surface mounts successfully. */
#shell.omni-ready #left > #chat-persistent-tools,
body[data-mobile-layout] #shell.omni-ready #left:has(> #chat.on) > #chat-persistent-tools,
#shell.omni-ready #conversation-toolbar { display:none!important; }
#shell.omni-ready #left > #chat-persistent-tools { padding:0; }
#shell.omni-ready #left:has(> #chat.on), #shell.omni-ready #left:has(> #history-pane.on) { grid-template-rows:auto minmax(0,1fr) auto; }
#shell.omni-ready #left:has(> #chat.on) > #work-summary { grid-row:1; }
#shell.omni-ready #left:has(> #chat.on) > #chat, #shell.omni-ready #left:has(> #history-pane.on) > #history-pane { grid-row:2; }
#shell.omni-ready #left:has(> #chat.on) > .chat-footer { grid-row:3; }
#shell.omni-ready .today-chat-start { padding-block:10px; }
#shell.omni-ready .today-chat-start h2 { margin-bottom:10px; }
#shell.omni-ready #company-pane .company-guide { display:none; }
#shell.omni-ready #company-pane .company-head { padding-block:8px 18px; }
#shell.omni-ready #company-pane .company-head .company-eyebrow { display:none; }
#shell.omni-ready #search-pane { padding:28px clamp(18px,4vw,56px); }
#shell.omni-ready #search-pane > h2 { margin:0 0 6px; font-size:24px; letter-spacing:-.025em; }
#shell.omni-ready #search-pane > .omni-results-intro { color:var(--muted); font-size:13px; line-height:1.5; margin:0 0 20px; }
#shell.omni-ready #omni-status { font-size:13px; color:var(--muted); }
#shell.omni-ready .omni-search-details { margin-top:20px; font-size:12px; color:var(--muted); max-width:800px; }
#shell.omni-ready .omni-search-details summary { cursor:pointer; min-height:40px; padding-block:10px; }
#shell.omni-ready .omni-search-details p { line-height:1.6; }
#shell.omni-ready .omni-search-details .panel-actions { justify-content:flex-start; }
#shell.omni-ready .omni-search-details button { min-height:40px; background:var(--panel); border:1px solid var(--line); color:var(--text); font-size:12px; }
#shell.omni-ready #omni-results { max-width:1000px; }
#shell.omni-ready #omni-results button { padding:16px 18px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); font-weight:600; line-height:1.5; }
#shell.omni-ready #omni-results button small { margin-top:5px; color:var(--muted); font-weight:400; }
@media (max-width:1000px) { #myva-omni-bar .omni-desktop { display:none; } #myva-omni-bar #omni-form { max-width:none; margin-inline:4px; } }
@media (max-width:600px) { #myva-omni-bar { padding:7px 10px; gap:4px; } #myva-omni-bar .omni-control { min-height:44px; padding:9px 10px; font-size:12px; } #myva-omni-bar #omni-form { height:44px; margin:0; } #myva-omni-bar #omni-query { height:42px; font-size:16px; padding-inline:9px; } #myva-omni-bar .omni-search-submit { display:none; } #shell.omni-ready #search-pane { padding:20px 16px; } }
body[data-mobile-layout] #shell.omni-ready, body[data-mobile-layout] #shell.omni-ready[data-workspace-open="true"] { grid-template-rows:auto minmax(0,1fr); }
body[data-mobile-layout] #shell.omni-ready > #myva-omni-bar { grid-row:1; grid-column:1; }
body[data-mobile-layout] #shell.omni-ready > #builder-main, body[data-mobile-layout] #shell.omni-ready[data-workspace-open="true"] > #builder-main { grid-row:2; grid-column:1; }
body[data-mobile-layout] #shell.omni-ready #left:has(> #chat.on) { grid-template-rows:auto minmax(0,1fr) auto; }
body[data-mobile-layout] #shell.omni-ready #left:has(> #chat.on) > #work-summary { grid-row:1; }
body[data-mobile-layout] #shell.omni-ready #left:has(> #chat.on) > #chat { grid-row:2; }
body[data-mobile-layout] #shell.omni-ready #left:has(> #chat.on) > .chat-footer { grid-row:3; }
/* Put thread exports in More; retain verified deliverables and action feedback in chat. */
#shell.omni-ready #chat-delivery-toolbar { display:contents!important; }
#shell.omni-ready #chat-delivery-toolbar > .chat-delivery-label,
#shell.omni-ready #chat-delivery-toolbar [data-delivery-action],
#shell.omni-ready #chat-delivery-toolbar [data-current-conversation] { display:none!important; }
#shell.omni-ready #chat-delivery-toolbar > .chat-delivery { display:contents; }
#shell.omni-ready #chat-delivery-thread-status:empty { display:none; }

/* Workspace locator: one calm list, with coverage available on demand. */
#search-pane .locator-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; max-width:1060px; margin-bottom:18px; }
#search-pane .locator-heading h2 { font-size:26px; letter-spacing:-.025em; margin:0 0 6px; }
#search-pane .omni-results-intro { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
#search-pane .locator-scope-label { display:grid; gap:5px; color:var(--muted); font-size:11px; flex:none; }
#locator-scope { min-height:44px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--text); padding:8px 30px 8px 12px; font:inherit; font-size:12px; }
#locator-filters { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 18px; max-width:1060px; }
#locator-filters[hidden] { display:none; }
#locator-filters button { min-height:40px; padding:7px 12px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--muted); font-size:12px; }
#locator-filters button[aria-pressed="true"] { color:var(--accent); border-color:var(--accent); background:var(--panel2); }
#shell.omni-ready #omni-results { max-width:1060px; }
#shell.omni-ready #omni-results .locator-result { display:block; margin:0; padding:18px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; color:var(--text); text-align:left; font-weight:400; }
#shell.omni-ready #omni-results .locator-result:hover { background:var(--panel2); filter:none; }
#shell.omni-ready #omni-results .locator-result:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.locator-result>strong { display:block; font-size:16px; font-weight:650; letter-spacing:-.01em; line-height:1.4; }
#shell.omni-ready #omni-results .locator-type { font-size:10px; text-transform:uppercase; letter-spacing:.07em; color:var(--accent); margin:0 0 5px; }
.locator-snippet { display:block; margin-top:6px; max-width:88ch; color:var(--text); font-size:13px; line-height:1.55; }
#shell.omni-ready #omni-results .locator-context { font-size:11px; line-height:1.5; color:var(--muted); margin-top:7px; }
.locator-result mark { color:inherit; background:color-mix(in srgb,var(--accent) 13%,transparent); font-weight:650; padding:0 1px; }
#locator-hints,.locator-empty { max-width:620px; padding:34px 0; font-size:14px; line-height:1.7; }
#locator-hints p,.locator-empty p { color:var(--muted); margin:8px 0; }
#locator-hints[hidden] { display:none; }
.locator-key-hint { font-size:12px; }
#locator-hints kbd { font:inherit; padding:2px 5px; border:1px solid var(--line); border-radius:4px; background:var(--panel); }
#locator-coverage { padding:0; margin:12px 0; list-style:none; }
#locator-coverage li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; border-bottom:1px solid var(--line); padding:10px 0; }
#locator-coverage li>span:last-child { grid-column:1/-1; line-height:1.5; }
.locator-source-status { font-size:11px; }
#locator-preview { width:min(620px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); overflow:auto; background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:10px; padding:20px; }
#locator-preview::backdrop { background:#10234a66; }
#locator-preview .dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
#locator-preview-title { font-size:21px; margin:0; overflow-wrap:anywhere; }
#locator-preview-close { min-height:44px; }
#locator-preview-body { font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
#locator-preview-body dt { font-size:11px; color:var(--muted); margin-top:12px; }
#locator-preview-body dd { margin:0; }
.locator-preview-context,.locator-preview-note { color:var(--muted); font-size:12px; }
@media(max-width:600px) {
 #search-pane .locator-heading { display:block; margin-bottom:14px; }
 #search-pane .locator-heading h2 { font-size:23px; }
 #search-pane .locator-scope-label { display:flex; align-items:center; gap:10px; margin-top:14px; }
 #locator-scope { flex:1; min-width:0; font-size:14px; }
 #locator-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; margin-bottom:8px; scrollbar-width:thin; }
 #locator-filters button { flex:none; min-height:44px; }
 #shell.omni-ready #omni-results .locator-result { padding:16px 0; }
 #locator-hints { padding-block:22px; }
 .locator-key-hint { display:none; }
 #locator-preview { padding:16px; }
}

#shell.omni-ready #search-pane.on { display:block; overflow-y:auto; }
