.eiti-header .fos-notices-trigger {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffdc94;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}
.eiti-header .fos-notices-trigger img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.eiti-header .fos-notices-trigger:hover {
    background: #bea16c1a;
    border-color: #b89b6459;
}
.eiti-header .fos-notices-trigger.has-unread::after {
    position: absolute;
    top: 7px;
    right: 6px;
    width: 10px;
    height: 10px;
    border: 2px solid #171814;
    border-radius: 50%;
    background: #ffca70;
    box-shadow: 0 0 0 1px #ffce8352;
    content: "";
}
.eiti-header .fos-notice-flash img {
    animation: fos-notice-flash .8s ease-out 1;
}
@keyframes fos-notice-flash {
    45% { filter: drop-shadow(0 0 7px #ffc05e) brightness(1.18); }
}
.eiti-header .fos-notices-trigger:focus-visible,
.fos-notices :focus-visible {
    outline: 2px solid #ffcc73;
    outline-offset: 2px;
}
.fos-notices {
    position: fixed;
    inset: var(--notice-top, 64px) var(--notice-right, 16px) auto auto;
    width: min(430px, calc(100vw - 24px));
    max-width: none;
    max-height: min(650px, calc(100dvh - var(--notice-top, 64px) - 14px));
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #817048;
    border-radius: 12px;
    background: #171a16;
    color: #f4ead7;
    box-shadow: 0 18px 60px #0009;
    font: 400 14px/1.5 system-ui, sans-serif;
}
.fos-notices[open] {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.fos-notices.is-history {
    width: min(540px, calc(100vw - 24px));
}
.fos-notices::backdrop {
    background: #0809078c;
}
.fos-notices-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 0 17px;
}
.fos-notices-head h2 {
    margin: 0;
    color: #fff0d5;
    font: 700 23px/1.15 Georgia, serif;
}
.fos-notices button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 5px 10px;
    color: #ffdc94;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    letter-spacing: normal;
    text-transform: none;
    font: inherit;
    cursor: pointer;
}
.fos-notices button[hidden] {
    display: none;
}
.fos-notices button:disabled {
    opacity: .55;
    cursor: default;
}
.fos-notices button:not(:disabled):hover {
    background: #262820;
}
.fos-notices .fos-notices-close {
    min-width: 44px;
    font-size: 24px;
}
.fos-notices-filters {
    display: flex;
    gap: 6px;
    padding: 4px 16px 11px;
    border-bottom: 1px solid #615639;
}
.fos-notices-filters button[aria-pressed="true"] {
    border-color: #8e7446;
    background: #302a1c;
    color: #ffe2af;
    font-weight: 650;
}
.fos-notices-content {
    overflow: auto;
    overscroll-behavior: contain;
}
.fos-notices-status {
    margin: 0;
    padding: 16px;
    color: #d4c7af;
}
.fos-notices-status:empty {
    display: none;
}
.fos-notice-entry, .fos-notice-group {
    margin: 0;
    border-bottom: 1px solid #39372c;
}
.fos-notice-entry.is-unread,
.fos-notice-group.is-unread > .fos-notice-summary {
    box-shadow: inset 3px 0 #d49a47;
    background: #282518;
}
.fos-notice-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    list-style: none;
    cursor: pointer;
}
.fos-notice-summary::-webkit-details-marker { display: none; }
.fos-notice-summary:hover { background: #bda67912; }
.fos-notice-summary::after {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    margin-inline-end: 2px;
    border: solid #cdbd9a;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    content: "";
}
.fos-notice-entry[open] > .fos-notice-summary::after,
.fos-notice-group[open] > .fos-notice-summary::after {
    transform: rotate(225deg);
}
.fos-notice-info {
    min-width: 0;
    display: grid;
    gap: 2px;
    overflow-wrap: anywhere;
}
.fos-notice-meta, .fos-notice-date {
    color: #cdbd9a;
    font-size: 11px;
}
.fos-notice-date { flex: 0 0 auto; margin-inline-start: auto; }
.fos-notice-title { color: #fff1d7; }
.fos-notice-text {
    padding: 0 16px 12px;
    overflow-wrap: anywhere;
}
.fos-notice-text p {
    color: inherit;
    margin: 0;
    white-space: pre-wrap;
}
.fos-notice-text a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #ffcf82;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fos-notice-group > .fos-notice-summary {
    background: #20241c;
}
.fos-notice-group-entries {
    margin-inline-start: 16px;
    border-inline-start: 1px solid #615639;
}
.fos-notice-group-entries > .fos-notice-entry:last-child {
    border-bottom: 0;
}
.fos-notices-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 4px;
    padding: 4px 8px;
    border-top: 1px solid #615639;
}
.fos-notices .fos-notices-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
}
.fos-notices-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
}
@media (max-width: 620px) {
    .fos-notices {
        right: 12px;
        left: 12px;
        width: auto;
    }
    .fos-notices.is-history { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .eiti-header .fos-notice-flash img { animation: none; }
}
