﻿/* Consistent icon geometry for UI controls, never document artwork. */
button:has(>svg),button:has(>img.delete-icon),a:has(>svg),summary:has(>svg){display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle}
button>svg,a>svg,summary>svg{display:block;flex:0 0 auto;width:20px;height:20px;max-width:none;pointer-events:none}
button>img.delete-icon{display:block!important;flex-shrink:0}button>svg+span,button>img.delete-icon+span{min-width:0;line-height:1.5}
.document-navigation nav button{justify-content:flex-start;gap:12px;line-height:1.5}.document-navigation nav button svg{width:22px;height:22px;flex:0 0 22px}.document-actions>button,.document-star,.document-item-menu>summary{display:grid;place-items:center;line-height:1;padding:6px;flex-shrink:0}.document-caption{align-items:center}
.layer-row{gap:4px;min-width:0}.layer-row button{border:0;background:transparent;padding:4px!important;min-height:30px;box-sizing:border-box}.layer-row .layer-grip{width:20px;flex:0 0 20px;line-height:1}.layer-row .layer-lock,.layer-row .layer-delete{width:28px;flex:0 0 28px;display:inline-flex;align-items:center;justify-content:center;line-height:1}.layer-row .layer-pick{flex:1;min-width:0;padding:4px 2px!important;overflow:hidden}.layer-row .layer-pick span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-row .layer-delete .delete-icon{width:17px!important;height:17px!important}
.draw-tool-menu button{justify-content:flex-start;gap:10px;min-height:36px;line-height:1.5}.draw-tool-menu button span{white-space:normal;overflow-wrap:anywhere}.draw-tool-menu svg{flex:0 0 18px}.draw-tool-group>button{display:grid;place-items:center;line-height:1;padding:8px}.draw-tool-group>button svg{width:20px;height:20px}.studio-extra-tools button{display:grid;place-items:center;line-height:1;padding:6px}
#floating-format button:has(>img.delete-icon),.asset-remove{display:inline-flex;align-items:center;justify-content:center;line-height:1}#floating-format button{flex-shrink:0}#studio-color-picker .color-head{display:flex;align-items:center;gap:12px}#color-eyedropper{display:grid;place-items:center;flex-shrink:0}#color-eyedropper svg{width:22px;height:22px}
button[hidden],a[hidden],summary[hidden]{display:none!important}
#new-document-menu>summary{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 14px;line-height:1.4;font-size:13px;box-sizing:border-box}#new-document-menu>summary span{padding:0!important}#new-document-menu>summary .document-add-icon{width:16px;height:16px;flex:0 0 16px}#new-document-menu>summary .document-chevron{width:14px;height:14px;flex:0 0 14px}#new-document-menu>summary::after{content:none}#document-sort{appearance:none;-webkit-appearance:none;height:38px;min-width:132px;max-width:none;width:132px;padding:0 34px 0 14px;line-height:1.4;font-size:12px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23535c6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:14px 14px;box-sizing:border-box}.document-sort{display:flex;align-items:center;flex:0 0 auto}.document-actions{align-items:center}#document-select{min-height:38px}
