/*
  Wayfinder: the look of the three signed-in screens (Dashboard, Checklist, Address & utilities).
  Loaded after styles.css on those pages only. Everything is read from the tokens below, so dark mode is a variable swap.
  Rules for pieces that scripts render (checklist cards, the task dialog) are scoped with `body.wf` so they beat styles.css.
*/

/* ---------- Fonts: served from this site (assets/fonts), so no font provider sees a visit ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ground: #F2F0EB;
  --surface: #FFFFFF;
  --ink: #121316;
  --body2: #3A3D44;
  --muted: #5C5F66;
  --line: #DEDAD2;
  --accent: #2440F0;
  --accent-ink: #FFFFFF;
  --accent-deep: #1A2FB8;
  --tint: #E6E9FE;
  --hero-bg: #121316;
  --hero-text: #F2F0EB;
  --hero-muted: #A9ACB5;
  --hero-line: #30333B;
  --tile-bg: #1E2026;
  --hero-accent: #7C8CFF;
  --hero-link: #C9CEFF;
  --pill-bg: #E6E9FE;
  --pill-text: #1A2FB8;
  --nav-bg: #121316;
  --nav-text: #F2F0EB;
  --logo-dot: #7C8CFF;
  --ring: #8A8D94;
  --warn: #A33F00;
  --track: #E8E5DE;

  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Older rules in styles.css read these names; point them at the new tokens so nothing keeps the old green. */
  --bg: var(--ground);
  --text: var(--ink);
  --border: var(--line);
  --accent-deep: #1A2FB8;
  --color-primary: var(--accent);
  --color-primary-hover: var(--accent-deep);
  --color-primary-light: var(--accent);
  --color-bg-page: var(--ground);
  --color-bg-soft: var(--surface);
  --color-bg-card: var(--surface);
  --color-bg-tint: var(--tint);
  --color-bg-progress: var(--track);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--body2);
  --color-text-muted: var(--muted);
  --color-text-caption: var(--muted);
  --color-text-disabled: var(--muted);
  --color-border-default: var(--line);
  --color-border-strong: var(--line);
  --color-border-brand-light: var(--line);
  --color-border-brand: var(--accent);
  --color-warning-text: var(--warn);
  --color-warning-bg: var(--surface);
  --color-warning-border: var(--warn);
  --color-success-text: var(--accent-deep);
  --color-success-bg: var(--tint);
  --color-toggle-on: var(--accent);
  --color-checkbox-checked: var(--accent);
  --shadow: none;
  color-scheme: light;
  --edge: transparent;
  --tick-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] {
  --ground: #14151A;
  --surface: #1C1E24;
  --ink: #E2E0DB;
  --body2: #C9CBD1;
  --muted: #A3A6AE;
  --line: #353841;
  --accent: #7080F5;
  --accent-ink: #0E0F12;
  --accent-deep: #AEB8FF;
  --tint: #222850;
  --hero-bg: #292C36;
  --hero-line: #3E414C;
  --tick-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0F12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --edge: color-mix(in srgb, var(--ink) 9%, transparent);
  --tile-bg: #14151A;
  --pill-bg: #2A3270;
  --pill-text: #DCE1FF;
  --nav-bg: #E2E0DB;
  --nav-text: #0E0F12;
  --logo-dot: #2440F0;
  --ring: #7D808A;
  --warn: #FFA36B;
  --track: #343740;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #14151A;
    --surface: #1C1E24;
    --ink: #E2E0DB;
    --body2: #C9CBD1;
    --muted: #A3A6AE;
    --line: #353841;
    --accent: #7080F5;
    --accent-ink: #0E0F12;
    --accent-deep: #AEB8FF;
    --tint: #222850;
    --hero-bg: #292C36;
    --hero-line: #3E414C;
    --tick-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0F12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --edge: color-mix(in srgb, var(--ink) 9%, transparent);
    --tile-bg: #14151A;
    --pill-bg: #2A3270;
    --pill-text: #DCE1FF;
    --nav-bg: #E2E0DB;
    --nav-text: #0E0F12;
    --logo-dot: #2440F0;
    --ring: #7D808A;
    --warn: #FFA36B;
    --track: #343740;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
html body.wf {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  --wf-page-max: 1200px;
}

/* The app pages (dashboard, checklist, utilities, settings, move day) run a little wider than the marketing pages, so the
   checklist's phase column has room for its dates. On big screens the whole app scales up a step: its sizes are set in px,
   so zoom enlarges text and spacing together and keeps the proportions. */
html body.wf:not(.wf-landing):not(.wf-start) {
  --wf-page-max: 1280px;
}

@media (min-width: 1600px) {
  html body.wf:not(.wf-landing):not(.wf-start) .wf-shell {
    zoom: 1.1;
  }
}

body.wf::before {
  display: none;
}

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

body.app-loading .wf-shell {
  opacity: 0;
  visibility: hidden;
}

body.wf [hidden] {
  display: none !important;
}

body.wf h1,
body.wf h2,
body.wf h3 {
  max-width: none;
  font-family: var(--font-display);
}

body.wf button,
body.wf input,
body.wf select {
  font-family: inherit;
}

body.wf :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.wf-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.wf-header {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}

.wf-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: var(--wf-page-max);
  margin: 0 auto;
  padding: 12px 24px;
}

.wf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.wf-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--nav-bg);
  color: var(--nav-text);
}

.wf-logo-dot {
  fill: var(--logo-dot);
}

.wf-brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

body.wf .wf-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

body.wf .wf-nav-link:hover {
  background: var(--tint);
}

body.wf .wf-nav-link.is-active {
  background: var(--nav-bg);
  color: var(--nav-text);
}

