.antc-calendar {
  font-family: var(--an-type-family, Arial, sans-serif);
  color: #e9edf2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.4;
}
.antc-calendar *, .antc-calendar *::before, .antc-calendar *::after { box-sizing: border-box; }
.antc-calendar-heading h2 { margin: 0 0 24px; font-size: var(--an-type-section, clamp(28px, 4vw, 48px)); line-height: 1.15; color: inherit; }
.antc-calendar-surface { border: 1px solid #ffffff24; border-radius: 22px; background: #121418; padding: 18px; }
.antc-calendar table.antc-calendar-table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 5px; margin: 0; border: 0; background: transparent; }
.antc-calendar-table caption { caption-side: top; padding: 4px 5px 24px; text-align: left; font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: #f7f8fa; }
.antc-calendar-table th, .antc-calendar-table td { border: 0; background: transparent; padding: 0; text-align: left; vertical-align: top; min-width: 0; }
.antc-calendar-table th { font-size: 13px; padding: 0 9px 8px; color: #b5bdc8; font-weight: 500; }
.antc-calendar-table abbr { text-decoration: none; cursor: default; border: 0; }
.antc-day { position: relative; min-width: 0; height: 56px; padding: 0; border-radius: 10px; background: #20232a; color: var(--antc-day-ink, #e9edf2); }
.antc-day-ink-shield time { background: #141416; color: #ffffff; border-radius: 4px; padding: 2px; }
.antc-day-context { opacity: .45; }
.antc-day-rest { outline: 1px dashed #c4cbd4; outline-offset: -4px; }
.antc-day time { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 100%; font-size: 22px; font-weight: 600; line-height: 1; }
.antc-month-mark { max-width: 100%; font-size: 10px; font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.antc-day:has(.antc-month-mark) .antc-day-flight-icon, .antc-day:has(.antc-month-mark) .antc-flight-cell-label { display: none; }
.antc-calendar ul.antc-calendar-legend { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px 28px; margin: 20px 0 0; padding: 0; list-style: none; }
.antc-calendar-legend li { display: flex; flex-direction: row; align-items: center; flex: 0 1 auto; gap: 10px; min-width: 0; font-size: 14px; line-height: 1.35; margin: 0; padding: 0; }
.antc-legend-chip { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.antc-calendar-legend small { display: block; margin-top: 3px; font-size: 11px; color: #aab3c0; }
.antc-calendar-events { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ffffff24; }
.antc-calendar-events h3 { margin: 0 0 14px; font-size: 18px; color: inherit; }
.antc-calendar table.antc-flight-table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; background: transparent; }
.antc-calendar .antc-flight-table th, .antc-calendar .antc-flight-table td { padding: 12px 8px; border: 0; border-bottom: 1px solid #ffffff24; background: transparent; color: inherit; text-align: left; vertical-align: middle; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.antc-calendar .antc-flight-table thead th { font-weight: 600; color: #b5bdc8; font-size: 12px; }
.antc-calendar .antc-flight-table tbody th { font-weight: 600; }
.antc-calendar .antc-flight-table tr:last-child > * { border-bottom: 0; }
.antc-flight-column { display: flex; align-items: center; gap: 6px; }
.antc-flight-table time { display: block; }
.antc-event-plane { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
@media (max-width: 600px) {
  .antc-calendar-heading h2 { margin-bottom: 18px; }
  .antc-calendar-surface { border-radius: 16px; padding: 8px 3px; }
  .antc-calendar table.antc-calendar-table { border-spacing: 3px; }
  .antc-calendar-table caption { padding: 8px 6px 18px; font-size: 22px; }
  .antc-calendar-table th { font-size: 10px; padding: 0 2px 7px; }
  .antc-day { height: 50px; padding: 0; border-radius: 6px; }
  .antc-day time { font-size: 17px; gap: 1px; }
  .antc-month-mark { font-size: 8px; }
  .antc-calendar .antc-flight-table th, .antc-calendar .antc-flight-table td { padding: 10px 4px; font-size: 11px; }
  .antc-calendar .antc-flight-table thead th { font-size: 10px; }
  .antc-flight-column { gap: 4px; }
  .antc-flight-column .antc-event-plane { width: 16px; height: 16px; flex-basis: 16px; }
  .antc-calendar ul.antc-calendar-legend { flex-direction: column; gap: 14px; margin-top: 18px; }
  .antc-calendar-legend li { flex: 0 0 auto; font-size: 13px; }
}

/* A true corner-to-corner triangle, independent of each cell's aspect ratio. */
.antc-day-split { background: var(--antc-split-second); }
.antc-day-split::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--antc-split-first); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.antc-calendar .antc-day .antc-day-trigger { appearance: none; display: block !important; align-content: start; position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 10px; border: 0; border-radius: inherit; background: transparent; color: inherit; text-align: left; line-height: 1; font-family: inherit; cursor: pointer; }
.antc-day-trigger:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }
.antc-calendar .antc-day .antc-day-trigger > time { position: absolute !important; left: 10px !important; top: 6px !important; margin: 0; font-size: 18px; z-index: 1; }
/* Flight cells keep a two-column header: number + label, then a square aircraft. */
.antc-calendar svg.antc-plane { display: block; min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; width: 100% !important; height: 100% !important; aspect-ratio: 1; overflow: visible; }
.antc-calendar .antc-day-flight .antc-day-trigger { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: 18px 24px; column-gap: 2px; row-gap: 2px; padding: 5px 6px; }
.antc-calendar .antc-day-flight .antc-day-trigger > time { position: static !important; grid-column: 1; grid-row: 1; justify-self: center; align-self: center; font-size: 18px; }
.antc-day-flight-icon { position: static; display: block; grid-column: 1; grid-row: 2; justify-self: center; align-self: start; width: 18px; height: 18px; }
.antc-day-departure .antc-day-flight-icon { grid-column: 2; justify-self: end; }
.antc-calendar .antc-day-flight:has(.antc-month-mark) .antc-day-trigger > time { grid-column: 1 / -1; justify-self: start; align-self: start; }
.antc-calendar .antc-day-flight .antc-day-trigger > .antc-flight-cell-label { grid-column: 2; grid-row: 1; justify-self: start; align-self: center; min-width: 0; max-width: 100%; font-size: 8.5px; line-height: 1.1; font-weight: 600; white-space: nowrap; }
.antc-legend-plane { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; flex: 0 0 32px; color: #e9edf2; }
.antc-legend-plane svg.antc-plane { width: 24px !important; height: 24px !important; }
.antc-event-plane { width: 24px; height: 24px; }
.antc-calendar .antc-day-preview, .antc-calendar .antc-day-dialog { font-family: var(--an-type-family, Arial, sans-serif); color: #edf2f4; background: #171b20; border: 1px solid #ffffff3d; border-radius: 18px; box-shadow: 0 16px 48px #00000066; overflow: auto; overflow-wrap: anywhere; text-align: left; }
.antc-calendar .antc-day-preview { position: fixed; inset: auto; margin: 0; width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
.antc-calendar .antc-day-dialog { position: fixed; inset: 0; margin: auto; width: min(560px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; }
.antc-calendar .antc-day-dialog:not([open]) { display: none; }
.antc-day-dialog::backdrop { background: #05080cbd; }
.antc-dialog-inner { position: relative; min-width: 0; padding: 56px 24px 24px; }
.antc-calendar .antc-day-close { appearance: none; position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid #ffffff33; border-radius: 50%; background: #242a31; color: #edf2f4; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.antc-day-close:focus-visible { outline: 3px solid #b6f7c8; outline-offset: 2px; }
.antc-calendar .antc-day-preview h3, .antc-calendar .antc-day-dialog h3 { color: inherit; font-size: 21px; line-height: 1.2; margin: 0 0 16px; }
.antc-calendar .antc-day-preview p, .antc-calendar .antc-day-dialog p { color: #d9e1e5; font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.antc-calendar .antc-day-preview .antc-info-date, .antc-calendar .antc-day-dialog .antc-info-date { font-size: 12px !important; line-height: 1.35; margin-bottom: 8px; color: #aebbc3; }
.antc-calendar .antc-day-preview .antc-info-route, .antc-calendar .antc-day-dialog .antc-info-route { font-size: 13px; font-weight: 500; color: var(--antc-info-route-color, #b8c8bf); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .antc-day { transition: transform 150ms ease; }
  .antc-day:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .antc-day, .antc-day-trigger { transform: none; transition: none; }
}
@media (max-width: 600px) {
  .antc-calendar .antc-day .antc-day-trigger { padding: 5px 3px; }
  .antc-calendar .antc-day .antc-day-trigger > time { left: 3px !important; top: 5px !important; font-size: 17px; }
  .antc-calendar .antc-day-flight .antc-day-trigger { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 17px 17px 9px; column-gap: 0; row-gap: 0; padding: 3px; }
  .antc-calendar .antc-day-flight .antc-day-trigger > time { font-size: 17px; }
  .antc-day-flight-icon { width: 14px; height: 14px; }
  .antc-day-departure .antc-day-flight-icon { justify-self: center; }
  .antc-calendar .antc-day-flight .antc-day-trigger > .antc-flight-cell-label { grid-column: 1 / -1; grid-row: 3; justify-self: center; font-size: 7.5px; line-height: 1.1; }
  .antc-dialog-inner { padding: 56px 18px 20px; }
}

.antc-calendar .antc-day-trigger:disabled { opacity: 1; cursor: default; }
.antc-day-info-icon { position: absolute; right: 6px; top: auto; bottom: 6px; display: block; width: 13px; height: 13px; opacity: 0; transform: scale(.88); transition: opacity 120ms ease, transform 120ms ease; pointer-events: none; }
.antc-day-departure .antc-day-info-icon { left: 6px; right: auto; }
.antc-calendar .antc-day-info-icon svg { display: block; width: 100% !important; height: 100% !important; }
.antc-day:hover .antc-day-info-icon, .antc-day-trigger:focus-visible .antc-day-info-icon { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .antc-day-info-icon, .antc-day-departure .antc-day-info-icon { left: 4px; right: auto; top: auto; bottom: 4px; width: 9px; height: 9px; color: #4a5a53; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .antc-day-info-icon { transform: none; transition: none; }
}

.antc-calendar-hint { margin: 12px 0 0; color: #aeb7c0; font-size: 12px; line-height: 1.5; text-align: left; }
.antc-hint-touch { display: none; }
.antc-hint-hover { display: inline; }
@media (max-width: 600px), (hover: none) {
  .antc-calendar .antc-day-info-icon { display: none !important; }
  .antc-hint-touch { display: inline; }
  .antc-hint-hover { display: none; }
}

/* Optional typed detailed calendar; the standard calendar rules above are unchanged. */
.antc-calendar-detailed .antc-day-flight-icon svg.antc-plane { filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.antc-calendar-detailed .antc-plane path { fill: var(--antc-plane-fill,currentColor)!important; stroke: var(--antc-plane-stroke,#141416)!important; }
.antc-calendar-detailed .antc-info-route-with-plane { display:flex; align-items:center; gap:7px; }
.antc-calendar-detailed .antc-info-route-with-plane::before { display:none!important; }
.antc-calendar-detailed .antc-info-plane { display:inline-flex; align-items:center; justify-content:center; width:17px!important; height:17px!important; flex:0 0 17px!important; }
.antc-calendar-detailed .antc-info-plane svg.antc-plane { width:17px!important; height:17px!important; display:block; }
.antc-calendar-detailed svg.antc-plane { transform:none; }
.antc-calendar-detailed .antc-day-flight .antc-day-trigger > .antc-flight-cell-label { font-size:8px; font-weight:700; letter-spacing:-.01em; }

/* Shared compact legend; route dates remain readable below each label. */
.antc-calendar ul.antc-calendar-legend { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px 16px; }
.antc-calendar .antc-calendar-legend li { font-size:12px; gap:8px; align-items:flex-start; }
.antc-calendar .antc-calendar-legend .antc-legend-chip { flex:0 0 22px; width:22px; height:22px; border-radius:5px; }
.antc-calendar .antc-calendar-legend small { font-size:10px; line-height:1.4; }
/* Flight labels use their natural widths, independent of the colour grid. */
.antc-calendar ul.antc-calendar-flight-legend { display:flex; flex-direction:row; flex-wrap:wrap; align-items:flex-start; justify-content:flex-start; gap:12px 16px; margin:14px 0 0; padding:0; list-style:none; }
.antc-calendar .antc-calendar-flight-legend li.antc-legend-flight { display:flex; flex:0 1 auto; align-items:center; gap:8px; min-width:0; max-width:100%; margin:0; padding:0; font-size:12px; line-height:1.35; }
.antc-calendar .antc-calendar-flight-legend li.antc-legend-flight > span:last-child { min-width:0; overflow-wrap:anywhere; }
@media(max-width:600px) {
 .antc-calendar ul.antc-calendar-legend { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; }
 .antc-calendar .antc-calendar-legend li { font-size:11px; }
 .antc-calendar .antc-calendar-flight-legend li.antc-legend-flight { font-size:10px; }
}
