/* edge-app.css - "B · Edge" for the signed-in surfaces (facelift Edge phase 3, Ada, 6 Nov 2026).
 * Founder 6 Nov (viewer + "Share this flight" screenshot): "we need to continue with this and dashboard as well to
 * harmonise with new great style of the website"; then "and all other pages - help etc".
 * Design: Vera, team/vera_light_sporty_notes.md (direction B tokens). Tokens and Barlow come from css/edge.css.
 *
 * ONE file, byte-identical in the three phase-3 packs (20261106_edge_p3a dashboard, _p3b viewer, _p3c remaining
 * pages), so they can be published in any order. Opt-in only: every rule sits under body.edge-app, which a page
 * gets from its own PHP edit. Nothing here styles a page that does not carry the class.
 *
 *   body.edge-app              the legacy app header (includes/nav.php .navbar: Download App, Admin, More, user
 *                              menu - every item kept, restyled to the public Edge menu), legacy footer, buttons,
 *                              forms, modals, alerts
 *   body.edge-app .dashboard-layout   pilot dashboard + pages that reuse its layout (My devices, upload, claim)
 *   body.edge-viewer           flight viewer (view_session_v2.php); the map stays satellite/terrain imagery
 *   body.edge-form             sign-in / register / password / verify and other single-card forms (p3c)
 *
 * How the dashboard is repainted: dashboard.css, view_session/_styles.php and the tab templates were swept in Oct
 * 2026 (harmony_sweep.py) so every surface, ink, line and radius reads var(--pb-*, <original>). With HP_HARMONY
 * off (prod) those variables are undefined and the originals apply. This file defines ONLY the neutral ones
 * (surfaces, ink, primary, lines, scrim) with Edge values; --pb-font stays undefined so the mono number fallbacks
 * survive (fonts are set per component); radii are set per component, because the radius
 * variables also round the dots, avatars and switches. The status variables (--pb-ok, --pb-attention,
 * --pb-not-recording, --pb-stopped, --pb-climb and their tints) are deliberately NOT defined: every status keeps
 * exactly the colour it has today. No colour here suggests a safety state.
 * Rules: yellow #FFD21F only as a fill with ink text; secondary buttons are black outlines; numbers stay mono;
 * absent values stay an em dash in ink 2 (never coloured); pressure left #0E7490 / right #C2410C. */

/* ===================================================================== 0. tokens */
body.edge-app {
  --pb-bg: #F5F5F2;
  --pb-surface-1: #FFFFFF;
  --pb-surface-1-a96: rgba(255, 255, 255, .97);
  --pb-ink: #0B0D10;
  --pb-ink-2: #4A4F57;
  --pb-primary: #0B0D10;
  --pb-on-primary: #FFFFFF;
  --pb-live-well: #F5F5F2;
  --pb-empty-well: #F5F5F2;
  --pb-line: #E3E3DE;
  --pb-bw: 1px;
  --pb-shadow-flat: none;
  --pb-scrim: rgba(255, 255, 255, .96);   /* map toolbar + glass panels over imagery: near-solid white */
  --pb-focus: #0B0D10;
  /* the pre-sweep names the unswept rules still read */
  --font-sans: var(--e-body);
  --font-heading: var(--e-head);
  --bg-primary: #F5F5F2;
  --bg-card: #FFFFFF;
  --color-bg: #F5F5F2;
  --text-primary: #0B0D10;
  --text-secondary: #4A4F57;
  --border-color: #E3E3DE;
  --border-strong: #C9C9C2;
  --surface-tint: #F5F5F2;
  --surface-inset: #F5F5F2;
  --tint-bg-1: #F5F5F2;
  --tint-ink-1: #4A4F57;
  --tint-ink-1s: #0B0D10;
  --tint-line-1: #E3E3DE;
  --radius: 6px;
  --radius-sm: 4px;
  --chart-wing-left: #0E7490;
  --chart-wing-right: #C2410C;
  font-family: var(--e-body);
  color: var(--e-ink);
  background: #F5F5F2;
}
body.edge-app :focus-visible { outline: 3px solid var(--e-ink); outline-offset: 2px; }

/* ===================================================================== 1. app header (legacy .navbar markup) */
/* Same look as the public Edge menu (.sc-nav in edge.css): white bar, ink links in Barlow Condensed capitals, a
   4 px black rule (drawn inside the 64 px bar, so every offset that counts on 64 px still holds), yellow fill for
   the one primary action, ink-outlined user button, white dropdowns with a 2 px ink edge. */
