/* WirePilot: presentation layer only. Load after the existing stylesheets. */
html[data-brand="wirepilot"] {
  --wp-ink: #17191c; --wp-rail: #0d1009; --wp-yellow: #ffdf00;
  --wp-gold: #c3a800; --wp-yellow-hover: #ead000; --wp-paper: #f4f5f6; --wp-line: #e2e4e7;
  --wp-muted: #646b75; --wp-radius: 16px; --wp-focus: #8b6800;
  --blue: #665000; --blue2: #a87c00; --navy: #17191c;
  --bg: #f4f5f6; --card: #fff; --text: #17191c; --muted: #646b75;
  --line: #e2e4e7; --shadow: 0 8px 32px #17191c08;
  color-scheme: light; accent-color: #a47700;
}
html[data-brand="wirepilot"] body {
  margin: 0; background: var(--wp-paper); color: var(--wp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
html[data-brand="wirepilot"] body.layout-b {
  --bg: #f4f5f6; --line: #e2e4e7; --blue: #665000; --blue2: #a87c00; --text: #17191c;
}
html[data-brand="wirepilot"] [hidden] { display: none !important; }
html[data-brand="wirepilot"] :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--wp-focus); outline-offset: 3px;
}
html[data-brand="wirepilot"] :where(h1,h2,h3) { color: inherit; letter-spacing: -.025em; }
html[data-brand="wirepilot"] :where(.content,.card,.main,.field,.grow,.top-title) { min-width: 0; }
html[data-brand="wirepilot"] .content { padding: 28px; }
html[data-brand="wirepilot"] :where(.sidebar,.employee-drawer) {
  background: var(--wp-rail) !important; color: #f9fafb;
  border: 0; box-shadow: none;
}
html[data-brand="wirepilot"] .brand { padding: 14px 10px 30px; gap: 0; }
html[data-brand="wirepilot"] .brand img { display: none; }
html[data-brand="wirepilot"] .brand b { font-size: 26px; letter-spacing: -.055em; color: #fff; }
html[data-brand="wirepilot"] .brand span { color: var(--wp-yellow); font-size: 10px; letter-spacing: .13em; margin-top: 4px; }
html[data-brand="wirepilot"] :where(.nav button,.employee-drawer-nav a) {
  color: #c4c7cb; border-radius: 10px; min-height: 46px;
  padding: 12px 14px; font-weight: 550; background: transparent;
}
html[data-brand="wirepilot"] :where(.nav button,.employee-drawer-nav a):hover { background: #2b2e33; color: #fff; }
html[data-brand="wirepilot"] :where(.nav button.active,.employee-drawer-nav a.active,.employee-drawer-nav a[aria-current="page"]) {
  background: var(--wp-yellow) !important; color: var(--wp-ink) !important; font-weight: 750;
}
html[data-brand="wirepilot"] .side-user { border-color: #ffffff1c; color: #c4c7cb; line-height: 1.65; }
html[data-brand="wirepilot"] .side-user b { color: #fff; }
html[data-brand="wirepilot"] :where(.sidebar,.employee-drawer) .btn.ghost { background: #2b2e33; color: #f9fafb; border: 1px solid #42464d; }
html[data-brand="wirepilot"] :where(.topbar,.vt-top) {
  background: var(--wp-rail) !important; color: #fff !important;
  border-bottom: 1px solid #303339 !important; box-shadow: none;
}
html[data-brand="wirepilot"] :where(.topbar h2,.vt-top h1,.vt-top h2) { color: #fff; font-size: 18px; }
html[data-brand="wirepilot"] :where(.top-logo,.vt-logo-box img) {
  width: 136px !important; max-width: 136px !important; height: 36px !important;
  object-fit: contain; background: transparent; border-radius: 0;
}
html[data-brand="wirepilot"] .vt-logo-box { max-width: 136px !important; flex-shrink: 1; }
html[data-brand="wirepilot"] .layout-b .vt-headrow::after { content: none; }
html[data-brand="wirepilot"] .top-title { display: flex; align-items: center; gap: 12px; }
html[data-brand="wirepilot"] :where(.hamb,.vt-menu,.b-top-actions .hamb,.b-top-actions .vt-menu) {
  background: #2b2e33 !important; border: 1px solid #42464d !important; color: #fff !important;
  min-height: 44px; min-width: 44px; border-radius: 10px;
}
html[data-brand="wirepilot"] :where(.b-scope,.tabs,.profile-tabs) {
  border-color: var(--wp-line); background: #eceef0; border-radius: 12px;
}
html[data-brand="wirepilot"] .b-scope { background: #2b2e33; border-color: #42464d; }
html[data-brand="wirepilot"] .b-scope button { color: #e0e2e5; }
html[data-brand="wirepilot"] :where(.b-scope .active,.tabs .active,.profile-tabs .active) {
  background: var(--wp-yellow); color: var(--wp-ink); border-color: var(--wp-yellow);
}
html[data-brand="wirepilot"] .card {
  background: #fff; border: 1px solid var(--wp-line); border-radius: var(--wp-radius);
  box-shadow: 0 3px 14px #17191c04; padding: 22px;
}
html[data-brand="wirepilot"] :where(.metric b,.metric strong) { color: var(--wp-ink); font-size: 32px; letter-spacing: -.04em; }
html[data-brand="wirepilot"] :where(.metric span,.hint,.project small) { color: var(--wp-muted); }
html[data-brand="wirepilot"] .metric { border-top: 3px solid var(--wp-yellow); }
html[data-brand="wirepilot"] .btn {
  border-radius: 10px; font-weight: 700; min-height: 44px;
  box-shadow: none; transition: background-color .15s ease, box-shadow .15s ease;
}
html[data-brand="wirepilot"] .btn.primary { background: var(--wp-yellow); color: var(--wp-ink); border: 1px solid var(--wp-yellow); }
html[data-brand="wirepilot"] .btn.primary:hover { background: var(--wp-yellow-hover); border-color: var(--wp-yellow-hover); }
html[data-brand="wirepilot"] .btn.ghost { background: #fff; border: 1px solid #d5d8dd; color: var(--wp-ink); }
html[data-brand="wirepilot"] .btn.ghost:hover { background: #f1f2f4; }
html[data-brand="wirepilot"] .btn:disabled { opacity: .55; cursor: not-allowed; }
html[data-brand="wirepilot"] .btn.small { min-height: 40px; }
html[data-brand="wirepilot"] .field label { color: #424851; font-size: 13px; font-weight: 650; }
html[data-brand="wirepilot"] .field :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  min-height: 46px; border: 1px solid #cdd1d6; border-radius: 10px;
  background: #fff; color: var(--wp-ink); padding: 11px 13px; font: inherit; max-width: 100%;
}
html[data-brand="wirepilot"] .field :where(input,select,textarea):focus { border-color: var(--wp-focus); box-shadow: 0 0 0 3px #f5cb2433; }
html[data-brand="wirepilot"] input[type="checkbox"], html[data-brand="wirepilot"] input[type="radio"] { accent-color: #856300; }
html[data-brand="wirepilot"] .table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
html[data-brand="wirepilot"] .table { font-size: 14px; }
html[data-brand="wirepilot"] .table th { color: #69717b; font-size: 11px; letter-spacing: .04em; background: #f7f8f9; }
html[data-brand="wirepilot"] .table :where(th,td) { padding: 14px 12px; border-bottom: 1px solid #e9ebed; }
html[data-brand="wirepilot"] .table tbody tr:hover { background: #fbfaf4; }
html[data-brand="wirepilot"] .pill:not(.green):not(.red):not(.amber) { background: #edf0f3; color: #424851; }
/* Status colors retain their original meaning, independently of branding. */
html[data-brand="wirepilot"] .pill.green { background: #e7f5ed; color: #17653e; }
html[data-brand="wirepilot"] .pill.red { background: #fcebec; color: #a92c34; }
html[data-brand="wirepilot"] .pill.amber { background: #fff5d6; color: #7b5c00; }
html[data-brand="wirepilot"] .project { border-color: var(--wp-line); border-radius: 12px; padding: 16px; }
html[data-brand="wirepilot"] .progress { background: #eceef0; height: 6px; }
html[data-brand="wirepilot"] .progress i { background: var(--wp-yellow); }
html[data-brand="wirepilot"] .chart .bar { background: var(--wp-yellow); }
html[data-brand="wirepilot"] .modal-back { background: #10121599; backdrop-filter: blur(3px); }
html[data-brand="wirepilot"] .modal { border: 1px solid var(--wp-line); border-radius: 20px; box-shadow: 0 24px 70px #0003; max-height: 90dvh; }
html[data-brand="wirepilot"] .close { min-width: 44px; min-height: 44px; color: var(--wp-ink); background: #eff0f2; }
html[data-brand="wirepilot"] .toast { background: #24272c; border: 1px solid #464b53; color: #fff; }
html[data-brand="wirepilot"] .login { background: #f4f5f6; }
html[data-brand="wirepilot"] .hero {
  background: radial-gradient(ellipse at 85% 20%, #f5cb2419, transparent 65%), #0d1009;
  color: #fff; position: relative; overflow: hidden;
}
html[data-brand="wirepilot"] .hero::before {
  content: 'WIREPILOT'; position: absolute; top: 52px; left: 52px;
  color: var(--wp-yellow); font-size: 14px; font-weight: 750; letter-spacing: .2em;
}
html[data-brand="wirepilot"] .hero h1 { font-size: clamp(36px, 4.7vw, 68px); line-height: 1.05; letter-spacing: -.065em; }
html[data-brand="wirepilot"] .hero p { font-size: 18px; max-width: 330px; color: #b9bec5; line-height: 1.7; }
html[data-brand="wirepilot"] .login-card { border: 1px solid var(--wp-line); border-radius: 22px; box-shadow: 0 18px 60px #17191c08; }
html[data-brand="wirepilot"] .login-card .logo { width: 174px; height: 46px; margin: 0 0 28px; object-fit: contain; }
html[data-brand="wirepilot"] .login-card h2 { font-size: 27px; margin-bottom: 24px; }
html[data-brand="wirepilot"] .startup-state { padding: 36px; background: var(--wp-surface,#fff); color: var(--wp-text,var(--wp-ink)); border-color: var(--wp-border,var(--wp-line)); }
html[data-brand="wirepilot"] #app > .startup-state { margin: max(20px, env(safe-area-inset-top)) auto 20px; }
html[data-brand="wirepilot"] .startup-state > b { font-size: 28px; letter-spacing: -.05em; }
html[data-brand="wirepilot"] .mobile-nav { border-color: var(--wp-line); box-shadow: 0 -8px 32px #17191c06; background: #fff; }
html[data-brand="wirepilot"] .mobile-nav button { background: #fff; color: #626a75; min-height: 60px; }
html[data-brand="wirepilot"] .mobile-nav button.active { color: var(--wp-ink); background: #fff9e4; box-shadow: inset 0 3px var(--wp-yellow); }
@media (max-width: 900px) {
  html[data-brand="wirepilot"] .content { padding: 18px 14px; }
  html[data-brand="wirepilot"] .card { padding: 17px; border-radius: 14px; }
  html[data-brand="wirepilot"] :where(.metric b,.metric strong) { font-size: 28px; }
  html[data-brand="wirepilot"] .topbar { min-height: 64px; }
  html[data-brand="wirepilot"] .topbar h2 { font-size: 16px; }
  html[data-brand="wirepilot"] :where(.top-logo,.vt-logo-box img) { width: 108px !important; max-width: 108px !important; height: 32px !important; }
  html[data-brand="wirepilot"] .vt-logo-box { max-width: 108px !important; }
  html[data-brand="wirepilot"] :where(.b-top-actions,.vt-headrow) { gap: 8px; }
  html[data-brand="wirepilot"] .b-scope button { font-size: 12px; padding-inline: 9px; }
  html[data-brand="wirepilot"] .field :where(input,select,textarea) { font-size: 16px; }
  html[data-brand="wirepilot"] .toolbar { flex-wrap: wrap; gap: 8px; }
  html[data-brand="wirepilot"] .toolbar .btn { white-space: normal; overflow-wrap: anywhere; }
  html[data-brand="wirepilot"] .modal-back { padding: 12px; }
  html[data-brand="wirepilot"] .modal { max-height: calc(100dvh - 24px); padding: 20px; }
  html[data-brand="wirepilot"] .main { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  html[data-brand="wirepilot"] .toast { left: 14px; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-brand="wirepilot"] :where(.btn,.sidebar,.employee-drawer,.toast) { transition: none; }
}
@media print {
  html[data-brand="wirepilot"] body { background: #fff; }
  html[data-brand="wirepilot"] .card { box-shadow: none; break-inside: avoid; }
}

/* Global WirePilot gold interaction system */
html[data-brand="wirepilot"] :where(button,[role="button"],a,.btn,.tab,.chip,.action) {
  -webkit-tap-highlight-color: #ffdf0038;
}
html[data-brand="wirepilot"] :where(.nav button,.employee-drawer-nav a,.mobile-nav button,.tabs button,.profile-tabs button,.b-scope button):hover {
  background: #ffdf0022; color: var(--wp-ink);
}
html[data-brand="wirepilot"] :where(.nav button.active,.employee-drawer-nav a.active,.employee-drawer-nav a[aria-current="page"],.tabs .active,.profile-tabs .active,.b-scope .active) {
  background: linear-gradient(135deg,#f8d34f,#c3a800) !important;
  color: #17191c !important; border-color: #c3a800 !important;
  box-shadow: 0 0 0 1px #ffdf0055, 0 8px 22px #c3a80022;
}
html[data-brand="wirepilot"] :where(.btn.primary,button.primary) {
  background: linear-gradient(135deg,#f8d34f,#c3a800) !important;
  color:#17191c !important; border-color:#c3a800 !important;
}
html[data-brand="wirepilot"] :where(.btn.primary,button.primary):hover {
  background: linear-gradient(135deg,#ffe16a,#ead000) !important;
}
html[data-brand="wirepilot"] :where(a:not(.employee-drawer-nav a)) { color:#7a5b00; }
html[data-brand="wirepilot"] :where(a:not(.employee-drawer-nav a)):hover { color:#a47700; }
html[data-brand="wirepilot"] ::selection { background:#ffdf0066; color:#17191c; }
html[data-brand="wirepilot"] :where(input,select,textarea):focus {
  border-color:#c3a800 !important; box-shadow:0 0 0 3px #ffdf0035 !important;
}
html[data-brand="wirepilot"] :where(.progress i,.chart .bar) {
  background:linear-gradient(90deg,#c3a800,#f8d34f) !important;
}
html[data-brand="wirepilot"] :where(.brand img,.top-logo,.vt-logo-box img,.login-card .logo) {
  object-fit:contain;
}

html[data-brand="wirepilot"] .brand img{display:block!important;width:48px;height:48px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}html[data-brand="wirepilot"] .login-card .logo{width:90px;height:90px;margin:0 0 22px}

/* Supplied WirePilot logo throughout legacy forms and sign-in screens. */
html[data-brand="wirepilot"] .brand img{display:block;width:70px;height:70px;object-fit:contain;border-radius:12px}
html[data-brand="wirepilot"] :where(.top-logo,.vt-logo-box img){width:68px!important;max-width:68px!important;height:68px!important;border-radius:12px}
html[data-brand="wirepilot"] .vt-logo-box{max-width:68px!important}
html[data-brand="wirepilot"] :where(.login-card,.loginbox,.hero) img[src*="wirepilot-logo"]{width:160px!important;height:160px!important;object-fit:contain;margin:0 auto 18px;border-radius:24px;display:block}
html[data-brand="wirepilot"] :where(.btn.primary,.nav button.active,.employee-drawer-nav a.active,.tabs .active,.profile-tabs .active){background:#ffdf00!important;color:#17191c!important;border-color:#ffdf00!important}

/* Existing workspace tabs share the supplied logo palette. */
html[data-brand="wirepilot"] .b-context-tabs button.active{background:#ffdf00!important;color:#17191c!important;border-color:#ffdf00!important}
html[data-brand="wirepilot"] .b-context-tabs button:hover{background:#fff8cf!important;color:#17191c!important}
html[data-brand="wirepilot"] .b-summary-line b{color:#17191c!important}
html[data-brand="wirepilot"] :where(.b-report-pending,.b-approval-summary,.pending-box){background:#fffbea!important;border-color:#eedb7b!important}
html[data-brand="wirepilot"] :where(.report-calendar,.b-report-calendar) button{background:#fff8cf!important;color:#665800!important}

html[data-brand="wirepilot"] .b-approval-line{background:#fffbea!important;border-color:#e8d98f!important}
html[data-brand="wirepilot"] .b-approval-line>.report-selection-tools{border-color:#e8d98f!important}
html[data-brand="wirepilot"] .b-period-arrow{background:#fff8cf!important;border-color:#e8d98f!important;color:#665800!important}
html[data-brand="wirepilot"] .report-list-row.report-selected{background:#fff8cf!important}
html[data-brand="wirepilot"] :where(.btn.light,.equipment-sections button,.employee-leave-calendar header button,.layout-toggle,.foreman-shortcuts a,.equipment-open-transfer>summary){background:#fff8cf!important;color:#534c21!important;border-color:#e8d98f!important}
html[data-brand="wirepilot"] :where(.equipment-sections button[aria-selected="true"],.employee-calendar-day.endpoint,.profile-tab.active){background:#ffdf00!important;color:#17191c!important;border-color:#ffdf00!important}
html[data-brand="wirepilot"] .employee-calendar-day.selected{background:#fff3a1!important;color:#17191c!important}
html[data-brand="wirepilot"] :where(.employee-calendar-manual summary,.report-day-heading h3,.b-info-list dt,.b-week-range){color:#647082!important}
html[data-brand="wirepilot"] :where(.equipment-sections button,.employee-calendar-day,.b-period-arrow):focus-visible{outline-color:#9b8500!important}

html[data-brand="wirepilot"] .vt-logo-box{width:68px!important;height:68px!important;background:#0d1009!important}
html[data-brand="wirepilot"] .report-steps button{background:#fff8cf!important;color:#534c21!important;border-color:#e8d98f!important}
html[data-brand="wirepilot"] .report-steps button[aria-current="step"]{background:#ffdf00!important;color:#17191c!important;border-color:#ffdf00!important}
html[data-brand="wirepilot"] .wizard-footer{border-color:#e8d98f!important}

:root[data-wp-theme=graphite]{--wp-page:#22252a;--wp-surface:#2d3138;--wp-control:#3b4049;--wp-soft:#353a42;--wp-border:#636b77;--wp-text:#f5f6f8;--wp-muted:#bcc3ce;--wp-gold:#ffe311;--wp-ink:#f5f6f8;--wp-rail:#2d3138;--wp-paper:#22252a;--wp-line:#636b77;--bg:#22252a;--card:#2d3138;--text:#f5f6f8;--muted:#bcc3ce;--line:#636b77;color-scheme:dark}
:root[data-wp-theme=light]{--wp-page:#f1f2f4;--wp-surface:#fff;--wp-control:#e5e7eb;--wp-soft:#eef0f3;--wp-border:#b8bdc5;--wp-text:#20242a;--wp-muted:#646b75;--wp-gold:#ffe311;--wp-ink:#20242a;--wp-rail:#e5e7eb;--wp-paper:#f1f2f4;--wp-line:#b8bdc5;--bg:#f1f2f4;--card:#fff;--text:#20242a;--muted:#646b75;--line:#b8bdc5;color-scheme:light}
html[data-wp-theme] body{background:var(--wp-page)!important;color:var(--wp-text)!important}
html[data-wp-theme] :is(.wp-panel,.wp-point-card,.wp-point-meta,.wp-view-controls,.wp-import-note,.wp-view-filters,.wp-plan-toolbar,.wp-plan-footer,.wp-worker-work-panel,.wp-worker-account>div,.wp-connection-summary,.wp-group-roster,.card,.panel,.modal,.login-card,dialog,#login){background:var(--wp-surface)!important;color:var(--wp-text)!important;border-color:var(--wp-border)!important}
html[data-wp-theme=graphite] .login-card .field label{color:var(--wp-muted)!important}
html[data-wp-theme=graphite] .login-card a[href="/privacy.html"]{color:var(--wp-gold)!important}
html[data-wp-theme] :is(button:not(.wp-marker),input:not([type=checkbox]):not([type=radio]),select,textarea,.btn,.wp-button){background:var(--wp-control)!important;color:var(--wp-text)!important;border-color:var(--wp-border)!important}
html[data-wp-theme] :is(.wp-primary,.btn.primary,.wp-nav a.active,.nav button.active){background:#ffe311!important;color:#171717!important;border-color:#e9ca00!important}
html[data-wp-theme] :is(.wp-sidebar,.wp-worker-header,.sidebar,.employee-drawer,.topbar,.vt-top){background:var(--wp-surface)!important;color:var(--wp-text)!important;border-color:var(--wp-border)!important}
html[data-wp-theme] :is(h1,h2,h3,h4,.wp-logo,.wp-worker-brand,.wp-view-filters summary,.wp-sidebar nav a,.wp-worker-account a,.brand b,.side-user b,.topbar h2,.vt-top h1,.vt-top h2){color:var(--wp-text)!important}
html[data-wp-theme] :is(.wp-muted,.wp-form-help,.wp-eyebrow,.wp-worker-brand small,.wp-point-meta span,.wp-history,.wp-group-member,.wp-action-context,.wp-point-action-list small,.wp-user small){color:var(--wp-muted)!important}
html[data-wp-theme] .wp-worker-plan{--wp-text:inherit;--wp-muted:inherit;--wp-border:inherit;--wp-gold:#ffe311}
html[data-wp-theme] :is(.wp-main,.content,.main,.wp-plan-board,.wp-device-switch,.wp-filters){background:var(--wp-page)!important;color:var(--wp-text)!important;border-color:var(--wp-border)!important}
html[data-wp-theme] .wp-point-action-list button:disabled{opacity:.55}
html[data-wp-theme] .wp-worker-brand b,html[data-wp-theme] .wp-logo b{color:#d5b900!important}
html[data-wp-theme] .wp-plan-surface,html[data-wp-theme] .wp-plan-viewport{background:#e6e8ec}
.wp-preferences{display:grid;gap:10px;padding:12px 8px;font-size:12px}.wp-preferences label{display:grid;gap:5px}.wp-preferences select{width:100%;padding:9px;min-height:40px;font-size:13px}.wp-sidebar .wp-preferences{margin-top:auto}.wp-worker-account .wp-preferences{border-top:1px solid var(--wp-border);margin-top:6px}.wp-sidebar{overflow-y:auto}#login>.wp-preferences{max-width:340px;margin:auto;grid-template-columns:1fr 1fr}#login>.wp-preferences label{min-width:0}
html[data-wp-theme] .wp-plan-toolbar:has(#cancel-cable:not([hidden])) #cancel-mode{display:none}

html[data-wp-theme] :is(.wp-view-filters fieldset,.wp-project-card,.wp-metrics article,.wp-quick a){background:var(--wp-surface)!important;color:var(--wp-text)!important;border-color:var(--wp-border)!important}
.wp-review-row{content-visibility:auto;contain-intrinsic-size:auto 56px}

/* Supplied WirePilot logo on legacy headers and navigation, in both themes. */
html[data-brand="wirepilot"] :is(.brand img,.top-logo,.vt-logo-box img){
 background:#17191c!important;border:2px solid var(--wp-gold,#ffdf00)!important;
 padding:2px!important;object-fit:contain;box-sizing:border-box;
}
