/* ── Page layout ── */
      .notices-page {
        max-width: 860px;
        margin: 0 auto;
        padding: 48px 20px 80px;
      }

      /* ── Page header ── */
      .page-hero {
        margin-bottom: 36px;
        animation: rpmc-fadeUp 0.4s var(--ease) both;
      }
      .page-hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 5px 14px;
        border-radius: 100px;
        background: var(--accent-dim);
        border: 1px solid rgba(59, 130, 246, 0.25);
        font-family: "Space Mono", monospace;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--accent-2);
        margin-bottom: 14px;
      }
      .page-hero-tag i {
        font-size: 0.58rem;
      }
      .page-hero h1 {
        font-family: "Outfit", sans-serif;
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        font-weight: 800;
        color: var(--text);
        line-height: 1.15;
        margin-bottom: 10px;
      }
      .page-hero h1 span {
        background: linear-gradient(135deg, var(--accent-2), #60a5fa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }
      .page-hero p {
        font-size: 0.92rem;
        color: var(--text-2);
        line-height: 1.6;
        max-width: 520px;
      }

      /* ── Toolbar ── */
      .notices-toolbar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 24px;
        flex-wrap: wrap;
        animation: rpmc-fadeUp 0.4s 0.1s var(--ease) both;
      }
      .notices-search-wrap {
        flex: 1;
        min-width: 200px;
        position: relative;
      }
      .notices-search-wrap i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.78rem;
        color: var(--text-3);
        pointer-events: none;
      }
      .notices-search {
        width: 100%;
        padding: 10px 14px 10px 36px;
        border-radius: var(--r-sm);
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        color: var(--text);
        font-family: "Baloo Da 2", "Outfit", sans-serif;
        font-size: 0.86rem;
        transition: all 0.2s;
      }
      .notices-search::placeholder {
        color: var(--text-3);
      }
      .notices-search:focus {
        outline: none;
        border-color: var(--accent);
        background: var(--surface-2);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
      }

      /* ── Category filter pills ── */
      .cat-pills {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
      }
      .cat-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 14px;
        border-radius: 100px;
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        font-size: 0.74rem;
        font-weight: 700;
        color: var(--text-2);
        cursor: pointer;
        transition: all 0.18s;
        font-family: "Baloo Da 2", "Outfit", sans-serif;
        white-space: nowrap;
        user-select: none;
      }
      .cat-pill:hover {
        border-color: var(--border-active);
        color: var(--text);
        background: var(--surface-2);
      }
      .cat-pill.active {
        color: #fff;
        border-color: transparent;
      }
      .cat-pill[data-cat="all"].active {
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
      }
      .cat-pill[data-cat="urgent"].active {
        background: linear-gradient(135deg, #dc2626, #f43f5e);
        box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
      }
      .cat-pill[data-cat="academic"].active {
        background: linear-gradient(135deg, #7c3aed, #a78bfa);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
      }
      .cat-pill[data-cat="event"].active {
        background: linear-gradient(135deg, #059669, #10b981);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      }
      .cat-pill[data-cat="general"].active {
        background: linear-gradient(135deg, #d97706, #f59e0b);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
      }
      .cat-pill i {
        font-size: 0.65rem;
      }
      .cat-count {
        font-family: "Space Mono", monospace;
        font-size: 0.6rem;
        background: rgba(255, 255, 255, 0.15);
        padding: 1px 6px;
        border-radius: 10px;
      }

      /* ── Sort bar ── */
      .sort-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 8px;
        animation: rpmc-fadeUp 0.4s 0.15s var(--ease) both;
      }
      .sort-result-count {
        font-family: "Space Mono", monospace;
        font-size: 0.68rem;
        color: var(--text-3);
        letter-spacing: 0.04em;
      }
      .sort-result-count span {
        color: var(--accent-2);
        font-weight: 700;
      }
      .sort-select {
        padding: 6px 10px;
        border-radius: 8px;
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        color: var(--text-2);
        font-size: 0.76rem;
        font-family: "Space Mono", monospace;
        cursor: pointer;
        transition: all 0.2s;
      }
      .sort-select:focus {
        outline: none;
        border-color: var(--accent);
      }
      .sort-select option {
        background: var(--surface-2);
      }

      /* ── Notice list ── */
      .notices-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      /* ── Notice card ── */
      .notice-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 20px 22px;
        cursor: pointer;
        transition: all 0.22s var(--ease);
        position: relative;
        overflow: hidden;
        animation: rpmc-fadeUp 0.35s var(--ease) both;
      }
      .notice-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        border-radius: 2px 0 0 2px;
        transition: width 0.2s;
      }
      .notice-card.urgent::before {
        background: var(--danger);
      }
      .notice-card.academic::before {
        background: #a78bfa;
      }
      .notice-card.event::before {
        background: var(--success);
      }
      .notice-card.general::before {
        background: var(--gold);
      }

      .notice-card:hover {
        background: var(--surface-2);
        border-color: var(--border-2);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
      }
      .notice-card.urgent:hover {
        border-color: rgba(244, 63, 94, 0.3);
        box-shadow: 0 8px 24px rgba(244, 63, 94, 0.12);
      }
      .notice-card.academic:hover {
        border-color: rgba(167, 139, 250, 0.3);
        box-shadow: 0 8px 24px rgba(167, 139, 250, 0.12);
      }
      .notice-card.event:hover {
        border-color: rgba(16, 185, 129, 0.3);
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
      }
      .notice-card.general:hover {
        border-color: rgba(245, 158, 11, 0.3);
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
      }

      .notice-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
      }
      .notice-card-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .notice-cat-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 10px;
        border-radius: 100px;
        font-family: "Space Mono", monospace;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border: 1px solid;
      }
      .notice-cat-badge.urgent {
        background: rgba(244, 63, 94, 0.1);
        border-color: rgba(244, 63, 94, 0.3);
        color: #fb7185;
      }
      .notice-cat-badge.academic {
        background: rgba(167, 139, 250, 0.1);
        border-color: rgba(167, 139, 250, 0.3);
        color: #c4b5fd;
      }
      .notice-cat-badge.event {
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
        color: #6ee7b7;
      }
      .notice-cat-badge.general {
        background: rgba(245, 158, 11, 0.1);
        border-color: rgba(245, 158, 11, 0.3);
        color: #fcd34d;
      }
      .notice-cat-badge i {
        font-size: 0.55rem;
      }

      .notice-date {
        font-family: "Space Mono", monospace;
        font-size: 0.62rem;
        color: var(--text-3);
        white-space: nowrap;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .notice-date i {
        font-size: 0.55rem;
      }

      .notice-card-title {
        font-family: "Outfit", sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
        line-height: 1.3;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .notice-card-preview {
        font-size: 0.82rem;
        color: var(--text-2);
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .notice-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
      }
      .notice-posted-by {
        font-size: 0.72rem;
        color: var(--text-3);
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .notice-posted-by i {
        font-size: 0.62rem;
        color: var(--text-3);
      }
      .notice-read-more {
        font-family: "Space Mono", monospace;
        font-size: 0.62rem;
        font-weight: 700;
        color: var(--accent-2);
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: gap 0.2s;
      }
      .notice-card:hover .notice-read-more {
        gap: 8px;
      }

      /* ── Pinned badge ── */
      .pinned-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-family: "Space Mono", monospace;
        font-size: 0.56rem;
        color: var(--gold);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }
      .pinned-badge i {
        font-size: 0.5rem;
      }

      /* ── Skeleton cards ── */
      .skeleton-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 20px 22px;
        animation: rpmc-fadeUp 0.35s var(--ease) both;
      }
      .skeleton-card-inner {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      /* ── Empty / error state ── */
      .notices-empty {
        text-align: center;
        padding: 60px 20px;
        animation: rpmc-fadeUp 0.4s var(--ease) both;
      }
      .notices-empty-icon {
        font-size: 2.8rem;
        color: var(--text-3);
        margin-bottom: 16px;
        display: block;
      }
      .notices-empty h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-2);
        margin-bottom: 8px;
      }
      .notices-empty p {
        font-size: 0.84rem;
        color: var(--text-3);
        line-height: 1.6;
      }

      /* ── Load more ── */
      .load-more-wrap {
        text-align: center;
        margin-top: 24px;
        animation: rpmc-fadeUp 0.4s var(--ease) both;
      }
      .load-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
        border-radius: var(--r-sm);
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        color: var(--text-2);
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        font-family: "Baloo Da 2", "Outfit", sans-serif;
      }
      .load-more-btn:hover {
        border-color: var(--border-active);
        background: var(--accent-dim);
        color: var(--accent-2);
      }
      .load-more-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
      }

      /* ── Notice detail modal ── */
      .notice-modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 300;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        animation: rpmc-fadeIn 0.2s ease both;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        overflow-y: auto;
      }
      .notice-modal {
        background: var(--surface);
        border: 1px solid var(--border-2);
        border-radius: var(--r-lg);
        width: min(640px, 100%);
        box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
        animation: rpmc-slideUp 0.35s var(--ease) both;
        position: relative;
        overflow: hidden;
        max-height: calc(100vh - 48px);
        display: flex;
        flex-direction: column;
      }
      .notice-modal-accent {
        height: 4px;
        width: 100%;
        flex-shrink: 0;
      }
      .notice-modal-accent.urgent {
        background: linear-gradient(90deg, var(--danger), #f43f5e);
      }
      .notice-modal-accent.academic {
        background: linear-gradient(90deg, #7c3aed, #a78bfa);
      }
      .notice-modal-accent.event {
        background: linear-gradient(90deg, #059669, #10b981);
      }
      .notice-modal-accent.general {
        background: linear-gradient(90deg, #d97706, #f59e0b);
      }

      .notice-modal-head {
        padding: 24px 28px 18px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
      }
      .notice-modal-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 12px;
      }
      .notice-modal-title {
        font-family: "Outfit", sans-serif;
        font-size: clamp(1rem, 3vw, 1.25rem);
        font-weight: 800;
        color: var(--text);
        line-height: 1.3;
      }
      .notice-modal-body {
        padding: 22px 28px;
        overflow-y: auto;
        flex: 1;
      }
      .notice-modal-body-text {
        font-size: 0.9rem;
        color: var(--text-2);
        line-height: 1.8;
        white-space: pre-wrap;
        word-break: break-word;
      }
      .notice-modal-footer {
        padding: 16px 28px;
        border-top: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        flex-shrink: 0;
        background: var(--surface-2);
      }
      .notice-modal-info {
        font-family: "Space Mono", monospace;
        font-size: 0.64rem;
        color: var(--text-3);
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
      }
      .notice-modal-info span {
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .notice-modal-close {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 8px 18px;
        border-radius: var(--r-sm);
        border: 1.5px solid var(--border-2);
        background: var(--surface);
        color: var(--text-2);
        font-size: 0.78rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.18s;
        font-family: "Baloo Da 2", "Outfit", sans-serif;
      }
      .notice-modal-close:hover {
        background: var(--surface-3);
        color: var(--text);
      }

      /* Responsive */
      @media (max-width: 600px) {
        .notices-page {
          padding: 32px 12px 60px;
        }
        .notice-modal-head {
          padding: 18px 18px 14px;
        }
        .notice-modal-body {
          padding: 16px 18px;
        }
        .notice-modal-footer {
          padding: 12px 18px;
        }
        .notices-toolbar {
          flex-direction: column;
          align-items: stretch;
        }
        .cat-pills {
          gap: 5px;
        }
      }


.notice-attach-row {
  margin-top: 10px;
}

.notice-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: "Space Mono", monospace;
  color: var(--accent-2);
  text-decoration: none;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-2);
}

.notice-attachment-link:hover {
  border-color: var(--border-active);
  background: var(--accent-dim);
}

.notice-modal-attach {
  margin-top: 14px;
}
