/* Custom Overrides */

/* Reduce navbar height by ~30%.
   Also force single-row flex layout at ALL widths so brand and menu
   never stack onto two rows on iPad. Bulma's default only sets
   .navbar { display: flex } at >=1024px, leaving 769–1023px broken. */
.navbar {
  min-height: 56px !important;
  padding: 0.4rem 2rem !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.navbar > .navbar-brand,
.navbar > .navbar-menu,
.navbar > .mobile-logo-center {
  flex-shrink: 0 !important;
}
.navbar > .navbar-menu {
  flex-grow: 1 !important;
  min-width: 0 !important; /* allow inner items to shrink rather than push wrap */
}

.navbar .navbar-brand .logo {
  min-height: 49px !important;
  display: flex !important;
  align-items: center !important;
}

.navbar .navbar-brand .logo img {
  max-height: 42px !important;
}

/* Add padding to logo on left to match user dropdown on right */
.navbar .navbar-brand {
  padding-left: 1rem !important;
  display: flex !important;
  align-items: center !important;
}

/* Reduce user avatar/photo by 30% - target all possible structures */
.navbar-item.has-dropdown.user-dropdown .navbar-link .image-wrapper {
  width: 35px !important;
  height: 35px !important;
}

.navbar-item.has-dropdown.user-dropdown .navbar-link .image-wrapper .image {
  width: 35px !important;
  height: 35px !important;
}

.navbar-item.has-dropdown.user-dropdown .navbar-link .image-wrapper .image img,
.navbar-item.has-dropdown.user-dropdown .navbar-link .image-wrapper img {
  width: 31px !important;
  height: 31px !important;
  max-height: 31px !important;
  margin-left: 2px !important;
  margin-top: 2px !important;
}

/* Fallback selectors for user avatar */
.navbar .image-wrapper {
  width: 35px !important;
  height: 35px !important;
}

.navbar .image-wrapper .image {
  width: 35px !important;
  height: 35px !important;
}

.navbar .image-wrapper .image img {
  width: 31px !important;
  height: 31px !important;
  max-height: 31px !important;
}

/* Center navbar items vertically.
   Force transparent bg + single-row flex at ALL widths — Bulma's default
   collapses .navbar-menu into a white drawer on touch breakpoints
   (768–1023px), which on iPad shows up as a giant white second row stacked
   under the brand. The .navbar itself carries .bg-bblue; .navbar-menu should
   never paint its own bg. */
.navbar.is-fixed-top .navbar-menu,
.navbar .navbar-menu {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: static !important; /* avoid Bulma's drawer-mode absolute positioning */
}

.navbar .navbar-menu .navbar-end {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin-left: auto !important;
  min-width: 0; /* allow children to shrink if needed */
}

/* Tighten the spacing of right-side navbar items so they all fit on
   tablet widths without wrapping — keep the pill TEXT visible. */
@media (max-width: 1100px) {
  .navbar .navbar-end .navbar-item { padding: 0.4rem 0.4rem !important; }
  .paul-nav-pill { padding: 5px 10px !important; font-size: 12px !important; }
  .aw-nav-pill   { padding: 5px 10px !important; font-size: 11px !important; }
}

/* Adjust body padding for fixed navbar */
body.has-navbar-fixed-top {
  padding-top: 56px !important;
}

/* Portal-specific logo adjustments - logo is position:fixed */
body.portal .navbar-start .logo {
  height: 44px !important;
  width: 175px !important;
  margin-left: 1.5rem !important;
  top: 6px !important;
}

/* Adjust portal body padding for smaller navbar */
body.portal .portal-body {
  padding-top: 56px !important;
}

/* ========================================
   Help Panel Slide-out
   ======================================== */

.help-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.help-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.help-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.help-panel.active {
  right: 0;
}

.help-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E4EFF6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-panel-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0B3954;
}

.help-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #55778A;
  padding: 0;
  line-height: 1;
}

.help-panel-close:hover {
  color: #0B3954;
}

.help-panel-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.help-panel-subtitle {
  font-size: 14px;
  color: #55778A;
  margin-bottom: 20px;
}

.help-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.help-category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: #F3F8FB;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.help-category-btn:hover {
  background: #E4EFF6;
  border-color: #C8D6DF;
}

.help-category-btn.selected {
  background: #fff;
  border-color: #c89a2c;
}

.help-category-btn .icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.help-category-btn .label {
  font-size: 13px;
  font-weight: 500;
  color: #0B3954;
}

.help-form-group {
  margin-bottom: 20px;
}

.help-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #0B3954;
  margin-bottom: 8px;
}

.help-form-group textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #C8D6DF;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.help-form-group textarea:focus {
  outline: none;
  border-color: #c89a2c;
}

.help-form-group textarea::placeholder {
  color: #889FAD;
}

.help-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(215.91deg, #EDB364 12.73%, #E9856D 85.52%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 154, 44, 0.3);
}

.help-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Package Change launcher at the base of the Help slide-out.
   Sized 20% under the submit button (16px->12.8px, 14/24 padding->11/19). */
.help-package-change {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  text-align: center;
}
.help-package-change-or {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 10px;
}
.help-pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 19px;          /* submit is 14px 24px */
  font-size: 12.8px;            /* submit is 16px */
  font-weight: 600;
  color: #fff;
  background: #0F172A;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.help-pc-btn:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}
.help-pc-btn svg { width: 15px; height: 15px; }

/* Ask Paul — Package Change action suggestion (distinct from query chips) */
.paul-suggestion-action {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #0F172A;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
}
.paul-suggestion-action:hover {
  background: rgba(212, 175, 55, 0.20);
  border-color: #D4AF37;
}