.wf-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

body.wf .wf-signout {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--font-body);
  cursor: pointer;
}

body.wf .wf-signout:hover {
  color: var(--accent-deep);
}

body.wf .wf-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

body.wf .wf-icon-button:hover {
  border-color: var(--accent);
}

/* Preview tools (shown only when enabled) keep their own styling from styles.css. */
.wf-header .timeline-sim-panel {
  max-width: var(--wf-page-max);
}

/* ---------- Page ---------- */
.wf-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--wf-page-max);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

body.wf .wf-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.wf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.wf-main {
  flex: 999 1 560px;
  min-width: 0;
}

.wf-side {
  flex: 1 1 340px;
  min-width: 0;
}

.wf-card {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
}

.wf-card-outline {
  background: transparent;
}

.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ground);
  color: var(--body2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.wf-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.wf-check-chip svg {
  color: var(--accent);
}

/* Buttons. The legacy button classes are restyled too, because scripts render them. */
body.wf .primary-button,
body.wf .wf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
  font: 600 17px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transform: none;
}

body.wf .primary-button:hover,
body.wf .wf-btn-primary:hover {
  background: var(--accent-deep);
  color: var(--accent-ink);
  transform: none;
}

:root[data-theme="dark"] body.wf .primary-button:hover,
:root[data-theme="dark"] body.wf .wf-btn-primary:hover {
  background: var(--accent);
  filter: brightness(1.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.wf .primary-button:hover,
  :root:not([data-theme="light"]) body.wf .wf-btn-primary:hover {
    background: var(--accent);
    filter: brightness(1.08);
  }
}

body.wf .primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.wf .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font: 500 16px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

body.wf .secondary-button:hover {
  border-color: var(--accent);
  background: transparent;
}

body.wf .wf-btn-block {
  width: 100%;
}

body.wf .text-button {
  background: transparent;
  border: 0;
  color: var(--accent-deep);
  font: 500 15px/1.4 var(--font-body);
  cursor: pointer;
}

body.wf #checklist-edit-move-link,
body.wf #dashboard-edit-move-link,
body.wf .wf-link,
body.wf .wf-hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A button that looks like the hero's links (the dashboard's "Copy link"). */
body.wf button.wf-hero-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

body.wf .wf-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent-deep);
  font: 500 15px/1.4 var(--font-body);
  text-decoration: none;
}

body.wf .wf-link-arrow::after {
  content: "\2192";
}

.wf-lead {
  margin: 0;
  max-width: 34em;
  color: var(--body2);
  font-size: 17px;
}

.wf-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.wf-section-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- Dashboard hero ---------- */
.wf-hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--hero-bg);
  color: var(--hero-text);
}

:root[data-theme="dark"] .wf-hero {
  border-color: var(--hero-line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wf-hero {
    border-color: var(--hero-line);
  }
}

.wf-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.wf-hero-main {
  flex: 1 1 420px;
  min-width: 0;
}

.wf-hero .wf-label {
  color: var(--hero-muted);
}

.wf-route-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 14px;
}

.wf-route {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hero-text);
}

body.wf .wf-hero #dashboard-edit-move-link,
body.wf .wf-hero .wf-hero-link {
  color: var(--hero-link);
}

.wf-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-top: 28px;
}

.wf-digits {
  display: inline-flex;
  gap: 8px;
}

.wf-digit {
  display: grid;
  place-items: center;
  min-width: clamp(56px, 8vw, 92px);
  padding: 0 8px;
  border-radius: 16px;
  background: var(--tile-bg);
  color: var(--hero-text);
  font-family: var(--font-mono);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 500;
  line-height: 1.1;
}

.wf-countdown-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.wf-days-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--hero-text);
}

.wf-days-label-solo {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
}

.wf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 14px;
  font-weight: 500;
}

.wf-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.wf-hero-sub {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--hero-muted);
  font-size: 16px;
}

.wf-facts {
  flex: 0 1 320px;
  margin: 0;
}

.wf-fact {
  padding: 18px 0;
  border-top: 1px solid var(--hero-line);
}

.wf-fact:last-child {
  border-bottom: 1px solid var(--hero-line);
}

.wf-fact dt {
  margin: 0 0 6px;
}

.wf-fact dd {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hero-text);
}

.wf-progress-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--hero-line);
  overflow: hidden;
}

.wf-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--hero-accent);
}

/* Timeline: today on the left, move day on the right, one dot per phase that is still ahead. */
/* The wrapper reaches into the hero's padding so a label under the last phase is not clipped. */
.wf-timeline-scroll {
  --hero-pad: clamp(24px, 4vw, 44px);
  overflow-x: auto;
  margin: 0 calc(-1 * var(--hero-pad)) 0 -24px;
  padding: 4px var(--hero-pad) 8px 24px;
}

.wf-timeline {
  position: relative;
  min-width: 720px;
}

.wf-timeline-track {
  position: relative;
  height: 4px;
  margin: 0 12px;
  border-radius: 999px;
  background: var(--hero-line);
}

.wf-timeline-today-dot,
.wf-timeline-dot,
.wf-timeline-move-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wf-timeline-today-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 0 6px rgba(124, 140, 255, 0.25);
}

.wf-timeline-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--hero-muted);
  border-radius: 50%;
  background: var(--hero-bg);
}

.wf-timeline-move-dot {
  left: 100%;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--hero-text);
}

/* Labels sit right beside their marker, alternating above and below the line, so no connector lines are needed. */
.wf-timeline-stops {
  position: relative;
  margin: 0 12px;
}

.wf-timeline-stops-above {
  height: 40px;
  margin-bottom: 14px;
}

.wf-timeline-stops-below {
  height: 44px;
  margin-top: 14px;
}

