/*
 * HomeAIS light design, 2026-07.
 * Presentation-only override: remove this stylesheet link to roll back.
 * The original styles.css remains the base; older redesigns are in archive/designs.
 */

:root {
  color-scheme: light;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-light: #f7f9fc;
  --line: #dce3ec;
  --text: #10213a;
  --muted: #65748a;
  --accent: #2563eb;
  --accent-dark: #eaf1ff;
  --warning: #f2a11f;
  --danger: #e94d5c;
  --light-blue: #eef5ff;
  --light-cyan: #e8f9f7;
  --shadow-sm: 0 1px 2px #17325d0b, 0 5px 18px #17325d0d;
  --shadow-md: 0 12px 36px #17325d14;
}

html {
  background: var(--background);
}

body,
body[data-layout="mobile-preview"],
body[data-vfr-board] {
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family:
    Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}

button,
input,
select {
  letter-spacing: -0.015em;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.flight-row:focus-visible,
.vfr-card:focus-visible {
  outline: 3px solid #2563eb38;
  outline-offset: 2px;
}

/* Header */
.topbar,
body[data-layout="mobile-preview"] .topbar,
body[data-vfr-board] .topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 66px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid #e1e7ef;
  color: var(--text);
  background: #fffffff2;
  box-shadow: 0 1px 8px #17325d0a;
  backdrop-filter: blur(12px);
}

.brand {
  gap: 10px;
  color: #10213a;
  font-size: 17px;
  font-weight: 800;
}

.brand-mark,
body[data-layout="mobile-preview"] .brand-mark {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 9px;
  background: #102a4e;
  box-shadow: 0 5px 14px #102a4e22;
}

.source-label,
.eyebrow,
.board-caption {
  color: #2563eb;
  font-weight: 800;
}

.source-label {
  font-size: 10px;
  letter-spacing: 0.18em;
}

.module-nav {
  gap: 4px;
}

.module-nav a {
  position: relative;
  padding: 10px 11px;
  border-radius: 8px;
  color: #66758a;
  font-weight: 700;
}

.module-nav a:hover {
  color: #174fb8;
  background: #f0f5ff;
}

.module-nav a.active {
  color: #174fb8;
  background: #eaf1ff;
}

.module-nav a.active::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: #2563eb;
}

/* Home */
main,
footer {
  width: min(1240px, calc(100% - 48px));
}

.home-hero {
  position: relative;
  padding: 72px 0 46px;
}

