.dost-action-button {
    --dost-button-bg: #ffffff;
    --dost-button-border: #c9d6e2;
    --dost-button-color: #29465d;
    --dost-button-hover-bg: #f3f7fa;
    --dost-button-hover-border: #8da8bb;
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding: 0.5rem 0.82rem;
    border: 1px solid var(--dost-button-border);
    border-radius: 0.62rem;
    background: var(--dost-button-bg);
    color: var(--dost-button-color);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.005em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 38, 55, 0.06);
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.dost-action-button:hover:not(:disabled) {
    border-color: var(--dost-button-hover-border);
    background: var(--dost-button-hover-bg);
    box-shadow: 0 5px 14px rgba(27, 67, 94, 0.13);
    transform: translateY(-1px);
}

.dost-action-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(27, 67, 94, 0.12);
}

.dost-action-button:focus-visible {
    outline: 3px solid rgba(20, 116, 154, 0.22);
    outline-offset: 2px;
}

.dost-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
    box-shadow: none;
}

.dost-action-button--primary {
    --dost-button-bg: #116f8d;
    --dost-button-border: #116f8d;
    --dost-button-color: #ffffff;
    --dost-button-hover-bg: #0b5e78;
    --dost-button-hover-border: #0b5e78;
    box-shadow: 0 5px 14px rgba(17, 111, 141, 0.2);
}

.dost-action-button--quiet {
    --dost-button-bg: transparent;
    --dost-button-border: transparent;
    --dost-button-color: #315f7d;
    --dost-button-hover-bg: #eaf3f8;
    --dost-button-hover-border: #d6e5ef;
    box-shadow: none;
}

.dost-action-button--danger {
    --dost-button-bg: #fff8f7;
    --dost-button-border: #efc4bd;
    --dost-button-color: #a33a31;
    --dost-button-hover-bg: #ffebe8;
    --dost-button-hover-border: #dc8f85;
}

.dost-action-button--small {
    min-height: 2rem;
    padding: 0.4rem 0.66rem;
    font-size: 0.74rem;
}

.dost-action-button--icon-only {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
}

.dost-action-button--icon-only.dost-action-button--small {
    width: 2rem;
    min-width: 2rem;
}

.dost-action-button__icon,
.dost-icon {
    display: block;
    flex: 0 0 auto;
}

.dost-action-button__spinner {
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dost-action-spin 700ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .dost-action-button { transition: none; }
    .dost-action-button:hover:not(:disabled) { transform: none; }
}

@keyframes dost-action-spin {
    to { transform: rotate(360deg); }
}
