/* =========================================================================
   MONKEY'S ODYSSEY: STYLES
   Change the colours below to restyle the whole app.
   ========================================================================= */
:root {
  --sand: #f5efe4;
  --paper: #fbf8f2;
  --ink: #2a2925;
  --ink-soft: #6b665c;
  --sea: #1f4e5f;
  --sea-light: #d6e4e6;
  --terracotta: #c4623f;
  --emerald: #2e9e78;      /* light emerald: hope, progress, growth */
  --emerald-soft: #d4efe3;
  --emerald-ink: #1d7a5a;  /* emerald for text, darker for readability */
  --gold: #c9a24a;
  --line: #e3dacb;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--sea); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--sea); }
button { font: inherit; cursor: pointer; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
  background: rgba(245, 239, 228, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.1rem; color: var(--sea); text-decoration: none; font-weight: 600; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--terracotta); box-shadow: inset -6px -4px 0 rgba(0,0,0,.12); }
.topnav { display: flex; gap: 16px; margin-left: auto; }
.topnav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.topnav a:hover, .topnav a.active { color: var(--sea); }
.progress-pill { font-size: .8rem; background: var(--sea); color: white; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

main { max-width: 920px; margin: 0 auto; padding: 32px 16px 48px; }

/* ---------- footer shortcuts ---------- */
.sitefoot { border-top: 1px solid var(--line); padding: 24px 16px 40px; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.footnav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; }
.footnav a { color: var(--sea); text-decoration: none; font-weight: 500; }
.footnav a:hover, .footnav a.active { text-decoration: underline; text-underline-offset: 4px; }
.sitefoot p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 99px;
  padding: 12px 22px;
  background: var(--sea); color: white;
  font-weight: 500; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #173d4b; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn.ghost:hover { background: var(--sea-light); }
.btn.warm { background: var(--terracotta); }
.btn.warm:hover { background: #a9512f; }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.danger { background: transparent; color: #a33; border: 1.5px solid #d9a8a8; }

/* ---------- welcome ---------- */
.welcome { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; }
.welcome-inner { max-width: 620px; animation: rise .8s ease both; }
.welcome .monkey { width: 150px; margin: 0 auto 24px; display: block; }
.welcome p { font-size: 1.1rem; color: var(--ink-soft); }
.letter {
  text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--emerald);
  padding: 28px 32px; margin: 24px auto 8px; box-shadow: 0 10px 30px -18px rgba(42, 41, 37, .35);
}
.welcome .letter p { color: var(--ink); font-size: 1.05rem; }
.letter p:first-child { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--sea); }
.welcome .letter .signoff { font-family: var(--serif); font-style: italic; text-align: right; margin: 18px 0 0; color: var(--terracotta); font-size: 1.15rem; line-height: 1.5; }
.welcome { padding: 24px 0; }
.welcome .btn { margin-top: 16px; font-size: 1.05rem; padding: 14px 28px; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bob { animation: bob 4s ease-in-out infinite; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-1.5deg); } }

/* ---------- onboarding steps (after welcome) ---------- */
.intro-steps { max-width: 640px; margin: 0 auto; }
.intro-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.intro-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.intro-dots span.on { background: var(--terracotta); width: 24px; border-radius: 4px; }
.intro-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; animation: rise .5s ease both; }
.intro-actions { display: flex; justify-content: space-between; margin-top: 24px; }
.objective-list { list-style: none; padding: 0; margin: 0; }
.objective-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.objective-list li:last-child { border: 0; }
.objective-list .tick { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--emerald); display: grid; place-items: center; color: white; font-size: 13px; transition: background .2s; }
.objective-list li.on .tick { background: var(--emerald); }

