/* ==========================================================================
   KLC Rooster - design system
   --------------------------------------------------------------------------
   Layered on top of Bootstrap 4.5.3, which supplies the grid, the utility
   classes and the component markup contract. Everything visual below is ours:
   tokens first, then base, layout, and components in the order they nest.

   Conventions
     - Colour, spacing, radius, elevation and motion come from --klc-* tokens.
       A literal colour in a rule is a bug unless it is a third-party brand.
     - Every colour token is declared three times: light in :root, dark under
       prefers-color-scheme, dark again under [data-theme="dark"] so an explicit
       choice wins. The two dark blocks must stay identical.
     - Interactive targets reach 44px. Bootstrap's defaults do not.

   Stacking order, so additions land in the right place
     1020 header            1030 bottom bar        1032 push bell
     1021 refresh/offline   1035 TSAT widget       1037 nav scrim
     1038 nav rail          1040 modal backdrop (BS)  1050 modal (BS)
     1055 push prompt       1060 photo lightbox

   Brand reference
     KLM BLUE        #00A1DE      KLM LIGHT BLUE 1  #5EB6E4
     KLM DARK BLUE 1 #005882      KLM LIGHT BLUE 2  #C2DEEA
     KLM DARK BLUE 2 #003145      KLM ORANGE        #E37222
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Light is the default. Dark redefines the same names and nothing else, so a
   component is written once and themes itself.
   -------------------------------------------------------------------------- */

:root {
  /* The system bars. The Android app's WebView does not know them yet on the
     first page after launch, so env() is 0 there until the next page; Capacitor
     sets --safe-area-inset-* from the start. Elsewhere those are not set, and
     env() it is. */
  --klc-safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --klc-safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));

  /* Brand */
  --klc-brand: #00a1de;
  --klc-brand-strong: #0076a5;
  --klc-brand-deep: #005882;
  --klc-brand-soft: #e8f6fc;

  /* The rank chips are filled, so each one needs a ground of its own: night
     blue for the flight deck, brand for the cabin, slate for anything else. */
  --klc-rank-deck: #0d2f4f;
  --klc-rank-cabin: #00a1de;
  --klc-rank-other: #64748b;
  --klc-rank-ink: #ffffff;
  /* The day heading sticks and cards pass underneath it, so its fill has to be
     opaque. brand-soft is a translucent wash in dark mode, which would let the
     cards read through the date. This is the same tint, already composited. */
  --klc-day-band: #e8f6fc;
  --klc-accent: #e37222;
  /* The accent as a foreground: the plain one is a fill, and at 3.1 against
     white it is too light to carry small text or an icon. */
  --klc-accent-strong: #b05616;
  --klc-accent-soft: #fdf1e8;

  /* Which side of the door a colleague is on. Named separately from the text and
     brand colours they borrow here, because the flight deck cannot follow the
     text colour into dark mode: that flips it from the darkest of the three to
     the lightest. */
  --klc-crew-deck: var(--klc-text);
  --klc-crew-cabin: var(--klc-brand-strong);
  /* Not a fill: the deadhead marker is a ring, so it needs a line colour. */
  --klc-crew-dh: var(--klc-text-muted);

  /* Status */
  --klc-success: #16884b;
  /* Small type in green needs more weight than the fill does; matches how
     brand and accent already split. */
  --klc-success-strong: #147e46;
  --klc-success-soft: #e6f5ec;
  --klc-danger: #d13438;
  --klc-danger-strong: #cb3236;
  --klc-danger-soft: #fdecec;
  /* Between the full colour and the ordinary border: enough to carry a whole
     card without turning it into a warning panel. */
  --klc-danger-line: #eaa9ab;
  --klc-warning: #b26a00;
  --klc-warning-strong: #a26000;
  /* Schiphol signs a gate in yellow and the crew read those signs all day. Its
     own pair rather than the warning colour: nothing is wrong, it is where to go. */
  --klc-gate: #ffc72c;
  --klc-gate-ink: #1c1c1c;
  --klc-warning-soft: #fdf3e2;
  --klc-info: #0b6f96;
  --klc-info-soft: #e6f3f9;

  /* Surfaces, from furthest back to furthest forward */
  --klc-bg: #f4f7fa;
  --klc-surface: #ffffff;
  --klc-surface-2: #f8fafc;
  --klc-surface-3: #eef2f6;
  --klc-overlay: rgba(10, 22, 32, 0.55);

  /* Ink */
  --klc-text: #16202a;
  --klc-text-secondary: #55677a;
  --klc-text-muted: #5f7083;
  --klc-text-on-brand: #ffffff;

  /* Lines */
  --klc-border: #e2e8f0;
  --klc-border-strong: #cbd5e1;

  /* Shape */
  --klc-radius-sm: 8px;
  --klc-radius: 12px;
  --klc-radius-lg: 18px;
  --klc-radius-pill: 999px;

  /* Elevation. Deliberately soft - this is a utility app, not a landing page. */
  --klc-shadow-sm: 0 1px 2px rgba(16, 32, 48, 0.06), 0 1px 3px rgba(16, 32, 48, 0.05);
  --klc-shadow: 0 2px 4px rgba(16, 32, 48, 0.05), 0 6px 16px rgba(16, 32, 48, 0.07);
  --klc-shadow-lg: 0 8px 20px rgba(16, 32, 48, 0.09), 0 24px 48px rgba(16, 32, 48, 0.12);

  /* Motion */
  --klc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --klc-fast: 120ms;
  --klc-normal: 200ms;

  /* Type */
  --klc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --klc-font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo,
    Consolas, "Liberation Mono", monospace;

  --klc-sidebar-width: 16rem;
  --klc-bottomnav-height: 3.25rem;
  /* The page gutter. Read both by the container that sets it and by anything
     that has to step out through it, so the two cannot drift apart. */
  --klc-gutter: 1rem;
  /* The full height of the app header, safe area included: a 2.75rem control
     between 0.5rem of padding. sidebar.js measures the header for real as soon as
     it runs and overwrites this, so the value here is only what the first paint
     uses - enough that the day headings do not start out too low and then jump. */
  --klc-header-height: 3.75rem;

  color-scheme: light;
}

/* Bootstrap's own palette, which its components read, follows our tokens. Its
   dark values only switch under data-bs-theme, which this app does not use. */
:root {
  --bs-body-color: var(--klc-text);
  --bs-body-bg: var(--klc-surface);
  --bs-emphasis-color: var(--klc-text);
  --bs-secondary-color: var(--klc-text-secondary);
  --bs-tertiary-color: var(--klc-text-muted);
  --bs-secondary-bg: var(--klc-surface-3);
  --bs-tertiary-bg: var(--klc-surface-2);
  --bs-border-color: var(--klc-border);
  --bs-border-color-translucent: var(--klc-border);
  --bs-link-color: var(--klc-brand-strong);
  --bs-link-hover-color: var(--klc-brand-deep);
  --bs-form-valid-color: var(--klc-success);
  --bs-form-valid-border-color: var(--klc-success);
  --bs-form-invalid-color: var(--klc-danger);
  --bs-form-invalid-border-color: var(--klc-danger);

  /* Triplets Bootstrap mixes with an opacity; keep them equal to the tokens. */
  --bs-body-color-rgb: 22, 32, 42;
  --bs-emphasis-color-rgb: 22, 32, 42;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-secondary-bg-rgb: 238, 242, 246;
  --bs-tertiary-bg-rgb: 248, 250, 252;
  --bs-link-color-rgb: 0, 118, 165;
}

/* The dark palette is declared once and referenced twice: once for people who
   have never touched the switch (OS preference), once for people who have
   (data-theme on <html>). The :not() guard lets an explicit light choice win
   on a device that is set to dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --klc-brand: #33b5e6;
    --klc-brand-strong: #5cc4ea;
    --klc-brand-deep: #9bd9f2;
    --klc-brand-soft: rgba(51, 181, 230, 0.14);

    /* Night blue is a shade of the card here, so the flight deck has to
       lift off it. Cabin and the rest already carry on a dark ground. */
    --klc-rank-deck: #2b6ca3;
  --klc-day-band: #122b37;
    --klc-accent: #f0904a;
    --klc-accent-strong: #f0904a;
    --klc-accent-soft: rgba(240, 144, 74, 0.14);

    /* Darker than the cabin dot, as it is in light mode, and still 7.6:1 against
       the card - a shade off the 8.6:1 the cabin dot carries, so neither reads as
       the lesser of the two. */
    --klc-crew-deck: #9bb0c2;

    --klc-success: #4ac07d;
    --klc-success-strong: #4ac07d;
    --klc-success-soft: rgba(74, 192, 125, 0.14);
    --klc-danger: #f4777b;
    --klc-danger-strong: #f4777b;
    --klc-danger-soft: rgba(244, 119, 123, 0.14);
    --klc-danger-line: rgba(244, 119, 123, 0.45);
    --klc-warning: #e6a34a;
    --klc-warning-strong: #e6a34a;
    /* The sign stays a sign: yellow with dark type, the same as in the terminal. */
    --klc-gate: #f0bd2e;
    --klc-gate-ink: #1c1c1c;
    --klc-hint-ink: var(--klc-gate-ink);
    --klc-hint-button: rgba(0, 0, 0, 0.14);
    --klc-hint-button-hover: rgba(0, 0, 0, 0.22);
    --klc-warning-soft: rgba(230, 163, 74, 0.14);
    --klc-info: #56b6d9;
    --klc-info-soft: rgba(86, 182, 217, 0.14);

    /* A deep, slightly blue night. Crew read this at 03:00 on a dark flight deck. */
    --klc-bg: #0d141a;
    --klc-surface: #141d25;
    --klc-surface-2: #1a242d;
    --klc-surface-3: #223039;
    --klc-overlay: rgba(0, 0, 0, 0.66);

    --klc-text: #e8eef4;
    --klc-text-secondary: #a3b4c4;
    --klc-text-muted: #8697a5;
    --klc-text-on-brand: #04212e;

    --klc-border: #26333f;
    --klc-border-strong: #35475a;

    --klc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --klc-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --klc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 32px 64px rgba(0, 0, 0, 0.4);

    --bs-body-color-rgb: 232, 238, 244;
    --bs-emphasis-color-rgb: 232, 238, 244;
    --bs-body-bg-rgb: 20, 29, 37;
    --bs-secondary-bg-rgb: 34, 48, 57;
    --bs-tertiary-bg-rgb: 26, 36, 45;
    --bs-link-color-rgb: 92, 196, 234;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --klc-brand: #33b5e6;
  --klc-brand-strong: #5cc4ea;
  --klc-brand-deep: #9bd9f2;
  --klc-brand-soft: rgba(51, 181, 230, 0.14);

  /* Night blue is a shade of the card here, so the flight deck has to
     lift off it. Cabin and the rest already carry on a dark ground. */
  --klc-rank-deck: #2b6ca3;
  --klc-day-band: #122b37;
  --klc-accent: #f0904a;
  --klc-accent-strong: #f0904a;
  --klc-accent-soft: rgba(240, 144, 74, 0.14);

  /* Darker than the cabin dot, as it is in light mode, and still 7.6:1 against
     the card - a shade off the 8.6:1 the cabin dot carries, so neither reads as
     the lesser of the two. */
  --klc-crew-deck: #9bb0c2;

  --klc-success: #4ac07d;
  --klc-success-strong: #4ac07d;
  --klc-success-soft: rgba(74, 192, 125, 0.14);
  --klc-danger: #f4777b;
  --klc-danger-strong: #f4777b;
  --klc-danger-soft: rgba(244, 119, 123, 0.14);
  --klc-danger-line: rgba(244, 119, 123, 0.45);
  --klc-warning: #e6a34a;
  --klc-warning-strong: #e6a34a;
  /* The sign stays a sign: yellow with dark type, the same as in the terminal. */
  --klc-gate: #f0bd2e;
  --klc-gate-ink: #1c1c1c;
  --klc-hint-ink: var(--klc-gate-ink);
  --klc-hint-button: rgba(0, 0, 0, 0.14);
  --klc-hint-button-hover: rgba(0, 0, 0, 0.22);
  --klc-warning-soft: rgba(230, 163, 74, 0.14);
  --klc-info: #56b6d9;
  --klc-info-soft: rgba(86, 182, 217, 0.14);

  --klc-bg: #0d141a;
  --klc-surface: #141d25;
  --klc-surface-2: #1a242d;
  --klc-surface-3: #223039;
  --klc-overlay: rgba(0, 0, 0, 0.66);

  --klc-text: #e8eef4;
  --klc-text-secondary: #a3b4c4;
  --klc-text-muted: #8697a5;
  --klc-text-on-brand: #04212e;

  --klc-border: #26333f;
  --klc-border-strong: #35475a;

  --klc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --klc-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --klc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 32px 64px rgba(0, 0, 0, 0.4);

  --bs-body-color-rgb: 232, 238, 244;
  --bs-emphasis-color-rgb: 232, 238, 244;
  --bs-body-bg-rgb: 20, 29, 37;
  --bs-secondary-bg-rgb: 34, 48, 57;
  --bs-tertiary-bg-rgb: 26, 36, 45;
  --bs-link-color-rgb: 92, 196, 234;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  /* Also paints the area behind the iOS toolbars, which samples the canvas. */
  background-color: var(--klc-bg);
}

body {
  background-color: var(--klc-bg);
  color: var(--klc-text);
  font-family: var(--klc-font);
  font-size: 0.9375rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

::selection {
  background: var(--klc-brand);
  color: var(--klc-text-on-brand);
}

/* In-page links land under the sticky header without this. Settings and Help
   are both built around <a name="..."> jump targets. */
html {
  scroll-behavior: smooth;
}

:root {
  --klc-anchor-offset: calc(6.5rem + var(--klc-safe-top));
}

[id] {
  scroll-margin-top: var(--klc-anchor-offset);
}

@media (min-width: 768px) {
  :root {
    --klc-anchor-offset: calc(7rem + var(--klc-safe-top));
  }
}

hr {
  border: 0;
  border-top: 1px solid var(--klc-border);
  margin: 1.25rem 0;
}

small,
.small {
  font-size: 0.8125rem;
}

code,
kbd,
pre,
samp {
  font-family: var(--klc-font-mono);
}

/* Focus: visible for keyboards, quiet for mice. */
:focus-visible {
  outline: 2px solid var(--klc-brand);
  outline-offset: 2px;
  border-radius: var(--klc-radius-sm);
}

.btn:focus,
.form-control:focus,
.list-group-item-action:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--klc-brand-soft), 0 0 0 1px var(--klc-brand);
}

@media (prefers-reduced-motion: reduce) {
  .colleague-card {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. Typography
   A compact scale. Headings are tight and confident; body stays readable.
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--klc-font);
  color: var(--klc-text);
  font-weight: 650;
  letter-spacing: -0.021em;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h1, .h1 { font-size: 1.75rem; letter-spacing: -0.028em; }
h2, .h2 { font-size: 1.4375rem; }
h3, .h3 { font-size: 1.1875rem; }
h4, .h4 { font-size: 1.0625rem; }
h5, .h5 { font-size: 0.9375rem; }
h6, .h6 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

p {
  margin-bottom: 0.75rem;
  font-weight: 400;
}

a {
  color: var(--klc-brand-strong);
  text-decoration: none !important;
  font-weight: 500;
  transition: color var(--klc-fast) var(--klc-ease);
}

a:hover {
  color: var(--klc-brand-deep);
}

.text-muted {
  color: var(--klc-text-muted) !important;
}

.text-secondary {
  color: var(--klc-text-secondary) !important;
}

.display-4 {
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--klc-text-muted);
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   4. Application shell
   Desktop: a fixed navigation rail beside a centred content column.
   Phone: no rail, a bottom bar for the four screens crew actually use, and
   everything else behind a sheet that slides in from the left.
   -------------------------------------------------------------------------- */

.app {
  display: block;
  min-height: 100vh;
}

/* ---- Rail ---------------------------------------------------------------- */

.nav-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--klc-sidebar-width);
  background-color: var(--klc-surface);
  border-right: 1px solid var(--klc-border);
  display: flex;
  flex-direction: column;
  /* Below the window controls of a resizable iPad window, which the app
     reports (--klc-window-controls-y, 0 everywhere else). */
  padding: calc(0.875rem + var(--klc-safe-top) + var(--klc-window-controls-y, 0px)) 0.75rem
    calc(1rem + var(--klc-safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  /* Below the modal backdrop (1040): a dialog must dim and block the rail,
     which it could not do while the rail sat above it. */
  z-index: 1038;
  transform: translateX(-100%);
  transition: transform var(--klc-normal) var(--klc-ease);
}

body.nav-open .nav-rail {
  transform: translateX(0);
  box-shadow: var(--klc-shadow-lg);
}

@media (min-width: 768px) {
  .nav-rail {
    transform: none;
    box-shadow: none;
  }
}

/* The person heads the rail, under one rule that keeps them apart from the
   destinations below. */
.nav-head {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--klc-border);
}

/* Identity block */
.nav-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--klc-radius);
  /* No frame of its own - it belongs to the header above it, and lights up only
     when you are about to click it. */
  background-color: transparent;
  border: 1px solid transparent;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

.nav-identity:hover,
.nav-identity:focus {
  background-color: var(--klc-surface-2);
}

.nav-identity:hover {
  border-color: var(--klc-brand);
}

.nav-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--klc-surface-3);
  flex: 0 0 auto;
}

.nav-identity-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}

.nav-identity-hint {
  font-size: 0.6875rem;
  color: var(--klc-accent-strong);
  font-weight: 600;
}

.nav-identity-name {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--klc-text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rail links */
/* Two boxes rather than two entries in the list: neither is a screen you read.
   One asks for something, the other hands the app your roster, and both are
   reached for far more often than anything below them. */
.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border-radius: var(--klc-radius);
  border: 1px solid var(--klc-border);
  background-color: var(--klc-surface-2);
  color: var(--klc-text);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color var(--klc-fast) var(--klc-ease),
    background-color var(--klc-fast) var(--klc-ease);
}

.nav-action:hover,
.nav-action:focus {
  border-color: var(--klc-brand-strong);
  color: var(--klc-text);
  text-decoration: none;
}

.nav-action > .bi {
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--klc-brand-strong);
}

.nav-action > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The one that asks carries the warm colour, in the box and on its edge. The
   brand orange itself for the icon: 3.14:1 on the rail, which is the threshold an
   icon answers to rather than the one text does. */
.nav-action.is-support > .bi {
  color: var(--klc-accent);
}

.nav-action.is-support:hover,
.nav-action.is-support:focus,
.nav-action.is-support.is-current {
  border-color: var(--klc-accent-strong);
  background-color: var(--klc-accent-soft);
}

/* That soft fill takes the icon down to 2.83, so on these states it steps back to
   the darkened one. */
.nav-action.is-support:hover > .bi,
.nav-action.is-support:focus > .bi,
.nav-action.is-support.is-current > .bi {
  color: var(--klc-accent-strong);
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-section-quiet {
  margin-top: 1.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--klc-border);
}

.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--klc-text-muted);
  padding: 0 0.75rem 0.375rem;
}

.nav-link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5625rem 0.75rem;
  border-radius: var(--klc-radius-sm);
  color: var(--klc-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color var(--klc-fast) var(--klc-ease),
    color var(--klc-fast) var(--klc-ease);
}

.nav-link-row .bi {
  font-size: 1.0625rem;
  width: 1.25rem;
  flex: 0 0 1.25rem;
  text-align: center;
  color: var(--klc-text-muted);
  transition: color var(--klc-fast) var(--klc-ease);
}

.nav-link-row:hover {
  background-color: var(--klc-surface-3);
  color: var(--klc-text);
}

.nav-link-row:hover .bi {
  color: var(--klc-text-secondary);
}

.nav-link-row.is-current {
  background-color: var(--klc-brand-soft);
  color: var(--klc-brand-deep);
  font-weight: 650;
}

.nav-link-row.is-current .bi {
  color: var(--klc-brand);
}

/* The third group: your own account and the way out. It holds several rows now,
   so it stacks like the sections above it and carries the same rule. */
.nav-footer {
  margin-top: auto;
  padding-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border-top: 1px solid var(--klc-border);
}

/* The roster upload row while its form is submitting. */
.nav-link-row.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.nav-link-signout {
  margin-top: 0.5rem;
}

.nav-link-signout:hover {
  background-color: var(--klc-danger-soft);
  color: var(--klc-danger);
}

.nav-link-signout:hover .bi {
  color: var(--klc-danger);
}

/* Scrim behind the sheet */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: var(--klc-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--klc-normal) var(--klc-ease);
  z-index: 1037;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body.nav-open .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .nav-scrim {
    display: none;
  }
}

/* ---- Content column ------------------------------------------------------ */

#page-content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Room for the bottom bar and the home indicator. */
  padding-bottom: calc(var(--klc-bottomnav-height) + 1rem + var(--klc-safe-bottom));
}

@media (min-width: 768px) {
  #page-content-wrapper {
    margin-left: var(--klc-sidebar-width);
    padding-bottom: 0;
  }
}

#page-content-wrapper > .container-fluid {
  max-width: 64rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--klc-gutter);
  padding-right: var(--klc-gutter);
  flex: 1 0 auto;
}

@media (min-width: 768px) {
  :root {
    --klc-gutter: 2rem;
  }
}

/* --------------------------------------------------------------------------
   5. Header
   Page title, theme switch, and a strip that answers "what is next?" without
   making anyone read a list.
   -------------------------------------------------------------------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: var(--klc-surface);
  border-bottom: 1px solid var(--klc-border);
  /* Where a platform reports a top inset, the header's background fills it and
     its controls sit below. iOS reports 0 with an opaque status bar. */
  padding-top: var(--klc-safe-top);
  /* No backdrop-filter here: it would create a stacking context that traps the
     header's own dropdowns below the bottom bar. z-index alone is enough. */
}

/* In the iOS app the header stays put while the page is pulled down to reload,
   with the app's spinner below it, as under a native navigation bar. Sticky
   would travel down with the page; fixed holds still. */
html.ios-app .app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

html.ios-app #page-content-wrapper {
  padding-top: var(--klc-header-height);
}

@media (min-width: 768px) {
  html.ios-app .app-header {
    left: var(--klc-sidebar-width);
  }
}

.app-header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}

/* Page-level controls sit beside the theme switch. */
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex: 0 0 auto;
}

.app-header-actions:empty {
  display: none;
}

@media (min-width: 768px) {
  .app-header-bar {
    padding: 0.875rem 2rem;
  }
}

/* In a resizable iPad window the window controls sit in the top-left corner,
   where the menu button is. The app reports how far they reach in
   (KLCRootViewController); 0 everywhere else. From 768px the rail has that
   corner instead. */
@media (max-width: 767.98px) {
  .app-header-bar {
    padding-left: max(1rem, var(--klc-window-controls-x, 0px));
  }
}

.app-title {
  flex: 1;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--klc-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  border-radius: var(--klc-radius-sm);
  border: 1px solid var(--klc-border);
  background-color: var(--klc-surface);
  color: var(--klc-text-secondary);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
  transition: background-color var(--klc-fast) var(--klc-ease),
    color var(--klc-fast) var(--klc-ease),
    border-color var(--klc-fast) var(--klc-ease);
}

.icon-btn:hover {
  background-color: var(--klc-surface-3);
  color: var(--klc-text);
  border-color: var(--klc-border-strong);
}

/* A switch rather than a button. Held down it carries the brand, so which way
   it stands is readable without opening anything. */
.icon-btn[aria-pressed="true"] {
  background-color: var(--klc-brand-soft);
  border-color: var(--klc-brand);
  color: var(--klc-brand-strong);
}


/* --------------------------------------------------------------------------
   6. Bottom navigation (phone)
   -------------------------------------------------------------------------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Under the TSAT widget, which is transient and more urgent, and under the
     modal backdrop at 1040. */
  z-index: 1030;
  display: flex;
  background-color: var(--klc-surface);
  border-top: 1px solid var(--klc-border);
  padding-bottom: var(--klc-safe-bottom);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1875rem;
  padding: 0.5rem 0.25rem 0.5625rem;
  border: 0;
  background: transparent;
  color: var(--klc-text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: -0.002em;
  min-height: 3.25rem;
  transition: color var(--klc-fast) var(--klc-ease);
}

.bottom-nav-item .bi {
  font-size: 1.1875rem;
  line-height: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
  color: var(--klc-text-secondary);
}

.bottom-nav-item.is-current {
  color: var(--klc-brand-strong);
}

/* The current tab is marked by more than its colour: a short rule on the top
   edge, the way a tab bar signs itself, so the state survives a screen that
   washes the hue out and a reader who cannot separate the two blues. */
.bottom-nav-item.is-current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.75rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background-color: currentColor;
}

.bottom-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Theme switch. Shows the state you are in, and cycles auto -> light -> dark.
   Auto is the absence of data-theme, so it is also what you get before anyone
   has ever touched the control. */




/* Sizes that used to be inline: the settings avatar, the Jetlog QR, the wide
   METAR dialog, and the rotated plane between two airports. */
#settingsProfilePictureImg {
  width: 7.5rem;
  height: 7.5rem;
}

#METARTAFModal .modal-dialog {
  max-width: 50rem;
}

.flight-leg-icon {
  display: inline-block;
  transform: rotate(90deg);
  color: var(--klc-brand);
  /* On the icon rather than in the markup, so "SVG > AMS" cannot end up as
     "SVG>AMS" the next time the string is rebuilt. */
  margin-inline: 0.45em;
}

/* The flight list is the positioning context for its own overlays. */
#flight-list {
  position: relative;
  /* Nothing above the first day heading: at the top of the scroll it then sits
     exactly where it sticks, so there is no state to scroll back to in which it
     appears unstuck. */
  padding-top: 0;
}

/* Crew photos: the rail, the colleague lists and Instellingen. */
.profilePicture {
  border-radius: 50%;
  border: 2px solid var(--klc-surface);
  box-shadow: 0 0 0 1px var(--klc-border);
  max-width: 100%;
  object-fit: cover;
  background-color: var(--klc-surface-3);
}

/* --------------------------------------------------------------------------
   7. Cards
   The workhorse: flight list, weather, allowances, settings all use these.
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--klc-surface);
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  box-shadow: var(--klc-shadow-sm);
  transition: box-shadow var(--klc-normal) var(--klc-ease),
    border-color var(--klc-normal) var(--klc-ease),
    transform var(--klc-normal) var(--klc-ease);
}

/* Cancelled: the red runs through the card rather than sitting in one line of
   it. Border, the rule under the header and the route line all take the tint,
   which is enough to read at a glance without filling anything in. */
.flight-card.is-cancelled {
  border-color: var(--klc-danger-line);
}

.flight-card.is-cancelled .flight-body > .flight-row:first-child {
  border-bottom-color: var(--klc-danger-line);
}

.flight-card.is-cancelled .flight-leg,
.flight-card.is-cancelled .flight-leg::before,
.flight-card.is-cancelled .flight-leg::after {
  background: var(--klc-danger-line);
}

.flight-card.is-cancelled .flight-leg .bi {
  color: var(--klc-danger);
}

/* Elevation on hover is reserved for cards that represent something live -
   a flight, a nightstop - rather than every block of static text. */
#flight-list .card:hover,
#weatherInfo .card:hover {
  box-shadow: var(--klc-shadow);
  border-color: var(--klc-border-strong);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--klc-border);
  font-weight: 650;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding: 0.875rem 1.125rem;
  border-radius: var(--klc-radius) var(--klc-radius) 0 0 !important;
  color: var(--klc-text);
}

.card-body {
  padding: 1.125rem;
}

.card-footer {
  background-color: var(--klc-surface-2);
  border-top: 1px solid var(--klc-border);
  padding: 0.875rem 1.125rem;
  border-radius: 0 0 var(--klc-radius) var(--klc-radius);
}

.card-title {
  font-weight: 650;
}

/* The flight list stacks many cards with mb-1; give them room to breathe. */
#flight-list .card {
  margin-bottom: 0.75rem !important;
}

/* Bare lists inside a card are used as tables of contents on Settings and
   Help. Bullets and browser indentation make them look like an afterthought. */
.card-body > ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.card-body > ul > li {
  border-bottom: 1px solid var(--klc-border);
}

.card-body > ul > li:last-child {
  border-bottom: 0;
}

.card-body > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.125rem;
  color: var(--klc-text);
  font-weight: 500;
}

.card-body > ul > li > a::after {
  content: "\F285";
  font-family: "bootstrap-icons";
  font-size: 0.75rem;
  color: var(--klc-text-muted);
  transition: transform var(--klc-fast) var(--klc-ease);
}

.card-body > ul > li > a:hover {
  color: var(--klc-brand-strong);
}

