/* Dashboard Header Styling */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--wh-0b132b, #0b132b);
  border-bottom: 2px solid var(--wh-3a506b, #3a506b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Adjust dashboard container to account for header */
.dashboard-container.with-header {
  height: calc(100vh - 60px); /* Full height minus header in view mode */
  margin-top: 60px;
  transition: height 0.3s ease; /* Smooth transition when control bar appears/disappears */
}

/* When in edit mode, make room for control bar */
body.edit-mode .dashboard-container.with-header {
  height: calc(100vh - 120px); /* Account for header (60px) and footer (60px) */
}

/* Header Left - Site Branding + User Info */
.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--wh-5bc0be, #5bc0be);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-tagline {
  font-size: 10px;
  color: rgba(var(--wh-e0e0e0-rgb, 224,224,224), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.user-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid var(--wh-3a506b, #3a506b);
  padding-left: 24px;
}

.current-time {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--wh-5bc0be, #5bc0be);
  font-weight: bold;
  min-width: 90px;
  text-align: center;
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  font-size: 13px;
  color: var(--wh-e0e0e0, #e0e0e0);
  font-weight: 500;
}

.user-role {
  font-size: 10px;
  color: rgba(var(--wh-e0e0e0-rgb, 224,224,224), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header Center - Dashboard Selector */
.header-center {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin: 0 40px 0 20px;
}

.dashboard-selector-container {
  position: relative;
  width: 220px; /* Slightly wider to accommodate buttons */
}

.current-dashboard-display {
  background-color: var(--wh-1f3756, #1f3756);
  border: 1px solid var(--wh-3a506b, #3a506b);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.current-dashboard-display:hover {
  background-color: var(--wh-263c61, #263c61);
  border-color: var(--wh-5bc0be, #5bc0be);
}

.dashboard-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.dashboard-name {
  color: var(--wh-e0e0e0, #e0e0e0);
  font-weight: 500;
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  color: rgba(var(--wh-e0e0e0-rgb, 224,224,224), 0.6);
  font-size: 12px;
  transition: transform 0.2s;
}

.dashboard-selector-container.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dashboard Dropdown */
.dashboard-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--wh-1f3756, #1f3756);
  border: 1px solid var(--wh-3a506b, #3a506b);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  margin-top: 4px;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.dashboard-dropdown.open {
  display: block;
}

.dropdown-section {
  padding: 12px 16px;
}

.dropdown-section-title {
  font-size: 11px;
  color: var(--wh-5bc0be, #5bc0be);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: bold;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--wh-3a506b, #3a506b);
  margin: 0;
}

.edit-mode-toggle-container {
  margin-bottom: 4px;
}

/* The list and the action buttons read as one block, so close the gap between their two
   sections. When the switch section is hidden (a single dashboard) the actions section is
   all that is left, so it takes the normal section padding back. */
#dashboardSwitchSection {
  padding-bottom: 0;
}

#dashboardActionsSection {
  padding-top: 4px;
}

.dashboard-dropdown.no-switch #dashboardActionsSection {
  padding-top: 12px;
}

/* New Dashboard spans the menu; Edit Mode and Manage share the row beneath it. */
#newDashboardBtn {
  width: 100%;
  margin-bottom: 6px;
}

/* Edit Mode keeps its own colour -- it is a state toggle, not a navigation button -- but has
   to match .dashboard-action-btn's metrics to sit level with Manage. */
.dashboard-actions .edit-mode-toggle-btn {
  flex: 1;
  width: auto;
  padding: 6px 8px;
  font-size: 10px;
  justify-content: center;
  gap: 3px;
}

.dashboard-actions .edit-mode-toggle-btn:hover {
  transform: none;
}

.dashboard-actions .toggle-checkbox {
  font-size: 11px;
  width: auto;
}

.edit-mode-toggle-btn {
  width: 100%;
  background: linear-gradient(135deg, #228b22, #3cb371);
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.edit-mode-toggle-btn:hover {
  background: linear-gradient(135deg, #3cb371, #4cbb81);
  transform: translateY(-1px);
}

.edit-mode-toggle-btn.view-mode {
  background: linear-gradient(135deg, #4a90a4, #5ba3b8);
}

.edit-mode-toggle-btn.view-mode:hover {
  background: linear-gradient(135deg, #5ba3b8, #6bb4c8);
}

.toggle-checkbox {
  font-size: 16px;
  font-family: monospace;
  font-weight: bold;
  width: 16px;
  text-align: center;
}

.dashboard-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.dashboard-item {
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: var(--wh-e0e0e0, #e0e0e0);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-item:hover {
  background-color: rgba(var(--wh-5bc0be-rgb, 91,192,190), 0.1);
  color: var(--wh-5bc0be, #5bc0be);
}

.dashboard-item.current {
  background-color: rgba(var(--wh-5bc0be-rgb, 91,192,190), 0.2);
  color: var(--wh-5bc0be, #5bc0be);
  font-weight: bold;
}

.dashboard-item.loading {
  color: rgba(var(--wh-e0e0e0-rgb, 224,224,224), 0.6);
  font-style: italic;
  cursor: default;
}

.dashboard-item.loading:hover {
  background-color: transparent;
  color: rgba(var(--wh-e0e0e0-rgb, 224,224,224), 0.6);
}

.dashboard-actions {
  display: flex;
  gap: 6px;
}

.dashboard-action-btn {
  flex: 1;
  background-color: rgba(var(--wh-3a506b-rgb, 58,80,107), 0.8);
  border: 1px solid var(--wh-3a506b, #3a506b);
  border-radius: 4px;
  padding: 6px 8px;
  color: var(--wh-e0e0e0, #e0e0e0);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-action-btn:hover {
  background-color: rgba(var(--wh-5bc0be-rgb, 91,192,190), 0.2);
  border-color: var(--wh-5bc0be, #5bc0be);
  color: var(--wh-5bc0be, #5bc0be);
}

.action-icon {
  font-size: 10px;
  flex-shrink: 0;
}

/* Header Right - Actions Only */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Borderless (Dan, 2026-11-13): a small icon inside a bordered box looked unfinished. The icon
   is bigger and carries the button on its own; a soft round wash shows hover / on. The hit area
   stays 38px so the targets are no harder to click. */
.header-action-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--wh-c9d3e0, #c9d3e0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}
.header-action-btn svg { width: 22px; height: 22px; stroke-width: 1.8; }

.header-action-btn:hover {
  background-color: rgba(var(--wh-ffffff-rgb, 255,255,255), 0.08);
  color: var(--wh-5bc0be, #5bc0be);
}
.header-action-btn:focus-visible { outline: 2px solid var(--wh-5bc0be, #5bc0be); outline-offset: 1px; }

/* User Avatar & Dropdown */
.user-menu-container {
  position: relative;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--wh-5bc0be, #5bc0be), var(--wh-6fffe9, #6fffe9));
  border: 2px solid var(--wh-3a506b, #3a506b);
  border-radius: 50%;
  color: var(--wh-0b132b, #0b132b);
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.user-avatar:hover {
  border-color: var(--wh-5bc0be, #5bc0be);
  transform: scale(1.05);
}

.avatar-text {
  font-size: 12px;
  font-weight: bold;
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background-color: var(--wh-1f3756, #1f3756);
  border: 1px solid var(--wh-3a506b, #3a506b);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  margin-top: 8px;
  display: none;
}

.user-dropdown.open {
  display: block;
}

.user-dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(var(--wh-5bc0be-rgb, 91,192,190), 0.1);
}

.avatar-large {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--wh-5bc0be, #5bc0be), var(--wh-6fffe9, #6fffe9));
  border-radius: 50%;
  color: var(--wh-0b132b, #0b132b);
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-dropdown-info {
  flex: 1;
}

.user-dropdown-name {
  font-size: 14px;
  color: var(--wh-e0e0e0, #e0e0e0);
  font-weight: 500;
}

.user-dropdown-email {
  font-size: 11px;
  color: rgba(var(--wh-e0e0e0-rgb, 224,224,224), 0.6);
  margin-top: 2px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--wh-e0e0e0, #e0e0e0);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
}

.user-dropdown-item:hover {
  background-color: rgba(var(--wh-5bc0be-rgb, 91,192,190), 0.1);
  color: var(--wh-5bc0be, #5bc0be);
}

.user-dropdown-item.logout {
  color: #e63946;
  border-top: 1px solid var(--wh-3a506b, #3a506b);
}

.user-dropdown-item.logout:hover {
  background-color: rgba(230, 57, 70, 0.1);
  color: #ff4757;
}

.item-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* Edit Mode Styling for Header */
body.edit-mode .dashboard-header {
  border-bottom-color: rgba(34, 139, 34, 0.6);
  background: linear-gradient(135deg, 
    rgba(34, 139, 34, 0.05) 0%, 
    var(--wh-0b132b, #0b132b) 100%);
}

body.edit-mode .current-dashboard-display {
  border-color: rgba(34, 139, 34, 0.3);
  background: linear-gradient(135deg, 
    rgba(34, 139, 34, 0.1) 0%, 
    var(--wh-1f3756, #1f3756) 100%);
}

body.edit-mode .current-dashboard-display:hover {
  border-color: #228b22;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 0 12px;
  }
  
  .user-details {
    display: none;
  }
  
  .site-tagline {
    display: none;
  }
  
  .header-center {
    margin: 0 12px;
  }
  
  .current-dashboard-display {
    min-width: 200px;
  }
}

/* Scrollbar styling for dropdowns */
.dashboard-dropdown::-webkit-scrollbar,
.dashboard-list::-webkit-scrollbar {
  width: 6px;
}

.dashboard-dropdown::-webkit-scrollbar-track,
.dashboard-list::-webkit-scrollbar-track {
  background: var(--wh-0b132b, #0b132b);
}

.dashboard-dropdown::-webkit-scrollbar-thumb,
.dashboard-list::-webkit-scrollbar-thumb {
  background: var(--wh-3a506b, #3a506b);
  border-radius: 3px;
}

.dashboard-dropdown::-webkit-scrollbar-thumb:hover,
.dashboard-list::-webkit-scrollbar-thumb:hover {
  background: var(--wh-5bc0be, #5bc0be);
}

/* The dashboard page itself never scrolls: every module scrolls inside its own box. The bottom
   control bar is parked just below the viewport, which made the document 60px taller than the
   window, so any scrollIntoView() inside a module could scroll <body> and slide the whole
   dashboard up under the header (2026-10-16). index.html also snaps any programmatic scroll back. */
html, body { overflow: hidden; }

/* ── Header menus, 2026-11-13 (Dan: "rounded colors" looked unfinished) ─────────────────────
   The dashboard selector is plain text with a line icon and a chevron -- no filled box. Both
   header menus (dashboard, user) share one panel style: flat rows with line icons, a soft wash
   on hover, quiet section labels. Emoji are gone (they render differently on every machine). */
.dashboard-selector-container { width: auto; max-width: 300px; }
.current-dashboard-display {
  background: transparent; border: none; border-radius: 8px;
  padding: 7px 10px; gap: 8px; width: auto; max-width: 300px;
}
.current-dashboard-display:hover,
.dashboard-selector-container.open .current-dashboard-display { background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.07); border: none; }
.current-dashboard-display .dashboard-icon { color: var(--wh-8fa0b8, #8fa0b8); display: flex; }
.current-dashboard-display .dashboard-name { font-size: 14px; font-weight: 600; color: var(--wh-e6ebf2, #e6ebf2); }
.dropdown-arrow { display: flex; color: var(--wh-8fa0b8, #8fa0b8); font-size: 0; }
.dashboard-icon svg, .dropdown-arrow svg, .action-icon svg, .item-icon svg { display: block; }
body.edit-mode .current-dashboard-display { background: rgba(47,163,122,0.14); border: none; }
body.edit-mode .current-dashboard-display:hover { background: rgba(47,163,122,0.22); border: none; }

.dashboard-dropdown, .user-dropdown {
  background: var(--wh-141d33, #141d33); border: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.08); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5); padding: 6px;
}
.dashboard-dropdown { left: auto; right: 0; width: 270px; margin-top: 6px; max-height: 70vh; }
.dropdown-section { padding: 0; }
.dropdown-section + .dropdown-section { border-top: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.07); margin-top: 6px; padding-top: 6px; }
#dashboardSwitchSection, #dashboardActionsSection, .dashboard-dropdown.no-switch #dashboardActionsSection { padding: 0; }
.dashboard-dropdown.no-switch #dashboardActionsSection { border-top: none; margin-top: 0; padding-top: 0; }
.dropdown-section-title {
  font-size: 10.5px; color: var(--wh-8796ad, #8796ad); font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 10px 4px; margin: 0;
}
.dashboard-list { max-height: 260px; margin-bottom: 0; }

/* One row style for every menu entry: dashboards, workspaces, actions, user items. */
.dashboard-item, .dashboard-action-btn, .dashboard-actions .edit-mode-toggle-btn, .edit-mode-toggle-btn, .user-dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: none; border-radius: 6px; background: transparent;
  color: var(--wh-dbe2ec, #dbe2ec); font-size: 13px; font-weight: 400; text-align: left; justify-content: flex-start;
  cursor: pointer; transition: background-color 0.12s, color 0.12s; transform: none; box-shadow: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0;
}
.dashboard-item .dashboard-icon, .action-icon, .item-icon { color: var(--wh-8fa0b8, #8fa0b8); width: 16px; flex: none; font-size: 0; }
.dashboard-item:hover, .dashboard-action-btn:hover, .dashboard-actions .edit-mode-toggle-btn:hover,
.edit-mode-toggle-btn:hover, .user-dropdown-item:hover {
  background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.06); color: var(--wh-ffffff, #fff); border: none; transform: none;
}
.dashboard-item:hover .dashboard-icon, .dashboard-action-btn:hover .action-icon,
.edit-mode-toggle-btn:hover .action-icon, .user-dropdown-item:hover .item-icon { color: var(--wh-5bc0be, #5bc0be); }
.dashboard-item .dashboard-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: inherit; color: inherit; }
/* The dashboard you are on: teal, with a check, and not clickable. */
.dashboard-item.current { background: transparent; color: var(--wh-5bc0be, #5bc0be); font-weight: 600; cursor: default; }
.dashboard-item.current .dashboard-icon { color: var(--wh-5bc0be, #5bc0be); }
.dashboard-item.current::after {
  content: ""; width: 16px; height: 16px; flex: none; margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235bc0be' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat;
}
.dashboard-item.loading, .dashboard-item.loading:hover { color: var(--wh-8796ad, #8796ad); font-style: italic; background: transparent; cursor: default; }

.dashboard-actions { flex-direction: column; gap: 0; }
#newDashboardBtn { margin-bottom: 0; }
.wh-ws-save { margin-top: 0; }

/* Edit mode: a real on/off switch at the end of the row instead of a ☐ glyph on a green button.
   .view-mode (set by header.js) means OFF. */
.edit-mode-toggle-btn .toggle-checkbox, .dashboard-actions .toggle-checkbox {
  margin-left: auto; width: 28px; height: 16px; border-radius: 8px; background: var(--wh-3a4a66, #3a4a66);
  position: relative; flex: none; font-size: 0; transition: background-color 0.15s;
}
.edit-mode-toggle-btn .toggle-checkbox::after {
  content: ""; position: absolute; top: 2px; left: 14px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; transition: left 0.15s;
}
.edit-mode-toggle-btn:not(.view-mode) .toggle-checkbox { background: #2fa37a; }
.edit-mode-toggle-btn.view-mode .toggle-checkbox::after { left: 2px; background: var(--wh-c9d3e0, #c9d3e0); }
.edit-mode-toggle-btn.view-mode, .edit-mode-toggle-btn.view-mode:hover { background: transparent; }
.edit-mode-toggle-btn.view-mode:hover { background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.06); }
.edit-mode-toggle-btn .toggle-text { flex: 1; min-width: 0; }

/* User menu */
.user-dropdown { width: 240px; }
.user-dropdown-header { background: transparent; padding: 10px 10px 12px; }
.user-dropdown .dropdown-divider { background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.07); margin: 4px 0; }
.user-dropdown-item.logout { color: #f08a8f; border-top: none; }
.user-dropdown-item.logout .item-icon { color: #f08a8f; }
.user-dropdown-item.logout:hover { background: rgba(230,57,70,0.12); color: #ff9aa0; }

/* Header clean-up, 2026-11-13 (Dan): no clock or floating name (name + company live in the
   user menu); the dashboard name sits beside the logo as the page title; teal only for the
   logo and active states; Ask Claude is an icon + label pill; quiet slate avatar.
   The clock / name elements stay in the DOM (header.js still fills them) but are hidden. */
.user-info-left { display: none; }
.header-left { gap: 0; }
.header-center {
  flex: 1; justify-content: flex-start; align-items: center;
  margin: 0 0 0 20px; padding-left: 14px; border-left: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.12); height: 28px;
}
.dashboard-selector-container { width: auto; }
.current-dashboard-display { width: auto; }
.dashboard-dropdown { left: 0; right: auto; }

#robotBtn {
  width: auto; height: 34px; padding: 0 14px 0 11px; gap: 7px; border-radius: 17px;
  border: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.16); margin-right: 6px;
}
#robotBtn svg { width: 18px; height: 18px; }
#robotBtn .robot-label { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
#robotBtn:hover { border-color: rgba(var(--wh-5bc0be-rgb, 91,192,190),0.55); }

.user-avatar, .avatar-large {
  background: var(--wh-2c3d5a, #2c3d5a); border: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.14); color: var(--wh-e6ebf2, #e6ebf2);
}
.user-avatar:hover { transform: none; background: var(--wh-34486a, #34486a); border-color: rgba(var(--wh-ffffff-rgb, 255,255,255),0.28); }
@media (max-width: 900px) { #robotBtn .robot-label { display: none; } #robotBtn { width: 38px; padding: 0; border: none; } }
/* With one dashboard the Switch section is hidden; don't draw a rule above the first visible section. */
.dashboard-dropdown.no-switch #workspaceSection { border-top: none; margin-top: 0; padding-top: 0; }

/* Header actions as icon + label, separated by thin vertical bars (Dan 11/13, from thinkorswim).
   Ask Claude loses its outlined pill: every item is labelled the same way now. */
.header-actions { gap: 0; }
.header-action-btn { width: auto; height: 32px; padding: 0 10px; gap: 7px; border-radius: 6px; font-size: 13px; }
.header-action-btn svg { width: 18px; height: 18px; }
.header-action-btn .hb-label { font-size: 13px; font-weight: 500; white-space: nowrap; }
#robotBtn { border: none; height: 32px; padding: 0 10px; border-radius: 6px; margin-right: 0; }
#robotBtn svg { width: 18px; height: 18px; }
.header-actions > .header-action-btn + .header-action-btn,
.header-actions > .user-menu-container { position: relative; margin-left: 11px; }
.header-actions > .header-action-btn + .header-action-btn::before,
.header-actions > .user-menu-container::before {
  content: ""; position: absolute; left: -6px; top: 50%; height: 18px; margin-top: -9px; width: 1px;
  background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.14); pointer-events: none;
}
.header-actions > .user-menu-container { margin-left: 13px; }
.header-actions > .user-menu-container::before { left: -7px; }
@media (max-width: 900px) {
  .header-action-btn .hb-label { display: none; }
  .header-action-btn, #robotBtn { width: 38px; padding: 0; justify-content: center; }
}

/* User menu extras, 2026-11-16: plan badges, presence, theme switch, What's new (js/header.js UserMenu). */
.user-dropdown { width: 270px; }
.user-dropdown-info { min-width: 0; }
.user-dropdown-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-um-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wh-um-badges:empty { display: none; }
.wh-um-badge {
  font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 4px; white-space: nowrap;
  color: var(--wh-5bc0be, #5bc0be); background: rgba(var(--wh-5bc0be-rgb, 91,192,190),0.12);
}
.wh-um-badge.trial { color: #d9a520; background: rgba(217,165,32,0.14); }
.wh-um-badge.admin { color: var(--wh-dbe2ec, #dbe2ec); background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.10); }

.wh-um-status {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: none; border-radius: 6px;
  background: transparent; color: var(--wh-dbe2ec, #dbe2ec); font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.wh-um-status:hover { background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.06); }
.wh-um-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fa37a; flex: none; margin: 0 3.5px; }
.wh-um-status.busy .wh-um-dot { background: #d9a520; }
.wh-um-status-text { flex: 1; }
.wh-um-status-hint { font-size: 11.5px; color: var(--wh-8796ad, #8796ad); }
.wh-um-status:hover .wh-um-status-hint { color: var(--wh-5bc0be, #5bc0be); }

.wh-um-theme { display: flex; align-items: center; gap: 10px; padding: 6px 10px 8px; }
.wh-um-theme-label { font-size: 13px; color: var(--wh-dbe2ec, #dbe2ec); width: 46px; flex: none; }
.wh-um-seg {
  flex: 1; display: flex; padding: 2px; border-radius: 6px; background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.06);
}
.wh-um-seg button {
  flex: 1; border: none; background: transparent; color: var(--wh-8fa0b8, #8fa0b8); font: inherit; font-size: 11.5px;
  padding: 4px 0; border-radius: 4px; cursor: pointer;
}
.wh-um-seg button:hover { color: var(--wh-dbe2ec, #dbe2ec); }
.wh-um-seg button.on { background: rgba(var(--wh-ffffff-rgb, 255,255,255),0.12); color: var(--wh-ffffff, #fff); font-weight: 600; }

.wh-um-count {
  margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 9px; font-size: 11px; text-align: center;
  background: var(--wh-5bc0be, #5bc0be); color: var(--wh-0b132b, #0b132b); font-weight: 600;
}
.user-avatar { position: relative; }
.user-avatar.wh-um-has-new::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--wh-5bc0be, #5bc0be); border: 2px solid var(--wh-141d33, #141d33);
}
.wh-um-foot { padding: 6px 10px 4px; font-size: 11px; }
.wh-um-foot a { color: var(--wh-8796ad, #8796ad); text-decoration: none; }
.wh-um-foot a:hover { color: var(--wh-dbe2ec, #dbe2ec); text-decoration: underline; }

/* What's new: the weekly Dashboard Update posts (Announcements, category 'release') */
.wh-um-overlay {
  position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.wh-um-modal {
  width: 560px; max-width: 100%; max-height: 80vh; display: flex; flex-direction: column;
  background: var(--wh-141d33, #141d33); border: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.1);
  border-radius: 10px; box-shadow: 0 18px 44px rgba(0,0,0,0.55); color: var(--wh-dbe2ec, #dbe2ec);
}
.wh-um-modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.08); font-size: 15px; font-weight: 600;
}
.wh-um-x { border: none; background: transparent; color: var(--wh-8fa0b8, #8fa0b8); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.wh-um-x:hover { color: var(--wh-ffffff, #fff); }
.wh-um-modal-body { overflow-y: auto; padding: 6px 16px 14px; }
.wh-um-quiet { color: var(--wh-8796ad, #8796ad); font-size: 13px; padding: 12px 0; }
.wh-um-post { padding: 12px 0; border-bottom: 1px solid rgba(var(--wh-ffffff-rgb, 255,255,255),0.06); }
.wh-um-post:last-child { border-bottom: none; }
.wh-um-post-title { font-size: 13.5px; font-weight: 600; color: var(--wh-e6ebf2, #e6ebf2); }
.wh-um-post.new .wh-um-post-title::before {
  content: "New"; font-size: 10px; font-weight: 600; padding: 2px 5px; margin-right: 6px; border-radius: 3px; vertical-align: 1px;
  background: var(--wh-5bc0be, #5bc0be); color: var(--wh-0b132b, #0b132b);
}
.wh-um-post-date { font-size: 11px; color: var(--wh-8796ad, #8796ad); margin: 2px 0 6px; }
.wh-um-post-body { font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; color: var(--wh-c9d3e0, #c9d3e0); }
.wh-um-post-link { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--wh-5bc0be, #5bc0be); }

/* Header separators, 2026-11-16 (Dan): the bars were invisible in Classic and Charcoal, and the
   logo|dashboard bar (28px) was taller than the action bars (18px). One colour, one height. */
:root { --wh-hdr-sep: rgba(var(--wh-ffffff-rgb, 255,255,255), 0.30); }
:root[data-theme="light"] { --wh-hdr-sep: rgba(var(--wh-ffffff-rgb, 17,24,32), 0.22); }
.header-center { border-left-color: var(--wh-hdr-sep); height: 28px; }
.header-actions > .header-action-btn + .header-action-btn::before,
.header-actions > .user-menu-container::before {
  height: 28px; margin-top: -14px; background: var(--wh-hdr-sep);
}
