:root{
  --ink:#2c2530;
  --muted:#7f7482;
  --line:rgba(84,62,91,.12);
  --cream:#fffaf7;
  --pink:#f6b7c8;
  --peach:#f7c8aa;
  --lilac:#c9b7ee;
  --violet:#8c66c8;
  --berry:#b85d86;
  --glass:rgba(255,255,255,.78);
  font-family:Pretendard,"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#faf6f7;
}
*{-webkit-tap-highlight-color:transparent}
body{
  color:var(--ink);
  background:
    radial-gradient(circle at 8% 8%,rgba(247,200,170,.30),transparent 30%),
    radial-gradient(circle at 92% 16%,rgba(201,183,238,.28),transparent 32%),
    linear-gradient(180deg,#fffaf8 0%,#fbf7fb 48%,#fffaf6 100%);
}
header{
  height:78px;
  background:rgba(38,30,43,.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 30px rgba(50,31,55,.13);
}
header:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:2px;
  background:linear-gradient(90deg,#f7adbd,#f3aa76,#c3a8ed,#d76a9d);
}
.seal{
  border:0;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg,#f3a6b8 0%,#d779a6 40%,#9a70d2 72%,#f2a26e 100%);
  box-shadow:0 8px 22px rgba(203,104,151,.32);
}
header b{font-weight:800;letter-spacing:-.2px}
header span{color:rgba(255,255,255,.62)}
nav a{color:rgba(255,255,255,.62)}
.active{border-color:#f4abc0!important}
main{background:transparent}
aside{
  background:rgba(255,255,255,.70);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-right:1px solid rgba(99,70,106,.10);
}
.eyebrow{
  color:var(--berry);
  font-weight:800;
  letter-spacing:3px;
}
h1,.resultHead h2,section h3,.plainHero h2,.closing h2{
  font-family:Pretendard,"Noto Sans KR",sans-serif;
  letter-spacing:-.045em;
}
h1{font-weight:850}
aside>p,.resultHead p{color:var(--muted)}
label{color:#3d3340;font-weight:800}
input,select{
  color:var(--ink);
  border:1px solid rgba(100,76,106,.15);
  background:rgba(255,255,255,.84);
  box-shadow:0 7px 22px rgba(76,49,83,.055);
  outline:none;
  transition:.2s ease;
}
input:focus,select:focus{
  border-color:#c080ab;
  background:#fff;
  box-shadow:0 0 0 4px rgba(219,133,171,.13),0 10px 25px rgba(95,58,104,.08);
}
input::placeholder{color:#aaa0aa}
.seg i{
  border-color:rgba(100,76,106,.13);
  background:rgba(255,255,255,.76);
  color:#6e6370;
}
.seg input:checked+i{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#c86391,#8b67c4);
  box-shadow:0 9px 22px rgba(158,89,148,.24);
}
.primary{
  border-radius:18px;
  background:linear-gradient(120deg,#db789d 0%,#a46eca 52%,#ef9e76 100%);
  box-shadow:0 14px 30px rgba(165,86,145,.28);
  letter-spacing:-.01em;
  transition:transform .18s ease,box-shadow .18s ease;
}
.primary:active{transform:scale(.985);box-shadow:0 8px 18px rgba(165,86,145,.23)}
.notice,.leapChoice,.termGuide{
  color:#746777;
  background:linear-gradient(135deg,rgba(251,230,236,.80),rgba(239,232,252,.78));
  border:1px solid rgba(158,108,158,.10);
}
.workspace{background:transparent}
#empty{color:#8f8290}
.orb{
  color:#fff;
  border:0;
  background:linear-gradient(145deg,#f2a7ba,#b579cf 57%,#f0a072);
  box-shadow:0 0 0 14px rgba(255,255,255,.62),0 22px 48px rgba(163,99,156,.25);
}
.resultHead button,details button{
  color:#9b557b;
  border:1px solid rgba(182,102,146,.25);
  background:rgba(255,255,255,.80);
  border-radius:999px;
}
section,.lifegrid article{
  background:var(--glass);
  border:1px solid rgba(98,73,104,.10);
  box-shadow:0 12px 38px rgba(71,45,79,.065);
}
section{border-radius:24px}
section h3{font-weight:850;color:#332a36}
.plainHero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#6e4f83 0%,#b75f89 52%,#e99475 100%);
  box-shadow:0 20px 45px rgba(131,70,120,.23);
}
.plainHero:before{
  content:"";
  position:absolute;
  width:190px;height:190px;
  right:-65px;top:-90px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
}
.plainHero:after{
  content:"";
  position:absolute;
  width:120px;height:120px;
  right:55px;bottom:-78px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.20);
}
.plainHero>span,.todayHero span{color:#ffe3ce}
.plainHero p{color:rgba(255,255,255,.84)}
.evidence div{
  background:linear-gradient(145deg,rgba(252,235,240,.86),rgba(241,235,252,.86));
  border:1px solid rgba(158,105,154,.08);
}
.evidence b,.cards span,.lifegrid span{color:#b06087}
.cards article{
  border:0;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(251,242,248,.90));
  box-shadow:0 9px 24px rgba(76,49,83,.055);
}
.todayHero{
  border-radius:20px;
  background:linear-gradient(135deg,#fff0f3,#f2edff 55%,#fff2e8);
}
.gauge{
  background:linear-gradient(145deg,#c8658e,#8866bd);
  box-shadow:0 10px 24px rgba(153,82,145,.22);
}
.gauge b{font-family:Pretendard,"Noto Sans KR",sans-serif;font-weight:300}
.closing{
  background:linear-gradient(135deg,#5e486d,#9f577d 55%,#d5826c);
  box-shadow:0 20px 45px rgba(122,70,111,.20);
}
.closing span{color:#ffd9c7}
.closing p{color:rgba(255,255,255,.78)}
.action{background:linear-gradient(135deg,#fff3f5,#f1edff)}
.warning{border-left:0;background:linear-gradient(135deg,#fff0ed,#fff8f4)}
.flow,.dayun div,.pickgrid article{
  background:linear-gradient(145deg,#fff,#f8eef5);
  border:1px solid rgba(110,76,114,.08);
  box-shadow:0 7px 18px rgba(78,51,84,.05);
}
.flow strong,.yearStrip .flow strong,.yearDetail summary b{color:#a15c86}
.flow.warn{background:linear-gradient(145deg,#fff2ed,#fce6e8)}
.yearDetail,.expert,details{
  border-color:rgba(106,75,111,.12)!important;
  background:rgba(255,255,255,.66)!important;
}
summary{color:#675569}
.stem,.branch{filter:saturate(.78);border-radius:14px}
.wood{background:#789883}.fire{background:#ca7b79}.earth{background:#b49470}.metal{background:#99939f}.water{background:#6f829c}
.uncertain{background:#fff4e9;border-color:#efd5ad}
table{background:rgba(255,255,255,.60)}
thead th{color:#a25a81}

@media(max-width:760px){
  body{background:linear-gradient(180deg,#fff9f7 0%,#fbf6fb 56%,#fffaf6 100%)}
  header{height:64px;padding:0 20px}
  header:before{
    content:"";
    position:absolute;
    inset:auto 28px -12px;
    height:20px;
    background:rgba(162,92,146,.12);
    filter:blur(16px);
    z-index:-1;
  }
  .seal{width:36px;height:36px;border-radius:12px}
  aside{
    padding:30px 20px 34px;
    background:rgba(255,255,255,.64);
    border-radius:0 0 30px 30px;
    box-shadow:0 18px 45px rgba(76,48,82,.07);
  }
  aside h1{font-size:31px;line-height:1.22;margin:12px 0}
  aside>p{line-height:1.75;color:#827684}
  label{font-size:14px;margin:18px 0 8px}
  input,select{min-height:58px;border-radius:17px;padding:15px 17px}
  .seg i{padding:15px 8px;border-radius:15px}
  .primary{
    min-height:58px;
    bottom:12px;
    border-radius:18px;
    box-shadow:0 14px 32px rgba(165,86,145,.30),0 0 0 1px rgba(255,255,255,.4) inset;
  }
  .workspace{padding:22px 12px 48px}
  section{padding:21px 17px;margin:14px 0;border-radius:22px}
  section h3{font-size:20px;line-height:1.35}
  .plainHero{border-radius:26px;padding:25px 20px}
  .plainHero h2{font-size:25px;line-height:1.48}
  .plainHero p{font-size:14px;line-height:1.85}
  .longread p{font-size:15px;line-height:1.9;color:#5c525e}
  .cards article,.lifegrid article{border-radius:18px;padding:18px}
  .todayHero{padding:18px 15px;border-radius:20px}
  .gauge{min-width:82px;height:82px}
  .resultHead h2{font-size:27px}
  .closing{padding:28px 21px}
  .closing h2{font-size:24px}
}

/* Free-form saju question */
.saju-qa{background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,239,247,.92));border:1px solid rgba(240,143,197,.28);box-shadow:0 18px 50px rgba(157,102,147,.14)}
.saju-qa-front{margin-top:20px;padding:22px 18px;border-radius:24px}.saju-qa-front h3{font-size:22px}.saju-qa-front .qaAnswerHead b{font-size:19px}
.saju-qa h3{margin-bottom:8px}.saju-qa>p{color:#766a75;line-height:1.7}
.qaInput{display:grid;gap:12px;margin-top:20px}.qaInput textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #eadde6;border-radius:20px;background:rgba(255,255,255,.9);padding:18px;font:inherit;font-size:16px;line-height:1.6;color:#332d34;outline:none;box-shadow:inset 0 1px 0 #fff}
.qaInput textarea:focus{border-color:#ed9bc8;box-shadow:0 0 0 4px rgba(240,143,197,.13)}
.qaInput button{border:0;border-radius:18px;padding:16px 20px;color:white;font-weight:800;font-size:16px;background:linear-gradient(110deg,#ef8fbd,#a982ed);box-shadow:0 10px 24px rgba(195,119,186,.26)}
.qaExamples{display:flex;gap:8px;overflow:auto;padding:14px 0 4px;scrollbar-width:none}.qaExamples button{white-space:nowrap;border:1px solid #eadde6;background:#fff;border-radius:999px;padding:9px 13px;color:#756675;font-size:13px}
.sajuAnswer{margin-top:18px;border-radius:22px;overflow:hidden;background:#fff;border:1px solid #eadde6}.qaHint{padding:18px;margin:0;color:#8a7c88;text-align:center}
.qaAnswerHead{padding:22px;background:linear-gradient(135deg,#352d3b,#5b405b);color:#fff;display:grid;gap:7px}.qaAnswerHead span{font-size:12px;letter-spacing:.18em;color:#ffc7df}.qaAnswerHead b{font-size:22px}.qaAnswerHead em{font-style:normal;color:#ffe5b0;font-weight:700}
.qaAnswerBody{padding:22px}.qaAnswerBody h4{margin:18px 0 6px;color:#9c5980;font-size:14px}.qaAnswerBody h4:first-child{margin-top:0}.qaAnswerBody p{margin:0;line-height:1.78;color:#4f4750}
.richAnswer p+p{margin-top:12px}.answerHook{margin:-4px 0 22px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#fff0f6,#f4efff);color:#5e3d55;font-size:18px;font-weight:800;line-height:1.62;box-shadow:inset 0 0 0 1px rgba(231,139,187,.18)}
.richAnswer h4{font-size:16px;color:#a65383;margin-top:25px}.realityNote{margin-top:16px!important;padding:14px 16px;border-radius:14px;background:#f8f5f7;color:#756b73!important;font-size:14px}
@media(max-width:600px){.saju-qa{padding:22px 18px}.qaAnswerHead,.qaAnswerBody{padding:18px}.qaInput button{min-height:54px}}

.aiThinking{padding:28px 20px;text-align:center;display:grid;gap:8px}.aiThinking i{width:38px;height:38px;margin:auto;border:4px solid #f3d8e8;border-top-color:#a982ed;border-radius:50%;animation:aiSpin .9s linear infinite}.aiThinking b{font-size:18px;color:#5e3d55}.aiThinking span{color:#8b7d88}.aiError{padding:18px;background:#fff0f2;color:#8b3d4f}.aiError p{margin:8px 0 0}.aiHead{background:linear-gradient(135deg,#452e4b,#875581)}.aiRich h4{margin-top:26px}.aiBullet{padding-left:20px;position:relative}.aiBullet:before{content:"•";position:absolute;left:4px;color:#e477ae;font-weight:900}@keyframes aiSpin{to{transform:rotate(360deg)}}

@media print{
  body{background:#fff}
  section,.lifegrid article{box-shadow:none;background:#fff}
  .plainHero,.closing{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