/* Help panel — tabs + Package Change requests */
.help-tabs { display: flex; padding: 0 24px; border-bottom: 1px solid #E2E8F0; }
.help-tab { position: relative; padding: 14px 2px; margin-right: 22px; background: none; border: none; font-size: 14px; font-weight: 600; color: #6B7280; cursor: pointer; font-family: inherit; }
.help-tab.active { color: #0F172A; }
.help-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #0F172A; border-radius: 2px; }
.help-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px; border-radius: 9px; background: #D4AF37; color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.help-pane { display: none; }
.help-pane.active { display: block; }
.help-req-empty { padding: 48px 20px; text-align: center; color: #9CA3AF; font-size: 14px; line-height: 1.6; }
.help-req-card { border: 1px solid #E2E8F0; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.help-req-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.help-req-head:hover { background: #F8FAFC; }
.help-req-head-main { flex: 1; min-width: 0; }
.help-req-num { font-size: 14px; font-weight: 700; color: #0F172A; }
.help-req-meta { font-size: 12px; color: #6B7280; margin-top: 2px; }
.help-req-chev { width: 18px; height: 18px; color: #9CA3AF; transition: transform .2s; flex-shrink: 0; }
.help-req-card.open .help-req-chev { transform: rotate(180deg); }
.help-req-body { display: none; padding: 4px 16px 14px; border-top: 1px solid #F1F4F6; }
.help-req-card.open .help-req-body { display: block; }
.help-req-prop { padding: 10px 0; border-bottom: 1px solid #F1F4F6; }
.help-req-prop:last-child { border-bottom: none; }
.help-req-prop-name { font-size: 13px; font-weight: 700; color: #0F172A; margin-bottom: 6px; }
.help-req-line { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.help-req-line img { width: 15px; height: 15px; border-radius: 3px; flex-shrink: 0; }
.help-req-line .hil { font-weight: 600; color: #45464D; min-width: 92px; }
.help-req-line .hmv { color: #6B7280; flex: 1; }
.help-req-line .hmv b { color: #0F172A; font-weight: 700; }
.help-req-line .hkd { text-transform: capitalize; font-weight: 700; font-size: 11px; }
.help-req-line .hdt { font-size: 11.5px; color: #9CA3AF; white-space: nowrap; }

/* Thank you state */
.help-thank-you {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.help-thank-you.active {
  display: block;
}

.help-thank-you .checkmark {
  width: 64px;
  height: 64px;
  background: linear-gradient(215.91deg, #EDB364 12.73%, #E9856D 85.52%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.help-thank-you .checkmark svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.help-thank-you h3 {
  font-size: 24px;
  font-weight: 600;
  color: #0B3954;
  margin: 0 0 12px 0;
}

.help-thank-you p {
  font-size: 14px;
  color: #55778A;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.help-new-request-btn {
  padding: 12px 24px;
  background: #fff;
  color: #0B3954;
  border: 2px solid #C8D6DF;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.help-new-request-btn:hover {
  border-color: #0B3954;
  background: #F3F8FB;
}

.help-form.hidden {
  display: none;
}

/* ========================================
   Notifications Panel Slide-out
   ======================================== */

.notif-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notif-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notif-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.notif-panel.active {
  right: 0;
}

.notif-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E4EFF6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-panel-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0B3954;
}

.notif-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #55778A;
  padding: 0;
  line-height: 1;
}

.notif-panel-close:hover {
  color: #0B3954;
}

.notif-panel-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
}

/* Tabs inside the notifications panel — Updates (big stuff) vs Release Notes (the small weekly bits) */
.notif-tabs {
  display: flex; gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid #E4EFF6;
  background: #FAFCFD;
}
.notif-tab {
  background: transparent; border: none;
  padding: 12px 0; margin-right: 24px;
  font-size: 13px; font-weight: 600;
  color: #55778A; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}
.notif-tab:hover { color: #0B3954; }
.notif-tab.active { color: #0B3954; border-bottom-color: #c89a2c; }
.notif-tab .notif-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 16px; padding: 0 5px;
  margin-left: 6px;
  font-size: 10px; font-weight: 700;
  background: rgba(200,154,44,0.15); color: #c89a2c;
  border-radius: 8px;
}

/* Release-notes specific styling (uses .notif-item shell but with tighter meta) */
.notif-release-intro {
  padding: 14px 24px;
  font-size: 12px; color: #6B7280;
  background: #FAFCFD;
  border-bottom: 1px solid #F1F5F9;
  font-style: italic;
}
.notif-release { padding: 18px 24px; }
.notif-release-meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.notif-release-num {
  background: rgba(11,57,84,0.08);
  color: #0B3954;
  padding: 2px 8px; border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
}
.notif-release-sep { color: #D1D5DB; }
.notif-release-date { color: #6B7280; letter-spacing: 0.3px; }

.notif-item {
  padding: 20px 24px;
  border-bottom: 1px solid #E4EFF6;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item.notif-unread {
  background: rgba(59, 130, 246, 0.05);
  box-shadow: inset 3px 0 0 #3B82F6;
}

.notif-date {
  font-size: 12px;
  font-weight: 600;
  color: #c89a2c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.notif-title {
  font-size: 16px;
  font-weight: 600;
  color: #0B3954;
  margin: 0 0 8px 0;
}

.notif-list {
  margin: 0;
  padding-left: 20px;
  color: #55778A;
  font-size: 14px;
  line-height: 1.6;
}

.notif-list li {
  margin-bottom: 4px;
}

.notif-list li:last-child {
  margin-bottom: 0;
}

.notif-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Bell icon with dot indicator */
/* Notif bell + help icon — uniform 36x36 hit-target, identical placement
   so they sit side-by-side in the navbar without visual offset. */
.notif-bell,
.navbar-item > a[title="Help"] {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.notif-bell:hover,
.navbar-item > a[title="Help"]:hover {
  background: rgba(255,255,255,0.08);
}
.notif-bell svg,
.navbar-item > a[title="Help"] svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
}

.notif-bell .notif-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #EF4444;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}
.notif-bell .notif-dot.on {
  display: flex;
}

/* Notification button */
.notif-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(215.91deg, #EDB364 12.73%, #E9856D 85.52%);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notif-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 154, 44, 0.3);
  color: #fff;
}

button.notif-btn {
  border: none;
  cursor: pointer;
}

/* ========================================
   Collapsible Sidebar
   ======================================== */

.sidebar-toggle {
  position: fixed;
  top: 70px;
  left: 235px;
  z-index: 1000;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #C8D6DF;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-toggle:hover {
  background: #F3F8FB;
}

.sidebar-toggle svg {
  width: 14px;
  height: 14px;
  color: #55778A;
  transition: transform 0.3s ease;
}

/* Sidebar wrapper transition */
.sidebar-wrapper {
  transition: width 0.3s ease, min-width 0.3s ease;
  overflow: visible !important;
  width: 280px !important;
  min-width: 280px !important;
}

.sidebar-wrapper .portal-sidenav {
  transition: width 0.3s ease;
}

/* Portal body transition */
.portal-body {
  transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Collapsed state */
body.sidebar-collapsed .sidebar-wrapper {
  width: 0 !important;
  min-width: 0 !important;
}

body.sidebar-collapsed .sidebar-wrapper .portal-sidenav {
  width: 0 !important;
  opacity: 0;
}

body.sidebar-collapsed .sidebar-toggle {
  left: 10px;
}

body.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

body.sidebar-collapsed .portal-body {
  margin-left: 0;
}

/* ========================================
   Paul AI Panel Slide-out
   ======================================== */

.paul-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.paul-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.paul-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: right 0.3s ease, width 0.3s ease;
  display: flex;
  flex-direction: column;
}

.paul-panel.active {
  right: 0;
}

.paul-panel.expanded {
  width: 60vw;
  max-width: 900px;
}

.paul-panel-header {
  padding: 16px 20px;
  background: linear-gradient(215.91deg, #EDB364 12.73%, #E9856D 85.52%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.paul-panel-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.paul-panel-header h2 .beta-tag {
  font-size: 10px;
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.paul-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paul-panel-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.paul-panel-btn:hover {
  background: rgba(255,255,255,0.3);
}

.paul-panel-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paul-panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.paul-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.paul-welcome {
  text-align: center;
  padding: 40px 20px;
  color: #55778A;
}

.paul-welcome h3 {
  font-size: 20px;
  color: #1D3E50;
  margin-bottom: 8px;
}

.paul-welcome p {
  font-size: 14px;
  margin-bottom: 24px;
}

.paul-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paul-suggestion {
  background: #F3F8FB;
  border: 1px solid #C8D6DF;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: #1D3E50;
  transition: background 0.2s, border-color 0.2s;
}

.paul-suggestion:hover {
  background: #E8F0F5;
  border-color: #A0B8C8;
}

.paul-chat-input {
  padding: 16px 20px;
  border-top: 1px solid #E5E7EB;
  background: #fff;
  flex-shrink: 0;
}

.paul-chat-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.paul-chat-input textarea {
  flex: 1;
  border: 1px solid #C8D6DF;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  font-family: inherit;
}

.paul-chat-input textarea:focus {
  outline: none;
  border-color: #E9856D;
}

.paul-chat-input-actions {
  display: flex;
  gap: 4px;
}

.paul-input-btn {
  background: #F3F8FB;
  border: 1px solid #C8D6DF;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #55778A;
  transition: background 0.2s;
}

.paul-input-btn:hover {
  background: #E8F0F5;
}

.paul-send-btn {
  background: linear-gradient(215.91deg, #EDB364 12.73%, #E9856D 85.52%);
  border: none;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.2s;
}

.paul-send-btn:hover {
  opacity: 0.9;
}

.paul-send-btn:disabled {
  background: #C8D6DF;
  cursor: not-allowed;
}

/* Paul navbar pill button */
.paul-nav-pill {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: white;
  color: #1D3E50 !important;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paul-nav-pill:hover {
  background: #F0F9FF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.paul-nav-pill svg {
  color: #EDB364 !important;
  stroke: #EDB364 !important;
}

.paul-nav-pill span {
  color: #1D3E50;
}

/* Ask Paul removed from sidebar HTML (now in navbar as panel) */

/* BrynsightsBI Preview — fixed-position pin anchored to the bottom of the
   sidebar column. Lives outside React's DOM so it can't be wiped by
   re-renders. Visually reads as a sidebar entry; behaviorally bulletproof. */
#brynBiPreviewPin {
  position: fixed;
  left: 12px;
  bottom: 18px;
  width: 256px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid rgba(237,179,100,0.5);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15,23,42,0.10), 0 1px 3px rgba(15,23,42,0.06);
  text-decoration: none;
  color: #1D3E50;
  transition: all 0.15s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
#brynBiPreviewPin:hover {
  border-color: #EDB364;
  box-shadow: 0 8px 24px rgba(237,179,100,0.25), 0 2px 6px rgba(237,179,100,0.15);
  transform: translateY(-1px);
  color: #1D3E50;
}
#brynBiPreviewPin .bbp-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FCD34D 0%, #EDB364 100%);
  color: #78350F;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#brynBiPreviewPin .bbp-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
#brynBiPreviewPin .bbp-title {
  font-size: 13px; font-weight: 700; color: #1D3E50;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#brynBiPreviewPin .bbp-sub {
  font-size: 10px; font-weight: 600; color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#brynBiPreviewPin .bbp-pill {
  font-size: 9px; font-weight: 700;
  padding: 3px 7px;
  background: linear-gradient(135deg, #FCD34D 0%, #EDB364 100%);
  color: #78350F;
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px;
  flex-shrink: 0;
}
@media print { #brynBiPreviewPin { display: none !important; } }
@media (max-width: 768px) {
  #brynBiPreviewPin { display: none !important; }
}

/* Legacy in-sidebar styles kept harmless in case they're used elsewhere */
.bryn-bi-preview-link { color: #94A3B8 !important; position: relative; }
.bryn-bi-preview-link:hover { color: #475569 !important; }
.bryn-bi-preview-pill {
  display: inline-flex; align-items: center;
  margin-right: 14px; padding: 2px 8px;
  font-size: 9px; font-weight: 700;
  background: linear-gradient(135deg, #FCD34D 0%, #EDB364 100%);
  color: #78350F; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Automations pill (slightly different look so it reads as utility, not promo) */
.aw-nav-pill {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}
.aw-nav-pill:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.32);
  color: #fff !important;
  transform: translateY(-1px);
}
.aw-nav-pill svg { color: #FCD34D; stroke: #FCD34D; }
.aw-nav-pill span { color: #fff; }
@media (max-width: 768px) {
  .aw-nav-pill span { display: none; }
  .aw-nav-pill { padding: 8px 10px !important; }
}

/* Paul History Dropdown */
.paul-history-dropdown {
  position: relative;
}

.paul-history-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 10000;
  display: none;
}

.paul-history-menu.active {
  display: block;
}

.paul-history-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #55778A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E5E7EB;
}

.paul-history-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.2s;
}

.paul-history-item:hover {
  background: #F3F8FB;
}

.paul-history-item:last-child {
  border-bottom: none;
}

.paul-history-item-title {
  font-size: 14px;
  color: #1D3E50;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paul-history-item-date {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 2px;
}

.paul-history-empty {
  padding: 20px 16px;
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
}

/* ========================================
   Sidebar Accordion (Fix for Scraped React Collapsible)
   ======================================== */

/* Chevron handled by ::after pseudo-element in sidebar nav section */

/* Ensure content transition is smooth */
.Collapsible__contentOuter {
  transition: height 0.2s ease !important;
}

/* Cursor pointer for accordion triggers */
.Collapsible__trigger {
  cursor: pointer;
}

/* ========================================
   Sidebar Navigation UX Improvements
   ======================================== */

/* Overall sidebar styling */
.portal-sidenav {
  padding-top: 70px !important;
  width: 280px !important;
  min-width: 280px !important;
}

/* Parent nav items (categories with accordions) - uppercase section headers with brand colors */
.portal-sidenav .Collapsible__trigger {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: #1D3E50 !important;
  padding: 14px 50px 10px 20px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  max-width: none !important;
  width: 100% !important;
  position: relative !important;
}

/* Nav item text - allow natural wrapping */
.portal-sidenav .Collapsible__trigger > span.flex-1 {
  padding-right: 10px !important;
}

.portal-sidenav .Collapsible__trigger:hover {
  color: #1D3E50 !important;
  background: rgba(43, 93, 125, 0.08) !important;
}

.portal-sidenav .Collapsible__trigger.is-open {
  color: #1D3E50 !important;
  background: rgba(237, 179, 100, 0.1) !important;
}

/* Standalone nav links (not in accordions) - MUST match accordion triggers exactly */
.portal-sidenav > a,
.portal-sidenav > a:link,
.portal-sidenav > a:visited,
div.portal-sidenav > a {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: #1D3E50 !important;
  padding: 14px 20px 10px 20px !important;
  margin: 0 !important;
  display: block !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border-radius: 0 !important;
}

.portal-sidenav > a:hover,
div.portal-sidenav > a:hover {
  color: #1D3E50 !important;
  background: rgba(43, 93, 125, 0.08) !important;
}

/* Hide original broken chevron icon */
.portal-sidenav .Collapsible__trigger i {
  display: none !important;
}

/* Chevron in circle - right aligned at fixed position */
.portal-sidenav .Collapsible__trigger .nav-chevron {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(43, 93, 125, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  color: #2B5D7D !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}

/* Ensure trigger is positioned for absolute chevron */
.portal-sidenav .Collapsible__trigger {
  position: relative !important;
  padding-right: 44px !important;
}

.portal-sidenav .Collapsible__trigger:hover .nav-chevron {
  background: rgba(43, 93, 125, 0.2) !important;
  color: #1D3E50 !important;
}

/* Rotate chevron when open */
.portal-sidenav .Collapsible__trigger.is-open .nav-chevron {
  transform: translateY(-50%) rotate(180deg) !important;
  background: #2B5D7D !important;
  color: #fff !important;
}

/* Child nav items with tree-view connecting line - navy/gold theme */
.portal-sidenav .Collapsible__contentInner {
  position: relative !important;
  margin-left: 20px !important;
  padding-left: 12px !important;
  border-left: 2px solid #2B5D7D !important;
}

.portal-sidenav .Collapsible__contentInner a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1D3E50 !important;
  padding: 8px 16px 8px 12px !important;
  margin: 2px 0 !important;
  display: block !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  position: relative !important;
}

/* Horizontal connector line to each child item - navy */
.portal-sidenav .Collapsible__contentInner a::before {
  content: '' !important;
  position: absolute !important;
  left: -12px !important;
  top: 50% !important;
  width: 8px !important;
  height: 2px !important;
  background: #2B5D7D !important;
}

.portal-sidenav .Collapsible__contentInner a:hover {
  background: #F3F8FB !important;
  color: #2B5D7D !important;
}

.portal-sidenav .Collapsible__contentInner a:hover::before {
  background: #EDB364 !important;
}

/* Top-level links (non-accordion items) - navy */
.portal-sidenav > a,
.portal-sidenav .sc-iHGNWf > a:not(.Collapsible__contentInner a) {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1D3E50 !important;
  padding: 10px 20px !important;
  display: block !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.portal-sidenav > a:hover,
.portal-sidenav .sc-iHGNWf > a:not(.Collapsible__contentInner a):hover {
  background: #F3F8FB !important;
  color: #2B5D7D !important;
}

/* Active state - gold accent */
.portal-sidenav a.nav-active {
  background: rgba(237, 179, 100, 0.2) !important;
  color: #1D3E50 !important;
  font-weight: 600 !important;
}

.portal-sidenav a.nav-active::before {
  background: #EDB364 !important;
}

/* BETA tags - gold badges */
.portal-sidenav .text-bgold,
.portal-sidenav span[class*="text-xxs"] {
  font-size: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  background: #EDB364 !important;
  color: #fff !important;
  padding: 2px 4px !important;
  border-radius: 2px !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  text-transform: uppercase !important;
}

/* Coming Soon section - muted smalt color */
.portal-sidenav .cursor-not-allowed {
  opacity: 0.6 !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(29, 62, 80, 0.15) !important;
}

.portal-sidenav .cursor-not-allowed span {
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #55778A !important;
  padding-left: 20px !important;
}

/* Spacing between accordion sections */
.portal-sidenav .Collapsible {
  margin-top: 4px !important;
}

.portal-sidenav .Collapsible:first-child {
  margin-top: 0 !important;
}

/* Remove default padding from inner containers */
.portal-sidenav .sc-iHGNWf {
  padding: 0 !important;
}

.portal-sidenav .p-3 {
  padding: 0 !important;
}

/* ========================================
   Hide Sidebar Company Selector
   ======================================== */

/* Hide the company/org selector from sidebar - now in user dropdown */
.portal-sidenav [data-track-click="Company Selector"],
.portal-sidenav .sc-imWYAI,
.portal-sidenav .TimePicker {
  display: none !important;
}

/* ========================================
   Enhanced User Dropdown
   ======================================== */

/* Show dropdown on click (is-active) */
.user-dropdown.is-active .navbar-dropdown {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.user-dropdown .navbar-dropdown {
  min-width: 280px;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  display: none;
}

.user-dropdown .dropdown-content {
  padding: 0;
}

.dropdown-user-info {
  padding: 16px 16px 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E5E7EB;
}

.dropdown-user-name {
  font-size: 15px;
  font-weight: 600;
  color: #1D3E50;
}

.dropdown-user-email {
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
}

.dropdown-divider {
  margin: 0;
  border: none;
  border-top: 1px solid #E5E7EB;
}

/* Organization Section */
.dropdown-org-section {
  padding: 8px;
}

.dropdown-org-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-org-current:hover {
  background: #F3F8FB;
}

.dropdown-org-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1D3E50 0%, #2D5A73 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-org-info {
  flex: 1;
  min-width: 0;
}

.dropdown-org-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
  font-weight: 500;
}

.dropdown-org-name {
  font-size: 14px;
  font-weight: 600;
  color: #1D3E50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-org-switch {
  color: #9CA3AF;
  transition: color 0.2s;
}

.dropdown-org-current:hover .dropdown-org-switch {
  color: #6B7280;
}

/* Organization List (hidden by default) */
.dropdown-org-list {
  display: none;
  margin-top: 8px;
  background: #F8FAFC;
  border-radius: 8px;
  overflow: hidden;
  max-height: 320px;
}

.dropdown-org-list.active {
  display: block;
}

.dropdown-org-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
  font-weight: 600;
  padding: 10px 12px 6px;
}

/* View toggle buttons (search/list) - shown when 3+ orgs */
.dropdown-org-view-toggle {
  display: flex;
  gap: 2px;
  background: #E5E7EB;
  border-radius: 6px;
  padding: 2px;
}

.org-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s ease;
}

.org-view-btn:hover {
  color: #1D3E50;
  background: rgba(255, 255, 255, 0.5);
}

.org-view-btn.active {
  background: white;
  color: #1D3E50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Search box for orgs */
.dropdown-org-search {
  padding: 6px 10px;
  border-bottom: 1px solid #E5E7EB;
}

.dropdown-org-search input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.dropdown-org-search input:focus {
  border-color: #3B82F6;
}

.dropdown-org-search input::placeholder {
  color: #9CA3AF;
}

/* Scrollable org items container */
.dropdown-org-items {
  max-height: 200px;
  overflow-y: auto;
}

/* Hide overflow orgs by default (4th org and beyond) */
.dropdown-org-item.dropdown-org-overflow {
  display: none !important;
}

/* Search view mode - shows search, hides overflow */
.dropdown-org-list.search-view .dropdown-org-search {
  display: block;
}

.dropdown-org-list.search-view .dropdown-org-item.dropdown-org-overflow {
  display: flex !important; /* Show all for filtering */
}

/* List view mode - shows all orgs, no search */
.dropdown-org-list.list-view .dropdown-org-search {
  display: none;
}

.dropdown-org-list.list-view .dropdown-org-item.dropdown-org-overflow {
  display: flex !important;
}

.dropdown-org-list.list-view .dropdown-org-items {
  max-height: 260px;
}

.dropdown-org-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  color: #374151;
}

.dropdown-org-item:hover {
  background: #E8F0F5;
}

.dropdown-org-item.active {
  background: #E8F0F5;
  color: #1D3E50;
  font-weight: 500;
}

.dropdown-org-item-check {
  width: 18px;
  color: #c89a2c;
  font-weight: bold;
}

/* Enhanced dropdown items with icons */
.user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  transition: background 0.2s, color 0.2s;
}

.user-dropdown .dropdown-item:hover {
  background: #F3F8FB;
  color: #1D3E50;
}

.user-dropdown .dropdown-item svg {
  flex-shrink: 0;
  color: #9CA3AF;
}

.user-dropdown .dropdown-item:hover svg {
  color: #6B7280;
}

/* Organization Switch Toast */
.org-switch-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1D3E50;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10001;
}

.org-switch-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.org-switch-toast-icon {
  font-size: 18px;
}

.org-switch-toast strong {
  font-weight: 600;
}

/* ========================================
   Org Switch Confirmation Modal
   ======================================== */
.org-switch-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 62, 80, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.org-switch-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.org-switch-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.org-switch-modal-overlay.active .org-switch-modal {
  transform: scale(1) translateY(0);
}

.org-switch-modal-header {
  background: linear-gradient(135deg, #1D3E50 0%, #2B5D7D 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.org-switch-modal-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.org-switch-modal-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.org-switch-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.org-switch-modal-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.org-switch-modal-body {
  padding: 24px;
}

.org-switch-modal-message {
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
  margin: 0;
}

.org-switch-modal-message strong {
  color: #1D3E50;
  font-weight: 600;
}

.org-switch-modal-org-card {
  margin-top: 16px;
  padding: 16px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.org-switch-modal-org-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #EDB364 0%, #D4994A 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.org-switch-modal-org-name {
  font-size: 15px;
  font-weight: 600;
  color: #1D3E50;
}

.org-switch-modal-org-type {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.org-switch-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.org-switch-modal-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.org-switch-modal-btn-cancel {
  background: #F3F4F6;
  color: #374151;
}

.org-switch-modal-btn-cancel:hover {
  background: #E5E7EB;
}

.org-switch-modal-btn-confirm {
  background: linear-gradient(135deg, #EDB364 0%, #D4994A 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(237, 179, 100, 0.4);
}

.org-switch-modal-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 179, 100, 0.5);
}

/* ========================================
   Sidebar Dashboard Link (Primary nav item with icon)
   ======================================== */

a.nav-dashboard-link,
.portal-sidenav a.nav-dashboard-link,
div.portal-sidenav > a.nav-dashboard-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 20px 10px 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: #1D3E50 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border-left: 3px solid transparent !important;
}

a.nav-dashboard-link:hover,
.portal-sidenav a.nav-dashboard-link:hover {
  background: rgba(43, 93, 125, 0.08) !important;
  border-left-color: #EDB364 !important;
}

/* Icon in circle */
.nav-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(43, 93, 125, 0.1);
  flex-shrink: 0;
}

.nav-icon-circle svg {
  color: #2B5D7D;
}

a.nav-dashboard-link:hover .nav-icon-circle,
.portal-sidenav a.nav-dashboard-link:hover .nav-icon-circle {
  background: rgba(43, 93, 125, 0.2);
}

/* ========================================
   Nav Item Pinning
   ======================================== */

/* Pin button on nav items */
.nav-pin-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  color: #9CA3AF;
  font-size: 14px;
}

.portal-sidenav a:hover .nav-pin-btn,
.portal-sidenav .Collapsible__contentInner a:hover .nav-pin-btn {
  opacity: 1;
}

.nav-pin-btn:hover {
  background: rgba(43, 93, 125, 0.1);
  color: #2B5D7D;
}

.nav-pin-btn.pinned {
  opacity: 1;
  color: #EDB364;
}

.nav-pin-btn.pinned:hover {
  background: rgba(237, 179, 100, 0.2);
}

/* Ensure nav items have position relative for pin button */
.portal-sidenav .Collapsible__contentInner a {
  position: relative;
}

/* ========================================
   Dashboard Shortcuts Section
   ======================================== */

.shortcuts-section {
  margin-bottom: 32px;
}

.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.shortcuts-title {
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shortcuts-title::before {
  content: '📌';
  font-size: 16px;
}

.shortcuts-edit-btn {
  font-size: 12px;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.shortcuts-edit-btn:hover {
  background: #F3F4F6;
  color: #6B7280;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.shortcut-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  color: #1D3E50;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.shortcut-card:hover {
  border-color: #2B5D7D;
  background: #F8FAFC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shortcut-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2B5D7D 0%, #1D3E50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.shortcut-card-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shortcut-remove-btn {
  opacity: 0;
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.shortcut-card:hover .shortcut-remove-btn {
  opacity: 1;
}

.shortcut-remove-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.shortcuts-empty {
  text-align: center;
  padding: 24px;
  color: #9CA3AF;
  font-size: 13px;
  background: #F9FAFB;
  border: 1px dashed #E5E7EB;
  border-radius: 8px;
}

.shortcuts-empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

/* ========================================
   Announcements Banner
   ======================================== */

.announcements-banner {
  background: linear-gradient(135deg, #1D3E50 0%, #2B5D7D 100%);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(29, 62, 80, 0.15);
}

.announcements-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 62, 80, 0.25);
}

.announcements-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.announcements-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.announcements-text {
  flex: 1;
}

.announcements-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.announcements-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
}

.announcements-cta {
  color: #EDB364;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 16px;
  background: rgba(237, 179, 100, 0.15);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.announcements-banner:hover .announcements-cta {
  background: rgba(237, 179, 100, 0.25);
}

/* ========================================
   Dashboard Layout
   ======================================== */

/* Hero Row: Greeting + What's New */
.dashboard-hero-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-greeting {
  background: linear-gradient(135deg, #1D3E50 0%, #2B5D7D 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-greeting-time {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.hero-greeting-name {
  font-size: 28px;
  font-weight: 600;
}

.hero-whatsnew {
  background: linear-gradient(135deg, #EDB364 0%, #D4983E 100%);
  color: #1D3E50;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-whatsnew:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 179, 100, 0.3);
}

.hero-whatsnew-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.hero-whatsnew-content {
  flex: 1;
}

.hero-whatsnew-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-whatsnew-desc {
  font-size: 14px;
  opacity: 0.85;
}

.hero-whatsnew-arrow {
  font-size: 24px;
  opacity: 0.7;
}

/* Second Row: Shortcuts + CSM Tile */
.dashboard-second-row {
  display: grid;
  grid-template-columns: 1fr 280px; /* CSM tile has fixed minimum width */
  gap: 16px;
  margin-bottom: 32px;
  align-items: start; /* Align tiles at top */
}

/* Tablet: Stack tiles vertically */
@media (max-width: 1024px) {
  .dashboard-second-row {
    grid-template-columns: 1fr;
  }
  
  .cs-lead-tile {
    max-width: 400px; /* Don't stretch too wide when stacked */
  }
}

/* Shortcuts Panel */
.shortcuts-panel {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
}

.shortcuts-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(237, 179, 100, 0.15);
  border-bottom: 1px solid rgba(237, 179, 100, 0.3);
}

.shortcuts-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1D3E50;
  line-height: 1;
}

.shortcuts-panel-title svg {
  color: #1D3E50;
  opacity: 0.7;
  flex-shrink: 0;
}

.shortcuts-panel-content {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
}

.shortcuts-empty {
  color: #9CA3AF;
  font-size: 13px;
  width: 100%;
  text-align: center;
  padding: 12px 0;
}

/* Shortcut Micro Tiles */
.shortcuts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shortcut-tile {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 180px;
  max-width: 280px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  color: #1D3E50;
  transition: all 0.2s ease;
  overflow: hidden;
}

.shortcut-tile:hover {
  border-color: #2B5D7D;
  box-shadow: 0 2px 8px rgba(43, 93, 125, 0.1);
}

.shortcut-tile-content {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shortcut-tile-section {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2B5D7D;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shortcut-tile-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1D3E50;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sliding Action Strip - hidden by default */
.shortcut-tile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  background: #2B5D7D;
  width: 0;
  overflow: hidden;
  transition: width 0.2s ease;
}

/* Show action strip on hover */
.shortcut-tile:hover .shortcut-tile-actions {
  width: 44px;
}

.shortcut-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  color: #fff;
}

.shortcut-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.shortcut-action-btn svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.shortcut-action-btn svg {
  width: 14px;
  height: 14px;
}

.shortcut-action-visit {
  background: #EBF5FF;
  color: #2B5D7D;
}

.shortcut-action-visit:hover {
  background: #2B5D7D;
  color: #fff;
}

.shortcut-action-remove {
  background: #FEF2F2;
  color: #DC2626;
}

.shortcut-action-remove:hover {
  background: #DC2626;
  color: #fff;
}

/* Empty state */
.shortcuts-empty {
  text-align: center;
  padding: 32px 20px;
  color: #9CA3AF;
  font-size: 13px;
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border: 2px dashed #E5E7EB;
  border-radius: 10px;
}

.shortcuts-empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Demo Tile */
.demo-tile {
  border: 1px solid #1D3E50;
  border-radius: 10px;
  overflow: hidden;
}

.demo-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(237, 179, 100, 0.15);
  border-bottom: 1px solid #E5E7EB;
}

.demo-tile-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1D3E50;
}

.demo-tile-link {
  color: #1D3E50;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.demo-tile-link:hover {
  opacity: 1;
}

.demo-tile-body {
  padding: 20px;
  background: #fff;
}

.demo-tile-metric {
  text-align: center;
}

.demo-tile-number {
  display: block;
  font-size: 32px;
  font-weight: 600;
  color: #1D3E50;
  line-height: 1;
}

.demo-tile-label {
  display: block;
  font-size: 11px;
  color: #6B7280;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .dashboard-hero-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-second-row {
    grid-template-columns: 1fr;
  }
  
  .cs-lead-tile {
    max-width: none; /* Full width on mobile */
  }
}

/* ========================================
   Customer Success Lead Tile
   ======================================== */

.cs-lead-tile {
  border: 1px solid #1D3E50;
  border-radius: 10px;
  overflow: hidden;
  min-width: 260px; /* Prevent squishing */
}

.cs-lead-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(237, 179, 100, 0.15);
  border-bottom: 1px solid #E5E7EB;
}

.cs-lead-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1D3E50;
}

.cs-lead-body {
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.cs-lead-photo {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #EDB364;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cs-lead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-lead-details {
  flex: 1;
  min-width: 0;
}

.cs-lead-name {
  font-size: 15px;
  font-weight: 600;
  color: #1D3E50;
  margin-bottom: 6px;
}

.cs-lead-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-lead-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #2B5D7D;
  text-decoration: none;
  transition: color 0.2s;
}

.cs-lead-contact svg {
  flex-shrink: 0;
  color: #55778A;
  transition: color 0.2s;
}

.cs-lead-contact:hover {
  color: #1D3E50;
}

.cs-lead-contact:hover svg {
  color: #EDB364;
}

.cs-lead-contact span {
  word-break: break-word;
}

/* Chat link with Slack/Teams icon */
.cs-lead-chat-link svg {
  fill: #4A154B;
  color: #4A154B;
}

.cs-lead-chat-link:hover svg {
  fill: #611f69;
  color: #611f69;
}

/* Teams variant */
.cs-lead-chat-teams svg {
  fill: #5059C9;
  color: #5059C9;
}

.cs-lead-chat-teams:hover svg {
  fill: #7B83EB;
  color: #7B83EB;
}

/* ========================================
   Ask Paul Promotional Tooltip (CNN-style)
   ======================================== */

.paul-nav-wrapper {
  position: relative;
}

.paul-promo-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  right: -20px;
  width: 320px;
  background: #2B5D7D; /* Brynson Blue */
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.paul-promo-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Arrow pointing up */
.paul-promo-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #2B5D7D;
}

.paul-promo-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.paul-promo-close:hover {
  color: white;
}

.paul-promo-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 20px;
}

.paul-promo-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   MOBILE RESPONSIVE NAVIGATION (Baseline)
   Only affects screens < 768px
   Desktop nav is NOT modified
   ======================================== */

/* Hide mobile-only elements on desktop (will be shown in mobile media query) */
.navbar-brand .mobile-logo,
.mobile-logo,
.mobile-logo-center {
  display: none;
}

/* Body scroll lock when mobile nav is open */
body.mobile-nav-open {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  
  /* === TOP NAVBAR MOBILE === */
  
  /* Main navbar as flex container */
  .navbar.is-fixed-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    min-height: 56px !important;
  }
  
  /* Navbar brand - hamburger on far left */
  .navbar-brand {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
    position: relative !important;
  }
  
  /* Hamburger button styling */
  .navbar-burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 20 !important;
  }
  
  /* Hamburger lines */
  .navbar-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .navbar-burger span:nth-child(1) { top: 12px; }
  .navbar-burger span:nth-child(2) { top: 20px; }
  .navbar-burger span:nth-child(3) { top: 28px; }
  
  /* Navbar menu - logo next to hamburger, NOT covering it */
  .navbar-menu {
    display: flex !important;
    flex-grow: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: static !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  /* HIDE the desktop logo container on mobile - it intercepts hamburger clicks */
  .navbar-start {
    display: none !important;
  }
  
  /* Navbar needs relative position for centered logo */
  .navbar {
    position: relative !important;
  }
  
  /* Square logo centered in mobile navbar */
  .navbar .mobile-logo-center,
  .navbar-brand .mobile-logo-center,
  .mobile-logo-center {
    display: flex !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100;
  }
  
  .mobile-logo-center img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 4px; /* Slight rounding for square logo */
  }
  
  /* Navbar end - Ask Paul on right */
  .navbar-end {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  
  /* Hide these on mobile - they go in hamburger menu */
  /* Note: We add .mobile-hide class via JS for better browser support */
  .navbar .navbar-item.mobile-hide-notif,
  .navbar .navbar-item.mobile-hide-help,
  .navbar .user-dropdown {
    display: none !important;
  }
  
  /* Keep Ask Paul visible on mobile */
  .navbar .paul-nav-wrapper {
    display: flex !important;
  }
  
  /* Adjust Ask Paul pill for mobile */
  .paul-nav-pill span {
    display: none; /* Hide text, keep icon */
  }
  
  .paul-nav-pill {
    padding: 8px 10px !important;
  }
  
  /* === SIDEBAR MOBILE === */
  
  /* Sidebar hidden by default on mobile */
  .sidebar-wrapper {
    position: fixed !important;
    left: -100% !important;
    top: 0 !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background: #fff !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
  }
  
  /* Sidebar open state - must override is-hidden-mobile */
  .sidebar-wrapper.is-mobile-open,
  .sidebar-wrapper.is-hidden-mobile.is-mobile-open {
    display: flex !important;
    flex-direction: column !important;
    left: 0 !important;
  }
  
  /* Ensure sidebar content can scroll but footer stays at bottom */
  .sidebar-wrapper.is-mobile-open .portal-sidenav {
    flex: 1;
    overflow-y: auto;
  }
  
  /* Mobile sidebar overlay */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .mobile-nav-overlay.is-active {
    display: block;
  }
  
  /* Mobile sidebar header - user info + moved items */
  .mobile-sidebar-header {
    display: block !important;
    padding: 56px 16px 20px 16px; /* Top padding for navbar */
    background: linear-gradient(135deg, #2B5D7D 0%, #1D3E50 100%);
    color: white;
    position: relative;
  }
  
  .mobile-user-info {
    margin-bottom: 16px;
    margin-top: 8px;
    color: white;
  }
  
  .mobile-user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
  }
  
  .mobile-user-email {
    font-size: 13px;
    opacity: 0.8;
    color: rgba(255,255,255,0.9);
  }
  
  
  /* Mobile icon row (Notif, Help, Settings, Org) */
  .mobile-icon-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  
  .mobile-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 10px 6px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .mobile-icon-btn:hover,
  .mobile-icon-btn:active {
    background: rgba(255,255,255,0.2);
  }
  
  .mobile-icon-btn svg {
    stroke: white;
  }
  
  .mobile-icon-btn span {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
  }
  
  /* Mobile Settings Dropdown */
  .mobile-settings-dropdown,
  .mobile-org-dropdown {
    display: none;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
  }
  
  .mobile-settings-dropdown.is-open,
  .mobile-org-dropdown.is-open {
    display: block;
  }
  
  .mobile-settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
  }
  
  .mobile-settings-link:last-child {
    border-bottom: none;
  }
  
  .mobile-settings-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
  }
  
  .mobile-settings-link svg {
    stroke: white;
    opacity: 0.8;
  }
  
  /* Mobile Org Dropdown */
  .mobile-org-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .mobile-org-icon {
    font-size: 16px;
  }
  
  .mobile-org-name {
    flex: 1;
    font-weight: 600;
    color: white;
  }
  
  .mobile-org-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(237, 179, 100, 0.3);
    color: #EDB364;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
  }
  
  .mobile-org-list {
    padding: 4px 0;
  }
  
  .mobile-org-item {
    display: block;
    padding: 10px 14px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
  }
  
  .mobile-org-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
  }
  
  /* Mobile Sidebar Footer (Sign Out) */
  .mobile-sidebar-footer {
    padding: 16px;
    margin-top: auto;
    border-top: 1px solid #eee;
    background: #f9f9f9;
  }
  
  .mobile-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
  }
  
  .mobile-signout-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
  }
  
  .mobile-signout-btn svg {
    stroke: currentColor;
  }
  
  /* Mobile close button */
  .mobile-sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  .mobile-sidebar-close:hover {
    background: rgba(255,255,255,0.2);
  }
  
  /* Adjust portal sidenav padding on mobile */
  .portal-sidenav {
    padding-top: 16px !important;
    width: 100% !important;
  }
  
  /* Hide sidebar toggle on mobile */
  .sidebar-toggle {
    display: none !important;
  }
  
  /* Main content adjusts without sidebar */
  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Dashboard adjustments for mobile */
  .dashboard-first-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .dashboard-second-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* Quick links grid on mobile */
  .quick-links-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* ========================================
     MY INTEGRATIONS - MOBILE
     Simple slide-out list
     ======================================== */
  
  /* Hide full integrations section on mobile - too complex */
  .my-integrations-section {
    display: none !important;
  }
  
  /* Mobile trigger button - navy style matching desktop */
  .my-integrations-mobile-quicklist {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px !important;
    padding: 12px 12px 12px 16px !important;
    background: linear-gradient(135deg, #2B5D7D 0%, #1D3E50 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }
  
  .my-integrations-mobile-quicklist:hover,
  .my-integrations-mobile-quicklist:active {
    background: linear-gradient(135deg, #1D3E50 0%, #2B5D7D 100%) !important;
    color: #ffffff !important;
  }
  
  .my-integrations-mobile-quicklist svg.trigger-icon {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 0.85;
    flex-shrink: 0 !important;
  }
  
  .my-integrations-mobile-quicklist .trigger-text {
    color: #ffffff !important;
    flex: 1 !important;
  }
  
  .my-integrations-mobile-quicklist .trigger-chevron-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 6px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  
  .my-integrations-mobile-quicklist .trigger-chevron-box svg {
    width: 14px !important;
    height: 14px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
  }
  
  /* Slideout must be visible on mobile */
  .integrations-slideout,
  .integrations-slideout-overlay {
    display: flex !important;
  }
  .integrations-slideout-overlay {
    display: block !important;
  }
  
  /* Quick slide-out panel */
  .integrations-slideout {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 10001;
    transition: right 0.25s ease;
    display: flex;
    flex-direction: column;
  }
  .integrations-slideout.is-open {
    right: 0;
  }
  .integrations-slideout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
  }
  .integrations-slideout-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .slideout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    background: linear-gradient(135deg, #2B5D7D 0%, #1D3E50 100%);
    color: #fff;
  }
  .slideout-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff !important;
  }
  .slideout-close {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
  }
  .slideout-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
  }
  .slideout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
  }
  .slideout-item:hover {
    background: #F9FAFB;
  }
  .slideout-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .slideout-item-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  .slideout-item-icon svg {
    width: 16px;
    height: 16px;
    stroke: #6B7280;
  }
  
}

/* ========================================
   Hide mobile elements on desktop
   ======================================== */
.my-integrations-mobile-quicklist {
  display: none;
}
.integrations-slideout,
.integrations-slideout-overlay {
  display: none;
}

/* Bottom sheet (no longer used - can be removed) */
.integrations-bottom-sheet {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.integrations-bottom-sheet.is-open {
  display: block;
}

/* Overlay */
.integrations-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.integrations-bottom-sheet.is-open .integrations-sheet-overlay {
  opacity: 1;
}

/* Sheet Panel */
.integrations-sheet-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.integrations-bottom-sheet.is-open .integrations-sheet-panel {
  transform: translateY(0);
}

/* Drag Handle */
.integrations-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px 0;
  cursor: grab;
}

.integrations-sheet-handle span {
  width: 36px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 2px;
}

/* Sheet Header */
.integrations-sheet-header {
  padding: 0 20px 16px 20px;
  border-bottom: 1px solid #E5E7EB;
}

.integrations-sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.integrations-sheet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1D3E50;
}

.integrations-sheet-title svg {
  color: #2B5D7D;
}

.integrations-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B7280;
}

.integrations-sheet-close:hover {
  background: #E5E7EB;
  color: #1D3E50;
}

/* Search Bar */
.integrations-sheet-search {
  position: relative;
}

.integrations-sheet-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 15px;
  background: #F9FAFB;
  transition: all 0.15s ease;
}

.integrations-sheet-search input:focus {
  outline: none;
  border-color: #2B5D7D;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 93, 125, 0.1);
}

.integrations-sheet-search input::placeholder {
  color: #9CA3AF;
}

.integrations-sheet-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
}

