.main-card { position: relative; }
.notice-bell { position: absolute; top: 12px; right: 14px; display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #dbe3ed; border-radius: 10px; background: #f8fafc; color: #235b96; cursor: pointer; }
.notice-bell[hidden] { display: none; }
.notice-bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notice-bell-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 1px 4px; border-radius: 10px; background: #b91c1c; color: #fff; font-size: 11px; font-weight: 700; }
.notice-bell-count[hidden] { display: none; }
.notice-read-hint { margin: 0; padding: 12px 22px 18px; color: #526174; font-size: 12px; line-height: 1.5; border-top: 1px solid #e2e8f0; }
.notice-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 0; border: 1px solid #dbe3ed; border-radius: 14px; color: #17243a; background: #fff; text-align: left; }
.notice-dialog::backdrop { background: rgba(15,23,42,.55); }
.notice-dialog-header { position: sticky; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.notice-dialog h2 { font-size: 21px; font-weight: 700; margin: 0; line-height: 1.3; }
.notice-dialog-header p { margin: 6px 0 0; font-size: 13px; color: #526174; }
.notice-dialog-close { min-height: 40px; padding: 8px 12px; flex-shrink: 0; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #334155; font: inherit; font-size: 14px; cursor: pointer; }
.notice-dialog-content { padding: 0 22px; }
.notice-article { padding: 0; }
.notice-entry-heading { padding: 16px 0; }
.notice-read-button { margin-top: 12px; min-height: 40px; padding: 8px 14px; border: 1px solid #235b96; border-radius: 7px; background: #fff; color: #235b96; font: inherit; font-size: 14px; cursor: pointer; }
.notice-read-button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.notice-article-body[hidden], .notice-reminder[hidden] { display: none; }
.notice-reminder { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #17243a; text-align: left; font-size: 14px; line-height: 1.5; }
.notice-article > summary { position: relative; display: block; list-style: none; padding: 16px 28px 16px 0; cursor: pointer; }
.notice-article > summary::-webkit-details-marker { display: none; }
.notice-article > summary:focus-visible { outline: 2px solid #93c5fd; outline-offset: -2px; border-radius: 6px; }
.notice-chevron { position: absolute; right: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #526174; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice-article[open] > summary .notice-chevron { transform: translateY(-50%) rotate(180deg); }
.notice-article .notice-article-body { padding-bottom: 18px; }
.notice-article .notice-article-meta { align-items: center; justify-content: flex-start; margin-bottom: 6px; }
.notice-article-meta time { margin-left: auto; }
.notice-article-meta .notice-unread { color: #9a3412; background: #fff7ed; border-radius: 4px; padding: 1px 5px; font-size: 10px; }
.notice-unread[hidden] { display: none; }
.notice-article + .notice-article { border-top: 1px solid #e2e8f0; }
.notice-article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; color: #526174; font-size: 12px; }
.notice-article-meta span { color: #1d4ed8; font-weight: 700; }
.notice-article h3 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.notice-article-body { font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.notice-article-body .notice-content-image { display: block; max-width: 100%; height: auto; margin: 12px 0; }
.notice-bell:focus-visible, .notice-dialog-close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
@media(max-width: 480px) { .main-card:has(.notice-bell:not([hidden])) #clock { margin-top: 26px; } .notice-dialog-header { padding: 16px; gap: 10px; } .notice-dialog h2 { font-size: 18px; } .notice-dialog-content { padding-inline: 16px; } .notice-article h3 { font-size: 17px; } }
