/* Glass navigation floats above quiet, readable content surfaces. */
@layer tapo-neutral {
 body:has(#app:is(.owner-workspace,.platform-workspace)){--ws-glass:rgba(255,255,255,.78);--ws-card:rgba(255,255,255,.95);--ws-ink:#1C1C1E;--ws-edge:rgba(60,60,67,.12);--ws-font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace){background:#F2F2F7!important;color:var(--ws-ink)!important;font-family:var(--ws-font)!important;--tapo-font:var(--ws-font)!important;--tapo-success:#34C759;}
 body #app#app#app#app#app#app#app#app#app :is(#owner-main,#central-main,.owner-content,.central-content,.owner-page-header,.nfc-heading){background:transparent!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(#owner-main,#central-main){background:#F2F2F7!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.owner-content,.central-content) :is(h1,h2,h3,p,label,input,select,textarea,button,.button,th,td){font-family:var(--ws-font)!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.owner-content,.central-content) :is(h1,h2){letter-spacing:-.025em!important;line-height:1.2!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.owner-content,.central-content) :is(.panel,.a-card,.tapo-account-card,.tapo-feedback-card),
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.central-stats,.central-kpis,.a-kpis)>article{background:var(--ws-card)!important;border:1px solid var(--ws-edge)!important;border-radius:20px!important;corner-shape:squircle;box-shadow:0 2px 8px #1f263706!important;padding:16px!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) .panel .panel{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 0!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) .experience-feedback{background:var(--ws-card)!important;border:1px solid var(--ws-edge)!important;border-radius:18px!important;corner-shape:squircle;box-shadow:0 1px 4px #00000004!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.central-topbar,.central-sidebar,#owner-navigation,.central-mobile-nav,.nfc-save,.nfs-save,.save-bar,.ol-save){background:var(--ws-glass)!important;-webkit-backdrop-filter:blur(24px) saturate(160%)!important;backdrop-filter:blur(24px) saturate(160%)!important;border-color:#ffffffcc!important;box-shadow:inset 0 1px 0 #fffffff2,0 4px 20px #1f26370f!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.np-sidebar-footer,.central-sidebar-footer){background:transparent!important;border-color:var(--ws-edge)!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.ch-section-tabs,.ch-tabs,.cs-tabs,.a-tabs,.center-report-tabs,.owner-design-map){background:rgba(118,118,128,.1)!important;border:1px solid #ffffffbf!important;border-radius:16px!important;padding:4px!important;box-shadow:inset 0 1px 0 #ffffffb3!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.ch-section-tabs,.ch-tabs,.cs-tabs,.a-tabs,.center-report-tabs,.owner-design-map)>button{border-radius:12px!important;font-family:var(--ws-font)!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.ch-section-tabs,.ch-tabs,.cs-tabs,.a-tabs,.center-report-tabs,.owner-design-map)>button:is(.active,[aria-selected=true],[aria-pressed=true]){background:#fffffff5!important;color:var(--ws-ink)!important;box-shadow:0 1px 5px #00000012,inset 0 1px 0 #fff!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button,a.button):not(:where(.nfc-preview *,.customer-sheet *,.tb-grid *,.tbe-picker *,.a-info,.a-sort,.tapo-switch *,.np-sidebar nav *,.central-sidebar nav *,.central-mobile-nav *,.owner-design-map *,.ch-section-tabs *,.ch-tabs *,.cs-tabs *,.a-tabs *,.center-report-tabs *)){border-radius:14px!important;corner-shape:round;min-height:40px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform 140ms cubic-bezier(.2,.8,.2,1),background-color 140ms ease-out,box-shadow 140ms ease-out!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button.secondary,a.button.secondary):not(:where(.nfc-preview *,.customer-sheet *,.tb-grid *,.tbe-picker *,.a-info,.a-sort,.np-sidebar nav *,.central-sidebar nav *,.central-mobile-nav *)){background:#ffffffb8!important;color:var(--ws-ink)!important;border:1px solid #3c3c4321!important;box-shadow:inset 0 1px 0 #ffffffd9,0 1px 3px #00000005!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button[type=submit],.nfc-save button,.nfs-save button):not(:disabled){background:#007AFF!important;color:#fff!important;border-color:transparent!important;box-shadow:inset 0 1px 0 #ffffff40,0 2px 6px #007aff26!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button,a.button):active:not(:disabled):not(:where(.nfc-preview *,.customer-sheet *,.tb-grid *,.tbe-picker *)){transform:scale(.975)!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #007AFF!important;outline-offset:3px!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.owner-content,.central-content,.center-scope) :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file]),textarea,select){background:#fffffff5!important;border:1px solid #3c3c432e!important;border-radius:12px!important;color:var(--ws-ink)!important;min-width:0!important;max-width:100%!important;box-shadow:inset 0 1px 2px #00000002!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) label.tapo-switch>input:checked+.tapo-switch-track{background:#34C759!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.danger,.danger-button,button[data-delete]){color:#D70015!important;background:#FFF1F2!important;border-color:#FFD2D7!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) .central-mobile-nav{border:1px solid #ffffffd9!important;border-radius:28px!important;margin:0 10px calc(8px + env(safe-area-inset-bottom,0px))!important;padding:6px!important;width:calc(100% - 20px)!important;box-sizing:border-box!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) .central-mobile-nav button{border-radius:22px!important;min-width:0!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) .central-mobile-nav button.active{background:#007aff1a!important;color:#007AFF!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.central-backdrop,.np-backdrop,.owner-backdrop,.owner-nav-backdrop){border-radius:0!important;corner-shape:round!important;transform:none!important;box-shadow:none!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.central-sidebar nav,#owner-navigation nav)>button{border-radius:12px!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.nfc-save,.nfs-save,.save-bar,.ol-save){border-radius:20px!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button,a.button):not(:where(.nfc-preview *,.customer-sheet *,.tb-grid *,.tbe-picker *,.central-mobile-nav *,.central-sidebar nav *,.np-sidebar nav *)){corner-shape:round!important;}
 /* A single blurred scrim keeps fields sharp and avoids nested filter work. */
 body:has(#app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace)) dialog:not(.customer-sheet):not(#nc-menu-feed),
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) #flow-modal .flow-modal{background:#fafafcf5!important;color:#1C1C1E!important;border:1px solid #ffffffe6!important;border-radius:28px!important;corner-shape:squircle;box-shadow:inset 0 1px 0 #fff,0 20px 64px #00000026!important;padding:24px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)!important;box-sizing:border-box!important;overscroll-behavior:contain;}
 body:has(#app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace)) dialog:not(.customer-sheet):not(#nc-menu-feed)::backdrop,
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) #flow-modal{background:#19191e47!important;-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important;}
 body:has(#app:is(.owner-workspace,.platform-workspace)) dialog:not(.customer-sheet):not(#nc-menu-feed) :is(h2,h3,label,input,select,textarea,button,p){font-family:var(--ws-font)!important;}
 body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) #flow-modal .flow-modal :is(h2,h3,label,input,select,textarea,button,p,li,strong){font-family:var(--ws-font)!important;}
 @media(hover:hover) and (pointer:fine){body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) button.secondary:hover:not(:disabled):not(:where(.nfc-preview *,.tb-grid *,.customer-sheet *)){background:#fffffff5!important;box-shadow:inset 0 1px 0 #fff,0 2px 8px #0000000a!important;}}
 @media(max-width:767px){
  body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.owner-content,.central-content) :is(.panel,.a-card){padding:14px!important;border-radius:18px!important;}
  body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.central-stats,.central-kpis,.a-kpis){gap:10px!important;}
  body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.central-stats,.central-kpis,.a-kpis)>article{padding:14px!important;min-width:0!important;}
  body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.owner-content,.central-content) :is(input,select,textarea){font-size:16px!important;}
  body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button,a.button):not(:where(.nfc-preview *,.customer-sheet *,.tb-grid *,.a-info,.a-sort)){min-height:44px!important;}
  body #app#app#app#app#app#app#app#app#app.platform-workspace #central-main{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important;}
  body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.nfc-save,.nfs-save,.save-bar,.ol-save){bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;}
 }
 @supports not (backdrop-filter:blur(1px)){body:has(#app:is(.owner-workspace,.platform-workspace)){--ws-glass:#F9F9FB;}}
 @media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  body:has(#app:is(.owner-workspace,.platform-workspace)){--ws-glass:#F9F9FB;--ws-card:#FFF;--ws-edge:#8E8E93;}
  body:has(#app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace)) dialog:not(.customer-sheet):not(#nc-menu-feed),body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) #flow-modal .flow-modal{background:#FFF!important;border-color:#8E8E93!important;}
  body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(.central-topbar,.central-sidebar,#owner-navigation,.central-mobile-nav,.nfc-save,.nfs-save,.save-bar,.ol-save,#flow-modal),body:has(#app:is(.owner-workspace,.platform-workspace)) dialog::backdrop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
 }
 @media(prefers-reduced-motion:reduce){body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button,a.button){transition:none!important;}body #app#app#app#app#app#app#app#app#app:is(.owner-workspace,.platform-workspace) :is(button,a.button):active{transform:none!important;}}
 /* Embedded Shop uses the same surfaces, without adding another canvas behind it. */
 body[data-embedded="1"]#tapo-shop-glass{background:transparent!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#1C1C1E!important;}
 body[data-embedded="1"]#tapo-shop-glass #shop{background:transparent!important;}
 body[data-embedded="1"]#tapo-shop-glass :is(.product-admin>article,.products-grid>article,.product-card,.order-card){border:1px solid #3c3c431f!important;border-radius:20px!important;background:#fffffff2!important;box-shadow:inset 0 1px 0 white!important;}
 body[data-embedded="1"]#tapo-shop-glass :is(button,.button,.btn){border-radius:14px!important;corner-shape:round!important;min-height:44px!important;font-family:inherit!important;touch-action:manipulation;}
 body[data-embedded="1"]#tapo-shop-glass .btn.primary{background:#007AFF!important;color:#fff!important;border-color:transparent!important;}
 body[data-embedded="1"]#tapo-shop-glass :is(input:not([type=checkbox],[type=radio],[type=color],[type=range],[type=file]),select,textarea){border-radius:12px!important;font-family:inherit!important;font-size:16px!important;}
 body[data-embedded="1"]#tapo-shop-glass .top{background:transparent!important;}
}

/* Consistent workspace rhythm and semantic Apple-style accents. */
@layer tapo-neutral {
  #app.owner-workspace .ol-home { display:grid; gap:20px; min-width:0; }
  #app.owner-workspace .ol-home > * { margin-block:0 !important; min-width:0; }
  #app.owner-workspace .ol-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px !important; }
  #app.owner-workspace .ol-metric { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:6px; min-height:112px; padding:16px !important; border-radius:18px !important; corner-shape:round !important; text-align:left; }
  #app.owner-workspace .ol-metric > * { margin:0; }
  #app.owner-workspace .ol-card-summary { gap:20px !important; padding:20px !important; align-items:center; }
  #app.owner-workspace .ol-card-copy { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; }
  #app.owner-workspace .ol-automations { display:grid; gap:12px !important; }
  #app.owner-workspace .ol-automations > h2, #app.owner-workspace .ol-automations > h3 { margin:0 0 4px; }
  #app.owner-workspace .ol-automation { min-height:72px; padding:14px 16px !important; margin:0 !important; border-radius:14px !important; corner-shape:round !important; gap:12px; text-align:left; }
  #app.owner-workspace .ol-automation > :first-child { min-width:0; }
  #app.owner-workspace .ol-automation :is(strong,small) { overflow-wrap:anywhere; }
  #app.owner-workspace .ol-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px !important; }
  #app.owner-workspace .ol-links > * { min-height:64px; margin:0 !important; padding:14px !important; border-radius:14px !important; corner-shape:round !important; text-align:left; }
  #app.owner-workspace :is(.ol-text-button,.ol-card-copy a) { color:#007AFF !important; }
  #app:is(.owner-workspace,.platform-workspace) { --accent:#007AFF; --brand:#007AFF; --danger:#FF3B30; --success:#34C759; }
  #app:is(.owner-workspace,.platform-workspace) :is(.np-sidebar,.central-sidebar) nav :is(svg,.icon) { flex-shrink:0; }
  #app:is(.owner-workspace,.platform-workspace) :is(button,a.button):focus-visible { outline:3px solid #007AFF; outline-offset:3px; }
  @media(min-width:1200px) { #app.owner-workspace .ol-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); } }
  @media(max-width:600px) {
    #app.owner-workspace .ol-home { gap:16px; }
    #app.owner-workspace .ol-card-summary { display:grid; grid-template-columns:minmax(0,1fr); padding:16px !important; gap:16px !important; }
    #app.owner-workspace .ol-card-copy { align-items:stretch; }
    #app.owner-workspace .ol-links { grid-template-columns:minmax(0,1fr); }
    #app.owner-workspace .ol-metric { min-height:104px; padding:14px !important; }
  }
}
/* Menu editor: one consistent, adaptive hierarchy. */
@layer tapo-neutral {
 body #app #owner-main:has(.nfc-menu-section) .owner-content {max-width:1160px;margin-inline:auto;min-width:0;}
 body #app #owner-main .owner-menu-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
 body #app #owner-main .nfc-menu-section {padding:16px!important;margin-block:16px!important;border-radius:20px!important;background:#fff!important;}
 body #app #owner-main .nfc-menu-section .panel-head {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px!important;}
 body #app #owner-main .nfc-menu-section .panel-head h3 {flex:1 1 180px;min-width:0;margin:0;font-size:17px;line-height:1.3;}
 body #app #owner-main :is(.np2-inline-title,.np2-inline-section) {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-weight:600!important;min-width:0;max-width:100%;}
 body #app #owner-main .np2-inline-title {font-size:26px!important;line-height:1.2!important;letter-spacing:-.025em;}
 body #app #owner-main .np2-inline-section {font-size:17px!important;line-height:1.3!important;}
 body #app #owner-main .nfc-menu-item {display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;align-items:center;gap:12px!important;width:100%;min-height:80px;padding:12px!important;margin:0!important;border:0!important;border-bottom:1px solid #e5e5ea!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left;}
 body #app #owner-main .nfc-menu-item:last-child {border-bottom:0!important;}
 body #app #owner-main .nfc-menu-item>img {width:56px!important;height:56px!important;object-fit:cover;border-radius:12px!important;}
 body #app #owner-main .nfc-menu-item>span {min-width:0;}
 body #app #owner-main .nfc-menu-item strong {display:block;font-size:15px!important;line-height:1.35!important;font-weight:600!important;color:#1c1c1e!important;overflow-wrap:anywhere;}
 body #app #owner-main .nfc-menu-item small {display:block;margin-top:4px;font-size:13px!important;line-height:1.35!important;color:#636366!important;}
 body #app #owner-main .nfc-menu-item>span:last-child {font-size:15px!important;line-height:1.35;font-weight:600;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;}
 body #app #owner-main .nfc-menu-section button {min-height:44px;}
 @media(max-width:600px) {
  body #app #owner-main .nfc-menu-section {padding:12px!important;margin-block:12px!important;}
  body #app #owner-main .owner-menu-actions {width:100%;}
  body #app #owner-main .owner-menu-actions>* {flex:1 1 auto;}
  body #app #owner-main .nfc-menu-item {grid-template-columns:48px minmax(0,1fr) auto!important;gap:10px!important;padding:12px 0!important;}
  body #app #owner-main .nfc-menu-item>img {width:48px!important;height:48px!important;}
  body #app #owner-main .nfc-menu-item small {font-size:12px!important;}
  body #app #owner-main .nfc-menu-item>span:last-child {font-size:14px!important;}
 }
}

/* Owner workspace: calm surfaces, consistent hierarchy and short interaction feedback. */
@layer tapo-neutral {
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace { --owner-line:#e5e5ea; --owner-muted:#63636b; --ws-card:#fff; }
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace #owner-main {color:#1c1c1e!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content {font-size:15px!important;line-height:1.5!important;min-width:0!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.owner-page-header,.nfs-heading,.tapo-account-heading,.tapo-feedback-header) {margin:0 0 24px!important;gap:16px!important;align-items:center!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.owner-page-header,.nfs-heading,.tapo-account-heading,.tapo-feedback-header) h2 {font-size:28px!important;line-height:1.2!important;font-weight:650!important;letter-spacing:-.035em!important;margin:0!important;text-wrap:balance;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.panel-head,h3):not(:where(.nfc-preview *,.nfs-preview *)) {font-size:16px!important;line-height:1.4!important;letter-spacing:-.015em!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.panel,.tapo-account-card,.ol-card-summary,.ol-automations):not(:where(.nfc-preview *,.nfs-preview *)) {border:1px solid var(--owner-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important;padding:20px!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content .panel .panel:not(:where(.nfc-preview *,.nfs-preview *)) {padding:16px 0!important;border:0!important;border-radius:0!important;background:transparent!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.field,.nfs-network):not(:where(.nfc-preview *,.nfs-preview *)) {min-width:0!important;gap:8px!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(label,.field>span):not(:where(.nfc-preview *,.nfs-preview *,.tapo-switch *)) {line-height:1.4!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=hidden]),select,textarea):not(:where(.nfc-preview *,.nfs-preview *)) {box-sizing:border-box!important;min-height:44px!important;padding:10px 12px!important;border:1px solid #d1d1d6!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;font-size:15px!important;line-height:1.4!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content textarea:not(:where(.nfc-preview *,.nfs-preview *)) {min-height:104px!important;resize:vertical;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(button,a.button,label.button):not(:where(.nfc-preview *,.nfs-preview *,.a-info,.a-sort,.tapo-switch *,.owner-design-map *,.tb-grid *)) {min-height:44px!important;padding:10px 16px!important;border-radius:12px!important;box-shadow:none!important;font-size:14px!important;font-weight:600!important;line-height:1.35!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(button.secondary,a.button.secondary):not(:where(.nfc-preview *,.nfs-preview *,.a-info,.a-sort,.tb-grid *)) {background:#fff!important;border:1px solid #dcdce1!important;color:#303034!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.owner-page-actions,.owner-menu-actions,.panel-head>.actions) {display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace #owner-navigation {background:#fafafa!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;border-right:1px solid #e8e8ed!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace #owner-navigation nav>button {border-radius:10px!important;min-height:44px!important;color:#52525b!important;font-size:14px!important;gap:10px!important;box-shadow:none!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace #owner-navigation nav>button.active {background:#eaf2ff!important;color:#005fcc!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace #owner-navigation nav>button.active:before {display:none!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.nfc-save,.nfs-save,.ol-save,.save-bar) {box-sizing:border-box!important;gap:12px!important;padding:12px 16px!important;border:1px solid #e5e5ea!important;border-radius:14px!important;background:#fffffff2!important;box-shadow:0 4px 20px #00000006!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.nfc-save,.nfs-save,.ol-save,.save-bar)>:is(p,span,small) {font-size:12px!important;line-height:1.4!important;color:#63636b!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.ol-home,.tapo-account-stack) {gap:20px!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content .ol-metrics {gap:12px!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content .ol-metric {border:1px solid #e5e5ea!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important;padding:16px!important;min-height:108px!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.ol-automation,.ol-links>*):not(:where(.nfc-preview *)) {border-radius:12px!important;box-shadow:none!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content .ol-automations {gap:10px!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content .tapo-feedback-secondary {gap:12px!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content .tapo-feedback-card {padding:12px 16px!important;border-radius:14px!important;box-shadow:none!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.nfc-menu-item,.np-location) {min-width:0!important;box-shadow:none!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.danger,.danger-button,button[data-delete]) {color:#c62828!important;background:#fff4f3!important;border-color:#ffd3cf!important;}
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(button,a.button,label.button,input,select,textarea,summary):focus-visible:not(:where(.nfc-preview *,.nfs-preview *)) {outline:3px solid #007aff!important;outline-offset:3px!important;}
 @media (hover:hover) and (pointer:fine) {
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content button.secondary:hover:not(:disabled):not(:where(.nfc-preview *,.nfs-preview *,.tb-grid *)) {background:#f5f5f7!important;border-color:#c7c7cc!important;}
 }
 @media(max-width:767px) {
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content {font-size:15px!important;}
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.owner-page-header,.nfs-heading,.tapo-account-heading,.tapo-feedback-header) {margin-bottom:20px!important;gap:12px!important;}
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.owner-page-header,.nfs-heading,.tapo-account-heading,.tapo-feedback-header) h2 {font-size:24px!important;}
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.panel,.tapo-account-card,.ol-card-summary,.ol-automations):not(:where(.nfc-preview *,.nfs-preview *)) {padding:16px!important;border-radius:16px!important;}
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=hidden]),select,textarea):not(:where(.nfc-preview *,.nfs-preview *)) {font-size:16px!important;}
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.owner-page-actions,.owner-menu-actions) {max-width:100%!important;}
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.nfc-save,.nfs-save,.ol-save,.save-bar) {padding:10px 12px!important;gap:10px!important;}
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(.nfc-save,.nfs-save,.ol-save,.save-bar)>button {flex-shrink:0!important;}
 }
 @media(prefers-reduced-motion:reduce) {
  body #app#app#app#app#app#app#app#app#app#app.owner-workspace .owner-content :is(button,a.button,details>*):not(:where(.nfc-preview *,.nfs-preview *)) {animation:none!important;transition:none!important;}
 }
}

/* Business identity starts with the uploaded logo; preserve existing title values on save. */
@layer tapo-neutral {
 body #app#app#app#app#app#app#app#app#app#app.owner-workspace #owner-design-identity > .nfd-title {display:none!important;}
}
