:root{font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:13px;color:#25291f;background:#eeece6;--line:#babcb0;--green:#286b2e;--data-size:14px;--sidebar:390px;color-scheme:light}*{box-sizing:border-box}body{margin:0;height:100vh;display:flex;flex-direction:column;overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #b6b9af;border-radius:2px;background:linear-gradient(#fff,#eeeee7);padding:4px 10px;white-space:nowrap}button:hover{border-color:#8b9f85;background:#e7efdf}button:active{background:#d6e2ce}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:2px solid #58925a;outline-offset:2px}button:disabled{opacity:.4;cursor:wait}input,select,textarea{background:white;border:1px solid #b8bbaf;border-radius:1px;padding:4px 6px;min-width:0}input[type=checkbox]{accent-color:#3c783c;width:14px;height:14px;margin:0 5px 0 0;flex:none}label{display:flex;gap:5px;align-items:center}a{color:#286b2e}.titlebar{height:32px;display:flex;gap:8px;align-items:center;padding:0 10px;background:#e8e6de;border-bottom:1px solid #d2d3c9;font-size:13px;flex:none}.appmark{font:24px Georgia,serif;color:#38703a}.title-separator{color:#93978d}.hd-label{font-size:10px;border:1px solid #8caa7f;color:#44653b;padding:1px 5px;border-radius:2px}.system-label{margin-left:auto;color:#666e5e;font-size:12px}.menubar{display:flex;height:28px;padding:0 6px;border-bottom:1px solid #c4c6bc;background:#f7f6f1;flex:none;position:relative;z-index:20}.menu{position:relative}.menu>button{border:0;background:none;padding:4px 10px;height:27px;border-radius:0}.menu>button:hover,.menu.open>button{background:#dfe8d7}.menu-dropdown{position:absolute;left:0;top:27px;min-width:226px;padding:4px;background:#fafbf6;border:1px solid #a9af9e;box-shadow:3px 4px 10px #0002;display:none}.menu.open>.menu-dropdown{display:block}.menu-dropdown button{display:flex;align-items:center;gap:12px;justify-content:space-between;width:100%;border:0;border-radius:0;background:transparent;text-align:left;padding:7px 12px}.menu-dropdown button:hover{background:#dde9d4}.menu-dropdown kbd{font:11px inherit;color:#838a7b}.menu-divider{height:1px;background:#d9ddcf;margin:4px 5px}.toolbar{display:flex;align-items:center;gap:3px;min-height:37px;padding:4px 9px;background:#efeee7;border-bottom:1px solid #bec3b5;flex:none}.tool{display:inline-flex;align-items:center;justify-content:center;width:29px;height:28px;border:1px solid transparent;background:transparent;padding:4px}.tool svg,.update-button svg{width:19px;height:19px;display:block;stroke-linecap:round;stroke-linejoin:round}.tool.active{background:#e0ead7;border-color:#99ae8c}.tool-divider{height:22px;width:1px;background:#c4c8ba;margin:0 6px}.toolbar-spacer{flex:1}.toolbar-note{font-size:11px;color:#7d8474;padding-right:8px}.viewtabs{display:flex;align-items:center;height:32px;padding:3px 9px 0;background:#e6e8df;border-bottom:1px solid #a8b49d;gap:3px;flex:none}.viewtabs>[role=tab]{height:29px;min-width:74px;border-color:#b8c0ac;border-bottom:0;border-radius:3px 3px 0 0;background:#e0e4d8}.viewtabs>[aria-selected=true]{background:#fff;color:#255d26;border-color:#8da47d;font-weight:600;position:relative;bottom:-1px;height:30px}.view-caption{font-size:11px;color:#627059;margin-left:12px}.view-caption>span{padding:0 6px;color:#939d87}.quiet{border:0;background:none;font-size:11px;margin-left:auto;color:#63705b}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) var(--sidebar);gap:5px;padding:5px;background:#e7e8df}.plot-pane{min-width:0;min-height:0;background:#fff;border:1px solid #aab79f;display:flex;flex-direction:column;position:relative}.plot-heading{display:flex;align-items:center;justify-content:space-between;min-height:31px;padding:6px 13px;color:#364b2c;gap:15px;border-bottom:1px solid #eff0e9;font-size:12px}.plot-heading>span:first-child{font-weight:600}.plot-heading>span:last-child{font:12px "SimSun","Songti SC",serif;color:#6d7565}.wheel-stage{flex:1;min-height:0;position:relative;overflow:auto;padding:15px;display:flex;align-items:safe center;justify-content:safe center;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b7c2ab #f8faf4}.wheel{flex-shrink:0;aspect-ratio:1;width:var(--wheel-size,700px);height:var(--wheel-size,700px);position:relative}.wheel>svg{display:block;width:100%;height:100%;overflow:visible}.wheel text{cursor:crosshair}.wheel text:hover{paint-order:stroke;stroke:#effab9;stroke-width:3px}.wheel text.search-hit{paint-order:stroke;stroke:#ffe85e;stroke-width:5px}.wheel text.selected-star{paint-order:stroke;stroke:#f4df76;stroke-width:5px}.loading{height:100%;display:grid;place-items:center;color:#7a8b6d;font-size:14px}.chart-foot{font:12px/1.7 "SimSun","Songti SC",serif;padding:7px 13px;border-top:1px solid #ecede6;display:flex;justify-content:space-between;gap:10px;flex:none;min-height:55px}.chart-foot>div{display:flex;flex-direction:column}.chart-foot>div:last-child{text-align:right}.green{color:#238325}.control-pane{min-height:0;display:flex;flex-direction:column;padding:0 2px 0 0;overflow:hidden}.control-pane form{flex:none}fieldset{border:1px solid #aab49f;padding:8px 10px 10px;margin:0 0 6px;background:#f3f3eb;min-width:0}legend{padding:0 5px;color:#4d5f3e;font-size:12px}.birth-field label{font-size:11px;color:#747b6b}.birth-field input,.birth-field select{font-size:12px;color:#25291f;height:28px}.name-row,.date-row,.place-row{display:flex;gap:8px;margin-bottom:7px}.name-row>label:first-child{flex:1}.name-row input{width:100%}.sex-label{flex:none}.sex-label select{width:56px}.date-row{align-items:center}.date-row>label{flex:1}.date-row input{width:100%;min-width:0;height:29px}.date-row>label input{flex:1}.date-row>button{height:29px;padding:3px 7px}.update-button{background:linear-gradient(#fff,#dce6d1);display:flex;align-items:center;justify-content:center;min-width:33px}.place-row>label{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:3px;min-width:0}.place-row select{width:100%}.zone-row input,.zone-row select{flex:1;width:0}.zone-row{margin-bottom:0}.birth-field details{margin-top:7px;border-top:1px solid #dfe3d5;padding-top:5px}.birth-field summary{font-size:11px;color:#78836c;cursor:pointer}.birth-field details[open]>.check{margin:8px 0}.check{display:flex;align-items:center;cursor:pointer}.now-field{padding-top:5px}.now-field .date-row{margin-bottom:4px}.now-field input{font-size:12px}.now-field legend .check{font-size:12px}.step-row{display:flex;gap:4px;align-items:center}.step-row>button{padding:0 10px;height:22px;font-size:19px;line-height:17px}.step-row>select{padding:0 5px;height:22px;font-size:11px}.step-row>span{font-size:11px;color:#6c7761;margin-left:auto}.datatabs{display:flex;gap:1px;flex:none;border-bottom:1px solid #a5b396;padding-top:1px}.datatabs button{border:1px solid #bbc2b1;border-bottom:0;border-radius:2px 2px 0 0;font-size:12px;padding:5px 12px;background:#e5e8dd}.datatabs [aria-selected=true]{color:#305b2a;background:#fff;border-color:#91a67e;position:relative}.data-body{background:white;border:1px solid #aab49f;border-top:0;flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#bec8b4 #fff}.data-panel{padding:9px 10px 15px;font-size:var(--data-size)}[hidden]{display:none!important}.data-heading{font-family:"Microsoft YaHei UI",sans-serif;font-size:12px;color:#4b633c;display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.data-heading>span{color:#848c7c;font-size:11px}.eight-char{font:calc(var(--data-size) + 1px)/1.8 "SimSun","Songti SC",serif;text-align:center;color:#303a25;border-bottom:1px solid #ecede5;padding:1px 0 7px;margin-bottom:6px}.masters{font:var(--data-size)/1.8 "SimSun","Songti SC",serif;white-space:pre-line;margin-bottom:8px;color:#867a23}.planet-table{border-collapse:collapse;width:100%;font:var(--data-size)/1.7 "SimSun","Songti SC",serif;white-space:nowrap}.planet-table th{font-family:"Microsoft YaHei UI",sans-serif;font-size:10px;font-weight:400;color:#8a917f;text-align:left;border-bottom:1px solid #e4e8db;padding:2px 2px 5px}.planet-table td{padding:3px 2px;border-bottom:1px solid #f0f2e9}.planet-table td:first-child{font-weight:600;width:32px;color:#79731b}.planet-table td:last-child{font-size:calc(var(--data-size) - 1px);color:#7b836f;max-width:60px;overflow:hidden;text-overflow:ellipsis}.planet-table tbody tr{cursor:pointer}.planet-table tbody tr:hover,.planet-table tbody tr.selected{background:#edf5e4}.planet-table .retrograde{color:#cf3331!important}.shensha{margin-top:15px}.shensha>summary{font:11px "Microsoft YaHei UI",sans-serif;color:#708762;cursor:pointer;border-bottom:1px solid #e4e8db;padding:4px 0 7px}.year-info{font:var(--data-size)/1.85 "SimSun","Songti SC",serif;color:#257526;white-space:pre-wrap;padding-top:8px;overflow-wrap:anywhere}
.system-row{display:flex;gap:8px;align-items:center;margin-top:7px}
.system-row>label{flex:1;min-width:0}
.xm-open{flex:none;padding:4px 10px}
.xm-dialog{width:min(780px,calc(100vw - 30px))}
.xm-dialog .dialog-content{max-height:min(70vh,660px);overflow:auto;line-height:1.5}
.xm-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.xm-form fieldset{margin:0}
.xm-field{display:flex;align-items:center;gap:8px;margin:5px 0;white-space:nowrap}
.xm-field select,.xm-field input[type=number]{flex:1;min-width:0;width:0}
.xm-dialog .dialog-content .check{margin:5px 0}
.xm-stars,.xm-shensa{grid-column:1/-1}
.xm-stars{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px 10px}
.xm-stars label{display:flex;align-items:center;gap:6px}
.xm-stars input{flex:1;min-width:0;width:0}
.xm-shensa{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:0 6px}
.xm-dialog .xm-shensa .check{margin:2px 0;font-size:12px;gap:3px}
.shensha-head{margin-bottom:4px}
.shensha-grid{display:grid;grid-template-columns:repeat(var(--cols),max-content);column-gap:1.4em;white-space:nowrap}
.shensha-grid b{font-weight:normal;opacity:.72;margin-right:.35em}
.shensha-grid .empty{opacity:.55}.data-panel pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;font:var(--data-size)/1.85 "SimSun","Songti SC",serif;color:#292d25}.text-button{font-size:10px;padding:1px 5px;border-color:#c9d1be;background:#f5f8ef;color:#5d7550}#note{resize:vertical;min-height:300px;width:100%;font:var(--data-size)/1.8 "SimSun","Songti SC",serif;border:1px solid #d6ddcb;background:#fffef7;padding:10px}.statusbar{height:28px;display:flex;align-items:center;padding:0 9px;font-size:11px;color:#6c7760;border-top:1px solid #aeb8a2;gap:15px;background:#e9ece0;flex:none}.statusbar>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.zoom-controls{display:flex;align-items:center;gap:2px;margin-left:auto;flex:none}.zoom-controls button{border:0;background:none;padding:2px 7px;color:#4c6540}.zoom-controls>span{margin-left:10px;color:#87927b;font-size:10px}.star-tip{position:fixed;z-index:40;background:#fffde4;border:1px solid #c4bf87;box-shadow:1px 2px 5px #0002;padding:6px 10px;font:13px/1.6 "SimSun",serif;max-width:300px;pointer-events:none;white-space:pre-wrap}.library{flex:1;min-height:0;overflow:auto;background:#fff;padding:25px 30px}.library-heading{display:flex;align-items:center;gap:8px}.library h1{font-size:18px;font-weight:500;margin:0 auto 0 0;color:#456139}.library-search{width:250px}.library-description{color:#87917e;font-size:12px;padding:18px 0}.library-table{width:100%;border-collapse:collapse}.library-table th{text-align:left;font-weight:400;font-size:12px;color:#7c8971;background:#edf1e7;padding:10px 12px;border-bottom:1px solid #bac8ae}.library-table td{padding:12px;border-bottom:1px solid #e4e9dd;font-size:13px}.library-table button{font-size:11px;margin-right:6px}.empty-library{padding:100px 0;text-align:center;font-size:18px;color:#7d8c71;line-height:2}.empty-library small{font-size:12px;color:#9ba88f}dialog{border:1px solid #9eae90;border-radius:3px;padding:0;width:min(480px,calc(100vw - 30px));color:#313b28;background:#fafbf7;box-shadow:0 15px 70px #273a2340}dialog::backdrop{background:#28382444}.dialog-title{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;background:#e5ebdd;border-bottom:1px solid #bdcbb0;font-size:13px}.dialog-title button{border:0;background:none;padding:0 5px;font-size:20px;color:#78896b}.dialog-content{padding:18px 22px;font-size:13px;line-height:1.9}.dialog-content .check{margin:10px 0}.dialog-content h2{font:22px "SimSun",serif;font-weight:600;margin:0 0 10px;color:#39632d}.dialog-intro{margin-top:0;color:#728464;font-size:12px}.dialog-content ul{padding-left:20px;font-size:12px}.dialog-content input:not([type=checkbox]):not([type=range]){flex:1;width:100%}.dialog-footer{padding:10px 15px;background:#f0f3e9;border-top:1px solid #d4ddca;display:flex;gap:7px;justify-content:flex-end}.dialog-footer button{min-width:75px}.help-note,.credits{font-size:11px;line-height:1.8;color:#8b977f;border-top:1px solid #e0e7d7;padding-top:12px}.range-label{margin-top:20px;font-size:12px;display:flex;gap:10px}.range-label input{accent-color:#5e8d46;flex:1;min-width:0}.export-options{display:flex;flex-direction:column;gap:10px;margin:18px 0}.export-options button{padding:10px}.toast{position:fixed;bottom:43px;left:50%;transform:translateX(-50%);background:#3d5731;color:white;padding:10px 18px;box-shadow:0 3px 14px #0002;font-size:12px;z-index:100;border-radius:3px}.error-message{color:#9e4633!important}.busy .wheel{opacity:1}.busy .statusbar{color:#9d782a}.busy .update-button{opacity:.5;pointer-events:none}.hide-shensha details.shensha{display:none}.print-heading{font:16px "SimSun",serif;color:#22331c}
@media screen {
  :root.night{color-scheme:dark;background:#131722;color:#D1D4DC;--night-canvas:#131722;--night-panel:#1E222D;--night-raised:#252A36;--night-hover:#2A3040;--night-selected:#283650;--night-ink:#D1D4DC;--night-muted:#8C92A3;--night-edge:#303642;--night-blue:#5B8DEF;--night-teal:#26A69A;--night-red:#EF5350;--night-gold:#C5A46D;--line:var(--night-edge);--green:var(--night-teal)}
  .night body{background:var(--night-canvas)}
  .night button{color:var(--night-ink);border-color:var(--night-edge);background:var(--night-raised)}
  .night button:hover{border-color:var(--night-muted);background:var(--night-hover)}
  .night button:active{background:var(--night-selected)}
  .night button:focus-visible,.night input:focus-visible,.night select:focus-visible,.night summary:focus-visible,.night textarea:focus-visible{outline-color:var(--night-blue)}
  .night input,.night select,.night textarea{background:var(--night-canvas);border-color:var(--night-edge);color:var(--night-ink)}
  .night input:disabled,.night select:disabled{color:var(--night-muted);background:var(--night-panel)}
  .night input[type=checkbox],.night .range-label input{accent-color:var(--night-blue)}
  .night input::placeholder,.night textarea::placeholder{color:var(--night-muted)}
  .night a{color:var(--night-blue)}
  .night .titlebar,.night .toolbar{background:var(--night-panel);border-color:var(--night-edge)}
  .night .appmark{color:var(--night-blue)}
  .night .title-separator{color:var(--night-muted)}
  .night .hd-label{color:var(--night-blue);border-color:var(--night-edge)}
  .night .system-label,.night .toolbar-note{color:var(--night-muted)}
  .night .menubar{background:var(--night-panel);border-color:var(--night-edge)}
  .night .menu>button,.night .menu-dropdown button{color:var(--night-ink);background:none;border-color:transparent}
  .night .menu>button:hover,.night .menu.open>button,.night .menu-dropdown button:hover{background:var(--night-hover)}
  .night .menu-dropdown{background:var(--night-panel);border-color:var(--night-edge);box-shadow:3px 5px 14px #0006}
  .night .menu-dropdown kbd{color:var(--night-muted)}
  .night .menu-dropdown [aria-checked=true]{color:var(--night-blue)}
  .night .menu-divider,.night .tool-divider{background:var(--night-edge)}
  .night .tool{background:none;border-color:transparent}
  .night .tool:hover{background:var(--night-hover);border-color:var(--night-edge)}
  .night .tool.active{background:var(--night-selected);border-color:var(--night-blue)}
  .night .tool svg [stroke],.night .update-button svg [stroke]{stroke:var(--night-ink)}
  .night .tool svg [fill]:not([fill="none"]){fill:var(--night-ink);fill-opacity:.18}
  .night .tool.active svg [stroke],.night .update-button svg [stroke]{stroke:var(--night-blue)}
  .night .viewtabs{background:var(--night-panel);border-color:var(--night-edge)}
  .night .viewtabs>[role=tab],.night .datatabs button{background:var(--night-panel);border-color:var(--night-edge);color:var(--night-muted)}
  .night .viewtabs>[aria-selected=true],.night .datatabs [aria-selected=true]{background:var(--night-canvas);border-color:var(--night-edge);color:var(--night-blue)}
  .night .view-caption,.night .view-caption>span,.night .quiet{color:var(--night-muted)}
  .night .quiet{background:none;border-color:transparent}
  .night .workspace{background:var(--night-canvas)}
  .night .plot-pane{background:var(--night-canvas);border-color:var(--night-edge)}
  .night .plot-heading{color:var(--night-ink);border-color:var(--night-edge)}
  .night .plot-heading>span:last-child{color:var(--night-muted)}
  .night .wheel-stage,.night .data-body{scrollbar-color:var(--night-edge) var(--night-canvas)}
  .night .wheel text:hover{stroke:var(--night-selected)}
  .night .wheel text.search-hit{stroke:#665334}
  .night .wheel text.selected-star{stroke:#344C75}
  .night .loading{color:var(--night-muted)}
  .night .chart-foot{border-color:var(--night-edge);color:var(--night-muted)}
  .night .green{color:var(--night-teal)}
  .night fieldset{background:var(--night-panel);border-color:var(--night-edge)}
  .night legend{color:var(--night-ink)}
  .night .birth-field label,.night .birth-field summary,.night .step-row>span{color:var(--night-muted)}
  .night .birth-field input,.night .birth-field select{color:var(--night-ink)}
  .night .birth-field details{border-color:var(--night-edge)}
  .night .update-button{background:var(--night-selected);border-color:var(--night-edge)}
  .night .datatabs{border-color:var(--night-edge)}
  .night .data-body{background:var(--night-panel);border-color:var(--night-edge)}
  .night .data-heading{color:var(--night-ink)}
  .night .data-heading>span{color:var(--night-muted)}
  .night .eight-char{color:var(--night-ink);border-color:var(--night-edge)}
  .night .masters{color:var(--night-gold)}
  .night .planet-table td:first-child{color:var(--night-teal)}
  .night #now-data .planet-table td:first-child{color:var(--night-blue)}
  .night .planet-table th{color:var(--night-muted);border-color:var(--night-edge)}
  .night .planet-table td{border-color:var(--night-edge)}
  .night .planet-table td:last-child{color:var(--night-muted)}
  .night .planet-table tbody tr:hover,.night .planet-table tbody tr.selected{background:var(--night-selected)}
  .night .planet-table .retrograde{color:var(--night-red)!important}
  .night .shensha>summary{color:var(--night-muted);border-color:var(--night-edge)}
  .night .year-info{color:var(--night-teal)}
  .night #now-data .year-info{color:var(--night-blue)}
  .night .data-panel pre{color:var(--night-ink)}
  .night .text-button{background:var(--night-raised);border-color:var(--night-edge);color:var(--night-blue)}
  .night #note{background:var(--night-canvas);border-color:var(--night-edge);color:var(--night-ink)}
  .night .statusbar{background:var(--night-panel);border-color:var(--night-edge);color:var(--night-muted)}
  .night .zoom-controls button{background:none;color:var(--night-ink)}
  .night .zoom-controls>span{color:var(--night-muted)}
  .night .star-tip{background:var(--night-raised);border-color:var(--night-edge);color:var(--night-ink);box-shadow:1px 3px 9px #0006}
  .night .library{background:var(--night-canvas)}
  .night .library h1{color:var(--night-ink)}
  .night .library-description,.night .empty-library,.night .empty-library small{color:var(--night-muted)}
  .night .library-table th{background:var(--night-panel);color:var(--night-muted);border-color:var(--night-edge)}
  .night .library-table td{border-color:var(--night-edge)}
  .night dialog{background:var(--night-panel);color:var(--night-ink);border-color:var(--night-edge);box-shadow:0 15px 70px #0008}
  .night dialog::backdrop{background:#090C14AA}
  .night .dialog-title{background:var(--night-raised);border-color:var(--night-edge);color:var(--night-ink)}
  .night .dialog-title button{background:none;border-color:transparent;color:var(--night-muted)}
  .night .dialog-content h2{color:var(--night-ink)}
  .night .dialog-intro{color:var(--night-muted)}
  .night .dialog-footer{background:var(--night-panel);border-color:var(--night-edge)}
  .night .help-note,.night .credits{color:var(--night-muted);border-color:var(--night-edge)}
  .night .toast{background:var(--night-raised);color:var(--night-ink);border:1px solid var(--night-edge)}
  .night .error-message{color:var(--night-red)!important}
  .night .busy .statusbar{color:var(--night-gold)}
}
@media(min-width:1700px){:root{--sidebar:430px}.birth-field input,.birth-field select,.now-field input{font-size:13px}.birth-field label{font-size:12px}.datatabs button{padding-left:15px;padding-right:15px}}
@media(max-width:1050px){:root{--sidebar:340px}.plot-heading>span:last-child{display:none}.toolbar-note{display:none}.chart-foot{font-size:11px}.datatabs button{padding-left:9px;padding-right:9px}.data-panel{padding:8px}.planet-table{font-size:12px}}
@media(max-width:760px){body{height:auto;min-height:100vh;overflow:auto}.system-label{font-size:10px}.workspace{display:flex;flex-direction:column;min-height:auto;flex:initial}.plot-pane{height:auto;min-height:440px}.wheel-stage{height:auto;min-height:360px;flex:none;padding:12px}.wheel{width:var(--wheel-size,100%)!important;height:auto!important;aspect-ratio:1}.plot-heading{min-height:30px}.control-pane{overflow:visible;padding:0;min-height:680px}.data-body{min-height:400px;max-height:650px}.toolbar{overflow-x:auto}.toolbar-spacer,.toolbar-note,.view-caption{display:none}.chart-foot{font-size:11px;min-height:58px}.titlebar{height:34px;font-size:12px}.statusbar{position:sticky;bottom:0;z-index:15;min-height:28px}#pointer-status{display:none}.zoom-controls .vector-label{display:none}.library{padding:15px;min-height:600px}.library-heading{flex-wrap:wrap}.library h1{width:100%;margin-bottom:10px}.library-heading input{width:100%}.library-table th,.library-table td{padding:7px;font-size:11px}.library-table td:last-child{white-space:nowrap}.planet-table{font-size:var(--data-size)}.menubar{height:30px}.menu>button{padding:5px 8px;font-size:12px}.menu-dropdown{min-width:200px}.menu:nth-last-child(-n+2) .menu-dropdown{left:auto;right:0}}
.commandbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:37px;padding:0 9px 0 6px;background:#f7f6f1;border-bottom:1px solid #bec3b5;flex:none;position:relative;z-index:20}
.commandbar .menubar{height:auto;min-height:35px;align-items:center;padding:0;border:0;background:transparent;z-index:auto;flex:none}
.commandbar .menu>button{height:30px}
.commandbar .menu-dropdown{top:31px}
.commandbar .toolbar{min-height:36px;padding:0;border:0;background:transparent;gap:3px;margin-left:auto;flex:none}
.commandbar .tool,.commandbar .tool-divider{flex:none}
.commandbar .toolbar-spacer{display:none}
.commandbar .toolbar-note{padding-left:10px}
.viewbar{display:flex;align-items:center;min-height:32px;padding:0 9px;gap:3px;background:#e6e8df;border-bottom:1px solid #a8b49d;flex:none}
.viewbar .viewtabs{height:32px;min-height:32px;padding:3px 0 0;border:0;background:transparent;flex:none}
.viewbar .view-caption{flex:none}
.view-status{min-width:0;flex:1;padding:5px 0 5px 15px;text-align:right;color:#6c7760;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.viewbar .quiet{margin-left:10px;flex:none}
.busy .view-status{color:#9d782a}
@media screen{
  .night .commandbar{background:var(--night-panel);border-color:var(--night-edge)}
  .night .commandbar .menubar,.night .commandbar .toolbar,.night .viewbar .viewtabs{background:transparent;border-color:transparent}
  .night .viewbar{background:var(--night-panel);border-color:var(--night-edge)}
  .night .view-status{color:var(--night-muted)}
  .night .busy .view-status{color:var(--night-gold)}
}
@media(max-width:1250px){.commandbar{flex-wrap:wrap;gap:0}.commandbar .toolbar{flex:1 0 100%;min-width:0;max-width:100%;overflow-x:auto;justify-content:safe flex-end;padding:2px 0 4px}.commandbar .menubar{min-height:31px}}
@media(max-width:760px){.viewbar{padding:0 7px}.viewbar .view-caption{display:none}.viewbar .viewtabs>[role=tab]{min-width:58px}.view-status{padding-left:8px}.viewbar .quiet{margin-left:4px}.commandbar .toolbar-note{display:none}}
@media(max-width:420px){.commandbar .menu>button{padding-inline:4px}.viewbar{flex-wrap:wrap}.view-status{order:4;flex-basis:100%;text-align:left;padding:3px 2px 6px}.viewbar .quiet{margin-left:auto}}
@media print{@page{size:A4 landscape;margin:12mm}body{height:auto;overflow:visible;background:white}.commandbar,.viewbar,.control-pane,dialog{display:none!important}.workspace{display:block;background:white;padding:0}.plot-pane{border:0;overflow:visible}.wheel-stage{padding:0;display:block;height:auto!important;overflow:visible}.wheel{width:100%!important;height:auto!important}.plot-heading{border:0;font:14px "SimSun",serif}.chart-foot{font-size:10px;border:0}.star-tip{display:none!important}}

/* The chart fills the space beside the persistent data panel. Only tools auto-hide. */
body{height:100dvh;overflow:hidden;display:block}
.workspace{display:block;position:fixed;inset:0 var(--sidebar) 0 0;width:auto;height:100%;padding:0;min-height:0;background:#fff}
.workspace .plot-pane{width:100%;height:100%;min-height:0;border:0;background:#fff}
.workspace .wheel-stage{width:100%;height:100%;min-height:0;flex:1;padding:0;overflow:auto}
.workspace .wheel{width:var(--scene-width,100%)!important;height:var(--scene-height,100%)!important;aspect-ratio:auto}
.workspace .wheel>svg{overflow:hidden}
.data-sidebar{position:fixed;inset:0 0 0 auto;width:var(--sidebar);display:flex;flex-direction:column;min-height:0;background:#f3f3eb;border-left:1px solid #aab49f}
.data-sidebar .viewbar{flex-wrap:wrap;min-height:32px;padding:0 36px 0 8px;gap:3px}
.data-sidebar .view-caption{display:none}
.data-sidebar .viewtabs>[role=tab]{min-width:60px}
.data-sidebar .view-status{order:4;flex:1 0 100%;text-align:left;padding:4px 2px 7px}
.data-sidebar .quiet{margin-left:auto}
.sidebar-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:8px;overflow:auto}
.data-sidebar .control-pane{flex:1;min-height:0;overflow:visible;padding:0}
.data-sidebar .control-pane form{flex:none}
.data-sidebar .data-body{flex:1;min-height:190px;max-height:none}
.data-sidebar .data-panel{padding:9px 10px 15px}
.data-sidebar .library{padding:8px;min-height:0;flex:1}
.data-sidebar .library-heading{flex-wrap:wrap;gap:6px}
.data-sidebar .library h1{width:100%;font-size:16px;margin-bottom:8px}
.data-sidebar .library-heading input{width:100%}
.data-sidebar .library-table th,.data-sidebar .library-table td{padding:7px 4px;font-size:11px}
.data-sidebar .empty-library{padding:45px 0}
.data-sidebar .library-description{padding:12px 0}
.control-drawer{position:fixed;right:0;top:0;width:min(520px,calc(100vw - 30px));z-index:45;transform:translateX(100%);transition:transform .18s ease;pointer-events:none}
.control-drawer.is-open{transform:translateX(0)}
.drawer-panel{display:flex;flex-direction:column;min-height:0;background:#f3f3eb;border:1px solid #aab49f;border-top:0;border-right:0;box-shadow:-8px 4px 28px #0002;pointer-events:none;visibility:hidden}
.is-open .drawer-panel{pointer-events:auto;visibility:visible}
.drawer-tab{position:absolute;left:-28px;top:8px;width:28px;min-height:54px;padding:8px 5px;writing-mode:vertical-rl;letter-spacing:4px;border-radius:5px 0 0 5px;background:#e6e8df;border-color:#aab49f;box-shadow:-2px 2px 8px #0002;pointer-events:auto}
.drawer-heading{display:flex;align-items:center;justify-content:space-between;min-height:36px;padding:5px 12px;border-bottom:1px solid #bec3b5;font-size:12px;color:#4d5f3e;flex:none}
.drawer-heading button{border:0;background:transparent;font-size:22px;padding:0 5px}
.control-drawer .commandbar{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0 8px;z-index:20}
.control-drawer .menubar{display:flex;flex:0 0 auto;justify-content:space-between;min-width:0;min-height:31px}
.control-drawer .menu>button{padding:4px 6px;font-size:12px}
.control-drawer .toolbar{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-start;max-width:100%;overflow:visible;min-height:0;margin:0;padding:4px 0 6px;gap:3px}
.control-drawer .tool-divider{height:18px;margin:0 3px}
.control-drawer .toolbar-note{display:none}
@media screen{
  .night .workspace,.night .workspace .plot-pane{background:var(--night-canvas)}
  .night .data-sidebar{background:var(--night-panel);border-color:var(--night-edge)}
  .night .drawer-panel{background:var(--night-panel);border-color:var(--night-edge);box-shadow:-8px 0 28px #0006}
  .night .drawer-tab{background:var(--night-panel);border-color:var(--night-edge);color:var(--night-blue)}
  .night .drawer-heading{border-color:var(--night-edge);color:var(--night-muted)}
  .night .drawer-heading button{background:transparent;border-color:transparent}
}
/* 最近打开的排盘: a narrow column between the chart and the data sidebar. */
:root{--recent:68px}
.recent-strip{position:fixed;top:0;bottom:0;right:var(--sidebar);width:var(--recent);display:flex;flex-direction:column;background:#eef0e6;border-left:1px solid #c7cfbb;z-index:2}
body.has-recent .workspace{right:calc(var(--sidebar) + var(--recent))}
.recent-title{flex:none;padding:8px 0 6px;text-align:center;font:11px "Microsoft YaHei UI",sans-serif;color:#7d8a70;border-bottom:1px solid #d6dccb}
.recent-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:6px 5px 10px;scrollbar-width:thin}
.recent-item{position:relative;flex:none}
.recent-card{width:100%;display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px 6px;border:1px solid #c9d1bd;border-radius:3px;background:#fbfbf6;font:13px/1.4 "SimSun","Songti SC",serif;color:#33452d}
.recent-card:hover{border-color:#8fa47f;background:#fff}
.recent-card.current{border-color:#286b2e;box-shadow:inset 0 0 0 1px #286b2e}
.recent-sex{font-weight:700;color:#286b2e}
.recent-name{max-width:100%;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:10px "Microsoft YaHei UI",sans-serif;color:#8b977f}
.recent-remove{position:absolute;top:1px;right:1px;width:16px;height:16px;padding:0;border:0;background:none;font-size:12px;line-height:16px;color:#8b977f;opacity:0}
.recent-item:hover .recent-remove,.recent-remove:focus-visible{opacity:1}
.night .recent-strip{background:var(--night-panel);border-color:var(--night-edge)}
.night .recent-title{color:var(--night-muted);border-color:var(--night-edge)}
.night .recent-card{background:var(--night-raised);border-color:var(--night-edge);color:var(--night-ink)}
.night .recent-card:hover{border-color:var(--night-blue)}
.night .recent-card.current{border-color:var(--night-blue);box-shadow:inset 0 0 0 1px var(--night-blue)}
.night .recent-sex{color:var(--night-blue)}
.night .recent-name,.night .recent-remove{color:var(--night-muted)}
@media print{.recent-strip{display:none!important}}
@media(max-width:760px){
  .recent-strip{position:relative;inset:auto;width:100%;flex-direction:row;align-items:stretch;border-left:0;border-top:1px solid #c7cfbb}
  body.has-recent .workspace{right:auto}
  .recent-title{display:flex;align-items:center;padding:0 8px;border-bottom:0;border-right:1px solid #d6dccb;writing-mode:vertical-rl}
  .recent-list{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:6px}
  .recent-item{flex:0 0 66px}
}
@media(max-width:760px){
  body{height:auto;min-height:100dvh;overflow:auto}
  .workspace{position:relative;inset:auto;width:100%;height:max(240px,66.667vw)}
  .data-sidebar{position:relative;inset:auto;width:100%;min-height:700px;border-left:0;border-top:1px solid #aab49f}
  .sidebar-body{overflow:visible}
  .data-sidebar .control-pane{flex:none;min-height:0}
  .data-sidebar .data-body{min-height:400px;max-height:650px}
  .data-sidebar .library{min-height:600px}
  .data-sidebar .viewbar{padding-right:8px}
}
@media(max-width:420px){.control-drawer .menu>button{padding-inline:3px;font-size:11px}.control-drawer .tool{width:27px}.sidebar-body{padding:6px}.data-sidebar .data-panel{padding:8px}.data-sidebar .planet-table{font-size:12px}}
@media(prefers-reduced-motion:reduce){.control-drawer{transition:none}}
@media print{.control-drawer,.data-sidebar{display:none!important}.workspace{position:static;inset:auto;width:100%;max-width:230mm;margin:0 auto;height:auto}.workspace .plot-pane{height:auto}.workspace .wheel-stage{display:block;height:auto;padding:0}.workspace .wheel{width:100%!important;height:auto!important;aspect-ratio:var(--scene-aspect,3 / 2)}}
/* 出生资料: click the date summary to expand or collapse the input panel. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.birth-field{position:relative;padding:0}
.birth-summary{display:flex;align-items:center;height:38px;padding:0 12px;font:17px/1 "SimSun","Songti SC",serif;letter-spacing:.5px;color:#25291f;cursor:pointer;outline-offset:-2px}
:root .birth-summary{width:100%;border:0;border-radius:0;background:transparent;text-align:left}
.birth-summary::after{content:"";margin-left:auto;width:7px;height:7px;border:solid #8b977f;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
.birth-body{display:none;position:absolute;left:-1px;right:-1px;top:100%;z-index:30;padding:9px 10px 10px;background:#f3f3eb;border:1px solid #aab49f;border-top:1px dashed #d2d8c7;box-shadow:0 10px 22px #0003}
.birth-field.expanded>.birth-body{display:block}
.birth-field.expanded>.birth-summary::after{transform:translateY(2px) rotate(-135deg)}
/* Date fields: the browser's picker is replaced by .dt-picker. */
.dt-field{position:relative;display:flex;flex:1;min-width:0}
.date-row .dt-field input{flex:1;width:100%;padding-right:30px}
.dt-field input::-webkit-calendar-picker-indicator{display:none}
.dt-open{position:absolute;top:1px;right:1px;bottom:1px;width:28px;padding:0;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#5b6a50}
.dt-open:hover{background:#e3ebda}
.dt-open svg{width:16px;height:16px;display:block}
.dt-picker{position:fixed;z-index:60;display:flex;height:332px;background:#fbfbf7;border:1px solid #a9af9e;border-radius:4px;box-shadow:0 10px 30px #0003;font-size:13px;color:#25291f;user-select:none}
.dt-col{display:flex;flex-direction:column;width:62px;border-right:1px solid #e1e4d9}
.dt-col:last-child{border-right:0}
.dt-col.dt-years{width:72px}
.dt-col-head{flex:none;height:34px;line-height:34px;text-align:center;font-size:12px;color:#7d8a70;border-bottom:1px solid #e1e4d9}
.dt-col-list{flex:1;min-height:0;overflow-y:auto;padding:4px;scrollbar-width:thin;overscroll-behavior:contain}
.dt-col-list button,.dt-days button{display:block;width:100%;height:30px;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;font-size:14px;font-variant-numeric:tabular-nums}
.dt-col-list button:hover,.dt-days button:hover{background:#e7efdf;border-color:#c5d3b8}
.dt-picker button.selected{background:#a8cff5;border-color:#6aa2d8;color:#13283e;font-weight:600}
.dt-cal{display:flex;flex-direction:column;width:288px;padding:0 10px 8px;border-right:1px solid #e1e4d9}
.dt-cal-head{flex:none;display:flex;align-items:center;justify-content:space-between;height:34px;font-weight:600;font-size:14px}
.dt-cal-head button{width:30px;height:28px;padding:0;border:0;background:transparent;font-size:18px;line-height:1}
.dt-cal-head button:hover{background:#e7efdf}
.dt-week,.dt-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dt-week span{text-align:center;height:26px;line-height:26px;color:#7d8a70;font-size:12px}
.dt-days button{height:33px}
.dt-days button.other{color:#a5ab9c}
.dt-days button.today{border-color:#b8c4ab}
.dt-cal-foot{flex:none;display:flex;justify-content:space-between;margin-top:auto;padding-top:6px}
.dt-cal-foot button{border:0;background:transparent;color:#2f6fb0;padding:3px 6px}
.dt-cal-foot button:hover{background:#e7efdf}
@media screen{
  .night .birth-summary{color:var(--night-ink)}
  .night .birth-summary::after{border-color:var(--night-muted)}
  .night .birth-body{background:var(--night-panel);border-color:var(--night-edge);border-top-color:var(--night-edge);box-shadow:0 10px 24px #0008}
  .night .dt-open{background:transparent;border:0;color:var(--night-muted)}
  .night .dt-open:hover{background:var(--night-hover);color:var(--night-ink)}
  .night .dt-picker{background:var(--night-raised);border-color:var(--night-edge);color:var(--night-ink);box-shadow:0 12px 34px #000a}
  .night .dt-col,.night .dt-cal,.night .dt-col-head{border-color:var(--night-edge)}
  .night .dt-col-head,.night .dt-week span{color:var(--night-muted)}
  .night .dt-picker button{background:transparent;border-color:transparent;color:var(--night-ink)}
  .night .dt-picker button:hover{background:var(--night-hover)}
  .night .dt-days button.other{color:#5d6475}
  .night .dt-days button.today{border-color:var(--night-edge)}
  .night .dt-picker button.selected{background:#a8cff5;border-color:#a8cff5;color:#13283e}
  .night .dt-cal-foot button{color:var(--night-blue)}
}
@media(max-width:760px){.dt-picker{height:300px}.dt-col{width:48px}.dt-col.dt-years{width:58px}.dt-cal{width:236px;padding:0 6px 6px}.dt-days button{height:28px}.dt-col-list button{font-size:13px}}
@media print{.dt-picker{display:none!important}}
/* 流年 in one row: checkbox, ‹ date ›, step, 现在. The date uses the same
   font as the collapsed birth time above it. */
:root{--date-font:14px}
.birth-summary{font:var(--date-font)/1 "Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:0}
.now-field{padding:6px 8px}
.now-row{display:flex;align-items:center;gap:4px}
.now-row>.check{flex:none;font-size:13px;margin-right:2px}
.now-row>.dt-field{flex:1;min-width:0}
.now-field .dt-field input{height:30px;padding:2px 5px;font:var(--date-font) "Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}
.now-field .dt-open{display:none}
.now-row>.now-step{flex:none;width:24px;height:30px;padding:0;font-size:18px;line-height:1}
.now-row>select{flex:none;height:30px;padding:0 2px;font-size:12px}
.now-row>button[data-action=now]{flex:none;height:30px;padding:0 8px}
@media(max-width:1050px){:root{--date-font:13px}.now-row{gap:3px}.now-row>.now-step{width:20px}.now-row>button[data-action=now]{padding:0 5px}}
.now-field .dt-field input::-webkit-datetime-edit,.now-field .dt-field input::-webkit-datetime-edit-fields-wrapper{padding:0}
@media(max-width:1050px){.now-field{padding:6px 5px}.now-row{gap:2px}.now-row>.check{margin-right:0}.now-row>.check input{margin-right:3px}.now-row>.now-step{width:18px}.now-field .dt-field input{padding:2px 3px}.now-row>select{padding:0 1px}}
/* Sidebar header: view tabs and menus (文件 / 选项 / 设置 / 说明), then a row
   of icon tools. Messages float as a toast; the old status line is gone. */
.data-sidebar .viewbar{flex-wrap:nowrap;padding:0 8px;gap:2px}
.viewbar .menubar{display:flex;align-items:flex-end;height:32px;min-height:0;padding:0;margin-left:6px;border:0;background:transparent;z-index:25}
.viewbar .menu>button{height:29px;padding:4px 11px;border:1px solid transparent;border-bottom:0;border-radius:3px 3px 0 0;background:transparent;font-size:13px}
.viewbar .menu>button:hover,.viewbar .menu.open>button{background:#dfe8d7;border-color:#b8c0ac}
.viewbar .menu-dropdown{top:29px;left:auto;right:0;z-index:40}
.data-sidebar>.toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:2px;min-height:0;padding:4px 7px;background:#eef0e6;border-bottom:1px solid #c4cbb8}
.data-sidebar>.toolbar .tool{flex:none;width:32px;height:30px}
.data-sidebar>.toolbar .tool svg{width:20px;height:20px}
.chart-fullscreen{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;opacity:.75}
.chart-fullscreen:hover{opacity:1;background:#e0ead7;border-color:#99ae8c}
.chart-fullscreen svg{width:62%;height:62%}
.toast.error{background:#9e4633;color:#fff}
.display-options{margin:0 0 12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 12px}
.display-options legend{font-size:12px}
.xm-dialog .display-options .check{margin:4px 0}
.display-options .range-label{grid-column:1/-1;margin-top:6px}
@media screen{
  .night .viewbar .menu>button{color:var(--night-ink);background:transparent;border-color:transparent}
  .night .viewbar .menu>button:hover,.night .viewbar .menu.open>button{background:var(--night-hover);border-color:var(--night-edge)}
  .night .data-sidebar>.toolbar{background:var(--night-panel);border-color:var(--night-edge)}
  .night .chart-fullscreen{background:transparent;border-color:transparent}
  .night .chart-fullscreen:hover{background:var(--night-hover);border-color:var(--night-edge)}
  .night .chart-fullscreen svg [stroke]{stroke:var(--night-ink)}
  .night .toast.error{background:#7a2f2a;color:var(--night-ink)}
}
@media print{.chart-fullscreen,.toast{display:none!important}}
@media(max-width:1050px){.viewbar .menu>button{padding:4px 7px}.viewbar .menubar{margin-left:2px}.data-sidebar>.toolbar .tool{width:29px}}
.data-sidebar{z-index:3} /* menus drop over the 最近 strip */
/* Star rows are no longer clickable (no select-all highlighting). */
.planet-table tbody tr{cursor:default}
/* 角距标记 settings */
.ruler-dialog{width:min(360px,calc(100vw - 30px))}
.ruler-dialog form{margin:0}
.ruler-dialog .dialog-content{padding:14px 18px;line-height:1.6}
.ruler-angles{margin:10px 0 0;padding:6px 12px 10px}
.ruler-modes{margin:12px 0 0;padding:6px 10px 10px}
.ruler-mode{display:flex;gap:9px;align-items:flex-start;padding:9px;border:1px solid transparent;border-radius:6px;cursor:pointer}
.ruler-mode:has(input:checked){border-color:var(--theme-accent);background:var(--theme-selected)}
:root .ruler-mode input[type=radio]{margin:4px 0 0;flex:0 0 14px;width:14px;height:14px;padding:0;accent-color:var(--theme-accent)}
.ruler-mode span{min-width:0}
.ruler-mode strong{display:block;font-weight:600}
.ruler-mode small{display:block;margin-top:3px;color:var(--theme-muted);font-size:12px;line-height:1.6}
.ruler-grid{display:grid;grid-template-columns:auto 1fr auto 1fr;column-gap:10px;row-gap:4px;align-items:center}
.ruler-head{font-size:12px;color:#7d8a70}
.ruler-dialog .ruler-grid .check{margin:0}
.ruler-degree{font-variant-numeric:tabular-nums}
.ruler-swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px}
.ruler-dialog .help-note{margin:12px 0 0}
.night .ruler-head{color:var(--night-muted)}
@media print{#angle-ruler,#ruler-hits{display:none}}
/* Edit mode: every chart element is clickable for a colour. */
body.chart-editing .wheel text,body.chart-editing .wheel line,body.chart-editing .wheel path,body.chart-editing .wheel rect{cursor:pointer}
body.chart-editing .wheel text:hover{stroke:#FF9800;stroke-width:1.5px;paint-order:normal}
body.chart-editing .wheel line:hover{stroke-width:4px}
body.chart-editing .wheel text.edit-hover{stroke:#FF9800;stroke-width:1.5px;paint-order:normal}
body.chart-editing .wheel text.edit-selected{stroke:#FF9800;stroke-width:5px;stroke-opacity:.55;stroke-linejoin:round;paint-order:stroke}
body.chart-editing .wheel :is(line,path,rect,ellipse).edit-selected{filter:drop-shadow(0 0 3px #FF9800)}
#tick-hint{grid-column:1/-1;margin:4px 0 0}#tick-reset{margin-left:6px}
/* 盘面字号滑条只在手机设置里出现（app.js chartTextScale） */
body:not(.mobile-ui) .chart-text-mobile{display:none!important}#chart-text-hint,#xiu-text-hint{grid-column:1/-1;margin:4px 0 0}#chart-text-reset,#xiu-text-reset{margin-left:6px}
/* 八法「络」组色（tianguan.js methodParts）：互相络的星同一组同一色，也和命度络的加下划线；只和命度络的不上色。 */
:root{--luo-g0:#17519e;--luo-g1:#963108;--luo-g2:#6528b5;--luo-g3:#075c40}:root.night{--luo-g0:#79b0ff;--luo-g1:#ffa36b;--luo-g2:#c7a6ff;--luo-g3:#5ad6a8}
.luo-mark{cursor:help}.luo-g0{color:var(--luo-g0)}.luo-g1{color:var(--luo-g1)}.luo-g2{color:var(--luo-g2)}.luo-g3{color:var(--luo-g3)}.luo-mark:is(.luo-g0,.luo-g1,.luo-g2,.luo-g3){font-weight:700}.luo-life{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.color-pop-size{display:flex;align-items:center;gap:6px;margin-bottom:10px}.color-pop-size[hidden]{display:none}
.color-pop-size input[type=range]{flex:1;min-width:72px}.color-pop-size output{min-width:3.2em;text-align:right;font-variant-numeric:tabular-nums}.color-pop-size button{min-width:26px;padding-inline:6px}
/* 手机内圈模式（app.js toggleInnerRing）：过渡时盘按中心缩放、舞台不出滚动条；双击盘面不选中文字。 */
.mobile-ui #wheel>svg{transform-origin:50% 50%}.mobile-ui #wheel{-webkit-user-select:none;user-select:none}.mobile-ui #wheel-stage.inner-anim{overflow:hidden!important}
.edit-badge{position:fixed;top:8px;left:12px;z-index:30;display:flex;align-items:center;gap:8px;padding:5px 6px 5px 12px;border-radius:4px;background:#FFF3D6;border:1px solid #E0B65A;color:#6B4E12;font-size:12px;box-shadow:0 2px 8px #0002}
.edit-badge button{padding:2px 10px}
.color-pop{position:fixed;z-index:70;min-width:210px;padding:10px 12px;background:#fbfbf7;border:1px solid #a9af9e;border-radius:4px;box-shadow:0 8px 24px #0003;font-size:12px}
.color-pop-title{margin-bottom:8px;color:#4d5f3e}
.color-pop-row{display:flex;align-items:center;gap:6px}
.color-pop input[type=color]{width:44px;height:30px;padding:1px;cursor:pointer}
.edit-options .check{grid-column:1/-1}
.edit-actions{grid-column:1/-1;margin-top:6px}
.night .edit-badge{background:#3A3220;border-color:#7A6430;color:#E8D3A0}
.night .color-pop{background:var(--night-raised);border-color:var(--night-edge);color:var(--night-ink)}
.night .color-pop-title{color:var(--night-ink)}
@media print{.edit-badge,.color-pop{display:none!important}}
/* Wheel zoom and drag-to-pan */
.workspace .wheel-stage{touch-action:pan-x pan-y}
/* While dragging, one shield over the window carries the cursor and blocks text hover/selection;
   a rule on every SVG node (or an inherited one) restyled thousands of nodes on press and release. */
.wheel-stage.panning::after{content:'';position:fixed;inset:0;z-index:2147483647;cursor:grabbing}
/* Zoom gesture: the drawn chart is only transformed (app.js previewZoomAt), then re-laid out once. */
.wheel.zooming{will-change:transform;transform-origin:0 0}
/* Only #wheel reads these; not inheriting them spares a restyle of every SVG node on each resize. */
@property --scene-width{syntax:'*';inherits:false}
@property --scene-height{syntax:'*';inherits:false}
@property --scene-aspect{syntax:'*';inherits:false}
/* ---- Colour themes (app.js THEMES). Night themes override the --night-*
   variables; day themes set the --day-* surfaces, whose defaults are the
   original light colours (素白). ---- */
:root{--day-bg:#eeece6;--day-canvas:#fff;--day-panel:#f3f3eb;--day-input:#fff;--day-bar:#e6e8df;--day-bar2:#eef0e6;--day-tab:#e5e8dd;--day-card:#fbfbf6;--day-head:#e5ebdd;--day-foot:#f0f3e9;--day-ink:#25291f;--day-edge:#aab49f}
:root.theme-paper{--day-bg:#EDE5D3;--day-canvas:#F5EEDD;--day-panel:#EFE7D6;--day-input:#FAF6EC;--day-bar:#E7DEC9;--day-bar2:#ECE4D2;--day-tab:#E6DDC8;--day-card:#FAF6EC;--day-head:#E8DFC9;--day-foot:#F0E9DA;--day-ink:#090805;--day-edge:#CDBF9F}
:root.theme-celadon{--day-bg:#E6EDE6;--day-canvas:#EDF2EC;--day-panel:#E8EFE7;--day-input:#F7FAF6;--day-bar:#DCE6DC;--day-bar2:#E3EBE2;--day-tab:#DCE5DB;--day-card:#F7FAF6;--day-head:#DCE7DD;--day-foot:#EBF1EA;--day-ink:#22302A;--day-edge:#BFCFC4}
@media screen{
  :root:not(.night){background:var(--day-bg);color:var(--day-ink)}
  :root:not(.night) .workspace,:root:not(.night) .workspace .plot-pane{background:var(--day-canvas)}
  :root:not(.night) .data-sidebar,:root:not(.night) fieldset,:root:not(.night) .birth-body{background:var(--day-panel);border-color:var(--day-edge)}
  :root:not(.night) input:not([type=checkbox]):not([type=range]):not([type=color]),:root:not(.night) select,:root:not(.night) textarea,:root:not(.night) .data-body{background:var(--day-input)}
  :root:not(.night) .data-body{border-color:var(--day-edge)}
  :root:not(.night) .viewbar{background:var(--day-bar)}
  :root:not(.night) .data-sidebar>.toolbar,:root:not(.night) .recent-strip{background:var(--day-bar2)}
  :root:not(.night) .datatabs button{background:var(--day-tab)}
  :root:not(.night) .datatabs [aria-selected=true],:root:not(.night) .viewtabs>[aria-selected=true]{background:var(--day-input)}
  :root:not(.night) .recent-card,:root:not(.night) dialog,:root:not(.night) .dt-picker,:root:not(.night) .color-pop,:root:not(.night) .menu-dropdown{background:var(--day-card)}
  :root:not(.night) .dialog-title{background:var(--day-head)}
  :root:not(.night) .dialog-footer{background:var(--day-foot)}
  /* 墨韵: warm ink black with amber and sage */
  :root.night.theme-inkwash{background:#161412;color:#E3DACA;--night-canvas:#161412;--night-panel:#201D1A;--night-raised:#2A2622;--night-hover:#34302B;--night-selected:#41382B;--night-ink:#E3DACA;--night-muted:#9A907F;--night-edge:#3A342D;--night-blue:#D9A65E;--night-teal:#93BF7C;--night-red:#E26A5C;--night-gold:#C9AA6E}
  /* 深青: deep teal with cyan and green */
  :root.night.theme-teal{background:#0E1A1B;color:#D3E3E0;--night-canvas:#0E1A1B;--night-panel:#142425;--night-raised:#1B2F30;--night-hover:#21393A;--night-selected:#1E4448;--night-ink:#D3E3E0;--night-muted:#86A29D;--night-edge:#264042;--night-blue:#58C4DC;--night-teal:#7FD18B;--night-red:#F06A5E;--night-gold:#D8B96C}
  /* 米纸: fine paper grain over the chart and the sidebar */
  :root.theme-paper .workspace::after,:root.theme-paper .data-sidebar::after{display:none}

}
@media print{.workspace::after,.data-sidebar::after{display:none!important}}
/* 观星配色 — shared semantic surfaces for the six new palettes. Chart colours
   are explicit SVG values; these tokens style only the surrounding interface. */
@media screen{
  :root.theme-curated{background:var(--theme-canvas);color:var(--theme-ink);--green:var(--theme-birth);--line:var(--theme-edge)}
  .theme-curated body{background:var(--theme-canvas)}
  :root.theme-curated button{background:var(--theme-raised);color:var(--theme-ink);border-color:var(--theme-edge);border-radius:5px}
  :root.theme-curated button:hover{background:var(--theme-hover);border-color:var(--theme-muted)}
  :root.theme-curated button:active{background:var(--theme-selected)}
  :root.theme-curated :is(button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
  :root.theme-curated input,:root.theme-curated select,:root.theme-curated textarea{border-color:var(--theme-edge);color:var(--theme-ink);border-radius:4px}
  :root.theme-curated input[type=checkbox],:root.theme-curated input[type=range]{accent-color:var(--theme-accent)}
  :root.theme-curated input::placeholder,:root.theme-curated textarea::placeholder{color:var(--theme-muted)}
  :root.theme-curated a{color:var(--theme-accent)}
  :root.theme-curated :is(fieldset,.data-body,.data-sidebar,.recent-strip,.recent-title,.viewbar,.toolbar,.datatabs,.viewtabs,.birth-body,.birth-field details,.eight-char,.planet-table th,.planet-table td,.shensha>summary,.help-note,.credits,.dialog-title,.dialog-footer,.dt-picker,.dt-col,.dt-cal,.dt-col-head,.library-table th,.library-table td){border-color:var(--theme-edge)}
  :root.theme-curated :is(.birth-summary,.eight-char,.data-panel pre,.library,.recent-card,.dt-picker,.color-pop,dialog){color:var(--theme-ink)}
  :root.theme-curated :is(legend,.data-heading,.dialog-content h2,.library h1,.color-pop-title){color:var(--theme-accent)}
  :root.theme-curated :is(.birth-field label,.birth-field summary,.data-heading>span,.planet-table th,.planet-table td:last-child,.shensha>summary,.recent-title,.recent-name,.recent-remove,.dialog-intro,.help-note,.credits,.library-description,.library-table th,.empty-library,.empty-library small,.menu-dropdown kbd,.dt-col-head,.dt-week span,.dt-days button.other,.ruler-head,.loading){color:var(--theme-muted)}
  :root.theme-curated :is(.masters,.planet-table td:first-child){color:var(--theme-gold)}
  :root.theme-curated :is(.year-info,.green,.recent-sex){color:var(--theme-birth)}
  :root.theme-curated .planet-table .retrograde{color:var(--theme-marker)!important}
  :root.theme-curated :is(.planet-table tbody tr:hover,.planet-table tbody tr.selected){background:var(--theme-hover)}
  :root.theme-curated :is(.library,.viewtabs,.dt-picker){background:var(--theme-panel)}
  :root.theme-curated .library-table th{background:var(--theme-hover)}
  :root.theme-curated :is(.viewtabs>[role=tab],.datatabs button){background:var(--theme-panel);border-color:var(--theme-edge);color:var(--theme-muted);border-radius:5px 5px 0 0}
  :root.theme-curated :is(.viewtabs>[aria-selected=true],.datatabs [aria-selected=true]){background:var(--theme-raised);color:var(--theme-accent);border-color:var(--theme-edge);box-shadow:inset 0 2px var(--theme-accent)}
  :root.theme-curated :is(.tool,.menu>button,.menu-dropdown button,.chart-fullscreen,.dt-open,.dt-picker button,.recent-remove){background:transparent;border-color:transparent}
  :root.theme-curated :is(.tool:hover,.menu>button:hover,.menu.open>button,.menu-dropdown button:hover,.chart-fullscreen:hover,.dt-open:hover,.dt-picker button:hover){background:var(--theme-hover);border-color:var(--theme-edge)}
  :root.theme-curated :is(.tool svg [stroke],.update-button svg [stroke],.chart-fullscreen svg [stroke]){stroke:var(--theme-ink)}
  :root.theme-curated .tool svg [fill]:not([fill="none"]){fill:var(--theme-accent);fill-opacity:.16}
  :root.theme-curated .recent-card{background:var(--theme-raised);border-color:var(--theme-edge)}
  :root.theme-curated .recent-card.current{border-color:var(--theme-accent);box-shadow:inset 0 0 0 1px var(--theme-accent)}
  :root.theme-curated .recent-card:hover{background:var(--theme-hover)}
  :root.theme-curated .birth-summary::after{border-color:var(--theme-muted)}
  :root.theme-curated :is(.menu-divider,.tool-divider){background:var(--theme-edge)}
  :root.theme-curated :is(.wheel-stage,.data-body,.recent-list,.dt-col-list){scrollbar-color:var(--theme-edge) var(--theme-canvas)}
  :root.theme-curated .dt-picker button.selected{background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-canvas)}
  :root.theme-curated .dt-cal-foot button{color:var(--theme-accent)}
  :root.theme-curated .star-tip{background:var(--theme-raised);border-color:var(--theme-edge);color:var(--theme-ink);border-radius:6px;box-shadow:0 8px 28px #0002}
  :root.theme-curated .toast{background:var(--theme-ink);color:var(--theme-canvas);border-radius:8px}
  :root.theme-curated .toast.error{background:var(--theme-marker);color:var(--theme-canvas)}
  :root.theme-curated .wheel text:hover{stroke:var(--theme-hover)}
}
/* The compact entry stays alongside the existing day/night shortcut. */
.theme-field{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:0 0 6px}
.theme-field .xm-field{flex:1}
.theme-gallery-open{font-size:12px}
:root .toolbar .theme-trigger{display:flex;flex:0 1 auto;min-width:0;align-items:center;justify-content:center;gap:6px;margin-left:auto;padding:4px 8px;min-height:30px;background:transparent;border:1px solid var(--theme-edge);border-radius:6px;color:var(--theme-ink);font-size:11px}
:root .toolbar .theme-trigger:hover{background:var(--theme-canvas);border-color:var(--theme-accent)}
#theme-trigger-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.theme-trigger-dot,.theme-trigger-chevron{flex:none}
.theme-trigger-dot{width:10px;height:10px;border-radius:50%;background:var(--theme-accent);box-shadow:inset 0 0 0 1px #8883}
.theme-trigger-chevron{opacity:.7;font-size:14px;line-height:1}
/* Gallery cards keep their own colours while the surrounding gallery follows
   the applied theme. No filters: the thumbnail uses the chart's actual inks. */
:root dialog.theme-dialog{width:min(824px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--theme-edge);border-radius:16px;background:var(--theme-canvas);color:var(--theme-ink);box-shadow:0 28px 100px #0005;overflow:hidden}
.theme-dialog[open]{display:flex;flex-direction:column}
.theme-dialog::backdrop{background:#0D151A88;backdrop-filter:blur(4px)}
.theme-gallery-header{flex:none;display:flex;align-items:flex-start;justify-content:space-between;padding:25px 28px 20px;border-bottom:1px solid var(--theme-edge);gap:16px}
.theme-eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 11px;font:10px/1.2 "Segoe UI",sans-serif;letter-spacing:2.4px;color:var(--theme-muted)}
.theme-eyebrow span{color:var(--theme-accent)}
.theme-gallery-header h2{margin:0;font:500 29px/1.4 "Noto Serif CJK SC","Songti SC","SimSun",serif;letter-spacing:4px;color:var(--theme-ink)}
.theme-gallery-header #theme-intro{margin:9px 0 0;font-size:12px;line-height:1.6;color:var(--theme-muted)}
:root .theme-dialog .theme-close{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:1px solid var(--theme-edge);border-radius:50%;background:transparent;color:var(--theme-muted);font:22px/1 sans-serif}
:root .theme-dialog .theme-close:hover{background:var(--theme-panel);color:var(--theme-ink);border-color:var(--theme-accent)}
.theme-gallery-content{padding:20px 28px 18px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--theme-edge) transparent}
.theme-gallery-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px}
.theme-segments{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--theme-edge);border-radius:10px;background:var(--theme-panel)}
:root .theme-dialog .theme-segments button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:105px;min-height:33px;padding:6px 14px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--theme-muted);font-size:12px}
:root .theme-dialog .theme-segments button[aria-pressed=true]{background:var(--theme-raised);border-color:var(--theme-edge);color:var(--theme-ink);box-shadow:0 1px 4px #0001}
.theme-segments svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.theme-segments button>span{font:10px/1 "Segoe UI",sans-serif;opacity:.7}
.theme-instant{font-size:11px;color:var(--theme-muted)}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
:root .theme-dialog .theme-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;white-space:normal;text-align:left;border:1px solid var(--theme-edge);border-radius:10px;background:var(--sample-canvas);color:var(--sample-ink);overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
:root .theme-dialog .theme-card:hover{background:var(--sample-canvas);border-color:var(--theme-accent);transform:translateY(-2px);box-shadow:0 6px 18px #0002}
:root .theme-dialog .theme-card[aria-pressed=true]{border-color:var(--theme-accent);box-shadow:0 0 0 2px var(--theme-accent)}
:root .theme-dialog :is(button,.theme-card):focus-visible{outline:2px solid var(--theme-accent);outline-offset:4px}
.theme-preview{position:relative;display:block;width:100%;overflow:hidden;background:var(--sample-canvas)}
.theme-preview>svg{display:block;width:100%;height:auto}
.theme-card-check{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--sample-accent);color:var(--sample-canvas);font-size:12px;opacity:0}
.theme-card[aria-pressed=true] .theme-card-check{opacity:1}
.theme-card-info{display:block;width:100%;padding:12px 14px 14px;border-top:1px solid var(--sample-edge)}
.theme-card-heading{display:flex;align-items:center;gap:7px;min-width:0}
.theme-card-name{font:600 16px/1.4 "Songti SC","SimSun",serif;letter-spacing:1px}
.theme-card-new{font-size:9px;letter-spacing:.5px;color:var(--sample-muted);border:1px solid var(--sample-edge);border-radius:3px;padding:1px 4px}
.theme-swatches{display:flex;gap:4px;margin-left:auto}
.theme-swatches i{width:7px;height:7px;border-radius:50%;background:var(--sample-birth)}
.theme-swatches i:nth-child(2){background:var(--sample-transit)}
.theme-swatches i:nth-child(3){background:var(--sample-gold)}
.theme-card-description{display:block;margin-top:5px;color:var(--sample-muted);font-size:10px;line-height:1.5;letter-spacing:.3px}
.theme-gallery-note{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;font-size:10px;color:var(--theme-muted)}
.theme-legend,.theme-legend>span{display:flex;align-items:center;gap:6px}
.theme-legend{gap:14px}
.theme-legend i{width:6px;height:6px;border-radius:50%;background:var(--theme-birth)}
.theme-legend .transit-swatch{background:var(--theme-transit)}
.theme-legend .gold-swatch{background:var(--theme-gold)}
.theme-gallery-footer{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 28px;background:var(--theme-panel);border-top:1px solid var(--theme-edge)}
.theme-gallery-footer>div{display:flex;align-items:center;gap:8px;font-size:11px;flex-wrap:wrap}
.theme-gallery-footer strong{font-weight:500}
.theme-saved-dot{width:5px;height:5px;border-radius:50%;background:var(--theme-birth)}
.theme-saved-label{color:var(--theme-muted);font-size:10px}
:root .theme-dialog .theme-gallery-footer button{min-width:90px;min-height:36px;padding:7px 20px;background:var(--theme-accent);color:var(--theme-canvas);border:1px solid var(--theme-accent);border-radius:7px;font-size:12px}
:root .theme-dialog .theme-gallery-footer button:hover{filter:brightness(1.08)}
@media(max-width:580px){
  :root dialog.theme-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:12px}
  .theme-gallery-header{padding:20px 18px 17px}
  .theme-gallery-header h2{font-size:25px}
  .theme-gallery-header #theme-intro{font-size:11px}
  .theme-gallery-content{padding:16px 18px}
  .theme-gallery-controls{margin-bottom:15px}
  .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .theme-card-info{padding:10px}
  .theme-card-name{font-size:15px}
  .theme-swatches{gap:3px}
  .theme-swatches i{width:5px;height:5px}
  .theme-card-heading{gap:5px}
  .theme-card-new{font-size:8px;padding:1px 3px}
  .theme-gallery-note{font-size:9px}
  .theme-gallery-footer{padding:14px 18px}
  .theme-gallery-footer>div{gap:6px}
  .theme-saved-label{display:none}
  :root .theme-dialog .theme-segments button{min-width:86px;padding:5px 10px}
}
@media(prefers-reduced-motion:reduce){:root .theme-dialog .theme-card{transition:none}:root .theme-dialog .theme-card:hover{transform:none}}
@media print{.theme-dialog,.theme-trigger{display:none!important}}
.mansion-editor{grid-column:1/-1;margin-top:8px;padding:14px;border:1px solid var(--theme-edge);border-radius:8px;background:var(--theme-canvas)}
.mansion-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.mansion-editor-heading .check{font-size:12px}
.mansion-daymoon{font-size:10px;color:var(--theme-muted);margin-left:4px}
#mansion-palette-name{font-size:10px;color:var(--theme-muted)}
.mansion-colors{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.mansion-color{position:relative;display:grid;grid-template-columns:24px 1fr;gap:5px;align-items:center;padding:10px 7px;border:1px solid var(--theme-edge);border-radius:6px;color:var(--theme-ink);cursor:pointer}
.mansion-color:focus-within{outline:2px solid var(--theme-accent);outline-offset:2px}
.mansion-color>span{font:600 16px "SimSun","Songti SC",serif;color:var(--mansion-color)}
.xm-dialog .mansion-color input[type=color]{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;overflow:hidden}
.mansion-color input::-webkit-color-swatch-wrapper{padding:0}
.mansion-color input::-webkit-color-swatch{border:0;border-radius:50%;box-shadow:inset 0 0 0 1px #8882}
.mansion-color input::-moz-color-swatch{border:0;border-radius:50%}
.mansion-color input:disabled{cursor:default;opacity:.55}
.mansion-color small{grid-column:1/-1;text-align:center;font-size:10px;letter-spacing:1px;white-space:nowrap;color:var(--theme-muted)}
.mansion-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
#mansion-hint{font-size:11px;line-height:1.6;color:var(--theme-muted);margin:0}
#mansion-reset{font-size:10px;padding:5px 8px;flex:none}
:root .color-pop{max-width:calc(100vw - 16px);border-radius:8px;background:var(--theme-raised);border-color:var(--theme-edge);color:var(--theme-ink)}
:root .color-pop-title{font-size:13px;color:var(--theme-ink);margin-bottom:5px}
.color-pop-scope{margin-bottom:10px;white-space:pre-line;color:var(--theme-muted);font-size:11px;line-height:1.7}
.color-pop-row{flex-wrap:wrap}
:root .color-pop .color-pop-hex{width:82px;flex:none;font:12px/1.5 Consolas,monospace;letter-spacing:.3px;padding:5px 6px;background:var(--theme-canvas);color:var(--theme-ink);border-color:var(--theme-edge)}
.color-pop-hex:invalid{outline:1px solid var(--theme-marker)}
:root .edit-badge{border-radius:8px;border-color:var(--theme-edge);background:var(--theme-panel);color:var(--theme-ink);gap:12px}
.edit-badge>span{color:var(--theme-accent)}
.edit-badge .check{font-size:11px}
.edit-badge input{accent-color:var(--theme-accent)}
@media screen{:root.theme-curated #now-data .year-info{color:var(--theme-transit)}:root.theme-curated .menu-dropdown{border-color:var(--theme-edge)}}
@media(max-width:640px){.mansion-colors{grid-template-columns:repeat(4,minmax(0,1fr))}.mansion-editor{padding:12px}.mansion-editor-heading{align-items:flex-start;flex-wrap:wrap}.mansion-editor-foot{align-items:flex-start;flex-direction:column;gap:8px}.mansion-color{grid-template-columns:24px auto;justify-content:center}.mansion-color small{letter-spacing:0}.mansion-daymoon{display:none}}
.ss-settings{grid-column:1/-1;margin-top:8px}
.ss-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.ss-settings-heading strong{font-weight:500;color:var(--theme-ink)}
#ss-profile-label{font-size:11px;color:var(--theme-muted);margin:4px 0 0}
#ss-choices{display:grid;grid-template-columns:1fr;gap:10px}
.ss-selection-actions{grid-column:1/-1;display:flex;gap:6px;margin:3px 0 8px}
.ss-selection-actions button{font-size:10px;padding:2px 9px}
:root dialog.shensha-dialog{width:min(900px,calc(100vw - 28px));max-height:calc(100dvh - 36px);border-radius:12px;background:var(--theme-canvas);border-color:var(--theme-edge);color:var(--theme-ink);overflow:hidden}
.shensha-dialog[open]{display:flex;flex-direction:column}
.shensha-dialog>.dialog-title,.shensha-dialog>.dialog-footer{flex:none}
.shensha-dialog>.dialog-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px;scrollbar-width:thin}
.ss-intro{font-size:12px;line-height:1.8;color:var(--theme-muted);margin:0 0 16px}
.ss-builder{padding:16px;border:1px solid var(--theme-edge);border-radius:8px;background:var(--theme-panel)}
.shensha-dialog h3{font-size:13px;font-weight:500;margin:0 0 12px;color:var(--theme-ink)}
.ss-builder-fields{display:grid;grid-template-columns:1.4fr 1fr .8fr .8fr 1fr auto;gap:10px;align-items:end}
.ss-builder-fields label{display:flex;flex-direction:column;align-items:stretch;gap:5px;font-size:11px;color:var(--theme-muted);min-width:0}
.ss-builder-fields input,.ss-builder-fields select{width:100%;height:32px;color:var(--theme-ink);font-size:12px}
#ss-add{height:32px;font-size:11px}
.ss-builder-note{font-size:10px;line-height:1.7;color:var(--theme-muted);margin:12px 0 0}
.ss-source-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 10px}
.ss-source-heading h3{margin:0}
.ss-source-heading>div{display:flex;gap:6px;flex-wrap:wrap}
.ss-source-heading button{font-size:11px}
:root .shensha-dialog #ss-source{width:100%;min-height:210px;height:28vh;resize:vertical;font:12px/1.8 Consolas,"Microsoft YaHei",monospace;white-space:pre;overflow:auto;background:var(--theme-raised);color:var(--theme-ink);border:1px solid var(--theme-edge);border-radius:7px;padding:12px}
.ss-format{margin-top:12px;font-size:11px;line-height:1.8;color:var(--theme-muted)}
.ss-format summary{cursor:pointer;color:var(--theme-accent)}
.ss-format pre{font:11px/1.7 Consolas,"Microsoft YaHei",monospace;background:var(--theme-panel);padding:10px;border-radius:5px;white-space:pre-wrap}
.ss-rule-message{margin:14px 0 0;font-size:11px;line-height:1.8;color:var(--theme-accent);min-height:20px;overflow-wrap:anywhere}
:root .shensha-dialog #ss-apply{background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-canvas)}
.palace-shensha{padding-top:8px}
.palace-shensha-row{display:grid;grid-template-columns:minmax(65px,7em) 1fr;gap:8px;padding:6px 0;border-bottom:1px solid var(--theme-edge);font:var(--data-size)/1.8 "SimSun","Songti SC",serif}
.palace-shensha-row b{font-weight:500;color:var(--theme-accent)}
.palace-shensha-row span{color:var(--theme-ink);overflow-wrap:anywhere}
@media(max-width:720px){.ss-builder-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.shensha-dialog>.dialog-content{padding:16px}.ss-source-heading{align-items:flex-start;flex-direction:column}.ss-builder{padding:12px}}
.account-bar{position:fixed;top:0;right:0;width:var(--sidebar);height:39px;z-index:6;display:flex;align-items:center;gap:8px;padding:0 10px;border-left:1px solid var(--theme-edge);border-bottom:1px solid var(--theme-edge);background:var(--theme-panel);color:var(--theme-ink)}
.account-brand{margin-right:auto;font:10px "Segoe UI",sans-serif;letter-spacing:2.5px;color:var(--theme-muted)}
:root .account-bar button{display:flex;align-items:center;gap:6px;padding:5px 8px;height:29px;max-width:155px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--theme-muted);font-size:11px}
:root .account-bar button:hover{background:var(--theme-hover);border-color:var(--theme-edge);color:var(--theme-ink)}
:root .account-bar #account-open{border-color:var(--theme-edge);color:var(--theme-accent)}
.account-bar svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex:none}
#account-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.data-sidebar{padding-top:39px}
:root :is(dialog.account-dialog,dialog.feedback-dialog){width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);border:1px solid var(--theme-edge);border-radius:12px;background:var(--theme-canvas);color:var(--theme-ink);overflow:hidden}
.account-dialog[open],.feedback-dialog[open]{display:flex;flex-direction:column}
.account-dialog>.dialog-title,.feedback-dialog>.dialog-title{flex:none}
.account-dialog>.dialog-content,.feedback-dialog>.dialog-content{min-height:0;overflow:auto;padding:22px 26px;overscroll-behavior:contain}
.account-tabs{display:flex;padding:4px;gap:4px;border:1px solid var(--theme-edge);border-radius:8px;background:var(--theme-panel);margin-bottom:22px}
:root .account-tabs button{flex:1;border:1px solid transparent;background:transparent;color:var(--theme-muted);border-radius:5px;padding:7px 12px}
:root .account-tabs button[aria-pressed=true]{background:var(--theme-raised);border-color:var(--theme-edge);color:var(--theme-ink)}
#account-form label,#feedback-form>label,#password-confirm-field label{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--theme-ink);margin:14px 0 6px}
:root :is(.account-dialog,.feedback-dialog) input,:root .feedback-dialog select,:root .feedback-dialog textarea{display:block;width:100%;padding:9px 10px;border:1px solid var(--theme-edge);border-radius:6px;background:var(--theme-raised);color:var(--theme-ink);font-size:13px}
.account-hint{font-size:11px;color:var(--theme-muted);line-height:1.8;margin:9px 0 0}
:root :is(.account-dialog,.feedback-dialog) .primary-action{width:100%;margin-top:20px;padding:10px;background:var(--theme-accent);border:1px solid var(--theme-accent);border-radius:6px;color:var(--theme-canvas)}
.form-message{font-size:12px;line-height:1.8;color:var(--theme-accent);margin:14px 0 0;overflow-wrap:anywhere}
.form-message:empty{display:none}
#account-signed-in{text-align:center;padding:8px 0 4px}
.account-avatar{width:54px;height:54px;margin:0 auto 14px;display:grid;place-items:center;border:1px solid var(--theme-edge);border-radius:50%;background:var(--theme-panel);color:var(--theme-accent);font:24px "SimSun",serif}
:root .account-dialog #account-name{font-size:19px;margin:0;color:var(--theme-ink);overflow-wrap:anywhere}
#account-logout{margin-top:18px;padding:8px 20px}
.feedback-intro{font-size:12px;color:var(--theme-muted);margin:0 0 18px}
.feedback-title-row{display:grid;grid-template-columns:85px 1fr;gap:12px}
.feedback-title-row label{flex-direction:column;align-items:stretch;font-size:12px;gap:6px;min-width:0}
.feedback-dialog #feedback-message{min-height:140px;resize:vertical;line-height:1.8}
.feedback-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;font-size:10px;color:var(--theme-muted)}
.feedback-meta>span:last-child{white-space:nowrap}
.optional{font-size:10px;color:var(--theme-muted)}
#feedback-history{margin-top:22px;border-top:1px solid var(--theme-edge);padding-top:12px;font-size:12px}
#feedback-history summary{cursor:pointer;color:var(--theme-accent)}
#feedback-history-list{color:var(--theme-muted);font-size:11px}
#feedback-history-list article{padding:12px 0;border-bottom:1px solid var(--theme-edge)}
#feedback-history-list strong{font-size:12px;font-weight:500;color:var(--theme-ink);display:block}
#feedback-history-list small{display:block;margin-top:3px;font-size:10px}
#feedback-history-list p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:7px 0 0}
@media(max-width:760px){.account-bar{position:sticky;top:0;width:100%;flex:none;border-left:0}.data-sidebar{padding-top:0}}
@media print{.account-bar,.account-dialog,.feedback-dialog,.shensha-dialog{display:none!important}}

/* Original Moira import: a review step before anything enters the library. */
:root dialog.import-dialog{width:min(730px,calc(100vw - 28px));max-height:calc(100dvh - 32px);border:1px solid var(--theme-edge);border-radius:12px;background:var(--theme-canvas);color:var(--theme-ink);overflow:hidden}
.import-dialog[open]{display:flex;flex-direction:column}
.import-dialog>.dialog-title,.import-dialog>.dialog-footer{flex:none}
.import-dialog>.dialog-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 26px;scrollbar-width:thin}
.import-drop{border:1px dashed var(--theme-edge);border-radius:9px;padding:23px 20px;text-align:center;background:var(--theme-panel);transition:border-color .15s,background .15s}
.import-drop.dragover{border-color:var(--theme-accent);background:var(--theme-selected)}
.has-preview .import-drop{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;text-align:left}.has-preview .import-drop .import-file-mark,.has-preview .import-drop p,.has-preview .import-drop small{display:none}.has-preview .import-drop h2{margin:0;font-size:13px}.has-preview .import-drop #import-pick{padding:6px 12px}
.import-file-mark{display:inline-grid;place-items:center;width:42px;height:48px;border:1px solid var(--theme-edge);border-radius:6px;background:var(--theme-raised);color:var(--theme-accent);font:11px Georgia,serif;letter-spacing:1.5px}
.import-drop h2{font-size:18px;font-weight:500;margin:12px 0 8px;letter-spacing:.5px}
.import-drop p{font-size:12px;line-height:1.9;color:var(--theme-muted);margin:0 0 16px}
.import-drop small{display:block;margin-top:11px;font-size:10px;color:var(--theme-muted)}
:root .import-dialog #import-pick,:root .import-dialog #import-confirm{padding:8px 18px;border-radius:6px;background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-canvas)}
.import-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px 0 12px;font-size:12px}
.import-preview-heading strong{font-weight:500}.import-preview-heading .check{font-size:11px}
.import-entries{display:grid;gap:9px}
.import-entry{display:flex;gap:11px;border:1px solid var(--theme-edge);border-radius:8px;padding:13px;background:var(--theme-raised)}
.import-entry>input{margin-top:9px}.import-entry-content{min-width:0;flex:1}
.import-entry-heading{display:flex;align-items:center;gap:12px}
:root .import-entry-heading input{min-width:0;width:100%;flex:1;font-size:13px;font-weight:500;padding:5px 7px;border:1px solid transparent;background:transparent;color:var(--theme-ink);border-radius:4px}
:root .import-entry-heading input:hover,:root .import-entry-heading input:focus{border-color:var(--theme-edge);background:var(--theme-canvas)}
.import-badge{flex:none;font-size:10px;letter-spacing:.3px;color:var(--theme-accent);border:1px solid var(--theme-edge);border-radius:4px;padding:3px 7px}
.import-entry p{font-size:11px;color:var(--theme-ink);line-height:1.8;margin:6px 7px;overflow-wrap:anywhere}
.import-entry small{display:block;color:var(--theme-muted);font-size:10px;line-height:1.8;margin:0 7px;overflow-wrap:anywhere}
.import-entry details{font-size:11px;margin:10px 7px 0;color:var(--theme-muted)}
.import-entry summary{cursor:pointer;color:var(--theme-accent)}
.import-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:12px;line-height:1.85;margin:10px 0 0;max-height:200px;overflow:auto;color:var(--theme-ink)}
.import-options{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:18px;font-size:11px}
.import-hint{font-size:10px;color:var(--theme-muted);line-height:1.9;margin:12px 0 0}
.import-errors{border-left:2px solid var(--theme-marker);padding:2px 12px;margin-top:16px;background:var(--theme-panel);color:var(--theme-marker);font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.import-dialog button:disabled{cursor:default}
@media(max-width:520px){.import-dialog>.dialog-content{padding:16px}.import-drop{padding:18px 12px}.import-entry{padding:10px;gap:5px}.import-entry-heading{gap:5px}.import-badge{font-size:9px;padding:3px 5px}.import-options{flex-direction:column;gap:10px}}
@media print{.import-dialog{display:none!important}}
.custom-theme-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:18px 0 4px;border-top:1px solid var(--theme-edge);margin-top:18px}
:root .custom-theme-actions button,:root .edit-actions [data-action=save-theme]{border-radius:5px;padding:7px 12px;background:var(--theme-raised);border-color:var(--theme-edge);color:var(--theme-accent)}
.custom-theme-actions>span{font-size:10px;color:var(--theme-muted);margin-left:auto;line-height:1.7}
.custom-theme-empty{padding:38px 10px;text-align:center;color:var(--theme-ink);font-size:14px;line-height:2.2}
.custom-theme-empty small{font-size:11px;color:var(--theme-muted)}
.theme-card[data-theme-choice^="custom-"] .theme-card-heading{min-width:0}
.theme-card[data-theme-choice^="custom-"] .theme-card-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.5px}
:root .theme-save-dialog{border-radius:10px;border-color:var(--theme-edge);background:var(--theme-canvas);color:var(--theme-ink)}
.theme-save-dialog .dialog-content{padding:22px 26px}.theme-save-dialog label{font-size:12px;margin-bottom:9px}
:root #theme-save-name{width:100%;padding:10px;border-radius:6px;background:var(--theme-raised);border-color:var(--theme-edge);color:var(--theme-ink)}
.edit-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:520px){.theme-gallery-controls{flex-wrap:wrap;gap:12px}.theme-segments{width:100%}.theme-segments button{flex:1}.custom-theme-actions>span{margin-left:0;flex-basis:100%}}
@media print{.theme-save-dialog{display:none!important}}
#profile-status{font-size:10px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}
.profile-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:18px 0 4px}.profile-actions button{font-size:11px;padding:7px 10px}
.site-brand{font:12px "SimSun","Songti SC",serif;letter-spacing:2px;color:var(--theme-accent);white-space:nowrap}
.profile-status{font-size:9px;color:var(--theme-muted);margin-right:6px}
.star-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.star-color{grid-template-columns:24px 1fr;font-size:12px;min-width:0}
.shensha-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.shensha-color{align-content:start;padding:12px 10px}
.shensha-color small{white-space:normal;text-align:left;letter-spacing:0;line-height:1.9;margin-top:4px;overflow-wrap:anywhere}
.shensha-name[data-shensha-color-group="岁煞"]{color:var(--shensha-岁煞)}
.shensha-name[data-shensha-color-group="马煞"]{color:var(--shensha-马煞)}
.shensha-name[data-shensha-color-group="禄煞"]{color:var(--shensha-禄煞)}
#edit-colors{scroll-margin-top:8px}
#degree-line-width-value{min-width:2.5em;text-align:right;font-variant-numeric:tabular-nums}
#degree-line-width-hint{grid-column:1/-1;margin:4px 0 0}
@media(max-width:620px){.shensha-colors{grid-template-columns:1fr}.star-colors{grid-template-columns:repeat(3,minmax(0,1fr))}}
.motion-state{display:inline-block;margin:0 .25em;font-weight:600}
.motion-state[data-motion="顺"]{color:var(--motion-顺)}
.motion-state[data-motion="留"]{color:var(--motion-留)}
.motion-state[data-motion="伏"]{color:var(--motion-伏)}
.motion-state[data-motion="逆"]{color:var(--motion-逆)}
.motion-state[data-motion="迟"]{color:var(--motion-迟)}
.motion-state[data-motion="速"]{color:var(--motion-速)}
.account-role{display:inline-block;color:var(--theme-accent);font-size:11px;margin-top:8px}
.account-role:empty{display:none}
.feedback-list-toolbar{display:flex;align-items:center;justify-content:space-between;margin:10px 0;color:var(--theme-muted)}
#feedback-more{width:100%;margin-top:14px;padding:9px}
.feedback-contact{color:var(--theme-accent)}
#feedback-history-list small{overflow-wrap:anywhere;line-height:1.8}
@media(max-width:520px){.star-colors{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 中国红：warm paper, seal-red accents and restrained antique gold. */
@media screen{
  :root.theme-cinnabar .account-bar{background:var(--theme-raised);box-shadow:inset 0 2px var(--theme-accent)}
  :root.theme-cinnabar .site-brand{font-weight:600;letter-spacing:3px}
  :root.theme-cinnabar :is(.viewtabs>[aria-selected=true],.datatabs [aria-selected=true]){background:var(--theme-accent);color:var(--theme-raised);border-color:var(--theme-accent);box-shadow:none}
  :root.theme-cinnabar .recent-card.current{background:var(--theme-raised);border-color:var(--theme-edge);box-shadow:inset 3px 0 var(--theme-accent)}
  :root.theme-cinnabar .masters{border-left:2px solid var(--theme-gold);padding-left:9px}
  :root.theme-cinnabar .data-heading{letter-spacing:1px}
  :root.theme-cinnabar .theme-gallery-header{background:var(--theme-raised);box-shadow:inset 0 3px var(--theme-accent)}
}
:root{--case-browser:208px}
.case-browser{position:fixed;inset:0 var(--sidebar) 0 auto;width:var(--case-browser);z-index:3;display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--theme-edge);background:var(--theme-panel);color:var(--theme-ink);font:12px/1.6 "Microsoft YaHei UI",sans-serif}
body.has-recent .case-browser{right:calc(var(--sidebar) + var(--recent))}
body.has-case-browser .workspace{right:calc(var(--sidebar) + var(--case-browser))}
body.has-case-browser.has-recent .workspace{right:calc(var(--sidebar) + var(--recent) + var(--case-browser))}
.case-browser-heading{display:flex;align-items:center;justify-content:space-between;min-height:43px;padding:7px 12px;border-bottom:1px solid var(--theme-edge);letter-spacing:1px}
.case-browser button{color:var(--theme-ink);border-color:var(--theme-edge);background:transparent;box-shadow:none}
.case-browser button:hover{background:var(--theme-hover)}
.case-browser-heading button{border:0;font-size:20px;padding:0 5px}
.case-query-wrap{display:flex;align-items:center;margin:12px 10px 8px;position:relative}
.case-browser #case-query{width:100%;min-width:0;border:1px solid var(--theme-edge);border-radius:5px;background:var(--theme-raised);color:var(--theme-ink);font:11px/1.5 "Microsoft YaHei UI",sans-serif;padding:8px}
.case-query-wrap kbd{display:none}
.case-browser-tabs{display:flex;margin:0 10px 8px;border-bottom:1px solid var(--theme-edge)}
.case-browser-tabs button{flex:1;border:0;border-radius:0;padding:5px}
.case-browser-tabs [aria-pressed=true]{color:var(--theme-accent);box-shadow:inset 0 -2px var(--theme-accent);font-weight:600}
.case-query-help{font-size:10px;color:var(--theme-muted);margin:0 12px 8px;line-height:1.65}
.case-result-status{display:flex;align-items:center;gap:3px;margin:0 12px 8px;font-size:10px;color:var(--theme-muted)}
.case-result-status button{padding:1px 4px;flex:none}
.case-results{min-height:0;overflow:auto;flex:1;padding:0 8px 12px;scrollbar-width:thin;scrollbar-color:var(--theme-edge) transparent}
.case-browser .case-tag-row{display:flex;align-items:center;gap:9px;width:100%;border:0;border-radius:4px;text-align:left;padding:10px 7px;font-size:13px}
.case-tag-row>span:nth-child(2){overflow-wrap:anywhere;flex:1}
.case-tag-row small{color:var(--theme-muted);font-size:11px;font-variant-numeric:tabular-nums}
.tag-glyph{width:13px;height:13px;border:1.3px solid currentColor;border-radius:2px 5px 2px 2px;transform:rotate(-45deg);flex:none;position:relative;opacity:.7}
.tag-glyph:after{content:'';position:absolute;width:2px;height:2px;border:1px solid currentColor;border-radius:50%;top:1px;right:1px}
.case-browser .case-result-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;text-align:left;background:var(--theme-raised);border:1px solid var(--theme-edge);border-radius:5px;padding:10px;margin-bottom:7px;overflow-wrap:anywhere}
.case-browser .case-result-card:hover{border-color:var(--theme-accent)}
.case-result-card.current{box-shadow:inset 3px 0 var(--theme-accent)}
.case-result-card strong{font-weight:600;font-size:13px}.case-result-card small{font-size:10px;color:var(--theme-muted)}
.case-result-life{color:var(--theme-gold);font:12px/1.6 "SimSun",serif}.case-result-tags{font-size:10px;color:var(--theme-birth);line-height:1.8}
.case-filter{display:flex;align-items:center;gap:6px;margin:0 12px 8px;padding:3px 7px;border:1px solid var(--theme-edge);border-radius:4px;background:var(--theme-selected);overflow-wrap:anywhere}
.case-filter span{flex:1}.case-filter button{border:0;padding:0 2px}
.case-empty{padding:15px 8px;color:var(--theme-muted);line-height:1.9}.case-browser>#case-more{margin:0 10px 10px}
.case-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px;min-height:26px}
.case-tag-chip{display:inline-flex;align-items:stretch;max-width:100%;border:1px solid var(--theme-edge);border-radius:4px;background:var(--theme-selected);overflow:hidden}
.case-tag-chip button{border:0;border-radius:0;background:transparent!important;color:var(--theme-ink)!important;padding:4px 7px;font-size:12px;overflow-wrap:anywhere;white-space:normal}
.case-tag-chip button:last-child{color:var(--theme-muted)!important;padding:4px 6px;border-left:1px solid var(--theme-edge)}
.tag-add-row{display:flex;gap:6px}.tag-add-row input{width:0;flex:1;min-width:0;font-size:12px}.tag-add-row button{flex:none}
.tag-help,.tag-empty{font-size:11px;color:var(--theme-muted);line-height:1.8}.tag-help{margin:8px 0 20px}
#note-data .tag-browse{font-size:10px;background:transparent;border:0;color:var(--theme-accent);padding:2px 0}
.recent-find{margin:6px 5px 0;border:1px solid var(--theme-edge)!important;border-radius:4px;background:var(--theme-raised)!important;color:var(--theme-accent)!important;font-size:22px;line-height:22px;padding:1px}
@media(max-width:1050px) and (min-width:761px){:root{--case-browser:180px}}
@media(max-width:760px){.case-browser,body.has-recent .case-browser{position:relative;inset:auto;width:100%;max-height:380px;flex:none;border-left:0;border-top:1px solid var(--theme-edge)}body.has-case-browser .workspace,body.has-case-browser.has-recent .workspace{right:auto}.case-browser-heading{min-height:32px}.case-results{max-height:220px;min-height:60px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:5px}.case-result-card{margin:0!important}.case-empty{grid-column:1/-1}.case-query-wrap{margin-top:8px}.case-query-help{margin-bottom:5px}.recent-find{width:32px;flex:none;margin:6px 0}}
@media print{.case-browser{display:none!important}body.has-case-browser .workspace,body.has-case-browser.has-recent .workspace{right:auto}}
.ai-settings-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ai-settings-entry p{margin:0;flex:1;color:var(--theme-muted);font-size:12px}.ai-settings-entry button{color:var(--theme-accent)}
.ai-dialog{width:min(600px,calc(100vw - 28px));max-height:90dvh}.ai-dialog .dialog-content{padding:20px 24px;overflow:auto;max-height:calc(90dvh - 114px)}
.ai-dialog form>.dialog-content>label:not(.check){display:flex;justify-content:space-between;margin:14px 0 7px;font-size:12px;color:var(--theme-ink)}
.ai-dialog #ai-key-state{font-size:10px;color:var(--theme-birth)}.ai-dialog input:not([type=checkbox]),.ai-dialog textarea{width:100%;padding:9px 10px;border-radius:4px;font-size:13px;resize:vertical}
.ai-model-row{display:flex;gap:7px}.ai-model-row input{flex:1;min-width:0}.ai-model-row button{flex:none;font-size:11px}.ai-auto-check{margin-top:18px}.ai-dialog .dialog-footer{flex-wrap:wrap;gap:7px}.ai-dialog #ai-clear{margin-right:auto;color:var(--theme-muted)}
.import-ai{border:1px solid var(--theme-edge);border-radius:6px;padding:13px 15px;margin:14px 0;background:var(--theme-panel)}
.import-ai-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.import-ai-heading strong{font-size:13px;color:var(--theme-accent)}.import-ai-heading button{border:0;background:transparent;font-size:11px;color:var(--theme-accent);padding:0}
.import-ai .check{font-size:12px}.import-ai .account-hint{overflow-wrap:anywhere;font-size:11px;margin:8px 0}.import-ai-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.import-ai-actions button{font-size:11px}.import-ai-actions span{font-size:11px;color:var(--theme-muted);overflow-wrap:anywhere;flex:1;min-width:120px}
.import-tags{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.import-tags .case-tag-chip>span{font-size:11px;color:var(--theme-ink);padding:3px 6px;overflow-wrap:anywhere}.import-tags small{font:8px sans-serif;margin-left:5px;color:var(--theme-accent);border:1px solid var(--theme-edge);border-radius:2px;padding:1px 2px}
.import-entry .import-tag-input{width:min(220px,100%);font-size:11px;padding:4px 7px}.import-entry .import-ai-result{font-size:10px;color:var(--theme-birth);margin:6px 0 0}.import-entry .import-ai-result.error-message{color:var(--theme-marker)}
@media(max-width:520px){.ai-dialog .dialog-content{padding:16px}.ai-model-row{flex-wrap:wrap}.ai-model-row button{width:100%}.import-ai{padding:11px}}
@media print{.ai-dialog{display:none!important}}
.wheel .annual-jump{fill:var(--theme-accent);fill-opacity:0;stroke:none;pointer-events:all;cursor:pointer}
.wheel .annual-jump.current-year{fill-opacity:.13}
.wheel .annual-jump:hover,.wheel .annual-jump:focus-visible{fill-opacity:.3;stroke:var(--theme-accent);stroke-width:1;outline:none}
@media print{#annual-navigation{display:none!important}}

/* Quick birth entry: candidates stay in the sidebar flow, usable on narrow screens. */
.birth-quick-entry{min-width:0;margin:7px 0}
.birth-body:has(.birth-quick-panel:not([hidden])){max-height:70vh;overflow-y:auto}
.birth-quick-row{display:flex;align-items:center;gap:7px}
.birth-quick-row>span{flex:none;width:4em}
:root .birth-quick-row #birth-quick{flex:1;min-width:0;width:0;min-height:32px;padding:5px 7px}
:root .birth-quick-row #birth-quick:focus{outline-color:var(--theme-accent,#b8a6da)}
.birth-quick-panel{border-top:1px solid var(--theme-edge,#444);padding:10px;background:var(--theme-panel,#1e2230);color:var(--theme-ink,#eee);font:12px/1.6 "Microsoft YaHei",sans-serif}
.birth-quick-heading{display:flex;align-items:center;justify-content:space-between;color:var(--theme-accent,#b8a6da);font-size:13px;letter-spacing:.08em}
:root #birth-quick-close{width:26px;height:26px;padding:0;border:0;background:transparent;color:var(--theme-muted,#aaa);font:20px/1 sans-serif}
.birth-quick-panel p{margin:6px 0;color:var(--theme-muted,#aaa);overflow-wrap:anywhere}
.birth-search-years{display:flex;gap:6px;align-items:end;margin:10px 0}
.birth-search-years label{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
:root .birth-search-years input{width:100%;min-width:0;height:30px;padding:4px 7px;font:13px/1.4 sans-serif}
:root #birth-quick-search{padding:4px 10px;min-height:30px;color:var(--theme-accent,#b8a6da);border:1px solid var(--theme-edge,#444);background:var(--theme-raised,#242838)}
#birth-candidates{display:grid;gap:5px;max-height:250px;overflow:auto;scrollbar-width:thin}
:root #birth-candidates>button{width:100%;min-width:0;text-align:left;display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid var(--theme-edge,#444);border-radius:5px;background:var(--theme-raised,#242838);color:var(--theme-ink,#eee);cursor:pointer;white-space:normal;overflow-wrap:anywhere}
#birth-candidates strong{font:14px/1.5 "Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums}
#birth-candidates span{font:11px/1.5 "Microsoft YaHei",sans-serif;color:var(--theme-muted,#aaa)}
:root #birth-candidates>button:is(:hover,[aria-selected=true]){border-color:var(--theme-accent,#b8a6da);background:var(--theme-hover,#30354a)}
.birth-quick-panel[hidden],.birth-search-years[hidden]{display:none}

/* Administrator-only casebook and completed feedback controls. */
.minguan-pane{flex:1;min-width:0;min-height:0;width:100%;height:100%;background:var(--theme-canvas)}
#minguan-frame{display:block;width:100%;height:100%;border:0}
#minguan-pane[hidden],#plot-pane[hidden],#minguan-tab[hidden],#case-minguan-return[hidden],.case-browser-tabs[hidden]{display:none!important}
.minguan-available .data-sidebar .viewbar{padding-right:7px;gap:0;flex-wrap:nowrap}
.minguan-available .data-sidebar .viewtabs>[role=tab]{min-width:44px;padding-left:8px;padding-right:8px}
.minguan-available .menubar{padding-left:0;padding-right:0;min-width:0}
.minguan-available .menubar .menu>button{padding-left:7px;padding-right:7px}
#case-minguan-return{margin:6px 10px 0;text-align:left;background:transparent;color:var(--theme-accent);border:0;font-size:11px}
:root .feedback-dialog .feedback-complete{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid var(--theme-edge);font-size:12px;color:var(--theme-accent);cursor:pointer}
:root .feedback-dialog .feedback-complete input{display:inline-block;width:15px;height:15px;flex:0 0 15px;margin:0;padding:0;accent-color:var(--theme-accent)}
:root .feedback-dialog .feedback-complete span{min-width:0;line-height:1.7}
@media(max-width:760px){.minguan-pane{height:75vh;min-height:520px;flex:none}.minguan-available .data-sidebar .viewbar{flex-wrap:wrap}}
.datatabs{flex-wrap:wrap}.datatabs button{padding-left:9px;padding-right:9px}
#note-data #note{min-height:8em}
#case-note-records{margin-top:1rem}
.case-note-heading{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.case-note-heading small,.case-note-help,.case-note-list small{font:11px/1.7 "Microsoft YaHei",sans-serif;color:var(--theme-muted)}
.case-note-editor{display:flex;flex-direction:column;gap:9px}.case-note-editor input,.case-note-editor textarea,.case-note-editor select{width:100%;box-sizing:border-box;background:var(--theme-raised);border:1px solid var(--theme-edge);color:var(--theme-ink);padding:8px;font:12px/1.7 "Microsoft YaHei",sans-serif;border-radius:4px}.case-note-editor textarea{min-height:170px;resize:vertical}.case-note-editor label{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:12px}.case-note-editor select{flex:1;min-width:0}.case-note-tools{display:flex;gap:7px;flex-wrap:wrap}.case-note-tools button,.case-note-listbar button,.case-note-item-heading button,.case-note-list+button{border:1px solid var(--theme-edge);background:var(--theme-raised);color:var(--theme-ink);padding:6px 9px;border-radius:4px;font-size:12px}.case-note-tools .case-note-save{background:var(--theme-selected);color:var(--theme-accent)}.case-note-status{font-size:12px;line-height:1.8;margin:0;color:var(--theme-accent)}.case-note-status:empty{display:none}.case-note-listbar,.case-note-item-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.case-note-listbar{margin-top:20px;font-size:12px}.case-note-list article{padding:16px 0;border-bottom:1px solid var(--theme-edge)}.case-note-list article p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-family:"SimSun",serif}.case-note-item-heading strong{font-size:13px;overflow-wrap:anywhere}.case-note-empty{font-size:12px;color:var(--theme-muted)}
.minguan-theme-options{padding:12px 0 0;border-top:1px solid var(--theme-edge);margin-top:10px}.minguan-theme-options .check{display:flex;align-items:center;gap:8px}.minguan-theme-options .account-hint{margin:8px 0 12px}.minguan-theme-options .range-label{display:flex;align-items:center;gap:10px}.minguan-theme-options input[type=range]{min-width:60px;flex:1}.minguan-theme-options output{min-width:42px;text-align:right;font-variant-numeric:tabular-nums}.minguan-theme-options .text-button{margin-top:8px;padding:4px 8px;background:transparent;color:var(--theme-ink);border:1px solid var(--theme-edge);border-radius:3px;font-size:12px}.gallery-book-options{margin:0 0 20px;padding:14px 16px;border:1px solid var(--theme-edge);border-radius:6px}.gallery-book-options p{font-size:12px;opacity:.75;margin:7px 0 0}
.display-options>.minguan-theme-options{grid-column:1/-1;width:100%}

body.minguan-reference-view #control-pane>:not(#minguan-preview){display:none!important}#minguan-preview{padding:12px;min-width:0;overflow:auto}#minguan-preview h3{font-size:16px;overflow-wrap:anywhere}#minguan-preview-image{display:block;width:100%;height:auto;background:var(--canvas,#fff)}#minguan-preview-image[hidden]{display:none}#minguan-preview-time{font-variant-numeric:tabular-nums}#minguan-preview-basis{white-space:pre-wrap;overflow-wrap:anywhere}#minguan-preview-summary{white-space:pre-wrap;font-size:13px;line-height:1.8}

/* Window-centred unified search: narrow candidates ABOVE a wider input, not a chart-side panel. */
#unified-search-dialog{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 32px));height:fit-content;max-width:none;max-height:calc(100dvh - 32px);padding:22px 26px;overflow:auto;border:1px solid var(--theme-edge);border-radius:16px;background:var(--theme-panel);color:var(--theme-ink);box-shadow:0 20px 80px #0006}
#unified-search-dialog::backdrop{background:color-mix(in srgb,var(--theme-canvas) 60%,transparent);backdrop-filter:blur(5px)}
#unified-search-dialog button,#unified-search-dialog input{color:var(--theme-ink);border-color:var(--theme-edge);background:var(--theme-raised)}
#unified-search-dialog button:hover{background:var(--theme-hover);border-color:var(--theme-accent)}
#unified-search-dialog :focus-visible{outline-color:var(--theme-accent)}
#unified-search-dialog input::placeholder{color:var(--theme-muted)}
#unified-search-dialog input[type=checkbox]{accent-color:var(--theme-accent)}
.unified-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.unified-heading h2{margin:0;font-size:17px;font-weight:600}.unified-heading button{border:0!important;background:none!important;min-height:32px;font-size:18px}.unified-heading kbd{font-size:11px;color:var(--theme-muted)}
#unified-search-guide{margin:0 0 12px;font-size:13px;line-height:1.6}#unified-search-guide summary{width:fit-content;cursor:pointer}#unified-search-guide ul{margin:6px 0 0;padding-inline-start:1.5em}#unified-search-guide code{font:inherit;font-weight:600}
#unified-help{margin:8px 0 4px;font-size:12px;line-height:1.6;color:var(--theme-muted)}
.unified-candidates{width:76%;margin:0 auto 18px;min-height:86px;max-height:46dvh;overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--theme-edge) transparent}
#unified-results{display:flex;flex-direction:column;gap:9px}.unified-result{text-align:left;white-space:normal;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:4px;padding:12px 15px;border-radius:9px;min-height:72px;flex:none;width:100%}.unified-result strong{font-size:14px}.unified-result-detail,.unified-result small{font-size:12px;color:var(--theme-muted)}
#unified-search-dialog .unified-result[aria-selected=true]{background:var(--theme-selected);border-color:var(--theme-accent);box-shadow:inset 3px 0 var(--theme-accent)}
.unified-empty{font-size:13px;line-height:1.8;text-align:center;padding:20px 8px;color:var(--theme-muted)}
#unified-completions{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0;max-height:min(160px,22dvh);overflow-y:auto;overscroll-behavior:contain}
#unified-completions button{white-space:normal;text-align:left;font-size:13px}
#unified-completions button[aria-selected=true]{border-color:var(--theme-accent);background:var(--theme-selected)}
.unified-input-area{width:100%}#unified-query{display:block;width:100%;min-height:57px;border-radius:11px;padding:14px 17px;font-size:16px;border:1px solid var(--theme-accent)}
.unified-options{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:12px;font-size:12px}.unified-options>label{flex-wrap:wrap;line-height:1.5}.unified-options kbd{border:1px solid var(--theme-edge);padding:1px 4px;border-radius:3px;color:var(--theme-muted)}
#unified-shortcut-settings{max-width:48%;text-align:right}#unified-shortcut-settings summary{cursor:pointer;color:var(--theme-accent)}#unified-shortcut-settings[open]{text-align:left}#unified-shortcut-settings label{display:inline-flex;margin:8px 6px 6px 0}#unified-shortcut{width:126px;max-width:100%;text-align:center}#unified-shortcut-settings button{margin:2px;padding:4px 6px}#unified-shortcut-status{margin:6px 0;color:var(--theme-muted);line-height:1.5}
#unified-status{margin:13px 0 5px;font-size:12px;line-height:1.7;color:var(--theme-muted);overflow-wrap:anywhere}.unified-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--theme-muted)}.unified-actions button{font-size:12px;min-height:30px}#unified-more{display:block;margin:10px auto 0}#unified-search-dialog [hidden]{display:none!important}
@media(max-width:600px){#unified-search-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:16px 12px;border-radius:12px}.unified-candidates{width:90%;max-height:38dvh;margin-bottom:14px}.unified-result{padding:10px 12px}#unified-query{font-size:16px;padding:12px;min-height:53px}.unified-options{gap:8px}#unified-shortcut-settings{max-width:44%}#unified-help{font-size:11px}.unified-actions span{line-height:1.6}}
@media(max-height:600px){#unified-search-dialog{padding-top:12px;padding-bottom:12px}.unified-candidates{max-height:28dvh;min-height:64px}#unified-help{margin-bottom:8px}}

/* 米纸：普通文字用浓墨，语义颜色和用户自定义颜色继续由各自规则控制。 */
:root.theme-paper:not(.night) :is(.eight-char,.masters,.data-heading,.data-heading>span,.planet-table th,.planet-table td,.planet-table td:first-child,.planet-table td:last-child,.year-info,.shensha>summary,.palace-shensha,.view-status,.recent-item,.recent-item small,.data-panel pre,.birth-field,.now-field,.xm-field,.account-hint,.library-description,.case-search-hint){color:#090805}
:root.theme-paper:not(.night) :is(.planet-table,.year-info,.eight-char,.masters,.data-panel pre){font-weight:600}
:root.theme-paper:not(.night) .shensha-grid .empty{opacity:1;color:#29251E}

/* Original paper remains a separate, independently selectable template. */
:root.theme-paperclassic{--day-bg:#EDE5D3;--day-canvas:#F3ECDC;--day-panel:#EFE7D6;--day-input:#FAF6EC;--day-bar:#E7DEC9;--day-bar2:#ECE4D2;--day-tab:#E6DDC8;--day-card:#FAF6EC;--day-head:#E8DFC9;--day-foot:#F0E9DA;--day-ink:#2E2921;--day-edge:#CDBF9F}
@media screen {
  :root.theme-paperclassic .workspace::after,:root.theme-paperclassic .data-sidebar::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:4;mix-blend-mode:multiply;opacity:.55;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .33 .5 0 0 0 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .06' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .5 0 0 0 0 .32 .35 0 0 0 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E")}
  :root.theme-paperclassic .data-sidebar::after{z-index:1}
}
:root.theme-paper:not(.night) :is(button,input,select,textarea,label,summary,.profile-status,.account-hint,.theme-card-description,.setting-description,.settings-help,.view-status,.birth-field,.now-field,.xm-field){color:#17130E}
:root.theme-paper:not(.night) .wheel svg text{font-weight:600}

/* Keep the previous chart readable while the requested date is calculated. */
.chart-progress{display:none;position:absolute;left:14px;top:14px;z-index:12;max-width:calc(100% - 28px);padding:8px 12px;border:1px solid var(--theme-edge);border-radius:6px;background:var(--theme-canvas);color:var(--theme-ink);font:13px/1.5 system-ui,sans-serif;box-shadow:0 2px 10px #0002;pointer-events:none}
.busy .chart-progress{display:block}

/* Desktop surfaces have softer corners; chart geometry and exported art stay exact. */
@media screen {
  :root body.desktop-app button{border-radius:8px}
  :root body.desktop-app :is(input:not([type=checkbox]):not([type=range]):not([type=color]),select,textarea){border-radius:8px}
  :root body.desktop-app :is(.birth-field,.now-field,.recent-card,.import-drop){border-radius:12px}
  :root body.desktop-app .birth-summary{border-radius:11px}
  :root body.desktop-app .birth-field.expanded .birth-summary{border-radius:11px 11px 0 0}
  :root body.desktop-app .birth-body{border-radius:0 0 12px 12px}
  :root body.desktop-app :is(.viewtabs>[role=tab],.viewbar .menu>button,.datatabs button){border-radius:10px 10px 0 0}
  :root body.desktop-app .data-body{border-radius:0 12px 12px 12px}
  :root body.desktop-app :is(.menu-dropdown,.dt-picker,.color-pop,.star-tip){border-radius:14px;box-shadow:0 10px 30px #0003}
  :root body.desktop-app .menu-dropdown{padding:6px}
  :root body.desktop-app .menu-dropdown button{border-radius:8px}
  :root body.desktop-app dialog{border-radius:18px;overflow:hidden;box-shadow:0 18px 60px #0005}
  :root body.desktop-app .dialog-title{border-radius:17px 17px 0 0}
  :root body.desktop-app .dialog-footer{border-radius:0 0 17px 17px}
  :root body.desktop-app :is(.toast,.chart-progress){border-radius:12px}
}

/* Protected source gallery uses full viewport, including short mobile reader panes. */
body.minguan-source-image-open{overflow:hidden!important}
body.minguan-source-image-open #minguan-pane{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-height:none!important;z-index:2147483000!important;display:block!important}
body.minguan-source-image-open #minguan-frame{width:100%!important;height:100%!important}

body.minguan-source-image-open #workspace{z-index:2147482999!important}

.site-brand{display:inline-flex;align-items:center;gap:8px}.site-brand img{object-fit:contain}

/* Compact list switch follows the existing recent-card palette. */
.recent-title.recent-tabs{display:flex;justify-content:center;gap:1px;padding:6px 1px;writing-mode:horizontal-tb}
.recent-tabs button{border:0;background:transparent;color:inherit;font:inherit;padding:3px 2px;border-radius:4px;cursor:pointer}
.recent-tabs button[aria-pressed=true]{color:var(--theme-accent,var(--night-blue,#286b2e));background:color-mix(in srgb,currentColor 10%,transparent)}
.minguan-chart-notice{margin:5px 10px;font-size:12px;line-height:1.6;color:var(--theme-accent,#995c24)}
#control-pane.minguan-chart-unavailable :is(#chart-form>fieldset,#birth-data,#now-data){display:none!important}

.birth-summary-row{display:flex;align-items:center;gap:4px;padding:3px 6px}
:root .birth-summary-row .birth-summary{flex:1;min-width:0;padding:0 4px;font-size:var(--date-font,17px)}
.birth-summary-row #birth-summary{white-space:nowrap}.birth-summary-row .now-step{flex:none;width:27px;height:30px;padding:0}
.birth-summary-row select{width:56px;flex:none;height:30px;padding:0 3px}
.birth-field.expanded .birth-summary::after{transform:translateY(2px) rotate(-135deg)}

/* Both date rows share identical grid tracks. */
:root .birth-summary-row,:root .now-row{display:grid;grid-template-columns:54px 28px minmax(0,1fr) 28px 64px 44px;gap:4px;align-items:center}
:root .birth-summary-row{padding:6px}
:root .now-field{padding:6px}
:root .birth-summary-row .now-step,:root .now-row>.now-step{width:28px;height:32px;padding:0}
:root .birth-summary-row select,:root .now-row>select{width:64px;min-width:0;height:32px;padding:0 3px}
:root .birth-summary-row .birth-summary,:root .now-row>.dt-field{width:100%;min-width:0;height:38px}
:root .now-row>button[data-action=now]{width:44px;padding:0;height:32px}
:root .now-row>.check{margin:0;gap:2px;white-space:nowrap}
:root .birth-row-label{font:inherit;text-align:right;padding-right:5px}
@media(max-width:1050px){:root .birth-summary-row,:root .now-row{grid-template-columns:45px 22px minmax(0,1fr) 22px 50px 36px;gap:3px}:root .birth-summary-row .now-step,:root .now-row>.now-step{width:22px}:root .birth-summary-row select,:root .now-row>select{width:50px}:root .now-row>button[data-action=now]{width:36px}}

/* Compact date rows: one grid for 生年 and 流年, the date gets the spare width. */
:root .birth-summary-row,:root .now-row{grid-template-columns:44px 24px minmax(0,1fr) 24px 50px 38px;gap:3px}
:root .birth-summary-row{padding:5px 6px}
:root .now-field{padding:5px 6px}
:root .birth-row-label{grid-column:1;text-align:left;padding:0 0 0 18px;white-space:nowrap}
:root .now-row>.check{gap:4px}
:root .now-row>.check input{margin:0}
:root .birth-summary-row .now-step,:root .now-row>.now-step{width:24px;height:30px;padding:0;font-size:17px;line-height:1}
:root .birth-summary-row select,:root .now-row>select{width:50px;height:30px;padding:0 1px 0 4px;font-size:13px}
:root .now-row>button[data-action=now]{width:38px;height:30px;padding:0;font-size:13px}
:root .birth-summary-row .birth-summary,:root .now-row>.dt-field{height:30px}
/* Same box for both dates; the expand mark keeps its own space instead of covering digits. */
:root .birth-summary-row .birth-summary,:root .now-field .dt-field input{border:1px solid var(--theme-edge,#b8bbaf);border-radius:4px}
/* The birth date box uses the same fill as the 流年 input (day / night input colours). */
:root .birth-summary-row .birth-summary{background:var(--day-input,#fff)}:root.night .birth-summary-row .birth-summary{background:var(--night-canvas)}
:root .birth-summary-row .birth-summary{gap:4px;padding:0 6px;justify-content:center}
:root .birth-summary-row .birth-summary::after{flex:none;margin-left:0;width:5px;height:5px}
:root .birth-summary-row #birth-summary{overflow:hidden;text-overflow:clip}
:root .now-field .dt-field input{flex:1;width:100%;height:30px;padding:0 4px;text-align:center}
:root body.desktop-app .birth-summary-row .birth-summary{border-radius:4px}
@media(max-width:1050px){:root .birth-summary-row,:root .now-row{grid-template-columns:40px 20px minmax(0,1fr) 20px 50px 34px;gap:2px}:root .birth-row-label{padding-left:17px}:root .birth-summary-row .now-step,:root .now-row>.now-step{width:20px}:root .birth-summary-row select,:root .now-row>select{width:50px;font-size:12px}:root .now-row>button[data-action=now]{width:34px;font-size:12px}}

/* Settings notes: 紫炁 applies only under 赤道星距. */
.xm-note{margin:-2px 0 6px;font-size:11px;line-height:1.5;color:var(--theme-muted,#6d7765);white-space:normal}
.xm-field.xm-inactive select{opacity:.55}

/* 天官八法: shared by the website and desktop app. */
.datatabs{overflow-x:auto;scrollbar-width:thin}.datatabs button{flex-shrink:0}
#tianguan-data{line-height:1.7}#tianguan-kind{max-width:145px;font-size:12px}.tg-summary{font-weight:600}.tg-table{width:100%;border-collapse:collapse;font-size:12px}.tg-table th,.tg-table td{padding:6px 3px;text-align:left;border-bottom:1px solid currentColor;vertical-align:top}.tg-table td:last-child{min-width:64px}.tg-method{margin-top:10px}.tg-method summary{cursor:pointer}.tg-method p{margin:6px 0}.tg-note{font-size:11px;opacity:.8}


/* Compact birth/transit columns, shared by the website and desktop renderer. */
.huayao-card{container-type:inline-size;margin:8px 0;padding:4px;border-radius:12px;background:var(--theme-raised,#fff);color:var(--theme-ink,#252830);font-family:system-ui,"Microsoft YaHei",sans-serif}
.huayao-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 5px;font-size:14px;line-height:26px;color:var(--theme-muted,#727988)}
.huayao-toggle{display:flex;flex:none;padding:2px;border-radius:9px;background:color-mix(in srgb,var(--theme-ink) 7%,var(--theme-raised))}
.huayao-toggle button{padding:3px 8px;border:0;border-radius:7px;background:transparent;color:var(--theme-muted);font:600 12px/20px system-ui,"Microsoft YaHei",sans-serif;white-space:nowrap;cursor:pointer}
.huayao-toggle button[aria-pressed=true]{background:#293449;color:#fff!important;box-shadow:0 1px 4px #0002}
.huayao-toggle button:focus-visible{outline:2px solid #3478ff;outline-offset:2px}
.huayao-period+.huayao-period{margin-top:8px}
.huayao-columns{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:1px}
.huayao-column{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:2px 0 5px;border-radius:5px;background:color-mix(in srgb,var(--theme-ink) 4%,var(--theme-raised))}
.huayao-star{font-size:clamp(12px,3.2cqw,16px);line-height:1.4;white-space:nowrap}
.huayao-chip{display:block;max-width:100%;padding:0 1px;border:1px solid color-mix(in srgb,var(--theme-ink) 10%,transparent);border-radius:3px;background:var(--theme-raised,#fff);font-size:12px;font-weight:400;line-height:1.35;white-space:nowrap;color:var(--theme-ink,#252830)}
.huayao-period.transit .huayao-star{color:#3478ff}
.huayao-period.transit .huayao-chip{border-color:color-mix(in srgb,#3478ff 25%,transparent);background:color-mix(in srgb,#3478ff 5%,var(--theme-raised))}
.huayao-empty,.huayao-hint{color:var(--theme-muted);font-size:12px}.huayao-hint{margin:8px 2px 3px}
.huayao-columns.by-yao{grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:3px}
.huayao-columns.by-yao .huayao-star{font-size:12px}

/* Keep degree columns content-sized, with half a character before the next column. */
.planet-table :is(th,td):is(:nth-child(2),:nth-child(3)){width:1%;padding-left:0;padding-right:.5em}
.planet-table :is(th,td):last-child{padding-left:0}
/* Add one character between mansion and palace degrees in both tables. */
.planet-table :is(th,td):nth-child(2){padding-right:1.5em}

/* Hide the birth heading and keep the two date rows compact. */
#birth-data>.data-heading{display:none}
:root #chart-form>.birth-field,:root #chart-form>.now-field{margin-bottom:3px}
:root #chart-form>.birth-field{padding:0}
:root .birth-summary-row,:root #chart-form>.now-field{padding:2px 6px}
:root .birth-summary-row .birth-summary,:root .birth-summary-row .now-step,:root .birth-summary-row select,
:root .now-row>.dt-field,:root .now-field .dt-field input,:root .now-row>.now-step,
:root .now-row>select,:root .now-row>button[data-action=now]{height:28px}

.birth-step-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:1px 6px 5px}
.birth-step-unit{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-width:0;align-items:stretch;border:1px solid var(--theme-edge,#b8bbaf);border-radius:6px;background:var(--theme-raised,#fff);color:var(--theme-ink,#25291f)}
.birth-step-unit:has([aria-pressed=true]){border-color:var(--theme-ink,#25291f);background:var(--theme-ink,#25291f);color:var(--theme-canvas,#fff)}
:root .birth-step-bar .birth-step-unit>button{height:26px;min-width:0;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;box-shadow:none;font:inherit;font-size:14px;line-height:1;white-space:nowrap;touch-action:manipulation}
:is(#birth-field,#mobile-app) .birth-step-unit>button{color:inherit}
:root .birth-step-bar .birth-step-unit>button[aria-pressed]{font-size:12px;font-weight:600}
:root .birth-step-bar .birth-step-unit>button:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
@media(hover:hover){:root .birth-step-bar .birth-step-unit>button:hover{background:color-mix(in srgb,currentColor 12%,transparent)}}
:root .birth-step-bar .birth-step-unit>button:active{background:color-mix(in srgb,currentColor 22%,transparent)}

#planet-mode-toggle{margin-left:.45em;padding:1px 5px;min-height:22px;font:inherit;font-size:12px;line-height:1.5;vertical-align:middle;white-space:nowrap;cursor:pointer}
/* 星曜表「全显示」：八法、庙旺叠成两行，不加宽这一列；表头放不下时按钮换行，不出横向滚动条。 */
#planet-mode-all{margin-left:.3em;padding:1px 5px;min-height:22px;font:inherit;font-size:12px;line-height:1.5;vertical-align:middle;white-space:nowrap;cursor:pointer}
#planet-mode-label.status-all~#planet-mode-all{margin-left:.55em}
#planet-mode-all[aria-pressed=true]{font-weight:600;border-color:var(--theme-accent,#3c783c);background:color-mix(in srgb,var(--theme-accent,#3c783c) 20%,transparent);box-shadow:inset 0 1px 2px #0002}
#birth-data .planet-table th:last-child{white-space:normal}
#planet-mode-label.status-all{display:inline-block;white-space:pre-line;line-height:1.25;vertical-align:middle}
.status-stack{display:inline-grid;grid-template-columns:auto auto;align-items:center;justify-content:start;line-height:1.3;vertical-align:middle;white-space:nowrap}
.status-stack>.motion-state{grid-row:1/3}
.status-stack>.status-dignity{grid-column:2}
.planet-table.status-all td{vertical-align:middle}
@media(max-width:1050px){#planet-mode-toggle,#planet-mode-all{padding:1px 4px;min-height:20px;font-size:11px}#planet-mode-toggle{margin-left:.3em}#planet-mode-all{margin-left:.2em}}

.account-download-link{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding:10px 12px;border:1px solid var(--line,#c8c2b5);border-radius:6px;color:inherit;text-decoration:none}.account-download-link:hover{background:var(--panel,#eee)}.account-download-link small{opacity:.7}

/* ===== Claude 系列质感：文墨 · 霁雪 · 赭石 · 余烬 · 沧溟 =====
   Palettes stay in app.js THEMES; this layer adds each theme's material (生宣, 甜白釉,
   麻纸, 炭纸, 潮光), serif or 楷书 headings and one signature accent. Textures live in
   pointer-transparent overlays, so print, export and chart geometry stay untouched.
   靛月 Claude is deliberately left as it is. */
/* claude-textures:start — generated by tools/build-claude-theme-textures.cjs, do not edit by hand */
:root{--tx-wm-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.361 0 0 0 0 0.298 0 0 0 0 0.212 0.550 0 0 0 -0.310'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-wm-fibre:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M73.2 201.9C74.4 212 85.5 216.2 87.5 226.2' stroke='%235c4c34' stroke-opacity='0.034' stroke-width='0.6'/%3E%3Cpath d='M302.7 115.9C301.2 127.9 300.1 139.9 305.9 151.6' stroke='%235c4c34' stroke-opacity='0.042' stroke-width='0.5'/%3E%3Cpath d='M254.6 211.4C236.8 201 213.7 197.2 206.8 172.5' stroke='%235c4c34' stroke-opacity='0.056' stroke-width='0.4'/%3E%3Cpath d='M161.3 241.3C152.4 239.1 150.7 227.7 141.4 225.8' stroke='%23fffdf6' stroke-opacity='0.196' stroke-width='0.6'/%3E%3Cpath d='M41.5 272.9C41 290.3 62.8 300 57.7 319.6' stroke='%23fffdf6' stroke-opacity='0.132' stroke-width='1'/%3E%3Cpath d='M350.4 135.6C349.4 149.6 358.9 159.2 365.1 170.5' stroke='%235c4c34' stroke-opacity='0.029' stroke-width='0.6'/%3E%3Cpath d='M350.2 223.2C358.6 217.5 365.6 211.1 364.6 199.4' stroke='%235c4c34' stroke-opacity='0.028' stroke-width='0.5'/%3E%3Cpath d='M54.4 131.6C57.5 109.2 62.8 87 57.7 63.5' stroke='%235c4c34' stroke-opacity='0.051' stroke-width='0.7'/%3E%3Cpath d='M22.5 250.8C-0.6 265.6 -19.6 231 -43.3 245.2M402.5 250.8C379.4 265.6 360.4 231 336.7 245.2' stroke='%235c4c34' stroke-opacity='0.044' stroke-width='0.4'/%3E%3Cpath d='M121.6 182.6C111.5 179.4 103.5 170.5 91.5 171.5' stroke='%23fffdf6' stroke-opacity='0.179' stroke-width='0.6'/%3E%3Cpath d='M155.6 -36C149.3 -23.5 149.4 -8.5 140.2 3.3M155.6 344C149.3 356.5 149.4 371.5 140.2 383.3' stroke='%235c4c34' stroke-opacity='0.046' stroke-width='0.4'/%3E%3Cpath d='M141.8 204.2C118.4 203.4 108.8 172.2 82.2 176.9' stroke='%235c4c34' stroke-opacity='0.058' stroke-width='0.5'/%3E%3Cpath d='M210.2 251.2C208.5 277.5 202 302.6 191.3 327.5' stroke='%235c4c34' stroke-opacity='0.029' stroke-width='0.5'/%3E%3Cpath d='M129 256.5C153.7 248.8 171.9 260.6 189.4 276.6' stroke='%23fffdf6' stroke-opacity='0.158' stroke-width='0.7'/%3E%3Cpath d='M256.2 60.6C277 79.1 303.3 47.5 324.6 68.1' stroke='%235c4c34' stroke-opacity='0.043' stroke-width='0.7'/%3E%3Cpath d='M12.5 -31.1C22.6 -19 36.8 -11.3 46.9 1.5M12.5 348.9C22.6 361 36.8 368.7 46.9 381.5M392.5 -31.1C402.6 -19 416.8 -11.3 426.9 1.5M392.5 348.9C402.6 361 416.8 368.7 426.9 381.5' stroke='%235c4c34' stroke-opacity='0.029' stroke-width='0.6'/%3E%3Cpath d='M349.3 233.3C342.2 244.8 333.8 255.1 322.5 263.4' stroke='%235c4c34' stroke-opacity='0.042' stroke-width='0.4'/%3E%3Cpath d='M61.5 49.2C47.9 43.8 37.4 31.1 20.6 32.5' stroke='%23fffdf6' stroke-opacity='0.160' stroke-width='1.1'/%3E%3Cpath d='M25.7 217.8C36.3 250.4 1.7 269.5 1.2 299.7M405.7 217.8C416.3 250.4 381.7 269.5 381.2 299.7' stroke='%235c4c34' stroke-opacity='0.034' stroke-width='0.6'/%3E%3Cpath d='M169.5 42.3C182.9 41 192.2 51.8 204.7 54.1' stroke='%23fffdf6' stroke-opacity='0.133' stroke-width='1.1'/%3E%3Cpath d='M131.4 -13.3C122.8 -5.3 114.3 3 100.7 0.3M131.4 366.7C122.8 374.7 114.3 383 100.7 380.3' stroke='%23fffdf6' stroke-opacity='0.196' stroke-width='1.1'/%3E%3Cpath d='M28.7 254.8C11.6 244.7 -6.7 246.1 -25.8 249.6M408.7 254.8C391.6 244.7 373.3 246.1 354.2 249.6' stroke='%23fffdf6' stroke-opacity='0.117' stroke-width='0.6'/%3E%3Cpath d='M97.2 -12.7C110.6 10.2 101.1 41.4 124.1 61.7M97.2 367.3C110.6 390.2 101.1 421.4 124.1 441.7' stroke='%235c4c34' stroke-opacity='0.052' stroke-width='0.6'/%3E%3Cpath d='M6.1 156C-2.9 158.1 -7.6 167.4 -16.8 169.6M386.1 156C377.1 158.1 372.4 167.4 363.2 169.6' stroke='%23fffdf6' stroke-opacity='0.193' stroke-width='0.9'/%3E%3Cpath d='M43.3 71.7C32.4 98.5 -2 98 -15.8 122.6M423.3 71.7C412.4 98.5 378 98 364.2 122.6' stroke='%235c4c34' stroke-opacity='0.042' stroke-width='0.4'/%3E%3Cpath d='M177.3 106.2C181.1 99.6 184.9 93 184.2 84.7' stroke='%23fffdf6' stroke-opacity='0.177' stroke-width='0.9'/%3E%3Cpath d='M307.6 10.1C319.9 -11.5 325.6 -35.5 333.1 -59.5M307.6 390.1C319.9 368.5 325.6 344.5 333.1 320.5' stroke='%235c4c34' stroke-opacity='0.047' stroke-width='0.5'/%3E%3Cpath d='M235.9 23.4C219.2 10.9 220.8 -17 196.2 -23.6M235.9 403.4C219.2 390.9 220.8 363 196.2 356.4' stroke='%235c4c34' stroke-opacity='0.029' stroke-width='0.4'/%3E%3Cpath d='M251 120.6C248.6 109.6 241.8 99.3 245.9 86.9' stroke='%23fffdf6' stroke-opacity='0.192' stroke-width='1'/%3E%3Cpath d='M62.6 52.1C48.7 71.4 26.7 87 32.7 116.3' stroke='%23fffdf6' stroke-opacity='0.182' stroke-width='1.1'/%3E%3Cpath d='M337.3 59.3C344.6 54.8 344.4 44.4 352.4 40' stroke='%23fffdf6' stroke-opacity='0.155' stroke-width='1'/%3E%3Cpath d='M77.9 234.9C90.8 226.8 108.3 237.6 120.3 224.5' stroke='%235c4c34' stroke-opacity='0.057' stroke-width='0.5'/%3E%3Cpath d='M99.2 212.3C96.1 184.1 103 154.8 88.7 127.1' stroke='%23fffdf6' stroke-opacity='0.127' stroke-width='0.8'/%3E%3Cpath d='M127.4 219C136.7 198.5 130 173 147.5 154.4' stroke='%235c4c34' stroke-opacity='0.038' stroke-width='0.5'/%3E%3Cpath d='M274 246.1C267 210.6 319.1 199.5 308.9 161.7' stroke='%235c4c34' stroke-opacity='0.029' stroke-width='0.7'/%3E%3Cpath d='M342.9 349.2C321.8 348.9 304.7 336 284.5 331' stroke='%23fffdf6' stroke-opacity='0.199' stroke-width='1.1'/%3E%3Cpath d='M60.5 233.4C64 268.4 98.6 274.7 118.3 295.9' stroke='%235c4c34' stroke-opacity='0.055' stroke-width='0.7'/%3E%3Cpath d='M298.9 196C312.9 179.9 330.2 168.8 350.7 161.4' stroke='%23fffdf6' stroke-opacity='0.193' stroke-width='1.1'/%3E%3Cpath d='M-75.8 171.3C-52.4 174.6 -32.4 149.8 -7.1 163M304.2 171.3C327.6 174.6 347.6 149.8 372.9 163' stroke='%235c4c34' stroke-opacity='0.025' stroke-width='0.5'/%3E%3Cpath d='M0.5 309.2C-3 302.2 -6.7 295.5 -15.6 293.9M380.5 309.2C377 302.2 373.3 295.5 364.4 293.9' stroke='%23fffdf6' stroke-opacity='0.193' stroke-width='1.1'/%3E%3Cpath d='M84.2 56.8C90.3 84.8 129.6 87.1 132.1 118.8' stroke='%235c4c34' stroke-opacity='0.034' stroke-width='0.4'/%3E%3Cpath d='M339.7 62.9C336.5 71.9 335.1 81 339.1 90.5' stroke='%235c4c34' stroke-opacity='0.047' stroke-width='0.4'/%3E%3Cpath d='M108 170.1C116.3 144.8 96.2 125.7 93.1 102.1' stroke='%235c4c34' stroke-opacity='0.055' stroke-width='0.4'/%3E%3Cpath d='M358.3 237.8C348 230.9 346.1 218.3 338.8 208.9' stroke='%235c4c34' stroke-opacity='0.036' stroke-width='0.6'/%3E%3Cpath d='M51.5 153.6C55.7 138.1 54.1 123.8 42.1 111.4' stroke='%235c4c34' stroke-opacity='0.051' stroke-width='0.5'/%3E%3Cpath d='M334.8 -13.7C324 4.2 334.8 19.9 339.8 36.6M334.8 366.3C324 384.2 334.8 399.9 339.8 416.6' stroke='%23fffdf6' stroke-opacity='0.135' stroke-width='1'/%3E%3Cpath d='M17.7 238.4C28.2 238.2 31.8 226.2 41.6 224.2' stroke='%23fffdf6' stroke-opacity='0.195' stroke-width='1.2'/%3E%3Cpath d='M265.6 189.3C256.5 191.9 248.7 185.7 239.7 185.6' stroke='%23fffdf6' stroke-opacity='0.162' stroke-width='1.1'/%3E%3Cpath d='M298 357.9C289.6 347.1 305.3 334.8 295.9 323.8' stroke='%23fffdf6' stroke-opacity='0.120' stroke-width='1.1'/%3E%3Cpath d='M110 331.1C87.3 314.1 63 306 34.5 318' stroke='%235c4c34' stroke-opacity='0.043' stroke-width='0.7'/%3E%3Cpath d='M224.4 120.3C205.1 139.7 187.6 161.1 161.8 174.2' stroke='%235c4c34' stroke-opacity='0.060' stroke-width='0.5'/%3E%3Cpath d='M353.4 174.8C342.4 166.5 329.7 163.2 315.7 162.7' stroke='%235c4c34' stroke-opacity='0.035' stroke-width='0.5'/%3E%3Cpath d='M69.5 269.8C51.3 263.2 35.4 280.9 16.8 274.9' stroke='%235c4c34' stroke-opacity='0.036' stroke-width='0.4'/%3E%3Cpath d='M133 234.6C163.1 231.3 173.5 191.4 207.9 194.2' stroke='%235c4c34' stroke-opacity='0.056' stroke-width='0.7'/%3E%3Cpath d='M60.7 200C53.7 178.2 66.3 160.5 73.2 141' stroke='%23fffdf6' stroke-opacity='0.158' stroke-width='0.7'/%3E%3Cpath d='M-1.5 167.8C10.9 149.7 -3.8 133.4 -5.1 115.7M378.5 167.8C390.9 149.7 376.2 133.4 374.9 115.7' stroke='%235c4c34' stroke-opacity='0.028' stroke-width='0.7'/%3E%3Cpath d='M313.9 371.8C309.5 364.7 301.3 363.4 294.4 359.6' stroke='%235c4c34' stroke-opacity='0.057' stroke-width='0.5'/%3E%3Cpath d='M235.1 97.6C239.8 85.5 238.1 74.6 228.9 64.7' stroke='%23fffdf6' stroke-opacity='0.182' stroke-width='1.1'/%3E%3Cpath d='M97.6 32.1C102.4 19.6 116.5 23.4 124.8 16.6' stroke='%235c4c34' stroke-opacity='0.040' stroke-width='0.4'/%3E%3Cpath d='M-33.3 199.4C-24.8 193.3 -17.7 185 -6.4 182.8M346.7 199.4C355.2 193.3 362.3 185 373.6 182.8' stroke='%235c4c34' stroke-opacity='0.025' stroke-width='0.7'/%3E%3Cpath d='M-22.6 85.2C-34.4 113.2 -48.9 140.2 -52.5 172M357.4 85.2C345.6 113.2 331.1 140.2 327.5 172' stroke='%235c4c34' stroke-opacity='0.057' stroke-width='0.4'/%3E%3Cpath d='M-0.3 334.6C-25.2 321.4 -53.4 322.6 -80.6 316M379.7 334.6C354.8 321.4 326.6 322.6 299.4 316' stroke='%23fffdf6' stroke-opacity='0.129' stroke-width='0.9'/%3E%3Cpath d='M345.6 87.7C328.2 104.9 299.5 110.8 293 140.1' stroke='%235c4c34' stroke-opacity='0.042' stroke-width='0.6'/%3E%3Cpath d='M206.7 154.7C187.4 158.5 176.6 140.3 159.6 136.6' stroke='%23fffdf6' stroke-opacity='0.120' stroke-width='1.2'/%3E%3Cellipse cx='193.8' cy='362.8' rx='0.4' ry='0.6' fill='%233b3024' fill-opacity='0.144'/%3E%3Cellipse cx='288.2' cy='269.1' rx='0.8' ry='0.4' fill='%233b3024' fill-opacity='0.087'/%3E%3Cellipse cx='81.1' cy='20.6' rx='1' ry='0.3' fill='%233b3024' fill-opacity='0.153'/%3E%3Cellipse cx='323.3' cy='61.1' rx='1.4' ry='0.5' fill='%233b3024' fill-opacity='0.143'/%3E%3Cellipse cx='127.2' cy='132.2' rx='0.9' ry='0.7' fill='%233b3024' fill-opacity='0.067'/%3E%3Cellipse cx='238.5' cy='338.8' rx='0.6' ry='1' fill='%233b3024' fill-opacity='0.062'/%3E%3Cellipse cx='74.6' cy='33.1' rx='1.2' ry='0.8' fill='%233b3024' fill-opacity='0.080'/%3E%3Cellipse cx='360.6' cy='330.3' rx='1.3' ry='0.8' fill='%233b3024' fill-opacity='0.066'/%3E%3Cellipse cx='291.9' cy='15.4' rx='0.9' ry='0.9' fill='%233b3024' fill-opacity='0.072'/%3E%3C/g%3E%3C/svg%3E");--tx-wm-cloud:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0065' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.471 0 0 0 0 0.384 0 0 0 0 0.259 0.450 0 0 0 -0.250'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-wm-brush-ink:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='24' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-2%25' y='-30%25' width='104%25' height='160%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .25' numOctaves='2' seed='5' result='t'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='t' scale='2.4'/%3E%3C/filter%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%232a241d'/%3E%3Cstop offset='.72' stop-color='%232a241d' stop-opacity='.92'/%3E%3Cstop offset='1' stop-color='%232a241d' stop-opacity='.55'/%3E%3C/linearGradient%3E%3Cfilter id='h' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .9' numOctaves='2' seed='12'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 1.75'/%3E%3CfeComposite in='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Cpath filter='url(%23h)' fill='url(%23g)' d='M0 6.2L10 6.6L20 6.8L30 6.3L40 6.1L50 6.3L60 6.4L70 6.6L80 6.3L90 6.5L100 7L110 6.6L120 7.1L130 7L140 7.3L150 6.9L160 7.4L170 7.6L180 7.8L190 7.5L200 7.8L210 7.8L220 8L230 8.4L240 8.3L250 8.2L260 8.9L270 9.2L280 8.9L290 9L300 9.8L310 10L320 10.5L330 10.1L340 10.8L350 11.2L360 10.6L370 11.3L380 11.2L390 11.4L400 12L400 14.6L390 15.3L380 15.4L370 15.8L360 15.5L350 16L340 16.4L330 16.2L320 15.9L310 16.6L300 16.8L290 16.3L280 16.7L270 16.7L260 17.5L250 17.1L240 16.9L230 17.7L220 17.6L210 17.3L200 18L190 18.1L180 18.2L170 17.8L160 18.3L150 17.8L140 17.6L130 18.4L120 17.6L110 17.7L100 17.5L90 18.2L80 17.7L70 17.7L60 17.4L50 18.1L40 17.6L30 17.7L20 17.8L10 17.8L0 17.9Z'/%3E%3C/g%3E%3C/svg%3E");--tx-wm-brush-seal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='24' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-2%25' y='-30%25' width='104%25' height='160%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .25' numOctaves='2' seed='11' result='t'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='t' scale='2.4'/%3E%3C/filter%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23a2311e'/%3E%3Cstop offset='.72' stop-color='%23a2311e' stop-opacity='.92'/%3E%3Cstop offset='1' stop-color='%23a2311e' stop-opacity='.55'/%3E%3C/linearGradient%3E%3Cfilter id='h' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .9' numOctaves='2' seed='18'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 1.75'/%3E%3CfeComposite in='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Cpath filter='url(%23h)' fill='url(%23g)' d='M0 6.3L10 6.3L20 6.1L30 6.8L40 6.4L50 6.5L60 6.6L70 6.5L80 7L90 6.8L100 6.7L110 6.8L120 7L130 6.7L140 7.3L150 7.4L160 7.1L170 7.6L180 7.3L190 7.6L200 7.5L210 7.6L220 8.2L230 8.6L240 8.4L250 8.8L260 8.6L270 8.9L280 9.3L290 9L300 9.7L310 10.3L320 10.2L330 10.5L340 10.7L350 11.1L360 10.9L370 11.6L380 11.7L390 11.5L400 12.1L400 15.3L390 15.2L380 15.7L370 15.4L360 15.8L350 15.5L340 16.3L330 16.2L320 16.5L310 16.7L300 16.5L290 16.7L280 17L270 16.6L260 16.8L250 17.3L240 17.4L230 17.8L220 17.1L210 17.9L200 17.4L190 17.8L180 17.7L170 17.5L160 18.3L150 17.5L140 18.1L130 18.2L120 18.3L110 18L100 17.6L90 17.8L80 17.7L70 17.6L60 18L50 18.2L40 17.8L30 17.8L20 17.8L10 17.8L0 17.7Z'/%3E%3C/g%3E%3C/svg%3E");--tx-wm-seal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.953 0 0 0 0 0.933 0 0 0 0 0.886 1.900 0 0 0 -1.120'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-oc-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.408 0 0 0 0 0.275 0 0 0 0 0.157 0.575 0 0 0 -0.320'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-oc-fibre:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M63.1 131.6C66.3 143.8 66.1 155.9 63.3 168.5' stroke='%23fff6e8' stroke-opacity='0.097' stroke-width='1.1'/%3E%3Cpath d='M272.6 2.1C267.8 -20.8 244.1 -21.4 229.9 -34.1M272.6 422.1C267.8 399.2 244.1 398.6 229.9 385.9' stroke='%23fff6e8' stroke-opacity='0.084' stroke-width='1.4'/%3E%3Cpath d='M354.1 316.8C361.9 333.7 354.9 348.3 346.9 363.2' stroke='%236a4a2c' stroke-opacity='0.033' stroke-width='0.5'/%3E%3Cpath d='M107.1 145.9C111.3 156.1 122.1 161.9 125.5 173.1' stroke='%236a4a2c' stroke-opacity='0.056' stroke-width='1'/%3E%3Cpath d='M138 348.5C115.8 358.1 96.4 354.1 79.1 336.6' stroke='%236a4a2c' stroke-opacity='0.040' stroke-width='0.9'/%3E%3Cpath d='M314 180.8C314.8 189.1 322.1 195.6 320.8 204.7' stroke='%23fff6e8' stroke-opacity='0.125' stroke-width='1'/%3E%3Cpath d='M48.2 309.4C34.9 306 20.1 307.2 8.9 296.3M468.2 309.4C454.9 306 440.1 307.2 428.9 296.3' stroke='%236a4a2c' stroke-opacity='0.035' stroke-width='1'/%3E%3Cpath d='M126.5 -54.4C111.1 -38 122 -15.8 114.2 2.9M126.5 365.6C111.1 382 122 404.2 114.2 422.9' stroke='%236a4a2c' stroke-opacity='0.046' stroke-width='0.8'/%3E%3Cpath d='M109.7 188.6C106.6 202.3 109.8 213.7 122 222.2' stroke='%236a4a2c' stroke-opacity='0.044' stroke-width='0.8'/%3E%3Cpath d='M39.8 179.3C29.6 170.8 14.3 170 6.3 157.5M459.8 179.3C449.6 170.8 434.3 170 426.3 157.5' stroke='%23fff6e8' stroke-opacity='0.150' stroke-width='1'/%3E%3Cpath d='M74 276.9C60.8 280.5 47.8 284.6 40 297.8' stroke='%236a4a2c' stroke-opacity='0.062' stroke-width='0.8'/%3E%3Cpath d='M305.9 361.2C305 368.7 303.5 376.1 305.6 383.8' stroke='%236a4a2c' stroke-opacity='0.059' stroke-width='0.7'/%3E%3Cpath d='M374.4 180.2C371.8 195.3 384.9 209.2 377.9 225.2' stroke='%236a4a2c' stroke-opacity='0.038' stroke-width='0.8'/%3E%3Cpath d='M291.5 77.1C285.5 65.3 274.5 64 262.7 63.5' stroke='%236a4a2c' stroke-opacity='0.050' stroke-width='0.6'/%3E%3Cpath d='M242.6 247.6C229.7 263.8 225.8 288.7 199 292.1' stroke='%23fff6e8' stroke-opacity='0.098' stroke-width='1.3'/%3E%3Cpath d='M361.8 119C356.2 127.6 353.8 137.3 352.5 147.5' stroke='%236a4a2c' stroke-opacity='0.034' stroke-width='0.8'/%3E%3Cpath d='M231 267.2C225.6 260.4 214.8 264.8 209.8 256.7' stroke='%236a4a2c' stroke-opacity='0.052' stroke-width='0.6'/%3E%3Cpath d='M255.2 100.4C273.8 96.6 291.8 90.7 310.4 84.5' stroke='%236a4a2c' stroke-opacity='0.056' stroke-width='1'/%3E%3Cpath d='M124.5 182.1C140.9 183.8 144.5 166 157 160.9' stroke='%236a4a2c' stroke-opacity='0.064' stroke-width='0.8'/%3E%3Cpath d='M133.5 296.6C130.9 305.1 118.9 306.2 118.1 316.4' stroke='%23fff6e8' stroke-opacity='0.136' stroke-width='1.7'/%3E%3Cpath d='M209.1 362.7C211.8 342.3 202 321.3 212.1 300.6' stroke='%236a4a2c' stroke-opacity='0.049' stroke-width='0.8'/%3E%3Cpath d='M298.9 356.1C300.3 336.9 316.6 331.5 329.8 322.7' stroke='%236a4a2c' stroke-opacity='0.044' stroke-width='0.6'/%3E%3Cpath d='M332.7 92.7C327.6 104.6 323.9 116.4 333.8 128.1' stroke='%236a4a2c' stroke-opacity='0.042' stroke-width='0.9'/%3E%3Cpath d='M267.9 376.8C276.8 369 286.3 367.2 297.1 373.2' stroke='%23fff6e8' stroke-opacity='0.091' stroke-width='1.6'/%3E%3Cpath d='M365.1 138.6C370.8 152.7 381.8 159.1 396.8 160.3' stroke='%236a4a2c' stroke-opacity='0.062' stroke-width='0.8'/%3E%3Cpath d='M216.7 252.1C202.3 258.4 187.1 263.6 179.8 280' stroke='%236a4a2c' stroke-opacity='0.042' stroke-width='0.5'/%3E%3Cpath d='M185 150.3C188.1 173.1 195.6 195.5 190.1 219.6' stroke='%236a4a2c' stroke-opacity='0.053' stroke-width='0.5'/%3E%3Cpath d='M212.2 63.1C217.5 73.2 213.1 81.8 208.1 90.6' stroke='%23fff6e8' stroke-opacity='0.149' stroke-width='0.8'/%3E%3Cpath d='M233.1 289.9C220.1 304.4 208.1 319.9 192.5 332.9' stroke='%236a4a2c' stroke-opacity='0.052' stroke-width='0.7'/%3E%3Cpath d='M3.9 135.1C9 138.2 14.6 135.7 20.1 136.5M423.9 135.1C429 138.2 434.6 135.7 440.1 136.5' stroke='%236a4a2c' stroke-opacity='0.061' stroke-width='0.9'/%3E%3Cpath d='M322.9 247.4C314.4 227.5 307.4 206.9 294.5 188.4' stroke='%236a4a2c' stroke-opacity='0.051' stroke-width='1'/%3E%3Cpath d='M243.7 286.8C243 293.3 241.8 299.6 237.3 304.9' stroke='%236a4a2c' stroke-opacity='0.060' stroke-width='0.9'/%3E%3Cpath d='M325.8 27.1C338.2 8.7 359.4 6.8 378.2 -0.8M325.8 447.1C338.2 428.7 359.4 426.8 378.2 419.2' stroke='%236a4a2c' stroke-opacity='0.037' stroke-width='0.8'/%3E%3Cpath d='M121 282.5C109.1 301.9 85.5 308.7 72.1 327.5' stroke='%23fff6e8' stroke-opacity='0.121' stroke-width='1.5'/%3E%3Cpath d='M201.3 310.1C197 293.3 189.3 277.3 188.3 259.1' stroke='%23fff6e8' stroke-opacity='0.112' stroke-width='0.9'/%3E%3Cpath d='M373.8 181.2C373.7 198.5 363.8 208.5 348.5 214.9' stroke='%236a4a2c' stroke-opacity='0.033' stroke-width='0.9'/%3E%3Cpath d='M117.4 34.9C131.1 50.7 138 68.4 133.2 90.1' stroke='%23fff6e8' stroke-opacity='0.122' stroke-width='1.4'/%3E%3Cpath d='M197 23.1C197.3 34.2 201.9 42.6 212.3 47.8' stroke='%23fff6e8' stroke-opacity='0.090' stroke-width='1.4'/%3E%3Cpath d='M60.1 322.5C70.8 319.7 75.9 312.9 75.5 301.7' stroke='%236a4a2c' stroke-opacity='0.047' stroke-width='0.9'/%3E%3Cpath d='M9.7 22.4C-15.2 14.6 -16.2 -15.7 -37.4 -27.9M9.7 442.4C-15.2 434.6 -16.2 404.3 -37.4 392.1M429.7 22.4C404.8 14.6 403.8 -15.7 382.6 -27.9M429.7 442.4C404.8 434.6 403.8 404.3 382.6 392.1' stroke='%236a4a2c' stroke-opacity='0.056' stroke-width='0.9'/%3E%3Cpath d='M280.4 246.2C269 238.3 269.9 219.6 253.5 215.5' stroke='%236a4a2c' stroke-opacity='0.043' stroke-width='0.9'/%3E%3Cpath d='M34.1 -5.5C39.4 8.1 27.8 17.1 24.8 28.8M34.1 414.5C39.4 428.1 27.8 437.1 24.8 448.8' stroke='%236a4a2c' stroke-opacity='0.065' stroke-width='1'/%3E%3Cpath d='M343.9 97.6C349.1 82.4 360.3 69.5 361.8 52.3' stroke='%236a4a2c' stroke-opacity='0.053' stroke-width='0.7'/%3E%3Cpath d='M269.1 -3.3C276.3 -18.9 287.7 -28.3 305.9 -28.8M269.1 416.7C276.3 401.1 287.7 391.7 305.9 391.2' stroke='%236a4a2c' stroke-opacity='0.040' stroke-width='1'/%3E%3Cpath d='M396.9 108.9C383.6 108.8 370.2 108.8 359.7 98' stroke='%236a4a2c' stroke-opacity='0.062' stroke-width='0.6'/%3E%3Cpath d='M162.4 83.3C149.8 80.5 143.5 72.5 142.7 59.6' stroke='%236a4a2c' stroke-opacity='0.036' stroke-width='0.8'/%3E%3Cpath d='M105.8 126.1C101.4 131.8 99.6 138.9 95 144.8' stroke='%236a4a2c' stroke-opacity='0.042' stroke-width='0.6'/%3E%3Cpath d='M217.4 77.9C222.4 84.7 230.1 87.8 237 92.5' stroke='%236a4a2c' stroke-opacity='0.037' stroke-width='1'/%3E%3Cpath d='M267.3 -9.2C266.4 1.8 267.5 12.9 265.2 24.1M267.3 410.8C266.4 421.8 267.5 432.9 265.2 444.1' stroke='%23fff6e8' stroke-opacity='0.135' stroke-width='1.5'/%3E%3Cpath d='M376.2 323.4C368 310.5 358.8 299.3 341.5 298.5' stroke='%236a4a2c' stroke-opacity='0.035' stroke-width='0.6'/%3E%3Cpath d='M38.9 35.7C61.7 40.3 83.9 32.7 107.2 32.2' stroke='%23fff6e8' stroke-opacity='0.082' stroke-width='1.1'/%3E%3Cpath d='M189.4 278.8C183.1 279.2 177.4 275.9 170.9 276.5' stroke='%236a4a2c' stroke-opacity='0.050' stroke-width='0.7'/%3E%3Cpath d='M354.8 378.9C357 368.9 364.9 362.5 370.2 354.1' stroke='%236a4a2c' stroke-opacity='0.051' stroke-width='1'/%3E%3Cpath d='M69 139.9C53.2 123.7 57.6 104.1 59.6 84.3' stroke='%23fff6e8' stroke-opacity='0.115' stroke-width='1.4'/%3E%3Cpath d='M293.7 28C286.2 29 281.1 34.8 274.3 37.9' stroke='%236a4a2c' stroke-opacity='0.053' stroke-width='0.8'/%3E%3Cpath d='M313.3 275C296.3 287.7 276.3 292 255.5 295.7' stroke='%23fff6e8' stroke-opacity='0.092' stroke-width='1.5'/%3E%3Cpath d='M189.5 344.4C204.1 358.1 220.3 349.3 236.5 347.7' stroke='%236a4a2c' stroke-opacity='0.031' stroke-width='0.8'/%3E%3Cpath d='M348.2 308.7C335.3 302.4 320.4 307 307 301' stroke='%23fff6e8' stroke-opacity='0.098' stroke-width='0.9'/%3E%3Cpath d='M245.7 82.4C237.6 80.8 229.6 81.4 221.6 84.2' stroke='%236a4a2c' stroke-opacity='0.039' stroke-width='0.8'/%3E%3Cpath d='M202.9 95.1C212.3 100.3 222.8 99.5 233.3 100.9' stroke='%236a4a2c' stroke-opacity='0.061' stroke-width='0.5'/%3E%3Cpath d='M323.7 214.2C308.4 204.9 293.9 193.7 274.2 194.1' stroke='%23fff6e8' stroke-opacity='0.115' stroke-width='1.1'/%3E%3Cpath d='M127.2 149.8C121.3 159.8 125.9 174.2 114 182.2' stroke='%236a4a2c' stroke-opacity='0.044' stroke-width='0.8'/%3E%3Cpath d='M307.1 139.9C314.1 135.7 322.3 134.1 329.8 130.2' stroke='%236a4a2c' stroke-opacity='0.039' stroke-width='0.7'/%3E%3Cpath d='M48.5 121.5C41.9 131.6 32.9 138.3 21.1 141.9' stroke='%236a4a2c' stroke-opacity='0.034' stroke-width='0.9'/%3E%3Cpath d='M350.3 126.7C353 115.5 359.4 108.2 371.7 106.8' stroke='%23fff6e8' stroke-opacity='0.094' stroke-width='1.2'/%3E%3Cpath d='M-23.9 345.8C-10.5 332.7 -17.5 313.3 -9.3 298M396.1 345.8C409.5 332.7 402.5 313.3 410.7 298' stroke='%236a4a2c' stroke-opacity='0.051' stroke-width='0.7'/%3E%3Cpath d='M49.8 394.1C42.5 391.2 34.3 391.1 27.2 387' stroke='%23fff6e8' stroke-opacity='0.132' stroke-width='1.2'/%3E%3Cpath d='M255 142.5C239.2 122.1 247.9 98.4 246.2 75.4' stroke='%23fff6e8' stroke-opacity='0.147' stroke-width='0.9'/%3E%3Cpath d='M103.6 -3C92.5 -26.2 99.5 -44.9 118.2 -61.3M103.6 417C92.5 393.8 99.5 375.1 118.2 358.7' stroke='%236a4a2c' stroke-opacity='0.043' stroke-width='0.5'/%3E%3Cpath d='M250.2 224.1C267.6 221.4 284.7 211.5 303.1 222' stroke='%236a4a2c' stroke-opacity='0.056' stroke-width='1'/%3E%3Cpath d='M97.4 317.7C71.1 314.6 64.8 349.6 38.8 348.5' stroke='%236a4a2c' stroke-opacity='0.044' stroke-width='1'/%3E%3Cpath d='M51.7 255.7C43.4 254.5 38 259.3 32.5 264.6' stroke='%236a4a2c' stroke-opacity='0.047' stroke-width='0.7'/%3E%3Cpath d='M242.8 188.3C223.5 182.3 214.3 208.4 194.8 203.2' stroke='%236a4a2c' stroke-opacity='0.044' stroke-width='0.9'/%3E%3Cpath d='M35.1 230.5C32 239.7 19.8 242.8 19.2 254' stroke='%236a4a2c' stroke-opacity='0.061' stroke-width='0.5'/%3E%3Cpath d='M312.7 111.1C330.2 128.9 326.4 153.4 333 175.2' stroke='%236a4a2c' stroke-opacity='0.063' stroke-width='0.8'/%3E%3Cpath d='M127.5 232.2C125.8 252.9 150.2 263.7 147.8 285.4' stroke='%236a4a2c' stroke-opacity='0.040' stroke-width='1'/%3E%3Cpath d='M309 175.8C293.2 174 276.5 180.8 261.3 170.4' stroke='%23fff6e8' stroke-opacity='0.115' stroke-width='1.1'/%3E%3Cpath d='M4 258.6C23 260.5 41.5 253.3 61.1 255.1M424 258.6C443 260.5 461.5 253.3 481.1 255.1' stroke='%236a4a2c' stroke-opacity='0.046' stroke-width='0.7'/%3E%3Cpath d='M165.3 216.4C148.2 229.2 135.5 244 140.3 268' stroke='%236a4a2c' stroke-opacity='0.062' stroke-width='0.9'/%3E%3Cpath d='M339.6 260.7C341 276.9 326.8 288 325.4 303.8' stroke='%23fff6e8' stroke-opacity='0.111' stroke-width='1'/%3E%3Cpath d='M75.7 80.3C67 95.8 46.9 84.1 36.5 96.7' stroke='%236a4a2c' stroke-opacity='0.059' stroke-width='1'/%3E%3Cpath d='M303.3 101.5C306.7 112.6 305.1 125.7 316.1 134.2' stroke='%236a4a2c' stroke-opacity='0.030' stroke-width='0.8'/%3E%3Cellipse cx='253.9' cy='287.1' rx='0.7' ry='0.4' fill='%235a3a1f' fill-opacity='0.169'/%3E%3Cellipse cx='33.7' cy='86.7' rx='0.7' ry='0.9' fill='%235a3a1f' fill-opacity='0.061'/%3E%3Cellipse cx='27.8' cy='282.8' rx='1.5' ry='0.4' fill='%235a3a1f' fill-opacity='0.166'/%3E%3Cellipse cx='333.5' cy='319' rx='1.4' ry='0.4' fill='%235a3a1f' fill-opacity='0.134'/%3E%3Cellipse cx='336.2' cy='33.2' rx='1.4' ry='0.7' fill='%235a3a1f' fill-opacity='0.134'/%3E%3Cellipse cx='30.6' cy='418.5' rx='0.9' ry='0.7' fill='%235a3a1f' fill-opacity='0.101'/%3E%3Cellipse cx='210.2' cy='291.9' rx='1.2' ry='0.7' fill='%235a3a1f' fill-opacity='0.146'/%3E%3Cellipse cx='397.3' cy='132.5' rx='1.4' ry='0.7' fill='%235a3a1f' fill-opacity='0.069'/%3E%3Cellipse cx='345.6' cy='50.5' rx='0.4' ry='0.9' fill='%235a3a1f' fill-opacity='0.135'/%3E%3Cellipse cx='84.7' cy='139.3' rx='0.8' ry='0.8' fill='%235a3a1f' fill-opacity='0.137'/%3E%3Cellipse cx='284.9' cy='360.5' rx='1.4' ry='0.7' fill='%235a3a1f' fill-opacity='0.142'/%3E%3Cellipse cx='14.8' cy='169.4' rx='0.6' ry='0.7' fill='%235a3a1f' fill-opacity='0.092'/%3E%3Cellipse cx='155' cy='33.8' rx='0.9' ry='0.6' fill='%235a3a1f' fill-opacity='0.069'/%3E%3Cellipse cx='217.2' cy='243' rx='1' ry='0.6' fill='%235a3a1f' fill-opacity='0.113'/%3E%3Cellipse cx='317.3' cy='118.5' rx='1' ry='0.5' fill='%235a3a1f' fill-opacity='0.142'/%3E%3Cellipse cx='47.6' cy='401.7' rx='1.2' ry='0.4' fill='%235a3a1f' fill-opacity='0.113'/%3E%3Cellipse cx='90' cy='165.8' rx='0.9' ry='0.9' fill='%235a3a1f' fill-opacity='0.073'/%3E%3Cellipse cx='367.7' cy='186.1' rx='0.9' ry='0.5' fill='%235a3a1f' fill-opacity='0.156'/%3E%3Cellipse cx='330.7' cy='101.9' rx='1.3' ry='0.4' fill='%235a3a1f' fill-opacity='0.167'/%3E%3Cellipse cx='335.6' cy='336.2' rx='1.1' ry='0.6' fill='%235a3a1f' fill-opacity='0.110'/%3E%3Cellipse cx='352.3' cy='408.3' rx='1.5' ry='0.7' fill='%235a3a1f' fill-opacity='0.166'/%3E%3Cellipse cx='383.9' cy='168.2' rx='0.9' ry='0.5' fill='%235a3a1f' fill-opacity='0.127'/%3E%3Cellipse cx='228.6' cy='104.1' rx='0.4' ry='1' fill='%235a3a1f' fill-opacity='0.078'/%3E%3Cellipse cx='192.3' cy='358.8' rx='1.1' ry='0.3' fill='%235a3a1f' fill-opacity='0.061'/%3E%3Cellipse cx='284.6' cy='301.4' rx='1.3' ry='0.8' fill='%235a3a1f' fill-opacity='0.123'/%3E%3Cellipse cx='385.9' cy='14.1' rx='1.5' ry='0.4' fill='%235a3a1f' fill-opacity='0.164'/%3E%3C/g%3E%3C/svg%3E");--tx-oc-cloud:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' seed='13' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.549 0 0 0 0 0.376 0 0 0 0 0.204 0.425 0 0 0 -0.235'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-jx-frost:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.275 0 0 0 0 0.361 0 0 0 0 0.471 0.500 0 0 0 -0.300'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-em-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1.000 0 0 0 0 0.839 0 0 0 0 0.667 0.350 0 0 0 -0.215'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-ab-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='6' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.745 0 0 0 0 0.925 0 0 0 0 0.957 0.350 0 0 0 -0.220'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--tx-ab-caustic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.0085' numOctaves='1' seed='15' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.588 0 0 0 0 0.863 0 0 0 0 0.910 -1.500 0 0 0 0.033'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* claude-textures:end */
@media screen{
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss){--cl-serif:"Noto Serif CJK SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;--cl-head:var(--cl-serif);--cl-radius:7px;--cl-focus:color-mix(in srgb,var(--theme-accent) 24%,transparent);--cl-surface:none;--cl-surface-size:auto}
  /* 文墨：生宣纤絮、云絮匀度；楷书标题，朱印与飞白笔触。 */
  :root.theme-wenmo{--cl-head:"KaiTi","STKaiti","楷体",var(--cl-serif);--cl-radius:3px;--cl-surface:var(--tx-wm-fibre),var(--tx-wm-cloud),var(--tx-wm-grain);--cl-surface-size:380px 380px,640px 640px,220px 220px}
  /* 霁雪：甜白釉面的极淡霜粒，青花双弦。 */
  :root.theme-jixue{--cl-radius:8px;--cl-surface:var(--tx-jx-frost);--cl-surface-size:200px 200px}
  /* 赭石：麻纸粗纤维与麻屑、暖色晕斑，Claude 陶土红。 */
  :root.theme-ochre{--cl-radius:8px;--cl-surface:var(--tx-oc-fibre),var(--tx-oc-cloud),var(--tx-oc-grain);--cl-surface-size:420px 420px,600px 600px,200px 200px}
  /* 余烬：炭纸微粒，盘底一线余火（余火画在星盘图层内，见 app.js THEMES.paper）。 */
  :root.theme-ember{--cl-radius:8px;--cl-surface:var(--tx-em-grain);--cl-surface-size:200px 200px}
  /* 沧溟：水面潮光与极淡水纹（画在星盘图层内）。 */
  :root.theme-abyss{--cl-radius:8px;--cl-surface:var(--tx-ab-grain);--cl-surface-size:200px 200px;--cl-page:var(--tx-ab-caustic),var(--tx-ab-grain);--cl-page-size:520px 520px,200px 200px}

  /* Textures always sit under the text: inside the chart as an SVG layer (app.js addChartPaper),
     and as plain backgrounds of the surfaces around it. Nothing is laid over characters. */
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) :is(.data-sidebar,.case-browser,.recent-strip){background-image:var(--cl-surface);background-size:var(--cl-surface-size)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .workspace .plot-pane{background-image:var(--cl-page,var(--cl-surface));background-size:var(--cl-page-size,var(--cl-surface-size))}
    
  /* Shared Claude voice: serif headings, calm hairlines, one accent, soft focus. */
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) :is(legend,.data-heading,.dialog-content h2,.library h1,.theme-gallery-header h2,.case-browser-heading strong){font-family:var(--cl-head);font-weight:600;letter-spacing:1px;color:var(--theme-ink)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .data-heading{font-size:13.5px}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .dialog-title{font-family:var(--cl-head);letter-spacing:1px}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .data-heading>span{font-family:"Microsoft YaHei UI",sans-serif;font-weight:400;letter-spacing:0;color:var(--theme-muted)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .site-brand{font-family:var(--cl-head);font-size:14px;letter-spacing:3px;color:var(--theme-ink)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) :is(button,input,select,textarea,.recent-card,.dt-picker,.menu-dropdown,.star-tip){border-radius:var(--cl-radius)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) :is(button,.recent-card){transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) :is(input,select,textarea):focus-visible{outline:0;border-color:var(--theme-accent);box-shadow:0 0 0 3px var(--cl-focus)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) ::selection{background:color-mix(in srgb,var(--theme-accent) 22%,transparent)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .viewtabs>[role=tab]{background:transparent;border-color:transparent;color:var(--theme-muted)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .viewtabs>[role=tab]:hover{background:var(--theme-hover);color:var(--theme-ink)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .datatabs{gap:2px;border-bottom-color:var(--theme-edge)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .data-sidebar .datatabs button{position:relative;background:transparent;border-color:transparent;color:var(--theme-muted);border-radius:var(--cl-radius) var(--cl-radius) 0 0}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .data-sidebar .datatabs button:hover{background:var(--theme-hover);color:var(--theme-ink)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .data-sidebar .datatabs [aria-selected=true]{background:transparent;color:var(--theme-ink);border-color:transparent;box-shadow:none;font-weight:600}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .datatabs [aria-selected=true]::after{content:"";position:absolute;left:7px;right:7px;bottom:0;height:2px;border-radius:2px;background:var(--theme-accent);pointer-events:none}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .recent-card.current{border-color:var(--theme-edge);box-shadow:inset 3px 0 var(--theme-accent)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .theme-dialog .theme-gallery-footer button{border-radius:var(--cl-radius)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .huayao-heading{color:var(--theme-ink)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .huayao-heading>strong{font-family:var(--cl-head);font-weight:600;letter-spacing:1px}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .huayao-toggle button[aria-pressed=true]{background:var(--theme-accent);color:var(--theme-canvas)!important}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .huayao-toggle button:focus-visible{outline-color:var(--theme-accent)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .huayao-period.transit .huayao-star{color:var(--theme-transit)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) .huayao-period.transit .huayao-chip{border-color:color-mix(in srgb,var(--theme-transit) 25%,transparent);background:color-mix(in srgb,var(--theme-transit) 6%,var(--theme-raised))}

  /* 文墨 · 朱印、楷书与飞白 */
  :root.theme-wenmo :is(.viewtabs>[role=tab],.datatabs button,.recent-title button,.theme-segments button){font-family:var(--cl-head);letter-spacing:1px}
  :root.theme-wenmo .viewtabs>[role=tab]{font-size:14.5px;letter-spacing:2px}
  :root.theme-wenmo .data-sidebar .datatabs button{font-size:13.5px}
  :root.theme-wenmo .huayao-heading>strong{position:relative;padding-bottom:5px;font-size:15px;letter-spacing:2px}
  :root.theme-wenmo .huayao-heading>strong::before{content:"";position:absolute;left:-2px;right:-14px;bottom:-1px;height:6px;background:var(--tx-wm-brush-ink) 0 0/100% 100% no-repeat;opacity:.62;pointer-events:none}
  :root.theme-wenmo .huayao-toggle button[aria-pressed=true]{background:var(--tx-wm-seal),var(--theme-accent);background-size:90px 90px,auto;color:#F7F0E2!important;font-family:var(--cl-head);letter-spacing:1px}
  :root.theme-wenmo .huayao-toggle button{font-family:var(--cl-head);font-size:13px}
  :root.theme-wenmo .viewtabs>[aria-selected=true]{bottom:0;height:27px;background:var(--tx-wm-seal),var(--theme-accent);background-size:90px 90px,auto;border-color:var(--theme-accent);border-radius:2px;color:#F7F0E2;box-shadow:inset 0 0 0 1px rgba(255,240,220,.18);font-weight:600}
  :root.theme-wenmo .viewtabs>[aria-selected=true]:hover{background:var(--tx-wm-seal),var(--theme-accent);background-size:90px 90px,auto;color:#F7F0E2}
  :root.theme-wenmo .datatabs [aria-selected=true]::after{left:3px;right:3px;bottom:0;height:6px;border-radius:0;background:var(--tx-wm-brush-seal) center/100% 100% no-repeat}
  :root.theme-wenmo :is(legend,.data-heading,.dialog-content h2,.library h1,.theme-gallery-header h2,.case-browser-heading strong){letter-spacing:2px}
  :root.theme-wenmo .data-heading{position:relative;padding-bottom:8px;font-size:14.5px}
  :root.theme-wenmo legend{font-size:13.5px}
  :root.theme-wenmo .dialog-title{font-family:var(--cl-head);font-size:15px;letter-spacing:2px}
  :root.theme-wenmo .data-heading::before{content:"";position:absolute;left:-2px;bottom:0;width:86px;height:6px;background:var(--tx-wm-brush-ink) 0 0/100% 100% no-repeat;opacity:.62;pointer-events:none}
  :root.theme-wenmo .site-brand{font-size:15.5px;letter-spacing:4px}
  :root.theme-wenmo .theme-trigger-dot{width:11px;height:11px;border-radius:1.5px;background:var(--tx-wm-seal),var(--theme-accent);background-size:40px 40px,auto;box-shadow:none;transform:rotate(-4deg)}
  :root.theme-wenmo :is(.theme-dialog .theme-gallery-footer button,.primary-action){background:var(--tx-wm-seal),var(--theme-accent);background-size:90px 90px,auto;border-color:var(--theme-accent);color:#F7F0E2;font-family:var(--cl-head);letter-spacing:2px}
  :root.theme-wenmo :is(input,select,textarea){border-color:var(--theme-edge);background-color:color-mix(in srgb,var(--theme-raised) 82%,transparent)}
  :root.theme-wenmo :is(.planet-table tbody tr:hover,.planet-table tbody tr.selected){background:color-mix(in srgb,var(--theme-ink) 7%,transparent)}
  :root.theme-wenmo :is(.wheel-stage,.data-body,.recent-list,.dt-col-list){scrollbar-color:color-mix(in srgb,var(--theme-ink) 30%,transparent) transparent}
  :root.theme-wenmo .data-body{background-color:color-mix(in srgb,var(--theme-raised) 70%,transparent)}
  /* Ink sits heavier on the paper; ruler hits keep their inline bold. */
  :root:is(.theme-wenmo,.theme-ochre) .wheel svg text:not([style*=bold]){font-weight:600!important}

  /* 霁雪 · 甜白与青花双弦 */
  :root.theme-jixue .account-bar{box-shadow:inset 0 -1px 0 var(--theme-edge),inset 0 -3px 0 var(--theme-raised),inset 0 -4px 0 color-mix(in srgb,var(--theme-accent) 45%,transparent)}
  :root.theme-jixue .viewtabs>[role=tab]{border-radius:999px}
  :root.theme-jixue .viewtabs>[aria-selected=true]{background:var(--theme-raised);color:var(--theme-accent);border-color:var(--theme-edge);bottom:0;height:27px;box-shadow:0 1px 3px rgba(30,50,80,.10),inset 0 1px 0 #fff;font-weight:600}
  :root.theme-jixue .datatabs [aria-selected=true]::after{height:4px;bottom:0;border-radius:0;background:linear-gradient(var(--theme-accent),var(--theme-accent)) top/100% 1.5px no-repeat,linear-gradient(var(--theme-accent),var(--theme-accent)) bottom/100% 1px no-repeat;opacity:.9}
  :root.theme-jixue :is(.recent-card,.data-body,fieldset,dialog){box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
  :root.theme-jixue .recent-card.current{box-shadow:inset 3px 0 var(--theme-accent),inset 0 1px 0 #fff}
  :root.theme-jixue .theme-trigger-dot{background:radial-gradient(circle at 35% 30%,#fff 0 18%,var(--theme-accent) 60%);box-shadow:0 0 0 1px color-mix(in srgb,var(--theme-accent) 30%,transparent)}
  :root.theme-jixue :is(.theme-dialog .theme-gallery-footer button,.primary-action){background:linear-gradient(180deg,color-mix(in srgb,var(--theme-accent) 88%,#fff),var(--theme-accent));border-color:var(--theme-accent);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}

  /* 赭石 · 麻纸与陶土 */
  :root.theme-ochre .viewtabs>[role=tab]{border-radius:999px}
  :root.theme-ochre .viewtabs>[aria-selected=true]{background:var(--theme-raised);color:var(--theme-accent);border-color:var(--theme-edge);bottom:0;height:27px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--theme-accent) 35%,transparent);font-weight:600}
  :root.theme-ochre .datatabs [aria-selected=true]::after{height:3px;border-radius:3px}
  :root.theme-ochre .theme-trigger-dot{background:radial-gradient(circle at 38% 32%,color-mix(in srgb,var(--theme-accent) 55%,#fff),var(--theme-accent) 62%)}
  :root.theme-ochre :is(.theme-dialog .theme-gallery-footer button,.primary-action){background:linear-gradient(180deg,color-mix(in srgb,var(--theme-accent) 86%,#fff2e0),var(--theme-accent));border-color:color-mix(in srgb,var(--theme-accent) 85%,#000);color:#FFF8EE;box-shadow:inset 0 1px 0 rgba(255,236,210,.28),0 1px 2px rgba(80,40,10,.18)}
  :root.theme-ochre :is(input,select,textarea){background-color:color-mix(in srgb,var(--theme-raised) 85%,transparent)}
  :root.theme-ochre .data-body{background-color:color-mix(in srgb,var(--theme-raised) 72%,transparent)}
  /* Windows ClearType draws orange/blue edges on near-black ink; on warm paper the blue edge reads green.
     A separate, non-opaque layer makes Chrome use grayscale smoothing for the sidebar text instead. */
  :root:is(.theme-wenmo,.theme-ochre) .data-body{will-change:transform}

  /* 余烬 · 炭灰与余火 */
  :root.theme-ember .viewtabs>[aria-selected=true]{background:var(--theme-raised);color:var(--theme-accent);border-color:var(--theme-edge);bottom:0;height:27px;box-shadow:inset 0 -2px 0 var(--theme-accent),0 6px 16px -8px rgba(229,139,99,.55);font-weight:600}
  :root.theme-ember .datatabs [aria-selected=true]::after{box-shadow:0 0 8px 1px rgba(229,139,99,.55)}
  :root.theme-ember:root .data-sidebar.data-sidebar{background-image:radial-gradient(ellipse 120% 40% at 50% 104%,rgba(229,139,99,.07),transparent 70%),var(--cl-surface);background-size:auto,var(--cl-surface-size)}
  :root.theme-ember .theme-trigger-dot{box-shadow:0 0 6px 1px rgba(229,139,99,.6)}
  :root.theme-ember :is(.theme-dialog .theme-gallery-footer button,.primary-action){background:var(--theme-accent);border-color:var(--theme-accent);color:#1A1816}
  :root.theme-ember :is(.theme-dialog .theme-gallery-footer button,.primary-action):hover{box-shadow:0 0 14px 1px rgba(229,139,99,.45)}
  :root.theme-ember :is(input,select,textarea):focus-visible{box-shadow:0 0 0 3px var(--cl-focus),0 0 12px rgba(229,139,99,.25)}

  /* 沧溟 · 深海与潮光 */
  :root.theme-abyss .viewtabs>[aria-selected=true]{background:var(--theme-raised);color:var(--theme-accent);border-color:var(--theme-edge);bottom:0;height:27px;box-shadow:inset 0 2px 0 var(--theme-accent),0 -6px 16px -8px rgba(127,201,217,.55);font-weight:600}
  :root.theme-abyss .datatabs [aria-selected=true]::after{box-shadow:0 0 8px 1px rgba(127,201,217,.5)}
  :root.theme-abyss:root .data-sidebar.data-sidebar{background-image:linear-gradient(to bottom,rgba(127,201,217,.045),transparent 40%),var(--cl-surface);background-size:auto,var(--cl-surface-size)}
  :root.theme-abyss .theme-trigger-dot{box-shadow:0 0 6px 1px rgba(127,201,217,.6)}
  :root.theme-abyss :is(.theme-dialog .theme-gallery-footer button,.primary-action){background:var(--theme-accent);border-color:var(--theme-accent);color:#0B181D}
  :root.theme-abyss :is(.theme-dialog .theme-gallery-footer button,.primary-action):hover{box-shadow:0 0 14px 1px rgba(127,201,217,.4)}

  /* Gallery cards preview each material. */
  .theme-card:is([data-theme-choice=wenmo],[data-theme-choice=ochre],[data-theme-choice=jixue],[data-theme-choice=ember],[data-theme-choice=abyss]) .theme-preview::after{content:"";position:absolute;inset:0;pointer-events:none}
  .theme-card[data-theme-choice=wenmo] .theme-preview::after{background:radial-gradient(ellipse 90% 80% at 50% 45%,transparent 55%,rgba(110,84,46,.14)),var(--tx-wm-fibre) 0 0/190px 190px,var(--tx-wm-grain) 0 0/110px 110px}
  .theme-card[data-theme-choice=ochre] .theme-preview::after{background:radial-gradient(ellipse 90% 80% at 50% 45%,transparent 55%,rgba(120,72,30,.14)),var(--tx-oc-fibre) 0 0/210px 210px,var(--tx-oc-grain) 0 0/100px 100px}
  .theme-card[data-theme-choice=jixue] .theme-preview::after{background:radial-gradient(ellipse 70% 60% at 30% 15%,rgba(255,255,255,.7),transparent 70%),var(--tx-jx-frost) 0 0/100px 100px}
  .theme-card[data-theme-choice=ember] .theme-preview::after{background:radial-gradient(ellipse 80% 55% at 50% 108%,rgba(229,139,99,.22),transparent 72%),var(--tx-em-grain) 0 0/100px 100px}
  .theme-card[data-theme-choice=abyss] .theme-preview::after{background:radial-gradient(ellipse 85% 60% at 50% -10%,rgba(127,201,217,.2),transparent 70%),var(--tx-ab-caustic) 0 0/260px 260px}

  /* Phones: page backgrounds carry the texture; the chart has its own layer. */
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) body.mobile-ui #mobile-app .m-page{background-image:var(--cl-surface);background-size:var(--cl-surface-size)}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) body.mobile-ui #mobile-app .m-corner button{background:transparent;border-color:transparent}
  :root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) body.mobile-ui #mobile-app .m-chart,:root:is(.theme-wenmo,.theme-jixue,.theme-ochre,.theme-ember,.theme-abyss) body.mobile-ui .workspace .plot-pane{background-image:none}
  :root.theme-wenmo body.mobile-ui #mobile-app :is(.m-button.primary,.m-hua-segment button[aria-pressed=true]){background:var(--tx-wm-seal),var(--m-accent);background-size:90px 90px,auto}
  :root.theme-wenmo body.mobile-ui .m-details-tabs button[aria-selected=true]:after{height:5px;width:34px;left:calc(50% - 17px);bottom:-1px;background:var(--tx-wm-brush-seal) center/100% 100% no-repeat}
}
/* 使用说明对话框（2026-11-08）：顶部搜索栏固定，条目按功能分组；版权与许可放在底栏一行小字。 */
#help-dialog{width:min(640px,calc(100vw - 30px));height:min(86vh,820px)}
#help-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
#help-dialog>:not(.help-content){flex:none}
#help-dialog .help-search-row{display:flex;align-items:center;gap:8px;padding:10px 18px;border-bottom:1px solid var(--theme-edge,#d4ddca)}
#help-dialog .help-search{flex:1;min-width:0;display:flex}
#help-dialog .help-search input{flex:1;min-width:0;padding:6px 10px;font-size:13px;color:var(--theme-ink,#313b28);background:var(--theme-raised,#fff);border:1px solid var(--theme-edge,#b8c4ac);border-radius:4px}
#help-dialog .help-search input::placeholder{color:var(--theme-muted,#8b977f)}
#help-dialog .help-count{font-size:11px;color:var(--theme-muted,#8b977f);white-space:nowrap}
#help-dialog .help-content{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;padding:4px 22px 14px;line-height:1.7}
#help-dialog .help-group{margin-top:10px}
#help-dialog .help-group h3{margin:0 0 2px;font-size:14px;font-weight:600;color:var(--theme-accent,#38703a)}
#help-dialog .help-tag{margin-left:6px;vertical-align:2px;font-size:10px;font-weight:400;line-height:1.5;padding:0 6px;border:1px solid currentColor;border-radius:8px;opacity:.75}
#help-dialog .help-group ul{margin:0;padding-left:18px}
#help-dialog .help-group li{margin:1px 0}
#help-dialog .help-group li[hidden]{display:none}
#help-dialog kbd{font:11px/1.35 Consolas,"Courier New",monospace;padding:0 4px;border:1px solid var(--theme-edge,#c4cdb9);border-radius:3px;background:var(--theme-raised,#fff);white-space:nowrap}
#help-dialog mark{color:inherit;background:color-mix(in srgb,var(--theme-gold,#e8c96a) 50%,transparent);border-radius:2px}
#help-dialog .help-empty{margin:18px 0;text-align:center;color:var(--theme-muted,#8b977f)}
#help-dialog .dialog-footer{align-items:center}
#help-dialog .dialog-footer .credits{flex:1;min-width:0;margin:0;padding:0;border:0;font-size:10.5px;line-height:1.5}
#help-dialog .credits span{white-space:nowrap}
/* 「用户断语」页只读（2026-11-08）：案例反馈块与「我以前写的」折叠区。 */
.case-note-feedback{margin:0 0 6px;padding:10px 12px;border:1px solid var(--theme-edge);border-radius:6px;background:var(--theme-raised)}
.case-note-feedback summary{display:flex;align-items:baseline;gap:8px;cursor:pointer;font-size:13px;color:var(--theme-accent)}
.case-note-feedback summary small{font:11px/1.7 "Microsoft YaHei",sans-serif;color:var(--theme-muted)}
.case-note-feedback p{margin:8px 0 0;max-height:46vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-family:"SimSun",serif}
.case-note-mine{margin-top:16px}
.case-note-mine summary{cursor:pointer;font-size:12px;color:var(--theme-muted)}
/* 盘上神煞搜索（放大镜 / Ctrl+F，2026-11-08）：面板在放大镜下方；高亮用黄底描边 + 深色字，不改盘面布局，各主题都看得清。 */
.chart-search-toggle[aria-expanded=true]{opacity:1;background:var(--theme-hover,#e0ead7);border-color:var(--theme-edge,#99ae8c)}
.chart-search-panel{position:absolute;z-index:8;width:min(236px,calc(100% - 24px));box-sizing:border-box;padding:8px 10px;border:1px solid var(--theme-edge,#b8c4ac);border-radius:6px;background:var(--theme-panel,#fafbf7);color:var(--theme-ink,#313b28);box-shadow:0 8px 28px #0003;font-size:12px}
.chart-search-panel[hidden]{display:none}
.chart-search-row{display:flex;gap:6px;align-items:center}
.chart-search-row input{flex:1;min-width:0;padding:6px 8px;font-size:13px;color:var(--theme-ink,#313b28);background:var(--theme-raised,#fff);border:1px solid var(--theme-edge,#b8c4ac);border-radius:4px}
.chart-search-row button{flex:none;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--theme-muted,#7d8a70);font-size:16px;line-height:1}
.chart-search-row button:hover{border-color:var(--theme-edge,#b8c4ac);background:var(--theme-hover,#e0ead7)}
#search-result{margin:6px 2px 0;line-height:1.6;color:var(--theme-muted,#6f7c64)}
.chart-search-names{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;max-height:54px;overflow:auto}
.chart-search-names[hidden]{display:none}
.chart-search-names button{padding:0 6px;font-size:12px;line-height:1.6;border:1px solid var(--theme-edge,#b8c4ac);border-radius:10px;background:var(--theme-raised,#fff);color:var(--theme-ink,#313b28)}
.chart-search-names button[aria-pressed=true]{background:#ffd23f;border-color:#c99a00;color:#1d1b16}
#wheel text.search-hit,.night #wheel text.search-hit{paint-order:stroke fill;stroke:#ffd23f!important;stroke-width:9px!important;stroke-linejoin:round;stroke-opacity:1!important;fill:#1d1b16!important;fill-opacity:1!important;opacity:1!important}
@media print{.chart-search-panel,.chart-search-toggle{display:none!important}}

#asterism-panel{position:fixed;z-index:95;width:min(26rem,calc(100vw - 12px));max-width:calc(100vw - 8px);max-height:min(70vh,42rem);display:flex;flex-direction:column;color:var(--theme-ink,#313b28);background:var(--theme-raised,#fffdf6);border:1px solid var(--theme-edge,#b8c4ac);border-radius:8px;box-shadow:0 8px 32px #0003;font:15px/1.7 "SimSun","Songti SC",serif}
#asterism-panel[data-sized]{max-height:calc(100vh - 8px)}
#asterism-panel[hidden],[data-research-only][hidden]{display:none!important}
#asterism-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:.8em;padding:.4em .8em .4em 1.067em;cursor:move;touch-action:none;user-select:none;border-bottom:1px solid var(--theme-edge,#b8c4ac)}
#asterism-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#asterism-close{flex:none;border:0;padding:0;background:transparent;color:inherit;cursor:pointer;font:1.467em/1 sans-serif;width:1.545em;height:1.545em}
#asterism-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:.8em 1.067em 1.067em;scrollbar-gutter:stable;border-radius:0 0 8px 8px}
#asterism-panel .atlas-resize{position:absolute;z-index:1;appearance:none;display:block;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--theme-muted,#6b715f);touch-action:none;user-select:none}
.atlas-resize[data-edge="left"],.atlas-resize[data-edge="right"]{width:10px;top:5px;bottom:5px;cursor:ew-resize}
.atlas-resize[data-edge="left"]{left:-5px}.atlas-resize[data-edge="right"]{right:-5px}
.atlas-resize[data-edge="top"],.atlas-resize[data-edge="bottom"]{height:10px;left:5px;right:5px;cursor:ns-resize}
.atlas-resize[data-edge="top"]{top:-5px}.atlas-resize[data-edge="bottom"]{bottom:-5px}
.atlas-resize[data-edge="corner"]{left:-1px;bottom:-1px;width:23px;height:23px;cursor:nesw-resize}
.atlas-resize[data-edge="corner"]::after{content:"";position:absolute;bottom:4px;left:4px;width:12px;height:12px;clip-path:polygon(0 0,0 100%,100% 100%);background:repeating-linear-gradient(45deg,currentColor 0 1.5px,transparent 1.5px 4px)}
.atlas-resize:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
.atlas-name-link{display:inline-block;max-width:100%;padding:3px 0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;white-space:normal;overflow-wrap:anywhere;text-align:inherit}
.atlas-name-link:hover,.atlas-name-link:active,.atlas-name-link:focus-visible{background:transparent;color:var(--theme-accent,currentColor);text-decoration:underline;text-underline-offset:.16em}
.atlas-summary h3,.atlas-book h3,.atlas-entry h4{font-size:1.03em;margin:0 0 .35em}
.atlas-summary p,.atlas-entry p{margin:.3em 0}
.atlas-summary small,.atlas-book small{color:var(--theme-muted,#6b715f)}
.atlas-book{margin-top:1em;border-top:1px solid var(--theme-edge,#b8c4ac);padding-top:.8em}
.atlas-book h3{font-size:1.15em}
.atlas-entry{padding:.65em 0;border-bottom:1px solid var(--theme-edge,#b8c4ac)}
.atlas-entry summary{cursor:pointer;font-weight:600}
.atlas-entry p{white-space:pre-wrap;overflow-wrap:anywhere}
.planet-table td.asterism-cell{max-width:6em;white-space:normal;line-height:1.35}
#star-tip{max-width:calc(100vw - 12px)}
.life-officer-tip{position:fixed;max-width:min(29em,calc(100vw - 16px));white-space:normal;overflow-wrap:anywhere;pointer-events:none}
#star-tip[data-atlas-tip]{pointer-events:auto;max-width:min(31em,calc(100vw - 12px))}
.atlas-tip-result,.atlas-version{display:flex;align-items:baseline;flex-wrap:wrap;gap:.3em .6em}
.atlas-tip-result{margin-top:.25em;white-space:normal}
.atlas-tip-result select,.atlas-version select{font:inherit;color:inherit;max-width:100%;min-width:0}
.atlas-version{float:right;margin:0 0 .35em .8em;font-size:.86em}
.atlas-summary::after{content:"";display:block;clear:both}
.atlas-officer>div{margin:.35em 0 0 .5em}
#printed-chart{display:none}
@media print{
  #asterism-panel{display:none!important}
  body:has(>#printed-chart){display:block!important;margin:0!important;padding:0!important;height:auto!important;overflow:visible!important;background:#fff!important}
  body:has(>#printed-chart)>:not(#printed-chart){display:none!important}
  #printed-chart{display:block;width:230mm;max-width:100%;margin:0 auto;break-inside:avoid;background:white}
  #printed-chart>svg{display:block;width:100%;height:auto;max-height:184mm;margin:0}
}
.research-content .planet-table{width:100%;table-layout:fixed}
.research-content .planet-table th:nth-child(1){width:7%}
.research-content .planet-table th:nth-child(2),.research-content .planet-table th:nth-child(3){width:25%}
.research-content .planet-table th:nth-child(4){width:25%;white-space:normal}
.research-content .planet-table th:nth-child(5){width:18%}
.research-content .planet-table td:nth-child(4){white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.research-content .planet-table td.asterism-cell{max-width:none;white-space:normal;overflow-wrap:anywhere}

#case-feedback-data{padding:12px 14px;overflow:auto}#case-feedback-heading{font:inherit;font-weight:600;margin:0 0 .65em}#case-feedback-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;user-select:text}
#chart-terms [role=button]{cursor:pointer}
#chart-terms [role=button]:hover text:first-of-type,#chart-terms [role=button]:focus-visible text:first-of-type{text-decoration:underline}
#mobile-chart-terms{display:none}
.mobile-ui:not(.mobile-minguan):not(.mobile-luming):not(.mobile-liuyao) #mobile-chart-terms:not(:empty){display:grid;justify-items:start;gap:6px;margin:6px 14px;font-size:14px;line-height:1.5;color:var(--m-text)}
#mobile-chart-terms button{white-space:pre-line;text-align:left;font:inherit;background:transparent;color:inherit;border:0;padding:4px 0}
@media(orientation:landscape) and (max-height:520px){#mobile-chart-terms{grid-column:1/-1;grid-row:4}}
#term-dialog{width:min(650px,calc(100vw - 28px))}
#term-dialog .dialog-content{max-height:70vh;overflow:auto}
#term-method{margin:0 0 10px}
#term-year{list-style:none;padding:0;margin:0;display:grid;grid-template-rows:repeat(12,auto);grid-auto-flow:column;column-gap:24px}
#term-year li{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid color-mix(in srgb,currentColor 15%,transparent)}
#term-year time{font-variant-numeric:tabular-nums;white-space:nowrap}
#term-year [aria-current]{font-weight:bold}
@media(max-width:580px){#term-year{grid-auto-flow:row;grid-template-rows:none}}