.wf-timeline-stop {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 280px;
  white-space: nowrap;
}

/* A tiny tick joins each phase's label to its dot. Today and move day have large markers right beside their labels. */
.wf-timeline-stop::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 8px;
  background: var(--hero-muted);
  opacity: 0.7;
}

.wf-timeline-stop.is-start::before {
  left: 6px;
}

.wf-timeline-stop.is-today::before,
.wf-timeline-stop.is-move-day::before {
  display: none;
}

.wf-timeline-stops-above .wf-timeline-stop::before {
  bottom: -9px;
}

.wf-timeline-stops-below .wf-timeline-stop::before {
  top: -9px;
}

.wf-timeline-stops-above .wf-timeline-stop {
  bottom: 0;
}

.wf-timeline-stops-below .wf-timeline-stop {
  top: 0;
}

/* Labels are centred on their marker. A phase label crowded by the one before it starts at its dot instead. */
.wf-timeline-stop.is-start {
  align-items: flex-start;
  text-align: left;
  transform: translateX(-6px);
}

.wf-timeline-stop.is-today .wf-timeline-date {
  color: var(--hero-link);
}

.wf-timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.wf-timeline-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--hero-text);
}

/* ---------- Dashboard focus card and "coming up next" ---------- */
.wf-focus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 999 1 560px;
  min-width: 0;
  align-self: flex-start;
}

.wf-focus-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.wf-focus-kicker {
  color: var(--accent-deep);
}

.wf-focus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wf-focus-why {
  margin: 0;
  max-width: 32em;
  color: var(--body2);
  font-size: 18px;
}

.wf-protects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.wf-protects .wf-label {
  margin-right: 6px;
}

.wf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

body.wf .wf-actions .primary-task-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: 500 16px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

body.wf .wf-actions .primary-task-trigger:hover {
  border-color: var(--accent);
}

.wf-focus-proof {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.wf-focus-proof:empty {
  display: none;
}

.wf-upnext {
  flex: 1 1 340px;
  min-width: 0;
  align-self: stretch;
  padding: 28px;
}

.wf-upnext-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.wf-upnext-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.wf-upnext-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

body.wf .wf-upnext-button {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.wf .wf-upnext-button:hover {
  border-color: var(--accent);
}

.wf-upnext-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.wf-upnext-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wf-upnext-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.wf-upnext-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.wf-upnext-meta.is-overdue,
.wf-upnext-meta.is-attention,
.wf-upnext-meta.is-behind {
  color: var(--warn);
}

.wf-upnext-context {
  color: var(--body2);
  font-size: 15px;
}

body.wf .wf-upnext-button .task-detail-affordance {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 4px;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.wf-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--wf-page-max);
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Under the page content the footer matches the content width, so its rule doesn't run past the cards. */
.wf-page ~ .wf-footer {
  width: min(1152px, calc(100% - 48px));
  padding-right: 0;
  padding-left: 0;
}

.wf-footer p {
  margin: 0;
}

.wf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.wf-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Page heads (Checklist, Address & utilities) ---------- */
.wf-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

.wf-pagehead-main {
  flex: 1 1 420px;
  min-width: 0;
}

.wf-pagehead h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.wf-moveline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.wf-moveline-date {
  margin: 0;
  color: var(--body2);
  font-size: 17px;
}

/* The checklist's "+ Add task" button, under the move date. */
.wf-add-task {
  margin-top: 14px;
}

.wf-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 1 380px;
  padding: 24px 28px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--hero-bg);
  color: var(--hero-text);
}

:root[data-theme="dark"] .wf-stat {
  border-color: var(--hero-line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wf-stat {
    border-color: var(--hero-line);
  }
}

.wf-stat-number {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

.wf-stat-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wf-stat-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.wf-stat-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--hero-line);
  overflow: hidden;
}

.wf-stat-bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--hero-accent);
}

.wf-stat-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

/* ---------- Checklist: shared panels ---------- */
body.wf .checklist-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checklist-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.checklist-columns-main {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.checklist-columns-side {
  flex: 1 1 390px;
  min-width: 0;
}

body.wf .panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

body.wf .panel-header h2,
body.wf .collapsible-summary {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.wf .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

body.wf .summary-text {
  color: var(--body2);
}

/* "Do these first" */
body.wf .checklist-do-first-panel .panel-header {
  margin: 0 0 20px;
}

body.wf .checklist-do-first-panel .checklist-phase-header-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  width: 100%;
}

body.wf .checklist-do-first-panel .checklist-phase-header-copy .eyebrow {
  display: none;
}

body.wf .checklist-do-first-panel h2,
body.wf .checklist-current-phase-panel h2,
body.wf .checklist-later-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.wf .checklist-do-first-panel .summary-text,
body.wf .checklist-current-phase-panel .panel-header .summary-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

body.wf .checklist-current-phase-panel .panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

body.wf .checklist-phase-icon {
  display: none;
}

body.wf .checklist-phase-progress-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

body.wf .checklist-phase-progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

body.wf .checklist-current-phase-section,
body.wf .checklist-group-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

body.wf .checklist-current-phase-section + .checklist-current-phase-section {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

/* Task cards */
body.wf .checklist-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
}

body.wf .checklist-card:hover {
  border-color: var(--ring);
}

body.wf .checklist-card.checklist-card-primary {
  padding: 26px 28px;
  border: 2px solid var(--accent);
  background: var(--surface);
}

body.wf .checklist-card.checklist-card-anchored {
  border-color: var(--accent);
}

body.wf .checklist-card .checklist-input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Icons (Lucide, see src/checklist/task-icons.js) sit in a tinted tile: the task's category on a card, the phase in the list. */
body.wf .wf-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.wf .checklist-card-tile,
body.wf .checklist-phase-tile {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent-deep);
}

