/* Sky Port design system, layered over Universal Theme.
   Light and dark use the same variables. The pilot's choice is marked by an element
   the app shell renders (.sp-theme-light / .sp-theme-dark); with neither, the phone's
   own setting decides. */
:root {
  --sp-brand: #1668e3;
  --sp-sky: #4fb3ff;
  --sp-navy: #0a2540;
  --sp-ok: #0f9d6b;
  --sp-warn: #c47f08;
  --sp-bad: #d64545;
  --sp-radius: 20px;
  --sp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --sp-bg: #f3f6fb;
  --sp-card: #ffffff;
  --sp-ink: #14233a;
  --sp-muted: #64748b;
  --sp-line: #e6ebf2;
  --sp-field: #f8fafd;
  --sp-soft: #eef2f8;
  --sp-appbar: rgba(243, 246, 251, .82);
  --sp-tabs: rgba(255, 255, 255, .82);
  --sp-tabs-line: rgba(10, 37, 64, .08);
  --sp-shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 10px 28px rgba(10, 37, 64, .07);
  --sp-hero: linear-gradient(140deg, #0a2540 0%, #12488c 58%, #2b8fe8 100%);
  color-scheme: light;
}

:root:has(.sp-theme-dark) {
  --sp-bg: #0b111c; --sp-card: #131c2b; --sp-ink: #e6edf7; --sp-muted: #8ea0b8; --sp-line: #22304a;
  --sp-field: #0f1725; --sp-soft: #1b2638; --sp-appbar: rgba(11, 17, 28, .82); --sp-tabs: rgba(22, 32, 49, .86); --sp-tabs-line: rgba(255, 255, 255, .07);
  --sp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .35);
  --sp-hero: linear-gradient(140deg, #0f1b30 0%, #14305a 60%, #1d5fa8 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not(:has(.sp-theme-light)) {
    --sp-bg: #0b111c; --sp-card: #131c2b; --sp-ink: #e6edf7; --sp-muted: #8ea0b8; --sp-line: #22304a;
    --sp-field: #0f1725; --sp-soft: #1b2638; --sp-appbar: rgba(11, 17, 28, .82); --sp-tabs: rgba(22, 32, 49, .86); --sp-tabs-line: rgba(255, 255, 255, .07);
    --sp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .35);
    --sp-hero: linear-gradient(140deg, #0f1b30 0%, #14305a 60%, #1d5fa8 100%);
    color-scheme: dark;
  }
}

html, body, .t-Body, .t-Body-main, .t-Body-content { background: var(--sp-bg) !important; }
body, .t-Body, input, select, textarea, button { font-family: var(--sp-font); color: var(--sp-ink); }
.t-Region, .t-Region-body, .t-Form-label, .apex-item-option label, .t-Region-title, .t-Body-contentInner { color: var(--sp-ink); }
select option { background: var(--sp-card); color: var(--sp-ink); }

/* App frame */
.t-Header, .t-Footer, .t-Body-title, .t-Body-nav, .t-Breadcrumb { display: none !important; }
.t-Body-main, .t-Body-content, .t-Body-contentInner { margin: 0 !important; padding: 0 !important; }
body:not(.t-PageBody--login) .t-Body-contentInner {
  max-width: 640px;
  margin: 0 auto !important;
  padding: calc(76px + env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom)) !important;
}
.t-Body-content .container, .t-Body-contentInner > .container { width: 100%; max-width: none; padding: 0; }
.t-Body-contentInner .row { margin-left: 0; margin-right: 0; }
.t-Body-contentInner .col { padding-left: 0; padding-right: 0; }

/* App bar */
.sp-appbar {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding-top: env(safe-area-inset-top);
  background: var(--sp-appbar);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--sp-line) 60%, transparent);
}
.sp-appbar-in { max-width: 640px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; }
.sp-appbar-text { flex: 1; min-width: 0; }
.sp-appbar-kicker { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted); }
.sp-appbar-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--sp-brand), var(--sp-sky)); }
.sp-iconbtn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--sp-ink) !important; text-decoration: none !important; background: var(--sp-soft); font-weight: 700; font-size: 15px; }
.sp-back { background: transparent; margin-left: -8px; }
.sp-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--sp-bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Bottom tabs: frosted bar, the active tab gets a soft brand-coloured pill behind its icon (native tab-bar style). */
.sp-tabs {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 900;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: calc(100% - 24px); max-width: 480px; height: 70px;
  display: flex; align-items: stretch; padding: 6px 4px;
  background: var(--sp-tabs);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--sp-tabs-line); border-radius: 26px; box-shadow: 0 12px 34px rgba(10, 37, 64, .16);
}
.sp-tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
  color: var(--sp-muted) !important; text-decoration: none !important; font-size: 11px; font-weight: 600; letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent; transition: color .2s; }
