:root{--ink:#242626;--muted:#626965;--line:#deddd4;--paper:#faf9f4;--red:#e94d38;--navy:#203638;--cyan:#57bdd0;--font:"Inter","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;--emoji:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);line-height:1.5}button,select{font:inherit}button{cursor:pointer}button:disabled,select:disabled{opacity:.52;cursor:default}button:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #097f9c;outline-offset:3px}button,select{touch-action:manipulation}[hidden]{display:none!important}
.mast{height:70px;border-bottom:1px solid var(--line);background:#fdfcf8}.bar,main{width:min(1184px,calc(100% - 96px));margin:auto}.bar{height:100%;display:flex;align-items:center;gap:44px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:850;letter-spacing:-.075em;white-space:nowrap}.brand canvas{width:37px;height:37px}.nav-current{height:100%;display:flex;align-items:center;position:relative;font-size:.9rem;font-weight:700}.nav-current:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--red)}button{color:var(--ink)}.plain,.iconbtn{border:0;background:transparent}.top-help{margin-left:auto;display:flex;gap:7px;align-items:center;font-size:.9rem;color:#4e5350;padding:10px 0}
i[data-icon]{display:inline-flex;width:18px;height:18px;flex:none}i svg{width:100%;height:100%;display:block}.intro{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:194px;padding:24px 7px 23px 2px}.intro h1{font-size:clamp(36px,3.6vw,54px);letter-spacing:-.065em;line-height:1.16;margin:0;font-weight:900}.intro p{font-size:1.02rem;line-height:1.65;color:#60625d;margin:12px 0 0}.intro canvas{display:block;width:clamp(230px,27vw,332px);height:auto;flex:none}
.workbench{display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);gap:22px;align-items:stretch}.card{background:#fffefa;border:1px solid #d6d6cc;border-radius:18px;box-shadow:0 3px 0 rgba(55,53,39,.05);overflow:hidden;display:flex;flex-direction:column;min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:19px 23px;border-bottom:1px solid var(--line);min-height:76px}.card h2,.legend h2,.dialoghead h2{font-size:1.2rem;line-height:1.4;margin:0;font-weight:800;letter-spacing:-.045em}.card h2{display:flex;gap:10px;align-items:center}.card h2 i{width:22px;height:22px;color:#344343}.outline,.primary,.zoom,.iconbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;border-radius:9px;line-height:1.2}.outline,.zoom,.iconbtn{background:#fffefa;border:1px solid #cccfc6}.outline,.primary{min-height:44px;padding:0 17px;font-size:.94rem}.outline:hover,.zoom:hover,.iconbtn:hover,.plain:hover{background:#f2f1e9}.small{min-height:36px;padding:0 13px;font-size:.88rem}.small i{width:16px;height:16px}.source{position:relative}.inset,.outbody{padding:20px 22px}.inset{padding-bottom:12px;flex:1;display:flex;flex-direction:column}.fileline{min-width:0;display:flex;align-items:center;gap:10px;margin-bottom:15px}.sheet-icon{display:grid;place-items:center;width:36px;height:40px;border-radius:8px;background:#f1f0e9;color:#585b52}.fileinfo{min-width:0;display:grid}.fileinfo strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:750}.fileinfo>span{color:var(--muted);font-size:.78rem;margin-top:1px;font-variant-numeric:tabular-nums}#exampleTag{margin-left:auto;white-space:nowrap;padding:3px 8px;border:1px solid #e1ded2;background:#f9f7ed;border-radius:5px;color:#666456;font-size:.75rem}
.preview-wrap{position:relative;min-height:0;flex:1;display:flex;border:1px solid #c9cac2;background:#e3e2da;border-radius:10px;overflow:hidden}.preview{width:100%;height:clamp(245px,29vh,323px);overflow:auto;overscroll-behavior:contain;scrollbar-color:#adada4 #e3e2dc;scrollbar-width:thin;background:#ccc}.image-size{position:relative;font-size:0}.image-size img{width:100%;height:auto;display:block}.zoom{position:absolute;bottom:9px;right:10px;width:32px;height:32px;border-radius:7px;box-shadow:0 2px 5px #0002}.zoom i{width:16px;height:16px}#focusLane{position:absolute;left:0;width:100%;border:2px solid #c34326;box-shadow:0 0 0 1px #fffc inset;pointer-events:none}.range{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:15px}.range label{display:flex;align-items:center;gap:7px;font-weight:650;font-size:.88rem;color:#414642}.range label i{width:16px;height:16px}.selectwrap{position:relative}.selectwrap select{appearance:none;cursor:pointer;border:1px solid var(--line);background:#fffefa;border-radius:7px;padding:6px 30px 6px 10px;color:#454b46;font-size:.86rem;max-width:100%;min-height:34px}.selectwrap i{pointer-events:none;position:absolute;right:9px;top:10px;width:13px;height:13px}.card-foot{padding:0 22px 18px}.hint{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.79rem}.hint i{width:14px;height:14px}
.status{display:inline-flex;gap:6px;align-items:center;color:#48665b;font-size:.79rem;font-weight:600}.status:before{content:"";width:7px;height:7px;border-radius:50%;background:#688b70}.status[data-state="error"]{color:#9f3b27}.status[data-state="error"]:before{background:#c4573d}.outbody{display:flex;flex:1;flex-direction:column;gap:0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stat{padding:10px 14px 8px;border:1px solid #e2e2d9;border-radius:10px}.stat span{color:#565b55;font-size:.83rem;font-weight:600;display:flex;align-items:center;gap:6px}.stat strong{font-family:"Barlow",var(--font);font-size:clamp(26px,2.65vw,38px);line-height:1.18;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.total{background:#f2f2ea}.red{background:#fff0e9;border-color:#f0dcd1}.blue{background:#e9f4f4;border-color:#d2e7e7}.dot,.note{display:inline-block;border-radius:100%;flex:none}.dot{width:8px;height:8px}.don{background:#ee604c}.ka{background:#51bfd4}.editorbar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:17px 0 9px}.editorbar>span{font-size:.91rem;font-weight:700}.seg{display:flex;background:#edede6;border-radius:8px;padding:3px;gap:2px}.seg button{background:none;border:1px solid transparent;font-size:.82rem;font-weight:600;color:#64685e;border-radius:6px;padding:3px 11px}.seg button[aria-pressed="true"]{background:#fffefa;border-color:#d9dbd1;box-shadow:0 1px 2px #0001;color:#292d29}.output{flex:1 1 155px;min-height:155px;max-height:260px;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;font-family:var(--emoji);font-size:23px;line-height:1.54;background:#f9f9f3;border:1px solid #dedfd4;border-radius:9px;padding:13px 16px;scrollbar-color:#c4c6b9 transparent;scrollbar-width:thin}.output.empty{font:1rem/1.6 var(--font);color:var(--muted)}.actions{margin-top:17px;display:flex;gap:9px}.actions .primary{flex:1;background:var(--red);border:1px solid #d23c2b;color:white;box-shadow:0 2px 0 #ab3828;font-weight:750}.primary:hover{background:#d84330}.primary:active{transform:translateY(1px);box-shadow:none}.actions .outline{min-width:125px}
.legend{display:flex;align-items:center;gap:25px;border:1px solid #dfded3;background:#f4f3eb;border-radius:12px;margin:22px 0 30px;padding:13px 19px;flex-wrap:wrap}.legend h2{font-size:.9rem;letter-spacing:0;margin-right:2px}.legend>span{display:inline-flex;align-items:center;gap:6px;font-weight:650;font-size:.91rem}.legend .note{width:17px;height:17px;border:1.5px solid #263434;box-shadow:inset 0 0 0 1.5px #fff9}.legend i{width:14px;height:14px;color:#777e74}.rulelabel,.legend p{font-size:.84rem;font-weight:400;color:#61655d}.moji{font:21px/1 var(--emoji)}.legend p{margin:0 0 0 auto}#dropmessage{position:absolute;inset:8px;display:grid;place-items:center;border:2px dashed #bc4935;border-radius:14px;background:#fff3e9ee;font-weight:bold;font-size:1.2rem;pointer-events:none}#feedback{background:#fff1d6;border:1px solid #ddca99;border-radius:8px;padding:9px 14px;margin-top:12px;color:#584521}
dialog{padding:22px 24px;background:#fffefa;color:var(--ink);border:1px solid #cbcfc2;border-radius:16px;width:min(480px,calc(100% - 28px));box-shadow:0 20px 70px #1d252a44;max-height:90dvh}dialog::backdrop{background:#23272480}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.iconbtn{width:32px;height:32px}dialog ol{padding-left:23px}dialog li{padding-left:3px;margin:14px 0}dialog li::marker{color:#b44733;font-weight:700}dialog li p{font-size:.93rem;margin:4px 0;color:var(--muted)}#zoomDialog{width:min(930px,calc(100% - 20px));padding:15px}#zoomscroll{overflow:auto;max-height:73dvh}#zoomscroll img{display:block;width:max(100%,720px);height:auto}
@media(min-width:1450px){.intro{min-height:210px}.preview{height:300px}}
@media(max-width:1000px){.bar,main{width:calc(100% - 44px)}.workbench{gap:14px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.inset,.outbody{padding:16px}.inset{padding-bottom:12px}.card-head{padding:16px}.card-foot{padding-left:16px}.intro{min-height:157px}.legend{gap:15px}.stat{padding:8px 10px}.output{padding:10px;font-size:22px}}
@media(max-width:720px){.bar,main{width:calc(100% - 28px)}.mast{height:55px}.bar{gap:22px}.brand{font-size:18px;gap:6px}.brand canvas{width:30px;height:30px}.nav-current{font-size:.8rem}.top-help{font-size:.82rem}.intro{min-height:135px;padding:22px 0;position:relative;gap:8px}.intro h1{font-size:clamp(28px,6.6vw,42px)}.intro p{font-size:.9rem;margin-top:8px;max-width:300px}.intro canvas{width:clamp(80px,25vw,156px)}.workbench{grid-template-columns:1fr;gap:14px}.card{border-radius:14px}.card-head{min-height:61px}.card h2{font-size:1.08rem}.preview{height:176px}.range{padding-top:12px}.fileline{margin-bottom:10px}.card-foot{padding-bottom:13px}.stat strong{font-size:29px}.output{flex:auto;height:178px;min-height:0}.stats{gap:7px}.legend{column-gap:17px;row-gap:6px;padding:12px 14px;margin-top:14px}.legend p{width:100%;margin:0}.actions{margin-top:13px}.actions .outline{min-width:112px}.editorbar{margin-top:12px}}
@media(max-width:370px){.nav-current{display:none}.intro canvas{width:72px}.card-head,.inset,.outbody{padding-left:12px;padding-right:12px}.legend{column-gap:10px}}
#rhythmHint{margin:0 0 9px;font-size:.8rem;color:#626960}.output.rhythm{white-space:pre;word-break:normal;overflow-wrap:normal}@media(max-width:720px){.seg button{padding-inline:8px}}

.yellow{background:#edba41}.barstat{background:#fcf5de;border-color:#eaddb8}
@media(max-width:380px){.stat{padding-inline:6px}.stat span{gap:3px}}