body.wf .checklist-card-tile {
  width: 44px;
  height: 44px;
}

body.wf .checklist-card-tile .wf-icon {
  width: 22px;
  height: 22px;
}

/* The current phase's first card is already tinted, so its tile takes the surface colour to stay visible. */
body.wf .checklist-current-phase-panel:not(.checklist-do-first-panel) .checklist-current-phase-primary .checklist-card-tile {
  background: var(--surface);
}

body.wf .checklist-phase-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

body.wf .checklist-phase-tile .wf-icon {
  width: 20px;
  height: 20px;
}

body.wf .checklist-card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: baseline;
  min-width: 0;
}

body.wf .checklist-card-copy > * {
  grid-column: 1 / -1;
  margin: 0;
}

body.wf .checklist-card-heading {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

body.wf .checklist-card .checklist-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

body.wf .checklist-card-primary .checklist-card-title,
body.wf .checklist-card.checklist-card-primary .checklist-card-title {
  font-size: 20px;
}

body.wf .checklist-card-copy > .checklist-meta-row {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

body.wf .checklist-meta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

body.wf .checklist-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

body.wf .checklist-meta-urgency {
  color: var(--warn);
}

body.wf .checklist-detail,
body.wf .checklist-detail-expanded-copy {
  margin: 0;
  color: var(--body2);
  font-size: 16px;
}

body.wf .checklist-delay-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warn);
  font-size: 15px;
  font-weight: 600;
}

body.wf .checklist-delay-warning::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.wf .checklist-now-chip,
body.wf .checklist-next-phase-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.wf .checklist-now-chip {
  background: var(--accent);
  color: var(--accent-ink);
}

body.wf .checklist-next-phase-label {
  background: var(--tint);
  color: var(--accent-deep);
}

body.wf .checklist-urgency-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warn);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.wf .checklist-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

body.wf .checklist-card-actions .secondary-button {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

body.wf .checklist-card-actions .checklist-detail-toggle {
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

body.wf .checklist-card-copy > .checklist-detail-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--accent-deep);
  font: 500 15px/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.wf .checklist-card-complete .checklist-card-title {
  color: var(--muted);
  text-decoration: line-through;
}

/* Expanded steps inside a card */
body.wf .checklist-inline-guide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  cursor: default;
}

body.wf .checklist-inline-section h4 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

body.wf .checklist-inline-list,
body.wf .checklist-inline-why,
body.wf .checklist-inline-summary {
  margin: 0;
  color: var(--body2);
}

body.wf .checklist-inline-list {
  padding-left: 22px;
}

body.wf .checklist-inline-actions {
  display: flex;
}

body.wf .checklist-inline-time-input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

body.wf .wf-link-card.helpful-tool-item {
  background: var(--surface);
}

body.wf .helpful-tool-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ground);
}

body.wf .helpful-tool-link {
  color: var(--accent-deep);
  font-weight: 600;
}

body.wf .helpful-tool-description {
  margin: 4px 0 0;
  color: var(--body2);
  font-size: 14px;
}

/* Later phases rail */
body.wf .checklist-later-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: transparent;
}

body.wf .checklist-later-panel .panel-header {
  margin-bottom: 18px;
}

body.wf .checklist-later-panel .summary-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

body.wf .checklist-later-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.wf .checklist-later-group {
  position: relative;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
}

body.wf .checklist-later-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  list-style: none;
  cursor: pointer;
}

body.wf .checklist-later-summary-item::before {
  display: none;
}

body.wf .checklist-later-summary-item::-webkit-details-marker {
  display: none;
}

body.wf .checklist-later-summary-item::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

body.wf .checklist-later-group[open] > .checklist-later-summary-item::after {
  transform: rotate(135deg);
}

body.wf .checklist-later-summary-item:hover {
  background: var(--surface);
}

body.wf .checklist-later-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.wf .checklist-later-summary-copy strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

body.wf .checklist-later-summary-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The checklist timeline: phases in the order they open down one line, each task one row. */
body.wf .checklist-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The line the phase markers sit on. */
body.wf .checklist-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 7px;
  width: 2px;
  background: var(--line);
}

body.wf .checklist-timeline-phase {
  position: relative;
}

body.wf .checklist-timeline-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 0;
  border-radius: 14px;
  list-style: none;
  cursor: pointer;
}

body.wf .checklist-timeline-summary::-webkit-details-marker {
  display: none;
}

body.wf .checklist-timeline-summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

body.wf .checklist-timeline-phase details[open] > .checklist-timeline-summary::after {
  transform: rotate(135deg);
}

body.wf .checklist-timeline-marker {
  position: relative;
  z-index: 1;
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  background: var(--ground);
}

body.wf .checklist-timeline-phase.is-open .checklist-timeline-marker {
  border-color: var(--accent);
  background: var(--accent);
}

body.wf .checklist-timeline-phase.is-done .checklist-timeline-marker {
  border-color: var(--accent);
  background: var(--accent) center / 10px no-repeat var(--tick-image);
}

body.wf .checklist-timeline-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.wf .checklist-timeline-summary-copy strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

body.wf .checklist-timeline-summary-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.wf .checklist-timeline-phase.is-upcoming .checklist-timeline-summary-copy strong,
body.wf .checklist-timeline-phase.is-done .checklist-timeline-summary-copy strong {
  color: var(--body2);
}

body.wf .checklist-timeline-tasks {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

body.wf .checklist-timeline-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
}

body.wf .checklist-timeline-task + .checklist-timeline-task {
  border-top: 1px solid var(--line);
}