.sp-tab .fa { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; font-size: 18px; transition: background .25s, transform .25s; }
.sp-tab.is-active { color: var(--sp-brand) !important; font-weight: 750; }
.sp-tab.is-active .fa { background: color-mix(in srgb, var(--sp-brand) 15%, transparent); }
.sp-tab:active .fa { transform: scale(.9); }

/* Cards */
.t-Region, .t-Region--scrollBody { background: var(--sp-card) !important; border: 0 !important; border-radius: var(--sp-radius) !important;
  box-shadow: var(--sp-shadow) !important; margin-bottom: 16px !important; overflow: hidden; }
.t-Region-header { background: transparent !important; border: 0 !important; padding: 18px 20px 0 !important; min-height: 0 !important; }
.t-Region-headerItems { padding: 0 !important; }
.t-Region-title { font-size: 17px !important; font-weight: 700 !important; color: var(--sp-ink) !important; letter-spacing: -.01em; }
.t-Region-body { padding: 8px 20px 20px !important; }
.t-Region-buttons, .t-Region-bodyWrap > .t-Region-buttons { padding: 0 20px 20px !important; border: 0 !important; background: transparent !important; }
.t-Region-bodyWrap { display: flex; flex-direction: column; }
.t-Region-bodyWrap > .t-Region-body { order: 1; }
.t-Region-bodyWrap > .t-Region-buttons { order: 2; display: flex; }
.t-Region-buttons-left, .t-Region-buttons-right { display: flex; flex: 1 1 auto; gap: 10px; flex-wrap: wrap; float: none !important; }
.t-Region-buttons-right .t-Button, .t-Region-buttons-left .t-Button { flex: 1 1 140px; margin: 0 !important; }
.t-Region-buttons:empty, .t-Region-buttons--top:has(.t-Region-buttons-left:empty):has(.t-Region-buttons-right:empty) { display: none !important; }

/* Forms */
.t-Form-fieldContainer { margin-bottom: 2px !important; margin-left: 0 !important; margin-right: 0 !important;
  padding-left: 0 !important; padding-right: 0 !important; }
.t-Form-itemRequired-marker, .t-Form-itemRequired { display: none !important; }
.t-Form-itemAssistance { min-height: 0 !important; }
.is-required .t-Form-label::after { content: " *"; color: var(--sp-bad); font-family: var(--sp-font); }
.t-Form-fieldContainer--floatingLabel .t-Form-inputContainer .t-Form-itemWrapper > input,
.t-Form-fieldContainer--floatingLabel .t-Form-inputContainer .t-Form-itemWrapper > select,
.t-Form-fieldContainer--floatingLabel .t-Form-inputContainer .t-Form-itemWrapper > textarea,
.t-Form-itemWrapper input.text_field, .t-Form-itemWrapper input.password, .t-Form-itemWrapper input.number_field,
.t-Form-itemWrapper select.selectlist, .t-Form-itemWrapper textarea, .t-Form-itemWrapper input.apex-item-datepicker,
.t-Form-itemWrapper a-date-picker input {
  min-height: 54px; font-size: 16px; border-radius: 14px !important; border: 1px solid var(--sp-line) !important;
  background-color: var(--sp-field) !important; color: var(--sp-ink) !important; box-shadow: none !important;
}
.t-Form-itemWrapper textarea { min-height: 96px; }
.t-Form-itemWrapper input:focus, .t-Form-itemWrapper select:focus, .t-Form-itemWrapper textarea:focus {
  border-color: var(--sp-brand) !important; background-color: var(--sp-card) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sp-brand) 18%, transparent) !important;
}
.t-Form-label { color: var(--sp-muted) !important; font-weight: 500; }
.t-Form-fieldContainer--floatingLabel .t-Form-labelContainer,
.t-Form-fieldContainer--floatingLabel .t-Form-label,
.t-Form-fieldContainer--floatingLabel .t-Form-labelContainer label,
.t-Form-fieldContainer--floatingLabel.apex-item-wrapper--select-list .t-Form-label { background: transparent !important; box-shadow: none !important; }
.t-Form-error { color: var(--sp-bad); font-size: 13px; }
input.sp-upper, .sp-upper input { text-transform: uppercase; }
.apex-item-group--rc .apex-item-option { padding: 10px 0; font-size: 15px; }
.apex-item-radio .apex-item-option { padding: 8px 0; }
.apex-item-option label { color: var(--sp-ink) !important; }

