.wbt-overlay,.wbt-dialog,.wbt-library{--wbt-bg:var(--panel,#222223);--wbt-raised:var(--raised,#2b2b2d);--wbt-edge:var(--edge,#ffffff18);--wbt-ink:var(--text,#e7e7e9);--wbt-muted:var(--muted,#929296);--wbt-blue:var(--blue,#91afd8);font:14px/1.6 var(--font-ui,"Segoe UI","Microsoft YaHei UI",sans-serif);color:var(--wbt-ink);color-scheme:dark}
.wbt-overlay[data-theme=light],.wbt-dialog[data-theme=light],.wbt-library[data-theme=light]{color-scheme:light}
.wbt-overlay *,.wbt-dialog *,.wbt-library *,.wbt-rail-host *{box-sizing:border-box}
.wbt-overlay [hidden],.wbt-dialog [hidden],.wbt-library[hidden]{display:none!important}
.wbt-overlay button,.wbt-dialog button,.wbt-library :is(button,input,select),.wbt-rail-host button{font:inherit;color:inherit;cursor:pointer}
.wbt-overlay :focus-visible,.wbt-dialog :focus-visible,.wbt-library :focus-visible,.wbt-rail-host :focus-visible{outline:2px solid var(--wbt-blue,#91afd8);outline-offset:3px}
.wbt-overlay{position:fixed;inset:0;z-index:40;pointer-events:none;isolation:isolate}
.wbt-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wbt-item{position:absolute;width:220px;max-width:calc(100vw - 24px);pointer-events:auto;touch-action:none;user-select:none;filter:drop-shadow(0 8px 12px #0002)}
.wbt-item:focus-within,.wbt-item:hover{z-index:3}.wbt-item[data-expanded=true]{width:310px}
.wbt-memo-paper{position:relative;min-height:70px;padding:16px 17px 14px;border:1px solid #00000012;border-radius:2px 2px 9px 2px;background:linear-gradient(130deg,#ffffff22,transparent 68%),var(--paper,#e8d690);color:#37382f;box-shadow:inset 0 1px #fff5,2px 7px 14px #0002;transform:rotate(-.65deg);transform-origin:50% 15%;transition:transform 280ms cubic-bezier(.2,.8,.2,1),box-shadow 280ms;cursor:grab}
.wbt-memo-paper:after{content:"";position:absolute;right:0;bottom:0;width:18px;height:18px;background:linear-gradient(135deg,transparent 48%,#00000013 50%,#ffffff50);border-radius:0 0 8px 0;pointer-events:none}
.wbt-memo:hover .wbt-memo-paper{transform:rotate(0) scale(1.035);box-shadow:inset 0 1px #fff5,3px 12px 23px #0003}
.wbt-memo-title{display:block;margin:0 22px 0 0;font-size:15px;font-weight:650;line-height:1.6;overflow-wrap:anywhere;min-height:24px}
.wbt-memo:not([data-expanded=true]) .wbt-memo-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wbt-memo-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;max-height:min(270px,max(48px,calc(100dvh - 280px)));min-height:80px;overflow:auto;margin:12px 0 0;padding:10px 0 14px;border-top:1px solid #00000012;color:inherit;opacity:.9}
.wbt-scope{display:block;padding-top:10px;border-top:1px solid #00000012;opacity:.6;font-size:11px}
.wbt-memo [data-wbt-edit]{cursor:text;border-radius:3px}.wbt-memo [contenteditable]{user-select:text;touch-action:auto;outline:1px dashed #5d695a77;outline-offset:4px;background:#ffffff18}
.wbt-note-delete{position:absolute;z-index:2;top:8px;right:8px;display:grid;place-items:center;width:25px;height:25px;min-height:25px;padding:0;border:0;border-radius:6px;background:#00000008;color:#4b4b40!important;opacity:.75;transition:background .18s,opacity .18s}
.wbt-note-delete:hover{background:#b84e4e22;color:#873c3c!important;opacity:1}.wbt-note-delete svg{pointer-events:none;display:block}
.wbt-drag-ghost{z-index:12;pointer-events:none;filter:drop-shadow(0 9px 15px #0003)}.wbt-moving{visibility:hidden}
.wbt-note-deleting{pointer-events:none;animation:wbt-delete .22s ease forwards}@keyframes wbt-delete{to{opacity:0;transform:translateY(15px) scale(.94)}}
.wbt-rail-host{height:112px;padding:0 34px;min-width:0;font:13px/1.5 var(--font-ui,"Segoe UI","Microsoft YaHei UI",sans-serif);color:var(--muted,#a0a0a7)}
.wbt-clothesline{position:relative;height:100%;display:flex;align-items:center;gap:16px;min-width:0}
.wbt-line{position:absolute;left:0;top:2px;width:100%;height:40px;overflow:visible;border:0;fill:none;color:#9299a36b;pointer-events:none;transition:color .2s}.wbt-line path{fill:none;stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke;transition:filter .2s}
.wbt-rail-label{font-size:11px;white-space:nowrap;opacity:.55;align-self:flex-start;padding-top:40px}
.wbt-hung-notes{display:flex;align-items:center;gap:18px;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;padding:15px 12px 14px;height:110px}
.wbt-hung-note{position:relative;flex:0 0 158px;min-width:0;height:66px;text-align:left;background:linear-gradient(130deg,#ffffff24,transparent 68%),var(--paper);border:1px solid #0000000c;border-radius:1px 1px 5px 1px;color:#37382f!important;padding:11px 30px 7px 12px;box-shadow:0 5px 9px #0002;transform:rotate(-2deg);transform-origin:20px 0;touch-action:none;user-select:none;cursor:grab;transition:transform 280ms cubic-bezier(.2,.8,.2,1),box-shadow .28s}
.wbt-hung-note:nth-child(even){transform:rotate(2deg)}.wbt-hung-note:is(:hover,:focus-within){scale:1.025;z-index:4;box-shadow:0 7px 13px #0003}.wbt-hung-note{transition:scale 220ms ease-out,box-shadow .28s}.wbt-floating-paper{transform:none}
.wbt-hung-note i{position:absolute;top:-11px;left:15px;width:7px;height:21px;border:1px solid #766653;background:linear-gradient(90deg,#aa9574,#d0bb95,#8c785d);border-radius:2px;box-shadow:1px 2px 2px #0003;pointer-events:none}
.wbt-hung-note strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:650;line-height:1.45}.wbt-hung-note small{display:block;font-size:9px;opacity:.6;margin-top:3px}
.wbt-hung-note .wbt-note-delete{top:5px;right:5px;width:22px;height:22px;min-height:22px;background:transparent}
.wbt-rail-add{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:0 0 88px;min-height:68px;padding:10px;border:1px solid var(--edge,#ffffff18);border-radius:12px;background:var(--panel,#222223);color:var(--muted,#a0a0a7)!important;font-size:12px!important;transition:background .22s,border-color .22s,color .22s,transform .22s}
.wbt-rail-add:hover{color:var(--text,#e7e7e9)!important;border-color:#98adc54d;transform:translateY(-2px)}
.wbt-rail-host[data-note-dragging] .wbt-rail-add{background:#6a3639;border-color:#e29396;color:#ffe8e8!important;box-shadow:0 0 0 4px #e2939610}
.wbt-rail-host[data-note-dragging] .wbt-rail-add[data-delete-over=true]{background:#9a444b;transform:scale(1.08);box-shadow:0 0 0 6px #e2939622}
.wbt-library{position:fixed;z-index:75;width:390px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--wbt-edge);border-radius:16px;background:var(--wbt-bg);box-shadow:0 20px 60px #0006;overflow:hidden;display:flex;flex-direction:column}
.wbt-library-head,.wbt-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--wbt-edge)}.wbt-library-head>span{display:flex;align-items:center;gap:10px}.wbt-library-head strong{font-size:16px;font-weight:600}.wbt-modal-head h2{font-size:18px;margin:0;font-weight:600}
.wbt-icon{display:inline-grid;place-items:center;flex-shrink:0;width:27px;height:27px;min-height:27px;padding:0;border:1px solid var(--wbt-edge);border-radius:6px;background:var(--wbt-bg);color:var(--wbt-muted)}.wbt-icon svg{pointer-events:none}.wbt-icon:hover{background:var(--wbt-raised);color:var(--wbt-ink)}
.wbt-library-toolbar{display:flex;gap:8px;padding:14px 16px}.wbt-library-toolbar input,.wbt-library-toolbar select{min-width:0;background:var(--wbt-raised);border:1px solid var(--wbt-edge);border-radius:7px;padding:7px 9px;font-size:12px;color:var(--wbt-ink)}.wbt-library-toolbar input{width:100%;flex:1}.wbt-library-toolbar select{width:114px}
.wbt-library-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-height:190px;max-height:min(310px,calc(100dvh - 220px));overflow:auto;overscroll-behavior:contain;padding:18px 22px 24px;background:radial-gradient(#ffffff07 1px,transparent 1px);background-size:6px 6px;align-items:start;}
.wbt-library-note{position:relative;min-width:0;padding:16px 14px 12px;border:0;border-radius:2px 2px 6px 2px;background:linear-gradient(135deg,#ffffff20,transparent 75%),var(--paper);color:#37382f!important;box-shadow:0 6px 10px #0002,inset 0 1px #fff6;text-align:left;transform:rotate(-3deg);touch-action:none;user-select:none;cursor:grab}
.wbt-library-note:nth-child(even){transform:rotate(3deg)}.wbt-library-note:after{content:"";position:absolute;right:0;bottom:0;border:9px solid transparent;border-right-color:#0001;border-bottom-color:#fff5}.wbt-library-note strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.wbt-library-note p{margin:9px 0 14px;font-size:11px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:55px;overflow-wrap:anywhere}.wbt-library-note small{font-size:9px;opacity:.65}
.wbt-library-empty{grid-column:1/-1;color:var(--wbt-muted);text-align:center;align-self:center;font-size:13px;line-height:1.9}.wbt-library-footer{padding:13px 16px;border-top:1px solid var(--wbt-edge);display:flex;gap:12px;align-items:center;justify-content:space-between}.wbt-library-footer small{font-size:10px;color:var(--wbt-muted)}.wbt-library-dragging{opacity:.25;pointer-events:none}
.wbt-button{border:1px solid var(--wbt-edge);border-radius:8px;background:var(--wbt-raised);color:var(--wbt-ink);padding:8px 15px;min-height:36px}.wbt-button.primary{background:#7c9cc7;color:#142338;border-color:#9eb9dc}
.wbt-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 28px);margin:auto;padding:0;border:1px solid var(--wbt-edge);border-radius:15px;background:var(--wbt-bg);overflow:auto;box-shadow:0 25px 75px #0005}.wbt-dialog::backdrop{background:#060a10a6;backdrop-filter:blur(5px)}.wbt-form{padding:20px}.wbt-field{display:block;color:var(--wbt-muted);font-size:13px;margin-bottom:16px}.wbt-field select{display:block;box-sizing:border-box;width:100%;max-width:100%;font:inherit;font-size:14px;padding:9px 11px;border:1px solid var(--wbt-edge);border-radius:8px;background:var(--wbt-raised);color:var(--wbt-ink);margin-top:7px}.wbt-form-note{color:var(--wbt-muted);font-size:11px;line-height:1.8}.wbt-form-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:15px;border-top:1px solid var(--wbt-edge)}
.wbt-editor-paper{padding:18px 20px 14px;background:linear-gradient(125deg,#ffffff24,transparent 75%),var(--paper);color:#37382f;box-shadow:2px 5px 12px #0003;border-radius:2px 2px 7px 2px;transform:rotate(-.7deg);margin-bottom:20px}.wbt-paper-field{display:block}.wbt-paper-field>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.wbt-editor-paper input,.wbt-editor-paper textarea{display:block;width:100%;padding:7px 0;border:0;background:transparent;color:#37382f;resize:vertical;font:14px/1.8 var(--font-ui,"Segoe UI","Microsoft YaHei UI",sans-serif);outline-offset:3px}.wbt-editor-paper input{font-weight:650;font-size:17px;border-bottom:1px solid #0002;margin-bottom:10px}.wbt-editor-paper textarea{min-height:150px}.wbt-editor-paper :is(input,textarea)::placeholder{color:#55564699}
.wbt-color-picker{padding:0;border:0;display:flex;gap:10px;margin:0 0 20px}.wbt-color-picker legend{font-size:12px;color:var(--wbt-muted);margin-bottom:8px}.wbt-color-picker label{position:relative;width:25px;height:25px;display:block}.wbt-color-picker input{position:absolute;opacity:0;inset:0;margin:0;width:100%;height:100%;cursor:pointer}.wbt-color-picker span{display:block;width:25px;height:25px;background:var(--paper);border-radius:50%;border:3px solid var(--wbt-bg);box-shadow:0 0 0 1px var(--wbt-edge);pointer-events:none}.wbt-color-picker input:checked+span{box-shadow:0 0 0 2px var(--wbt-blue)}
@media(max-width:600px){.wbt-rail-host{padding:0 16px;height:116px}.wbt-rail-label{display:none}.wbt-clothesline{gap:10px}.wbt-hung-note{flex-basis:145px}.wbt-hung-notes{padding-left:8px;padding-right:8px;gap:16px}.wbt-rail-add{flex-basis:64px;min-height:66px;font-size:11px!important}.wbt-library{width:360px}.wbt-library-tray{gap:14px;padding:16px}.wbt-item[data-expanded=true]{width:285px}.wbt-memo-title{font-size:14px}.wbt-form{padding:17px}}
@media(prefers-reduced-motion:reduce){.wbt-overlay *,.wbt-library *,.wbt-rail-host *{animation:none!important;transition:none!important}}

.wbt-note-image{display:block;margin-top:11px;cursor:zoom-in}.wbt-note-image img{display:block;width:100%;max-height:115px;object-fit:contain;border-radius:3px;background:#00000008;pointer-events:none}.wbt-memo[data-expanded=true] .wbt-note-image img{max-height:280px}.wbt-memo-body:empty:before{content:"点击补充文字…";opacity:.5;pointer-events:none}.wbt-memo-body:empty{min-height:42px}.wbt-hung-image{float:left;width:40px;height:43px;object-fit:cover;margin:0 8px 0 -4px;border:2px solid #ffffff88;border-radius:2px;pointer-events:none}.wbt-library-image{display:block;width:100%;height:80px;object-fit:contain;margin:10px 0;background:#00000008;pointer-events:none}.wbt-file-label{font-size:11px;white-space:nowrap;cursor:pointer}.wbt-library-footer{flex-wrap:wrap}.wbt-library-footer>small{flex-basis:100%}.wbt-library-footer .wbt-button{font-size:12px}.wbt-rail-host[data-file-drop=true]{background:transparent}

.wbt-hung-open{min-height:100%;outline-offset:3px}

/* The rope is the small, explicit destination for paste and quick typing. */
.wbt-rail-host{outline:none;cursor:copy}.wbt-rail-host [hidden]{display:none!important}
.wbt-rail-host:is(:hover,:focus-within,[data-selected],[data-file-drop=true],[data-note-drop]) .wbt-line{color:#77aef2}
.wbt-rail-host:is(:hover,:focus-within,[data-selected],[data-file-drop=true],[data-note-drop]) .wbt-line path{filter:drop-shadow(0 0 2px #77aef255)}
:root[data-theme=light] .wbt-line{color:#9ca1a7}
:root[data-theme=light] .wbt-rail-host:is(:hover,:focus-within,[data-selected],[data-file-drop=true],[data-note-drop]) .wbt-line{color:#547da6}
:root[data-theme=light] .wbt-rail-host:is(:hover,:focus-within,[data-selected],[data-file-drop=true],[data-note-drop]) .wbt-line path{filter:drop-shadow(0 0 1px #547da633)}
.wbt-rail-composer{position:absolute;left:80px;right:100px;bottom:0;display:block;min-width:0;height:24px;border:0;border-bottom:1px solid #7fa9df33;border-radius:0;background:transparent;color:var(--text,#e7e7e9);font:12px/1.5 var(--font-ui,"Segoe UI","Microsoft YaHei UI",sans-serif);padding:2px 4px;cursor:text;outline:none}
.wbt-rail-composer::placeholder{color:var(--muted,#929296);opacity:.65}.wbt-rail-composer:focus{outline:none;border-bottom-color:#7fa9df88}
.wbt-rail-add{flex:0 0 74px;min-height:32px;padding:5px 1px;display:inline-flex;flex-direction:row;gap:0;border:0;border-radius:4px;background:transparent;box-shadow:none;color:var(--muted,#a0a0a7)!important;font-size:12px!important;opacity:.7;transform:none}
.wbt-rail-add svg{display:none}.wbt-rail-add:hover{background:transparent;border:0;opacity:1;transform:none;color:var(--text,#e7e7e9)!important}
.wbt-rail-host[data-note-dragging] .wbt-rail-add{min-height:58px;background:#6a3639;border:1px solid #e29396;color:#ffe8e8!important;opacity:1;gap:6px;padding:8px;border-radius:8px}
.wbt-rail-host[data-note-dragging] .wbt-rail-add svg{display:block;width:17px;height:17px}
/* Pasted images are photo prints rather than colored sticky paper. */
.wbt-item[data-image=true] .wbt-photo-frame{padding:9px;border:1px solid #ffffff20;border-radius:3px;background:var(--panel,#262628);color:var(--text,#e7e7e9);box-shadow:0 7px 18px #0004;transform:rotate(1deg)}
.wbt-item[data-image=true] .wbt-photo-frame:after{display:none}.wbt-item[data-image=true]:hover .wbt-photo-frame{transform:rotate(0) scale(1.025)}
.wbt-item[data-image=true] .wbt-note-image{margin:0}.wbt-item[data-image=true] .wbt-note-image img{max-height:180px;border-radius:1px;background:#121214;object-fit:contain}
.wbt-item[data-image=true][data-expanded=true] .wbt-note-image img{max-height:280px}.wbt-item[data-image=true] .wbt-memo-title{font-size:12px;font-weight:500;line-height:1.6;min-height:19px;margin:8px 0 1px}
.wbt-item[data-image=true] .wbt-note-delete{background:#242428d9;color:#e4e6ed!important;top:12px;right:12px}.wbt-item[data-image=true] .wbt-scope,.wbt-item[data-image=true] .wbt-memo-body{border-top-color:#ffffff18}
.wbt-hung-note[data-image=true]{height:82px;flex-basis:108px;padding:5px;border:1px solid #ffffff50;border-radius:2px;background:#e9e9e5;box-shadow:0 5px 10px #0004}
.wbt-hung-note[data-image=true] :is(.wbt-hung-image,.wbt-floating-image){display:block;float:none;width:100%;height:70px;object-fit:contain;margin:0;border:0;border-radius:0;background:#161619}
.wbt-hung-note[data-image=true] strong,.wbt-hung-note[data-image=true] small{display:none}.wbt-hung-note[data-image=true] .wbt-note-delete{background:#e9e9e5d9;top:5px;right:5px}
.wbt-library-note[data-image=true]{padding:6px 6px 8px;border:1px solid var(--wbt-edge);border-radius:2px;background:var(--wbt-raised);color:var(--wbt-ink)!important;box-shadow:0 5px 10px #0003}
.wbt-library-note[data-image=true]:after{display:none}.wbt-library-note[data-image=true] strong{font-size:11px;padding:0 3px}.wbt-library-note[data-image=true] small{padding:0 3px}.wbt-library-note[data-image=true] .wbt-library-image{height:120px;margin:6px 0;background:#151518}
@media(max-width:600px){.wbt-rail-composer{left:0;right:65px;font-size:11px}.wbt-rail-add{flex-basis:58px;min-height:30px;font-size:11px!important}.wbt-hung-note[data-image=true]{flex-basis:104px}}

/* Only the expanded paper is visible; its hidden hanging slot keeps the rope order. */
.wbt-hung-note[data-expanded=true]{visibility:hidden;pointer-events:none}
.wbt-hung-note{flex:0 0 auto;height:auto;min-height:48px;max-height:91px;padding:10px 29px 7px 12px;font:13px/1.5 var(--font-ui,"Segoe UI","Microsoft YaHei UI",sans-serif)}
.wbt-hung-note .wbt-hung-open{min-height:0}.wbt-hung-note strong{line-height:1.4}
.wbt-hung-preview{font-size:11px;line-height:1.45;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;opacity:.8}
.wbt-item,.wbt-item[data-expanded=true]{width:auto;max-width:calc(100vw - 24px)}.wbt-item[data-expanded=true]{z-index:8}.wbt-item[data-expanded=true] .wbt-memo-paper{transform:none;transform-origin:top left}.wbt-item[data-expanded=true]:hover .wbt-memo-paper{transform:none}
.wbt-memo-paper{min-height:0}.wbt-memo-body{min-height:0;margin-top:10px;padding-top:9px;padding-bottom:9px;max-height:min(360px,calc(100dvh - 190px))}.wbt-memo-body:empty{min-height:0;height:0;padding:0;margin:0;border:0}.wbt-memo-body:empty:before{content:none}.wbt-scope{padding-top:7px}.wbt-memo-title{min-height:0}
.wbt-rail-composer{position:absolute;left:0;top:0;bottom:auto;right:auto;width:1px;height:1px;min-height:1px;opacity:0;pointer-events:none;border:0!important;background:transparent;outline:0;padding:0;overflow:hidden}
.wbt-rail-composer:focus{border:0;outline:0}.wbt-draft-note{background:#e8d690;pointer-events:none;min-width:108px;transform:rotate(-1deg);max-height:91px}.wbt-draft-note p{font-size:11px;line-height:1.45;white-space:pre-wrap;margin:5px 0 0;max-height:33px;overflow:hidden}.wbt-draft-note p:empty{display:none}
.wbt-item[data-image=true][data-expanded=true] .wbt-photo-frame{transform:none}.wbt-item[data-image=true][data-expanded=true]:hover .wbt-photo-frame{transform:none}

.wbt-memo-body:empty{min-height:18px;height:18px;padding:0;margin:6px 0 0;border:0}

.wbt-hung-preview{-webkit-line-clamp:1}

.wbt-rail-add{z-index:45}
