/* One + menu for composer actions; only selected attachments stay visible. */
#agent-form[data-attachment-menu] { position:relative; }
html:root #sog-agent-panel #agent-form[data-attachment-menu] :is(.sog-attach-button,.agent-context-button,.kr-composer-tip),
html:root #sog-agent-panel #agent-form[data-attachment-menu] .recipe-agent-bar > button,
html:root #sog-agent-panel #agent-form[data-attachment-menu] .agent-project-document-row > button { display:none!important; }
html:root #sog-agent-panel #agent-form[data-attachment-menu]:not([data-attachment-agent="production"]) .recipe-agent-bar,
html:root #sog-agent-panel #agent-form[data-attachment-menu]:not([data-attachment-agent="production"]) .sog-attach-role,
html:root #sog-agent-panel #agent-form[data-attachment-menu] .recipe-agent-bar:not(:has(> span)),
html:root #sog-agent-panel #agent-form[data-attachment-menu] .agent-project-document-row:not(:has(#agent-project-documents > span)) { display:none!important; }
html:root #sog-agent-panel #agent-form #agent-add-attachments {
  display:grid;place-items:center;order:10!important;flex:none;width:34px;height:34px;padding:7px;
  border:0;border-radius:50%;background:transparent;color:var(--text-2);cursor:pointer;
}
html:root #sog-agent-panel #agent-form #agent-add-attachments:hover,
html:root #sog-agent-panel #agent-form #agent-add-attachments[aria-expanded="true"] { background:var(--v2-fill-strong,var(--surface-2));color:var(--text-1); }
#agent-add-attachments svg,#agent-attachment-menu svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none; }
#agent-attachment-menu {
  position:fixed;z-index:10000;box-sizing:border-box;margin:0;padding:6px;overflow:auto;
  border:1px solid var(--v2-edge-strong,var(--hairline));border-radius:14px;
  background:var(--surface-1);color:var(--text-1);box-shadow:0 12px 40px rgba(0,0,0,.25);
}
#agent-attachment-menu[hidden] { display:none!important; }
#agent-attachment-menu .agent-attach-menu-heading { margin:0;padding:8px 10px 5px;color:var(--text-3);font:500 11px/1.4 var(--font-ui); }
#agent-attachment-menu button { display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--text-1);text-align:left;cursor:pointer; }
#agent-attachment-menu button:hover,#agent-attachment-menu button:focus-visible { background:var(--v2-fill-strong,var(--surface-2)); }
#agent-attachment-menu button:disabled { opacity:.45;cursor:default; }
#agent-attachment-menu button span { display:flex;flex-direction:column;gap:3px;min-width:0; }
#agent-attachment-menu strong { font:500 13px/1.4 var(--font-ui); }
#agent-attachment-menu small { color:var(--text-3);font:400 11.5px/1.4 var(--font-ui); }
#agent-attachment-menu hr { margin:5px 7px;border:0;border-top:1px solid var(--v2-edge,var(--hairline)); }
#agent-add-attachments:focus-visible,#agent-attachment-menu button:focus-visible { outline:2px solid var(--gold-ring);outline-offset:2px; }
:root[data-ui=v2] #sog-agent-panel #agent-form[data-attachment-menu] > :is(.recipe-agent-bar,.agent-project-document-row) { order:1!important;flex:1 0 100%;padding:0 2px 6px!important; }
:root[data-ui=v2] #sog-agent-panel #agent-form[data-attachment-menu] #agent-project-documents { display:flex;flex-wrap:wrap;gap:6px; }
:root[data-ui=v2] #sog-agent-panel #agent-form[data-attachment-menu] :is(#agent-project-documents,.recipe-agent-bar) > span { display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:7px 10px;border:1px solid var(--v2-edge-strong);border-radius:9px;font:400 12px/1.4 var(--font-ui);overflow-wrap:anywhere; }
:root[data-ui=v2] #sog-agent-panel #agent-form[data-attachment-menu] .sog-voice-mic { order:28!important;margin-left:auto!important; }
:root[data-ui=v2] #sog-agent-panel #agent-form[data-attachment-menu]:has(.sog-voice-mic) .agent-send { margin-left:0!important; }
