:root{
  --bg1:#163b57;
  --bg2:#2c4864;
  --bg3:#5b5562;
  --panel:rgba(255,255,255,.10);
  --panel-2:rgba(255,255,255,.07);
  --stroke:rgba(255,255,255,.16);
  --stroke-soft:rgba(255,255,255,.08);
  --ink:#eef5ff;
  --muted:rgba(233,241,255,.78);
  --soft:rgba(233,241,255,.56);
  --mint:#a8e7d6;
  --teal:#8ad6df;
  --peach:#efb18f;
  --amber:#ecd79e;
  --lav:#cfd6ff;
  --track:rgba(255,255,255,.12);
  --shadow:0 18px 40px rgba(3,15,30,.22);
  --blur:22px;
  --radius:24px;
  --radius-sm:16px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  min-height:100%;
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 700px at 85% 10%, rgba(255,174,122,.27) 0%, rgba(255,174,122,.12) 28%, rgba(255,174,122,0) 58%),
    radial-gradient(900px 600px at 8% 100%, rgba(94,205,235,.16) 0%, rgba(94,205,235,.06) 35%, rgba(94,205,235,0) 60%),
    linear-gradient(135deg, #113a56 0%, #304e6d 42%, #615965 100%);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,0) 18%),
    radial-gradient(900px 240px at 85% 18%, rgba(255,192,144,.12), transparent 60%);
  mix-blend-mode:screen;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 26%),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,.012) 0px,
      rgba(255,255,255,.012) 1px,
      transparent 1px,
      transparent 24px
    );
  opacity:.18;
}

#af-pt-shell{
  position:relative;
  display:block;
  width:100%;
}

#af-pt-shell .afpt-stage{
  position:relative;
  width:100%;
  padding:18px 0 34px;
}

#af-pt-shell .app{
  width:min(1220px, calc(100vw - 40px));
  margin:0 auto;
  position:relative;
  z-index:2;
}

#af-pt-shell .topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

#af-pt-shell .title-wrap{
  padding-top:8px;
}

#af-pt-shell .title{
  margin:0;
  font-family:"Merriweather", serif;
  font-size:clamp(34px, 4vw, 56px);
  line-height:1.02;
  letter-spacing:-.03em;
  font-weight:700;
  color:rgba(245,249,255,.96);
  text-shadow:0 2px 18px rgba(255,255,255,.05);
}

#af-pt-shell .subtitle{
  margin-top:12px;
  color:var(--muted);
  font-size:clamp(14px,1.55vw,22px);
  font-weight:400;
  letter-spacing:-.01em;
}

#af-pt-shell .divider{
  height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.20), rgba(255,255,255,.05));
  margin:14px 0 24px;
}

#af-pt-shell .glass{
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.07));
  border:1px solid var(--stroke);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter:blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter:blur(var(--blur)) saturate(150%);
  border-radius:var(--radius);
  position:relative;
}

#af-pt-shell .glass::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 42%);
  opacity:.8;
}

#af-pt-shell .summary-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  margin-bottom:20px;
}

#af-pt-shell .mini-card{
  padding:18px 22px;
  min-height:116px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

#af-pt-shell .mini-label{
  font-size:15px;
  color:rgba(238,245,255,.90);
  margin-bottom:14px;
  font-weight:500;
}

#af-pt-shell .mini-value{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-size:25px;
  font-weight:500;
  color:rgba(247,249,255,.96);
  letter-spacing:-.02em;
}

#af-pt-shell .gender-corner{
  width:330px;
  max-width:36vw;
  padding:14px 18px 16px;
  align-self:flex-start;
  border-radius:22px;
}

#af-pt-shell .gender-corner .mini-label{
  margin-bottom:10px;
  font-size:16px;
}

#af-pt-shell .gender-corner .mini-value{
  font-size:28px;
  margin-bottom:10px;
}

#af-pt-shell .height-inline{
  margin-top:2px;
  padding-top:4px;
}

#af-pt-shell .height-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

#af-pt-shell .height-label{
  font-size:13px;
  color:rgba(238,245,255,.74);
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
}

#af-pt-shell .height-value{
  font-size:14px;
  font-weight:700;
  color:rgba(247,249,255,.94);
}

#af-pt-shell .mini-slider{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:8px;
  border-radius:999px;
  border:none;
  outline:none;
  background:
    linear-gradient(90deg, rgba(166,230,216,.95) 0%, rgba(166,230,216,.95) var(--fill,50%), rgba(255,255,255,.10) var(--fill,50%), rgba(255,255,255,.10) 100%);
}

#af-pt-shell .mini-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.30);
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(232,240,245,.42));
  box-shadow:0 6px 18px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.6);
  cursor:pointer;
}

#af-pt-shell .mini-slider::-moz-range-thumb{
  width:18px;
  height:18px;
  border:none;
  border-radius:50%;
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(232,240,245,.42));
  box-shadow:0 6px 18px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.6);
  cursor:pointer;
}