/* ---------- journey map ---------- */
.map-head { text-align: center; margin-bottom: 8px; }
.map-head p { color: var(--ink-soft); }
.map-wrap { background: var(--sea-light); border-radius: 20px; overflow: hidden; position: relative; }
.map-svg { display: block; width: 100%; height: auto; }
.island { cursor: pointer; }
.island:hover .island-body, .island:focus .island-body { filter: brightness(1.06); }
.island:focus { outline: none; }
.island:focus-visible .island-body { stroke: var(--terracotta); stroke-width: 3; }
.island-label { font-family: var(--serif); font-size: 15px; fill: var(--sea); font-weight: 600; pointer-events: none; }
.island-sub { font-size: 11px; fill: var(--ink-soft); pointer-events: none; }
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 24px; }
.chapter-tile {
  display: flex; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--ink);
  transition: transform .15s, border-color .15s;
}
.chapter-tile:hover { transform: translateY(-2px); border-color: var(--sea); }
.numeral { font-family: var(--serif); font-size: 1.2rem; color: var(--terracotta); width: 34px; flex: 0 0 34px; text-align: center; }
.chapter-tile .t { font-weight: 500; line-height: 1.3; }
.chapter-tile .s { font-size: .82rem; color: var(--ink-soft); }
.ring { margin-left: auto; flex: 0 0 34px; }
.map-footer { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- chapter ---------- */
.chapter-head { margin-bottom: 32px; }
.chapter-head .tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.chapter-progress { height: 4px; background: var(--line); border-radius: 2px; margin-top: 20px; overflow: hidden; }
.chapter-progress div { height: 100%; background: var(--emerald); transition: width .4s; }
.section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.section > .intro { color: var(--ink-soft); }
.q { margin-bottom: 22px; }
.q:last-child { margin-bottom: 0; }
.q label { display: block; font-weight: 500; margin-bottom: 8px; }
textarea, input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: white; padding: 12px 14px; font: inherit; color: var(--ink);
  resize: vertical; transition: border-color .15s, box-shadow .15s;
}
textarea:focus, input[type=text]:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-light); }
.saved { font-size: .78rem; color: var(--emerald-ink); opacity: 0; transition: opacity .3s; margin-left: 8px; font-weight: 400; }
.saved.show { opacity: 1; }
.note { font-family: var(--serif); font-style: italic; color: var(--ink-soft); padding: 4px 8px 4px 18px; border-left: 3px solid var(--gold); margin: 0 0 20px; }
.ext-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-weight: 500; }
.chapter-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.farewell { text-align: center; font-family: var(--serif); font-size: 2rem; color: var(--terracotta); padding: 24px 0 8px; }

/* ---------- question hints (e.g. the Gallup link) ---------- */
.hint { display: flex; flex-direction: column; gap: 10px; background: var(--emerald-soft); border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: .9rem; color: var(--ink); }
.hint-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- in-chapter jump links ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; font-size: .82rem; color: var(--ink-soft); }
.jump button { border: 1px solid var(--line); background: var(--paper); color: var(--sea); border-radius: 99px; padding: 5px 12px; font-size: .82rem; }
.jump button:hover { border-color: var(--sea); }

