/* Important information shares the compact top strip with quick actions.
   Alerts scroll horizontally so iPad never shrinks them into unreadable text. */
.quick-card {
  min-width: 0;
  overflow: hidden;
}

.quick-action-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.daily-summary-rail {
  display: grid;
  flex: 1 1 320px;
  min-width: 280px;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  align-items: stretch;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid #d7dfda;
}

.daily-summary-rail>span {
  display: flex;
  min-height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdbd5;
  border-radius: 8px;
  background: #f6faf8;
  color: #294f46;
}

.daily-summary-rail small { font-size: 11px; font-weight: 800; white-space: nowrap; }
.daily-summary-rail b { margin-top: 1px; font-size: 21px; line-height: 1; }

@media(max-width:760px){
  .daily-summary-rail{width:100%;min-width:0;flex-basis:100%;padding:7px 0 0;border-top:1px solid #d7dfda;border-left:0}
}

.important-alert-rail {
  display: flex;
  flex: 1 1 260px;
  min-width: 104px;
  max-width: 100%;
  height: 54px;
  align-items: center;
  gap: 7px;
  padding-left: 8px;
  border-left: 1px solid #d7dfda;
  overflow: hidden;
}

.important-alert-title {
  display: grid;
  flex: 0 0 auto;
  grid-template-rows: repeat(2, auto);
  width: 42px;
  align-items: center;
  justify-items: center;
  gap: 0;
  min-height: 46px;
  border: 2px solid #8f2d27;
  border-radius: 8px;
  background: #9f352d;
  padding: 4px 3px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.05;
}

.important-alert-title b {
  display: inline-flex;
  min-width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #932f28;
  font-size: 15px;
  font-weight: 950;
}

.important-alert-title b[hidden] { display: none; }

.important-alert-title:hover,.important-alert-title:focus-visible{background:#862922;border-color:#741f1a}
.important-alert-title:focus-visible{outline:3px solid #e7a59f;outline-offset:2px}
.important-alert-rail.has-alerts .important-alert-title { background:#862922;color:#fff; }
.important-alert-rail.has-alerts .important-alert-title b { background:#fff;color:#862922; }

.immediate-alert-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.immediate-alert-list:empty { display: none; }

.immediate-alert-list .alert {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 46px;
  max-width: 220px;
  margin: 0;
  border: 2px solid #d3a35f;
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff7e9;
  color: #67420e;
  text-decoration: none;
}

.immediate-alert-list .alert b {
  margin: 0;
  border-radius: 999px;
  background: #f4dfbb;
  color: #6f4309;
  padding: 3px 7px;
  font-size: 13px;
  white-space: nowrap;
}

.alert-summary {
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-open {
  color: inherit;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.immediate-alert-list .alert.urgent,
.immediate-alert-list .alert.critical {
  border-color: #b33e34;
  background: #fff1ef;
  color: #7e241f;
}

.immediate-alert-list .alert.urgent b,
.immediate-alert-list .alert.critical b { background: #b33e34; color: #fff; }
.immediate-alert-list .alert.critical { border-width: 3px; }
.important-alert-rail.has-new { animation: immediate-alert-arrival .7s ease-out; }
.quick-action-notice:empty { display: none; }

.live-update-notice {
  position: fixed;
  z-index: 80;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(560px, calc(100vw - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid #b16924;
  border-radius: 12px;
  background: #fff8e8;
  padding: 12px 14px;
  color: #553511;
  box-shadow: 0 12px 36px #2b21172b;
  transform: translateX(-50%);
}

.live-update-notice[hidden] { display: none; }
.live-update-notice strong { font-size: 16px; line-height: 1.3; }
.live-update-notice button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #35685f;
  padding: 8px 13px;
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

@keyframes immediate-alert-arrival {
  0% { opacity: .35; box-shadow: 0 0 0 rgba(173, 64, 54, 0); }
  55% { opacity: 1; box-shadow: 0 0 0 7px rgba(173, 64, 54, .13); }
  100% { box-shadow: none; }
}

@media (max-width: 720px) {
  .important-alert-title { width: 40px; font-size: 16px; }
  .immediate-alert-list .alert { grid-template-columns: auto minmax(140px, 220px); }
  .alert-open { display: none; }
}
