.tool-access-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 53, 0.46);
    z-index: 1600;
}

.tool-access-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 1601;
}

.tool-access-card {
    width: min(100%, 560px);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--lte-border);
    border-radius: 28px;
    box-shadow: var(--lte-shadow);
    padding: 28px 26px;
}

.tool-access-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tool-access-kicker {
    margin: 0 0 8px;
    color: var(--lte-primary);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tool-access-header h2 {
    margin: 0;
    color: #102a43;
    font-size: 1.6rem;
    line-height: 1.14;
}

.tool-access-close {
    border: 0;
    background: transparent;
    color: var(--lte-text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.tool-access-body {
    margin: 16px 0 0;
    color: var(--lte-text-soft);
    line-height: 1.72;
}

.tool-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tool-access-primary-btn,
.tool-access-secondary-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tool-access-primary-btn {
    border: 0;
    background: linear-gradient(135deg, var(--lte-primary) 0%, var(--lte-accent) 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(13, 76, 172, 0.18);
}

.tool-access-secondary-btn {
    border: 1px solid var(--lte-border);
    background: #f8fbff;
    color: var(--lte-text);
}

.tool-access-primary-btn:hover,
.tool-access-secondary-btn:hover {
    filter: brightness(1.02);
}

@media (max-width: 640px) {
    .tool-access-card {
        border-radius: 22px;
        padding: 24px 20px;
    }

    .tool-access-actions {
        flex-direction: column;
    }

    .tool-access-primary-btn,
    .tool-access-secondary-btn {
        width: 100%;
    }
}

.tool-usage-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(100%, 420px);
    z-index: 1602;
}

.tool-usage-toast-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--lte-border);
    border-left: 5px solid var(--lte-primary);
    border-radius: 24px;
    box-shadow: var(--lte-shadow);
    padding: 22px 20px;
}

.tool-usage-toast-card.is-warning {
    border-left-color: #f59e0b;
}

.tool-usage-toast-card.is-critical {
    border-left-color: #dc2626;
}

.tool-usage-toast-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tool-usage-toast-kicker {
    margin: 0 0 6px;
    color: var(--lte-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tool-usage-toast-title,
#toolUsageToastTitle {
    margin: 0;
    color: #102a43;
    font-size: 1.1rem;
    line-height: 1.3;
}

.tool-usage-toast-close {
    border: 0;
    background: transparent;
    color: var(--lte-text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.tool-usage-toast-body {
    margin: 12px 0 0;
    color: var(--lte-text-soft);
    line-height: 1.7;
}

.tool-usage-toast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 640px) {
    .tool-usage-toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .tool-usage-toast-card {
        border-radius: 20px;
        padding: 20px 18px;
    }

    .tool-usage-toast-actions {
        flex-direction: column;
    }

    .tool-usage-toast-actions .tool-access-primary-btn,
    .tool-usage-toast-actions .tool-access-secondary-btn {
        width: 100%;
    }
}