.oe-diagnosis{
  --oe-mint:#b1e6e6;
  --oe-brown:#957f72;
  --oe-sage:#a3b3ac;
  --oe-rank-1:#957f72;
  --oe-rank-2:#b8a69c;
  --oe-rank-3:#d2c4bd;
  --oe-cream:#f6f1f0;
  --oe-ink:#333333;
  --oe-white:#ffffff;
  --oe-muted:#77706c;
  --oe-line:#e5ddda;
  --oe-soft-brown:#faf7f5;
  --oe-shadow:0 14px 38px rgba(78,61,51,.08);
  font-family:inherit;
  color:var(--oe-ink);
  margin:1.5rem auto 2.5rem;
  max-width:1100px;
  width:100%;
}
.oe-diagnosis *{box-sizing:border-box}
.oe-diagnosis button,.oe-diagnosis a{font-family:inherit}

/* SWELL / theme heading reset: keep theme decorations out of the diagnosis UI */
.oe-diagnosis h1,
.oe-diagnosis h2,
.oe-diagnosis h3,
.oe-diagnosis h4{
  background:none!important;
  border:0!important;
  border-left:0!important;
  border-right:0!important;
  border-top:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
  padding:0!important;
  text-shadow:none!important;
}
.oe-diagnosis h1:before,.oe-diagnosis h1:after,
.oe-diagnosis h2:before,.oe-diagnosis h2:after,
.oe-diagnosis h3:before,.oe-diagnosis h3:after,
.oe-diagnosis h4:before,.oe-diagnosis h4:after{display:none!important;content:none!important}

/* One-column mode on pages containing the shortcode. Scoped to the diagnosis page only. */
body.oe-diagnosis-page .l-sidebar,
body.oe-diagnosis-page #sidebar,
body.oe-diagnosis-page aside.l-sidebar{display:none!important}
body.oe-diagnosis-page .l-mainContent,
body.oe-diagnosis-page #main_content,
body.oe-diagnosis-page main.l-mainContent{width:100%!important;max-width:none!important;min-width:0!important}
body.oe-diagnosis-page .l-content{grid-template-columns:minmax(0,1fr)!important;column-gap:0!important}
body.oe-diagnosis-page .l-container{max-width:1180px!important}
body.oe-diagnosis-page .post_content{max-width:none!important}

.oe-diagnosis__shell{
  background:#fff;
  border:1px solid #ede7e4;
  border-radius:22px;
  box-shadow:var(--oe-shadow);
  overflow:hidden;
}
.oe-diagnosis__app{min-height:560px;padding:clamp(34px,5vw,68px)}

/* Shared buttons */
.oe-diag-primary,.oe-diag-secondary{
  appearance:none;
  border-radius:10px;
  min-height:58px;
  padding:0 28px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  text-decoration:none!important;
  line-height:1.4;
}
.oe-diag-primary{
  border:1px solid var(--oe-brown);
  background:var(--oe-brown);
  color:#fff!important;
  box-shadow:0 7px 16px rgba(149,127,114,.19);
}
.oe-diag-primary:hover{filter:brightness(.95);transform:translateY(-1px)}
.oe-diag-primary:disabled,.oe-diag-secondary:disabled{opacity:.38;cursor:not-allowed;transform:none}
.oe-diag-secondary{
  background:#fff;
  color:#76685f;
  border:1px solid #e1d9d5;
}
.oe-diag-secondary:hover:not(:disabled){background:#fbf9f8;border-color:#cbbab0}

/* Intro */
.oe-diag-intro{max-width:900px;margin:0 auto;text-align:center}
.oe-diag-intro__hero{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;margin:0 auto 38px}
.oe-diag-intro__copy{width:100%;min-width:0}
.oe-diag-leaf-title{display:flex;align-items:center;justify-content:center;text-align:center}
.oe-diag-leaf-title>span{display:none}
.oe-diagnosis .oe-diag-title{
  display:inline-block;
  background:var(--oe-brown)!important;
  color:#fff!important;
  border-radius:4px;
  font-size:clamp(23px,3vw,30px)!important;
  line-height:1.35!important;
  letter-spacing:.03em;
  margin:0!important;
  padding:15px 26px!important;
  font-weight:800;
}
.oe-diag-intro__text{max-width:700px;margin:30px auto 0;font-size:16px;line-height:2;color:var(--oe-ink);font-weight:600}
.oe-diag-intro__mascot{order:2;width:126px;height:126px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,rgba(177,230,230,.34) 0%,rgba(177,230,230,.15) 63%,rgba(177,230,230,0) 64%)}
.oe-diag-intro__mascot img{max-width:118px;max-height:118px;width:auto;height:auto;object-fit:contain}

