@layer mindz.components {
/*
 * MindZ Design System — Componentes básicos v1
 * Fonte oficial para botões, campos, selects, comboboxes, escolhas,
 * toggles, tags, status e ícones.
 *
 * Este arquivo é carregado por último para que componentes equivalentes
 * tenham o mesmo comportamento em todas as telas, sem depender de CSS local.
 */

/* =========================================================
   1. Botões
   ========================================================= */

body :where(button, .button, .btn, .mindz-button) {
    min-height: var(--button-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--control-padding-inline);
    border: 1px solid var(--button-secondary-border);
    border-radius: var(--control-radius);
    background: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    font-family: var(--font-family-base);
    font-size: var(--control-font-size);
    font-weight: var(--button-font-weight);
    line-height: 1;
    letter-spacing: -0.01em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    transition: var(--transition-interactive);
}

body :where(a.button, a.btn, a.mindz-button) {
    text-decoration: none;
}

body :where(button, .button, .btn, .mindz-button):hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: color-mix(in srgb, var(--primary) 24%, var(--button-secondary-border));
    background: var(--button-secondary-bg-hover);
    color: var(--primary);
    transform: translateY(-1px);
}

body :where(button, .button, .btn, .mindz-button):active:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(0);
}

body :is(
    .mindz-button--primary,
    .button-primary,
    .btn-primary,
    .primary-button,
    .app-button-primary,
    .pe-primary,
    .pea-primary,
    .tn-button,
    .tn-header-action-button--primary,
    .solicitacoes-primary-button,
    .ph-home-modal__primary,
    button.primary,
    a.primary,
    button[data-variant="primary"],
    a.button:not(.secondary):not(.danger):not(.success),
    .comunicado-comment-popup-submit
) {
    border-color: var(--button-primary-bg);
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--button-primary-bg) 18%, transparent);
}

body :is(
    .mindz-button--primary,
    .button-primary,
    .btn-primary,
    .primary-button,
    .app-button-primary,
    .pe-primary,
    .pea-primary,
    .tn-button,
    .tn-header-action-button--primary,
    .solicitacoes-primary-button,
    .ph-home-modal__primary,
    button.primary,
    a.primary,
    button[data-variant="primary"],
    a.button:not(.secondary):not(.danger):not(.success),
    .comunicado-comment-popup-submit
):hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: var(--button-primary-bg-hover);
    background: var(--button-primary-bg-hover);
    color: var(--button-primary-text);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--button-primary-bg) 22%, transparent);
}

body :is(
    .mindz-button--secondary,
    .button-secondary,
    .btn-secondary,
    .secondary-button,
    .app-button-secondary,
    .pe-secondary,
    .pea-secondary,
    .tn-button-secondary,
    .tn-header-action-button:not(.tn-header-action-button--primary),
    .solicitacoes-secondary-button,
    button.secondary,
    a.secondary
) {
    border-color: var(--button-secondary-border);
    background: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    box-shadow: none;
}

body :is(
    .mindz-button--secondary,
    .button-secondary,
    .btn-secondary,
    .secondary-button,
    .app-button-secondary,
    .pe-secondary,
    .pea-secondary,
    .tn-button-secondary,
    .tn-header-action-button:not(.tn-header-action-button--primary),
    .solicitacoes-secondary-button,
    button.secondary,
    a.secondary
):hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: color-mix(in srgb, var(--primary) 26%, var(--button-secondary-border));
    background: var(--button-secondary-bg-hover);
    color: var(--primary);
}

body :is(
    .mindz-button--neutral,
    .mindz-button--ghost,
    .button-neutral,
    .button-ghost,
    .btn-ghost,
    .ghost-button,
    .outline-button
) {
    border-color: transparent;
    background: transparent;
    color: var(--text-soft);
    box-shadow: none;
}

body :is(
    .mindz-button--neutral,
    .mindz-button--ghost,
    .button-neutral,
    .button-ghost,
    .btn-ghost,
    .ghost-button,
    .outline-button
):hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: color-mix(in srgb, var(--primary) 14%, var(--border));
    background: var(--primary-subtle);
    color: var(--primary);
}

body :is(
    .mindz-button--danger,
    .button-danger,
    .btn-danger,
    .danger-button,
    .tn-button-danger,
    button.danger,
    a.danger
) {
    border-color: var(--danger-border);
    background: var(--danger-soft);
    color: var(--color-feedback-danger-text);
    box-shadow: none;
}

body :is(
    .mindz-button--danger,
    .button-danger,
    .btn-danger,
    .danger-button,
    .tn-button-danger,
    button.danger,
    a.danger
):hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: var(--danger);
    background: var(--danger);
    color: var(--color-white);
}

body :is(
    .mindz-button--success,
    .button-success,
    .btn-success,
    .success-button
) {
    border-color: var(--success-border);
    background: var(--success-soft);
    color: var(--success);
    box-shadow: none;
}

body :is(
    .mindz-button--success,
    .button-success,
    .btn-success,
    .success-button
):hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: var(--success);
    background: var(--success);
    color: var(--color-white);
}

body :is(.mindz-button--sm, .button-small, .btn-sm, .small-button, .compact-button, .tn-button-compact) {
    min-height: var(--control-height-sm);
    padding-inline: var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

body :is(.mindz-button--lg, .button-large, .btn-lg) {
    min-height: var(--control-height-lg);
    padding-inline: var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-md);
}

body :is(
    .mindz-button--icon,
    .button-icon-only,
    .icon-button,
    .btn-icon,
    .button-close,
    .app-icon-button
) {
    width: var(--button-height);
    min-width: var(--button-height);
    padding: 0;
    aspect-ratio: 1;
}

