/* Courier King — brand layer.
   Tailwind does the work; this is the small set of things it cannot express:
   the palette, the type, the numeral treatment, and the logo.

   Direction (rebrand, 2026-10-02): the client's own identity. Jeff sent the
   crown-over-CK mark and six colours on 2026-09-28 (Slack #benmore-211). The
   logo is drawn for a LIGHT ground — its "COURIER" is a dark purple that
   vanishes on a dark one — and drivers use this outdoors in daylight, so the
   app moved from near-black to a light, high-contrast surface. The deep indigo
   is kept for one place: the price band, where the gold $25.99 sits on it the
   way the crown sits on the CK. $25.99 is the entire proposition, so it is
   set large, in a tabular face, and never crowded.

   Client palette, used as given:
     primary  #3157D5  buttons and links (white on it: 6.1:1)
     secondary #172554 text and the price band
     accent   #F5B82E  the crown gold: fills, never text on white (1.7:1)
     success  #16A34A · warning #D97706 · error #DC2626
   Each status colour also has an -ink shade for TEXT, because #16A34A on
   white is 3.3:1 and fails body contrast. The client hue stays the fill.
   Full contract: DESIGN.md in the project folder. */

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/BarlowSemiCondensed-normal-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/BarlowSemiCondensed-normal-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/BarlowSemiCondensed-normal-800.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/BarlowSemiCondensed-italic-800.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/PublicSans-normal-400-700.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Client palette */
  --ck-primary: #3157d5;
  --ck-primary-hover: #2847b5;
  --ck-indigo: #172554;
  --ck-accent: #f5b82e;
  --ck-success: #16a34a;
  --ck-warning: #d97706;
  --ck-danger: #dc2626;

  /* Surfaces, tinted toward the primary's hue rather than neutral grey */
  --ck-bg: #f5f7fc;
  --ck-surface: #ffffff;
  --ck-surface-2: #eef2fb;
  --ck-line: #d9e0f0;
  --ck-line-strong: #b4c0de;
  --ck-text: #172554;
  --ck-muted: #4e5b80; /* 6.7:1 on white */
  --ck-faint: #6b7697; /* placeholders: 4.6:1 on white */

  /* Text shades of the status colours (each >= 4.8:1 on white and on its tint) */
  --ck-success-ink: #14753a; /* 5.2:1 on its tint; #15803d was 4.49 (QA, 2026-10-05) */
  --ck-warning-ink: #a45208;
  --ck-danger-ink: #b91c1c;
  --ck-accent-ink: #8a5c00; /* gold as text on a light ground */
  --ck-success-tint: #e7f6ec;
  --ck-warning-tint: #fdf2e1;
  --ck-danger-tint: #fdecec;
  --ck-accent-tint: #fdf4dc;

  /* The price band */
  --ck-band: #172554;
  --ck-band-2: #1e3070;
  --ck-band-line: #2c3f86;
  --ck-band-muted: #b8c3e6; /* 8:1 on the band */

  --ck-focus: 0 0 0 3px rgba(49, 87, 213, 0.32);
  --ck-shadow:
    0 1px 2px rgba(23, 37, 84, 0.06), 0 4px 16px rgba(23, 37, 84, 0.06);

  --ck-font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --ck-font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  /* Names the views were written against, kept so nothing in them breaks.
     --ck-gold was the old emphasis colour for money and step numbers. Gold as
     text on white is 1.7:1 and a darkened gold reads as brown, so emphasis
     text is the brand blue; the real gold (--ck-accent) is kept for fills,
     pins and the price band. */
  --ck-gold: var(--ck-primary);
  --ck-gold-dim: var(--ck-line-strong);
  --ck-green: var(--ck-success-ink);
  --ck-red: var(--ck-danger-ink);
}

html,
body {
  background: var(--ck-bg);
  color: var(--ck-text);

  /* Both of these exist for the native WebView, not the browser.
   *
   * WKWebView resizes text on its own unless told not to, which widens
   * content and pushed the driver board's document to 470 points on a
   * 440-point screen — the payout, right-aligned, was clipped to "$20.0".
   * Chrome at the same width showed a clean 440 with nothing overflowing,
   * so this was only visible by reading element bounds inside the real app.
   *
   * overflow-x is the belt to that braces: a phone should never scroll
   * sideways, and if some future card does overflow it should be clipped
   * at the container rather than dragging the whole document wider and
   * cutting off whatever sits on the right. BUILD_LIST finding #30. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  height: auto !important;
  min-height: 100vh;
  font-family: var(--ck-font-body);
  -webkit-font-smoothing: antialiased;
}

/* In the iOS app the web view insets content clear of the clock and the home
   indicator (capacitor.config `contentInset: "always"`), but 100vh and the
   pages' `h-full` still measure the whole screen, so every page was ~96pt
   taller than what is visible and scrolled even when it fitted. Inside the
   apps the document is only as tall as its content. */
html.ck-native,
html.ck-native body {
  height: auto !important;
  min-height: 0;
}
/* Edge-to-edge iOS builds (partials/head.html): the page covers the safe
   areas itself. A fixed strip behind the clock keeps scrolled content from
   running under it; pages colour it with --ck-statusbar. */
html.ck-edge body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
/* A keyboard skip link has no use inside the apps, and edge to edge its
   parked position shows through behind the clock. */
html.ck-native .ck-skip-link {
  display: none;
}
html.ck-edge body::after {
  content: "";
  position: fixed;
  z-index: 2147483000;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top);
  background: var(--ck-statusbar, #fff);
  pointer-events: none;
}
/* No scroll indicators inside the apps; the native layer hides the page's own
   (SceneDelegate.configureScrolling). */
html.ck-native * {
  scrollbar-width: none;
}
html.ck-native *::-webkit-scrollbar {
  display: none;
}

/* Money and distances are compared down a column constantly — in the board, the
   quote list, the statement. Tabular figures keep them aligned. */
.ck-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Prices and the big numbers. The heavy italic is the wordmark's own slant. */
.ck-display {
  font-family: var(--ck-font-display);
  font-style: italic;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ck-head {
  font-family: var(--ck-font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.ck-card {
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: 14px;
  box-shadow: var(--ck-shadow);
}

.ck-card-2 {
  background: var(--ck-surface-2);
  border: 1px solid var(--ck-line);
  border-radius: 12px;
}

.ck-gold {
  color: var(--ck-gold);
}
.ck-muted {
  color: var(--ck-muted);
}

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--ck-primary);
  color: #fff;
  font-weight: 650;
  border-radius: 11px;
  padding: 0.78rem 1.1rem;
  min-height: 44px;
  /* A pressed-key edge: the button sinks into it on tap, so a press is felt,
     not just seen as a colour change. */
  box-shadow: 0 3px 0 var(--ck-indigo);
  transition:
    background-color 0.14s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.ck-btn:hover {
  background: var(--ck-primary-hover);
}
.ck-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ck-indigo);
}
.ck-btn .ck-icon {
  transition: transform 0.18s ease;
}
.ck-btn:hover .ck-icon:last-child {
  transform: translateX(3px);
}
.ck-btn:focus-visible {
  outline: none;
  box-shadow:
    0 3px 0 var(--ck-indigo),
    var(--ck-focus);
}
.ck-btn:disabled {
  opacity: 0.45;
  transform: none;
  cursor: not-allowed;
  background: var(--ck-primary);
  box-shadow: none;
}

.ck-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--ck-line-strong);
  color: var(--ck-text);
  border-radius: 11px;
  padding: 0.78rem 1.1rem;
  min-height: 44px;
  font-weight: 600;
  background: var(--ck-surface);
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease;
}
.ck-btn-ghost:hover {
  background: var(--ck-surface-2);
  border-color: var(--ck-primary);
}
.ck-btn-ghost:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
}
.ck-btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* A destructive action: account deletion, cancelling a job. */
.ck-btn-danger {
  border-color: #f1b8b8;
  color: var(--ck-danger-ink);
}
.ck-btn-danger:hover {
  background: var(--ck-danger-tint);
  border-color: var(--ck-danger);
}

/* `.ck-input.ck-input` on purpose. Tailwind's runtime forms reset
   ([type="tel"], [type="email"], select, textarea…) has the same specificity as one
   class and is injected later, so with a single class every TYPED input lost its
   radius and border and only the untyped name field looked right (QA capture of
   /signup, 2026-10-03). Doubling the class outranks the reset without !important. */
.ck-input.ck-input {
  /* iOS WKWebView applies its own control styling unless appearance is reset
     first. This is invisible in a desktop browser and obvious the moment the
     app runs on a phone — which is exactly why the native build is worth doing. */
  -webkit-appearance: none;
  appearance: none;
  background: var(--ck-surface);
  border: 1px solid var(--ck-line-strong);
  border-radius: 11px;
  padding: 0.72rem 0.85rem;
  color: var(--ck-text);
  width: 100%;
}
.ck-input.ck-input:focus {
  outline: none;
  border-color: var(--ck-primary);
  box-shadow: var(--ck-focus);
}
.ck-input::placeholder {
  color: var(--ck-faint);
}

/* Password rules on signup: each turns green with a check once it is met. */
.ck-pw-rules {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--ck-muted);
}
.ck-pw-rules li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s;
}
.ck-pw-rules li::before {
  content: "";
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ck-line-strong);
  background: var(--ck-surface) center / 0.65rem no-repeat;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.ck-pw-rules li.ok {
  color: var(--ck-success-ink);
}
.ck-pw-rules li.ok::before {
  border-color: var(--ck-success);
  background-color: var(--ck-success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Two-way choice (text or email for the signup code). */
#su-channel {
  border: 0;
  padding: 0;
  min-width: 0;
}
.ck-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--ck-line-strong);
  border-radius: 11px;
  background: var(--ck-surface-2);
}
.ck-seg label {
  position: relative;
  cursor: pointer;
}
.ck-seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.ck-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ck-muted);
  transition:
    background-color 0.15s,
    color 0.15s;
}
.ck-seg input:checked + span {
  background: var(--ck-surface);
  color: var(--ck-text);
  box-shadow: var(--ck-shadow);
}
.ck-seg input:focus-visible + span {
  box-shadow: var(--ck-focus);
}
.ck-seg input:disabled + span {
  opacity: 0.6;
  cursor: not-allowed;
}

label.ck-label,
legend.ck-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ck-muted);
  margin-bottom: 0.35rem;
}

.ck-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--ck-line);
  color: var(--ck-muted);
  background: var(--ck-surface);
}
/* Job card header: title on the left, the driver's payout on the right.
 *
 * Written as explicit CSS rather than utility classes because the failure it
 * prevents is invisible in a desktop browser. The title is a flex item, so its
 * min-width defaults to `auto` — it refuses to shrink below its own text — and
 * the row grows past the viewport. On an iPhone 17 Pro Max the payout rendered
 * at x=384..449 on a 440-point screen: "$20.00" clipped to "$20.0" and
 * "you keep" to "you kee". Chrome at the same CSS width showed no overflow at
 * all, so only measuring the element bounds inside the real app found it.
 *
 * The payout is the single most important number on a driver's screen, and it
 * was the part being cut off. BUILD_LIST finding #30. */
/* The market map. A fixed-extent basemap with absolutely-positioned markers —
 * see static/lib/map.ts for why it is not a tile-streaming map. The aspect
 * ratio matches the composed image (768x1024) so markers land where the
 * projection puts them at any width. */
