/* europe-warm-up/shared/warm-up.css - extracted from index.html style block */
  html { scroll-padding-top: 6rem; }

  /* Hide content that JS will inject or reposition until bootstrap finishes,
     so the page does not visibly jump as dynamic cards render. The phase nav
     above the H1 is rendered statically, so the H1 stays put either way. */
  html.warmup-loading main.page > section,
  html.warmup-loading main.page > .utility-row,
  html.warmup-loading main.page > .cta-block,
  html.warmup-loading main.page > article.van-ready-report { visibility: hidden; }
  html.warmup-loading main.page { min-height: 70vh; }
  :root {
    --bg: #fdfcfb;
    --bg-card: #f5f0eb;
    --bg-card-hover: #ede8e3;
    --border: #e0d6cc;
    --text: #102c44;
    --text-muted: #5a4e46;
    --text-light: #8b7d74;
    --accent: #c4601d;
    --accent-hover: #d97a3a;
    --accent-text: #c4601d;
    --accent-glow: rgba(196, 96, 29, 0.15);
    --phase1-bg: #fdfcfb;
    --phase2-bg: #f9f3ec;
    --phase3-bg: #f5f0eb;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
  }

  /* ----- Site nav (copied from gear/index.html) ----- */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1160px; margin: 0 auto; padding: 1.25rem 2rem;
  }
  .nav-logo { display: flex; align-items: center; text-decoration: none; gap: 0.1rem; }
  .nav-logo svg { display: block; }
  .nav-links { display: flex; align-items: center; gap: 1.25rem; }
  .nav-links a {
    font-size: 0.95rem; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.15s; letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a[aria-current="page"] { color: var(--accent-text); }
  .mobile-menu-panel a[aria-current="page"] { color: var(--accent-text); }
  .nav-links .nav-cta {
    font-weight: 700; color: var(--accent-text);
    padding: 0.45rem 1.1rem;
    border: 1.5px solid var(--accent); border-radius: 6px;
    transition: background 0.15s, color 0.15s;
  }
  .nav-links .nav-cta:hover { background: var(--accent); color: #fff; }

  .nav-hamburger { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: 0.5rem; }
  .nav-hamburger svg { display: block; }
  .nav-cta-pinned { display: none; font-weight: 700; color: var(--accent-text); padding: 0.45rem 1.1rem; border: 1.5px solid var(--accent); border-radius: 6px; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.01em; transition: background 0.15s, color 0.15s; }
  .nav-cta-pinned:hover { background: var(--accent); color: #fff; }
  .mobile-menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; transition: opacity 0.2s ease; }
  .mobile-menu-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--bg); z-index: 999; transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; padding: 1.5rem 1.75rem; box-shadow: -8px 0 24px rgba(0,0,0,0.25); }
  .mobile-menu-panel .close-btn { align-self: flex-end; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.5rem; margin-bottom: 1rem; }
  .mobile-menu-panel a { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; color: var(--text); text-decoration: none; padding: 0.9rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mobile-menu-panel a:last-child { border-bottom: none; }
  body.mobile-menu-open { overflow: hidden; }
  body.mobile-menu-open .mobile-menu-backdrop { display: block; opacity: 1; }
  body.mobile-menu-open .mobile-menu-panel { transform: translateX(0); }
  body.mobile-menu-open .tg-asst-btn, body.mobile-menu-open .pwa-install-banner { display: none !important; }

  /* ----- Page layout + breadcrumb ----- */
  .page { max-width: 760px; margin: 0 auto; padding: 3rem 2rem; }
  .breadcrumb { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.25rem; letter-spacing: 0.02em; }
  .breadcrumb a { color: var(--text-muted); text-decoration: none; }
  .breadcrumb a:hover { color: var(--text); }
  .breadcrumb .sep { color: var(--text-light); margin: 0 0.4rem; }

  /* ----- Hero ----- */
  .warmup-hero { padding-top: 1rem; }
  .warmup-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
  }
  .warmup-hero h1 em {
    font-style: normal;
    color: var(--accent-text);
  }
  .warmup-hero .hero-sub {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
  }
  .warmup-hero .hero-body {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 620px;
  }

  /* ----- Section headings ----- */
  section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 400;
    margin: 2rem 0 0.5rem;
    letter-spacing: -0.005em;
  }
  section h2 em {
    font-style: normal;
    color: var(--accent-text);
  }
  section .intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    max-width: 600px;
  }

  /* ----- Cards ----- */
  .card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 0.75rem 0;
  }
  .card h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }
  .card p {
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  /* ----- Buttons ----- */
  button.primary {
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
  }
  button.primary:hover { background: var(--accent-hover); }
  button.secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
  }
  button.secondary:hover { background: var(--bg-card); }

  /* ----- Inputs ----- */
  input[type="text"], input[type="number"], input[type="date"], input[type="email"], select, textarea {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text);
    width: 100%;
  }
  input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
  }

  /* ----- Questionnaire ----- */
  .qfield { border: none; padding: 0; margin-bottom: 1.25rem; }
  .qfield legend { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; font-size: 0.95rem; }
  .qfield label { margin-right: 1.25rem; font-size: 0.95rem; cursor: pointer; }
  #systems-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  #systems-checkboxes label { display: flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; user-select: none; }
  #systems-checkboxes input[type="checkbox"] { accent-color: var(--accent); }

  /* ----- Phase chips ----- */
  #warmup-phases {
    position: sticky;
    top: 1rem;
    z-index: 50;
    background: #faf6f1;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    margin: 1.25rem 0;
  }
  #warmup-phases .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.4rem;
  }
  #warmup-phases .chips { display: flex; gap: 0.4rem; }
  #warmup-phases .chip {
    padding: 0.4rem 0.8rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    flex: 1;
    text-align: center;
    user-select: none;
  }
  #warmup-phases .chip.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
  }
  #warmup-phases .overrides { margin-top: 0.5rem; display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.78rem; }
  .link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0.2rem 0.4rem; }
  .link-btn:hover { text-decoration: underline; }

  /* ----- Phase warmth gradient ----- */
  section#warmup-phase-1 { background: var(--phase1-bg); padding: 1.25rem; border-radius: 12px; margin: 1.5rem 0; }
  section#warmup-phase-2 { background: var(--phase2-bg); padding: 1.25rem; border-radius: 12px; margin: 1.5rem 0; }
  section#warmup-phase-3 { background: var(--phase3-bg); padding: 1.25rem; border-radius: 12px; margin: 1.5rem 0; }

  /* ----- Phase 1 (basket) ----- */
  #warmup-basket .basket-add { display: flex; gap: 0.4rem; margin: 0.6rem 0; }
  #warmup-basket #basket-add-input { flex: 1; }
  #warmup-basket ul { list-style: none; margin: 0.5rem 0; padding: 0; }
  #warmup-basket li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
  #warmup-basket li:last-child { border-bottom: none; }
  #warmup-basket .item-state { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; cursor: pointer; user-select: none; }
  .state-need { background: #f5f0eb; color: var(--text-muted); }
  .state-got { background: #e0d6cc; color: var(--text); }
  .state-packed { background: var(--text); color: #fff; }
  #basket-forgotten { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
  .tooltip { font-size: 0.78rem; color: var(--text-light); margin-top: 0.15rem; }

  /* ----- Phase 2 (observation cards + night logs) ----- */
  #observation-cards .obs-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 0.75rem 0; }
  #observation-cards .obs-card h4 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.05rem; margin-bottom: 0.5rem; }
  #observation-cards .obs-prompt { margin: 0.4rem 0; }
  #observation-cards .obs-prompt label { font-weight: 500; font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 0.2rem; }
  #observation-cards .obs-options { display: flex; gap: 0.4rem; flex-wrap: wrap; }
  #observation-cards .obs-options label { padding: 0.3rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; user-select: none; font-size: 0.85rem; font-weight: 400; }
  #observation-cards .obs-options input { display: none; }
  #observation-cards .obs-options input:checked + span { background: var(--accent); color: #fff; padding: 0.3rem 0.6rem; border-radius: 6px; margin: -0.3rem -0.6rem; }
  #night-logs .night-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 0.5rem 0; }
  #night-logs .night-card .night-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.4rem; }
  #notepad { font-family: inherit; font-size: 0.95rem; min-height: 6rem; }

  /* ----- Phase 3 (Van Ready Report certificate framing) ----- */
  .van-ready-report {
    background: var(--bg-elevated);
    border: 1.5px solid #e0d6cc;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin: 1rem 0;
    box-shadow: 0 1px 0 rgba(16,44,68,0.04);
  }
  .van-ready-report header { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid #e0d6cc; margin-bottom: 1rem; }
  .van-ready-report .vrr-mark { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
  .van-ready-report .vrr-title { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.8rem; color: var(--text); margin-top: 0.4rem; }
  .van-ready-report .vrr-summary { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin: 1rem 0; }
  .van-ready-report .vrr-issues { margin-top: 1.25rem; }
  .van-ready-report .vrr-issues h4 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.05rem; margin-bottom: 0.4rem; }
  .van-ready-report ul { list-style: none; padding: 0; margin: 0.4rem 0; }
  .van-ready-report ul li { padding-left: 1.2rem; position: relative; margin-bottom: 0.3rem; color: var(--text-muted); font-size: 0.95rem; }
  .van-ready-report ul li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .van-ready-report .vrr-foot { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid #e0d6cc; font-size: 0.8rem; color: var(--text-light); text-align: center; }

  /* Phase 3 CTA - the only orange treatment on the page */
  .cta-block {
    background: var(--text);
    color: #fff;
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
  }
  .cta-block h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
  }
  .cta-block p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 1rem; }
  .cta-block button.primary { background: var(--accent); }

  /* ----- Floating controls ----- */
  #warmup-floating-controls {
    position: fixed; bottom: 1rem; right: 1rem; z-index: 60;
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    box-shadow: 0 2px 12px rgba(16,44,68,0.08);
    max-width: calc(100vw - 2rem);
  }

  /* ----- Chat widget ----- */
  #warmup-chat { position: fixed; bottom: 5rem; right: 1rem; z-index: 70; }
  #chat-toggle { width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: #fff; border: none; cursor: pointer; font-family: 'DM Serif Display', serif; font-size: 1.5rem; box-shadow: 0 2px 8px rgba(16,44,68,0.2); }
  #chat-panel { display: none; position: absolute; bottom: 4rem; right: 0; width: min(360px, 90vw); height: 480px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 20px rgba(16,44,68,0.15); flex-direction: column; }
  #chat-panel.open { display: flex; }
  #chat-panel header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
  #chat-panel .chat-title { font-weight: 600; font-size: 0.95rem; }
  #chat-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-muted); }
  #chat-messages { flex: 1; overflow-y: auto; padding: 0.75rem 1rem; font-size: 0.9rem; }
  #chat-messages .msg { margin: 0.4rem 0; padding: 0.5rem 0.75rem; border-radius: 8px; }
  #chat-messages .msg.user { background: #f5f0eb; margin-left: 2rem; }
  #chat-messages .msg.assistant { background: #fff; border: 1px solid var(--border); margin-right: 2rem; }
  #chat-messages .msg.system { color: var(--text-light); font-style: italic; font-size: 0.82rem; }
  #chat-form { padding: 0.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.4rem; }
  #chat-form input { flex: 1; }
  #chat-form button { padding: 0.55rem 1rem; }

  /* ----- Footer ----- */
  .footer {
    max-width: 960px; margin: 0 auto; padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
    font-size: 0.9rem; color: var(--text-light);
  }
  .footer a { color: var(--text-muted); text-decoration: none; }
  .footer a:hover { color: var(--text); }
  .footer-col h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; }
  .footer-col p { line-height: 1.6; margin-bottom: 0.4rem; }
  .footer-col .footer-links { list-style: none; }
  .footer-col .footer-links li { margin-bottom: 0.4rem; }
  .footer-tagline { font-size: 0.8rem; color: var(--text-light); text-align: center; padding: 1rem 2rem; max-width: 960px; margin: 0 auto; }

  /* ----- Mobile ----- */
  @media (max-width: 768px) {
    .footer { grid-template-columns: 1fr; gap: 1.5rem; }
    .nav-hamburger { display: inline-flex; }
    .nav-links { display: none; }
    .nav-cta-pinned { display: inline-flex; }
    .nav-logo svg { width: 220px; height: auto; }
  }
  @media (max-width: 600px) {
    #warmup-floating-controls { left: 1rem; right: 1rem; bottom: 0.5rem; }
    #warmup-floating-controls button { font-size: 0.8rem; padding: 0.4rem 0.7rem; flex: 1; }
  }
  @media (max-width: 520px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.9rem; }
    .nav-links .nav-cta { padding: 0.35rem 0.8rem; }
    .page { padding: 2rem 1.25rem; }
    #warmup-phases .chip { font-size: 0.75rem; padding: 0.35rem 0.5rem; }
    #night-logs .night-card .night-grid { grid-template-columns: 1fr; }
  }

  /* ----- Print ----- */
  @media print {
    nav, #warmup-floating-controls, #warmup-chat, button { display: none !important; }
    body { background: #fff; }
    section[hidden] { display: block !important; }
    section { page-break-inside: avoid; page-break-after: always; }
  }

  /* ----- Persistent three-chip phase nav (issue 57) ----- */
  .phase-nav {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
    flex-wrap: wrap;
  }
  .phase-chip {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }
  .phase-chip:hover { background: var(--bg-card-hover); }
  .phase-chip.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
  }
  .phase-chip.active:hover { background: var(--text); }
  .phase-chip.past {
    opacity: 0.55;
    background: var(--bg-card);
    color: var(--text-muted);
  }
  .phase-chip.past::before { content: "\2713 "; }
  .phase-chip.future {
    opacity: 0.5;
    background: transparent;
  }
  @media (max-width: 480px) {
    .phase-chip { font-size: 0.85rem; padding: 0.5rem 0.6rem; }
  }