body.edge-app .navbar {
  background: #fff; color: var(--e-ink); border-bottom: 0;
  box-shadow: inset 0 -4px 0 var(--e-ink); backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.edge-app .navbar-logo { filter: brightness(0); }
body.edge-app .navbar-link {
  font-family: var(--e-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.1rem; color: var(--e-ink); border-radius: var(--e-r); background: none;
}
body.edge-app .navbar-link:hover { color: var(--e-ink); background: var(--e-ground); }
body.edge-app .navbar-links .navbar-link.active {
  color: var(--e-ink); font-weight: 700; background: none; border-radius: 0; box-shadow: inset 0 -4px 0 var(--e-act);
}
body.edge-app .navbar-links .navbar-link.active::after { display: none; }
body.edge-app .navbar-links .btn,
body.edge-app .navbar-actions .btn-primary {
  background: var(--e-act); border: 2px solid var(--e-act); color: var(--e-on-act); border-radius: var(--e-r);
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem;
  min-height: 40px; box-shadow: none;
}
body.edge-app .navbar-links .btn:hover,
body.edge-app .navbar-actions .btn-primary:hover { background: var(--e-act-press); border-color: var(--e-act-press); color: var(--e-on-act); }
body.edge-app .navbar-actions .btn-ghost,
body.edge-app .navbar-actions .btn-secondary {
  background: transparent; border: 2px solid var(--e-ink); color: var(--e-ink); border-radius: var(--e-r);
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem;
}
body.edge-app .navbar-user-btn {
  color: var(--e-ink); border: 2px solid var(--e-ink); border-radius: 999px; background: #fff; font-family: var(--e-body); font-weight: 600;
}
body.edge-app .navbar-user-btn:hover { background: var(--e-ground); border-color: var(--e-ink); }
body.edge-app .navbar-avatar { background: var(--e-act); color: var(--e-on-act); font-family: var(--e-head); font-weight: 700; }
body.edge-app .navbar-user-name { color: var(--e-ink); }
body.edge-app .navbar-dropdown {
  background: #fff; border: 2px solid var(--e-ink); border-radius: var(--e-r-card);
  box-shadow: 0 18px 36px -18px rgba(11, 13, 16, .45);
}
body.edge-app .navbar-dropdown-item { color: var(--e-ink); border-radius: var(--e-r); font-family: var(--e-body); font-weight: 500; }
body.edge-app .navbar-dropdown-item svg { color: var(--e-ink2); }
body.edge-app .navbar-dropdown-item:hover { background: var(--e-ground); color: var(--e-ink); }
body.edge-app .navbar-dropdown-item.active { color: var(--e-ink); font-weight: 700; box-shadow: inset 4px 0 0 var(--e-act); background: none; }
body.edge-app .navbar-dropdown-item.danger { color: var(--e-danger); }
body.edge-app .navbar-dropdown-divider { background: var(--e-line); }
body.edge-app .navbar-toggle { color: var(--e-ink); border: 2px solid var(--e-ink); border-radius: var(--e-r); background: #fff; }
body.edge-app .navbar-mobile { background: #fff; border-bottom: 4px solid var(--e-ink); box-shadow: 0 24px 40px -24px rgba(11, 13, 16, .5); }
body.edge-app .navbar-mobile .navbar-link { font-size: 1.25rem; }
body.edge-app .navbar-mobile .navbar-link.active { box-shadow: inset 5px 0 0 var(--e-act); }
body.edge-app .navbar-mobile a[style*="color"] { color: var(--e-ink) !important; }   /* inline primary-600 link: ink */
body.edge-app .navbar-mobile div[style*="border-top"] { border-top-color: var(--e-line) !important; }
body.edge-app .navbar-mobile-account { border-bottom-color: var(--e-line); }

/* ===================================================================== 2. legacy footer (pages that show it) */
body.edge-app .footer { background: #fff; color: var(--e-ink2); border-top: 8px solid var(--e-ink); font-family: var(--e-body); }
body.edge-app .footer-heading { color: var(--e-ink); font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
body.edge-app .footer a, body.edge-app .footer-links a { color: var(--e-ink2); }
body.edge-app .footer a:hover { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; }
body.edge-app .footer-bottom { border-top-color: var(--e-line); color: var(--e-ink2); }
body.edge-app .footer-lang-active { color: var(--e-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--e-act); text-decoration-thickness: 4px; }
body.edge-app .footer .form-input { background: #fff; color: var(--e-ink); border: 2px solid var(--e-field); border-radius: var(--e-r); }

/* ===================================================================== 3. shared components */
body.edge-app main h1, body.edge-app main h2,
body.edge-app .page-title, body.edge-app .modal-title {
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--e-ink);
}
body.edge-app main h3, body.edge-app main h4 { font-family: var(--e-body); font-weight: 700; color: var(--e-ink); letter-spacing: 0; }

/* primary action: yellow fill, ink text */
body.edge-app .btn-primary, body.edge-app .btn-primary-sm, body.edge-app .btn-sm-primary,
body.edge-app .btn-feed-primary, body.edge-app .feed-upload-btn, body.edge-app .btn-accent {
  background: var(--e-act); border: 2px solid var(--e-act); color: var(--e-on-act); box-shadow: none; border-radius: var(--e-r);
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
body.edge-app .btn-primary:hover, body.edge-app .btn-primary-sm:hover, body.edge-app .btn-sm-primary:hover,
body.edge-app .btn-feed-primary:hover, body.edge-app .feed-upload-btn:hover, body.edge-app .btn-accent:hover {
  background: var(--e-act-press); border-color: var(--e-act-press); color: var(--e-on-act); transform: none; box-shadow: none;
}
body.edge-app .btn-primary svg, body.edge-app .feed-upload-btn svg, body.edge-app .btn-feed-primary svg { color: var(--e-on-act); stroke: currentColor; }
/* secondary: black outline */
body.edge-app .btn-secondary, body.edge-app .btn-secondary-sm, body.edge-app .btn-sm-secondary,
body.edge-app .btn-feed-secondary, body.edge-app .btn-outline, body.edge-app .btn-ghost {
  background: #fff; border: 2px solid var(--e-ink); color: var(--e-ink); box-shadow: none; border-radius: var(--e-r);
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
body.edge-app .btn-secondary:hover, body.edge-app .btn-secondary-sm:hover, body.edge-app .btn-sm-secondary:hover,
body.edge-app .btn-feed-secondary:hover, body.edge-app .btn-outline:hover, body.edge-app .btn-ghost:hover {
  background: var(--e-ink); border-color: var(--e-ink); color: #fff; transform: none;
}
body.edge-app .btn-text { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.edge-app .btn-text-danger, body.edge-app .btn-danger { color: var(--e-danger); }
body.edge-app .btn-danger { background: #fff; border: 2px solid var(--e-danger); border-radius: var(--e-r); }

/* forms */
body.edge-app .form-input, body.edge-app .form-select, body.edge-app .form-textarea,
body.edge-app main select, body.edge-app main textarea,
body.edge-app main input[type="text"], body.edge-app main input[type="email"], body.edge-app main input[type="password"],
body.edge-app main input[type="number"], body.edge-app main input[type="date"], body.edge-app main input[type="search"],
body.edge-app main input[type="tel"], body.edge-app main input[type="url"] {
  background-color: #fff; color: var(--e-ink); border: 2px solid var(--e-field); border-radius: var(--e-r); font-family: var(--e-body);
}
body.edge-app .form-input:focus, body.edge-app main select:focus, body.edge-app main textarea:focus, body.edge-app main input:focus {
  border-color: var(--e-ink); box-shadow: 0 0 0 3px rgba(11, 13, 16, .18); outline: none;
}
body.edge-app .form-input-readonly, body.edge-app main input[readonly] { background-color: var(--e-ground); }
body.edge-app .form-label, body.edge-app main label { color: var(--e-ink); }
body.edge-app .form-hint, body.edge-app .text-muted { color: var(--e-ink2); }
body.edge-app main input[type="checkbox"], body.edge-app main input[type="radio"] { accent-color: var(--e-ink); }

/* alerts keep their meaning (success / error), light Edge cards with a 6 px left edge */
body.edge-app .alert { border-radius: var(--e-r-card); border: 1px solid var(--e-line); border-left-width: 6px; box-shadow: none; }

/* modals */
body.edge-app .modal-overlay { background: rgba(11, 13, 16, .55); backdrop-filter: none; }
body.edge-app .modal-content { background: #fff; border: 0; border-top: 8px solid var(--e-ink); border-radius: var(--e-r-card); box-shadow: 0 30px 60px -30px rgba(11, 13, 16, .6); }
body.edge-app .modal-header { border-bottom: 1px solid var(--e-line); }
body.edge-app .modal-close { color: var(--e-ink); }

/* ===================================================================== 4. dashboard */
body.edge-app .dashboard-layout { background: var(--e-ground); }
body.edge-app .dashboard-layout h1, body.edge-app .dashboard-layout h2 { font-family: var(--e-head); }

/* the rail: white, ink labels, a black rule on its right edge; the selected place gets a yellow marker */
body.edge-app .dash-sidebar { background: #fff; border-right: 4px solid var(--e-ink); }
body.edge-app .dash-sidebar-group {
  color: var(--e-ink2); font-family: var(--e-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
body.edge-app .dash-sidebar-item {
  color: var(--e-ink); font-family: var(--e-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.05rem; border-radius: var(--e-r);
}
body.edge-app .dash-sidebar-item svg { color: var(--e-ink); }
body.edge-app .dash-sidebar-item:hover { background: var(--e-ground); color: var(--e-ink); transform: none; }
body.edge-app .dash-sidebar-item.active {
  background: var(--e-ground); color: var(--e-ink); font-weight: 700; box-shadow: inset 5px 0 0 var(--e-act);
}
body.edge-app .dash-sidebar-item.active::before { display: none; }
body.edge-app .dash-sidebar-item:focus-visible { outline: 3px solid var(--e-ink); outline-offset: -3px; }
body.edge-app .dash-sidebar-item span[style*="font-size"] { text-transform: none; }
body.edge-app .dash-sidebar-bottom { border-top: 1px solid var(--e-line); }
body.edge-app .dash-sidebar-avatar { background: var(--e-act); color: var(--e-on-act); font-family: var(--e-head); font-weight: 700; }
body.edge-app .dash-sidebar-pilot-name { color: var(--e-ink); }

/* phone bar: white, black rule on top, yellow marker on the selected item */
body.edge-app .dash-mobile-bar { background: #fff; border-top: 4px solid var(--e-ink); box-shadow: none; }
body.edge-app .dash-mobile-item { color: var(--e-ink2); font-family: var(--e-body); font-weight: 600; }
body.edge-app .dash-mobile-item.active { color: var(--e-ink); font-weight: 700; box-shadow: inset 0 4px 0 var(--e-act); background: none; }
body.edge-app .dash-mobile-item svg { color: currentColor; }

/* greeting, cards, tiles: white panels with hairline edges; titled bands are ink */
body.edge-app .feed-header, body.edge-app .page-header { background: transparent; border: 0; box-shadow: none; }
body.edge-app .feed-greeting { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; color: var(--e-ink); font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1; }
body.edge-app .feed-card, body.edge-app .settings-section, body.edge-app .wings-card, body.edge-app .wings-equipment-card,
body.edge-app .wings-polar-card, body.edge-app .flights-card, body.edge-app .card, body.edge-app .filters-panel,
body.edge-app .dash-section, body.edge-app .panel-tint, body.edge-app .stat-card {
  background: #fff; border: 1px solid var(--e-line); border-radius: var(--e-r-card); box-shadow: none;
}
body.edge-app .feed-card-label {
  background: var(--e-ink); color: #fff; font-family: var(--e-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: 1.05rem;
}
/* settings: white header under a 2 px ink rule (its meta line carries inline ink-2 colour, so no dark band) */
body.edge-app .settings-section-header-static { background: #fff; border-bottom: 2px solid var(--e-ink); }
/* wings: the tinted header strip and the polar card sit on the ground tone; tinted panels lose the blue */
body.edge-app .wings-card.panel-tint-head > .wings-card-header { background: var(--e-ground); border-bottom: 2px solid var(--e-ink); border-radius: var(--e-r-card) var(--e-r-card) 0 0; }
body.edge-app .wings-polar-card { background: var(--e-ground); }
body.edge-app .logbook-records.panel-tint { background: #fff; }
body.edge-app .settings-section-title { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--e-ink); font-size: 1.25rem; }
body.edge-app .home-tile, body.edge-app .stat-tint-flights, body.edge-app .stat-tint-airtime, body.edge-app .stat-tint-alt,
body.edge-app .stat-tint-dist, body.edge-app .stat-tint-events, body.edge-app .stat-tint-earned {
  background: #fff; border: 1px solid var(--e-line); border-top: 4px solid var(--e-ink); border-radius: 0 0 var(--e-r-card) var(--e-r-card); box-shadow: none;
}
body.edge-app .home-tile-label, body.edge-app .stat-card-label, body.edge-app .logbook-records-label, body.edge-app .achievements-label {
  color: var(--e-ink2); font-family: var(--e-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
body.edge-app .home-tile-value, body.edge-app .stat-card-value, body.edge-app .feed-stat-value { color: var(--e-ink); }
body.edge-app .feed-card-latest { border-left: 0; }
body.edge-app .logbook-year-pill, body.edge-app .lg-pill, body.edge-app .filter-badge, body.edge-app .logbook-record-chip,
body.edge-app .achievement-chip {
  border-radius: var(--e-r); border: 1px solid var(--e-line); background: #fff; color: var(--e-ink);
}
body.edge-app .logbook-year-pill.active, body.edge-app .lg-pill.active, body.edge-app .lg-pill.on {
  background: var(--e-ink); border-color: var(--e-ink); color: #fff;
}
body.edge-app .flights-table th, body.edge-app .lg-table th, body.edge-app .equipment-table th {
  color: var(--e-ink2); font-family: var(--e-body); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 2px solid var(--e-ink); background: #fff;
}
body.edge-app .flights-table td, body.edge-app .lg-table td, body.edge-app .equipment-table td { border-bottom: 1px solid var(--e-line); }
body.edge-app .flight-row:hover, body.edge-app .flights-table tbody tr:hover { background: var(--e-ground); }
body.edge-app .flight-date-primary, body.edge-app .flight-name { color: var(--e-ink); }
body.edge-app .dash-content a:not([class]) { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.edge-app .home-paraguru-title { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; color: var(--e-ink); }
body.edge-app .home-paraguru-row { background: #fff; border: 1px solid var(--e-line); border-radius: var(--e-r-card); }
body.edge-app .settings-chevron, body.edge-app .settings-section-chevron { color: var(--e-ink); }
body.edge-app .prefs-units-toggle, body.edge-app .prefs-radio { border-color: var(--e-ink); }
/* flight pipeline rail (js/flight-pipeline.js): round markers, white tick on the ink fill, visible connector */
body.edge-app .pl-done .pl-dot { background: var(--e-ink); border-color: var(--e-ink); color: #fff; }
body.edge-app .pl-current .pl-dot { border-color: var(--e-ink); background: #fff; }
body.edge-app .pl-line { background: var(--e-line); }
body.edge-app .pl-line-filled { background: var(--e-ink); }

/* ===================================================================== 5. flight viewer */
/* The map is the content: imagery stays. Everything around and over it moves to light Edge cards. The --fv-* dark
   "cinema" tokens are repointed so the map toolbar, the live readout box and the player become white cards with
   ink text, which stay readable over satellite imagery (solid 96 % white behind every label). */
body.edge-viewer {
  --fv-cinema-bg: #FFFFFF;
  --fv-cinema-bg-raise: #FFFFFF;
  --fv-glass-bg: rgba(255, 255, 255, .96);
  --fv-glass-blur: 0px;
  --fv-glass-border: #0B0D10;
  --fv-glass-radius: 6px;
  --fv-ink-max: #0B0D10;
  --fv-ink-hi: #0B0D10;
  --fv-ink-mid: #4A4F57;
  --fv-ink-low: #4A4F57;
  --fv-active-bg: #0B0D10;
  --fv-active-border: #0B0D10;
  --fv-hover-bg: #F5F5F2;
  --fv-slider-accent: #0B0D10;
  --fv-wing: #0B0D10;
  --fv-wing-dim: #E3E3DE;
  --chart-wing-left: #0E7490;
  --chart-wing-right: #C2410C;
  background: var(--e-ground);
}
body.edge-viewer .flight-viewer { background: transparent; }
body.edge-viewer .fv-header-redesigned { background: rgba(255, 255, 255, .97); border-bottom: 4px solid var(--e-ink); backdrop-filter: none; }
body.edge-viewer .fv-header-info h1, body.edge-viewer .fv-title, body.edge-viewer .fv-header-title {
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; color: var(--e-ink); letter-spacing: 0;
}
body.edge-viewer .fv-card, body.edge-viewer .fv-chart-card, body.edge-viewer details.fv-fold, body.edge-viewer .fv-expert {
  background: #fff; border: 1px solid var(--e-line); border-radius: var(--e-r-card); box-shadow: none;
}
body.edge-viewer .fv-card-label { color: var(--e-ink); font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
body.edge-viewer .fv-back-link { color: var(--e-ink); }
/* map toolbar + overlays: white cards with an ink edge over the imagery; the selected option is an ink fill */
body.edge-viewer .fv-map-toolbar { border: 2px solid var(--e-ink); border-radius: var(--e-r-card); box-shadow: 0 8px 20px -10px rgba(11, 13, 16, .55); }
body.edge-viewer .fv-toolbar-btn { color: var(--e-ink); font-family: var(--e-body); font-weight: 600; border-radius: var(--e-r); }
body.edge-viewer .fv-toolbar-btn.active { color: #fff; background: var(--e-ink); box-shadow: none; }
body.edge-viewer .fv-toolbar-tag { color: var(--e-ink2); }
body.edge-viewer .glass-panel { border: 2px solid var(--e-ink); border-radius: var(--e-r-card); box-shadow: 0 8px 20px -10px rgba(11, 13, 16, .55); }
/* player: white bar, yellow play button with an ink glyph */
body.edge-viewer .fv-playback { border-top: 1px solid var(--e-line); }
body.edge-viewer .fv-play-btn { background: var(--e-act); color: var(--e-on-act); border: 2px solid var(--e-act); }
body.edge-viewer .fv-play-btn:hover { background: var(--e-act-press); }
body.edge-viewer .fv-step-btn { color: var(--e-ink); border-color: var(--e-ink); }
/* "How did it feel?": ink band, white words (the band fill is the ink primary; its words read the ink token) */
body.edge-viewer .fv-feel-card { border: 1px solid var(--e-line); border-top: 0; border-radius: var(--e-r-card); }
body.edge-viewer .fv-feel-title { color: #fff; font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.6rem; }
body.edge-viewer .fv-feel-sub { color: rgba(255, 255, 255, .9); }
body.edge-viewer .fv-feel-text:focus { border-color: var(--e-ink); }
/* text links inside the viewer: ink with a thick underline (were the old cyan) */
body.edge-viewer .flight-viewer a:not([class*="btn"]):not(.fv-back-link) { color: var(--e-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* inflation bars: left / right keep their own colours (the right bar read the surface-3 variable) */
body.edge-viewer .fv-infl-fill-left { background: var(--chart-wing-left); }
body.edge-viewer .fv-infl-fill-right { background: var(--chart-wing-right); }
body.edge-viewer .fv-stat-pill-value, body.edge-viewer .fv-hud-value, body.edge-viewer .fv-time-display { color: var(--e-ink); }

/* ===================================================================== 6. remaining pages (p3c) */
/* page headers built from pages.css (.hero-sm), on pages with or without a <main> element */
body.edge-app .hero-sm { background: #fff; border-bottom: 8px solid var(--e-ink); }
body.edge-app .hero-sm h1, body.edge-app .section > .container > h1, body.edge-app .section > .container > h2 {
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--e-ink); line-height: 1;
}
body.edge-app .hero-sm h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
body.edge-app .hero-sm .text-muted, body.edge-app .hero-sm .hero-subtitle { color: var(--e-ink2); }
body.edge-app .card { border-radius: 0 0 var(--e-r-card) var(--e-r-card); border-top: 6px solid var(--e-ink); }
body.edge-app .section a:not(.btn):not([class*="btn-"]), body.edge-app .container a.text-link, body.edge-app a.text-link {
  color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
body.edge-app .text-link:hover { text-decoration-color: var(--e-act); }

/* legal pages (privacy, terms): long reading text on white */
body.edge-doc .prose { color: var(--e-ink); font-family: var(--e-body); font-size: 1.0625rem; line-height: 1.65; }
body.edge-doc .section { background: #fff; }
body.edge-doc .section .prose h2 { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; font-size: 1.7rem !important; /* beats edge-pages.css .section h2 clamp */ margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--e-line); color: var(--e-ink); }
body.edge-doc .prose h3 { font-family: var(--e-body); font-weight: 700; color: var(--e-ink); }
body.edge-doc .prose a { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* sign-in, register, password, verify, unsubscribe: one white card under a black rule on the ground tone */
body.edge-form .auth-container { background: var(--e-ground); }
body.edge-form .auth-card {
  background: #fff; border: 1px solid var(--e-line); border-top: 8px solid var(--e-ink); border-radius: 0 0 var(--e-r-card) var(--e-r-card); box-shadow: none;
}
body.edge-form .auth-card h1, body.edge-form .auth-card h2 {
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--e-ink); font-size: 2.1rem; line-height: 1;
}
body.edge-form .auth-card .btn-block { min-height: 52px; font-size: 1.15rem; }
body.edge-form .divider-text { color: var(--e-ink2); }
body.edge-form .divider-text::before, body.edge-form .divider-text::after { background: var(--e-line); border-color: var(--e-line); }
body.edge-form .password-toggle { color: var(--e-ink); }
body.edge-form .checkbox-label { color: var(--e-ink); }

/* ParaGuru chat page: chrome only (header, frame, buttons); the chat internals keep their own styles */
body.edge-guru { background: var(--e-ground); }
body.edge-guru .paraguru-hero-icon { background: var(--e-ink); border-radius: var(--e-r-card); }
body.edge-guru .paraguru-hero h1 { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--e-ink); }

/* dark hero bands painted inline (support, support ticket): white band, ink words, 8 px black rule */
body.edge-app .hero[style*="gradient"] { background: #fff !important; border-bottom: 8px solid var(--e-ink); }
body.edge-app .hero[style*="gradient"] h1, body.edge-app .hero[style*="gradient"] [style*="color"] { color: var(--e-ink) !important; }
body.edge-app .hero[style*="gradient"] .hero-subtitle { color: var(--e-ink2) !important; }

/* flight upload: page header + device strip */
body.edge-app .upload-hero { background: #fff; border-bottom: 4px solid var(--e-ink); }
body.edge-app .upload-hero h1, body.edge-app .recent-uploads h2 {
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--e-ink); line-height: 1;
}
body.edge-app .upload-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
body.edge-app .upload-hero .breadcrumb { background: var(--e-ground); border-radius: var(--e-r); }
body.edge-app .upload-hero .breadcrumb a, body.edge-app .upload-device-info a, body.edge-app .recent-uploads a { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.edge-app .upload-device-info { background: #fff; border: 1px solid var(--e-line); border-radius: var(--e-r-card); }
body.edge-app .upload-device-info h3 { font-family: var(--e-body); font-weight: 700; color: var(--e-ink); }
body.edge-app .upload-device-info .device-details span, body.edge-app .upload-device-info .device-details code { color: var(--e-ink); }

/* Download the app (shop r3 markup, s-*): Edge type and ink links; layout unchanged */
body.edge-dl .s-main { background: #fff; }
body.edge-dl .s-dl h1 { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: .95; font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--e-ink); }
body.edge-dl .s-dl h2, body.edge-dl .s-dl h3 { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--e-ink); font-size: 1.6rem; }
body.edge-dl .s-dl, body.edge-dl .s-lead, body.edge-dl .s-muted { font-family: var(--e-body); }
body.edge-dl .s-muted { color: var(--e-ink2); }
body.edge-dl .s-dl-row { border-color: var(--e-line); }
body.edge-dl .s-dl-grid { border-top: 4px solid var(--e-ink); }
body.edge-dl .s-dl a, body.edge-dl .s-textlink { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.edge-dl .s-shot, body.edge-dl .s-ph { background: var(--e-ground); border: 1px solid var(--e-line); border-radius: var(--e-r-card); }

/* /join (standalone, scanned on a phone): ground tone, white card under a black rule, yellow send button */
body.edge-join { background: var(--e-ground); color: var(--e-ink); font-family: var(--e-body); }
body.edge-join .top img { filter: brightness(0); }
body.edge-join .langs a { color: var(--e-ink); border: 2px solid var(--e-ink); border-radius: var(--e-r); }
body.edge-join .langs strong { color: var(--e-on-act); background: var(--e-act); border: 2px solid var(--e-ink); border-radius: var(--e-r); }
body.edge-join .card { background: #fff; border: 1px solid var(--e-line); border-top: 8px solid var(--e-ink); border-radius: 0 0 var(--e-r-card) var(--e-r-card); }
body.edge-join .eyebrow { color: var(--e-ink2); }
body.edge-join h1 { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; font-size: 2.2rem; line-height: 1; }
body.edge-join .sub, body.edge-join .consent, body.edge-join .ok p { color: var(--e-ink2); }
body.edge-join input[type=email], body.edge-join input[type=text] { border: 2px solid var(--e-field); border-radius: var(--e-r); }
body.edge-join input[type=email]:focus, body.edge-join input[type=text]:focus { outline: 3px solid var(--e-ink); border-color: var(--e-ink); }
body.edge-join .opt-row { border-color: var(--e-line); border-radius: var(--e-r-card); }
body.edge-join .opt-row:has(input:checked) { border-color: var(--e-ink); background: var(--e-ground); box-shadow: inset 4px 0 0 var(--e-act); }
body.edge-join .opt-row input, body.edge-join .consent input { accent-color: var(--e-ink); }
body.edge-join .opt-row span span { color: var(--e-ink2); }
body.edge-join .opt { color: var(--e-ink2); }
body.edge-join button { background: var(--e-act); color: var(--e-on-act); border-radius: var(--e-r); font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; }
body.edge-join button:active { background: var(--e-act-press); }
body.edge-join .ok a { color: var(--e-ink); text-decoration: underline; text-decoration-thickness: 2px; }
body.edge-join .foot { color: var(--e-ink2); }
body.edge-join .foot a { color: var(--e-ink); }

/* newsletter confirmation (standalone): ground tone, ink logo and link (inline styles, hence !important) */
body.edge-nlc { background: var(--e-ground) !important; font-family: var(--e-body) !important; color: var(--e-ink) !important; }
body.edge-nlc img { filter: brightness(0); }
body.edge-nlc a { color: var(--e-ink) !important; text-decoration: underline; text-decoration-thickness: 2px; }
/* ===================================================================== 8. Edge r2 (founder 7 Nov 2026; plan 92 2a)
 * Sky (--ed-accent, tokens in css/edge.css :root) for the selected control, links, icon glyphs, toggles and the focus
 * ring; yellow stays the primary action (fill, ink text); condensed capitals only for h1 / h2 and the menu - buttons,
 * labels and values in Barlow normal width; no ink-filled control (ink = text, headlines, thick rules; titled bands
 * stay ink). --pb-primary is the shared "accent" role (the app's PbTokens.primary), so the legacy rules that read it -
 * selected pills, switches, sliders, the speed and legend options, link buttons - go sky with it. */
body.edge-app {
  --pb-primary: var(--ed-accent);
  --pb-primary-a85: rgba(10, 102, 194, .85);
  --pb-focus: var(--ed-accent);
}
body.edge-app :focus-visible { outline-color: var(--ed-accent); }
body.edge-app .dash-sidebar-item:focus-visible { outline-color: var(--ed-accent); }

/* app header: the current item's marker is sky; hover the sky tint; glyphs sky */
body.edge-app .navbar-link:hover { color: var(--ed-accent-press); background: var(--ed-accent-tint); }
body.edge-app .navbar-links .navbar-link.active { box-shadow: inset 0 -4px 0 var(--ed-accent); }
body.edge-app .navbar-mobile .navbar-link.active { box-shadow: inset 5px 0 0 var(--ed-accent); }
body.edge-app .navbar-dropdown-item svg { color: var(--ed-accent); }
body.edge-app .navbar-dropdown-item:hover { background: var(--ed-accent-tint); color: var(--ed-accent-press); }
body.edge-app .navbar-dropdown-item.active { box-shadow: inset 4px 0 0 var(--ed-accent); }
body.edge-app .navbar-mobile a[style*="color"] { color: var(--ed-accent) !important; }
body.edge-app .navbar-user-btn:hover { background: var(--ed-accent-tint); }
body.edge-app .navbar-avatar, body.edge-app .dash-sidebar-avatar { background: var(--ed-accent); color: #fff; font-family: var(--e-body); font-weight: 700; }   /* sky disc, white initial: one look with the app (Vera 97 M4) */
body.edge-app .footer a:hover { color: var(--ed-accent); }
body.edge-app .footer-lang-active { text-decoration-color: var(--ed-accent); }
/* legacy footer (the dashboard pages): headings are labels; the newsletter button is sky like the public footer's,
 * so the page keeps one yellow */
body.edge-app .footer-heading { font-family: var(--e-body); letter-spacing: .08em; font-size: .875rem; }
body.edge-app .footer .btn-primary { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }
body.edge-app .footer .btn-primary:hover { background: var(--ed-accent-press); border-color: var(--ed-accent-press); color: #fff; }

/* buttons: Barlow normal width, sentence case as written; primary stays yellow; secondary is a sky outline, sky tint on hover */
body.edge-app .btn-primary, body.edge-app .btn-primary-sm, body.edge-app .btn-sm-primary,
body.edge-app .btn-feed-primary, body.edge-app .feed-upload-btn, body.edge-app .btn-accent,
body.edge-app .btn-secondary, body.edge-app .btn-secondary-sm, body.edge-app .btn-sm-secondary,
body.edge-app .btn-feed-secondary, body.edge-app .btn-outline, body.edge-app .btn-ghost {
  font-family: var(--e-body); font-weight: 700; text-transform: none; letter-spacing: 0;
}
body.edge-app .btn-secondary, body.edge-app .btn-secondary-sm, body.edge-app .btn-sm-secondary,
body.edge-app .btn-feed-secondary, body.edge-app .btn-outline, body.edge-app .btn-ghost {
  border-color: var(--ed-accent); color: var(--ed-accent);
}
body.edge-app .btn-secondary:hover, body.edge-app .btn-secondary-sm:hover, body.edge-app .btn-sm-secondary:hover,
body.edge-app .btn-feed-secondary:hover, body.edge-app .btn-outline:hover, body.edge-app .btn-ghost:hover {
  background: var(--ed-accent-tint); border-color: var(--ed-accent-press); color: var(--ed-accent-press);
}
body.edge-app .btn-text { color: var(--ed-accent); }
/* the menu's own buttons keep the menu's condensed capitals */
body.edge-app .navbar-actions .btn-primary, body.edge-app .navbar-links .btn,
body.edge-app .navbar-actions .btn-ghost, body.edge-app .navbar-actions .btn-secondary {
  font-family: var(--e-head); text-transform: uppercase; letter-spacing: .04em;
}

/* dashboard (old tabs): the rail and phone bar are navigation (condensed stays); selected marker + glyphs sky */
body.edge-app .dash-sidebar-item svg { color: var(--ed-accent); }
body.edge-app .dash-sidebar-item:hover { background: var(--ed-accent-tint); color: var(--ed-accent-press); }
body.edge-app .dash-sidebar-item.active { box-shadow: inset 5px 0 0 var(--ed-accent); }
body.edge-app .dash-mobile-item.active { color: var(--ed-accent); box-shadow: inset 0 4px 0 var(--ed-accent); }
body.edge-app .feed-card-label { font-family: var(--e-body); font-weight: 700; letter-spacing: .08em; font-size: .95rem; }
body.edge-app .home-paraguru-title { font-family: var(--e-body); text-transform: none; }
body.edge-app .logbook-year-pill.active, body.edge-app .lg-pill.active, body.edge-app .lg-pill.on {
  background: var(--ed-accent); border-color: var(--ed-accent); color: #fff;
}
body.edge-app .dash-content a:not([class]) { color: var(--ed-accent); }
body.edge-app .settings-chevron, body.edge-app .settings-section-chevron { color: var(--ed-accent); }
body.edge-app .prefs-units-toggle, body.edge-app .prefs-radio { border-color: var(--ed-accent); }
body.edge-app .pl-done .pl-dot { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }
body.edge-app .pl-current .pl-dot { border-color: var(--ed-accent); }
body.edge-app .pl-line-filled { background: var(--ed-accent); }

/* flight viewer: the map toolbar's selected option is sky; card labels Barlow; links and step glyphs sky */
body.edge-viewer .fv-toolbar-btn.active { background: var(--ed-accent); color: #fff; }
body.edge-viewer .fv-toolbar-btn:not(.active):hover { background: var(--ed-accent-tint); color: var(--ed-accent-press); }
body.edge-viewer .fv-card-label { font-family: var(--e-body); letter-spacing: .06em; font-size: .95rem; }
body.edge-viewer .fv-back-link { color: var(--ed-accent); }
body.edge-viewer .fv-step-btn { color: var(--ed-accent); border-color: var(--ed-accent); }
body.edge-viewer .flight-viewer a:not([class*="btn"]):not(.fv-back-link) { color: var(--ed-accent); }
/* "How did it feel?": the band is the sky tint with an ink title (was the ink primary) */
body.edge-viewer .fv-feel-head { background: var(--ed-accent-tint); color: var(--ed-ink); }
body.edge-viewer .fv-feel-title { color: var(--ed-ink); }
body.edge-viewer .fv-feel-sub { color: var(--ed-ink2); }
body.edge-viewer .fv-feel-text:focus { border-color: var(--ed-accent); }

/* remaining pages */
body.edge-app .section a:not(.btn):not([class*="btn-"]), body.edge-app .container a.text-link, body.edge-app a.text-link { color: var(--ed-accent); }
body.edge-app .text-link:hover { color: var(--ed-accent-press); text-decoration-color: currentColor; }
body.edge-doc .prose a { color: var(--ed-accent); }
body.edge-guru .paraguru-hero-icon { background: var(--ed-accent); }
body.edge-app .upload-hero .breadcrumb a, body.edge-app .upload-device-info a, body.edge-app .recent-uploads a { color: var(--ed-accent); }
body.edge-dl .s-dl h3 { font-family: var(--e-body); text-transform: none; letter-spacing: 0; font-size: 1.3rem; }
body.edge-dl .s-dl a, body.edge-dl .s-textlink { color: var(--ed-accent); }
body.edge-join .langs a { color: var(--ed-accent); border-color: var(--ed-accent); }
body.edge-join .opt-row:has(input:checked) { border-color: var(--ed-accent); background: var(--ed-accent-tint); box-shadow: inset 4px 0 0 var(--ed-accent); }
body.edge-join button { font-family: var(--e-body); text-transform: none; letter-spacing: 0; }
body.edge-join .ok a, body.edge-join .foot a { color: var(--ed-accent); }
body.edge-nlc a { color: var(--ed-accent) !important; }
