.stationery-dialog{border:1px solid #c9ddd6;border-radius:20px;padding:18px;width:min(520px,calc(100vw - 28px));max-height: min(720px,85dvh);box-sizing:border-box;color:#234c42;background:#fff;box-shadow:0 16px 64px #173e3533}
.stationery-dialog::backdrop{background:#183b3640}
.stationery-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.stationery-header h2{font-size:18px;margin:0}
.stationery-dialog button{min-height:44px;border:1px solid #d3e4dd;border-radius:10px;background:#f5faf7;color:inherit;padding:8px;cursor:pointer;font:inherit}
.stationery-dialog button:focus-visible{outline:3px solid #00ad84;outline-offset:2px}
.stationery-categories{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.stationery-categories button[aria-pressed=true]{background:#dcf5e9;border-color:#00ad84}
.stationery-dialog p{font-size:13px;line-height:1.6;color:#637b72}.stationery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stationery-grid button{display:flex;align-items:center;flex-direction:column;font-size:11px;line-height:1.4;overflow:hidden}.stationery-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.stationery-dialog .stationery-import{width:100%;margin-top:12px}
@media(max-width:420px){.stationery-dialog{padding:12px}.stationery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.annotation-toolbar[data-active-tool=pen] .annotation-dock-panel{height:400px}
.annotation-dock-panel > .pen-style-buttons{position:absolute;left:14px;right:14px;top:344px;display:none;gap:8px;height:44px}
.annotation-toolbar[data-active-tool=pen][data-object-mode=""] .pen-style-buttons{display:flex}
.annotation-dock-panel .pen-style-button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:44px;height:44px;padding:4px 8px;margin:0;border:1px solid #ffffff4d;border-radius:9px;background:#ffffff16;color:#fff;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer}
.annotation-dock-panel .pen-style-button svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.annotation-dock-panel .pen-style-button[aria-pressed=true]{background:#dcf5e9;border-color:#0db486;color:#087e62;box-shadow:inset 0 0 0 1px #0db486}
.annotation-dock-panel .pen-style-button:focus-visible{outline:2px solid #dcf5e9;outline-offset:2px}
.stationery-dialog .stationery-header button,.stationery-dialog .stationery-import{display:flex;align-items:center;justify-content:center;gap:7px}
.stationery-dialog .stationery-header button svg,.stationery-dialog .stationery-import svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stationery-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.stationery-dialog .stationery-header-actions [data-personal]{width:44px;min-width:44px;padding:8px}.stationery-dialog [data-personal][aria-pressed=true]{background:#dcf5e9;border-color:#00ad84}
.stationery-categories button{display:flex;align-items:center;gap:4px}.stationery-categories svg,.stationery-library-tools svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.stationery-library-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.stationery-library-tools button{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px}
.stationery-subjects{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.stationery-subjects button{font-size:12px;min-height:36px;padding:6px 10px}.stationery-subjects button[aria-pressed=true]{background:#dcf5e9;border-color:#00ad84}
.stationery-card{position:relative;min-width:0}.stationery-grid .stationery-insert{width:100%;height:100%;min-width:0;padding:6px}.stationery-insert span{display:flex;align-items:center;justify-content:flex-start;min-height:34px;width:100%;box-sizing:border-box;padding-right:30px;text-align:left;line-height:1.4}
.stationery-grid .stationery-favorite,.stationery-grid .stationery-delete{position:absolute;display:flex;align-items:center;justify-content:center;right:1px;bottom:1px;width:38px;min-width:38px;height:38px;min-height:38px;padding:9px;border:0;background:transparent;border-radius:10px}
.stationery-grid .stationery-favorite svg{width:20px;height:20px;fill:none;stroke:#799185;stroke-width:1.7;stroke-linejoin:round}.stationery-grid .stationery-favorite.is-favorite svg{fill:#f5bd4e;stroke:#ca8c20}
.stationery-grid .stationery-delete{top:1px;bottom:auto;background:#ffffffdb;color:#6a7b73}.stationery-delete svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.stationery-select-mark{position:absolute;left:5px;top:5px;width:22px;height:22px;border:1px solid #8aac9f;border-radius:6px;background:#fff;color:#087e62;font:700 16px/22px sans-serif}.stationery-card.is-selected .stationery-insert{border-color:#00ad84;background:#dcf5e9}
.stationery-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:12px;padding:35px 12px;color:#6d857a;font-size:13px;text-align:center}.stationery-empty svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.stationery-dialog.is-sorting .stationery-grid{touch-action:none;user-select:none}.stationery-card[draggable=true]{cursor:grab}.stationery-card[draggable=true]:active{cursor:grabbing}
@media(max-width:420px){.stationery-header h2{font-size:15px}.stationery-header{gap:6px}.stationery-header-actions{gap:4px}.stationery-grid .stationery-favorite{width:40px;height:40px;min-height:40px}.stationery-insert span{min-height:40px;padding-right:30px}}

.stationery-subjects{flex-wrap:nowrap;overflow-x:auto;padding:2px 0;gap:8px}.stationery-subjects button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:6px}.stationery-subjects svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
