/* Minimal light theme. A few gentle animations; all disabled for reduced-motion. */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --line: #e7e6e1;
  --accent: #3d6b5a;
  --accent-soft: #eaf1ee;
  --radius: 14px;
  --max: 680px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.site { padding: 20px 0; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; }
header.site a.brand { color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
header.site nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: .95rem; }
header.site nav a:hover { color: var(--fg); }

.hero { padding: 56px 0 40px; }
.photo {
  display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  background: var(--accent-soft); border: 1px solid var(--line); margin-bottom: 24px;
}
h1 { font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 650; }
h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 650; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
section { padding: 36px 0; border-top: 1px solid var(--line); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(61,107,90,.18); }
.btn.ghost { background: transparent; color: var(--accent); margin-left: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.cards { display: grid; gap: 12px; }
.card {
  display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: inherit; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card strong { display: block; font-weight: 600; }
.card span { color: var(--muted); font-size: .95rem; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 600; display: grid; place-items: center;
}
.price { font-size: 2rem; font-weight: 650; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
ul.plain { padding-left: 1.1em; margin: 0 0 16px; }

/* forms (pay / book pages) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.choice { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 12px 0; }
.choice label { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; background: var(--surface); transition: border-color .2s ease, background .2s ease; }
.choice input { margin-right: 8px; accent-color: var(--accent); }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
input[type=text] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
input[type=text]:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.note { font-size: .9rem; color: var(--muted); }
.stub { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); font-size: .95rem; }

footer.site { padding: 32px 0 56px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
footer.site a { color: var(--muted); }

/* gentle reveal */
/* Hidden only when scripts run, so the sections stay visible without JavaScript. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
.hero > * { animation: rise .7s ease-out both; }
.hero > *:nth-child(2) { animation-delay: .08s; } .hero > *:nth-child(3) { animation-delay: .16s; } .hero > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } .btn.ghost { margin: 10px 0 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* blog */
.post h1 { margin-bottom: 14px; }
.post h2 { margin: 36px 0 12px; }
.post h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.post p, .post li { max-width: 40em; }
.post ul, .post ol { padding-left: 1.3em; margin: 0 0 16px; }
.post blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.post code { background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.post table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .95rem; }
.post th, .post td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.tldr { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; color: var(--fg); }
.cta { margin: 40px 0 0; }
.eyebrow { margin: 0 0 10px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.cta-line { margin: 36px 0 0; }
.btn.ghost[style*="margin-left:0"], .cta-line .btn.ghost { margin-left: 0; }
h1 { text-wrap: balance; }

/* landing: one-line hero, proof line, projects */
.hero h1 { font-size: clamp(1.5rem, 6.3vw, 2.9rem); }
.hero h1.long { font-size: clamp(1.2rem, 4.9vw, 2.15rem); }
.proof { margin: 18px 0 0; color: var(--muted); font-size: .98rem; }
.proof strong { color: var(--accent); font-size: 1.15em; }
h3.sub { font-size: .95rem; letter-spacing: .02em; color: var(--muted); font-weight: 600; margin: 26px 0 10px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.card.static:hover { transform: none; border-color: var(--line); }
@media (max-width: 520px) { .cards.two { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  header.site .wrap { flex-wrap: wrap; row-gap: 6px; }
  header.site a.brand { white-space: nowrap; }
  header.site nav a { margin-left: 0; margin-right: 14px; }
  header.site nav a:last-child { margin-right: 0; }
}
.card .gh { display: block; margin-top: 8px; font-size: .85rem; color: var(--accent); }
.steps-title { margin: 20px 0 0; }
.steps-title + .steps { margin-top: 12px; }

/* proof bar + role labels + bigger sub-heading */
.proofbar { padding: 8px 0 28px; border-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; }
.stat a { color: inherit; text-decoration: none; display: block; }
.stat strong { display: block; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; }
.stat span { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.card .role { display: block; font-size: .8rem; color: var(--accent); font-weight: 600; margin: 2px 0 4px; }
h3.sub.big { font-size: 1.1rem; color: var(--fg); margin-top: 28px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
figure.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
figure.quote blockquote { margin: 0; font-size: .98rem; line-height: 1.55; }
figure.quote figcaption { font-size: .85rem; color: var(--muted); line-height: 1.4; }
figure.quote figcaption strong { display: block; color: var(--fg); }
figure.quote figcaption span { display: block; }
figure.quote figcaption em { display: block; margin-top: 4px; font-size: .78rem; opacity: .85; }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }

/* ===== landing: wider canvas, hero with avatar + slogan, icons, tinted panels ===== */
body.landing { overflow-x: clip; }
.landing .wrap { max-width: 1000px; padding: 0 20px; }
.landing .lead { max-width: 40em; }

.landing .hero { position: relative; isolation: isolate; padding: 40px 0 28px; }
.landing .hero::before, .landing .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.landing .hero::before { width: 460px; height: 460px; right: 0; top: -90px; background: radial-gradient(closest-side, rgba(61,107,90,.20), rgba(61,107,90,0)); animation: drift 16s ease-in-out infinite alternate; }
.landing .hero::after { width: 340px; height: 340px; left: 30%; bottom: -120px; background: radial-gradient(closest-side, rgba(201,164,108,.20), rgba(201,164,108,0)); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-24px, 18px) scale(1.08); } }

.hero-top { display: flex; align-items: center; gap: 28px; margin-bottom: 22px; }
.landing .photo { width: 128px; height: 128px; margin: 0; flex: none; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent), 0 14px 34px rgba(61,107,90,.22); }
.hero-head .eyebrow { margin-bottom: 8px; }
.landing .hero h1 { font-size: clamp(1.3rem, 4.6vw, 3.1rem); line-height: 1.12; margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
.landing .hero h1.long { font-size: clamp(1.15rem, 3.6vw, 2.3rem); }
.cta-row { margin: 0; }

.landing section { padding: 44px 0 8px; border-top: 0; }
.landing section > h2 { font-size: 1.6rem; margin-bottom: 20px; }
.landing section > h2::before { content: ''; display: block; width: 34px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #c9a46c); margin-bottom: 14px; }
.landing .proofbar { padding: 6px 0 0; }

.cards.three { grid-template-columns: repeat(3, 1fr); }
.card.ic { display: flex; gap: 14px; align-items: flex-start; }
.card .ct { min-width: 0; }
.card .ico { flex: none; border-radius: 14px; transition: transform .35s ease; }
.card:not(.static):hover .ico, .card.static:hover .ico { transform: rotate(-6deg) scale(1.06); }
.card.static:hover { border-color: var(--line); }
.card { box-shadow: 0 1px 0 rgba(0,0,0,.02); }

#why { background: linear-gradient(180deg, var(--accent-soft), rgba(234,241,238,.35)); border-radius: 24px; padding: 36px 28px 30px; margin-top: 36px; }
#why .card { background: rgba(255,255,255,.85); }
#consult { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; margin: 44px 0 32px; box-shadow: 0 18px 44px rgba(31,61,51,.07); }
#consult .price { margin: 4px 0 14px; }

figure.quote { position: relative; padding-top: 34px; }
figure.quote::before { content: '\201C'; position: absolute; top: 4px; left: 16px; font-size: 3rem; line-height: 1; color: var(--accent); opacity: .25; font-family: Georgia, serif; }
.stat { transition: transform .25s ease, border-color .25s ease; }
.stat:hover { transform: translateY(-2px); border-color: var(--accent); }

@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .landing .wrap { padding: 0 16px; }
  .hero-top { gap: 16px; }
  .landing .photo { width: 84px; height: 84px; }
  .cards.three, .cards.two { grid-template-columns: 1fr; }
  #why { padding: 28px 16px 22px; border-radius: 20px; }
  #consult { padding: 26px 18px; border-radius: 20px; }
  .landing .hero::before { width: 300px; height: 300px; right: -80px; }
}
@media (prefers-reduced-motion: reduce) { .landing .hero::before, .landing .hero::after { animation: none; } }

/* ===== logos + exploding icons ===== */
.card .logo { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: #fff; border: 1px solid var(--line); transition: transform .35s ease; }
.card:hover .logo { transform: rotate(-6deg) scale(1.07); }
.card:hover .ico, .card.static:hover .ico, .card:not(.static):hover .ico { transform: none; }
.ico .p { transform-box: fill-box; transform-origin: center; transition: transform .75s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 45ms); }
.card:hover .ico .p, .card:focus-visible .ico .p { transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) rotate(var(--r)) scale(var(--s)); }
@media (prefers-reduced-motion: reduce) { .ico .p { transition: none; } .card:hover .ico .p { transform: none; } }

/* ===== "case files" slider ===== */
.dossier { --fw: min(540px, 78vw); position: relative; margin: 6px -20px 0; }
.folders {
  position: relative; display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 34px calc(50% - var(--fw) / 2) 40px; outline-offset: -4px;
}
.folders::-webkit-scrollbar { display: none; }
.folder {
  position: relative; flex: 0 0 var(--fw); scroll-snap-align: center; color: #3a2c1a;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  transform: scale(.93) rotate(var(--tilt, 0deg)); opacity: .55; transition: transform .45s ease, opacity .45s ease; filter: saturate(.9);
}
.folder:nth-child(odd) { --tilt: -.6deg; } .folder:nth-child(even) { --tilt: .5deg; }
.folder.is-active { transform: scale(1) rotate(0deg); opacity: 1; filter: none; }
.folder .tab {
  display: inline-block; margin-left: 0; padding: 7px 18px 6px; font-size: .72rem; letter-spacing: .16em; font-weight: 700;
  background: linear-gradient(#e6cfa4, #dcc08f); border: 1px solid rgba(90,65,30,.38); border-bottom: 0; border-radius: 10px 10px 0 0;
}
.folder .cover {
  position: relative; overflow: hidden; padding: 22px 26px 30px; border: 1px solid rgba(90,65,30,.4); border-radius: 0 10px 10px 10px;
  background:
    repeating-linear-gradient(0deg, rgba(90,65,30,.035) 0 1px, transparent 1px 3px),
    linear-gradient(145deg, #e0c797 0%, #d3b27f 55%, #c9a56f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 22px 40px -18px rgba(70,48,20,.55), 0 3px 0 rgba(90,65,30,.12);
}
.folder .hdr { display: flex; align-items: center; gap: 14px; }
.folder .seal { flex: none; width: 46px; height: 46px; border-radius: 6px; border: 2px solid #3a2c1a; display: grid; place-items: center; font-weight: 800; font-size: .95rem; letter-spacing: .04em; }
.folder .hdr b { display: block; font-size: 1.55rem; letter-spacing: .14em; line-height: 1.05; }
.folder .hdr small { display: block; margin-top: 4px; font-size: .58rem; letter-spacing: .2em; font-weight: 700; opacity: .8; }
.folder .chev { height: 14px; margin: 14px 0 12px; border-top: 5px solid #3a2c1a; background: repeating-linear-gradient(135deg, #3a2c1a 0 3px, transparent 3px 8px); background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 100%; }
.folder dl { margin: 0; display: grid; gap: 12px; }
.folder .row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.folder dt { font-size: .66rem; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.folder dd { margin: 0; font-size: .86rem; line-height: 1.45; padding-bottom: 4px; border-bottom: 1px solid rgba(58,44,26,.55); min-height: 1.6em; }
.folder dd.ttl { font-weight: 800; font-size: 1rem; line-height: 1.3; }
.folder dd.mono { letter-spacing: .12em; font-weight: 700; }
.folder dd.conf { display: flex; align-items: center; gap: 12px; }
.folder .meter { flex: 1; height: 9px; border-radius: 9px; background: rgba(58,44,26,.16); overflow: hidden; }
.folder .meter i { display: block; height: 100%; background: linear-gradient(90deg, #8a3a2a, #b8452f); border-radius: 9px; transform-origin: left; transform: scaleX(.001); transition: transform 1s cubic-bezier(.2,.8,.2,1) .15s; }
.folder.is-active .meter i { transform: scaleX(1); }
.folder .conf b { font-size: 1rem; }
.folder .stamp {
  position: absolute; right: 16px; bottom: 18px; transform: rotate(-9deg); padding: 6px 12px; border: 3px double #a23b2a; border-radius: 6px;
  color: #a23b2a; font-weight: 800; font-size: .8rem; letter-spacing: .18em; opacity: .78; mix-blend-mode: multiply; background: rgba(162,59,42,.04);
}
.folder .print {
  position: absolute; right: -50px; top: 60px; width: 220px; height: 280px; border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%; opacity: .5; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 46% 58%, rgba(58,44,26,.10) 0 2px, transparent 2px 7px); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.folder.unidentified .cover { background: repeating-linear-gradient(0deg, rgba(40,30,15,.05) 0 1px, transparent 1px 3px), linear-gradient(145deg, #bfa27a 0%, #a98b62 60%, #96784f 100%); }
.folder.unidentified .hdr b { letter-spacing: .1em; }
.dctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: -6px; }
.dctl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.dctl button:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--accent-soft); }
.dots { display: flex; gap: 8px; align-items: center; }
.dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: #c3cec8; cursor: pointer; transition: width .3s ease, background .3s ease; }
.dot.on { width: 26px; background: var(--accent); }
.dnote { text-align: center; margin: 12px 0 0; }
@media (max-width: 640px) { .dossier { margin: 6px -16px 0; } .folder .row { grid-template-columns: 1fr; gap: 2px; } .folder .hdr b { font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .folder, .folder .meter i { transition: none; } .folder .meter i { transform: none; } }
.dctl .dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: #c3cec8; font-size: 0; transform: none; }
.dctl .dot:hover { background: #9fb3a9; transform: none; border: 0; }
.dctl .dot.on { width: 26px; background: var(--accent); }
code.refcode { user-select: all; background: var(--accent-soft); padding: 2px 9px; border-radius: 6px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }

/* ===== CV page ===== */
.cv-role { margin: 8px 0 0; color: var(--muted); font-size: 1.1rem; }
.cv .hero { padding-bottom: 8px; }
.cv .hero h1 { font-size: clamp(1.7rem, 5vw, 3rem); }
.stats.six { grid-template-columns: repeat(6, 1fr); }
.cv-summary { font-size: 1.08rem; max-width: 52em; }
.skillgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 6px 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 7px 13px; border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.tl { position: relative; display: grid; gap: 12px; padding-left: 24px; margin-top: 8px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), var(--line)); border-radius: 2px; }
.job { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.job::before { content: ''; position: absolute; left: -24px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 150px 1fr 20px; gap: 16px; padding: 16px 18px; align-items: start; }
.job summary::-webkit-details-marker { display: none; }
.job .when { font-weight: 700; font-size: .88rem; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.job .what strong { display: block; font-size: 1.05rem; }
.job .what em { display: block; font-style: normal; color: var(--muted); font-size: .9rem; }
.job .hl { display: block; margin-top: 8px; font-size: .86rem; background: var(--accent-soft); border-radius: 8px; padding: 4px 10px; width: fit-content; max-width: 100%; }
.job .chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: 8px; transition: transform .25s ease; }
.job[open] .chev { transform: rotate(-135deg); }
.job ul { margin: 0; padding: 0 24px 18px 184px; }
.job li { margin: 0 0 7px; font-size: .95rem; line-height: 1.5; }
.job.match { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,107,90,.12); }
.tl.filtering .job:not(.match) { opacity: .5; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plainlist { margin: 0; padding-left: 1.1em; }
.plainlist li { margin: 0 0 6px; }
.printonly { display: none; }
.cvcta { background: var(--accent-soft); border-radius: 20px; padding: 28px 28px 24px; }
.cvcta h2 { margin-bottom: 8px; }
header.site nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .stats.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .stats.six { grid-template-columns: 1fr 1fr; }
  .job summary { grid-template-columns: 1fr 20px; }
  .job .when { grid-column: 1 / -1; }
  .job .chev { grid-column: 2; grid-row: 2; }
  .job ul { padding-left: 24px; }
  .cols { grid-template-columns: 1fr; }
}

/* print / PDF: single column, no chrome, everything expanded */
@page { size: A4; margin: 13mm 14mm 15mm; }
@media print {
  body { background: #fff; font-size: 9.6pt; line-height: 1.38; color: #111; }
  .noprint, header.site, footer.site, .photo, .landing .hero::before, .landing .hero::after { display: none !important; }
  .printonly { display: block; margin: 4px 0 0; color: #333; font-size: 9.4pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .wrap, .landing .wrap { max-width: none; padding: 0; }
  .landing section { padding: 12px 0 0; }
  .landing section > h2 { font-size: 12.5pt; margin: 0 0 6px; }
  .landing section > h2::before { display: none; }
  .landing .hero { padding: 0; } .hero-top { margin: 0; } .cv .hero h1 { font-size: 21pt; margin: 0; }
  .eyebrow { display: none; } .cv-role { margin: 2px 0 0; color: #333; font-size: 11pt; }
  .stats.six { grid-template-columns: repeat(6, 1fr); gap: 6px; } .stat { padding: 5px 6px; border-radius: 6px; box-shadow: none; }
  .stat strong { font-size: 13pt; } .stat span { font-size: 7.4pt; }
  .tl { padding-left: 0; gap: 0; } .tl::before, .job::before { display: none; }
  .job { border: 0; border-top: 1px solid #ddd; border-radius: 0; box-shadow: none; break-inside: avoid; opacity: 1 !important; }
  .job summary { grid-template-columns: 96px 1fr; padding: 7px 0 3px; } .job .chev { display: none; }
  .job ul { padding: 0 0 6px 112px; } .job li { font-size: 9.2pt; margin-bottom: 3px; }
  .job .hl { background: none; padding: 0; font-weight: 600; font-size: 9pt; }
  .cards, .cards.three { grid-template-columns: repeat(3, 1fr); gap: 8px; } .card { box-shadow: none; padding: 8px 10px; break-inside: avoid; } .card .logo { width: 30px; height: 30px; }
  .note { font-size: 8.6pt; margin: 0 0 6px; } a { color: inherit; text-decoration: none; }
  .cols { gap: 16px; } .plainlist li { margin-bottom: 2px; font-size: 9.2pt; }
}

/* fixes: counter number must stay inline inside the stat; print must not depend on entry animations; let long roles break across pages */
.stat strong .num { display: inline; font-size: inherit; color: inherit; margin: 0; }
@media print {
  .hero > *, .hero > * > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .stat strong .num { display: inline !important; font-size: inherit !important; color: inherit !important; margin: 0 !important; }
  .job { break-inside: auto; }
  .job summary { break-after: avoid; }
  .job li { break-inside: avoid; }
  .cards .card, .card.ic { break-inside: avoid; }
  .stat { text-align: left; } .stat strong { font-size: 12.5pt; } .stat span { display: block; }
}
@media print {
  body { font-size: 9.1pt; line-height: 1.33; }
  .job li { font-size: 8.8pt; margin-bottom: 2px; }
  .job summary { padding: 5px 0 2px; }
  .landing section { padding: 9px 0 0; }
  .cv-summary { font-size: 9.6pt; }
  .job .what strong { font-size: 10pt; } .job .what em { font-size: 8.6pt; } .job .when { font-size: 8.4pt; }
  .plainlist li { font-size: 8.8pt; margin-bottom: 1px; }
}
.chip { text-align: left; border-radius: 16px; line-height: 1.35; }

/* request form + textarea */
textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; resize: vertical; }
textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
#challenge { padding-top: 28px; }

/* Challenge AI quiz */
.quiz { padding: 36px 0 20px; }
.qz-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 6px 0 22px; }
.qz-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.opts { display: grid; gap: 10px; margin: 8px 0 18px; }
.opt { text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.opt:hover, .opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.qz-verdict { font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 4px 0 12px; outline: none; }
.qz-why { margin: 0 0 8px; padding-left: 20px; }
.qz-prompt { white-space: pre-wrap; word-break: break-word; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: .88rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 260px; overflow: auto; }
.qz-more summary { cursor: pointer; color: var(--accent); margin: 8px 0; }

/* consultation block v2 */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
.cgrid .panel { margin: 0; }
#consult h3.sub { font-size: 1.02rem; color: var(--fg); margin: 0 0 8px; letter-spacing: 0; }
ul.tick { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
ul.tick li { padding-left: 24px; position: relative; }
ul.tick li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
ol.plain { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 2px; }
.sample p { margin: 0 0 8px; }
@media (max-width: 720px) { .cgrid { grid-template-columns: 1fr; } }
header.site nav a { white-space: nowrap; }

/* Examples page: full real feedback texts */
.example { margin: 14px 0; }
.example > details { border: 1px solid var(--line, #e5e7e2); border-radius: 12px; padding: 4px 18px 14px; background: var(--card, #fff); }
.example > details > summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style-position: outside; }
.example .body h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.example .body p { margin: 0 0 10px; }
.example .body ul { padding-left: 1.2em; }
.example .body li { margin: 0 0 8px; }
.example .tag { display: inline-block; font-size: .8rem; color: var(--muted, #6b7570); margin-left: 8px; font-weight: 400; }
.exindex { columns: 1; margin: 8px 0 20px; padding-left: 1.2em; }
@media (min-width: 720px) { .exindex { columns: 2; column-gap: 28px; } }
.exhow { margin: 8px 0 8px; padding-left: 1.2em; }
.exhow li { margin: 0 0 6px; }
.example .body { line-height: 1.65; max-width: 68ch; }
.example .body blockquote { margin: 14px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent, #2f6f5e); color: inherit; }
.example .body blockquote p { margin: 0; }
.example .body p > strong:only-child { display: block; margin-top: 18px; }
.example .body hr { border: 0; border-top: 1px dashed var(--line, #e5e7e2); margin: 18px 0; }
.folder dd.lnk a { color: inherit; font-weight: 800; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; }
.folder dd.lnk a:hover, .folder dd.lnk a:focus-visible { color: #8a3a2a; }

/* ===== Executive Kinetic: dark theme from the Stitch design system. Screen only, print keeps the light CV. ===== */
@media screen {
  :root {
    --bg: #0a0d12; --surface: #12161f; --surface-2: #1e2330; --card: #12161f;
    --fg: #e2e8f0; --head: #ffffff; --muted: #94a3b8; --line: rgba(226,232,240,.10);
    --accent: #5b9bf8; --accent-hi: #3b82f6; --link: #60a5fa; --accent-soft: rgba(59,130,246,.10); --amber: #f59e0b;
    --radius: 16px; --max: 1120px; color-scheme: dark;
    --font-head: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  body { font-family: var(--font-body); }
  h1, h2, h3, header.site a.brand, .price { font-family: var(--font-head); color: var(--head); }
  a { color: var(--link); }
  header.site { position: sticky; top: 0; z-index: 30; padding: 14px 0; background: rgba(10,13,18,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  header.site nav a:hover { color: var(--head); }
  header.site .wrap { flex-wrap: wrap; gap: 6px 18px; }
  header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  header.site nav a { margin-left: 0; }
  main.wrap { overflow-x: clip; }
  main.wrap p, main.wrap li { max-width: 72ch; }
  main.wrap form { max-width: 640px; }
  .lead { color: var(--muted); }
  .btn { background: #2563eb; color: #fff; border-radius: 10px; }
  .chip[aria-pressed="true"] { background: #2563eb; border-color: #3b82f6; color: #fff; }
  .btn:hover { background: var(--accent-hi); box-shadow: 0 0 24px -4px rgba(59,130,246,.5); }
  .btn.ghost { background: transparent; color: var(--fg); border: 1px solid rgba(226,232,240,.4); }
  .btn.ghost:hover { background: rgba(59,130,246,.08); border-color: var(--accent-hi); box-shadow: none; }
  input[type=text], input[type=email], input[type=url], textarea, select { background: var(--bg); color: var(--fg); border: 1px solid rgba(226,232,240,.38); }
  input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent-hi); box-shadow: 0 0 0 2px rgba(59,130,246,.25); }
  ::placeholder { color: #8b97a8; }
  .card, .quote, .panel, details { background: var(--surface); border-color: var(--line); }
  .card:hover { background: var(--surface-2); box-shadow: 0 0 24px -4px rgba(59,130,246,.18); }
  .landing .hero::before { background: radial-gradient(closest-side, rgba(59,130,246,.22), rgba(59,130,246,0)); }
  .landing .hero::after { background: radial-gradient(closest-side, rgba(245,158,11,.14), rgba(245,158,11,0)); }
  .landing .photo { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent-hi), 0 14px 34px rgba(0,0,0,.5); }
  #why { background: var(--surface); border: 1px solid var(--line); }
  #why .card { background: var(--surface-2); }
  #consult { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
  .stat { background: var(--surface); }
  .stat strong { color: var(--amber); font-family: var(--font-head); }
  .note, .muted { color: var(--muted); }

  /* facts */
  .fgroup { margin: 26px 0 0; }
  .fgroup .eyebrow { margin: 0 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
  .fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
  .fact strong { display: block; font-family: var(--font-head); font-size: 2.1rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--head); }
  .fact:nth-child(2) strong { color: var(--amber); }
  .fact:nth-child(3) strong { color: var(--link); }
  .fact span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.45; }

  /* case grid (replaces the old folder slider) */
  .vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
  .vcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--fg); text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
  .vcard:hover, .vcard:focus-visible { background: var(--surface-2); box-shadow: 0 0 24px -4px rgba(59,130,246,.28); transform: translateY(-2px); }
  .vtag { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--link); border: 1px solid rgba(96,165,250,.25); }
  .vcard strong { font-family: var(--font-head); color: var(--head); font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
  .vtxt { color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .vsrc { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
  .vgo { color: var(--link); font-weight: 600; font-size: .92rem; }
  .vcard.open { background: linear-gradient(145deg, var(--surface-2), var(--surface)); border-color: rgba(245,158,11,.4); }
  .vcard.open .vtag { background: rgba(245,158,11,.12); color: var(--amber); border-color: rgba(245,158,11,.35); }
  @media (min-width: 900px) { .fgrid:has(.fact:nth-child(6)) { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 640px) { .vault { grid-template-columns: 1fr; } .fact strong { font-size: 1.8rem; } }
}

/* ---- Tools section: Job Search Engine page, diagrams and demo tracker ---- */
@media screen {
  .jse-crumb { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
  .jse h2.sub { margin-top: 40px; }
  .jse h3 { margin: 0 0 12px; font-size: 1rem; }
  /* pipeline */
  .jse-flow { counter-reset: s; display: grid; gap: 14px; margin-top: 16px; }
  .jse-lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
  .jse-lane.human { border-color: rgba(245,158,11,.35); }
  .jse-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
  .jse-steps li { counter-increment: s; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 46px; max-width: none; }
  .jse-steps li::before { content: counter(s); position: absolute; left: 12px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: #2563eb; color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .jse-lane.human .jse-steps li::before { background: #b45309; }
  .jse-steps b { display: block; color: var(--head); margin-bottom: 4px; }
  .jse-steps span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; }
  .jse-handoff { text-align: center; color: var(--amber); font-weight: 600; font-size: .95rem; }
  .jse-handoff span { font-size: 1.2rem; margin-right: 6px; }
  /* gate */
  .jse-gate { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
  .jse-in, .jse-out { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
  .jse-box { background: var(--bg); border: 1px solid rgba(226,232,240,.18); border-radius: 10px; padding: 10px 14px; text-align: center; color: var(--fg); font-size: .92rem; }
  .jse-box.wide { width: min(100%, 420px); }
  .jse-box.gate { border-color: var(--amber); color: var(--amber); font-weight: 600; }
  .jse-box.pass { border-color: #34d399; color: #6ee7b7; flex: 1 1 220px; max-width: 320px; }
  .jse-box.stop { border-color: var(--amber); color: #fbbf24; flex: 1 1 220px; max-width: 320px; }
  .jse-arrow { color: var(--muted); font-size: 1.2rem; line-height: 1; }
  /* priority, cards, split, state */
  .jse-prio { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
  .jse-prio li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-width: none; }
  .jse-pill { flex: none; min-width: 40px; text-align: center; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--link); border: 1px solid rgba(96,165,250,.3); font-size: .85rem; }
  .jse-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; }
  .jse-pc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .jse-pc b { display: block; color: var(--head); margin-bottom: 6px; }
  .jse-pc span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .jse-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
  .jse-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
  .jse-col.open { border-color: rgba(96,165,250,.4); }
  .jse-col ul { margin: 0; padding-left: 18px; }
  .jse-col li { margin: 6px 0; }
  .jse-build li { margin: 8px 0; }
  .jse-state { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0; }
  .jse-st { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .jse-st p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .jse-st.s0 .vtag { background: rgba(52,211,153,.12); color: #6ee7b7; border-color: rgba(52,211,153,.35); }
  .jse-st.s1 .vtag { background: rgba(245,158,11,.12); color: var(--amber); border-color: rgba(245,158,11,.35); }
  .jse-cta { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  .jse-cta h2 { margin-top: 0; font-size: 1.3rem; }

  /* demo tracker */
  .jse-notice { background: var(--accent-soft); border: 1px solid rgba(96,165,250,.3); border-radius: 12px; padding: 12px 14px; color: var(--fg); max-width: none; }
  .jse-app { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
  .jse-stats { display: flex; flex-wrap: wrap; gap: 8px; }
  .jse-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; gap: 8px; align-items: baseline; }
  .jse-stat b { font-size: 1.2rem; color: var(--amber); font-variant-numeric: tabular-nums; }
  .jse-stat span { color: var(--muted); font-size: .85rem; }
  .jse-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
  .jse-tab { border: 1px solid rgba(226,232,240,.18); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
  .jse-tab[aria-selected="true"] { background: #2563eb; border-color: #3b82f6; color: #fff; }
  .jse-n { margin-left: 6px; opacity: .85; font-size: .8rem; }
  .jse-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .jse-tools input[type=search] { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border-radius: 8px; background: var(--bg); color: var(--fg); border: 1px solid rgba(226,232,240,.14); font: inherit; }
  .jse-check { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--fg); cursor: pointer; }
  .jse-list { display: flex; flex-direction: column; gap: 12px; }
  .jse-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .jse-card.p1 { border-left: 4px solid #f59e0b; }
  .jse-list.compact .jse-card { padding: 10px 14px; gap: 6px; }
  .jse-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
  .jse-co { font-weight: 700; color: var(--head); }
  .jse-meta { color: var(--muted); font-size: .85rem; margin-top: 2px; }
  .jse-chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .jse-chip { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
  .jse-chip.hot { background: rgba(244,114,60,.14); color: #fdba94; border-color: rgba(244,114,60,.35); }
  .jse-chip.warn { background: rgba(245,158,11,.12); color: #fbbf24; border-color: rgba(245,158,11,.3); }
  .jse-chip.ok { background: rgba(52,211,153,.12); color: #6ee7b7; border-color: rgba(52,211,153,.3); }
  .jse-chip.acc { background: var(--accent-soft); color: var(--link); border-color: rgba(96,165,250,.3); }
  .jse-next { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); font-size: .92rem; max-width: none; }
  .jse-links { display: flex; gap: 8px; flex-wrap: wrap; }
  .jse-links .btn[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; font-size: .85rem; padding: 6px 12px; }
  .jse-msg { display: flex; flex-direction: column; gap: 6px; }
  .jse-msg textarea { width: 100%; min-height: 150px; resize: vertical; padding: 8px 10px; border-radius: 8px; font: .8125rem/1.45 ui-monospace, Menlo, monospace; }
  .jse-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
  .jse-count { font: .75rem ui-monospace, Menlo, monospace; color: var(--muted); }
  .jse-count.over { color: #fb923c; font-weight: 700; }
  .jse-row .btn, .jse-bar .btn { padding: 6px 12px; font-size: .85rem; }
  .jse-foot { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; font-size: .88rem; color: var(--muted); }
  .jse-foot label:first-child { display: inline-flex; gap: 8px; align-items: center; }
  .jse-foot select { padding: 6px 8px; border-radius: 8px; font: inherit; }
  .jse-empty { background: var(--surface); border: 1px dashed rgba(226,232,240,.2); border-radius: 12px; padding: 22px; color: var(--muted); text-align: center; }
  .jse-add { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
  .jse-add summary { cursor: pointer; font-weight: 600; }
  .jse-form { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; max-width: none; }
  .jse-form input { padding: 8px 10px; border-radius: 8px; min-width: 0; }
  .jse-bar { display: flex; gap: 8px; flex-wrap: wrap; }
  .jse-help { margin: 0; font-size: .85rem; }
  .jse-tab:focus-visible, .jse-bar .btn:focus-visible, .jse-add summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

/* ---- JSE setup guide: journey, carousels, annotated UI illustrations, animated sequence diagrams ---- */
@media screen {
  .jg h3.jg-h3 { margin: 28px 0 4px; font-size: 1.1rem; }
  .jg .note { margin: 0 0 12px; }
  .jg-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #2563eb; color: #fff; font-weight: 700; font-size: .85rem; }
  .jg-num.big { width: 52px; height: 52px; font-size: 1.4rem; font-family: var(--font-head); }
  .jg-step.done .jg-num { background: #15803d; }
  .jg-goal { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

  /* overview cards with animated connectors */
  .jg-path { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
  .jg-path li { position: relative; max-width: none; }
  .jg-path a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
  .jg-path a:hover, .jg-path a:focus-visible { background: var(--surface-2); transform: translateY(-3px); box-shadow: 0 0 24px -4px rgba(59,130,246,.3); }
  .jg-path b { color: var(--head); font-family: var(--font-head); font-size: 1.05rem; }
  .jg-path li:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 1.3rem; animation: jgNudge 1.8s ease-in-out infinite; }
  .jg-who-m { font-size: .85rem; color: var(--muted); }
  .jg-who-m i { font-style: normal; font-weight: 700; margin-right: 4px; }
  .jg-who-m i.y { color: var(--amber); } .jg-who-m i.a { color: var(--link); }

  /* sticky progress */
  .jg-prog { position: sticky; top: var(--hh, 60px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 26px 0 0; padding: 8px 12px; background: rgba(10,13,18,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; }
  .jg-prog ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
  .jg-prog li { max-width: none; }
  .jg-prog a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; border: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: .85rem; }
  .jg-pn { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--fg); align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; }
  .jg-prog a[aria-current="step"] { color: var(--head); border-color: rgba(96,165,250,.4); background: var(--accent-soft); }
  .jg-prog a[aria-current="step"] .jg-pn { background: #2563eb; color: #fff; }
  .jg-prog a.done .jg-pn { background: #15803d; color: #fff; }
  .jg-bar { flex: 1 1 120px; min-width: 90px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
  .jg-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #34d399); border-radius: 999px; transition: width .35s; }
  .jg-prog-t { font-size: .8rem; color: var(--muted); }

  /* steps */
  .jg-step { margin-top: 56px; padding-top: 10px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hh, 60px) + 80px); }
  .jg-sh { display: flex; gap: 16px; align-items: center; margin: 14px 0 10px; }
  .jg-sh h2 { margin: 0; font-size: 1.6rem; }
  .jg-intro { max-width: 72ch; }
  .jg-who { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
  .jg-w { flex: 1 1 240px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
  .jg-w.you { border-left: 4px solid var(--amber); } .jg-w.ai { border-left: 4px solid var(--accent-hi); }
  .jg-w b { color: var(--head); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
  .jg-w span { color: var(--muted); font-size: .92rem; }
  .jg-wa { align-self: center; color: var(--muted); font-size: 1.4rem; }
  .jg-src { margin: 8px 0 4px; } .jg-src h3 { margin: 0 0 8px; font-size: .95rem; }
  .jg-src ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .jg-src li { max-width: none; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(96,165,250,.3); color: var(--fg); font-size: .88rem; }
  .jg-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 26px; }
  .jg-done, .jg-tips { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
  .jg-done h3, .jg-tips h3 { margin: 0 0 10px; font-size: 1rem; }
  .jg-done ul { list-style: none; margin: 0; padding: 0; }
  .jg-done li { max-width: none; margin: 8px 0; }
  .jg-done label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
  .jg-done input { margin-top: 3px; width: 18px; height: 18px; accent-color: #2563eb; flex: none; }
  .jg-tips ul { margin: 0 0 10px; padding-left: 18px; } .jg-tips li { margin: 6px 0; }
  .jg-next { display: inline-flex; gap: 8px; margin-top: 26px; font-weight: 600; text-decoration: none; }
  .jg-next span { display: inline-block; animation: jgBounce 1.6s ease-in-out infinite; }

  /* carousel */
  .jg-car { margin: 12px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
  .jg-slide { padding: 4px 2px 10px; outline: none; }
  .jg-slide + .jg-slide { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
  .jg-js .jg-slide + .jg-slide { margin-top: 0; padding-top: 4px; border-top: 0; }
  .jg-js .jg-slide { display: none; }
  .jg-js .jg-slide.on { display: block; animation: jgIn .38s ease both; }
  .jg-slide-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.02rem; color: var(--head); }
  .jg-st-n { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--link); border: 1px solid rgba(96,165,250,.3); align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
  .jg-slide-b { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); gap: 18px; align-items: start; }
  .jg-shot { position: relative; background: radial-gradient(120% 120% at 0% 0%, rgba(59,130,246,.14), rgba(10,13,18,0) 60%), var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 18px; min-width: 0; }
  .jg-illus { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
  .jg-vts { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
  .jg-vt { border: 1px solid rgba(226,232,240,.18); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
  .jg-vt.on { background: #2563eb; border-color: #3b82f6; color: #fff; }
  .jg-legend h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .jg-legend ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .jg-legend li { max-width: none; }
  .jg-lg { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: .9rem; line-height: 1.45; cursor: pointer; transition: background .15s, border-color .15s; }
  .jg-lg b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #1b1204; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
  .jg-lg.hl, .jg-lg:hover { background: var(--accent-soft); border-color: rgba(245,158,11,.6); }
  .jg-ctl { display: none; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
  .jg-js .jg-ctl { display: flex; }
  .jg-dots { display: flex; gap: 8px; }
  .jg-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1px solid rgba(226,232,240,.4); background: transparent; cursor: pointer; transition: transform .2s, background .2s; }
  .jg-dot.on { background: var(--amber); border-color: var(--amber); transform: scale(1.25); }
  .jg-count { font: .82rem ui-monospace, Menlo, monospace; color: var(--muted); min-width: 4.5em; text-align: center; }
  .jg-b { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(226,232,240,.2); background: var(--surface-2); color: var(--fg); font: inherit; cursor: pointer; }
  .jg-b:hover:not(:disabled) { border-color: var(--accent-hi); background: var(--accent-soft); }
  .jg-b.play { background: #2563eb; border-color: #3b82f6; color: #fff; }
  .jg-b:focus-visible, .jg-dot:focus-visible, .jg-lg:focus-visible, .jg-vt:focus-visible, .jg-sb:focus-visible, .jg-fc:focus-visible, .jg-m summary:focus-visible, .jg-seq-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* hotspots on the illustrations */
  .m-win [data-hs] { position: relative; transition: outline-color .15s; }
  .m-win [data-hs]::after { content: attr(data-hs); position: absolute; top: -10px; right: -8px; z-index: 3; width: 21px; height: 21px; border-radius: 50%; background: var(--amber); color: #1b1204; font: 700 .72rem/21px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 3px rgba(245,158,11,.25); pointer-events: none; }
  .jg-slide.on .m-win [data-hs]::after { animation: jgPulse 1.8s ease-out 2; }
  .m-win [data-hs].hl { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; cursor: pointer; }
  .m-win [data-hs].hl::after { transform: scale(1.25); }
  .m-win [data-hs] { cursor: help; }

  /* illustration atoms */
  .m-win { background: #0d1118; border: 1px solid rgba(226,232,240,.16); border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); font-size: .86rem; color: var(--fg); }
  .m-win p, .m-win li, .m-win td { max-width: none; }
  .m-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #141a24; }
  .m-bar i { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
  .m-bar span { margin-left: 8px; font-size: .75rem; color: var(--muted); }
  .m-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
  .m-body p { margin: 0; }
  .m-h { font-weight: 600; color: var(--head); }
  .m-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .m-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
  .m-tile { display: inline-flex; flex-direction: column; gap: 3px; padding: 9px 13px; border-radius: 10px; border: 1px dashed rgba(226,232,240,.25); color: var(--muted); font-size: .8rem; }
  .m-tile b { font-size: .65rem; letter-spacing: .08em; color: var(--muted); }
  .m-tile.on { border: 1px solid rgba(96,165,250,.55); background: var(--accent-soft); color: var(--fg); }
  .m-tile.on b { color: var(--link); }
  .m-btn { display: inline-block; padding: 6px 13px; border-radius: 8px; background: #2563eb; color: #fff; font-size: .8rem; font-weight: 600; }
  .m-btn.ghost { background: transparent; border: 1px solid rgba(226,232,240,.25); color: var(--fg); }
  .m-btn.ok { background: rgba(52,211,153,.16); border: 1px solid rgba(52,211,153,.45); color: #6ee7b7; }
  .m-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); font-size: .75rem; }
  .m-chip.ok { background: rgba(52,211,153,.12); color: #6ee7b7; border-color: rgba(52,211,153,.3); }
  .m-chip.warn { background: rgba(245,158,11,.12); color: #fbbf24; border-color: rgba(245,158,11,.3); }
  .m-chip.hot { background: rgba(244,114,60,.14); color: #fdba94; border-color: rgba(244,114,60,.35); }
  .m-chip.acc, .m-chip.on { background: var(--accent-soft); color: var(--link); border-color: rgba(96,165,250,.35); }
  .m-chat { display: flex; flex-direction: column; gap: 9px; }
  .m-bub { max-width: 90%; padding: 10px 12px; border-radius: 12px; line-height: 1.45; }
  .m-bub.ai { background: var(--surface-2); align-self: flex-start; border-top-left-radius: 4px; }
  .m-bub.me { background: rgba(37,99,235,.28); align-self: flex-end; border-top-right-radius: 4px; }
  .m-quick { display: flex; flex-wrap: wrap; gap: 6px; }
  .m-fact { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; background: rgba(255,255,255,.02); }
  .m-ft { display: flex; gap: 10px; align-items: flex-start; }
  .m-sec { flex: none; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); margin-top: 2px; }
  .m-ev { font-size: .76rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .m-split { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
  .m-side { border-right: 1px solid var(--line); padding-right: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .m-side ul { list-style: none; margin: 0; padding: 0; width: 100%; }
  .m-side li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: var(--muted); font-size: .82rem; }
  .m-side li i { font-style: normal; color: var(--fg); }
  .m-side li.ok::before { content: "✓"; color: #6ee7b7; margin-right: 6px; }
  .m-side li.ok { justify-content: flex-start; } .m-side li.now { color: var(--amber); font-weight: 700; justify-content: flex-start; } .m-side li.now::before { content: "▸"; margin-right: 6px; }
  .m-main { min-width: 0; }
  .m-toast { border: 1px solid rgba(245,158,11,.5); background: rgba(245,158,11,.08); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
  .m-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .m-opt { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 5px; }
  .m-opt b { color: var(--head); } .m-opt span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
  .m-opt.rec { border-color: rgba(96,165,250,.6); background: var(--accent-soft); }
  .m-doc { background: #f8fafc; color: #0f172a; border-radius: 8px; padding: 16px 18px; font-family: Georgia, "Times New Roman", serif; font-size: .78rem; display: flex; flex-direction: column; gap: 6px; }
  .m-doc h5 { margin: 8px 0 2px; font: 700 .68rem system-ui, sans-serif; letter-spacing: .08em; color: #1e3a8a; border-bottom: 1px solid #cbd5e1; padding-bottom: 2px; }
  .m-dh { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; padding-bottom: 4px; }
  .m-dh b { font-size: 1rem; letter-spacing: .05em; }
  .m-doc p { margin: 0; color: #0f172a; }
  .m-line { height: 6px; border-radius: 3px; background: #cbd5e1; } .m-line.w90 { width: 90%; } .m-line.w70 { width: 70%; }
  .m-kw { font-size: .72rem; line-height: 1.5; }
  .m-job { display: flex; flex-direction: column; gap: 2px; } .m-job span { color: #334155; }
  .m-job ul { margin: 4px 0 0; padding-left: 16px; } .m-job li { margin: 2px 0; color: #0f172a; }
  .m-job em { font: 700 .6rem system-ui, sans-serif; color: #1d4ed8; background: #dbeafe; padding: 1px 5px; border-radius: 4px; margin-left: 4px; font-style: normal; }
  .m-checks p { font-weight: 600; margin-bottom: 6px; color: var(--head); }
  .m-checks ul { list-style: none; margin: 0; padding: 0; }
  .m-checks li { padding: 3px 0; }
  .m-checks li.ok::before { content: "✓"; color: #6ee7b7; margin-right: 8px; font-weight: 700; }
  .m-callout { border: 1px solid rgba(96,165,250,.4); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
  .m-tbl { width: 100%; border-collapse: collapse; }
  .m-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--fg); }
  .m-tbl tr.gap td { background: rgba(245,158,11,.07); }
  .m-funnel { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
  .m-funnel span { display: flex; flex-direction: column; color: var(--muted); font-size: .75rem; }
  .m-funnel b { font-size: 1.15rem; color: var(--head); }
  .m-skips { display: flex; flex-wrap: wrap; gap: 6px; }
  .m-note { color: var(--muted); font-size: .8rem; }
  .m-gate { border-radius: 10px; padding: 12px; line-height: 1.5; border: 1px solid; }
  .m-gate b { font-size: 1.4rem; margin-right: 6px; }
  .m-gate.pass { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.08); }
  .m-gate.pass b { color: #6ee7b7; }
  .m-gate.stop { border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.08); }
  .m-gate.stop b { color: #fbbf24; }
  .m-var { display: flex; flex-direction: column; gap: 12px; }
  .jg-js .m-var { display: none; } .jg-js .m-var.on { display: flex; animation: jgIn .3s ease both; }
  .m-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
  .m-ch { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .m-msgb { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; }
  .m-fake { height: 7px; border-radius: 4px; background: rgba(226,232,240,.18); } .m-fake.s { width: 60%; }
  .m-msgb em { align-self: flex-end; font: normal .72rem ui-monospace, Menlo, monospace; color: var(--muted); }
  .m-sel { padding: 5px 10px; border: 1px solid rgba(226,232,240,.25); border-radius: 8px; font-size: .8rem; }
  .m-cb { color: var(--muted); font-size: .8rem; }

  /* UML sequence diagrams */
  .jg-seq { margin: 14px 0 0; }
  .jg-seq-t { font-weight: 600; color: var(--head); margin-bottom: 8px; }
  .jg-seq-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
  .seq-svg { display: block; width: 100%; height: auto; color: #94a3b8; }
  .seq-svg text { fill: var(--fg); font: 13px Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
  .seq-actor rect { fill: var(--surface-2); stroke: rgba(226,232,240,.3); stroke-width: 1.2; }
  .seq-actor text { fill: #fff; font-weight: 700; }
  .seq-actor.you rect { stroke: var(--amber); } .seq-actor.ai rect { stroke: #60a5fa; } .seq-actor.store rect { stroke: #34d399; } .seq-actor.ext rect { stroke: #94a3b8; }
  .seq-life { stroke: rgba(226,232,240,.22); stroke-dasharray: 4 6; }
  .seq-frame rect { fill: rgba(96,165,250,.05); stroke: rgba(96,165,250,.4); stroke-dasharray: 5 4; }
  .seq-frame text { fill: #93c5fd; font-size: 11px; font-weight: 600; }
  .seq-arrow { stroke: currentColor; stroke-width: 1.8; fill: none; }
  .seq-msg { opacity: .2; color: #94a3b8; transition: opacity .35s; }
  .seq-msg.seen { opacity: 1; }
  .seq-msg.now { color: var(--amber); }
  .seq-msg.now text { fill: #fde68a; font-weight: 600; }
  .seq-msg.now .seq-arrow { stroke-dasharray: 7 5; animation: jgDash .7s linear infinite; }
  .seq-pk { fill: var(--amber); opacity: 0; filter: drop-shadow(0 0 5px rgba(245,158,11,.9)); }
  .jg-swipe { display: none; margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
  .jg-seq-ctl { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; flex-wrap: wrap; }
  .jg-js .jg-seq-ctl { display: flex; } .jg-seq-ctl { display: none; }
  .jg-seq-n { font: .82rem ui-monospace, Menlo, monospace; color: var(--muted); margin-left: 6px; }
  .jg-seq-cap { margin: 10px 0 0; padding: 10px 12px; min-height: 3.4em; border-left: 3px solid var(--amber); background: var(--surface); border-radius: 0 10px 10px 0; line-height: 1.5; }
  .jg-js .jg-seq-cap { display: block; } .jg-seq-cap { display: none; }
  .jg-list { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
  .jg-list summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
  .jg-list ol { margin: 10px 0 4px; padding-left: 20px; } .jg-list li { margin: 6px 0; font-size: .9rem; }

  /* status journey */
  .jg-states { margin-top: 64px; }
  .jg-sflow { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 0; }
  .jg-smain, .jg-sside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .jg-sside { padding-top: 12px; border-top: 1px dashed var(--line); }
  .jg-sa { color: var(--muted); }
  .jg-sb { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(226,232,240,.22); background: var(--surface); color: var(--fg); font: inherit; font-size: .88rem; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
  .jg-sb:hover { border-color: var(--accent-hi); }
  .jg-sb.on { background: #2563eb; border-color: #3b82f6; color: #fff; transform: scale(1.06); box-shadow: 0 0 22px -3px rgba(59,130,246,.7); }
  .jg-sd { margin: 14px 0 10px; padding: 12px 14px; min-height: 3.2em; border-left: 3px solid var(--amber); background: var(--surface); border-radius: 0 10px 10px 0; }

  /* mistakes */
  .jg-trouble { margin-top: 64px; }
  .jg-fcs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
  .jg-fc { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(226,232,240,.2); background: var(--surface); color: var(--fg); font: inherit; font-size: .88rem; cursor: pointer; }
  .jg-fc.on { background: #2563eb; border-color: #3b82f6; color: #fff; }
  .jg-ms { display: grid; gap: 8px; }
  .jg-m[hidden] { display: none; }
  .jg-m { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0; }
  .jg-m summary { cursor: pointer; padding: 13px 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-weight: 600; color: var(--head); list-style-position: inside; }
  .jg-mc { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--link); font-weight: 700; }
  .jg-mb { padding: 0 16px 14px; }
  .jg-mb p { margin: 8px 0; }
  .jg-fix { border-left: 3px solid #34d399; padding-left: 12px; }

  @keyframes jgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes jgPulse { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,.7); } 70% { box-shadow: 0 0 0 12px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
  @keyframes jgNudge { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(6px, -50%); } }
  @keyframes jgBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  @keyframes jgDash { to { stroke-dashoffset: -24; } }

  @media (max-width: 1000px) { .jg-pt { display: none; } .jg-prog a { padding: 4px; } }
  @media (max-width: 900px) {
    .jg-slide-b { grid-template-columns: minmax(0, 1fr); }
    .jg-path li:not(:last-child)::after { display: none; }
    .jg-swipe { display: block; }
  }
  @media (max-width: 640px) {
    .jg-path li:not(:last-child)::after { display: block; content: "↓"; right: auto; left: 50%; top: auto; bottom: -27px; transform: translateX(-50%); animation: none; }
    .jg-pt { display: none; }
    .jg-prog a { padding: 4px; }
    .m-split { grid-template-columns: minmax(0, 1fr); } .m-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
    .jg-sh h2 { font-size: 1.35rem; } .jg-num.big { width: 44px; height: 44px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .jg-slide.on, .m-var.on { animation: none !important; }
    .jg-slide.on .m-win [data-hs]::after, .jg-path li::after, .jg-next span, .seq-msg.now .seq-arrow { animation: none !important; }
    .seq-msg, .jg-bar i, .jg-sb, .jg-dot { transition: none; }
  }
}

/* ---- JSE page and demo: highlighted demo button, job links, sample ad ---- */
@media screen {
  .jse-herobtns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 8px; }
  .btn.jse-demo-btn { padding: 15px 30px; font-size: 1.1rem; font-weight: 700; background: linear-gradient(135deg, #1d4ed8, #2563eb); box-shadow: 0 0 0 0 rgba(59,130,246,.55), 0 10px 28px -8px rgba(37,99,235,.8); animation: jseGlow 2.4s ease-out infinite; }
  .btn.jse-demo-btn:hover { box-shadow: 0 0 0 4px rgba(59,130,246,.3), 0 14px 32px -8px rgba(37,99,235,.9); }
  .jse-links a.btn { padding: 6px 12px; font-size: .85rem; text-decoration: none; }
  .jse-links a.btn.ghost { background: transparent; color: var(--fg); border: 1px solid rgba(226,232,240,.25); }
  .jse-ad { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
  .jse-adtext { margin: 0; width: 100%; white-space: pre-wrap; word-break: break-word; font: .92rem/1.6 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
  @keyframes jseGlow { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,.55), 0 10px 28px -8px rgba(37,99,235,.8); } 70% { box-shadow: 0 0 0 14px rgba(59,130,246,0), 0 10px 28px -8px rgba(37,99,235,.8); } 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0), 0 10px 28px -8px rgba(37,99,235,.8); } }
  @media (prefers-reduced-motion: reduce) { .btn.jse-demo-btn { animation: none; } }
}

/* ---- Copy for AI, full description, tracker/AI flow blocks ---- */
@media screen {
  .jse-links button.btn { padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; border: 0; cursor: pointer; }
  .jse-links button.btn.ghost { background: transparent; color: var(--fg); border: 1px solid rgba(226,232,240,.25); }
  .jse-jd { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
  .jse-jd summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
  .jse-jd pre { margin: 10px 0 0; white-space: pre-wrap; word-break: break-word; font: .85rem/1.5 var(--font-body); max-height: 320px; overflow: auto; color: var(--fg); }
  .jse-co { margin-top: 34px; }
  .jse-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
  .jse-lane2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
  .jse-lane2 b { color: var(--head); } .jse-lane2 span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .jse-fsteps { margin: 10px 0 14px; padding-left: 20px; } .jse-fsteps li { margin: 6px 0; }
  .jse-state2, .jg-conn { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 14px 0; }
  .jse-st2, .jg-cn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
  .jse-st2 p, .jg-cn p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .jg-cn b { color: var(--head); }
  .jse-st2.now .vtag, .jg-cn.now .vtag { background: rgba(52,211,153,.12); color: #6ee7b7; border-color: rgba(52,211,153,.35); }
  .jse-st2.plan, .jg-cn.plan { border-style: dashed; border-color: rgba(245,158,11,.5); }
  .jse-st2.plan .vtag, .jg-cn.plan .vtag { background: rgba(245,158,11,.12); color: var(--amber); border-color: rgba(245,158,11,.35); }
}

/* ---- who holds which data ---- */
@media screen {
  .jg-own { margin: 4px 0 8px; padding: 10px 14px; border-left: 3px solid #34d399; background: var(--surface); border-radius: 0 10px 10px 0; font-size: .92rem; line-height: 1.55; }
  .jg-own b { color: #6ee7b7; }
  .jg-hold { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 14px 0 8px; }
  .jg-hc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
  .jg-hc.you { border-color: rgba(52,211,153,.5); }
  .jg-hc h3 { margin: 0 0 8px; font-size: 1rem; }
  .jg-hc ul { margin: 0; padding-left: 18px; } .jg-hc li { margin: 6px 0; }
  .jg-hx { align-self: center; color: var(--muted); font-size: 1.4rem; }
  @media (max-width: 760px) { .jg-hold { grid-template-columns: minmax(0, 1fr); } .jg-hx { justify-self: center; transform: rotate(90deg); } }
}

/* ---- 20-card limit notice ---- */
@media screen {
  .jse-limit { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(248,113,113,.7); background: rgba(220,38,38,.16); color: #fecaca; font-weight: 600; line-height: 1.5; }
  .jse-limit b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #dc2626; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
  .jse-limit span { min-width: 0; }
}

/* ---- consent banner (Google Analytics) ---- */
@media screen {
  .cc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(18,22,31,.97); border-top: 1px solid rgba(226,232,240,.18); box-shadow: 0 -12px 32px -12px rgba(0,0,0,.7); }
  .cc-t { flex: 1 1 420px; min-width: 0; max-width: 780px; }
  .cc-t b { display: block; color: var(--head); margin-bottom: 4px; }
  .cc-t p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--fg); }
  .cc-b { display: flex; gap: 10px; flex: 0 0 auto; }
  .cc-b button { padding: 10px 20px; border-radius: 10px; border: 1px solid rgba(226,232,240,.4); background: transparent; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
  .cc-b button:hover { background: rgba(59,130,246,.12); border-color: var(--accent-hi); }
  .cc-b button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}
@media screen {
  .cc-box { margin-top: 28px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .cc-box h2 { margin: 0 0 8px; font-size: 1.1rem; }
  .cc-box p { margin: 0 0 12px; }
  .cc-box .cc-b { flex-wrap: wrap; }
}

/* Hosted tracker guide (/tools/job-search-engine/hosted/) */
.hp-steps { padding-left: 1.3em; } .hp-steps li { margin: 8px 0; }
.hp-blocks { display: grid; gap: 10px; margin: 14px 0; }
.hp-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.hp-block summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; }
.hp-block summary em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.hp-actions { margin: 0 0 10px; }
.hp-pre { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: .78rem/1.5 ui-monospace, Menlo, monospace; }

.hp-accent { color: var(--accent); font-weight: 700; }
.hp-shot { margin: 10px 0 4px; max-width: 260px; }
.hp-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.hp-shot figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.hp-block > p { margin: 0 0 14px; color: var(--muted); }

/* ===== Blog visuals: covers, post cards, author box, related posts, ```diagram figures ===== */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin: 18px 0 8px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.pcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.pcard img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #0b1020; }
.pcard .pc-b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.pcard strong { font-weight: 700; line-height: 1.3; color: var(--head, var(--fg)); }
.pcard .pc-b > span:not(.note) { color: var(--muted); font-size: .95rem; }
.pcard.sm .pc-b > span:not(.note) { display: none; }
.pcard.sm strong { font-size: .98rem; }
.related { margin-top: 40px; }
.related h2 { font-size: 1.3rem; }
.post .cover { margin: 6px 0 22px; }
.post .cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--radius); border: 1px solid var(--line); background: #0b1020; }
.author-box { display: flex; gap: 14px; align-items: flex-start; margin: 26px 0 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box div { min-width: 0; }
.author-box p { margin: 0 0 6px; }
.author-box .ab-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; margin: 0; }

.dg { margin: 26px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 100%; overflow-x: auto; }
.dg-title { font-weight: 700; font-size: 1.02rem; margin: 0 0 14px; color: var(--head, var(--fg)); }
.dg figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.dg strong { color: var(--head, var(--fg)); }
.dg span, .dg small { color: var(--muted); }
.dg-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #0a0d12; font-size: .85rem; font-weight: 800; flex: none; }
/* steps */
.dg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: none; }
.dg-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--surface-2, var(--accent-soft)); max-width: none; }
.dg-steps li span { font-size: .9rem; line-height: 1.45; }
/* compare */
.dg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dg-compare > div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2, var(--accent-soft)); font-size: .95rem; min-width: 0; }
.dg-compare .dg-h { font-weight: 700; color: var(--head, var(--fg)); background: transparent; border-bottom: 2px solid var(--line); border-radius: 0; }
.dg-tone .dg-h.dg-l { border-color: var(--amber, #f59e0b); }
.dg-tone .dg-h.dg-r { border-color: var(--accent); }
.dg-tone > .dg-l:not(.dg-h) { color: var(--muted); }
/* bars */
.dg-bars { display: grid; gap: 10px; }
.dg-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 12px; align-items: center; }
.dg-lab { font-size: .93rem; min-width: 0; }
.dg-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2, var(--accent-soft)); }
.dg-track i { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, var(--accent), var(--amber, #f59e0b)); }
.dg-val { font-weight: 700; font-size: .92rem; white-space: nowrap; color: var(--head, var(--fg)); }
.dg-val small { display: block; font-weight: 400; white-space: normal; }
/* matrix */
.dg-matrix { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.dg-y { display: grid; place-items: center; }
.dg-y span { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: .85rem; }
.dg-q4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dg-q { padding: 14px; border-radius: 12px; background: var(--surface-2, var(--accent-soft)); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dg-q span { font-size: .9rem; }
.dg-q.on { outline: 2px solid var(--accent); }
.dg-x { grid-column: 2; text-align: center; color: var(--muted); font-size: .85rem; }
/* ladder */
.dg-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; align-items: end; }
.dg-ladder li { max-width: none; }
.dg-step { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px 12px 4px 4px; min-height: calc(90px + var(--i) * 46px); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) calc(12% + var(--i) * 10%), transparent), var(--surface-2, var(--accent-soft))); border-top: 3px solid var(--accent); }
.dg-step span { font-size: .88rem; line-height: 1.4; }
/* cycle */
.dg-cycle { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
.dg-ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.dg-node { fill: var(--surface-2, var(--accent-soft)); stroke: var(--accent); stroke-width: 2; }
.dg-arrow { fill: none; stroke: var(--amber, #f59e0b); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dg-t { fill: var(--head, var(--fg)); font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.dg-c { fill: var(--accent); font-size: 15px; font-weight: 700; text-anchor: middle; }
/* cards */
.dg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.dg-cards li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2, var(--accent-soft)); max-width: none; }
.dg-cards li div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dg-cards li span { font-size: .9rem; line-height: 1.45; }
.dg-m-cross .dg-n { background: var(--amber, #f59e0b); }
.dg-m-check .dg-n { background: #22c55e; }
/* groups */
.dg-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dg-g { padding: 12px; border-radius: 12px; background: var(--surface-2, var(--accent-soft)); min-width: 0; }
.dg-gh { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.dg-gh b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--accent); color: #0a0d12; font-size: .85rem; font-weight: 800; }
.dg-g ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dg-g li { font-size: .84rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: none; }
/* quote */
.dg-quote { margin: 0; padding: 6px 4px 6px 54px; position: relative; border: 0; color: var(--head, var(--fg)); }
.dg-quote::before { content: "\201C"; position: absolute; left: 0; top: -14px; font-size: 5rem; line-height: 1; color: var(--accent); font-family: Georgia, serif; }
.post .dg-quote p { font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin: 0 0 8px; max-width: none; }
.dg-quote cite { color: var(--muted); font-style: normal; font-size: .9rem; }
/* stats */
.dg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.dg-stats div { padding: 14px; border-radius: 12px; background: var(--surface-2, var(--accent-soft)); display: flex; flex-direction: column; gap: 4px; }
.dg-stats b { font-size: 1.8rem; line-height: 1.1; color: var(--accent); }
.dg-stats span { font-size: .88rem; }
@media (max-width: 560px) {
  .dg { padding: 14px; }
  .dg-ladder { grid-template-columns: 1fr; }
  .dg-step { min-height: 0; margin-left: calc(var(--i) * 14px); border-radius: 10px; }
  .dg-row { grid-template-columns: 1fr auto; }
  .dg-row .dg-track { grid-column: 1 / -1; grid-row: 2; }
  .dg-q4 { grid-template-columns: 1fr; }
  .dg-matrix { grid-template-columns: 1fr; } .dg-y span { writing-mode: horizontal-tb; transform: none; } .dg-x { grid-column: 1; }
  .author-box { flex-direction: column; }
}

/* ===== ```visual infographics (scripts/blog-infographics.mjs) ===== */
.vx { margin: 28px 0; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--head, var(--fg)); }
.vx svg { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; overflow: visible; }
.vx figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; text-align: center; }
.vx .vx-l { fill: var(--head, var(--fg)); font-size: 18.4px; font-weight: 700; }
.vx .vx-sm { font-size: 17.2px; } .vx .vx-xs { font-size: 15.5px; }
.vx .vx-t { fill: var(--muted); font-size: 16.1px; }
.vx .vx-t.vx-xs { font-size: 14.4px; }
.vx .vx-fg { fill: var(--fg); } .vx .vx-dim { opacity: .85; }
.vx .vx-hl { fill: var(--amber, #f59e0b); }
.vx .vx-n { fill: var(--head, var(--fg)); font-size: 17px; font-weight: 800; }
.vx .vx-big { fill: var(--head, var(--fg)); font-size: 34px; font-weight: 800; }
.vx .vx-mk { font-size: 15px; font-weight: 800; }
.vx .vx-ic { color: var(--head, var(--fg)); }
@media (max-width: 560px) { .vx { padding: 12px 2px; margin-left: -10px; margin-right: -10px; } .vx .dg-title, .vx figcaption { padding: 0 10px; } }
.post img.pimg { display: block; width: auto; max-width: 100%; max-height: 560px; height: auto; margin: 22px auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* ===== Modern web pass (2026-11-26, GoogleChrome/modern-web-guidance) ===== */
html { scroll-padding-top: 92px; }
@media (max-width: 640px) { html { scroll-padding-top: 140px; } }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #0a0d12; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
h2, h3, .dg-title, .pcard strong, .lead { text-wrap: balance; }
.post p, .post li, .post blockquote { text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (forced-colors: active) { input:focus, textarea:focus, select:focus, .opt:focus-visible { outline: 2px solid Highlight; } }
.hp-block summary::before, .jg-m summary::before { content: "\203A"; display: inline-block; flex: none; color: var(--accent); font-weight: 800; transition: transform .2s ease; }
.hp-block[open] > summary::before, .jg-m[open] > summary::before { transform: rotate(90deg); }
.hp-block summary { justify-content: flex-start; } .hp-block summary em { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
:root { accent-color: var(--accent); }

/* ===== Challenge AI hub cards and Managerial DNA (Express) pilot ===== */
.tool-card { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tool-card h2, .tool-h { margin-top: 0; }
.tool-tag { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mx { max-width: 46rem; }
/* While the app loads, keep the space of the first-visit start panel (364 px on a 412 px phone, 340 px on desktop), so the
   text below does not jump down when it appears (PageSpeed CLS 0.148 on mobile, 30 Nov 2026). */
#mx:has(> p.note:only-child) { min-height: 23rem; }
@media (min-width: 700px) { #mx:has(> p.note:only-child) { min-height: 21.5rem; } }
.mx-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.mx-form label { flex-basis: 100%; font-weight: 600; }
.mx-form input { flex: 1 1 14rem; min-width: 0; padding: 10px 12px; border-radius: 10px; font: inherit; }
.mx-err { color: var(--amber, #f59e0b); font-weight: 600; }
.mx-rec { margin: 10px 0 20px; } .mx-rec summary { cursor: pointer; color: var(--accent); }
.mx-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.mx-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mx-actions { display: flex; gap: 12px; align-items: center; }
.mx-confirm { margin: 8px 0 12px; padding: 12px 14px; border: 1px solid var(--amber, #f59e0b); border-radius: 12px; }
.mx-panel { padding: 16px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.mx-code { font-size: 1.05rem; padding: 6px 10px; border-radius: 8px; background: var(--surface-2, var(--accent-soft)); word-break: break-all; }
.mx-progress { margin: 6px 0 18px; }
.mx-qof { font-weight: 700; margin: 0 0 6px; }
.mx-metrics { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.mx-metrics div { display: flex; gap: 6px; } .mx-metrics dt { color: var(--muted); } .mx-metrics dd { margin: 0; font-weight: 700; }
.mx-q fieldset { border: 0; padding: 0; margin: 0; }
.mx-q legend { font-size: 1.15rem; font-weight: 700; line-height: 1.45; margin-bottom: 6px; color: var(--head, var(--fg)); }
.mx-opts { display: grid; gap: 8px; margin: 10px 0; }
.mx-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.mx-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mx-opt:has(input:disabled) { opacity: .55; cursor: default; }
.mx-opt input { margin-top: .3em; width: 1.1rem; height: 1.1rem; flex: none; }
.mx-rank { padding-left: 1.6em; display: grid; gap: 8px; margin: 10px 0; }
.mx-rank li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.mx-rank li.in { border-color: var(--accent); }
.mx-rank li.out { opacity: .7; }
.mx-rbtns { display: flex; gap: 4px; flex: none; }
.mx-rbtns button { font-size: 1.15rem; min-width: 2.4rem; min-height: 2.4rem; border: 1px solid var(--line); border-radius: 8px; }
.mx-own { margin: 14px 0 4px; } .mx-own label { display: block; font-weight: 600; margin-bottom: 6px; } .mx-own textarea { min-height: 4.5rem; } .mx-own .note { margin: 4px 0 0; }
.mx-unsure label { font-weight: 600; } .mx-unsure input { width: 1.05rem; height: 1.05rem; vertical-align: -2px; }
.mx-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.mx-side { margin-top: 18px; color: var(--muted); }
.mx-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 10px; margin: 14px 0; }
.mx-head div { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mx-head dt { color: var(--muted); font-size: .9rem; } .mx-head dd { margin: 4px 0 0; font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.mx-find { padding-left: 1.2em; } .mx-find li { margin: 6px 0; }
.mx-table { overflow-x: auto; margin: 18px 0; }
.mx-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.mx-table caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
.mx-table th, .mx-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.mx-table tr.off { color: var(--muted); }
.mx-cert-block { margin: 26px 0; }
.mx-cert-top { margin-top: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }   /* M5.4: the final result leads the report */
.mx-cert { padding: 22px; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.mx-cert-t { font-weight: 800; letter-spacing: .03em; color: var(--accent); margin: 0 0 6px; }
.mx-cert-n { font-size: 1.5rem; font-weight: 800; margin: 0; color: var(--head, var(--fg)); }
.mx-q legend:focus, #mx-rep:focus, #mx-title:focus { outline: none; }
.mx-breadth { font-size: 1.3rem; font-weight: 800; color: var(--head, var(--fg)); margin: 6px 0 16px; }
.mx-strengths { display: grid; gap: 10px; padding-left: 1.3em; } .mx-strengths li p { margin: 0 0 4px; }
.mx-summary { font-size: 1.05rem; line-height: 1.55; margin: 0 0 12px; }
.mx-dev { padding: 12px 16px; border-left: 3px solid var(--amber, #f59e0b); background: var(--surface); border-radius: 0 12px 12px 0; }
.mx-tech { margin: 22px 0; } .mx-tech summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.mx-card svg { display: block; width: 100%; height: auto; max-width: 720px; border-radius: 14px; }
.mx-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 12px; }
.mx-pills li { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .9rem; font-weight: 600; }
.mx-teaser { margin-top: 40px; }
.mx-teaser ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.mx-teaser li { padding: 16px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; }
.mx-teaser h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mx-tones { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mx-tones legend { float: left; margin-right: 12px; font-weight: 700; }
/* M5.2: the title styles as a pill toggle; the native radio stays for keyboard and screen readers (visually hidden) */
.mx-tones label { position: relative; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .95rem; line-height: 1.4; }
.mx-tones label:hover { border-color: var(--accent); }
.mx-tones label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.mx-tones label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mx-tones input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mx-share { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--line, rgba(255,255,255,.12)); }
.mx-share h4 { margin: 16px 0 8px; font-size: 1.05rem; }
.mx-share-url code { overflow-wrap: anywhere; }
.mx-li { margin: 8px 0 16px; padding: 12px 16px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; }
.mx-li h5 { margin: 12px 0 6px; font-size: .95rem; }
.mx-li textarea { width: 100%; box-sizing: border-box; font: inherit; }
.r-card { display: block; width: 100%; height: auto; max-width: 720px; border-radius: 14px; }
/* M5.1: the public result page. Card and Start box side by side on desktop, stacked on phones (heading, card, Start). */
.r-page .wrap { max-width: 1120px; }
.r-h1 { font-size: clamp(1.375rem, 2.4vw, 1.625rem); line-height: 1.25; margin: 4px 0 16px; }
.r-grid { display: grid; gap: 20px; align-items: center; }
.r-grid .r-cta { margin: 0; }
.r-cta h2 { font-size: 1.25rem; line-height: 1.3; }
.r-cta ul { margin: 8px 0 16px; padding-left: 1.2em; }
.r-cta .btn { display: inline-block; }
.r-foot { margin-top: 28px; }
@media (min-width: 900px) { .r-grid { grid-template-columns: 58fr 42fr; gap: 28px; } }
.r-items { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.r-items li { padding: 12px 16px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; }
.r-cta { margin-top: 32px; }
.mx-consult { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; background: var(--surface); }
.mx-consult h3 { margin-top: 0; }
.mx-v2-slot { margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---- Express owner debug panel (testing aid; Worker flag EXPRESS_DEBUG, see debugPanel() in express.js). Desktop only.
   Left of the question: live "what will change" box (closest) and the last answer's impact; right: next questions. */
.mx-dbg { display: none; }
@media (min-width: 1280px) {
  .mx-dbg { display: block; position: fixed; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; z-index: 5; font-size: .82rem; line-height: 1.4; }
  .mx-dbg-l { right: calc(50% + 23rem + 20px); width: min(616px, calc(50vw - 23rem - 36px));   /* .mx is 46rem wide and centred */
    display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
  .mx-dbg-r { left: calc(50% + 23rem + 20px); width: min(380px, calc(50vw - 23rem - 36px)); }
  .mx-dbg-box, .mx-dbg-r { padding: 12px 14px; border: 1px dashed var(--amber, #f59e0b); border-radius: 12px; background: var(--surface); }
  .mx-dbg-box { flex: 1 1 240px; max-width: 300px; box-sizing: border-box; }   /* two side by side from ~1840px, stacked below */
  .mx-dbg-now { border-style: solid; }
  .mx-dbg p { margin: 0 0 6px; } .mx-dbg ol { margin: 4px 0; padding-left: 1.3em; } .mx-dbg li { margin: 3px 0; }
  .mx-dbg-h { font-weight: 800; letter-spacing: .04em; color: var(--amber, #f59e0b); }
  .mx-dbg dl { margin: 0; display: grid; gap: 2px; } .mx-dbg dl div { display: flex; justify-content: space-between; gap: 8px; }
  .mx-dbg dt { color: var(--muted); } .mx-dbg dd { margin: 0; font-weight: 600; text-align: right; }
  .mx-dbg-t { margin: 8px 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .mx-dbg-hi dd, p.mx-dbg-hi { color: var(--accent); } .mx-dbg-lo dd, p.mx-dbg-lo { color: var(--amber, #f59e0b); }
  .mx-dbg-stem { font-weight: 700; }
  .mx-dbg .off { opacity: .8; } .mx-dbg .off .off { opacity: 1; } .mx-dbg-sec.off > p:first-child b { color: var(--muted); }
}

/* M5.7: progress bar during the test, folded optional text, start buttons and badges on phones */
.mx-bar { height: 8px; border-radius: 999px; background: var(--line, #e2e8f0); overflow: hidden; margin: 6px 0 14px; }
.mx-bar > span { display: block; height: 100%; background: var(--accent, #2563eb); border-radius: inherit; transition: width .3s ease; }
details.mx-own > summary { cursor: pointer; color: var(--accent, #2563eb); font-weight: 600; margin: 6px 0; }
details.mx-own[open] > summary { margin-bottom: 8px; }
.mx .tool-tag { white-space: nowrap; }
@media (max-width: 520px) { .mx-start .btn { display: block; width: 100%; text-align: center; margin: 10px 0 0; } }
.mx-in #mx-title { font-size: 1.6rem; margin: 4px 0 10px; }
.mx-in .mx-q { max-width: none; }
.mx-in .mx-opt { padding: 9px 14px; }
.mx-side .mx-unsure { display: inline; margin: 0; }
.mx.mx-in:has(.mx-q) { max-width: 55rem; }   /* M5.7: wider question screen, fewer wrapped options */
/* M5.8: start buttons in a flex row (no indent on wrap); benefit pills read as text, not links; halfway note */
.mx-start { display: flex; flex-wrap: wrap; gap: 10px; }
.mx-start .btn, .mx-start .btn.ghost { margin: 0; }
.mx-pills li { color: var(--fg, #e2e8f0); }
.mx-half { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-weight: 600; }
.mx-unlock { margin-left: 10px; font-size: .85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); white-space: nowrap; }
.mx-unlock.on { color: var(--accent); }
.mx-share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-share-row .btn, .mx-share-row .btn.ghost { margin: 0; }
