/* Myeongun: white paper, ink, restrained gold. No global theme overrides. */
#cdxManse.cm-root{--cm-ink:#2c2533;--cm-muted:#746b7e;--cm-gold:#98752c;--cm-line:#e8e3db;--cm-paper:#fdfdfb;margin-top:28px}
#cdxManse .cm-head{align-items:flex-start;margin-bottom:24px;gap:16px}
#cdxManse .cm-eyebrow{font-size:11px;font-weight:600;letter-spacing:.13em;color:#98752c}
#cdxManse .cm-head h2{font-size:26px;font-weight:650;letter-spacing:-.055em;margin:8px 0 9px}
#cdxManse .cm-head p{font-size:13px;line-height:1.7}
#cdxManse .cm-share-open{border:1px solid #e4ddcf;border-radius:9px;background:#f8f5ee;color:#725b32;font-size:12px;font-weight:600;padding:8px 10px;margin-top:28px;max-width:86px;box-shadow:none}
#cdxManse .cm-grid{gap:0;border-block:1px solid #dfd5c4;padding:16px 0 12px}
#cdxManse .cm-pillar{border:0;border-right:1px solid #ece7de;border-radius:0;padding:0 7px;background:transparent}
#cdxManse .cm-pillar:last-child{border-right:0}
#cdxManse .cm-pillar--self{padding:0 7px;background:linear-gradient(#faf5e9,transparent);box-shadow:none}
#cdxManse .cm-col-title{font-size:13px;font-weight:600;color:#746b7e;margin-bottom:9px}
#cdxManse .cm-self-label{background:transparent;color:#98752c;font-weight:700;font-size:10px;padding:0;vertical-align:1px}
#cdxManse button.cm-glyph{background:transparent!important;min-height:86px;border-radius:7px;margin-top:0;gap:4px}
#cdxManse .cm-glyph .cm-hanja{font-family:'Noto Serif KR',Georgia,'Malgun Gothic',serif;font-size:40px;font-weight:500}
#cdxManse .cm-glyph .cm-reading{font-size:11px;font-weight:400;color:#746b7e}
#cdxManse .cm-element-0{color:#476c53}#cdxManse .cm-element-1{color:#ad4c48}#cdxManse .cm-element-2{color:#8b6924}#cdxManse .cm-element-3{color:#5c6879}#cdxManse .cm-element-4{color:#446f99}
#cdxManse .cm-day-note{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin:8px 0 0;font-size:12px;color:#746b7e}
#cdxManse button.cm-day-button{font-size:12px;font-weight:500;text-decoration:none;padding:0}
#cdxManse .cm-details{border-radius:0;border:0;border-block:1px solid #e8e3db;background:transparent;margin-top:25px}
#cdxManse .cm-details>summary{padding:16px 0;font-size:13px;font-weight:500;color:#5e5467}
#cdxManse .cg-map{margin:34px 0 24px;padding:0;border:0;border-radius:0;background:transparent;color:#2c2533}
#cdxManse .cg-heading{text-align:center}
#cdxManse .cg-kicker{display:block;color:#b39450;font:500 13px/1.5 Georgia,serif;letter-spacing:.3em;margin-bottom:8px}
#cdxManse .cg-heading h3{font-size:23px;line-height:1.4;font-weight:650;letter-spacing:-.05em;margin:0;color:#2c2533}
#cdxManse .cg-intro{font-size:13px;line-height:1.7;color:#746b7e;word-break:keep-all;margin:9px 0 0}
#cdxManse .cg-controls{display:flex;justify-content:center;gap:16px;border-bottom:1px solid #e8e3db;margin:22px 0 6px;padding:0}
#cdxManse .cg-controls button{flex:0 1 auto;min-width:44px;min-height:44px;padding:9px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#746b7e;font-size:12px;font-weight:500;line-height:1.4;box-shadow:none}
#cdxManse .cg-controls button[aria-pressed=true]{border-bottom-color:#b18b39;color:#785b22}
#cdxManse .cg-chart{position:relative;width:100%;max-width:480px;aspect-ratio:600/560;container-type:inline-size;margin:4px auto 0}
#cdxManse .cg-chart svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
#cdxManse .cg-edge{stroke:#ad8a47;stroke-width:1.7;opacity:.7}
#cdxManse .cg-edge.cg-control{stroke:#91899b;stroke-width:1.5;stroke-dasharray:4 7;opacity:.55}
#cdxManse .cg-edge.cg-muted{opacity:.12}
#cdxManse .cg-edge.cg-active{opacity:1;stroke-width:3}
#cdxManse .cg-seal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:20%;aspect-ratio:1;border-radius:50%;background:#fdfdfbf2;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;color:#aa8846}
#cdxManse .cg-seal span{font-family:Georgia,'Malgun Gothic',serif;font-size:clamp(14px,5.6cqi,27px);letter-spacing:.14em;font-weight:400}
#cdxManse .cg-seal small{font:7px/2.5 Georgia,serif;letter-spacing:.12em;color:#9e9482}
#cdxManse button.cg-node{position:absolute;transform:translate(-50%,-50%);width:19%;aspect-ratio:1;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:3px 0;border:1px solid #e1d8c8;border-radius:50%;background:#fdfdfb;color:var(--cg-ink);line-height:1.2;box-shadow:0 4px 12px #51442e05;transition:background .18s,border-color .18s,box-shadow .18s}
#cdxManse .cg-name{font-family:Georgia,'Noto Serif KR','Malgun Gothic',serif;font-size:clamp(23px,8.3cqi,40px);font-weight:400;line-height:1.1;white-space:nowrap}
#cdxManse .cg-word{font-size:clamp(10px,2.9cqi,14px);font-weight:400;white-space:nowrap;letter-spacing:-.04em;color:#746b7e}
#cdxManse .cg-node[aria-pressed=true]{border-color:var(--cg-ink);background:var(--cg-fill);box-shadow:0 0 0 3px #fdfdfb,0 0 0 4px var(--cg-ink)}
#cdxManse .cg-map :is(button,summary,a):focus-visible{outline:2px solid #98752c;outline-offset:4px}
#cdxManse .cg-legend{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:center;margin:-4px 0 19px;font-size:11px;color:#746b7e}
#cdxManse .cg-key{display:inline-flex;align-items:center;gap:7px}
#cdxManse .cg-key i{display:block;width:18px;border-top:1.5px solid #ad8a47}
#cdxManse .cg-key.cg-control i{border-top:1.5px dashed #91899b}
#cdxManse .cg-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:17px 0;margin-bottom:20px;border-block:1px solid #e8e3db}
#cdxManse .cg-count{display:flex;flex-direction:column;align-items:center;gap:4px;border-right:1px solid #ece7de;min-width:0;transition:background .18s}
#cdxManse .cg-count:last-child{border:0}
#cdxManse .cg-count-name{color:var(--cg-ink);font-size:12px;font-weight:600;max-width:100%;overflow-wrap:anywhere}
#cdxManse .cg-count-value{font-size:19px;font-weight:550;line-height:1.4;letter-spacing:-.035em}
#cdxManse .cg-count-percent{color:#746b7e;font-size:11px;font-variant-numeric:tabular-nums}
#cdxManse .cg-count-selected .cg-count-value{color:var(--cg-ink)}
#cdxManse .cg-detail{padding:18px 18px 16px;background:#f7f5f0;border:0;border-radius:12px;min-height:0}
#cdxManse .cg-detail h4{font-size:14px;font-weight:650;line-height:1.6;margin:0 0 7px;color:#4a3e31}
#cdxManse .cg-detail p{font-size:13px;line-height:1.85;word-break:keep-all;margin:0;color:#6f656a}
#cdxManse .cg-detail .cg-focus-note{font-size:12px}
#cdxManse .cg-relation{border-top:1px solid #e5dfd3;margin-top:13px;padding-top:13px}
#cdxManse .cg-relation strong{font-size:16px;font-weight:600;display:block;color:#514335}
#cdxManse .cg-relation-type{display:block;font-size:11px;color:#8b6f36;margin:4px 0 6px}
#cdxManse .cg-relation.cg-control .cg-relation-type{color:#746b7e}
#cdxManse .cg-detail .cg-zero-note{margin-top:15px;padding-top:12px;border-top:1px solid #e5dfd3;font-size:12px}
#cdxManse .cg-basis{font-size:11px;color:#746b7e;line-height:1.7;margin:14px 0 2px;text-align:center;word-break:keep-all}
#cdxManse .cg-help{font-size:12px;color:#746b7e}
#cdxManse .cg-help summary{font-size:12px;color:#8a6a2b;padding:10px 0;min-height:44px;cursor:pointer;text-align:center}
#cdxManse .cg-help p{font-size:12px;line-height:1.85;word-break:keep-all;margin:8px 0}
#cdxManse .cg-help a{color:#8a6a2b;text-underline-offset:3px;display:inline-block;min-height:44px;padding:10px 0}
#cdxManse .cg-edge-list{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding-left:18px;line-height:1.8}
dialog.cm-dialog{background:#fdfdfb;border-color:#e3d9c8;border-radius:16px;box-shadow:0 18px 80px #2c253329}
dialog.cm-dialog .cm-card-options button{background:transparent;border-color:#e8e3db;font-weight:500}
dialog.cm-dialog .cm-card-options button[aria-pressed=true]{background:#f7f2e6;color:#785b22;box-shadow:none;border-color:#b99a5c}
dialog.cm-dialog .cm-dialog-head h2{font-weight:650}
dialog.cm-dialog .cm-image-controls{background:#fdfdfbf5}
@media(max-width:380px){#cdxManse .cm-head h2{font-size:23px}#cdxManse .cm-head{gap:9px}#cdxManse .cm-pillar,#cdxManse .cm-pillar--self{padding:0 4px}#cdxManse .cm-glyph .cm-hanja{font-size:35px}#cdxManse .cg-controls{gap:11px}#cdxManse .cg-controls button{font-size:11px}#cdxManse .cg-detail{padding:16px 14px}#cdxManse .cg-seal small{font-size:6px}}
@media(prefers-reduced-motion:reduce){#cdxManse .cg-map *{transition:none!important}}