.ck-map {
  position: relative;
  width: 100%;
  aspect-ratio: 768 / 1024;
  max-height: 420px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--ck-line);
  background: var(--ck-surface);
}
.ck-map-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ck-map-pin {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  margin: -0.3rem 0 0 -0.3rem; /* centre the dot on its coordinate */
  border-radius: 999px;
  box-shadow:
    0 0 0 2px #fff,
    0 1px 3px rgba(23, 37, 84, 0.4);
}
/* Jobs are drawn LARGER and underneath; drivers smaller and on top. A driver
 * sitting on a job — which is the normal case at a pickup, and constant in test
 * data — then reads as a green dot inside a gold ring rather than the job
 * vanishing under the driver. Equal-sized pins hid every job on the board. */
.ck-map-pin-job {
  background: var(--ck-accent);
  width: 0.68rem;
  height: 0.68rem;
  margin: -0.34rem 0 0 -0.34rem;
  z-index: 1;
}
.ck-map-pin-driver {
  background: var(--ck-success);
  width: 0.42rem;
  height: 0.42rem;
  margin: -0.21rem 0 0 -0.21rem;
  z-index: 2;
}
.ck-map-pin-me {
  background: var(--ck-primary);
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  z-index: 3;
}
.ck-map-credit {
  position: absolute;
  right: 0.35rem;
  bottom: 0.25rem;
  font-size: 0.6rem;
  color: var(--ck-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 0 0.3rem;
  border-radius: 0.25rem;
}

/* The board's two-column layout, and the rule that makes it safe on a phone.
 *
 * `min-width: 0` is the whole point. A grid item defaults to `min-width: auto`,
 * which means it REFUSES to shrink below its content's min-content width — so
 * the board column grew to fit its widest card (445px inside a 392px content
 * box), pushed the body's scrollWidth to 469 on a 440-point screen, and the
 * driver's payout was clipped off the right edge.
 *
 * The markup relied on `minmax(0, 1fr)` for this, but that only applies at the
 * `lg:` breakpoint; on a phone the grid is single-column and the item still
 * could not shrink. It did not reproduce in Chrome because WebKit lays the
 * same text out a little wider, so min-content crossed the threshold only in
 * the real app — which is why this needed metrics read from inside the WebView
 * rather than from a desktop browser. BUILD_LIST finding #30.
 */
.ck-boardgrid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.ck-boardgrid > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .ck-boardgrid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .ck-boardgrid-consumer {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .ck-boardgrid-ops {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

/* Any grid on these pages, not just the two-column ones: the same
 * `min-width: auto` default applies to every grid item, so a long address or
 * a wide pill in any of them could reproduce finding #30 on a narrower phone. */
.ck-grid > * {
  min-width: 0;
}

/* Page shell. Replaces `mx-auto max-w-6xl px-6` in the markup.
 *
 * Written as real CSS because the utility version behaved differently in the
 * native WebView than in a browser: the driver board's document measured 470
 * points on a 440-point screen, content ran to x=449, and the payout — the
 * number a driver actually opens the app for — was clipped to "$20.0". Chrome
 * at the same width laid the identical markup out correctly at 440, so no
 * browser-based check could see it. `max-width: min(...)` clamps to the
 * viewport on a phone and to the reading width on a desktop, and
 * `box-sizing` keeps the horizontal padding inside that clamp instead of
 * adding to it. BUILD_LIST finding #30. */
.ck-page {
  width: 100%;
  max-width: min(72rem, 100%);
  margin-inline: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

/* The job card's outer row: photo, then the text column that must shrink.
 * Explicit CSS because these are the layout-critical parts of a card that is
 * assembled in JavaScript — and in WKWebView the utility classes did not take
 * effect, so the text column kept its intrinsic width, the document grew to
 * 470 points on a 440-point screen, and the payout was clipped. Chrome applied
 * the very same classes correctly, which is why this was invisible in a
 * browser and obvious the moment element bounds were read inside the app. */
.ck-jobrow {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ck-jobphoto {
  flex: 0 0 5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}
.ck-jobbody {
  flex: 1 1 auto;
  min-width: 0; /* without this the column refuses to shrink */
}

.ck-jobhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.ck-jobhead-title {
  min-width: 0; /* the whole point: allow the title to shrink */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-jobhead-pay {
  flex: 0 0 auto;
  text-align: right;
}

/* Rows of pills built from JS. Explicit for the same reason. */
.ck-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ck-pill-live {
  color: var(--ck-success-ink);
  border-color: #b5e2c4;
  background: var(--ck-success-tint);
}
.ck-pill-warn {
  color: var(--ck-warning-ink);
  border-color: #f2cf9a;
  background: var(--ck-warning-tint);
}
.ck-pill-bad {
  color: var(--ck-danger-ink);
  border-color: #f1b8b8;
  background: var(--ck-danger-tint);
}

/* Inline notices: a fit warning, a payout that needs finishing, a closed account. */
.ck-note {
  border-radius: 12px;
  border: 1px solid var(--ck-line);
  background: var(--ck-surface-2);
  color: var(--ck-text);
}
.ck-note-warn {
  border-color: #f2cf9a;
  background: var(--ck-warning-tint);
  color: var(--ck-warning-ink);
}
.ck-note-bad {
  border-color: #f1b8b8;
  background: var(--ck-danger-tint);
  color: var(--ck-danger-ink);
}
.ck-note-ok {
  border-color: #b5e2c4;
  background: var(--ck-success-tint);
  color: var(--ck-success-ink);
}

/* The client's logo. The wordmark (crown, CK and the two words) sits in the
   nav on every page; it is only ever placed on a light surface because its
   "COURIER" is dark purple. Height is fixed so the nav never jumps while the
   image loads. */
.ck-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.ck-mark img {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 380px) {
  .ck-mark img {
    height: 38px;
  }
}
.ck-mark-lg {
  display: flex;
}
.ck-mark-lg img {
  height: 72px;
}
.ck-mark .ck-mark-sub {
  font-family: var(--ck-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ck-muted);
  border-left: 1px solid var(--ck-line-strong);
  padding-left: 0.55rem;
}

/* The nav bar: white, with a hairline, over the tinted page. */
.ck-nav {
  background: var(--ck-surface);
  border-bottom: 1px solid var(--ck-line);
}
.ck-mode-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
}
.ck-mode-nav a {
  min-height: 44px;
  flex: 1;
  max-width: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ck-muted);
}
.ck-mode-nav a[aria-current="page"] {
  color: var(--ck-primary);
  background: var(--ck-surface-2);
}
.ck-mode-nav a:focus-visible {
  outline: 2px solid var(--ck-primary);
  outline-offset: 2px;
}

/* Product surfaces: route-led booking and a persistent, thumb-height app shell. */
.ck-marketing {
  background: #fff;
}
.ck-marketing .ck-nav {
  margin-bottom: 0;
}
.ck-marketing .ck-nav > div {
  min-height: 86px;
}
.ck-marketing-hero {
  padding-top: 76px;
  padding-bottom: 76px;
}
.ck-marketing-hero h1 {
  font-size: clamp(3.6rem, 6.3vw, 5.5rem);
  letter-spacing: -0.03em;
}
.ck-launch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.ck-launch-label > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ck-primary);
  box-shadow: 0 0 0 5px #eef2ff;
}
.ck-launch-note {
  font-size: 0.73rem;
  max-width: 28rem;
  color: var(--ck-muted);
  margin-top: 22px;
  line-height: 1.7;
}
.ck-hero-ticket {
  border-radius: 8px 8px 28px 28px;
  transform: rotate(2deg);
  box-shadow: 14px 18px 0 #edf1fb;
}
.ck-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ck-band-line);
  padding-bottom: 20px;
}
.ck-ticket-top > span {
  font-size: 0.67rem;
  line-height: 1.65;
  letter-spacing: 0.17em;
  font-weight: 650;
}
.ck-ticket-top img {
  border-radius: 12px;
}
.ck-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 24px -36px -10px;
  padding: 22px 25px 0;
  border-top: 1px dashed #68779f;
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  color: var(--ck-band-muted);
}
.ck-ticket-footer > span:nth-child(2) {
  font-size: 1.5rem;
  color: var(--ck-accent);
}
.ck-how-it-works {
  border-top: 1px solid var(--ck-line);
  border-bottom: 1px solid var(--ck-line);
}
.ck-how-it-works .ck-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-left: 1px solid var(--ck-line);
  padding-left: 24px;
}
.ck-how-it-works .ck-card > div:first-child {
  font-family: var(--ck-font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.ck-marketing #drivers {
  background: #f5f7fc;
  border-radius: 28px;
  margin-block: 35px;
}
.ck-marketing #drivers > div {
  padding: 20px;
}
.ck-marketing #drivers .ck-card {
  box-shadow: none;
  border-radius: 22px;
}
@media (max-width: 640px) {
  .ck-marketing-hero {
    padding-block: 38px 60px;
  }
  .ck-marketing-hero h1 {
    font-size: 3.65rem;
  }
  .ck-hero-ticket {
    transform: none;
    box-shadow: 7px 9px 0 #edf1fb;
  }
  .ck-ticket-footer {
    margin-inline: -28px;
  }
  .ck-marketing #drivers {
    border-radius: 0;
    padding-inline: 0;
  }
  .ck-marketing #drivers > div {
    padding: 24px;
  }
  .ck-marketing #drivers .ck-card {
    padding: 24px 18px;
  }
}
.ck-interactive-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ck-line);
  border-radius: 20px;
  background: #e4edf3;
}
.ck-map-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  touch-action: none;
  cursor: grab;
}
.ck-map-canvas:active {
  cursor: grabbing;
}
.ck-map-canvas:focus-visible {
  outline: 3px solid var(--ck-primary);
  outline-offset: -3px;
}
.ck-map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  border: 1px solid var(--ck-line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--ck-shadow);
  overflow: hidden;
}
.ck-map-controls button {
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
}
.ck-map-controls button + button {
  border-top: 1px solid var(--ck-line);
}
.ck-tracking-mode > .ck-boardgrid {
  display: none;
}
.ck-tracking-mode > .ck-workspace-heading {
  display: none;
}
.ck-booking-focused .ck-recent-deliveries,
.ck-booking-focused .ck-inbox-panel {
  display: none;
}
.ck-address-result {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--ck-line);
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.ck-address-result strong,
.ck-address-result span {
  display: block;
}
.ck-address-result span {
  color: var(--ck-muted);
  font-size: 0.72rem;
  margin-top: 3px;
}
.ck-delivery-heading {
  margin-bottom: 24px;
}
.ck-delivery-heading h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.ck-delivery-heading > div > p {
  color: var(--ck-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 44rem;
}
.ck-delivery-progress {
  display: flex;
  gap: 6px;
  margin-block: 24px;
  max-width: 36rem;
}
.ck-delivery-progress li {
  flex: 1;
  position: relative;
  color: var(--ck-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.ck-delivery-progress li::before {
  content: "";
  position: absolute;
  height: 2px;
  left: 26px;
  right: 0;
  top: 10px;
  background: var(--ck-line);
}
.ck-delivery-progress li:last-child::before {
  display: none;
}
.ck-delivery-progress li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border: 1px solid var(--ck-line-strong);
  border-radius: 50%;
  font-size: 0.72rem;
}
.ck-delivery-progress .is-complete {
  color: var(--ck-indigo);
  font-weight: 650;
}
.ck-delivery-progress .is-complete > span {
  border-color: var(--ck-primary);
  background: var(--ck-primary);
  color: white;
}
.ck-delivery-progress [aria-current] > span {
  box-shadow: 0 0 0 4px var(--ck-accent-tint);
}
/* The connector after a step the delivery has moved past. */
.ck-delivery-progress .is-complete:not([aria-current])::before {
  background: var(--ck-primary);
}
.ck-tracking-driver {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  border-block: 1px solid var(--ck-line);
  font-size: 0.85rem;
  line-height: 1.5;
}
.ck-tracking-driver > div:not([aria-hidden]) {
  min-width: 0;
}
.ck-tracking-driver img {
  flex-shrink: 0;
}
.ck-application-photo {
  width: 112px;
  height: 96px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid var(--ck-line);
  margin-top: 12px;
}
.ck-location-status {
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 12px;
  color: var(--ck-muted);
}
.ck-location-status.is-stale {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ck-warning-tint);
  color: var(--ck-warning-ink);
}
.ck-timeline-history {
  margin-top: 20px;
  border-bottom: 1px solid var(--ck-line);
  padding-bottom: 12px;
}
.ck-timeline-history summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.ck-timeline-history summary > span {
  float: right;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ck-muted);
}
.ck-delivery-finished > .ck-tracking-map-wrap {
  order: 2;
}
.ck-tracking-layout {
  display: grid;
  gap: 24px;
}
.ck-tracking-layout > * {
  min-width: 0;
}
.ck-map-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--ck-muted);
}
.ck-map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ck-map-legend i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ck-location-pickup {
  background: var(--ck-indigo);
}
.ck-location-dropoff {
  background: var(--ck-accent);
}
.ck-location-driver {
  background: var(--ck-primary);
}
.ck-tracking-addresses {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--ck-accent);
}
.ck-tracking-addresses p {
  font-size: 0.8rem;
  line-height: 1.6;
}
.ck-tracking-addresses p + p {
  margin-top: 18px;
}
.ck-tracking-addresses span {
  display: block;
  color: var(--ck-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  margin-bottom: 4px;
}
.ck-delivery-timeline {
  border-left: 1px solid var(--ck-line);
  padding-left: 15px;
  margin-left: 6px;
}
.ck-delivery-timeline li {
  min-height: 42px;
  position: relative;
}
.ck-delivery-timeline li > span:first-child {
  font-size: 0;
  position: absolute;
  left: -20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ck-primary);
  border: 2px solid white;
}
@media (min-width: 1024px) {
  .ck-tracking-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}
