html:has(dialog.ath-feedback[open]) { overflow: hidden; }

dialog.ath-feedback {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: calc(100% - 40px);
    max-width: 360px;
    max-height: calc(100% - 40px);
    margin: auto;
    padding: 28px 24px 24px;
    overflow: auto;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    background: #fff;
    color: #172b4d;
    box-shadow: 0 24px 80px rgba(20, 39, 68, .2);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    overscroll-behavior: contain;
}

.ath-feedback::backdrop {
    background: rgba(18, 30, 49, .38);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ath-feedback .ath-feedback__symbol {
    box-sizing: border-box;
    width: 46px;
    height: 46px;
    margin: 0 0 18px;
    border-radius: 50%;
    background: #edf4ff;
}

.ath-feedback--confirm .ath-feedback__symbol::after {
    content: "";
    display: block;
    width: 10px;
    height: 18px;
    margin: 0 auto;
    border: solid #246bdf;
    border-width: 0 2px 2px 0;
    transform: translateY(10px) rotate(45deg);
}

.ath-feedback .ath-feedback__title {
    margin: 0;
    padding: 0;
    color: #172b4d;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ath-feedback .ath-feedback__desc {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.ath-feedback .ath-feedback__details {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #f7f9fc;
}

.ath-feedback__details dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.ath-feedback__details dd {
    margin: 4px 0 16px;
    color: #172b4d;
    font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
    overflow-wrap: anywhere;
}

.ath-feedback__details dd:last-child { margin-bottom: 0; }

.ath-feedback .ath-feedback__actions {
    display: flex;
    gap: 12px;
    margin: 0;
}

.ath-feedback__actions button {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f5f7fa;
    color: #475569;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.ath-feedback__actions .ath-feedback__primary {
    border-color: #246bdf;
    background: #246bdf;
    color: #fff;
}

.ath-feedback__actions button:focus-visible {
    outline: 3px solid #93bfff;
    outline-offset: 3px;
}

.ath-feedback__actions button:active { filter: brightness(.94); }

dialog.ath-feedback--loading {
    max-width: 300px;
    padding: 32px 24px;
    text-align: center;
}

.ath-feedback--loading .ath-feedback__symbol {
    margin: 0 auto 22px;
    border: 3px solid #e8effa;
    border-top-color: #246bdf;
    background: transparent;
    animation: ath-feedback-spin .85s linear infinite;
}

@keyframes ath-feedback-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .ath-feedback--loading .ath-feedback__symbol { animation: none; }
}
