/* Home dashboard */
.dash-layout { grid-template-columns: minmax(0, 1fr) !important; }
.dash-main { gap: 24px !important; }
.dhero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 44px; }
.dhero-top .hero-title { margin-top: 0; }
.hero-lead strong { color: #fff; }
.vprog-card .cd-n { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; }
.cd-empty { font-size: 14px; opacity: .9; margin-top: 6px; line-height: 1.45; }
.cd-btn { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #275b72; font: 600 13px var(--font-display); cursor: pointer; }
.cd-btn .i { font-size: 12px; }
.journey { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 36px; padding: 8px; border-radius: 24px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.jn { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-radius: 16px; color: rgba(255,255,255,.85); }
.jn-dot { width: 30px; height: 30px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); font-size: 12px; }
.jn-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.jn-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.jn-bar span { display: block; height: 100%; background: #fff; border-radius: 999px; }
.jn.past .jn-dot { background: #fff; color: var(--brand); }
.jn.now { background: #fff; color: #275b72; box-shadow: var(--shadow-pill); }
.jn.now .jn-dot { background: var(--brand); color: #fff; }
.jn.now .jn-bar { background: rgba(14,133,159,.16); }
.jn.now .jn-bar span { background: var(--brand); }

/* Setup */
.setup { background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 28px 32px; position: relative; z-index: 2; }
.setup.first { box-shadow: var(--shadow-raised); }
.su-head { display: flex; gap: 16px; align-items: flex-start; }
.su-ic { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 18px; }
.su-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--heading); }
.su-lead { font-size: 15px; color: var(--body); margin-top: 4px; line-height: 1.55; max-width: 760px; }
.su-form { display: grid; gap: 16px; margin-top: 24px; }
.su-q { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--page); }
.su-n { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand-deep); font: 600 13px var(--font-display); }
.su-qb { flex: 1; min-width: 0; display: grid; gap: 12px; }
.su-ql { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.su-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 560px; }
.su-dates .field input { background: var(--card); }
.su-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.su-city { max-width: 320px; }
.su-city select { background: var(--card); }
.su-opt { position: relative; cursor: pointer; }
.su-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.su-opt span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--border); font: 600 14px var(--font-display); color: var(--body-strong); transition: all .15s var(--ease); }
.su-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.su-opt input:focus-visible + span { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.su-note { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.su-note .i { color: var(--brand); margin-top: 4px; flex: none; }
.su-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.su-actions .btn.link { margin-left: auto; }
.setup.done { padding: 20px 24px; }
.su-sum { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.setup.done .su-ic { width: 40px; height: 40px; font-size: 15px; }
.su-b { flex: 1; min-width: 240px; display: grid; gap: 6px; }
.su-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.su-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.su-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.su-acts .btn.link { margin: 0; }
#setupSt { display: block; margin-top: 8px; color: var(--brand-deep); font-weight: 500; }

/* Grid of cards */
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.dcard { background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dcard.c7 { grid-column: span 7; } .dcard.c5 { grid-column: span 5; } .dcard.c12 { grid-column: span 12; } .dcard.c8 { grid-column: span 8; } .dcard.c4 { grid-column: span 4; }
.dcard.flat { background: transparent; box-shadow: none; padding: 0; }
.dc-head { display: flex; align-items: center; gap: 12px; }
.dc-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.dc-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-deep); text-decoration: none; white-space: nowrap; }
.dc-link .i { font-size: 12px; }

/* Next actions */
.actions { list-style: none; display: grid; gap: 12px; }
.ac { display: flex; align-items: center; gap: 16px; padding: 16px 16px; border-radius: 16px; background: var(--page); }
.ac.warn { background: var(--tint-orange); border: 1px solid var(--border-orange); }
.ac-n { width: 32px; height: 32px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 600 14px var(--font-display); }
.ac.warn .ac-n { background: var(--accent); font-size: 13px; }
.ac-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); line-height: 1.35; }
.ac-s { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ac-a { display: flex; align-items: center; gap: 6px; flex: none; }
.ac-a .btn .i { font-size: 12px; }
.ac-none { display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px; border-radius: 16px; background: var(--badge-green-bg); color: var(--badge-green-fg); font-weight: 500; font-size: 14px; line-height: 1.5; }
.ac-none.muted { background: var(--page); color: var(--muted); font-weight: 400; }
.ac-none .i { margin-top: 4px; flex: none; }

/* Coming up */
.dates2 { list-style: none; display: grid; gap: 8px; }
.dates2 li > a { display: flex; align-items: center; gap: 16px; padding: 12px 12px; border-radius: 12px; text-decoration: none; transition: background .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .dates2 li > a:hover { background: var(--page); } }
.dt-cal { width: 48px; flex: none; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--border-teal); background: var(--card); }
.dt-m { display: block; font-size: 11px; font-weight: 500; color: #fff; background: var(--brand); padding: 2px 0; }
.dt-d { display: block; font: 600 18px var(--font-display); color: var(--heading); padding: 4px 0 4px; }
.dt-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dt-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); line-height: 1.35; }
.dt-s { font-size: 13px; color: var(--muted); }
.dt-tag { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--chip); color: var(--chip-fg); white-space: nowrap; }

