/* LMN Finance Command K palette: desktop and mobile accessible modal. */
.command-palette[hidden]{display:none!important}
.command-palette{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:clamp(55px,14vh,130px) 12px 22px;box-sizing:border-box}
.command-shade{position:absolute;inset:0;background:var(--scrim);backdrop-filter:blur(2px)}
.command-window{position:relative;width:min(610px,100%);max-height:calc(100dvh - 90px);display:flex;flex-direction:column;overflow:hidden;border-radius:6px;border:1px solid var(--border);background:var(--panel);box-shadow:var(--shadow-dialog);color:var(--ink)}
.command-search-row{min-height:64px;display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--border)}
.command-lens{font-size:24px;color:var(--muted);line-height:1}
.command-search-row input{border:0;box-shadow:none;outline:none;background:transparent;color:var(--ink);font:inherit;font-size:16px;flex:1;min-width:0;width:100%;appearance:none}
.command-search-row input::placeholder{color:var(--muted)}
.command-search-row kbd{border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--ink);padding:5px 8px;font-size:12px;font-family:inherit;white-space:nowrap}
.command-results{overflow:auto;overscroll-behavior:contain;min-height:65px;max-height:min(55vh,510px);padding:8px}
.command-group-title{font-size:12px;font-weight:700;letter-spacing:.03em;color:var(--muted);padding:10px 11px 7px}
.command-option{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:6px;background:transparent;color:var(--ink);cursor:pointer;text-align:left;padding:10px 12px;min-height:55px;font:inherit}
.command-option:hover,.command-option[aria-selected=true],.command-option:focus-visible{background:var(--accent-soft);outline:none}
.command-symbol{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--accent-strong);font-size:18px}
.command-option-body{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.command-option-body strong{font-size:14px;line-height:1.35;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.command-option-body small{font-size:12px;line-height:1.35;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.command-tag{color:var(--muted);flex-shrink:0;text-align:right;font-size:12px}
.command-empty{font-size:14px;padding:20px 14px;color:var(--muted);line-height:1.6;margin:0}
.command-footer{border-top:1px solid var(--border);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.command-footer span{line-height:1.6}
.command-footer b{color:var(--ink);font-weight:600}
.global-quick #quickSearch{cursor:pointer}
@media(max-width:820px){
 .command-palette{padding:10vh 10px 10px;align-items:flex-start}
 .command-window{max-height:calc(90dvh - 10px);border-radius:6px}
 .command-search-row{min-height:56px;padding:10px 12px;gap:8px}
 .command-search-row input{font-size:16px}
 .command-results{max-height:calc(75dvh - 90px)}
 .command-option{min-height:54px;padding:9px 10px}
 .command-footer{flex-wrap:wrap;padding:9px 12px;font-size:12px;gap:4px}
}
@media(prefers-reduced-motion:reduce){.command-shade{backdrop-filter:blur(2px)}}