.ck-proof-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ck-proof-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}
.ck-proof-photos figcaption {
  font-size: 0.7rem;
  color: var(--ck-muted);
  margin-top: 6px;
}
.ck-proof-open {
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ck-surface);
  cursor: zoom-in;
}
.ck-proof-expand {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--ck-surface);
  color: var(--ck-primary);
  font-size: 0.7rem;
  font-weight: 600;
}
dialog.ck-proof-viewer {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 16px;
}
.ck-proof-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ck-proof-stage {
  overflow: auto;
  max-height: 60dvh;
  margin-block: 16px;
  border-radius: 12px;
  background: var(--ck-bg);
  overscroll-behavior: contain;
}
.ck-proof-stage [data-status] {
  padding: 20px;
  color: var(--ck-muted);
}
.ck-proof-stage img:not([hidden]) {
  display: block;
  max-width: 100%;
  max-height: 60dvh;
  object-fit: contain;
  margin-inline: auto;
}
.ck-proof-stage img.is-zoomed {
  max-width: none;
  max-height: none;
  margin: 0;
}
.ck-proof-zoom {
  display: block;
  margin: 12px auto 0;
}
.ck-support-contact {
  display: flex;
  gap: 18px;
}
.ck-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "answers help";
  gap: 56px;
  align-items: start;
}
.ck-support-help {
  grid-area: help;
}
.ck-support-answers {
  grid-area: answers;
  min-width: 0;
}
.ck-support-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.ck-support-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ck-line-strong);
  border-radius: 11px;
  background: var(--ck-surface);
  color: var(--ck-primary);
  font-size: 0.85rem;
  font-weight: 600;
}
.ck-support-topics a:hover {
  border-color: var(--ck-primary);
}
.ck-support-topics a:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
}
.ck-faq-group {
  margin-bottom: 36px;
  scroll-margin-top: 24px;
}
.ck-faq-group h2 {
  margin-bottom: 12px;
}
.ck-faq {
  border-bottom: 1px solid var(--ck-line);
}
.ck-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.ck-faq summary::-webkit-details-marker {
  display: none;
}
.ck-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ck-primary);
}
.ck-faq[open] summary::after {
  content: "−";
}
.ck-faq summary:hover {
  color: var(--ck-primary);
}
.ck-faq summary:focus-visible {
  outline: 3px solid var(--ck-primary);
  outline-offset: 3px;
}
.ck-faq > div {
  padding: 0 28px 20px 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ck-muted);
}
@media (max-width: 900px) {
  .ck-support-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "help" "answers";
    gap: 32px;
  }
  .ck-support-contact > svg {
    display: none;
  }
}
.ck-support-contact > svg {
  width: 38px;
  height: 38px;
  color: var(--ck-primary);
}
.ck-support-request {
  padding-block: 20px;
  border-top: 1px solid var(--ck-line);
  overflow-wrap: anywhere;
}
.ck-support-reply {
  margin-top: 18px;
  padding: 16px;
  background: var(--ck-surface-2);
  border-left: 3px solid var(--ck-primary);
  border-radius: 0 10px 10px 0;
}
.ck-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
[hidden] {
  display: none !important;
}
.ck-app-shell {
  padding-bottom: 94px;
}
.ck-app-shell .ck-nav {
  margin-bottom: 0;
}
.ck-app-shell .ck-nav > .ck-page {
  min-height: 76px;
}
.ck-app-shell .ck-mode-nav {
  position: fixed;
  z-index: 45;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--ck-line);
  background: rgba(255, 255, 255, 0.98);
  padding: 8px 16px max(10px, env(safe-area-inset-bottom));
  gap: 16px;
}
.ck-app-shell .ck-mode-nav a {
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  min-height: 54px;
  border-radius: 12px;
}
.ck-app-shell .ck-mode-nav a[aria-current] {
  background: transparent;
}
.ck-app-shell .ck-mode-nav a {
  position: relative;
}
.ck-app-shell .ck-mode-nav a[aria-current] .ck-icon {
  color: var(--ck-primary);
  background: var(--ck-surface-2);
  box-shadow: 0 0 0 8px var(--ck-surface-2);
  border-radius: 5px;
}
/* The selected tab wears a crown-gold bar: one speed line, used as a fill. */
.ck-app-shell .ck-mode-nav a::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 26px;
  height: 3px;
  margin-left: -13px;
  border-radius: 0 0 3px 3px;
  background: var(--ck-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.ck-app-shell .ck-mode-nav a[aria-current]::before {
  transform: scaleX(1);
}
.ck-app-shell .ck-mode-nav a span {
  margin-top: 4px;
}
.ck-app-shell .ck-mode-nav a[aria-current] span {
  color: var(--ck-indigo);
  font-weight: 700;
}
.ck-workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 0 26px;
}
.ck-workspace-heading h1 {
  font-size: clamp(2.2rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.ck-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ck-muted);
  margin-bottom: 9px;
}
/* A single gold speed line ahead of every eyebrow: the brand, quietly. */
.ck-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--ck-accent);
}
.ck-help-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  min-height: 44px;
  color: var(--ck-muted);
}
.ck-booking {
  border: 1px solid var(--ck-line);
  border-radius: 22px;
  background: white;
  overflow: hidden;
  align-self: start;
}
.ck-booking-steps {
  display: flex;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ck-line);
  gap: 10px;
}
.ck-booking-steps li {
  flex: 1;
}
.ck-booking-steps button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  font-size: 0.8rem;
  color: var(--ck-muted);
  text-align: left;
}
.ck-booking-steps button span {
  display: grid;
  place-items: center;
  border: 1px solid var(--ck-line-strong);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0.7rem;
}
.ck-booking-steps button[aria-current] {
  color: var(--ck-indigo);
  font-weight: 700;
}
.ck-booking-steps button[aria-current] span {
  background: var(--ck-accent);
  border-color: var(--ck-accent);
}
.ck-booking-steps .is-complete span {
  background: var(--ck-indigo);
  border-color: var(--ck-indigo);
  color: white;
}
.ck-booking-panel {
  padding: 28px;
  animation: ck-panel-in 0.22s ease-out both;
}
.ck-panel-heading {
  margin-bottom: 28px;
}
.ck-panel-heading h2 {
  font-size: 1.75rem;
  line-height: 1.15;
}
.ck-panel-heading h2:focus {
  outline: none;
}
.ck-panel-heading p {
  color: var(--ck-muted);
  font-size: 0.83rem;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 36em;
}
.ck-route-fields {
  position: relative;
  padding-left: 26px;
  display: grid;
  gap: 28px;
}
.ck-route-fields:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  bottom: 39px;
  border-left: 1px dashed var(--ck-line-strong);
}
.ck-route-field {
  position: relative;
  min-width: 0;
}
.ck-route-field:before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--ck-primary);
  border: 3px solid #dce5ff;
  border-radius: 50%;
}
.ck-route-dropoff:before {
  background: var(--ck-indigo);
  border-color: var(--ck-accent);
  border-radius: 3px;
}
.ck-route-field .ck-input.ck-input {
  background: #f7f9fd;
  border-color: #e0e6f2;
  min-height: 54px;
}
.ck-route-field .ck-label {
  font-size: 0.77rem;
}
.ck-route-note {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--ck-line);
  padding-top: 24px;
  margin: 28px 0;
}
.ck-route-note > svg {
  width: 34px;
  height: 34px;
  color: var(--ck-primary);
}
.ck-route-note p {
  color: var(--ck-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}
.ck-route-note strong {
  display: block;
  font-size: 0.85rem;
}
.ck-route-note span {
  display: block;
  color: var(--ck-muted);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 4px;
}
.ck-continue {
  width: 100%;
  justify-content: space-between;
  min-height: 52px;
}
.ck-step-actions {
  display: flex;
  gap: 12px;
  padding-top: 12px;
}
.ck-step-actions .ck-btn {
  flex: 1;
}
.ck-step-error {
  color: var(--ck-danger-ink);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 16px;
}
.ck-photo-add {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  border: 1px dashed var(--ck-line-strong);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  color: var(--ck-primary);
  background: #f7f9fd;
}
.ck-photo-add > span:first-of-type {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 650;
}
.ck-photo-add small {
  display: block;
  font-size: 0.7rem;
  line-height: 1.5;
  font-weight: 400;
  margin-top: 4px;
  color: var(--ck-muted);
}
.ck-booking-sidebar {
  align-self: start;
}
.ck-price-summary {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}
.ck-price-summary:before {
  content: "";
  position: absolute;
  width: 64px;
  height: 5px;
  right: 25px;
  top: 0;
  background: var(--ck-accent);
  border-radius: 0 0 8px 8px;
}
.ck-price-summary #price-label {
  font-size: 0.67rem;
  letter-spacing: 0.13em;
}
.ck-price-summary #confirm {
  background: var(--ck-accent);
  color: var(--ck-indigo);
}
.ck-section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ck-section-heading h3 {
  font-size: 1.25rem;
}
.ck-section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--ck-primary);
  min-height: 44px;
}
.ck-section-heading .ck-icon {
  width: 15px;
  height: 15px;
}
.ck-recent-deliveries,
.ck-inbox-panel {
  padding: 20px 4px;
  border-bottom: 1px solid var(--ck-line);
}
.ck-empty-deliveries {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ck-empty-icon {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ck-surface-2);
  color: var(--ck-primary);
}
.ck-empty-icon > svg {
  width: 26px;
  height: 26px;
}
.ck-empty-deliveries strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
}
.ck-empty-deliveries p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 6px;
  color: var(--ck-muted);
}
.ck-empty-deliveries .ck-btn-ghost {
  margin-top: 14px;
}
.ck-summary-route {
  padding-left: 18px;
  border-left: 2px solid var(--ck-accent);
}
.ck-summary-route > div + div {
  margin-top: 24px;
}
.ck-summary-route span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ck-muted);
}
.ck-summary-route p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 4px;
}
.ck-summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 28px 18px;
  padding-top: 24px;
  border-top: 1px solid var(--ck-line);
}
.ck-summary-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.ck-summary-item strong {
  font-size: 0.9rem;
}
.ck-summary-item p {
  color: var(--ck-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}
.ck-driver-heading {
  background: var(--ck-indigo);
  color: white;
  border-radius: 14px;
  margin: 20px 0 0;
  padding: 22px 24px;
}
.ck-driver-heading .ck-eyebrow,
.ck-driver-heading .ck-muted {
  color: var(--ck-band-muted);
}
.ck-driver-heading h1 {
  font-size: 2rem;
}
.ck-driver-heading #toggle-online {
  border: 0;
  background: var(--ck-accent);
  color: var(--ck-indigo);
}
.ck-driver-shortcuts {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  padding-block: 6px;
}
.ck-driver-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ck-primary);
  font-size: 0.85rem;
  font-weight: 600;
}
.ck-driver-shortcuts .ck-icon {
  width: 19px;
  height: 19px;
}
#earn-card,
#inbox {
  scroll-margin-top: 100px;
}
.ck-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 20px;
  max-width: 960px;
  margin-inline: auto;
}
.ck-account-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.ck-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--ck-indigo);
  color: var(--ck-accent);
  font-family: var(--ck-font-display);
  font-size: 1.8rem;
}
.ck-account-layout .ck-card {
  min-width: 0;
  box-shadow: none;
  border-radius: 18px;
}
.ck-account-layout details summary {
  cursor: pointer;
  padding-block: 5px;
}
.ck-account-layout details[open] summary {
  margin-bottom: 18px;
}
.ck-account-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-block: 1px solid var(--ck-line);
  padding: 12px 0;
  margin-bottom: 28px;
}
.ck-account-support > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.ck-account-support .ck-icon {
  width: 26px;
  height: 26px;
  color: var(--ck-primary);
}
.ck-account-support strong,
.ck-account-setting strong {
  font-size: 0.9rem;
  display: block;
}
.ck-account-support small,
.ck-account-setting small {
  display: block;
  color: var(--ck-muted);
  font-size: 0.75rem;
  margin-top: 3px;
}
.ck-account-history {
  padding-bottom: 24px;
}
.ck-account-setting {
  border-block: 1px solid var(--ck-line);
}
.ck-account-setting summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  list-style: none;
}
.ck-account-setting summary::-webkit-details-marker {
  display: none;
}
.ck-account-setting summary::after {
  content: "+";
  color: var(--ck-primary);
  font-size: 1.4rem;
}
.ck-account-setting[open] summary::after {
  content: "−";
}
.ck-account-setting form {
  padding-bottom: 24px;
}
.ck-account-data {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 80px;
  border-bottom: 1px solid var(--ck-line);
  font-size: 0.9rem;
}
.ck-account-data span {
  color: var(--ck-muted);
  font-size: 0.75rem;
}
.ck-account-delete {
  padding-block: 18px;
}
.ck-account-delete summary {
  color: var(--ck-muted);
  min-height: 44px;
}
.ck-history-expand {
  min-height: 44px;
  margin-top: 8px;
}
.ck-account-empty {
  padding: 20px 0;
  color: var(--ck-muted);
}
.ck-account-empty .ck-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}
.ck-account-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
}
.ck-screening-recovery summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ck-screening-recovery input[name="recordId"] {
  font-family: monospace;
  font-size: 16px;
}
@media (min-width: 900px) {
  .ck-account-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 48px;
  }
  .ck-account-identity,
  .ck-account-support {
    grid-column: 1 / -1;
  }
  .ck-account-history {
    grid-column: 1;
    grid-row: 3;
  }
  .ck-account-settings {
    grid-column: 2;
    align-self: start;
  }
}
@keyframes ck-panel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1024px) {
  .ck-app-shell .ck-nav > .ck-page {
    padding-right: 380px;
  }
  .ck-app-shell .ck-mode-nav {
    position: absolute;
    bottom: auto;
    top: 12px;
    left: auto;
    right: max(24px, calc((100% - 1120px) / 2));
    width: 310px;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 12px;
  }
  .ck-app-shell .ck-mode-nav a {
    flex-direction: row;
    gap: 10px;
    font-size: 0.8rem;
  }
  .ck-app-shell .ck-mode-nav a span {
    margin: 0;
  }
  .ck-app-shell .ck-mode-nav a[aria-current] .ck-icon {
    box-shadow: none;
    background: transparent;
  }
  .ck-app-shell {
    padding-bottom: 0;
  }
  .ck-account-identity {
    grid-column: 1/-1;
  }
}
@media (max-width: 1023px) {
  .ck-booking-sidebar .ck-price-summary {
    display: none;
  }
  .ck-reviewing .ck-price-summary {
    display: block;
  }
}
@media (max-width: 540px) {
  .ck-app-shell .ck-page {
    padding-inline: 20px;
  }
  .ck-workspace-heading {
    padding-block: 26px 22px;
  }
  .ck-workspace-heading .ck-eyebrow {
    font-size: 0.68rem;
  }
  .ck-help-link span {
    display: none;
  }
  .ck-booking-steps {
    padding: 15px 18px;
    gap: 6px;
  }
  .ck-booking-steps button {
    font-size: 0.7rem;
    gap: 7px;
    min-height: 44px;
  }
  .ck-booking-panel {
    padding: 24px 18px;
  }
  .ck-panel-heading h2 {
    font-size: 1.5rem;
  }
  .ck-panel-heading p {
    font-size: 0.78rem;
  }
  .ck-route-note {
    margin-block: 24px;
  }
  #consumer-root > .ck-workspace-heading {
    padding-block: 12px 18px;
  }
  #consumer-root > .ck-workspace-heading h1 {
    font-size: 1.95rem;
  }
  #consumer-root.ck-booking-focused > .ck-workspace-heading h1 {
    font-size: 1.5rem;
  }
  #consumer-root .ck-booking-steps {
    padding-block: 8px;
  }
  #consumer-root .ck-booking-panel {
    padding-block: 20px;
  }
  #consumer-root .ck-panel-heading {
    margin-bottom: 20px;
  }
  #consumer-root .ck-route-fields {
    gap: 20px;
  }
  #consumer-root .ck-route-note {
    margin-block: 18px;
    padding-top: 16px;
    gap: 12px;
  }
  #consumer-root .ck-route-note > svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .ck-driver-heading {
    padding: 18px 20px;
    gap: 12px;
  }
  .ck-driver-heading h1 {
    font-size: 1.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ck-booking-panel {
    animation: none;
  }
  .ck-app-shell *,
  .ck-marketing * {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
}

/* The price band. The one dark surface in the app: deep indigo, gold price.
   Same relationship as the crown to the CK in the logo. */
.ck-band {
  background: var(--ck-band);
  color: #fff;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.ck-band .ck-muted,
.ck-band-muted {
  color: var(--ck-band-muted);
}
.ck-band .ck-gold {
  color: var(--ck-accent);
}
.ck-band .ck-row {
  border-color: var(--ck-band-line);
}
.ck-band .ck-card-2 {
  background: var(--ck-band-2);
  border-color: var(--ck-band-line);
}
/* On the band the main action is gold, not blue: blue on indigo is 2.2:1 as a
   shape, gold on indigo is 8.3:1, and it is the logo's own pairing. */
.ck-band .ck-btn {
  background: var(--ck-accent);
  color: var(--ck-indigo);
  box-shadow: 0 3px 0 var(--ck-accent-ink);
}
.ck-band .ck-btn:active {
  box-shadow: 0 1px 0 var(--ck-accent-ink);
}
.ck-band .ck-btn:hover {
  background: #ffc94d;
}
.ck-band .ck-btn:disabled {
  background: var(--ck-band-2);
  color: var(--ck-band-muted);
  opacity: 1;
}
.ck-band .ck-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.45);
}
/* The logo's speed lines, drawn as the band's one decoration. */
.ck-band-lines::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 1.6rem;
  width: 9rem;
  height: 4.2rem;
  background:
    linear-gradient(var(--ck-accent), var(--ck-accent)) 2rem 0 / 6rem 0.5rem
      no-repeat,
    linear-gradient(var(--ck-accent), var(--ck-accent)) 0 1.25rem / 7rem 0.5rem
      no-repeat,
    linear-gradient(var(--ck-accent), var(--ck-accent)) 1rem 2.5rem / 5rem
      0.5rem no-repeat;
  border-radius: 999px;
  opacity: 0.9;
  pointer-events: none;
}