.oe-diag-learnbox{
  background:#fff;
  border:1px solid #ddd4d0;
  border-radius:10px;
  padding:0 26px 26px;
  margin:0 auto 22px;
  max-width:820px;
  box-shadow:none;
}
.oe-diagnosis .oe-diag-learnbox h3{
  display:inline-block;
  position:relative;
  top:-17px;
  background:#fff!important;
  color:var(--oe-ink)!important;
  font-size:22px!important;
  line-height:1.4!important;
  letter-spacing:.04em;
  margin:0 0 -2px!important;
  padding:0 26px!important;
  font-weight:800;
}
.oe-diag-learnbox__grid{display:grid;grid-template-columns:repeat(4,1fr)}
.oe-diag-learnitem{min-height:116px;padding:12px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-right:1px dotted #cfc6c2}
.oe-diag-learnitem:last-child{border-right:0}
.oe-diag-learnitem__icon{width:48px;height:48px;color:#67483b}
.oe-diag-learnitem svg{display:block;width:48px;height:48px;fill:currentColor;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}
.oe-diag-learnitem svg .oe-diag-icon-line{fill:none}
.oe-diag-learnitem strong{color:var(--oe-ink);font-size:14px;line-height:1.4;font-weight:800}

.oe-diag-time{display:flex;align-items:center;justify-content:center;gap:11px;background:rgba(177,230,230,.17);border:1px solid rgba(112,190,190,.28);border-radius:8px;max-width:820px;margin:0 auto 30px;padding:13px 18px;color:var(--oe-ink);font-size:15px}
.oe-diag-time__clock{font-size:27px;color:#64bebe;line-height:1}
.oe-diag-time strong{color:var(--oe-brown);font-size:18px}
.oe-diag-start{width:min(580px,100%);font-size:19px;margin:0 auto}
.oe-diag-start span{font-size:28px;font-weight:400;line-height:1}
.oe-diag-notice{max-width:820px;border:1px solid #d5aa8f;border-radius:8px;margin:34px auto 0;padding:16px 20px;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start;background:#fff}
.oe-diag-notice strong{white-space:nowrap;color:#8a6b5a;font-size:14px}
.oe-diag-notice p{margin:0;color:#68615d;font-size:11px;line-height:1.85}

/* Quiz */
.oe-diag-quiz{max-width:920px;margin:0 auto}
.oe-diag-progress{height:8px;background:#eee8e5;border-radius:99px;overflow:hidden;margin:4px 0 48px}
.oe-diag-progress span{display:block;height:100%;background:var(--oe-brown);border-radius:99px;transition:width .25s ease}
.oe-diag-question{text-align:left;margin:0 0 34px;max-width:none}
.oe-diag-question h2{
  font-size:clamp(25px,3.2vw,34px)!important;
  line-height:1.55!important;
  margin:0 0 12px!important;
  color:#222!important;
  font-weight:800;
  letter-spacing:.02em;
}
.oe-diag-question p{margin:0;color:#77706c;font-size:14px;line-height:1.8}
.oe-diag-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.oe-diag-option{
  appearance:none;
  width:100%;
  min-height:86px;
  display:flex;
  align-items:center;
  gap:16px;
  text-align:left;
  background:#fff;
  border:1px solid #ded6d2;
  border-radius:9px;
  padding:17px 20px;
  color:var(--oe-ink);
  font:inherit;
  font-size:15px;
  line-height:1.55;
  cursor:pointer;
  transition:.15s ease;
  box-shadow:none;
}
.oe-diag-option:hover{border-color:#bda89d;background:#fffdfc}
.oe-diag-option.is-selected{background:#fffaf7;border-color:var(--oe-brown);color:var(--oe-ink);box-shadow:0 0 0 1px rgba(149,127,114,.08)}
.oe-diag-option__radio{flex:0 0 25px;width:25px;height:25px;border:1.5px solid #c9c0bb;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff}
.oe-diag-option__radio span{width:11px;height:11px;border-radius:50%;background:transparent}
.oe-diag-option.is-selected .oe-diag-option__radio{border-color:var(--oe-brown)}
.oe-diag-option.is-selected .oe-diag-option__radio span{background:var(--oe-brown);box-shadow:none}
.oe-diag-option__label{font-weight:700}
.oe-diag-nav{display:flex;justify-content:space-between;gap:18px;margin-top:38px}
.oe-diag-nav .oe-diag-primary{min-width:300px}
.oe-diag-nav .oe-diag-secondary{min-width:160px}

/* Loading */
.oe-diag-loading,.oe-diag-error{text-align:center;max-width:680px;margin:0 auto;padding:100px 0}
.oe-diag-loading h2,.oe-diag-error h2{color:var(--oe-ink)!important;font-size:28px!important;margin:0 0 12px!important}
.oe-diag-loading p,.oe-diag-error p{color:#746d69;line-height:1.8}
.oe-diag-spinner{width:46px;height:46px;border:4px solid var(--oe-cream);border-top-color:var(--oe-brown);border-radius:50%;animation:oe-spin .8s linear infinite;margin:0 auto 22px}
@keyframes oe-spin{to{transform:rotate(360deg)}}

/* Results */
.oe-diag-results{max-width:940px;margin:0 auto}
.oe-diag-results__head{text-align:center;margin:0 auto 28px;max-width:800px}
.oe-diag-results__badge{display:inline-block;border:1px solid #d5cbc6;border-radius:999px;color:#6d625c;font-size:11px;font-weight:700;padding:5px 12px;margin-bottom:16px;background:#fff}
.oe-diag-results__head h2{background:none!important;color:var(--oe-brown)!important;font-size:clamp(27px,4vw,39px)!important;line-height:1.45!important;letter-spacing:.025em;margin:0!important;font-weight:800}
.oe-diag-results__head p{font-size:14px;line-height:1.8;color:#67605c;margin:16px 0 0}
.oe-diag-pr{font-size:11px;line-height:1.7;color:#756e69;background:#fbf8f6;border:1px solid #eee5e1;border-radius:8px;padding:10px 13px;margin:0 0 18px}
.oe-diag-pr span{font-weight:800;color:var(--oe-brown);margin-right:5px}
.oe-diag-result-list{display:grid;gap:18px}
.oe-diag-result-card{position:relative;display:grid;grid-template-columns:74px 1fr;background:#fff;border:1px solid #ded8d4;border-radius:11px;overflow:hidden;box-shadow:0 3px 12px rgba(70,56,48,.04)}
.oe-diag-result-card.rank-1{border-color:#b99072;box-shadow:0 8px 22px rgba(149,127,114,.11)}
.oe-diag-result-card.rank-2{border-color:#d8cbc4}
.oe-diag-result-card.rank-3{border-color:#e6deda}
.oe-diag-rank{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:18px 6px;min-height:100%}
.rank-1 .oe-diag-rank{background:var(--oe-rank-1);color:#fff}
.rank-2 .oe-diag-rank{background:var(--oe-rank-2);color:#3f3732}
.rank-3 .oe-diag-rank{background:var(--oe-rank-3);color:#51453f}
.oe-diag-rank__crown{font-size:18px;line-height:1;margin-bottom:5px}
.oe-diag-rank strong{font-size:34px;line-height:1;font-weight:600}.oe-diag-rank>span:last-child{font-size:13px;margin-top:4px}
.oe-diag-result-card__body{padding:22px 26px 20px;min-width:0}
.oe-diag-result-card__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.oe-diag-result-card h3{font-size:24px!important;line-height:1.35!important;margin:0!important;color:var(--oe-ink)!important;font-weight:800}
.oe-diag-category{display:inline-block;background:rgba(177,230,230,.36);color:#3f7475;border-radius:999px;padding:5px 10px;font-size:10px;font-weight:800}
.oe-diag-plan{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px;font-size:11px}
.oe-diag-plan span{color:#756d68}.oe-diag-plan strong{background:#f4efec;color:#755f52;border-radius:999px;padding:5px 9px}.oe-diag-plan em{font-style:normal;color:#756d68}
.oe-diag-summary{font-size:13px;line-height:1.8;color:#5f5a57;margin:9px 0 14px}
.oe-diag-reasons{list-style:none;padding:0;margin:8px 0 15px;display:grid;gap:6px}
.oe-diag-reasons li{position:relative;padding-left:18px;font-size:13px;line-height:1.65;color:#4b4745}
.oe-diag-reasons li:before{content:'•';position:absolute;left:2px;top:-1px;color:var(--oe-brown);font-size:18px;font-weight:900}
.oe-diag-cta{min-height:48px;width:min(440px,100%);margin:14px 0 0;border:2px solid transparent;border-radius:8px;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:18px;text-decoration:none!important;transition:.15s ease}
.rank-1 .oe-diag-cta{background:var(--oe-rank-1);border-color:var(--oe-rank-1);color:#fff!important;box-shadow:0 5px 12px rgba(149,127,114,.18)}
.rank-2 .oe-diag-cta{background:#fff;border-color:var(--oe-rank-2);color:#75665e!important;box-shadow:none}
.rank-3 .oe-diag-cta{background:#fff;border-color:var(--oe-rank-3);color:#75665e!important;box-shadow:none}
.rank-1 .oe-diag-cta:hover{filter:brightness(.94);transform:translateY(-1px)}
.rank-2 .oe-diag-cta:hover{background:#faf7f5;transform:translateY(-1px)}
.rank-3 .oe-diag-cta:hover{background:#fbf9f8;transform:translateY(-1px)}
.oe-diag-cta span{font-size:22px;font-weight:400}
.oe-diag-cta-note{font-size:10px;color:#827a76;margin:7px 0 0}
.oe-diag-articles{margin-top:18px;border-top:1px dashed #d8d0cc;padding-top:12px}
.oe-diag-articles__title{color:#795e50;font-size:12px;font-weight:800;margin-bottom:2px}
.oe-diag-article{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#4d4845!important;text-decoration:underline!important;text-decoration-color:#c5bbb6!important;text-underline-offset:3px;font-size:12px;line-height:1.5;padding:6px 0}
.oe-diag-article:hover{color:var(--oe-brown)!important}
.oe-diag-article>span:last-child{color:#a39a95;font-size:18px;text-decoration:none}
.oe-diag-disclaimer{margin:28px 0 0;border:1px solid #d8b7a1;border-radius:9px;padding:16px 18px;display:grid;grid-template-columns:auto 1fr;gap:17px;background:#fff;color:#746b66}
.oe-diag-disclaimer>strong{color:#8a6b5a;white-space:nowrap;font-size:13px}.oe-diag-disclaimer p{font-size:10px;line-height:1.75;margin:0 0 5px}.oe-diag-disclaimer p:last-child{margin-bottom:0}
.oe-diag-restart{display:flex;margin:24px auto 0;min-height:48px;font-size:13px}

/* Tablet / mobile */
@media(max-width:760px){
  .oe-diagnosis{margin:1rem auto 1.8rem}
  .oe-diagnosis__shell{border-radius:16px}
  .oe-diagnosis__app{min-height:500px;padding:30px 18px}
  .oe-diag-intro__hero{gap:16px;margin-bottom:32px}
  .oe-diag-intro__mascot{width:112px;height:112px}.oe-diag-intro__mascot img{max-width:104px;max-height:104px}
  .oe-diagnosis .oe-diag-title{font-size:23px!important;padding:13px 18px!important}
  .oe-diag-intro__text{font-size:14px;line-height:1.9;margin-top:24px}
  .oe-diag-learnbox{padding:0 12px 14px;margin-bottom:16px}
  .oe-diagnosis .oe-diag-learnbox h3{font-size:18px!important;top:-14px;padding:0 14px!important}
  .oe-diag-learnbox__grid{grid-template-columns:1fr 1fr;gap:0}
  .oe-diag-learnitem{min-height:106px;border-right:1px dotted #cfc6c2;border-bottom:1px dotted #cfc6c2;padding:12px 4px}
  .oe-diag-learnitem:nth-child(2n){border-right:0}.oe-diag-learnitem:nth-child(n+3){border-bottom:0}
  .oe-diag-learnitem__icon,.oe-diag-learnitem svg{width:42px;height:42px}
  .oe-diag-learnitem strong{font-size:13px}
  .oe-diag-time{font-size:13px;margin-bottom:20px}.oe-diag-time strong{font-size:16px}
  .oe-diag-start{font-size:17px;min-height:58px}
  .oe-diag-notice{grid-template-columns:1fr;gap:7px;margin-top:28px;padding:15px}.oe-diag-notice p{font-size:11px}
  .oe-diag-progress{margin-bottom:34px}
  .oe-diag-question{margin-bottom:24px}.oe-diag-question h2{font-size:25px!important}.oe-diag-question p{font-size:13px}
  .oe-diag-options{grid-template-columns:1fr;gap:10px}
  .oe-diag-option{min-height:68px;padding:13px 14px;font-size:14px;border-radius:8px}
  .oe-diag-nav{margin-top:27px;gap:10px}.oe-diag-nav .oe-diag-primary{min-width:0;flex:1}.oe-diag-nav .oe-diag-secondary{min-width:96px;padding-left:13px;padding-right:13px}
  .oe-diag-results__head h2{font-size:28px!important;line-height:1.45!important}.oe-diag-results__head p{font-size:12px}
  .oe-diag-result-card{grid-template-columns:48px 1fr;border-radius:10px}
  .oe-diag-rank{padding:14px 4px}.oe-diag-rank strong{font-size:28px}.oe-diag-rank__crown{font-size:15px}
  .oe-diag-result-card__body{padding:16px 14px 14px}
  .oe-diag-result-card h3{font-size:20px!important}.oe-diag-category{font-size:9px;padding:4px 8px}
  .oe-diag-plan{font-size:10px}.oe-diag-plan em{width:100%}
  .oe-diag-reasons li{font-size:12px}.oe-diag-cta{width:100%;min-height:46px;font-size:13px}.oe-diag-article{font-size:11px}
  .oe-diag-disclaimer{grid-template-columns:1fr;gap:5px;padding:13px}.oe-diag-disclaimer p{font-size:9px}
}
@media(max-width:390px){
  .oe-diagnosis__app{padding:26px 13px}
  .oe-diagnosis .oe-diag-title{font-size:21px!important}.oe-diag-question h2{font-size:22px!important}
  .oe-diag-nav .oe-diag-secondary{min-width:82px}.oe-diag-nav .oe-diag-primary{padding-left:12px;padding-right:12px;font-size:13px}
  .oe-diag-result-card{grid-template-columns:43px 1fr}.oe-diag-result-card__body{padding-left:11px;padding-right:11px}.oe-diag-result-card h3{font-size:18px!important}
}