/* ----- Three-pill direct-tap item state (issue 58 M7) ----- */
#warmup-basket li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  padding: 0.6rem 0;
}
.item-label { flex: 1 1 50%; min-width: 50%; font-weight: 500; }
.item-pills {
  display: flex;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.item-pill {
  min-width: 64px;
  min-height: 44px;
  padding: 0 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.item-pill:hover { background: var(--bg-card); }
.item-pill.active { color: var(--text); }
.item-pill.active.state-need_it { background: #d6cdc3; color: var(--text); border-color: #c8bdb1; }
.item-pill.active.state-got_it  { background: #f5b76a; color: #4a3110; border-color: #e7a04a; }
.item-pill.active.state-packed  { background: #6fae6c; color: #fff; border-color: #5a9558; }
@media (max-width: 480px) {
  .item-pill { min-width: 56px; font-size: 0.72rem; }
}

/* ----- Final Report action row (M9) ----- */
.action-row {
  margin: 2rem 0 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.92rem;
}
.action-row .link-btn { padding: 0.4rem 0.2rem; }
.action-row .sep { color: var(--text-light); user-select: none; }

/* ----- Print stylesheet for the Final Report page (M9) ----- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-nav, .mobile-menu-panel, .mobile-menu-backdrop,
  .phase-nav, .utility-row, .action-row, #warmup-chat,
  #warmup-floating-controls, .item-pills, .item-pill,
  .footer, .footer-tagline, .breadcrumb { display: none !important; }
  .card { break-inside: avoid; border: none; padding: 0.5rem 0; }
  h1, h2, h3, h4 { color: #000; }
  a { color: #000; text-decoration: none; }
}
