body.has-commands #shell{margin-right:288px}
#page-commands{position:fixed;right:0;top:0;bottom:0;width:288px;background:var(--entry-surface, #fff);border-left:1px solid var(--border);padding:22px 16px;overflow-y:auto;z-index:45;display:flex;flex-direction:column;gap:16px}
.command-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.command-heading small{font-size:10px;letter-spacing:1.4px;color:var(--muted)}.command-heading h2{font-size:18px;margin:5px 0;color:var(--primary)}.command-heading button{padding:4px 10px;font-size:22px}
#command-context{margin:0;padding:10px;background:var(--entry-soft, #f3f5f8);color:var(--text);border-radius:7px;font-size:12px;overflow-wrap:anywhere}
.command-categories{display:flex;background:var(--entry-soft, #f3f5f8);padding:3px;border-radius:8px;gap:2px}.command-categories button{flex:1;border:0;background:transparent;padding:8px 3px;font-size:12px}.command-categories button[aria-pressed=true]{background:var(--primary);color:white}
#command-items {
    display: grid;
    gap: 4px;
    min-width: 0;
}

#command-items a,
#command-items button {
    display: block;
    width: 100%;
    min-height: 36px;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--entry-surface, #fff);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

#command-items a:hover,
#command-items button:not(:disabled):hover {
    background: var(--entry-soft, #f3f5f8);
    border-color: var(--entry-border, var(--border));
}

#command-items a:focus-visible,
#command-items button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    background: var(--entry-soft, #f3f5f8);
}

#command-items button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#command-items h3 {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 12px 0 3px;
}

#command-items p {
    font-size: 13px;
    color: var(--muted);
}

.command-preview{margin-top:auto;color:var(--muted);font-size:11px}#command-feedback{font-size:12px;color:#196347}
#commands-open{position:fixed;right:12px;bottom:18px;z-index:46;background:var(--primary);color:#fff;box-shadow:0 4px 16px #0002}
body.has-commands #commands-open{display:none}body:not(.has-commands) #page-commands{display:none}
#records tr.command-selected{background:#edf6f1;outline:2px solid #2c9a6e;outline-offset:-2px}.command-row-select{font-size:11px;padding:3px 7px;margin-right:7px}
@media(max-width:1200px){body.has-commands #shell{margin-right:0}#page-commands{width:min(320px,100vw);box-shadow:-12px 0 36px #10233b30}}
@media(prefers-reduced-motion:no-preference){#commands-open{transition:background .15s}}

#command-items [data-company-commands], #command-items [data-company-related] { display:grid; gap:8px; }
[data-company-commands][hidden], [data-company-related][hidden] { display:none !important; }
#command-items [data-company-commands] label { display:grid; gap:8px; font-size:13px; }
#command-items [data-company-commands] select { width:100%; min-width:0; }
