/* The mark uses #EB9D32. Dark ink keeps small labels legible on this orange. */
:root {
  --ehs-orange: #eb9d32;
  --ehs-ink: #29292b;
  --ehs-muted: #525e6e;
  --ehs-rule: #dededc;
  --ehs-bg: #f6f6f4;
  --ehs-tint: #fff4e1;
  --ehs-link: #804809;
}
body.portal-body, body.fire-body {
  --ink: var(--ehs-ink);
  --muted: var(--ehs-muted);
  --line: var(--ehs-rule);
  --bg: var(--ehs-bg);
  --dark: var(--ehs-ink);
  --ws-ink: var(--ehs-ink);
  --ws-muted: var(--ehs-muted);
  --ws-line: var(--ehs-rule);
  --ws-accent: var(--ehs-link);
  background: var(--ehs-bg);
  color: var(--ehs-ink);
}
body.portal-body .portal-header, body.fire-body .fire-header {
  color: var(--ehs-ink);
  background: white;
  border-color: var(--ehs-rule);
}
body .portal-brand, body .portal-user {color: var(--ehs-ink) !important;}
body.portal-body :is(.page-heading h1,.panel h2,.ws-heading h1,.ws-card h2,.dw-daily h2,.dw-member-card h3,.ws-metric strong,.dashboard-metrics strong,.tile-copy strong) {color: var(--ehs-ink);}
body :is(.portal-header,.panel,.ws-card,.app-tile,.metric-card,.dashboard-chart,.dw-member-card) {border-color: var(--ehs-rule);}
body .desktop-nav a.active, body .mobile-nav a.active {color: var(--ehs-link); border-color: var(--ehs-orange);}
body .admin-sidebar, body.ehs-workspace .admin-sidebar {background: var(--ehs-ink); box-shadow: none;}
body .admin-side-nav :is(a,summary) {color: #f1f1ef;}
body .admin-side-nav a:hover, body .admin-side-nav a[aria-current],
body .admin-nav-group > summary > a[aria-current=location] {background: #454441; border-color: var(--ehs-orange); color: white;}
body .admin-side-nav .admin-subnav a {color: #eeeeeb;}
body .admin-subnav a[aria-current=page] {color: #ffcc83; border-color: var(--ehs-orange);}
.admin-system-heading {min-height: 44px; padding-inline: 12px !important; font-size: 14px; font-weight: 650;}
.admin-system-heading svg {width: 18px; height: 18px;}
.admin-system-heading::after {margin-left: auto !important;}
body :is(.user-avatar,.home-app-grid .tile-icon,.dashboard-metrics .metric-icon) {
  background: var(--ehs-tint); color: var(--ehs-link);
}
body.portal-body .button:not(.secondary):not(.danger):not(.warn):not(.delete),
body.fire-body .button:not(.secondary):not(.danger):not(.warn):not(.delete) {
  color: #242321; background: var(--ehs-orange); border-color: var(--ehs-orange);
}
body.portal-body .button.secondary, body.fire-body .button.secondary {color: var(--ehs-ink); background: white; border-color: #c9c9c7;}
body :is(input,select,textarea,a,summary,button):focus-visible {outline: 3px solid var(--ehs-link); outline-offset: 2px;}
body .ws-count, body .tile-count, body .dw-add {color: var(--ehs-link); background: var(--ehs-tint);}
body .ws-card, body .ws-metric, body .app-tile, body .panel, body .dw-member-card {background-color: white;}
body .dw-schedule {background: #fff4e1; border-color: #e4c497;}
body .dw-schedule > i {background: #ecbe77;}
body .dashboard-chart .chart-blue {background: var(--ehs-orange);}
body .pulse-strip {background: white; border-color: var(--ehs-rule);}
body .pulse-strip :is(strong,.pulse-label) {color: var(--ehs-ink);}
body .pulse-strip .overdue-stat strong {color: #973d22;}
body .simple-login {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0,1fr);
  place-items: center; padding: 24px 16px; background: var(--ehs-bg);
}
body .simple-login .identity-form-side {
  display: block; width: min(100%, 420px); padding: clamp(22px,5vw,40px);
  background: white; border: 1px solid var(--ehs-rule); border-top: 4px solid var(--ehs-orange);
  border-radius: 12px; box-shadow: none;
}
.login-mark {display: block; width: 138px; height: auto; margin-bottom: 26px;}
.simple-login .identity-card h1 {font-size: 25px; line-height: 1.3; margin: 0 0 6px; color: var(--ehs-ink);}
.simple-login :is(.login-company,.login-remember,.identity-form label) {color: var(--ehs-muted);}
.simple-login .login-service a {color: var(--ehs-link);}
.mobile-task-count {font-size: 11px; font-weight: 650; color: var(--ehs-link);}
body .home-app-grid .home-primary {background: white; border-color: var(--ehs-rule);}
body .home-app-grid .app-tile.report-entry {background: var(--ehs-orange); border-color: var(--ehs-orange);}
body .home-app-grid .report-entry .tile-icon {color: var(--ehs-ink); background: #fff6e6;}
body .home-app-grid .app-tile .tile-copy strong {color: var(--ehs-ink); font-size: 16px;}
body .mobile-nav a, body .pulse-strip > a span {color: var(--ehs-muted);}
body .pulse-strip > a span {font-size: 12px;}
body.portal-body .workspace, body.ehs-workspace.portal-body {background: var(--ehs-bg);}
body.portal-body .workspace .page-heading h1, body.portal-body .dashboard-chart h2 {color: var(--ehs-ink);}
body.portal-body .dashboard-chart, body.portal-body .company-activity {border-color: var(--ehs-rule);}
body.portal-body .dashboard-chart .muted, body.portal-body .metric-card small {color: var(--ehs-muted);}
@media (min-width:901px) {
  .admin-shell .portal-brand {display: none;}
  .admin-shell .portal-user {margin-inline-start: auto;}
}
@media (max-width:640px) {
  body .home-app-grid .desktop-todo-entry, .portal-header .portal-user, body .portal-header .desktop-nav {display: none;}
  body .workspace {padding-bottom: calc(76px + env(safe-area-inset-bottom));}
  .home-app-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
  .mobile-nav a {position: relative;}
  .mobile-task-count {position: absolute; top: 0; left: calc(50% + 10px);}
  body .simple-login {background: white; align-items: start; padding-top: clamp(28px,9vh,90px);}
  body .simple-login .identity-form-side {border: 0; padding: 20px 12px;}
}

body .simple-login {overflow-x:clip}
.simple-login .identity-form label.login-remember {
  display:flex; align-items:center; min-height:44px; margin:8px 0; font-size:14px; cursor:pointer;
}
.simple-login .login-remember input {
  width:18px; height:18px; min-height:0; margin:0; flex:none; accent-color:var(--ehs-link);
}
.simple-login .login-service a {
  display:inline-flex; align-items:center; min-height:44px; font-size:13px;
}
body.portal-body :is(.tile-copy small,.portal-brand small,.portal-user small,.row-title + .meta,
                     .ledger-secondary,.ledger-progress,.record-fields span,.record-fields small,
                     .dashboard-chart small,.account-grid .meta,.todo-info small,.report-section h2 small,
                     .photo-drop-hint,.file-summary,.photo-label,.records-area-label),
body.fire-body :is(.meta,.fire-point-code) {
  color:var(--ehs-muted); font-size:clamp(12px,.84rem,14px);
}
body .admin-side-brand span {font-size:13px;}
@media (max-width:700px) {
  body main :is(.back-link,.training-back,.chat-page-heading > a,.mobile-ledger-bottom a,
                .ledger-detail,.review-open,.panel-head > a,.mobile-hazard-actions a) {
    display:inline-flex; align-items:center; min-block-size:44px; min-inline-size:44px;
    font-size:14px; line-height:1.5;
  }
}
