.yp-cast-path{margin:10px 0 18px;color:#294b65;min-width:0;font-family:system-ui,sans-serif}
.yp-reading-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.yp-cast-figures{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:12px;align-items:start}.yp-cast-figures.yp-cast-single{grid-template-columns:minmax(0,1fr);max-width:340px;margin-inline:auto}
.yp-cast-path .yp-cast-figure{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:center}
.yp-cast-kind{font:600 15px/1.6 system-ui,sans-serif}.yp-cast-key{font:12px/1.6 system-ui,sans-serif!important;min-height:38px;margin:5px 0 10px!important;color:#775b29}.yp-cast-figure[data-explanation-hexagram=relating] .yp-cast-key{color:#38685a}
.yp-cast-arrow{align-self:center;font:23px/1 system-ui,sans-serif;color:#294b65;padding-bottom:25px}
.yp-cast-path .yp-cast-trigram{display:grid;grid-template-columns:1fr;gap:4px;padding:0;margin:0;align-items:center}.yp-cast-trigram+.yp-cast-trigram{border:0;padding-top:4px}
.yp-cast-path .yp-cast-line{display:grid;grid-template-columns:14px minmax(0,1fr) 13px;gap:5px;align-items:center;min-height:25px;margin:0}
.yp-cast-line small{font:12px/1 system-ui,sans-serif}.yp-cast-path .yp-cast-line em{font:600 12px/1 system-ui,sans-serif;color:#775b29;font-style:normal}
.yp-cast-path .yp-cast-glyph{display:flex;gap:14%;height:9px;width:100%;padding:0;margin:0;min-width:0;background:none;border:0}
.yp-cast-path .yp-cast-glyph i{display:block;flex:1;height:9px;background:var(--yp-cast-ink,#294b65);border:0;border-radius:2px;box-shadow:none;margin:0;transform:none}
.yp-cast-path .yp-cast-moving .yp-cast-glyph i{background:#c6a34f;outline:1px solid #8c7035;outline-offset:0}
.yp-cast-path .yp-cast-changed .yp-cast-glyph i{background:#c2dfd2;outline:1px solid #639783;outline-offset:0}
.yp-cast-path .yp-cast-role{display:grid;grid-template-columns:1fr;gap:0;min-height:36px;margin:2px 0 3px!important;font:12px/1.5 system-ui,sans-serif!important;overflow-wrap:normal;word-break:normal}
.yp-cast-role>span{font:12px/1.5 system-ui,sans-serif}.yp-cast-role>b{font:600 12px/1.5 system-ui,sans-serif}
.yp-cast-path figcaption{display:grid;gap:3px;margin:9px 0 0;min-height:58px}.yp-cast-path figcaption>strong{font:600 18px/1.5 system-ui,sans-serif}.yp-cast-path figcaption>span{font:13px/1.5 system-ui,sans-serif;overflow-wrap:normal;word-break:normal}
.yp-cast-moving-caption{font:14px/1.75 system-ui,sans-serif!important;margin:12px 0 18px!important}
.yp-cast-reasoning{border-top:1px solid #b8cbd9;padding-top:16px}
.yp-cast-reasoning h3{font:600 18px/1.6 system-ui,sans-serif!important;margin:0 0 10px!important}
.yp-reading-compact .judgment-stage{display:block;min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#294b65}
.yp-reading-compact .yp-cast-verdict{font:600 24px/1.5 system-ui,sans-serif!important;margin:0 0 16px!important}
.yp-cast-path .yp-cast-calculation{list-style:decimal;margin:0;padding:0 0 0 1.5em;display:grid;gap:12px;font:15px/1.85 system-ui,sans-serif}
.yp-cast-calculation>li{margin:0;padding:0 0 0 3px;border:0;min-width:0;overflow-wrap:anywhere}
.yp-cast-boundary{font:13px/1.8 system-ui,sans-serif!important;margin:20px 0 0!important}
.yp-cast-record{border-top:1px solid #b8cbd9;margin-top:20px;padding:4px 0}.yp-cast-record>summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:600}.yp-cast-record p{font:14px/1.8 system-ui,sans-serif}
.yp-reading-template .judgment-reason{margin-top:0}.yp-reading-template .judgment-reason>summary{min-height:44px}.yp-reading-template .yp-cast-path h3{scroll-margin-top:110px}
@media(max-width:480px){.yp-cast-figures{gap:7px;grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr)}.yp-cast-path .yp-cast-line{gap:4px;min-height:24px}.yp-cast-key{font-size:11px!important}.yp-cast-path .yp-cast-role,.yp-cast-role>span,.yp-cast-role>b{font-size:11px!important}.yp-cast-path .yp-cast-calculation{font-size:15px;gap:10px}.yp-cast-path figcaption>strong{font-size:17px}.yp-cast-path figcaption>span{font-size:12px}}
@media print{.yp-cast-figure,.yp-cast-calculation>li{break-inside:avoid}.yp-cast-glyph i{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* Focus hides the native hint without changing the editable value. */
:is(#question,#cast-question,#mei-question,#reading-question,#play-question-text):focus::placeholder{color:transparent!important;opacity:0!important}

.yp-cast-calculation>li.judgment-stage{display:list-item}

.yp-cast-path .yp-cast-figures{max-width:580px;margin-inline:auto}
.yp-cast-role-key{font:13px/1.7 system-ui,sans-serif!important;margin:0 0 16px!important}
