.polo #diagnostic {
  --night:#071925; --ink:#122e3c; --cream:#fff9ef; --muted:#41575e;
  --thread:linear-gradient(102deg,#e8b572,#dfadc4 39%,#b6addd 69%,#94cfc4);
  font: 16px/1.5 "Avenir Next", Avenir, system-ui, sans-serif;
  width:100%;max-width:none;margin:0;padding:0;

  button,a {font:inherit;-webkit-tap-highlight-color:transparent}
  button {cursor:pointer}
  button:focus-visible,a:focus-visible {outline:3px solid #297494;outline-offset:4px}
  [hidden]{display:none!important}
  .sheet {
    position:relative;display:grid;align-items:center;min-height:100vh;min-height:100svh;
    color-scheme:light;color:var(--ink);background:linear-gradient(117deg,#fffaf2,#f6f1e7);
    border-block:4px solid transparent;border-image:var(--thread) 1;
  }
  .rail {padding:17px clamp(22px,3.7vw,55px);border-bottom:1px solid #29455122}
  .rail ol {display:flex;align-items:center;gap:0;padding:0;list-style:none;margin:0;max-width:440px}
  .rail li {display:flex;gap:8px;align-items:center;color:#54646a;font-size:.82rem;font-weight:650}
  .rail li+li::before {content:"";height:1px;width:clamp(22px,4vw,56px);background:#b7c1ba;margin-inline:8px 2px}
  .rail li[aria-current] {color:var(--ink);font-weight:800}
  .rail li::after {content:"";order:-1;width:7px;height:7px;border-radius:50%;border:1px solid #8d9a98}
  .rail li+li::before {order:-2}
  .rail li[aria-current]::after {background:#e8b871;box-shadow:0 0 0 3px #f0ddb4;border-color:#c0924d}
  .rail li.done::after {background:#9ac8bc;border-color:#678e86}
  .content {box-sizing:border-box;width:100%;max-width:1600px;margin-inline:auto;padding:clamp(38px,7vh,84px) clamp(30px,6vw,98px)}
  #pd-current-question {background:none;color:var(--ink);-webkit-text-fill-color:currentColor;animation:none;max-width:23ch;letter-spacing:-.047em;margin:0;line-height:1.1;font-size:clamp(38px,5vw,84px);font-weight:775;text-wrap:balance}
  #pd-current-question:focus {outline:none}
  .options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.6vw,28px);margin-top:clamp(26px,5vh,60px)}
  /* Small interface scenes sit directly on each tinted choice. */
  .options button {
    --tint:#f5e0ba;--accent:#f0c37a;--deep:#a26928;
    position:relative;isolation:isolate;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:1fr auto;align-items:center;gap:20px 12px;min-height:clamp(225px,37vh,385px);padding:clamp(18px,2vw,34px);border:1px solid color-mix(in srgb,var(--deep) 35%,#fff);
    border-radius:16px;text-align:left;color:var(--ink);
    background:linear-gradient(135deg,#fffaf1 0%,var(--tint) 100%);
  }
  .options button:nth-child(2){--tint:#eadbe9;--accent:#e1b3d3;--deep:#895d84}
  .options button:nth-child(3){--tint:#d4ebe7;--accent:#a3d8ca;--deep:#407a76}
  .illustration{position:relative;grid-column:1/-1;display:block;width:150px;height:94px;justify-self:center;scale:1.35}
  .window{position:absolute;left:7%;top:8%;width:79%;height:75%;padding:9% 9% 6%;border-radius:9px;
    color:#fff9eb;background:linear-gradient(145deg,#315666,#112b3a 68%);border:1px solid #526f79;
    transform:rotate(-4deg);box-shadow:1px 3px 0 #12303c,0 9px 13px -8px #142f3d88}
  .window-title{display:block;font-size:11px;line-height:1.15;font-weight:700}
  .stamp{position:absolute;right:1%;bottom:5%;display:flex;align-items:center;gap:.42em;
    padding:.3em .67em;font-size:11px;font-weight:750;border:1px solid var(--accent);border-radius:20px;
    background:#fffaf0;box-shadow:0 3px 5px #182f3a22}
  .stamp::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--deep)}
  .inbox .stamp::before,.booking .stamp::before,.checkout .stamp::before{
    width:.64em;height:.34em;border-radius:0;background:none;border-left:2px solid var(--deep);border-bottom:2px solid var(--deep);transform:rotate(-45deg)}
  .contact-row,.order-row{display:flex;align-items:center;gap:7px;margin-top:7px}
  .contact-row b,.order-row b{width:19px;height:19px;flex:none;border-radius:50%;background:radial-gradient(circle at 50% 39%,#325564 18%,transparent 20%),radial-gradient(circle at 50% 100%,#325564 36%,transparent 38%),var(--accent)}
  .order-row b{border-radius:4px;background:var(--accent);color:#183040;display:grid;place-items:center;font:700 10px/1 system-ui}
  .lines{display:grid;gap:4px;width:56%}.lines i,.compare i{height:3px;background:#d2e2e2;border-radius:4px}.lines i:last-child{width:61%;opacity:.55}
  .week{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-top:12px}
  .week i{height:12px;background:#74949d;border-radius:2px}.week i:nth-child(4){background:var(--accent);outline:1px solid var(--accent);outline-offset:2px}
  .bars{height:24px;display:flex;align-items:end;gap:4px;margin-top:3px}
  .bars i{height:38%;width:10%;background:#83a3af;border-radius:2px 2px 0 0}.bars i:nth-child(2n){height:65%}.bars i:nth-child(4){height:85%}.bars i:last-child{height:100%;background:var(--accent)}
  .flow{position:relative;display:flex;justify-content:space-between;align-items:center;margin-top:14px}
  .flow::before{content:"";position:absolute;inset:45% 3%;background:#97b1bb;height:1px}
  .flow i{width:10px;height:10px;z-index:1;border:2px solid var(--accent);border-radius:50%;background:#1d3b4b}.flow i:last-child{background:var(--accent)}
  .compare{display:grid;gap:4px;margin-top:8px}.compare i{width:85%}.compare i:nth-child(2){width:53%;background:var(--accent)}.compare i:last-child{width:69%;opacity:.6}
  .choice-label{font-weight:740;letter-spacing:-.03em;font-size:clamp(19px,1.9vw,31px);line-height:1.25;text-wrap:pretty}
  .choice-arrow,.appointment span {display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font:500 18px/1 system-ui,sans-serif;background:#fffcf3;border:1px solid #a8b5af}
  .options button:is(:hover,:focus-visible){border-color:var(--deep);box-shadow:0 6px 16px #233d4814}
  .options button:is(:hover,:focus-visible) .choice-arrow{background:var(--ink);color:#fff}
  .context {display:flex;align-items:center;gap:7px;margin:0 0 12px;color:var(--muted);font-size:.89rem;font-weight:650}

  .result p {max-width:56ch;color:#2e3638;font-size:clamp(18px,1.55vw,24px);line-height:1.55;margin:18px 0 24px}
  .appointment {margin:0;display:inline-flex;align-items:center;gap:18px;color:var(--cream);text-decoration:none;font-weight:730;background:var(--ink);padding:7px 8px 7px 18px;border-radius:50px;min-height:44px}
  .appointment span {color:var(--ink);background:#f2c572;border:0}
  .back {display:block;margin-top:15px;background:transparent;border:0;color:var(--muted);padding:10px 0;font-size:.9rem;min-height:44px;text-decoration:underline;text-underline-offset:4px}
  @media(prefers-reduced-motion:no-preference){
   .window,.stamp{transition:transform .32s cubic-bezier(.2,.8,.3,1)}
   .options button:is(:hover,:focus-visible) .window{transform:translateY(-2px) rotate(-1deg)}
   .options button:is(:hover,:focus-visible) .stamp{transform:translate(2px,-3px)}
   .options button,.result:not([hidden]) {animation:diagnostic-arrive .44s ease-out backwards}
   .options button:nth-child(2) {animation-delay:.055s}
   .options button:nth-child(3) {animation-delay:.11s}
   @keyframes diagnostic-arrive {from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
  }
  @media(min-width:761px){
    .options button {grid-template-rows:1fr minmax(2.5em,auto)}
    .choice-label{min-height:2.5em;align-content:center}
  }
  @media(max-width:760px){
   .content {padding:clamp(26px,4vh,46px) clamp(16px,5vw,34px)}
   #pd-current-question {font-size:clamp(31px,7.8vw,47px);max-width:20ch}
   .options {grid-template-columns:1fr;gap:12px;margin-top:22px}
   .options button {
     min-height:clamp(116px,20svh,175px);grid-template-columns:1fr;grid-template-rows:auto auto;
     align-content:center;justify-items:center;padding:12px 40px;gap:7px;text-align:center;
   }
   .illustration{grid-column:auto;width:119px;height:76px;scale:1}
   .choice-label{font-size:clamp(17px,4.4vw,22px)}
   .choice-arrow{position:absolute;top:12px;right:12px}
   .window{padding:9px 6px 4px;left:1%;width:85%;border-radius:6px}
   .window-title{font-size:8px}.stamp{font-size:8px;right:0;bottom:4%}
   .contact-row,.order-row{gap:4px;margin-top:4px}.contact-row b,.order-row b{width:13px;height:13px}
   .week{margin-top:6px;gap:2px}.week i{height:8px}.flow{margin-top:7px}.compare{gap:2px;margin-top:5px}.bars{height:15px}
   .choice-arrow{width:24px;height:24px;font-size:15px}
  }
  @media(max-width:760px) and (max-height:690px) {
    .options button {grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto;
      justify-items:start;min-height:92px;text-align:left;padding:12px;gap:10px}
    .illustration{width:84px;height:60px}
    .choice-arrow{position:static}
  }
}
