.command-library-intro{display:flex;justify-content:space-between;gap:28px;align-items:center;margin-bottom:20px}.command-library-intro h2{margin:3px 0 8px}.command-library-intro p{max-width:780px;margin:0}.command-library-notice{max-width:390px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--ui-surface-2);display:grid;gap:5px}.command-library-notice span{color:var(--muted);font-size:.9rem;line-height:1.45}.command-library-notice a{margin-top:4px;color:var(--cyan);font-size:.82rem;font-weight:750}.command-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.command-summary article{border:1px solid var(--line);background:var(--ui-surface);border-radius:18px;padding:17px 20px;display:flex;justify-content:space-between;align-items:center}.command-summary span{color:var(--muted)}.command-summary strong{font-size:1.15rem}.command-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:14px;align-items:end;margin-bottom:14px}.command-filters label{display:grid;gap:7px}.command-filters label>span{font-size:.82rem;font-weight:700;color:var(--muted)}.command-filter-actions{display:flex;gap:8px}.command-legend{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.command-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.command-card{display:flex;flex-direction:column;gap:14px;min-width:0}.command-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.command-card h3{font-size:1.2rem;margin:3px 0 0}.command-purpose{margin:0;color:var(--muted);line-height:1.5}.command-risk{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:6px 9px;border-radius:999px;font-size:.72rem;font-weight:800;line-height:1.2;text-transform:uppercase;letter-spacing:.03em}.risk-read{background:#e8f7ef;color:#0b7041}.risk-change{background:#fff4d7;color:#8a5a00}.risk-interrupt{background:#ffe8e8;color:#a82727}.command-warning{padding:12px 14px;border:1px solid #efc9c9;border-radius:12px;background:#fff4f3;color:#852626;line-height:1.45}.command-step{display:grid;gap:7px}.command-step>div{display:flex;justify-content:space-between;align-items:center}.command-step h4{margin:0;font-size:.86rem}.command-step button,.command-undo button,.help-command-card button{border:0;background:transparent;color:var(--cyan);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}.command-step pre,.command-undo pre,.help-command-card pre{margin:0;padding:14px;overflow:auto;border-radius:12px;background:#071321;color:#d9f3ff;border:1px solid rgba(112,192,222,.25);white-space:pre-wrap;word-break:break-word}.command-step code,.command-undo code,.help-command-card code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.82rem;line-height:1.55}.command-expected{display:grid;gap:4px;padding:12px 14px;border-left:3px solid var(--cyan);background:var(--ui-surface-2);border-radius:4px 12px 12px 4px}.command-expected span{color:var(--muted);font-size:.9rem;line-height:1.45}.command-undo{border-top:1px solid var(--line);padding-top:12px}.command-undo summary{cursor:pointer;font-weight:700;font-size:.88rem}.command-undo>div{position:relative;margin-top:9px}.command-undo button{position:absolute;right:8px;top:8px;color:#fff}.command-card>footer{display:flex;gap:9px;margin-top:auto;padding-top:4px}.command-card>footer span{color:var(--muted);font-size:.76rem}.command-placeholders{margin-top:20px}.command-placeholders h3{margin-top:0}.command-placeholders p{margin-bottom:0;color:var(--muted);line-height:1.6}.command-placeholders code{padding:2px 5px;border-radius:5px;background:var(--ui-surface-2);color:var(--text)}.rdisp-help-commands .help-command-list{display:grid;gap:10px}.help-command-card{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--ui-surface-2)}.help-command-card>div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:8px}.help-command-card strong{font-size:.9rem}.help-command-card pre{max-height:145px;padding:10px}.help-command-card>div:last-child{display:flex;justify-content:flex-end;margin-top:4px}.rdisp-help-library-link{display:inline-flex;margin-top:12px;font-weight:750;color:var(--cyan);text-decoration:none}.rdisp-help-command-note{color:var(--muted);font-size:.86rem;line-height:1.45}
.risk-destructive{background:#351321;color:#ff8fb1;border:1px solid #8b294a}.command-smart-search{display:grid;gap:14px;margin:0 0 16px}.command-smart-search>div:first-child{display:flex;align-items:center;gap:13px}.smart-search-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--cyan) 13%,var(--ui-surface));color:var(--cyan);font-size:1.4rem}.command-smart-search p{margin:4px 0 0;color:var(--muted);font-size:.86rem;line-height:1.45}.search-interpretation{display:grid;gap:5px;padding-top:12px;border-top:1px solid var(--line)}.search-interpretation small{color:var(--muted);overflow-wrap:anywhere}.search-examples{display:flex;gap:8px;flex-wrap:wrap}.search-examples a{padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:var(--cyan);font-size:.78rem;background:var(--ui-surface-2)}.search-examples a:hover{border-color:var(--cyan)}.command-match{align-self:flex-start;margin:-5px 0 0;padding:5px 8px;border-radius:7px;background:color-mix(in srgb,var(--cyan) 9%,transparent);color:var(--cyan);font-size:.75rem}.command-filters label:first-child{position:relative}.command-filters label:first-child:after{content:"⌕";position:absolute;right:12px;bottom:10px;color:var(--muted)}.command-filters label:first-child input{padding-right:38px}
[data-rdisp-theme="dark"] .risk-read,[data-rdisp-theme="contrast"] .risk-read{background:#123d2c;color:#8ef0bb}[data-rdisp-theme="dark"] .risk-change,[data-rdisp-theme="contrast"] .risk-change{background:#493a12;color:#ffe295}[data-rdisp-theme="dark"] .risk-interrupt,[data-rdisp-theme="contrast"] .risk-interrupt{background:#4a2020;color:#ffaaaa}[data-rdisp-theme="dark"] .command-warning,[data-rdisp-theme="contrast"] .command-warning{background:#321b1b;color:#ffb5b5;border-color:#673737}
@media(max-width:1050px){.command-filters{grid-template-columns:1fr 1fr}.command-grid{grid-template-columns:1fr}.command-library-intro{align-items:flex-start;flex-direction:column}.command-library-notice{max-width:none;width:100%}}
@media(max-width:650px){.command-summary,.command-filters{grid-template-columns:1fr}.command-summary article{align-items:flex-start;flex-direction:column;gap:6px}.command-card>header{flex-direction:column}.command-filter-actions .btn{flex:1}.command-step pre{font-size:.75rem}}
.command-filters input,.command-filters select{width:100%;min-width:0;border:1px solid var(--line);background:var(--ui-input);color:var(--text);border-radius:9px;padding:11px 12px;outline:none}.command-filters input:focus,.command-filters select:focus{border-color:var(--cyan)}.command-filter-actions .secondary{display:inline-grid;place-items:center}.empty-state{text-align:center}.empty-state h3{margin-top:0}.empty-state p{margin-bottom:0;color:var(--muted)}
