.poly-score{background:#fffdf8;color:#192122;padding:14px;border:1px solid #d8dfd3;border-radius:8px;box-sizing:border-box;font:14px/1.7 Arial,"Microsoft YaHei",sans-serif;color-scheme:light}
.poly-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.poly-toolbar label{display:flex;align-items:center;gap:5px;font-size:12px;flex-wrap:wrap;max-width:100%}.poly-toolbar select,.poly-toolbar input{color:#17211b;background:#fff;border:1px solid #bac6b4;padding:7px;max-width:100%;box-sizing:border-box}.poly-toolbar input[type=number]{width:82px}.poly-toolbar input[type=file]{width:220px}.poly-toolbar input[type=checkbox]{width:16px;height:16px}.poly-toolbar button,.poly-window>button{color:#173c27;background:#f0f6ed;border:1px solid #cbd6c2;border-radius:5px;padding:7px;cursor:pointer}.poly-status{min-height:1.5em;color:#264c31}.poly-status.error{color:#a12020}
.poly-timeline{overflow:auto;max-width:100%}.poly-window{margin:16px 0;border-top:1px solid #d9e1d5;padding-top:10px}.poly-window svg{display:block;width:100%;min-width:760px;background:#fffdf8}.poly-guide{stroke:#d7ded3;stroke-width:1}.poly-axis{font:12px Arial;fill:#47524a}.poly-label{font:bold 14px Arial,"Microsoft YaHei"}.poly-note{cursor:pointer}.poly-note:focus rect,.poly-playing rect{stroke:#bd2945;stroke-width:3}.poly-note text{font-weight:600}.poly-voice{border:1px solid #d4dfce;border-left:5px solid var(--voice-color);padding:12px;margin:15px 0;color:#192122;background:#fffdf8}.poly-voice h3,.poly-voice .score-body{color:var(--voice-color)}.poly-voice[hidden],.poly-score[hidden]{display:none!important}.poly-voice>p{font-size:12px;color:#506050}.poly-voice details{margin:12px 0}.poly-table{overflow:auto;max-height:440px}.poly-table table{border-collapse:collapse;min-width:490px}.poly-table th,.poly-table td{padding:5px;border-bottom:1px solid #dce4d5}.poly-table input{width:100px;box-sizing:border-box;color:#192122;background:#fff}.poly-table td:first-child{color:var(--voice-color);font-weight:600}
@media(max-width:600px){.poly-score{padding:10px}.poly-toolbar{gap:6px}.poly-voice{padding:8px}}
@media(prefers-color-scheme:dark){.poly-score,.poly-voice,.poly-window svg{background:#fffdf8;color:#17211b}.poly-toolbar label{color:#17211b}}
.poly-float{position:fixed;right:14px;top:30vh;width:190px;max-height:65vh;overflow:auto;z-index:50;background:#fffef9f5;color:#17211b;border:1px solid #a9ba9e;border-radius:12px;box-shadow:0 5px 24px #23352726;padding:10px;box-sizing:border-box;font:13px/1.5 Arial,"Microsoft YaHei",sans-serif;backdrop-filter:blur(8px);color-scheme:light}
.poly-float[hidden]{display:none!important}.poly-float button,.poly-float select{display:block;width:100%;max-width:100%;box-sizing:border-box;margin:5px 0;padding:7px 5px;color:#173c27;background:#f0f6ed;border:1px solid #bdccb4;border-radius:6px;font:inherit;cursor:pointer}.poly-float button:disabled{opacity:.45;cursor:default}.poly-float select{background:white}.poly-float .poly-quick{display:grid;grid-template-columns:1fr 1fr;gap:5px}.poly-quick button{margin:0;white-space:nowrap;font-size:12px}.poly-selection-info{white-space:pre-line;margin:8px 0;font-size:12px;color:#365132}.poly-float.collapsed{width:64px;padding:6px}.poly-float.collapsed .poly-float-body{display:none}.poly-row-hit,.poly-label{cursor:pointer}.poly-row-hit.poly-row-selected{fill:#edf4fd;stroke:#4779b5;stroke-width:1}.poly-selected rect{stroke:#cb6c04;stroke-width:2}.poly-selected text{paint-order:stroke;stroke:#fff0c4;stroke-width:5px;stroke-linejoin:round}.poly-score .score-phrase.score-selected{background:#edf4fd;outline:2px solid #4779b5;border-radius:5px}
.poly-selection-editor{width:680px;max-width:calc(100vw - 28px);max-height:85vh;box-sizing:border-box;padding:20px;border:1px solid #8b9f7d;border-radius:12px;background:#fffdf8;color:#192122;font:14px/1.7 Arial,"Microsoft YaHei",sans-serif;color-scheme:light}.poly-selection-editor::backdrop{background:#10201666}.poly-selection-editor h3{margin-top:0;white-space:pre-line}.poly-selection-editor .poly-table{max-height:50vh}.poly-selection-editor button{color:#173c27;background:#f0f6ed;border:1px solid #bdccb4;border-radius:5px;padding:7px;cursor:pointer}
@media(max-width:600px){.poly-float{right:8px;top:auto;bottom:12px;width:170px;max-height:58vh;padding:8px}.poly-selection-editor{padding:12px}}

.poly-float .poly-float-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}.poly-float-actions button{margin:0;font-size:12px}.poly-float-actions button:last-child{grid-column:1 / -1}.poly-selected .poly-note-hit{stroke:none}
