/* Student Announcements (app/student/announcements): the inbox list and the reading dialog. Compact rows, an unread dot, amber for "Important". */
.sa-page { display: grid; gap: 12px; max-width: 820px; }
.sa-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; }
.sa-head h1 { margin: 0; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.sa-head p { margin: 2px 0 0; color: var(--c-text-secondary); font-size: .875rem; }
.sa-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #eef2f4; }
.sa-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--c-text-secondary); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.sa-tabs button.is-on { background: #fff; color: #0b5d75; box-shadow: var(--e-1); }
.sa-tabs button:focus-visible { outline: 2px solid #0e7490; outline-offset: 1px; }
.sa-count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: #dbe7ec; color: #334155; font-size: .72rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.sa-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sa-item:hover { background: #f9fbfc; }
.sa-item:focus-visible { outline: 2px solid #0e7490; outline-offset: 1px; }
.sa-item.is-imp { border-color: #f0cf8e; background: #fffaf0; }
.sa-item.is-unread { background: #f3fafc; border-color: #b6dde6; }
.sa-item.is-unread.is-imp { border-color: #e6b76a; }
.sa-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.is-unread .sa-dot { background: #0e7490; }
.sa-t { display: block; font-weight: 600; font-size: .9375rem; overflow-wrap: anywhere; }
.is-unread .sa-t { font-weight: 700; }
.sa-snip { display: block; margin-top: 2px; overflow: hidden; color: var(--c-text-secondary); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.sa-when { color: var(--c-text-muted); font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sa-t .sa-chip { margin-left: 8px; }
.sa-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.sa-chip.imp { background: #fff3d6; color: #8a5a00; }
.sa-chip.new { background: #e0f2f7; color: #0b5d75; }
.sa-empty { padding: 28px 12px; border: 1px dashed var(--c-border-strong); border-radius: 10px; color: var(--c-text-secondary); text-align: center; font-size: .9rem; }
.sa-dialog { margin: auto; inset: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 16px 18px; border: 0; border-radius: 14px; box-shadow: 0 18px 48px rgba(4, 41, 64, .3); overflow: auto; color: var(--c-text, #0f1b2a); }
.sa-dialog::backdrop { background: rgba(4, 41, 64, .5); }
.sa-dhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sa-dhead h2 { margin: 0; font-size: 1.125rem; font-weight: 650; overflow-wrap: anywhere; }
.sa-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #64748b; cursor: pointer; }
.sa-x:hover { background: #e2e8f0; }
.sa-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; color: var(--c-text-muted); font-size: .8125rem; }
.sa-body { margin: 12px 0 0; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sa-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.sa-close { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 10px; background: #0b5d75; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.sa-close:focus-visible { outline: 2px solid #0e7490; outline-offset: 2px; }
@media (max-width: 560px) {
  .sa-item { grid-template-columns: 12px minmax(0, 1fr); }
  .sa-when { grid-column: 2; }
  .sa-tabs { width: 100%; } .sa-tabs button { flex: 1; justify-content: center; }
}
