.dash-feedback-host {
    position: fixed;
    inset: 0;
    z-index: 2400;
    pointer-events: none;
}

.dash-feedback-host .dash-modal-host {
    pointer-events: auto;
}

.dash-feedback-trigger {
    display: inline-flex;
    align-items: center;
}

.dash-feedback-trigger__button {
    gap: 0.35rem;
}

.dash-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-feedback-form__message {
    min-height: 8rem;
    resize: vertical;
}

.dash-feedback-form__hint {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.875rem;
    color: var(--dash-text-muted, #64748b);
}

.dash-feedback-form__optional {
    font-weight: 400;
    color: var(--dash-text-muted, #64748b);
}

.dash-field__required {
    color: var(--dash-danger, #dc2626);
}

.dash-feedback-form__rating {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-feedback-form__stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.35rem;
}

.dash-feedback-form__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.dash-feedback-form__star-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--dash-text-muted, #94a3b8);
    opacity: 0.45;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.dash-feedback-form__stars:not(:hover) .dash-feedback-form__star--selected .dash-feedback-form__star-icon {
    color: var(--color-brand-blue, #1078be);
    opacity: 1;
}

.dash-feedback-form__star:hover .dash-feedback-form__star-icon,
.dash-feedback-form__star:hover ~ .dash-feedback-form__star .dash-feedback-form__star-icon {
    color: var(--color-brand-blue, #1078be);
    opacity: 1;
}

.dash-feedback-form__star:hover:not(:disabled),
.dash-feedback-form__star:focus-visible {
    outline: 2px solid var(--color-brand-blue, #1078be);
    outline-offset: 2px;
}

.dash-feedback-form__star:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dash-feedback-form__drop-zone {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 1rem;
    cursor: pointer;
}

.dash-feedback-form__drop-zone:hover,
.dash-feedback-form__drop-zone.dash-drop-zone--drag-over {
    border-color: var(--color-brand-blue, #1078be);
    background: rgba(16, 120, 190, 0.04);
}

.dash-feedback-form__drop-zone.dash-drop-zone--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dash-feedback-form__drop-zone .dash-drop-zone__browse {
    cursor: pointer;
}

.dash-feedback-form__file-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-feedback-form__file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--dash-border-subtle, #e2e8f0);
    border-radius: 0.5rem;
    background: var(--dash-surface-muted, #f8fafc);
}

.dash-feedback-form__file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.dash-feedback-form__file-size {
    font-size: 0.75rem;
    color: var(--dash-text-muted, #64748b);
}

.dash-feedback-form__file-remove {
    border: 0;
    background: transparent;
    color: var(--dash-link, #2563eb);
    cursor: pointer;
    font-size: 0.8125rem;
}

.dash-feedback-form__file-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