/* Progress cards */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pc { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: var(--page); text-decoration: none; border: 1px solid transparent; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .pc:hover { border-color: var(--brand); background: var(--card); box-shadow: var(--shadow-card); } }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); font-size: 12px; }
.pc-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.pc-arrow { margin-left: auto; font-size: 11px; color: var(--icon-muted); }
.pc-big { font: 600 32px var(--font-display); color: var(--heading); line-height: 1; margin-top: 6px; }
.pc-big small { font-size: 16px; color: var(--muted); }
.pc-bar { height: 6px; border-radius: 999px; background: rgba(14,133,159,.14); overflow: hidden; display: block; }
.pc-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s var(--ease); }
.pc-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Trackers */
.trackers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tr { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: var(--tint-teal); border: 1px solid var(--border-teal); text-decoration: none; }
.tr.over { background: var(--tint-orange); border-color: var(--border-orange); }
.tr-l { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-deep); }
.tr-l .i { font-size: 12px; }
.tr-n { font: 600 30px var(--font-display); color: var(--heading); line-height: 1.1; }
.tr-n small { font-size: 14px; font-weight: 500; color: var(--muted); }
.tr-s { font-size: 13px; color: var(--body); }
#trackersWrap[hidden] { display: none; }

/* Quick access */
.qlinks { display: grid; gap: 8px; }
.ql { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--page); text-decoration: none; font: 600 15px var(--font-display); color: var(--heading); }
@media (hover: hover) and (pointer: fine) { .ql:hover { background: var(--tint-teal); } }
.ql .i:first-child { width: 30px; height: 30px; padding: 8px; box-sizing: border-box; border-radius: 8px; background: var(--card); color: var(--brand); flex: none; }
.ql .ql-arrow { margin-left: auto; font-size: 11px; color: var(--icon-muted); }
.emerg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.em { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--border-subtle); }
.em strong { font: 600 20px var(--font-display); color: var(--brand-deep); }
.em span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guides .more-card { padding: 16px; box-shadow: none; background: var(--page); }
@media (hover: hover) and (pointer: fine) { .guides .more-card:hover { background: var(--tint-teal); box-shadow: none; } }