/* Sheet Body */
.integrations-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
}

/* Recent Section */
.integrations-sheet-section {
  margin-bottom: 20px;
}

.integrations-sheet-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.integrations-sheet-section-title svg {
  width: 14px;
  height: 14px;
}

/* Integration Items */
.integrations-sheet-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.integrations-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #F9FAFB;
  border-radius: 10px;
  text-decoration: none;
  color: #1D3E50;
  transition: all 0.15s ease;
}

.integrations-sheet-item:hover,
.integrations-sheet-item:active {
  background: #E5E7EB;
}

.integrations-sheet-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.integrations-sheet-item-icon img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.integrations-sheet-item-icon svg {
  width: 18px;
  height: 18px;
  color: #2B5D7D;
}

.integrations-sheet-item-info {
  flex: 1;
}

.integrations-sheet-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.integrations-sheet-item-category {
  font-size: 11px;
  color: #6B7280;
}

.integrations-sheet-item-arrow {
  color: #9CA3AF;
}

/* Category Tabs */
.integrations-sheet-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.integrations-sheet-tabs::-webkit-scrollbar {
  display: none;
}

.integrations-sheet-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.integrations-sheet-tab.active {
  background: #2B5D7D;
  border-color: #2B5D7D;
  color: #fff;
}

/* Empty State */
.integrations-sheet-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9CA3AF;
}

