/* TechRib V3.2 – refinamento visual do dashboard para aproximar do mockup aprovado, sem alterar a lógica do sistema. */
html[data-iot-theme="mushroom"]{--tr-bg:#07111d;--tr-card:#132437;--tr-surface:#0d1c2c;--tr-raised:#1b3149;--tr-border:#263d55;--tr-shadow:0 12px 26px rgba(0,0,0,.22);--tr-accent:#48adff;--tr-accent-2:#1d7bff}
html[data-iot-theme="mushroom"] .tr-sidebar{background:linear-gradient(180deg,#0b1c2e 0%,#0a1524 100%);border-color:#203347}
html[data-iot-theme="mushroom"] .tr-header{background:#091523}
html[data-iot-theme="mushroom"] .tr-side-nav a[aria-current="page"]{background:linear-gradient(100deg,#126be9,#164491);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
html[data-iot-theme="mushroom"] .tr-brand-name{color:#fff}
html[data-iot-theme="mushroom"] .tr-brand-sub{color:#a9c2d9}

.techrib-v3{--iot-radius:18px}
.techrib-v3 .tr-header{padding:10px 20px}
.techrib-v3 .tr-brand{gap:12px}
.techrib-v3 .tr-brand-mark{width:42px;height:42px;border-radius:12px;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.techrib-v3 .tr-brand-name{font-size:16px;font-weight:800}
.techrib-v3 .tr-brand-sub{font-size:11px}
.techrib-v3 .tr-sidebar{padding-top:14px}
.techrib-v3 .tr-nav-heading{margin:12px 12px 6px}
.techrib-v3 .tr-side-nav{gap:5px}
.techrib-v3 .tr-side-nav a{padding:11px 14px;border-radius:14px;font-size:13px}
.techrib-v3 .tr-side-nav a[aria-current="page"]{background:linear-gradient(90deg,#146ce6,#0f5ec7);color:#fff}
.techrib-v3 .tr-side-nav a[aria-current="page"] .tr-side-icon{color:#fff}
.techrib-v3 .tr-side-foot{border-radius:16px;background:rgba(255,255,255,.03)}
.techrib-v3 .tr-workarea main{padding:22px 28px 48px}

.techrib-v3 .trv3-welcome{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;min-height:98px;padding:18px 22px;margin-bottom:16px;border:1px solid var(--tr-border);border-radius:22px;background:linear-gradient(125deg,rgba(16,74,138,.28),rgba(11,30,48,.92) 38%,rgba(10,24,40,.98));box-shadow:0 18px 36px rgba(0,0,0,.22)}
.techrib-v3 .trv3-home-emblem{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:16px;background:linear-gradient(180deg,rgba(16,126,214,.25),rgba(13,41,69,.86));box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.techrib-v3 .trv3-home-emblem img{display:block;width:42px;height:42px;object-fit:contain}
.techrib-v3 .trv3-welcome-copy{display:flex;align-items:center;gap:16px;min-width:0}
.techrib-v3 .trv3-welcome-copy>span,.techrib-v3 .trv3-welcome-copy>div{min-width:0}
.techrib-v3 .trv3-welcome-copy{display:grid;grid-template-columns:58px minmax(0,1fr)}
.techrib-v3 .trv3-home-emblem{grid-row:1 / span 3}
.techrib-v3 .trv3-eyebrow{display:block;color:#3db3ff;font-size:10px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase}
.techrib-v3 .trv3-welcome h2{font-size:20px!important;margin:2px 0 0!important;color:#fff;line-height:1.12}
.techrib-v3 .trv3-welcome p{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#b8cce0;font-size:12px;margin:0}
.techrib-v3 .trv32-divider{opacity:.5}
.techrib-v3 .trv3-welcome strong{color:#4ce0a0;font-weight:800}
.techrib-v3 .trv32-welcome-side{display:flex;align-items:center;justify-content:flex-end}
.techrib-v3 .trv32-side-card{min-width:230px;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,rgba(25,56,88,.82),rgba(11,27,44,.9));border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.techrib-v3 .trv32-side-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#8eb3cf;margin-bottom:6px}
.techrib-v3 .trv32-side-value{display:block;color:#fff;font-size:17px;font-weight:800;line-height:1.1}
.techrib-v3 .trv32-side-note{display:block;color:#acc4d8;font-size:11px;margin-top:5px}

.techrib-v3 .iot-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;padding:2px 2px 0;margin:0 0 14px}
.techrib-v3 .iot-head h1{font-size:20px;line-height:1.05}
.techrib-v3 .iot-eyebrow{font-size:10px}
.techrib-v3 .iot-head-tools{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.techrib-v3 .iot-live{font-size:11px;padding:11px 13px;border-radius:999px;background:rgba(15,34,53,.72);border-color:rgba(255,255,255,.08)}
.techrib-v3 .iot-filters{gap:8px}
.techrib-v3 .iot-filters label{display:block;background:var(--tr-card);border:1px solid var(--tr-border);padding:8px 10px;border-radius:16px;min-width:178px;box-shadow:var(--tr-shadow)}
.techrib-v3 .iot-filters label span{display:block;margin-bottom:2px}
.techrib-v3 .iot-filters select{margin:0!important;border:0!important;background:transparent!important;padding:3px 0 0!important;font-size:13px!important;min-width:0;color:var(--tr-text)}
.techrib-v3 .iot-head-action{font-size:12px;border-radius:14px;padding:12px 14px;background:rgba(255,255,255,.04)!important;border:1px solid var(--tr-border)!important;color:var(--tr-text)!important}
.techrib-v3 .iot-head-action:hover{text-decoration:none;background:var(--tr-raised)!important}

.techrib-v3 .iot-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.techrib-v3 .iot-kpi{min-height:88px!important;padding:15px 16px!important;border-radius:18px;background:linear-gradient(180deg,rgba(20,39,59,.94),rgba(17,35,52,.96));border:1px solid var(--tr-border);box-shadow:0 12px 28px rgba(0,0,0,.14)}
.techrib-v3 .iot-kpi span{font-size:10px}.techrib-v3 .iot-kpi strong{font-size:26px!important;margin:7px 0 3px}.techrib-v3 .iot-kpi .iot-icon-wrap{width:44px;height:44px;border-radius:14px;background:rgba(16,114,193,.18)}

.techrib-v3 #techribUniversal{margin:0 0 18px}
.techrib-v3 #techribUniversal>.tr-universal-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:0 0 12px}
.techrib-v3 #techribUniversal>.tr-universal-heading h2{font-size:20px!important;color:#fff;margin:0}
.techrib-v3 #techribUniversal>.tr-universal-heading small{font-size:11px;color:var(--tr-muted)}
.techrib-v3 #techribUniversal>.tr-universal-grid{display:none!important}
.techrib-v3 .trv3-components{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(470px,1.1fr);grid-auto-rows:auto;gap:18px;align-items:start}
.techrib-v3 .trv3-group{min-width:0}
.techrib-v3 .trv3-group.trv3-lights{grid-column:1;grid-row:1}
.techrib-v3 .trv3-group.trv3-special{grid-column:2;grid-row:1}
.techrib-v3 .trv3-group.trv3-sensors,.techrib-v3 .trv3-group.trv3-other{grid-column:1 / -1}
.techrib-v3 .trv3-group-heading{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:0 0 11px}
.techrib-v3 .trv3-group-heading h2{margin:0!important;font-size:16px;font-weight:850;color:#fff}.techrib-v3 .trv3-group-heading small{font-size:10px;color:var(--tr-muted);text-align:right}
.techrib-v3 .trv3-lights .trv3-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.techrib-v3 .trv3-special .trv3-tiles{display:grid;grid-template-columns:repeat(2,minmax(min(220px,100%),1fr));gap:14px;align-items:stretch}
.techrib-v3 .trv3-sensors .trv3-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.techrib-v3 .trv3-other .trv3-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}

.techrib-v3 .trv3-tiles>.tr-universal-card.bench-channel{grid-column:span 1!important;min-width:0;height:auto!important;max-height:none!important;overflow:hidden!important;padding:12px!important;gap:5px!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(20,41,62,.98),rgba(18,36,54,.98));border:1px solid rgba(73,111,145,.48)!important;box-shadow:0 16px 30px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.03)}
.techrib-v3 .trv3-lights .tr-universal-card.bench-channel{height:118px!important;min-height:118px!important;max-height:118px!important}
.techrib-v3 .trv3-lights .bench-channel-icon{width:32px!important;height:32px!important;min-height:32px!important;flex-basis:32px!important;border-radius:11px!important;background:rgba(255,255,255,.05)!important}
.techrib-v3 .trv3-lights .bench-channel-icon svg{width:18px!important;height:18px!important}
.techrib-v3 .trv3-lights .bench-channel-top{gap:9px!important}
.techrib-v3 .trv3-lights .bench-channel-name{font-size:12px!important;line-height:1.22!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:20px}
.techrib-v3 .trv3-lights .bench-channel-sub{font-size:9px!important;color:#9eb4c7!important}
.techrib-v3 .trv3-lights .bench-channel-foot{padding-top:9px!important;min-height:30px!important;border-top:1px solid rgba(119,151,180,.18)!important}
.techrib-v3 .trv3-lights .bench-toggle{font-size:11px!important;font-weight:800!important}
.techrib-v3 .trv3-lights .bench-switch{width:38px;height:22px}
.techrib-v3 .trv3-lights .bench-edit{right:10px!important;top:12px!important;opacity:.55}
.techrib-v3 .trv3-lights .bench-channel.on{border-color:rgba(91,238,177,.52)!important;box-shadow:0 0 0 1px rgba(91,238,177,.12),0 18px 34px rgba(8,34,24,.18)}
.techrib-v3 .trv3-lights .bench-channel.on .bench-toggle{color:#56ebb1!important}

.techrib-v3 .trv3-special .tr-universal-card{height:258px!important;min-height:258px!important;padding:14px!important}
.techrib-v3 .trv3-special .bench-channel-name{font-size:15px!important;line-height:1.25!important;padding-right:24px}
.techrib-v3 .trv3-special .bench-channel-sub{font-size:11px!important;color:#9eb4c7!important}
.techrib-v3 .trv3-rgb .tr-universal-rgb-compact{min-height:168px!important;margin-top:10px;align-items:flex-start!important;gap:16px!important;flex-wrap:nowrap!important}
.techrib-v3 .trv3-rgb .tr-universal-rgb-mini-wheel{width:102px!important;height:102px!important;min-height:102px!important;flex:0 0 102px!important;box-shadow:0 0 22px rgba(41,136,235,.16)}
.techrib-v3 .trv3-rgb .tr-universal-rgb-mini-center{width:72px!important;height:72px!important;border-width:8px!important}
.techrib-v3 .trv3-rgb .tr-universal-rgb-mini-head{margin-top:2px}
.techrib-v3 .trv3-rgb .tr-universal-rgb-quick{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1}
.techrib-v3 .trv3-rgb .tr-universal-rgb-compact-head{font-size:12px!important;margin-bottom:12px!important}
.techrib-v3 .trv3-rgb .tr-universal-rgb-swatches{gap:8px!important;flex-wrap:wrap!important;margin-top:12px!important}
.techrib-v3 .trv3-rgb .tr-universal-rgb-swatch{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;box-shadow:0 4px 10px rgba(0,0,0,.18)}
.techrib-v3 .trv3-rgb .bench-channel-foot{padding-top:12px!important;border-top:1px solid rgba(119,151,180,.18)!important}
.techrib-v3 .trv3-rgb .bench-toggle{font-size:12px!important;font-weight:800!important}

.techrib-v3 .trv3-blind-card{display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,rgba(19,41,62,.98),rgba(17,35,53,.98));border:1px solid rgba(73,111,145,.48)!important}
.techrib-v3 .trv3-blind-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.techrib-v3 .trv3-blind-live{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#7fe2b1;font-weight:700}
.techrib-v3 .trv3-blind-live::before{content:"";width:8px;height:8px;border-radius:50%;background:#32d58c;box-shadow:0 0 0 4px rgba(50,213,140,.16)}
.techrib-v3 .trv3-blind-window{position:relative;height:100px;margin:6px 0 8px;padding:12px;border-radius:18px;background:linear-gradient(180deg,#cfd6de,#8792a0 12%,#5f6770 12.2%,#818b98 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.techrib-v3 .trv3-blind-top{height:14px;border-radius:9px;background:linear-gradient(180deg,#d9dee5,#b9c4cf);margin-bottom:4px}
.techrib-v3 .trv3-blind-slats{position:absolute;left:14px;right:14px;top:34px;height:40px;background:repeating-linear-gradient(180deg,#d6dce2 0 6px,#aeb7c3 6px 8px);border-radius:8px;box-shadow:inset 0 0 0 1px rgba(120,128,138,.28)}
.techrib-v3 .trv3-blind-scene{position:absolute;left:14px;right:14px;bottom:12px;height:26px;border-radius:0 0 10px 10px;background:linear-gradient(180deg,rgba(23,34,48,.45),rgba(227,196,95,.35)),radial-gradient(circle at 25% 75%,rgba(255,218,105,.8),rgba(255,218,105,0) 30%),linear-gradient(90deg,#4b5968 0 48%,#303d49 48% 52%,#4b5968 52% 100%)}
.techrib-v3 .trv3-blind-actions{display:grid;grid-template-columns:repeat(3,38px);justify-content:end;gap:8px}
.techrib-v3 .trv3-blind-actions button{width:38px;height:38px;padding:0!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.05)!important;color:#dce7f1!important;font-size:16px!important}
.techrib-v3 .trv3-blind-footer{display:flex;align-items:center;gap:12px;margin-top:14px}
.techrib-v3 .trv3-blind-range{position:relative;flex:1;height:12px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.techrib-v3 .trv3-blind-range span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2d94ff,#52c6ff)}
.techrib-v3 .trv3-blind-footer strong{font-size:18px;color:#fff}

.techrib-v3 .trv3-sensors .tr-universal-card{min-height:144px!important;padding:13px 14px!important}
.techrib-v3 .trv3-sensors .bench-channel-name{font-size:14px!important;line-height:1.25!important;padding-right:20px}
.techrib-v3 .trv3-sensors .bench-channel-sub{font-size:11px!important;color:#8ea8be!important}
.techrib-v3 .trv3-sensors .tr-universal-reading{font-size:20px!important;line-height:1.2!important;margin-top:10px!important;color:#e7f2ff}
.techrib-v3 .trv3-sensors .tr-universal-gauge{gap:10px!important;padding-top:6px!important}
.techrib-v3 .trv3-sensors .tr-universal-gauge-ring{width:64px;height:64px;flex-basis:64px}
.techrib-v3 .trv3-sensors .tr-universal-gauge-value{width:52px;height:52px;font-size:11px}
.techrib-v3 .trv3-sensors .tr-universal-gauge-caption{font-size:10px;line-height:1.35}
.techrib-v3 .trv3-sensors .bench-channel-foot{padding-top:10px!important;border-top:1px solid rgba(119,151,180,.18)!important}
.techrib-v3 .trv3-sensors [data-sensor-type="temperature"]{box-shadow:0 0 0 1px rgba(255,98,98,.08),0 16px 30px rgba(0,0,0,.12)}
.techrib-v3 .trv3-sensors [data-sensor-type="humidity"]{box-shadow:0 0 0 1px rgba(70,160,255,.08),0 16px 30px rgba(0,0,0,.12)}
.techrib-v3 .trv3-sensors [data-sensor-type="light"]{box-shadow:0 0 0 1px rgba(255,198,78,.08),0 16px 30px rgba(0,0,0,.12)}
.techrib-v3 .trv3-sensors [data-sensor-type="presence"]{box-shadow:0 0 0 1px rgba(78,225,146,.08),0 16px 30px rgba(0,0,0,.12)}
.techrib-v3 .trv3-sensors [data-sensor-type="door"]{box-shadow:0 0 0 1px rgba(255,153,74,.08),0 16px 30px rgba(0,0,0,.12)}
.techrib-v3 .trv3-sensors [data-sensor-type="water"]{box-shadow:0 0 0 1px rgba(63,179,255,.08),0 16px 30px rgba(0,0,0,.12)}
.techrib-v3 .trv3-sensors [data-sensor-type="temperature"] .bench-channel-icon,.techrib-v3 .trv3-sensors [data-sensor-type="temperature"] .tr-universal-reading{color:#ff7272!important}
.techrib-v3 .trv3-sensors [data-sensor-type="humidity"] .bench-channel-icon,.techrib-v3 .trv3-sensors [data-sensor-type="humidity"] .tr-universal-reading,.techrib-v3 .trv3-sensors [data-sensor-type="water"] .bench-channel-icon,.techrib-v3 .trv3-sensors [data-sensor-type="water"] .tr-universal-reading{color:#45b9ff!important}
.techrib-v3 .trv3-sensors [data-sensor-type="light"] .bench-channel-icon,.techrib-v3 .trv3-sensors [data-sensor-type="light"] .tr-universal-reading{color:#ffc94d!important}
.techrib-v3 .trv3-sensors [data-sensor-type="presence"] .bench-channel-icon,.techrib-v3 .trv3-sensors [data-sensor-type="presence"] .tr-universal-reading{color:#56ebb1!important}
.techrib-v3 .trv3-sensors [data-sensor-type="door"] .bench-channel-icon,.techrib-v3 .trv3-sensors [data-sensor-type="door"] .tr-universal-reading{color:#ffad54!important}

.techrib-v3 .home-section,.techrib-v3 .trd-section{margin-top:18px}
.techrib-v3 .home-chart-grid>*,.techrib-v3 .iot-card,.techrib-v3 .trd-section{border-radius:18px}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-welcome,
html[data-iot-theme="industrial"] .techrib-v3 .iot-kpi,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-tiles>.tr-universal-card.bench-channel,
html[data-iot-theme="industrial"] .techrib-v3 .iot-filters label{background:linear-gradient(180deg,#18314a,#13283c)!important;color:#f4fbff}
html[data-iot-theme="industrial"] .techrib-v3 .iot-filters select{color:#f4fbff!important}
html[data-iot-theme="industrial"] .techrib-v3 .iot-head-action{background:#162d43!important;color:#f4fbff!important;border-color:#2f4860!important}
html[data-iot-theme="industrial"] .techrib-v3 .bench-channel-sub,
html[data-iot-theme="industrial"] .techrib-v3 .iot-kpi small,
html[data-iot-theme="industrial"] .techrib-v3 .iot-kpi span{color:#aec3d6!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-group-heading small{color:#7b95ae}

@media (max-width:1580px){
 .techrib-v3 .trv3-components{grid-template-columns:minmax(0,1.65fr) minmax(430px,1.15fr)}
 .techrib-v3 .trv3-sensors .trv3-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:1280px){
 .techrib-v3 .trv3-components{grid-template-columns:1fr}
 .techrib-v3 .trv3-group.trv3-lights,.techrib-v3 .trv3-group.trv3-special,.techrib-v3 .trv3-group.trv3-sensors,.techrib-v3 .trv3-group.trv3-other{grid-column:1;grid-row:auto}
 .techrib-v3 .trv3-special .trv3-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .techrib-v3 .trv3-sensors .trv3-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:980px){
 .techrib-v3 .trv3-welcome{grid-template-columns:1fr}
 .techrib-v3 .trv32-welcome-side{justify-content:flex-start}
 .techrib-v3 .iot-head{grid-template-columns:1fr}
 .techrib-v3 .iot-head-tools{justify-content:flex-start}
 .techrib-v3 .iot-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .techrib-v3 .trv3-lights .trv3-tiles,.techrib-v3 .trv3-sensors .trv3-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .techrib-v3 .trv3-special .trv3-tiles{grid-template-columns:1fr}
 .techrib-v3 .trv3-special .tr-universal-card,.techrib-v3 .trv3-blind-card{height:auto!important;min-height:286px!important}
}
@media (max-width:640px){
 .techrib-v3 .tr-workarea main{padding:16px 14px 36px}
 .techrib-v3 .trv3-welcome{padding:16px}
 .techrib-v3 .trv32-side-card{min-width:0;width:100%}
 .techrib-v3 .iot-filters{width:100%}
 .techrib-v3 .iot-filters label{min-width:0;flex:1 1 100%}
 .techrib-v3 .iot-summary{gap:9px}
 .techrib-v3 .trv3-lights .trv3-tiles,.techrib-v3 .trv3-sensors .trv3-tiles,.techrib-v3 .trv3-other .trv3-tiles{grid-template-columns:1fr}
 .techrib-v3 .trv3-special .trv3-tiles{grid-template-columns:1fr}
 .techrib-v3 .trv3-rgb .tr-universal-rgb-compact{flex-wrap:wrap!important}
 .techrib-v3 .trv3-rgb .tr-universal-rgb-mini-wheel{width:104px!important;height:104px!important;min-height:104px!important;flex-basis:104px!important}
}

.techrib-v3 .trv3-special .trv3-blind-card,.techrib-v3 .trv3-special .trv3-rgb{grid-column:span 1!important;}
.techrib-v3 .trv3-group.trv3-special{min-width:0;}
.techrib-v3 .trv3-special .trv3-tiles>.tr-universal-card{width:100%!important;max-width:none!important;}
.techrib-v3 .trv3-welcome + .iot-head{margin-top:0} 
.techrib-v3 .trv3-welcome{margin-top:0} 
.techrib-v3 .trv3-welcome-copy p strong{font-weight:800;}

/* V3.5: corrige alinhamento do toolbar e mantém conteúdo sem sobreposição */
.techrib-v3 .iot-head{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;min-height:0!important;margin:0 0 13px!important}
.techrib-v3 .iot-head-tools{width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:10px!important}
.techrib-v3 .iot-live{position:static!important;margin:0!important;flex:0 0 auto!important}
.techrib-v3 .iot-filters{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
.techrib-v3 .trv3-welcome-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0!important}
.techrib-v3 .trv3-welcome{grid-template-columns:58px minmax(0,1fr) auto!important;gap:14px!important;min-height:94px!important}
.techrib-v3 .trv3-home-emblem{grid-column:1!important;grid-row:1!important}
.techrib-v3 .trv3-welcome-copy{grid-column:2!important;grid-row:1!important}
.techrib-v3 .trv32-welcome-side{grid-column:3!important;grid-row:1!important}
.techrib-v3 .trv3-welcome-copy h2{max-width:100%;font-size:19px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:has(.techrib-v3) .tr-header .tr-brand{visibility:hidden}
html:has(.techrib-v3) .tr-sidebar .tr-side-brand{margin-bottom:6px;padding:5px 8px 9px}
html:has(.techrib-v3) .tr-sidebar .tr-side-brand img{width:54px;height:54px;filter:drop-shadow(0 0 5px #2baff744)}
html:has(.techrib-v3) .tr-sidebar .tr-side-brand strong{font-size:23px;letter-spacing:-.6px}
@media(max-width:1050px){.techrib-v3 .trv3-welcome{grid-template-columns:58px minmax(0,1fr)!important}.techrib-v3 .trv32-welcome-side{grid-column:1/-1!important;grid-row:2!important}.techrib-v3 .iot-head-tools{justify-content:flex-start!important}}
@media(max-width:650px){.techrib-v3 .trv3-welcome{grid-template-columns:1fr!important}.techrib-v3 .trv3-home-emblem,.techrib-v3 .trv3-welcome-copy,.techrib-v3 .trv32-welcome-side{grid-column:1!important;grid-row:auto!important}.techrib-v3 .iot-filters label{min-width:0!important}}

/* V3.7: ocultação persistida pelo editor para cards Universal */
.techrib-v3 .trv3-components .trv3-saved-hidden{display:none!important}


/* TechRib 2026-10-22: compatibilidade real do layout smart-v3 com o tema claro/industrial.
   Antes varios cards mantinham gradientes escuros fixos. */
html[data-iot-theme="industrial"] .techrib-v3 #techribUniversal>.tr-universal-heading h2,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-group-heading h2{color:var(--tr-text)!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-group-heading small,
html[data-iot-theme="industrial"] .techrib-v3 #techribUniversal>.tr-universal-heading small{color:var(--tr-muted)!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-tiles>.tr-universal-card.bench-channel,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-blind-card{
 background:linear-gradient(180deg,#ffffff,#f6f9fc)!important;
 color:var(--tr-text)!important;
 border:1px solid #cfe0ec!important;
 box-shadow:0 10px 22px rgba(27,70,93,.08),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-lights .bench-channel-sub,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-special .bench-channel-sub,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors .bench-channel-sub{color:#667b91!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-lights .bench-channel-foot,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-rgb .bench-channel-foot,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors .bench-channel-foot{border-top:1px solid #dce5ef!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-lights .bench-channel-icon,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors .bench-channel-icon,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-special .bench-channel-icon{background:#eef4f8!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors .tr-universal-reading{color:#1f334c!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-rgb .tr-universal-rgb-mini-wheel{box-shadow:0 0 16px rgba(41,136,235,.10)!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-rgb .tr-universal-rgb-swatch{box-shadow:0 3px 8px rgba(27,70,93,.10)!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-blind-live{color:#15865f!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-blind-live::before{background:#1db974!important;box-shadow:0 0 0 4px rgba(29,185,116,.15)!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-blind-actions button{background:#eef4f8!important;color:#1f334c!important;border:1px solid #cfe0ec!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-blind-range{background:#dde7f0!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-blind-footer strong{color:#1f334c!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors [data-sensor-type="temperature"],
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors [data-sensor-type="humidity"],
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors [data-sensor-type="light"],
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors [data-sensor-type="presence"],
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors [data-sensor-type="door"],
html[data-iot-theme="industrial"] .techrib-v3 .trv3-sensors [data-sensor-type="water"]{box-shadow:0 10px 22px rgba(27,70,93,.08)!important}


/* TechRib 2026-10-22: correcao definitiva do tema Industrial/claro na tela de componentes.
   Quando o usuario abre os dispositivos, todos os cards smart-v3 devem seguir a paleta clara.
   Mantem Mushroom/escuro intacto. */
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .tr-universal-card,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .tr-universal-card.bench-channel,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .trv3-blind-card{
 background:linear-gradient(180deg,#ffffff 0%,#f6f9fc 100%)!important;
 color:#1f334c!important;
 border:1px solid #cfe0ec!important;
 box-shadow:0 10px 22px rgba(27,70,93,.08),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .tr-universal-card :where(.bench-channel-name,.bench-channel-number,.tr-universal-reading,.trv3-blind-head,.trv3-blind-footer strong){color:#1f334c!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .tr-universal-card :where(.bench-channel-sub,.trv3-group-heading small,.tr-universal-rgb-compact-head,.tr-universal-gauge-label,.tr-universal-muted){color:#667b91!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .trv3-group-heading h2,
html[data-iot-theme="industrial"] .techrib-v3 #techribUniversal>.tr-universal-heading h2{color:#1f334c!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-channel-foot{border-top:1px solid #dce5ef!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-channel-icon,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-edit{background:#eef4f8!important;color:#46627b!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-channel-icon .tr-icon,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-edit .tr-icon{color:currentColor!important;stroke:currentColor!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-toggle:not(:disabled){color:#1f334c!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-switch{background:#c9d8e6!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-channel.on{background:linear-gradient(180deg,#ffffff 0%,#f1fbf6 100%)!important;border-color:#8fd8ba!important;box-shadow:0 0 0 1px rgba(31,157,107,.08),0 10px 22px rgba(27,70,93,.08)!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-channel.on .bench-toggle,
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-channel.on .bench-state{color:#15865f!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .bench-channel.on .bench-switch{background:#1db974!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .trv3-blind-actions button{background:#eef4f8!important;color:#1f334c!important;border:1px solid #cfe0ec!important}
html[data-iot-theme="industrial"] .techrib-v3 .trv3-components .trv3-blind-range{background:#dde7f0!important}