/* Buttons */
.t-Button { min-height: 50px; padding: 0 22px; border-radius: 14px !important; font-weight: 650; font-size: 15px; box-shadow: none !important;
  border: 1px solid var(--sp-line) !important; background: var(--sp-card) !important; color: var(--sp-ink) !important; }
.t-Button--hot { background: linear-gradient(135deg, var(--sp-brand), color-mix(in srgb, var(--sp-brand) 78%, #fff)) !important;
  border-color: transparent !important; color: #fff !important; box-shadow: 0 8px 20px color-mix(in srgb, var(--sp-brand) 30%, transparent) !important; }
.t-Button-label { color: inherit; }
.t-Alert .t-Button, .t-Button--noUI { min-height: 32px !important; padding: 0 8px !important; border: 0 !important; background: transparent !important; color: inherit !important; }

/* Sign-in style pages: one plain card in the middle of the screen, with the app mark above the title. */
.t-PageBody--login { min-height: 100dvh; background: var(--sp-bg) !important; }
.t-Login-container { background: transparent !important; min-height: 100dvh; padding: 0 !important; }
.t-Login-bg, .t-Login-bgImg, .t-Login-containerHeader, .t-Login-containerFooter, .t-Login-logo { display: none !important; background: none !important; }
.t-Login-containerBody { padding: 0 !important; margin: 0 !important; background: transparent !important; }
.t-Login-containerBody > .container { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; width: 100%;
  max-width: 440px; margin: 0 auto !important; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)) !important; }
.t-Login-containerBody .row, .t-Login-containerBody .col { margin: 0 !important; padding: 0 !important; width: 100%; max-width: none; background: transparent !important; }
.t-Login-containerBody .row:has(.t-Login-region) { background: var(--sp-card) !important; border-radius: 20px 20px 0 0; border: 1px solid var(--sp-line); border-bottom: 0; }
.t-Login-containerBody .row:has(.sp-links) { background: var(--sp-card) !important; border-radius: 0 0 20px 20px; border: 1px solid var(--sp-line); border-top: 0; }
.t-Login-region { width: 100% !important; max-width: none !important; background: transparent !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; padding: 26px 22px 6px !important; }
.t-Login-header { margin: 0 0 18px !important; padding: 0 !important; text-align: center; border: 0 !important; background: transparent !important; }
.t-Login-header::before { content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 15px;
  background: var(--sp-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' transform='rotate(45 12 12)' d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.t-Login-title { font-size: 22px !important; font-weight: 750 !important; color: var(--sp-ink) !important; letter-spacing: -.01em; margin: 0 !important; text-align: center !important; }
.t-Login-body, .t-Login-buttons { padding: 0 !important; }
.t-Login-body .t-Form-fieldContainer { margin-bottom: 12px !important; }
.t-Login-buttons { margin-top: 8px; }
.t-Login-buttons .t-Button { width: 100%; min-height: 56px; border-radius: 16px !important; font-size: 16px; }
/* Fields: no labels on sign-in style pages, the placeholder says what goes in. Labels stay for screen readers. */
.t-PageBody--login .t-Form-labelContainer { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t-PageBody--login .t-Form-fieldContainer { margin-bottom: 14px !important; }
.t-PageBody--login .t-Form-fieldContainer--floatingLabel .t-Form-inputContainer { padding-top: 0 !important; }
.t-PageBody--login .t-Form-itemWrapper input.text_field,
.t-PageBody--login .t-Form-itemWrapper input.password,
.t-PageBody--login .t-Form-itemWrapper input.apex-item-text {
  height: 56px !important; min-height: 56px !important; padding: 0 16px 0 50px !important; font-size: 16px !important; line-height: 56px;
  background-repeat: no-repeat !important; background-position: 17px center !important; background-size: 20px !important; }
.t-PageBody--login .t-Form-itemWrapper input::placeholder { color: var(--sp-muted); opacity: 1; }
.t-PageBody--login .t-Form-itemAssistance:has(.a-Form-error:empty) { display: none; }
/* Fields as wide as the Sign in button */
.t-PageBody--login .t-Form-fieldContainer, .t-PageBody--login .t-Form-inputContainer,
.t-PageBody--login .t-Form-itemWrapper, .t-PageBody--login .t-Form-itemWrapper > input,
.t-PageBody--login .t-Login-body .col { width: 100% !important; max-width: none !important; flex: 1 1 100% !important;
  box-sizing: border-box !important; min-width: 0 !important; }
/* Show-password eye sits inside the field, on the right */
.t-PageBody--login .apex-item-group--password { position: relative; display: block; width: 100%; }
.t-PageBody--login .apex-item-group--password input { width: 100% !important; padding-right: 54px !important; border-radius: 14px !important; }
.t-PageBody--login .t-Button--passwordVisibility { position: absolute !important; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; min-height: 44px !important; height: 44px; padding: 0 !important; border: 0 !important; border-radius: 12px !important;
  background: transparent !important; color: var(--sp-muted) !important; box-shadow: none !important; z-index: 2; }
.t-PageBody--login .t-Button--passwordVisibility:active { transform: translateY(-50%) scale(.92); }
.t-PageBody--login .t-Button--passwordVisibility .fa { font-size: 18px; }
/* Field icons */
#P101_USERNAME, #P102_EMAIL, #P103_EMAIL {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") !important; }
#P101_PASSWORD, #P102_PASSWORD, #P102_CONFIRM, #P104_PASSWORD, #P104_CONFIRM {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='3'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") !important; }
#P102_FULL_NAME {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important; }
#P102_PHONE {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E") !important; }
#P102_CITY, #P102_COUNTRY {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") !important; }

.sp-links { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 6px 24px 26px; }
.sp-link { color: var(--sp-muted) !important; font-size: 15px; font-weight: 500; text-decoration: none !important; text-align: center; }
.sp-link b { color: var(--sp-brand); font-weight: 700; }
.sp-link--forgot { align-self: flex-end; margin-top: -2px; color: var(--sp-brand) !important; font-weight: 650; font-size: 14px; }
.t-PageBody--login .sp-links:has(.sp-link--forgot) .sp-link:not(.sp-link--forgot) { width: 100%; padding-top: 16px; border-top: 1px solid var(--sp-line); }

/* Page messages */
.t-Alert--page { border-radius: 16px !important; box-shadow: var(--sp-shadow) !important; border: 0 !important; }
.t-Body-alert, #APEX_SUCCESS_MESSAGE, #APEX_ERROR_MESSAGE { position: static !important; }
.t-Body-alert .t-Alert--page, #APEX_SUCCESS_MESSAGE .t-Alert--page, #APEX_ERROR_MESSAGE .t-Alert--page {
  position: fixed !important; z-index: 850 !important; left: 16px !important; right: 16px !important; width: auto !important;
  max-width: 608px; margin: 0 auto !important; transform: none !important;
  top: calc(72px + env(safe-area-inset-top)) !important;
}
.t-PageBody--login .t-Alert--page { top: calc(14px + env(safe-area-inset-top)) !important; }

/* Hero and content blocks */
.sp-hero { border-radius: 24px; padding: 24px 22px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden;
  background: var(--sp-hero); box-shadow: 0 16px 34px rgba(10, 37, 64, .25); }
.sp-hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -70px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.sp-hero-over { font-size: 13px; opacity: .78; font-weight: 600; margin: 0 0 4px; }
.sp-hero-title { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 6px; color: #fff; }
.sp-hero-text { font-size: 14px; opacity: .85; margin: 0; max-width: 34ch; }
.sp-hero--aerodrome { background-size: cover; background-position: center; }
.sp-hero-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.sp-hero--aerodrome .sp-logo { width: 60px; height: 60px; background: rgba(255, 255, 255, .18); }
.sp-hero--aerodrome .sp-hero-title { font-size: 22px; margin-bottom: 2px; }
.sp-hero-switch { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff !important; font-size: 13px; font-weight: 650; text-decoration: none !important; }

.sp-section { font-size: 20px; font-weight: 800; color: var(--sp-ink); letter-spacing: -.02em; margin: 26px 4px 12px; }
.sp-kicker { font-size: 20px; font-weight: 750; letter-spacing: -.01em; margin: 2px 4px 4px; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-tile { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-height: 118px; background: var(--sp-card); border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow); color: var(--sp-ink) !important; text-decoration: none !important; font-weight: 650; font-size: 15px; }
.sp-tile-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; color: var(--sp-brand);
  background: color-mix(in srgb, var(--sp-brand) 14%, var(--sp-card)); }
.sp-count { align-self: flex-start; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--sp-bad); color: #fff; font-size: 12px; }

.sp-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.sp-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow);
  color: var(--sp-ink) !important; text-decoration: none !important; }
.sp-item.is-selected { box-shadow: 0 0 0 2px var(--sp-brand), var(--sp-shadow); }
.sp-item-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: var(--sp-ink) !important; text-decoration: none !important; }
.sp-item-main { flex: 1; min-width: 0; }
.sp-item-title { font-size: 16px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item-sub { font-size: 13px; color: var(--sp-muted); margin: 3px 0 0; }
.sp-chev { color: var(--sp-muted); opacity: .6; }
.sp-gear { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--sp-muted) !important;
  background: var(--sp-soft); text-decoration: none !important; }
