/* Shared geometry for icon controls. Sizes remain contextual; padding cannot displace SVGs. */
:where(.icon-btn){display:inline-flex}
.icon-btn{align-items:center;justify-content:center;box-sizing:border-box;flex-shrink:0;padding:0;line-height:1;vertical-align:middle;min-width:28px;min-height:28px;width:36px;height:36px;cursor:pointer}
.icon-btn>.icon{display:block;flex:none;width:18px;height:18px;margin:0;pointer-events:none}
.icon-btn:disabled{cursor:not-allowed;opacity:.4}
.icon-btn:focus-visible{outline:2px solid var(--field-focus);outline-offset:2px}
.icon-btn:hover:not(:disabled){background:var(--surface-2);color:var(--ink)}
/* Override small controls' legacy padding without enlarging their containers. */
:is(.dl-table,.mail-folder-controls,.mail-bulk-bar,.mail-work-search,.task-search,.chat-header-actions,.bubble-author,.message-tools,.chat-info-panel,.modal-head) .icon-btn{padding:0;box-sizing:border-box}
.dl-table .icon-btn{width:32px;height:32px;min-width:32px;min-height:32px}
.dl-table .icon-btn>.icon{width:16px;height:16px}
:is(.task-search,.mail-work-search,.mail-bulk-bar) .icon-btn{min-width:24px;min-height:24px}
.messenger-shell .bubble-author .icon-btn{min-width:26px;min-height:26px}
.theme-toggle{padding:0;box-sizing:border-box;line-height:1;flex-shrink:0}
.theme-toggle :is(.theme-sun,.theme-moon){align-items:center;justify-content:center;line-height:0}
.theme-toggle .icon{display:block;margin:0;flex:none}
/* All editable fields use the same vector pencil, independent of font/platform. */
.tc-pencil{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:20px;flex:none;line-height:0}
.tc-pencil>.icon{display:block;width:15px;height:15px;margin:0;flex:none}
.tc-status-control .tc-pencil{display:none}
/* Keep the slim stage ribbon, with equal-size counter and editing control. */
.sales-kanban .sales-stage-tools{align-items:center;gap:6px;flex:none;height:25px}
.sales-kanban .sales-stage-tools b{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:20px;height:20px;line-height:1;padding:0 5px}
.sales-kanban .sales-stage-rename{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;width:22px;height:22px;padding:0;line-height:1}
.sales-stage-rename>.icon{display:block;width:14px;height:14px;margin:0;flex:none}
.sales-stage-edit-actions button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;box-sizing:border-box}
.sales-stage-edit-actions .icon{display:block;width:16px;height:16px;flex:none;margin:0}
/* Attachment remove controls share the same centered close mark. */
.attachment-upload-name>button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;width:28px;height:28px;padding:0;border-radius:var(--r-sm)}
.attachment-upload-name>button>.icon{display:block;width:16px;height:16px;margin:0}
.attachment-upload-name>button:hover{background:var(--surface-2)}
:is(.dp-action,.work-file-remove,.comment-reactions button,.call-control,.mail-editor-toolbar button) svg{flex-shrink:0;vertical-align:middle}
/* Reserve space for the table scrollbar so it cannot cover row actions. */
.dl-table-scroll{scrollbar-gutter:stable}
.dl-table th:last-child{width:44px}
.dl-table td:last-child{text-align:center;padding-inline:6px}