body.wf .checklist-timeline-open {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.wf .checklist-timeline-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

body.wf .checklist-timeline-open:hover .checklist-timeline-title,
body.wf .checklist-timeline-open:focus-visible .checklist-timeline-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.wf .checklist-timeline-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.wf .checklist-timeline-task.is-done .checklist-timeline-title {
  color: var(--muted);
  text-decoration: line-through;
}

body.wf .checklist-timeline-task.is-optional:not(.is-done) .checklist-timeline-title {
  color: var(--body2);
}

body.wf .checklist-timeline-tags {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

body.wf .checklist-timeline-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--track);
  color: var(--body2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.wf .checklist-timeline-tag.is-top {
  background: var(--tint);
  color: var(--accent-deep);
}

body.wf .checklist-timeline-tag.is-overdue {
  background: var(--warn);
  color: var(--accent-ink);
}

/* Today sits on the line between the phases already open and the ones still ahead. */
body.wf .checklist-timeline-today {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.wf .checklist-timeline-today::before {
  content: "";
  position: relative;
  z-index: 1;
  flex: none;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

body.wf .checklist-timeline-today::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

@media (max-width: 600px) {
  body.wf .checklist-timeline-tasks {
    margin-left: 0;
  }

  body.wf .checklist-timeline-task {
    flex-wrap: wrap;
    padding: 12px;
  }

  body.wf .checklist-timeline-tags {
    flex-basis: 100%;
    margin-left: 34px;
  }
}

/* The pop-up holds the same card the old left column expanded; the card's own frame is dropped so it is not a box in a box. */
body.wf .checklist-task-popup-card .checklist-card-popup {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

/* Notes grow taller, never wider than their column. */
body.wf textarea.checklist-task-note {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  resize: vertical;
}

/* The calendar app buttons (src/calendar-links.js), with room under the line that introduces them. */
body.wf .calendar-choices {
  margin-top: 12px;
}

body.wf .calendar-next-step {
  margin-top: 10px;
}

/* On a phone the pop-up's steps and notes use the full width instead of lining up under the title. */
@media (max-width: 600px) {
  body.wf .checklist-card-popup .checklist-inline-guide {
    padding-left: 0;
  }
}

body.wf .checklist-inline-section h4 > label {
  display: inline;
}

/* Matches Settings' "Saved" (.settings-inline-saved), on the heading's line rather than in its small caps. */
body.wf .checklist-note-status {
  display: inline;
  margin-left: 8px;
  color: var(--success);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.wf .checklist-later-task-grid,
body.wf .checklist-presentation-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 12px;
}

body.wf .checklist-task-separator {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

body.wf .checklist-later-task-grid .checklist-card {
  padding: 16px 18px;
  border-radius: 18px;
}

/* Completed / earlier steps / empty states */
body.wf .collapsible-panel {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

body.wf .collapsible-summary {
  cursor: pointer;
  font-size: 18px;
}

body.wf .checklist-focus-empty,
body.wf .plan-load-fallback,
body.wf .primary-empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
}

body.wf .primary-empty-state {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.wf .checklist-toast {
  border-radius: 14px;
  font-family: var(--font-body);
}

body.wf .status-message {
  color: var(--hero-muted);
  font-size: 14px;
}

/* ---------- Address & utilities ---------- */
.wf-progress-card {
  flex: 0 1 330px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.wf-progress-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 16px;
  align-items: center;
}

.wf-progress-count {
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

.wf-segments {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
}

.wf-segment {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
}

.wf-segment.is-done {
  background: var(--accent);
}

.wf-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 22px;
  border-radius: 18px;
  background: var(--hero-bg);
  color: var(--hero-text);
}

:root[data-theme="dark"] .wf-banner {
  border: 1px solid var(--hero-line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wf-banner {
    border: 1px solid var(--hero-line);
  }
}

.wf-banner-icon {
  display: inline-flex;
  color: var(--hero-accent);
}

.wf-banner-text {
  flex: 1 1 320px;
  font-size: 16px;
}

.wf-banner-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-link);
}

.utility-hub-groups {
  display: flex;
  flex-direction: column;
}

.wf-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 28px 0 12px;
}

.utility-hub-groups > :first-child .wf-group-head:first-child,
.utility-hub-access-section > .wf-group-head:first-child {
  margin-top: 0;
}

body.wf .utility-hub-separator {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

body.wf .utility-hub-group-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.wf-group-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.wf .utility-hub-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.wf .utility-hub-item:hover {
  border-color: var(--ring);
}

body.wf .utility-hub-item.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--tint);
}

.wf-ring {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ring);
  border-radius: 50%;
  color: var(--accent-ink);
}

body.wf .utility-hub-item.is-selected .wf-ring {
  border-color: var(--accent);
}

body.wf .utility-hub-item.is-complete .wf-ring {
  border-color: var(--accent);
  background: var(--accent);
}

body.wf .utility-hub-item-copy {
  flex: 1;
  min-width: 0;
}

body.wf .utility-hub-item-copy strong {
  font-size: 16px;
  font-weight: 600;
}

body.wf .utility-hub-item-status {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.update-detail {
  flex-basis: 360px;
  padding: 28px;
  align-self: flex-start;
}

.wf-detail-kicker {
  color: var(--accent-deep);
}

.wf-detail-title {
  margin: 10px 0 20px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.wf-detail-note {
  margin: 0 0 16px;
  color: var(--body2);
}

.wf-window {
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ground);
}

.wf-window-range {
  margin: 8px 0 18px;
  font-size: 20px;
  font-weight: 600;
}

.wf-window-track {
  position: relative;
  height: 10px;
  margin: 0 8px;
  border-radius: 999px;
  background: var(--track);
}

.wf-window-band {
  position: absolute;
  top: 0;
  height: 100%;
  min-width: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.wf-window-today,
.wf-window-move {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
}

.wf-window-today {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.wf-window-move {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.wf-window-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.wf-detail-why {
  margin: 0 0 20px;
  color: var(--body2);
  font-size: 17px;
}

.wf-detail-why:empty {
  display: none;
}

.utility-hub-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.wf-link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

body.wf .wf-link-card:hover {
  border-color: var(--accent);
}

.wf-link-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent-deep);
}

.wf-link-card-copy {
  flex: 1;
  min-width: 0;
}

body.wf .wf-link-card .helpful-tool-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

body.wf .wf-link-card .helpful-tool-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

body.wf .wf-link-card .helpful-tool-description,
body.wf .wf-link-card .utility-hub-provider-name {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.wf-external {
  display: inline-flex;
  margin-top: 3px;
}

.utility-hub-detail-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-detail-caption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Task detail dialog (dashboard) ---------- */
body.wf .task-detail-backdrop {
  background: rgba(14, 15, 18, 0.6);
}

body.wf .task-detail-dialog {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
}

body.wf .task-detail-dialog h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.wf .task-detail-dialog h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

body.wf .task-detail-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

body.wf .task-detail-meta,
body.wf .task-detail-why-now,
body.wf .task-detail-impact {
  color: var(--body2);
}

body.wf .task-detail-impact {
  font-weight: 600;
  color: var(--accent-deep);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wf-header-inner {
    gap: 8px 12px;
    padding: 12px 16px 8px;
  }

  .wf-header-actions {
    order: 2;
    margin-left: auto;
  }

  .wf-brand {
    order: 1;
  }

  .wf-nav {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }

  .wf-nav-link {
    flex: none;
  }

  /* Tighter on phones so the four links fit a 390px screen instead of cutting the last one off mid-word. */
  body.wf .wf-nav-link {
    padding: 0 12px;
  }

  .wf-page {
    padding: 24px 16px 40px;
  }

  .wf-footer {
    padding: 24px 16px 40px;
  }

  .wf-page ~ .wf-footer {
    width: calc(100% - 32px);
    padding-right: 0;
    padding-left: 0;
  }

  .wf-digit {
    font-size: 72px;
    min-width: 56px;
  }

  .update-detail {
    order: -1;
    flex-basis: 100%;
  }

  .wf-stat {
    flex-basis: 100%;
  }

  body.wf .checklist-card {
    grid-template-columns: 24px 36px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  body.wf .checklist-card-tile {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  body.wf .checklist-card-tile .wf-icon {
    width: 18px;
    height: 18px;
  }

  body.wf .checklist-card-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  body.wf .checklist-card-copy > .checklist-meta-row {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wf * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Landing page ---------- */
.wf-now-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wfl-page {
  gap: 72px;
  padding-top: 40px;
}

body.wf .wfl-header-cta {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

body.wf .wfl-nav-continue {
  display: none;
}

.wfl-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
}

.wfl-hero-copy {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* A returning visitor's own plan, above the hero (only on a device that remembers one). */
.wfl-continue-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.wfl-continue-plan[hidden] {
  display: none;
}

.wfl-eyebrow {
  color: var(--accent-deep);
}

.wfl-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.wfl-lead {
  margin: 0;
  max-width: 34em;
  color: var(--body2);
  font-size: 18px;
}

.wfl-start {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  max-width: 560px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.wfl-start-field {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  gap: 8px;
}

.wfl-start-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ground);
  color: var(--ink);
  font: 500 17px/1 var(--font-body);
}

.wfl-start .primary-button {
  flex: 0 0 auto;
}

/* "Moving from" and "Moving to" always sit side by side, so the form never splits them across rows. */
.wfl-start-pair {
  display: flex;
  flex: 2 1 400px;
  gap: 12px;
  min-width: 0;
}

.wfl-start-pair .wfl-start-field {
  flex: 1 1 0;
  min-width: 0;
}

.wfl-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--body2);
  font-size: 15px;
}

.wfl-checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wfl-checks svg {
  color: var(--accent);
}

.wfl-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.wfl-note a,
.wfl-section-lead a,
.wfl-card p a,
.wfl-about a,
.wfl-more a,
.wfl-byline a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wfl-sample {
  display: flex;
  flex: 0 1 460px;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--hero-bg);
  color: var(--hero-text);
}

:root[data-theme="dark"] .wfl-sample,
:root[data-theme="dark"] .wfl-timeline-card {
  border-color: var(--hero-line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wfl-sample,
  :root:not([data-theme="light"]) .wfl-timeline-card {
    border-color: var(--hero-line);
  }
}

.wfl-sample .wf-label {
  color: var(--hero-muted);
}

.wfl-sample-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}

.wfl-sample-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.wfl-sample .wf-digit {
  min-width: 64px;
  font-size: 88px;
}

.wfl-sample-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
}

.wfl-sample .wfl-sample-step .wf-label {
  color: var(--muted);
}

.wfl-sample .wfl-sample-step .wfl-accent-label {
  color: var(--accent-deep);
}

.wfl-sample-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.wfl-sample-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.wfl-sample-why {
  margin: 0;
  color: var(--body2);
  font-size: 16px;
}

.wfl-sample .wf-protects .wf-label {
  margin-right: 4px;
}

.wfl-sample-next {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfl-sample-next li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hero-line);
}

.wfl-sample-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hero-line);
  border-radius: 50%;
  color: var(--hero-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wfl-sample-next-title {
  font-weight: 500;
}

.wfl-sample-next-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

/* Sections */
.wfl-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 52em;
  margin-bottom: 32px;
}

.wfl-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.wfl-section-lead {
  margin: 0;
  color: var(--body2);
  font-size: 17px;
}

.wfl-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfl-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wfl-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.wfl-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wfl-grid-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.wfl-card {
  display: block;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
}

.wfl-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.wfl-card p {
  margin: 0;
  color: var(--body2);
  font-size: 15px;
}

.wfl-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent-deep);
}

.wfl-card-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.wfl-card-link:hover {
  border-color: var(--accent);
}

.wfl-card-link h3 {
  margin-bottom: 4px;
}

.wfl-card-compact {
  padding: 18px 20px;
}

.wfl-open {
  margin-top: 12px;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 500;
}

/* Privacy */
.wfl-privacy {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--tint);
}

.wfl-privacy .wfl-section-head {
  margin-bottom: 28px;
}

.wfl-privacy .wf-label {
  color: var(--accent-deep);
}

/* Steps */
.wfl-step-number {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
}

/* Feature rows with small product mock-ups */
.wfl-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 56px;
  margin-top: 48px;
}

