.calendar-label select{border:0;background:transparent;color:inherit;font:inherit;padding:3px 14px 3px 3px}.compact-check{display:inline-flex;gap:7px;align-items:center;font-size:14px}.compact-check input{width:16px;height:16px;accent-color:#596791}.birth-extra{display:grid;gap:9px;margin:18px 0;color:#3d465d;font-size:14px}.time-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.birth-extra>input,.birth-extra>select,.calculation-options>input,.calculation-options>select{width:100%;min-height:42px;border:1px solid #bdc4d2;border-radius:7px;background:#fffdf8;color:#28354d;padding:8px 10px;font:inherit;font-size:16px;box-sizing:border-box}.birth-extra input:disabled{opacity:.5}.birth-extra small,.field-hint{font-size:13px;color:#667083;line-height:1.7}.calculation-options{border-top:1px dashed #bdc4d2;margin-top:5px;padding-top:12px}.calculation-options summary{cursor:pointer;font-size:14px;font-weight:600}.calculation-options>label{display:block;margin:16px 0 7px}.calculation-options p{font-size:14px;line-height:1.8;margin:12px 0 0}.manseok-result{max-width:960px;margin:35px auto 0;text-align:left;background:#fffefa;border:1px solid #b8bfce;border-radius:12px;padding:30px;color:#28354d;box-shadow:0 12px 35px #2933450a}.manseok-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.manseok-heading h2{font:30px Jua,sans-serif;margin:8px 0 15px}.manseok-heading>span{font-size:13px;color:#627088}.manseok-result p{line-height:1.75}.pillar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.pillar-card{background:#f2f4f9;border-radius:8px;text-align:center;padding:18px 7px;min-width:0}.pillar-card h3{font-size:14px;font-weight:500;margin:0 0 14px;color:#687389}.pillar-card strong{display:block;font-size:28px;color:#293c60;line-height:1.5;overflow-wrap:anywhere}.pillar-card span{display:block;font-size:16px;margin-top:6px}.pillar-card small{display:block;font-size:13px;line-height:1.7;margin-top:8px;color:#687389}.pillar-card.is-ambiguous{background:#fff1d8}.manseok-notice{font-size:15px;color:#74521d}.time-explanation{border-top:1px dashed #bac2d0;padding-top:18px}.time-explanation summary{font-size:16px;cursor:pointer;font-weight:600}.time-explanation p{margin:12px 0;font-size:15px}.time-explanation dl{display:grid;grid-template-columns:150px 1fr;gap:10px 16px;font-size:15px;line-height:1.7}.time-explanation dt{color:#687389}.time-explanation dd{margin:0}.reference-download{font-size:14px;margin-top:22px}.reference-download a{color:#465a86;text-decoration:underline}.book-cover .cover-paper{height:auto}.time-explanation code{font:inherit}.manseok-result[hidden],.compact-check[hidden]{display:none}select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #7f94bd;outline-offset:3px}@media(max-width:600px){.manseok-result{padding:21px 15px;margin:25px 16px 0}.pillar-grid{gap:7px}.pillar-card{padding:15px 4px}.pillar-card strong{font-size:22px}.pillar-card span{font-size:14px}.time-explanation dl{grid-template-columns:1fr;gap:4px}.time-explanation dd{margin-bottom:10px}.manseok-heading{align-items:flex-start}.manseok-heading h2{font-size:26px}}

#birth-time-range{min-height:50px;padding:12px;font-size:16px;cursor:pointer;background:#fffefa;border:1px solid #aeb9cd;border-radius:8px}
/* The original zodiac artwork remains untouched. */
.diary-pages>.manseok-result{grid-column:1/-1;width:100%;max-width:none;margin:0;padding:30px 30px 24px;border:0;border-bottom:1px solid #dddcd5;border-radius:3px 3px 0 0;background:#fffefa;box-shadow:none}
.manseok-heading h2{font-family:var(--hand);font-size:28px;margin:4px 0 8px;color:#404a59}.manseok-heading .eyebrow{font-size:12px;color:#82857b;letter-spacing:1px}.manseok-heading>span{color:#888b85;font-size:13px}.manseok-heading{align-items:center}.manseok-result #calendar-result{font-size:14px;color:#7d8179;margin-bottom:22px}
.pillar-table-wrap{width:100%}.saju-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;color:#54544e}.saju-table th,.saju-table td{vertical-align:middle;text-align:center}.saju-table thead th{padding:0 0 10px;font-size:16px;font-weight:500}.saju-table .table-corner,.saju-table .row-label{width:60px}.saju-table .row-label{font-size:15px;text-align:left;font-weight:500;padding:10px 12px 10px 0;border:0;background:none}.saju-table td{border-right:1px solid #bab8af;border-bottom:1px solid #bab8af;background:#fffefa;padding:8px 6px}.saju-table td:nth-child(2){border-left:1px solid #bab8af}.saju-table tbody tr:first-child td{border-top:1px solid #bab8af}.saju-table tbody tr:first-child td:nth-child(2){border-top-left-radius:9px}.saju-table tbody tr:first-child td:last-child{border-top-right-radius:9px}.saju-table tbody tr:last-child td:nth-child(2){border-bottom-left-radius:9px}.saju-table tbody tr:last-child td:last-child{border-bottom-right-radius:9px}.saju-table td.day-column{background:#f9f8f1}.self-tag{display:inline-block;margin-left:6px;background:#f0eee2;border-radius:4px;color:#817862;font-size:11px;padding:0 4px;vertical-align:2px}.symbol-row td{height:124px}.god-row td{height:46px;padding:8px 4px}.saju-symbol{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:105px}.symbol-name{font-size:39px;font-weight:700;line-height:1.25;letter-spacing:-2px;white-space:nowrap}.symbol-ko{margin-right:2px}.symbol-hanja{font-family:'Noto Sans KR','Apple SD Gothic Neo',sans-serif}.element-doodle{display:flex;align-items:center;justify-content:center;gap:1px;height:38px;margin-top:1px}.element-sketch{width:38px;height:38px;display:block;flex-shrink:0;object-fit:contain}.polarity-sign{font:24px/1 var(--hand);width:18px;text-align:center}.ten-god{display:block;font-size:17px;font-weight:500;line-height:1.5}.ten-god+.ten-god{margin-top:3px}.element-water{color:#2574b4}.element-fire{color:#c34347}.element-earth{color:#a27710}.element-wood{color:#33764b}.element-metal{color:#777570}.unknown-mark{display:block;color:#a7a89f;font-size:23px;line-height:1.5}.unknown-label{display:block;color:#8c8d86;font-size:12px;font-weight:400}.element-key{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px 14px;margin:12px 0 0;font-size:12px}.element-key .polarity-key{color:#77796f;margin-left:4px}.manseok-notice:empty{display:none}.manseok-notice{font-size:14px;line-height:1.7;margin-top:14px}.time-explanation{margin-top:18px;padding-top:14px}.time-explanation summary{font-size:14px;font-weight:500;color:#757a70}.time-explanation p{font-size:14px}.reference-download{font-size:12px;margin-top:14px}.diary-pages:has(>.manseok-result:not([hidden])) .portrait-page,.diary-pages:has(>.manseok-result:not([hidden])) .story-page{border-radius:0}.diary-stage[data-state=opening] .manseok-result{overflow:hidden}
@media(max-width:650px){.diary-pages>.manseok-result{padding:23px 15px 20px}.manseok-heading h2{font-size:25px}.manseok-heading>span{font-size:12px}.manseok-result #calendar-result{font-size:13px;margin-bottom:19px}.saju-table .table-corner,.saju-table .row-label{width:43px}.saju-table .row-label{font-size:13px;padding-right:6px}.saju-table thead th{font-size:14px}.saju-table td{padding:6px 3px}.symbol-name{font-size:28px;letter-spacing:-1.2px}.symbol-row td{height:109px}.saju-symbol{min-height:91px}.element-sketch{width:32px;height:32px}.element-doodle{height:32px}.polarity-sign{font-size:22px;width:15px}.ten-god{font-size:14px}.god-row td{height:41px;padding:7px 2px}.self-tag{display:none}.element-key{justify-content:center;gap:3px 10px;font-size:11px}.unknown-label{font-size:11px}.manseok-notice{font-size:13px}}
@media(max-width:380px){.diary-pages>.manseok-result{padding:21px 10px 18px}.saju-table .table-corner,.saju-table .row-label{width:37px}.symbol-name{font-size:23px;letter-spacing:-1px}.ten-god{font-size:13px}.saju-table thead th{font-size:13px}.element-sketch{width:28px;height:28px}.element-key{gap:2px 7px}}

/* Handwritten entries sit directly on the notebook paper. */
#birth-form{--entry-hand:'Gaegu',var(--hand)}
#birth-form input[type="text"],
#birth-form #birth-calendar{
  font-family:var(--entry-hand);
  font-weight:400;
  font-size:24px;
  line-height:1.4;
  letter-spacing:.2px;
  color:#4e586b;
  caret-color:#536484;
}
#birth-form input::placeholder{
  font-family:inherit;
  font-weight:400;
  font-size:inherit;
  letter-spacing:inherit;
}
#birth-form .code-field input{font-size:30px;font-variant-numeric:normal}
#birth-form .code-field>span{font-family:var(--entry-hand);font-size:17px}
#birth-form #birth-calendar{font-size:inherit}
#birth-form .code-field,
#birth-form #birth-time-range{background:transparent;box-shadow:none}
#birth-form .code-field:focus-within{background:#ffffff70;box-shadow:0 0 0 2px #657bab1a}
#birth-form .code-field:has([aria-invalid=true]){background:#fff4f3}
@media(max-width:420px){#birth-form .code-field input{font-size:28px}}
@media(max-width:360px){
  #birth-form .code-field input{font-size:22px;letter-spacing:0;padding-right:15px;padding-left:2px}
  #birth-form .code-field>span{font-size:14px;right:3px}
  #birth-form #nickname{font-size:22px}
}

/* Cute diary doodles retain their original alpha and use one ink color each. */

/* Shorter notebook pages, with a close action at either end. */
#birth-form #birth-time-range,
#birth-form #birth-time-range option{font-family:var(--body);font-size:16px;font-weight:400;letter-spacing:0;line-height:1.5}
#birth-form #birth-time-range{min-height:44px;padding:9px 10px}
.birth-extra{margin:12px 0;gap:6px}
.book-cover .cover-paper{padding-top:14px;padding-bottom:14px}
.cover-title-row{min-height:96px}
.cover-character{width:106px}
.birth-lock{margin-top:16px}
.form-error~.unlock-button{margin-top:14px}
.result-toolbar{grid-column:1/-1;display:flex;justify-content:flex-end;padding:0 24px;background:var(--paper);border-radius:3px 3px 0 0}
.result-toolbar .text-button{min-height:44px;padding:8px 0}
.diary-pages>.manseok-result{padding:6px 24px 16px;border-radius:0}
.manseok-result #calendar-result{margin-bottom:12px}
.birth-time-result{display:inline-block;white-space:pre}
.symbol-row td{height:96px}
.saju-symbol{min-height:80px}
.god-row td{height:36px;padding:5px 4px}
.time-explanation{margin-top:12px;padding-top:10px}
.diary-page{padding:18px 24px 16px}
.page-topline{min-height:30px;padding-bottom:8px}
.result-person{margin-top:12px}
.portrait-page h2{margin-top:8px;font-size:30px}
.result-art{max-width:200px;margin:2px auto 4px}
.result-tags{margin-bottom:4px}
.story-page h3{margin-top:14px;font-size:22px}
.story-copy{margin-top:10px;margin-bottom:8px}
.result-actions{padding-top:10px}
@media(max-width:650px){
 .result-toolbar{padding:0 12px}
 .diary-pages>.manseok-result{padding:4px 12px 12px}
 .symbol-row td{height:86px}
 .saju-symbol{min-height:70px}
 .god-row td{height:32px;padding:4px 2px}
 .diary-page{padding:14px 18px}
 .portrait-page h2{font-size:28px}
 .result-art{max-width:170px}
 .story-page h3{margin-top:10px;font-size:21px}
 .story-copy{font-size:14px;line-height:1.8}
 .cover-title-row{min-height:88px}
 .cover-character{width:90px}
}
@media(max-width:380px){
 .result-toolbar{padding:0 10px}
 .diary-pages>.manseok-result{padding-left:10px;padding-right:10px}
 #birth-form #birth-time-range{padding-left:6px;padding-right:3px;font-size:15px}
}

/* The taped title sits above the notebook; small pencils share the cover. */
.room-heading .room-title-note{width:240px;max-width:none;margin:4px auto 17px;padding:15px 20px 12px}
.room-heading .room-title-note h1{font:32px/1.4 var(--hand);letter-spacing:.3px;color:#536484}
.cover-title-row{justify-content:space-between;gap:10px}
.cover-brand-title{font:34px/1.4 var(--hand);font-weight:400;color:#536484;letter-spacing:.3px;white-space:nowrap}
.cover-stationery{display:flex;align-items:flex-end;flex-shrink:0;width:172px}
.cover-stationery .cover-character{width:106px;margin:0;flex-shrink:0}
.cover-pencils{display:block;width:78px;height:auto;margin:0 0 12px -12px;pointer-events:none}
.symbol-hanja{font-size:.76em;font-weight:500;letter-spacing:-.03em}
.element-sketch{width:44px;height:44px}
.element-doodle{height:44px}
.chart-variants{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;margin:0 0 14px;padding-top:8px;border-top:1px dashed #dddcd5}
.chart-variant-hint{font-size:14px;color:#737970}
.chart-variant-options{display:flex;gap:6px;flex-wrap:wrap}
.chart-variant-button{min-height:38px;padding:5px 12px;border:1px solid #d2d6ce;border-radius:5px;background:transparent;font-size:14px;color:#717969}
.chart-variant-button[aria-pressed=true]{background:#edf0f6;border-color:#8a9ab7;color:#42577b}
@media(max-width:650px){
 .element-sketch{width:40px;height:40px}
 .element-doodle{height:40px}
 .room-heading .room-title-note{width:220px;padding:13px 18px 10px}
 .room-heading .room-title-note h1{font-size:30px}
 .cover-brand-title{font-size:30px}
 .cover-stationery{width:142px}
 .cover-stationery .cover-character{width:90px}
 .cover-pencils{width:65px;margin-left:-13px;margin-bottom:10px}
}
@media(max-width:360px){
 .element-sketch{width:34px;height:34px}
 .element-doodle{height:34px}
 .cover-title-row{gap:4px}
 .cover-brand-title{font-size:24px}
 .cover-stationery{width:106px}
 .cover-stationery .cover-character{width:68px}
 .cover-pencils{width:48px;margin-left:-10px;margin-bottom:7px}
}

/* A taped name label inside the cover, with a small pencil test beside the dragon. */
.room-heading h1{font:37px/1.4 var(--hand);color:#536484;letter-spacing:.3px}
.cover-title-row .cover-title-label{max-width:210px;padding:12px 10px 9px;min-width:0}
.cover-title-row .cover-title-label h2{font-size:30px;white-space:nowrap}
.cover-stationery{position:relative;width:145px;padding-right:35px}
.cover-scribble{position:absolute;right:-4px;bottom:13px;width:56px;height:45px;background:url("assets/pencil-test-scribble.webp") 50% 58%/280% auto no-repeat;transform:rotate(-8deg);pointer-events:none}
@media(max-width:650px){
 .room-heading h1{font-size:32px}
 .cover-stationery{width:115px;padding-right:25px}
 .cover-title-row .cover-title-label h2{font-size:26px}
 .cover-scribble{width:43px;height:35px;right:-4px;bottom:10px}
}
@media(max-width:360px){
 .cover-stationery{width:84px;padding-right:16px}
 .cover-title-row .cover-title-label{padding:10px 5px 8px}
 .cover-title-row .cover-title-label h2{font-size:22px}
 .cover-scribble{width:34px;height:28px;right:-5px;bottom:8px}
}

/* The unchanged dragon sits on the lower-right corner like a pasted sticker. */
.cover-paper{--sticker-space:108px}
.cover-title-row{gap:22px}
.cover-title-row>.cover-scribble{position:relative;right:auto;bottom:auto;flex:0 0 75px;width:75px;height:57px;margin-right:15px}
.cover-unlock-row{position:relative;margin-top:18px}
.cover-unlock-row #submit-button{width:calc(100% - var(--sticker-space));margin:0}
.cover-dragon-sticker{position:absolute;width:128px;right:-22px;bottom:-27px;transform:rotate(9deg);pointer-events:none;z-index:1}
.cover-unlock-row+.privacy-note{width:calc(100% - var(--sticker-space));text-align:center;word-break:keep-all}
@media(max-width:650px){
 .cover-paper{--sticker-space:86px}
 .cover-title-row{gap:16px}
 .cover-title-row>.cover-scribble{flex-basis:62px;width:62px;height:48px;margin-right:5px}
 .cover-dragon-sticker{width:106px;right:-19px;bottom:-23px}
}
@media(max-width:360px){
 .cover-paper{--sticker-space:68px}
 .cover-title-row{gap:10px}
 .cover-title-row>.cover-scribble{flex-basis:48px;width:48px;height:38px;margin-right:0}
 .cover-dragon-sticker{width:87px;right:-17px;bottom:-20px}
 .cover-unlock-row #submit-button{padding:10px 8px;gap:4px}
 .cover-unlock-row #submit-button>span:last-child{font-size:16px}
}