#af-pt-shell .mini-ticks{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:6px;
  font-size:11px;
  color:rgba(235,242,255,.46);
}

#af-pt-shell .main-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:20px;
  align-items:stretch;
}

#af-pt-shell .panel{
  padding:24px 26px 24px;
  min-height:640px;
}

#af-pt-shell .panel-title{
  margin:0 0 16px 0;
  font-family:"Merriweather", serif;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.02em;
  color:rgba(244,248,255,.96);
}

#af-pt-shell .panel-rule{
  height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  margin-bottom:22px;
}

#af-pt-shell .insight-title{
  margin-bottom:10px;
}

#af-pt-shell .insight-rule{
  margin-bottom:14px;
}

#af-pt-shell .input-group{
  margin-bottom:20px;
}

#af-pt-shell .row-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}

#af-pt-shell .row-label{
  font-size:18px;
  font-weight:600;
  color:rgba(244,248,255,.94);
  letter-spacing:-.01em;
}

#af-pt-shell .row-value{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:17px;
  color:rgba(244,248,255,.92);
  font-weight:700;
  white-space:nowrap;
}

#af-pt-shell .sub-value{
  font-size:13px;
  color:var(--soft);
  margin-top:4px;
  font-weight:600;
}

#af-pt-shell .slider{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:10px;
  border-radius:999px;
  outline:none;
  border:none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.12));
  position:relative;
  overflow:hidden;
}

#af-pt-shell .slider.mint-track{
  background:
    linear-gradient(90deg, rgba(166,230,216,.95) 0%, rgba(166,230,216,.95) var(--fill,50%), rgba(255,255,255,.10) var(--fill,50%), rgba(255,255,255,.10) 100%);
}

#af-pt-shell .slider.peach-track{
  background:
    linear-gradient(90deg, rgba(239,177,143,.95) 0%, rgba(239,177,143,.95) var(--fill,50%), rgba(255,255,255,.10) var(--fill,50%), rgba(255,255,255,.10) 100%);
}

#af-pt-shell .slider.teal-track{
  background:
    linear-gradient(90deg, rgba(141,218,232,.95) 0%, rgba(141,218,232,.95) var(--fill,50%), rgba(255,255,255,.10) var(--fill,50%), rgba(255,255,255,.10) 100%);
}

#af-pt-shell .slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:26px;
  height:26px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.32);
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(232,240,245,.42));
  box-shadow:0 6px 18px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.6);
  cursor:pointer;
}

#af-pt-shell .slider::-moz-range-thumb{
  width:26px;
  height:26px;
  border:none;
  border-radius:50%;
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(232,240,245,.42));
  box-shadow:0 6px 18px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.6);
  cursor:pointer;
}

#af-pt-shell .ticks{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 2px 0;
  font-size:12px;
  color:rgba(235,242,255,.48);
  user-select:none;
}

#af-pt-shell .range-meta{
  margin-top:6px;
  font-size:12px;
  line-height:1.35;
  font-weight:600;
  color:rgba(233,241,255,.58);
  letter-spacing:-.01em;
}

#af-pt-shell .calc-card{
  margin-bottom:16px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
}

#af-pt-shell .calc-left{
  display:flex;
  flex-direction:column;
  gap:4px;
}

#af-pt-shell .calc-title{
  font-size:18px;
  font-weight:700;
  color:rgba(244,248,255,.95);
}

#af-pt-shell .calc-sub{
  font-size:13px;
  color:rgba(233,241,255,.62);
  font-weight:600;
}

#af-pt-shell .calc-right{
  text-align:right;
}

#af-pt-shell .calc-main{
  font-size:24px;
  font-weight:800;
  letter-spacing:-.03em;
  color:rgba(247,249,255,.97);
}

#af-pt-shell .calc-mini{
  margin-top:3px;
  font-size:13px;
  color:rgba(233,241,255,.70);
  font-weight:700;
}

#af-pt-shell .input-divider{
  height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  margin:22px 0;
}

#af-pt-shell .insight-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:grid;
  gap:16px;
}

#af-pt-shell .insight-list li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:18px;
  line-height:1.45;
  color:rgba(240,246,255,.86);
}

#af-pt-shell .dot{
  width:13px;
  height:13px;
  border-radius:50%;
  flex:0 0 13px;
  margin-top:7px;
  box-shadow:0 0 0 4px rgba(255,255,255,.03);
}

#af-pt-shell .dot.mint{ background:#9fd7d6; }
#af-pt-shell .dot.peach{ background:#eea986; }
#af-pt-shell .dot.lav{ background:#c7d0f2; }

#af-pt-shell .chart-zone{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
  padding-top:2px;
}

#af-pt-shell .bars{
  height:250px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  position:relative;
  padding:20px 10px 20px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)),
    repeating-linear-gradient(
      to top,
      rgba(255,255,255,.08) 0px,
      rgba(255,255,255,.08) 1px,
      transparent 1px,
      transparent 44px
    );
  border-radius:18px;
  overflow:hidden;
}