body :where(button, .button, .btn, .mindz-button) :is(svg, .button-icon, .mindz-icon) {
    width: var(--icon-size-sm);
    min-width: var(--icon-size-sm);
    height: var(--icon-size-sm);
    margin: 0;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

body :where(button, .button, .btn, .mindz-button) > svg[fill]:not([fill="none"]) {
    fill: currentColor;
    stroke: none;
}

body :where(button, .button, .btn, .mindz-button):disabled,
body :where(button, .button, .btn, .mindz-button)[disabled],
body :where(button, .button, .btn, .mindz-button)[aria-disabled="true"],
body :where(.button, .btn, .mindz-button).is-disabled {
    border-color: var(--button-disabled-border);
    background: var(--button-disabled-bg);
    color: var(--button-disabled-text);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
    transform: none;
}

body :where(button, .button, .btn, .mindz-button).is-loading,
body :where(button, .button, .btn, .mindz-button)[aria-busy="true"] {
    --mindz-button-loading-indicator: var(--button-loading-indicator);
    position: relative;
    color: transparent;
    pointer-events: none;
}

body :is(.mindz-button--primary, .button-primary, .btn-primary, .primary-button).is-loading,
body :is(.mindz-button--primary, .button-primary, .btn-primary, .primary-button)[aria-busy="true"] {
    --mindz-button-loading-indicator: var(--button-primary-text);
}

body :where(button, .button, .btn, .mindz-button).is-loading::after,
body :where(button, .button, .btn, .mindz-button)[aria-busy="true"]::after {
    content: "";
    position: absolute;
    width: var(--icon-size-sm);
    height: var(--icon-size-sm);
    border: 2px solid color-mix(in srgb, var(--mindz-button-loading-indicator) 28%, transparent);
    border-top-color: var(--mindz-button-loading-indicator);
    border-radius: var(--radius-round);
    animation: mindz-component-spin 700ms linear infinite;
}

/* =========================================================
   2. Campos, labels e mensagens
   ========================================================= */

body :where(.mindz-field, .form-field, .field, .input-group) {
    min-width: 0;
    display: grid;
    gap: var(--space-2);
}

body :where(label, .mindz-field__label, .form-label, .field-label) {
    color: var(--text-soft);
    font-size: var(--field-label-size);
    font-weight: var(--field-label-weight);
    line-height: var(--line-height-snug);
    letter-spacing: -0.01em;
}

body :where(.mindz-required, .is-required) > :is(.mindz-field__label, .form-label, .field-label)::after,
body :where(label.is-required)::after {
    content: " *";
    color: var(--danger);
}

body :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .input,
    .select,
    .form-control,
    .form-input,
    .form-select,
    .field-control,
    .search-input,
    .filter-input,
    .select-control,
    .textarea-control,
    .clearable-input
) {
    width: 100%;
    min-height: var(--field-height);
    padding: 0 var(--field-padding-inline);
    border: 1px solid var(--input-border);
    border-radius: var(--field-radius);
    background: var(--input-bg);
    color: var(--input-text);
    font-family: var(--font-family-base);
    font-size: var(--control-font-size);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    outline: none;
    box-shadow: none;
    transition: var(--transition-interactive);
}

body :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .input,
    .select,
    .form-control,
    .form-input,
    .form-select,
    .field-control,
    .search-input,
    .filter-input,
    .select-control,
    .textarea-control,
    .clearable-input
) {
    border-color: var(--input-border);
    border-radius: var(--field-radius);
    background: var(--input-bg);
    color: var(--input-text);
}

body :where(textarea, .mindz-textarea, .textarea-control) {
    min-height: var(--textarea-min-height);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    resize: vertical;
}

body :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .form-control,
    .field-control,
    .search-input,
    .filter-input,
    .select-control,
    .textarea-control,
    .clearable-input
):hover:not(:disabled):not([readonly]) {
    border-color: var(--border-strong);
}

body :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .form-control,
    .field-control,
    .search-input,
    .filter-input,
    .select-control,
    .textarea-control,
    .clearable-input
):focus,
body :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .form-control,
    .field-control,
    .search-input,
    .filter-input,
    .select-control,
    .textarea-control,
    .clearable-input
):focus-visible {
    border-color: var(--focus-ring-color);
    box-shadow: var(--focus-ring);
}

body :where(input, textarea, .mindz-input, .mindz-textarea)::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

body :where(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .form-control,
    .field-control
):disabled,
body :where(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .form-control,
    .field-control
)[aria-disabled="true"] {
    border-color: var(--button-disabled-border);
    background: var(--button-disabled-bg);
    color: var(--button-disabled-text);
    cursor: not-allowed;
    opacity: 1;
}

body :where(
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    .mindz-input,
    .mindz-textarea,
    .form-control,
    .field-control
)[readonly] {
    border-color: var(--border-soft);
    background: var(--surface-alt);
    color: var(--text-soft);
    cursor: default;
}

body :where(.mindz-field__help, .field-help, .form-help, .helper-text) {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
}

body :where(.mindz-field__error, .field-error, .form-error, .error-text) {
    margin: 0;
    color: var(--danger);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
}

body :where(.mindz-field__success, .field-success, .form-success, .success-text) {
    margin: 0;
    color: var(--success);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
}

body :where(.mindz-field.is-error, .form-field.is-error, .field.is-error, [data-state="error"]) :is(
    input,
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .form-control,
    .field-control
),
body :where(input, select, textarea)[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent);
}

body :where(.mindz-field.is-success, .form-field.is-success, .field.is-success, [data-state="success"]) :is(
    input,
    select,
    textarea,
    .mindz-input,
    .mindz-select,
    .mindz-textarea,
    .form-control,
    .field-control
) {
    border-color: var(--success);
}