.sp-logo { flex: none; width: 52px; height: 52px; border-radius: 16px; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 18px;
  background: linear-gradient(135deg, var(--sp-brand), var(--sp-sky)); }
.sp-logo--date { flex-direction: column; font-size: 11px; font-weight: 700; line-height: 1.1; }
.sp-logo--date b { font-size: 20px; }

.sp-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sp-pill--ok { background: rgba(15, 157, 107, .16); color: #13a571; }
.sp-pill--warn { background: rgba(196, 127, 8, .16); color: #c98a12; }
.sp-pill--bad { background: rgba(214, 69, 69, .16); color: #e05656; }
.sp-pill--info { background: color-mix(in srgb, var(--sp-brand) 16%, transparent); color: var(--sp-brand); }

.sp-empty { text-align: center; padding: 32px 22px; background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); }
.sp-empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; font-size: 28px; color: var(--sp-brand);
  background: color-mix(in srgb, var(--sp-brand) 14%, var(--sp-card)); }
.sp-empty h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.sp-empty p { color: var(--sp-muted); font-size: 14px; margin: 0 0 18px; }

.sp-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; font-weight: 650; font-size: 15px;
  text-decoration: none !important; color: #fff !important; background: linear-gradient(135deg, var(--sp-brand), color-mix(in srgb, var(--sp-brand) 78%, #fff));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--sp-brand) 30%, transparent); border: 0; width: 100%; cursor: pointer; }
.sp-cta--ghost { color: var(--sp-brand) !important; background: color-mix(in srgb, var(--sp-brand) 12%, var(--sp-card)); box-shadow: none; }
.sp-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.sp-stack--top { margin: 0 0 14px; }

.sp-note { font-size: 14px; color: var(--sp-muted); margin: 0 0 12px; }
.sp-note--flag { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(196, 127, 8, .14); color: #c98a12; }
.sp-note-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--sp-card); border-radius: 16px; box-shadow: var(--sp-shadow); font-size: 14px; }
.sp-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border-radius: 14px;
  background: rgba(196, 127, 8, .14); color: #c98a12; font-size: 14px; font-weight: 600; }