.card-body > ul > li > a:hover::after {
  transform: translateX(2px);
  color: var(--klc-brand);
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  border-radius: var(--klc-radius-sm);
  font-weight: 550;
  font-size: 0.875rem;
  letter-spacing: -0.006em;
  padding: 0.5rem 0.9375rem;
  /* 44px: the minimum a thumb can hit reliably. */
  min-height: 2.75rem;
  border-width: 1px;
  transition: background-color var(--klc-fast) var(--klc-ease),
    border-color var(--klc-fast) var(--klc-ease),
    color var(--klc-fast) var(--klc-ease),
    box-shadow var(--klc-fast) var(--klc-ease),
    transform var(--klc-fast) var(--klc-ease);
}

/* A button tall enough to need it centres its own label. Inputs are centred by
   the browser, so they are left alone. Being a flex container also means a
   literal space between an icon and its label collapses away, so the gap has to
   come from the button rather than from the markup. */
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

a.btn.btn-block,
button.btn.btn-block {
  display: flex;
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.4375rem 0.8125rem;
  font-size: 0.8125rem;
  border-radius: var(--klc-radius-sm);
  min-height: 2.25rem;
  position: relative;
}

/* Keeps the chip small while the thumb still gets its 44px. */
.btn-sm::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.75rem;
  transform: translateY(-50%);
}

.btn-lg {
  padding: 0.6875rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--klc-radius);
}

.btn-block + .btn-block {
  margin-top: 0.625rem;
}

.btn-primary {
  --bs-btn-disabled-bg: var(--klc-brand);
  --bs-btn-disabled-border-color: var(--klc-brand);
  --bs-btn-disabled-color: var(--klc-text-on-brand);
  background-color: var(--klc-brand);
  border-color: var(--klc-brand);
  color: var(--klc-text-on-brand);
  box-shadow: var(--klc-shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--klc-brand-strong);
  border-color: var(--klc-brand-strong);
  color: var(--klc-text-on-brand);
}

.btn-success {
  background-color: var(--klc-success);
  border-color: var(--klc-success);
  color: var(--klc-text-on-brand);
}

.btn-success:hover,
.btn-success:not(:disabled):not(.disabled):active {
  filter: brightness(0.93);
  background-color: var(--klc-success);
  border-color: var(--klc-success);
  color: var(--klc-text-on-brand);
}

.btn-danger {
  background-color: var(--klc-danger);
  border-color: var(--klc-danger);
  color: var(--klc-text-on-brand);
}

.btn-danger:hover,
.btn-danger:not(:disabled):not(.disabled):active {
  filter: brightness(0.93);
  background-color: var(--klc-danger);
  border-color: var(--klc-danger);
  color: var(--klc-text-on-brand);
}

.btn-warning {
  background-color: var(--klc-warning);
  border-color: var(--klc-warning);
  color: var(--klc-text-on-brand);
}

.btn-info {
  background-color: var(--klc-info);
  border-color: var(--klc-info);
  color: var(--klc-text-on-brand);
}

.btn-secondary {
  background-color: var(--klc-surface-3);
  border-color: var(--klc-border-strong);
  color: var(--klc-text);
}

.btn-secondary:hover,
.btn-secondary:not(:disabled):not(.disabled):active {
  background-color: var(--klc-border);
  border-color: var(--klc-border-strong);
  color: var(--klc-text);
}

.btn-light {
  background-color: var(--klc-surface);
  border-color: var(--klc-border);
  color: var(--klc-text);
}

.btn-light:hover {
  background-color: var(--klc-surface-3);
  border-color: var(--klc-border-strong);
  color: var(--klc-text);
}

.btn-dark {
  background-color: var(--klc-text);
  border-color: var(--klc-text);
  color: var(--klc-surface);
}

.btn-outline-primary {
  color: var(--klc-brand-strong);
  border-color: var(--klc-brand);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--klc-brand);
  border-color: var(--klc-brand);
  color: var(--klc-text-on-brand);
}

.btn-outline-secondary {
  color: var(--klc-text-secondary);
  border-color: var(--klc-border-strong);
}

.btn-outline-secondary:hover {
  background-color: var(--klc-surface-3);
  border-color: var(--klc-border-strong);
  color: var(--klc-text);
}

.btn-outline-danger {
  color: var(--klc-danger);
  border-color: var(--klc-danger);
}

.btn-outline-danger:hover {
  background-color: var(--klc-danger);
  border-color: var(--klc-danger);
  color: var(--klc-text-on-brand);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   9. Badges
   Used heavily in the flight list for times, gates, registrations and ranks.
   -------------------------------------------------------------------------- */

.badge {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0;
  padding: 0.3125rem 0.5625rem;
  border-radius: var(--klc-radius-sm);
  vertical-align: baseline;
  border: 1px solid transparent;
}

.badge-primary {
  background-color: var(--klc-brand-soft);
  color: var(--klc-brand-deep);
  border-color: transparent;
}

.badge-secondary {
  background-color: var(--klc-surface-3);
  color: var(--klc-text-secondary);
}


.badge-dark {
  background-color: var(--klc-surface-3);
  color: var(--klc-text);
  border-color: var(--klc-border-strong);
}

a.badge:hover {
  filter: brightness(0.96);
  color: inherit;
}

.badge s {
  opacity: 0.6;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--klc-text-secondary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.004em;
}

.container,
.container-fluid,
.row {
  --bs-gutter-x: 30px;
}

.form-text {
  display: block;
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1.125rem;
}

/* Heading for a set of controls, where a <label> would have to point at one of
   them and so would be wrong. Reads identically to a label. */
.group-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--klc-text-secondary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.004em;
}

.form-control {
  background-color: var(--klc-surface);
  border: 1px solid var(--klc-border-strong);
  border-radius: var(--klc-radius-sm);
  color: var(--klc-text);
  font-size: 0.9375rem;
  padding: 0.5625rem 0.75rem;
  height: auto;
  transition: border-color var(--klc-fast) var(--klc-ease),
    box-shadow var(--klc-fast) var(--klc-ease),
    background-color var(--klc-fast) var(--klc-ease);
}

.form-control::placeholder {
  color: var(--klc-text-muted);
}

.form-control:focus {
  background-color: var(--klc-surface);
  border-color: var(--klc-brand);
  color: var(--klc-text);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: var(--klc-surface-3);
  color: var(--klc-text-muted);
  cursor: not-allowed;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23808f9e' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}

.form-text {
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
  margin-top: 0.375rem;
}

.input-group-text {
  background-color: var(--klc-surface-3);
  border: 1px solid var(--klc-border-strong);
  color: var(--klc-text-secondary);
  border-radius: var(--klc-radius-sm);
  font-size: 0.875rem;
}

/* Checkboxes and switches */

.form-check-input {
  accent-color: var(--klc-brand);
  appearance: auto;
  background-image: none;
}

.form-check-label {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--klc-text);
}

/* File inputs. Bootstrap 4 leaves the native control inside a .form-control box,
   which looks nothing like the rest of the form. Used by the roster upload,
   support tickets, the profile photo and the LogTen monthly overview. */
input[type="file"].form-control,
input[type="file"] {
  padding: 0.4375rem 0.75rem;
  height: auto;
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  appearance: none;
  border: 1px solid var(--klc-border-strong);
  background-color: var(--klc-surface-3);
  color: var(--klc-text);
  border-radius: var(--klc-radius-sm);
  padding: 0.3125rem 0.75rem;
  margin: 0 0.75rem 0 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--klc-border);
}

/* Textareas need room to be worth typing into. */
textarea.form-control {
  min-height: 6rem;
  line-height: 1.55;
  resize: vertical;
}

/* Date and time controls keep the theme's colour scheme for their pickers. */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control {
  min-height: 2.625rem;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Checkbox and switch rows. Subscriptions and Settings are largely lists of
   these, and Bootstrap 4 leaves them cramped and hard to hit on a phone. */
/* Two columns: the box, then the label with its description underneath. A grid
   keeps the box on the same line as the label whatever the label wraps to,
   which Bootstrap's absolutely-positioned input could not do once the label
   grew tall enough to be a comfortable tap target. */
.form-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-2);
  margin-bottom: 0.5rem;
  transition: border-color var(--klc-fast) var(--klc-ease);
}

.form-check:hover {
  border-color: var(--klc-border-strong);
}

.form-check .form-check-input {
  position: static;
  grid-column: 1;
  grid-row: 1;
  /* Centred against the label's first line, not the whole row. */
  align-self: center;
  margin: 0;
  width: 1.125rem;
  height: 1.125rem;
}

.form-check .form-check-label {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--klc-text);
  cursor: pointer;
}

/* The label keeps its natural height, and reaches out to 44px for the thumb.
   Making the label itself 44px tall bought the same target but spent a whole
   line of blank space per row to do it - with sixteen of these in the app, on
   the recipients list most of the dialog. */
.form-check .form-check-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.75rem;
  transform: translateY(-50%);
}

.form-check .form-text {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  margin-bottom: 0.125rem;
  line-height: 1.45;
}

/* Some options carry two things: what they do, and a caution about doing it.
   Running them together as one grey paragraph buries the half that matters. */
.form-note {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  gap: 0.4375rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-warning-soft);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--klc-text-secondary);
}

.form-note > .bi {
  flex: 0 0 auto;
  margin-top: 0.0625rem;
  color: var(--klc-warning);
}

/* A calendar URL is something you copy, so make it look copyable. */
code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-3);
  border: 1px solid var(--klc-border);
  color: var(--klc-text-secondary);
  font-size: 0.75rem !important;
  line-height: 1.4;
}

/* Dividers inside a card should be lighter than the card edge. */
.card-body hr {
  margin: 1rem -1.125rem;
  border-top-color: var(--klc-border);
}

/* Legacy <center> elements still used on a few pages. */
center {
  display: block;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Third-party widgets
   intl-tel-input loads its own stylesheet after this one and only knows about
   prefers-color-scheme, so an explicit theme choice desynced it: a white
   country list with light text on it, unreadable.
   -------------------------------------------------------------------------- */

/* intl-tel-input wraps the field in .iti, which ships as inline-block. Left
   alone the phone field sits beside its label at its own width, unlike every
   other control on the form. */
.iti {
  display: block;
  width: 100%;
}

.iti__country-list {
  background-color: var(--klc-surface) !important;
  border: 1px solid var(--klc-border) !important;
  border-radius: var(--klc-radius) !important;
  box-shadow: var(--klc-shadow-lg) !important;
  color: var(--klc-text) !important;
}

.iti__country {
  color: var(--klc-text) !important;
}

.iti__dial-code {
  color: var(--klc-text-muted) !important;
}

.iti__country.iti__highlight,
.iti__country:hover {
  background-color: var(--klc-surface-3) !important;
}

.iti__divider {
  border-bottom-color: var(--klc-border) !important;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
  background-color: var(--klc-surface-3) !important;
}

/* The init asks for no bell, but the dashboard can put it back and does, so the
   app refuses it here too. Switching notifications on lives in Settings now, one
   tap from the switch that turns them off; a launcher floating over the flight
   list is a second control for the same thing, positioned and styled from a
   dashboard rather than from this stylesheet.
   
   To bring it back it takes two things: the dashboard, and removing this rule.
   And then it needs the two below it again, which are kept for that reason. The
   z-index has to go on the container rather than the launcher inside it, because
   OneSignal puts the container at 2147483000 and that makes it a stacking context
   of its own - ordering the launcher within it says nothing about where that
   context sits on the page, and setting the launcher alone left the bell over
   every dialog. */
#onesignal-bell-container {
  display: none !important;
}

#onesignal-bell-container.onesignal-reset {
  z-index: 1032 !important;
}

@media (max-width: 767.98px) {
  #onesignal-bell-container.onesignal-bell-container-bottom-left .onesignal-bell-launcher,
  #onesignal-bell-container.onesignal-bell-container-bottom-right .onesignal-bell-launcher {
    bottom: calc(var(--klc-bottomnav-height) + 1rem + var(--klc-safe-bottom)) !important;
  }
}

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   12. Alerts
   -------------------------------------------------------------------------- */

.alert {
  border-radius: var(--klc-radius);
  border: 1px solid transparent;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  box-shadow: var(--klc-shadow-sm);
}

.alert strong,
.alert b {
  font-weight: 650;
}

.alert-info {
  background-color: var(--klc-info-soft);
  border-color: transparent;
  color: var(--klc-info);
}

.alert-success {
  background-color: var(--klc-success-soft);
  border-color: transparent;
  color: var(--klc-success);
}

.alert-warning {
  background-color: var(--klc-warning-soft);
  border-color: transparent;
  color: var(--klc-warning);
}

.alert-danger {
  background-color: var(--klc-danger-soft);
  border-color: transparent;
  color: var(--klc-danger);
}

/* Flash messages after a redirect. */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.flash-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  margin-top: 0.0625rem;
}

.flash-body {
  flex: 1;
  min-width: 0;
}

.flash-dismiss {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: -0.5rem -0.75rem -0.5rem 0;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

.flash-dismiss:hover {
  opacity: 1;
}

.alert a {
  color: inherit;
  text-decoration: underline !important;
  font-weight: 650;
}

/* A callout carries a warning inside a dialog, where a full-width alert would
   fight the dialog's own padding. */
.callout {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--klc-radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.callout > .bi {
  font-size: 1.0625rem;
  flex: 0 0 auto;
  margin-top: 0.0625rem;
}

.callout p {
  margin: 0.25rem 0 0;
  color: inherit;
  opacity: 0.9;
}

.callout-warning {
  background-color: var(--klc-warning-soft);
  color: var(--klc-warning);
}

/* Numbered instructions, used where a paragraph of bolded fragments was. */
.steps {
  margin: 0 0 1rem;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--klc-text-secondary);
}

.steps li {
  margin-bottom: 0.4375rem;
}

.steps li::marker {
  color: var(--klc-text-muted);
  font-weight: 650;
}

/* A long procedure needs its step numbers to be findable, so you can put the
   page down and come back to step 14. */
.steps.steps-numbered {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.steps.steps-numbered li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.75rem;
  counter-increment: step;
}

.steps.steps-numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.0625rem;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--klc-surface-3);
  color: var(--klc-text-secondary);
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* Stacked footer for dialogs where the actions are a choice of paths rather
   than confirm/cancel. */
.modal-footer-stacked {
  flex-direction: column;
  align-items: stretch;
}

.modal-footer-stacked .btn-block {
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Modals
   -------------------------------------------------------------------------- */

/* Added to the home screen the page runs under the status bar, and two of the
   dialogs are top-aligned rather than centred. */
.modal {
  padding-top: var(--klc-safe-top);
  padding-bottom: var(--klc-safe-bottom);
}

.modal-content {
  background-color: var(--klc-surface);
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-lg);
  box-shadow: var(--klc-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--klc-border);
  padding: 1.125rem 1.25rem;
  border-radius: var(--klc-radius-lg) var(--klc-radius-lg) 0 0;
}

.modal-title {
  font-weight: 650;
  font-size: 1.0625rem;
}

/* Bootstrap pulls the close button out by its own -1rem, which no longer
   matches this header's padding and left the x sitting slightly high. */
.modal-header .close {
  padding: 1.125rem 1.25rem;
  margin: -1.125rem -1.25rem -1.125rem auto;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--klc-border);
  padding: 0.875rem 1.25rem;
  gap: 0.5rem;
}

.modal-footer > * {
  margin: 0;
}

/* The handle a sheet is pulled down by (sheetSwipe.js); only a sheet shows one. */
.sheet-handle {
  display: none;
}

/* On a phone every dialog is a sheet from the bottom edge, edge to edge. */
@media (max-width: 575.98px) {
  .modal {
    padding-bottom: 0;
  }

  /* Fixed, not absolute in .modal: Safari ends .modal above its toolbar,
     and only a fixed element reaches the bottom of the screen. */
  .modal .modal-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: none;
    min-height: 0;
  }

  .modal.fade .modal-dialog {
    transform: translateY(100%);
  }

  .modal.show .modal-dialog {
    transform: none;
  }

  .modal .modal-content {
    max-height: 92dvh;
    overflow: hidden;
    padding-bottom: var(--klc-safe-bottom);
    border-width: 1px 0 0;
    border-radius: var(--klc-radius-lg) var(--klc-radius-lg) 0 0;
  }

  .modal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* A band the width of the sheet, so the pull is easy to catch. */
  .sheet-handle {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: flex-start;
    height: 1.5rem;
    padding-top: 0.5rem;
    touch-action: none;
  }

  .sheet-handle::before {
    content: "";
    width: 2.25rem;
    height: 0.3125rem;
    border-radius: 999px;
    background-color: var(--klc-border-strong, var(--klc-border));
  }

  .modal-header,
  .avwx-top,
  .friend-sheet-head {
    touch-action: none;
  }

  .sheet-handle + .modal-header {
    padding-top: 0.25rem;
  }

  .colleague-card > .sheet-handle {
    position: absolute;
    inset: 0 0 auto;
  }

  /* The handle closes a sheet, so the close button is left to screen readers. */
  .modal .close,
  .modal .btn-close,
  .avwx-close,
  .colleague-close {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

.modal-backdrop.show {
  opacity: 1;
  background-color: var(--klc-overlay);
}

.close {
  padding: 0;
  background-color: transparent;
  border: 0;
  color: var(--klc-text-muted);
  opacity: 1;
  text-shadow: none;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  transition: color var(--klc-fast) var(--klc-ease);
}

.close:hover {
  color: var(--klc-text);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   14. Dropdowns
   -------------------------------------------------------------------------- */

.dropdown-menu {
  background-color: var(--klc-surface);
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  box-shadow: var(--klc-shadow-lg);
  padding: 0.375rem;
  font-size: 0.875rem;
  color: var(--klc-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--klc-surface-3);
  color: var(--klc-text);
}

/* Header menus: theme and list layout. Both show which option is in force
   rather than making you cycle blind through the states. */
.header-menu {
  flex: 0 0 auto;
  line-height: 0;
}

.header-menu .dropdown-menu {
  min-width: 12rem;
  margin-top: 0.375rem;
}

.dropdown-header {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--klc-text-muted);
  padding: 0.375rem 0.75rem 0.25rem;
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--klc-radius-sm);
  background: transparent;
  color: var(--klc-text);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.dropdown-item > .bi {
  font-size: 1rem;
  width: 1.125rem;
  flex: 0 0 1.125rem;
  color: var(--klc-text-muted);
}

.dropdown-item.is-selected {
  color: var(--klc-brand-deep);
  font-weight: 650;
  background-color: var(--klc-brand-soft);
}

.dropdown-item.is-selected > .bi {
  color: var(--klc-brand);
}

/* A tick on the right marks the active option without shifting the label. */
.dropdown-item.is-selected::after {
  content: "\F272";
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--klc-brand);
}

.dropdown-divider {
  border-top-color: var(--klc-border);
}

/* --------------------------------------------------------------------------
   15. App-specific
   -------------------------------------------------------------------------- */

/* TSAT widget: the Live Activity's TSAT strip, pinned to the foot of the page on duty days. */
.tsat-widget {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  margin-inline: auto;
  max-width: 30rem;
  /* Stacks on top of the bottom navigation on a phone. */
  bottom: calc(var(--klc-bottomnav-height) + 0.75rem + var(--klc-safe-bottom));
  display: grid;
  gap: 0.4375rem;
  padding: 0.5625rem 0.875rem 0.6875rem;
  background-color: var(--klc-surface);
  border: 1px solid var(--klc-border);
  border-left: 4px solid var(--tsat-tone);
  border-radius: var(--klc-radius-lg);
  box-shadow: var(--klc-shadow-lg);
  font-variant-numeric: tabular-nums;
  /* Above the bottom bar, below the modal backdrop (1040). */
  z-index: 1035;
  transition: opacity var(--klc-normal) var(--klc-ease);

  --tsat-tone: var(--klc-brand-strong);
}

.tsat-widget.is-before { --tsat-tone: var(--klc-brand-strong); }
.tsat-widget.is-open { --tsat-tone: var(--klc-success); }
.tsat-widget.is-closing { --tsat-tone: var(--klc-warning); }
.tsat-widget.is-expired,
.tsat-widget.is-cancelled { --tsat-tone: var(--klc-danger); }
.tsat-widget.is-stale { --tsat-tone: var(--klc-text-muted); }

@media (min-width: 768px) {
  .tsat-widget {
    /* In the content column, clear of the fixed rail (1038). */
    left: calc(var(--klc-sidebar-width) + 2rem);
    right: 2rem;
    bottom: 1rem;
  }
}

.tsat-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* The flight gives way before the TSAT does. */
.tsat-widget-subject {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsat-widget-flight {
  font-weight: 700;
  color: var(--klc-text);
}

.tsat-widget-route {
  margin-left: 0.375rem;
  font-weight: 600;
  color: var(--klc-text-muted);
}

.tsat-widget-route > .bi {
  margin: 0 0.1875rem;
  font-size: 0.6875rem;
}

.tsat-widget-tsat {
  flex: 0 0 auto;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

.tsat-widget-tsat > b {
  margin-left: 0.25rem;
  font-size: 0.8125rem;
  font-family: var(--klc-font-mono);
  letter-spacing: -0.02em;
  color: var(--klc-text);
}

.tsat-widget-now {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  min-width: 0;
}

.tsat-widget-state {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tsat-tone);
  white-space: nowrap;
}

.tsat-widget-state > .bi {
  margin-right: 0.375rem;
}

.tsat-widget-caption {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 0.6875rem;
  color: var(--klc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Short of room the caption goes first, as on the Live Activity. */
@media (max-width: 24rem) {
  .tsat-widget-caption {
    visibility: hidden;
  }
}

.tsat-widget-count {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--klc-font-mono);
  letter-spacing: -0.02em;
  color: var(--klc-text);
}

.tsat-widget.is-expired .tsat-widget-count,
.tsat-widget.is-stale .tsat-widget-count {
  color: var(--klc-text-muted);
}

/* The ten minutes around the TSAT: its ends either side, a tick a minute. */
.tsat-widget-window {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tsat-widget-edge {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-family: var(--klc-font-mono);
  color: var(--klc-text-muted);
}

.tsat-widget-track {
  position: relative;
  flex: 1 1 auto;
  height: 14px;
}

.tsat-widget-track::before,
.tsat-widget-track > i {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  height: 6px;
  border-radius: 3px;
}

.tsat-widget-track::before {
  right: 0;
  background-color: var(--klc-surface-3);
}

.tsat-widget-track > i {
  width: calc(var(--tsat-progress, 0) * 100%);
  background-color: var(--tsat-tone);
}

.tsat-widget-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tsat-widget-ticks > b {
  width: 1.5px;
  height: 5px;
  border-radius: 1px;
  background-color: var(--klc-text);
  opacity: 0.3;
}

.tsat-widget-ticks > b:first-child,
.tsat-widget-ticks > b:last-child {
  height: 10px;
  opacity: 0.6;
}

/* The TSAT itself. */
.tsat-widget-ticks > b:nth-child(6) {
  width: 2.5px;
  height: 14px;
  opacity: 1;
}

/* Now, while the window runs. */
.tsat-widget-track > em {
  display: none;
  position: absolute;
  top: 50%;
  left: calc(var(--tsat-progress, 0) * 100%);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background-color: var(--tsat-tone);
  box-shadow: 0 0 0 2px var(--klc-surface);
}

.tsat-widget.is-open .tsat-widget-track > em,
.tsat-widget.is-closing .tsat-widget-track > em {
  display: block;
}

.tsat-widget.is-cancelled .tsat-widget-tsat,
.tsat-widget.is-cancelled .tsat-widget-window,
.tsat-widget.is-cancelled .tsat-widget-chips,
.tsat-widget.is-cancelled .tsat-widget-caption,
.tsat-widget.is-cancelled .tsat-widget-count {
  display: none;
}

.tsat-widget-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.tsat-widget-chips:empty {
  display: none;
}

.tsat-widget-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.125rem 0.4375rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-3);
  white-space: nowrap;
}

.tsat-widget-chip > span {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

.tsat-widget-chip > b {
  font-size: 0.8125rem;
  font-family: var(--klc-font-mono);
  letter-spacing: -0.02em;
  color: var(--klc-text);
}

.tsat-widget-chips > .gate-sign {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* The last two minutes are the ones worth interrupting for. */
.tsat-widget.is-closing::after {
  content: "";
  position: absolute;
  inset: -0.1875rem;
  border: 2px solid var(--tsat-tone);
  /* The card's radius plus the ring's offset, so the gap stays even at the corners. */
  border-radius: calc(var(--klc-radius-lg) + 0.1875rem);
  pointer-events: none;
  animation: tsat-attention 1.8s ease-in-out infinite;
}

@keyframes tsat-attention {
  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.7;
  }
}

/* While the widget is up it carries the TSAT, so the first flight's badge and its separator step aside. */
body:has(.tsat-widget:not([style*="display: none"])) #tsatFirstFlight,
body:has(.tsat-widget:not([style*="display: none"])) .meta-dot:has(+ #tsatFirstFlight),
body:has(.tsat-widget:not([style*="display: none"])) #tsatFirstFlight:first-child + .meta-dot {
  display: none;
}

/* Only a visible widget claims extra room at the foot of the page. */
@media (max-width: 767.98px) {
  body:has(.tsat-widget:not([style*="display: none"])) #page-content-wrapper {
    padding-bottom: calc(var(--klc-bottomnav-height) + 10.5rem + var(--klc-safe-bottom));
  }
}

@media (min-width: 768px) {
  body:has(.tsat-widget:not([style*="display: none"])) #page-content-wrapper {
    padding-bottom: 10rem;
  }
}
/* A status line: who it is about, the status chip, and the planned time.
   Previously one 41-character sentence crammed into a single badge. */
/* --------------------------------------------------------------------------
   Flight status, laid out like a boarding pass.

   A coloured edge carries the state. The time and the gate are set large
   because they are the two things you actually look for; everything else is
   one quiet line beneath, so the block stays short enough that the crew list
   below it is still on screen. A departure and an arrival share the shape.
   -------------------------------------------------------------------------- */
.fstatus {
  border-left: 3px solid var(--klc-border);
  padding-left: 0.8125rem;
}

/* Only when the block is about a different flight than the card it sits in. A
   departure describes itself, so it stays plain card content; an inbound is the
   Amsterdam leg of another aeroplane, and gets a ground of its own to say so.
   Placed before the tone rules, which set the left border colour after it. */
.fstatus.is-inbound {
  border: 1px solid var(--klc-border);
  border-left-width: 3px;
  border-radius: var(--klc-radius);
  background-color: var(--klc-surface-2);
  padding: 0.75rem 0.875rem;
}

.fstatus.is-ontime {
  border-left-color: var(--klc-success);
}

.fstatus.is-delayed,
.fstatus.is-cancelled {
  border-left-color: var(--klc-danger);
}

/* A homebound's own departure above the aircraft on its way in. */
.fstatus + .fstatus {
  margin-top: 0.75rem;
}

/* Amber is only for what is overdue and unreported, as in the Live Activity. */
.fstatus.is-unreported {
  border-left-color: var(--klc-warning);
}

.fstatus-subject {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.6875rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--klc-text-muted);
}

/* Names the flight the panel is about, with its own rule under it: everything
   below belongs to that flight, not to the card around it. */
.fstatus.is-inbound .fstatus-subject {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin: -0.125rem 0 0.5rem;
  padding-bottom: 0.4375rem;
  border-bottom: 1px solid var(--klc-border);
}

.fstatus-subject strong {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--klc-text);
}

.fstatus-subject-route {
  margin-left: auto;
  letter-spacing: 0.02em;
  color: var(--klc-text-secondary);
}

/* Two rows across three columns: every label on one line, every value on the
   next. Placed explicitly, so a flight with no gate or no walking time leaves an
   empty cell rather than sliding the remaining values sideways. */
.fstatus-main {
  display: grid;
  /* Status, walking time, then the pair on the right: whichever of gate and
     stand is secondary, and the one you are actually heading for at the edge. */
  grid-template-columns: auto auto 1fr auto auto;
  column-gap: 1.25rem;
  row-gap: 0.0625rem;
  /* On the baseline, not the bottom edge: these are four different type sizes
     and one of them is a padded sign, so aligning boxes leaves the figures
     sitting at four slightly different heights. */
  align-items: baseline;
}

.fstatus-word {
  grid-area: 1 / 1;
}

.fstatus-walk-label {
  grid-area: 1 / 2;
}

/* A sign where the other columns carry a word, so it is set to sit on the same
   line as they do rather than at their letter height. */
.fstatus-walk-label .bi {
  font-size: 0.875rem;
  line-height: 1;
  vertical-align: -0.125em;
}

.fstatus-time {
  grid-area: 2 / 1;
}