/* =========================================================
   3. Pesquisa, selects e comboboxes
   ========================================================= */

body :where(.mindz-search, .search-field, .clearable-field, .input-clearable) {
    position: relative;
    min-width: 0;
}

body :where(.mindz-search, .search-field, .clearable-field, .input-clearable) > :is(input, .mindz-input, .search-input, .clearable-input) {
    padding-right: calc(var(--field-padding-inline) + 34px);
}

body :where(.mindz-search__icon, .search-field__icon, .field-icon) {
    position: absolute;
    top: 50%;
    left: var(--space-4);
    width: var(--icon-size-sm);
    height: var(--icon-size-sm);
    color: var(--text-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

body :where(.mindz-search.has-leading-icon, .search-field.has-leading-icon) > :is(input, .mindz-input, .search-input) {
    padding-left: 42px;
}

body :where(.mindz-combobox, .combobox, .tn-combobox, [data-combobox]) {
    position: relative;
    min-width: 0;
}

body :where(
    .mindz-combobox__panel,
    .combobox-options,
    .combobox-panel,
    .autocomplete,
    .suggestions,
    .search-results,
    [role="listbox"]
) {
    position: absolute;
    z-index: var(--z-dropdown);
    width: 100%;
    max-height: min(320px, 42vh);
    margin-top: var(--space-2);
    padding: var(--space-2);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-elevated);
    color: var(--text);
    box-shadow: var(--shadow-md);
}

body :where(
    .mindz-combobox__option,
    .combobox-option,
    .autocomplete-item,
    .suggestion-item,
    [role="option"]
) {
    min-height: var(--control-height-md);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    color: var(--text-soft);
    cursor: pointer;
    transition: var(--transition-interactive);
}

body :where(
    .mindz-combobox__option,
    .combobox-option,
    .autocomplete-item,
    .suggestion-item,
    [role="option"]
):hover,
body :where(
    .mindz-combobox__option,
    .combobox-option,
    .autocomplete-item,
    .suggestion-item,
    [role="option"]
)[aria-selected="true"],
body :where(
    .mindz-combobox__option,
    .combobox-option,
    .autocomplete-item,
    .suggestion-item,
    [role="option"]
).is-active {
    background: var(--primary-subtle);
    color: var(--primary);
}

body :where(select, .mindz-select, .form-select, .select-control) option,
body :where(select, .mindz-select, .form-select, .select-control) optgroup {
    background: var(--surface);
    color: var(--text);
}

/* =========================================================
   4. Checkbox, radio e escolhas
   ========================================================= */

body :where(input[type="checkbox"], input[type="radio"]) {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

body :where(input[type="checkbox"], input[type="radio"]):disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

body :where(
    .mindz-choice,
    .checkbox-row,
    .radio-row,
    .feedback-checkbox-row,
    .pea-switch
) {
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    color: var(--text-soft);
    cursor: pointer;
}

body :where(
    .mindz-choice,
    .checkbox-row,
    .radio-row,
    .feedback-checkbox-row,
    .pea-switch
) > :is(span, strong, small) {
    margin: 0;
}

body :where(.mindz-choice__content) {
    display: grid;
    gap: 2px;
}

body :where(.mindz-choice__content) > strong {
    color: var(--title-color);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

body :where(.mindz-choice__content) > small {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* =========================================================
   5. Toggle / switch
   ========================================================= */

.mindz-switch,
body :where(.tn-switch-control) {
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-soft);
    cursor: pointer;
}

.mindz-switch > input,
body :where(.tn-switch-control) > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mindz-switch__track,
body :where(.tn-switch-track) {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 24px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--neutral-soft);
    box-shadow: inset 0 1px 2px var(--overlay-soft);
    transition: var(--transition-interactive);
}

.mindz-switch__track::after,
body :where(.tn-switch-thumb) {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-round);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-standard);
}

.mindz-switch > input:checked + .mindz-switch__track,
body :where(.tn-switch-control) > input:checked + .tn-switch-track {
    border-color: var(--primary);
    background: var(--primary);
}

.mindz-switch > input:checked + .mindz-switch__track::after,
body :where(.tn-switch-control) > input:checked + .tn-switch-track > .tn-switch-thumb {
    transform: translateX(18px);
}