.ck-rule {
  height: 1px;
  background: var(--ck-line);
  border: 0;
}

/* The price on the band. Solid crown gold; no gradient. */
.ck-hero-price {
  color: var(--ck-accent);
}

.ck-row {
  border-bottom: 1px solid var(--ck-line);
}
.ck-row:last-child {
  border-bottom: 0;
}

.ck-link {
  color: var(--ck-primary);
  text-decoration: none;
  font-weight: 600;
}
.ck-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ck-link:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
  border-radius: 4px;
}
.ck-band .ck-link {
  color: var(--ck-accent);
}

/* Standalone actions keep a touch-sized target even on tablets and desktop.
   Inline prose links retain their ordinary line height. */
:where(footer, nav, header) .ck-link,
.ck-link.inline-block,
button.ck-link,
#ck-readall {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
}

/* Respect a reduced-motion preference — this app is used one-handed in a van. */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Checkboxes.
   `accent-color` is IGNORED by iOS WKWebView — even with !important — so a
   checkbox rendered system blue on a black screen in the native app while
   looking correct in every desktop browser. Found by running the binary.
   The only reliable cross-platform answer is to draw the control ourselves:
   hide the native input, render a box, and show a tick when :checked. */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  margin: 0;
  border: 1.5px solid var(--ck-line-strong);
  border-radius: 5px;
  background: var(--ck-surface);
  cursor: pointer;
  position: relative;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}
label:has(> input[type="checkbox"]) {
  min-height: 44px;
}

input[type="checkbox"]:checked {
  background: var(--ck-primary);
  border-color: var(--ck-primary);
}

