.ac-notice-menu {
    position: relative;
    flex: 0 0 auto;
}

.ac-notice-menu > summary {
    position: relative;
    cursor: pointer;
    list-style: none;
}

.ac-notice-menu > summary::-webkit-details-marker {
    display: none;
}

.ac-notice-count {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #d64553;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.ac-notice-menu:not([open]) > .ac-notice-dropdown {
    display: none;
}

.ac-notice-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: min(350px, calc(100vw - 24px));
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.3);
    overflow: hidden;
}

.ac-notice-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid rgba(128,128,128,.2);
}

.ac-notice-heading form,
.ac-notice-row form {
    margin: 0;
}

.ac-notice-recent {
    max-height: 360px;
    overflow-y: auto;
}

.ac-notice-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(128,128,128,.13);
}

.ac-notice-row.is-unread {
    background: rgba(120,150,240,.055);
}

.ac-notice-row:hover {
    background: rgba(128,128,128,.08);
}

.ac-notice-symbol {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    color: var(--space-accent,#8ba6ff);
    background: rgba(128,128,128,.1);
}

.ac-notice-symbol svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ac-notice-symbol span {
    font-size: 19px;
    font-weight: 600;
}

.ac-notice-main {
    flex: 1;
    min-width: 0;
}

.ac-notice-open,
.ac-notice-text-button,
.ac-notice-toggle {
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.ac-notice-open {
    display: grid;
    gap: 4px;
    width: 100%;
    text-align: left;
    padding: 0;
    font-size: 13px;
}

.ac-notice-label {
    overflow-wrap: anywhere;
}

.is-unread .ac-notice-label {
    font-weight: 600;
}

.ac-notice-text-button {
    color: inherit;
    font-size: 12px;
    padding: 4px;
}

.ac-notice-toggle {
    display: grid;
    place-items: center;
    width: 24px;
    height: 28px;
    padding: 0;
}

.ac-notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: .45;
}

.is-unread .ac-notice-dot {
    background: #7899ef;
    border-color: #7899ef;
    opacity: 1;
}

.ac-notice-footer {
    display: block;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    border-top: 1px solid rgba(128,128,128,.15);
}

.ac-notice-empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
}

@media (max-width: 600px) {
    .ac-notice-dropdown {
        position: fixed;
        top: 70px;
        right: 12px;
        width: min(350px, calc(100vw - 24px));
    }
}
