.cmp{max-width:680px;margin:auto;color:#432c22}.cmp h2{font-family:serif;font-size:25px;margin:8px 0}.cmp>p{line-height:1.8}.cmp-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:12px}.cmp-toolbar button{padding:8px 12px}.cmp-viewport{overflow:auto;max-height:580px;overscroll-behavior:contain;background:#46261e;border:4px double #9a7444;border-radius:8px;margin:14px 0}.cmp-dial{position:relative;width:100%;min-width:300px;aspect-ratio:1;margin:0;box-sizing:border-box;background:radial-gradient(circle,#caa764,#59331e);padding:12px}.cmp-viewport.is-zoomed .cmp-dial{width:185%;max-width:none}.cmp-wheel{width:100%;display:block;fill:none;stroke:#765024;stroke-width:1;transform-origin:50% 50%}.cmp-wheel .cmp-bronze{fill:#d7b874;stroke:#e6d29b;stroke-width:3}.cmp-wheel text{font-family:'Noto Serif CJK SC','Songti SC',serif;font-size:25px;fill:#32271d;stroke:none;cursor:pointer}.cmp-wheel .cmp-degree{font-family:serif;font-size:12px}.cmp-wheel .cmp-mountain{font-size:28px;font-weight:bold;fill:#81251b}.cmp-wheel .cmp-dir{font-size:23px}.cmp-wheel .cmp-trigram{font-size:30px;fill:#81251b}.cmp-wheel .cmp-element{font-size:25px}.cmp-wheel .cmp-major{stroke-width:2}.cmp-wheel .cmp-lines{stroke:#5c2019;stroke-width:5;cursor:pointer}.cmp-wheel .cmp-pool{fill:#3a2921;stroke:#a07b47;stroke-width:4}.cmp-wheel .cmp-needle-n{fill:#d65238;stroke:#f7ad77}.cmp-wheel .cmp-needle-s{fill:#ebdfba;stroke:#fff3d0}.cmp-wheel .cmp-pivot{fill:#caa764;stroke:#3a2921;stroke-width:3}.cmp-cross{position:absolute;inset:12px;pointer-events:none;background:linear-gradient(90deg,transparent calc(50% - .5px),#af281c calc(50% - .5px),#af281c calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(0deg,transparent calc(50% - .5px),#af281c calc(50% - .5px),#af281c calc(50% + .5px),transparent calc(50% + .5px));opacity:.7}.cmp-pointer{position:absolute;z-index:1;top:-3px;left:50%;transform:translateX(-50%);color:#e4b574;font-size:24px}.cmp-hint{font-size:12px;color:#765c48}.cmp-result{text-align:center;display:grid;gap:8px;margin:20px 0 15px;padding:18px 12px;border:1px solid #ac8054;background:#eee0bd}.cmp-result strong{font-size:30px;color:#82251d;font-variant-numeric:tabular-nums}.cmp-result>span{font-size:20px}.cmp-data{display:flex;justify-content:center;gap:38px;border-top:1px solid #ba9d71;padding-top:12px;margin-top:6px}.cmp-data span{font-size:12px;color:#72513c}.cmp-data b{display:block;font-size:22px;color:#532e20;margin-top:5px}.cmp-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}.cmp-buttons button{flex:1;padding:13px 6px;min-width:85px}.cmp #cmpStatus{min-height:52px}.cmp input:read-only{background:#e8dbc2}.cmp button:disabled{opacity:.5}.cmp textarea{resize:vertical;max-width:100%}.cmp-ring-tabs{display:flex;flex-wrap:wrap;gap:7px}.cmp-ring-tabs button{border:1px solid #b18d5c;background:#eee0bf;padding:8px 10px;font-size:13px;color:#603a25;border-radius:2px}.cmp-ring-tabs button[aria-pressed=true]{background:#7c2a20;color:#fff0cd;border-color:#7c2a20}

/* Override the shared 24px icon height: this SVG is the full compass dial. */
.cmp .cmp-dial > svg.cmp-wheel{width:100%;height:auto;aspect-ratio:1 / 1;max-width:none;max-height:none;display:block}
.cmp .cmp-dial{padding:4px;min-width:0}
.cmp .cmp-cross{inset:4px}
.cmp .cmp-viewport:not(.is-zoomed){max-height:none}
.cmp .cmp-viewport.is-zoomed{max-height:580px;max-height:min(70dvh,580px)}
