/* TAPO core palette. One shared source for marketing, workspaces and scanner. */
@layer tapo-premium{
 :root{--tapo-orange:#FF7300!important;--tapo-action:#FF7300!important;--tapo-ink:#2D2C2B!important;--tapo-muted:#64605E!important;--tapo-ivory:#F9F4F2!important;--tapo-soft:#F9F4F2!important;--tapo-active:#FF73001F!important;--tapo-line:#E6DFDB!important;--tapo-ui-canvas:#F9F4F2!important;--tapo-ui-ink:#2D2C2B!important;--tapo-ui-accent:#FF7300!important;--tapo-ui-accent-hover:#FC5500!important;--tapo-accent-ink:#9C3900;--tapo-blue:#0061EF;--tapo-green:#01A652;--tapo-yellow:#FFCE00;--tapo-pink:#FFA1CC;--tapo-purple:#9E65C6;--tapo-warm:#F9F4F2;--tapo-success-ink:#0B662A;--tapo-loyalty:#8144A8;--tapo-loyalty-soft:#FFA1CC33}
 body:not(.customer-glass):not(.nfd-public){background:#F9F4F2!important}
 body :is(.button,button.primary,button[type=submit],.trial-primary,.hero-main-cta,.save-bar button:not(.secondary),.nfc-save button,.login>button):not(.secondary):not(.danger):not(:disabled){background:#FF7300!important;border-color:#FF7300!important;color:#2D2C2B!important}
 body :is(.button,button.primary,button[type=submit],.trial-primary,.hero-main-cta):not(.secondary):not(.danger):not(:disabled):hover{background:#FFA500!important;color:#2D2C2B!important;border-color:#FFA500!important}
 body:not(.customer-glass) :is(.eyebrow,.tl-eyebrow,.text-link,.tl-contact,.customer-brand-editor .active){color:#9C3900!important}
 body:not(.customer-glass) button[aria-pressed=true]:not(.hub-row):not(.tapo-swatch){color:#9C3900!important;background:#FF73001F!important;border-color:#FF7300!important}
 #app:is(.owner-workspace,.platform-workspace) :is(aside,.owner-sidebar,.central-sidebar){background:#F9F4F2!important}
 #app :is(.owner-sidebar nav button,.central-sidebar nav button,.np2-nav button).active{background:#FF73001F!important;color:#2D2C2B!important;border-color:#FF7300!important}
 body input[type=checkbox],body input[type=radio]{accent-color:#0061EF}
 body:has(#scanner-app){background:#F9F4F2!important;color:#2D2C2B!important}
 #scanner-app .primary{background:#FF7300!important;color:#2D2C2B!important}
 #scanner-app .dot.filled{background:#FF7300!important}
 #scanner-app .status-mark{background:#01A6521F!important;color:#0B662A!important}
 #scanner-app .status-mark.locked{background:#FF73001F!important;color:#9C3900!important}
 #scanner-app .success-caption{color:#0B662A!important}
 #scanner-app .icon-btn:not(.camera .icon-btn),#scanner-app .select-location{background:#F9F4F2!important;color:#2D2C2B!important}
 #scanner-app .camera .icon-btn{background:#FFFFFF28!important;color:#FFFFFF!important}
}
body label:has(>.tapo-palette-host){min-width:0;grid-template-columns:minmax(0,1fr)}
body .two:has(>.tapo-palette-host),body .two:has(>label>.tapo-palette-host){grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:20px;align-items:start}
body .tapo-palette-host{display:block!important;height:auto!important;min-height:0!important;min-width:0!important;max-width:100%;width:100%;padding:0!important;border:0!important;background:transparent!important}
body .tapo-palette-host>input[hidden],body .tapo-palette-host>span[hidden]{display:none!important}
body .tapo-palette-control{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:8px 0 4px;min-width:0;padding:3px}
body .tapo-swatches{display:grid;grid-template-columns:repeat(auto-fill,44px);gap:8px;width:100%;max-width:390px;min-width:0;justify-content:start}
@layer tapo-premium{
 body .tapo-palette-host .tapo-palette-control button.tapo-swatch,body .tapo-palette-host .tapo-palette-control button.tapo-swatch[aria-pressed=true]{display:grid!important;place-items:center!important;box-sizing:border-box!important;min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;max-width:44px!important;padding:0!important;border:1px solid #2D2C2B30!important;border-radius:12px!important;background:var(--swatch)!important;color:var(--swatch-ink)!important;box-shadow:none!important;cursor:pointer}
 body .tapo-palette-host .tapo-palette-control button.tapo-swatch[aria-pressed=true]{outline:2px solid #2D2C2B!important;outline-offset:2px!important}
 body .tapo-palette-host .tapo-palette-control button.tapo-swatch:focus-visible{outline:3px solid #0061EF!important;outline-offset:3px!important}
}
body .tapo-swatch svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.5;opacity:0;pointer-events:none}
body .tapo-swatch[aria-pressed=true] svg{opacity:1}
body .tapo-palette-control details{padding:0!important;margin-top:12px!important;border:0!important;background:transparent!important}
body .tapo-palette-control summary{font:500 12px/1.5 Outfit,Arial,sans-serif!important;padding:5px 0!important;min-height:32px!important;color:#64605E!important;cursor:pointer}
body .tapo-palette-control details[open] .tapo-swatches{margin-top:8px}
body .tapo-colour-label{display:block;font:400 11px/1.5 Outfit,Arial,sans-serif;color:#64605E;margin-top:10px;overflow-wrap:anywhere}
body .tapo-palette-control[hidden]{display:none!important}

@layer tapo-premium{
 body #app #owner-main #nfc-design .nfc-color.tapo-palette-host{display:block!important;height:auto!important;margin-top:16px!important;}
 body #app #owner-main #nfc-design .nfc-color.tapo-palette-host [data-nfc-reset-color]{width:auto!important;min-width:64px!important;white-space:nowrap!important;margin-top:8px!important;}
}


/* Solid TAPO icons. Utility shapes retain their inherited control contrast. */
@layer tapo-premium {
 body :is(svg.tapo-icon[data-icon-weight=solid],svg.tapo-icon[data-icon-weight=solid] path){fill:currentColor!important;stroke:none!important;}
 body #app:is(.owner-workspace,.platform-workspace) :is(h1,h2,h3,h4,p,span,label,button,input,select,textarea,small,summary,th,td){font-family:Outfit,Arial,sans-serif!important;}
 body #app :is(.nfl-icon,.np-link-icon,.nfc-panel-icon,.setting-icon,.np2-section-icon,.np2-card-icon),body .home-capability-icon{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#FF7300!important;}
 body #app :is(.nfl-icon,.np-link-icon,.nfc-panel-icon,.setting-icon) svg{width:22px!important;height:22px!important;}
 body :is(.hub-icon,.nfl-icon,.np-link-icon,.nfc-panel-icon,.setting-icon,.home-capability-icon,nav) svg.tapo-icon{color:var(--tapo-glyph,#FF7300)!important;}
 body svg.tapo-icon[data-tapo-icon=menu]{--tapo-glyph:var(--tapo-icon-menu,#FF7300);}
 body svg.tapo-icon[data-tapo-icon=heart]{--tapo-glyph:var(--tapo-icon-heart,#8144A8);}
 body svg.tapo-icon[data-tapo-icon=wifi]{--tapo-glyph:var(--tapo-icon-wifi,#01A652);}
 body svg.tapo-icon[data-tapo-icon=feedback]{--tapo-glyph:var(--tapo-icon-feedback,#0061EF);}
 body svg.tapo-icon[data-tapo-icon=game]{--tapo-glyph:var(--tapo-icon-game,#9E65C6);}
 body svg.tapo-icon[data-tapo-icon=star]{--tapo-glyph:var(--tapo-icon-star,#FFB700);}
 body #app#app .customer-hub :is(.hub-icon,.hub-icon.pink,.hub-icon.amber,.hub-icon.mint,.hub-icon.blue,.hub-icon.purple,.hub-icon.multicolor){width:28px!important;min-width:28px!important;height:28px!important;flex:0 0 28px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
 body #app#app .customer-hub .hub-icon :is(svg,img){width:24px!important;height:24px!important;min-width:24px!important;filter:none!important;}
 body #app#app .customer-hub .hub-icon svg.tapo-icon{color:var(--tapo-glyph,var(--tapo-icon-fallback,#FF7300))!important;}
 body #app#app .customer-hub .hub-icon.multicolor{color:var(--tapo-icon-feedback,#0061EF)!important;}
 body #app#app .customer-hub .hub-icon.multicolor svg{fill:currentColor!important;stroke:none!important;}
 body #app#app .customer-hub,body #app#app .customer-hub :is(h1,h2,h3,p,span,small,label,input,select,textarea,button,a),body.customer-glass :is(.customer-sheet,.consumer,.nc-menu-dialog){font-family:Outfit,Arial,sans-serif!important;}
 body #app#app .customer-hub .hub-row{background:var(--nfd-button-bg,var(--cg-button-bg,#F9F4F2))!important;color:var(--nfd-button-text,var(--cg-button-text,#2D2C2B))!important;border:1px solid #2D2C2B14!important;box-shadow:0 2px 5px #2D2C2B08!important;backdrop-filter:none!important;opacity:1!important;min-height:64px!important;padding:16px 18px!important;border-radius:20px!important;gap:16px!important;}
 body #app#app .customer-hub .hub-actions{gap:10px!important;}
 body #app#app .customer-hub[data-landing-style] :is(.outlet-identity h1,.outlet-identity p,.hub-row>span:nth-child(2),.hub-row>small,.hub-footer .powered){font-family:Outfit,Arial,sans-serif!important;font-variant-caps:normal!important;text-transform:none!important;letter-spacing:0!important;font-synthesis:none!important;}
 body #app#app .customer-hub .outlet-identity h1{font-weight:600!important;letter-spacing:-.025em!important;}
 body #app#app .customer-hub .hub-row>span:nth-child(2){font-weight:500!important;font-size:16px!important;}
 body #app#app .customer-hub[data-landing-style=modern] .outlet-identity h1{font-weight:700!important;}
 body #app#app .customer-hub[data-landing-style=classic] .hub-row{min-height:56px!important;padding-block:12px!important;border-radius:14px!important;}
 body #app#app .customer-hub[data-landing-style=editorial] .hub-row{border-radius:8px!important;box-shadow:none!important;}
 body #app .nfc-style-demo{font-family:Outfit,Arial,sans-serif!important;font-variant-caps:normal!important;text-transform:none!important;letter-spacing:0!important;font-weight:500!important;}
 body #app .nfc-style-demo.modern{font-weight:700!important;}
 body #app#app .customer-hub .hub-row:focus-visible{outline:3px solid var(--nfd-text,#2D2C2B)!important;outline-offset:3px!important;}
 body #app#app .customer-hub .hub-row:disabled{opacity:1!important;}
 body #app#app .customer-hub .hub-row:disabled>small{opacity:.7;}
}

@layer tapo-premium{body #scanner-app .status-mark{background:transparent!important;border-radius:0!important;}body #scanner-app svg.tapo-icon[data-icon-weight=solid]{fill:currentColor!important;stroke:none!important;}body #app#app .customer-hub .hub-icon svg[data-tapo-icon=wifi]{color:var(--tapo-icon-wifi,#01A652)!important;}}

@layer tapo-premium{body svg.tapo-icon[data-tapo-icon=google]{--tapo-glyph:var(--tapo-icon-feedback,#0061EF);}body #app#app .customer-hub .outlet-logo img[src^="/tapo-logo-square.svg?v=20261103-logo50-51-2"]{object-fit:contain!important;padding:12px!important;}}

@layer tapo-premium{body #app#app:is(.owner-workspace,.platform-workspace) :is(.nfl-icon,.np-link-icon,.nfc-panel-icon,.setting-icon){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;}body #app.owner-workspace .owner-menu-trigger{border-radius:10px!important;}}

/* The supplied horizontal lockup keeps its aspect ratio at every touchpoint. */
@layer tapo-premium{
 body .brand svg[data-tapo-lockup]{height:auto!important;aspect-ratio:1167/345.5;overflow:visible;}
 body #app#app .customer-hub .hub-footer .brand svg{width:90px!important;height:auto!important;}
 body #app#app .customer-hub .hub-footer .brand svg .tapo-brand-mark{fill:var(--nfd-text,var(--cg-text,#2D2C2B))!important;}
 body :is(.site-header,.site-footer) .logo img[src*="tapo-brand"]{width:116px!important;height:auto!important;object-fit:contain;}
 body input[type=range]{accent-color:#FF7300;}
}

@layer tapo-premium{
 body #app .customer-sheet{transform-origin:center center!important;border-radius:28px 28px 0 0!important;background:#FFFFFF!important;color:#2D2C2B!important;}
 body #app .customer-sheet :is(.sheet-header,.customer-sheet-grip){background:#FFFFFF!important;}
 body #app .customer-sheet::backdrop{background:#2D2C2B66;backdrop-filter:blur(8px);animation:tapo-widget-backdrop 220ms ease both;}
 body #app .customer-sheet :is(button,input,textarea,select){font-family:Outfit,Arial,sans-serif!important;}
 body #app#app .customer-hub .hub-row[aria-busy=true]:not(.pro-wifi-inline)>.hub-icon{animation:tapo-widget-pending .8s ease-in-out infinite alternate;}
 @media(prefers-reduced-motion:reduce){body #app .customer-sheet::backdrop,body #app#app .customer-hub .hub-row[aria-busy=true]:not(.pro-wifi-inline)>.hub-icon{animation:none!important;}}
}
@keyframes tapo-widget-backdrop{from{opacity:0}to{opacity:1}}
@keyframes tapo-widget-pending{from{opacity:1}to{opacity:.45}}

/* Solid TAPO bento on a colour or photo wallpaper, without a separate cover. */
@layer tapo-premium {
 body.customer-glass.nfd-public{background:var(--tapo-wallpaper,var(--nfd-background,#F9F4F2)) center/cover no-repeat!important;}
 body #app#app .customer-hub[data-surface=solid]{background:var(--tapo-wallpaper,var(--cg-start)) center/cover no-repeat!important;color:var(--tapo-wallpaper-text)!important;}
 body #app#app .customer-hub[data-surface=solid]::before,
 body #app#app .customer-hub[data-surface=solid] .hub-actions>.hub-row::before,
 body #app#app .customer-hub[data-surface=solid] .hub-actions>.hub-row::after{content:none!important;display:none!important;}
 body #app#app .customer-hub[data-surface=solid] .outlet-cover{display:none!important;}
 body #app#app .customer-hub[data-surface=solid] :is(.nfc-customer-layout,.outlet-identity,.hub-actions,.hub-socials,.hub-footer){background:transparent!important;}
 body #app#app .customer-hub[data-surface=solid] .nfc-customer-layout{min-height:inherit;}
 body #app#app .customer-hub[data-surface=solid] .outlet-identity{margin:0 auto!important;padding:48px 24px 12px!important;min-height:0!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
 body #app#app .customer-hub[data-surface=solid] :is(.outlet-identity h1,.outlet-identity p,.customer-tagline,.hub-footer,.hub-footer .powered,.hub-footer .brand){color:var(--tapo-wallpaper-text)!important;}
 body #app#app .customer-hub[data-surface=solid] .hub-actions>.hub-row{background:var(--cg-button-bg,#F9F4F2)!important;color:var(--cg-button-text,#2D2C2B)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;opacity:1!important;}
 body #app#app .customer-hub[data-surface=solid] .hub-socials a{background:var(--cg-button-bg,#F9F4F2)!important;color:var(--cg-button-text,#2D2C2B)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:1px solid #2D2C2B14!important;box-shadow:none!important;}
 #app #owner-main .nfd-background-choice{border:0;padding:0;margin:18px 0;min-width:0;}
 #app #owner-main :is(.nfd-background-upload,.nfd-background-colour)[hidden]{display:none!important;}
 #app #owner-main .nfd-background-upload .nfc-image-row{margin-top:16px;}
 #app #owner-main .nfd-background-upload .nfc-image-placeholder{background:#F9F4F2;display:grid;place-items:center;}
 #app #owner-main .nfd-background-upload .nfc-image-placeholder svg{width:28px;height:28px;}
 @media(max-width:520px){body #app#app .customer-hub[data-surface=solid] .outlet-identity{padding-top:max(36px,env(safe-area-inset-top))!important;}}
}

/* Photo effects live below content, never on a parent of a widget or dialog. */
@layer tapo-premium {
 body.customer-glass.nfd-public {isolation:isolate;}
 body #app#app .customer-hub[data-surface=solid] {position:relative!important;isolation:isolate;}
 .tapo-wallpaper-layer {position:absolute!important;inset:0!important;z-index:-1!important;display:block;overflow:hidden;pointer-events:none;background:#000;border-radius:inherit;}
 .tapo-wallpaper-layer::before {content:'';position:absolute;inset:var(--wallpaper-bleed,0px);background:var(--wallpaper-image) center/cover no-repeat;filter:brightness(var(--wallpaper-brightness,0.38)) blur(var(--wallpaper-blur,0px));}
 .tapo-wallpaper-layer::after {content:'';position:absolute;inset:0;opacity:var(--wallpaper-grain,0);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch' seed='8'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.8' d='M0 0h160v160H0z'/%3E%3C/svg%3E");background-size:160px 160px;}
 body.customer-glass.nfd-public>.tapo-wallpaper-layer {position:fixed!important;border-radius:0;}
 body.customer-glass.nfd-public #app#app .customer-hub[data-background-mode=image] {background:transparent!important;}
 body.customer-glass.nfd-public #app#app .customer-hub>.tapo-wallpaper-layer {display:none!important;}
}
@layer tapo-owner-dashboard {
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effects {min-width:0;margin:20px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--tapo-line,#E6DFDB);}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effects legend {padding:0;font:600 14px/1.4 Outfit,Arial,sans-serif;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effects .owner-help {margin:0 0 12px!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effect {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;margin:8px 0;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effect label {display:block;margin:0!important;font:500 14px/1.4 Outfit,Arial,sans-serif!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effect output {font:500 13px/1.4 Outfit,Arial,sans-serif;color:var(--tapo-muted);font-variant-numeric:tabular-nums;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effect input[type=range] {grid-column:1/-1;width:100%!important;min-width:0;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;accent-color:#FF7300;cursor:pointer;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effect input:focus-visible {outline:2px solid #0061EF;outline-offset:2px;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-photo-effects:disabled {opacity:.5;}
 body #app.owner-workspace #owner-main #nfc-design [data-background-effects-reset] {min-height:44px!important;margin-top:4px;}
}
@layer tapo-owner-dashboard {
 body #app.owner-workspace #owner-main #nfc-design .nfd-background-choice .nfc-segments{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-background-choice .nfc-segments label{width:100%!important;min-width:0!important;margin:0!important;padding:0!important;min-height:46px!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-background-choice .nfc-segments label>span{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:46px!important;padding:10px 8px!important;font-size:13px!important;line-height:1.3!important;word-break:normal!important;overflow-wrap:normal!important;white-space:nowrap!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-background-upload .nfc-image-row{display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;gap:16px!important;align-items:center!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-background-upload :is(.nfc-image-row img,.nfc-image-placeholder){width:80px!important;height:104px!important;object-fit:cover!important;border-radius:12px!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-background-upload .nfd-image-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-width:0!important;}
 body #app.owner-workspace #owner-main #nfc-design .nfd-background-upload .nfd-image-actions :is(label,button){font-size:12px!important;white-space:normal!important;min-height:44px!important;}
}
