.story-suggestion-dialog {
    box-sizing: border-box;
    width: min(520px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    color: var(--color-text-primary);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.story-suggestion-dialog::backdrop { background: rgb(0 0 0 / .5); }
.story-suggestion-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.story-suggestion-dialog h2 { margin: 0; font-family: inherit; font-size: 1.25rem; }
.story-suggestion-dialog p { line-height: 1.6; margin: 0 0 16px; }
.reader-request-form { display: grid; gap: 12px; }
.reader-request-form label { font-weight: 600; }
.reader-request-form input, .reader-request-form textarea, .reader-request-form select, .reader-request-filter select {
    box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    font: inherit; background: var(--color-bg); color: var(--color-text-primary);
}
.reader-request-form textarea { resize: vertical; }
.reader-request-form p { margin: 0; color: var(--color-text-secondary); font-size: .875rem; line-height: 1.6; }
.reader-request-form [data-suggestion-message] { min-height: 24px; }
.reader-request-form [data-suggestion-message][data-error="true"] { color: var(--color-danger); }
.reader-request-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.reader-reply-form { margin-top: 24px; }
.reader-request-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.reader-request-filter select { width: auto; max-width: 100%; }
.reader-requests > h2 { margin: 24px 0 16px; font-family: inherit; font-size: 1.125rem; }
.reader-requests .feedback-card > p { margin-bottom: 16px; }
.required-mark { color: var(--color-danger); }
.feedback-kind-tabs { margin-bottom: 24px; }
@media (max-width: 599px) {
    .story-suggestion-dialog { padding: 20px; }
    .reader-request-filter label { width: 100%; }
    .reader-request-filter select { flex: 1; }
}

body.has-suggestion-dialog { overflow: hidden; }
.account-notification-card.is-admin-message .account-notification-excerpt { display: block; overflow: visible; -webkit-line-clamp: unset; white-space: pre-wrap; overflow-wrap: anywhere; }

.message-recipient-picker { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.message-recipient-picker legend { margin-bottom: 12px; font-weight: 600; }
.message-recipient-results { max-height: 280px; overflow-y: auto; display: grid; gap: 4px; }
.message-recipient-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; }
.message-recipient-option:hover { background: var(--color-bg-tertiary); }
.reader-request-form .message-recipient-option input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: var(--color-primary); }
.message-recipient-option > span { min-width: 0; overflow-wrap: anywhere; }
.message-recipient-option strong, .message-recipient-option > span > span { display: block; }
.message-recipient-option > span > span { margin-top: 4px; font-size: .8125rem; font-weight: 400; color: var(--color-text-secondary); }
.message-recipient-selected { display: flex; flex-wrap: wrap; gap: 8px; }
.message-recipient-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.message-recipient-chip > span { min-width: 0; overflow-wrap: anywhere; }
.message-recipient-chip > button { flex-shrink: 0; }
.reader-request-form [data-recipient-error] { color: var(--color-danger); }

.admin-message-history { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg); }
.admin-message-history-item + .admin-message-history-item { border-top: 1px solid var(--color-border); }
.admin-message-history-toggle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto auto; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 10px 16px; border: 0; border-radius: 0; background: transparent; color: var(--color-text-primary); text-align: left; font: inherit; font-size: .875rem; line-height: 1.4; cursor: pointer; }
.admin-message-history-toggle:hover { background: var(--color-bg-tertiary); }
.admin-message-history-title, .admin-message-history-recipients { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-message-history-title { font-weight: 600; }
.admin-message-history-recipients, .admin-message-history-toggle time { color: var(--color-text-secondary); font-size: .8125rem; }
.admin-message-history-toggle time { white-space: nowrap; }
.admin-message-history-toggle[aria-expanded="true"] .hdk-icon { transform: rotate(180deg); }
.admin-message-history-body { padding: 16px; border-top: 1px solid var(--color-border); overflow-wrap: anywhere; }
.admin-message-history-body[hidden] { display: none; }
.admin-message-history-meta { margin: 0 0 8px; color: var(--color-text-secondary); font-size: .8125rem; }
.admin-message-history-body h3 { margin: 16px 0 8px; font: inherit; font-weight: 600; }
.admin-message-history-content { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.admin-message-history-body > a { display: inline-block; margin-top: 12px; }
@media (max-width: 599px) {
    .admin-message-history-toggle { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 8px; padding: 10px 12px; }
    .admin-message-history-title { grid-column: 1 / 3; }
    .admin-message-history-toggle .hdk-icon { grid-column: 3; grid-row: 1 / 3; }
    .admin-message-history-recipients { grid-column: 1; grid-row: 2; }
    .admin-message-history-toggle time { grid-column: 2; grid-row: 2; font-size: .75rem; }
}