.sp-rules { font-size: 14px; line-height: 1.5; padding: 12px 14px; margin: 0 0 12px; border-radius: 12px; background: var(--sp-card); box-shadow: var(--sp-shadow); }
.sp-step { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--sp-brand) 14%, var(--sp-card)); color: var(--sp-brand); }
.sp-step--light { background: rgba(255, 255, 255, .16); color: #fff; }
.t-PageBody--login .sp-step { margin-bottom: 14px; }

.sp-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; margin: 4px 0 12px; }
.sp-preview { display: flex; gap: 14px; align-items: center; margin: 2px 0 12px; }
.sp-preview img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.sp-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.sp-facts dt { color: var(--sp-muted); }
.sp-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sp-line); font-size: 14px; }
.sp-row small { color: var(--sp-muted); }
.sp-doc-link { flex: none; font-weight: 650; }

/* Briefing card */
.sp-brief { background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 6px 18px 14px; margin-bottom: 16px; }
.sp-brief-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sp-line); }
.sp-brief-row > div { flex: 1; min-width: 0; }
.sp-brief-icon { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 18px;
  color: var(--sp-brand); background: color-mix(in srgb, var(--sp-brand) 14%, var(--sp-card)); }
.sp-brief-label { margin: 0; font-size: 12px; font-weight: 700; color: var(--sp-muted); text-transform: uppercase; letter-spacing: .04em; }
.sp-brief-value { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.sp-brief-value small { color: var(--sp-muted); font-weight: 500; }
.sp-brief-btn { flex: none; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 650; text-decoration: none !important;
  color: var(--sp-brand) !important; background: color-mix(in srgb, var(--sp-brand) 14%, var(--sp-card)); }
.sp-brief-note { margin: 12px 0 0; font-size: 13px; color: var(--sp-muted); }
.sp-weather { width: 100%; height: 360px; border: 0; border-radius: 14px; margin: 4px 0 8px; background: #fff; }
.a-MapRegion, .a-MapRegion-map { border-radius: 14px; }

/* Weather (nearest-station METAR) */
.sp-wx { background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 16px 18px; margin-bottom: 12px;
  border-top: 5px solid var(--wx, var(--sp-brand)); }
.sp-wx--station { border-top-color: var(--sp-sky); }
.sp-wx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sp-wx-station { margin: 0; font-size: 16px; font-weight: 750; }
.sp-wx-time { margin: 2px 0 0; font-size: 12px; color: var(--sp-muted); }
.sp-wx-cat { flex: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: var(--wx); letter-spacing: .04em; }
.sp-wx-body { display: flex; gap: 14px; align-items: center; }
.sp-wx-rose { flex: none; width: 118px; height: 118px; }
.sp-wx-ring { fill: none; stroke: var(--sp-line); stroke-width: 2; }
.sp-wx-n { font-size: 12px; font-weight: 700; fill: var(--sp-muted); }
.sp-wx-rwy { fill: var(--sp-soft); stroke: var(--sp-muted); stroke-width: 1.5; }
.sp-wx-arrow { stroke: var(--sp-brand); stroke-width: 4; stroke-linecap: round; }
.sp-wx-head-arrow { fill: var(--sp-brand); }
.sp-wx-main { flex: 1; min-width: 0; }
.sp-wx-wind { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sp-wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sp-wx-tile { padding: 7px 10px; border-radius: 12px; background: var(--sp-soft); }
.sp-wx-tile span { display: block; font-size: 11px; color: var(--sp-muted); font-weight: 600; }
.sp-wx-tile b { font-size: 15px; }
.sp-wx-raw { margin-top: 12px; font-size: 13px; }
.sp-wx-raw summary { cursor: pointer; color: var(--sp-brand); font-weight: 650; }
.sp-wx-raw pre { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sp-soft); white-space: pre-wrap; font-size: 12px; color: var(--sp-ink); }
@media (max-width: 380px) { .sp-wx-body { flex-direction: column; align-items: stretch; } .sp-wx-rose { align-self: center; } }

/* Runways */
.sp-logo--rwy { width: auto; min-width: 64px; padding: 0 10px; border-radius: 12px; font-size: 14px; letter-spacing: .02em;
  background: repeating-linear-gradient(90deg, #2d3748 0 8px, #3a4558 8px 16px); color: #fff; }

/* Traffic radar */
.sp-radar { background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 14px 16px 16px; margin-bottom: 12px; }
.sp-radar svg { display: block; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sp-brand) 10%, var(--sp-card)) 0%, var(--sp-card) 72%); }
.sp-radar-ring { fill: none; stroke: var(--sp-line); stroke-width: 1.2; }
.sp-radar-axis { stroke: var(--sp-line); stroke-width: 1; stroke-dasharray: 3 4; }
.sp-radar-label { font-size: 10px; fill: var(--sp-muted); font-weight: 700; }
.sp-radar-rwy { fill: var(--sp-muted); }
.sp-radar-home { fill: var(--sp-brand); }
.sp-radar-ac path { fill: var(--sp-brand); }
.sp-radar-ac.is-low path { fill: var(--sp-warn); }
.sp-radar-ac text { font-size: 9px; font-weight: 700; fill: var(--sp-ink); }
.sp-radar-ac .sp-radar-sub { font-weight: 500; fill: var(--sp-muted); }
.sp-radar-meta { font-size: 12px; color: var(--sp-muted); margin: 10px 0 12px; }

/* Runway in use: green; the others: yellow */
.sp-rwy--active { box-shadow: 0 0 0 2px var(--sp-ok), var(--sp-shadow); }
.sp-rwy--active .sp-logo--rwy { background: repeating-linear-gradient(90deg, #0f7a52 0 8px, #13a571 8px 16px); }
.sp-rwy--inactive { box-shadow: 0 0 0 2px #d6a21a, var(--sp-shadow); }
.sp-rwy--inactive .sp-logo--rwy { background: repeating-linear-gradient(90deg, #a87b06 0 8px, #d6a21a 8px 16px); }

/* Start / Stop */
.sp-flight { background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 16px 18px; margin-bottom: 12px; }
.sp-flight.is-flying { box-shadow: 0 0 0 2px var(--sp-ok), var(--sp-shadow); }
.sp-flight-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sp-flight-title { margin: 0; font-size: 17px; font-weight: 750; }
.sp-flight-sub { margin: 2px 0 10px; font-size: 14px; color: var(--sp-muted); }
.sp-flight-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sp-ok);
  box-shadow: 0 0 0 0 rgba(15, 157, 107, .5); animation: sp-pulse 1.8s infinite; }
@keyframes sp-pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 157, 107, .5); } 70% { box-shadow: 0 0 0 10px rgba(15, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 157, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .sp-flight-dot { animation: none; } }
.sp-freq { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--sp-ok) 14%, var(--sp-card)); color: var(--sp-ink); }
.sp-freq .fa { font-size: 20px; color: var(--sp-ok); }
.sp-freq span { display: block; font-size: 12px; font-weight: 700; color: var(--sp-muted); text-transform: uppercase; letter-spacing: .04em; }
.sp-freq b { font-size: 24px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sp-cta--stop { background: linear-gradient(135deg, #c53030, #e05656) !important; box-shadow: 0 8px 20px rgba(214, 69, 69, .3); }
.sp-radar-ac.is-ours path { fill: var(--sp-ok); }
.sp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.sp-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.sp-irr-security { color: var(--sp-bad) !important; }

/* Native feel: no grey tap flash, things press in when touched, pages ease in. */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overscroll-behavior-y: none; }
.sp-item-link, a.sp-item, .sp-tile, .sp-map, .sp-stat, .sp-cta, .t-Button, .sp-iconbtn, .sp-brief-btn {
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
a.sp-item:active, .sp-item-link:active, .sp-tile:active, .sp-map:active, .sp-stat:active { transform: scale(.98); }
.sp-cta:active, .t-Button:active, .sp-iconbtn:active, .sp-brief-btn:active { transform: scale(.97); }
body:not(.t-PageBody--login) .t-Body-contentInner > * { animation: sp-page-in .35s ease-out both; }
/* Opacity only: a transform here would detach the fixed app bar and bottom menu while it runs. */
@keyframes sp-page-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body:not(.t-PageBody--login) .t-Body-contentInner > * { animation: none; }
  .sp-tab .fa, .sp-item-link, a.sp-item, .sp-cta, .t-Button { transition: none; }
}
.t-Region-title { font-size: 19px !important; font-weight: 800 !important; letter-spacing: -.02em; }
.sp-hero { border-radius: 28px; }
.sp-appbar-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sp-mark { box-shadow: 0 6px 16px color-mix(in srgb, var(--sp-brand) 35%, transparent); }

/* Count on a bottom-menu tab (waiting PPRs, open reports) */
.sp-tab { position: relative; }
.sp-tab-badge { top: 4px; right: calc(50% - 22px); }

/* Aerodrome maps: one icon tile per map, up to three in a row */
.sp-maps, .sp-notam { background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 14px 16px 16px; margin-bottom: 12px; }
.sp-maps-head, .sp-notam-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sp-maps-head span, .sp-notam-head span { font-size: 17px; font-weight: 750; }
.sp-maps-head small, .sp-notam-head small { font-size: 12px; color: var(--sp-muted); }
.sp-maps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp-map { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 12px; border-radius: 16px; text-align: center;
  border: 1px solid var(--sp-line); background: var(--sp-soft); color: var(--sp-ink) !important; text-decoration: none !important; }
.sp-map:active { transform: scale(.98); }
.sp-map-icon { font-size: 30px; line-height: 1; color: var(--sp-sky, var(--sp-brand)); }
.sp-map-title { font-size: 12px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }

/* NOTAM text */
.sp-notam-item { padding: 10px 0; border-top: 1px solid var(--sp-line); }
.sp-notam-item:first-of-type { border-top: 0; padding-top: 0; }
.sp-notam-id { font-size: 13px; font-weight: 800; color: #e0a526; font-variant-numeric: tabular-nums; }
.sp-notam-when { font-size: 12px; color: var(--sp-muted); margin-left: 6px; }
.sp-notam-text { margin: 4px 0 0; font-size: 14px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.sp-notam details > summary { cursor: pointer; list-style: none; color: var(--sp-sky, var(--sp-brand)); font-weight: 700; font-size: 14px; padding-top: 10px; }
.sp-notam details > summary::-webkit-details-marker { display: none; }
.sp-notam details[open] > summary { display: none; }
.sp-notam-foot { margin: 10px 0 0; font-size: 12px; color: var(--sp-muted); }

/* Master admin overview */
.sp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.sp-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--sp-radius); background: var(--sp-card);
  box-shadow: var(--sp-shadow); color: var(--sp-ink) !important; text-decoration: none !important; }
.sp-stat b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--sp-brand); }
.sp-stat span { font-size: 13px; color: var(--sp-muted); font-weight: 600; }
.sp-list--compact { gap: 8px; }
.sp-list--compact .sp-item { padding: 10px 14px; }
.sp-list--compact .sp-tile-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 12px; }

