/* Shared feedback for real controls on every workspace, dialog and drawer. */
:root {
    --interaction-ring: #974479;
    --interaction-tint: #eec8dc;
}
:is(
    button,
    a[href],
    summary,
    [role="button"],
    input,
    select,
    textarea
):focus-visible {
    outline: 3px solid var(--interaction-ring);
    outline-offset: 3px;
    scroll-margin-block: 90px;
}
:where(button, a[href], summary, [role="button"]) {
    -webkit-tap-highlight-color: #bd548626;
    touch-action: manipulation;
}
:is(
    button,
    .btn,
    .nav-btn,
    .icon-btn,
    .daily-link,
    .click-row,
    .company-setting-row,
    .profile-link,
    summary,
    [role="button"]
) {
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease,
        transform 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
    :where(button, a.btn, .profile-link, summary, [role="button"]):not(
            :disabled
        ):not([aria-disabled="true"]):hover {
        filter: brightness(0.965) saturate(1.06);
        box-shadow:
            0 0 0 2px #b85a902b,
            0 4px 12px #64445a12;
        cursor: pointer;
    }
    :where(
            .btn,
            .nav-btn,
            .icon-btn,
            .daily-link,
            .click-row,
            .company-setting-row,
            .profile-link,
            summary
        ):not(:disabled):not([aria-disabled="true"]):hover {
        border-color: #c689ae;
    }
    a[href]:not(.btn):not(.profile-link):hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    :where(input, select, textarea):not(:disabled):hover {
        border-color: #b585a7;
    }
    :where(.insight-bar, .insight-point):hover {
        filter: brightness(0.83);
    }
}
:where(button, a.btn, summary, [role="button"]):not(:disabled):not(
        [aria-disabled="true"]
    ):active {
    filter: brightness(0.91);
    box-shadow: inset 0 1px 4px #4d254121;
}
:where(button, input, select, textarea):disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
}
.company-settings-list {
    display: grid;
    gap: 10px;
}
.company-setting-row {
    display: flex;
    gap: 12px;
    align-items: center;
    text-align: start;
    padding: 14px;
    min-height: 68px;
    border: 1px solid #e8d9e8;
    border-radius: 16px;
    color: #4c3e54;
    background: linear-gradient(115deg, #fff, #f4faf7);
}
.company-setting-row > svg {
    flex-shrink: 0;
    color: #9a668d;
}
.company-setting-row > span {
    display: grid;
    gap: 5px;
    flex: 1;
}
.company-setting-row small {
    color: #756b80;
}
.workspace-mode {
    padding: 12px;
    margin: 6px 0;
    border: 1px solid #e7ddea;
    background: #faf7fc;
    border-radius: 14px;
    display: grid;
    gap: 8px;
}
.workspace-mode > small {
    font-size: 11px;
    color: #77647a;
}
.workspace-mode [role="group"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: #eee7f1;
    border-radius: 12px;
}
.workspace-mode button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #725d77;
    font-weight: 700;
}
.workspace-mode button[aria-pressed="true"] {
    background: #fff;
    box-shadow: 0 2px 6px #674d6e1c;
    color: #9d3769;
}
.workspace-mode svg {
    width: 17px;
    height: 17px;
}
.workspace-context {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 8px;
    background: #edf5f0;
    font-size: 10px;
    color: #42665a;
    white-space: nowrap;
}
.workspace-context[data-mode="demo"] {
    background: #f1eafa;
    color: #73558d;
}
.order-message-editor {
    margin-top: 14px;
    border-top: 1px solid #e7dce8;
    padding-top: 10px;
}
.order-message-editor summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
}
.order-message-editor textarea {
    width: 100%;
}
.order-message-editor .wa-tools {
    margin-block: 10px;
}
.support-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: #ebf7f0;
    border: 1px solid #d2e8db;
    margin-top: 18px;
}
.support-card .btn {
    justify-content: center;
    background: #168357;
    color: white;
    min-height: 48px;
}
.support-card small {
    color: #496958;
}
@media (prefers-reduced-motion: reduce) {
    :where(button, a, summary, [role="button"], input, select, textarea) {
        transition: none !important;
    }
}