.mindz-switch > input:focus-visible + .mindz-switch__track,
body :where(.tn-switch-control) > input:focus-visible + .tn-switch-track {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

.mindz-switch > input:disabled + .mindz-switch__track,
body :where(.tn-switch-control) > input:disabled + .tn-switch-track {
    opacity: 0.55;
    cursor: not-allowed;
}

body :where(.mindz-switch__label, .tn-switch-text) {
    color: var(--text-soft);
    font-size: var(--font-size-md);
    line-height: var(--line-height-snug);
}

/* =========================================================
   6. Tags, chips, badges e status
   ========================================================= */

body :is(
    .mindz-tag,
    .mindz-badge,
    .mindz-status,
    .badge,
    .chip,
    .pill,
    .tag,
    .tag-status,
    .filter-chip,
    .status-chip,
    .status-badge,
    .status-pill,
    .table-status,
    .perfil-publico-skill
) {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--badge-border);
    border-radius: var(--radius-pill);
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

body :is(.filter-chip, button.chip, button.tag, .mindz-tag.is-interactive) {
    min-height: 32px;
    cursor: pointer;
}

body :is(.filter-chip, button.chip, button.tag, .mindz-tag.is-interactive):hover {
    border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
    background: var(--primary-subtle);
    color: var(--primary);
}

body :is(
    .mindz-status[data-tone="success"],
    .mindz-tag[data-tone="success"],
    .status-badge.is-success,
    .status-pill.is-success,
    .table-status.is-success,
    .status-badge.success,
    .status-pill.success,
    .table-status.success,
    .badge-success,
    .status-ativo,
    .status-ativa,
    .status-aprovado,
    .status-aprovada,
    .status-concluido,
    .status-concluida,
    .status-efetivado,
    .status-publicado,
    .status-publicada
) {
    border-color: var(--success-border);
    background: var(--success-soft);
    color: var(--success);
}

body :is(
    .mindz-status[data-tone="warning"],
    .mindz-tag[data-tone="warning"],
    .status-badge.is-warning,
    .status-pill.is-warning,
    .table-status.is-warning,
    .status-badge.warning,
    .status-pill.warning,
    .table-status.warning,
    .badge-warning,
    .status-pendente,
    .status-aguardando,
    .status-alerta,
    .status-atencao
) {
    border-color: var(--warning-border);
    background: var(--warning-soft);
    color: var(--color-feedback-warning-text);
}

body :is(
    .mindz-status[data-tone="danger"],
    .mindz-tag[data-tone="danger"],
    .status-badge.is-danger,
    .status-pill.is-danger,
    .table-status.is-danger,
    .status-badge.danger,
    .status-pill.danger,
    .table-status.danger,
    .badge-danger,
    .status-cancelado,
    .status-cancelada,
    .status-reprovado,
    .status-reprovada,
    .status-expirado,
    .status-expirada,
    .status-critico,
    .status-critica,
    .status-error
) {
    border-color: var(--danger-border);
    background: var(--danger-soft);
    color: var(--color-feedback-danger-text);
}

body :is(
    .mindz-status[data-tone="info"],
    .mindz-tag[data-tone="info"],
    .status-badge.is-info,
    .status-pill.is-info,
    .table-status.is-info,
    .badge-info,
    .status-em-andamento,
    .status-processando,
    .status-enviado,
    .status-enviada
) {
    border-color: var(--info-border);
    background: var(--info-soft);
    color: var(--color-feedback-info-text);
}



body :where(.status-dot, .mindz-status__dot) {
    width: 8px;
    min-width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: var(--radius-round);
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

/* =========================================================
   7. Ícones
   ========================================================= */

.mindz-icon,
body :where(.button-icon, .app-icon) {
    width: var(--icon-size-md);
    min-width: var(--icon-size-md);
    height: var(--icon-size-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    line-height: 0;
    flex: 0 0 auto;
}

.mindz-icon > svg,
body :where(.button-icon, .app-icon) > svg,
body :where(svg.mindz-icon, svg.button-icon, svg.app-icon) {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mindz-icon--sm {
    width: var(--icon-size-sm);
    min-width: var(--icon-size-sm);
    height: var(--icon-size-sm);
}

.mindz-icon--lg {
    width: var(--icon-size-lg);
    min-width: var(--icon-size-lg);
    height: var(--icon-size-lg);
}

/* =========================================================
   8. Responsividade e movimento reduzido
   ========================================================= */

@media (max-width: 640px) {
    body :where(.mindz-button--mobile-full, .form-actions > .mindz-button, .form-actions > .button-primary, .form-actions > .button-secondary) {
        width: 100%;
    }

    body :where(.mindz-combobox__panel, .combobox-options, .combobox-panel, [role="listbox"]) {
        max-height: min(280px, 46vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    body :where(button, .button, .btn, .mindz-button),
    body :where(input, select, textarea, .form-control, .field-control),
    .mindz-switch__track,
    .mindz-switch__track::after,
    body :where(.tn-switch-track, .tn-switch-thumb) {
        transition-duration: 0.01ms;
    }

    body :where(button, .button, .btn, .mindz-button):hover {
        transform: none;
    }
}

@keyframes mindz-component-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   Release 238 — contrato semântico de tags, badges e status
   ========================================================= */
body :is(.mindz-status, .mindz-tag, .mindz-badge)[data-tone="neutral"] {
    border-color: var(--badge-border);
    background: var(--badge-bg);
    color: var(--badge-text);
}

body :is(.mindz-status, .mindz-tag, .mindz-badge)[data-size="sm"] {
    min-height: 22px;
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
}

body :is(.mindz-status, .mindz-tag, .mindz-badge)[data-size="lg"] {
    min-height: 32px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-md);
}

body .mindz-status {
    max-width: 100%;
}

body .mindz-status > :last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Campos limpáveis — componente global consolidado na Sessão 10. */
.field-clearable {
    position: relative;
    width: 100%;
    min-width: 0;
    display: block;
}

.field-clearable > .form-control-clearable {
    min-height: 46px;
    padding-left: 14px;
    padding-right: 50px;
}

.field-clearable--select > .form-control-clearable,
.field-clearable--date > .form-control-clearable,
.field-clearable--number > .form-control-clearable {
    padding-right: 76px;
}

.field-clearable--textarea > .form-control-clearable {
    display: block;
    min-height: 112px;
    padding-block: 12px;
    line-height: 1.5;
}

.field-clear-button {
    position: absolute;
    z-index: var(--z-content);
    top: 50%;
    right: 10px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
    transform: translateY(-50%);
}

.field-clearable--textarea > .field-clear-button {
    top: 10px;
    transform: none;
}

.field-clearable--select > .field-clear-button,
.field-clearable--date > .field-clear-button,
.field-clearable--number > .field-clear-button {
    right: 38px;
}

.field-clear-button:hover,
.field-clear-button:focus-visible {
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: var(--focus-ring);
    transform: translateY(-50%);
}

.field-clearable--textarea > .field-clear-button:hover,
.field-clearable--textarea > .field-clear-button:focus-visible {
    transform: none;
}

.field-clear-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.field-clear-button[hidden] {
    display: none;
}

input[type="search"].form-control-clearable::-webkit-search-cancel-button {
    appearance: none;
}
}

@layer mindz.components {
/* Release 2660 — estados semânticos premium e consistentes */
body .mindz-status[data-tone] {
    min-height: 28px;
    padding: 4px 11px;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 34%, transparent);
}

body .mindz-status[data-tone="success"] {
    border-color: color-mix(in srgb, var(--success) 34%, var(--border));
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
    color: var(--state-success-text);
}

body .mindz-status[data-tone="warning"] {
    border-color: color-mix(in srgb, var(--warning) 36%, var(--border));
    background: color-mix(in srgb, var(--warning) 13%, var(--surface));
    color: var(--state-warning-text);
}

body .mindz-status[data-tone="danger"] {
    border-color: color-mix(in srgb, var(--danger) 34%, var(--border));
    background: color-mix(in srgb, var(--danger) 11%, var(--surface));
    color: var(--state-danger-text);
}

body .mindz-status[data-tone="info"] {
    border-color: color-mix(in srgb, var(--info) 34%, var(--border));
    background: color-mix(in srgb, var(--info) 11%, var(--surface));
    color: var(--state-info-text);
}

body .mindz-status[data-tone="neutral"] {
    border-color: color-mix(in srgb, var(--neutral) 26%, var(--border));
    background: color-mix(in srgb, var(--neutral) 8%, var(--surface));
    color: var(--text-muted);
}

body .mindz-status .mindz-status__dot {
    width: 7px;
    min-width: 7px;
    height: 7px;
    box-shadow: none;
}
}
/* Seletor global de pessoas — usado por Feedback e pelos fluxos administrativos. */
.mindz-person-selector {
  position: relative;
  min-width: 0;
}

.mindz-person-selector__search[hidden],
.mindz-person-selector__selected[hidden],
.mindz-person-selector__list[hidden] {
  display: none !important;
}

.mindz-person-selector__combobox input {
  width: 100%;
}

.mindz-person-selector__list {
  position: fixed;
  z-index: var(--mindz-z-popover, 2147482500);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--mindz-border-color, var(--border-color));
  border-radius: var(--mindz-radius-lg, 14px);
  background: var(--mindz-surface, var(--surface-primary));
  box-shadow: var(--mindz-shadow-xl, 0 24px 70px rgb(15 23 42 / 24%));
}

.mindz-person-selector__option {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.mindz-person-selector__option.is-active,
.mindz-person-selector__option:hover,
.mindz-person-selector__option:focus-visible {
  background: var(--mindz-surface-hover, var(--surface-hover));
  outline: none;
}

.mindz-person-selector__option .feedback-option-info {
  min-width: 0;
}

.mindz-person-selector__option .feedback-option-info strong,
.mindz-person-selector__option .feedback-option-info span,
.mindz-person-selector__option .feedback-option-info small,
.mindz-person-selector__selected .feedback-person-info strong,
.mindz-person-selector__selected .feedback-person-info span,
.mindz-person-selector__selected .feedback-person-info small {
  overflow-wrap: anywhere;
}

.mindz-person-selector__avatar-fallback {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--mindz-surface-muted, var(--surface-secondary));
  color: var(--mindz-text-secondary, var(--text-secondary));
  font-weight: 700;
}

.mindz-person-selector__state {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mindz-person-selector__state--error,
.mindz-person-selector__message[data-tone="error"] {
  color: var(--mindz-danger, var(--color-danger));
}

.mindz-person-selector.is-disabled {
  opacity: .72;
}

.mindz-person-selector.is-readonly .feedback-selected-recipient-card {
  background: var(--mindz-surface-muted, var(--surface-secondary));
}

@media (max-width: 640px) {
  .mindz-person-selector__list {
    max-width: calc(100vw - 24px);
  }
}

/* Contrato global de rótulos e comboboxes — release 26640. */
.form-field__label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.form-field__label-content {
  display: inline-flex;
  align-items: baseline;
  align-self: start;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.form-field__label-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-field__required {
  flex: 0 0 auto;
  color: var(--mindz-danger, var(--danger, #c62828));
  font-weight: 800;
  white-space: nowrap;
}

.app-combobox {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.app-combobox__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea));
  border-radius: var(--mindz-radius-md, 12px);
  background: var(--mindz-surface, var(--surface, #fff));
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.app-combobox__control:focus-within {
  border-color: var(--mindz-primary, var(--primary, #315ed0));
  box-shadow: var(--focus-ring, 0 0 0 3px rgb(49 94 208 / 16%));
}

.app-combobox__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 76px 10px 13px;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  color: var(--mindz-text, var(--text, #1d2a44));
  box-shadow: none !important;
  outline: 0;
}

.app-combobox__clear,
.app-combobox__toggle {
  position: absolute;
  top: 50%;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  transform: translateY(-50%);
}

.app-combobox__clear { right: 36px; font-size: 18px; }
.app-combobox__toggle { right: 4px; font-size: 17px; }
.app-combobox__clear svg,
.app-combobox__toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-combobox__clear:hover,
.app-combobox__toggle:hover,
.app-combobox__clear:focus-visible,
.app-combobox__toggle:focus-visible {
  background: var(--mindz-surface-hover, var(--surface-hover, #eef3ff));
  color: var(--mindz-primary, var(--primary, #315ed0));
  outline: 0;
}

.app-combobox__clear[hidden],
.app-combobox__native-select[hidden],
.app-combobox__popover[hidden] { display: none !important; }

.app-combobox__message {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: .75rem;
  line-height: 1.35;
}

.app-combobox__message[data-tone="error"] { color: var(--mindz-danger, var(--danger, #c62828)); }
.app-combobox__input[aria-invalid="true"] { color: var(--mindz-danger, var(--danger, #c62828)); }
.app-combobox:has(.app-combobox__input[aria-invalid="true"]) .app-combobox__control { border-color: var(--mindz-danger, var(--danger, #c62828)); }
.app-combobox.is-disabled { opacity: .68; }
.app-combobox.is-readonly .app-combobox__control { background: var(--mindz-surface-muted, var(--surface-alt, #f4f6fa)); }

.app-combobox__popover {
  position: fixed;
  z-index: var(--mindz-z-popover, 2147482500);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea));
  border-radius: var(--mindz-radius-lg, 14px);
  background: var(--mindz-surface, var(--surface, #fff));
  box-shadow: var(--mindz-shadow-xl, 0 24px 70px rgb(15 23 42 / 24%));
}

.app-combobox__option,
.app-combobox__action {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 3px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mindz-text, var(--text, #1d2a44));
  text-align: left;
}

.app-combobox__option:hover,
.app-combobox__option:focus-visible,
.app-combobox__option.is-active,
.app-combobox__option[aria-selected="true"] {
  background: var(--mindz-surface-hover, var(--surface-hover, #eef3ff));
  outline: 0;
}

.app-combobox__option-label,
.app-combobox__option small { min-width: 0; overflow-wrap: anywhere; }
.app-combobox__option-label { font-weight: var(--font-weight-regular); }
.app-combobox__option small { color: var(--mindz-text-secondary, var(--text-muted, #65728b)); }
.app-combobox__action { margin-top: 5px; border-top: 1px solid var(--mindz-border-color, var(--border, #d5dbea)); border-radius: 0; color: var(--mindz-primary, var(--primary, #315ed0)); font-weight: 750; }
.app-combobox__state { display: flex; min-height: 58px; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: var(--mindz-text-secondary, var(--text-muted, #65728b)); text-align: center; }
.app-combobox__state--error { color: var(--mindz-danger, var(--danger, #c62828)); }
.app-combobox__retry,
.mindz-person-selector__retry {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: var(--mindz-radius-sm, 9px);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.app-combobox__retry:hover,
.app-combobox__retry:focus-visible,
.mindz-person-selector__retry:hover,
.mindz-person-selector__retry:focus-visible {
  background: var(--mindz-surface-hover, var(--surface-hover, #eef3ff));
  outline: 0;
}
.mindz-person-selector__list { overflow-x: hidden; overflow-y: auto; }
.mindz-person-selector__option { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-bottom: 1px solid var(--mindz-border-color, var(--border, #d5dbea)); background: transparent; color: var(--mindz-text, var(--text, #1d2a44)); }
.mindz-person-selector__option:last-child { border-bottom: 0; }

.mindz-person-selector__selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
}

.person-selector__selection { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-selector__summary { display: grid; min-width: 0; gap: 2px; }
.person-selector__summary strong,
.person-selector__summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-selector__clear { flex: 0 0 auto; }

/* Botão de ícone posicionado dentro de controles: não participa do efeito
   global de elevação aplicado aos botões de ação. */
body .mindz-control-icon-button,
body .mindz-control-icon-button:hover:not(:disabled):not([aria-disabled="true"]),
body .mindz-control-icon-button:focus-visible,
body .mindz-control-icon-button:active:not(:disabled):not([aria-disabled="true"]) {
  min-height: 32px;
  padding: 0;
  box-shadow: none;
  transform: var(--mindz-control-icon-transform, translateY(-50%));
}

body .field-clearable--textarea > .mindz-control-icon-button {
  --mindz-control-icon-transform: none;
}

/* Componentes globais 26643 — controles de dados e pessoas autocontidos. */
.app-combobox__message[hidden],
.app-combobox__message:empty,
.mindz-person-selector__message[hidden],
.mindz-person-selector__message:empty {
  display: none !important;
}

.mindz-person-selector__search {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mindz-person-selector__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea));
  border-radius: var(--mindz-radius-md, 12px);
  background: var(--mindz-surface, var(--surface, #fff));
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.mindz-person-selector__control:focus-within {
  border-color: var(--mindz-primary, var(--primary, #315ed0));
  box-shadow: var(--focus-ring, 0 0 0 3px rgb(49 94 208 / 16%));
}

.mindz-person-selector__input,
.mindz-person-selector__combobox input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 48px 10px 13px;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  color: var(--mindz-text, var(--text, #1d2a44));
  box-shadow: none !important;
  outline: 0;
}

.mindz-person-selector__toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  transform: translateY(-50%);
}

.mindz-person-selector__toggle svg,
.mindz-person-selector__clear svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mindz-person-selector__selected {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 6px 44px 6px 8px;
  overflow: hidden;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea));
  border-radius: var(--mindz-radius-md, 12px);
  background: var(--mindz-surface, var(--surface, #fff));
  color: var(--mindz-text, var(--text, #1d2a44));
}

.mindz-person-selector__selected[hidden] {
  display: none !important;
}

.mindz-person-selector__selected .person-selector__selection {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
}

.mindz-person-selector__selected .person-selector__summary {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1px;
}

.mindz-person-selector__selected .person-selector__summary strong,
.mindz-person-selector__selected .person-selector__summary span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindz-person-selector__selected .person-selector__summary strong {
  color: var(--mindz-text, var(--text, #1d2a44));
  font-size: .85rem;
  line-height: 1.2;
}

.mindz-person-selector__selected .person-selector__summary span {
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: .74rem;
  line-height: 1.2;
}

.mindz-person-selector__avatar,
.mindz-person-selector__avatar-fallback {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.mindz-person-selector__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  transform: translateY(-50%);
}

.mindz-person-selector__clear:hover,
.mindz-person-selector__clear:focus-visible,
.mindz-person-selector__toggle:hover,
.mindz-person-selector__toggle:focus-visible {
  background: var(--mindz-surface-hover, var(--surface-hover, #eef3ff));
  color: var(--mindz-primary, var(--primary, #315ed0));
  outline: 0;
}

.mindz-person-selector__list {
  padding: 6px;
}

.mindz-person-selector__option {
  border-bottom: 0;
  border-radius: 10px;
}

.mindz-person-selector__option + .mindz-person-selector__option {
  margin-top: 2px;
}

.mindz-person-selector__option .feedback-option-info {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

.mindz-person-selector__option .feedback-option-info strong,
.mindz-person-selector__option .feedback-option-info span,
.mindz-person-selector__option .feedback-option-info small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindz-person-selector.is-disabled .mindz-person-selector__control,
.mindz-person-selector.is-disabled .mindz-person-selector__selected {
  background: var(--mindz-surface-muted, var(--surface-alt, #f4f6fa));
  cursor: not-allowed;
}

/* Componentes flutuantes 26644 — contrato visual isolado e previsível. */
.app-combobox__popover,
.mindz-person-selector__list {
  box-sizing: border-box;
  min-height: 0;
  margin: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  color: var(--mindz-text, var(--text, #1d2a44));
  font: inherit;
  line-height: 1.35;
}

.app-combobox__popover {
  display: block;
  padding: 6px;
}

.app-combobox__popover[hidden],
.mindz-person-selector__list[hidden] {
  display: none !important;
}

.app-combobox__option,
.app-combobox__action {
  box-sizing: border-box;
  min-height: 46px;
  margin: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
}

.app-combobox__option {
  align-content: center;
}

.app-combobox__option-label {
  display: block;
  font-size: .86rem;
  line-height: 1.3;
}

.app-combobox__option small {
  display: block;
  font-size: .74rem;
  line-height: 1.3;
}

.mindz-person-selector__list {
  position: fixed;
  z-index: var(--mindz-z-popover, 2147482500);
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea));
  border-radius: var(--mindz-radius-lg, 14px);
  background: var(--mindz-surface, var(--surface, #fff));
  box-shadow: var(--mindz-shadow-xl, 0 24px 70px rgb(15 23 42 / 24%));
}

.mindz-person-selector__option {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mindz-text, var(--text, #1d2a44));
  font: inherit;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.mindz-person-selector__option + .mindz-person-selector__option {
  margin-top: 3px;
}

.mindz-person-selector__option:hover,
.mindz-person-selector__option:focus-visible,
.mindz-person-selector__option.is-active,
.mindz-person-selector__option[aria-selected="true"] {
  background: var(--mindz-surface-hover, var(--surface-hover, #eef3ff));
  outline: 0;
}

.mindz-person-selector__option-content {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mindz-person-selector__option-name,
.mindz-person-selector__option-meta,
.mindz-person-selector__option-email {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindz-person-selector__option-name {
  color: var(--mindz-text, var(--text, #1d2a44));
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.25;
}

.mindz-person-selector__option-meta,
.mindz-person-selector__option-email {
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: .73rem;
  font-weight: 500;
  line-height: 1.25;
}

.mindz-person-selector__avatar,
.mindz-person-selector__avatar-fallback {
  box-sizing: border-box;
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.mindz-person-selector__selection {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.mindz-person-selector__selection-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.mindz-person-selector__selection-copy strong,
.mindz-person-selector__selection-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindz-person-selector__selection-copy strong {
  font-size: .85rem;
  line-height: 1.2;
}

.mindz-person-selector__selection-copy span {
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: .74rem;
  line-height: 1.2;
}

.mindz-person-selector__state {
  box-sizing: border-box;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: .8rem;
  text-align: center;
}

/* =========================================================
   MindZ 26645 — seletor global de pessoas
   Contrato único: exatamente o mesmo componente de destinatário do Feedback.
   ========================================================= */
.mindz-person-selector {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 12px;
}

.mindz-person-selector .feedback-search-wrapper,
.mindz-person-selector .feedback-recipient-search-area,
.mindz-person-selector__search {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 12px;
}

.mindz-person-selector .feedback-combobox,
.mindz-person-selector .feedback-combobox-clean,
.mindz-person-selector__combobox {
  position: relative;
  width: 100%;
  min-width: 0;
}

.mindz-person-selector .feedback-combobox input,
.mindz-person-selector .feedback-combobox-clean input,
.mindz-person-selector__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea)) !important;
  border-radius: var(--mindz-radius-lg, var(--radius-lg, 14px)) !important;
  background: var(--mindz-surface, var(--surface, #fff)) !important;
  color: var(--mindz-text, var(--text, #1d2a44));
  font: inherit;
  line-height: 1.35;
  box-shadow: none !important;
  outline: 0;
}

.mindz-person-selector .feedback-combobox input:focus,
.mindz-person-selector .feedback-combobox input:focus-visible,
.mindz-person-selector__input:focus,
.mindz-person-selector__input:focus-visible {
  border-color: var(--mindz-primary, var(--primary, #315ed0)) !important;
  box-shadow: var(--focus-ring, 0 0 0 3px rgb(49 94 208 / 16%)) !important;
}

.mindz-person-selector.is-disabled .feedback-combobox input,
.mindz-person-selector.is-readonly .feedback-combobox input {
  background: var(--mindz-surface-muted, var(--surface-alt, #f4f6fa)) !important;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  cursor: not-allowed;
  opacity: .8;
}

.mindz-person-selector__list.feedback-dropdown {
  position: fixed !important;
  z-index: var(--mindz-z-popover, 2147482500) !important;
  box-sizing: border-box !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  align-content: start !important;
  justify-content: start !important;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea)) !important;
  border-radius: var(--mindz-radius-lg, var(--radius-lg, 14px)) !important;
  background: var(--mindz-surface, var(--surface, #fff)) !important;
  color: var(--mindz-text, var(--text, #1d2a44));
  box-shadow: var(--mindz-shadow-xl, var(--shadow-lg, 0 24px 70px rgb(15 23 42 / 24%))) !important;
  scrollbar-gutter: stable;
}

.mindz-person-selector__list.feedback-dropdown[hidden] {
  display: none !important;
}

.mindz-person-selector__list .feedback-option.mindz-person-selector__option {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 72px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--table-row-border, var(--mindz-border-color, #e4e8f0)) !important;
  border-radius: 0 !important;
  background: var(--mindz-surface, var(--surface, #fff)) !important;
  color: var(--mindz-text, var(--text, #1d2a44)) !important;
  font: inherit !important;
  line-height: 1.25 !important;
  text-align: left !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
}

.mindz-person-selector__list .feedback-option.mindz-person-selector__option:last-child {
  border-bottom: 0 !important;
}

.mindz-person-selector__list .feedback-option.mindz-person-selector__option:hover,
.mindz-person-selector__list .feedback-option.mindz-person-selector__option:focus-visible,
.mindz-person-selector__list .feedback-option.mindz-person-selector__option.is-active,
.mindz-person-selector__list .feedback-option.mindz-person-selector__option[aria-selected="true"] {
  background: var(--table-row-hover, var(--mindz-surface-hover, #eef3ff)) !important;
  outline: 0 !important;
}

.mindz-person-selector__list .feedback-option-info {
  display: grid !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 4px !important;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}

.mindz-person-selector__list .feedback-option-info strong,
.mindz-person-selector__list .feedback-option-info span,
.mindz-person-selector__list .feedback-option-info small {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.mindz-person-selector__list .feedback-option-info strong {
  color: var(--mindz-text, var(--text, #1d2a44));
  font-size: 14px;
  font-weight: 700;
}

.mindz-person-selector__list .feedback-option-info span,
.mindz-person-selector__list .feedback-option-info small {
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: 12px;
  font-weight: 500;
}

.mindz-person-selector__avatar,
.mindz-person-selector__avatar-fallback,
.mindz-person-selector .feedback-person-avatar {
  box-sizing: border-box;
  display: inline-grid;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  place-items: center;
  overflow: hidden;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--mindz-surface-muted, var(--surface-alt, #f0e8f7));
  color: var(--mindz-primary, var(--primary, #7d3b98));
  font-size: 12px;
  font-weight: 700;
}

.mindz-person-selector__selected.feedback-selected-recipient-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  min-height: 86px;
  height: auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--mindz-border-color, var(--border, #d5dbea));
  border-radius: var(--mindz-radius-lg, var(--radius-lg, 14px));
  background: var(--mindz-surface-muted, var(--surface-alt, #f4f6fa));
  color: var(--mindz-text, var(--text, #1d2a44));
}

.mindz-person-selector__selected.feedback-selected-recipient-card[hidden] {
  display: none !important;
}

.mindz-person-selector__selected .feedback-selected-person,
.mindz-person-selector__selected .person-selector__selection {
  display: flex !important;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.mindz-person-selector__selected .feedback-person-info,
.mindz-person-selector__selected .person-selector__summary {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
}

.mindz-person-selector__selected .feedback-person-info strong,
.mindz-person-selector__selected .feedback-person-info span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindz-person-selector__selected .feedback-person-info strong {
  color: var(--mindz-text, var(--text, #1d2a44));
  font-size: 14px;
  font-weight: 700;
}

.mindz-person-selector__selected .feedback-person-info span {
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: 12px;
}

.mindz-person-selector__selected .feedback-change-recipient-button,
.mindz-person-selector__selected .person-selector__clear {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--button-primary-bg, var(--mindz-primary, #315ed0));
  border-radius: var(--mindz-radius-md, 10px);
  background: var(--button-primary-bg, var(--mindz-primary, #315ed0));
  color: var(--button-primary-text, #fff);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transform: none !important;
}

.mindz-person-selector__selected .feedback-change-recipient-button:hover,
.mindz-person-selector__selected .feedback-change-recipient-button:focus-visible {
  background: var(--button-primary-bg-hover, color-mix(in srgb, var(--mindz-primary, #315ed0) 86%, #000));
  outline: 0;
}

.mindz-person-selector__state,
.mindz-person-selector .feedback-dropdown-empty,
.mindz-person-selector .feedback-dropdown-loading {
  box-sizing: border-box;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--mindz-text-secondary, var(--text-muted, #65728b));
  font-size: 13px;
  text-align: center;
}

.mindz-person-selector__message[hidden],
.mindz-person-selector__message:empty {
  display: none !important;
}

@media (max-width: 640px) {
  .mindz-person-selector__list.feedback-dropdown {
    max-width: calc(100vw - 24px) !important;
  }

  .mindz-person-selector__selected.feedback-selected-recipient-card {
    grid-template-columns: 1fr;
  }

  .mindz-person-selector__selected .feedback-change-recipient-button {
    width: 100%;
  }
}


@layer mindz.components {
body :is(.mindz-empty-state,.empty-state,.metas-empty-icon) svg{color:var(--primary);fill:none;stroke:currentColor}
body :is(.mindz-empty-state,.empty-state,.metas-empty-icon) svg :where(path,circle,ellipse,line,polyline,polygon){fill:none;stroke:currentColor}
}
