/* Shared feedback, helper text and empty states. */
:root {
    --feedback-info-bg: var(--lavender, #eaddf0);
    --feedback-info-text: var(--plum, #3d1235);
    --feedback-success-bg: #edf5ed;
    --feedback-success-text: #285537;
    --feedback-warning-bg: #fff5e2;
    --feedback-warning-text: #765018;
    --feedback-error-bg: #fff0ed;
    --feedback-error-text: #982c2c;
}
:root :is(.notice, .alert, .feedback) {
    --feedback-bg: var(--feedback-info-bg);
    --feedback-text: var(--feedback-info-text);
    box-sizing: border-box;
    max-width: 100%;
    padding: 16px 20px;
    margin-block: 16px;
    border: 1px solid currentColor;
    border-radius: 12px;
    background: var(--feedback-bg);
    color: var(--feedback-text);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
:root :is(.feedback-success, .alert-success) {
    --feedback-bg: var(--feedback-success-bg);
    --feedback-text: var(--feedback-success-text);
}
:root :is(.feedback-warning, .alert-warning) {
    --feedback-bg: var(--feedback-warning-bg);
    --feedback-text: var(--feedback-warning-text);
}
:root :is(.feedback-error, .notice.error, .alert-danger) {
    --feedback-bg: var(--feedback-error-bg);
    --feedback-text: var(--feedback-error-text);
}
:root :is(.notice, .alert, .feedback) :is(p, ul):last-child {
    margin-bottom: 0;
}
:root :is(.notice, .alert, .feedback) p {
    margin-block: 6px;
}
:root :is(.notice, .alert, .feedback) ul {
    margin: 8px 0 0;
    padding-inline-start: 20px;
}
:root :is(.notice, .alert, .feedback) li + li {
    margin-top: 5px;
}
:root :is(.notice, .alert, .feedback) a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
:root :is(.notice, .alert, .feedback) a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
:root .feedback-inline {
    display: block;
    max-width: 100%;
    margin-block: 8px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted, #756a72);
    overflow-wrap: anywhere;
}
:root .feedback-inline:empty {
    display: none;
}
:root .feedback-inline[data-feedback='error'] {
    padding: 10px 12px;
    border: 1px solid var(--feedback-error-text);
    border-radius: 8px;
    color: var(--feedback-error-text);
    background: var(--feedback-error-bg);
}
:root .feedback-inline[data-feedback='success'] {
    color: var(--feedback-success-text);
}
:root .field-error {
    display: block;
    margin-top: 6px;
    color: var(--feedback-error-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
:root :is(.empty, .admin-empty, .media-grid-empty, .empty-state) {
    box-sizing: border-box;
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    margin-block: 16px;
    padding: 28px;
    border: 1px dashed var(--border, #e8dedf);
    border-radius: 14px;
    background: var(--surface, #fff);
    color: var(--muted, #756a72);
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
:root :is(.empty-state, .admin-empty) > .ui-icon {
    color: var(--plum, #3d1235);
    font-size: 26px;
    margin-bottom: 12px;
    display: block;
    margin-inline: auto;
}
:root :is(.empty-state, .admin-empty) :is(h2, h3) {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--plum, #3d1235);
    font-family: var(--font-body);
    font-weight: 600;
}
:root :is(.empty-state, .admin-empty) p {
    max-width: 540px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.7;
}
:root .empty-state .button {
    margin-top: 16px;
    text-decoration: none;
}
:root .empty-state a:not(.button) {
    color: var(--plum, #3d1235);
    text-decoration: underline;
}
:root :is(.field small, .form-text, .media-label small, .settings-note, .service-field-help) {
    color: var(--muted, #756a72);
    line-height: 1.65;
    overflow-wrap: anywhere;
}
:root :is(.field small, .form-text, .media-label small, .service-field-help) {
    font-size: 12px;
}
:root :is(.error-page .error-code) {
    color: var(--muted, #756a72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}
:root .error-page .form-card {
    max-width: 760px;
}
:root .error-page h1 {
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
}
:root .error-page .tool-actions {
    margin-top: 22px;
}
.minimal-error-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-weight: 600;
    color: var(--plum, #3d1235);
}
.minimal-error-brand img {
    width: 40px;
    height: 40px;
}
@media (max-width: 600px) {
    :root :is(.notice, .alert, .feedback) {
        padding: 14px 16px;
        font-size: 14px;
    }
    :root :is(.empty, .admin-empty, .media-grid-empty, .empty-state) {
        padding: 22px 16px;
        font-size: 14px;
    }
    :root :is(.empty-state, .admin-empty) p {
        font-size: 14px;
    }
    :root :is(.feedback-inline, .field-error) {
        font-size: 13px;
    }
    :root .error-page .tool-actions .button {
        flex: 1 1 180px;
    }
}

:root table td:has(> .empty-state) {
    padding: 0;
}
:root table tbody tr:has(.empty-state) {
    border: 0;
    padding: 0;
    background: transparent;
}
:root table .empty-state {
    border: 0;
    margin: 0;
}
:root .notification-item small {
    font-size: 12px;
    color: var(--muted, #756a72);
    line-height: 1.5;
}

:root .notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
}
:root .notification-body > span {
    display: block;
    font-size: 14px;
    color: var(--text, #291f28);
}
:root .notification-body > .notification-status {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--surface, #fff);
    color: var(--plum, #3d1235);
    font-size: 11px;
    font-weight: 600;
}
@media (max-width: 600px) {
    :root .notification-item {
        grid-template-columns: minmax(0, 1fr);
    }
}

:root .invalid-feedback {
    color: var(--feedback-error-text);
}

:root :is(.form-card, .admin-content) small,
:root :is(.settings-note, .media-upload-hint, .service-fields small) {
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted, #756a72);
    overflow-wrap: anywhere;
}
:root :is(.field small, .form-text, .media-label small, .settings-note, .service-fields small, .media-upload-hint) a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--plum, #3d1235);
}

:root .notification-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
:root .notification-list > .notification-item {
    padding: 16px;
    border: 1px solid var(--border, #e8dedf);
    border-inline-start: 3px solid transparent;
    border-radius: 12px;
    background: var(--surface, #fff);
}
:root .notification-list > .notification-item.is-unread {
    border-inline-start-color: var(--plum, #3d1235);
    background: var(--lavender, #eaddf0);
}
:root .account-list:has(> .empty-state) {
    border: 0;
    background: transparent;
    overflow: visible;
}

/* The list stays available before map consent and when requests fail. */
:root .page > :is(.places-grid, .pagination, .meta)[hidden] {
    display: none;
}
:root [data-map-results] .empty .button {
    margin-top: 16px;
}
