/* YEOKJU — first chapter's actual five-element 명식표.
 * Based on computed day-stem ten gods and branch 本氣, never hardcoded roles.
 * Saturated element squares: 木 teal, 火 red, 土 gold, 金 silver, 水 ink-blue.
 */
@media screen{
 #resultView #yeokjuCustomerReading .yeokju-myeongpan{
  display:block;position:relative;box-sizing:border-box;
  width:100%;max-width:100%;min-width:0;margin:20px 0 29px!important;
  padding:20px clamp(10px,2.6vw,25px) 15px!important;
  border:1px solid #b69463;border-radius:13px;
  background:radial-gradient(ellipse at 85% 4%,#956a4d24,transparent 53%),linear-gradient(160deg,#0e1825,#161a27 80%,#14131c);
  box-shadow:0 12px 33px #0004,inset 0 0 0 4px #0e141b;
  color:#f9e6cb!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-intro{
  display:flex;flex-direction:column;gap:6px;padding:0 1px 15px!important;
  border-bottom:1px solid #b694635f;margin:0 0 14px;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-eyebrow{
  color:#d9b783!important;font-size:11px!important;font-weight:700;
  letter-spacing:.13em;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-title{
  margin:0!important;padding:0!important;
  font:700 clamp(20px,2.6vw,27px)/1.4 'Noto Serif KR',serif!important;
  color:#ffedca!important;-webkit-text-fill-color:#ffedca!important;
  letter-spacing:-.04em;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tip{
  margin:0!important;font-size:13px!important;line-height:1.65!important;
  color:#dcc9ad!important;-webkit-text-fill-color:#dcc9ad!important;
  word-break:keep-all!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-grid{
  display:grid!important;box-sizing:border-box;width:100%;min-width:0;max-width:100%;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(6px,1.5vw,15px)!important;align-items:stretch;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-grid.count-3{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-pillar{
  display:flex;flex-direction:column;align-items:stretch;gap:6px;
  width:100%;min-width:0;box-sizing:border-box;
  padding:10px 6px 13px!important;border:1px solid #a58a6566;border-radius:10px;
  background:linear-gradient(160deg,#1d2431,#101923);color:#f4ddbb;
  box-shadow:0 6px 19px #0003;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-pillar.is-day{
  position:relative;background:linear-gradient(145deg,#3c2229,#241925);
  border:2px solid #e3aa76;box-shadow:0 0 0 2px #742f31,0 6px 22px #0007;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-pillar.is-day:before{
  content:"나";position:absolute;right:5px;top:-9px;z-index:1;
  padding:3px 5px;border-radius:4px;background:#a03d3b;color:#fff7e2;
  font:bold 10px/1.3 'Noto Sans KR',sans-serif;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-position{
  display:block;text-align:center;color:#f5d6a3!important;
  font:700 clamp(13px,1.6vw,16px)/1.5 'Noto Sans KR',sans-serif!important;
  letter-spacing:.025em;white-space:nowrap;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-role{
  display:grid;place-items:center;text-align:center;box-sizing:border-box;
  width:100%;min-height:23px;padding:3px 2px;
  border-radius:4px;color:#fbebce!important;
  font:750 clamp(11px,1.45vw,14px)/1.3 'Noto Sans KR',sans-serif!important;
  white-space:nowrap;letter-spacing:-.035em;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-role.role-top{
  background:#5a4437;border:1px solid #977a5b;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-role.role-bottom{
  background:#243845;border:1px solid #637685;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-pillar.is-day .role-top{
  background:#a4433c;border-color:#f0a184;color:#fff1d6!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile{
  --tone:#29426c;--ink:#fff2e5;--glow:#acc4db;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-sizing:border-box;width:100%;min-width:0;min-height:80px;
  aspect-ratio:1 / 1.02;padding:5px 2px!important;
  border:3px solid #060d14;border-radius:4px;
  background:var(--tone)!important;color:var(--ink)!important;
  box-shadow:inset 0 0 0 1px #ffffff55,0 4px 0 #050810,0 8px 16px #0008;
  position:relative;overflow:hidden;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 24% 14%,#ffffff56,transparent 52%);opacity:.62;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile strong{
  position:relative;display:block;z-index:1;font-family:'Noto Serif KR','Nanum Myeongjo',serif!important;
  font-size:clamp(33px,4.7vw,61px)!important;font-weight:900!important;line-height:1.15!important;
  color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;
  -webkit-text-stroke:.35px #0c1017;text-shadow:1px 2px 0 #07080b,0 2px 8px #0008;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile small{
  position:relative;z-index:1;margin-top:3px!important;
  color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;
  font:700 clamp(10px,1.4vw,13px)/1.2 'Noto Sans KR',sans-serif!important;
  text-shadow:0 1px 4px #0004;white-space:nowrap;
 }
 #resultView #yeokjuCustomerReading :is(.yeokju-myeongpan-tile,.yeokju-myeongpan-chip)[data-element="목"]{
  --tone:#117f4e;--ink:#fff9e6;
 }
 #resultView #yeokjuCustomerReading :is(.yeokju-myeongpan-tile,.yeokju-myeongpan-chip)[data-element="화"]{
  --tone:#be342c;--ink:#fff8e8;
 }
 #resultView #yeokjuCustomerReading :is(.yeokju-myeongpan-tile,.yeokju-myeongpan-chip)[data-element="토"]{
  --tone:#e7ad2f;--ink:#23180e;
 }
 #resultView #yeokjuCustomerReading :is(.yeokju-myeongpan-tile,.yeokju-myeongpan-chip)[data-element="금"]{
  --tone:#dae0e2;--ink:#1c2631;
 }
 #resultView #yeokjuCustomerReading :is(.yeokju-myeongpan-tile,.yeokju-myeongpan-chip)[data-element="수"]{
  --tone:#264b8a;--ink:#fff5e1;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile[data-element="금"] :is(strong,small),
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile[data-element="토"] :is(strong,small){
  text-shadow:0 1px 1px #ffffff80!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-between{
  height:1px;background:#c0a88166;margin:2px 4px;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-footer{
  margin:17px 1px 0;padding-top:12px;border-top:1px solid #b694635f;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-key-heading{
  display:block;margin-bottom:8px;color:#e8cb9d!important;font-size:12px;font-weight:800;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-key{
  display:flex;gap:6px;flex-wrap:wrap;align-items:center;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-chip{
  background:var(--tone)!important;color:var(--ink)!important;
  font:750 12px/1.2 'Noto Sans KR',sans-serif!important;
  border:1px solid #000a;border-radius:5px;padding:5px 8px;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-technical{
  margin:10px 0 0!important;color:#ddcfbc!important;
  font-size:12px!important;line-height:1.65!important;word-break:keep-all!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-unavailable{
  padding:15px;border:1px solid #ad8557;color:#eed8b6!important;border-radius:9px;
 }
}
@media screen and (max-width:700px){
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan{
  padding:13px 8px 11px!important;margin:13px 0 20px!important;border-radius:9px;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-intro{
  padding:2px 6px 12px!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-title{
  font-size:clamp(19px,5vw,23px)!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-tip{
  font-size:12px!important;line-height:1.65!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-grid{
  gap:6px!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-pillar{
  padding:9px 3px!important;gap:5px;border-radius:7px;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-position{
  font-size:13px!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-role{
  min-height:22px;font-size:clamp(10px,2.6vw,12px)!important;padding:3px 1px;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile{
  min-height:0!important;aspect-ratio:1 / 1.08;padding:3px 1px!important;
  border-width:2px!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile strong{
  font-size:clamp(37px,10.5vw,49px)!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile small{
  font-size:clamp(9px,2.2vw,11px)!important;margin-top:0!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-key{
  justify-content:space-between;gap:4px;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-chip{
  padding:5px 6px;font-size:11px!important;
 }
}
@media screen and (max-width:360px){
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-pillar{
  padding:7px 2px!important;gap:4px;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile strong{
  font-size:clamp(35px,10vw,43px)!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile small{
  font-size:9px!important;letter-spacing:-.035em;
 }
}
/* Compact paper version for the report print workflow. */
@media print{
 #yeokjuCustomerReading .yeokju-myeongpan{
  display:block!important;width:100%;margin:5mm 0 8mm;padding:4mm!important;
  border:1px solid #8c7451;background:#fff8ed;break-inside:avoid;
 }
 #yeokjuCustomerReading .yeokju-myeongpan-intro{margin-bottom:3mm}
 #yeokjuCustomerReading .yeokju-myeongpan-intro :is(h3,p){margin:1mm 0;font-size:10pt;color:#36261e}
 #yeokjuCustomerReading .yeokju-myeongpan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm}
 #yeokjuCustomerReading .yeokju-myeongpan-grid.count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
 #yeokjuCustomerReading .yeokju-myeongpan-pillar{display:flex;flex-direction:column;align-items:center;gap:1mm}
 #yeokjuCustomerReading .yeokju-myeongpan-position,
 #yeokjuCustomerReading .yeokju-myeongpan-role{font-size:9pt;color:#36261e}
 #yeokjuCustomerReading .yeokju-myeongpan-tile{
  display:grid;justify-items:center;align-content:center;width:19mm;height:19mm;box-sizing:border-box;
  background:#f5e1bc;border:1px solid #8f6d44;border-radius:2mm;
  break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact;
 }
 #yeokjuCustomerReading .yeokju-myeongpan-tile[data-element="목"]{background:#cbe6cf}
 #yeokjuCustomerReading .yeokju-myeongpan-tile[data-element="화"]{background:#f6c8c2}
 #yeokjuCustomerReading .yeokju-myeongpan-tile[data-element="토"]{background:#efd58c}
 #yeokjuCustomerReading .yeokju-myeongpan-tile[data-element="금"]{background:#dde5e7}
 #yeokjuCustomerReading .yeokju-myeongpan-tile[data-element="수"]{background:#c7d8ed}
 #yeokjuCustomerReading .yeokju-myeongpan-tile strong{font-size:19pt;line-height:1.2;color:#1d1d1d}
 #yeokjuCustomerReading .yeokju-myeongpan-tile small{font-size:8pt;color:#1d1d1d}
 #yeokjuCustomerReading .yeokju-myeongpan-footer{margin-top:3mm}
 #yeokjuCustomerReading .yeokju-myeongpan-key{display:flex;flex-wrap:wrap;gap:2mm}
 #yeokjuCustomerReading .yeokju-myeongpan-chip{font-size:8pt;margin-right:2mm}
 #yeokjuCustomerReading .yeokju-myeongpan-technical{font-size:8pt;line-height:1.5}
}

/* Interactive details: one explanatory scene, no extra clutter per character. */
@media screen {
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile{
  appearance:none;-webkit-appearance:none;cursor:pointer;text-align:center;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:transform .15s ease,box-shadow .15s ease;
  font-family:inherit!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile[aria-pressed="true"]{
  outline:3px solid #f9d29a!important;outline-offset:2px!important;
  box-shadow:inset 0 0 0 1px #ffffff80,0 0 18px #c99f77b0!important;
  transform:translateY(-2px);
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile:focus-visible{
  outline:3px solid #fff2cd!important;outline-offset:3px!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-detail{
  margin:15px 0 4px!important;padding:15px 18px!important;
  border-left:4px solid #c05a50;border-radius:7px;
  background:linear-gradient(110deg,#fdf2df,#ead4b5);
  box-shadow:0 8px 22px #05091038;color:#30251e!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-detail-title{
  display:block;font:800 15px/1.6 'Noto Sans KR',sans-serif!important;
  color:#8f3a31!important;-webkit-text-fill-color:#8f3a31!important;
  margin:0 0 5px!important;
 }
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-detail-body{
  color:#322b25!important;-webkit-text-fill-color:#322b25!important;
  font:500 14px/1.75 'Noto Sans KR',sans-serif!important;
  margin:0!important;word-break:keep-all!important;overflow-wrap:break-word!important;
 }
}
@media screen and (max-width:700px){
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-detail{
  padding:13px 12px!important;margin:13px 1px 3px!important;
 }
 #nativeEngineHost #resultView #yeokjuCustomerReading .yeokju-myeongpan-detail-body{
  font-size:14px!important;line-height:1.72!important;
 }
}
@media screen and (prefers-reduced-motion:reduce){
 #resultView #yeokjuCustomerReading .yeokju-myeongpan-tile{transition:none!important}
}
@media print{
 #yeokjuCustomerReading .yeokju-myeongpan-tile{
  appearance:none;box-sizing:border-box;
  background:inherit;cursor:default;
 }
 #yeokjuCustomerReading .yeokju-myeongpan-tile[aria-pressed="true"]{outline:none!important;transform:none!important}
 #yeokjuCustomerReading .yeokju-myeongpan-detail{display:none!important}
}