/* ---------- numbered steps (strengths) ---------- */
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border: 0; padding-bottom: 0; }
.step-n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { margin-top: 5px; }
.upload { display: flex; gap: 14px; align-items: center; border: 1.5px dashed var(--sea); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: white; }
.upload:hover { background: var(--sea-light); }
.upload-ico { font-size: 1.3rem; color: var(--sea); }
.upload small, .file-name small { display: block; color: var(--ink-soft); font-size: .8rem; }
.file-chip { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: white; }
.file-chip img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.file-ico { font-size: 1.6rem; }
.file-name { flex: 1; min-width: 140px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- checklist ---------- */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.check:last-child { border: 0; }
.check input { position: absolute; opacity: 0; }
.check .box { flex: 0 0 22px; height: 22px; border: 1.5px solid var(--sea); border-radius: 6px; display: grid; place-items: center; margin-top: 1px; transition: background .15s; }
.check input:checked + .box { background: var(--sea); }
.check input:checked + .box::after { content: "✓"; color: white; font-size: 13px; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px var(--sea-light); }
.check input:checked ~ .lbl { color: var(--ink-soft); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tool-grid .check { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: white; }
.tool-grid .lbl b { display: block; }
.tool-grid .lbl small { color: var(--ink-soft); display: block; line-height: 1.4; }
.tool-grid .lbl a { font-size: .82rem; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(260px, 1fr) 1.2fr; gap: 28px; align-items: start; }
.dash-legend { display: flex; gap: 16px; font-size: .85rem; color: var(--ink-soft); justify-content: center; margin-top: 8px; }
.dash-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dash-legend .now::before { background: var(--terracotta); }
.dash-legend .want::before { background: var(--emerald); opacity: .6; }
.area { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.area:last-child { border: 0; }
.area-name { font-weight: 500; margin-bottom: 6px; }
.slider-row { display: grid; grid-template-columns: 56px 1fr 26px; gap: 10px; align-items: center; font-size: .82rem; color: var(--ink-soft); }
.slider-row b { color: var(--ink); text-align: right; }
input[type=range] { width: 100%; accent-color: var(--terracotta); }
input[type=range].want { accent-color: var(--emerald-ink); }
.area input[type=text] { margin-top: 6px; padding: 8px 12px; font-size: .9rem; }
.snap { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }

.dash-legend .prev::before { background: none; border: 1.5px dashed var(--ink-soft); width: 10px; height: 10px; }

/* ---------- life dashboard: personal note, scores, check-ins, method ---------- */
.personal-note { background: var(--emerald-soft); border-left: 3px solid var(--emerald); border-radius: 10px; padding: 14px 18px; margin: 4px 0 20px; }
.personal-note p { font-family: var(--serif); font-style: italic; color: var(--ink); margin: 0 0 4px; font-size: 1.02rem; }
.personal-note span { display: block; text-align: right; font-family: var(--serif); font-style: italic; color: var(--terracotta); }
.dash-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.dash-score > div { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dash-score small { display: block; font-size: .78rem; color: var(--ink-soft); }
.dash-score b { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; color: var(--sea); }
.dash-score b.now { color: var(--terracotta); }
.dash-score b.want { color: var(--emerald-ink); }
.delta { display: inline-block; font-size: .78rem; font-weight: 600; margin-left: 8px; color: var(--ink-soft); white-space: nowrap; }
.delta.up { color: var(--emerald-ink); }
.delta.down { color: var(--terracotta); }
.checkins { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 20px; }
.snap-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.snap-form input[type=text] { flex: 1 1 220px; }
.snap-form input[type=date] { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; background: white; color: var(--ink); }
.next-check { font-size: .9rem; color: var(--ink-soft); margin: 6px 0 12px; }
.next-check.due { color: var(--terracotta); font-weight: 500; }
.trend { font-size: .95rem; }
.table-scroll { overflow-x: auto; }
.checkin-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88rem; }
.checkin-table th, .checkin-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.checkin-table th:first-child, .checkin-table td:first-child { text-align: left; }
.checkin-table td:first-child small { display: block; color: var(--ink-soft); font-size: .78rem; }
.checkin-table td.up { color: var(--emerald-ink); font-weight: 600; }
.checkin-table td.down { color: var(--terracotta); font-weight: 600; }
.overall-cell b { font-size: 1rem; }
.overall-cell .delta { display: block; margin: 2px 0 0; }
.del-snap { border: 0; background: none; color: var(--ink-soft); font-size: 1.1rem; padding: 0 4px; }
.del-snap:hover { color: var(--terracotta); }
.table-key { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
.table-key .up { color: var(--emerald-ink); font-weight: 600; }
.table-key .down { color: var(--terracotta); font-weight: 600; }
.method { margin-top: 20px; background: var(--sand); border-radius: 10px; padding: 12px 16px; }
.method summary { cursor: pointer; font-weight: 500; color: var(--sea); }
.method p { font-size: .92rem; margin: 10px 0 0; }
.reference { font-size: .82rem; color: var(--ink-soft); margin: 12px 0 0; }
@media (max-width: 720px) { .dash-score b { font-size: 1.35rem; } .dash-score > div { padding: 10px; } }

/* ---------- odysseys ---------- */
.ody-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ody-tab { border: 1.5px solid var(--line); background: white; border-radius: 99px; padding: 8px 16px; color: var(--ink-soft); }
.ody-tab.on { border-color: var(--sea); background: var(--sea); color: white; }
.ody-prompt { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 22px; }
.timeline .yr { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 4px; }
.timeline textarea { font-size: .88rem; min-height: 96px; padding: 10px; }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 8px; }
.gauge label { font-size: .85rem; font-weight: 500; display: flex; justify-content: space-between; }
.ody-compare { width: 100%; min-width: 420px; border-collapse: collapse; margin-top: 22px; font-size: .88rem; }
.ody-compare th, .ody-compare td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.ody-compare td.bar { width: 22%; }
.minibar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.minibar div { height: 100%; background: var(--emerald); }

/* ---------- rhythm ---------- */
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 12px; overflow: hidden; }
.rhythm div { padding: 18px 16px; color: white; }
.rhythm b { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.rhythm small { opacity: .92; line-height: 1.4; display: block; }

/* ---------- narratives ---------- */
.narr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.narr-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.narr-card h3 { margin-bottom: 2px; }
.narr-card small { color: var(--ink-soft); margin-bottom: 10px; }
.narr-card textarea { flex: 1; min-height: 140px; }
.stars { display: flex; gap: 4px; margin-top: 10px; align-items: center; font-size: .78rem; color: var(--ink-soft); }
.stars button { border: 0; background: none; font-size: 18px; color: var(--line); padding: 0 1px; }
.stars button.on { color: var(--gold); }

/* ---------- learning loop ---------- */
.loop { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.loop span { background: var(--sea-light); color: var(--sea); padding: 8px 14px; border-radius: 99px; font-size: .9rem; font-weight: 500; }
.loop i { color: var(--terracotta); font-style: normal; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { perspective: 1000px; cursor: pointer; }
.card-inner { display: grid; height: 100%; min-height: 280px; transition: transform .6s; transform-style: preserve-3d; }
.card.flipped .card-inner { transform: rotateY(180deg); }
.card-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.card-front { background: white; border: 1px solid var(--line); }
.card-back { background: var(--sea); color: white; transform: rotateY(180deg); }
.card-back label { font-size: .85rem; margin-bottom: 6px; display: block; }
.card-back textarea { flex: 1; font-size: .88rem; background: rgba(255,255,255,.95); }
.stamp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: white; font-size: 1.1rem; margin-bottom: 12px; }
.card-front .theme { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.card-front p { font-size: .9rem; color: var(--ink-soft); margin: 8px 0; }
.card-front .ask { font-size: .88rem; font-style: italic; color: var(--sea); margin-top: auto; }
.card-front .flip-hint { font-size: .75rem; color: var(--ink-soft); margin-top: 8px; }
.met { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--emerald-ink); font-weight: 600; }

/* ---------- diagrams ---------- */
.diagram { width: 100%; height: auto; display: block; margin: 12px 0; }
.diagram text { font-family: var(--sans); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.ind { background: white; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; transition: all .2s; text-align: left; }
.ind b { display: block; color: var(--sea); margin-bottom: 4px; }
.ind small { color: var(--ink-soft); line-height: 1.4; display: block; }
.ind.on { border-color: var(--terracotta); background: #fdf3ee; }
.funnel-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.funnel-steps span { padding: 7px 12px; border-radius: 8px; background: var(--sand); font-size: .85rem; }
.funnel-steps i { color: var(--terracotta); font-style: normal; }
.focus-label { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.focus-label b { color: var(--terracotta); }

/* ---------- summary / logbook ---------- */
.log-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 28px; }
.log-ch { margin-bottom: 28px; }
.log-ch h2 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.log-item { margin-bottom: 14px; }
.log-item .lq { font-size: .85rem; color: var(--ink-soft); }
.log-item .la { white-space: pre-wrap; }
.log-empty { color: var(--ink-soft); font-style: italic; font-size: .9rem; }
.privacy { background: var(--paper); border: 1px dashed var(--emerald); border-radius: var(--radius); padding: 20px; font-size: .92rem; }
.privacy h3 { color: var(--emerald-ink); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 10px 20px; border-radius: 99px; font-size: .9rem; animation: rise .3s; z-index: 50; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .topbar { padding: 10px 16px; gap: 12px; }
  .brand { font-size: 1rem; }
  .progress-pill { display: none; }
  .brand-text { display: none; }
  .topnav { gap: 14px; }
  .section { padding: 20px 16px; }
  .intro-card { padding: 22px 18px; }
  .dash, .narr { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .rhythm, .ind-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- print (Logbook → Save as PDF) ---------- */
@media print {
  body { background: white; }
  .topbar, .sitefoot, .log-actions, .privacy, .no-print { display: none !important; }
  main { padding: 0; max-width: none; }
}

/* ---------- feuille de route (roadmap) ---------- */
.tagline-lg { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 24px; }
.road-count { font-size: .88rem; color: var(--ink-soft); margin: 4px 0 12px; }
.road-count b { color: var(--emerald-ink); font-size: 1rem; }
.road-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.road-card { position: relative; text-align: left; background: white; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 44px 14px 14px; color: var(--ink); transition: border-color .15s, background .15s; }
.road-card:hover { border-color: var(--emerald); }
.road-card b { display: block; color: var(--sea); line-height: 1.3; margin: 4px 0 4px; }
.road-card small { display: block; color: var(--ink-soft); line-height: 1.45; font-size: .82rem; }
.road-card.on { border-color: var(--emerald); background: #f2faf6; }
.road-n { font-family: var(--serif); color: var(--terracotta); font-weight: 600; font-size: .9rem; }
.road-tick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--emerald); color: var(--emerald-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.road-card.on .road-tick { background: var(--emerald); color: white; }
.road-own { margin-top: 18px; }
.road-own label { display: block; margin-bottom: 8px; }
.road-add { display: flex; gap: 8px; }
.road-add input { flex: 1; }
.road-custom { list-style: none; padding: 0; margin: 10px 0 0; }
.road-custom li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.road-custom .road-tick { position: static; background: var(--emerald); color: white; flex: 0 0 22px; width: 22px; height: 22px; }
.road-custom .del-snap { margin-left: auto; }
.road-start { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .9rem; color: var(--ink-soft); }
.road-start input { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; background: white; color: var(--ink); }
.road-score { grid-template-columns: repeat(2, minmax(0, 220px)); }
.road-row { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.road-row:last-child { border: 0; }
.road-row-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.road-row-head b { color: var(--sea); }
.road-pct { margin-left: auto; font-family: var(--serif); font-weight: 600; color: var(--emerald-ink); }
.tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--sand); color: var(--terracotta); padding: 2px 8px; border-radius: 99px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px; }
.scale button { border: 1px solid var(--line); background: white; color: var(--ink-soft); border-radius: 8px; padding: 7px 4px; font-size: .78rem; line-height: 1.2; }
.scale button.fill { background: var(--emerald-soft); border-color: var(--emerald-soft); color: var(--emerald-ink); }
.scale button.on { background: var(--emerald); border-color: var(--emerald); color: white; font-weight: 600; }
.road-row input[type=text] { padding: 8px 12px; font-size: .9rem; }
.road-banner { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1.5px solid var(--emerald); border-radius: var(--radius); padding: 14px 18px; margin-top: 24px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.road-banner:hover { transform: translateY(-2px); }
.road-banner-ico { font-size: 1.5rem; }
.road-banner b { display: block; font-family: var(--serif); color: var(--sea); font-size: 1.1rem; }
.road-banner small { color: var(--ink-soft); }
.road-banner-go { margin-left: auto; color: var(--emerald-ink); font-size: 1.2rem; }
.intro-card .road-grid { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .topnav { gap: 10px; font-size: .85rem; }
  .scale { grid-template-columns: repeat(3, 1fr); }
  .road-score { grid-template-columns: 1fr 1fr; }
}
