.proposal-send-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgb(24 27 31 / 0.38);
    animation: proposal-send-backdrop-in 140ms ease-out both;
}

.proposal-send-dialog {
    width: min(31rem, 100%);
    color: #132538;
    background: #fff;
    border: 1px solid #e2e8ed;
    border-radius: 0.55rem;
    box-shadow: 0 1.25rem 3.5rem rgb(18 22 28 / 0.2);
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    transform-origin: center;
    animation: proposal-send-dialog-in 180ms cubic-bezier(0.22, 0.8, 0.25, 1) both;
}

.proposal-send-dialog__header {
    display: flex;
    min-height: 4.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafb;
    border-bottom: 1px solid #e2e8ed;
}

.proposal-send-dialog__header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.proposal-send-dialog__header p {
    margin: 0.2rem 0 0;
    color: var(--text-muted, #70737a);
    font-size: 0.74rem;
}

.proposal-send-dialog__header button {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    place-items: center;
    padding: 0;
    color: var(--text-muted, #70737a);
    background: transparent;
    border: 0;
    border-radius: 0.35rem;
    font-size: 1rem;
}

.proposal-send-dialog__header button:hover:not(:disabled) {
    color: var(--default-text-color, #25272b);
    background: rgb(var(--light-rgb, 245, 246, 248));
}

.proposal-send-dialog__body {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.proposal-send-field {
    display: grid;
    gap: 0.3rem;
}

.proposal-send-field label {
    margin: 0;
    color: var(--default-text-color, #25272b);
    font-size: 0.74rem;
    font-weight: 600;
}

.proposal-send-field label span,
.proposal-send-field small {
    color: var(--text-muted, #70737a);
    font-size: 0.66rem;
    font-weight: 400;
}

.proposal-send-field textarea {
    width: 100%;
    min-height: 4.1rem;
    padding: 0.6rem 0.65rem;
    resize: vertical;
    color: var(--default-text-color, #25272b);
    background: var(--custom-white, #fff);
    border: 1px solid #e2e8ed;
    border-radius: 0.42rem;
    outline: 0;
    font: inherit;
    font-size: 0.79rem;
    line-height: 1.45;
}

.proposal-send-field textarea:focus {
    border-color: rgb(36 119 185 / 0.62);
    box-shadow: 0 0 0 0.16rem rgb(36 119 185 / 0.1);
}

.proposal-send-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f3f6f8;
    border-radius: 0 0 0.55rem 0.55rem;
}

.proposal-send-dialog__actions button {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
}

.proposal-send-dialog__cancel {
    color: var(--default-text-color, #25272b);
    background: transparent;
    border: 1px solid var(--default-border, #dfe2e6);
}

.proposal-send-dialog__submit {
    color: #fff;
    background: #2477b9;
    border: 1px solid #2477b9;
}

.proposal-send-dialog__submit:hover:not(:disabled) {
    background: #1b5f96;
    border-color: #1b5f96;
}

.proposal-send-dialog__actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@keyframes proposal-send-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes proposal-send-dialog-in {
    from { opacity: 0; transform: translateY(0.35rem) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 540px) {
    .proposal-send-dialog__actions {
        flex-direction: column-reverse;
    }

    .proposal-send-dialog__actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .proposal-send-backdrop,
    .proposal-send-dialog { animation: none; }
}
