.feature-tool-setting-row { display:grid; grid-template-columns:minmax(0,1fr) 48px 48px; align-items:center; gap:8px; min-width:0; min-height:32px; }
.feature-tool-setting-row-action { grid-template-columns:minmax(0,1fr) 48px 48px 60px; }
.feature-tool-setting-row > span:first-child { min-width:0; overflow-wrap:anywhere; font-size:13px; font-weight:600; line-height:1.45; }
.feature-tool-toggle { display:inline-flex; align-items:center; gap:4px; cursor:pointer; white-space:nowrap; font-size:12px; min-height:32px; }
.feature-tool-toggle input { accent-color:#2563eb; }
.feature-tool-launch { border:1px solid #c7d2fe; border-radius:7px; color:#4f46e5; background:#eef2ff; padding:5px 6px; min-height:32px; font-size:12px; font-weight:600; white-space:nowrap; }
.feature-tool-launch:hover { background:#e0e7ff; }
.feature-tool-setting-row > button[id$="settings-fold-btn"] { min-height:32px; padding:5px 6px; border-radius:7px; font-size:12px; white-space:nowrap; }
#google-share-settings-slot, #sites-settings-slot, .feature-ai-settings { padding:10px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; }
#share-destinations-settings { padding:10px 0 0; margin-top:8px; border-top:1px solid #e2e8f0; }
#share-destinations-settings:has(> #share-destinations-settings-body.hidden) { display:none; }
#share-destinations-settings-body > label { display:flex; justify-content:space-between; flex-direction:row-reverse; min-height:32px; }
#share-destinations-settings-body > div { padding-left:0; }
#share-destinations-settings-body > div > .flex { flex-wrap:wrap; }
#share-destinations-settings-body input[type="text"] { min-width:0; }
.feature-ai-settings > p:first-child { margin-bottom:6px; }
.feature-ai-settings .feature-tool-toggle span { font-size:12px; }
.feature-tool-toggle:focus-within, .feature-tool-launch:focus-visible { outline:2px solid #6366f1; outline-offset:2px; border-radius:4px; }
.dark #google-share-settings-slot, .dark #sites-settings-slot, .dark .feature-ai-settings { background:#172033; border-color:#334155; }
.dark #share-destinations-settings { border-color:#334155; }
.dark .feature-tool-launch { color:#c7d2fe; background:#252b50; border-color:#4c5286; }
.dark .feature-tool-launch:hover { background:#343b66; }
@media (pointer:coarse) { .feature-tool-setting-row, .feature-tool-toggle, .feature-tool-launch, .feature-tool-setting-row > button[id$="settings-fold-btn"] { min-height:44px; } }
.app-header .header-quick-tool.feature-tool-name-visible { width:auto; min-width:36px; padding:0 10px; flex-basis:auto; gap:6px; white-space:nowrap; }
.app-header .header-quick-tool.feature-tool-name-visible > span { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; font-size:12px; font-weight:700; }
html.header-feature-keys-text .app-header .header-quick-tool.feature-tool-name-hidden { width:36px; min-width:36px; padding:0; flex:0 0 36px; gap:0; }
html.header-feature-keys-text .app-header .header-quick-tool.feature-tool-name-hidden > span { display:none; }

/* Feature gates must win over toolbar inline-flex styles. */
#tidy-add-feature[hidden], #btn-jena-macro[hidden] { display:none !important; }