.fstatus-walk-time {
  grid-area: 2 / 2;
}

.fstatus-second-label {
  grid-area: 1 / 4;
  justify-self: end;
}

.fstatus-second-value {
  grid-area: 2 / 4;
  justify-self: end;
  /* Named and legible, but plainly the one you are not walking to. */
  color: var(--klc-text-muted);
}

.fstatus-gate-label {
  grid-area: 1 / 5;
  justify-self: end;
}

.gate-sign {
  grid-area: 2 / 5;
  justify-self: end;
}

.fstatus-was {
  grid-area: 3 / 1;
}

/* Four values on one line is comfortable on a modern phone and tight on a small
   one, so the gutter closes up first. */
@media (max-width: 575.98px) {
  .fstatus-main {
    column-gap: 0.75rem;
  }
}

/* Below this they genuinely cannot share a line. Rather than squeeze the type
   until it is unreadable, or let it run past the card and be clipped, the pair
   moves under the times and keeps its own labels. */
@media (max-width: 359.98px) {
  .fstatus-main {
    grid-template-columns: auto auto 1fr;
    row-gap: 0.375rem;
  }

  .fstatus-second-label {
    grid-area: 3 / 1;
    justify-self: start;
  }

  .fstatus-second-value {
    grid-area: 4 / 1;
    justify-self: start;
  }

  .fstatus-gate-label {
    grid-area: 3 / 2;
    justify-self: start;
  }

  .gate-sign {
    grid-area: 4 / 2;
    justify-self: start;
  }

  .fstatus-was {
    grid-area: 5 / 1;
  }
}

.fstatus-word,
.fstatus-walk-label,
.fstatus-second-label,
.fstatus-gate-label {
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--klc-text-muted);
}

/* The departure time carries the state as well as the word above it. It is the
   figure the eye lands on, and on time or not is the thing it should say
   without being read. That holds once the aeroplane has gone too: the time it
   actually went is the answer to the same question, so it takes the same two
   colours. En route has no time to show, and neither has a cancellation, where
   the word stands in for one. */
.fstatus.is-ontime .fstatus-word,
.fstatus.is-ontime .fstatus-time {
  color: var(--klc-success-strong);
}

.fstatus.is-delayed .fstatus-word,
.fstatus.is-cancelled .fstatus-word,
.fstatus.is-delayed .fstatus-time,
.fstatus.is-cancelled .fstatus-time {
  color: var(--klc-danger);
}

.fstatus.is-unreported .fstatus-word,
.fstatus.is-unreported .fstatus-time {
  color: var(--klc-warning-strong);
}

/* A cancelled flight has no time to show, so the word stands in for one and is
   set like one. A small caption over an empty value row would be introducing
   something that is not there. */
.fstatus.is-cancelled .fstatus-word {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* The four values in this row are one rhythm: same size, same weight, same
   line. They were 1.5, 1.25, 1.125 and 1.25rem with two different line heights
   between them, which is what made the row look assembled rather than set.
   Rank comes from position, colour and the sign - not from size. */
.fstatus-time,
.fstatus-walk-time,
.fstatus-second-value,
.gate-sign {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fstatus-time {
  color: var(--klc-text);
}

.fstatus-was {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--klc-text-muted);
}

/* When to leave for the gate. Second only to the departure time, and the one
   value here you actually act on, so it sits beside it rather than in the run of
   details underneath. */
.fstatus-walk-label {
  font-size: 0.6875rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--klc-text-muted);
}

.fstatus-walk-time {
  color: var(--klc-text);
}

/* The gate as the terminal shows it: yellow, dark type, and the bus or the
   walker on the sign so you know before you look it up. */
.gate-sign {
  /* inline-block rather than inline-flex: a flex container takes its baseline
     from its first item, which here is the icon, so the sign would line up on
     the bus rather than on the figures beside it. */
  display: inline-block;
  padding: 0.0625rem 0.4375rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-gate);
  color: var(--klc-gate-ink);
}

.gate-sign > .bi {
  margin-right: 0.375rem;
  /* Set by eye against the rendered sign, not calculated: the glyph does not sit
     where its em box suggests, so deriving this from cap heights put it two
     pixels low. It is in the icon's own em, which is what vertical-align
     resolves against, and it holds for an icon of 0.875rem beside figures of
     1.375rem. Change either size and it wants looking at again. */
  vertical-align: 0.17em;
  font-size: 0.875rem;
  /* The bus is the one worth noticing: it is the gate that costs you time. */
  opacity: 0.75;
}

.gate-sign.is-bus > .bi {
  opacity: 1;
}

/* Everything else, on one line, quiet. */
.fstatus-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--klc-text-secondary);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  white-space: nowrap;
}

.meta-item > .bi {
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--klc-text-muted);
}

/* Everything else on this line is a plain fact about the flight. A delay is the
   reason the times above it moved, so it carries the same red they do and takes
   the icon with it, instead of leaving it muted like the rest. */
.meta-item.is-delay {
  color: var(--klc-danger);
}

.meta-item.is-delay > .bi {
  color: inherit;
}

.meta-dot {
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--klc-border-strong);
}

/* A link in that line still has to be reachable with a thumb. */
/* Boxed rather than set as a sentence: the schedule is not a reading of how this
   flight is going, it is what the timetable says, and on its own under the row it
   read as a loose thought. Same frame the day chain and the deadhead marker use. */
.meta-item.is-chip {
  /* Two type sizes in one box needs both halves of the fix. On the baseline, so
     the label sits on the line the figures stand on rather than floating a
     fraction above it. And more padding above than below, because baseline
     alignment leaves the descender space of the larger size sitting empty under
     the figures - which is what put the whole chip's ink high in its box. */
  align-items: baseline;
  padding: 0.3125rem 0.375rem 0.1875rem;
  /* Hung by its own inset so the label starts on the same line as the word above
     it. Boxed text is otherwise indented by its padding, and against a column of
     figures that reads as a wonky row. */
  margin-left: calc(-0.375rem - 1px);
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-3);
}

.meta-chip-label {
  /* The row sets a reading line-height, which inside a box leaves descender space
     under text that has no descenders. Both parts hug their letters instead, so
     the padding is what you see. */
  line-height: 1;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  /* Letter-spacing is added after the last letter too, which widens the gap to
     the time by exactly that much. Take it back. */
  margin-right: -0.05em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

.meta-chip-value {
  line-height: 1;
  font-weight: 700;
  color: var(--klc-text);
}

.meta-link {
  position: relative;
  color: var(--klc-brand-strong);
  font-weight: 600;
}

.meta-link > .bi {
  color: inherit;
}

.meta-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.75rem;
  transform: translateY(-50%);
}

.meta-link:hover {
  color: var(--klc-brand);
}

/* Things you can open, shaped so they do not read as data. */
.fstatus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.flight-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-pill);
  background-color: var(--klc-surface);
  color: var(--klc-brand-strong);
  font-size: 0.8125rem;
  font-weight: 600;
}

.flight-action::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.75rem;
  transform: translateY(-50%);
}

.flight-action:hover {
  background-color: var(--klc-brand-soft);
  border-color: var(--klc-brand);
  color: var(--klc-brand-strong);
}

/* An offer rather than part of the flight: a Live Activity to bring back. */
.flight-action.is-hint {
  border-style: dashed;
  font-family: inherit;
}

span.flight-action.is-hint {
  color: var(--klc-text-secondary);
}

span.flight-action.is-hint:hover {
  background-color: var(--klc-surface);
  border-color: var(--klc-border);
}

/* On a card without a status block it is the whole row. */
.flight-row.la-restore .fstatus-actions {
  margin-top: 0;
}


/* METAR/TAF highlighting */
.bg-avwx-warning { color: var(--klc-warning); font-weight: 650; }
.bg-avwx-danger { color: var(--klc-danger); font-weight: 650; }

/* Times, flight numbers and registrations line up when they're tabular. */
.badge,
.table td {
  font-variant-numeric: tabular-nums;
}

/* Embedded video: the instruction clip carried a fixed 640x360, which is wider
   than any phone. */
.video-embed {
  width: 100%;
  max-width: 40rem;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--klc-radius);
  background-color: #000;
  display: block;
  margin: 0 auto;
}

/* Instructional screenshots: bounded by the column, never wider. The previous
   markup combined img-fluid with a 350px width and a 1rem margin either side,
   which overflowed a 360px phone by about 32px. */
.help-figure {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 1rem auto;
  border-radius: var(--klc-radius);
  border: 1px solid var(--klc-border);
}

/* Nothing in a card should be able to push the page sideways. */
.card-body img,
.card-body video,
.card-body iframe {
  max-width: 100%;
}

/* The pairing code sits in its own column beside the manual key. */
.jetlog-last-used {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.qr-code-image {
  display: block;
  /* Centred in its column, whatever the column is doing around it. */
  margin-inline: auto;
  width: 9.375rem;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  /* The QR needs a light plate to stay scannable in dark mode. */
  background: #fff;
  padding: 0.5rem;
}

/* The SVG has a viewBox but no width or height, so height: 100% falls back to
   the 150px replaced-element default and the QR sits at the top of a box that
   is taller than wide. Size it from the width instead. */
.qr-code-image svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--klc-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1.25rem + var(--klc-safe-top)) 1.25rem
    calc(1.25rem + var(--klc-safe-bottom));
  /* Was an inline 999999999999999. Above the Bootstrap modal layer is enough. */
  z-index: 1060;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* The colleague card.
   Opened from a crew row on the flight list and from the search page. A
   centred dialog with room for it, a sheet from the bottom edge on a phone -
   which is where it is actually reached for, one-handed. */
.colleague-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--klc-surface);
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: var(--klc-radius-lg);
  width: min(21rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: var(--klc-shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: colleague-in var(--klc-normal) var(--klc-ease) both;
}

/* A band of brand colour behind the top of the card, for the avatar to sit on. */
.colleague-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  /* Behind the upper part of the photograph, which starts below the card's
     1.5rem of top padding. */
  height: 10rem;
  z-index: -1;
  background-image: linear-gradient(165deg, var(--klc-brand-soft), var(--klc-surface) 92%);
}

@keyframes colleague-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.97);
  }
}

@media (max-width: 575.98px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .colleague-card {
    width: 100%;
    max-width: none;
    max-height: 88vh;
    border-radius: var(--klc-radius-lg) var(--klc-radius-lg) 0 0;
    padding: 1.5rem 1.25rem calc(1.5rem + var(--klc-safe-bottom));
    animation-name: colleague-sheet-in;
  }
}

@keyframes colleague-sheet-in {
  from {
    transform: translateY(100%);
  }
}

.colleague-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  color: var(--klc-text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
}

.colleague-close:hover,
.colleague-close:focus-visible {
  background-color: var(--klc-surface-2);
  color: var(--klc-text);
}

/* The card is where you look someone up to see who they are, so the photograph
   is the card. 14rem asks for more than the 400 x 400 an upload is cropped to
   (change_profile_pic.php) on a 2x screen or denser, so a poor photograph can
   look soft - which reads better than a sharp one too small to recognise. */
.colleague-card .profilePicture {
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--klc-border), var(--klc-shadow-sm);
}

.colleague-name {
  font-size: 1.0625rem;
  margin: 0.75rem 0 0;
  overflow-wrap: anywhere;
}

.colleague-rank {
  display: flex;
  gap: 0.375rem;
  justify-content: center;
  margin-top: 0.4375rem;
}

/* The card is a small space; the standard divider is spaced for a page. */
.colleague-card .divider-label {
  margin: 1rem 0 0.75rem;
}

/* The mail dialog.
   Recipients are rows you tap, not a list of checkboxes: the input still drives
   the state and carries the value, but it is the row that responds. */
.mail-recipients {
  margin-bottom: 1.25rem;
}

.mail-recipients-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mail-recipients-head .group-label {
  margin: 0;
}

.mail-recipients-count {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--klc-text-muted);
}

.mail-recipients-toggle {
  padding: 0.125rem 0.5rem;
  border: 0;
  border-radius: var(--klc-radius-sm);
  background-color: transparent;
  color: var(--klc-brand-strong);
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}

.mail-recipients-toggle:hover,
.mail-recipients-toggle:focus-visible {
  background-color: var(--klc-surface-2);
}

.mail-recipient-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mail-recipient {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.4375rem 0.625rem;
  min-height: 2.75rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  background-color: var(--klc-surface);
  cursor: pointer;
  transition: background-color var(--klc-fast) var(--klc-ease),
    border-color var(--klc-fast) var(--klc-ease);
}

/* The input still holds the value the form posts; the row is the control. */
.mail-recipient-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mail-recipient .profilePicture {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.mail-recipient-name {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--klc-text);
  overflow-wrap: anywhere;
}

.mail-recipient .badge {
  flex: 0 0 auto;
}

.mail-recipient-check {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--klc-border-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 0.6875rem;
}

.mail-recipient:has(.mail-recipient-input:checked) {
  border-color: var(--klc-brand);
  background-color: var(--klc-brand-soft);
}

.mail-recipient:has(.mail-recipient-input:checked) .mail-recipient-check {
  border-color: var(--klc-brand-strong);
  background-color: var(--klc-brand-strong);
  color: var(--klc-text-on-brand);
}

.mail-recipient:has(.mail-recipient-input:focus-visible) {
  box-shadow: 0 0 0 3px var(--klc-brand-soft);
}

@media (max-width: 575.98px) {
  #messageColleaguesModal .modal-body {
    padding: 1rem 1.25rem;
  }

  #messageColleaguesModal textarea.form-control {
    min-height: 6.5rem;
  }

  #messageColleaguesModal .modal-footer {
    padding-bottom: 0.75rem;
  }
}

.colleague-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.colleague-action {
  flex: 1 1 4rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 3.625rem;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  background-color: var(--klc-surface-2);
  color: var(--klc-text-secondary);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  transition: background-color var(--klc-fast) var(--klc-ease),
    color var(--klc-fast) var(--klc-ease);
}

.colleague-action .bi {
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--klc-brand-strong);
}

.colleague-action.is-whatsapp .bi {
  color: #25d366;
}

.colleague-action:hover,
.colleague-action:focus-visible {
  background-color: var(--klc-surface-3);
  color: var(--klc-text);
  text-decoration: none;
}

/* The flight they were on last, as a row rather than two stacked headings. */
.colleague-flight {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  background-color: var(--klc-surface-2);
  color: var(--klc-text);
  text-align: left;
}

.colleague-flight:hover,
.colleague-flight:focus-visible {
  background-color: var(--klc-surface-3);
  text-decoration: none;
}

.colleague-flight-number {
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}

.colleague-flight-route {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--klc-text-muted);
  white-space: nowrap;
}

.colleague-flight-out {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: var(--klc-text-muted);
}

/* Vrienden in the colleague card: a row like the previous flight's. */
.colleague-friend { font: inherit; cursor: pointer; }
.colleague-friend > .bi:first-child { flex: 0 0 auto; font-size: 1rem; color: var(--klc-friend-heart); }
.colleague-friend-text { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 600; }
.colleague-friend:disabled { opacity: 0.6; cursor: progress; }
.colleague-friend-note { width: 100%; margin: 0.375rem 0 0; font-size: 0.75rem; color: var(--klc-text-muted); text-align: center; overflow-wrap: anywhere; }

.noscroll {
  overflow: hidden;
}

.copyright p {
  margin: 0;
}

.copyright p + p {
  margin-top: 0.25rem;
}

.copyright .copyright-version {
  font-size: 0.75rem;
  color: var(--klc-text-muted);
}

.copyright p:last-child {
  margin-top: 0.75rem;
}

.copyright {
  padding: 1.5rem 1rem 1rem;
  margin-top: auto;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--klc-text-muted);
}

.copyright a {
  color: var(--klc-text-secondary);
}

/* --------------------------------------------------------------------------
   16. Flight list
   One card per duty. The route is the headline, the date is a quiet index down
   the left, and live status sits underneath as colour-led chips.
   -------------------------------------------------------------------------- */

.flight-card {
  overflow: hidden;
  /* A floor for anything that scrolls a card into view on its own. The one place
     that does it deliberately - collapsing a long crew list - measures the header
     and the day heading instead, because a heading with a rest line on it is close
     to twice the height of a bare one and no single value clears both. */
  scroll-margin-top: var(--klc-anchor-offset);
  /* The crew faces count down from a z-index of 20 so the cockpit paints on top
     of the stack. Without a stacking context of its own that ordering is page
     wide, and the avatars rise over the day heading they scroll under. */
  position: relative;
  z-index: 0;
}

.flight-card .card-body {
  padding: 0;
}

.flight-body {
  display: flex;
  flex-direction: column;
}

/* Which day this sector flies, in a column beside the route.

   The two stacks are set to the same metrics rather than to the same intent:
   the day takes the route's size and line height, the month takes the meta
   line's, and the column repeats the ident's gap and vertical padding. Both
   stacks are then the same height row for row, so the day sits on the route's
   baseline and the month on the flight number's without either being nudged. */
.flight-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.875rem 0 0.875rem 1rem;
  min-width: 2.75rem;
}

.flight-date-day {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--klc-text);
}

.flight-date-month {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--klc-text-secondary);
}

/* Header row: date block + route */
.flight-body > .flight-row:first-child {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--klc-border);
}

/* Two things at once, both about where this page's edges are.

   It starts flush against the header, so the first day heading is already at the
   position it sticks to. With a gap above it the reader can scroll back to a
   state the heading never occupies, which reads as the heading coming unstuck.

   And it hands the width cap to its children rather than taking it here: a day
   heading spans the whole column, tint and rules and all, which it cannot do
   from inside a container that is itself capped and centred. So the container
   runs the full width and everything inside it takes the same inset - the
   gutter, or whatever lines it up with a 64rem column, whichever is larger. */
#page-content-wrapper > .container-fluid.flight-page {
  max-width: none;
  padding-top: 0;
  padding-inline: 0;
  --column-inset: max(var(--klc-gutter), calc((100% - 64rem) / 2 + var(--klc-gutter)));
}

.flight-page > .alert,
/* The cards take the column inset; the two bands run the full width and set it as
   padding instead, so neither may take it twice. Cards now sit inside a per-day
   section, which is what lets each heading stop sticking at the end of its day. */
#flight-list > *:not(.flight-day):not(.flight-free):not(.flight-day-group),
.flight-day-group > *:not(.flight-day) {
  margin-inline: var(--column-inset);
}

.flight-page > .alert {
  margin-top: 1rem;
}

/* A day's sectors read as one block, with the date said once above them rather
   than on every card. That also gives each card the width the date block used
   to take, which the route and the flight number now have. */
.flight-day {
  position: sticky;
  /* One pixel higher than the header, so the band's own top border lands underneath
     the header's - which paints over it at a far greater z-index. Level with it, the
     two 1px rules stacked into a 2px line the moment a band pinned, while the first
     band of the list carries no top border and showed 1px. Same heading, two
     thicknesses, depending only on how far you had scrolled. */
  top: calc(var(--klc-header-height) - 1px);
  z-index: 2;
  /* Two columns: the date holds the left, the day's route the right. It used to
     be three with the route centred between the date and a sector count, but the
     chain says how many legs there are by having them. */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.625rem;
  /* No margin, top or bottom. Above: the space between two days is carried by the
     section before this one, so a band stays pinned right up to the moment the next
     one arrives to take its place.

     Below: a sticky box is held by its *margin* box, so a bottom margin here ended
     the section a margin's width under the visible band. The outgoing band started
     sliding away while the incoming one was still that far short of touching it, and
     the strip of page colour between them stayed there for the whole handoff. With
     no margin the two meet edge to edge and one plainly pushes the other out. The
     space under the band belongs to the cards now. */
  margin-block: 0;
  padding-block: 0.4375rem 0.375rem;
  /* The page colour rather than a surface of its own: this is a heading, and a
     third filled band would compete with the cards it introduces. Opaque so the
     cards pass cleanly underneath it. */
  /* It sticks under the header, and in the page colour it slid under there almost
     unseen. A tint of its own marks it at any width - a rule at its leading edge
     only works on a phone, because the band runs the full window while the cards
     stay in a column, and on a monitor that rule ends up nowhere near them. */
  background-color: var(--klc-day-band);
  border-block: 1px solid var(--klc-border);
  /* The band and its rules run the full width while the date and the chain sit on
     the same line as the cards. */
  padding-inline: var(--column-inset);
  font-size: 0.75rem;
}

/* The first heading is already at its sticking position when the page loads, so
   its top rule would land on the header's own and read as one thick line. */
/* Reaches through the per-day section the heading now sits in. Without the
   section part this stopped matching, and the first heading came back with a top
   margin and a rule that lands on the header's own. */
#flight-list > .flight-day-group:first-child > .flight-day {
  margin-top: 0;
  border-top: 0;
}

/* The night before a day, said in that day's band. It is the reason the day is a
   new one, so it belongs on the same object rather than on a strip floating above
   it, competing with the band for the same boundary. */
.flight-day.has-rest {
  row-gap: 0.1875rem;
}

#flight-list.is-day-compact .flight-day-route,
#flight-list.is-day-compact .flight-day-rest {
  display: none;
}

.flight-day-rest {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  flex-wrap: wrap;
  padding-top: 0.3125rem;
  border-top: 1px dashed var(--klc-border-strong);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--klc-text-muted);
}

.flight-day-rest > .bi {
  font-size: 0.75rem;
  line-height: 1;
}

.flight-day-rest > .bi::before {
  display: block;
  vertical-align: 0;
}

.flight-day-rest b {
  color: var(--klc-text-secondary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Whole days with no duty on them. A band of their own rather than a duration on
   a strip: the list used to jump from Monday to Friday and leave the reader to
   work out what they had off. Dashed and unfilled, because nothing happens here. */
.flight-free {
  /* The same two columns as a day heading, so the date lands in the same place and
     the chip lines up with the one above it. Only the weight differs: dashed rules
     and no fill, because a day off should not sit as heavily in the list as a day
     that has something on it. */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-block: 0 0.5rem;
  padding-block: 0.4375rem 0.375rem;
  padding-inline: var(--column-inset);
  border-block: 1px dashed var(--klc-border-strong);
  /* Same size as a day heading, so the two chips are the same height and sit on the
     same line as each other down the right edge of the list. */
  font-size: 0.75rem;
  color: var(--klc-text-muted);
}

.flight-free-what {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-2);
  border: 1px solid var(--klc-border);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--klc-text-secondary);
}

.flight-free-what::before {
  display: block;
  vertical-align: 0;
}

.flight-free-when {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--klc-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The gap between one day and the next, held inside the day it follows, so a band
   is never released before the next one has arrived. An ::after rather than padding
   on the section: a sticky box is confined to its container's content box and
   padding falls outside it, and the band would let go early all over again. */
/* The gap the band used to carry as a bottom margin. On the card it looks the same
   and stays out of the band's margin box, which is what the handoff is measured by. */
.flight-day-group > .flight-day + * {
  margin-top: 0.5rem;
}

.flight-day-group::after {
  content: "";
  display: block;
  height: 0.875rem;
}

.flight-day-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--klc-text);
}

/* Where the day begins and ends, taken across every sector in it. */
.flight-day-route {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-2);
  border: 1px solid var(--klc-border);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--klc-text-secondary);
}

/* A separator, not a connector: it says the stations follow one another without
   claiming there is a leg drawn between these two in particular. */
.flight-day-via {
  opacity: 0.4;
  font-weight: 400;
  margin-inline: 0.0625rem;
}

/* What sits between two flights: a turnaround, a night in a hotel, or time at
   home. What it is on the left, how long it lasts on the right, the rule
   between them. Underneath each other the durations line up into a column you
   can read down without reading the labels. */
.flight-gap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.625rem 0;
  /* Set in from the cards on both sides, so the strip reads as something tucked
     between them rather than as a row of its own width. The inset matches the
     card's own gutter, which is where the route above it starts. */
  padding-inline: 1rem;
}

/* Set as a micro caption, the same as the day heading above it and the labels
   inside the card, so it reads as part of the furniture rather than as a line
   of prose that wandered between two cards. */
.flight-gap-what {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--klc-text-muted);
}

.flight-gap-what > .bi {
  font-size: 0.875rem;
  /* Cancels the tracking on the glyph, which has no letters to space. */
  letter-spacing: 0;
  opacity: 0.75;
}

/* Bootstrap drops every icon by 0.125em so it sits well beside text of its own
   size. Here the row centres the icon against a smaller label itself, and that
   drop lands on top of the centring - so the glyph has to be given back its own
   box before it can be centred in it. */
.flight-gap-what > .bi::before {
  vertical-align: 0;
}

.flight-gap-rule {
  flex: 1;
  min-width: 0.75rem;
  border-top: 1px solid var(--klc-border);
}

/* Off duty: the line itself is broken. A turnaround keeps you at work and keeps
   its rule solid, so a week of trips has a visible shape before you read a word
   of it. */
.flight-gap.is-break .flight-gap-rule {
  border-top-style: dashed;
  border-top-color: var(--klc-border-strong);
}

.flight-gap-time {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--klc-text-secondary);
}

/* A turnaround under 25 minutes is krap (LiveActivity::TIGHT_TURN); below zero the Aankomst is past the next off-block. */
.flight-gap.is-tight .flight-gap-time {
  color: var(--klc-warning);
}

.flight-gap.is-short .flight-gap-time {
  color: var(--klc-danger);
}

.flight-ident {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
}

/* Route: the headline. Airport codes carry the meaning, so give them size. Three
   fixed columns rather than three flexing ones: both codes get the room of the
   widest one, so the leg starts and ends on the same spot in every card and the
   aeroplanes line up down the list. */
.flight-route {
  display: grid;
  grid-template-columns: minmax(4ch, max-content) 1fr minmax(4ch, max-content);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--klc-text);
}

.flight-port {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.flight-route > .flight-port:last-child {
  text-align: right;
}

/* What a duty day is, where the route would be. A size down from the airport
   codes, because a name or a roster code runs longer than three letters. */
.flight-duty {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--klc-text);
}

.flight-duty > .bi {
  font-size: 1rem;
  color: var(--klc-text-secondary);
}

/* Putting an office day away, from the card it is on. Always visible: a control
   that appears on hover is one nobody finds, and half the screens here have no
   hover at all. */
.flight-duty-hide {
  margin-left: 0.375rem;
  padding: 0.125rem 0.25rem;
  border: 0;
  background: none;
  color: var(--klc-text-secondary);
  font-size: 0.875rem;
  line-height: 1;
}

.flight-duty-hide:hover,
.flight-duty-hide:focus-visible {
  color: var(--klc-text);
}

/* What you have hidden, and the way back. */
.hidden-codes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hidden-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--klc-border);
}

.hidden-code:last-child {
  border-bottom: 0;
}

.hidden-code-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden-code-code {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--klc-text-secondary);
}

.hidden-codes-empty {
  color: var(--klc-text-secondary);
}

.hidden-codes-note {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
}

/* The leg between the two ports, drawn rather than written. It fills its column,
   so the two airports sit at the outer edges of the card. */
.flight-leg {
  position: relative;
  height: 1px;
  background: var(--klc-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
}

.flight-leg::before,
.flight-leg::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--klc-border-strong);
  top: 50%;
  transform: translateY(-50%);
}

.flight-leg::before { left: 0; }
.flight-leg::after { right: 0; }

.flight-leg .bi {
  position: relative;
  font-size: 0.8125rem;
  color: var(--klc-brand);
  background: var(--klc-surface);
  padding: 0 0.3125rem;
  transform: rotate(90deg);
}

.flight-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
}

/* Which aeroplane sits at the far end of the line that names the flight: the two
   are the same kind of fact, and the space between them was empty anyway. It
   shrinks before the flight number does, because the number is the thing you
   are looking for. */
.flight-meta > .meta-item {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  font-size: 0.75rem;
}

.flight-meta > .meta-item > .bi {
  margin-right: 0.3125rem;
}

.flight-number {
  font-weight: 650;
  color: var(--klc-text);
  font-variant-numeric: tabular-nums;
}

#flight-list .flight-number {
  font-size: 1.125rem;
}

.flight-time {
  font-variant-numeric: tabular-nums;
}

/* The row aligns on the baseline, which would drop a three pixel dot onto it
   rather than beside the text. */
.flight-meta .meta-dot {
  align-self: center;
}

/* After the time, separated the way the boarding pass separates its meta line.
   This is where the DH/ prefix used to be buried in the number. */