.wfl-feature-copy {
  flex: 1 1 300px;
  min-width: 0;
}

.wfl-feature-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.wfl-feature-copy p {
  margin: 0;
  color: var(--body2);
  font-size: 17px;
}

.wfl-mock {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.wfl-feature + .wfl-grid {
  margin-top: 48px;
}

.wfl-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.wfl-mock-row.is-now {
  border: 2px solid var(--accent);
}

.wfl-mock-row.is-selected {
  border: 2px solid var(--accent);
  background: var(--tint);
}

.wfl-mock-box,
.wfl-mock-ring {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ring);
}

.wfl-mock-box {
  border-radius: 6px;
}

.wfl-mock-ring {
  border-radius: 50%;
}

.is-selected .wfl-mock-ring {
  border-color: var(--accent);
}

.wfl-mock-title {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
}

.wfl-mock-meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.wfl-rail li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 34px;
  border-radius: 14px;
}

.wfl-rail li.is-next {
  background: var(--ground);
}

.wfl-rail li::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -12px;
  left: 8px;
  width: 2px;
  background: var(--line);
}

.wfl-rail li.is-end::before {
  display: none;
}

.wfl-rail-dot {
  position: absolute;
  top: 16px;
  left: 1px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ring);
  border-radius: 50%;
  background: var(--surface);
}

