.home-module-card[data-home-module="notices"] { --module-bg: #17262c; --module-edge: #365865; --module-color: #a4dbec; }
.notice-card-panel { display: grid; gap: 12px; min-width: 0; padding: 14px 16px; }
.notice-card-head, .notice-card-head > div, .notice-card-tabs, .notice-card-recipient-actions, .notice-card-detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.notice-card-head, .notice-card-detail-head { justify-content: space-between; }
.notice-card-head h4, .notice-card-detail-head h4 { margin: 0; font-size: 17px; }
.notice-card-head svg, .notice-card-attachment svg { width: 17px; height: 17px; flex: 0 0 17px; }
.notice-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #3c626e; border-radius: 7px; background: #254550; color: var(--module-color); }
.notice-card-head .primary-button { display: inline-flex; gap: 6px; align-items: center; }
.notice-card-tabs .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 6px 9px; min-height: 36px; max-width: 100%; }
.notice-card-tabs .secondary-button span { min-inline-size: 2ch; color: var(--home-muted); font-variant-numeric: tabular-nums; }
.notice-card-tabs .secondary-button[aria-pressed="true"] { border-color: #638f9c; background: #26434b; color: #d6f5fa; }
.notice-card-list { display: grid; gap: 6px; margin: 0; padding: 0 2px 0 0; max-height: 295px; overflow: auto; list-style: none; scrollbar-color: #577e89 #17262c; }
.notice-card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 7px 9px; border: 1px solid #38545e; border-radius: 6px; color: #e8f4f6; background: #142027; text-align: left; cursor: pointer; }
.notice-card-row:hover { border-color: #70a4b1; background: #1b3038; }
.notice-card-label { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.notice-card-label strong { font-size: 14px; }
.notice-card-label small, .notice-card-message, .notice-card-facts dt, .notice-card-recipient-actions span { color: #afc3cb; font-size: 13px; }
.notice-card-message, .notice-card-error { margin: 0; overflow-wrap: anywhere; }
.notice-card-error { color: #ffb5bf; font-size: 13px; }
.notice-card-error:empty { display: none; }
.notice-card-pill, .notice-card-jump-badge { display: inline-block; flex: 0 0 auto; max-width: 100%; padding: 3px 6px; border: 1px solid #396663; border-radius: 5px; color: #a7eadc; background: #1c3532; font-size: 12px; font-weight: 700; line-height: 1.4; }
.notice-card-pill[data-tone="scheduled"] { color: #b6eaf5; background: #213941; border-color: #4a6978; }
.notice-card-pill[data-tone="expired"], .notice-card-jump-badge { color: #ffd4a3; background: #3c3025; border-color: #705741; }
.notice-card-dialog { width: min(620px, calc(100vw - 24px)); }
.notice-card-dialog .secondary-button { border-color: #49626d; background: #1e3038; color: var(--hours-ink); }
.notice-card-dialog .secondary-button:hover { border-color: #76a1ae; background: #2b424b; }
.notice-card-dialog .danger-button { border-color: #865357; background: #47282d; color: #ffd2d8; }
.notice-card-dialog .danger-button:hover { border-color: #bd7b84; background: #5a3036; }
.notice-card-form { display: grid; gap: 12px; min-width: 0; }
.notice-card-form .field, .notice-card-scheduling > label { min-width: 0; }
.notice-card-form textarea { padding: 8px; border: 1px solid var(--hours-line); border-radius: 6px; background: #10171c; color: var(--hours-ink); font: inherit; resize: vertical; }
.notice-card-form :is(input, textarea, select) { min-width: 0; max-width: 100%; }
.notice-card-scheduling { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr)); gap: 10px; }
.notice-card-recipients { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--hours-line); border-radius: 6px; }
.notice-card-recipients legend { padding-inline: 4px; font-size: 13px; font-weight: 700; }
.notice-card-recipient-actions .secondary-button { min-height: 32px; padding: 4px 8px; }
.notice-card-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 6px; max-height: 116px; overflow: auto; }
.notice-card-people label, .notice-card-checkbox { display: flex; align-items: center; gap: 7px; min-height: 30px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.notice-card-dialog input[type="checkbox"] { flex: 0 0 16px; width: 16px; min-height: 16px; padding: 0; accent-color: #72d7c5; }
.notice-card-detail-head h4, .notice-card-facts dd, .notice-card-attachment, .notice-card-content { min-width: 0; overflow-wrap: anywhere; }
.notice-card-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); gap: 8px 12px; margin: 12px 0; }
.notice-card-facts dd { margin: 3px 0 0; font-size: 13px; }
.notice-card-content { padding: 12px; margin: 8px 0 12px; border: 1px solid var(--hours-line); border-radius: 6px; background: #101b21; white-space: pre-wrap; }
.notice-card-expiry { padding: 10px; margin-bottom: 0; border-left: 3px solid #cba66d; background: #342920; color: #ffd4a3; }
.notice-card-attachment { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; max-width: 100%; }
.notice-card-attachment small { display: block; color: var(--hours-muted); }
@media (max-width: 420px) { .notice-card-panel { padding: 12px; } .notice-card-tabs { gap: 5px; } }