#af-pt-shell .bar-col{
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  height:100%;
  min-width:40px;
  position:relative;
}

#af-pt-shell .bar-stack{
  width:34px;
  border-radius:10px 10px 7px 7px;
  position:relative;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
  background:rgba(255,255,255,.08);
}

#af-pt-shell .bar-fill{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  border-radius:10px 10px 7px 7px;
}

#af-pt-shell .bar-aqua{ background:linear-gradient(180deg, rgba(150,224,234,.96), rgba(110,195,216,.82)); }
#af-pt-shell .bar-peach{ background:linear-gradient(180deg, rgba(244,194,161,.96), rgba(233,146,110,.84)); }
#af-pt-shell .bar-lav{ background:linear-gradient(180deg, rgba(206,216,255,.96), rgba(146,160,222,.84)); }
#af-pt-shell .bar-mint{ background:linear-gradient(180deg, rgba(184,235,215,.96), rgba(127,210,188,.84)); }

#af-pt-shell .bar-label{
  margin-top:14px;
  font-size:14px;
  text-align:center;
  color:rgba(244,247,255,.82);
  line-height:1.15;
  max-width:90px;
}

#af-pt-shell .score-ring-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  padding-top:0;
}

#af-pt-shell .score-ring{
  --pct:0;
  width:250px;
  height:250px;
  border-radius:50%;
  background:
    conic-gradient(
      rgba(130,218,221,.98) 0deg,
      rgba(130,218,221,.98) calc(var(--pct) * 3.6deg * .52),
      rgba(238,222,173,.98) calc(var(--pct) * 3.6deg * .52),
      rgba(238,222,173,.98) calc(var(--pct) * 3.6deg),
      rgba(255,255,255,.10) calc(var(--pct) * 3.6deg),
      rgba(255,255,255,.10) 360deg
    );
  position:relative;
  box-shadow: inset 0 2px 10px rgba(255,255,255,.15), 0 18px 40px rgba(0,0,0,.12);
}

#af-pt-shell .score-ring::before{
  content:"";
  position:absolute;
  inset:24px;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), rgba(255,255,255,.03) 30%, rgba(255,255,255,.02) 50%, rgba(0,0,0,.06) 100%),
    rgba(42,56,71,.56);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
}

#af-pt-shell .score-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  z-index:2;
}

#af-pt-shell .score-number{
  font-size:66px;
  line-height:.98;
  letter-spacing:-.05em;
  font-weight:700;
  color:rgba(250,246,237,.96);
}

#af-pt-shell .score-label{
  margin-top:8px;
  font-size:23px;
  font-weight:600;
  color:rgba(228,242,214,.92);
}

#af-pt-shell .next-assessment{
  font-size:15px;
  color:rgba(243,247,255,.80);
  text-align:center;
  line-height:1.35;
  margin-top:2px;
}

#af-pt-shell select{
  width:100%;
  border:none;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background:transparent;
  color:rgba(247,249,255,.96);
  font:inherit;
  cursor:pointer;
}

#af-pt-shell .select-wrap{
  position:relative;
  width:100%;
}

#af-pt-shell .select-wrap::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  width:10px;
  height:10px;
  margin-top:-8px;
  border-right:2px solid rgba(255,255,255,.55);
  border-bottom:2px solid rgba(255,255,255,.55);
  transform:rotate(45deg);
  pointer-events:none;
}

#af-pt-shell .mini-card .select-wrap select,
#af-pt-shell .gender-corner .select-wrap select{
  font-size:inherit;
  font-weight:inherit;
  padding-right:34px;
}

@media (max-width:1100px){
  #af-pt-shell .summary-grid{ grid-template-columns:repeat(2,1fr); }
  #af-pt-shell .main-grid{ grid-template-columns:1fr; }
  #af-pt-shell .panel{ min-height:auto; }
  #af-pt-shell .gender-corner{ width:280px; max-width:100%; }
}

@media (max-width:760px){
  #af-pt-shell .app{
    width:min(100vw - 18px, 100%);
    margin:0 auto;
  }

  #af-pt-shell .topbar{
    flex-direction:column;
    align-items:stretch;
  }

  #af-pt-shell .gender-corner{
    width:100%;
    max-width:none;
  }

  #af-pt-shell .summary-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  #af-pt-shell .main-grid{
    gap:14px;
  }

  #af-pt-shell .panel{
    padding:18px 16px;
  }

  #af-pt-shell .score-ring{
    width:210px;
    height:210px;
  }

  #af-pt-shell .score-ring::before{
    inset:20px;
  }

  #af-pt-shell .score-number{
    font-size:54px;
  }

  #af-pt-shell .insight-list li{
    font-size:16px;
  }

  #af-pt-shell .range-meta{
    font-size:11px;
    line-height:1.4;
  }
}