.integrations-sheet-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.integrations-sheet-empty p {
  font-size: 14px;
}

/* Footer Link */
.integrations-sheet-footer {
  padding: 16px 20px;
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
}

.integrations-sheet-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2B5D7D 0%, #1D3E50 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.integrations-sheet-viewall:hover {
  opacity: 0.95;
  color: #fff;
}

/* Safe area for iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .integrations-sheet-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ========================================
   SHARED BUTTON  (canonical — design.md)
   Namespaced on purpose: the legacy Rails `.btn-primary`
   is a uppercase peach-to-salmon 100px pill enforced with
   !important, which no portal page should inherit.
   ======================================== */
.bryn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #45464D;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.bryn-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.bryn-btn:hover { border-color: #0F172A; color: #0F172A; text-decoration: none; }

.bryn-btn-primary { background: #0F172A; border-color: #0F172A; color: #FFFFFF; }
.bryn-btn-primary:hover { color: #FFFFFF; filter: brightness(1.35); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12); }

/* Gold is the single most important action on a surface — never a second one. */
.bryn-btn-gold { background: #D4AF37; border-color: #D4AF37; color: #0F172A; font-weight: 700; }
.bryn-btn-gold:hover { color: #0F172A; filter: brightness(1.06); }

.bryn-btn:disabled, .bryn-btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; }
.bryn-btn:disabled:hover, .bryn-btn[disabled]:hover { border-color: #E2E8F0; color: #45464D; }

/* ========================================
   SHARED PAGE HEADER  (canonical — design.md)
   Breadcrumb + icon + title + description + actions,
   with the module tab row beneath. Both the crumbs and
   the tabs are derived from BRYN_RAILS in
   assets/nav-components.js — never hand-authored.
   ======================================== */
.bryn-page-header {
  margin-bottom: 24px;
}

.bryn-ph-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bryn-page-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.bryn-page-header-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06) 0%, rgba(212, 175, 55, 0.16) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  flex-shrink: 0;
}

.bryn-page-header-icon svg {
  width: 24px;
  height: 24px;
}

.bryn-page-header-text { min-width: 0; }

/* --- breadcrumb: where am I, and how do I go up --- */
.bryn-ph-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.bryn-ph-crumb {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #76777D;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bryn-ph-crumb:hover { color: #0F172A; }
.bryn-ph-sep { font-size: 11px; color: #CBD5E1; line-height: 1; }

.bryn-page-header-text h1 {
  margin: 0;
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bryn-page-header-text p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: #45464D;
  line-height: 1.45;
}

.bryn-page-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* --- module tab row: how do I go sideways ---
   design.md marks an active tab with gold; the sidebar's 3px gold
   left-border rotates to a 2px gold underline on a horizontal row. */
.bryn-ph-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-top: 18px;
  border-bottom: 1px solid #E2E8F0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bryn-ph-tabs::-webkit-scrollbar { display: none; }

.bryn-ph-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  margin-bottom: -1px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #45464D;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bryn-ph-tab:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.bryn-ph-tab.active {
  color: #0F172A;
  font-weight: 700;
  border-bottom-color: #D4AF37;
  background: rgba(15, 23, 42, 0.03);
}

.bryn-ph-cnt {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 9999px;
  background: rgba(180, 83, 9, 0.12);
  color: #B45309;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .bryn-ph-main {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .bryn-page-header-right { width: 100%; flex-wrap: wrap; }
  .bryn-ph-tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
}

@media print {
  .bryn-ph-tabs, .bryn-ph-crumbs { display: none !important; }
}

/* ========================================
   FTCM (Fee Transparency Compliance Monitor) Dashboard Tile
   Matches home screen design language
   ======================================== */

/* Third row for feature tiles */
.dashboard-third-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .dashboard-third-row {
    grid-template-columns: 1fr;
  }
}

.ftcm-tile {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
}

.ftcm-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(43, 93, 125, 0.08) 0%, rgba(29, 62, 80, 0.12) 100%);
  border-bottom: 1px solid rgba(43, 93, 125, 0.15);
}

