/* 무료 한눈에 보기: 스타일 범위를 모달에 국한하여 기존 공개 만세력 디자인을 보호한다. */
.saju-compact-launch {display:flex;justify-content:flex-end;margin:-4px 0 8px;}
#saju-compact-open {border:1px solid #b9cce7;border-radius:9px;background:#eef5fd;color:#1b4e83;font-size:14px;font-weight:800;padding:9px 13px;cursor:pointer;}
#saju-compact-open:hover,#saju-compact-open:focus-visible {background:#ddecfc;}
#saju-compact-open[hidden],.saju-compact-modal[hidden] {display:none!important;}
.saju-compact-modal {position:fixed;inset:0;z-index:100000;display:flex;justify-content:center;align-items:stretch;background:rgba(13,25,43,.67);padding:12px;}
.saju-compact-panel {height:100%;width:100%;max-width:690px;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border-radius:15px;box-shadow:0 20px 50px rgba(0,0,0,.2);color:#19273b;}
.saju-compact-header {min-height:57px;padding:8px 16px;display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #dde5ee;flex-shrink:0;}
.saju-compact-heading {min-width:0;}
.saju-compact-heading h2 {font-size:18px;font-weight:900;line-height:1.25;margin:0;color:#162840;}
.saju-compact-heading>span {display:block;font-size:12px;margin-top:3px;color:#4d5e74;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.saju-compact-close {flex:0 0 auto;width:38px;height:38px;border-radius:9px;border:1px solid #d7dee8;background:#fff;color:#27394f;cursor:pointer;font-size:29px;line-height:1;}
.saju-compact-close:hover,.saju-compact-close:focus-visible {background:#eff3f8;}
.saju-compact-content {min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 13px 14px;}
.saju-compact-block {padding:7px 0 11px!important;margin:0!important;max-width:none!important;min-width:0;border-bottom:1px solid #e3e9ef;}
.saju-compact-block:last-child{border:0;}
.saju-compact-block h3 {margin:0 0 8px;font-size:15px;font-weight:900;color:#142b49;line-height:1.25;}
.saju-compact-pillars {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:390px;margin:0 auto;gap:6px;}
.saju-compact-pillar {display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;}
.saju-compact-pillar-title {font-size:13px;font-weight:800;line-height:1.1;}
.saju-compact-ten {color:#455a74;font-weight:600;line-height:1.25;text-align:center;white-space:nowrap;font-size:11px;}
.saju-compact-ganji {display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:4px;color:white!important;min-width:0;width:100%;gap:1px;}
.saju-compact-pillar .saju-compact-ganji {height:54px;max-width:76px;}
.saju-compact-han {font-size:27px;font-weight:650;line-height:1;}
.saju-compact-ko {font-size:12px;line-height:1;font-weight:500;}
.saju-compact-wood {background:#1e40af!important;}
.saju-compact-fire {background:#d94925!important;}
.saju-compact-earth {background:#eab308!important;}
.saju-compact-metal {background:#9ca3af!important;}
.saju-compact-water {background:#111827!important;}
.saju-compact-section-head {display:flex;justify-content:space-between;align-items:baseline;gap:6px;}
.saju-compact-section-head>span{font-size:12px;color:#43566f;}
.saju-compact-scroll {width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a4b6ce #edf1f6;}
.saju-compact-luck-row {display:flex;width:max-content;min-width:100%;gap:4px;padding:2px 0 6px;}
.saju-compact-luck-card {font-family:inherit;box-sizing:border-box;flex:0 0 55px;width:55px;min-width:55px;padding:5px 3px;border-radius:6px;background:#fff;border:1px solid #dce4ed;display:flex;flex-direction:column;gap:2px;align-items:center;color:#1d334b;cursor:pointer;}
.saju-compact-luck-card .saju-compact-ganji {height:34px;}
.saju-compact-luck-card .saju-compact-han {font-size:21px;}
.saju-compact-luck-card .saju-compact-ko {font-size:10px;}
.saju-compact-meta {font-size:10px;line-height:1.3;color:#38506c;font-weight:800;white-space:nowrap;}
.saju-compact-age {font-size:11px;font-weight:700;color:#344961;white-space:nowrap;}
.saju-compact-luck-card .saju-compact-ten {font-size:10px;max-width:100%;letter-spacing:-.03em;}
.saju-compact-luck-card.is-selected {outline:2px solid #2374c2;outline-offset:-1px;background:#eff6ff;border-color:#2374c2;}
.saju-compact-luck-card.is-current:not(.is-selected) {border:2px solid #d94925;padding:4px 2px;}
.saju-compact-year-card {cursor:default;}
.saju-compact-year-card.is-current-year {outline:2px solid #d94925;outline-offset:-1px;background:#fff8f4;}
.saju-compact-scroll:focus-visible,.saju-compact-luck-card:focus-visible{outline:2px solid #2474c5;outline-offset:1px;}
@media(max-width:640px){
    .saju-compact-modal {padding:0;}
    .saju-compact-panel {max-width:none;border-radius:0;height:100dvh;}
    .saju-compact-header {min-height:52px;padding:6px 11px;}
    .saju-compact-content {padding:5px 9px 12px;}
    .saju-compact-block {padding:6px 0 9px!important;}
    .saju-compact-pillar .saju-compact-ganji {height:48px;}
    .saju-compact-pillar .saju-compact-han {font-size:25px;}
    .saju-compact-luck-card {flex-basis:51px;width:51px;min-width:51px;padding:4px 2px;}
    .saju-compact-luck-card .saju-compact-ganji {height:33px;}
    .saju-compact-luck-card .saju-compact-han {font-size:20px;}
    .saju-compact-luck-card.is-current:not(.is-selected) {padding:3px 1px;}
    .saju-compact-scroll {scrollbar-width:none;}
    .saju-compact-scroll::-webkit-scrollbar {display:none;}
}
@media(max-width:350px){
    .saju-compact-luck-card{width:49px;flex-basis:49px;min-width:49px;}
    .saju-compact-pillar .saju-compact-ganji{height:46px;}
    .saju-compact-pillar .saju-compact-han{font-size:24px;}
}

/* 한눈에 보기: 사주팔자의 지장간과 출생시각 보정만 간결하게 추가. */
.saju-compact-heading .saju-compact-person-name {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.saju-compact-heading .saju-compact-person-time {display:block;margin-top:3px;line-height:1.35;white-space:normal;word-break:keep-all;}
.saju-compact-person-time b {font-weight:800;color:#263e5e;}
.saju-compact-pillar .saju-compact-ganji.saju-compact-has-hidden {height:69px;justify-content:flex-start;padding:7px 2px 4px;}
.saju-compact-hidden {display:block;width:100%;max-width:100%;margin-top:auto;padding-top:4px;border-top:1px solid rgba(255,255,255,.5);text-align:center;color:#fff;font-size:11px;letter-spacing:-.03em;line-height:1.2;white-space:nowrap;}
@media(max-width:640px){
  .saju-compact-pillar .saju-compact-ganji.saju-compact-has-hidden {height:64px;padding-top:6px;}
  .saju-compact-heading .saju-compact-person-time {font-size:11px;}
}
@media(max-width:350px){
  .saju-compact-pillar .saju-compact-ganji.saju-compact-has-hidden {height:62px;}
  .saju-compact-hidden {font-size:10px;}
}