/* The tick. Drawn with a rotated border so it needs no font or image. */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.24rem;
  width: 0.38rem;
  height: 0.75rem;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
}

/* The small "Set" confirmation under a resolved address. */
.ck-set::before {
  content: "\2713  ";
  color: var(--ck-green);
}

/* Same class of problem across every native control: iOS restyles these too. */
select.ck-input,
textarea.ck-input,
input[type="date"].ck-input,
input[type="number"].ck-input,
input[type="tel"].ck-input,
input[type="email"].ck-input,
input[type="password"].ck-input {
  -webkit-appearance: none;
  appearance: none;
  background: var(--ck-surface);
  color: var(--ck-text);
}

/* iOS zooms the page when a focused input is under 16px. On the driver app that
   is disorienting mid-job, so the control font never drops below the threshold. */
input,
select,
textarea {
  font-size: 16px;
}

/* Buttons lose their radius and gain a system gradient in WKWebView. */
button,
.ck-btn,
.ck-btn-ghost {
  -webkit-appearance: none;
  appearance: none;
}

/* Driver quote form (F08 C8.2). The amount is the decision, so it leads and is
   wide enough for a real number; the reason is optional context. Wraps on a
   phone rather than squeezing three controls onto one line. */
.ck-quoterow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.ck-quoterow > input[name="reason"] {
  flex: 1 1 14rem;
  min-width: 0;
}
.ck-quoteamt {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}
.ck-quoteamt > span {
  color: var(--ck-muted);
  font-weight: 600;
}
.ck-quoteamt > input {
  width: 5.5rem;
}
.ck-quoterow input {
  background: var(--ck-surface);
  border: 1px solid var(--ck-line-strong);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: var(--ck-text);
  font-size: 16px; /* below 16px iOS zooms the page on focus */
}
.ck-quoterow input:focus-visible {
  outline: none;
  border-color: var(--ck-primary);
  box-shadow: var(--ck-focus);
}

/* A document row in the approval queue (C13.3). The link, its state and the two
   decisions sit on one line and wrap on a narrow console. */
.ck-docrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.ck-docrow > .ck-muted {
  flex: 1 1 auto;
  min-width: 0;
}

/* Select arrow. appearance:none removes the native one, so draw it. */
select.ck-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234e5b80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

/* Anything focusable that has no style of its own still shows where focus is. */
.ck-skip-link {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--ck-surface);
  color: var(--ck-primary);
  border: 1px solid var(--ck-primary);
  border-radius: 11px;
  transform: translateY(calc(-100% - 32px));
}
.ck-skip-link:focus {
  transform: none;
}
:where(a, button, select, textarea, input, [tabindex]):focus-visible {
  outline: 2px solid var(--ck-primary);
  outline-offset: 2px;
}
:where(
  .ck-btn,
  .ck-btn-ghost,
  .ck-input,
  .ck-link,
  input[type="checkbox"]
):focus-visible {
  outline: none;
}

::selection {
  background: var(--ck-accent);
  color: var(--ck-indigo);
}

/* Modal dialogs (Report a problem). */
.ck-dialog {
  width: min(32rem, calc(100% - 2rem));
  border: 1px solid var(--ck-line);
  border-radius: 16px;
  background: var(--ck-surface);
  color: var(--ck-text);
  padding: 0;
  box-shadow: 0 24px 64px rgba(23, 37, 84, 0.28);
}
.ck-ledger-dialog {
  width: min(640px, calc(100vw - 32px));
}
.ck-pickup-confirm {
  display: flex;
  gap: 10px;
  min-height: 44px;
  align-items: center;
}
.ck-pickup-confirm input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--ck-primary);
}
.ck-ledger-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: -20px -20px 0;
  padding: 20px;
  background: var(--ck-surface);
  border-bottom: 1px solid var(--ck-line);
}
.ck-ledger-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--ck-line);
  overflow-wrap: anywhere;
}
.ck-ledger-entry p {
  margin-top: 6px;
}
.ck-ledger-entry summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ck-primary);
}
.ck-ledger-entry dl {
  display: grid;
  gap: 4px;
}
.ck-ledger-entry summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
}
.ck-ledger-entry details[open] summary::after {
  content: "−";
}
.ck-ledger-entry dt {
  color: var(--ck-muted);
}
.ck-ledger-entry dd {
  margin-bottom: 8px;
}
#ledger-issues {
  display: block;
  min-height: 44px;
  text-align: left;
}
.ck-dialog::backdrop {
  background: rgba(23, 37, 84, 0.45);
}
textarea.ck-input {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.45;
}

/* The framework's analytics consent banner (#bm-cookie) ships inline dark styles
   from before the rebrand: a near-black card on a light app, 11px buttons. The
   inline styles leave !important as the only override. Brand card, primary
   Accept, readable text, real tap targets. */
#bm-cookie {
  background: var(--ck-surface) !important;
  border: 1px solid var(--ck-line) !important;
  box-shadow: 0 10px 30px rgb(23 37 84 / 0.16) !important;
  color: var(--ck-muted) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  border-radius: 14px !important;
  right: 16px !important;
}
#bm-cookie-accept,
#bm-cookie-decline {
  min-height: 36px !important;
  padding: 6px 16px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
#bm-cookie-accept {
  background: var(--ck-primary) !important;
  border-color: var(--ck-primary) !important;
  color: #fff !important;
}
#bm-cookie-decline {
  background: var(--ck-surface) !important;
  border-color: var(--ck-line-strong) !important;
  color: var(--ck-text) !important;
}
#bm-cookie-accept:focus-visible,
#bm-cookie-decline:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
}
/* In the native apps the consent banner is answered "declined" for the visitor
   (app.tsx quietConsentInApp) and never shown. */
.ck-native #bm-cookie {
  display: none !important;
}

/* `hidden` must win over a component's own display (a .ck-btn is inline-flex). */
[hidden] {
  display: none !important;
}

/* The job card's tile when the customer has not added a photo yet. */
.ck-jobphoto-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ck-surface-2);
  color: var(--ck-faint);
}

/* Tappable rows (deliveries, address suggestions). The dark theme brightened them
   on hover; on a light surface that bleached the row and its pill, and iOS keeps
   :hover after a tap. A tint, and only where a pointer can actually hover. */
@media (hover: hover) {
  .ck-rowbtn:hover {
    background: var(--ck-surface-2);
  }
  .ck-card-2.ck-rowbtn:hover {
    border-color: var(--ck-line-strong);
  }
}
.ck-rowbtn:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
  border-radius: 8px;
}

/* ── Legal documents (/terms, /privacy) ─────────────────────────────────────
   Formal layout for the Terms of Service and Privacy Policy: an indigo title
   band, a contents rail that stays put on wide screens, numbered sections and
   clauses. They were rewritten 2026-10-09 because the plain-English versions
   read as informal to the client and to store reviewers. */
