/* TAPO spacing: compact actions 8px, navigation and feature rows 12px. */
body:has(#app#app#app#app#app#app) {--tapo-icon-gap:8px;--tapo-feature-gap:12px}
body:has(#app#app#app#app#app#app.owner-workspace) :is(#app,dialog,#flow-modal) :is(button,a.button):has(>.tapo-icon):not(.tapo-icon-button,.tc-icon-control,.hub-row,.np-metric,.owner-sidebar button):not(:has(strong,small,h2,h3,p)){display:inline-flex!important;align-items:center!important;justify-content:center;column-gap:var(--tapo-icon-gap)!important;row-gap:4px;white-space:normal}
body:has(#app#app#app#app#app#app.owner-workspace) #app .owner-sidebar nav button{justify-content:flex-start!important;column-gap:var(--tapo-feature-gap)!important}
body:has(#app#app#app#app#app#app.owner-workspace) :is(#app,dialog,#flow-modal) :is(h2,h3):has(>.tapo-icon):not(:has(button)){display:flex;align-items:center;column-gap:var(--tapo-icon-gap)!important;line-height:1.4}
body:has(#app#app#app#app#app#app.owner-workspace) :is(#app,dialog,#flow-modal) :is(.np2-build-options>button,.np-location-title){column-gap:var(--tapo-feature-gap)!important}
body:has(#app#app#app#app#app#app.owner-workspace) :is(#app,dialog,#flow-modal) :is(button,a.button,h2,h3)>.tapo-icon{margin:0!important;flex-shrink:0!important}
body:has(#app#app#app#app#app#app) :is(.customer-hub,.customer-sheet,.nc-menu-dialog) .hub-row{column-gap:var(--tapo-feature-gap)!important}
body:has(#app#app#app#app#app#app) :is(.customer-hub,.customer-sheet,.nc-menu-dialog) .hub-row>span:nth-child(2){min-width:0!important;overflow-wrap:anywhere}
body:has(#app#app#app#app#app#app) :is(.customer-hub,.customer-sheet,.nc-menu-dialog) button:has(>.tapo-icon):not(.tc-icon-control,.hub-row):not(:has(strong,small)){display:inline-flex!important;align-items:center!important;justify-content:center;column-gap:var(--tapo-icon-gap)!important;white-space:normal}
body:has(#app#app#app#app#app#app) :is(.customer-hub,.customer-sheet,.nc-menu-dialog) button>.tapo-icon{margin:0!important;flex-shrink:0!important}
