body {
    font-family: system-ui, sans-serif;
    background: #0f1220;
    color: #eaeaf0;
    margin: 0;
    padding: 2rem;
}
.card {
    max-width: 420px;
    margin: auto;
    background: #171a2f;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.handle {
    font-size: 1.2rem;
    margin-top: 1rem;
}
.type {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}
.follow {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #5b7cfa;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.follow:hover {
    background: #6c8cff;
}
.copy-btn {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.copy-btn:hover{ background:#343a66; }
.copy-btn.copied {
    background: #2e7d32;
}
.toast{
  position:fixed;
  left:50%;
  top:124px;
  transform:translateX(-50%);
  background:rgba(20,22,36,0.95);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}

.notices {
    max-width: 860px;
    margin: 2rem auto 0;
}

.notices h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: #ffffff;
}

.notice-list {
    display: grid;
    gap: 1rem;
}

.notice-card {
    background: linear-gradient(180deg, #181c31 0%, #14182a 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.notice-head {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.notice-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 52px;
    background: #232844;
}

.notice-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #5b7cfa, #7d5bfa);
}

.notice-meta {
    min-width: 0;
}

.notice-subject {
    font-size: 1rem;
    font-weight: 700;
    color: #f7f8ff;
    line-height: 1.3;
}

.notice-byline {
    margin-top: 0.18rem;
    font-size: 0.92rem;
    color: rgba(234,234,240,0.72);
}

.notice-sender-link {
    color: #9db3ff;
    text-decoration: none;
}

.notice-sender-link:hover {
    text-decoration: underline;
}

.notice-body {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #e6e8f2;
    white-space: normal;
    word-break: break-word;
}

.notice-attachment {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(91,124,250,0.12);
    color: #cfd8ff;
    font-size: 0.9rem;
}

.notice-attachment-block {
    margin-top: 12px;
}

.notice-flyer {
    width: 100%;
    height: auto;
    max-width: 420px;
    border-radius: 12px;
    display: block;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.notice-attachment-name {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
}

.empty-state {
    background: #171a2f;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    color: rgba(234,234,240,0.75);
}

.notice-avatar-link {
    display: inline-block;
    border-radius: 50%;
    line-height: 0;
    text-decoration: none;
}

.notice-avatar-link:hover {
    opacity: 0.92;
}

.event-badge {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
}

.event-badge.today {
    background: #ff4d4d;
    color: white;
}

.event-badge.tomorrow {
    background: #ffa726;
    color: black;
}

.event-badge.upcoming {
    background: #5b7cfa;
    color: white;
}

.event-time {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #cfd8ff;
}

.event-hop {
    margin-top: 8px;
    font-size: 0.9rem;
}

.event-hop a {
    color: #9db3ff;
    text-decoration: none;
}

.event-hop a:hover {
    text-decoration: underline;
}

.notice-card.today {
    border: 1px solid rgba(255,80,80,0.6);
    box-shadow: 0 0 12px rgba(255,80,80,0.25);
}

