.notice-banner {
  background: linear-gradient(90deg, var(--violet-800), var(--violet-600));
  color: #fff;
}
.notice-banner-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 13px;
}
.notice-banner-tag {
  flex: 0 0 auto;
  background: rgba(255,255,255,.16);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.notice-banner-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-banner-link { flex: 0 0 auto; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.notice-banner-close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  padding: 0 2px;
}
.notice-banner-close:hover { opacity: 1; }
@media (max-width: 620px) {
  .notice-banner-tag { display: none; }
  .notice-banner-inner { padding: 9px 0; }
}

/* Notices page */
.notices-page { min-height: 100vh; background: linear-gradient(135deg, #ffffff 0%, #fbfaff 55%, #f3edff 100%); }
.notices-layout { max-width: 880px; margin: 0 auto; padding: 46px 22px 90px; }
.notices-heading { max-width: 700px; margin-bottom: 34px; }
.notices-heading h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); letter-spacing: -2px; line-height: 1.05; }
.notices-heading p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.admin-claim-card, .composer-card {
  background: #fff;
  border: 1px solid #e8e4f0;
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(47,21,96,.07);
  padding: 26px;
  margin-bottom: 30px;
}
.admin-claim-card h3, .composer-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 8px; }
.admin-claim-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }

.composer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--violet-100);
  color: var(--violet-800);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.composer-grid { display: grid; gap: 14px; }
.composer-row { display: grid; gap: 8px; }
.composer-row.two-col { grid-template-columns: 1fr 160px; gap: 14px; }
.composer-row label { font-size: 11px; font-weight: 700; color: #484351; }
.composer-row input, .composer-row select, .composer-row textarea {
  width: 100%;
  border: 1px solid #ded9e8;
  border-radius: 10px;
  min-height: 43px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: 0;
}
.composer-row textarea { padding: 11px 12px; min-height: 120px; resize: vertical; }
.composer-row input:focus, .composer-row select:focus, .composer-row textarea:focus {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 4px rgba(107,50,201,.08);
}
.composer-pin { display: flex; align-items: center; gap: 8px; flex-direction: row; }
.composer-pin input { width: auto; min-height: auto; }
.composer-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.composer-status { font-size: 11px; color: #777080; min-height: 16px; }

.notices-list { display: grid; gap: 16px; }
.notice-card {
  background: #fff;
  border: 1px solid #e8e4f0;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 14px 40px rgba(47,21,96,.06);
  position: relative;
}
.notice-card.pinned { border-color: #d9c8f7; background: linear-gradient(180deg, #fbf9ff, #ffffff); }
.notice-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.notice-tag { background: var(--violet-100); color: var(--violet-800); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.notice-pin-flag { color: var(--violet-700); font-size: 11px; font-weight: 700; }
.notice-date { margin-left: auto; color: #918b9b; font-size: 11px; }
.notice-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 8px; color: var(--ink); }
.notice-card p { color: #4a4555; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.notice-card-actions { margin-top: 14px; display: flex; gap: 14px; }
.notice-delete { color: #9b2840; border: 0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; padding: 0; }
.notice-pin-toggle { color: var(--violet-700); border: 0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; padding: 0; }
.notices-empty { color: var(--muted); font-size: 14px; padding: 30px 0; text-align: center; }

@media (max-width: 560px) {
  .notices-layout { padding: 30px 14px 60px; }
  .composer-row.two-col { grid-template-columns: 1fr; }
}


/* Private notices and moderation */
.composer-intro { color: var(--muted); font-size: 12px; line-height: 1.65; margin: -4px 0 10px; }
.moderation-card { background:#fff; border:1px solid #e8e4f0; border-radius:20px; box-shadow:0 20px 55px rgba(47,21,96,.07); padding:26px; margin-bottom:30px; }
.moderation-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.moderation-head h3 { font-family:var(--serif); font-size:22px; margin:0 0 7px; }
.moderation-head p { color:var(--muted); font-size:12px; line-height:1.65; max-width:620px; }
.moderation-count,.personal-count { background:var(--violet-100); color:var(--violet-800); border-radius:999px; padding:6px 10px; font-size:10px; font-weight:800; white-space:nowrap; }
.moderation-list { display:grid; gap:10px; }
.moderation-story { display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid #ece8f3; border-radius:14px; padding:15px; background:#fcfbfe; }
.moderation-story h4 { font-family:var(--serif); font-size:17px; margin:4px 0; }
.moderation-story p { color:var(--muted); font-size:11px; }
.moderation-delete { flex:0 0 auto; color:#9b2840; border:1px solid #efd3da; background:#fff7f8; padding:9px 12px; border-radius:9px; cursor:pointer; font-size:10px; font-weight:800; }
.moderation-delete:hover { background:#fff0f2; }
.personal-notices { margin-bottom:34px; }
.personal-notices-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.personal-notices-head h2 { font-family:var(--serif); font-size:28px; margin:3px 0; }
.personal-notices-head p { color:var(--muted); font-size:12px; }
.private-notice.unread { border-color:#cdb7f4; box-shadow:0 16px 42px rgba(107,50,201,.09); }
.private-notice.unread::before { content:""; position:absolute; left:0; top:16px; bottom:16px; width:3px; border-radius:4px; background:var(--violet-600); }
.notice-read-btn { margin-top:14px; border:1px solid #d8c8f1; color:var(--violet-700); background:#faf8ff; padding:8px 12px; border-radius:8px; cursor:pointer; font-size:10px; font-weight:800; }
.notice-read-state { display:inline-block; margin-top:14px; color:#8b8494; font-size:10px; font-weight:700; }
@media(max-width:620px){.moderation-head,.personal-notices-head,.moderation-story{align-items:flex-start;flex-direction:column}.moderation-delete{width:100%}.moderation-count,.personal-count{align-self:flex-start}}