.flight-dh {
  align-self: center;
  padding: 0.0625rem 0.3125rem;
  border: 1px solid var(--klc-border-strong);
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-3);
  color: var(--klc-text-secondary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* Status and crew sections */
.flight-span {
  padding: 0.875rem 1rem;
}

/* The crew row is always emitted, empty or not, so it gets no border or fill of
   its own - an empty strip would read as a stray bar. The divider appears only
   when the row actually holds a crew list or the message explaining why it
   does not. (The status row above it is emitted conditionally in JS, so it
   needs no equivalent.) */
.flight-body > .flight-row:last-child .flight-span {
  padding-top: 0;
}

/* The crew handle is the card's bottom edge, so the inset below it would show as
   a strip of card under the bar. Only when there is a crew list: the message
   explaining there is none still needs its margin. */
.flight-body > .flight-row:last-child .flight-span {
  padding-bottom: 0;
}

/* Chips that are actually links carry a tap target, not just a label. The
   padding stays visually the same; the reach is extended. */
a.badge {
  position: relative;
  padding-top: 0.4375rem;
  padding-bottom: 0.4375rem;
}

a.badge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  min-height: 2.75rem;
}

/* Crew. The flight list and the colleagues page render a crew member the same
   way; the three layouts differ only in wrapper and avatar size. These rules
   replace a block of selectors that compensated for the old Bootstrap-grid
   markup rather than describing a component. */
.flight-span .profilePicture {
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--klc-border);
}

/* Flight deck reads dark and cabin reads brand, both from the badge variants
   the rest of the app uses. An earlier edit folded those two selectors into the
   deadhead rule below, which gave every rank the deadhead colours and lost the
   distinction entirely. */
.crew-dh {
  background-color: var(--klc-surface-3);
  color: var(--klc-text-muted);
  border-color: var(--klc-border-strong);
}



/* Refresh spinner and connection state, pinned below the header rather than at
   hardcoded pixel offsets. */
/* The flight list refreshes itself every minute. A spinner appearing over the
   header each time read as something going wrong; a hairline along the header's
   bottom edge says "working" without asking to be looked at. Anchored to the
   header, so it needs no offset of its own. */
.app-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.app-progress::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  border-radius: 2px;
  background-color: var(--klc-brand);
  animation: app-progress 1.1s var(--klc-ease) infinite;
}

@keyframes app-progress {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(400%);
  }
}

/* Without motion the bar still has to read as activity, so it dims instead. */
@media (prefers-reduced-motion: reduce) {
  .app-progress::after {
    width: 100%;
    animation: app-progress-pulse 1.4s ease-in-out infinite;
  }

  @keyframes app-progress-pulse {
    0%, 100% {
      opacity: 0.25;
    }

    50% {
      opacity: 1;
    }
  }
}

/* Losing the connection is worth interrupting for, so this one is a chip that
   hangs below the header rather than a hairline. */
.app-offline {
  position: absolute;
  left: 50%;
  bottom: -0.9375rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  border-radius: var(--klc-radius-pill);
  background-color: var(--klc-danger);
  color: var(--klc-text-on-brand);
  font-size: 0.75rem;
  font-weight: 650;
  box-shadow: var(--klc-shadow);
}

@media (max-width: 575.98px) {
  .flight-route {
    font-size: 1.1875rem;
  }

  .flight-ident,
  .flight-span {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   17. Colleague search
   The whole page is one question, so the fields sit on a single line on a
   desktop and stack on a phone, with the flight number given the room.
   -------------------------------------------------------------------------- */

.search-panel .card-body {
  padding: 1.25rem;
}

.search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  flex: 1 1 9rem;
  min-width: 0;
}

.search-field-flight {
  flex: 2 1 12rem;
}

.search-field label {
  margin-bottom: 0.375rem;
}

.search-field-flight .form-control {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.25rem;
  height: 2.75rem;
}

.search-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4375rem;
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
}

.search-note .bi {
  color: var(--klc-brand);
  flex: 0 0 auto;
  margin-top: 0.125rem;
}

@media (max-width: 575.98px) {
  .search-field,
  .search-field-flight {
    flex: 1 1 100%;
  }

  .search-submit {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   18. iCal agenda's
   Creating one leads. Each existing calendar shows its state, its URL, and the
   one action that matters - subscribing - before sharing and settings.
   -------------------------------------------------------------------------- */

.ical-new-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.ical-new-row .form-control {
  flex: 1;
  min-width: 0;
}

.ical-new-row .btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  white-space: nowrap;
}

.ical-new-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4375rem;
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
}

.ical-new-note .bi {
  color: var(--klc-brand);
  flex: 0 0 auto;
  margin-top: 0.125rem;
}

/* One card per calendar: what it is and how it is doing at the top, the two
   things you came to do with it next, and the settings folded away below in
   groups rather than nine boxes in a row. */
.ical-card {
  overflow: clip;
}

.ical-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--klc-border);
}

/* The calendar that names colleagues is the one you must not pass on, so it says
   so where the card introduces itself rather than somewhere in its body, and the
   card carries a mark of its own. */
.ical-head-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

/* The mark never wraps and never shrinks: a long calendar name gives way to it
   instead, so a flagged card stays exactly as tall as the rest. */
.ical-private {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  white-space: nowrap;
}

.ical-card.is-private {
  border-left: 3px solid var(--klc-brand-strong);
}

.ical-card.is-private .ical-head {
  background-color: var(--klc-brand-soft);
}

.ical-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--klc-text);
}

/* Deleting a calendar is not the thing you came for, so it is quiet until you
   reach for it. */
.ical-delete {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--klc-radius-sm);
  color: var(--klc-text-muted);
  transition: background-color var(--klc-fast) var(--klc-ease),
    color var(--klc-fast) var(--klc-ease);
}

.ical-delete:hover,
.ical-delete:focus {
  background-color: var(--klc-danger-soft);
  color: var(--klc-danger);
}

.ical-body {
  padding: 1rem;
}

/* How the sync is doing: a line rather than a badge, because it reports a state
   you glance at, not a label you act on. */
/* Both of these report what this calendar is doing, so they share a row and wrap
   together rather than one floating between the status and the address. */
.ical-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  margin-bottom: 0.875rem;
}

.ical-state-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.75rem;
  color: var(--klc-text-muted);
}

.ical-state-text > .bi {
  flex: 0 0 auto;
  font-size: 0.8125rem;
}

.ical-state.is-success .bi {
  color: var(--klc-success);
}

.ical-state.is-warning .bi {
  color: var(--klc-warning);
}

.ical-state.is-danger .bi {
  color: var(--klc-danger);
}

.ical-url {
  display: block;
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}

.ical-subscribe {
  margin-bottom: 0.5rem;
}

/* The Android sheet: the ways to subscribe there. */
.ical-sheet-head {
  margin: 1.25rem 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.ical-sheet-steps {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--klc-text-secondary);
  font-size: 0.875rem;
}

.ical-sheet-steps li + li {
  margin-top: 0.25rem;
}

.ical-sheet-none {
  margin: 0.5rem 0 0;
  color: var(--klc-danger);
  font-size: 0.875rem;
}

.ical-share {
  display: flex;
  gap: 0.5rem;
}

.ical-share .btn {
  flex: 1;
  min-width: 0;
}

/* A disclosure, not a fourth button: it sits under three of them, and a pill
   here read as one more thing to press. A rule above it and a chevron on the
   right say what it actually does. */
.ical-settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--klc-border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--klc-text-secondary);
}

.ical-settings-toggle:hover,
.ical-settings-toggle:focus {
  color: var(--klc-brand-strong);
  text-decoration: none;
}

.ical-settings-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform var(--klc-fast) var(--klc-ease);
}

.ical-settings-toggle[aria-expanded="true"] .ical-settings-chevron {
  transform: rotate(180deg);
}

/* The form opens directly under the row that opened it, and needs the gap that
   row's own padding cannot give it. */
.ical-settings {
  padding-top: 0.875rem;
}

/* Nine options in a row is a wall. Four headings turn it into a list you can
   scan for the one you came to change. */
.ical-group {
  margin-bottom: 1.125rem;
}

.ical-group-title {
  display: block;
  margin-bottom: 0.4375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--klc-text-muted);
}

.ical-group .form-group:last-child {
  margin-bottom: 0;
}

@media (max-width: 400px) {
  .ical-new-row {
    flex-direction: column;
  }

  .ical-new-row .btn {
    justify-content: center;
  }
}

/* Crew list, shared by the colleague search results. Row per person: photo,
   rank, name - so the ranks form a column you can scan. */
.result-head {
  padding: 0.25rem 0 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--klc-border);
}

.result-head .flight-route {
  font-size: 1.25rem;
  margin-bottom: 0.375rem;
}

/* The crew, collapsed.
   A row of faces overlapping by a quarter, so every one is still readable, each
   marked flight deck or cabin. This is the whole crew presentation now: the
   list, compact list and grid it replaced were three renderings of the same
   people, and expanding this covers what all three were for. */
/* No inset of its own: the faces line up with the handle's label below them and
   with everything above them, which is what stops them reading as loose. The
   room underneath is what they come to rest on. */
.crew-stack {
  width: 100%;
  display: grid;
  grid-template-rows: 1fr;
  padding: 0.5rem 0 0.75rem;
  border: 0;
  background-color: transparent;
  text-align: left;
  cursor: pointer;
  transition: grid-template-rows var(--klc-normal) var(--klc-ease),
              padding-block var(--klc-normal) var(--klc-ease);
}

/* Open, the stack has gone into the drawer: the row it sat on closes up behind
   it so nothing empty is left above the list. */
.crew.is-open .crew-stack {
  grid-template-rows: 0fr;
  padding-block: 0;
  pointer-events: none;
}

.crew-stack-faces {
  display: flex;
  /* Shrinkable, so a course or a positioning flight with eleven names tightens
     the stack instead of running off the card. */
  flex: 0 1 auto;
  min-width: 0;
  --face: 2.5rem;
  --slot: 1.875rem;
  /* The ring around each picture sits outside its slot, so hold it back before
     clipping the tail of a crew too long to fit any other way. */
  padding: 2px;
  margin: -2px;
  overflow: hidden;
  min-height: 0;
  transform-origin: left center;
  transition: opacity var(--klc-normal) var(--klc-ease),
              transform var(--klc-normal) var(--klc-ease);
}

/* Down and away as one piece, while the named rows unfold underneath. */
.crew.is-open .crew-stack-faces {
  opacity: 0;
  transform: translateY(1.25rem) scale(0.82);
}

/* Put back by a refresh rather than by a tap: the panel does not animate, so
   neither should the stack. */
.crew.is-restored .crew-stack-faces {
  transition: none;
}


/* Each face is a narrow slot holding a picture wider than itself; the overflow
   is the overlap. Squeeze the slots and the stack closes up on its own. */
.crew-face {
  position: relative;
  display: block;
  flex: 0 0 var(--slot);
  line-height: 0;
  /* Later siblings paint over earlier ones, which put the cockpit underneath
     the cabin. The crew arrives ranked, so counting down puts the front of the
     aeroplane on top of the stack. */
  z-index: calc(20 - var(--z, 0));
}

/* The last picture has nothing to overlap, so its slot holds the whole width. */
.crew-face:last-child {
  flex: 0 0 var(--face);
}

.crew-face .profilePicture {
  width: var(--face);
  height: var(--face);
  /* Overflowing the slot is the point, so the Bootstrap clamp has to go. */
  max-width: none;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--klc-surface);
}

/* What they are doing on this flight: up front, down the back, or travelling as
   a passenger. Measured from the top left, which is the one corner that stays
   put while the slots shrink. */
.crew-face::after {
  content: "";
  position: absolute;
  left: calc(var(--face) - 0.75rem);
  top: calc(var(--face) - 0.75rem);
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--klc-surface);
}

.crew-face.is-deck::after {
  background-color: var(--klc-crew-deck);
}

.crew-face.is-cabin::after {
  background-color: var(--klc-crew-cabin);
}

/* Deadheading crew work neither side of the door today, and that is worth
   spelling out: a third colour of dot is not something anyone can decode. The
   marker widens into a chip, still anchored to the bottom right of the picture.
   The faces paint front-to-back, so a chip is never covered by its neighbour. */
.crew-face.is-dh::after {
  content: "DH";
  left: calc(var(--face) - 1.125rem);
  top: calc(var(--face) - 0.8125rem);
  width: 1.0625rem;
  height: 0.75rem;
  border-radius: 0.375rem;
  background-color: var(--klc-surface-3);
  box-shadow: 0 0 0 2px var(--klc-surface), inset 0 0 0 1px var(--klc-border-strong);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--klc-text-secondary);
}

/* The foot of the card: wall to wall, with a fill of its own so it belongs to
   the card rather than to the list. It is there on every card, whether or not
   anyone else on this flight uses the app, which is what keeps the weather from
   going missing along with the colleagues. */
.crew-foot {
  display: flex;
  align-items: stretch;
  /* Out through the inset the row carries, to meet the card on both sides. The
     card clips to its own radius, so the corners follow it. */
  width: calc(100% + 2rem);
  margin-inline: -1rem;
  border-top: 1px solid var(--klc-border);
  background-color: var(--klc-surface-2);
}

/* Left: the handle that opens the crew. It stays put - closed the stack sits
   above it, open the named list does - so nothing has to swap ends. */
.crew-nudge {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem 1rem;
  border: 0;
  background-color: transparent;
  color: var(--klc-text-muted);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  transition: background-color var(--klc-fast) var(--klc-ease),
              color var(--klc-fast) var(--klc-ease);
}

.crew-nudge:hover,
.crew-nudge:focus-visible {
  background-color: var(--klc-surface-3);
  color: var(--klc-text);
}

/* Nobody else on this flight uses the app. Still a strip rather than the dashed
   panel of three lines this used to be, on a card that has nothing to say. */
.crew-nudge.is-empty {
  cursor: default;
}

.crew-nudge.is-empty:hover {
  background-color: transparent;
  color: var(--klc-text-muted);
}

.crew-foot-split {
  flex: 0 0 1px;
  background-color: var(--klc-border);
  margin-block: 0.375rem;
}

/* Right: what belongs to the flight itself rather than to its status. */
.crew-foot-act {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5rem 1rem;
  color: var(--klc-brand-strong);
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

.crew-foot-act:hover,
.crew-foot-act:focus-visible {
  background-color: var(--klc-surface-3);
  color: var(--klc-brand-strong);
  text-decoration: none;
}

.crew-nudge-what {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-width: 0;
}

.crew.is-open .crew-nudge-what {
  display: none;
}

.crew.is-open .crew-nudge {
  justify-content: flex-end;
}

/* The same three colours as the dots on the faces, so the make-up of the crew
   reads before the list is open at all. */
.crew-nudge-mix {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
}

.crew-nudge-mix i {
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
}

.crew-nudge-mix .is-deck {
  background-color: var(--klc-crew-deck);
}

.crew-nudge-mix .is-cabin {
  background-color: var(--klc-crew-cabin);
}

/* The faces mark a deadhead with a "DH" chip rather than a third colour, for the
   reason given there: a third colour is not something anyone can decode. A chip
   will not fit at this size, so the marker here is the one that is not filled. */
.crew-nudge-mix .is-dh {
  background-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--klc-crew-dh);
}

.crew-nudge-chevron {
  flex: 0 0 auto;
  font-size: 0.75rem;
  line-height: 1;
  transition: transform var(--klc-normal) var(--klc-ease);
}

/* Bootstrap Icons pull ::before off the baseline by -0.125em, which on a strip
   this short reads as an arrow sitting high. */
.crew-nudge-chevron::before {
  display: block;
  vertical-align: 0;
}

.crew.is-open .crew-nudge-chevron {
  transform: rotate(180deg);
}

/* Transitioning to a height nobody has measured: the panel is a grid whose
   single row goes from 0fr to 1fr. */
.crew-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--klc-normal) var(--klc-ease);
}

.crew.is-open .crew-panel {
  grid-template-rows: 1fr;
}

/* Put back by a refresh: already open, not opening. */
.crew.is-restored .crew-panel,
.crew.is-restored .crew-stack {
  transition: none;
}

.crew-panel-inner {
  overflow: hidden;
  min-height: 0;
}

/* The rows arrive one after another rather than all at once. */
.crew.is-open .crew-row {
  animation: crew-row-in var(--klc-normal) var(--klc-ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

/* Put back by a refresh rather than opened by hand: no stagger. The movement
   reads as an arrival, and nothing arrived. */
.crew.is-restored .crew-row {
  animation: none;
}

@keyframes crew-row-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crew-panel,
  .crew-stack,
  .crew-stack-faces,
  .crew-nudge-chevron {
    transition: none;
  }

  .crew.is-open .crew-row {
    animation: none;
  }
}

/* The crew section's heading, with mailing them as its action. */
.crew-head {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin-bottom: 0.25rem;
}

.crew-head-label {
  flex: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

.crew-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.5rem;
  border: 0;
  border-radius: var(--klc-radius-sm);
  background-color: transparent;
  color: var(--klc-brand-strong);
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

.crew-mail .bi {
  font-size: 0.875rem;
}

.crew-mail:hover,
.crew-mail:focus-visible {
  background-color: var(--klc-surface-2);
}

/* The visible control is smaller than a thumb; the hit area is not. */
.crew-mail::after {
  content: "";
  position: absolute;
  inset: -0.4375rem -0.25rem;
}

.crew-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Only on a crew too long to read down: which end of the aeroplane, and how many.
   A deadhead group past six takes the warning colour, because that is the number
   that says a roster has not been kept up rather than that a crew is travelling. */
.crew-group {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin: 0.5rem 0 0.125rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

.crew-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--klc-border);
}

.crew-group-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.crew-group.is-many {
  color: var(--klc-warning-strong);
}

.crew-group:first-child {
  margin-top: 0.125rem;
}

.crew-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--klc-border);
  /* Anchor for the hit area below. */
  position: relative;
}

.crew-row:last-child {
  border-bottom: 0;
}

/* A heading draws its own rule, so the row above it should not draw a second. */
.crew-row:has(+ .crew-group) {
  border-bottom: 0;
}

.crew-avatar {
  flex: 0 0 auto;
  line-height: 0;
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  /* The photo's 1px ring lies outside it, and the panel cuts off what sticks
     out: room for it, or every ring in the list had a flat left side. */
  padding-left: 1px;
}

.crew-avatar .profilePicture {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.crew-row .crew-rank + .crew-dh,
.crew-row .crew-dh {
  margin-left: -0.375rem;
}

.crew-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--klc-text);
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  min-height: 2.25rem;
}

/* The rows are shorter than a comfortable tap target, so the name's hit area
   covers the whole row instead of its own text. The avatar beside it opens the
   same colleague, so nothing is lost by sitting over it. */
.crew-name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.crew-name:hover {
  color: var(--klc-brand-strong);
}

/* Grote foto's: the same rows, laid out as tiles. Nobody remembers thirty names
   but everybody knows the faces, so the picture leads and the name follows it.
   The rows are unchanged - only the direction they run in and what size the
   photograph is - which is why this is a class over the list rather than a
   second rendering.

   Two across on a phone, four from a laptop up. A fixed column count rather
   than a minimum tile width: a width that answers to the viewport puts most of
   a crew on one line on a wide screen, and the group stops reading as one. */
#flight-list.is-crew-grid .crew-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem 0.5rem;
  /* The bottom matches the gap between the rows. A tile carries no padding of
     its own, so what the list does not leave here is the whole of the room
     under the last name, and four pixels of it put the name on the foot. */
  padding: 0.375rem 0 0.875rem;
}

@media (min-width: 992px) {
  #flight-list.is-crew-grid .crew-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Wrapping rather than a column, so the rank and the deadhead chip stay beside
   each other on a line of their own: as siblings in a column they would stack. */
#flight-list.is-crew-grid .crew-row {
  flex-wrap: wrap;
  justify-content: center;
  /* From the top, not spread over the tile: a name that wraps to two lines makes
     its tile the tallest in the row, and centred content would then leave that
     row's photographs and chips each sitting at their own height. */
  align-content: flex-start;
  text-align: center;
  gap: 0.3125rem;
  padding: 0;
  border-bottom: 0;
}

#flight-list.is-crew-grid .crew-avatar,
#flight-list.is-crew-grid .crew-name {
  flex: 0 0 100%;
  justify-content: center;
  min-height: 0;
}

/* The whole point of the view. 4.5rem asks a shade more of the 400 x 400 an
   upload is cropped to than a 2x screen has to give, which is the trade the
   colleague card already makes: a soft face you recognise beats a sharp one
   you cannot. */
#flight-list.is-crew-grid .crew-avatar .profilePicture {
  width: 4.5rem;
  height: 4.5rem;
}

#flight-list.is-crew-grid .crew-name {
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* A heading is about everything under it, so it takes the width of the list
   rather than a tile's worth of it. */
#flight-list.is-crew-grid .crew-group {
  grid-column: 1 / -1;
  margin: 0.375rem 0 0;
}

/* The gap already sets them apart; the overlap that closes it belongs to the
   row, where the two chips sit against the name. */
#flight-list.is-crew-grid .crew-row .crew-dh {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   19. Page index
   The jump list at the top of Instellingen and Help.
   -------------------------------------------------------------------------- */

.page-index {
  display: grid;
  gap: 0.375rem;
}

@media (min-width: 576px) {
  .page-index {
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 1rem;
  }
}

.page-index a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--klc-radius-sm);
  color: var(--klc-text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color var(--klc-fast) var(--klc-ease),
    color var(--klc-fast) var(--klc-ease);
}

.page-index a .bi {
  color: var(--klc-text-muted);
  font-size: 1rem;
  width: 1.25rem;
  flex: 0 0 1.25rem;
  text-align: center;
}

.page-index a:hover {
  background-color: var(--klc-surface-3);
  color: var(--klc-brand-strong);
}

.page-index a:hover .bi {
  color: var(--klc-brand);
}

/* An icon in a section header makes a long page scannable. */
.card-header-icon {
  color: var(--klc-text-muted);
  margin-right: 0.5rem;
  font-size: 0.9375rem;
}

/* Deleting an account should not look like changing a preference. */
.card-danger {
  border-color: var(--klc-danger);
}

.card-danger .card-header {
  color: var(--klc-danger);
  border-bottom-color: var(--klc-danger);
  background-color: var(--klc-danger-soft);
}

.card-danger .card-header-icon {
  color: var(--klc-danger);
}

/* A registered device or passkey: what it is, when it was last used, and the
   one action that applies to it. Used instead of cards nested inside a card. */
.device-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--klc-border);
}

.device-row:last-of-type {
  border-bottom: 0;
}

.device-row-icon {
  font-size: 1.125rem;
  color: var(--klc-text-muted);
  flex: 0 0 auto;
}

.device-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.device-row-name {
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--klc-text);
  overflow-wrap: anywhere;
}

.device-row-meta {
  font-size: 0.75rem;
  color: var(--klc-text-muted);
  font-variant-numeric: tabular-nums;
}

.device-row form {
  flex: 0 0 auto;
  margin: 0;
}

/* A code you read out loud or type into another app. */
.pairing-code {
  font-family: var(--klc-font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--klc-text);
  background-color: var(--klc-surface-2);
  border: 1px dashed var(--klc-border-strong);
  border-radius: var(--klc-radius);
  padding: 1rem 0.75rem;
  margin: 0.875rem 0;
  user-select: all;
}

/* --------------------------------------------------------------------------
   Instellingen
   -------------------------------------------------------------------------- */

/* Who you are, at the top: the photo and the name colleagues see. */
.settings-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-profile .profilePicture {
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 4.5rem;
  margin: 0;
}

.settings-profile-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.settings-profile-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--klc-text);
  overflow-wrap: anywhere;
}

.settings-profile-meta {
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
  overflow-wrap: anywhere;
}

.settings-profile-edit {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* The photo is the button that changes it, with a badge that says so. */
.avatar-button {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.avatar-button .profilePicture {
  display: block;
}

.avatar-button:focus-visible {
  outline: 2px solid var(--klc-brand);
  outline-offset: 3px;
}

.avatar-button-badge {
  position: absolute;
  right: -0.125rem;
  bottom: -0.125rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--klc-surface);
  background-color: var(--klc-brand);
  color: var(--klc-text-on-brand);
  font-size: 0.8125rem;
}

/* The photo editor. */
.avatar-choose {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0.25rem;
}

.avatar-choose-current {
  width: 8.5rem;
  height: 8.5rem;
  margin-bottom: 0.25rem;
}

.avatar-choose p {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: var(--klc-text-secondary);
}

.avatar-choose .btn-block {
  width: 100%;
  margin: 0;
}

/* The stage: the photo under a round frame, the rest shaded. Square, as wide
   as the dialog allows. touch-action none, or a drag scrolls the page. */
.avatar-stage {
  position: relative;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--klc-radius);
  background-color: #0d141a;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.avatar-stage:active {
  cursor: grabbing;
}

.avatar-stage:focus-visible {
  outline: 2px solid var(--klc-brand);
  outline-offset: 2px;
}

.avatar-stage canvas {
  display: block;
}

/* 84% of the stage, matching FRAME in avatarEditor.js. */
.avatar-frame {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: 0 0 0 100vmax rgba(10, 22, 32, 0.6);
  outline: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.avatar-hint {
  margin: 0.75rem 0 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
}

.avatar-zoom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
  margin: 0 auto 1rem;
  color: var(--klc-text-muted);
}

.avatar-zoom .form-range {
  flex: 1;
}

.avatar-zoom .form-range::-webkit-slider-thumb {
  background-color: var(--klc-brand);
}

.avatar-zoom .form-range::-moz-range-thumb {
  background-color: var(--klc-brand);
}

.avatar-zoom .form-range::-webkit-slider-runnable-track {
  background-color: var(--klc-surface-3);
}

.avatar-crop .btn-block {
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

/* The jump list as one row of chips, scrolled sideways on a phone. */
.settings-jump {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 calc(var(--klc-gutter) * -1) 1rem;
  padding: 0.125rem var(--klc-gutter);
  scrollbar-width: none;
}

.settings-jump::-webkit-scrollbar {
  display: none;
}

.settings-jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-pill);
  background-color: var(--klc-surface);
  color: var(--klc-text);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.settings-jump a .bi {
  color: var(--klc-text-muted);
}

.settings-jump a:hover {
  border-color: var(--klc-brand);
  color: var(--klc-brand-strong);
}

/* A sub-heading inside a card, with room on the right for a save state. */
.settings-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

.settings-saved {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--klc-success);
  opacity: 0;
  transition: opacity var(--klc-normal) var(--klc-ease);
}

.settings-saved.is-visible {
  opacity: 1;
}

.settings-saved.is-error {
  color: var(--klc-danger);
}

/* Where notifications go: one row per channel, its state, and the one thing
   to do about it. */
.channel-list {
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.channel + .channel {
  border-top: 1px solid var(--klc-border);
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
}

.channel-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--klc-radius-sm);
  font-size: 1.125rem;
  background-color: var(--klc-brand-soft);
  color: var(--klc-brand-strong);
}

.channel-icon.is-telegram {
  background-color: rgba(34, 158, 217, 0.12);
  color: #1c8fc6;
}

.channel-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--klc-text);
}

.channel-state {
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
}

.channel-row > .btn,
.channel-row > .status-pill {
  flex: 0 0 auto;
}

/* A setting as a channel row (Meldingen, Live Activity): its name and one line
   on the left, the switch or the choice on the right. */
.setting-list:last-child {
  margin-bottom: 0;
}

.setting-list .channel[hidden] {
  display: none;
}

.setting-list label.channel-text {
  margin: 0;
  cursor: pointer;
}

/* A switch of our own: the site styles every .form-check-input as a native
   box inside a bordered row, which a switch cannot become. A track and a knob,
   in the brand colour when on. */
.setting-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 2.875rem;
  height: 1.75rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background-color: var(--klc-border-strong);
  cursor: pointer;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

.setting-switch::before {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform var(--klc-fast) var(--klc-ease);
}

.setting-switch:checked {
  background-color: var(--klc-brand);
}

.setting-switch:checked::before {
  transform: translateX(1.125rem);
}

.setting-switch:focus-visible {
  outline: 2px solid var(--klc-brand);
  outline-offset: 2px;
}

/* A choice as a settings app shows it: the value on the right, in the brand
   colour, with a chevron; the picker opens on a tap. */
.setting-choice {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 1 auto;
  max-width: 48%;
  margin: 0;
  padding: 0.25rem 1.25rem 0.25rem 0.25rem;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23808f9e' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--klc-brand-strong);
  text-align: right;
  text-align-last: right;
  text-overflow: ellipsis;
  cursor: pointer;
}

.setting-choice:focus-visible {
  outline: 2px solid var(--klc-brand);
  outline-offset: 2px;
  border-radius: var(--klc-radius-sm);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--klc-radius-pill);
  font-size: 0.75rem;
  font-weight: 650;
  background-color: var(--klc-surface-3);
  color: var(--klc-text-secondary);
}