.legal-band {
  background: var(--ck-band);
  color: #fff;
}
.legal-eyebrow {
  font-family: var(--ck-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ck-accent);
}
.legal-title {
  font-family: var(--ck-font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.legal-meta {
  color: var(--ck-band-muted);
  font-size: 0.9rem;
}
.legal-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.legal-meta dd {
  color: #fff;
  font-weight: 500;
  margin: 0.15rem 0 0;
}
.legal-tabs a {
  display: inline-block;
  padding: 0.55rem 0;
  margin-right: 1.75rem;
  color: var(--ck-band-muted);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.legal-tabs a:hover {
  color: #fff;
}
.legal-tabs a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--ck-accent);
}

.legal-grid {
  display: grid;
  gap: 3rem;
  padding-block: 3rem 5rem;
}
@media (min-width: 1024px) {
  .legal-grid {
    grid-template-columns: 15.5rem minmax(0, 46rem);
    justify-content: space-between;
  }
  .legal-toc-wrap {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}
.legal-toc summary {
  font-family: var(--ck-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ck-muted);
  cursor: pointer;
  list-style: none;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ck-line);
}
.legal-toc summary::-webkit-details-marker {
  display: none;
}
.legal-toc ol {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
}
.legal-toc a {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  padding: 0.32rem 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ck-muted);
  text-decoration: none;
}
.legal-toc a::before {
  content: counter(toc) ".";
  color: var(--ck-faint);
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover {
  color: var(--ck-primary);
}

.legal-doc {
  color: var(--ck-text);
  font-size: 1rem;
  line-height: 1.75;
  counter-reset: sec;
}
.legal-doc .legal-preamble {
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-left: 4px solid var(--ck-indigo);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.legal-doc .legal-preamble p + p {
  margin-top: 0.75rem;
}
.legal-doc > section {
  counter-increment: sec;
  counter-reset: cl;
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--ck-line);
  scroll-margin-top: 1rem;
}
.legal-doc > section:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.legal-doc h2 {
  font-family: var(--ck-font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin-bottom: 1rem;
}
.legal-doc h2::before {
  content: counter(sec) ".\00a0\00a0";
  color: var(--ck-primary);
}
.legal-doc h3 {
  font-weight: 700;
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}
.legal-doc p,
.legal-doc li {
  color: #26335c;
}
.legal-doc p + p {
  margin-top: 0.9rem;
}
.legal-doc .cl {
  counter-increment: cl;
  position: relative;
  padding-left: 3rem;
  margin-top: 0.9rem;
}
.legal-doc .cl::before {
  content: counter(sec) "." counter(cl);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--ck-text);
  font-variant-numeric: tabular-nums;
}
.legal-doc ul,
.legal-doc ol.alpha {
  margin: 0.6rem 0 0 1.25rem;
}
.legal-doc ul {
  list-style: disc;
}
.legal-doc ol.alpha {
  list-style: lower-alpha;
}
.legal-doc ul li,
.legal-doc ol.alpha li {
  padding-left: 0.3rem;
  margin-top: 0.35rem;
}
.legal-doc strong {
  color: var(--ck-text);
}
.legal-doc .caps {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
.legal-doc .notice {
  background: var(--ck-accent-tint);
  border: 1px solid #f1dc9c;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.legal-doc th {
  text-align: left;
  font-weight: 700;
  background: var(--ck-surface-2);
  border: 1px solid var(--ck-line);
  padding: 0.6rem 0.75rem;
  vertical-align: bottom;
}
.legal-doc td {
  border: 1px solid var(--ck-line);
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  color: #26335c;
  line-height: 1.55;
}
.legal-doc .table-scroll {
  overflow-x: auto;
}
.legal-doc address {
  font-style: normal;
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.legal-doc a {
  color: var(--ck-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-end {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ck-text);
  font-size: 0.85rem;
  color: var(--ck-muted);
}
/* Test mode is a quiet pill, not a strip that outranks the page heading. */
.ck-test-mode {
  display: table;
  margin: 0.75rem auto 1rem;
  padding: 0.35rem 0.85rem;
  color: var(--ck-warning-ink);
  background: var(--ck-warning-tint);
  border: 1px solid #f2cf9a;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.ck-map-host {
  position: relative;
  isolation: isolate;
}
.ck-live-map,
.ck-map-loading {
  height: 330px;
  width: 100%;
  border: 1px solid var(--ck-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ck-surface-2);
}
.ck-map-loading {
  display: grid;
  place-items: center;
  color: var(--ck-muted);
}
.ck-map-host .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: var(--ck-text);
}
.ck-map-fit {
  position: absolute;
  top: 110px;
  left: 12px;
  width: 44px;
  height: 44px;
  z-index: 800;
  background: white;
  border: 1px solid var(--ck-line-strong);
  border-radius: 6px;
  color: var(--ck-text);
  font-size: 1.5rem;
  cursor: pointer;
}
.ck-map-error {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--ck-warning-ink);
}
.ck-map-error button {
  margin-top: 0.5rem;
}
.ck-map-host .leaflet-control-attribution {
  font-size: 10px;
}
@media (max-width: 600px) {
  .ck-live-map,
  .ck-map-loading {
    height: 270px;
  }
}
.ck-item-photo {
  position: relative;
  width: 88px;
  padding-top: 8px;
}
.ck-item-photo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--ck-line);
  border-radius: 10px;
}
.ck-item-photo button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ck-text);
  color: white;
  font-size: 1.3rem;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
}
.ck-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ck-board-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ck-board-empty {
  padding: 2.5rem 1.5rem;
  border-block: 1px solid var(--ck-line);
  text-align: center;
}
.ck-board-empty > .ck-icon {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  padding: 14px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ck-surface-2);
  color: var(--ck-primary);
}
.ck-board-empty h3 {
  margin-bottom: 0.65rem;
}
.ck-board-empty p {
  max-width: 25rem;
  margin: 0.7rem auto 0;
  color: var(--ck-muted);
  line-height: 1.7;
  font-size: 0.9rem;
}
.ck-board-offline {
  display: flex;
  gap: 18px;
  text-align: left;
  padding: 24px 0;
}
.ck-board-offline > .ck-icon {
  flex-shrink: 0;
  margin: 0;
  width: 48px;
  height: 48px;
  padding: 12px;
}
.ck-board-offline h3 {
  margin-bottom: 4px;
}
.ck-board-offline p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
}
.ck-board-offline p.text-xs {
  font-size: 0.75rem;
  margin-top: 8px;
}
.ck-dispatch-card {
  border: 1px solid var(--ck-line);
  border-top: 3px solid var(--ck-accent);
  background: var(--ck-surface);
  padding: 1.3rem;
  border-radius: 14px;
  box-shadow: 0 3px 0 #e7ebf5;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.ck-dispatch-card:hover,
.ck-dispatch-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--ck-primary);
  border-top-color: var(--ck-accent);
  box-shadow: var(--ck-shadow);
}
.ck-dispatch-card .ck-jobhead-title {
  white-space: normal;
  line-height: 1.4;
  font-weight: 700;
  font-size: 1.05rem;
}
.ck-dispatch-card .ck-jobhead-pay {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--ck-accent-tint);
  color: var(--ck-indigo);
}
.ck-dispatch-card .ck-jobhead-pay .ck-display {
  color: var(--ck-indigo);
  font-size: 1.6rem;
}
.ck-dispatch-route {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--ck-gold);
  display: grid;
  gap: 0.7rem;
}
.ck-dispatch-route p {
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ck-dispatch-route span {
  display: block;
  color: var(--ck-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.ck-earn-panel {
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
  border-radius: 14px;
}
.ck-earn-balance {
  display: grid;
  gap: 0.2rem;
  margin: 1.2rem 0;
}
.ck-earn-balance > span {
  color: var(--ck-muted);
  font-size: 0.8rem;
}
.ck-earn-balance > strong {
  font-family: var(--ck-font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--ck-primary);
}
.ck-statement-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--ck-line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}
.ck-statement-row {
  border-bottom: 1px solid var(--ck-line);
}
.ck-statement-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  cursor: pointer;
  list-style: none;
}
.ck-statement-row summary::-webkit-details-marker {
  display: none;
}
.ck-statement-row summary > span {
  display: grid;
  gap: 0.25rem;
}
.ck-statement-row summary small {
  color: var(--ck-muted);
}
.ck-statement-row summary > strong::after {
  content: "+";
  margin-left: 0.7rem;
  font-weight: 400;
  color: var(--ck-muted);
}
.ck-statement-row[open] summary > strong::after {
  content: "−";
}
.ck-statement-detail {
  padding-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--ck-muted);
}
.ck-statement-detail > p {
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.ck-statement-detail dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}
@media (max-width: 600px) {
  .ck-dispatch-card {
    padding: 1rem;
  }
  .ck-dispatch-card .ck-jobrow {
    display: block;
  }
  .ck-dispatch-card .ck-jobphoto {
    float: left;
    width: 56px;
    height: 56px;
    margin-right: 0.8rem;
    margin-bottom: 0.8rem;
  }
  .ck-dispatch-card .ck-jobhead {
    min-height: 56px;
    margin-bottom: 1rem;
  }
  .ck-dispatch-route {
    clear: both;
  }
  .ck-dispatch-card .ck-jobhead-pay .ck-display {
    font-size: 1.45rem;
  }
}

.ck-application {
  max-width: 1120px;
  margin-inline: auto;
}
.ck-application-intro {
  padding: 1rem 0 2rem;
}
.ck-application-intro > h2 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.04;
  margin: 0.6rem 0 1rem;
}
.ck-application-intro > p:not(.ck-eyebrow) {
  max-width: 40rem;
  color: var(--ck-muted);
}
.ck-application-journey {
  list-style: none;
  padding: 1.4rem 0 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--ck-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ck-application-journey li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.5rem;
}
.ck-application-journey span {
  grid-row: span 2;
  color: var(--ck-gold);
  font-family: Barlow, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.ck-application-journey strong {
  font-size: 0.9rem;
}
.ck-application-journey small {
  color: var(--ck-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.ck-application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}
.ck-application-layout > :only-child {
  max-width: 42rem;
}
.ck-application-attestation {
  display: flex;
  align-items: start;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--ck-surface-2, #f3f5f8);
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.6;
}
.ck-application-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
}
.ck-application-details-summary small,
.ck-document-progress span,
.ck-document-feedback span {
  display: block;
  color: var(--ck-muted);
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.6;
}
.ck-application:not(.has-application) .ck-application-details-summary,
.has-application .ck-application-journey {
  display: none;
}
.has-application .ck-application-intro {
  padding-bottom: 1rem;
}
.ck-application #status-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.ck-application #status-card > div > div {
  display: contents;
}
.ck-application #status-card h3 {
  grid-column: 1;
  grid-row: 1;
}
.ck-application #status-card p {
  grid-column: 1 / -1;
}
.ck-application #status-card .ck-pill {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
.has-application .ck-application-layout {
  grid-template-columns: minmax(0, 1fr);
}
.has-application #docs {
  grid-column: 1;
  grid-row: 1;
  scroll-margin-top: 6rem;
}
.has-application #application-details {
  grid-column: 1;
  grid-row: 2;
}
#doc-list {
  display: grid;
  gap: 0.75rem;
}
.has-application #doc-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.ck-document-progress {
  padding: 1rem 0 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ck-line);
}
.ck-document-progress progress {
  appearance: none;
  border: 0;
  background: var(--ck-line);
  display: block;
  width: 100%;
  height: 0.5rem;
  margin: 1rem 0 0.6rem;
  accent-color: var(--ck-primary);
}
.ck-document-progress progress::-webkit-progress-bar {
  background: var(--ck-line);
}
.ck-document-progress progress::-webkit-progress-value {
  background: var(--ck-primary);
}
.ck-document-progress progress::-moz-progress-bar {
  background: var(--ck-primary);
}
.ck-document-progress p {
  color: var(--ck-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.ck-document-feedback {
  margin-top: 0.8rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--ck-warning);
  font-size: 0.8rem;
}
.ck-document-expiry {
  width: 11rem;
  max-width: 100%;
}
.ck-doc-review-note {
  flex-basis: 100%;
  overflow-wrap: anywhere;
}
.ck-application-attestation input {
  margin-top: 0.3rem;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--ck-blue);
}
@media (max-width: 760px) {
  .has-application #doc-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .has-application #application-details {
    grid-column: 1;
    grid-row: 2;
  }
  .ck-application-layout {
    grid-template-columns: 1fr;
  }
  .ck-application-journey {
    gap: 0.5rem;
  }
  .ck-application-journey li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .ck-application-journey small {
    line-height: 1.5;
  }
}

@media print {
  .ck-nav,
  .legal-toc-wrap,
  .legal-tabs,
  footer {
    display: none !important;
  }
  .legal-band {
    background: none;
    color: #000;
  }
  .legal-meta,
  .legal-meta dd {
    color: #000;
  }
  .legal-grid {
    display: block;
    padding: 0;
  }
}
/* Clear money states: an authorization is distinct from a completed charge. */
.ck-receipt {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--ck-line);
  border-radius: 12px;
}
.ck-receipt h3 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.ck-receipt dl {
  display: grid;
  gap: 0.55rem;
}
.ck-receipt dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.ck-receipt dt {
  color: var(--ck-muted);
}
.ck-receipt dd {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.ck-receipt p {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ck-muted);
}
.ck-tip-panel {
  padding: 1.2rem;
  margin: 1rem 0 1.5rem;
  border-radius: 12px;
  background: var(--ck-surface);
  border: 1px solid var(--ck-line);
}
.ck-tip-panel h3 {
  font-weight: 700;
  margin: 0.3rem 0;
}
.ck-tip-panel p {
  color: var(--ck-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0.5rem 0 0.8rem;
}
.ck-tip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.ck-tip-options button {
  flex: 1 1 4.5rem;
  min-width: 4.5rem;
  min-height: 44px;
}
.ck-tip-other {
  margin-top: 0.9rem;
  max-width: 14rem;
}
.ck-tip-other-field {
  position: relative;
}
.ck-tip-other-field > span {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--ck-muted);
  pointer-events: none;
}
.ck-tip-other-field .ck-input.ck-input {
  padding-left: 1.75rem;
  font-size: 16px;
}
.ck-tip-other-bad {
  color: var(--ck-danger-ink);
}
.ck-tip-options [aria-pressed="true"] {
  background: var(--ck-primary);
  color: white;
}
.ck-ops-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.ck-ops-heading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0.4rem 0;
}
.ck-ops-heading p {
  color: var(--ck-muted);
  font-size: 0.9rem;
}
.ck-ops-heading nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ck-ops-heading nav a {
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  border: 1px solid var(--ck-line);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ck-ops-model-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 1rem 0;
}

