/* Shared composer: compact actions, selected-file chips, top-layer menus. */
#commands #executeForm{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px!important;padding:10px!important;border:1px solid #38516b;border-radius:20px;background:#0d1c2c}
#commands #command{border:0!important;outline-offset:-2px;background:transparent!important;min-height:48px!important;max-height:120px!important;padding:9px 6px!important;margin:0!important;resize:vertical}
#commands #executeForm>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#commands #executeForm .command-actions{display:flex!important;align-items:center;gap:8px!important;grid-template-columns:none!important;width:100%}
#commands #executeForm .command-actions button{flex:0 0 44px;width:44px!important;min-width:44px!important;min-height:44px!important;height:44px;padding:0!important;margin:0!important;border-radius:50%;font-size:19px;display:grid;place-items:center}
#commands #executeForm .command-actions #run{margin-inline-start:auto!important;width:auto!important;flex-basis:auto;min-width:64px!important;padding-inline:16px!important;border-radius:22px;font-size:14px}
#commands #executeForm .composer-add{font-size:29px!important;font-weight:400;background:#243b50;color:#dfedfa;border:1px solid #49637d}
#commands #executeForm .wake-option{display:none!important}
#commands #voiceCommand{touch-action:none;user-select:none;-webkit-touch-callout:none}
#commands #voiceCommand.holding{box-shadow:0 0 0 4px #5bbaff44;transition:box-shadow 3s}
#commands #voiceCommand.continuous-active{background:#185c52;border-color:#4cd1ab;color:#dcfff4;box-shadow:inset 0 0 0 2px #4cd1ab}
#commands #executeForm #voiceCommandStatus,#commands #executeForm .attachment-status{position:static!important;width:auto!important;height:auto!important;clip:auto!important;white-space:normal!important;margin:0!important;font-size:11px!important;line-height:1.45;color:#b5cddd;max-height:3em;overflow:auto!important}
#commands #executeForm #voiceCommandStatus:empty,#commands #executeForm .attachment-status:empty{display:none!important}
.composer-menu{position:fixed;inset:auto;margin:0;padding:8px;border:1px solid #49637d;border-radius:16px;background:#122436;color:#edf5ff;box-shadow:0 15px 50px #0009;max-height:min(430px,65dvh);overflow:auto;font:inherit}
.composer-menu::backdrop{background:transparent}
.composer-menu>button{display:block;width:100%;text-align:start;background:transparent;color:inherit;border-radius:10px;padding:12px;font-size:14px;font-weight:600;margin:0!important;min-height:44px}
.composer-menu>button:hover,.composer-menu>button:focus-visible{background:#28475f;outline:2px solid #6fcaf7;outline-offset:-2px}
.composer-menu>strong{display:block;padding:8px 12px;font-size:13px;color:#a2c1d8}
.composer-menu>p{font-size:12px;line-height:1.6;padding:0 12px}
.composer-menu .document-library{border-top:1px solid #38516b;max-height:220px;overflow:auto}
.composer-menu .document-library input{width:18px;flex:none}
.composer-menu .document-library button{padding:4px 9px;min-height:32px}
.attachment-chips{display:flex;gap:6px;flex-wrap:wrap}
.attachment-chips[hidden]{display:none}
.attachment-chips button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;padding:6px 10px;background:#29465e;color:#deedfa;border:1px solid #46657f;border-radius:10px;margin:0!important}
#chatLog .reply-copy{display:block;margin:10px 0 0!important;padding:5px 10px;min-height:32px;background:transparent;color:#abcde3;border:1px solid #426078;border-radius:8px;font-size:12px;font-weight:500;width:auto}
#chatLog .reply-copy:hover{background:#29465e;color:#fff}
.clipboard-fallback{position:fixed;left:-10000px;top:0}
.attachment-chips .image-attachment-chip{display:flex;align-items:center;gap:8px}
.image-attachment-chip img{width:44px;height:44px;object-fit:cover;border-radius:6px;flex:none}
/* Exactly one compact notification, away from the message composer and nav. */
#toastHost.toast-host{top:calc(env(safe-area-inset-top,0px) + 66px)!important;right:12px!important;left:auto!important;bottom:auto!important;width:min(290px,calc(100vw - 24px));max-width:290px!important;gap:0;z-index:2500}
#toastHost .toast{align-items:center;gap:8px;padding:9px 11px!important;border-radius:11px;box-shadow:0 5px 20px #0005;animation:none}
#toastHost .toast p{margin:0;font-size:12px;line-height:1.45;min-width:0;overflow-wrap:anywhere;flex:1}
#toastHost .toast-icon{width:18px;height:18px;line-height:16px;font-size:12px}
#toastHost .toast button{margin:0!important;min-width:24px!important;min-height:24px!important;width:24px;padding:0!important;flex:none}
@media(max-width:760px){#commands #executeForm{padding:6px 8px!important;border-radius:16px}#commands #executeForm .command-actions button{min-height:44px!important;padding:0!important}#commands #command{min-height:44px!important;max-height:80px!important}}
