/* Tool shell only. Calculation code and the colored chart content are untouched. */
:root{color-scheme:light}
html:not(.site-embedded) body{background:#fff!important;color:#203b2c}
#form-view{--ink:#203b2c;--ink-2:#425b4a;--ink-3:#607166;--card:#fff;--line:#c8d8cd;--green:#216447;--seal:#216447;max-width:720px;padding:0 32px 40px;min-height:75vh}
html:not(.site-embedded) .shell-top{height:80px;border-bottom:1px solid #dbe6df;gap:16px}
html:not(.site-embedded) .shell-title{font:600 30px/1.3 var(--kai);color:#173e2a;letter-spacing:1px}
html:not(.site-embedded) .shell-back,html:not(.site-embedded) .shell-brand{color:#216447}
html:not(.site-embedded) .intro{color:#5b6d62;font-size:16px;line-height:1.8;margin:24px 0}
html:not(.site-embedded) .bf{background:#f6f9f7;border:1px solid #dbe6df;border-radius:4px;box-shadow:none;padding:14px 24px 24px}
html:not(.site-embedded) .bf-row{border-bottom:1px solid #dbe6df;min-height:62px;gap:16px}
html:not(.site-embedded) .bf-label{color:#425b4a;font-size:16px}
html:not(.site-embedded) #form-view select,html:not(.site-embedded) #form-view input:not([type=checkbox]){background:#fff;color:#203b2c;border:1px solid #a6bfaf;border-radius:3px;font-size:16px;min-height:42px;appearance:auto;-webkit-appearance:auto}
html:not(.site-embedded) select option{background:#fff;color:#203b2c}
html:not(.site-embedded) .bf-seg{background:#e5eee8;border:0;box-shadow:none;border-radius:3px;padding:3px}
html:not(.site-embedded) .bf-seg button{color:#425b4a;border-radius:2px;min-height:38px}
html:not(.site-embedded) .bf-seg button.is-on{background:#216447;color:#fff}
html:not(.site-embedded) .bf-check,html:not(.site-embedded) .bf-tip,html:not(.site-embedded) .bf-note,html:not(.site-embedded) .bf-ts-text{color:#5b6d62}
html:not(.site-embedded) .bf-switch input:checked+i{background:#216447}
html:not(.site-embedded) .bf-submit{background:#216447;color:#fff;border-radius:4px;box-shadow:none;min-height:52px;margin-top:18px;cursor:pointer}
html:not(.site-embedded) .bf-error{color:#94362d}
html:not(.site-embedded) .bz-head{position:relative!important;top:auto!important;background:#fff;border-color:#dbe6df;backdrop-filter:none;box-shadow:none}
html:not(.site-embedded) .bz-head-title b,html:not(.site-embedded) .bz-head-back{color:#173e2a}
html:not(.site-embedded) .bz-head-title small,html:not(.site-embedded) .bz-head-home{color:#5b6d62}
html:not(.site-embedded) .bz-tool{color:#216447;border-color:#afc6b8;border-radius:3px;background:#fff}
html:not(.site-embedded) .bz-tool.is-primary{color:#fff;background:#216447;border-color:#216447}
html:not(.site-embedded) body .mp-root{box-shadow:0 0 0 1px #dbe6df!important;border-radius:3px}
body #site-tabbar.site-tabbar{background:#fff;border-top:1px solid #dbe6df;backdrop-filter:none;-webkit-backdrop-filter:none}
body #site-tabbar.site-tabbar a{color:#5b6d62;font-size:15px;position:relative}
body #site-tabbar.site-tabbar a[aria-current]{color:#216447;font-weight:600}
body #site-tabbar.site-tabbar a[aria-current]:after{content:'';position:absolute;bottom:7px;left:30%;right:30%;height:2px;background:#216447}
.tool-motion-toggle{display:block;margin:8px 0 8px auto;border:0;background:none;color:#526c5d;font:13px/1.5 sans-serif;min-height:36px;cursor:pointer}
body[data-tool-kind=liuyao]{--bg:#fff;--card:#fff;--card2:#f5f8f6;--ink:#203b2c;--sub:#425b4a;--muted:#5b6d62;--faint:#62756a;--gold:#216447;--gold2:#164e37;--line:#dbe6df;--line2:#aec5b6;--red:#ad4031;--redbg:#f9efec}
body[data-tool-kind=liuyao] .page{max-width:820px;padding:0 24px 40px}
body[data-tool-kind=liuyao] .top{padding:28px 4px 20px}body[data-tool-kind=liuyao] .top h1{font-size:30px}
body[data-tool-kind=liuyao] .card{border-radius:4px;background:#fff;box-shadow:none;padding:22px}
body[data-tool-kind=liuyao] .setup{background:#f5f8f6}
body[data-tool-kind=liuyao] :is(input,select,textarea){background:#fff;color:#203b2c;color-scheme:light;border-radius:3px}
body[data-tool-kind=liuyao] :is(.seg,.tabs){background:#eaf2ed;border-radius:3px}
body[data-tool-kind=liuyao] .primary{background:#216447;color:#fff;border-radius:4px;box-shadow:none}
body[data-tool-kind=liuyao] .rule{background:#edf3ef;border-radius:3px}
body[data-tool-kind=liuyao] button{border-radius:3px}
body[data-tool-kind=liuyao] .s-白虎{color:#56645c}body[data-tool-kind=liuyao] .s-青龙{color:#2f7952}body[data-tool-kind=liuyao] .s-朱雀{color:#ad4031}body[data-tool-kind=liuyao] .s-勾陈{color:#856036}body[data-tool-kind=liuyao] .s-螣蛇{color:#78518b}body[data-tool-kind=liuyao] .s-玄武{color:#346786}
body[data-tool-kind=liuyao] :is(.dock,.dialog-card,.modal-card){background:#fff;color:#203b2c}
button,a[href],summary{touch-action:manipulation;transition:background-color .18s,color .18s,box-shadow .18s,transform .18s}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover{filter:brightness(1.08);box-shadow:0 4px 12px #123b241c;transform:translateY(-1px)}a[href]:hover{background:#eaf3ee;color:#216447}}
button:not(:disabled):active{transform:scale(.98);box-shadow:none}
:is(button,a,input,select,summary):focus-visible{outline:3px solid #216447;outline-offset:3px}.bf-switch:focus-within{outline:3px solid #216447;outline-offset:3px}
html.motion-off *,html.motion-off *::before,html.motion-off *::after{animation:none!important;transition:none!important}
@media(max-width:760px){#form-view{padding:0 18px 30px}.shell-top{gap:10px!important}html:not(.site-embedded) .shell-title{font-size:24px}html:not(.site-embedded) .bf{padding:10px 14px 18px}html:not(.site-embedded) .bf-row{gap:8px}.bf-seg button{padding:6px 12px}html:not(.site-embedded) .intro{font-size:15px;margin:18px 0}.bf-label{width:4.2em}body[data-tool-kind=liuyao] .page{padding:0 12px 28px}body[data-tool-kind=liuyao] .card{padding:18px 12px}body[data-tool-kind=liuyao] .top h1{font-size:26px}body[data-tool-kind=liuyao] .top{padding-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
