/* Tooleader visual system: one warm, light palette with restrained semantic accents. */
:root{
  /* 70/20/10 rule: neutral canvas, white work surfaces, restrained accents. */
  --tl-canvas:#f5f1ec;
  --tl-surface:#fffefa;
  --tl-surface-soft:#fbf8f4;
  --tl-ink:#292724;
  --tl-muted:#756e68;
  --tl-line:#ded5cc;
  --tl-line-strong:#cfc2b6;
  --tl-orange:#e68631;
  --tl-orange-deep:#bf5a1e;
  --tl-red:#c9483e;
  --tl-wood:#9a6546;
  --tl-focus:#b85d2a;
  --tl-shadow:0 3px 12px rgba(72,48,29,.055);
}
body.tl-industrial{--tl-canvas:#f5f1ec!important;--tl-surface:#fffefa!important;--tl-surface-soft:#fbf8f4!important;--tl-ink:#292724!important;--tl-muted:#756e68!important;--tl-line:#ded5cc!important;--tl-line-strong:#cfc2b6!important;--tl-orange:#e68631!important;--tl-orange-deep:#bf5a1e!important;--tl-red:#c9483e!important;--tl-wood:#9a6546!important;--tl-focus:#b85d2a!important;background:var(--tl-canvas)!important;color:var(--tl-ink)!important}
body.tl-industrial #app{background:var(--tl-canvas)!important;color:var(--tl-ink)!important}
body.tl-industrial .topbar{background:rgba(255,254,250,.98)!important;border-bottom:1px solid var(--tl-line)!important;box-shadow:0 1px 6px rgba(72,48,29,.04)!important}
/* Match the higher-specificity operational-design selectors so the warm surface wins. */
body.tl-industrial #app.horizontal-menu.compact-navigation .topbar{background:rgba(255,254,250,.98)!important;border-bottom:1px solid var(--tl-line)!important;box-shadow:0 1px 6px rgba(72,48,29,.04)!important}
body.tl-industrial #app.horizontal-menu.compact-navigation #nav{background:var(--tl-surface)!important;color:var(--tl-ink)!important;border-bottom:1px solid var(--tl-line)!important}
body.tl-industrial .sidebar{background:var(--tl-surface)!important;border-bottom:1px solid var(--tl-line)!important;box-shadow:0 1px 5px rgba(72,48,29,.035)!important}
body.tl-industrial #nav .nav-item{color:var(--tl-ink)!important;background:transparent!important;box-shadow:none!important;border-radius:10px!important}
body.tl-industrial #nav .nav-item:hover{background:#fff2e6!important;color:var(--tl-orange-deep)!important}
body.tl-industrial #nav .nav-item.active{background:#fff2e5!important;color:var(--tl-orange-deep)!important;box-shadow:inset 0 -3px var(--tl-orange),0 2px 5px rgba(191,90,30,.09)!important}
body.tl-industrial #nav .nav-item.active .tl-category-icon{color:var(--tl-orange-deep)!important}
body.tl-industrial .topbar .global-search{background:#fff!important;border:1px solid var(--tl-line-strong)!important;color:var(--tl-ink)!important;box-shadow:none!important}
body.tl-industrial .topbar .global-search input{color:var(--tl-ink)!important}
body.tl-industrial #content{background:var(--tl-canvas)!important;color:var(--tl-ink)!important}
body.tl-industrial #app.horizontal-menu.compact-navigation #content{background:var(--tl-canvas)!important;color:var(--tl-ink)!important}
body.tl-industrial #content :is(h1,h2,h3,h4){color:var(--tl-ink)!important}
body.tl-industrial #content :is(p,small,.muted,.subtle){color:var(--tl-muted)!important}
body.tl-industrial #content :is(.card,.panel,.workspace-card,.navigation-card,.ct-card,.sl-card,.mk-card,.ec-panel,.ec-finding,.pw-head,.pw-stat,.pcw-tile,.wc-tile,.table-wrap,.pw-table-wrap,.ct-scroll,.sl-scroll,.qo-compose-section,.qo-live-preview,.register-line,.lpr-card,.op-service,.op-work-row){background:var(--tl-surface)!important;border-color:var(--tl-line)!important;box-shadow:var(--tl-shadow)!important}
body.tl-industrial #content :is(.navigation-card,.workspace-card):hover{background:#fffaf5!important;border-color:#e2a16b!important;box-shadow:0 6px 16px rgba(191,90,30,.09)!important}
body.tl-industrial #content :is(button,a).primary,
body.tl-industrial #content :is(button,.btn).primary:not(.danger):not(.warning):not(.success),
body.tl-industrial #content :is(button,.btn).tl-primary{background:var(--tl-orange)!important;border-color:var(--tl-orange-deep)!important;color:#fff!important;box-shadow:0 3px 8px rgba(191,90,30,.12)!important}
body.tl-industrial #content :is(button,a).primary:hover,
body.tl-industrial #content :is(button,.btn).primary:not(.danger):not(.warning):not(.success):hover{background:var(--tl-orange-deep)!important;border-color:#bc5516!important}
body.tl-industrial #content :is(button,.btn):not(.primary):not(.danger):not(.warning):not(.success):not(.red):not(.green):not(.amber):not([data-signal]){background:var(--tl-surface)!important;border:1px solid var(--tl-line-strong)!important;color:var(--tl-ink)!important;border-radius:9px!important}
body.tl-industrial #content :is(button,.btn):not(.primary):not(.danger):not(.warning):not(.success):not(.red):not(.green):not(.amber):not([data-signal]):hover{background:#fff2e6!important;border-color:var(--tl-orange)!important;color:var(--tl-orange-deep)!important}
body.tl-industrial #content :is(input,select,textarea){background:#fffefa!important;border:1px solid var(--tl-line-strong)!important;color:var(--tl-ink)!important}
body.tl-industrial #content :is(input,select,textarea):focus{border-color:var(--tl-orange)!important;box-shadow:0 0 0 3px rgba(230,134,49,.15)!important;outline:none!important}
body.tl-industrial #content :is(th,thead th){background:#f3e8dc!important;color:#5a4638!important;border-bottom:1px solid var(--tl-line-strong)!important}
body.tl-industrial #content :is(td,tbody td){border-bottom-color:#eee4db!important}
body.tl-industrial #content :is(tbody tr:hover,.table-row:hover){background:#fff8f1!important}
body.tl-industrial #sectionNavigation:not(.ws24-subnav){background:rgba(255,253,249,.96)!important;border-bottom:1px solid var(--tl-line)!important}
body.tl-industrial #sectionNavigation:not(.ws24-subnav) [aria-current="page"]{background:#fff0e4!important;color:var(--tl-orange-deep)!important;border-color:#e6b38d!important;box-shadow:inset 0 -2px var(--tl-orange)!important}
body.tl-industrial .ct-root .cd27-nav>button{background:var(--tl-surface)!important;border:1px solid var(--tl-line)!important;box-shadow:var(--tl-shadow)!important}
body.tl-industrial .ct-root .cd27-nav>button[aria-current="page"]{background:#fff8f1!important;border-color:#e2a16b!important;box-shadow:inset 3px 0 var(--tl-orange),0 4px 12px rgba(191,90,30,.08)!important}
body.tl-industrial .ct-root .cd27-nav>button strong{color:var(--tl-ink)!important}
body.tl-industrial .ct-root .cd27-nav>button small{color:var(--tl-muted)!important}
body.tl-industrial .ct-root .cd27-nav>button .tl-category-icon{background:#fff0e4!important;color:var(--tl-orange-deep)!important;border-color:#e6b38d!important}
body.tl-industrial .ct-root .cd27-nav>button[aria-current="page"] .tl-category-icon{background:var(--tl-orange)!important;color:#fff!important;border-color:var(--tl-orange)!important}
body.tl-industrial :is(.register-hero,.page-head,.pw-head,.sl-hero,.mk-hero,.ec-heading){background:var(--tl-surface)!important;border-color:var(--tl-line)!important;box-shadow:var(--tl-shadow)!important}
body.tl-industrial :is(.register-hero,.page-head,.pw-head,.sl-hero,.mk-hero,.ec-heading){border-left:4px solid var(--tl-orange)!important}
body.tl-industrial :is(.register-hero,.page-head,.pw-head,.sl-hero,.mk-hero,.ec-heading) :is(h1,h2,h3){color:var(--tl-ink)!important}
body.tl-industrial :is(.register-line,.op-work-row,.lpr-card){border-left:3px solid #e5c9b5!important}
body.tl-industrial :is(.register-line,.op-work-row,.lpr-card):focus-within{border-left-color:var(--tl-orange)!important;box-shadow:0 0 0 2px rgba(230,134,49,.13)!important}
body.tl-industrial :is(.status,.badge,.pill)[data-signal],body.tl-industrial :is(.danger,.warning,.success,.red,.green,.amber){/* semantic alert colors remain owned by their existing rules */}
body.tl-industrial :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid rgba(230,134,49,.42)!important;outline-offset:2px!important}
