body[data-page="announcements"] :is(.app-page-heading, .app-toolbar, #announcementList, #announcementStatus) {
  max-width: 1040px;
}

body[data-page="announcements"] .app-page-heading {
  align-items: flex-end;
  margin: 14px 0 22px;
}

body[data-page="announcements"] .app-page-heading .page-title {
  margin: 0 0 6px;
  color: #172d46;
}

.ann-home-link {
  color: #225a88;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  white-space: nowrap;
}

body[data-page="announcements"] .app-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, 190px);
  gap: 12px;
  margin: 0 0 16px;
}

body[data-page="announcements"] .app-toolbar .lulan-search-control,
body[data-page="announcements"] #announcementFilter {
  min-height: 44px;
  background: #fff;
  border: 1px solid #ccd8e4;
  border-radius: 8px;
  box-shadow: none;
}

body[data-page="announcements"] #announcementFilter {
  height: 44px;
  min-width: 0;
}

body[data-page="announcements"] .app-toolbar .lulan-search-control:focus-within,
body[data-page="announcements"] #announcementFilter:focus-visible,
body[data-page="announcements"] :is(.ann-details, .ann-home-link):focus-visible {
  outline: 2px solid #3978ac;
  outline-offset: 2px;
}

.ann-list {
  display: grid;
  gap: 10px;
}

#announcementList:empty {
  display: none;
}

.ann-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  background: #fff;
  color: #718096;
}

.ann-row:hover {
  border-color: #b7d6f1;
}

.ann-row > .notice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  background: #eaf4fc;
  color: #0c4e92;
}

.ann-row > .notice-icon svg {
  width: 19px;
  height: 19px;
}

.ann-row[data-category="advisory"] > .notice-icon {
  background: #ffeeee;
  color: #b04444;
}

.ann-row[data-category="weather_alert"] > .notice-icon,
.ann-row[data-category="schedule"] > .notice-icon {
  background: #fff5dd;
  color: #9b6900;
}

.ann-row[data-category="maintenance"] > .notice-icon {
  background: #f2ecfa;
  color: #67439a;
}

.ann-row-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ann-category {
  justify-self: start;
  color: #0c4e92;
  background: #eaf4fc;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}

.ann-row[data-category="advisory"] .ann-category {
  color: #b04444;
  background: #ffeeee;
}

.ann-row[data-category="weather_alert"] .ann-category,
.ann-row[data-category="schedule"] .ann-category {
  color: #9b6900;
  background: #fff5dd;
}

.ann-row[data-category="maintenance"] .ann-category {
  color: #67439a;
  background: #f2ecfa;
}

.notice-dialog .ann-category {
  display: inline-block;
  opacity: 1;
}

:is(.ann-row[data-category="advisory"], .notice-dialog[data-notice-theme="advisory"]) .ann-category {
  color: #b04444;
  background: #ffeeee;
}

:is(.ann-row[data-category="weather_alert"], .ann-row[data-category="schedule"], .notice-dialog[data-notice-theme="weather_alert"], .notice-dialog[data-notice-theme="schedule"]) .ann-category {
  color: #9b6900;
  background: #fff5dd;
}

:is(.ann-row[data-category="maintenance"], .notice-dialog[data-notice-theme="maintenance"]) .ann-category {
  color: #67439a;
  background: #f2ecfa;
}

.ann-title {
  color: #172b4d;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ann-trip,
.ann-preview,
.ann-date {
  margin: 0;
  color: #4c6175;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ann-trip {
  font-size: 12px;
  font-weight: 550;
}

.ann-trip strong {
  color: #172d46;
  font-weight: 700;
}

.notice-dialog-content .ann-trip {
  margin-bottom: 12px;
}

.notice-dialog-header .ann-date {
  margin-top: 4px;
  font-weight: 400;
}

.notice-dialog .ann-sender {
  margin: 18px 0 0;
  color: #225a88;
  text-align: end;
  overflow-wrap: anywhere;
}

.notice-dialog .notice-footer {
  justify-content: flex-end;
}

.ann-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ann-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.ann-date {
  color: #718096;
  font-size: 11px;
}

body[data-page="announcements"] .ann-title {
  font-size: 14px;
}

.ann-details {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #eaf4fc;
  border: 0;
  border-radius: 50%;
  color: #1376ca;
  padding: 0;
  cursor: pointer;
}

.ann-details:hover {
  text-decoration: underline;
}

.ann-details svg {
  width: 18px;
  height: 18px;
}

.ann-status {
  padding: 18px 20px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #fff;
  color: #4c6175;
}

.ann-status p {
  margin: 0;
}

.ann-status button {
  margin-top: 10px;
}

body:is([data-page="announcements"], [data-page="home"]) .notice-dialog {
  --notice-bg: #fff;
  --notice-border: #dbe4ed;
  --notice-color: #334b62;
  --notice-strong: #172d46;
  border-radius: 12px;
}

body:is([data-page="announcements"], [data-page="home"]) .notice-dialog .notice-details-button:hover {
  background: #eff5fa;
}

#homeTravelUpdates.ann-list {
  display: grid;
  gap: 8px;
}

#homeTravelUpdates .ann-row {
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

#homeTravelUpdates .ann-row > .notice-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

#homeTravelUpdates .ann-row > .notice-icon svg {
  width: 20px;
  height: 20px;
}

#homeTravelUpdates .ann-title {
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 600px) {
  body[data-page="announcements"] .app-page-heading {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  body[data-page="announcements"] .app-toolbar,
  .ann-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ann-row {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    padding: 11px;
  }

  .ann-title {
    font-size: 13px;
  }

  #homeTravelUpdates .ann-title {
    font-size: 12px;
  }
}