.status-pill::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background-color: currentColor;
}

.status-pill.is-on {
  background-color: var(--klc-success-soft);
  color: var(--klc-success);
}

.status-pill.is-wait {
  background-color: var(--klc-warning-soft);
  color: var(--klc-warning);
}

/* A whole row that is a link or opens a picker: the help page's support
   ticket, a ticket's add-a-file row. */
.channel-link {
  display: block;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

.channel-link:hover,
.channel-link:focus-visible {
  color: inherit;
  text-decoration: none;
  background-color: var(--klc-surface-2);
}

.channel-link[hidden] {
  display: none;
}

.channel-chevron {
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--klc-text-muted);
}

/* A line under a channel's row, such as Telegram's nudge after an unfinished link. */
.channel-note {
  padding: 0 0.875rem;
}

.channel-note > .channel-retry {
  margin: 0 0 0.875rem;
}

/* What a channel needs to get going, opened under its row. */
.channel-panel {
  margin: 0 0.875rem 0.875rem;
  padding: 0.875rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-2);
  border: 1px solid var(--klc-border);
  font-size: 0.875rem;
  color: var(--klc-text-secondary);
}

.channel-panel > :last-child {
  margin-bottom: 0;
}

.channel-panel p {
  margin-bottom: 0.75rem;
}

.channel-panel .btn-block + .btn-block {
  margin-top: 0.5rem;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0 0.875rem 0.875rem 4.125rem;
  font-size: 0.8125rem;
}

.channel-links a {
  font-weight: 600;
}

/* A button that reads as the link beside it: no button height, no underline. */
.channel-links .btn-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
}

.channel-links .btn-link:hover {
  text-decoration: underline;
}

.channel-links .is-danger {
  color: var(--klc-danger);
}

.channel-links form {
  display: inline;
  margin: 0;
}

/* After a wait that came to nothing: what to try, above the steps. */
.channel-retry {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-info-soft);
  color: var(--klc-text);
  font-size: 0.8125rem;
}

.channel-retry > .bi {
  color: var(--klc-info);
  margin-top: 0.0625rem;
}

/* Numbered steps. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 0.875rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

/* A block with the number in its margin, so a step can hold any mix of text. */
.steps li {
  counter-increment: step;
  position: relative;
  min-height: 1.5rem;
  padding-left: 2.125rem;
  color: var(--klc-text);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: calc((1lh - 1.5rem) / 2);
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--klc-brand-soft);
  color: var(--klc-brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Waiting on another app: says so, and keeps moving. */
.channel-waiting {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: var(--klc-text);
  font-weight: 600;
}

.channel-waiting .spinner-border {
  width: 1.125rem;
  height: 1.125rem;
  border-width: 0.15em;
  color: var(--klc-brand);
}

/* Nothing will reach them: said once, above the channels. */
.channel-none {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-warning-soft);
  color: var(--klc-text);
  font-size: 0.875rem;
}

.channel-none > .bi {
  color: var(--klc-warning);
  margin-top: 0.0625rem;
}

/* ---------------------------------------------------------------------------
   Support ticket
   --------------------------------------------------------------------------- */

.page-index + .help-ticket {
  margin-top: 1.25rem;
}

.help-ticket {
  margin-bottom: 0;
}

.ticket-lead {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--klc-text-secondary);
}

.group-label-note {
  margin-left: 0.25rem;
  font-weight: 500;
  color: var(--klc-text-muted);
}

.ticket-files {
  margin-bottom: 0;
}

.ticket-files-over {
  margin: 0.75rem 0 0;
}

.ticket-files-over[hidden] {
  display: none;
}

.ticket-file .channel-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ticket-file-remove {
  flex: 0 0 auto;
  padding: 0.375rem 0.5rem;
  color: var(--klc-text-muted);
  line-height: 1;
}

.ticket-file-remove:hover,
.ticket-file-remove:focus-visible {
  color: var(--klc-danger);
}

/* The file inputs are hidden; the add row shows the focus of the next one. */
.form-group:has(.ticket-file-input:focus-visible) .ticket-file-add {
  outline: 2px solid var(--klc-brand);
  outline-offset: -2px;
}

/* What goes along with a ticket, said before it is sent. */
.ticket-context {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--klc-text-muted);
}

.ticket-context > .bi {
  margin-top: 0.0625rem;
}

/* ---------------------------------------------------------------------------
   Feedback (js/feedback.js)

   A button that confirms itself and a line under what went wrong. Nothing
   floats over the page.
   ------------------------------------------------------------------------- */
.is-done.btn,
button.is-done {
  border-color: transparent;
  background-color: var(--klc-success-soft);
  color: var(--klc-success);
}

.feedback-line {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--klc-danger);
}

.feedback-line.is-info {
  color: var(--klc-text-muted);
}

.feedback-line .bi {
  flex: none;
  margin-top: 0.0625rem;
}

/* A success left by a redirect, where an error would stand: in the page, until
   dismissed. */
.flash-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.375rem 0.75rem 0.875rem;
  border-radius: 0.875rem;
  background: var(--klc-success-soft);
  color: var(--klc-text);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.flash-notice > .bi {
  flex: none;
  margin-top: 0.0625rem;
  color: var(--klc-success);
  font-size: 1.25rem;
}

.flash-notice .flash-body {
  align-self: center;
}

.flash-notice .flash-dismiss {
  margin: -0.375rem 0 -0.375rem auto;
}

/* Where a duty was put away from the list, with the way back. */
.hidden-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  padding: 0.625rem 0.75rem 0.625rem 0.875rem;
  border: 1px dashed var(--klc-border-strong);
  border-radius: var(--klc-radius-lg);
  color: var(--klc-text-secondary);
  font-size: 0.875rem;
  line-height: 1.35;
}

.hidden-note > .bi {
  flex: none;
  color: var(--klc-text-muted);
  font-size: 1.125rem;
}

.hidden-note strong {
  color: var(--klc-text);
}

.hidden-note .btn {
  flex: none;
  margin-left: auto;
}

/* Rank and deadhead chips are a fixed column so the names line up. Twelve
   copies of an inline width used to do this. Filled rather than tinted: a row
   of them down the left is how one flight reads as a block. */
.crew-rank,
.badge.crew-rank {
  display: inline-flex;
  justify-content: center;
  width: 3.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.crew-rank.badge-dark {
  background-color: var(--klc-rank-deck);
  color: var(--klc-rank-ink);
  border-color: transparent;
}

.crew-rank.badge-primary {
  background-color: var(--klc-rank-cabin);
  color: var(--klc-rank-ink);
  border-color: transparent;
}

/* An unknown rank and a deadhead are both neither deck nor cabin. */
.crew-rank.badge-secondary,
.crew-dh.badge-secondary {
  background-color: var(--klc-rank-other);
  color: var(--klc-rank-ink);
  border-color: transparent;
}

.crew-dh,
.badge.crew-dh {
  display: inline-flex;
  justify-content: center;
  width: 2.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   20. Bijdragen
   The amount is the point of the page, so it leads. Declining stays available
   but does not compete with it.
   -------------------------------------------------------------------------- */

/* The one card in the app that asks for something, so it is allowed to glow a
   little - the same warm wash the amount block used to carry, moved to the card
   itself now that the block is gone. */
.donate-card {
  background:
    radial-gradient(120% 8rem at 50% 0%, var(--klc-accent-soft) 0%, transparent 70%),
    var(--klc-surface);
}

.donate-card .card-body {
  padding: 1.75rem 1.25rem 1.5rem;
}

.donate-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--klc-text);
}


.donate-intro {
  color: var(--klc-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.donate-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--klc-text-muted);
}

/* Fixed amounts rather than a slider: picking three euros out of fifteen steps
   with a thumb is a fiddle on a phone, and one of these is a single tap. The
   last one hands the amount to bunq, which the page could always do and had
   never offered. */
.donate-choice {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

/* The control is the radio; the label is what you see and hit. */
.donate-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.donate-chip {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--klc-text);
  white-space: nowrap;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--klc-fast) var(--klc-ease),
    background-color var(--klc-fast) var(--klc-ease),
    transform var(--klc-fast) var(--klc-ease);
}

.donate-chip-cur {
  margin-right: 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--klc-text-muted);
}

.donate-chip.is-other {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--klc-text-secondary);
}

/* Filled rather than outlined: at a glance you see which one you picked, not
   which one has a slightly bluer edge. */
.donate-radio:checked + .donate-chip {
  border-color: transparent;
  background-color: var(--klc-brand-strong);
  color: #ffffff;
  box-shadow: var(--klc-shadow-sm);
}

.donate-radio:checked + .donate-chip .donate-chip-cur {
  color: rgba(255, 255, 255, 0.72);
}

.donate-chip:active {
  transform: scale(0.97);
}

.donate-radio:focus-visible + .donate-chip {
  outline: 2px solid var(--klc-brand-strong);
  outline-offset: 2px;
}

.donate-secondary {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--klc-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.donate-secondary .btn-block {
  margin: 0;
}

/* The two secondary actions are buttons in their own forms now, so a token can
   travel with them. display:contents keeps the buttons as the flex children of
   .donate-secondary, which is what gives the first one its full width. */
.donate-secondary form {
  display: contents;
}

.donate-decline {
  /* Was an anchor; undo what a browser gives a button that it did not have. */
  background: none;
  border: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
  font-weight: 500;
}

.donate-decline:hover {
  color: var(--klc-text-secondary);
}

/* Not a second ask but a way to help without paying anything yourself, which is
   why it carries DigitalOcean's own blue on its edge rather than a logo drawn
   from memory. */
.referral {
  --referral-accent: #0069ff;
  border-left: 3px solid var(--referral-accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .referral {
    --referral-accent: #4d94ff;
  }
}

:root[data-theme="dark"] .referral {
  --referral-accent: #4d94ff;
}

.referral-heading {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--referral-accent);
}

.referral-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--klc-text);
}

.referral-p {
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
}

.referral-btn .bi {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Two related forms inside one card, rather than cards nested in cards. */
.panel-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .panel-split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .panel-split > .panel-part + .panel-part {
    padding-left: 2rem;
    border-left: 1px solid var(--klc-border);
  }
}

@media (max-width: 767.98px) {
  .panel-split > .panel-part + .panel-part {
    padding-top: 1.5rem;
    border-top: 1px solid var(--klc-border);
  }
}

.panel-title {
  font-size: 0.9375rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.panel-note {
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   21. Notice page
   Outcomes that used to arrive as a browser alert(): account deletion
   confirmed, link expired, and so on.
   -------------------------------------------------------------------------- */

.notice-body {
  color: var(--klc-text-secondary);
  font-size: 0.9375rem;
  text-align: center;
}

.notice-body p:last-child {
  margin-bottom: 0;
}

/* The page's icon in the soft circle of its tone. */
.notice-success .auth-icon { background: var(--klc-success-soft); color: var(--klc-success); }
.notice-warning .auth-icon { background: var(--klc-warning-soft); color: var(--klc-warning); }
.notice-danger .auth-icon { background: var(--klc-danger-soft); color: var(--klc-danger); }

/* --------------------------------------------------------------------------
   22. Summary hero
   Every data screen opens with the number you came for, before any detail.
   -------------------------------------------------------------------------- */

.summary-hero {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.375rem;
  margin-bottom: 1.25rem;
  border-radius: var(--klc-radius-lg);
  border: 1px solid var(--klc-border);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--klc-brand-soft) 0%, transparent 60%),
    var(--klc-surface);
  box-shadow: var(--klc-shadow-sm);
}

.summary-hero-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--klc-text-muted);
}

.summary-hero-value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--klc-text);
  font-variant-numeric: tabular-nums;
}

.summary-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
}

.summary-hero-meta .bi {
  color: var(--klc-brand);
}

/* --------------------------------------------------------------------------
   23. Daggeld ledger
   -------------------------------------------------------------------------- */

.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--klc-border);
}

.ledger-month {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--klc-text);
}

.ledger-total {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--klc-text);
  font-variant-numeric: tabular-nums;
}

.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--klc-border);
  font-size: 0.875rem;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-date {
  flex: 0 0 3.75rem;
  color: var(--klc-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-dest {
  flex: 1;
  font-weight: 650;
  color: var(--klc-text);
  letter-spacing: -0.01em;
}

.ledger-amount {
  flex: 0 0 auto;
  font-weight: 650;
  color: var(--klc-text);
  font-variant-numeric: tabular-nums;
}

.ledger-row-open {
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

.ledger-list li:not(:last-child) > .ledger-row-open { border-bottom: 1px solid var(--klc-border); }
.ledger-row-open:hover { background-color: var(--klc-brand-soft); }

.ledger-chevron {
  flex: 0 0 auto;
  margin-left: -0.25rem;
  color: var(--klc-text-muted);
  font-size: 0.75rem;
}

.ledger-row-empty {
  color: var(--klc-text-muted);
  justify-content: center;
}

/* A month whose total could not be worked out. The dash is the absence of a
   number, not a number - so it takes the muted colour the empty row does,
   rather than the weight a real total carries. */
.ledger-total-unknown {
  color: var(--klc-text-muted);
  font-weight: 650;
}

/* Why the total is missing, at the foot of the card it belongs to. A notice
   rather than an alert: nothing is wrong with the roster, only with what we
   know about exchange rates. */
.ledger-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.625rem 1.125rem;
  border-top: 1px solid var(--klc-border);
  background-color: var(--klc-warning-soft);
  color: var(--klc-warning);
  font-size: 0.78125rem;
  line-height: 1.45;
}

.ledger-note .bi {
  flex: none;
  margin-top: 0.05rem;
}

/* --------------------------------------------------------------------------
   24. Weather
   Conditions lead; the hourly strip and the numbers follow.
   -------------------------------------------------------------------------- */

/* The station stays put while its days scroll past, the way the day heading
   does in the flight list - two nightstops of two days each is more than one
   screen, and the name is what tells you which weather you are reading. */
.wx-head {
  position: sticky;
  top: var(--klc-header-height);
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem var(--wx-inset);
  background-color: var(--klc-surface);
  /* It is the card's first child, so it carries the card's own top corners
     rather than squaring them off once it lifts over the content. */
  border-radius: calc(var(--klc-radius) - 1px) calc(var(--klc-radius) - 1px) 0 0;
  border-bottom: 1px solid var(--klc-border);
}

.wx-station {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--klc-text);
}

.wx-dates {
  font-size: 0.75rem;
  color: var(--klc-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.wx-day + .wx-day {
  border-top: 1px solid var(--klc-border);
}

.wx-summary {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem var(--wx-inset) 0.75rem;
}

.wx-icon {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  /* Every condition is normalised to 46 units of ink in a 64 unit box, which
     leaves 9 either side. Pulling the box back by exactly that puts the drawing
     on the same column as the figures and the strip below it. */
  margin-left: calc(3.25rem * -9 / 64);
}

/* WeatherAPI draws its conditions at whatever size suits each picture: measured
   over all 48 of them, the artwork runs 46px wide inside the 64px box for most,
   55 for the ones carrying a sun, 52 for those at night, and 36 or 17 for a
   clear sky. They are centred, so the columns only look crooked because the
   pictures differ in size. Evening that out is all it takes. The clear night is
   capped rather than matched: a crescent blown up nearly three times reads as
   soft, and a small moon is no crime. */
[data-wx-art="wide-day"] {
  transform: scale(0.84);
}

[data-wx-art="wide-night"] {
  transform: scale(0.88);
}

[data-wx-art="clear-day"] {
  transform: scale(1.28);
}

[data-wx-art="clear-night"] {
  transform: scale(1.8);
}

/* The capped crescent keeps more of its box than the rest, so the shared pull
   back is not enough for it: measured after its own scaling, its drawing starts
   14 units in rather than 9. */
.wx-icon[data-wx-art="clear-night"] {
  margin-left: calc(3.25rem * -14 / 64);
}

.wx-summary-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.wx-date {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--klc-text);
  text-transform: capitalize;
}

.wx-condition {
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
}

.wx-temps {
  display: flex;
  align-items: baseline;
  gap: 0.4375rem;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.wx-max {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--klc-text);
  line-height: 1;
}

.wx-min {
  font-size: 1rem;
  font-weight: 550;
  color: var(--klc-text-muted);
}

/* Hourly strip: scrolls sideways rather than wrapping into a grid. The mask
   fades the trailing edge, which is the only cue that there is more to see -
   a touch device shows no scrollbar until you already know to swipe. */
.wx-hours {
  display: flex;
  gap: 0.125rem;
  overflow-x: auto;
  /* The same inset as the heading above and the figures below: once the current
     hour is tinted, its left edge is a line you can see, and it has to sit on
     the column the rest of the card is built on. */
  padding: 0.25rem var(--wx-inset) 0.75rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  /* Without this the snapport runs to the padding box, so the browser settles
     the first hour flush against the edge and scrolls the inset above out of
     sight - the padding is set, and then immediately scrolled away. */
  scroll-padding-inline: var(--wx-inset);
  /* The strip lives strictly between the card's two columns: nothing is painted
     in either inset, so an hour scrolled part way out disappears on the same
     line the heading starts on rather than running to the card's edge. The
     right also fades before it gets there, which is the only cue that there is
     more to see - a touch device shows no scrollbar until you already know to
     swipe. The opaque run starts a pixel early so rounding cannot shave the
     tinted hour at rest. */
  -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      #000 calc(var(--wx-inset) - 1px),
      #000 calc(100% - 3.25rem),
      transparent calc(100% - var(--wx-inset)));
  mask-image: linear-gradient(to right,
      transparent 0,
      #000 calc(var(--wx-inset) - 1px),
      #000 calc(100% - 3.25rem),
      transparent calc(100% - var(--wx-inset)));
}

/* Once scrolled to the end there is nothing more to hint at. */
/* Scrolled to the end there is nothing left to hint at, so the fade goes - but
   the two columns stay. */
.wx-hours.is-scrolled-end {
  -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      #000 calc(var(--wx-inset) - 1px),
      #000 calc(100% - var(--wx-inset)),
      transparent calc(100% - var(--wx-inset)));
  mask-image: linear-gradient(to right,
      transparent 0,
      #000 calc(var(--wx-inset) - 1px),
      #000 calc(100% - var(--wx-inset)),
      transparent calc(100% - var(--wx-inset)));
}

.wx-hour {
  flex: 0 0 auto;
  width: 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.0625rem;
  padding: 0.5rem 0.25rem;
  border-radius: var(--klc-radius-sm);
  scroll-snap-align: start;
  transition: background-color var(--klc-fast) var(--klc-ease);
}

/* The strip already begins at the current hour; this says so. */
.wx-hour.is-now {
  background-color: var(--klc-brand-soft);
  border-radius: 0.5rem;
}

.wx-hour.is-now .wx-hour-time {
  color: var(--klc-brand-strong);
  font-weight: 700;
}

/* Only worth the ink once it is likely: below a third it is noise. */
.wx-hour-rain {
  margin-top: 0.125rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  color: var(--klc-info);
}

.wx-hour:hover {
  background-color: var(--klc-surface-3);
}

.wx-hour img {
  width: 1.75rem;
  height: 1.75rem;
}

.wx-hour-time {
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--klc-text-muted);
  font-variant-numeric: tabular-nums;
}

.wx-hour-temp {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--klc-text);
  font-variant-numeric: tabular-nums;
}

/* Numbers worth calling out. */
/* Three figures do not need three boxes. One row instead, the way the flight
   card states its own detail: the icon says which measure it is, the figure
   carries the weight, and the unit trails it quietly. */
.wx-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1.25rem;
  /* It belongs to the day above it, not to the hours below, so it sits close
     under the summary and leaves the wider gap before the strip. */
  /* Bootstrap's glyphs sit hard against the left of their box where text and
     the weather artwork both carry a little air, so this row reads as if it
     pokes out. Two pixels back settles it optically. */
  padding: 0 var(--wx-inset) 0.25rem;
  padding-left: calc(var(--wx-inset) + 0.125rem);
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
}

/* A day with no hours in range ends on this row, and then it needs the card's
   own bottom margin rather than the small gap meant for the strip. */
.wx-stats:last-child {
  padding-bottom: 1.125rem;
}

.wx-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  color: inherit;
}

/* The one stat that leaves the app is also the one that has to be hit with a
   thumb, so it is padded out and pulled back in again - a target without a
   box. */
a.wx-stat {
  padding: 0.375rem 0.5rem;
  margin: -0.375rem -0.5rem;
  border-radius: var(--klc-radius-sm);
  text-decoration: none;
}

a.wx-stat:hover,
a.wx-stat:focus {
  background-color: var(--klc-surface-2);
  color: var(--klc-text-secondary);
  text-decoration: none;
}

.wx-stat .bi {
  color: var(--klc-brand-strong);
  font-size: 0.9375rem;
  flex: 0 0 auto;
}

.wx-stat-value {
  font-weight: 700;
  color: var(--klc-text);
  font-variant-numeric: tabular-nums;
}

/* The arrow flies with the wind rather than pointing into it, the way a sock
   does. Which quarter it came from is on the label beside it, because that is how
   it is spoken. Rotating the glyph needs a box of its own: a bi is an inline
   ::before, and a transform on an inline box does nothing. */
.wx-stat .wx-wind {
  display: inline-flex;
  transform: rotate(var(--wx-wind-deg, 0deg));
}

/* Specific enough to beat `.wx-stat .bi` above, which otherwise sizes and
   colours this one too: it is a hint that the link leaves the app, not a
   measure of its own, and it should not read as loud as the sun beside it. */
.wx-stat .wx-stat-out {
  font-size: 0.6875rem;
  color: var(--klc-text-muted);
  opacity: 0.8;
}

.wx-stat-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The sticky heading is pushed back down by the foot of its own card as that
   card scrolls away, which lands it exactly where the card should be rounding
   off - and it paints above the border, so its square bottom corners cut the
   card's round ones. Clipping the card to its own shape settles it. `clip`
   rather than `hidden`: hidden would make this a scroll container and the
   heading would stop sticking to the page at all. */
.wx-card {
  /* One inset for the whole card. The heading, the day, the figures, the strip
     and the footnote all read from it, so they cannot drift apart again. */
  --wx-inset: 0.75rem;
  overflow: clip;
}

/* The strip runs on the destination's clock while the rest of the app runs on
   UTC, so it has to say so - but once for the station, as a footnote, rather
   than as a heading standing over every day. */
.wx-tz {
  padding: 0 var(--wx-inset) 0.75rem;
  text-align: right;
  font-size: 0.625rem;
  color: var(--klc-text-muted);
}

.wx-unavailable {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: var(--wx-inset);
  color: var(--klc-text-muted);
  font-size: 0.875rem;
}

.wx-unavailable .bi {
  font-size: 1.125rem;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   25. Empty states
   -------------------------------------------------------------------------- */

/* What a list says while it loads, when it is empty, or when it failed: the
   icon in the brand's soft circle, as on the upload screen. */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  color: var(--klc-text-muted);
}

.empty-state > .bi {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background-color: var(--klc-brand-soft);
  color: var(--klc-brand);
  font-size: 1.875rem;
}

.empty-state.is-error > .bi {
  background-color: var(--klc-danger-soft);
  color: var(--klc-danger);
}

/* The upload screen's turning ring. */
.empty-state.is-loading > .bi::after {
  content: "";
  position: absolute;
  inset: -0.375rem;
  border: 2px solid transparent;
  border-top-color: var(--klc-brand);
  border-radius: 50%;
  animation: upload-screen-spin 0.9s linear infinite;
}

.empty-state h3 {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--klc-text);
}

.empty-state p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  color: var(--klc-text-muted);
}

.empty-state .btn {
  margin-top: 1.25rem;
}

.empty-state .handoff-mark {
  margin-bottom: 1.25rem;
}

.modal .empty-state {
  padding: 1.5rem 0.5rem;
}

.modal .empty-state h3 {
  font-size: 1.125rem;
}

/* The ways a roster comes in, on an empty flight list. */
.empty-routes {
  width: 100%;
  max-width: 26rem;
  margin: 1.5rem auto 0;
  text-align: left;
  background-color: var(--klc-surface);
}

.empty-state .empty-routes .btn {
  margin-top: 0;
}

a.channel-row {
  color: inherit;
  text-decoration: none;
}

.empty-routes-address {
  font-family: var(--bs-font-monospace);
  font-size: 0.8125rem;
  color: var(--klc-text-secondary);
  overflow-wrap: anywhere;
}

.empty-routes-go {
  flex: 0 0 auto;
  color: var(--klc-text-muted);
}

.empty-state .empty-foot {
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.empty-foot a {
  color: var(--klc-brand-strong);
}

@media (prefers-reduced-motion: reduce) {
  .empty-state.is-loading > .bi::after {
    animation-duration: 2.4s;
  }
}

@media (max-width: 575.98px) {
  .summary-hero-value {
    font-size: 2rem;
  }


  .ledger-date {
    flex-basis: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   26. Auth pages
   The front door: sign in, register, reset, passkey. One centred column on a
   quiet background, with the brand doing the work instead of a bare heading.
   -------------------------------------------------------------------------- */

.auth-page {
  min-height: 100vh;
  /* The small viewport: the page then fits without forcing the scroll that
     collapses the address bar in the first place. */
  min-height: 100svh;
  display: flex;
  /* copyright.php renders inside <main>, so this stacks. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(2rem + var(--klc-safe-top)) 1rem
    calc(2rem + var(--klc-safe-bottom));
}

.auth-page .copyright {
  width: 100%;
  max-width: 26rem;
  margin-top: 1.5rem;
  padding-bottom: 0;
}

.auth-page .divider-label {
  margin: 1rem 0;
}

/* A rule with a label in the middle: "of" on the sign-in page, the rest period
   between two flights on the flight list. */
.divider-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--klc-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider-label::before,
.divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--klc-border);
}

/* The privacy statement: public, so no sidebar. The brand on top as on the
   upload screen, then one card per section. */
.policy-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: calc(1.25rem + var(--klc-safe-top)) 1rem calc(2rem + var(--klc-safe-bottom));
}

.policy-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--klc-text);
  text-decoration: none;
}

.policy-brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
}

.policy-hero {
  padding: 2rem 0 1.5rem;
}

.policy-hero h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--klc-text);
}

.policy-version {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--klc-radius-pill);
  background-color: var(--klc-surface-3);
  color: var(--klc-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.policy-page .card {
  /* Clear of the status bar when a contents link scrolls here. */
  scroll-margin-top: calc(1rem + var(--klc-safe-top));
}

.policy-page .card-body p:last-child,
.policy-page .card-body ul:last-child {
  margin-bottom: 0;
}

.policy-subheading {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--klc-text);
}

.card-body > .policy-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding: 0.1875rem 0 0.1875rem 1.25rem;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.75em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--klc-brand);
}

/* Steps to follow: numbered in the brand colour instead of the dot. */
ol.policy-list {
  counter-reset: policy-step;
}

ol.policy-list li {
  counter-increment: policy-step;
  padding-left: 1.5rem;
}

ol.policy-list li::before {
  content: counter(policy-step) ".";
  top: 0.1875rem;
  left: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--klc-brand);
  font-weight: 700;
}

.policy-services {
  margin-bottom: 0;
}

.policy-services .channel-state {
  white-space: normal;
}

/* The rest period reads as a duration, not as a section heading. */
/* The app logo on a hand-off page (LogTen), sitting where an empty-state
   icon normally goes. */
.handoff-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--klc-border);
  margin-bottom: 0.25rem;
}

.auth-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--klc-text-muted);
}

.auth-footnote a {
  font-weight: 650;
}

/* Turnstile draws a fixed 300x65 widget of its own design. Stretching it to the
   card width looked wrong next to everything else, so leave it at its natural
   size and simply centre it with room either side. */
.auth-page .cf-turnstile {
  margin-top: 0.75rem;
  min-height: 65px;
  display: flex;
  justify-content: center;
}

/* Only if the card is narrower than the widget's fixed width does it scale. */
@media (max-width: 359px) {
  .auth-page .cf-turnstile {
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -0.5rem;
  }
}

/* A phone: the column starts at the top rather than floating mid-screen. */
@media (max-width: 575.98px) {
  .auth-page {
    justify-content: flex-start;
    padding-inline: 0.75rem;
  }

  .auth-page .copyright {
    margin-top: auto;
    padding-top: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   METAR and TAF
   A dialog holding two aerodromes' reports, shown exactly as issued, a card per
   aerodrome. Everything here is layout around that text: no character of a
   report is changed, and only as much division as it takes to see where
   one report ends and the next begins.
   -------------------------------------------------------------------------- */

/* What the dialog was opened for, and the way out of it, on one row. */
.avwx-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0.875rem 0.5rem 1rem;
}

.avwx-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.75rem;
}

