:root {
  color-scheme: light;
  --red: #f20a28;
  --ink: #201c1b;
  --muted: #716d6b;
  --line: #e5e2e1;
  --background: #f6f5f4;
  --white: #ffffff;
  --amber: #b66b00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
}

button { font: inherit; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .shell { width: min(960px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.company-logo { display: block; width: min(390px, 48vw); height: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }

.notify-button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 4px; color: var(--white); background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.notify-button:hover { background: var(--red); }
.notify-button:disabled { cursor: not-allowed; opacity: .5; }
.notify-button.enabled { background: var(--red); }
.bell { color: var(--red); font-size: 9px; }
.notify-button.enabled .bell, .notify-button:hover .bell { color: var(--white); }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 46px 0 24px; }
.page-heading p { margin: 0 0 8px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.feed { display: grid; gap: 10px; padding-bottom: 48px; }
.message-card { position: relative; overflow: hidden; padding: 22px 24px 0; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; background: var(--white); cursor: pointer; animation: enter .25s ease both; transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.message-card.updated { border-left-color: var(--amber); }
.message-card.cancelled { border-left-color: var(--ink); }
.message-card.is-new { border-color: var(--red); background: #ffe1e6; box-shadow: 0 0 0 2px rgba(242, 10, 40, .22); }
.message-card.is-new.is-flashing { animation: new-message-flash 1.4s ease-out infinite; }
@keyframes enter { from { opacity: 0; transform: translateY(-5px); } }
@keyframes new-message-flash {
  0%, 50%, 100% { background: #ffe1e6; box-shadow: 0 0 0 2px rgba(242, 10, 40, .22); }
  18% { background: #ff9eac; box-shadow: 0 0 0 5px rgba(242, 10, 40, .38); }
}

.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.airport { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.program-type { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.status-pill { padding: 5px 8px; border-radius: 3px; color: var(--red); background: #fff0f2; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.updated .status-pill { color: var(--amber); background: #fff5e5; }
.cancelled .status-pill { color: var(--ink); background: #efedec; }

.details { display: flex; flex-wrap: wrap; gap: 22px 34px; margin-top: 20px; }
.detail { min-width: 110px; }
.detail-label { display: block; margin-bottom: 5px; color: #999390; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.detail-value { display: block; font-family: Consolas, monospace; font-size: 12px; }
.flights-wrap { margin-top: 19px; }
.flights { display: flex; flex-wrap: wrap; gap: 6px; }
.flight { padding: 4px 7px; border-radius: 3px; color: #9d071c; background: #fff0f2; font-family: Consolas, monospace; font-size: 10px; }
.no-flights { color: var(--muted); font-size: 11px; }

.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.card-footer time { white-space: pre-line; color: var(--muted); font-family: Consolas, monospace; font-size: 9px; }
.expand-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.expand-button:hover { color: var(--red); }
.raw-message { margin: 0 -24px; padding: 18px 24px; border-top: 1px solid var(--line); color: #4d4947; background: #f7f6f5; white-space: pre-wrap; font: 11px/1.6 Consolas, monospace; }

.empty-state { padding: 60px 20px; text-align: center; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--white); font-size: 13px; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 17px; }
.loading-card { height: 170px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(100deg, #fff, #f0eeee, #fff); background-size: 200%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 680px) {
  .header-inner, .shell { width: min(100% - 26px, 960px); }
  .header-inner { min-height: 76px; }
  .company-logo { width: min(265px, 58vw); }
  .notify-button span:last-child { display: none; }
  .notify-button { padding: 10px 12px; }
  .page-heading { padding-top: 34px; }
  .message-card { padding: 19px 17px 0; }
  .details { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .raw-message { margin: 0 -17px; padding: 17px; }
}
