#text-panel .text-group-head, #text-panel .text-group-row { display:grid; grid-template-columns:25px 29px minmax(0,1fr); gap:4px; align-items:center; }
#text-panel .text-group-head { color:#999; font-size:10px; margin:9px 0 4px; }
#text-panel .text-group-row { margin:3px 0; padding:5px 3px; border:1px solid transparent; border-radius:4px; }
#text-panel .text-group-row.is-writing { background:#17334a; border-color:#528bb3; }
#text-panel .text-group-row label { cursor:pointer; overflow-wrap:anywhere; line-height:1.4; }
#text-panel input[type="radio"], #text-panel input[type="checkbox"] { width:15px; height:15px; margin:0; }
#text-panel .text-help { font-size:11px; line-height:1.5; color:#aaa; margin:6px 0; }
#text-panel #text-writing-status { color:#88d5ff; font-size:11px; line-height:1.5; margin:6px 0; }
#text-panel .text-group-count { color:#aaa; font-size:10px; }
#text-panel details { border-top:1px solid #444; margin-top:8px; padding-top:7px; }
#text-panel summary { cursor:pointer; color:#ccc; font-size:11px; }
#text-panel details .row { margin-top:7px; }
#text-panel button { min-height:25px; }
#text-input-modal .modal-body { gap:10px; }
#text-input-modal label { color:#ccc; font-size:12px; }
#text-input-modal select { width:100%; padding:6px; }

.history-icon { display:inline-flex !important; align-items:center; justify-content:center; min-width:34px; flex:0 0 34px !important; padding:4px 6px; }
.history-icon svg { display:block; }
.text-help { font-size:11px; line-height:1.5; color:#aaa; margin:6px 0; }
#pcb-edit-count { color:#ffe15b; line-height:1.5; }
#text-input-modal #text-arrow-options { display:flex; flex-direction:column; gap:8px; }
#text-input-modal textarea { min-height:90px; line-height:1.5; }
.pcb-edit-active #smd-pin-size-row { display:none; }
#smd-edit-tools { padding-bottom:8px; border-bottom:1px solid #444; margin-bottom:8px; }
#smd-edit-tools [hidden] { display:none !important; }
#smd-keep-pins-row { display:flex; align-items:center; gap:6px; color:#ffe15b; }
#text-panel #spinTextSize { width:46px !important; box-sizing:border-box; }