/* Deliberately the same chip as the day heading in the flight list: this dialog
   is opened from a card there, and the route is what ties the two together. */
.avwx-route {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  flex: 0 0 auto;
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-2);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--klc-text-secondary);
}

.avwx-route > .bi {
  font-size: 0.625rem;
  letter-spacing: 0;
  color: var(--klc-text-muted);
}

.avwx-when {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--klc-text-muted);
}

.avwx-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  opacity: 1;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--klc-text-muted);
}

.avwx-close:hover,
.avwx-close:focus-visible {
  background-color: var(--klc-surface-2);
  color: var(--klc-text);
  opacity: 1;
}

.avwx-body {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

/* One card per aerodrome, as the flight cards: its code, name and the
   scheduled moment it matters for, then its two reports. */
.avwx-station {
  overflow: hidden;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius);
  background-color: var(--klc-surface);
}

.avwx-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem 0.5rem;
}

.avwx-icao {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--klc-text);
}

.avwx-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--klc-text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.avwx-role,
.avwx-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
}

.avwx-role {
  flex: 0 0 auto;
}

.avwx-role > b,
.avwx-label > b {
  margin-left: 0.25rem;
  font-family: var(--klc-font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--klc-text);
}

.avwx-report {
  padding: 0 0.875rem 0.75rem;
}

.avwx-label {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.avwx-label > b {
  margin-left: 0;
}

.avwx-label > em {
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* The report itself, exactly as issued. */
.avwx-raw {
  margin: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--klc-border);
  border-radius: var(--klc-radius-sm);
  background-color: var(--klc-surface-2);
  font-family: var(--klc-font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--klc-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* A TAF's change groups, a line each; a wrapped line hangs under its keyword. */
.avwx-line {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}

.avwx-line + .avwx-line {
  padding-left: 4ch;
}

/* A token never breaks inside itself, not even after the minus of -DZRA. */
.avwx-tok {
  white-space: nowrap;
}

.avwx-kw {
  font-weight: 700;
  color: var(--klc-brand-strong);
}

.avwx-raw .bg-avwx-warning,
.avwx-raw .bg-avwx-danger {
  border-radius: 3px;
  font-weight: 650;
}

.avwx-raw .bg-avwx-warning {
  background-color: var(--klc-warning-soft);
  box-shadow: 0 0 0 2px var(--klc-warning-soft);
  color: var(--klc-warning-strong);
}

.avwx-raw .bg-avwx-danger {
  background-color: var(--klc-danger-soft);
  box-shadow: 0 0 0 2px var(--klc-danger-soft);
  color: var(--klc-danger-strong);
}

/* The groups in force within an hour of the scheduled departure or arrival,
   marked with a band around the text rather than in it. */
.avwx-line.is-now {
  margin: 0 -0.625rem;
  padding-right: 0.625rem;
  padding-left: calc(4ch + 0.625rem);
  background-color: var(--klc-brand-soft);
  box-shadow: inset 3px 0 0 var(--klc-brand);
}

/* On a phone the sheet has one frame around each report and none around the
   aerodrome. */
@media (max-width: 575.98px) {
  #METARTAFModal .avwx-top {
    padding: 0.25rem 0.5rem 0.5rem 0.75rem;
  }

  #METARTAFModal .avwx-body {
    gap: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0.75rem 0.75rem;
  }

  #METARTAFModal .avwx-station {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background-color: transparent;
  }

  #METARTAFModal .avwx-station + .avwx-station {
    margin-top: 0.25rem;
    border-top: 1px solid var(--klc-border);
  }

  /* The aerodrome stays in view while its reports scroll past. */
  #METARTAFModal .avwx-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.625rem 0 0.375rem;
    background-color: var(--klc-surface);
  }

  #METARTAFModal .avwx-name {
    display: none;
  }

  #METARTAFModal .avwx-role {
    margin-left: auto;
  }

  #METARTAFModal .avwx-report {
    padding: 0 0 0.625rem;
  }

  #METARTAFModal .avwx-raw {
    padding: 0.4375rem 0.5rem;
  }

  #METARTAFModal .avwx-line.is-now {
    margin: 0 -0.5rem;
    padding-right: 0.5rem;
    padding-left: calc(4ch + 0.5rem);
  }
}

/* --------------------------------------------------------------------------
   26b. iOS focus zoom
   Safari on iPhone and iPad zooms the viewport when you focus a control whose
   text is smaller than 16px, and then leaves the page zoomed. Our fields are
   15px, which is enough to trigger it on every form in the app.

   The fix is the text size, not the viewport: locking scale with
   maximum-scale=1 would also stop anyone pinching to zoom, which is a real
   accessibility loss. This raises the type to 16px on iOS only - the guard is
   true on WebKit for iOS and nowhere else - so nothing changes on a desktop.
   -------------------------------------------------------------------------- */

@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  select,
  textarea,
  .form-control,
  .form-control-sm,
  .custom-select,
  .input-group-text {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   27. Loading states
   The app uses a big icon plus two headings in several places; centre and
   soften it so it reads as intentional rather than broken.
   -------------------------------------------------------------------------- */

#flight-list > .display-4,
#weatherInfo > .display-4,
.display-4 > .bi {
  color: var(--klc-text-muted);
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   28. Responsive
   Crew read this on a phone far more often than on a desktop.
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
  body {
    font-size: 0.9375rem;
  }

  .card-body {
    padding: 0.9375rem;
  }

  .card-header {
    padding: 0.75rem 0.9375rem;
  }

  .modal-content {
    border-radius: var(--klc-radius);
  }

}

/* --------------------------------------------------------------------------
   29. Print
   -------------------------------------------------------------------------- */

@media print {
  .nav-rail,
  .nav-scrim,
  .app-header,
  .bottom-nav,
  .tsat-widget,
  .app-progress,
  .app-offline,
  .copyright,
  .app-header-actions {
    display: none !important;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  /* The rail is gone, so the content should use the whole page. */
  #page-content-wrapper {
    margin-left: 0;
    padding-bottom: 0;
    min-height: 0;
  }

  #page-content-wrapper > .container-fluid {
    max-width: none;
    padding: 0;
    --klc-gutter: 0px;
  }

  .card,
  .flight-card,
  .wx-card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }

  /* The hourly strip cannot be scrolled on paper. */
  .wx-hours {
    overflow-x: visible;
    flex-wrap: wrap;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }
}

/* The rollout that asks what the crew make of the new design. Its own block
   rather than reused card styles: it is one modal, and borrowing from the
   roster's own components would tie the two together for no reason. */
.klc-feedback {
  border: 0;
  border-radius: 14px;
}

.klc-feedback .modal-body {
  padding: 22px 20px 20px;
}

.klc-feedback-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--klc-brand-soft);
  color: var(--klc-brand-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.klc-feedback-mark.is-done {
  background: var(--klc-success-soft);
  color: var(--klc-success);
  margin-left: auto;
  margin-right: auto;
}

.klc-feedback-title {
  font-weight: 700;
  color: var(--klc-text);
  margin: 0 0 6px;
}

.klc-feedback-sub {
  color: var(--klc-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 18px;
}

/* Tall enough to hit with a thumb on a phone, which is where the roster is
   read. */
.klc-feedback-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1.5px solid var(--klc-border);
  border-radius: 11px;
  background: var(--klc-surface);
  color: var(--klc-text);
  font-weight: 600;
  text-align: left;
}

.klc-feedback-choice:hover,
.klc-feedback-choice:focus {
  border-color: var(--klc-brand);
}

.klc-feedback-choice .bi {
  font-size: 1.3rem;
}

.klc-feedback-thumb-down {
  color: var(--klc-accent);
}

/* The way out, on every step. A link's underline made it compete with the two
   choices above it; this reads as the quiet option it is, while still being a
   44px target on a phone. */
.klc-feedback-skip {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--klc-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.klc-feedback-skip:hover,
.klc-feedback-skip:focus {
  background: var(--klc-bg);
  color: var(--klc-text);
  text-decoration: none;
}

/* A heading with nothing under it carries the gap itself. */
.klc-feedback-title-only {
  margin-bottom: 18px;
}

.klc-feedback-error {
  color: var(--klc-danger);
  font-size: 0.86rem;
  margin: 0;
}

/* Wijst eenmalig het menu aan waar de weergave van collega's wordt gekozen.
   Hangt onder de knop zelf, want een tip die ergens anders staat vraagt de
   lezer om te zoeken naar wat hij aanwijst. */
.view-hint {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1030;
  width: max-content;
  max-width: min(19rem, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  /* In dark mode zijn alle brand kleuren licht, want daar zijn het accenten op
     een donker vlak. De ballon neemt die kleur over en zet er donkere inkt op,
     dezelfde als de gate chip gebruikt: één paar dat in beide thema's leesbaar
     blijft, zonder een eigen kleur te verzinnen. */
  background: var(--klc-brand-deep);
  color: var(--klc-hint-ink, #fff);
  font-size: 0.86rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Het pijltje naar de knop erboven. */
.view-hint::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
}

.view-hint-body {
  flex: 1;
}

.view-hint-close {
  flex: none;
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: 7px;
  background: var(--klc-hint-button, rgba(255, 255, 255, 0.16));
  color: var(--klc-hint-ink, #fff);
  font-weight: 600;
  font-size: 0.86rem;
}

.view-hint-close:hover,
.view-hint-close:focus {
  background: var(--klc-hint-button-hover, rgba(255, 255, 255, 0.28));
}

/* Drie groepen in één menu, dus de kopjes moeten uit elkaar te houden zijn en
   de gekozen stand moet in één oogopslag te vinden zijn. */
.header-menu .view-menu {
  min-width: min(20rem, 100vw - 1rem);
  padding-bottom: 0.35rem;
}

.view-menu .view-seg { margin-inline: 0.5rem; }

.view-menu .dropdown-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--klc-text-muted);
  padding-top: 0.5rem;
}

/* A bar of mutually exclusive choices in the view menu, as many columns as it
   has buttons. */
.view-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.1875rem;
  margin: 0.25rem 0 0.375rem;
  padding: 0.1875rem;
  background-color: var(--klc-surface-3);
  border-radius: 0.5rem;
}

.view-seg > button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.375rem;
  min-width: 0;
  padding: 0.5rem 0.375rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--klc-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

/* Too narrow for icon and label side by side: every bar stacks them, so no
   single button breaks ranks. */
.view-menu { container-type: inline-size; }

@container (max-width: 18.5rem) {
  .view-seg > button { flex-direction: column; }
}

.view-seg > button > .bi {
  flex: 0 0 auto;
  font-size: 0.9375rem;
  color: var(--klc-text-muted);
}

/* A ring rather than a lighter fill, because a fill that lifts off the track in
   light mode sinks into it in dark. */
.view-seg > button.is-selected {
  background-color: var(--klc-brand-soft);
  box-shadow: inset 0 0 0 1px var(--klc-brand);
  color: var(--klc-brand-deep);
}

.view-seg > button.is-selected > .bi {
  color: var(--klc-brand);
}

/* Nightstop widget: the stay between two flight cards, on a sky that follows
   the weather and the hour at the station. */
.ns {
  --ns-ink: #fff;
  --ns-ink-soft: rgba(255, 255, 255, 0.8);
  --ns-glass: rgba(255, 255, 255, 0.16);
  --ns-glass-line: rgba(255, 255, 255, 0.24);
  --ns-top: #4f6688;
  --ns-bottom: #7a8ba6;
  --ns-glow: rgba(255, 255, 255, 0.12);
  --ns-shade: 0%;
  --ns-sky-top: color-mix(in srgb, var(--ns-top), #04080f var(--ns-shade));
  --ns-sky-bottom: color-mix(in srgb, var(--ns-bottom), #04080f var(--ns-shade));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: 0.5rem 0.75rem;
  padding: 0.875rem 1rem 1rem;
  border-radius: 1.125rem;
  color: var(--ns-ink);
  background:
    radial-gradient(110% 80% at 88% -15%, color-mix(in srgb, var(--ns-glow), transparent var(--ns-shade)), transparent 58%),
    linear-gradient(180deg, var(--ns-sky-top) 0%, var(--ns-sky-bottom) 100%);
  box-shadow: 0 8px 24px -14px rgba(10, 30, 60, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-variant-numeric: tabular-nums;
}

.ns::before,
.ns::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Time of day sets the light. */
.ns[data-phase="day"] { --ns-top: #2f7fcc; --ns-bottom: #6fb3e6; --ns-glow: rgba(255, 240, 190, 0.55); }
.ns[data-phase="dusk"] { --ns-top: #46598a; --ns-bottom: #b48c9c; --ns-glow: rgba(255, 190, 140, 0.6); }
.ns[data-phase="night"] { --ns-top: #0c1735; --ns-bottom: #26395f; --ns-glow: rgba(120, 140, 220, 0.3); }

/* The weather mutes it. */
.ns[data-sky="cloud"][data-phase="day"] { --ns-top: #4c7fb4; --ns-bottom: #8fb0d0; --ns-glow: rgba(255, 245, 210, 0.35); }
.ns[data-sky="cloud"][data-phase="night"] { --ns-top: #1a2644; --ns-bottom: #3a4a6a; }
.ns[data-sky="overcast"][data-phase="day"],
.ns[data-sky="fog"][data-phase="day"],
.ns[data-sky="none"] { --ns-top: #5d7088; --ns-bottom: #8796a8; --ns-glow: rgba(255, 255, 255, 0.14); }
.ns[data-sky="overcast"][data-phase="dusk"],
.ns[data-sky="fog"][data-phase="dusk"] { --ns-top: #55607e; --ns-bottom: #8f8796; }
.ns[data-sky="overcast"][data-phase="night"],
.ns[data-sky="fog"][data-phase="night"] { --ns-top: #202a3c; --ns-bottom: #3c4758; --ns-glow: rgba(255, 255, 255, 0.06); }
.ns[data-sky="rain"] { --ns-top: #46586d; --ns-bottom: #6d7c8e; --ns-glow: rgba(255, 255, 255, 0.12); }
.ns[data-sky="rain"][data-phase="night"] { --ns-top: #1c2635; --ns-bottom: #364354; }
.ns[data-sky="storm"] { --ns-top: #2e2f4a; --ns-bottom: #575a72; --ns-glow: rgba(190, 180, 255, 0.18); }
.ns[data-sky="snow"] { --ns-top: #6c84a0; --ns-bottom: #a7b6c8; --ns-glow: rgba(255, 255, 255, 0.3); }
.ns[data-sky="snow"][data-phase="night"] { --ns-top: #2a3954; --ns-bottom: #56688a; }

.ns[data-sky="cloud"]::before,
.ns[data-sky="overcast"]::before {
  background:
    radial-gradient(55% 30% at 18% 28%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(45% 24% at 72% 72%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(38% 20% at 96% 38%, rgba(255, 255, 255, 0.14), transparent 70%);
  filter: blur(6px);
}

/* Fog: a few soft banks of mist drifting sideways, and haze rising from below. */
.ns[data-sky="fog"]::before {
  inset: -20% -40%;
  background:
    radial-gradient(45% 22% at 20% 35%, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(40% 18% at 70% 55%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(50% 20% at 45% 80%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(30% 14% at 90% 25%, rgba(255, 255, 255, 0.12), transparent 70%);
  filter: blur(10px);
  animation: ns-mist 36s ease-in-out infinite alternate;
}

.ns[data-sky="fog"]::after {
  background: linear-gradient(180deg, transparent 35%, rgba(255, 255, 255, 0.16));
}

@keyframes ns-mist {
  to { transform: translateX(14%); }
}

/* Rain: short streaks on three tile sizes that do not divide into each other,
   so no pattern repeats, falling at three speeds. */
.ns[data-sky="rain"]::before,
.ns[data-sky="storm"]::before {
  inset: -40px -20%;
  background-image:
    radial-gradient(0.7px 9px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(0.6px 7px at 75% 70%, rgba(255, 255, 255, 0.26), transparent),
    radial-gradient(0.8px 11px at 40% 55%, rgba(255, 255, 255, 0.34), transparent),
    radial-gradient(0.5px 6px at 85% 20%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(0.7px 8px at 10% 80%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(0.6px 10px at 60% 10%, rgba(255, 255, 255, 0.28), transparent);
  background-size: 89px 137px, 127px 181px, 173px 229px, 211px 157px, 151px 263px, 239px 199px;
  transform: skewX(-12deg);
  animation: ns-rain 2.4s linear infinite;
}

.ns[data-sky="rain"]::after,
.ns[data-sky="storm"]::after {
  background:
    radial-gradient(80% 50% at 25% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, 0.08));
}

@keyframes ns-rain {
  to { background-position: 0 137px, 0 181px, 0 229px, 0 157px, 0 263px, 0 199px; }
}

@media (prefers-reduced-motion: reduce) {
  .ns[data-sky="rain"]::before,
  .ns[data-sky="storm"]::before,
  .ns[data-sky="fog"]::before { animation: none; }
}

.ns[data-sky="snow"]::before {
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 30% 60%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 55% 30%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 75% 75%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 90% 15%, rgba(255, 255, 255, 0.8), transparent);
}

.ns[data-phase="night"][data-sky="clear"]::before,
.ns[data-phase="night"][data-sky="cloud"]::after {
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 46% 18%, #fff, transparent),
    radial-gradient(1px 1px at 63% 48%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 78% 26%, #fff, transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 36% 86%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 6% 78%, rgba(255, 255, 255, 0.8), transparent);
}

.ns[data-phase="night"][data-sky="cloud"]::after { opacity: 0.5; }

/* Dark mode dims the sky so it does not glare beside the cards. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ns {
    --ns-shade: 52%;
    --ns-ink-soft: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
  :root:not([data-theme="light"]) .ns::before { opacity: 0.7; }
}

:root[data-theme="dark"] .ns {
  --ns-shade: 52%;
  --ns-ink-soft: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
:root[data-theme="dark"] .ns::before { opacity: 0.7; }

.ns-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-ink-soft);
}

.ns-top > .bi { font-size: 0.875rem; }

.ns-now {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ns-ink);
  white-space: nowrap;
}

.ns-now img {
  width: 26px;
  height: 26px;
  margin: -4px -2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.ns-now b { font-weight: 600; }
.ns-now small { font-size: 0.75rem; color: var(--ns-ink-soft); }

.ns-hero {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ns-cal {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.75rem;
  background: var(--ns-glass);
  border: 1px solid var(--ns-glass-line);
}

.ns-cal b {
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.ns-cal b .bi { font-size: 1rem; opacity: 0.8; }

.ns-cal span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ns-ink-soft);
  white-space: nowrap;
}

.ns-city {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 2.125rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.ns-city[data-len="m"] { font-size: 1.625rem; }
.ns-city[data-len="l"] { font-size: 1.375rem; line-height: 1.1; }

.ns-city small {
  margin-left: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ns-ink-soft);
  white-space: nowrap;
  vertical-align: middle;
}

.ns-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ns-ink-soft);
}

.ns-meta b { color: var(--ns-ink); font-weight: 600; }
.ns-meta .temps { white-space: nowrap; }
.ns-meta .temps b { font-size: 0.9375rem; }

.ns-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ns-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid var(--ns-glass-line);
  background: var(--ns-glass);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--ns-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ns-chip:hover,
.ns-chip:focus-visible { color: var(--ns-ink); background: rgba(255, 255, 255, 0.24); }
.ns-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ns-chip .bi { font-size: 1rem; }
.ns-chip.is-hotel .bi-arrow-up-right { font-size: 0.8125rem; opacity: 0.8; }

.ns-chip.is-money,
.ns-chip.is-more {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 17rem;
  padding-right: 0.625rem;
}

.ns-chip.is-missing {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 17rem;
  padding-right: 0.625rem;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.55);
}

.ns-chip.is-missing .ns-coin { opacity: 0.85; }

.ns-chip.is-missing .ns-chevron,
.ns-chip.is-money .ns-chevron,
.ns-chip.is-more .ns-chevron { margin-left: auto; }

.ns-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.ns-amount small { font-size: 0.6875rem; font-weight: 500; color: var(--ns-ink-soft); }

.ns-coin {
  display: inline-grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #34495e;
  font-size: 0.75rem;
  font-weight: 700;
}

.ns-chip .ns-chevron {
  font-size: 0.75rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.ns.is-open .ns-chevron { transform: rotate(180deg); }

.ns-note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ns-ink-soft);
}

/* Opens the way the crew list does: grid rows from 0fr to 1fr. */
.ns-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.ns.is-open .ns-more { grid-template-rows: 1fr; }

.ns-more-inner {
  display: grid;
  gap: 0.625rem;
  min-height: 0;
  overflow: hidden;
}

/* The hour strip scrolls; without this it widens the panels past the card. */
.ns-more-inner > * { min-width: 0; }

.ns.is-open .ns-more-inner { padding-top: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  .ns-more,
  .ns-chevron { transition: none; }
}

.ns-panel {
  padding: 0.625rem 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid var(--ns-glass-line);
  background: rgba(255, 255, 255, 0.12);
}

.ns-panel-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ns-glass-line);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-ink-soft);
}

.ns-panel-head a,
.ns-panel-head button {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
  color: var(--ns-ink);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.ns-panel-head button {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

.ns-hours {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  /* Fades at the edge while there is more to scroll. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}

.ns-hours.is-scrolled-end {
  -webkit-mask-image: none;
  mask-image: none;
}

.ns-hours::-webkit-scrollbar { display: none; }

.ns-hour {
  flex: 0 0 2.75rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.75rem;
}

.ns-hour img { width: 30px; height: 30px; }
.ns-hour .t { color: var(--ns-ink-soft); }
.ns-hour b { font-size: 0.875rem; font-weight: 600; }
.ns-hour .r { min-height: 0.9rem; font-size: 0.6875rem; color: #cfeaff; }
.ns-hour.is-now .t { color: var(--ns-ink); font-weight: 700; }

.ns-tz {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--ns-ink-soft);
}

.ns-days {
  display: grid;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ns-glass-line);
}

.ns-dayrow {
  display: grid;
  grid-template-columns: 3.5rem 1.75rem 2rem 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.ns-dayrow img { width: 28px; height: 28px; }
.ns-dayrow .lo { text-align: right; color: var(--ns-ink-soft); }
.ns-dayrow .hi { font-weight: 600; }

.ns-bar {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.ns-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #8fd3ff, #ffd36e);
}

.ns-ledger {
  display: grid;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.ns-ledger > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.ns-ledger > div > span:first-child { color: var(--ns-ink-soft); }

.ns-ledger .total {
  margin-top: 0.125rem;
  padding-top: 0.375rem;
  border-top: 1px solid var(--ns-glass-line);
  font-weight: 700;
}

.ns-ledger .total > span:first-child { color: var(--ns-ink); }

.ns-foot {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--ns-ink-soft);
}

.ns-fix {
  display: block;
  margin-top: 0.375rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ns-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* The allowance window: one nightstop's split, and the proposal form. */
.modal-title small {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--klc-text-muted);
}

.allowance-ledger {
  display: grid;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.allowance-ledger > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.allowance-ledger > div > span:first-child { color: var(--klc-text-secondary); }
.allowance-ledger > div > span:last-child { white-space: nowrap; }

.allowance-ledger .total {
  margin-top: 0.125rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--klc-border);
  font-weight: 700;
}

.allowance-ledger .total > span:first-child { color: var(--klc-text); }
.allowance-ledger .euro { color: var(--klc-text-muted); }

.allowance-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.125rem;
  padding: 0.75rem;
  border-radius: var(--klc-radius-sm);
  background: var(--klc-brand-soft);
}

.allowance-rates-head {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--klc-text-secondary);
}

.allowance-rates > div { display: grid; gap: 0.125rem; }
.allowance-rates > div > span { font-size: 0.75rem; color: var(--klc-text-muted); }
.allowance-rates b { font-size: 0.875rem; font-variant-numeric: tabular-nums; }

.allowance-foot {
  margin: 0.875rem 0 0;
  font-size: 0.75rem;
  color: var(--klc-text-muted);
}

.allowance-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.allowance-field { display: grid; gap: 0.25rem; margin: 0; font-size: 0.8125rem; font-weight: 600; }
.allowance-field small { font-weight: 400; color: var(--klc-text-muted); }
.allowance-field input { text-align: right; font-variant-numeric: tabular-nums; }
.allowance-field.is-currency { grid-column: 1 / -1; }
.allowance-field.is-currency select { max-width: 9rem; }

.allowance-pending {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--klc-radius-sm);
  background: var(--klc-warning-soft);
  font-size: 0.8125rem;
}

.allowance-loading { margin: 0; font-size: 0.8125rem; color: var(--klc-text-muted); }
.allowance-error { margin: 1rem 0 0; font-size: 0.8125rem; }

.allowance-done {
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.allowance-done .bi { font-size: 2rem; color: var(--klc-success); }
.allowance-done p { margin: 0; font-size: 0.875rem; color: var(--klc-text-muted); }

/* Compact: one row. */
.ns.is-compact {
  padding: 0.5rem 0.625rem 0.5rem 0.875rem;
  border-radius: 1rem;
}

.ns-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
}

.ns-mark { font-size: 0.875rem; color: var(--ns-ink-soft); }

/* The city is never cut: what sits beside it moves to a second line instead. */
.ns.is-compact .ns-city,
.ns.is-compact .ns-city[data-len] {
  flex: 1 0 auto;
  max-width: 100%;
  font-size: 1.0625rem;
  line-height: 1.25;
}

.ns-side {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
}

.ns.is-compact .ns-now { margin-left: 0; }
.ns.is-compact .ns-now small,
.ns.is-compact .ns-now [data-ns-clock],
.ns.is-compact .ns-coin { display: none; }

.ns.is-compact .ns-chip {
  flex: 0 0 auto;
  min-height: 2.125rem;
  padding: 0 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
}

.ns.is-compact .ns-chip.is-money { gap: 0.375rem; }

/* The whole compact card opens it, so the row spends its width on the city. */
.ns.is-compact .ns-chevron { display: none; }
.ns.is-compact .ns-chip.is-hotel { width: 2.125rem; justify-content: center; padding: 0; }
.ns.is-compact .ns-chip.is-missing { width: 2.125rem; justify-content: center; padding: 0; }
.ns.is-compact .ns-chip.is-missing .ns-coin { display: inline-grid; width: 1.125rem; height: 1.125rem; }

/* Too narrow for the whole row (nightstop.js fitNightstopRows): one face and a count, no temperature. */
.ns-friend-more.is-tight-count { display: none; }
.ns.is-compact.is-tight .ns-now,
.ns.is-compact.is-tight .ns-chip.is-friend .bi-heart-fill,
.ns.is-compact.is-tight .ns-friend-faces img + img,
.ns.is-compact.is-tight .ns-friend-more:not(.is-tight-count) { display: none; }
.ns.is-compact.is-tight .ns-friend-more.is-tight-count { display: inline; }
.ns.is-compact.is-tight .ns-chip.is-friend { padding: 0 0.375rem; }

/* Still too narrow: everything on a line of its own, under the city. */
.ns.is-compact.is-wrapped .ns-side { margin-left: 1.375rem; }

@media (max-width: 359px) {
  .ns { padding-inline: 0.875rem; }
  .ns-chip.is-hotel .bi-arrow-up-right { display: none; }
}

/* Where the card's hour strip crosses midnight. */
.ns-hour-day {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin: 0.25rem 0.125rem;
  padding-left: 0.25rem;
  border-left: 1px solid var(--ns-glass-line);
}

.ns-hour-day span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ns-ink-soft);
}

/* The one-time note introducing the widget, at the foot of the first card. */
.ns-new {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ns-glass-line);
  cursor: default;
}

.ns-new-text {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ns-ink);
}

.ns-new-text .bi { color: #ffe08a; font-size: 1rem; line-height: 1.2; }
.ns-new-text b { font-weight: 700; }

.ns-new-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.ns-new-seg {
  flex: 1;
  min-width: 12rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.1875rem;
  padding: 0.1875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--ns-glass-line);
  background: rgba(255, 255, 255, 0.12);
}

.ns-new-seg button {
  min-width: 0;
  padding: 0.4375rem 0.25rem;
  border: 0;
  border-radius: 0.5625rem;
  background: transparent;
  color: var(--ns-ink-soft);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.ns-new-seg button.is-selected {
  background: rgba(255, 255, 255, 0.26);
  color: var(--ns-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.ns-new-ok {
  flex: 0 0 auto;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--ns-glass-line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: #22344a;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.ns-new-seg button:focus-visible,
.ns-new-ok:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#flight-list .ns:has([data-ns-toggle]) { cursor: pointer; }

/* The weather page uses the nightstop sky. Its own rules read the app
   tokens, so the sky redefines them. */
.wx-card.ns {
  --klc-text: #fff;
  --klc-text-secondary: rgba(255, 255, 255, 0.88);
  --klc-text-muted: rgba(255, 255, 255, 0.78);
  --klc-border: rgba(255, 255, 255, 0.22);
  --klc-brand: #fff;
  --klc-brand-strong: #fff;
  --klc-brand-soft: rgba(255, 255, 255, 0.16);
  --klc-info: #cfeaff;
  border-color: transparent;
}

#weatherInfo .wx-card.ns:hover { border-color: transparent; }

/* Clip, not hidden: the station heading has to keep sticking. */
.wx-card.ns {
  overflow: clip;
  padding: 0;
  margin-block: 0;
}

.wx-card.ns .ns-top { padding: 0.875rem var(--wx-inset) 0; }

/* The large title scrolls with the card; .wx-bar stands in for it once it is gone. */
.wx-card.ns .wx-head {
  position: static;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding-top: 0.25rem;
  background: transparent;
  border-bottom-color: transparent;
  border-radius: 0;
}

/* One line of frosted glass in the card's own colour. The negative margin
   keeps it out of the layout, so nothing moves when it appears. */
.wx-card.ns .wx-bar {
  --wx-bar-height: 2.75rem;
  position: sticky;
  top: var(--klc-header-height);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--wx-bar-height);
  margin-bottom: calc(-1 * var(--wx-bar-height));
  padding: 0 var(--wx-inset);
  background: color-mix(in srgb, var(--ns-sky-top) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--klc-border);
  opacity: 0;
  pointer-events: none;
}

.wx-card.ns .wx-bar .wx-station.ns-city {
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-card.ns .wx-station.ns-city { font-size: 2rem; }
.wx-card.ns .wx-station.ns-city[data-len="m"] { font-size: 1.5rem; }
.wx-card.ns .wx-station.ns-city[data-len="l"] { font-size: 1.25rem; }
.wx-card.ns .wx-dates { font-size: 0.8125rem; }

.wx-card.ns .wx-day {
  margin: 0.625rem var(--wx-inset);
  border-radius: 0.875rem;
  border: 1px solid var(--klc-border);
  background: rgba(255, 255, 255, 0.12);
}

.wx-card.ns .wx-hour.is-now { background: rgba(255, 255, 255, 0.2); }
.wx-card.ns .wx-hour:hover { background: rgba(255, 255, 255, 0.14); }
.wx-card.ns .wx-tz { padding-top: 0.125rem; }
.wx-card.ns .wx-unavailable { padding-bottom: 1rem; }

/* Where the hour strip crosses midnight. */
.wx-hour-day {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin: 0.25rem 0.125rem;
  padding-left: 0.25rem;
  border-left: 1px solid var(--klc-border);
}

.wx-hour-day span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--klc-text-muted);
}

/* Weer op de route, compact: the heading on one line, the stay's hour strip,
   and each day as a single row. */
#weatherInfo.is-compact .wx-card.ns .ns-top { padding-top: 0.625rem; }

#weatherInfo.is-compact .wx-card.ns .wx-head {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0.125rem 0.375rem;
}

#weatherInfo.is-compact .wx-card.ns .wx-head .wx-station.ns-city[data-len] { font-size: 1.375rem; }

#weatherInfo.is-compact .wx-card.ns .wx-day {
  margin-block: 0.375rem;
  border-radius: 0.75rem;
}

#weatherInfo.is-compact .wx-summary {
  gap: 0.625rem;
  padding-block: 0.375rem;
}

#weatherInfo.is-compact .wx-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-left: calc(2.25rem * -9 / 64);
}

#weatherInfo.is-compact .wx-condition,
#weatherInfo.is-compact .wx-stats { display: none; }

#weatherInfo.is-compact .wx-max { font-size: 1.125rem; }
#weatherInfo.is-compact .wx-min { font-size: 0.875rem; }
#weatherInfo.is-compact .wx-hours { padding-bottom: 0.375rem; }

/* Daggeld rows: the date as a small calendar block, the city with its code. */
.ledger-date {
  display: inline-flex;
  flex: 0 0 2.75rem;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0;
  border-radius: 0.625rem;
  background: var(--klc-brand-soft);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ledger-date b {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--klc-text);
}

.ledger-dest small {
  margin-left: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--klc-text-muted);
}

/* Passkeys on Instellingen: what they are, the ones there are (as channel
   rows), and adding one. */
.passkey-hero {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.passkey-hero-icon {
  flex: 0 0 2.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--klc-brand-soft);
  color: var(--klc-brand-strong);
  font-size: 1.375rem;
}

.passkey-hero-title {
  margin: 0.125rem 0 0.25rem;
  font-weight: 700;
  color: var(--klc-text);
}

.passkey-hero-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--klc-text-secondary);
}

.passkey-rename .form-label {
  margin-bottom: 0.375rem;
  font-weight: 600;
  color: var(--klc-text);
}

.passkey-rename-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

/* The passkey this session signed in with, on its "last used" line. */
.passkey-current {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--klc-success);
}

.passkey-current::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background-color: currentColor;
}

/* -------------------------------------------------------------------------
   Upload screen (js/uploadOverlay.js)

   Over everything while a form with a file is on its way: the brand at the
   top, what is happening in the middle, the one thing to know at the bottom,
   the way the app's offline screen is laid out. The surface colour is what
   the status bar is filled with, so the two meet without a seam.
   ------------------------------------------------------------------------- */
.upload-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(1.5rem + var(--klc-safe-top)) 1.5rem calc(2rem + var(--klc-safe-bottom));
  background: var(--klc-surface);
  color: var(--klc-text);
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  animation: upload-screen-in 0.18s var(--klc-ease) both;
}

html.is-uploading,
html.is-uploading body {
  overflow: hidden;
}

/* html scrolls the page (its overflow-x), so the lock on body while a modal
   or the colleague card is open has to be on html as well. */
html:has(> body.modal-open),
html:has(> body.noscroll) {
  overflow: hidden;
}

/* Scrolling inside a modal or sheet stops at its edges instead of moving on
   to the page. */
.modal,
.modal .modal-content,
.modal .modal-body,
.modal-overlay,
.colleague-card {
  overscroll-behavior: contain;
}

.upload-screen-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.upload-screen-brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
}

.upload-screen-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
}

/* The arrow in the brand's soft circle, a ring turning around it. */
.upload-screen-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--klc-brand-soft);
  color: var(--klc-brand);
  font-size: 1.875rem;
}

.upload-screen-icon .bi {
  animation: upload-screen-lift 1.6s ease-in-out infinite;
}

.upload-screen-ring {
  position: absolute;
  inset: -0.375rem;
  border: 2px solid transparent;
  border-top-color: var(--klc-brand);
  border-radius: 50%;
  animation: upload-screen-spin 0.9s linear infinite;
}

.upload-screen-title {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.upload-screen-text {
  margin: 0;
  color: var(--klc-text-muted);
}

.upload-screen-files {
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.upload-screen-files li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--klc-bg);
  font-size: 0.875rem;
  text-align: left;
}

.upload-screen-files .bi {
  flex: none;
  color: var(--klc-brand);
}

.upload-screen-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The same running bar as the app's loading line. */
.upload-screen-bar {
  position: relative;
  width: 100%;
  max-width: 22rem;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--klc-brand-soft);
}

.upload-screen-bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  border-radius: 2px;
  background: var(--klc-brand);
  animation: app-progress 1.1s var(--klc-ease) infinite;
}

.upload-screen-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--klc-text-muted);
}

/* How it ended, on the page the upload led to. It takes over from the screen
   that was up a moment ago, so it does not fade in. */
.upload-screen.is-done,
.upload-screen.is-failed {
  animation: none;
}

.upload-screen.is-done {
  cursor: pointer;
}

.upload-screen.is-done .upload-screen-icon {
  background: var(--klc-success-soft);
  color: var(--klc-success);
}

.upload-screen.is-failed .upload-screen-icon {
  background: var(--klc-danger-soft);
  color: var(--klc-danger);
}

.upload-screen.is-done .upload-screen-icon .bi,
.upload-screen.is-failed .upload-screen-icon .bi {
  animation: upload-screen-pop var(--klc-normal) var(--klc-ease) both;
}

.upload-screen.is-done .upload-screen-ring,
.upload-screen.is-failed .upload-screen-ring {
  border-color: currentColor;
  opacity: 0.25;
  animation: none;
}

.upload-screen-file-state {
  margin-left: auto;
}

.upload-screen-files .upload-screen-file-state {
  color: var(--klc-success);
}

.upload-screen.is-failed .upload-screen-files .upload-screen-file-state {
  color: var(--klc-danger);
}

/* Done, the bar runs down until the screen goes. */
.upload-screen.is-done .upload-screen-bar {
  background: var(--klc-success-soft);
}

.upload-screen.is-done .upload-screen-bar span {
  left: 0;
  width: 100%;
  background: var(--klc-success);
  transform-origin: left center;
  animation: upload-screen-countdown var(--upload-done-for, 3s) linear both;
}

.upload-screen-actions {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 22rem;
}

.upload-screen-actions .btn {
  padding: 0.75rem;
  border-radius: 0.875rem;
  font-weight: 600;
}

.upload-screen-actions .btn-link {
  text-decoration: none;
}

@keyframes upload-screen-countdown {
  to {
    transform: scaleX(0);
  }
}

@keyframes upload-screen-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes upload-screen-in {
  from {
    opacity: 0;
  }
}

@keyframes upload-screen-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes upload-screen-lift {
  0%, 100% {
    transform: translateY(0.125rem);
  }

  50% {
    transform: translateY(-0.1875rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .upload-screen,
  .upload-screen-icon .bi {
    animation: none;
  }

  .upload-screen-ring {
    animation-duration: 2.4s;
  }

  .upload-screen-bar span {
    width: 100%;
    animation: app-progress-pulse 1.4s ease-in-out infinite;
  }

  .upload-screen.is-done .upload-screen-icon .bi,
  .upload-screen.is-failed .upload-screen-icon .bi,
  .upload-screen.is-done .upload-screen-bar span {
    animation: none;
  }
}

/* A PDF shared to the app while signed out (js/appShare.js): on the sign-in
   page, between the lockup and the form, so it is read before logging in. */
.share-waiting {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  background: var(--klc-brand-soft);
  color: var(--klc-text);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.share-waiting .bi {
  flex: none;
  margin-top: 0.0625rem;
  color: var(--klc-brand);
  font-size: 1.25rem;
}

.share-waiting-name {
  display: block;
  overflow-wrap: anywhere;
}

.share-waiting-name + span {
  color: var(--klc-text-secondary);
}

/* The invitation to test the iOS app: a lock screen with the crew member's own
   flight, and a boarding pass laid over it. The hero stays dark in both themes,
   as a lock screen does. */
.beta-invite {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--klc-surface);
}

.beta-invite-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.8rem;
}

.beta-invite-hero {
  position: relative;
  height: 278px;
  overflow: hidden;
  padding: 18px 16px 0;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(0, 161, 222, 0.55), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(227, 114, 34, 0.28), transparent 65%),
    linear-gradient(160deg, #0d2f4f, #07141f);
  color: #fff;
  text-align: center;
}

.beta-invite-title {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
}

.beta-invite-lead {
  margin: 2px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.beta-invite-phone {
  width: 212px;
  height: 240px;
  margin: 12px auto 0;
  padding: 12px 10px 0;
  border: 5px solid #1d2b38;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #173a5c, #0b1c2c 70%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.beta-invite-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.beta-invite-date {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.8;
}

.beta-invite-time {
  margin-top: 2px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.beta-invite-activity {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(10, 16, 22, 0.72);
  font-size: 0.62rem;
}

.beta-invite-activity img {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.beta-invite-activity-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.beta-invite-flight {
  font-weight: 700;
}

.beta-invite-chip {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.2);
  color: #5be07f;
  font-weight: 700;
}

.beta-invite-route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 4px;
}

.beta-invite-field {
  font-size: 0.85rem;
  font-weight: 700;
}

.beta-invite-track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--klc-brand) 50%, rgba(255, 255, 255, 0.2) 50%);
}