.is-next .wfl-rail-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}

.is-end .wfl-rail-dot {
  top: 17px;
  left: 2px;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
}

.wfl-rail-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.wfl-window {
  margin-top: 6px;
  padding: 16px;
  border-radius: 16px;
  background: var(--ground);
}

.wfl-window-track {
  position: relative;
  height: 10px;
  margin: 16px 8px 12px;
  border-radius: 999px;
  background: var(--track);
}

.wfl-window-band {
  position: absolute;
  top: 0;
  left: 58%;
  width: 14%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.wfl-window-today,
.wfl-window-move {
  position: absolute;
  top: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.wfl-window-today {
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.wfl-window-move {
  left: 100%;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.wfl-window-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 900px) {
  .wfl-feature-reverse .wfl-mock {
    order: -1;
  }
}

/* Checklist browse */
.wfl-group-label {
  margin: 24px 0 12px;
}

.wfl-timeline-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-decoration: none;
}

.wfl-timeline-card:hover {
  border-color: var(--hero-accent);
}

.wfl-timeline-card strong {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wfl-timeline-card span {
  font-size: 15px;
  font-weight: 600;
}

.wfl-timeline-card em {
  color: var(--hero-muted);
  font-size: 14px;
  font-style: normal;
}

.wfl-more {
  margin: 24px 0 0;
  color: var(--body2);
}

/* About and FAQ */
.wfl-about {
  max-width: 52em;
  margin-bottom: 32px;
}

.wfl-about p {
  margin: 14px 0 0;
  color: var(--body2);
  font-size: 17px;
}

.wfl-about .wfl-byline {
  color: var(--muted);
  font-size: 14px;
}

.wfl-faq-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wfl-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.wfl-faq .seo-faq-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.wfl-faq .seo-faq-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.wfl-faq .seo-faq-item p {
  margin: 0;
  color: var(--body2);
  font-size: 15px;
}

/* Final call to action */
.wfl-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(32px, 6vw, 72px) 24px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
}

:root[data-theme="dark"] .wfl-final {
  border-color: var(--hero-line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wfl-final {
    border-color: var(--hero-line);
  }
}

.wfl-final .wf-label {
  color: var(--hero-muted);
}

.wfl-final-title {
  margin: 0;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.wfl-start-dark {
  width: 100%;
  border-color: var(--hero-line);
  background: var(--tile-bg);
  text-align: left;
}

.wfl-start-dark .wf-label {
  color: var(--hero-muted);
}

.wfl-start-dark input {
  border-color: var(--hero-line);
  background: var(--hero-bg);
  color: var(--hero-text);
  color-scheme: dark;
}

.wfl-final-note {
  margin: 0;
  color: var(--hero-muted);
  font-size: 14px;
}

/* Footer */
.wfl-footer {
  border-top: 1px solid var(--line);
}

.wfl-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.wfl-footer-brand p {
  margin: 14px 0 0;
  max-width: 24em;
  color: var(--muted);
  font-size: 14px;
}

.wfl-footer-col {
  display: flex;
  flex-direction: column;
}

.wfl-footer-col .wf-label {
  margin-bottom: 8px;
}

.wfl-footer-col a {
  padding: 10px 0;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.wfl-footer-col a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.wfl-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 40px;
}

.wfl-footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .wfl-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wfl-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wfl-page {
    gap: 56px;
    padding-top: 24px;
  }

  body.wf .wfl-header-cta {
    display: none;
  }

  body.wf .wfl-continue {
    display: none;
  }

  body.wf .wfl-nav-continue {
    display: inline-flex;
  }

  .wf-header-actions {
    gap: 4px;
  }

  .wfl-start {
    padding: 12px;
  }

  .wfl-start .primary-button {
    width: 100%;
  }

  .wfl-sample {
    padding: 22px;
  }

  .wfl-footer-inner {
    padding: 40px 16px 16px;
  }

  .wfl-footer-legal {
    padding: 8px 16px 32px;
  }
}

@media (max-width: 640px) {
  .wfl-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wfl-grid-5 .wfl-timeline-card:last-child {
    grid-column: 1 / -1;
  }

  .wfl-timeline-card {
    padding: 18px;
  }

  .wfl-timeline-card em {
    display: none;
  }
}

/* Shorter on phones: compact cards, and the extras that repeat other sections are hidden. */
.wfl-card-wide {
  display: block;
}

@media (max-width: 640px) {
  .wfl-mock-desktop,
  .wfl-hide-phone {
    display: none;
  }

  /* Privacy and steps: icon or number beside the text instead of above it. */
  .wfl-privacy .wfl-card,
  .wfl-steps .wfl-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 14px;
    padding: 16px;
  }

  .wfl-privacy .wfl-card-icon,
  .wfl-steps .wfl-step-number {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .wfl-steps .wfl-step-number {
    align-self: start;
    font-size: 22px;
  }

  .wfl-privacy .wfl-card h3,
  .wfl-steps .wfl-card h3 {
    margin-bottom: 4px;
  }

  .wfl-privacy .wfl-card p,
  .wfl-steps .wfl-card p {
    grid-column: 2;
  }

  .wfl-feature {
    margin-top: 32px;
  }

  /* With the 6-week card hidden, four cards sit two by two. */
  .wfl-grid-5 .wfl-timeline-card:last-child {
    grid-column: auto;
  }

  /* Situations read as a plain list. */
  .wfl-situations {
    gap: 8px;
  }

  .wfl-situations .wfl-card-compact {
    padding: 14px 16px;
  }

  .wfl-situations .wfl-card-compact p {
    display: none;
  }

  .wfl-situations .wfl-card-compact h3 {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .wfl-grid-3 .wfl-card-link {
    padding: 18px;
  }

  .wfl-grid-3 .wfl-open {
    display: none;
  }
}

/* Preview tools (shown only with ?debugPreview=1 on a local or preview build) follow the theme. */
body.wf .timeline-sim-panel {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

body.wf .timeline-sim-label,
body.wf .timeline-sim-status {
  color: var(--muted);
}

/* The older hover nudge (translateY) would make the row the positioning parent of the rail dot and push the dot into the text. */
body.wf .checklist-later-summary-item,
body.wf .checklist-later-summary-item:hover,
body.wf .checklist-later-summary-item:focus-visible {
  transform: none;
  box-shadow: none;
}

/* Checkboxes are drawn here so an empty box stays an outline in both themes (the browser's dark default looks filled). */
body.wf-start .toggle input[type="checkbox"],
body.wf-settings .toggle-grid .toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 2px solid var(--ring);
  border-radius: 6px;
  background: transparent center / 14px no-repeat;
  cursor: pointer;
}

body.wf-start .toggle input[type="checkbox"]:checked,
body.wf-settings .toggle-grid .toggle input[type="checkbox"]:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: var(--tick-image);
}

/* A checklist box looks 24px but answers a tap anywhere in a 44px square, so completing a task never needs the card opened. */
body.wf .checklist-card .checklist-input,
body.wf .checklist-timeline-task .checklist-input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 0;
  margin: -8px -10px -10px -10px;
  padding: 0;
  border: 10px solid transparent;
  border-radius: 16px;
  background: transparent center / 14px no-repeat;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 2px var(--ring);
  cursor: pointer;
}

body.wf .checklist-card .checklist-input:checked,
body.wf .checklist-timeline-task .checklist-input:checked {
  background-color: var(--accent);
  background-image: var(--tick-image);
  box-shadow: inset 0 0 0 2px var(--accent);
}

body.wf .checklist-card .checklist-input:focus-visible,
body.wf .checklist-timeline-task .checklist-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Dark theme depth: a faint highlight along the top edge lifts the main surfaces off the page. It is transparent in light. */
body.wf .wf-hero,
body.wf .wf-stat,
body.wf .wf-card,
body.wf .checklist-card,
body.wf .wf-upnext-button,
body.wf .utility-hub-item,
body.wf .wfl-sample,
body.wf .wfl-card,
body.wf .wfl-mock,
body.wf .wfl-final,
body.wf .wfl-timeline-card,
body.wf .checklist-later-panel {
  box-shadow: inset 0 1px 0 var(--edge);
}

body.wf .timeline-sim-toggle {
  border: 1px solid var(--line);
  background: var(--ground);
  color: var(--ink);
}

/* Older green tints on the task dialog, expanded steps and focus states now use the accent tokens. */
body.wf .task-detail-impact,
body.wf .checklist-inline-impact {
  border: 0;
  background: var(--tint);
  color: var(--accent-deep);
}

body.wf .checklist-card[data-task-detail]:focus-visible,
body.wf .task-detail-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

body.wf .checklist-card[data-task-detail]:focus-within {
  border-color: var(--accent);
}

/* The line under the checklist's move date sits on the page, not on the dark hero. */
.wf-pagehead .wf-hero-sub {
  color: var(--body2);
}
