.notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}

.bell-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  color: #a8a8a8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.27 21a2 2 0 0 0 3.46 0'/%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.27 21a2 2 0 0 0 3.46 0'/%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notification-dot {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff3933;
  box-shadow: 0 0 0 2px #111;
}

.notification-button.has-unread .notification-dot { display: block; }

.updates-page {
  max-width: 980px;
}

.updates-head {
  margin: 22px 0 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.updates-head .eyebrow {
  color: #8ab4ff;
  font-weight: 800;
  margin: 0 0 8px;
}

.updates-head h1 {
  margin: 0;
  font-size: 30px;
}

.updates-head p:last-child {
  color: var(--muted);
  margin: 10px 0 0;
}

.updates-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-open-button {
  min-height: 34px;
  padding: 0 13px;
  border-color: #3a3a3a;
  font-size: 13px;
  font-weight: 900;
}

.notice-editor {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 16px;
}

.notice-editor input,
.notice-editor textarea {
  min-height: 42px;
}

.notice-editor textarea {
  min-height: 130px;
}

.notice-type-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notice-type-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #111;
  cursor: pointer;
}

.notice-type-card input {
  min-height: auto;
  margin-top: 3px;
}

.notice-type-card span {
  display: grid;
  gap: 4px;
}

.notice-type-card small {
  color: var(--muted);
  line-height: 1.45;
}

.notice-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.update-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.update-card {
  border-bottom: 1px solid var(--line);
}

.update-card.pinned {
  background: linear-gradient(90deg, rgba(255, 217, 120, .08), transparent 38%);
}

.update-row {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 18px 0;
}

.update-row strong {
  font-size: 16px;
  line-height: 1.4;
}

.update-row time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.update-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.notice-delete {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #5b3333;
  border-radius: 6px;
  background: #2a1212;
  color: #ffaaa3;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.notice-delete:hover {
  border-color: #ff6d65;
  color: #fff;
}

.update-badge {
  min-width: 52px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 5px;
  background: #0e4777;
  color: #82c7ff;
  font-size: 12px;
  font-weight: 900;
}

.update-badge.notice-badge {
  background: #4b3a12;
  color: #ffd978;
}

.pinned-badge {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 217, 120, .14);
  color: #ffe39a;
  font-size: 12px;
  font-weight: 900;
  vertical-align: 1px;
}

.update-detail {
  display: none;
  color: var(--soft);
  line-height: 1.75;
  white-space: normal;
  padding: 0 0 22px 68px;
}

.update-card.open .update-detail {
  display: block;
}

@media (max-width: 760px) {
  .updates-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-type-box {
    grid-template-columns: 1fr;
  }

  .update-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .update-actions {
    justify-content: flex-start;
  }

  .update-badge {
    width: fit-content;
  }

  .update-detail {
    padding-left: 0;
  }
}