.beta-invite-track .bi {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  color: #fff;
  font-size: 0.8rem;
}

.beta-invite-activity-foot {
  display: flex;
  justify-content: space-between;
  opacity: 0.85;
}

.beta-invite-activity-foot strong {
  font-size: 0.8rem;
}

/* Android: a punch-hole phone, and the live notification as the app posts
   it: round icon, title, flight, text and the progress of the flight. */
.beta-invite-phone.is-android {
  position: relative;
  padding-top: 18px;
  border-radius: 26px 26px 0 0;
}

.beta-invite-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #05090d;
}

.beta-invite-notification {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 10px -4px 0;
  padding: 9px 10px 10px;
  border-radius: 18px;
  background: rgba(24, 28, 34, 0.92);
  font-size: 0.6rem;
  line-height: 1.35;
}

.beta-invite-notification img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.beta-invite-notification-body {
  flex: 1;
  min-width: 0;
  opacity: 0.85;
}

.beta-invite-notification-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 1;
}

.beta-invite-notification-count {
  font-variant-numeric: tabular-nums;
}

.beta-invite-notification-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.beta-invite-progress {
  flex: 0 0 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(76, 196, 120, 0.3);
}

.beta-invite-progress span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #4cc478;
}

.beta-invite .modal-body {
  position: relative;
  z-index: 2;
  padding: 0 16px 6px;
  text-align: center;
}

