/* HEADER-THEME-TRAVIS-3 - the one top header every page wears, taken from the Dashboard's (Ric, #131, 5 Nov 2026: "look at all the top
   headers ... how many times everything looks different like the max button and the refresh button ... create a proper theme that they all
   follow I prefer it looks like the dashboard header theme"). A page loads this by <link> and puts its controls in its header; this file
   holds the bar, the title and the buttons. Styling only, no data. Max's listening and thinking looks stay in max-button.js. */
.app-header, .dash-header, .tl-header, .top-bar {
  background: linear-gradient(180deg, #B8BFC8 0%, #D1D5DB 100%);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  min-height: 52px;
  padding: 8px 22px;
  color: #1F2937;
}
.dash-header .dash-title, .app-header .hdr-title, .tl-header .hdr-title, .top-bar h1 {
  font-size: 15px; font-weight: 700; color: #1F2937;
}
/* every button in a header, Max AI and Refresh first */
.app-header .dash-btn, .dash-header .dash-btn,
.tl-header .btn:not(.primary):not(.on),
.top-bar .dash-btn, .top-bar .refresh-btn, .top-bar .reports-toggle:not(.active), .top-bar .view-toggle button:not(.active) {
  background: #fff; color: #374151; border: 1px solid #D1D5DB; border-radius: 6px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer; white-space: nowrap;
}
.top-bar .reports-toggle.active, .top-bar .view-toggle button.active {
  border: 1px solid #475569; border-radius: 6px; background: #475569; color: #fff;
  padding: 6px 12px; font-size: 12px; font-weight: 600; line-height: 16px;
}
.app-header .dash-btn:hover, .dash-header .dash-btn:hover,
.tl-header .btn:not(.primary):not(.on):hover,
.top-bar .dash-btn:hover, .top-bar .refresh-btn:hover, .top-bar .reports-toggle:not(.active):hover, .top-bar .view-toggle button:not(.active):hover {
  background: #F9FAFB; border-color: #9CA3AF; opacity: 1;
}
.dash-header .dash-btn.close { color: #DC2626; }
.dash-header .dash-btn.close:hover { background: #FEF2F2; border-color: #FCA5A5; }
.app-header .hdr-right { gap: 8px; }
.top-bar .view-toggle { border-color: #D1D5DB; border-radius: 6px; gap: 0; }
.top-bar .view-toggle button { border-width: 0; border-radius: 0; }
.top-bar .status { color: #475569; }
.top-bar .map-date { background: #fff; color: #374151; border-color: #D1D5DB; border-radius: 6px; font-size: 12px; color-scheme: light; }
/* The name pill (Ric, #141 6692319080: his tag "doesn't look like the other pages"). A page draws it as
   <div class="hdr-user-pill role-admin"><span class="status-dot"></span><span>Name</span><span class="role">Owner</span></div>. */
.hdr-user-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; background: #fff; color: #374151; border: 1px solid #D1D5DB; border-radius: 20px; font-size: 13px; font-weight: 400; letter-spacing: 0.15px; cursor: pointer; user-select: none; transition: box-shadow 0.15s, opacity 0.15s; }
.hdr-user-pill:hover { opacity: 0.85; }
.hdr-user-pill .status-dot { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; min-width: 18px; min-height: 18px; border-radius: 50%; background: #15803D; }
.hdr-user-pill .role { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #6B7280; padding-left: 6px; border-left: 1px solid #E5E7EB; }
.hdr-user-pill.unsynced { background: #F1F5F9; color: #64748B; border-color: #CBD5E1; }
.hdr-user-pill.unsynced .status-dot { background: #94A3B8; }
.hdr-user-pill.unsynced .role { color: #94A3B8; border-left-color: #CBD5E1; }
.hdr-user-pill.role-admin { background: #DBEAFE; color: #1D4ED8; border-color: rgba(29,78,216,0.12); }
.hdr-user-pill.role-admin .status-dot { background: #1D4ED8; }
.hdr-user-pill.role-admin .role { color: #1D4ED8; border-left-color: rgba(29,78,216,0.2); }
.hdr-user-pill.role-sub { background: #FEF3C7; color: #92400E; border-color: rgba(146,64,14,0.12); }
.hdr-user-pill.role-sub .status-dot { background: #92400E; }
.hdr-user-pill.role-sub .role { color: #92400E; border-left-color: rgba(146,64,14,0.2); }
.hdr-user-pill.my-jobs-active { background: #1E40AF; color: #fff; border-color: rgba(255,255,255,0.25); box-shadow: 0 0 0 2px #3B82F6; }
.hdr-user-pill.my-jobs-active .status-dot { background: #93C5FD; }
.hdr-user-pill.my-jobs-active .role { color: #BFDBFE; border-left-color: rgba(255,255,255,0.25); }