.home-hero::after {
  content: "LIVE FLIGHT OPERATIONS";
  position: absolute;
  right: 0;
  bottom: 52px;
  padding: 8px 11px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: #2563eb;
  background: #eef5ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.home-hero .eyebrow {
  margin-bottom: 15px;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.home-hero h1 {
  max-width: 790px;
  color: #10213a;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.058em;
}

.home-hero .hero-copy {
  margin-top: 21px;
  color: #68768a;
  font-size: 15px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  grid-template-rows: auto 1fr auto;
  min-height: 264px;
  padding: 22px;
  border: 1px solid #dce4ee;
  border-radius: 16px;
  color: #10213a;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--card-accent);
}

.service-card:hover {
  border-color: var(--card-accent);
  background: #ffffff;
  box-shadow: 0 16px 36px #17325d18;
  transform: translateY(-4px);
}

.service-card--arrival {
  --card-accent: #00a985;
  --card-soft: #e5f8f3;
}

.service-card--departure {
  --card-accent: #2774eb;
  --card-soft: #eaf2ff;
}

.service-card--vfr {
  --card-accent: #f08c25;
  --card-soft: #fff2e4;
}

.service-card--calendar {
  --card-accent: #8b5bd6;
  --card-soft: #f2ebfc;
}

.service-number {
  color: #8390a2;
  font-size: 11px;
  font-weight: 800;
}

.service-icon {
  top: 20px;
  right: 20px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: var(--card-accent);
  background: var(--card-soft);
  font-size: 30px;
}

.service-copy {
  align-self: end;
}

.service-kicker {
  margin-bottom: 8px;
  color: var(--card-accent);
  font-size: 9px;
  font-weight: 850;
}

.service-copy strong {
  margin-bottom: 10px;
  color: #10213a;
  font-size: clamp(23px, 2.3vw, 29px);
  font-weight: 820;
  line-height: 1.22;
}

.service-copy > span:last-child {
  color: #69778a;
  font-size: 13px;
  line-height: 1.55;
}

.service-action {
  margin-top: 18px;
  color: var(--card-accent);
  font-weight: 800;
}

/* Page mastheads */
.hero {
  padding: 46px 0 25px;
}

body[data-board] .hero,
body[data-layout="mobile-preview"] .hero {
  align-items: center;
  padding: 32px 0 20px;
}

body[data-board] .hero h1,
body[data-layout="mobile-preview"] .hero h1 {
  color: #10213a;
  font-size: 31px;
  font-weight: 820;
}

body[data-layout="mobile-preview"] .eyebrow {
  margin-bottom: 6px;
  color: #2563eb;
}

.hero-copy {
  color: #6c7a8d;
}

.hero-status {
  border: 1px solid #bde9dc;
  border-radius: 9px;
  color: #08785f;
  background: #e9f9f4;
  box-shadow: none;
  font-weight: 750;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #0ba67a;
  box-shadow: 0 0 0 4px #0ba67a18;
}

.phase-badge {
  border-color: #cfe0ff;
  border-radius: 9px;
  color: #2456ad;
  background: #eef5ff;
}

/* Shared board layout */
body[data-layout="mobile-preview"] main,
body[data-layout="mobile-preview"] footer,
.vfr-main {
  width: min(1040px, calc(100% - 40px));
}

body[data-layout="mobile-preview"] .topbar,
body[data-vfr-board] .topbar {
  padding: 0 max(20px, calc((100vw - 1040px) / 2));
}

.control-panel,
body[data-layout="mobile-preview"] .control-panel {
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.7fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

body[data-board] .control-panel {
  margin-top: 22px;
}

.field {
  gap: 7px;
}

.field label,
.field-label,
body[data-layout="mobile-preview"] .field label,
body[data-layout="mobile-preview"] .field-label {
  color: #68778c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

select,
input[type="date"],
.search-box,
.date-navigator,
.vfr-search {
  border: 1px solid #d4dde8;
  border-radius: 9px;
  color: #10213a;
  background: #f7f9fc;
}

select:hover,
.date-navigator:hover,
.search-box:hover,
.vfr-search:hover {
  border-color: #9eb7dc;
}

select:focus,
.search-box:focus-within,
.vfr-search:focus-within {
  border-color: #6f9deb;
  background: #ffffff;
}

select {
  color: #172b49;
}

option {
  color: #172b49;
  background: #ffffff;
}

body[data-layout="mobile-preview"] .preview-date-row {
  grid-template-columns: minmax(0, 1fr) 62px minmax(112px, 0.38fr);
}

.date-navigator {
  grid-template-columns: 44px minmax(130px, 1fr) 44px;
  overflow: hidden;
}

.date-display {
  border-color: #d4dde8;
  color: #10213a;
  font-weight: 800;
}

.date-display::after {
  filter: none;
  opacity: 0.75;
}

.date-arrow {
  color: #2563eb;
}

.date-arrow:hover,
.date-navigator:hover .date-display {
  color: #174fb8;
  background: #edf4ff;
}

.date-arrow:disabled {
  color: #a8b3c1;
}

.today-button {
  border: 1px solid #cddcf2;
  border-radius: 9px;
  color: #2563eb;
  background: #eef5ff;
  font-weight: 800;
}

.today-button:hover {
  border-color: #9bbcec;
  background: #e2edff;
}

.today-button:disabled,
.today-button.is-current-date:disabled {
  border-color: #e1e6ed;
  color: #a0aab7;
  background: #f2f4f7;
  opacity: 1;
}

.primary-button {
  border: 1px solid #2563eb;
  border-radius: 9px;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 5px 13px #2563eb24;
  font-weight: 800;
}

.primary-button:hover {
  background: #174fb8;
  filter: none;
}

.primary-button:disabled {
  border-color: #96b3e4;
  color: #ffffff;
  background: #96b3e4;
  box-shadow: none;
  cursor: wait;
}

/* Calendar popover */
.calendar-popover {
  border: 1px solid #d7e0eb;
  border-radius: 13px;
  color: #10213a;
  background: #ffffff;
  box-shadow: 0 20px 55px #17325d26;
}

.calendar-header strong,
.calendar-header button,
.calendar-day {
  color: #10213a;
}

.calendar-header button {
  border-color: #d9e2ed;
  border-radius: 8px;
  color: #2563eb;
}

.calendar-header button:hover,
.calendar-day:hover {
  background: #edf4ff;
}

.calendar-weekday {
  color: #8492a5;
}

.calendar-day {
  border-radius: 7px;
}

.calendar-day.outside-month {
  color: #b5beca;
}

.calendar-day.today {
  color: #2563eb;
  box-shadow: inset 0 0 0 1px #88ade8;
}

.calendar-day.selected {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 6px 14px #2563eb2b;
}

/* IFR board */
.board,
body[data-layout="mobile-preview"] .board {
  margin-top: 20px;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  color: #10213a;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

body[data-layout="mobile-preview"] .board-header {
  padding: 14px 18px;
  border-color: #e0e6ee;
  background: #ffffff;
}

body[data-layout="mobile-preview"] .board-caption {
  color: #748196;
  font-weight: 650;
}

body[data-layout="mobile-preview"] h2 {
  color: #10213a;
  font-weight: 820;
}

.count-box strong,
body[data-layout="mobile-preview"] .count-box strong {
  color: #2563eb;
  font-weight: 820;
}

.count-box span {
  color: #748196;
}

.status-legend,
body[data-layout="mobile-preview"] .status-legend {
  padding: 10px 18px;
  border-color: #e2e7ee;
  color: #69778a;
  background: #f8fafc;
  font-weight: 700;
}

.legend-dot {
  border-radius: 2px;
  box-shadow: none;
}

.legend-dot--active,
.indicator-bar--active {
  background: #08a77d;
}

.legend-dot--completed,
.indicator-bar--completed {
  background: #8996a7;
}

.legend-dot--delayed,
.indicator-bar--delayed {
  background: #f0a21f;
}

.legend-dot--cancelled,
.indicator-bar--cancelled {
  background: #e94d5c;
}

.filter-row,
body[data-layout="mobile-preview"] .filter-row {
  align-items: center;
  flex-direction: row;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #e2e7ee;
  background: #ffffff;
}

.search-box {
  flex: 1 1 360px;
  max-width: none;
  background: #f7f9fc;
}

.search-box span,
.vfr-search span {
  color: #3974d8;
}

.search-box input,
.vfr-search input {
  color: #10213a;
}

.search-box input::placeholder,
.vfr-search input::placeholder {
  color: #8d99a9;
}

.filter-options {
  flex: 0 0 auto;
  gap: 7px;
}

.checkbox-filter,
body[data-layout="mobile-preview"] .checkbox-filter {
  padding: 8px 9px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  color: #65748a;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.checkbox-filter:hover {
  border-color: #aac1e5;
  color: #2459b6;
  background: #f2f6ff;
}

.checkbox-filter input {
  accent-color: #2563eb;
}

.message {
  color: #778499;
  background: #ffffff;
}

.message.error {
  color: #c93645;
}

.data-notice {
  border-color: #f0dfb6;
  color: #906313;
  background: #fff8e8;
}

.table-wrap {
  background: #ffffff;
}

table {
  color: #172b49;
}

th,
td {
  border-color: #e4e9ef;
}

th {
  color: #647287;
  background: #f3f6fa;
  font-weight: 750;
}

tbody tr {
  background: #ffffff;
}

tbody tr:nth-child(even) {
  background: #fbfcfe;
}

tbody tr:hover {
  background: #eef5ff;
}

.sort-button {
  font-weight: 750;
}

.sort-button:hover,
.sort-button.selected,
.sort-button.selected .sort-mark {
  color: #2563eb;
}

.sort-mark,
.row-action {
  color: #94a0b0;
}

tbody tr:hover .row-action {
  color: #2563eb;
}

.indicator-bar,
body[data-layout="mobile-preview"] .indicator-bar {
  border-radius: 2px;
}

.time-cell {
  color: #1167c8;
  font-weight: 850;
}

.flight-id,
.registration {
  color: #172b49;
}

.registration {
  color: #976615;
}

.muted-cell {
  color: #98a3b2;
}

tbody tr.special-livery-row {
  background: #f4edff;
}

tbody tr.special-livery-row:hover {
  background: #eadcff;
}

.special-livery-row .registration {
  color: #7647ba;
}

.special-livery-badge {
  border-color: #cab2ed;
  color: #7040b5;
  background: #f1e9fc;
}

/* VFR */
.vfr-main {
  min-height: calc(100vh - 125px);
}

.vfr-control-panel {
  margin-top: 22px;
}

body[data-vfr-board] footer {
  width: min(1040px, calc(100% - 40px));
}

.vfr-board {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  color: #10213a;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.vfr-board-tools {
  gap: 12px;
  padding: 12px 15px;
  border-color: #e0e6ee;
  background: #ffffff;
}

.vfr-board-tools .vfr-search {
  flex-basis: 280px;
  min-height: 42px;
  background: #f7f9fc;
}

.vfr-status-legend {
  flex: 0 0 auto;
  color: #69778a;
  font-weight: 700;
}

.vfr-legend-bar {
  border-radius: 2px;
}

.vfr-legend-bar--scheduled,
.vfr-card--scheduled::before {
  background: #08a77d;
}

.vfr-legend-bar--active,
.vfr-card--active::before {
  background: #f0a21f;
}

.vfr-legend-bar--completed,
.vfr-card--completed::before {
  background: #8996a7;
}

.vfr-filter-button {
  min-height: 34px;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  color: #617087;
  background: #ffffff;
  font-weight: 750;
}

.vfr-filter-button:hover {
  border-color: #9eb9e5;
  color: #2459b6;
  background: #eef5ff;
}

.vfr-filter-button.active {
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
}

.vfr-column-head {
  padding: 10px 17px;
  border-bottom: 1px solid #dde4ed;
  color: #68768a;
  background: #f2f5f9;
  font-weight: 800;
}

.vfr-sort-button:hover,
.vfr-sort-button.selected,
.vfr-sort-button.selected .vfr-sort-mark {
  color: #2563eb;
}

.vfr-sort-mark {
  color: #9aa6b5;
}

.vfr-message {
  color: #728095;
  background: #ffffff;
}

.vfr-message.error {
  color: #c93645;
}

.vfr-message.notice {
  border-color: #f1d6a4;
  color: #8b5a08;
  background: #fff8e8;
}

.vfr-rows {
  gap: 0;
  padding: 0;
  background: #ffffff;
}

.vfr-card,
.vfr-card:nth-child(even) {
  padding: 11px 16px 10px 20px;
  border: 0;
  border-bottom: 1px solid #e4e9ef;
  border-radius: 0;
  color: #172b49;
  background: #ffffff;
  box-shadow: none;
}

.vfr-card:nth-child(even) {
  background: #fbfcfe;
}

.vfr-card::before {
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 4px;
  border-radius: 3px;
}

.vfr-card:hover {
  border-color: #e4e9ef;
  background: #eef5ff;
}

.vfr-card-main span:first-child {
  color: #10213a;
  font-weight: 850;
}

.vfr-card-main span {
  color: #34465f;
}

.vfr-actual-time {
  color: #c77b08;
}

.vfr-card--completed .vfr-card-main span:last-child {
  color: #6f7e91;
}

.vfr-card-sub {
  color: #7a8798;
}

/* Dialogs */
.flight-detail,
.vfr-detail {
  border: 1px solid #d3dce8;
  border-radius: 16px;
  color: #10213a;
  background: #ffffff;
  box-shadow: 0 28px 90px #17325d38;
}

.flight-detail::backdrop,
.vfr-detail::backdrop {
  background: #1b2e4c5c;
  backdrop-filter: blur(4px);
}

.detail-header,
.vfr-detail-header {
  border-color: #e0e6ee;
  background: #ffffff;
}

.detail-header h2,
.vfr-detail-title h2 {
  color: #10213a;
}

.detail-summary {
  color: #69778a;
}

.detail-close,
.vfr-detail-header button {
  border-color: #d6dee8;
  color: #68768a;
  background: #f7f9fc;
}

.detail-close:hover,
.vfr-detail-header button:hover {
  color: #174fb8;
  background: #edf4ff;
}

.detail-facts,
.detail-facts > div {
  border-color: #e1e7ef;
}

.detail-facts dt,
.detail-livery span {
  color: #78869a;
}

.detail-facts dd {
  color: #1862bd;
}

.detail-livery strong {
  color: #7746b8;
}

.detail-aircraft-photo-link,
.detail-aircraft-photo-empty {
  border-color: #d8e0ea;
  background: linear-gradient(145deg, #f5f7fa, #e8edf3);
}

.detail-aircraft-photo-link {
  transition: border-color 150ms ease, transform 150ms ease;
}

.detail-aircraft-photo-link:hover {
  border-color: #8eb4eb;
  transform: translateY(-1px);
}

.detail-aircraft-photo-empty,
.detail-photo-credit {
  color: #7f8c9e;
}

.photo-link {
  border-color: #b8cff2;
  border-radius: 8px;
  color: #1f5dbb;
  background: #eef5ff;
}

.vfr-detail-header strong {
  color: #10213a;
}

.vfr-detail-status {
  border-color: #bde9dc;
  color: #08785f;
  background: #e9f9f4;
}

.vfr-detail-body {
  background: #f7f9fc;
}

.vfr-detail-title span {
  color: #a65d08;
  background: #fff0dc;
}

.vfr-detail-card,
.vfr-detail-photo-card {
  border-color: #d9e1eb;
  color: #10213a;
  background: #ffffff;
}

.vfr-detail-card h3 {
  color: #10213a;
}

.vfr-detail-photo {
  background: #edf2f7;
}

.vfr-detail-photo img {
  background: #ffffff;
}

.vfr-detail-photo-empty,
.vfr-detail-photo-meta,
.vfr-detail-route,
.vfr-detail-note {
  color: #6d7b8e;
}

.vfr-detail-photo-meta a {
  color: #2563eb;
}

.vfr-route-grid > div,
.vfr-detail-grid > div,
.vfr-detail-times > div {
  border-color: #dce3ec;
  color: #10213a;
  background: #f7f9fc;
}

.vfr-detail dt {
  color: #748196;
}

.vfr-detail-fpl {
  border-color: #d5dee9;
  color: #20344f;
  background: #f3f6fa;
}

/* GEN preview */
.workspace-shell {
  border-color: #dbe3ed;
  border-radius: 16px;
  color: #10213a;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.workspace-icon {
  color: #2563eb;
}

.workspace-shell > p:last-of-type {
  color: #6b798c;
}

.calendar-week {
  border-color: #dbe3ed;
  background: #dbe3ed;
}

.calendar-week span {
  color: #68768a;
  background: #f5f8fc;
}

footer {
  color: #8490a1;
}

footer a:hover {
  color: #2563eb;
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 230px;
  }

  .filter-row,
  body[data-layout="mobile-preview"] .filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    flex-basis: auto;
  }

  .filter-options {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar,
  body[data-layout="mobile-preview"] .topbar,
  body[data-vfr-board] .topbar {
    position: relative;
    height: 58px;
    padding: 0 14px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark,
  body[data-layout="mobile-preview"] .brand-mark {
    width: 32px;
    height: 32px;
  }

  main,
  footer,
  body[data-layout="mobile-preview"] main,
  body[data-layout="mobile-preview"] footer,
  .vfr-main,
  body[data-vfr-board] footer {
    width: 100%;
  }

  .home-hero {
    width: calc(100% - 28px);
    margin-inline: auto;
    padding: 42px 0 31px;
  }

  .home-hero::after {
    display: none;
  }

  .home-hero h1 {
    font-size: clamp(35px, 10.8vw, 49px);
  }

  .home-hero .hero-copy {
    font-size: 13px;
  }

  .service-grid {
    width: calc(100% - 28px);
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .service-card {
    min-height: 180px;
    padding: 16px;
    border-radius: 12px;
  }

  .service-card::before {
    right: 16px;
    left: 16px;
    height: 3px;
  }

  .service-icon {
    top: 15px;
    right: 15px;
    width: 37px;
    height: 37px;
    border-radius: 10px;
    font-size: 23px;
  }

  .service-copy strong {
    font-size: 19px;
  }

  .service-action {
    margin-top: 13px;
  }

  body[data-layout="mobile-preview"] .hero {
    padding: 24px 14px 17px;
  }

  body[data-board] .hero h1,
  body[data-layout="mobile-preview"] .hero h1 {
    font-size: 25px;
  }

  .control-panel,
  body[data-layout="mobile-preview"] .control-panel {
    grid-template-columns: 1fr;
    padding: 15px 14px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-board] .control-panel {
    margin-top: 0;
  }

  body[data-layout="mobile-preview"] .preview-date-row {
    grid-template-columns: minmax(0, 1fr) 56px minmax(92px, 0.42fr);
  }

  body[data-layout="mobile-preview"] .date-navigator {
    grid-template-columns: 39px minmax(0, 1fr) 39px;
  }

  .date-display {
    padding: 0 3px;
    font-size: 13px;
  }

  .date-display::after {
    font-size: 11px;
  }

  body[data-layout="mobile-preview"] .primary-button {
    padding-inline: 9px;
  }

  .board,
  body[data-layout="mobile-preview"] .board,
  .vfr-board {
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-layout="mobile-preview"] .board-header,
  body[data-layout="mobile-preview"] .status-legend,
  body[data-layout="mobile-preview"] .filter-row {
    padding-right: 14px;
    padding-left: 14px;
  }

  .filter-row,
  body[data-layout="mobile-preview"] .filter-row {
    gap: 10px;
  }

  .filter-options {
    gap: 7px;
  }

  .checkbox-filter,
  body[data-layout="mobile-preview"] .checkbox-filter {
    padding: 8px 9px;
  }

  .vfr-control-panel {
    margin-top: 0;
  }

  .vfr-board-tools {
    padding: 10px 14px;
  }

  .vfr-board-tools .vfr-search {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .vfr-filter-button {
    background: #f7f9fc;
  }

  .vfr-column-head {
    padding-right: 14px;
    padding-left: 14px;
  }

  .vfr-card,
  .vfr-card:nth-child(even) {
    padding-right: 12px;
    padding-left: 18px;
  }

  .vfr-card::before {
    left: 6px;
  }

  .flight-detail,
  .vfr-detail {
    border-radius: 13px;
  }

  .vfr-detail-body {
    background: #f7f9fc;
  }

  footer {
    width: calc(100% - 28px);
    margin-inline: auto;
  }
}

/* General aviation schedule */
body[data-gen-board] {
  background:
    radial-gradient(circle at 12% 0%, #e9f2ff 0, transparent 30rem),
    var(--background);
}

.gen-main {
  width: min(920px, calc(100% - 36px));
  min-height: calc(100vh - 180px);
  margin: 26px auto 60px;
}

.gen-month-panel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 112px;
  border: 1px solid #dbe3ed;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.gen-month-title {
  min-width: 0;
  text-align: center;
}

.gen-month-title p,
.gen-section-title-row p {
  margin: 0 0 5px;
  color: #728096;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gen-month-title h1 {
  margin: 0;
  color: #10213a;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.04em;
}

.gen-month-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  margin: auto;
  place-items: center;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  color: #35506f;
  background: #f7f9fc;
  font-size: 19px;
  font-weight: 850;
  cursor: pointer;
}

.gen-month-arrow:hover {
  border-color: #9bb9ef;
  color: #1756c9;
  background: #eef5ff;
}

.gen-month-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body.gen-is-loading .gen-month-arrow:disabled {
  cursor: progress;
}

.gen-new-panel,
.gen-schedule-section {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.gen-section-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  color: #10213a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.gen-section-toggle:hover {
  background: #f7faff;
}

.gen-section-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #1756c9;
  background: #eaf1ff;
  font-size: 20px;
  font-weight: 700;
}

.gen-section-heading {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.gen-section-heading strong {
  font-size: 16px;
  letter-spacing: -0.025em;
}

.gen-section-heading small {
  overflow: hidden;
  color: #718096;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-toggle-mark {
  color: #748298;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

[aria-expanded="true"] > .gen-toggle-mark {
  transform: rotate(180deg);
}

.gen-new-content {
  padding: 0 16px 16px;
  border-top: 1px solid #e5eaf1;
}

.gen-new-content[hidden],
.gen-day-content[hidden],
.gen-more-button[hidden],
.gen-days[hidden] {
  display: none;
}

.gen-new-list {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.gen-new-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe6ef;
  border-left: 4px solid #3b82f6;
  border-radius: 11px;
  background: #f8faff;
}

.gen-new-card-heading {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.gen-new-card-heading strong {
  color: #10213a;
  font-size: 16px;
}

.gen-new-card-heading span {
  color: #53657c;
  font-size: 12px;
  font-weight: 750;
}

.gen-new-card-heading time {
  justify-self: end;
  color: #8995a6;
  font-size: 11px;
}

.gen-new-card p {
  margin: 5px 0 0;
  color: #68788e;
  font-size: 12px;
}

.gen-new-card .gen-new-card-detail {
  color: #315b92;
  font-weight: 750;
}

.gen-more-button {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid #cbd8e8;
  border-radius: 10px;
  color: #315479;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.gen-more-button:hover {
  color: #174fae;
  background: #f2f7ff;
}

.gen-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid #e4e9f0;
}

.gen-section-title-row h2 {
  margin: 0;
  color: #10213a;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.gen-month-count {
  display: inline-flex;
  min-width: 58px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #1756c9;
  background: #edf4ff;
  font-size: 12px;
  font-weight: 900;
}

.gen-status {
  padding: 28px 18px;
  color: #65748a;
  text-align: center;
  line-height: 1.65;
}

.gen-status.compact,
.gen-status.warning {
  padding: 9px 18px;
  border-bottom: 1px solid #e6ebf2;
  background: #f8fafc;
  font-size: 11px;
  text-align: left;
}

.gen-status.warning {
  color: #906313;
  background: #fff8e8;
}

.gen-status.error {
  color: #b42332;
  background: #fff5f6;
}

.gen-days {
  display: grid;
  gap: 7px;
  padding: 10px 12px 16px;
}

.gen-past-days {
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #f7f9fc;
}

.gen-past-days.expanded {
  border-color: #c8d4e2;
}

.gen-past-days-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 0;
  color: #53657c;
  background: #f7f9fc;
  text-align: left;
  cursor: pointer;
}

.gen-past-days-toggle:hover,
.gen-past-days.expanded > .gen-past-days-toggle {
  color: #315479;
  background: #f1f5fa;
}

.gen-past-days-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d7e0eb;
  border-radius: 10px;
  color: #728096;
  background: #ffffff;
  font-size: 17px;
  font-weight: 850;
}

.gen-past-days-summary {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.gen-past-days-summary strong {
  color: #344d6b;
  font-size: 14px;
}

.gen-past-days-summary small {
  overflow: hidden;
  color: #8490a0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-past-days-content {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-top: 1px solid #dde4ed;
  background: #eef2f6;
}

.gen-past-days-content[hidden] {
  display: none;
}

.gen-day {
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #ffffff;
}

.gen-day.expanded {
  border-color: #91b6ef;
  box-shadow: 0 0 0 2px #dbeafe;
}

.gen-day--empty,
.gen-day--missing,
.gen-day--blank {
  border-color: #e5e9ef;
  background: #fafbfd;
}

.gen-day--blank {
  border-color: #edf0f4;
  background: #fcfdfe;
}

.gen-day-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: 54px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
  border: 0;
  color: #10213a;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.gen-day-toggle:hover,
.gen-day.expanded .gen-day-toggle {
  background: #f4f8fe;
}

.gen-day-toggle:disabled {
  color: #7e8998;
  background: #fafbfd;
  cursor: default;
}

.gen-day-toggle:disabled:hover {
  background: #fafbfd;
}

.gen-day--empty .gen-date-tile,
.gen-day--missing .gen-date-tile,
.gen-day--blank .gen-date-tile {
  border-color: #e5e9ef;
  background: #f3f5f8;
}

.gen-day--empty .gen-date-tile small,
.gen-day--empty .gen-date-tile strong,
.gen-day--empty .gen-day-summary strong,
.gen-day--missing .gen-date-tile small,
.gen-day--missing .gen-date-tile strong,
.gen-day--missing .gen-day-summary strong,
.gen-day--blank .gen-date-tile small,
.gen-day--blank .gen-date-tile strong {
  color: #8a95a3;
}

.gen-date-tile {
  display: grid;
  min-height: 54px;
  place-items: center;
  align-content: center;
  border: 1px solid #d9e2ed;
  border-radius: 10px;
  background: #f7f9fc;
}

.gen-date-tile small {
  color: #6f7e91;
  font-size: 11px;
}

.gen-date-tile strong {
  color: #17314f;
  font-size: 20px;
  line-height: 1.1;
}

.gen-day-summary {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.gen-day-summary strong {
  font-size: 15px;
}

.gen-day-summary small {
  overflow: hidden;
  color: #738197;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-day-callsigns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 5px;
  margin-top: 2px;
}

.gen-day-callsigns > small {
  color: #9aa4b1;
  font-size: 10px;
}

.gen-day--empty .gen-day-callsigns,
.gen-day--missing .gen-day-callsigns,
.gen-day--blank .gen-day-callsigns {
  display: block;
}

.gen-callsign-chip {
  position: relative;
  min-width: 0;
  padding: 5px 7px 5px 13px;
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 7px;
  color: #344d6b;
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-callsign-chip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: #73a5ee;
  transform: translateY(-50%);
}

.gen-callsign-chip--spc::before {
  background: #f59e0b;
}

.gen-callsign-chip--mlt::before {
  background: #8b5cf6;
}

.gen-day-toggle {
  align-items: start;
}

.gen-toggle-mark {
  align-self: center;
}

.gen-day-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #dfe6ef;
  background: #f3f6fa;
}

.gen-flight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dce4ee;
  border-left: 4px solid #73a5ee;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 4px 14px #17325d0a;
}

.gen-flight-card--spc {
  border-left-color: #f59e0b;
}

.gen-flight-card--mlt {
  border-left-color: #8b5cf6;
}

.gen-flight-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.gen-flight-top > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.gen-flight-top strong {
  overflow: hidden;
  color: #10213a;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-flight-top span {
  color: #627188;
  font-size: 12px;
  font-weight: 750;
}

.gen-flight-top time {
  flex: 0 0 auto;
  color: #173f75;
  font-size: 18px;
  font-weight: 900;
}

.gen-flight-route {
  margin: 9px 0 8px;
  color: #344d6b;
  font-size: 14px;
  font-weight: 500;
}

.gen-route-airport {
  font-weight: 500;
}

.gen-route-airport--domestic {
  padding: 1px 4px;
  border-radius: 4px;
  color: inherit;
  background: #e8f1ff;
  font-weight: inherit;
}

.gen-route-arrow {
  margin: 0 5px;
  color: #9aa6b5;
  font-weight: 500;
}

.gen-flight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.gen-flight-meta span {
  padding: 4px 7px;
  border-radius: 7px;
  color: #53657c;
  background: #eef2f7;
  font-size: 10px;
  font-weight: 800;
}

.gen-flight-times {
  margin: 8px 0 0;
  color: #6b798c;
  font-size: 11px;
}

.gen-flight-copy {
  min-width: 0;
  align-self: center;
}

.gen-flight-photo {
  display: grid;
  min-width: 0;
  margin: 0;
  align-self: center;
  gap: 4px;
}

.gen-flight-photo-link,
.gen-flight-photo-empty {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  place-items: center;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  background: linear-gradient(145deg, #f5f7fa, #e8edf3);
}

.gen-flight-photo-link {
  transition: border-color 150ms ease, transform 150ms ease;
}

.gen-flight-photo-link:hover {
  border-color: #8eb4eb;
  transform: translateY(-1px);
}

.gen-flight-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gen-flight-photo-empty {
  color: #91a0b1;
  font-size: 10px;
  font-weight: 800;
}

.gen-flight-photo-credit {
  overflow: hidden;
  color: #7a8798;
  font-size: 8px;
  line-height: 1.3;
  text-align: right;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gen-flight-photo-credit:hover {
  color: #1756c9;
  text-decoration: underline;
}

.gen-empty {
  margin: 0;
  padding: 28px 16px;
  color: #7b8798;
  text-align: center;
  font-size: 12px;
}

.gen-empty--month {
  padding: 48px 16px;
}

body.gen-is-loading .gen-schedule-section {
  cursor: wait;
}

body[data-gen-board] footer {
  width: min(920px, calc(100% - 36px));
}

@media (max-width: 700px) {
  .gen-main {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .gen-month-panel {
    min-height: 88px;
    border-radius: 14px;
  }

  .gen-month-title p {
    font-size: 10px;
  }

  .gen-month-title h1 {
    font-size: 23px;
  }

  .gen-new-panel,
  .gen-schedule-section {
    margin-top: 10px;
    border-radius: 13px;
  }

  .gen-section-toggle {
    padding: 14px;
  }

  .gen-day-content {
    grid-template-columns: 1fr;
  }

  .gen-flight-card {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
    padding: 12px;
  }

  .gen-new-card {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
  }

  .gen-day-callsigns {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 4px;
  }

  .gen-callsign-chip {
    padding-right: 5px;
    padding-left: 12px;
    font-size: 9px;
  }

  .gen-new-card-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gen-new-card-heading time {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body[data-gen-board] footer {
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
