#workspace>.intro h1,.ws-header>.ws-title{font:650 23px/30px 'Segoe UI',sans-serif!important}
button.ws-context-summary,dialog.ws-lab button.ws-context-summary,#wsMainContext,.wi-lab .ws-location.ws-context-summary{display:none!important}
#workspace>.intro{min-height:44px}
#labHistoryToggle,#wsMainActions,.hr-duplicate-summary{display:none!important}
#hrMainSummary,.ws-header>[data-ws-notes],.ws-header>[data-wc-notes]{height:34px;min-height:34px;flex:none;margin:0 0 0 8px;padding:5px 11px;border:1px solid var(--control-border);border-radius:6px;background:var(--control);color:var(--text);font:600 14px/20px 'Segoe UI',sans-serif;white-space:nowrap;cursor:pointer}
#hrMainSummary[hidden]{display:none!important}
.lab-title-row{gap:10px}.ws-header>.ws-title{flex:0 1 auto!important}.ws-header-actions{margin-left:auto}.ws-context-more{display:none!important}
#introLab #openHex,#introLab #openEndian,.hex-footer>button,#endianBack{display:none!important}
#introLab .intro-controls{grid-template-columns:auto minmax(60px,1fr) auto 36px 36px!important}
#introHistory.wi-lab.history-stable:has(#introHistoryContent)[open]{height:100%!important;max-height:none!important;padding-top:8px!important;padding-inline:0!important}
#introHistory.wi-lab.history-stable:not(.uc-has-transport):has(#introHistoryContent)[open]{padding-bottom:12px!important}
#introHistory.history-stable .history-subtabs-spacer,#introHistory.history-stable .history-context{display:none!important}
#introHistory.history-stable .history-visual:has(>.decimal-hands){display:flex;flex-direction:column;gap:10px}
#introHistory.history-stable .decimal-hands{flex:1 1 0;min-height:210px;padding:8px 18px;gap:26px;box-sizing:border-box}
#introHistory.history-stable .counting-hand{height:clamp(195px,25vh,265px);width:auto;max-height:100%}
#introHistory.history-stable .decimal-hands .hand-pair{height:100%;min-height:200px;align-items:center}
#introHistory.history-stable .decimal-hands>div:last-child{max-width:550px}
#introHistory.history-stable .decimal-exchange{flex:0 0 130px;min-height:130px;grid-template-columns:1fr 90px 1fr}
#introHistory.history-stable .decimal-equation{font-size:23px;line-height:28px;margin:0}
#introHistory.history-stable .decimal-direct{font-size:16px;line-height:26px}
#introHistory.history-stable .decimal-actions{margin:0;gap:8px;flex:none}
#introHistory.history-stable .history-visual:has(>.measure-examples){display:flex;flex-direction:column;gap:8px}
#introHistory.history-stable .measure-examples{flex:1;min-height:0;gap:22px}
#introHistory.history-stable .measure-examples>section{display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;gap:10px;padding:18px;min-height:0}
#introHistory.history-stable .measure-examples h3{font-size:20px;line-height:26px;margin:0}
#introHistory.history-stable .measure-clock,#introHistory.history-stable #measureCircle{width:clamp(190px,24vh,270px);height:clamp(190px,24vh,270px);max-width:none;flex:none;line-height:normal;margin:0}
#introHistory.history-stable .measure-examples svg{width:100%;height:100%;box-sizing:border-box;padding:8px}
#introHistory.history-stable .measure-examples strong{font:600 24px/30px Consolas,monospace;margin:0}
#introHistory.history-stable .measure-examples p{max-width:440px;font-size:16px;line-height:23px;margin:0}
.measure-minutes-control{width:min(100%,330px);display:flex;flex-direction:column;gap:8px;font-size:17px}
.measure-dial{fill:var(--panel);stroke:var(--control-border);stroke-width:2}
.measure-tick{stroke:var(--muted);stroke-width:1}.measure-major{stroke-width:3}
.measure-clock text{fill:var(--text);font:19px 'Segoe UI',sans-serif}
.measure-hour-hand{stroke:var(--text);stroke-width:8;stroke-linecap:round}.measure-minute-hand{stroke:var(--mint);stroke-width:5;stroke-linecap:round}.measure-pivot{fill:var(--purple)}
.yijing-selection{display:flex;gap:24px;align-items:center;justify-content:center;min-height:0;flex:1}
.yijing-selection{width:100%}
.yijing-selection .hexagram{flex:0 1 180px;width:180px;min-width:130px}
#introHistory .yijing-selection .hexagram button{min-height:28px;height:28px;padding:6px 0;border:0!important;background:none!important;box-shadow:none!important}
#introHistory .yijing-selection .hexagram i{display:block;flex:1;height:12px;background:var(--mint)}
#measureCircle svg>circle[r="76"]{fill:var(--panel);stroke:var(--control-border)}
#measureCircle text{fill:var(--text);font-size:13px}
.yijing-symbol{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:140px;color:var(--text)}
.yijing-unicode{font:80px/1.1 'Segoe UI Symbol','Noto Sans Symbols 2',sans-serif;color:var(--purple)}
.yijing-symbol strong{font:56px/1.3 'Microsoft YaHei','SimSun',serif}.yijing-symbol>span:not(.yijing-unicode){font-size:17px}.yijing-symbol small{font-size:14px;color:var(--muted)}
@media(max-height:800px){#introHistory.history-stable .decimal-hands{min-height:216px}#introHistory.history-stable .counting-hand{height:216px}#introHistory.history-stable .decimal-hands .hand-pair{min-height:216px}#introHistory.history-stable .decimal-exchange{flex-basis:100px;min-height:100px}#introHistory.history-stable .measure-examples>section{padding:12px;gap:6px}#introHistory.history-stable .measure-examples strong{font-size:22px}}

.yijing-photo-map{position:relative;flex:1;min-height:130px;width:100%;overflow:hidden}.yijing-document .yijing-photo-map img{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:contain;display:block}.yijing-photo-map svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.yijing-photo-map [data-yijing-photo]{pointer-events:all;cursor:pointer}.yijing-photo-map rect{fill:transparent;stroke:none}.yijing-photo-map .selected rect{fill:#f4a30035;stroke:#bf5900;stroke-width:6}.yijing-photo-map [data-yijing-photo]:hover rect,.yijing-photo-map [data-yijing-photo]:focus-visible rect{stroke:#156fc1;stroke-width:5}.yijing-symbol small{font-size:15px;line-height:1.4;color:var(--text);font-variant-numeric:tabular-nums}

.yijing-pattern .yijing-photo-ref{font-size:16px;line-height:26px;font-weight:600;color:var(--amber);font-variant-numeric:tabular-nums}
