/* FlightDesk coordinated pilot pages. Scoped, screen-only presentation; no data or operational rules. */
@media screen {
  main.fd-coordinated-page {
    --fd-page-blue:#135dac;--fd-page-ink:#194f82;--fd-page-muted:#55789a;
    --fd-page-line:#d4e3f2;--fd-page-surface:#fff;
    box-sizing:border-box;min-width:0;
  }
  main.fd-coordinated-page :is(.fl-page,.fl-editor,.fla-heading,.stats-hero,.sp-hero,.teleml-hero,.notam-page-heading) { box-sizing:border-box;min-width:0; }
}

/* Voli e lezioni and quiz statistics. Scoped to their main root; no Home, data or print changes. */
@media screen {
  .fd-agenda-page.fla-page { margin-block:28px 60px; }
  .fd-agenda-page .fla-heading,
  .fd-statistics-page .stats-hero {
    padding:22px 24px;border:1px solid #d4e3f2;border-radius:20px;background:#fff;
    box-shadow:0 8px 26px rgba(24,64,110,.06);margin-bottom:20px;
  }
  .fd-agenda-page .fla-heading h1,
  .fd-statistics-page .stats-hero h1 {
    margin:0;color:#175b98;font-size:clamp(28px,3vw,36px);font-weight:800;line-height:1.2;letter-spacing:-.025em;
  }
  .fd-agenda-page .fla-intro { color:#55789a;font-size:16px;line-height:1.55; }
  .fd-agenda-page .fla-refresh { min-height:48px;padding:11px 15px;border-color:#b9d1e9;border-radius:12px;color:#175b98;font-size:15px; }
  .fd-agenda-page .fla-toolbar { padding:15px 18px;border:1px solid #d4e3f2;border-radius:16px;background:#fff; }
  .fd-agenda-page .fla-sync { color:#55789a;font-size:14px; }
  .fd-agenda-page .fla-booking-action { color:#55789a;font-size:14px; }
  .fd-agenda-page .fla-book { min-height:44px;border-radius:12px;font-size:14px; }
  .fd-agenda-page .fla-filters { width:100%;max-width:620px;gap:6px;padding:6px;border:1px solid #d4e3f2;border-radius:16px;background:#edf5fd; }
  .fd-agenda-page .fla-filter { min-height:48px;border-color:transparent;border-radius:11px;background:#fff;color:#175b98;font-size:16px; }
  .fd-agenda-page .fla-filter[aria-pressed="true"] { background:#175b98;border-color:#175b98;color:#fff; }
  .fd-agenda-page .fla-card { padding:24px;border-color:#d4e3f2;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(24,64,110,.06); }
  .fd-agenda-page .fla-card h2 { color:#175b98;font-size:22px;font-weight:800;line-height:1.35; }
  .fd-agenda-page .fla-card-day { color:#55789a;font-size:15px; }
  .fd-agenda-page .fla-card-top { color:#426e97;font-size:12px; }
  .fd-agenda-page .fla-card .fla-timebox { border:1px solid #dbe7f3;background:#f3f8fe;border-radius:14px; }
  .fd-agenda-page .fla-timebox small { color:#55789a;font-size:14px; }
  .fd-agenda-page .fla-timebox strong { color:#175b98;font-size:26px; }
  .fd-agenda-page .fla-timebox-title { color:#235f96;font-size:14px; }
  .fd-agenda-page .fla-card .fla-arrival-reminder { color:#315f8a;background:#edf5fd;font-size:15px;line-height:1.5; }
  .fd-agenda-page .fla-fact dt { color:#55789a;font-size:14px; }
  .fd-agenda-page .fla-fact dd { color:#235f96;font-size:16px;line-height:1.5; }
  .fd-agenda-page .fla-note { color:#315f8a;font-size:15px; }
  .fd-agenda-page .fla-note summary { color:#175b98;font-size:15px; }
  .fd-agenda-page :is(.fla-zone,.fla-approval-note,.fla-footnote) { color:#55789a;font-size:13px; }
  .fd-agenda-page .fla-calendar { border-color:#d4e3f2;border-radius:20px;background:#fff; }
  .fd-agenda-page .fla-calendar h2 { color:#175b98;font-size:18px; }
  .fd-agenda-page .fla-calendar p { color:#55789a;font-size:15px; }
  .fd-agenda-page .fla-calendar-copy input { height:52px;border-color:#b9d1e9;border-radius:12px;background:#f7faff;color:#235f96;font-size:15px; }
  .fd-agenda-page .fla-calendar-copy-button { min-height:52px;border-radius:12px;font-size:15px; }
  .fd-agenda-page .fla-settings-link { border-color:#d4e3f2;border-radius:14px;color:#175b98;font-size:16px; }
  .fd-agenda-page .fla-settings-link small { color:#55789a;font-size:14px; }

  .fd-statistics-page { --ink:#194f82;--muted:#55789a;--line:#d4e3f2;color:#194f82; }
  .fd-statistics-page .stats-hero { color:#194f82; }
  .fd-statistics-page .stats-kicker { color:#55789a;font-size:12px;opacity:1; }
  .fd-statistics-page .stats-hero p { color:#55789a;font-size:15px;line-height:1.55; }
  .fd-statistics-page .stats-user { color:#235f96;background:#edf5fd;border-color:#d4e3f2;font-size:14px; }
  .fd-statistics-page .stats-hero .control-field label { color:#235f96;font-size:14px;letter-spacing:0;text-transform:none; }
  .fd-statistics-page .stats-hero #origineStats,
  .fd-statistics-page .select-unificata {
    box-sizing:border-box;min-height:52px;padding:12px 42px 12px 15px;border:1px solid #b9d1e9;border-radius:12px;
    background-color:#f7faff;color:#175b98;font-family:inherit;font-size:16px;font-weight:700;line-height:1.4;
  }
  .fd-statistics-page .select-unificata { max-width:100%; }
  .fd-statistics-page .stats-hero .type-tabs { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:5px;border:1px solid #d4e3f2;border-radius:14px;background:#edf5fd; }
  .fd-statistics-page .stats-hero .type-tabs a { border-radius:10px;color:#175b98;font-size:15px;font-family:inherit; }
  .fd-statistics-page .stats-hero .type-tabs a.active { background:#175b98;color:#fff;box-shadow:0 3px 9px rgba(23,91,152,.14); }
  .fd-statistics-page .stats-hero .type-tabs button { border-radius:10px;font-family:inherit;font-size:15px; }
  .fd-statistics-page .stats-hero .type-tabs button:disabled { color:#7b8fa5;background:#e7eef6; }
  .fd-statistics-page .summary-grid { gap:16px;margin-bottom:20px; }
  .fd-statistics-page .summary-card { padding:20px 22px;border-color:#d4e3f2;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(24,64,110,.06); }
  .fd-statistics-page .summary-card:before { background:#88b6e0; }
  .fd-statistics-page .kpi-title { color:#426e97;font-size:13px;letter-spacing:.035em; }
  .fd-statistics-page .kpi-value { color:#175b98;font-size:32px;font-weight:800;line-height:1.25; }
  .fd-statistics-page .kpi-sub { color:#55789a;font-size:14px;line-height:1.5; }
  .fd-statistics-page .charts-grid { gap:20px; }
  .fd-statistics-page .chart-box { padding:22px 24px;border-color:#d4e3f2;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(24,64,110,.06); }
  .fd-statistics-page .chart-box h2 { color:#175b98;font-size:20px;font-weight:800;line-height:1.4; }
  .fd-statistics-page .chart-caption { color:#55789a;font-size:15px;line-height:1.5; }
  .fd-statistics-page :is(.detail-empty,.empty-state) { border-color:#d4e3f2;background:#f7faff;color:#55789a;font-size:15px;line-height:1.5; }
  .fd-statistics-page :is(.detail-empty,.empty-state) strong { color:#235f96;font-size:17px; }
  .fd-statistics-page .stats-availability { color:#55789a;font-size:14px; }
  .fd-statistics-page :is(.select-unificata,#origineStats,.type-tabs a):focus-visible { outline:3px solid #73ace2;outline-offset:3px; }

  @media(max-width:720px) {
    .fd-agenda-page.fla-page { margin-block:20px 44px; }
    .fd-agenda-page .fla-heading { padding:18px; }
    .fd-agenda-page .fla-toolbar { padding:14px; }
    .fd-agenda-page .fla-card { padding:20px; }
    .fd-agenda-page .fla-card h2 { font-size:21px; }
    .fd-agenda-page .fla-filter { padding:10px 7px;font-size:15px; }
  }
  @media(max-width:560px) {
    .fd-statistics-page .stats-hero { padding:20px; }
    .fd-statistics-page .summary-card,.fd-statistics-page .chart-box { padding:18px; }
    .fd-statistics-page .stats-hero .type-tabs a,
    .fd-statistics-page .stats-hero .type-tabs button { padding:0 10px;font-size:14px; }
  }
}

/* NOTAM: presentation only. Map/search state, severity colours and expanded mode stay intact. */
@media screen {
  body:not(.notam-map-open) main#briefing.fd-coordinated-page.fd-notam-page {
    width:calc(100% - 2*var(--fd-page-gutter,24px));
    max-width:none;
    margin:0 auto;
    padding:24px 0 30px;
    color:var(--fd-page-ink,#174976);
  }
  main#briefing.fd-notam-page > .notam-page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:20px 24px;
    margin:0 0 18px;
    border:1px solid #d5e4f3;
    border-radius:20px;
    background:#fff;
    box-shadow:0 4px 18px #15467405;
  }
  main#briefing.fd-notam-page > .notam-page-heading > div {display:block;min-width:0;}
  main#briefing.fd-notam-page > .notam-page-heading h1 {
    margin:0;
    font-size:clamp(27px,2.1vw,36px);
    font-weight:800;
    line-height:1.2;
    letter-spacing:-.025em;
    color:var(--fd-page-blue,#1565c0);
  }
  main#briefing.fd-notam-page > .notam-page-heading p {
    margin:7px 0 0;
    font-size:15px;
    line-height:1.5;
    color:#557796;
  }
  main#briefing.fd-notam-page > .notam-page-heading .back-home {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:44px;
    padding:10px 16px;
    border:1px solid #cfdfef;
    border-radius:12px;
    background:#fff;
    color:var(--fd-page-blue,#1565c0);
    font-size:14px;
    font-weight:750;
  }
  main#briefing.fd-notam-page > .briefing-setup {
    margin:0 0 18px;
    padding:18px;
    background:#fff;
    border:1px solid #d5e4f3;
    border-radius:20px;
    box-shadow:0 4px 18px #15467405;
  }
  main#briefing.fd-notam-page > .briefing-setup .flight-day-control,
  main#briefing.fd-notam-page > .briefing-setup .place-search > label {
    font-size:14px;
    font-weight:750;
    color:var(--fd-page-blue,#1565c0);
  }
  main#briefing.fd-notam-page > .briefing-setup .day-selection {
    min-height:52px;
    border-color:#c9ddef;
    box-shadow:none;
    color:#175b98;
  }
  main#briefing.fd-notam-page > .briefing-setup #timezone {font-size:13px;line-height:1.55;}
  main#briefing.fd-notam-page > .briefing-setup #draw-help {font-size:12px;line-height:1.5;}
  main#briefing.fd-notam-page > .briefing-controls {
    margin:0 0 18px;
    padding:16px 18px;
    border:1px solid #d5e4f3;
    border-radius:20px;
    background:#fff;
    box-shadow:0 4px 18px #15467405;
  }
  main#briefing.fd-notam-page > .briefing-controls #status:not(.warning):not(.error) {
    background:#f1f7fd;
    color:#175b98;
    border-color:#d5e4f3;
  }
  main#briefing.fd-notam-page > .briefing-controls #result-filter {font-size:14px;color:#175b98;}
  main#briefing.fd-notam-page .workspace {gap:20px;}
  main#briefing.fd-notam-page .map-section:not(.map-expanded) {
    border-color:#d5e4f3;
    border-radius:20px;
    background:#fff;
    box-shadow:0 4px 18px #15467405;
  }
  main#briefing.fd-notam-page .results-section .fd-notam-reader {
    border-top-color:#d5e4f3;
    border-right-color:#d5e4f3;
    border-bottom-color:#d5e4f3;
    border-radius:20px;
    background:#fff;
    box-shadow:0 4px 18px #15467405;
  }
  main#briefing.fd-notam-page > footer {
    max-width:none;
    border-color:#d5e4f3;
    border-radius:18px;
    background:#fff;
    font-size:12px;
    line-height:1.6;
  }
}
@media screen and (max-width:680px) {
  body:not(.notam-map-open) main#briefing.fd-coordinated-page.fd-notam-page {padding-top:16px;}
  main#briefing.fd-notam-page > .notam-page-heading {padding:18px;margin-bottom:14px;}
  main#briefing.fd-notam-page > .notam-page-heading p {font-size:14px;}
  main#briefing.fd-notam-page > .notam-page-heading .back-home {display:none;}
  main#briefing.fd-notam-page > .briefing-setup,
  main#briefing.fd-notam-page > .briefing-controls {padding:14px;margin-bottom:14px;}
  main#briefing.fd-notam-page .workspace {gap:16px;}
}

/* Pilot Space and flight tracking: coordinated white surfaces and readable blue hierarchy. */
@media screen {
  .fd-pilot-space-page {
    --sp-ink:#194f82;--sp-blue:#1565c0;--sp-muted:#55789a;--sp-line:#d4e3f2;
    color:#194f82;font-family:Nunito,system-ui,-apple-system,"Segoe UI",sans-serif;
  }
  .fd-pilot-space-page.sp-shell {
    width:100%;max-width:none;margin:0 auto;padding:28px var(--fd-page-gutter,24px) 40px;
  }
  .fd-pilot-space-page :is(.sp-social,.sp-detail-nav,.sp-story-layout) { max-width:none; }
  body:has(main.fd-pilot-space-page) .sp-guest-bar {
    box-sizing:border-box;width:100%;max-width:none;padding-inline:var(--fd-page-gutter,24px);
  }
  .fd-pilot-space-page .sp-hero,
  .fd-tracking-page .teleml-hero {
    padding:24px 26px;margin:0 0 22px;background:#fff;border:1px solid #d4e3f2;
    border-radius:20px;box-shadow:0 8px 26px rgba(24,64,110,.06);
  }
  .fd-pilot-space-page .sp-hero h1,
  .fd-tracking-page .teleml-hero h1 {
    color:#1565c0;font-size:clamp(27px,2.2vw,34px);font-weight:800;line-height:1.25;
    letter-spacing:-.02em;margin:4px 0 9px;
  }
  .fd-pilot-space-page .sp-hero p,
  .fd-tracking-page .teleml-hero p { font-size:16px;line-height:1.55;color:#55789a; }
  .fd-pilot-space-page .sp-kicker { color:#55789a;font-size:12px;letter-spacing:.08em; }
  .fd-pilot-space-page .sp-tabs { gap:10px;margin-bottom:18px; }
  .fd-pilot-space-page .sp-tabs a {
    display:inline-flex;align-items:center;justify-content:center;min-height:48px;
    padding:11px 18px;font-size:16px;font-weight:800;color:#175b98;
    border:1px solid #d4e3f2;border-radius:12px;background:#fff;
  }
  .fd-pilot-space-page .sp-tabs a.active { color:#fff;background:#1565c0;border-color:#1565c0;box-shadow:none; }
  .fd-pilot-space-page .sp-filters {
    padding:20px;border-color:#d4e3f2;border-radius:20px;gap:14px;background:#fff;
    box-shadow:0 8px 26px rgba(24,64,110,.04);
  }
  .fd-pilot-space-page .sp-filters label { color:#235f96;font-size:15px;font-weight:800; }
  .fd-pilot-space-page .sp-filters :is(input,select) {
    min-height:52px;height:52px;padding:12px 15px;color:#175b98;background:#f7faff;
    border:1px solid #b9d1e9;border-radius:12px;font-size:16px;line-height:1.4;font-weight:700;
  }
  .fd-pilot-space-page .sp-filters select { padding-right:38px; }
  .fd-pilot-space-page .sp-button,
  .fd-tracking-page .teleml-upload {
    min-height:52px;border-radius:12px;padding:12px 18px;font-size:16px;font-weight:800;line-height:1.4;
  }
  .fd-pilot-space-page .sp-results { margin:18px 2px;color:#55789a;font-size:15px; }
  .fd-pilot-space-page .sp-results small { font-size:14px; }
  .fd-pilot-space-page .sp-grid { gap:20px; }
  .fd-pilot-space-page .sp-card {
    border-color:#d4e3f2;border-radius:20px;box-shadow:0 8px 26px rgba(24,64,110,.05);
  }
  .fd-pilot-space-page .sp-card:not(.sp-card-removed) { background:#fff; }
  .fd-pilot-space-page .sp-card-removed { border-color:#edc5c1; }
  .fd-pilot-space-page .sp-card-content { padding:22px; }
  .fd-pilot-space-page .sp-card h2,
  .fd-pilot-space-page .sp-card h2 a { color:#1565c0;font-size:22px;line-height:1.35;font-weight:800; }
  .fd-pilot-space-page .sp-card p { font-size:16px;line-height:1.6;color:#55789a; }
  .fd-pilot-space-page .sp-card-footer { font-size:14px;color:#55789a; }
  .fd-pilot-space-page .sp-tag { font-size:12px;padding:5px 11px; }
  .fd-pilot-space-page .sp-panel { border-color:#d4e3f2;border-radius:20px; }
  .fd-pilot-space-page .sp-panel h2 { color:#1565c0; }
  .fd-pilot-space-page .sp-social { --social-title:#1565c0;--social-ink:#194f82;--social-muted:#55789a; }
  .fd-pilot-space-page .sp-social-story,
  .fd-pilot-space-page .sp-social-discussion { border-radius:20px;border-color:#d4e3f2; }
  .fd-pilot-space-page .sp-social .sp-social-head h1 { color:#1565c0;font-weight:800; }
  .fd-pilot-space-page .sp-social .sp-social-actions .sp-button:not(.sp-danger):not(.sp-sharing-active):not([value="delete_post"]) {
    min-height:46px;color:#175b98;background:#f7faff;border-color:#b9d1e9;font-size:14px;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions .sp-danger { color:#af3446;border-color:#eedbe0; }
  .fd-pilot-space-page .sp-social .sp-draft-banner.sp-removed strong { color:#9b3e38; }
  .fd-pilot-space-page .sp-route-heading h1 { color:#1565c0; }

  .fd-tracking-page { color:#194f82; }
  #container-main.fd-tracking-page { width:100%;max-width:none; }
  .fd-tracking-page .teleml-search {
    padding:14px;background:#fff;border-color:#d4e3f2;border-radius:20px;gap:12px;
    box-shadow:0 8px 26px rgba(24,64,110,.04);
  }
  .fd-tracking-page .teleml-search button,
  .fd-tracking-page .teleml-reset {
    display:inline-flex;align-items:center;justify-content:center;min-height:52px;
    border-radius:12px;font-size:16px;font-weight:800;line-height:1.4;
  }
  .fd-tracking-page .teleml-search button { padding:12px 20px;background:#1565c0; }
  .fd-tracking-page .teleml-reset { padding:12px 16px;color:#175b98;border:1px solid #c4d9ef;background:#edf5fd; }
  .fd-tracking-page .teleml-listbar,
  .fd-tracking-page .teleml-pagination { border-color:#d4e3f2;border-radius:20px; }
  .fd-tracking-page .teleml-count { color:#175b98;font-size:16px; }
  .fd-tracking-page .teleml-order { font-size:15px;color:#55789a; }
  .fd-tracking-page .teleml-order select {
    min-height:48px;padding:10px 36px 10px 14px;border-color:#b9d1e9;border-radius:12px;
    color:#175b98;background:#f7faff;font-size:16px;
  }
  .fd-tracking-page .teleml-table tbody tr {
    padding:24px;border-color:#d4e3f2;border-radius:20px;box-shadow:0 8px 26px rgba(24,64,110,.05);
  }
  .fd-tracking-page .teleml-table .teleml-date { color:#1565c0;font-size:22px;line-height:1.35; }
  .fd-tracking-page .teleml-meta { color:#55789a;font-size:13px; }
  .fd-tracking-page .teleml-metric { background:#f7faff;border-color:#dce8f5;padding:13px 14px; }
  .fd-tracking-page .teleml-metric dt { font-size:13px;color:#55789a; }
  .fd-tracking-page .teleml-metric dd { font-size:21px;line-height:1.35;color:#175b98; }
  .fd-tracking-page .teleml-note { color:#55789a;font-size:15px;line-height:1.55; }
  .fd-tracking-page .teleml-open { min-height:52px;font-size:16px;color:#175b98; }
  .fd-tracking-page .teleml-table .teleml-actions .teleml-badge {
    height:auto!important;min-height:76px;padding:10px 6px!important;font-size:12px;line-height:1.35;
  }
  .fd-tracking-page .teleml-table .teleml-actions .teleml-badge span { white-space:normal;overflow-wrap:normal; }
  .fd-tracking-page .teleml-route-code { font-size:18px!important;color:#175b98; }
  .fd-tracking-page :is(.teleml-route-name,.teleml-route-detail) { font-size:14px!important;line-height:1.45; }
  .fd-tracking-page .teleml-bottom p { color:#55789a;font-size:14px; }

  /* Standalone detail only; embedded story maps keep their existing compact layout. */
  .fd-tracking-detail-page { color:#194f82; }
  .fd-tracking-detail-page .page-header { border-color:#d4e3f2;box-shadow:0 8px 26px rgba(24,64,110,.05); }
  .fd-tracking-detail-page .title-info h1 { color:#1565c0;font-size:clamp(27px,2.2vw,34px);line-height:1.25; }
  .fd-tracking-detail-page .title-info .note { color:#55789a;font-size:16px;line-height:1.55; }
  .fd-tracking-detail-page .track-map-section { border-color:#d4e3f2;box-shadow:0 8px 26px rgba(24,64,110,.05); }
  .fd-tracking-detail-page #controls-container label { font-size:15px;color:#235f96; }
  .fd-tracking-detail-page #controls-container select#mode {
    min-height:48px;background:#f7faff;border-color:#b9d1e9;color:#175b98;font-size:16px;
  }
  .fd-tracking-detail-page .dash { gap:14px;margin-block:18px; }
  .fd-tracking-detail-page .dash .card { border-color:#d4e3f2;border-radius:16px;padding:18px;background:#fff; }
  .fd-tracking-detail-page .dash .card .k { color:#1565c0;font-size:24px;line-height:1.35; }
  .fd-tracking-detail-page .dash .card .l { color:#55789a;font-size:14px;line-height:1.45; }
  .fd-tracking-detail-page .chart-container { border-color:#d4e3f2;border-radius:18px; }
  .fd-tracking-detail-page .chart-toolbar button { min-height:40px;color:#175b98;border-color:#b9d1e9;border-radius:10px;font-size:13px; }
  .fd-tracking-detail-page .note-footer { color:#55789a;font-size:14px;line-height:1.55; }

  @media(max-width:760px) {
    .fd-pilot-space-page .sp-hero,.fd-tracking-page .teleml-hero { padding:20px; }
    .fd-pilot-space-page .sp-filters { padding:16px; }
    .fd-tracking-page .teleml-table tbody tr { padding:20px; }
    .fd-tracking-page .teleml-hero .teleml-upload { min-width:0; }
  }
  @media(max-width:640px) {
    .fd-pilot-space-page .sp-hero,.fd-tracking-page .teleml-hero { padding:18px; }
    .fd-pilot-space-page .sp-tabs { gap:8px; }
    .fd-pilot-space-page .sp-tabs a { flex:1;min-width:0;padding:10px 12px;font-size:14px; }
    .fd-pilot-space-page .sp-card-content { padding:18px; }
    .fd-pilot-space-page .sp-card h2,.fd-pilot-space-page .sp-card h2 a { font-size:21px; }
    .fd-pilot-space-page .sp-results { flex-wrap:wrap;gap:6px; }
    .fd-pilot-space-page .sp-results small { max-width:none;text-align:left; }
    .fd-tracking-page .teleml-table tbody tr { padding:18px; }
    .fd-tracking-page .teleml-date { font-size:20px!important; }
    .fd-tracking-page .teleml-metric dd { font-size:20px; }
  }
}

/* Flight Log list and editor. Presentation only; statuses, maps and print retain their own styles. */
@media screen {
  .fd-flightlog-page { color:#194f82; }
  .fd-flightlog-page .fl-page { padding-top:28px; }
  .fd-flightlog-page .fl-hero,
  .fd-flightlog-editor-page .fl-editor-hero {
    padding:22px 24px;margin-bottom:20px;border:1px solid #d4e3f2;border-radius:20px;
    background:#fff;box-shadow:0 8px 26px rgba(24,64,110,.06);
  }
  .fd-flightlog-page .fl-title,
  .fd-flightlog-editor-page .fl-editor-hero h1 {
    color:#135dac;font-size:clamp(28px,2.5vw,36px);line-height:1.2;font-weight:800;letter-spacing:-.025em;
  }
  .fd-flightlog-page .fl-subtitle,
  .fd-flightlog-editor-page .fl-editor-hero p { color:#55789a;font-size:16px;line-height:1.55; }
  .fd-flightlog-page .fl-hero-action { background:#f7faff;border-color:#d4e3f2;border-radius:16px; }
  .fd-flightlog-page .fl-stat { border:1px solid #dce8f5;border-radius:14px;background:#f3f8fe; }
  .fd-flightlog-page .fl-stat b { color:#55789a;font-size:14px; }
  .fd-flightlog-page .fl-stat span { color:#175b98;font-size:24px; }
  .fd-flightlog-page .import-fpl-form { background:#fff;border-color:#d4e3f2; }
  .fd-flightlog-page .import-fpl-form label { color:#175b98;font-size:14px; }
  .fd-flightlog-page .import-fpl-hint { color:#55789a;font-size:13px;line-height:1.5; }
  .fd-flightlog-page .fl-toolbar { border-color:#d4e3f2;border-radius:20px;padding:14px; }
  .fd-flightlog-page .fl-search { background:#f7faff;border:1px solid #b9d1e9;border-radius:12px; }
  .fd-flightlog-page .fl-search input { min-height:52px;font-size:18px; }
  .fd-flightlog-page .fl-search .fl-btn { min-height:44px;border-radius:10px;font-size:15px; }
  .fd-flightlog-page :is(.sect-title,.fl-section-heading h2) { color:#135dac;font-size:24px;line-height:1.35; }
  .fd-flightlog-page .fl-route-card { border-color:#d4e3f2;border-radius:20px;box-shadow:0 8px 26px rgba(24,64,110,.05); }
  .fd-flightlog-page .fl-route-card h3 a { color:#135dac; }
  .fd-flightlog-editor-page .fl-editor { --fl-blue:#175b98;--fl-ink:#194f82;--fl-muted:#55789a;--fl-border:#d4e3f2; }
  .fd-flightlog-editor-page .fl-eyebrow { color:#55789a;font-size:12px;letter-spacing:.08em; }
  .fd-flightlog-editor-page .fl-back-link { min-height:44px;font-size:14px;border-color:#b9d1e9;color:#175b98; }
  .fd-flightlog-editor-page .fl-editor .fl-card { border-color:#d4e3f2;border-radius:20px;box-shadow:0 8px 26px rgba(24,64,110,.05); }
  .fd-flightlog-editor-page .fl-editor .fl-section-title { color:#135dac;font-size:22px;line-height:1.35; }
  .fd-flightlog-editor-page .fl-editor .fl-field label { color:#235f96;font-size:15px;line-height:1.4; }
  .fd-flightlog-editor-page .fl-editor :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) { font-size:16px; }
  .fd-flightlog-editor-page .fl-editor .fl-field :is(input:not([type=checkbox]):not([type=hidden]),select) { min-height:52px; }
  .fd-flightlog-editor-page .fl-editor :is(.fl-nav-settings,.fl-nav-card,.fl-com-settings) { border-color:#d4e3f2; }
  .fd-flightlog-editor-page .fl-editor :is(.fl-nav-settings,.fl-nav-card,.fl-com-settings) summary { color:#175b98;font-size:17px; }
  @media(max-width:700px) {
    .fd-flightlog-page .fl-page { padding-top:20px; }
    .fd-flightlog-page .fl-hero,.fd-flightlog-editor-page .fl-editor-hero { padding:18px; }
    .fd-flightlog-page .fl-search { min-width:0; }
    .fd-flightlog-page .fl-search input { font-size:16px; }
    .fd-flightlog-editor-page .fl-editor .fl-section-title { font-size:21px; }
    .fd-flightlog-editor-page .fl-editor .fl-field label { font-size:14px; }
  }
}


@media screen {
  .fd-agenda-page .fla-heading h1,.fd-statistics-page .stats-hero h1,
  .fd-pilot-space-page .sp-hero h1,.fd-tracking-page .teleml-hero h1,
  .fd-tracking-detail-page .title-info h1 { color:#135dac; }
}

/* Story actions must never stretch to the height of sharing explanations. */
@media screen {
  .fd-pilot-space-page .sp-social .sp-social-actions {
    align-items:flex-start;align-content:start;gap:10px;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions > .sp-button,
  .fd-pilot-space-page .sp-social .sp-social-actions > form {
    align-self:flex-start;flex:0 1 auto;min-width:0;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions > form {
    display:flex;margin:0;padding:0;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions .sp-button {
    align-self:flex-start;height:auto;min-height:46px;line-height:1.4;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions .sp-share-controls {
    box-sizing:border-box;flex:0 0 100%;width:100%;max-width:none;grid-column:1/-1;
    display:flex;align-items:flex-start;align-content:start;gap:10px;
    padding:16px;margin-top:4px;border:1px solid #dce8f3;border-radius:14px;background:#f7faff;
  }
  .fd-pilot-space-page .sp-social .sp-share-controls > form {
    display:flex;align-self:flex-start;margin:0;padding:0;
  }
  .fd-pilot-space-page .sp-social .sp-share-controls .sp-share-note {
    flex:0 0 100%;margin:0;font-size:13px;line-height:1.55;color:#55789a;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions .sp-sharing-active {
    color:#28694f;background:#f0f8f4;border-color:#9bc9b6;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions button[value="delete_post"] {
    color:#af3446;background:#fff8fa;border-color:#eedbe0;
  }
}
@media screen and (max-width:640px) {
  .fd-pilot-space-page .sp-social .sp-social-actions {
    grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;
  }
  .fd-pilot-space-page .sp-social .sp-social-actions > .sp-button,
  .fd-pilot-space-page .sp-social .sp-social-actions > form,
  .fd-pilot-space-page .sp-social .sp-social-actions > form > .sp-button { width:100%; }
  .fd-pilot-space-page .sp-social .sp-share-controls { padding:12px; }
  .fd-pilot-space-page .sp-social .sp-share-controls > .sp-button,
  .fd-pilot-space-page .sp-social .sp-share-controls > form { flex:1 1 140px;min-width:0; }
  .fd-pilot-space-page .sp-social .sp-share-controls > form > .sp-button { width:100%; }
}
