/* The original chart stays compact; the following pages share its notebook. */
.saju-table td{padding:4px 5px}
.symbol-row td{height:80px}
.saju-symbol{min-height:68px}
.symbol-name{font-size:34px;line-height:1.15}
.element-doodle{height:30px}
.element-doodle .element-sketch{width:30px;height:30px}
.god-row td{height:32px;padding:4px}
.ten-god{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:0 4px;font-size:16px;line-height:1.4}
.ten-god-name,.ten-god-keyword{white-space:nowrap}
.ten-god-keyword{font-size:11px;font-weight:400;line-height:1.5}
.saju-table thead th{padding-bottom:7px}
.manseok-result #calendar-result{margin-bottom:12px}
.star-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;margin-top:14px;color:#64645c}
.star-table caption{text-align:left;font:20px/1.4 var(--hand);color:#686775;padding:0 0 7px}
.star-table th,.star-table td{text-align:center;padding:6px 4px;border-right:1px solid #d3cec5;border-bottom:1px solid #d3cec5;vertical-align:middle}
.star-table thead th{background:#efede7;font-size:13px;font-weight:500;border-top:1px solid #d3cec5}
.star-table th:first-child{width:60px;border-left:1px solid #d3cec5;font-weight:500}
.star-table thead th:first-child{border-radius:6px 0 0 0}
.star-table thead th:last-child{border-radius:0 6px 0 0}
.star-table tbody tr:last-child th{border-radius:0 0 0 6px}
.star-table tbody tr:last-child td:last-child{border-radius:0 0 6px 0}
.star-table td{background:#fffef9}
.star-tag{display:inline-block;max-width:100%;padding:2px 5px;margin:2px;border:1px solid #e3d9c6;border-radius:6px 4px 7px 3px;background:#f6f0e5;color:#77705e;line-height:1.5;overflow-wrap:anywhere}
.star-table tbody tr:first-child .star-tag{background:#eef2e9;border-color:#d7e0cf;color:#627554}
.star-tag.is-possible{border-style:dashed}
.star-empty{font-size:12px;color:#96958c}
.star-caption{font-size:12px;color:#8a8579;margin:6px 0 0}
.insight-notebook{grid-column:1/-1;min-width:0;padding:22px 24px 18px;border-top:1px solid #e1dfd5;background:linear-gradient(#97a6b00a 1px,transparent 1px),#fffef8;background-size:100% 24px}
.insight-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.insight-kicker{display:inline-block;font-size:13px;color:#8e8399;background:#eee7f2;padding:2px 9px;transform:rotate(-2deg);border-radius:2px}
.insight-heading h2{font:27px/1.4 var(--hand);color:#566078;margin:5px 0 0}
.composition-basis{color:#92948b;font-size:12px;text-align:right}
.composition-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:20px;align-items:start}
.element-map-panel{min-width:0;align-self:center}
.relationship-controls{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.relationship-button{border:1px solid #d6d8d8;border-radius:12px 8px 11px 9px;padding:6px 9px;background:#fffefb;font-size:12px;color:#858a88;min-height:36px}
.relationship-button[aria-pressed=true]{background:#eaf0f4;border-color:#a2b5c7;color:#58728c}
.relationship-button:nth-child(2)[aria-pressed=true]{background:#f8ecea;border-color:#d2aaa8;color:#a97776}
.element-map{position:relative;width:100%;aspect-ratio:500/415;margin:8px auto 0;max-width:510px}
.relationship-arrows{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.element-sticker{position:absolute;transform:translate(-50%,-50%);width:24%;height:24%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#fffefb;border:1.5px solid var(--sticker-edge);border-radius:45% 40% 43% 38%;box-shadow:2px 2px 0 var(--sticker-paper);color:var(--sticker-ink)}
.sticker-wood{--sticker-edge:#a9c1a9;--sticker-paper:#dbe7d5;--sticker-ink:#638b68;background:#f4f8ef}
.sticker-fire{--sticker-edge:#d6a6ab;--sticker-paper:#f3d9d7;--sticker-ink:#bb6971;background:#fff4f0}
.sticker-earth{--sticker-edge:#d7c17f;--sticker-paper:#f4e9bf;--sticker-ink:#a68b41;background:#fffbeb}
.sticker-metal{--sticker-edge:#bfc3bd;--sticker-paper:#e6e6df;--sticker-ink:#818480;background:#f7f7f1}
.sticker-water{--sticker-edge:#a7c6d6;--sticker-paper:#d8e9ef;--sticker-ink:#588fae;background:#f1f8fb}
.sticker-name{display:flex;align-items:center;font-size:14px;font-weight:500;line-height:1.2;gap:2px}
.sticker-name .element-sketch{width:22px;height:22px}
.sticker-percent{font-size:19px;font-weight:600;letter-spacing:-.7px;line-height:1.35;white-space:nowrap}
.sticker-percent.is-range{font-size:13px;letter-spacing:-.6px}
.element-sticker small{font-size:12px;color:#99998c;line-height:1.3}
.relationship-flow{text-align:center;font-size:12px;letter-spacing:.3px;color:#919889;margin:4px 0 0}
.composition-tables{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.25fr);gap:12px;align-items:start;min-width:0}
.composition-card{min-width:0;border:1px solid #d9d4c9;border-radius:8px 5px 9px 5px;background:#fffefb;overflow:hidden}
.composition-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:13px;color:#71736c}
.composition-table caption{text-align:left;padding:10px 9px;background:#f1ece4;font:20px/1.2 var(--hand);color:#746958}
.god-percent-card caption{background:#eeedf3;color:#72788d}
.composition-table thead th{font-size:12px;font-weight:400;background:#faf8f3;color:#96968b;padding:7px 2px;border-bottom:1px solid #e4dfd4}
.composition-table tbody th{font-size:14px;font-weight:500;width:28%}
.composition-table td,.composition-table tbody th{border-bottom:1px dashed #e4dfd4;padding:9px 3px;text-align:center;overflow-wrap:anywhere}
.composition-table tbody tr:last-child>*{border-bottom:0}
.composition-table .keyword-cell{font-size:12px;color:#959181}
.composition-table .direction-cell{font-size:12px;color:#97998e}
.composition-table .ratio-cell{font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums;word-break:normal}
.composition-table thead th:last-child{width:39%}
.composition-meter{position:relative;display:block;height:4px;border-radius:3px;background:#efeee6;margin:5px 2px 0;overflow:hidden}
.composition-meter>span{position:absolute;left:0;top:0;height:100%;border-radius:3px}
.meter-possible{opacity:.35}.meter-certain{opacity:.8}
.composition-note{font-size:12px;color:#999789;margin:14px 0 0;line-height:1.7}
.insight-method{border-top:1px dashed #d5d3c7;margin-top:12px;padding-top:10px;color:#8c8b7e;font-size:13px}
.insight-method summary{cursor:pointer;min-height:28px}
.insight-method p{margin:8px 0;line-height:1.7}
.insight-method a{display:inline-block;color:#7c88a0;text-decoration:underline;text-underline-offset:3px;margin-top:5px}
@media(max-width:820px){.composition-layout{grid-template-columns:1fr;gap:18px}.element-map-panel{width:100%;max-width:440px;margin:auto}.composition-tables{grid-template-columns:1fr 1.25fr;gap:14px}.composition-table{font-size:14px}.composition-table .ratio-cell{font-size:14px}}
@media(max-width:650px){
 .symbol-name{font-size:26px}.symbol-row td{height:70px}.saju-symbol{min-height:60px}.saju-table td{padding:3px}
 .element-doodle{height:28px}.element-doodle .element-sketch{width:28px;height:28px}.god-row td{height:29px}.ten-god{font-size:14px}
 .star-table th:first-child{width:43px}.star-table{font-size:12px}.star-table th,.star-table td{padding:4px 2px}.star-tag{margin:2px 1px;padding:2px 3px}.star-table caption{font-size:19px}
 .insight-notebook{padding:18px 12px 14px}.insight-heading h2{font-size:25px}.composition-layout{gap:14px}.composition-tables{gap:8px;grid-template-columns:1fr 1.3fr}
 .composition-table caption{font-size:19px;padding:9px 7px}.composition-table tbody th{font-size:13px}.composition-table .ratio-cell{font-size:12px}.composition-table .keyword-cell,.composition-table .direction-cell{font-size:12px}.composition-table td,.composition-table tbody th{padding:8px 2px}
 .sticker-name{font-size:13px}.sticker-percent{font-size:18px}.sticker-name .element-sketch{width:20px;height:20px}
}
@media(max-width:380px){.symbol-name{font-size:22px}.symbol-row td{height:66px}.saju-symbol{min-height:56px}.star-table th:first-child{width:37px}.insight-notebook{padding-left:10px;padding-right:10px}.sticker-name{font-size:12px}.sticker-name .element-sketch{width:18px;height:18px}.sticker-percent{font-size:16px}.sticker-percent.is-range{font-size:12px}.element-sticker small{font-size:12px}.relationship-button{font-size:12px;padding-left:7px;padding-right:7px}.composition-tables{grid-template-columns:1fr;gap:13px}.composition-table{font-size:14px}.composition-table .ratio-cell,.composition-table tbody th{font-size:14px}.composition-table .keyword-cell,.composition-table .direction-cell{font-size:13px}}

.star-scope{font:12px/1.4 var(--body);color:#aaa492;margin-left:8px}
/* Keep the words and percentages readable on a narrow notebook page. */
.composition-table .keyword-cell,.composition-table .direction-cell{font-size:14px}
.composition-table .ratio-cell,.composition-table thead th{font-size:14px}
.relationship-button{font-size:14px}
@media(max-width:520px){
 .composition-tables{grid-template-columns:1fr;gap:13px}
 .composition-table tbody th,.composition-table .ratio-cell,.composition-table .keyword-cell,.composition-table .direction-cell{font-size:14px}
 .composition-table td,.composition-table tbody th{padding:7px 5px}
 .relationship-button{font-size:13px;padding-left:7px;padding-right:7px}
}

/* Pencil notes: open paper, handwritten headings, and aligned numeric columns. */
.insight-notebook{background:#fffef8;border-top:1px dashed #d3d2c8;padding-top:27px}
.insight-kicker{font:25px/1.25 'Gaegu',var(--hand);color:#606854;background:none;padding:0;transform:none;border-radius:0}
.insight-heading h2{font:32px/1.3 'Gaegu',var(--hand);color:#536078;margin-top:3px}
.composition-basis{font-size:13px;color:#777e72}
.relationship-button{border:0;border-bottom:1px dashed #c9cec3;border-radius:0;background:transparent;padding:5px 6px;color:#727b6a}
.relationship-button[aria-pressed=true]{background:transparent;border-bottom:2px solid #8396a8;color:#465f76}
.relationship-button:nth-child(2)[aria-pressed=true]{background:transparent;border-bottom-color:#ba9795;color:#976e6a}
.relationship-controls{gap:13px}
.element-sticker{width:29%;height:auto;min-height:24%;background:transparent;border:0;border-radius:0;box-shadow:none;padding:2px 0}
.sticker-name{font-family:var(--hand);font-weight:400;font-size:15px;gap:3px}
.sticker-name .element-sketch{width:35px;height:35px;object-fit:contain}
.sticker-percent{font:28px/1.1 'Gaegu',var(--hand);letter-spacing:0;white-space:nowrap}
.sticker-percent.is-range{font-size:20px;letter-spacing:-.5px}
.element-sticker small{font-size:13px;color:#777d71}
.relationship-flow{font:18px/1.5 'Gaegu',var(--hand);color:#74816d;margin-top:10px}
.composition-tables{gap:20px}
.composition-card{border:0;border-radius:0;background:transparent;overflow:visible}
.composition-table caption,.god-percent-card caption{font:27px/1.3 'Gaegu',var(--hand);padding:7px 0 10px;background:transparent;color:#58644f;border-bottom:2px solid #c6cabc}
.god-percent-card caption{color:#636c84;border-bottom-color:#c9cdd8}
.composition-table thead th{background:transparent;color:#7b8075;padding:10px 3px 8px}
.composition-table tbody th{font-weight:500;font-size:14px}
.composition-table td,.composition-table tbody th{padding:10px 4px;border-bottom:1px solid #e7e7df}
.composition-table .ratio-cell{font-family:var(--body);font-size:15px;font-variant-numeric:tabular-nums;color:#525b50}
.composition-table .keyword-cell,.composition-table .direction-cell{font-size:14px;color:#7d8175}
.composition-meter{height:5px;background:transparent;border-bottom:1px solid #e2e3d9;border-radius:0;margin-top:5px}
.composition-meter>span{border-radius:45% 20% 30% 15%;background-image:repeating-linear-gradient(110deg,transparent 0 2px,#ffffff88 2px 3px)}
.composition-note{font-size:13px;color:#7c8175}
@media(max-width:820px){.composition-layout{gap:22px}.element-map-panel{max-width:410px}}
@media(max-width:650px){
 .insight-notebook{padding:23px 15px 18px}
 .composition-tables{gap:23px}
 .sticker-name{font-size:14px;gap:1px}
 .sticker-name .element-sketch{width:29px;height:29px}
 .sticker-percent{font-size:25px}
 .sticker-percent.is-range{font-size:18px}
 .element-sticker small{font-size:12px}
 .relationship-controls{gap:7px}
 .relationship-button{font-size:13px;padding-left:2px;padding-right:2px}
}
@media(max-width:380px){
 .sticker-name{font-size:13px}
 .sticker-name .element-sketch{width:25px;height:25px}
 .sticker-percent{font-size:22px}
 .sticker-percent.is-range{font-size:16px}
 .relationship-flow{font-size:16px}
}

/* Soft handwriting and the already approved result character. */
.symbol-name{font-weight:400;letter-spacing:0}
.symbol-ko{font-family:'Nanum Pen Script',var(--hand);font-size:1.08em;margin-right:1px}
.symbol-hanja{font-family:'Klee One',serif;font-size:.8em;font-weight:400;letter-spacing:0}
.manseok-title-row{display:flex;align-items:center;gap:8px;margin:2px 0 8px}
.manseok-title-row h2{margin:0}
.chart-character-wrap{width:54px;flex-shrink:0}
.chart-character-wrap[hidden]{display:none}
#birth-form #nickname::placeholder{font-size:20px}
#birth-form #birth-calendar{font-size:18px}
@media(max-width:650px){
 .chart-character-wrap{width:44px}
 #birth-form #nickname::placeholder{font-size:18px}
 #birth-form #birth-calendar{font-size:17px}
}

/* The animal stands on its year's colored pencil circle. */
.manseok-title-row{width:100%;gap:14px;justify-content:space-between}
.manseok-title-row h2{flex:1;min-width:0;word-break:keep-all;line-height:1.35}
.chart-character-wrap{display:flex;align-items:center;gap:3px;width:auto;color:#566254}
.chart-character-stage{position:relative;width:104px;height:112px;flex-shrink:0}
.chart-character-stage .sprite{width:104px;position:relative;z-index:1}
.chart-character-ground{position:absolute;top:37px;left:-5px;width:114px;height:114px;background:var(--ground-color);mask:url('assets/pencil-ground-v1.png') center/contain no-repeat;-webkit-mask:url('assets/pencil-ground-v1.png') center/contain no-repeat}
#chart-character-name{font:22px/1.3 'Gaegu',var(--hand);white-space:nowrap}
.chart-character-wrap[data-element=wood]{--ground-color:#4288c6}
.chart-character-wrap[data-element=fire]{--ground-color:#ce565b}
.chart-character-wrap[data-element=earth]{--ground-color:#e1b434}
.chart-character-wrap[data-element=metal]{--ground-color:#bcc0c4}
.chart-character-wrap[data-element=water]{--ground-color:#32343a}
@media(max-width:650px){
 .chart-character-stage{width:86px;height:94px}
 .chart-character-stage .sprite{width:86px}
 .chart-character-ground{top:29px;left:-5px;width:96px;height:96px}
 #chart-character-name{font-size:19px}
}
@media(max-width:420px){
 .manseok-title-row{gap:8px;align-items:center}
 .chart-character-wrap{flex-direction:column;gap:0;margin-top:-8px}
 .chart-character-stage{height:90px}
 #chart-character-name{font-size:18px;margin-top:-4px}
 .manseok-title-row h2{font-size:24px}
}