.ftcm-tile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1D3E50;
  line-height: 1;
}

.ftcm-tile-title svg {
  width: 16px;
  height: 16px;
  color: #2B5D7D;
}

.ftcm-tile-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #2B5D7D;
  text-decoration: none;
}

.ftcm-tile-action:hover {
  color: #1D3E50;
}

.ftcm-tile-action svg {
  width: 14px;
  height: 14px;
}

.ftcm-tile-body {
  padding: 16px;
}

/* Score and alerts row */
.ftcm-main-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

/* Health Score */
.ftcm-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.ftcm-score-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.ftcm-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ftcm-score-ring-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 8;
}

.ftcm-score-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke: url(#ftcmScoreGradient);
}

.ftcm-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 800;
  color: #10B981;
}

.ftcm-score-value.grade-a { color: #10B981; }
.ftcm-score-value.grade-b { color: #3B82F6; }
.ftcm-score-value.grade-c { color: #EDB364; }
.ftcm-score-value.grade-d { color: #F97316; }
.ftcm-score-value.grade-f { color: #EF4444; }

.ftcm-score-label {
  font-size: 10px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 6px;
}

.ftcm-score-trend {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #10B981;
  margin-top: 4px;
}

.ftcm-score-trend.negative { color: #EF4444; }

.ftcm-score-trend svg {
  width: 12px;
  height: 12px;
}

/* Alerts breakdown */
.ftcm-alerts-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ftcm-alert-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftcm-alert-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ftcm-alert-indicator.high { background: #EF4444; }
.ftcm-alert-indicator.elevated { background: #F97316; }
.ftcm-alert-indicator.attention { background: #EDB364; }

.ftcm-alert-label {
  font-size: 13px;
  color: #4B5563;
  flex: 1;
}

.ftcm-alert-count {
  font-size: 16px;
  font-weight: 700;
  color: #1D3E50;
  min-width: 24px;
  text-align: right;
}

.ftcm-alert-bar {
  flex: 1;
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
  max-width: 80px;
}

.ftcm-alert-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.ftcm-alert-bar-fill.high { background: #EF4444; }
.ftcm-alert-bar-fill.elevated { background: #F97316; }
.ftcm-alert-bar-fill.attention { background: #EDB364; }

/* Stats row */
.ftcm-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
}

.ftcm-stat {
  text-align: center;
}

.ftcm-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1D3E50;
  line-height: 1;
}

.ftcm-stat-value.at-risk { color: #EF4444; }
.ftcm-stat-value.pending { color: #3B82F6; }
.ftcm-stat-value.good { color: #10B981; }

.ftcm-stat-label {
  font-size: 10px;
  color: #6B7280;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Footer with quick action */
.ftcm-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
}

.ftcm-scan-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6B7280;
}

.ftcm-scan-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: ftcm-pulse 2s infinite;
}

@keyframes ftcm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ftcm-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #EF4444;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ftcm-cta:hover {
  background: #DC2626;
}

.ftcm-cta.all-clear {
  background: #10B981;
}

.ftcm-cta.all-clear:hover {
  background: #059669;
}

.ftcm-cta svg {
  width: 14px;
  height: 14px;
}