/* Notifications */
.sp-notice { display: flex; gap: 12px; padding: 14px 16px; background: var(--sp-card); border-radius: 16px; box-shadow: var(--sp-shadow);
  border-left: 4px solid var(--sp-brand); }
.sp-notice--priority { border-left-color: var(--sp-bad); background: color-mix(in srgb, var(--sp-bad) 8%, var(--sp-card)); }
.sp-notice-icon { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: var(--sp-brand); background: color-mix(in srgb, var(--sp-brand) 14%, var(--sp-card)); }
.sp-notice--priority .sp-notice-icon { color: var(--sp-bad); background: color-mix(in srgb, var(--sp-bad) 16%, var(--sp-card)); }
.sp-notice-title { margin: 0; font-size: 15px; font-weight: 700; }
.sp-notice-body { margin: 4px 0 0; font-size: 14px; color: var(--sp-ink); opacity: .9; white-space: pre-line; }
.sp-notice-meta { margin: 6px 0 0; font-size: 12px; color: var(--sp-muted); }
.sp-notice.is-unread .sp-notice-title::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%;
  background: var(--sp-brand); vertical-align: middle; }
.sp-notice--priority.is-unread .sp-notice-title::after { background: var(--sp-bad); }
.sp-push-status { font-size: 13px; color: var(--sp-muted); margin: 10px 0 0; }

/* Start appears only at the aerodrome; the page script reveals it. */
.sp-cta[hidden] { display: none !important; }
#sp-geo-note { margin-top: 10px; }
/* Small action button at the end of a list row, e.g. Stop for a pilot's flight. */
.sp-chip-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-decoration: none !important; border: 1px solid var(--sp-line); color: var(--sp-ink) !important; background: var(--sp-card); }
.sp-chip-btn--stop { color: #c53030 !important; border-color: color-mix(in srgb, #c53030 35%, var(--sp-line)); background: color-mix(in srgb, #c53030 8%, var(--sp-card)); }
