.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.button i {
    font-size: 1.15em;
    font-weight: 400;
}

.button:hover:not(:disabled) {
    border-color: var(--ink-faint);
    background: var(--surface-sunk);
}

.button:active:not(:disabled) {
    transform: translateY(1px);
}

.button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.button.primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--surface);
}

.button.primary:hover:not(:disabled) {
    background: #38332b;
    border-color: #38332b;
}

.button.primary i {
    transition: transform var(--duration-base) var(--ease-out);
}

.button.primary:hover:not(:disabled) .ri-arrow-right-line {
    transform: translateX(3px);
}

.button.ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ink-soft);
}

.button.ghost:hover:not(:disabled) {
    background: var(--paper-deep);
    color: var(--ink);
}

.button.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: .875rem;
}

.button.large {
    min-height: 54px;
    padding: 0 28px;
    font-size: 1.05rem;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--radius-s);
    background: transparent;
    color: var(--ink-faint);
    font-size: 1.15rem;
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.icon-button:hover {
    background: var(--paper-deep);
    color: var(--ink);
}

.chip {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 500;
    transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.chip:hover {
    border-color: var(--ink-faint);
    color: var(--ink);
}

.chip:active {
    background: var(--marker-soft);
}