@media (max-width: 1100px) {
  .dcard.c7, .dcard.c5, .dcard.c8, .dcard.c4 { grid-column: span 12; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .journey::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) { .dhero-top { flex-direction: column; align-items: flex-start; gap: 20px; } .dhero-top .vprog-card { width: 100%; max-width: 360px; } .guides { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .setup { padding: 20px 20px; }
  .su-q { padding: 16px 12px; gap: 12px; }
  .su-actions .btn.link { margin-left: 0; }
  .dgrid { gap: 16px; }
  .dcard { padding: 20px; }
  .ac { flex-wrap: wrap; }
  .ac-b { flex: 1 1 calc(100% - 46px); }
  .ac-a { margin-left: 48px; }
  .pgrid { gap: 12px; }
  .pc { padding: 16px; }
  .pc-big { font-size: 26px; }
  .journey { grid-template-columns: repeat(5, 112px); margin-top: 28px; }
  .jn { padding: 12px; }
}
.su-form > *, .dgrid > * { min-width: 0; }
.su-dates { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.su-qb > *, .su-dates > * { min-width: 0; }
.su-dates input { min-width: 0; max-width: 100%; }
.su-qb { grid-template-columns: minmax(0, 1fr); }
.jn { padding: 0; }
.jn > a { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: 16px; color: inherit; text-decoration: none; height: 100%; }
@media (hover: hover) and (pointer: fine) { .jn:not(.now) > a:hover { background: rgba(255,255,255,.1); } }
.jn-sub { font-size: 12px; opacity: .85; margin-top: -4px; }
.jn.now .jn-sub { color: var(--muted); opacity: 1; }
.jn-left { font: 600 12px var(--font-display); }
.jn.past.open .jn-dot { background: var(--accent); color: #fff; }
.journey-why { margin-top: 12px; font-size: 13px; color: #fff; }
.cd-btn { text-decoration: none; }

/* Your 5 Essentials */
#essWrap.lead { order: -1; }
.dc-hb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-sub { font-size: 14px; color: var(--muted); }
.ess-count { margin-left: auto; font: 600 13px var(--font-display); color: var(--brand-deep); background: var(--badge-teal-bg); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.ess-count.all { background: var(--badge-green-bg); color: var(--badge-green-fg); }
.ess-count + .dc-link { margin-left: 12px; }
/* Don't miss */
.miss-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.miss { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--page); }
.miss-a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; flex: 1; }
@media (hover: hover) and (pointer: fine) { .miss-a:hover .miss-t { text-decoration: underline; } }
.miss-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); }
.miss-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.miss-t { font: 600 15px/1.35 var(--font-display); color: var(--heading); }
.miss-d { font-size: 13px; line-height: 1.45; color: var(--muted); }
.miss-x { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--body); font: 600 13px var(--font-display); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .miss-x:hover { border-color: var(--brand); color: var(--brand); } }
@media (max-width: 900px) { .miss-list { grid-template-columns: 1fr; } }
.dc-add { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .dc-add:hover { text-decoration: underline; } }
.ess-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ess { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--page); border: 1.5px solid transparent; transition: border-color .2s var(--ease), background .2s var(--ease); }
.ess.done { background: var(--badge-green-bg); }
.ess-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ess-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); font-size: 18px; }
/* 34px tap area, 22px drawn circle */
.ess-tick { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: transparent; color: transparent; cursor: pointer; display: grid; place-items: center; font-size: 12px; transition: color .15s var(--ease); }
.ess-tick::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid var(--icon-muted); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.ess-tick > * { position: relative; }
@media (hover: hover) and (pointer: fine) { .ess-tick:hover { color: var(--brand); } }
@media (hover: hover) and (pointer: fine) { .ess-tick:hover::before { border-color: var(--brand); } }
.ess-tick.on { color: #fff; }
.ess-tick.on::before { background: #2f9e6b; border-color: #2f9e6b; }
.ess-tick:focus-visible { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.ess-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); line-height: 1.3; }
.ess.done .ess-t { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.ess-s { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ess-g { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-deep); text-decoration: none; border-top: 1px solid var(--border-subtle); }
.ess-g .ess-n { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12px; }
.ess-g .i { font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .ess-g:hover span:first-child { text-decoration: underline; } }
@media (max-width: 1100px) { .ess-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #essWrap .dc-head { flex-wrap: wrap; }
  .ess-count { margin-left: 0; order: 3; }
  #essWrap .dc-link { order: 4; margin-left: auto; }
  .ess { padding: 16px; }
}
@media (max-width: 420px) { .ess-grid { grid-template-columns: 1fr 1fr; } .ess-ic { width: 38px; height: 38px; font-size: 15px; } .ess-t { font-size: 15px; } }
@media (max-width: 640px) {
  .ess-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .ess { display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; grid-template-areas: "ic t tick" "ic s tick" "g g g"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 16px; }
  .ess-top { display: contents; }
  .ess-ic { grid-area: ic; width: 40px; height: 40px; font-size: 15px; align-self: start; }
  .ess-tick { grid-area: tick; }
  .ess-t { grid-area: t; font-size: 15px; }
  .ess-s { grid-area: s; font-size: 13px; }
  .ess-g { grid-area: g; margin-top: 8px; padding-top: 8px; }
}
/* Guided first visit */
body.onboarding .dgrid { display: none; }
body.onboarding .journey { opacity: .55; }
.setup.wiz { padding: 32px 32px; }
.wz-dots { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.wz-dots li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--page); font: 600 13px var(--font-display); color: var(--muted); }
.wz-dots li.on { background: var(--badge-teal-bg); color: var(--brand-deep); }
.wz-dots li.done { color: var(--brand-deep); }
.wz-n { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--card); font-size: 12px; }
.wz-dots li.on .wz-n, .wz-dots li.done .wz-n { background: var(--brand); color: #fff; }
.wz-dots .i { font-size: 12px; }
.wz-q { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); margin: 0; }
.wz-stages { display: grid; gap: 12px; }
.wz-st { display: flex; gap: 16px; align-items: center; padding: 16px 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--card); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .wz-st:hover { border-color: var(--border-teal); } }
.wz-st input { position: absolute; opacity: 0; pointer-events: none; }
.wz-st:has(input:checked) { border-color: var(--brand); background: var(--tint-teal); }
.wz-st:has(input:focus-visible) { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.wz-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); font-size: 18px; }
.wz-st:has(input:checked) .wz-ic { background: var(--brand); color: #fff; }
.wz-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wz-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.wz-d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.wz-tick { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--heading); cursor: pointer; }
.wz-tick[hidden] { display: none; }
.wz-tick input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.wz-plan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.wz-col { background: var(--page); border-radius: 16px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.wz-h { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); margin: 0; }
.wz-h .i { color: var(--brand); font-size: 14px; }
.wz-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wz-tasks li { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); }
.wz-tn { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 600 13px var(--font-display); }
.wz-tb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wz-tt { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.wz-ts { font-size: 13px; color: var(--muted); line-height: 1.45; }
.wz-none { align-items: center; color: var(--muted); font-size: 14px; }
.wz-guides { display: grid; gap: 8px; }
.wz-g { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--card); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .wz-g:hover { box-shadow: var(--shadow-card); } }
.wz-gi { width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); }
.wz-gn { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.wz-gd { display: block; font-size: 13px; color: var(--muted); }
.setup.wiz .su-actions { margin-top: 20px; }
@media (max-width: 760px) { .setup.wiz { padding: 20px 16px; } .wz-plan { grid-template-columns: 1fr; } .wz-dots .wz-l { display: none; } .wz-dots li.on .wz-l { display: inline; } .wz-st { padding: 12px; } .wz-ic { width: 36px; height: 36px; } }
.wz-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.wz-note .i { color: var(--brand); margin-top: 4px; flex: none; }
.vprog-meta .cd-date-nw { white-space: nowrap; }
/* More guides: the other four Essentials guides, under the 5 essentials */
.more-guides { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.mg-title { font: 600 15px var(--font-display); color: var(--heading); margin-bottom: 12px; }
.mg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mg { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--page); text-decoration: none; transition: box-shadow .2s ease-out, background .2s ease-out; }
@media (hover: hover) and (pointer: fine) { .mg:hover { box-shadow: var(--shadow-card); background: var(--card); } }
.mg:focus-visible { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.mg-ic { flex: none; display: grid; place-items: center; color: var(--muted); font-size: 16px; margin-top: 2px; }
.mg-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg-t { font: 600 15px/1.3 var(--font-display); color: var(--heading); }
.mg-s { font-size: 13px; line-height: 1.4; color: var(--muted); }
.mg-n { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mg.done .mg-n { color: var(--badge-green-fg); font-weight: 600; }
.mg-arrow { flex: none; color: var(--brand); font-size: 11px; margin-top: 6px; transition: transform .2s ease-out; }
@media (hover: hover) and (pointer: fine) { .mg:hover .mg-arrow { transform: translateX(3px); } }
@media (max-width: 1100px) { .mg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mg-grid { gap: 8px; } .mg { padding: 12px; gap: 12px; } .mg-s { display: none; } .mg-arrow { display: none; } }

/* Before the Travel stage the 5 essentials start folded (renderEssentials in dashboard.js) */
.ess-toggle { margin-top: 16px; }
.ess-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.ess-toggle + .ess-grid { margin-top: 16px; }
/* Short setup line: phones only */
.su-short, .su-edit { display: none; }
@media (max-width: 640px) {
  /* Next actions and Key dates first; the setup line follows them */
  .dash-main:has(> .setup.done) { gap: 16px !important; }
  .dash-main:has(> .setup.done) > .dgrid { display: contents; }
  .dash-main:has(> .setup.done) > .setup { order: 1; }
  .dash-main:has(> .setup.done) .dgrid > .dcard { order: 2; }
  .dash-main:has(> .setup.done) .dgrid > [aria-labelledby="h-act"], .dash-main:has(> .setup.done) .dgrid > [aria-labelledby="h-dates"] { order: 0; }
  .dash-main:has(> .setup.done) .dgrid > #essWrap.lead { order: -1; }
  .dash-main:has(> .setup.done) > .disclaimer { order: 3; }
  .setup.done { padding: 16px 16px; }
  .setup.done .su-sum { flex-wrap: nowrap; gap: 12px; }
  .setup.done .su-b { min-width: 0; gap: 2px; }
  .setup.done .su-long { display: none; }
  .dash-main .setup.done .su-chips { display: none !important; } /* beats the jf-dash-fixes override in index.html */
  .setup.done .su-short, .setup.done .su-edit { display: inline; }
  .setup.done .su-short { color: var(--body); font-size: 14px; }
}

/* ==== Folded in from dashboard.html (was <style id="jf-dash-fixes">, 4 Nov 2026) ==== */
/* ---- Hero: stronger text on the teal ---- */
.journey .jn:not(.now),.journey .jn:not(.now) a{opacity:1}
.journey .jn:not(.now) .jn-name{color:#fff}
.journey .jn:not(.now) .jn-sub{color:rgba(255,255,255,.88)}

/* ---- Hero: countdown sits beside the greeting from tablet width up ---- */
@media (min-width:640px){
  .hero .dhero-top{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between;gap:24px!important;grid-template-columns:none!important}
  .hero .dhero-top>div:first-child{flex:1 1 auto;min-width:0}
  .hero .dhero-top>.vprog-card{flex:0 0 230px!important;width:230px!important;max-width:230px!important;height:auto!important;min-height:0!important;align-self:flex-start!important;margin:6px 0 0!important}
}

/* ---- First run: only greeting + guided setup until setup is done ---- */
body.jf-firstrun #countdown,body.jf-firstrun #journey,body.jf-firstrun #journeyWhy{display:none!important}
#jfBadge[hidden]{display:none!important}

/* ---- Header: keep all six nav items visible ---- */
@media (max-width:1360px){.topbar .who,.topbar .topbar-div{display:none}}
@media (max-width:1100px){
  .sitenav .snav:not(.on) .l-full{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sitenav .snav:not(.on){padding-left:12px;padding-right:12px}
}

@media (min-width:700px) and (max-width:1100px){
  .topbar .sitenav{order:1!important}
  .topbar .topbar-right{order:2!important;margin-left:auto!important}
}
/* ---- Mobile journey: snap scrolling + edge fade hints there is more ---- */
@media (max-width:639px){
  .hero .journey{scroll-snap-type:x mandatory;-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
  .hero .journey .jn{scroll-snap-align:start}
}

/* ---- Your setup: compact one-line summary ---- */
.setup.done{padding:16px 20px}
.setup.done .su-sum{display:flex!important;grid-template-columns:none!important;align-items:center;gap:12px 16px;flex-wrap:wrap}
.setup.done .su-ic{display:none}
.setup.done .su-b{flex:1 1 0!important;width:auto!important;max-width:none!important;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.setup.done .su-t{margin:0;font-size:14px;white-space:nowrap}
.setup.done .su-chips{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0!important;max-width:none!important;width:auto!important;grid-template-columns:none!important}
.setup.done .chip{font-size:13px;padding:4px 12px;margin:0}
.setup.done .su-acts{margin:0!important;flex:0 0 auto!important;width:auto!important}
@media (max-width:639px){.setup.done .su-acts{flex-basis:100%!important}}

/* ---- Next actions: round "mark done" control, empty until done, 44px target ---- */
#actions .ibtn{position:relative;width:44px;height:44px;min-width:44px;padding:0;margin:0;border:0;background:transparent;display:inline-grid;place-items:center;cursor:pointer;color:#0d6e82;border-radius:50%}
#actions .ibtn::before{content:"";position:absolute;width:26px;height:26px;border-radius:50%;border:2px solid #9aa6b2;background:#fff;box-sizing:border-box;transition:border-color .15s,background .15s}
#actions .ibtn svg{position:relative;width:13px;height:13px;opacity:0;transition:opacity .15s}
#actions .ibtn:focus-visible::before {border-color:#0d6e82}
@media (hover: hover) and (pointer: fine) { #actions .ibtn:hover::before {border-color:#0d6e82} }
#actions .ibtn:focus-visible svg {opacity:.55}
@media (hover: hover) and (pointer: fine) { #actions .ibtn:hover svg {opacity:.55} }
#actions .ibtn:focus-visible{outline:3px solid #0d6e82;outline-offset:1px}
#actions .ac-a{display:flex;align-items:center;gap:6px}

/* ---- Section icons all teal ---- */

/* ---- Coming up ---- */
#dates .dt-tag[hidden]{display:none!important}

/* ---- Essentials: one icon colour, aligned footers, no orphan gap ---- */
.ess-grid .ess .ess-ic{background:var(--badge-teal-bg)!important;color:var(--brand)!important}
.ess-grid .ess .ess-ic svg{color:var(--brand)!important;fill:currentColor}
.ess-grid .ess{display:flex;flex-direction:column}
.ess-grid .ess .ess-g{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
.ess-grid .ess .ess-g>span:first-child{flex-basis:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ess-grid .ess .ess-g .ess-n{margin:0;white-space:nowrap}
.ess-grid .ess .ess-g>svg{margin-left:auto}
@media (min-width:1100px){.ess-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media (min-width:640px) and (max-width:1099px){
  .ess-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .ess-grid>*{grid-column:span 2}
  .ess-grid>:nth-child(4):nth-last-child(2),.ess-grid>:nth-child(5):last-child{grid-column:span 3}
}

/* ---- Guides: full-width rows instead of cramped tiles ---- */
#guides.guides{grid-template-columns:1fr!important}

/* ---- Quick access emergency numbers as links ---- */
a.em{color:inherit;text-decoration:none}
a.em:focus-visible {border-color:#0d6e82}
@media (hover: hover) and (pointer: fine) { a.em:hover {border-color:#0d6e82} }

/* ---- Footer ---- */
.page-footer .footer-note{text-align:left}

/* Opening without jumps (12 Nov 2026). The page draws before dashboard.js has filled it in, so these hold the
   finished layout until then: a script at the top of dashboard.html adds .jf-done when the setup is finished.
   Heights are the filled-in sizes measured on 12 Nov 2026; update them if these parts change size. */
#journey:empty { min-height: 134px; }
#countdown:empty { min-height: 151px; }
.jf-done #journeyWhy:empty { min-height: 42px; }
.jf-done #setup:empty { min-height: 133px; }
@media (min-width: 1101px) { #journey:empty { min-height: 90px; } .jf-done #journeyWhy:empty { min-height: 21px; } .jf-done #setup:empty { min-height: 84px; } }
@media (max-width: 640px) {
  #countdown:empty { min-height: 74px; }
  .jf-done #journeyWhy:empty { min-height: 63px; }
  .jf-done #setup:empty { min-height: 148px; }
  /* same order as a finished setup (.setup.done above), before dashboard.js adds the class */
  .jf-done .dash-main { gap: 16px !important; }
  .jf-done .dash-main > .dgrid { display: contents; }
  .jf-done .dash-main > .setup { order: 1; }
  .jf-done .dash-main .dgrid > .dcard { order: 2; }
  .jf-done .dash-main .dgrid > [aria-labelledby="h-act"], .jf-done .dash-main .dgrid > [aria-labelledby="h-dates"] { order: 0; }
  .jf-done .dash-main .dgrid > #essWrap.lead { order: -1; }
  .jf-done .dash-main > .disclaimer { order: 3; }
}
/* the stage sentence (dashboard.js) holds its line until it arrives */
.jf-done #stageLine:empty::before { content: "You're at the apply stage."; visibility: hidden; }
/* Next actions list: hold the space of three tasks until dashboard.js fills it */
#actions:empty { min-height: 252px; }
@media (max-width: 640px) { #actions:empty { min-height: 335px; } } /* three compact rows, measured 18 Nov 2026 */

/* Quick details (14 Nov 2026, dashboard.js): reference numbers in one small card, masked until tapped */
#quick { display: grid; gap: 12px; }
.qd-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.qd-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l a" "v a"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 8px 8px 16px; border-radius: var(--radius-md); background: var(--page); }
.qd-l { grid-area: l; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-v { grid-area: v; font: 600 16px var(--font-body); color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.qd-v.masked { color: var(--body); letter-spacing: .08em; }
.qd-a { grid-area: a; display: flex; gap: 4px; }
.qd-a .ibtn, .qd-a button { width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card); color: var(--body); cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.qd-a button.done { background: var(--badge-green-bg); color: var(--badge-green-fg); border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .qd-a button:hover { border-color: var(--brand); color: var(--brand); } }
.qd-a button:active { scale: .97; }
.qd-none, .qd-empty, .qd-hint { font-size: 14px; color: var(--muted); }
.qd-empty { color: var(--body); }
button.qd-choose { margin-top: 0; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--font-body); cursor: pointer; }
.qd-pick { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.qd-pick label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: var(--body); cursor: pointer; }
.qd-pick input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.qd-pick input:disabled + span { color: var(--muted); }
#quick > .btn { justify-self: start; }
.qd-locked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--tint-teal); border: 1px solid var(--border-teal); }
.qd-locked p { margin: 0; font-size: 14px; color: var(--body); }
.qd-locked p .i { color: var(--brand); vertical-align: -2px; margin-right: 4px; }
@media (max-width: 640px) {
  .qd-list { grid-template-columns: minmax(0, 1fr); }
  /* phones: straight after Next actions and Key dates */
  .dash-main:has(> .setup.done) .dgrid > #quickWrap, .jf-done .dash-main .dgrid > #quickWrap { order: 0; }
}
/* hold its space until dashboard.js fills it */
#quick:empty { min-height: 60px; }

/* Student illustrations (14 Nov 2026, images/ill/): the first-run welcome and the all-caught-up state */
.su-head:has(.su-ill) { flex-wrap: wrap; }
.su-ill { flex: none; margin-left: auto; width: 200px; height: auto; margin-top: -24px; margin-bottom: -16px; }
@media (max-width: 640px) { .su-ill { order: -1; width: 160px; margin: -8px 0 0; } }
.ac-none.ac-done { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.ac-done .ill-empty { width: 170px; }
.su-head:has(.su-ill) > div { flex: 1 1 280px; }

/* A student peeking out from behind the countdown card and waving (14 Nov 2026). Bigger screens: leaning out
   from the card's left edge; phones: leaning out of its right edge (the same drawing, flipped). The drawing stops exactly at the card's edge,
   so it looks tucked behind it. The first time Home opens in a visit (.jf-peek, set by the <head> script) they
   slide out and wave; otherwise they just peek. No movement with reduced motion. */
.peek { display: none; pointer-events: none; }
.peek .peek-arm { transform-box: view-box; }
.peek-side .peek-arm { transform-origin: 128px 106px; }
@media (min-width: 640px) {
  .hero .dhero-top { position: relative; }
  .hero .dhero-top > div:first-child { padding-right: 110px; }
  .peek-side { display: block; position: absolute; right: 230px; top: -14px; width: 118px; height: auto; }
}
@media (max-width: 639px) {
  /* Phones (17 Nov 2026): the same student leans out of the countdown card's right edge, beside it rather than
     on a row of its own above it, which left a band of empty space under the title. */
  /* 18 Nov 2026: the card and the student share one grid cell, so the student stays pinned to the card's top
     edge whatever its height, and the drawing's cut edge lines up exactly with the card's right edge
     (card ends 52px short of the side; the 84px drawing starts there and runs 32px into the hidden margin). */
  /* 18 Nov 2026, later: the student's size now follows the card's height. The drawing is placed against the
     card's own grid cell (an absolutely placed grid item), 131% of the card's height and never more than 97px,
     so on a one-line card (wider phones, shorter dates) the body no longer hangs below the card's bottom edge. */
  .hero .dhero-top { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; position: relative; }
  /* 18 Nov 2026, refined: the student is really behind the card now, not cut off in a straight line beside it
     (the straight cut left a sliver of teal next to the card's rounded corners). Three layers in the card's
     grid cell: the student (whole body, the drawing's own cut switched off), then a patch in the header's own
     colour the same size as the card (::after; the card is see-through, so the student would show through it
     without this; its gradient is sized to the screen so it matches the header behind), then the card. The
     gripping hand is left out here. Works whatever tint the card has (dark mode, more contrast). */
  .hero .dhero-top > #countdown { grid-row: 2; grid-column: 1; width: calc(100% - 52px); max-width: none; position: relative; z-index: 2; }
  .hero .dhero-top::after { content: ""; position: absolute; z-index: 1; grid-row: 2; grid-column: 1; left: 0; top: 0; bottom: 0; width: calc(100% - 52px);
    border-radius: 16px; background: var(--hero) -16px 0 / 100vw 100% no-repeat; pointer-events: none; }
  body.jf-firstrun .hero .dhero-top::after { display: none; }
  .peek-side { display: block; position: absolute; z-index: 0; grid-row: 2; grid-column: 1; left: calc(100% - 54px); bottom: 36.5%;
    height: min(131%, 97px); width: auto; aspect-ratio: 130 / 150; overflow: visible; transform: scaleX(-1); }
  .peek-side > g { clip-path: none; }
  .peek-side > path, .peek-side > .peek-grip { display: none; }   /* the gripping hand would be half hidden by the card */
}
/* Narrow phones, or larger text: the countdown's words go under the number, so the narrower card keeps to three lines. */
@media (max-width: 359px) { .hero .dhero-top > #countdown:has(.vprog-num) { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } .hero .dhero-top > #countdown:has(.vprog-num) .vprog-num { grid-row: auto; } .hero .dhero-top > #countdown:has(.vprog-num) .vprog-meta { grid-column: 1; } }
@media (max-width: 399px) { :root[data-text="l"] .hero .dhero-top > #countdown:has(.vprog-num) { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } :root[data-text="l"] .hero .dhero-top > #countdown:has(.vprog-num) .vprog-num { grid-row: auto; } :root[data-text="l"] .hero .dhero-top > #countdown:has(.vprog-num) .vprog-meta { grid-column: 1; } }
@media (max-width: 639px) { :root[data-text="xl"] .hero .dhero-top > #countdown:has(.vprog-num) { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } :root[data-text="xl"] .hero .dhero-top > #countdown:has(.vprog-num) .vprog-num { grid-row: auto; } :root[data-text="xl"] .hero .dhero-top > #countdown:has(.vprog-num) .vprog-meta { grid-column: 1; } }
body.jf-firstrun .peek { display: none !important; }
@keyframes peek-side-in { from { transform: translate(52px, 10px); } }
@keyframes peek-wave { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-24deg); } 40%, 80% { transform: rotate(12deg); } }
.jf-peek .peek .peek-body { transform-box: view-box; }
.jf-peek .peek-side .peek-body { animation: peek-side-in .7s cubic-bezier(.2, .8, .2, 1) .25s both; }
.jf-peek .peek .peek-arm { animation: peek-wave 1.1s ease-in-out .9s 2; }
@media (prefers-reduced-motion: reduce) { .jf-peek .peek * { animation: none !important; } }

/* ==== Phones: a shorter Home (18 Nov 2026) ==== */
/* Next actions as compact rows: the round tick on the left, the task, an arrow on the right. The whole row opens
   the task (the link's ::after covers it); the tick and any glossary term sit above that so they still work. */
@media (max-width: 640px) {
  #actions { gap: 8px; }
  #actions .ac { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; align-items: center; column-gap: 8px; padding: 10px 16px 10px 4px; }
  #actions .ac-n { grid-column: 1; grid-row: 1; justify-self: center; width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
  #actions .ac:has(.ibtn) .ac-n { display: none; }
  #actions .ac-b { grid-column: 2; grid-row: 1; flex: none; }
  #actions .ac-a { display: contents; }
  #actions .ibtn { grid-column: 1; grid-row: 1; z-index: 1; }
  #actions .ac-t abbr { position: relative; z-index: 1; }
  #actions .ac-a .btn { grid-column: 3; grid-row: 1; position: static; min-height: 0; height: auto; padding: 0; border: 0; background: none; box-shadow: none; font-size: 0; color: var(--muted); }
  #actions .ac-a .btn .i { font-size: 14px; }
  #actions .ac-a .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  #actions .ac-a .btn:focus-visible { outline: none; }
  #actions .ac-a .btn:focus-visible::after { outline: 3px solid var(--brand); outline-offset: -3px; }
  #actions .ac:has(.ac-a > .btn:active) { background-image: linear-gradient(rgba(16,24,40,.06), rgba(16,24,40,.06)); }

  /* Don't miss as compact rows too, with a round "Got it" tick on the right */
  .miss-list { gap: 8px; }
  .miss { flex-direction: row; align-items: center; gap: 8px; padding: 10px 4px 10px 12px; }
  .miss-a { align-items: center; }
  .miss-ic { width: 36px; height: 36px; }
  .miss-x { flex: none; align-self: center; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .miss-x span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* Don't miss, Your 5 essentials and Guides for your stage fold to their title and one line (foldCards in dashboard.js) */
  .dfold .dc-head { position: relative; flex-wrap: wrap; padding-right: 32px; row-gap: 2px; }
  .dc-fold { position: absolute; inset: -20px; z-index: 1; border: 0; background: none; border-radius: var(--radius-xl); cursor: pointer; color: var(--muted); }
  .dc-fold .i { position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 14px; transition: rotate .2s var(--ease); }
  .dfold:not(.folded) .dc-fold .i { rotate: 180deg; }
  .dc-fold:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
  .dfold .dc-link { position: relative; z-index: 2; }
  .dc-fsum { display: none; flex-basis: 100%; font-size: 14px; color: var(--muted); }
  .dfold.folded .dc-fsum { display: block; }
  .dfold.folded .dc-head { margin-bottom: 0; }
  .dfold.folded .dc-head :is(.dc-sub, .dc-link, .ess-count) { display: none; }
  .dfold.folded > :not(.dc-head) { display: none !important; }
  .dfold.folded:has(.dc-fold:active) { scale: .99; }

  /* the setup line goes to the end, just above the guidance note */
  .dash-main:has(> .setup.done) > .setup, .jf-done .dash-main > .setup { order: 3; }
  .dash-main:has(> .setup.done) > .disclaimer, .jf-done .dash-main > .disclaimer { order: 4; }
}
@media (min-width: 641px) { .dc-fold, .dc-fsum { display: none; } }
