/* Shared action style taken from the Darvoxa sidebar logo. Document-editor
   launch colour, document content, calendar colours and status badges are separate. */
:root {
    --darvoxa-action-background: linear-gradient(160deg, #102436 0%, #050e19 60%, #020811 100%);
    --darvoxa-action-border: #128b99;
    --darvoxa-action-glow: 0 0 14px rgba(18, 193, 200, .62);
}
.darvoxa-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 15px; border: 1px solid; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
body :is(
    .darvoxa-primary-button,
    .matter-button-primary,
    .matter-button-secondary,
    .profile-primary,
    .client-ui-primary,
    .client-page-buttons button[aria-current="page"],
    .user-primary-button,
    .invoice-primary,
    .iw-primary,
    .messages-new-button,
    .messages-send-button,
    .notes-header-actions > .notes-button,
    .notes-detail-actions button[value="publish"],
    .notes-advanced-primary,
    .notes-advanced-toolbar button[data-active="true"],
    .notes-advanced-ink-toolbar button[aria-pressed="true"],
    .notes-knowledge-view-toggle button[aria-pressed="true"],
    .office-kind-word .office-primary-button,
    .office-import-panel .office-primary-button,
    .office-editor-shell .office-primary-button,
    .login-btn,
    .forgetpw_btn,
    .logout_link,
    .task-check-cell button:hover,
    .beta-feedback-button,
    .calendar-primary-action,
    .cal-primary,
    .tasks-create-button,
    .tasks-create-arrow,
    .task-primary-action,
    .files-primary-button,
    .new-button,
    .pdf-advanced-primary
):not([data-preserve-editor-color]) {
    background: var(--darvoxa-action-background) !important;
    border-color: var(--darvoxa-action-border) !important;
    color: #f5fbff !important;
    box-shadow: inset 0 1px 0 #ffffff14, 0 4px 10px #03111e24;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}
body :is(
    .darvoxa-primary-button,
    .matter-button-primary,
    .matter-button-secondary,
    .profile-primary,
    .client-ui-primary,
    .client-page-buttons button[aria-current="page"],
    .user-primary-button,
    .invoice-primary,
    .iw-primary,
    .messages-new-button,
    .messages-send-button,
    .notes-header-actions > .notes-button,
    .notes-detail-actions button[value="publish"],
    .notes-advanced-primary,
    .notes-advanced-toolbar button[data-active="true"],
    .notes-advanced-ink-toolbar button[aria-pressed="true"],
    .notes-knowledge-view-toggle button[aria-pressed="true"],
    .office-kind-word .office-primary-button,
    .office-import-panel .office-primary-button,
    .office-editor-shell .office-primary-button,
    .login-btn,
    .forgetpw_btn,
    .logout_link,
    .task-check-cell button:hover,
    .beta-feedback-button,
    .calendar-primary-action,
    .cal-primary,
    .tasks-create-button,
    .tasks-create-arrow,
    .task-primary-action,
    .files-primary-button,
    .new-button,
    .pdf-advanced-primary
):not([data-preserve-editor-color]):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
    border-color: #12c1c8 !important;
    box-shadow: var(--darvoxa-action-glow), inset 0 1px 0 #ffffff14;
    filter: none;
}
body :is(
    .darvoxa-primary-button,
    .matter-button-primary,
    .matter-button-secondary,
    .profile-primary,
    .client-ui-primary,
    .client-page-buttons button[aria-current="page"],
    .user-primary-button,
    .invoice-primary,
    .iw-primary,
    .messages-new-button,
    .messages-send-button,
    .notes-header-actions > .notes-button,
    .notes-detail-actions button[value="publish"],
    .notes-advanced-primary,
    .notes-advanced-toolbar button[data-active="true"],
    .notes-advanced-ink-toolbar button[aria-pressed="true"],
    .notes-knowledge-view-toggle button[aria-pressed="true"],
    .office-kind-word .office-primary-button,
    .office-import-panel .office-primary-button,
    .office-editor-shell .office-primary-button,
    .login-btn,
    .forgetpw_btn,
    .logout_link,
    .task-check-cell button:hover,
    .beta-feedback-button,
    .calendar-primary-action,
    .cal-primary,
    .tasks-create-button,
    .tasks-create-arrow,
    .task-primary-action,
    .files-primary-button,
    .new-button,
    .pdf-advanced-primary
):not([data-preserve-editor-color]):focus-visible { outline: 2px solid #128b99; outline-offset: 3px; }
body :is(
    .darvoxa-primary-button,
    .matter-button-primary,
    .matter-button-secondary,
    .profile-primary,
    .client-ui-primary,
    .client-page-buttons button[aria-current="page"],
    .user-primary-button,
    .invoice-primary,
    .iw-primary,
    .messages-new-button,
    .messages-send-button,
    .notes-header-actions > .notes-button,
    .notes-detail-actions button[value="publish"],
    .notes-advanced-primary,
    .notes-advanced-toolbar button[data-active="true"],
    .notes-advanced-ink-toolbar button[aria-pressed="true"],
    .notes-knowledge-view-toggle button[aria-pressed="true"],
    .office-kind-word .office-primary-button,
    .office-import-panel .office-primary-button,
    .office-editor-shell .office-primary-button,
    .login-btn,
    .forgetpw_btn,
    .logout_link,
    .task-check-cell button:hover,
    .beta-feedback-button,
    .calendar-primary-action,
    .cal-primary,
    .tasks-create-button,
    .tasks-create-arrow,
    .task-primary-action,
    .files-primary-button,
    .new-button,
    .pdf-advanced-primary
):not([data-preserve-editor-color]):is(:disabled, [aria-disabled="true"]) { opacity: .5; box-shadow: none; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
    .darvoxa-primary-button { transition: none; }
}