.ck-ops-section-heading,
.ck-ops-list-meta,
.ck-ops-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ck-ops-section-heading {
  margin-bottom: 1rem;
}
.ck-ops-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ck-ops-stats > div {
  padding: 1rem;
}
.ck-ops-delivery-views {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--ck-line);
  margin-bottom: 1rem;
}
.ck-ops-delivery-views a {
  padding: 0.7rem 0.2rem;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  color: var(--ck-muted);
}
.ck-ops-delivery-views a[aria-current="page"] {
  color: var(--ck-primary);
  border-bottom-color: var(--ck-primary);
}
.ck-ops-search label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.ck-ops-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}
.ck-ops-search input {
  width: 100%;
  min-width: 0;
}
.ck-ops-list-meta {
  margin: 0.8rem 0;
}
.ck-ops-list-meta button {
  min-height: 44px;
  flex-shrink: 0;
}
.ck-ops-delivery {
  border-bottom: 1px solid var(--ck-line);
}
.ck-ops-delivery summary {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto 1rem;
  gap: 0.4rem 0.5rem;
  padding: 0.9rem 0;
  list-style: none;
  cursor: pointer;
  align-items: center;
}
.ck-ops-delivery summary::-webkit-details-marker {
  display: none;
}
.ck-ops-delivery-id {
  font-size: 0.75rem;
  color: var(--ck-muted);
  font-variant-numeric: tabular-nums;
}
.ck-ops-delivery-main {
  min-width: 0;
  grid-column: 2 / 4;
}
.ck-ops-delivery-main strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-ops-delivery-main small {
  display: block;
  font-size: 0.7rem;
  color: var(--ck-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.2rem;
}
.ck-ops-delivery-status {
  grid-column: 2;
}
.ck-ops-delivery-price {
  grid-column: 3;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ck-ops-delivery-chevron {
  grid-column: 4;
  grid-row: 1 / 3;
  transition: transform 180ms ease-out;
  color: var(--ck-muted);
}
.ck-ops-delivery[open] .ck-ops-delivery-chevron {
  transform: rotate(180deg);
}
.ck-ops-delivery-body {
  padding: 0 0 1rem;
}
.ck-ops-delivery-body dl {
  display: grid;
  gap: 0.6rem;
  background: var(--ck-surface-2);
  padding: 1rem;
  border-radius: 11px;
}
.ck-ops-delivery-body dt {
  font-size: 0.7rem;
  color: var(--ck-muted);
}
.ck-ops-delivery-body dd {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  margin-top: 0.15rem;
}
.ck-ops-pages {
  margin-top: 1rem;
  flex-wrap: wrap;
}
.ck-ops-empty {
  padding: 1.25rem 0;
}
.ck-ops-empty p + p {
  margin-top: 0.4rem;
}
.ck-ops-fold > summary {
  cursor: pointer;
  min-height: 44px;
}
.ck-ops-fold > summary > span + span {
  margin-left: 0.65rem;
}
.ck-ops-more > summary {
  min-height: 44px;
  padding: 0.8rem 0;
  color: var(--ck-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .ck-ops-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .ck-ops-delivery summary {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto auto 1rem;
  }
  .ck-ops-delivery-main {
    grid-column: 2;
  }
  .ck-ops-delivery-status {
    grid-column: 3;
  }
  .ck-ops-delivery-price {
    grid-column: 4;
  }
  .ck-ops-delivery-chevron {
    grid-column: 5;
    grid-row: 1;
  }
  .ck-ops-delivery-body dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ck-ops-delivery-chevron {
    transition: none;
  }
}
.ck-ops-model-stats dt {
  font-size: 0.7rem;
  color: var(--ck-muted);
}
.ck-ops-model-stats dd {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ck-quote-offer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ck-line);
}
.ck-quote-price {
  flex-shrink: 0;
  text-align: right;
}
.ck-quote-offer:last-child {
  border-bottom: 0;
}
.ck-quote-price button {
  min-height: 44px;
}
.ck-history-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.ck-history-row:hover {
  background: var(--ck-surface);
}
.ck-history-meta {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.4rem;
}
@media (max-width: 767px) {
  /* WKWebView's inset viewport can report a zero CSS safe area. Keep native
     tab labels above the home-gesture region even in that configuration. */
  .ck-native:not(.ck-android) .ck-app-shell .ck-mode-nav {
    padding-bottom: max(34px, env(safe-area-inset-bottom));
  }
  .ck-native:not(.ck-android) .ck-app-shell {
    padding-bottom: 118px;
  }
  .ck-native .ck-app-shell:has(#consumer-root) .ck-nav > .ck-page {
    min-height: 60px;
    padding-block: 8px;
  }
  .ck-native .ck-app-shell:has(#consumer-root) .ck-test-mode {
    margin-bottom: 8px;
  }
  .ck-native #consumer-root > .ck-workspace-heading {
    padding-block: 8px 12px;
  }
  .ck-native #consumer-root .ck-booking-steps {
    padding-block: 6px;
  }
  .ck-native #consumer-root .ck-booking-panel {
    padding-block: 16px;
  }
  .ck-quote-offer {
    align-items: stretch;
    flex-direction: column;
  }
  .ck-quote-price {
    text-align: left;
  }
  .ck-quote-price button {
    width: 100%;
  }
  .ck-ops-heading {
    align-items: start;
    flex-direction: column;
  }
}
#consumer-root:has(.ck-checkout) > .ck-workspace-heading {
  display: none;
}
.ck-checkout {
  max-width: 620px;
  margin-inline: auto;
}
.ck-checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin: 8px 0 4px;
  border-bottom: 1px solid var(--ck-line);
}
.ck-checkout-total strong {
  font-size: 1.8rem;
}
/* Keep the market editor compact on desktop and one column on phones. */
.ck-market-dialog {
  width: min(42rem, calc(100vw - 2rem));
}
.ck-market-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 560px) {
  .ck-market-fields {
    grid-template-columns: 1fr;
  }
}

/* ══ shared polish (October 19) ══ */

/* Sign-in, sign-up, recovery and reset (October 21 redesign). Full-bleed
   indigo with the client's Tampa basemap inverted into it and a gold route;
   the square mark (drawn for any ground) and the landing headline; the form
   is a white sheet rising from the bottom edge on phones and a floating card
   from 768px. Edge-to-edge iOS builds run the band behind the clock (these
   pages' theme-color #172554 turns the clock white) and the sheet behind the
   home indicator. The wordmark stays off the indigo: its "COURIER" is purple. */
body.ck-auth {
  /* Nothing behind the clock until the page scrolls (app.tsx ck-scrolled):
     the band and its map run straight up under it. */
  --ck-statusbar: transparent;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(520px 360px at 92% 0%, #2a3f8f 0%, transparent 68%),
    var(--ck-band);
}
html:has(body.ck-auth) {
  background: #fff;
}
html.ck-edge body.ck-auth {
  min-height: 100vh;
  padding: 0;
}
html.ck-scrolled body.ck-auth {
  --ck-statusbar: var(--ck-band);
}
body.ck-auth::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 560px;
  background: url("/static/market-tampa.jpg?v=light-2026-10-02") 58% 44% / 880px
    auto no-repeat;
  filter: invert(1) hue-rotate(180deg) brightness(1.15);
  mix-blend-mode: luminosity;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(#000 20%, transparent 80%);
  mask-image: linear-gradient(#000 20%, transparent 80%);
  pointer-events: none;
}
/* The test-mode notice (app.tsx) sits above main. */
body.ck-auth > .ck-page {
  padding: calc(env(safe-area-inset-top) + 14px) 24px 0;
}
body.ck-auth .ck-test-mode {
  display: inline-flex;
  margin: 0;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  color: var(--ck-band-muted);
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.14);
}
body.ck-auth main {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 0;
  padding: calc(env(safe-area-inset-top) + 8px) 0 0 !important;
}
body.ck-auth > .ck-page ~ main {
  padding-top: 0 !important;
}
body.ck-auth main > div {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  max-width: none;
}
.ck-auth-hero {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  padding: 20px 24px 26px;
}
/* The route: pickup to drop-off, as on the website hero. */
.ck-auth-hero::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 168px;
  height: 118px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 118'%3E%3Cpath d='M18 18c6 34 20 50 52 58s62 6 80 24' fill='none' stroke='%23060a1e' stroke-opacity='.45' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M18 18c6 34 20 50 52 58s62 6 80 24' fill='none' stroke='%23F5B82E' stroke-width='4.5' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='18' r='9' fill='%23F5B82E' stroke='%23172554' stroke-width='3'/%3E%3Ccircle cx='18' cy='18' r='3.2' fill='%23172554'/%3E%3Ccircle cx='150' cy='100' r='9' fill='%23fff' stroke='%23172554' stroke-width='3'/%3E%3Ccircle cx='150' cy='100' r='3.2' fill='%233157D5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}
.ck-auth-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ck-surface);
  box-shadow:
    0 0 0 6px rgb(255 255 255 / 0.06),
    0 10px 24px rgba(0, 0, 0, 0.3);
}
.ck-auth-mark img {
  width: 40px;
  height: auto;
}
.ck-auth-mark:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.6);
}
.ck-auth-tag {
  font-family: var(--ck-font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.45rem, 1.3rem + 5.6vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  color: #fff;
}
.ck-auth-tag span {
  color: var(--ck-accent);
}

/* The sheet. */
body.ck-auth .ck-card {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  padding: 30px 24px 22px !important;
  background: #fff;
  box-shadow: 0 -18px 44px rgba(3, 8, 30, 0.32);
  animation: ck-sheet 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
body.ck-auth .ck-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 4px;
  background: var(--ck-line);
}
body.ck-auth .ck-card:last-child {
  flex-grow: 1;
  padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
}
/* The footnote after the form continues the sheet to the bottom edge. */
body.ck-auth main > div > .ck-card + p {
  /* Painted after the card, so the card's shadow does not cross it. */
  position: relative;
  flex: 1 0 auto;
  margin: 0 !important;
  padding: 0 24px calc(18px + env(safe-area-inset-bottom));
  background: #fff;
}
body.ck-auth h1.ck-head {
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
body.ck-auth .ck-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ck-indigo);
}
body.ck-auth .ck-input.ck-input {
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid #dde4f3;
  background: #f6f8fd;
  font-size: 17px;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    box-shadow 0.15s;
}
/* Room for the Show/Hide control (lib/forms.ts), which the padding above
   would otherwise take back. */
body.ck-auth .ck-pw-wrap .ck-input.ck-input {
  padding-right: 4.5rem;
}
/* The sign-up code: one full-width box, digits centred and spaced like the
   code in the email. The left padding offsets the space after the last digit. */
body.ck-auth .ck-code-input.ck-code-input {
  height: 64px;
  padding: 0 0 0 0.5em;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  font-variant-numeric: tabular-nums;
  color: var(--ck-indigo);
}
body.ck-auth .ck-code-input.ck-code-input::placeholder {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
}
.ck-code-foot {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.ck-code-resend {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ck-primary);
  border-radius: 10px;
}
.ck-code-resend:disabled {
  color: var(--ck-muted, #56607a);
  font-weight: 500;
}
.ck-code-resend:focus-visible {
  outline: 2px solid var(--ck-primary);
  outline-offset: 2px;
}
body.ck-auth .ck-input.ck-input:focus {
  background: #fff;
  border-color: var(--ck-primary);
  box-shadow: var(--ck-focus);
}
body.ck-auth .ck-btn {
  min-height: 54px;
  border-radius: 14px;
  font-size: 17px;
}
@keyframes ck-sheet {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
}
@keyframes ck-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* From 768px: the band fills the window and the form floats on it. */
@media (min-width: 768px) {
  body.ck-auth::before {
    height: 100%;
    background-size: 1400px auto;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.22;
  }
  body.ck-auth main {
    justify-content: center;
    align-items: center;
    padding: 56px 24px !important;
  }
  body.ck-auth main > div {
    flex: 0 0 auto;
    max-width: 420px;
  }
  .ck-auth-hero {
    flex: 0 0 auto;
    padding: 0 4px 28px;
  }
  .ck-auth-hero::before {
    top: -10px;
    right: -8px;
  }
  body.ck-auth .ck-card,
  body.ck-auth .ck-card:last-child {
    flex: 0 0 auto;
    border-radius: 24px;
    padding: 34px 32px !important;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  }
  body.ck-auth .ck-card::before {
    display: none;
  }
  body.ck-auth main > div > .ck-card + p {
    flex: 0 0 auto;
    padding: 22px 8px 0;
    background: none;
    color: var(--ck-band-muted);
  }
  body.ck-auth main > div > .ck-card + p .ck-link {
    color: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ck-auth .ck-card {
    animation: none;
  }
}

/* Headings in the signed-in app: the display face at full weight. */
.ck-workspace-heading h1,
.ck-panel-heading h2,
.ck-delivery-heading h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Show/Hide inside password fields (lib/forms.ts). */
.ck-pw-wrap {
  position: relative;
}
.ck-pw-wrap .ck-input.ck-input {
  padding-right: 4.5rem;
}
.ck-pw-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ck-primary);
}
.ck-pw-toggle:hover {
  background: var(--ck-surface-2);
}
.ck-pw-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
}

