.toolbar{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:10px 12px}
.toolbar-main,.toolbar-secondary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;min-width:0}
.toolbar-secondary{padding-top:9px;border-top:1px solid #dfeaf1;justify-content:space-between}
.toolbar-cluster{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
.drawing-cluster{padding-left:10px;border-left:1px solid #d0e2ed}.toolbar-utilities{margin-left:auto;padding-left:10px;border-left:1px solid #d0e2ed}
.toolbar .toolbar-cluster>.tool,.toolbar .toolbar-cluster>.icon,.toolbar .toolbar-cluster>details>summary{width:44px;height:44px;min-width:44px;min-height:44px;max-height:44px;padding:6px;display:flex;align-items:center;justify-content:center;border:1px solid #c9ddea;border-radius:8px;background:#fcfaff;box-sizing:border-box;margin:0;color:#316a8e}
.toolbar .toolbar-cluster>.tool.active,.toolbar .toolbar-cluster>details>summary.active{background:#dcf2ff;border-color:#79b2d6}
.toolbar .toolbar-cluster>details.pens-menu>summary{width:54px;min-width:54px!important;gap:1px;padding:3px}
#selected-pen{display:flex;align-items:center;justify-content:center;width:30px;height:38px;pointer-events:none}
#selected-pen .pen-illustration{display:block;width:29px;height:38px;pointer-events:none}
.color-cluster{gap:13px}.toolbar .colors{display:flex;align-items:center;gap:7px;padding:0 3px}
.toolbar .colors button{width:18px;height:18px;min-width:18px}
.toolbar .color-scale>summary{width:auto!important;min-width:44px!important;padding:6px 10px!important;gap:7px;font-size:12px}
.paper-choice select{width:92px;max-width:none;padding:7px 9px;border:1px solid #c9ddea;border-radius:7px;background:#fcfaff;color:#425a69;height:38px;font-size:12px}
.toolbar .toolbar-utilities>.icon{width:44px;height:44px}.toolbar .tool-illustration{width:26px;height:26px}
.toolbar-cluster>details{flex-shrink:0}.pens-menu>.brush-picker,.shape-options,.font-options,.tool-feel-menu>.tool-feel{top:calc(100% + 10px)}
@media(max-width:1150px){.toolbar{padding:9px;gap:8px}.toolbar-main{gap:7px}.toolbar-cluster{gap:5px}.drawing-cluster,.toolbar-utilities{padding-left:7px}}
@media(max-width:720px){.toolbar-main{gap:8px}.toolbar{padding:8px}.toolbar-utilities{margin-left:0}.toolbar-secondary{gap:7px}.color-cluster{gap:6px}.toolbar .colors{gap:3px;padding:0}.toolbar .color-scale>summary{font-size:11px;padding:6px 7px!important}.paper-choice select{width:80px;font-size:11px;padding:7px 5px}.pens-menu>.brush-picker,.shape-options,.font-options,.tool-feel-menu>.tool-feel{top:auto}}
