/* TaxAI Ver.139 AI Command Palette */
.taxai-command-palette-v139 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 9vh;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(7px);
}

.taxai-command-palette-v139.is-open {
    display: flex;
}

.taxai-command-box-v139 {
    width: min(760px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.taxai-command-head-v139 {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.taxai-command-head-v139 span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
}

#taxai-command-input-v139 {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
}

.taxai-command-list-v139 {
    max-height: min(62vh, 560px);
    overflow: auto;
    padding: 10px;
}

.taxai-command-item-v139 {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
}

.taxai-command-item-v139:hover,
.taxai-command-item-v139.is-active {
    background: #eef6ff;
}

.taxai-command-icon-v139 {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #e2e8f0;
    font-size: 13px;
    font-weight: 900;
}

.taxai-command-title-v139 {
    font-size: 14px;
    font-weight: 900;
}

.taxai-command-sub-v139 {
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
}

.taxai-command-type-v139 {
    border-radius: 999px;
    background: #f8fafc;
    padding: 5px 9px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.taxai-command-foot-v139 {
    display: flex;
    gap: 14px;
    padding: 10px 18px 14px;
    border-top: 1px solid rgba(226, 232, 240, .9);
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.taxai-command-empty-v139 {
    padding: 34px 18px;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 640px) {
    .taxai-command-palette-v139 {
        padding-top: 5vh;
    }
    .taxai-command-item-v139 {
        grid-template-columns: 38px 1fr;
    }
    .taxai-command-type-v139 {
        display: none;
    }
}