/* "Passwords match", live under a confirm field. */
.ck-pw-match {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ck-danger-ink);
}
.ck-pw-match.ok {
  color: var(--ck-success-ink);
}

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

/* ══ consumer-ux (owned by the consumer pass; add consumer CSS below this line) ══ */

/* Address fields: the live line under each input says what is happening. */
.ck-address-status {
  margin-top: 6px;
  color: var(--ck-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.ck-address-status.ck-set {
  color: var(--ck-success-ink);
  font-weight: 600;
}
.ck-address-status.ck-set::before {
  content: "\2713  ";
}
.ck-address-status.is-error {
  color: var(--ck-danger-ink);
}
/* "Use current location" as a pin inside the address field: a full row per
   field pushed Continue under the phone's bottom navigation. */
.ck-address-input {
  position: relative;
}
.ck-address-input .ck-input.ck-input {
  padding-right: 3.25rem;
}
.ck-current-location {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  color: var(--ck-primary);
}
.ck-current-location:hover {
  background: var(--ck-surface-2);
}
.ck-current-location:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
}
.ck-current-location .ck-icon,
.ck-current-location svg {
  width: 20px;
  height: 20px;
}

/* The phone route step's price strip: the price band, compacted. Desktop
   already shows the full band beside the form, so it is phone-only. */
.ck-route-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 20px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
}
.ck-route-price > div {
  flex: 1 1 10rem;
  min-width: 0;
}
#route-price-label {
  display: block;
  color: var(--ck-band-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#route-price-note {
  margin-top: 4px;
  color: var(--ck-band-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
#route-price-value {
  font-size: 2.1rem;
  line-height: 1;
}
.ck-route-price .ck-btn {
  min-height: 44px;
}
.ck-route-price.is-busy #route-price-value,
#price-hero.is-busy {
  opacity: 0.55;
}
@media (min-width: 1024px) {
  .ck-route-price {
    display: none;
  }
}
.ck-price-retry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
}

/* A short tick when the total changes, so a new price is noticed. */
.ck-price-tick {
  animation: ck-price-tick 180ms ease-out;
}
@keyframes ck-price-tick {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Photo problems stay on screen with their own recovery action. */
.ck-photo-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ck-danger-tint);
  color: var(--ck-danger-ink);
  font-size: 0.875rem;
  line-height: 1.5;
}
.ck-photo-error p {
  flex: 1 1 14rem;
}

/* Two-step cancel: the first tap opens this, the second cancels. */
.ck-cancel {
  margin-top: 20px;
}
.ck-cancel-confirm {
  padding: 16px;
  border: 1px solid var(--ck-line-strong);
  border-radius: 14px;
  background: var(--ck-surface-2);
  font-size: 0.875rem;
  line-height: 1.55;
}
.ck-cancel-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.ck-cancel-title:focus {
  outline: none;
}
.ck-cancel-title:focus-visible {
  box-shadow: var(--ck-focus);
  border-radius: 4px;
}
.ck-cancel-confirm .ck-step-error {
  margin: 8px 0 0;
}
.ck-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ck-cancel-actions button {
  flex: 1 1 9rem;
}
.ck-priced-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ck-line);
}
.ck-priced-actions .ck-cancel {
  margin-top: 0;
}
.ck-priced-actions .ck-btn-ghost {
  width: 100%;
}

/* When the search or the offer window ends. */
.ck-deadline {
  color: var(--ck-indigo);
  font-size: 0.875rem;
  font-weight: 650;
}

.ck-deliveries-error {
  display: grid;
  gap: 10px;
  justify-items: start;
}

/* Booking steps: a segment under each step, filled once it is reached. */
.ck-booking-steps li {
  position: relative;
}
.ck-booking-steps li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--ck-line);
}
.ck-booking-steps li:has(.is-complete)::after,
.ck-booking-steps li:has([aria-current])::after {
  background: var(--ck-primary);
}
.ck-booking-steps button[aria-current] span {
  box-shadow: 0 0 0 4px var(--ck-accent-tint);
}
@media (max-width: 540px) {
  .ck-booking-steps button {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ck-price-tick {
    animation: none;
  }
}

/* ══ driver-ux (owned by the driver pass; add driver CSS below this line) ══ */

/* Board: a newly arrived job rises in, so it is noticed on a busy board. Only
   cards that were not on the previous paint get .is-new. */
@keyframes ck-dispatch-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ck-dispatch-card.is-new {
  animation: ck-dispatch-rise 200ms ease-out both;
}

/* Active job: the customer's own notes, under the address they belong to. */
.ck-driver-note {
  margin: 0.15rem 0 0.6rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--ck-accent);
  color: var(--ck-text);
  overflow-wrap: anywhere;
}
.ck-driver-note > span {
  display: block;
  color: var(--ck-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Location refused. Persistent until fixed, with its own retry. */
.ck-location-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ck-line);
  border-left: 4px solid var(--ck-danger);
  border-radius: 12px;
  background: var(--ck-danger-tint);
}
.ck-location-banner[hidden] {
  display: none;
}
.ck-location-banner > div {
  flex: 1 1 16rem;
  min-width: 0;
}
.ck-location-banner h2 {
  color: var(--ck-danger-ink);
}
.ck-location-banner p {
  margin-top: 0.25rem;
  color: var(--ck-text);
  line-height: 1.55;
}

/* Application progress, kept on screen after applying. */
.ck-onboard-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  border-bottom: 1px solid var(--ck-line);
  counter-reset: ck-step;
}
.ck-onboard-steps li {
  counter-increment: ck-step;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--ck-muted);
}
.ck-onboard-steps li::before {
  content: counter(ck-step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ck-line-strong);
  background: var(--ck-surface);
  font-weight: 700;
}
.ck-onboard-steps li:not(:first-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--ck-line);
}
.ck-onboard-steps li.is-done::after,
.ck-onboard-steps li.is-current::after {
  background: var(--ck-primary);
}
.ck-onboard-steps li.is-done::before {
  content: "\2713";
  border-color: var(--ck-primary);
  background: var(--ck-primary);
  color: var(--ck-surface);
}
.ck-onboard-steps li.is-current {
  color: var(--ck-text);
  font-weight: 700;
}
.ck-onboard-steps li.is-current::before {
  border-color: var(--ck-primary);
  color: var(--ck-primary);
  box-shadow: var(--ck-focus);
}

/* Application form: errors beside their field, and a confirmed EIN. */
.ck-field-error {
  margin-top: 0.4rem;
  color: var(--ck-danger-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.ck-input.ck-input[aria-invalid="true"] {
  border-color: var(--ck-danger);
}
.ck-field-check {
  position: relative;
}
.ck-field-check > .ck-input.ck-input {
  padding-right: 2.6rem;
}
.ck-field-ok {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--ck-success);
  pointer-events: none;
}
.ck-field-ok[hidden] {
  display: none;
}
.ck-field-ok::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--ck-surface);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Document expiry: what the date means, or what is wrong with it. */
.ck-expiry-msg {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ck-muted);
}
.ck-expiry-msg:empty {
  display: none;
}
.ck-expiry-msg.is-error {
  color: var(--ck-danger-ink);
  font-weight: 600;
}

.ck-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ck-dispatch-card,
  .ck-dispatch-card.is-new {
    animation: none;
    transition: none;
  }
  .ck-dispatch-card:hover,
  .ck-dispatch-card:focus-within {
    transform: none;
  }
}

/* The VIN is typed in capitals; its hint is not. */
#ap-vin::placeholder {
  text-transform: none;
}

/* ══ job messages ══ */
.ck-msg-entry {
  margin-top: 12px;
}
.ck-msg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.ck-msg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ck-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.ck-msg-badge[hidden] {
  display: none;
}
.ck-msg-support {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.ck-msg-dialog {
  width: min(34rem, calc(100vw - 32px));
  max-height: min(42rem, calc(100dvh - 32px));
  overflow: hidden;
}
.ck-msg-dialog[open] {
  display: flex;
  flex-direction: column;
}
.ck-msg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--ck-line);
}
.ck-msg-thread {
  flex: 1 1 auto;
  min-height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: var(--ck-bg);
}
.ck-msg-thread:focus-visible,
.ck-msg-dialog h2:focus-visible {
  outline: none;
  box-shadow: var(--ck-focus);
}
.ck-msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ck-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  min-width: 0;
}
.ck-msg-mine {
  align-self: flex-end;
  align-items: flex-end;
}
.ck-msg-theirs {
  align-self: flex-start;
  align-items: flex-start;
}
.ck-msg-body {
  margin: 0;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ck-msg-mine .ck-msg-body {
  background: var(--ck-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ck-msg-theirs .ck-msg-body {
  background: var(--ck-surface-2);
  color: var(--ck-text);
  border: 1px solid var(--ck-line);
  border-bottom-left-radius: 4px;
}
.ck-msg-meta {
  margin: 3px 4px 0;
  color: var(--ck-muted);
  font-size: 12px;
}
.ck-msg-empty {
  margin: 24px auto;
  max-width: 22rem;
  color: var(--ck-muted);
  font-size: 14px;
  text-align: center;
}
.ck-msg-alert {
  margin: 12px 16px 0;
  padding: 12px;
  font-size: 14px;
}
.ck-msg-alert button {
  margin-top: 8px;
  min-height: 44px;
}
.ck-msg-compose {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--ck-line);
  background: var(--ck-surface);
}
.ck-msg-compose[hidden],
.ck-msg-closed[hidden],
.ck-msg-alert[hidden] {
  display: none;
}
.ck-msg-input.ck-msg-input {
  width: 100%;
  min-height: 64px;
  max-height: 160px;
  resize: vertical;
  font-size: 16px;
}
.ck-msg-compose-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.ck-msg-compose-row .ck-btn {
  min-height: 44px;
  min-width: 96px;
}
.ck-msg-counter {
  color: var(--ck-muted);
  font-size: 13px;
}
.ck-msg-counter.is-low {
  color: var(--ck-danger-ink);
  font-weight: 600;
}
.ck-msg-closed {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--ck-line);
}
@media (max-width: 480px) {
  .ck-msg-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .ck-msg {
    max-width: 92%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ck-msg-dialog,
  .ck-msg-dialog::backdrop {
    animation: none;
    transition: none;
  }
}

.ck-current-location[aria-busy="true"] svg {
  animation: ck-locate 1s ease-in-out infinite;
}
@keyframes ck-locate {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ck-current-location[aria-busy="true"] svg {
    animation: none;
  }
}