/* The pass lies over the bottom of the lock screen. */
.beta-invite-pass {
  position: relative;
  margin-top: -44px;
  padding: 10px 14px 10px;
  border: 1px solid var(--klc-border);
  border-radius: 14px;
  background: var(--klc-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.beta-invite-pass-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -10px -14px 8px;
  padding: 6px 14px;
  border-radius: 13px 13px 0 0;
  background: var(--klc-brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.beta-invite-pass-head img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.beta-invite-priority {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 3px;
  background: #c8102e;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-invite-pass-label {
  color: var(--klc-text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.beta-invite-pass-name {
  font-family: var(--klc-font-mono);
  font-weight: 700;
}

.beta-invite-pass-name {
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}





/* The tear line, notched into the card on both sides. */
.beta-invite-pass-tear {
  position: relative;
  margin: 4px -14px 6px;
  border-top: 2px dashed var(--klc-border-strong);
}

.beta-invite-pass-tear::before,
.beta-invite-pass-tear::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--klc-surface);
  border: 1px solid var(--klc-border);
}

.beta-invite-pass-tear::before {
  left: -9px;
  clip-path: inset(0 0 0 50%);
}

.beta-invite-pass-tear::after {
  right: -9px;
  clip-path: inset(0 50% 0 0);
}

.beta-invite-points {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.beta-invite-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.beta-invite-points .bi {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--klc-brand-soft);
  color: var(--klc-brand-strong);
  font-size: 0.75rem;
}

/* The Android closed test: join the group, opt in, then install. All three
   count, so they look alike; the one to do next is lit, done ones get a tick. */
.beta-invite-steps {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.beta-invite-steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 9px 10px;
  border: 1px solid var(--klc-border);
  border-radius: 12px;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.beta-invite-steps a > span:nth-child(2) {
  flex: 1;
  text-align: left;
}

.beta-invite-steps a > .bi {
  color: var(--klc-text-muted);
  font-size: 0.75rem;
}

.beta-invite-step {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--klc-brand-soft);
  color: var(--klc-brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.beta-invite-step .bi,
.beta-invite-steps a.is-done .beta-invite-step > span:first-child {
  display: none;
}

.beta-invite-steps a.is-done .beta-invite-step .bi {
  display: inline;
}

.beta-invite-steps a.is-next {
  border-color: var(--klc-brand);
  background: var(--klc-brand);
  color: #fff;
}

.beta-invite-steps a.is-next .beta-invite-step {
  background: #fff;
  color: var(--klc-brand-strong);
}

.beta-invite-steps a.is-next > .bi {
  color: rgba(255, 255, 255, 0.85);
}

.beta-invite-steps a.is-done {
  color: var(--klc-text-muted);
}

.beta-invite-steps a.is-done .beta-invite-step {
  background: rgba(52, 199, 89, 0.2);
  color: #34c759;
}

.beta-invite-join {
  padding: 9px;
  border-radius: 12px;
  font-weight: 700;
}


.beta-invite-fine {
  margin: 6px 0 0;
  color: var(--klc-text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.beta-invite .klc-feedback-skip {
  min-height: 36px;
  padding: 6px 12px;
}

/* ---------------------------------------------------------------------------
   Landing page (index.php)

   The app in a phone beside what it is, and below that what it does, in the
   cards and circles the app itself uses.
   ------------------------------------------------------------------------- */
body.landing {
  background-color: var(--klc-bg);
}

.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: calc(1rem + var(--klc-safe-top)) 1rem 0;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--klc-text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-brand:hover {
  color: var(--klc-text);
}

.landing-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5625rem;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2.5rem;
  padding: calc(6rem + var(--klc-safe-top)) 1rem 3.5rem;
  /* The night sky of the close, so the page opens and ends the same way. The
     glow is where the phone stands. */
  background:
    radial-gradient(60% 40% at 50% 80%, rgba(0, 159, 227, 0.3), transparent 75%),
    radial-gradient(50% 60% at 0% 0%, rgba(0, 159, 227, 0.22), transparent 70%),
    linear-gradient(180deg, #0b151d 0%, #13293a 100%);
  color: #fff;
  text-align: center;
}

.landing-hero h1 {
  color: #fff;
}

.landing-hero .landing-hero-text p {
  color: rgba(255, 255, 255, 0.72);
}

.landing-hero .landing-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #5cc8f0;
}

.landing-hero .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.landing-hero .btn-secondary:hover,
.landing-hero .btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.landing-hero .store-badge {
  border-color: rgba(255, 255, 255, 0.22);
}

/* The bar over the dark hero. */
.landing-brand,
.landing-brand:hover {
  color: #fff;
}

.landing-hero-text {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0 auto;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--klc-radius-pill);
  background: var(--klc-brand-soft);
  color: var(--klc-brand);
  font-size: 0.8125rem;
  font-weight: 650;
}

.landing-hero h1 {
  margin: 1rem 0 0.875rem;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.landing-hero p {
  margin: 0;
  color: var(--klc-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.landing-cta .btn {
  flex: 1 1 12rem;
  max-width: 16rem;
}

.landing-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

/* Our own, not the stores' badges: those are for an app you can install. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 1rem 0.4375rem 0.75rem;
  border: 1px solid var(--klc-border-strong);
  border-radius: 0.75rem;
  background: #000000;
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  line-height: 1.1;
}

.store-badge > .bi {
  font-size: 1.5rem;
}

.store-badge > span:last-child {
  font-size: 1.0625rem;
  font-weight: 650;
}

.store-badge small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.75;
}

.store-badge.is-soon {
  opacity: 0.7;
}

a.store-badge:hover {
  color: #ffffff;
}

/* The whole phone, standing in the glow with room beneath it. */
.landing-hero-device {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.landing-hero-device .device {
  width: min(78vw, 19rem);
}

/* A phone: the screenshot inside a dark bezel with the island on top. */
.device {
  position: relative;
  width: 100%;
  max-width: 19rem;
  padding: 0.5rem;
  border-radius: 2.75rem;
  background: #0b1117;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.device::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1.375rem;
  border-radius: var(--klc-radius-pill);
  background: #000000;
  z-index: 1;
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.25rem;
}

.landing-section {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

/* Every other section on a band of its own, edge to edge, so one ends where
   the next begins. The band sits behind the section's own width. */
.landing-section.is-band {
  isolation: isolate;
}

.landing-section.is-band::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  border-block: 1px solid var(--klc-border);
  background: var(--klc-surface);
}

/* The bands reach past the scrollbar: the page itself does not scroll sideways. */
body.landing {
  overflow-x: clip;
}



.landing-heading {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.landing-kicker {
  color: var(--klc-brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-heading h2,
.landing-spotlight h2 {
  margin: 0.375rem 0 0;
  color: var(--klc-text);
  font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.landing-heading p {
  margin: 0.75rem 0 0;
  color: var(--klc-text-secondary);
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
}

.landing-feature {
  /* The icon beside the title: half the height of a card per feature on a
     phone, where six of them used to take two screens. */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
  /* Cards in a row are one height: the space goes below the text, not into it. */
  align-content: start;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--klc-border);
  border-radius: 1.25rem;
  background: var(--klc-surface);
  box-shadow: var(--klc-shadow-sm);
}

.landing-feature .landing-feature-icon {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  font-size: 1.25rem;
}

/* The night stop card, as the flight list draws it, on a stage of its own. */
.landing-nightstop-card {
  display: grid;
  place-items: center;
}

.landing-nightstop-card .landing-widget {
  max-width: 22rem;
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px rgba(13, 32, 64, 0.28);
}

/* An app that is not in its store yet. */
.landing-soon {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--klc-radius-pill);
  background: var(--klc-brand-soft);
  color: var(--klc-brand);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.landing-feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--klc-brand-soft);
  color: var(--klc-brand);
  font-size: 1.375rem;
}

.landing-feature h3 {
  margin: 0.125rem 0 0.25rem;
  color: var(--klc-text);
  font-size: 1.0625rem;
  font-weight: 700;
}

.landing-steps h3 {
  margin: 1rem 0 0.375rem;
  color: var(--klc-text);
  font-size: 1.0625rem;
  font-weight: 700;
}

.landing-feature p,
.landing-steps p {
  margin: 0;
  color: var(--klc-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* The Live Activity: the one thing a picture says better than a sentence. */
.landing-spotlight {
  display: grid;
  gap: 2.5rem;
  /* The words start where the picture starts. */
  align-items: start;
}

.landing-spotlight-text p {
  margin: 0.875rem 0 0;
  color: var(--klc-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.landing-checks {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.landing-checks li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.3125rem 0;
  color: var(--klc-text);
  font-weight: 600;
}

.landing-checks .bi {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--klc-success-soft);
  color: var(--klc-success);
  font-size: 0.875rem;
}

/* The widgets on their own, as they appear on the phone. */
.landing-widgets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.landing-widget {
  display: block;
  width: 100%;
  max-width: 25rem;
  height: auto;
}

/* Between the bus and the flight: where one hands over to the other. */
.landing-widget-handover {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--klc-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* The Live Activity through the day on a lock screen: the widgets on the
   dark, softly lit glass they are made for, the hand-overs as pills on it. */
.landing-lockscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  margin: 0;
  padding: 1.25rem 1rem 1.5rem;
  border-radius: 2rem;
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(0, 159, 227, 0.38), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(22, 136, 75, 0.22), transparent 65%),
    linear-gradient(180deg, #13293a 0%, #0b151d 100%);
  box-shadow: var(--klc-shadow-lg, 0 1.5rem 3rem rgba(13, 20, 26, 0.18));
}

.landing-lockscreen .landing-widget {
  max-width: 23.375rem;
  border-radius: 1.375rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.landing-lockscreen .landing-widget-handover {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.landing-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Every picture beside the words stands on a stage of its own that fills its
   column, so the edges line up from one section to the next. The lock screen
   is the dark one; the others take a soft wash of the brand. */
.landing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--klc-border);
  border-radius: 2rem;
  background:
    radial-gradient(110% 70% at 0% 0%, var(--klc-brand-soft), transparent 70%),
    var(--klc-surface);
}

/* The same moment on Android: a band under both columns, the card at the
   size of the iPhone's. */
.landing-android {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--klc-border);
  border-radius: 2rem;
  background: var(--klc-surface);
}

.landing-android figcaption {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--klc-text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.landing-android figcaption strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--klc-text);
  font-size: 1.125rem;
}

.landing-android .landing-widget {
  justify-self: center;
  max-width: 23.375rem;
  border-radius: 1.25rem;
  box-shadow: var(--klc-shadow-lg);
}

.landing-platform-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.375rem;
}

.landing-platform-icon.is-android {
  background: rgba(61, 220, 132, 0.16);
  color: #1e9e5a;
}

.landing-widget.is-compact {
  max-width: 16rem;
}

.landing-aside {
  color: var(--klc-text-muted);
  font-size: 0.9375rem;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-steps li {
  padding: 1.375rem;
  border: 1px solid var(--klc-border);
  border-radius: 1.25rem;
  background: var(--klc-surface);
}

/* Beside the phone the steps run down, the icon before the words. */
.landing-start .landing-steps {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.landing-start .landing-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.125rem;
}

.landing-start .landing-step-icon {
  flex: none;
}

.landing-start .landing-steps h3 {
  margin-top: 0.125rem;
}

/* The steps sit in the text column, whose paragraphs are the larger intro. */
.landing-start .landing-steps p {
  margin: 0;
  font-size: 0.9375rem;
}

.landing-spotlight-device {
  display: flex;
  justify-content: center;
}

.landing-spotlight-device .device {
  width: min(70vw, 17rem);
}

.landing-step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--klc-brand-soft);
  color: var(--klc-brand);
  font-size: 1.375rem;
}

.landing-step-number {
  position: absolute;
  right: -0.25rem;
  bottom: -0.25rem;
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid var(--klc-surface);
  border-radius: 50%;
  background: var(--klc-brand);
  color: var(--klc-text-on-brand);
  font-size: 0.6875rem;
  font-weight: 800;
}

/* The close: one dark band, edge to edge, in the night sky of the lock
   screen. The way in on one side, the questions about it on the other. */
.landing-closing {
  padding: 4rem 1rem;
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(0, 159, 227, 0.36), transparent 70%),
    /* Fades out well above the bottom, where the footer goes on in plain colour. */
    radial-gradient(35% 40% at 100% 45%, rgba(22, 136, 75, 0.16), transparent 100%),
    linear-gradient(180deg, #13293a 0%, #0b151d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

/* The footer goes on in the band's darkest colour: the page ends in one block. */
body.landing .copyright {
  padding: 0 1rem calc(1.75rem + var(--klc-safe-bottom));
  background: #0b151d;
  color: rgba(255, 255, 255, 0.5);
}

body.landing .copyright::before {
  content: "";
  display: block;
  max-width: 70rem;
  margin: 0 auto 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.landing .copyright .copyright-version {
  color: rgba(255, 255, 255, 0.38);
}

body.landing .copyright a {
  color: rgba(255, 255, 255, 0.75);
}

body.landing .copyright a:hover {
  color: #fff;
}

.landing-closing-inner {
  display: grid;
  gap: 3rem;
  max-width: 70rem;
  margin: 0 auto;
}

.landing-closing-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}

.landing-closing h2 {
  margin: 1.5rem 0 0;
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.landing-closing-intro > p {
  max-width: 28rem;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.landing-closing .landing-cta {
  justify-content: flex-start;
  margin-top: 2rem;
}

.landing-closing-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.landing-closing-secondary:hover,
.landing-closing-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.landing-closing-facts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 600;
}

.landing-closing-facts .bi {
  margin-right: 0.625rem;
  color: #5cc8f0;
}

/* The questions, as rows on the dark. */
.landing-faq .landing-kicker {
  display: block;
  margin: 0 0 0.75rem;
  color: #5cc8f0;
}

.landing-faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-faq-item summary:hover {
  color: #5cc8f0;
}

.landing-faq-item summary .bi {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #5cc8f0;
  font-size: 1rem;
  transition: transform 0.2s var(--klc-ease, ease);
}

.landing-faq-item[open] summary .bi {
  transform: rotate(45deg);
}

.landing-faq-item p {
  max-width: 36rem;
  margin: -0.25rem 0 0;
  padding: 0 3rem 1.25rem 0;
  line-height: 1.6;
}

.landing-faq-item p a {
  color: #5cc8f0;
  font-weight: 600;
}

body.landing main {
  padding-bottom: 0;
}

@media (min-width: 992px) {
  .landing-nav {
    padding-inline: 1rem;
  }

  .landing-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    max-width: none;
    padding: 7.5rem max(2rem, calc((100% - 70rem) / 2)) 5rem;
    background:
      radial-gradient(32% 60% at 82% 55%, rgba(0, 159, 227, 0.32), transparent 75%),
      radial-gradient(45% 70% at 0% 0%, rgba(0, 159, 227, 0.2), transparent 70%),
      linear-gradient(180deg, #0b151d 0%, #13293a 100%);
    text-align: left;
  }

  /* On the right-hand line the sections below keep to. */
  .landing-hero-device {
    justify-content: flex-end;
  }

  .landing-hero-text {
    margin: 0;
  }

  .landing-hero .landing-cta,
  .landing-hero .landing-stores {
    justify-content: flex-start;
  }


  .landing-section {
    padding-block: 6.5rem;
  }

  /* The phones beside the words: about as tall as the words they show. */
  .landing-spotlight-device .device {
    width: 15.5rem;
  }

  .landing-spotlight {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 5rem;
  }

  .landing-android {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding: 2rem 2.5rem;
  }

  .landing-android figcaption {
    max-width: 30rem;
  }

  .landing-stage {
    min-height: 100%;
    padding: 3rem 2rem;
  }

  .landing-closing {
    padding: 6rem 2rem 4.5rem;
  }

  .landing-closing-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: start;
  }

  /* Still in view while the questions open. */
  .landing-closing-intro {
    position: sticky;
    top: 2rem;
  }

  .landing-faq-item summary {
    font-size: 1.0625rem;
  }

  .landing-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.0625rem;
  }

  .landing-faq-item p {
    padding: 0 1.5rem 1.375rem;
  }

  /* Text and picture change sides from one section to the next. */
  .landing-friends .landing-spotlight-device,
  .landing-push .landing-widgets {
    order: -1;
  }

  /* Four, two by two: three would leave one on a row of its own. */
  .landing-features {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ---------------------------------------------------------------------------
   Auth pages: the card

   The app's own furniture on a quiet page: the brand above, the page's icon
   in the soft circle, and fields with room to tap.
   ------------------------------------------------------------------------- */
.auth-shell {
  width: 100%;
  max-width: 26rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--klc-text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-brand:hover {
  color: var(--klc-text);
}

.auth-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5625rem;
}

.auth-card {
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--klc-border);
  border-radius: 1.5rem;
  background: var(--klc-surface);
  color: var(--klc-text);
  box-shadow: var(--klc-shadow);
}

.auth-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--klc-brand-soft);
  color: var(--klc-brand);
  font-size: 1.5rem;
}

.auth-head h1 {
  margin: 0.875rem 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-head p {
  margin: 0;
  color: var(--klc-text-secondary);
  font-size: 0.9375rem;
}

.auth-card .form-group {
  margin-bottom: 1rem;
}

.auth-card label {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--klc-text-secondary);
}

.auth-card .form-control {
  min-height: 3rem;
  border-radius: 0.875rem;
  font-size: 1rem;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.auth-label-row a {
  font-size: 0.8125rem;
  font-weight: 650;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.25rem 0 0.5rem;
  cursor: pointer;
}

.auth-remember .form-check-input {
  margin: 0;
  flex: none;
}

.auth-remember span {
  color: var(--klc-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.auth-card .btn-block {
  min-height: 3rem;
  border-radius: 0.875rem;
  font-weight: 650;
}

.auth-switch {
  margin: 1.25rem 0 0;
  color: var(--klc-text-secondary);
  text-align: center;
}

.auth-switch a {
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Vrienden (friends.php, friend.php, and the marks in the flight list)

   Three tones, the same everywhere: green for days off together, brand blue
   for flying together, purple for a night at the same outstation. The heart
   marks a friend in a crew.
   --------------------------------------------------------------------------- */

:root {
  --klc-friend-stop: #7c4ddb;
  --klc-friend-stop-soft: #f1ebfd;
  --klc-friend-heart: #e5487a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --klc-friend-stop: #b597ff;
    --klc-friend-stop-soft: rgba(181, 151, 255, 0.14);
    --klc-friend-heart: #ff6f9c;
  }
}

:root[data-theme="dark"] {
  --klc-friend-stop: #b597ff;
  --klc-friend-stop-soft: rgba(181, 151, 255, 0.14);
  --klc-friend-heart: #ff6f9c;
}

.friends-page { padding-bottom: 1.5rem; }
:where(.friends-page, .friend-sheet) .is-off, .friend-strip.is-off { --tone: var(--klc-success); --tone-soft: var(--klc-success-soft); }
:where(.friends-page, .friend-sheet) .is-duty { --tone: var(--klc-brand-strong); --tone-soft: var(--klc-brand-soft); }
:where(.friends-page, .friend-sheet) .is-stop { --tone: var(--klc-friend-stop); --tone-soft: var(--klc-friend-stop-soft); }

.friends-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.friends-head h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.friends-share { margin-left: auto; display: inline-flex; align-items: center; gap: 0.375rem; border-radius: var(--klc-radius-pill); }

.friends-section {
  display: flex; align-items: baseline; gap: 0.5rem; margin: 1.25rem 0.125rem 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--klc-text-muted);
}
.friends-section span { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; }
.friends-card { background: var(--klc-surface); border: 1px solid var(--klc-border); border-radius: var(--klc-radius-lg); overflow: hidden; }

/* The friends as a row of faces, with a "+" at the end to invite one more. */
.friends-rail {
  display: flex; gap: 0.875rem; overflow-x: auto; margin: 0 -1rem; padding: 0.125rem 1rem 0.25rem;
  scrollbar-width: none; scroll-snap-type: x proximity;
  /* Snapping lines the first face up with the padding, not the scroller's edge. */
  scroll-padding-inline: 1rem;
}
.friends-rail::-webkit-scrollbar { display: none; }
.friends-rail-item {
  flex: 0 0 auto; width: 3.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.375rem;
  padding: 0; border: 0; background: none; color: var(--klc-text); font: inherit; font-size: 0.75rem; font-weight: 600;
  text-decoration: none; scroll-snap-align: start;
}
.friends-rail-item:hover { color: var(--klc-text); }
.friends-rail-item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-avatar.is-rail { width: 3.25rem; height: 3.25rem; box-shadow: 0 0 0 2px var(--klc-bg), 0 0 0 3.5px var(--klc-friend-heart); margin: 2px; }
.friend-avatar.is-rail.is-waiting { box-shadow: 0 0 0 2px var(--klc-bg), 0 0 0 3.5px var(--klc-border-strong); opacity: 0.7; }
.friends-rail-item.is-add { color: var(--klc-text-secondary); }
.friends-rail-plus {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: 2px; border-radius: 50%;
  border: 1.5px dashed var(--klc-border-strong); color: var(--klc-brand-strong); font-size: 1.25rem;
}
.friends-rail-item.is-add:hover .friends-rail-plus { border-color: var(--klc-brand-strong); }

/* What kind of "Samen" to show. */
.friends-filter {
  display: flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 1rem; border-radius: var(--klc-radius-pill);
  /* A track that reads on the light page as well as the dark one. */
  background: color-mix(in srgb, var(--klc-text) 7%, transparent);
}
.friends-filter button {
  flex: 1; padding: 0.375rem 0.25rem; border: 0; border-radius: var(--klc-radius-pill); background: none;
  color: var(--klc-text-secondary); font: inherit; font-size: 0.8125rem; font-weight: 600;
}
.friends-filter button:hover { color: var(--klc-text); }
.friends-filter button.is-active { background: var(--klc-surface); color: var(--klc-text); box-shadow: var(--klc-shadow-sm); }

/* The "Samen" timeline: a date, then what you have together that day. */
.friends-tl-group + .friends-tl-group { margin-top: 1rem; }
/* Wide screens: the dates side by side, not a few cards across the page. */
@media (min-width: 768px) {
  .friends-tl { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1.25rem 1rem; align-items: start; }
  .friends-tl-group + .friends-tl-group { margin-top: 0; }
}
.friends-tl-date { display: flex; align-items: center; gap: 0.375rem; margin: 0 0 0.375rem 0.125rem; font-size: 0.8125rem; font-weight: 650; color: var(--klc-text-secondary); }
.friends-tl-date .friend-weekend { margin-left: 0.125rem; }
.friends-tl-item {
  width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem 0.625rem 0.625rem;
  border: 1px solid var(--klc-border); border-radius: var(--klc-radius-lg); background: var(--klc-surface);
  color: var(--klc-text); font: inherit; text-align: left; box-shadow: var(--klc-shadow-sm);
  transition: box-shadow var(--klc-fast) var(--klc-ease), transform var(--klc-fast) var(--klc-ease);
}
.friends-tl-item:hover { box-shadow: var(--klc-shadow); transform: translateY(-1px); }
.friends-tl-item:active { transform: none; box-shadow: var(--klc-shadow-sm); }
.friends-tl-item + .friends-tl-item { margin-top: 0.375rem; }
.friends-tl-icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: var(--tone-soft); color: var(--tone); font-size: 1rem; }
.friends-tl-body { flex: 1; min-width: 0; }
.friends-tl-body b { display: block; font-size: 0.9375rem; font-weight: 650; line-height: 1.3; }
.friends-tl-body small {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 0.0625rem; font-size: 0.8125rem; line-height: 1.35; color: var(--klc-text-secondary);
}
.friends-tl-faces { flex: 0 0 auto; display: inline-flex; align-items: center; }
.friends-tl-faces img, .friends-tl-faces span {
  width: 1.625rem; height: 1.625rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--klc-surface);
}
.friends-tl-faces > * + * { margin-left: -0.45rem; }
.friends-tl-faces span { display: grid; place-items: center; background: var(--klc-surface-3); color: var(--klc-text-secondary); font-size: 0.6875rem; font-weight: 700; }
.friends-tl-item .friend-go { flex: 0 0 auto; color: var(--klc-text-muted); }
.friends-tl-group[hidden], .friends-tl-item[hidden] { display: none; }
.friends-note { margin: 0.625rem 0.25rem 0; font-size: 0.8125rem; color: var(--klc-text-muted); }
/* What sharing means, at the foot of a page: quiet, but set apart. */
.friends-info {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.25rem; padding: 0.875rem 1rem;
  border: 1px solid var(--klc-border); border-radius: var(--klc-radius-lg); background: var(--klc-surface-2);
}
.friends-info > .bi { flex: 0 0 auto; margin-top: 0.0625rem; color: var(--klc-text-muted); font-size: 1.125rem; }
.friends-info p { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--klc-text-secondary); }
.friends-info b { display: block; margin-bottom: 0.125rem; color: var(--klc-text); font-weight: 650; }

.friend-avatar { border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--klc-surface-2); }
.friend-avatar.is-xs { width: 1.25rem; height: 1.25rem; }
.friend-avatar.is-sm { width: 2rem; height: 2rem; }
.friend-avatar.is-md { width: 2.5rem; height: 2.5rem; }
.friend-avatar.is-lg { width: 3.75rem; height: 3.75rem; }
.friend-avatar.is-xl { width: 4.75rem; height: 4.75rem; box-shadow: 0 0 0 4px var(--klc-surface); }

.friend-item {
  display: grid; grid-template-columns: 2.75rem 1fr auto; gap: 0.75rem; align-items: start; width: 100%;
  padding: 0.75rem 0.875rem; border: 0; background: none; text-align: left; color: var(--klc-text);
}
.friend-item + .friend-item { border-top: 1px solid var(--klc-border); }
.friend-date { display: block; text-align: center; border-radius: var(--klc-radius); padding: 0.25rem 0 0.3rem; background: var(--tone-soft); color: var(--tone); }
.friend-date b { display: block; font-size: 1.05rem; line-height: 1.15; }
.friend-date small { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.friend-item-body { display: block; min-width: 0; }
.friend-kind { display: flex; align-items: center; gap: 0.35rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tone); }
.friend-item-title { display: block; margin-top: 0.1rem; font-weight: 650; }
.friend-item-sub { display: block; margin-top: 0.1rem; font-size: 0.8125rem; color: var(--klc-text-secondary); }
.friend-weekend { margin-left: 0.375rem; padding: 0.05rem 0.35rem; border-radius: 0.3rem; background: var(--tone-soft); color: var(--tone); font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; vertical-align: 0.1em; }
.friend-who { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.friend-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.125rem 0.5rem 0.125rem 0.125rem; border-radius: var(--klc-radius-pill); background: var(--klc-surface-2); font-size: 0.75rem; color: var(--klc-text); }
.friend-chip small { color: var(--klc-text-muted); }
.friend-chip.is-more { padding-left: 0.5rem; font-weight: 600; color: var(--klc-text-secondary); }
.friend-chip.is-unknown { padding-left: 0.5rem; color: var(--klc-text-muted); font-style: italic; }
.friend-go { align-self: center; color: var(--klc-text-muted); }

.friend-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem; color: var(--klc-text); text-decoration: none; }
.friend-row:hover { color: var(--klc-text); background: var(--klc-surface-2); }
.friend-row + .friend-row { border-top: 1px solid var(--klc-border); }
.friend-row > div { flex: 1; min-width: 0; }
.friend-row b { font-weight: 650; }
.friend-row b small, .friend-row > div > small { color: var(--klc-text-muted); font-weight: 500; }
.friend-row > div > small { display: block; font-size: 0.8125rem; }
.friend-row.is-unknown { opacity: 0.75; }
.friend-next { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--klc-text-secondary); }
.friend-next::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--tone, var(--klc-border-strong)); flex: 0 0 auto; }
.friend-end { display: block; font-size: 0.75rem; color: var(--klc-text-muted); }

.friends-empty { max-width: 26rem; margin: 0 auto; padding: 1.5rem 0.25rem 0; text-align: center; }
.friends-empty h2 { margin: 0 0 0.375rem; font-size: 1.375rem; font-weight: 750; }
.friends-empty .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }

/* The new-feature sheet on the overview (featureIntro.php): its icons on top,
   then what it is in a sentence and three short points. */
.feature-intro .modal-body { text-align: center; }
.feature-intro-art { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.feature-intro-art span { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; font-size: 1.35rem; }
.feature-intro-art .is-off { background: var(--klc-success-soft); color: var(--klc-success); transform: rotate(-8deg); }
.feature-intro-art .is-duty { background: var(--klc-brand-soft); color: var(--klc-brand-strong); transform: rotate(8deg); }
.feature-intro-art .is-main {
  width: 4.25rem; height: 4.25rem; border-radius: 1.35rem; font-size: 2rem; color: #fff;
  background: linear-gradient(155deg, #ff8fb1 0%, var(--klc-friend-heart) 60%, #d94d7c 100%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--klc-friend-heart) 40%, transparent);
}
.feature-intro-badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: var(--klc-radius-pill);
  background: color-mix(in srgb, var(--klc-friend-heart) 14%, transparent); color: var(--klc-friend-heart);
  font-size: 0.6875rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
}
.feature-intro h2 { margin: 0.375rem 0 0.25rem; font-size: 1.5rem; font-weight: 750; }
.feature-intro-lead { max-width: 20rem; margin: 0 auto 1.25rem; color: var(--klc-text-secondary); }
.feature-intro-points { display: grid; gap: 0.875rem; margin: 0 0 1.5rem; padding: 0; list-style: none; text-align: left; }
.feature-intro-points li { display: flex; align-items: flex-start; gap: 0.75rem; }
.feature-intro-points li > .bi {
  flex: 0 0 auto; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  background: var(--tone-soft); color: var(--tone); font-size: 1rem;
}
.feature-intro-points b { display: block; font-size: 0.9375rem; font-weight: 650; color: var(--klc-text); }
.feature-intro-points li > span:last-child { font-size: 0.8125rem; line-height: 1.4; color: var(--klc-text-secondary); padding-top: 0.0625rem; }
.feature-intro-later { margin-top: 0.25rem; color: var(--klc-text-secondary); text-decoration: none; }
.feature-intro.is-app .feature-intro-art .is-main {
  background: linear-gradient(155deg, var(--klc-brand) 0%, var(--klc-brand-strong) 100%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--klc-brand) 40%, transparent);
}
.feature-intro.is-app .feature-intro-badge { background: var(--klc-brand-soft); color: var(--klc-brand-strong); }
@media (min-width: 576px) {
  .feature-intro .modal-dialog { max-width: 26rem; }
}

.friends-back { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 0.5rem; font-weight: 600; text-decoration: none; }
.friend-profile { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1rem; }
.friend-profile h1 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.friend-profile p { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--klc-text-muted); }
.friend-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.friend-stats div { padding: 0.5rem 0.625rem; border: 1px solid var(--klc-border); border-radius: var(--klc-radius-lg); background: var(--klc-surface); color: var(--tone); }
.friend-stats b { display: block; font-size: 1.375rem; line-height: 1.2; }
.friend-stats small { display: block; font-size: 0.6875rem; line-height: 1.25; color: var(--klc-text-muted); }
.friend-stats .is-unshared { color: var(--klc-text-muted); }

.friend-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; padding: 0.5rem; border: 1px solid var(--klc-border); border-radius: var(--klc-radius-lg); background: var(--klc-surface); }
.friend-wd { text-align: center; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; color: var(--klc-text-muted); }
.friend-cell {
  display: flex; flex-direction: column; justify-content: space-between; height: 2.875rem; padding: 0.2rem 0.25rem;
  border: 0; border-radius: 0.5rem; background: var(--klc-surface-2); color: var(--klc-text); text-align: left;
}
.friend-cell b { font-size: 0.78rem; }
.friend-cell small { align-self: flex-end; max-width: 100%; overflow: hidden; font-size: 0.5625rem; font-weight: 650; white-space: nowrap; color: var(--klc-text-muted); }
.friend-cell.is-past { opacity: 0.35; background: none; }
.friend-cell.is-today { box-shadow: inset 0 0 0 2px var(--klc-brand); }
.friend-cell.is-both { background: var(--klc-success); }
.friend-cell.is-both b, .friend-cell.is-both small, .friend-cell.is-duty b, .friend-cell.is-duty small { color: #fff; }
.friend-cell.is-off { background: var(--klc-success-soft); }
.friend-cell.is-off small { color: var(--klc-success); }
.friend-cell.is-duty { background: var(--klc-brand-strong); }
.friend-cell.is-duty.is-apart { background: repeating-linear-gradient(135deg, var(--klc-brand-soft) 0 5px, transparent 5px 10px), var(--klc-surface-2); }
.friend-cell.is-duty.is-apart b { color: var(--klc-text); }
.friend-cell.is-duty.is-apart small { color: var(--klc-brand-strong); }
.friend-cell.is-away { background: var(--klc-friend-stop-soft); }
.friend-cell.is-away small { color: var(--klc-friend-stop); }
.friend-cell.is-unknown, .friend-cell.is-hidden { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--klc-border) 4px 5px); }
.friend-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.875rem; margin: 0.5rem 0.25rem 0; font-size: 0.6875rem; color: var(--klc-text-muted); }
.friend-legend i { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.3rem; border-radius: 0.2rem; vertical-align: -0.1rem; background: var(--klc-surface-2); }
.friend-legend i.is-both { background: var(--klc-success); }
.friend-legend i.is-off { background: var(--klc-success-soft); box-shadow: inset 0 0 0 1px var(--klc-success); }
.friend-legend i.is-duty { background: var(--klc-brand-strong); }
.friend-legend i.is-away { background: var(--klc-friend-stop-soft); box-shadow: inset 0 0 0 1px var(--klc-friend-stop); }
.friend-legend i.is-unknown { background: repeating-linear-gradient(135deg, transparent 0 2px, var(--klc-border-strong) 2px 3px); }
.friend-switches { margin-bottom: 0.25rem; }
.friend-remove { margin-top: 1.25rem; }

/* The sheets: a dialog on a wide screen, from the bottom edge on a phone. */
.friend-sheet-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.friend-sheet-head h2, .friend-sheet-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.friend-sheet-head p { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--klc-text-secondary); }
.friend-sheet-title { margin: 0.625rem 0 0.375rem; }
.friend-sheet-text { color: var(--klc-text-secondary); font-size: 0.875rem; }
.friend-sheet-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: var(--tone-soft); color: var(--tone); font-size: 1.15rem; flex: 0 0 auto; }
.friend-sheet-stats { display: flex; gap: 0.375rem; margin-bottom: 0.5rem; }
.friend-sheet-stats span { flex: 1; text-align: center; padding: 0.4rem 0.2rem; border-radius: var(--klc-radius); background: var(--klc-brand-soft); color: var(--klc-brand-strong); font-size: 0.6875rem; font-weight: 600; }
.friend-sheet-stats b { display: block; font-size: 1.05rem; }
.friend-day { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.75rem; padding: 0.625rem 0; border-top: 1px solid var(--klc-border); }
.friend-day-date { text-align: center; align-self: start; padding: 0.25rem 0; border-radius: var(--klc-radius); background: var(--klc-brand-soft); color: var(--klc-brand-strong); }
.friend-day-date b { display: block; }
.friend-day-date small { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; }
.friend-day.is-apart .friend-day-date { background: var(--klc-surface-2); color: var(--klc-text-muted); }
.friend-day-apart { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--klc-text-muted); }
.friend-sector { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.15rem 0; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.friend-sector b { min-width: 3.75rem; font-weight: 650; }
.friend-sector span:nth-child(2) { flex: 1; }
.friend-sector-time { color: var(--klc-text-muted); }
.friend-sector-tag { font-size: 0.6875rem; font-weight: 600; color: var(--klc-brand-strong); }
.friend-night { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; padding: 0.15rem 0.5rem; border-radius: var(--klc-radius-pill); background: var(--klc-friend-stop-soft); color: var(--klc-friend-stop); font-size: 0.75rem; }

/* The friend link as a pass: who it is from, the code, how to use it. */
.friend-link-sheet { text-align: center; }
.friend-link-sheet .friend-sheet-text { margin-bottom: 1rem; }
.friend-pass {
  max-width: 17.5rem; margin: 0 auto 0.875rem; padding: 0.875rem 0.875rem 0.75rem; border-radius: 1.5rem;
  background: linear-gradient(155deg, #00a1de 0%, #0a6d9c 55%, #0a3a5c 100%); color: #fff;
  box-shadow: 0 14px 32px rgba(0, 60, 100, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.friend-pass-head { display: flex; align-items: center; gap: 0.625rem; margin: 0 0.125rem 0.75rem; text-align: left; }
.friend-pass-head img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75); }
.friend-pass-head div { min-width: 0; }
.friend-pass-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; font-weight: 700; }
.friend-pass-head small { display: block; font-size: 0.75rem; opacity: 0.85; }
.friend-qr { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0.75rem; border-radius: 1rem; background: #fff; }
.friend-pass-foot { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin-top: 0.625rem; font-size: 0.75rem; font-weight: 600; opacity: 0.9; }
.friend-link-note { width: fit-content; margin: 0 auto 0.5rem; padding: 0.25rem 0.75rem; border-radius: var(--klc-radius-pill); background: var(--klc-success-soft); color: var(--klc-success); font-size: 0.8125rem; font-weight: 600; }
.friend-link-expiry { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin: 0 0 1rem; color: var(--klc-text-muted); font-size: 0.8125rem; }
.friend-link-expiry:has(#friendLinkExpires:empty) { visibility: hidden; }
.friend-qr svg { display: block; width: 100%; height: 100%; }
.friend-link-error { text-align: center; color: var(--klc-danger); font-size: 0.875rem; }
.friend-link-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.friend-link-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }

@media (max-width: 575.98px) {
  /* The head stays in view while the list under it scrolls. */
  #friendSheet .modal-body { padding-top: 0; }
  .friend-sheet .friend-sheet-head { position: sticky; top: 0; z-index: 1; margin: 0 -1.25rem 0.25rem; padding: 1.25rem 1.25rem 0.5rem; background-color: var(--klc-surface); }
}

/* The link opened. */
.friend-invite { max-width: 26rem; margin: 2.5rem auto 0; padding: 1.75rem 1.25rem 1.25rem; border: 1px solid var(--klc-border); border-radius: 1.375rem; background: var(--klc-surface); text-align: center; box-shadow: var(--klc-shadow); }
.friend-invite h1 { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.375rem; }
.friend-invite p { color: var(--klc-text-secondary); font-size: 0.9rem; }
.friend-invite-pair { display: flex; justify-content: center; align-items: center; margin-bottom: 1rem; }
.friend-invite-heart { position: relative; z-index: 1; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; margin: 0 -0.625rem; border-radius: 50%; background: var(--klc-friend-heart); color: #fff; font-size: 0.85rem; box-shadow: 0 0 0 4px var(--klc-surface); }
.friend-invite-what { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; margin-bottom: 1.25rem; }
.friend-invite-what > span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--klc-text-secondary); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.friend-invite-what .bi { color: var(--tone); font-size: 1rem; }
.friend-invite-small { margin: 0.75rem 0 0; font-size: 0.75rem !important; color: var(--klc-text-muted) !important; }
.friend-invite-icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 0.75rem; border-radius: 1rem; font-size: 1.4rem; background: var(--tone-soft, var(--klc-surface-2)); color: var(--tone, var(--klc-text-secondary)); }
.friend-invite-icon.is-red { --tone: var(--klc-danger); --tone-soft: var(--klc-danger-soft); }

/* In the flight list. */
.friend-strip {
  display: flex; align-items: center; gap: 0.55rem; margin: 0.375rem 0 0.75rem; padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--tone) 24%, transparent); border-radius: var(--klc-radius);
  background: color-mix(in srgb, var(--tone) 8%, var(--klc-surface)); color: var(--klc-text-secondary); font-size: 0.8125rem; text-decoration: none;
}
.friend-strip:hover { color: var(--klc-text-secondary); }
.friend-strip b { color: var(--klc-text); font-weight: 600; }
.friend-strip .bi-chevron-right { margin-left: auto; color: var(--klc-text-muted); }
.friend-faces { display: inline-flex; flex: 0 0 auto; }
.friend-faces img { width: 1.375rem; height: 1.375rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--klc-surface); }
.friend-faces img + img { margin-left: -0.3rem; }
.ns-chip.is-friend { text-decoration: none; }
.ns-friend-faces { display: inline-flex; }
.ns-friend-faces img { width: 1.25rem; height: 1.25rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.ns-friend-faces img + img { margin-left: -0.3rem; }
.ns-friend-more { font-weight: 700; font-size: 0.75rem; }
.ns-chip.is-friend { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Beside the hotel and the allowance it did not fit a phone: a line of its own. */
.ns-chips { flex-wrap: wrap; }
.ns-chips > .ns-chip.is-friend { flex: 1 1 100%; order: 1; }
.ns-chip.is-friend .bi-heart-fill { color: #ff9cbc; font-size: 0.8rem; }

.crew-photo.is-friend { position: relative; display: inline-block; line-height: 0; }
/* The ring lies over the photo's own edge: the same size as every other photo,
   and nothing outside its box for a panel to cut off. */
.crew-photo.is-friend::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--klc-friend-heart), inset 0 0 0 3.5px var(--klc-surface);
}
.crew-photo.is-friend .crew-friend { z-index: 1; }
.crew-friend {
  position: absolute; right: -0.25rem; bottom: -0.125rem; display: grid; place-items: center;
  width: 1rem; height: 1rem; border-radius: 50%; background: var(--klc-friend-heart); color: #fff; font-size: 0.5rem;
  box-shadow: 0 0 0 2px var(--klc-surface);
}
#flight-list.is-crew-grid .crew-avatar .crew-friend { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; right: -0.125rem; bottom: 0; }
/* In the closed row the bottom corner holds the deck or cabin dot. Inside the
   stack's 2px clip margin. */
.crew-face .crew-friend { bottom: auto; top: -0.125rem; right: -0.125rem; width: 0.875rem; height: 0.875rem; font-size: 0.45rem; }

.friend-settings-head { margin-top: 1.25rem; }
.settings-hint { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--klc-text-muted); }
.friend-strip > span:nth-child(2) { flex: 1; min-width: 0; }

/* An image drawn in both themes: the one that matches the page shows, a
   chosen theme before the system's. */
.theme-dark-only {
  display: none !important;
}

:root[data-theme="dark"] .theme-light-only {
  display: none !important;
}

:root[data-theme="dark"] .theme-dark-only {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-light-only {
    display: none !important;
  }

  :root:not([data-theme="light"]) .theme-dark-only {
    display: block !important;
  }
}

/* The landing page's notifications, as the phone shows them. They come in one
   at a time, the oldest first, so the newest lands on top. */
.landing-notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.6875rem 0.875rem 0.75rem 0.6875rem;
  border: 1px solid var(--klc-border);
  border-radius: 1.25rem;
  background: var(--klc-surface);
  box-shadow: var(--klc-shadow-sm);
  color: var(--klc-text);
}

.landing-note img {
  flex: none;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.5625rem;
}

.landing-note > div {
  flex: 1;
  min-width: 0;
}

.landing-note p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.landing-note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.landing-note-head span {
  flex: none;
  color: var(--klc-text-muted);
  font-size: 0.8125rem;
}

.landing-note:nth-child(1) { --arrive: 3; }
.landing-note:nth-child(2) { --arrive: 2; }
.landing-note:nth-child(3) { --arrive: 1; }
.landing-note:nth-child(4) { --arrive: 0; }

/* Held back until the list is in view; the script sets both classes. */
.landing-notes.is-waiting .landing-note {
  opacity: 0;
  transform: translateY(-1rem) scale(0.96);
}

.landing-notes.is-arriving .landing-note {
  animation: landing-note-in 520ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  animation-delay: calc(var(--arrive) * 650ms);
}

@keyframes landing-note-in {
  from {
    opacity: 0;
    transform: translateY(-1rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-notes .landing-note {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
