.settings-panel:has(.shortcut-settings) { display: flex; overflow: hidden; }
.settings-tab[data-settings-tab="shortcuts"] { padding-inline: 8px; font-size: 15px; }
.shortcut-settings { display: flex; flex-direction: column; min-width: 0; width: 100%; gap: 10px; }
.shortcut-settings p { margin: 0; }
.shortcut-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.shortcut-filters label { display: grid; gap: 4px; flex: 1; font-size: 12px; min-width: 170px; }
.shortcut-filters input, .shortcut-filters select, .shortcut-editor input { min-height: 32px; width: 100%; box-sizing: border-box; }
.shortcut-count { white-space: nowrap; font-size: 12px; color: #526276; padding-bottom: 8px; }
.shortcut-list { flex: 1; min-height: 120px; overflow: auto; border: 1px solid #abb7c5; background: #f7f9fc; }
.shortcut-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.shortcut-table th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; text-align: left; background: #e1e7ef; border-bottom: 1px solid #abb7c5; }
.shortcut-table th:last-child { width: 180px; }
.shortcut-table th.shortcut-usage { width: 84px; }
.shortcut-table .shortcut-usage { text-align: right; font-variant-numeric: tabular-nums; color: #526276; }
.shortcut-table td { padding: 5px 10px; border-bottom: 1px solid #dce3eb; vertical-align: middle; }
.shortcut-table tr.is-selected td { background: #fff0c4; }
.shortcut-command { display: flex; gap: 10px; align-items: center; min-width: 0; }
.shortcut-command > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.shortcut-command small { display: block; margin-top: 3px; color: #66758a; font-size: 11px; }
.shortcut-icon { width: 27px; height: 27px; flex: 0 0 27px; display: inline-flex; align-items: center; justify-content: center; color: #294d70; }
.shortcut-icon svg, .shortcut-icon img { position: static; transform: none; width: 24px; height: 24px; max-width: 24px; max-height: 24px; }
.shortcut-icon .structure-icon { width: 24px; height: 24px; flex: 0 0 24px; }
.shortcut-key { width: 100%; min-height: 30px; border: 1px solid #b0bdcb; background: linear-gradient(#fff, #e7edf5); color: #24415f; border-radius: 3px; cursor: pointer; font-size: 12px; }
.shortcut-key.is-empty { color: #738296; }
.shortcut-key:hover, .shortcut-key:focus-visible { background: #fff0c4; border-color: #a4782c; outline-offset: 2px; }
.shortcut-editor { display: grid; gap: 8px; padding: 10px; border: 1px solid #b5c2d1; background: #edf2f8; }
.shortcut-editor[hidden] { display: none; }
.shortcut-editor-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.shortcut-editor-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.shortcut-editor-controls label { display: grid; gap: 3px; flex: 1; min-width: 160px; font-size: 12px; }
.shortcut-editor input { background: #fff; font-weight: 600; }
.shortcut-editor input:focus { outline: 2px solid #7298c0; outline-offset: 1px; }
.shortcut-notice { font-size: 12px; line-height: 1.4; min-height: 17px; color: #435065; }
.shortcut-notice.is-error { color: #993e16; }
.shortcut-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.shortcut-empty { padding: 24px; color: #66758a; text-align: center; }
.shortcut-menu-hint { margin-left: auto; padding-left: 18px; font: 11px system-ui, sans-serif; color: #617389; }
.menu-popup-item:has(> .shortcut-menu-hint) { display: flex; align-items: center; gap: 4px; }
@media (max-width: 760px) {
  .shortcut-table th:last-child { width: 130px; }
  .shortcut-table td { padding: 5px; }
  .shortcut-settings { min-height: 420px; }
  .settings-panel:has(.shortcut-settings) { overflow: auto; }
}
