.ann-display-list {
    display: grid;
    gap: 14px;
}

.ann-display-card {
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 10px;
    background: #fff;
    color: #172033;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.ann-display-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ann-display-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .1);
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 700;
}

.ann-display-card h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
}

.ann-display-body {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.ann-display-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ann-body-image {
    margin: 0;
}

.ann-attachments {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, .35);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ann-attachments strong {
    width: 100%;
    font-size: .9rem;
}

.ann-attachments a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .06);
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
}

.ann-empty-state {
    padding: 16px;
    color: #64748b;
    text-align: center;
}

.webreg-ann-strip {
    max-width: 1180px;
    margin: 14px auto 0;
    padding: 0 16px;
}

.webreg-ann-strip .ann-display-list {
    gap: 8px;
}

.webreg-ann-strip .ann-display-card {
    padding: 14px 16px;
    border-color: rgba(37, 99, 235, .2);
    background: linear-gradient(180deg, rgba(239, 246, 255, .92), #fff);
}

.webreg-ann-strip .ann-display-card:not(:first-child) {
    display: none;
}

.webreg-ann-strip .ann-display-card h2 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.webreg-ann-strip .ann-display-body {
    max-height: 96px;
    overflow: hidden;
    font-size: .92rem;
}

.ann-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 8px;
    background: #fff;
    color: #172033;
    padding: 7px 10px;
    font-weight: 800;
}

.ann-bell-btn[hidden] {
    display: none !important;
}

.ann-bell-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.admin-ann-bell {
    flex: 0 0 auto;
    width: 42px;
    padding: 7px;
}

.admin-ann-bell .ann-bell-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.ann-modal-host {
    min-height: 120px;
}

.ann-modal-host .ann-display-card {
    box-shadow: none;
}

.ann-standalone-page {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fb;
    color: #172033;
    font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

.ann-standalone-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 16px;
}

.ann-standalone-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.ann-standalone-head span {
    color: #2563eb;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ann-standalone-head h1 {
    margin: 4px 0 0;
    font-size: 1.8rem;
    font-weight: 900;
}

.ann-standalone-head small {
    color: #64748b;
}

.dark-mode .ann-display-card,
.dark-mode .ann-bell-btn {
    background: #121a2a;
    color: #e5edf7;
    border-color: rgba(148, 163, 184, .24);
}

.dark-mode .ann-display-meta span {
    background: rgba(96, 165, 250, .15);
    color: #93c5fd;
}

.dark-mode .ann-attachments a {
    background: rgba(255, 255, 255, .08);
    color: #bfdbfe;
}

@media (max-width: 760px) {
    .webreg-ann-strip {
        margin-top: 8px;
        padding: 0 10px;
    }

    .webreg-ann-strip .ann-display-card {
        padding: 12px;
    }

    .webreg-ann-strip .ann-display-body {
        max-height: 66px;
    }

    .ann-display-card {
        padding: 14px;
        border-radius: 8px;
    }

    .ann-display-card h2 {
        font-size: 1.05rem;
    }

    .ann-display-meta span {
        min-height: 22px;
        font-size: .72rem;
    }

    .ann-standalone-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
