/* hub-settings.css - HUB Settings page (employee-only) — Premium Redesign */

/* ============================================================================
   Claim Drop subtabs + Corrections & Learning admin
   ========================================================================== */
.cdl-subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e1da;
  margin-bottom: 16px;
}
.cdl-subtab {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475453;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.cdl-subtab:hover { color: #1E6332; }
.cdl-subtab-active {
  color: #1E6332;
  border-bottom-color: #1E6332;
}
.cdl-subpanel { display: block; }

.cdl-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.cdl-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e1da;
  border-radius: 8px;
}
.cdl-kpi-wide { grid-column: span 2; }
.cdl-kpi-icon { font-size: 1.3rem; width: 32px; text-align: center; }
.cdl-kpi-label {
  font-size: 0.68rem;
  color: #8b8580;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.cdl-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #231F20;
  margin-top: 2px;
}
.cdl-kpi-value-sm { font-size: 0.95rem; }

.cdl-kpi-clickable {
  cursor: pointer;
  transition: all 0.12s ease;
}
.cdl-kpi-clickable:hover {
  border-color: #1E6332;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(30, 99, 50, 0.15);
}

/* Reset filters pill */
.cdl-reset-filters {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #dc2626;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cdl-reset-filters:hover { background: #fee2e2; }

/* Date group header */
.cdl-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475453;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0 4px 0;
  border-bottom: 1px dashed #e5e1da;
  margin-top: 6px;
}
.cdl-group-header:first-child { margin-top: 0; }
.cdl-group-count {
  background: #e8e4df;
  color: #475453;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Rich empty state */
.cdl-empty-rich {
  text-align: center;
  padding: 40px 20px;
  color: #8b8580;
}
.cdl-empty-rich.cdl-empty-small { padding: 24px 16px; }
.cdl-empty-rich > i {
  font-size: 2rem;
  color: #c7c3bd;
  margin-bottom: 10px;
  display: block;
}
.cdl-empty-rich.cdl-empty-small > i { font-size: 1.4rem; }
.cdl-empty-rich h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  color: #475453;
  font-weight: 700;
}
.cdl-empty-rich.cdl-empty-small h4 { font-size: 0.85rem; }
.cdl-empty-rich p {
  margin: 0 0 12px 0;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.cdl-empty-rich.cdl-empty-small p { font-size: 0.75rem; }
.cdl-reset-inline {
  background: #1E6332;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cdl-reset-inline:hover { background: #214A3E; }

/* Inline quick actions on correction rows */
.cdl-corr-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.cdl-corr:hover .cdl-corr-actions { opacity: 1; }
.cdl-corr-icon-btn {
  background: #fff;
  border: 1px solid #e5e1da;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #475453;
  cursor: pointer;
  font-size: 0.66rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cdl-corr-icon-btn:hover { background: #fef2f2; color: #dc2626; border-color: #dc2626; }

/* When actions are visible, date stays at far right with its own margin */
.cdl-corr-row1 .cdl-corr-date { margin-left: 8px; }
.cdl-corr-arrow { color: #1E6332; font-weight: 800; margin: 0 4px; }

/* Status chip with "Promoted" emphasis */
.cdl-corr-promoted {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.cdl-corr-promoted i.fa-star {
  font-size: 0.65rem;
}

.cdl-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .cdl-main { grid-template-columns: 1fr; } }

.cdl-left, .cdl-right {
  background: #fff;
  border: 1px solid #e5e1da;
  border-radius: 8px;
  padding: 14px;
}
.cdl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.cdl-section-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #1E6332;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cdl-refresh-btn {
  background: #fff;
  border: 1px solid #e5e1da;
  color: #475453;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.75rem;
}
.cdl-refresh-btn:hover { background: #F4F0E9; color: #1E6332; }
.cdl-search {
  padding: 7px 10px;
  border: 1px solid #e5e1da;
  border-radius: 6px;
  font-size: 0.8rem;
  min-width: 240px;
}
.cdl-search:focus {
  outline: none;
  border-color: #1E6332;
  box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.12);
}

.cdl-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e5e1da;
}
.cdl-chip-group {
  display: flex;
  gap: 4px;
  background: #fafaf7;
  border-radius: 6px;
  padding: 3px;
}
.cdl-chip {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475453;
  cursor: pointer;
  border-radius: 4px;
}
.cdl-chip:hover { color: #1E6332; }
.cdl-chip-active { background: #1E6332; color: #fff; }
.cdl-filter-select {
  padding: 6px 8px;
  border: 1px solid #e5e1da;
  border-radius: 5px;
  font-size: 0.78rem;
  background: #fff;
  color: #231F20;
  min-width: 150px;
}
.cdl-result-count {
  font-size: 0.72rem;
  color: #8b8580;
  font-weight: 600;
  margin-bottom: 8px;
}
.cdl-corr-list { display: flex; flex-direction: column; gap: 8px; max-height: 65vh; overflow-y: auto; }
.cdl-corr {
  background: #fff;
  border: 1px solid #eeeae2;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.cdl-corr:hover { border-color: #1E6332; box-shadow: 0 2px 8px rgba(30, 99, 50, 0.1); }
.cdl-corr-row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cdl-corr-status {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.03em;
}
.cdl-corr-path {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  background: #f4f0e9;
  padding: 2px 6px;
  border-radius: 3px;
  color: #475453;
}
.cdl-corr-date { margin-left: auto; font-size: 0.68rem; color: #8b8580; }
.cdl-corr-promoted {
  font-size: 0.62rem;
  font-weight: 800;
  background: #fff8dc;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 3px;
}
.cdl-corr-row2 { font-size: 0.8rem; color: #231F20; }
.cdl-corr-row2 s { color: #8b8580; }
.cdl-corr-row3 { font-size: 0.7rem; color: #8b8580; margin-top: 4px; }

/* Source pill, signal badge, auto-promote markers */
.cdl-src-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cdl-src-pill i { font-size: 0.62rem; }

.cdl-signal-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: #1E6332;
  color: #fff;
  letter-spacing: 0.02em;
  cursor: help;
}

.cdl-auto-promote-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fef3c7, #fcd34d);
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: cdlPromotePulse 2.2s ease-in-out infinite;
}
.cdl-auto-promote-pill i { font-size: 0.62rem; }
@keyframes cdlPromotePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);    }
}

/* Correction row in hot state (auto-promote) */
.cdl-corr.cdl-corr-hot {
  border-color: #fcd34d !important;
  background: linear-gradient(to right, #fffbeb, #fff);
  box-shadow: inset 3px 0 0 #f59e0b;
}

/* Auto-promote banner at top of list */
.cdl-auto-promote-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
}
.cdl-auto-promote-banner > i.fa-star {
  font-size: 1.4rem;
  color: #f59e0b;
}
.cdl-auto-promote-text { flex: 1; }
.cdl-auto-promote-text strong {
  display: block;
  font-size: 0.95rem;
  color: #92400e;
  font-weight: 800;
}
.cdl-auto-promote-sub {
  font-size: 0.78rem;
  color: #78350f;
  margin-top: 2px;
}
.cdl-auto-promote-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.cdl-auto-promote-btn:hover { background: #d97706; }

/* Smaller chip-group variant for the source filter row */
.cdl-chip-group-sm .cdl-chip {
  padding: 4px 10px;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cdl-chip-group-sm .cdl-chip i { font-size: 0.7rem; }

.cdl-teach-compose {
  background: #fafaf7;
  border: 1px solid #e5e1da;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cdl-teach-ta {
  width: 100%;
  border: 1.5px solid #e5e1da;
  border-radius: 5px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.8rem;
  color: #231F20;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
.cdl-teach-ta:focus { border-color: #1E6332; box-shadow: 0 0 0 3px rgba(30,99,50,0.1); }
.cdl-teach-scope {
  padding: 6px 8px;
  border: 1px solid #e5e1da;
  border-radius: 5px;
  font-size: 0.78rem;
  background: #fff;
  color: #231F20;
}
.cdl-teach-save {
  background: #1E6332;
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cdl-teach-save:hover { background: #214A3E; }
.cdl-teach-cancel {
  background: #fff;
  color: #475453;
  border: 1px solid #e5e1da;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.cdl-teach-edit-row { display: flex; gap: 6px; margin-top: 6px; }
.cdl-teach-list { display: flex; flex-direction: column; gap: 8px; max-height: 65vh; overflow-y: auto; }
.cdl-teach-item { border: 1px solid #e5e1da; border-radius: 6px; background: #fff; overflow: hidden; }
.cdl-teach-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #fafaf7;
  border-bottom: 1px solid #eeeae2;
  flex-wrap: wrap;
}
.cdl-teach-meta { font-size: 0.66rem; color: #8b8580; }
.cdl-teach-actions { margin-left: auto; display: flex; gap: 3px; }
.cdl-teach-actions button {
  background: #fff;
  border: 1px solid #e5e1da;
  width: 24px; height: 24px;
  border-radius: 4px;
  color: #475453;
  cursor: pointer;
  font-size: 0.66rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cdl-teach-actions button:hover { background: #F4F0E9; color: #1E6332; border-color: #1E6332; }
.cdl-teach-actions button.cdl-teach-danger:hover { background: #fef2f2; color: #dc2626; border-color: #dc2626; }
.cdl-teach-body { padding: 10px; }
.cdl-teach-note { margin: 0; font-size: 0.8rem; line-height: 1.45; color: #231F20; }
.cdl-teach-scope-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  background: #e8f0ea;
  color: #1E6332;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cdl-teach-scope-badge.cdl-teach-scope-all { background: #f4f0e9; color: #6b5a35; }
.cdl-teach-on { font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: 3px; background: #d4edda; color: #155724; }
.cdl-teach-off { font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: 3px; background: #e5e1da; color: #8b8580; }

.cdl-empty {
  text-align: center;
  color: #8b8580;
  padding: 24px 16px;
  font-style: italic;
  font-size: 0.82rem;
}
.cdl-loading { text-align: center; padding: 24px; color: #475453; }

.cdl-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cdl-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.7);
  backdrop-filter: blur(3px);
}
.cdl-detail-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.cdl-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1E6332, #2F8542);
  color: #fff;
}
.cdl-detail-title { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cdl-detail-close {
  background: transparent;
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
.cdl-detail-close:hover { background: rgba(255, 255, 255, 0.18); }
.cdl-detail-body { flex: 1; overflow: hidden; }
.cdl-detail-grid { display: grid; grid-template-columns: 1fr 400px; height: 100%; }
@media (max-width: 900px) { .cdl-detail-grid { grid-template-columns: 1fr; grid-template-rows: 50% 1fr; } }
.cdl-detail-left { background: #2a2e33; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 12px; }
/* position:relative so the .cdl-doc-approx-note (absolute) is contained
   INSIDE the preview pane — without this it escaped to the modal and
   overlapped the header / X close button. */
.cdl-detail-doc-frame { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.cdl-detail-iframe { width: 100%; height: 100%; border: none; background: #fff; }
.cdl-detail-img { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.cdl-doc-approx-note {
    position: absolute;
    top: 10px; left: 10px; right: 10px;
    z-index: 2;
    background: rgba(245, 240, 233, 0.96);
    border: 1px solid #d8cdb8;
    color: #6b5e3f;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.cdl-doc-approx-note i { margin-right: 6px; opacity: 0.8; }
.cdl-detail-right { padding: 18px; overflow-y: auto; border-left: 1px solid #e5e1da; background: #fafaf7; }
.cdl-detail-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cdl-detail-context {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: #475453;
  background: #fff;
  padding: 10px;
  border: 1px solid #e5e1da;
  border-radius: 6px;
  margin-bottom: 14px;
}
.cdl-detail-fields {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.cdl-detail-field {
  background: #fff;
  border: 1px solid #e5e1da;
  border-radius: 6px;
  padding: 10px;
}
.cdl-detail-field-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #8b8580;
  margin-bottom: 4px;
}
.cdl-detail-field-orig { font-family: 'Courier New', monospace; color: #8b8580; font-size: 0.85rem; text-decoration: line-through; }
.cdl-detail-field-corr { font-size: 0.9rem; }
.cdl-detail-field-meta { font-size: 0.68rem; color: #8b8580; margin-top: 4px; }
.cdl-detail-field-arrow { text-align: center; font-size: 1.2rem; color: #1E6332; font-weight: 800; }
.cdl-detail-edit-input {
  width: 100%;
  padding: 6px 8px;
  border: 1.5px solid #1E6332;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #231F20;
  outline: none;
  box-sizing: border-box;
}
.cdl-detail-edit-input:focus { box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.12); }
.cdl-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cdl-detail-save, .cdl-detail-promote, .cdl-detail-delete {
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}
.cdl-detail-save { background: #1E6332; color: #fff; border-color: #1E6332; }
.cdl-detail-save:hover { background: #214A3E; }
.cdl-detail-promote { background: #fff; color: #92400e; border-color: #fcd34d; }
.cdl-detail-promote:hover { background: #fef3c7; }
.cdl-detail-delete { background: #fff; color: #dc2626; border-color: #dc2626; margin-left: auto; }
.cdl-detail-delete:hover { background: #fef2f2; }

/* ============ TAB NAVIGATION ============ */
/* Compact — row was consuming ~55px + 20px margin-bottom. Dropped to ~34px
   total row height + 10px bottom margin. Kept underline indicator pattern. */
.hubs-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 0;
}

.hubs-tab {
    padding: 6px 14px;
    border: none;
    background: transparent;
    font-family: 'Futura PT', 'Jost', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.hubs-tab:hover { color: #1E6332; background: #f8f7f5; }

.hubs-tab.active {
    color: #1E6332;
    border-bottom-color: #1E6332;
}

.hubs-tab i { font-size: 11.5px; }

.hubs-tab-panels {
    min-height: 400px;
}

.hubs-tab-panel {
    animation: hubsTabFadeIn 0.2s ease;
}

@keyframes hubsTabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ PAGE LAYOUT ============ */

/* Make HUB Settings use full viewport width — override .dashboard-content padding */
#page-hub-settings .dashboard-content {
    padding: 0.5rem 1.25rem 1rem;
    overflow-y: auto;
}

.hub-settings-page {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hub-settings-header {
    margin-bottom: 1.75rem;
    position: relative;
}

.hub-settings-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.hub-settings-header h2 i {
    color: #1E6332;
    margin-right: 0.6rem;
    font-size: 1.3rem;
}

.hub-settings-subtitle {
    color: #7c7872;
    font-size: 0.88rem;
    margin: 0;
    font-weight: 400;
}

/* Old two-column layout removed — replaced by tab navigation */

/* ============ SECTION CARDS ============ */

.hub-settings-section {
    background: #fff;
    border: 1px solid #e2ddd6;
    border-radius: 16px;
    margin-bottom: 1.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.hub-settings-section:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.hub-settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, #fafaf8 0%, #f5f3f0 100%);
    border-bottom: 1px solid #e8e4de;
}

.hub-settings-section-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
}

.hub-settings-section-header h4 i {
    color: #C08B3E;
    margin-right: 0.6rem;
    font-size: 0.95rem;
}

.hub-settings-section-body {
    padding: 1.5rem;
}

/* Action button — glassmorphism style */
.hub-settings-action-btn {
    background: linear-gradient(135deg, #1E6332 0%, #27804a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(30, 99, 50, 0.25);
    letter-spacing: 0.01em;
}

.hub-settings-action-btn:hover {
    background: linear-gradient(135deg, #16522a 0%, #1E6332 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 99, 50, 0.35);
}

.hub-settings-action-btn:active {
    transform: translateY(0);
}

/* ============ NEW/EDIT ANNOUNCEMENT FORM ============ */

.hub-new-announcement {
    background: linear-gradient(135deg, #fafbf9 0%, #f5f7f3 100%);
    border: 1px solid #d5dece;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: hubFormSlideIn 0.3s ease both;
}

@keyframes hubFormSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hub-ann-form-title-row {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e0ddd5;
}

.hub-ann-form-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.hub-ann-form-group {
    margin-bottom: 1.15rem;
}

.hub-ann-form-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3d3a37;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-ann-form-label i {
    color: #C08B3E;
    width: 14px;
    text-align: center;
    font-size: 0.72rem;
}

/* Shared input styling */
.hub-new-announcement textarea,
.hub-new-announcement input[type="text"],
.hub-ann-cat-field select,
.hub-ann-schedule-field input[type="datetime-local"] {
    width: 100%;
    border: 1.5px solid #d5d0c8;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    font-family: 'Futura PT', 'Jost', sans-serif;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    color: #231F20;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-new-announcement textarea:focus,
.hub-new-announcement input[type="text"]:focus,
.hub-ann-cat-field select:focus,
.hub-ann-schedule-field input[type="datetime-local"]:focus {
    border-color: #1E6332;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.1);
}

.hub-new-announcement textarea {
    resize: vertical;
    min-height: 80px;
}

.hub-ann-char-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.2rem;
}

.hub-ann-char-count {
    font-size: 0.7rem;
    color: #8a8580;
}

/* ============ CATEGORY + PRIORITY ROW ============ */

.hub-ann-cat-priority-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.hub-ann-cat-field {
    flex: 1;
    min-width: 0;
}

.hub-ann-cat-field select {
    cursor: pointer;
}

.hub-ann-cat-preview {
    margin-top: 0.35rem;
}

.hub-ann-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-ann-cat-chip i {
    font-size: 0.62rem;
}

/* ── Custom Category Dropdown ── */

.hub-cat-dropdown {
    position: relative;
    width: 100%;
}

.hub-cat-dropdown-trigger {
    width: 100%;
    border: 1.5px solid #d5d0c8;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    font-family: 'Futura PT', 'Jost', sans-serif;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.hub-cat-dropdown-trigger:hover {
    border-color: #b0a8a0;
    background: #fcfcfb;
}

.hub-cat-dropdown-trigger.open {
    border-color: #1E6332;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.1);
    background: #fff;
}

.hub-cat-dropdown-trigger .hub-cat-selected-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-cat-dropdown-trigger .hub-cat-selected-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.hub-cat-dropdown-trigger:hover .hub-cat-selected-icon {
    transform: scale(1.08);
}

.hub-cat-dropdown-trigger .hub-cat-selected-label {
    font-weight: 700;
    color: #231F20;
    font-size: 0.85rem;
}

.hub-cat-dropdown-trigger .hub-cat-chevron {
    font-size: 0.62rem;
    color: #8a8580;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hub-cat-dropdown-trigger.open .hub-cat-chevron {
    transform: rotate(180deg);
}

.hub-cat-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2ddd6;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.02);
    z-index: 100;
    padding: 8px;
    display: none;
}

.hub-cat-dropdown-panel.open {
    display: block;
    animation: hubCatDropIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes hubCatDropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hub-cat-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hub-cat-option:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.hub-cat-option.active {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f8ec 100%);
    box-shadow: inset 0 0 0 1px rgba(30, 99, 50, 0.12);
}

.hub-cat-option-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.hub-cat-option:hover .hub-cat-option-icon {
    transform: scale(1.1);
}

.hub-cat-option-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 1px;
}

.hub-cat-option-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #231F20;
}

.hub-cat-option-desc {
    font-size: 0.7rem;
    color: #8a8580;
    line-height: 1.25;
}

.hub-cat-option-check {
    font-size: 0.78rem;
    color: #1E6332;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.hub-cat-option.active .hub-cat-option-check {
    opacity: 1;
    transform: scale(1.1);
}

/* ============ PRIORITY BUTTONS ============ */

.hub-ann-priority-field {
    flex: 0 0 auto;
}

.hub-ann-priority-btns {
    display: flex;
    gap: 0;
    border: 1.5px solid #d5d0c8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.hub-ann-pri-btn {
    background: #fff;
    border: none;
    border-right: 1px solid #e8e4de;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    color: #8a8580;
    cursor: pointer;
    font-family: 'Futura PT', 'Jost', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.hub-ann-pri-btn:last-child {
    border-right: none;
}

.hub-ann-pri-btn:hover {
    background: #f8f9fa;
    color: #5a5550;
}

.hub-ann-pri-btn.active {
    color: #1E6332;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    font-weight: 800;
    box-shadow: inset 0 -2.5px 0 #1E6332;
}

.hub-ann-pri-btn.active[data-priority="important"] {
    color: #d97706;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: inset 0 -2.5px 0 #d97706;
}

.hub-ann-pri-btn.active[data-priority="urgent"] {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    box-shadow: inset 0 -2.5px 0 #dc2626;
    animation: hubPriUrgentPulse 2s ease-in-out infinite;
}

@keyframes hubPriUrgentPulse {
    0%, 100% { box-shadow: inset 0 -2.5px 0 #dc2626; }
    50% { box-shadow: inset 0 -2.5px 0 #dc2626, 0 0 12px rgba(220, 38, 38, 0.2); }
}

/* ============ REQUIRE ACKNOWLEDGMENT ============ */

.hub-ann-ack-toggle {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f8ec 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s;
}

.hub-ann-ack-toggle:hover {
    border-color: #86efac;
}

/* ── Audience targeting (Everyone vs Specific Locations by State/Territory) ── */
.hub-ann-audience-toggle { display: flex; gap: 8px; margin-top: 6px; }
.hub-ann-aud-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 0.6rem 0.8rem; border: 1.5px solid #e2ddd2; border-radius: 10px;
    background: #fff; color: #5c6b62; font-size: 0.82rem; font-weight: 700; cursor: pointer;
    transition: all 0.15s;
}
.hub-ann-aud-btn:hover { border-color: #bcdcc6; }
.hub-ann-aud-btn.active { border-color: #1E6332; background: linear-gradient(135deg, #1E6332, #2F8542); color: #fff; }
.hub-ann-aud-btn i { font-size: 0.85rem; }

.hub-ann-audience-panel {
    margin-top: 10px; padding: 0.9rem; border: 1.5px solid #e2ddd2; border-radius: 12px; background: #faf9f6;
}
.hub-ann-aud-hint { font-size: 0.74rem; color: #6b7280; margin-bottom: 0.7rem; line-height: 1.4; }
.hub-ann-aud-group { margin-bottom: 0.85rem; }
.hub-ann-aud-group:last-of-type { margin-bottom: 0.5rem; }
.hub-ann-aud-grouphead {
    display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px; color: #1E6332; margin-bottom: 0.5rem;
}
.hub-ann-aud-grouphead i { color: #C08B3E; }
.hub-ann-state-search {
    margin-left: auto; font-size: 0.74rem; padding: 4px 9px; border: 1px solid #e2ddd2;
    border-radius: 7px; outline: none; width: 130px; text-transform: none; letter-spacing: 0; font-weight: 500;
}
.hub-ann-state-search:focus { border-color: #1E6332; box-shadow: 0 0 0 2px rgba(30,99,50,0.12); }

.hub-ann-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-ann-chip-grid {
    display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow-y: auto;
    padding: 4px; border: 1px solid #eee7da; border-radius: 8px; background: #fff;
}
.hub-ann-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
    border: 1.5px solid #e2ddd2; border-radius: 999px; background: #fff; color: #4b5563;
    font-size: 0.76rem; font-weight: 700; cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.hub-ann-chip:hover { border-color: #bcdcc6; background: #f3faf5; }
.hub-ann-chip.selected { border-color: #1E6332; background: #1E6332; color: #fff; }
.hub-ann-chip-sub { font-size: 0.66rem; font-weight: 500; opacity: 0.7; }
.hub-ann-chip.selected .hub-ann-chip-sub { opacity: 0.85; }

.hub-ann-aud-summary { font-size: 0.74rem; color: #1E6332; font-weight: 600; margin-top: 0.4rem; display: flex; align-items: center; gap: 6px; }
.hub-ann-aud-summary.warn { color: #b45309; }
.hub-ann-aud-summary i { font-size: 0.78rem; }

/* Dark theme */
body.dark-theme .hub-ann-aud-btn { background: #232936; border-color: #3a4250; color: #c7cdd6; }
body.dark-theme .hub-ann-aud-btn.active { color: #fff; }
body.dark-theme .hub-ann-audience-panel { background: #1d222c; border-color: #3a4250; }
body.dark-theme .hub-ann-chip-grid { background: #232936; border-color: #3a4250; }
body.dark-theme .hub-ann-chip { background: #232936; border-color: #3a4250; color: #c7cdd6; }
body.dark-theme .hub-ann-chip.selected { background: #1E6332; border-color: #2F8542; color: #fff; }
body.dark-theme .hub-ann-state-search { background: #232936; border-color: #3a4250; color: #c7cdd6; }

.hub-ann-ack-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1E6332;
    cursor: pointer;
}

.hub-ann-ack-label input[type="checkbox"] {
    accent-color: #1E6332;
    width: 18px;
    height: 18px;
}

.hub-ann-ack-label i {
    font-size: 0.88rem;
}

.hub-ann-ack-hint {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.3rem;
    margin-left: 1.8rem;
    line-height: 1.4;
}

/* ============ RICH TEXT EDITOR ============ */

.hub-rte-wrap {
    border: 1.5px solid #d5d0c8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-rte-wrap:focus-within {
    border-color: #1E6332;
    box-shadow: 0 0 0 3px rgba(30, 99, 50, 0.1);
}

/* Toolbar */
.hub-rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #fafaf8 0%, #f3f1ee 100%);
    border-bottom: 1px solid #e5e1da;
    align-items: center;
}

.hub-rte-toolbar-group {
    display: flex;
    align-items: center;
    gap: 1px;
}

.hub-rte-toolbar-sep {
    width: 1px;
    height: 22px;
    background: #d5d0c8;
    margin: 0 5px;
    flex-shrink: 0;
}

.hub-rte-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    width: 32px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.78rem;
    transition: all 0.15s ease;
    padding: 0;
    font-family: 'Futura PT', 'Jost', sans-serif;
}

.hub-rte-btn:hover {
    background: #e8f5ee;
    color: #1E6332;
    border-color: #bbf7d0;
}

.hub-rte-btn.active {
    background: #dcfce7;
    color: #1E6332;
    border-color: #86efac;
    box-shadow: 0 1px 3px rgba(30, 99, 50, 0.1);
}

.hub-rte-select {
    height: 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: none;
    font-size: 0.74rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0 6px;
    font-family: 'Futura PT', 'Jost', sans-serif;
    outline: none;
}

.hub-rte-select:hover {
    background: #e8f5ee;
    border-color: #bbf7d0;
    color: #1E6332;
}

.hub-rte-color {
    width: 28px;
    height: 28px;
    border: 1px solid #d5d0c8;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s;
}

.hub-rte-color:hover {
    border-color: #1E6332;
}

/* Editor area */
.hub-rte-editor {
    min-height: 220px;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px 18px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #231F20;
    outline: none;
    font-family: 'Futura PT', 'Jost', sans-serif;
    word-break: break-word;
}

.hub-rte-editor:empty::before {
    content: attr(data-placeholder);
    color: #b0a8a0;
    pointer-events: none;
    font-style: italic;
}

.hub-rte-editor h1 { font-size: 1.5rem; font-weight: 700; margin: 0.5em 0 0.3em; color: #231F20; }
.hub-rte-editor h2 { font-size: 1.25rem; font-weight: 700; margin: 0.5em 0 0.3em; color: #231F20; }
.hub-rte-editor h3 { font-size: 1.05rem; font-weight: 700; margin: 0.5em 0 0.3em; color: #231F20; }
.hub-rte-editor p { margin: 0 0 0.5em; }
.hub-rte-editor ul, .hub-rte-editor ol { margin: 0 0 0.5em; padding-left: 1.5em; }
.hub-rte-editor a { color: #1E6332; text-decoration: underline; }
.hub-rte-editor hr { border: none; border-top: 2px solid #e5e1da; margin: 1em 0; }
.hub-rte-editor blockquote {
    border-left: 3px solid #1E6332;
    margin: 0.5em 0;
    padding: 0.4em 0.8em;
    background: #f0fdf4;
    color: #3d3a37;
}

/* Inline images/videos in editor */
.hub-rte-editor img {
    max-width: 100%;
    border-radius: 10px;
    margin: 8px 0;
    display: block;
}

.hub-rte-editor video,
.hub-rte-editor iframe {
    max-width: 100%;
    border-radius: 10px;
    margin: 8px 0;
    display: block;
}

/* HTML source view */
.hub-rte-source {
    width: 100%;
    min-height: 220px;
    max-height: 500px;
    border: none;
    padding: 16px 18px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #231F20;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    background: #faf9f7;
}

/* ============ ATTACHMENTS ============ */

.hub-att-zone {
    background: transparent;
}

.hub-att-droparea {
    border: 2px dashed #ccc8c0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: #fefefe;
}

.hub-att-droparea:hover {
    border-color: #1E6332;
    background: linear-gradient(135deg, #f6fef8 0%, #f0fdf4 100%);
}

.hub-att-droparea.hub-att-drop-active {
    border-color: #1E6332;
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    box-shadow: 0 0 0 4px rgba(30, 99, 50, 0.12);
    transform: scale(1.01);
}

.hub-att-droparea i {
    font-size: 1.5rem;
    color: #c0b8ae;
    transition: all 0.2s;
}

.hub-att-droparea:hover i {
    color: #1E6332;
    transform: translateY(-2px);
}

.hub-att-droparea span {
    font-size: 0.82rem;
    color: #8a8580;
}

.hub-att-droparea strong {
    color: #1E6332;
}

.hub-att-hint {
    font-size: 0.7rem !important;
    color: #b0a8a0 !important;
}

/* Attachment list */
.hub-att-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.65rem;
}

.hub-att-list:empty {
    display: none;
}

.hub-att-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.hub-att-item:hover {
    background: #f6fef8;
    border-color: #bbf7d0;
    transform: translateX(2px);
}

.hub-att-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.hub-att-item-icon.pdf   { background: #fef2f2; color: #dc2626; }
.hub-att-item-icon.image { background: #f0fdf4; color: #22c55e; }
.hub-att-item-icon.video { background: #eff6ff; color: #3b82f6; }
.hub-att-item-icon.doc   { background: #eff6ff; color: #2563eb; }
.hub-att-item-icon.other { background: #f3f4f6; color: #6b7280; }

.hub-att-item-info {
    flex: 1;
    min-width: 0;
}

.hub-att-item-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #231F20;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-att-item-size {
    font-size: 0.68rem;
    color: #8a8580;
}

.hub-att-item-remove {
    background: none;
    border: none;
    color: #c0b8ae;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    transition: all 0.15s;
    flex-shrink: 0;
}

.hub-att-item-remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Upload progress */
.hub-ann-upload-progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.hub-ann-upload-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.hub-ann-upload-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1E6332, #22c55e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

#hubAnnUploadStatus {
    font-size: 0.72rem;
    color: #8a8580;
    white-space: nowrap;
}

/* Legacy media preview */
.hub-ann-media-preview-area { width: 100%; }
.hub-ann-media-preview-area img,
.hub-ann-media-preview-area video {
    border-radius: 10px;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* ============ SCHEDULE SECTION ============ */

.hub-ann-schedule-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.hub-ann-schedule-field {
    flex: 1;
}

.hub-ann-schedule-field label {
    display: block;
    font-size: 0.72rem;
    color: #8a8580;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Schedule preset buttons */
.hub-ann-schedule-presets {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hub-ann-preset-label {
    font-size: 0.72rem;
    color: #8a8580;
    font-weight: 700;
    margin-right: 0.1rem;
}

.hub-ann-schedule-presets button {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    color: #3d3a37;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Futura PT', 'Jost', sans-serif;
    font-weight: 500;
}

.hub-ann-schedule-presets button:hover {
    background: #e8f5ee;
    border-color: #1E6332;
    color: #1E6332;
    transform: translateY(-1px);
}

.hub-ann-preset-clear {
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

.hub-ann-preset-clear:hover {
    background: #fee2e2 !important;
    border-color: #dc2626 !important;
}

/* ============ FORM FOOTER ============ */

.hub-ann-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0ddd5;
    margin-top: 0.75rem;
}

.hub-announcement-form-actions {
    display: flex;
    gap: 0.6rem;
}

.hub-settings-cancel-btn {
    background: #fff;
    border: 1.5px solid #d5d0c8;
    border-radius: 10px;
    padding: 0.5rem 1.15rem;
    font-size: 0.82rem;
    color: #8a8580;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hub-settings-cancel-btn:hover {
    border-color: #8a8580;
    color: #3d3a37;
    background: #fafaf8;
}

.hub-settings-save-btn {
    background: linear-gradient(135deg, #1E6332 0%, #27804a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(30, 99, 50, 0.2);
}

.hub-settings-save-btn:hover {
    background: linear-gradient(135deg, #16522a 0%, #1E6332 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 99, 50, 0.3);
}

.hub-settings-save-btn:active {
    transform: translateY(0);
}

/* ============ ANNOUNCEMENTS LIST ============ */

.hub-announcements-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Active / Archived sub-tabs ── */
.hub-ann-subtabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e1da;
}
.hub-ann-subtab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a8580;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.hub-ann-subtab:hover {
    color: #1E6332;
}
.hub-ann-subtab.active {
    color: #1E6332;
    border-bottom-color: #1E6332;
}
.hub-ann-subtab-count {
    font-size: 0.68rem;
    font-weight: 700;
    background: #f0ece6;
    color: #6b6560;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.hub-ann-subtab.active .hub-ann-subtab-count {
    background: #1E6332;
    color: #fff;
}

.hub-ann-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #8a8580;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.65rem 0 0.4rem;
    border-bottom: 1.5px solid #f0ece6;
    margin-bottom: 0.35rem;
}

/* ── Announcement Row — Premium Style ── */

.hub-announcement-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1rem;
    border: 1px solid #ece9e3;
    background: #fff;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin-bottom: 10px;
}

.hub-announcement-row:last-child {
    margin-bottom: 0;
}

.hub-announcement-row:hover {
    background: #fafbf9;
    border-color: #ddd9d2;
}

.hub-announcement-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C08B3E, #a07030);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(192, 139, 62, 0.25);
}

.hub-announcement-row-body {
    flex: 1;
    min-width: 0;
}

.hub-announcement-row-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.hub-announcement-row-author {
    font-weight: 700;
    font-size: 0.82rem;
    color: #1a1a1a;
}

.hub-announcement-row-time {
    font-size: 0.7rem;
    color: #a09a94;
}

.hub-announcement-row-content {
    font-size: 0.84rem;
    color: #4a4540;
    line-height: 1.55;
    word-break: break-word;
}

/* Rich content preview in list */
.hub-rte-preview h1 { font-size: 1.1rem; font-weight: 700; margin: 0.3em 0; }
.hub-rte-preview h2 { font-size: 1rem; font-weight: 700; margin: 0.3em 0; }
.hub-rte-preview h3 { font-size: 0.9rem; font-weight: 700; margin: 0.3em 0; }
.hub-rte-preview p { margin: 0 0 0.3em; }
.hub-rte-preview img { max-width: 200px; max-height: 120px; border-radius: 8px; margin: 4px 0; }
.hub-rte-preview video, .hub-rte-preview iframe { max-width: 200px; max-height: 120px; border-radius: 8px; margin: 4px 0; }
.hub-rte-preview a { color: #1E6332; }
.hub-rte-preview hr { border: none; border-top: 1px solid #e5e1da; margin: 0.5em 0; }
.hub-rte-preview ul, .hub-rte-preview ol { margin: 0 0 0.3em; padding-left: 1.2em; }

/* Attachment badges in list */
.hub-ann-att-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0.5rem;
}

.hub-ann-att-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #3d3a37;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-ann-att-chip:hover {
    background: #e8f5ee;
    border-color: #1E6332;
    color: #1E6332;
    transform: translateY(-1px);
}

.hub-ann-att-chip i {
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* ============ ANNOUNCEMENT BADGES ============ */

.hub-ann-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

/* Title in list */
.hub-announcement-row-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* Priority badges in list */
.hub-ann-pri-badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
}

.hub-ann-pri-badge.important {
    color: #d97706;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.hub-ann-pri-badge.urgent {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    animation: hubUrgentFlash 2s ease-in-out infinite;
}

@keyframes hubUrgentFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Ack required badge in list */
.hub-ann-ack-badge {
    font-size: 0.58rem;
    font-weight: 700;
    color: #0d9488;
    background: #f0fdfa;
    padding: 2px 7px;
    border-radius: 5px;
}

/* Banner badge in list */
.hub-ann-banner-badge {
    font-size: 0.58rem;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    padding: 2px 7px;
    border-radius: 5px;
}

/* Schedule badges */
.hub-ann-schedule-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hub-ann-schedule-badge.scheduled {
    color: #3b82f6;
    background: #eff6ff;
}

.hub-ann-schedule-badge.expiring {
    color: #f59e0b;
    background: #fffbeb;
}

.hub-ann-schedule-badge.expired {
    color: #dc2626;
    background: #fef2f2;
}

/* Inline ack stats */
.hub-ann-ack-stats {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px dashed #e5e1da;
}

.hub-ann-ack-stat {
    font-size: 0.7rem;
    color: #8a8580;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.hub-ann-ack-stat.seen i { color: #f59e0b; }
.hub-ann-ack-stat.acked i { color: #22c55e; }

/* Media preview in list */
.hub-ann-media-preview {
    margin-top: 0.5rem;
    position: relative;
    display: inline-block;
}

.hub-ann-media-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
}

/* ============ ACTION BUTTONS ============ */

.hub-announcement-row-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.hub-ann-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    color: #c0b8ae;
}

.hub-ann-action-btn:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.hub-ann-action-btn.edit:hover   { color: #3b82f6; background: #eff6ff; }
.hub-ann-action-btn.archive:hover { color: #f59e0b; background: #fffbeb; }
.hub-ann-action-btn.restore:hover { color: #22c55e; background: #f0fdf4; }
.hub-ann-action-btn.delete:hover  { color: #dc2626; background: #fef2f2; }
.hub-ann-action-btn.stats:hover   { color: #0d9488; background: #f0fdfa; }

/* ============ ANNOUNCEMENT ANALYTICS OVERLAY ============ */

.ann-analytics-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 24px;
}
.ann-analytics-overlay.active { opacity: 1; }

.ann-analytics-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 860px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.ann-analytics-overlay.active .ann-analytics-modal {
    transform: translateY(0) scale(1);
}

/* Header */
.ann-analytics-header {
    background: linear-gradient(145deg, #1E6332 0%, #28804a 40%, #1a5a2c 100%);
    color: #fff;
    padding: 22px 28px 20px;
    flex-shrink: 0;
}
.ann-analytics-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ann-analytics-header-left {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ann-analytics-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.ann-analytics-close:hover { background: rgba(255,255,255,0.25); }

.ann-analytics-header-ann {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.ann-analytics-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
}
.ann-analytics-header-meta {
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Loading */
.ann-analytics-loading {
    text-align: center;
    padding: 3rem;
    color: #1E6332;
    font-size: 0.9rem;
}
.ann-analytics-loading i { margin-right: 6px; }

/* Body */
.ann-analytics-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 0;
    flex: 1;
}

/* KPI Cards */
.ann-an-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.ann-an-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #f0ede8;
    background: #fafaf8;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ann-an-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ann-an-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ann-an-kpi-data { min-width: 0; }
.ann-an-kpi-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.ann-an-kpi-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a8580;
    margin-left: 4px;
}
.ann-an-kpi-label {
    font-size: 0.72rem;
    color: #8a8580;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Progress Bars */
.ann-an-progress-section {
    padding: 16px 20px;
    background: #fafaf8;
    border-radius: 14px;
    border: 1px solid #f0ede8;
}
.ann-an-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.ann-an-progress-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a4540;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-an-progress-value {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1a1a1a;
}
.ann-an-progress-bar {
    height: 10px;
    border-radius: 5px;
    background: #e8e4df;
    overflow: hidden;
}
.ann-an-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.ann-an-progress-fill.reach {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.ann-an-progress-fill.ack {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* Snapshot Notice */
.ann-an-snapshot-notice {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f8f7f5;
    border: 1px solid #ece9e3;
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-an-snapshot-notice i { color: #f59e0b; flex-shrink: 0; }

/* Lifecycle Info Strip */
.ann-an-lifecycle {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8f7f5;
    border: 1px solid #ece9e3;
    border-radius: 10px;
    flex-wrap: wrap;
}
.ann-an-lifecycle-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    padding: 4px 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #f0ede8;
}
.ann-an-lifecycle-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ann-an-lifecycle-label {
    color: #8a8580;
    font-weight: 500;
}
.ann-an-lifecycle-val {
    color: #3a3530;
    font-weight: 600;
}

/* Daily Trend Chart */
.ann-an-chart-section {
    background: #fafaf8;
    border: 1px solid #f0ede8;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.ann-an-chart-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4a4540;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-an-chart-wrap {
    position: relative;
    height: 180px;
}

/* Filter Tabs + Table */
.ann-an-table-section {
    flex-shrink: 0;
}
.ann-an-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.ann-an-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ann-an-filter-tab {
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #e8e4df;
    background: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    color: #6b6560;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ann-an-filter-tab span {
    background: #f0ede8;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}
.ann-an-filter-tab:hover { border-color: #1E6332; color: #1E6332; }
.ann-an-filter-tab.active {
    background: #1E6332;
    border-color: #1E6332;
    color: #fff;
}
.ann-an-filter-tab.active span {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.ann-an-showing-count {
    font-size: 0.72rem;
    color: #8a8580;
    font-weight: 500;
}

/* User Search */
.ann-an-search-wrap {
    position: relative;
    margin-bottom: 10px;
}
.ann-an-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8580;
    font-size: 0.82rem;
}
.ann-an-search {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid #e8e4df;
    border-radius: 10px;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    background: #fafaf8;
    transition: border-color 0.2s;
}
.ann-an-search:focus {
    border-color: #1E6332;
    background: #fff;
}
.ann-an-search::placeholder { color: #b5b0a8; }

/* User Table */
.ann-an-table-wrap {
    min-height: 120px;
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #f0ede8;
    border-radius: 12px;
}
.ann-an-table-wrap::-webkit-scrollbar { width: 5px; }
.ann-an-table-wrap::-webkit-scrollbar-track { background: transparent; }
.ann-an-table-wrap::-webkit-scrollbar-thumb { background: #d5d0c8; border-radius: 3px; }

.ann-an-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.ann-an-table thead th {
    position: sticky;
    top: 0;
    background: #f8f6f3;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: #8a8580;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e8e4df;
    z-index: 1;
}
.ann-an-user-row td {
    padding: 10px 14px;
    border-bottom: 1px solid #f5f2ef;
    vertical-align: middle;
}
.ann-an-user-row:last-child td { border-bottom: none; }
.ann-an-user-row:hover td { background: #fafaf8; }

/* User cell */
.ann-an-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ann-an-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E6332, #28a745);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ann-an-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ann-an-user-info strong {
    font-size: 0.82rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ann-an-user-info span {
    font-size: 0.68rem;
    color: #8a8580;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status pill */
.ann-an-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.ann-an-status-pill.acked { background: #f0fdf4; color: #16a34a; }
.ann-an-status-pill.seen { background: #fefce8; color: #b45309; }
.ann-an-status-pill.not-seen { background: #f8fafc; color: #94a3b8; }

/* Row tinting */
.ann-an-user-row.not-seen td { opacity: 0.6; }

/* Pagination */
.ann-an-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0 2px;
}
.ann-an-pg-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e8e4df;
    background: #fff;
    color: #1E6332;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.ann-an-pg-btn:hover:not(:disabled) { background: #1E6332; color: #fff; border-color: #1E6332; }
.ann-an-pg-btn:disabled { opacity: 0.35; cursor: default; }
.ann-an-pg-info {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b6560;
}

/* ============ INFO BOX ============ */

.hub-settings-info {
    background: linear-gradient(135deg, #fafaf8, #f5f3f0);
    border: 1px solid #e2ddd6;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    color: #7c7872;
    margin-bottom: 1.15rem;
    line-height: 1.5;
}

.hub-settings-info i {
    color: #C08B3E;
    margin-right: 0.4rem;
}

/* ============ MODULE MANAGEMENT ============ */

.hub-module-card {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 10px;
    transition: box-shadow 0.15s ease;
}

.hub-module-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.hub-module-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.hub-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F4F0E9, #E8DFD0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1E6332;
    font-size: 16px;
}

.hub-module-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hub-module-label {
    font-weight: 700;
    font-size: 0.92rem;
    color: #231F20;
}

.hub-module-desc {
    font-size: 0.76rem;
    color: #8a8580;
}

/* Toggle switch */
.hub-module-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.hub-module-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hub-module-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.25s ease;
}

.hub-module-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.hub-module-toggle input:checked + .hub-module-slider {
    background: #1E6332;
}

.hub-module-toggle input:checked + .hub-module-slider::before {
    transform: translateX(20px);
}

/* Access dropdown */
.hub-module-access {
    padding: 0 18px 14px 72px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-module-access label {
    font-size: 0.78rem;
    color: #6b6560;
    font-weight: 500;
    white-space: nowrap;
}

.hub-module-access label i {
    margin-right: 4px;
    color: #8a8580;
}

.hub-module-access select {
    padding: 5px 10px;
    border: 1px solid #e0dcd6;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #3d3a37;
    background: #fafaf8;
    cursor: pointer;
}

.hub-module-access select:focus {
    outline: none;
    border-color: #1E6332;
    box-shadow: 0 0 0 2px rgba(30,99,50,0.1);
}

/* Save button */
.hub-module-actions {
    padding: 16px 0 0;
    border-top: 1px solid #f0ede8;
    margin-top: 6px;
}

.hub-module-save-btn {
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-module-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30,99,50,0.3);
}

.hub-module-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============ LOADING / EMPTY STATES ============ */

.hub-settings-loading {
    text-align: center;
    padding: 2.5rem;
    color: #8a8580;
    font-size: 0.88rem;
}

.hub-settings-loading i {
    color: #1E6332;
    margin-right: 0.4rem;
}

.hub-settings-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #8a8580;
}

.hub-settings-empty i {
    font-size: 2rem;
    color: #d5d0c8;
    margin-bottom: 0.75rem;
    display: block;
}

.hub-settings-empty p {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

/* ==================== RESOURCE CENTER ADMIN ==================== */

/* Admin Sub-tabs */
.kba-subtabs {
    display: flex; gap: 0; border-bottom: 2px solid #eee; padding: 0 20px;
}
.kba-subtab {
    padding: 12px 18px; font-size: 13px; font-weight: 600; color: #6b7280;
    border: none; background: none; cursor: pointer; font-family: 'Futura PT', 'Jost', sans-serif;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s;
    display: flex; align-items: center; gap: 6px;
}
.kba-subtab:hover { color: #231F20; }
.kba-subtab i { font-size: 12px; }
.kba-subtab-active { color: #1E6332; border-bottom-color: #1E6332; }
.kba-subtab-count {
    background: #f0ede8; padding: 1px 7px; border-radius: 10px;
    font-size: 11px; font-weight: 600; color: #9ca3af; margin-left: 2px;
}
.kba-subtab-active .kba-subtab-count { background: #1E633215; color: #1E6332; }

/* Updates & FAQ admin split */
.kba-uf-admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.kba-uf-admin-col { border-right: 1px solid #eee; }
.kba-uf-admin-col:last-child { border-right: none; }

/* Tab content background */
#kbAdminTabContent {
    background: #fff; border: 1px solid #e5e1da; border-radius: 12px;
    margin: 16px 20px; overflow: hidden;
}

/* Stats Row */
.kba-stats-row {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
    padding: 16px 20px;
}
.kba-stat-card {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; background: #fff; border: 1px solid #e5e1da;
    border-radius: 10px;
}
.kba-stat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.kba-stat-value { font-family: 'Futura PT', 'Jost', sans-serif; font-size: 18px; font-weight: 700; color: #231F20; }
.kba-stat-label { font-size: 11px; color: #9ca3af; font-weight: 500; }

/* Toolbar */
.kba-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 20px; border-bottom: 1px solid #eee;
}
.kba-toolbar-left { display: flex; gap: 4px; }
.kba-filter-btn {
    padding: 6px 14px; border: 1px solid #e5e1da; border-radius: 8px;
    background: #fff; color: #6b7280; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.15s; font-family: 'Futura PT', 'Jost', sans-serif;
}
.kba-filter-btn:hover { border-color: #1E6332; color: #1E6332; }
.kba-filter-active { background: #1E6332; color: #fff; border-color: #1E6332; }
.kba-filter-active:hover { background: #214A3E; color: #fff; }
.kba-filter-count { font-size: 11px; margin-left: 4px; opacity: 0.7; }
.kba-new-btn {
    padding: 8px 18px; border-radius: 8px; border: none;
    background: #1E6332; color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s; font-family: 'Futura PT', 'Jost', sans-serif;
}
.kba-new-btn:hover { background: #214A3E; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(30,99,50,0.2); }
.kba-new-btn i { margin-right: 6px; }

/* Table */
.kba-table-wrap { overflow-x: auto; padding: 0 20px 20px; }
.kba-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kba-table thead th {
    padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600;
    color: #9ca3af; text-transform: uppercase; letter-spacing: 0.3px;
    border-bottom: 2px solid #eee; white-space: nowrap;
}
.kba-table thead th.kba-th-clickable {
    cursor: pointer;
    color: #1E6332;
    transition: color 0.15s;
    user-select: none;
    text-align: center;
}
.kba-table thead th.kba-th-clickable:hover {
    color: #214A3E;
    text-decoration: underline;
}
.kba-table tbody tr { border-bottom: 1px solid #f0ede8; transition: background 0.1s; }
.kba-table tbody tr:hover { background: #fafaf8; }
.kba-table td { padding: 12px 12px; vertical-align: middle; }
.kba-title-cell { max-width: 280px; }
.kba-article-title { font-weight: 600; color: #231F20; }
.kba-star-icon { color: #d97706; font-size: 11px; }
.kba-num { text-align: center; color: #6b7280; font-variant-numeric: tabular-nums; }
.kba-date { white-space: nowrap; color: #9ca3af; font-size: 12px; }
.kba-empty { text-align: center; padding: 40px !important; color: #9ca3af; }

/* Category chip */
.kba-cat-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 500;
    border: 1px solid; white-space: nowrap;
}
.kba-type-chip { font-size: 12px; font-weight: 600; white-space: nowrap; }

/* Status badge */
.kba-status {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}
.kba-status-pub { background: #1E633215; color: #1E6332; }
.kba-status-draft { background: #6b728015; color: #6b7280; }

/* Action buttons */
.kba-actions { white-space: nowrap; }
.kba-action-btn {
    width: 30px; height: 30px; border: 1px solid #e5e1da; border-radius: 6px;
    background: #fff; color: #6b7280; cursor: pointer; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.15s; margin-right: 2px;
}
.kba-action-btn:hover { border-color: #1E6332; color: #1E6332; background: #1E633208; }
.kba-action-danger:hover { border-color: #dc2626; color: #dc2626; background: #dc262608; }

/* Delete confirmation */
.kba-delete-confirm {
    background: #fef2f2; padding: 10px 16px !important; text-align: center;
    font-size: 13px; color: #991b1b; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.kba-confirm-yes {
    padding: 4px 14px; border-radius: 6px; border: none;
    background: #dc2626; color: #fff; font-size: 12px; font-weight: 600;
    cursor: pointer;
}
.kba-confirm-no {
    padding: 4px 14px; border-radius: 6px; border: 1px solid #d5d0c8;
    background: #fff; color: #6b7280; font-size: 12px; font-weight: 500;
    cursor: pointer;
}

/* ── Editor ── */
.kba-editor { padding: 0; }
.kba-editor-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; background: #fff; border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 5;
}
.kba-editor-header h3 {
    font-family: 'Futura PT', 'Jost', sans-serif; font-size: 16px; font-weight: 600; color: #231F20; margin: 0;
}
.kba-editor-header-text { flex: 1; }
.kba-editor-subtitle { font-size: 12px; color: #9ca3af; display: block; margin-top: 1px; }
.kba-editor-header-actions { display: flex; gap: 8px; }
.kba-back-btn {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e5e1da;
    background: #fff; color: #6b7280; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.kba-back-btn:hover { border-color: #1E6332; color: #1E6332; }

/* Two-column editor layout */
.kba-editor-layout {
    display: grid; grid-template-columns: 1fr 280px; gap: 16px;
    padding: 16px 20px; align-items: flex-start;
}
.kba-editor-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kba-editor-sidebar { display: flex; flex-direction: column; gap: 12px; }

/* Editor cards */
.kba-editor-card {
    background: #fff; border: 1px solid #e5e1da; border-radius: 10px;
    padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.kba-card-header {
    font-family: 'Futura PT', 'Jost', sans-serif; font-size: 13px; font-weight: 600;
    color: #6b7280; text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0ede8;
}
.kba-card-header i { color: #1E6332; margin-right: 6px; }

.kba-field { margin-bottom: 14px; }
.kba-field:last-child { margin-bottom: 0; }
.kba-field label {
    display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: #374151;
    font-family: 'Futura PT', 'Jost', sans-serif;
}
.kba-required { color: #dc2626; }
.kba-field input, .kba-field select, .kba-field textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #e5e1da; border-radius: 8px;
    font-size: 14px; font-family: 'Futura PT', 'Jost', sans-serif; color: #231F20;
    outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.kba-field input:focus, .kba-field select:focus, .kba-field textarea:focus { border-color: #1E6332; }
.kba-title-input { font-size: 18px !important; font-weight: 600; padding: 12px 14px !important; }

/* Tag preview */
.kba-tag-preview { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kba-cat-preview { margin-top: 8px; }

/* Meta card */
.kba-meta-card { padding: 14px 18px; background: #fafaf8; }
.kba-meta-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; font-size: 12px; color: #6b7280;
}
.kba-meta-row + .kba-meta-row { border-top: 1px solid #f0ede8; }
.kba-meta-row span:first-child { font-weight: 500; }
.kba-meta-row span:last-child { color: #231F20; }

/* RTE */
.kba-rte-toolbar {
    display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
    padding: 8px 10px; background: #fafaf8; border: 1.5px solid #e5e1da;
    border-bottom: none; border-radius: 8px 8px 0 0;
}
.kba-rte-toolbar button {
    min-width: 30px; height: 28px; border: none; border-radius: 4px; padding: 0 6px;
    background: transparent; color: #6b7280; cursor: pointer; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.1s;
    font-family: 'Futura PT', 'Jost', sans-serif; font-weight: 600;
}
.kba-rte-toolbar button:hover { background: #e5e1da; color: #231F20; }
.kba-rte-sep { width: 1px; height: 20px; background: #d5d0c8; margin: 0 4px; }
.kba-rte-editor {
    min-height: 400px; padding: 20px; border: 1.5px solid #e5e1da;
    border-radius: 0 0 8px 8px; font-size: 15px; line-height: 1.7;
    color: #374151; outline: none; overflow-y: auto; background: #fff;
}
.kba-rte-editor:focus { border-color: #1E6332; }
.kba-rte-editor h2 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; color: #231F20; }
.kba-rte-editor h2:first-child { margin-top: 0; }
.kba-rte-editor h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; color: #374151; }
.kba-rte-editor p { margin: 0 0 12px; }
.kba-rte-editor ul, .kba-rte-editor ol { padding-left: 22px; margin: 0 0 12px; }
.kba-rte-editor li { margin-bottom: 4px; }

/* Action buttons in header */
.kba-cancel-btn {
    padding: 7px 16px; border-radius: 8px; border: 1px solid #d5d0c8;
    background: #fff; color: #6b7280; font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: 'Futura PT', 'Jost', sans-serif; transition: all 0.15s;
}
.kba-cancel-btn:hover { border-color: #999; color: #374151; }
.kba-cancel-btn i { margin-right: 4px; }
.kba-save-btn {
    padding: 7px 16px; border-radius: 8px; border: none;
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: 'Futura PT', 'Jost', sans-serif; transition: all 0.15s;
}
.kba-save-btn i { margin-right: 5px; }
.kba-save-draft { background: #6b7280; color: #fff; }
.kba-save-draft:hover { background: #4b5563; }
.kba-save-publish { background: #1E6332; color: #fff; }
.kba-save-publish:hover { background: #214A3E; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(30,99,50,0.2); }

@media (max-width: 900px) {
    .kba-stats-row { grid-template-columns: repeat(3, 1fr); }
    .kba-editor-layout { grid-template-columns: 1fr; }
    .kba-editor-header-actions { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .kba-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== METRIC DRILLDOWN MODAL ==================== */
.kba-drillable {
    cursor: pointer !important;
    position: relative;
    color: #1E6332;
    font-weight: 600;
    transition: color 0.15s, transform 0.15s;
}
.kba-drillable:hover {
    color: #214A3E !important;
    text-decoration: underline;
    transform: scale(1.05);
}
.kba-drillable::after {
    content: ' ↗';
    font-size: 0.7em;
    opacity: 0;
    transition: opacity 0.15s;
}
.kba-drillable:hover::after {
    opacity: 0.6;
}

.kba-drill-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.kba-drill-overlay.active { opacity: 1; }
.kba-drill-modal {
    background: #fff; border-radius: 14px; width: 94%; max-width: 1050px; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2); transform: scale(0.95); transition: transform 0.2s;
}
.kba-drill-overlay.active .kba-drill-modal { transform: scale(1); }
.kba-drill-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 18px 24px; border-bottom: 1px solid #eee;
}
.kba-drill-title {
    font-family: 'Futura PT', 'Jost', sans-serif; font-size: 16px; font-weight: 600; color: #231F20;
}
.kba-drill-subtitle { font-size: 13px; color: #6b7280; margin-top: 2px; }
.kba-drill-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.kba-drill-summary {
    margin-bottom: 14px; font-size: 13px; color: #6b7280;
}
.kba-drill-total { font-size: 20px; font-weight: 700; color: #231F20; margin-right: 4px; }

/* Split view for helpful/unhelpful */
.kba-drill-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kba-drill-col { }
.kba-drill-col-header {
    font-size: 14px; font-weight: 600; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}

/* Drilldown table */
.kba-drill-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kba-drill-table thead th {
    padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 600;
    color: #9ca3af; text-transform: uppercase; letter-spacing: 0.3px;
    border-bottom: 1px solid #eee;
}
.kba-drill-table tbody tr { border-bottom: 1px solid #f0ede8; }
.kba-drill-table tbody tr:hover { background: #fafaf8; }
.kba-drill-table td { padding: 8px 10px; vertical-align: middle; }
.kba-drill-user {
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.kba-drill-avatar {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 10px; font-weight: 700;
}
.kba-drill-role {
    font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.3px; margin-left: 4px;
}
.kba-drill-email { font-size: 12px; color: #6b7280; }
.kba-drill-action {
    font-size: 11px; font-weight: 500; color: #1E6332;
    background: #1E633210; padding: 2px 8px; border-radius: 4px;
}
.kba-drill-date { font-size: 12px; color: #9ca3af; white-space: nowrap; }

/* Comment drilldown */
.kba-drill-comment {
    padding: 12px 0; border-bottom: 1px solid #f0ede8;
}
.kba-drill-comment:last-child { border-bottom: none; }
.kba-drill-comment-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.kba-drill-comment-name { font-size: 13px; font-weight: 600; color: #231F20; }
.kba-drill-comment-text {
    font-size: 13px; color: #374151; line-height: 1.5;
    padding-left: 34px;
}
.kba-drill-truncated {
    max-height: 3em; overflow: hidden;
    position: relative;
}
.kba-drill-truncated::after {
    content: '';
    position: absolute; bottom: 0; left: 34px; right: 0; height: 1.5em;
    background: linear-gradient(transparent, #fff);
}
.kba-drill-view-more {
    border: none; background: none; color: #1E6332; font-size: 12px;
    font-weight: 600; cursor: pointer; padding: 2px 0; margin-left: 34px;
    font-family: 'Futura PT', 'Jost', sans-serif;
}
.kba-drill-view-more:hover { text-decoration: underline; }

/* ==================== HUB USAGE ANALYTICS ==================== */

.hu-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hu-period-btns {
    display: flex;
    gap: 4px;
}

.hu-period-btn {
    padding: 6px 16px;
    border: 1px solid #e5e1da;
    border-radius: 6px;
    background: #fff;
    color: #6b6560;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Futura PT', 'Jost', sans-serif;
}

.hu-period-btn:hover { border-color: #1E6332; color: #1E6332; }
.hu-period-btn.active { background: #1E6332; border-color: #1E6332; color: #fff; }

.hu-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.hu-kpi {
    background: #fff;
    border: 1px solid #e5e1da;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hu-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.hu-kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hu-kpi-label {
    font-size: 0.7rem;
    color: #9b9590;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
}

.hu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Environment row — left column stacks two cards, right column is one tall card */
.hu-grid-env { align-items: stretch; }
.hu-grid-env-left { display: flex; flex-direction: column; gap: 16px; }
.hu-grid-env-left > .hu-card { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* Content containers fill their card */
.hu-grid-env-left #huUserAcquisition { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.hu-grid-env-left #huHeatmap { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.hu-card {
    background: #fff;
    border: 1px solid #e5e1da;
    border-radius: 10px;
    padding: 16px;
}

.hu-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
}

/* Bar chart rows */
.hu-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.hu-bar-label {
    width: 130px;
    font-size: 0.78rem;
    color: #6b6560;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hu-bar-track {
    flex: 1;
    height: 10px;
    background: #f3f0ec;
    border-radius: 5px;
    overflow: hidden;
}

.hu-bar-fill {
    height: 100%;
    background: #1E6332;
    border-radius: 5px;
    transition: width 0.4s ease;
    min-width: 4px;
}

.hu-bar-fill-blue {
    background: linear-gradient(90deg, #1E6332, #2F8542);
}

.hu-section { margin-top: 16px; }

.hu-card-subtitle {
    font-size: 0.72rem;
    font-weight: 400;
    color: #9b9590;
    margin-left: 8px;
}

.hu-kpi-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: #9b9590;
}

/* ── Feature Adoption Grid ── */
.hu-feat-grid { width: 100%; }

.hu-feat-header {
    display: grid;
    grid-template-columns: 1fr 70px 1fr 80px;
    gap: 12px;
    padding: 0 0 8px;
    border-bottom: 2px solid #e5e1da;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9b9590;
}

.hu-feat-row {
    display: grid;
    grid-template-columns: 1fr 70px 1fr 80px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f0ec;
    transition: background 0.12s;
}

.hu-feat-row:hover { background: #faf9f7; border-radius: 6px; margin: 0 -6px; padding: 8px 6px; }
.hu-feat-zero { opacity: 0.4; }
.hu-feat-zero:hover { opacity: 0.7; }

.hu-feat-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #2d2a26;
}

.hu-feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.hu-feat-users {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2d2a26;
    text-align: center;
}

.hu-feat-bar-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hu-feat-bar-track {
    flex: 1;
    height: 8px;
    background: #f3f0ec;
    border-radius: 4px;
    overflow: hidden;
}

.hu-feat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 0;
}

.hu-feat-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2d2a26;
    min-width: 32px;
    text-align: right;
}

.hu-feat-adopt {
    display: flex;
    justify-content: center;
}

.hu-feat-adopt-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), #f3f0ec calc(var(--pct) * 1%));
    position: relative;
}

.hu-feat-adopt-ring::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
}

.hu-feat-adopt-ring span {
    position: relative;
    z-index: 1;
    font-size: 0.62rem;
    font-weight: 700;
    color: #2d2a26;
}

/* ── Page Traffic ── */
.hu-pages-grid { width: 100%; }

.hu-page-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f0ec;
}

.hu-page-row:last-child { border-bottom: none; }

.hu-page-rank {
    width: 24px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9b9590;
    text-align: center;
    flex-shrink: 0;
}

.hu-page-name {
    width: 150px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #2d2a26;
    white-space: nowrap;
    flex-shrink: 0;
}

.hu-page-bar {
    flex: 1;
    height: 8px;
    background: #f3f0ec;
    border-radius: 4px;
    overflow: hidden;
}

.hu-page-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1E6332, #2F8542);
    border-radius: 4px;
    min-width: 4px;
}

.hu-page-count {
    width: 40px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2d2a26;
    flex-shrink: 0;
}

/* ── User medals ── */
.hu-medal-gold { color: #d97706 !important; }
.hu-medal-silver { color: #6b7280 !important; }
.hu-medal-bronze { color: #C19A6B !important; }

.hu-bar-count {
    width: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2d2a26;
    text-align: right;
    flex-shrink: 0;
}

/* User rows */
.hu-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f0ec;
}

.hu-user-row:last-child { border-bottom: none; }

.hu-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1E6332, #2F8542);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hu-user-info { flex: 1; min-width: 0; }
.hu-user-name { font-size: 0.82rem; font-weight: 500; color: #2d2a26; }
.hu-user-email { font-size: 0.72rem; color: #9b9590; }

.hu-user-stats {
    text-align: right;
    flex-shrink: 0;
}

.hu-user-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1E6332;
    display: block;
}

.hu-user-last {
    font-size: 0.7rem;
    color: #9b9590;
}

/* User rank number */
.hu-user-rank {
    font-size: 0.72rem;
    font-weight: 700;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Activity feed */
.hu-feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-bottom: 1px solid #f3f0ec;
    font-size: 0.82rem;
    border-radius: 8px;
    transition: background 0.12s;
}

.hu-feed-item:hover { background: #faf9f7; }
.hu-feed-item:last-child { border-bottom: none; }

/* Soften navigation entries */
.hu-feed-nav { opacity: 0.55; }
.hu-feed-nav:hover { opacity: 1; }

.hu-feed-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.68rem;
}

.hu-feed-body { flex: 1; line-height: 1.4; min-width: 0; }
.hu-feed-user { font-weight: 600; color: #2d2a26; }
.hu-feed-action { color: #6b6560; }
.hu-feed-target { color: #1E6332; font-weight: 600; }
.hu-feed-time { font-size: 0.72rem; color: #9b9590; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 1200px) {
    .hu-kpis { grid-template-columns: repeat(3, 1fr); }
    .hu-feat-header, .hu-feat-row { grid-template-columns: 1fr 60px 1fr 70px; }
}
/* ── Toolbar ── */
.hu-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.hu-toolbar-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Unique toggle */
.hu-unique-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.hu-unique-toggle input { display: none; }
.hu-unique-slider {
    width: 36px; height: 20px; border-radius: 10px; background: #d1cdc8; position: relative; transition: background 0.2s;
}
.hu-unique-slider::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hu-unique-toggle input:checked + .hu-unique-slider { background: #1E6332; }
.hu-unique-toggle input:checked + .hu-unique-slider::after { transform: translateX(16px); }
.hu-unique-label { font-size: 0.78rem; color: #6b6560; font-weight: 500; }

/* Growth indicators */
.hu-growth { font-size: 0.65rem; font-weight: 600; border-radius: 3px; padding: 1px 5px; margin-left: 4px; }
.hu-up { color: #1E6332; background: rgba(30,99,50,0.1); }
.hu-down { color: #dc2626; background: rgba(220,38,38,0.1); }

/* Card header with right-side element */
.hu-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.hu-card-header .hu-card-title { margin-bottom: 0; }

/* ── User Acquisition (redesigned) ── */

/* 3 stat tiles */
.hu-acq-tiles { display: flex; gap: 8px; margin-bottom: 14px; }
.hu-acq-tile {
    flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; border: 1px solid #f0ede8;
    transition: all 0.15s;
}
.hu-acq-tile:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.hu-acq-tile-num { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.hu-acq-tile-lbl { font-size: 0.65rem; color: #9b9590; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 500; margin-top: 2px; }
.hu-acq-tile-active  { background: #f7faf8; border-color: #d4e8db; }
.hu-acq-tile-active .hu-acq-tile-num { color: #1E6332; }
.hu-acq-tile-inactive { background: #fef7f7; border-color: #f5d5d5; }
.hu-acq-tile-inactive .hu-acq-tile-num { color: #dc2626; }
.hu-acq-tile-new { background: #f7f9fe; border-color: #d5dff5; }
.hu-acq-tile-new .hu-acq-tile-num { color: #3b82f6; }

/* Adoption bar */
.hu-acq-adopt { margin-bottom: 14px; padding: 8px; border-radius: 8px; transition: background 0.15s; }
.hu-acq-adopt:hover { background: #f8f7f5; }
.hu-acq-adopt-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.hu-acq-adopt-title { font-size: 0.78rem; font-weight: 600; color: #2d2a26; }
.hu-acq-adopt-pct { font-size: 1.1rem; font-weight: 700; color: #1E6332; }
.hu-acq-adopt-track { height: 10px; background: #f0ede8; border-radius: 5px; overflow: hidden; }
.hu-acq-adopt-fill { height: 100%; background: linear-gradient(90deg, #1E6332, #2F8542); border-radius: 5px; transition: width 0.5s ease; min-width: 3px; }
.hu-acq-adopt-meta { font-size: 0.7rem; color: #9b9590; margin-top: 4px; }

/* New users section */
.hu-acq-new-section { }
.hu-acq-new-title { font-size: 0.75rem; font-weight: 600; color: #2d2a26; margin-bottom: 6px; }
.hu-acq-new-list { display: flex; flex-direction: column; gap: 4px; }
.hu-acq-new-item { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; }
.hu-acq-new-item:hover { background: #f8f7f5; }
.hu-acq-new-avatar {
    width: 24px; height: 24px; border-radius: 50%; background: #1E6332; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 600; flex-shrink: 0;
}
.hu-acq-new-name { flex: 1; font-size: 0.78rem; font-weight: 500; color: #2d2a26; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hu-acq-new-date { font-size: 0.7rem; color: #9b9590; flex-shrink: 0; }
.hu-acq-new-more { font-size: 0.7rem; color: #9b9590; padding: 2px 8px; }

/* Legacy .hu-acq-stats — kept for Users sub-tab which still uses old layout */
.hu-acq-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.hu-acq-stat { flex: 1; text-align: center; padding: 10px; background: #f8f7f5; border-radius: 8px; }
.hu-acq-num { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.hu-acq-lbl { font-size: 0.68rem; color: #9b9590; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 500; }

.hu-acq-donut-wrap { text-align: center; flex-shrink: 0; }
.hu-acq-donut {
    width: 80px; height: 80px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    position: relative; margin: 0 auto;
}
.hu-acq-donut::before { content: ''; position: absolute; width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.hu-acq-donut span { position: relative; z-index: 1; font-size: 1rem; font-weight: 700; color: #1E6332; }
.hu-acq-donut-label { font-size: 0.68rem; color: #9b9590; margin-top: 4px; font-weight: 500; }
.hu-acq-new-item { display: flex; justify-content: space-between; padding: 4px 8px; font-size: 0.78rem; border-radius: 4px; }
.hu-acq-new-item:hover { background: #f8f7f5; }
.hu-acq-new-name { color: #2d2a26; font-weight: 500; }
.hu-acq-new-date { color: #9b9590; font-size: 0.72rem; }

/* ── Peak Usage ── */
.hu-peak-label { font-size: 0.72rem; font-weight: 600; color: #9b9590; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }

.hu-peak-hours { display: flex; align-items: flex-end; gap: 2px; height: 80px; padding-bottom: 18px; position: relative; }
.hu-peak-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.hu-peak-bar { width: 100%; border-radius: 2px 2px 0 0; transition: height 0.3s ease; min-height: 1px; }
.hu-peak-hr { position: absolute; bottom: -16px; font-size: 0.55rem; color: #9b9590; white-space: nowrap; }

.hu-peak-days { display: flex; flex-direction: column; gap: 4px; }
.hu-peak-day { display: flex; align-items: center; gap: 8px; }
.hu-peak-day-lbl { width: 30px; font-size: 0.72rem; color: #6b6560; font-weight: 500; flex-shrink: 0; }
.hu-peak-day-bar { flex: 1; height: 12px; background: #f3f0ec; border-radius: 6px; overflow: hidden; }
.hu-peak-day-val { width: 30px; font-size: 0.72rem; font-weight: 600; color: #2d2a26; text-align: right; flex-shrink: 0; }

/* ── Browser/OS ── */
.hu-browser-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.8rem; }
.hu-browser-name { width: 70px; color: #2d2a26; font-weight: 500; flex-shrink: 0; }
.hu-browser-bar { flex: 1; height: 8px; background: #f3f0ec; border-radius: 4px; overflow: hidden; }
.hu-browser-pct { width: 36px; text-align: right; font-size: 0.72rem; font-weight: 600; color: #6b6560; flex-shrink: 0; }

/* ── Drill-down Modal ── */
.hu-drill-overlay {
    position: fixed; inset: 0; z-index: 10500; background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
}
.hu-drill-panel {
    background: #fff; border-radius: 14px; width: 90%; max-width: 750px; max-height: 80vh;
    display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.hu-drill-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #e5e1da;
    background: linear-gradient(135deg, #1E6332, #2F8542); color: #fff;
}
.hu-drill-header h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.hu-drill-header button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.4rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.hu-drill-header button:hover { color: #fff; }
.hu-drill-body { padding: 20px; overflow-y: auto; flex: 1; }
.hu-drill-stat-row { display: flex; gap: 12px; margin-bottom: 16px; }
.hu-drill-stat { flex: 1; text-align: center; padding: 10px; background: #f8f7f5; border-radius: 8px; font-size: 0.82rem; color: #6b6560; }
.hu-drill-stat strong { display: block; font-size: 1.2rem; color: #2d2a26; margin-bottom: 2px; }

/* "Showing N of M" sample-disclosure label above the recent-activity
   table — clarifies that the headline stats are accurate but the table
   below may be a sample from the capped log cache */
.hu-drill-sample-label {
    font-size: 0.72rem;
    color: #8b8580;
    margin: 12px 0 6px;
    padding: 6px 10px;
    background: #faf9f7;
    border-left: 3px solid #C19A6B;
    border-radius: 4px;
}

.hu-drill-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.hu-drill-table th { position: sticky; top: 0; z-index: 1; background: #f8f7f5; padding: 8px 10px; text-align: left; font-weight: 600; color: #6b6560; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 2px solid #e5e1da; }
.hu-drill-table td { padding: 7px 10px; border-bottom: 1px solid #f3f0ec; color: #2d2a26; }
.hu-drill-table tr:hover td { background: #faf9f7; }

/* Scroll wrapper so the table scrolls internally and the pager stays
   reachable below it (user-activity drill-down, 500 rows/page) */
.hu-drill-scroll { max-height: 48vh; overflow-y: auto; border: 1px solid #f0ece6; border-radius: 8px; }

/* Pager controls under the activity table */
.hu-drill-pager {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-top: 12px;
}
.hu-pager-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #d8d2c8; color: #1E6332;
    padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.hu-pager-btn:hover:not(:disabled) { background: #F4F0E9; border-color: #1E6332; }
.hu-pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hu-pager-info { font-size: 0.78rem; color: #6b6560; font-weight: 600; }

/* Small green spinner used while a drill page loads */
.hu-drill-spinner {
    width: 34px; height: 34px; margin: 0 auto 10px;
    border: 3px solid #e5e1da; border-top-color: #1E6332; border-radius: 50%;
    animation: progressSpin 0.8s linear infinite;
}

/* ── Custom Tooltip ── */
.hu-tooltip {
    position: fixed;
    z-index: 11000;
    background: #2d2a26;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 300px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: none;
    font-family: 'Futura PT', 'Jost', sans-serif;
}

/* Clickable row hover effect */
.hu-clickable {
    cursor: pointer;
    transition: background 0.12s, box-shadow 0.12s;
}
.hu-clickable:hover {
    background: #f8f7f5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .hu-kpis { grid-template-columns: repeat(3, 1fr); }
    .hu-feat-header, .hu-feat-row { grid-template-columns: 1fr 60px 1fr 70px; }
}
@media (max-width: 768px) {
    .hu-kpis { grid-template-columns: repeat(2, 1fr); }
    .hu-grid { grid-template-columns: 1fr; }
    .hu-toolbar { flex-direction: column; align-items: flex-start; }
    .hu-feat-header, .hu-feat-row { grid-template-columns: 1fr 50px 1fr 60px; gap: 6px; }
    .hu-feat-name span { font-size: 0.75rem; }
    .hu-page-name { width: 110px; }
    .hu-drill-panel { width: 95%; max-height: 90vh; }
    .hu-acq-stats { flex-direction: column; }
    .hu-peak-hours { height: 60px; }
    .hu-grid-env-left { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════
   HUB USAGE ANALYTICS — Sub-Tab System + Enhanced Views
   ═══════════════════════════════════════════════════════ */

/* ── Sub-Tab Navigation ── */
.hu-subtabs {
    display: flex; gap: 2px; margin: -4px 0 16px; padding: 3px;
    background: #f3f0ec; border-radius: 10px;
}
.hu-subtab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 14px; border: none; background: transparent; color: #6b6560;
    font-family: 'Futura PT','Jost',sans-serif; font-size: 0.82rem; font-weight: 500;
    border-radius: 8px; cursor: pointer; transition: all .2s;
}
.hu-subtab:hover { background: #e8e4df; color: #2d2a26; }
.hu-subtab.active {
    background: #fff; color: #1E6332; font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hu-subtab i { font-size: 0.78rem; }
.hu-subtab-panel { animation: huFadeIn .25s ease; }
@keyframes huFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Platform Split (legacy, still used by bar) ── */
.hu-platform-split { margin-bottom: 12px; }
.hu-plat-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
.hu-plat-fill { height: 100%; transition: width .4s; }
.hu-plat-legend { display: flex; gap: 16px; font-size: 0.78rem; color: #6b6560; }
.hu-plat-legend i { margin-right: 4px; }

/* ── Enhanced Platform & Environment ── */

/* Devices — donut + cards layout */
.hu-env-devices { display: flex; align-items: flex-start; gap: 20px; }
.hu-env-donut-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.hu-env-donut-wrap svg { display: block; }
.hu-env-donut-center {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none;
}
.hu-env-donut-number { font-size: 1.4rem; font-weight: 700; color: #2d2a26; line-height: 1; }
.hu-env-donut-label { font-size: 0.65rem; color: #9b9590; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.hu-env-device-cards { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hu-env-device-card {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    border-radius: 10px; background: #faf9f7; border: 1px solid #f0ede8;
    transition: all 0.2s;
}
.hu-env-device-card:hover { background: #f5f3f0; border-color: #e5e1da; }
.hu-env-device-top { background: #f7faf8; border-color: #d4e8db; }
.hu-env-device-empty { opacity: 0.55; border-style: dashed; }
.hu-env-device-empty:hover { opacity: 0.75; }
.hu-env-device-top:hover { background: #eef5f0; }
.hu-env-device-icon-wrap {
    width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0;
}
.hu-env-device-info { flex: 1; min-width: 0; }
.hu-env-device-name { font-size: 0.82rem; font-weight: 600; color: #2d2a26; }
.hu-env-device-desc { font-size: 0.7rem; font-weight: 400; color: #9b9590; margin-left: 4px; }
.hu-env-device-stats { font-size: 0.75rem; color: #6b6560; margin-top: 1px; }
.hu-env-device-stats strong { font-size: 0.9rem; color: var(--dev-color, #2d2a26); }
.hu-env-device-meta { color: #9b9590; }
.hu-env-device-zero { font-size: 0.75rem; color: #c5c0ba; font-style: italic; }
.hu-env-device-bar { width: 50px; height: 5px; background: #f0ede8; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.hu-env-device-bar > div { height: 100%; border-radius: 3px; transition: width 0.4s ease; }

/* Platform — web vs native cards */
.hu-env-platform { }
.hu-env-plat-cards { display: flex; gap: 10px; }
.hu-env-plat-card {
    flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: #faf9f7; border: 1px solid #f0ede8; border-radius: 10px;
    transition: all 0.2s;
}
.hu-env-plat-card:hover { background: #f5f3f0; border-color: #e5e1da; }
.hu-env-plat-empty { opacity: 0.55; border-style: dashed; }
.hu-env-plat-empty:hover { opacity: 0.75; }
.hu-env-plat-icon {
    width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0;
}
.hu-env-plat-info { flex: 1; min-width: 0; }
.hu-env-plat-name { font-size: 0.78rem; font-weight: 600; color: #2d2a26; }
.hu-env-plat-num { font-size: 0.95rem; font-weight: 700; color: #2d2a26; }
.hu-env-plat-detail { font-size: 0.7rem; font-weight: 400; color: #9b9590; }

/* Shared bar row style — browsers & OS */
.hu-env-bar-row {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px;
    border-radius: 8px; transition: background 0.15s;
}
.hu-env-bar-row:hover { background: #faf9f7; }
.hu-env-bar-top { background: #f7faf8; }
.hu-env-bar-icon {
    width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
}
.hu-env-bar-content { flex: 1; min-width: 0; }
.hu-env-bar-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.hu-env-bar-name { font-size: 0.8rem; font-weight: 600; color: #2d2a26; }
.hu-env-bar-values { font-size: 0.78rem; font-weight: 600; color: #2d2a26; }
.hu-env-bar-pct { font-size: 0.7rem; font-weight: 400; color: #9b9590; }
.hu-env-bar-track { height: 6px; background: #f0ede8; border-radius: 3px; overflow: hidden; }
.hu-env-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }

/* Device × OS cross-tab */
.hu-env-crosstab { overflow-x: auto; }
.hu-env-ct-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.78rem; }
.hu-env-ct-table th {
    padding: 8px 10px; text-align: center; font-weight: 600; color: #6b6560; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 2px solid #e5e1da; background: #faf9f7;
}
.hu-env-ct-table th:first-child { text-align: left; }
.hu-env-ct-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #f3f0ec; }
.hu-env-ct-table tr:hover td { background: #faf9f7; }
.hu-env-ct-dev { text-align: left !important; font-weight: 600; color: #2d2a26; white-space: nowrap; }
.hu-env-ct-cell { vertical-align: middle; }
.hu-env-ct-val {
    display: inline-block; padding: 3px 10px; border-radius: 6px; color: #fff; font-weight: 600;
    font-size: 0.78rem; min-width: 36px;
}
.hu-env-ct-pct { font-size: 0.65rem; color: #9b9590; margin-top: 2px; }
.hu-env-ct-total { font-weight: 700; color: #1E6332; }
.hu-env-ct-zero { color: #d1cdc7; font-size: 0.75rem; }
.hu-env-ct-empty-row td { opacity: 0.5; }
.hu-env-ct-empty-row .hu-env-ct-dev { font-style: italic; }

/* Responsive — stack device donut on small screens */
@media (max-width: 600px) {
    .hu-env-devices { flex-direction: column; align-items: center; }
    .hu-env-plat-cards { flex-direction: column; }
}

/* ── Activity Heatmap (Day × Hour) ── */
.hu-heatmap { overflow-x: auto; display: flex; flex-direction: column; gap: 2px; }
.hu-hm-row { display: flex; gap: 2px; align-items: center; }
.hu-hm-day-label { width: 30px; font-size: 0.65rem; color: #6b6560; text-align: right; padding-right: 4px; flex-shrink: 0; }
.hu-hm-hour-label { flex: 1; min-width: 0; text-align: center; font-size: 0.55rem; color: #9b9590; }
.hu-hm-cell { flex: 1; min-width: 0; height: 18px; border-radius: 3px; transition: transform .15s; cursor: default; }
.hu-hm-cell:hover { transform: scale(1.3); z-index: 2; box-shadow: 0 0 0 2px #1E6332; }
.hu-hm-legend { display: flex; align-items: center; gap: 4px; margin-top: 4px; padding-left: 34px; font-size: 0.65rem; color: #9b9590; flex-shrink: 0; }
.hu-hm-legend-cell { width: 14px; height: 14px; border-radius: 3px; }

/* ── Top Features Overview ── */
.hu-topfeat-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; transition: background .15s; cursor: pointer; }
.hu-topfeat-row:hover { background: #f3f0ec; }
.hu-topfeat-rank { width: 20px; text-align: center; font-size: 0.75rem; font-weight: 600; color: #9b9590; }
.hu-topfeat-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7rem; flex-shrink: 0; }
.hu-topfeat-info { flex: 1; min-width: 0; }
.hu-topfeat-name { font-size: 0.78rem; font-weight: 500; color: #2d2a26; margin-bottom: 3px; }
.hu-topfeat-bar { height: 5px; background: #f3f0ec; border-radius: 3px; overflow: hidden; }
.hu-topfeat-bar > div { height: 100%; border-radius: 3px; transition: width .4s; }
.hu-topfeat-count { font-size: 0.8rem; font-weight: 600; color: #2d2a26; min-width: 40px; text-align: right; }

/* ── User Segments ── */
.hu-segments { display: flex; flex-direction: column; gap: 8px; }
.hu-segment-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #f8f7f5; }
.hu-segment-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.hu-segment-info { flex: 1; min-width: 0; }
.hu-segment-label { font-size: 0.82rem; font-weight: 600; color: #2d2a26; }
.hu-segment-desc { font-size: 0.7rem; color: #9b9590; }
.hu-segment-count { font-size: 1rem; font-weight: 700; color: #2d2a26; min-width: 36px; text-align: right; }
.hu-segment-pct { font-size: 0.75rem; color: #6b6560; min-width: 36px; text-align: right; }
.hu-segment-bar { width: 60px; height: 6px; background: #e5e1da; border-radius: 3px; overflow: hidden; }
.hu-segment-bar > div { height: 100%; border-radius: 3px; }

/* ── Role Distribution ── */
.hu-role-donut-wrap { display: flex; justify-content: center; margin: 16px 0; }
.hu-role-donut { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.hu-role-donut::after { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #fff; }
.hu-role-donut > span { position: relative; z-index: 1; font-size: 1.2rem; font-weight: 700; color: #2d2a26; }
.hu-role-legend { display: flex; flex-direction: column; gap: 8px; }
.hu-role-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.hu-role-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hu-role-label { flex: 1; color: #2d2a26; }
.hu-role-count { color: #6b6560; font-size: 0.75rem; }

/* ── Engagement Leaderboard ── */
.hu-leader-header { display: grid; grid-template-columns: 36px 1fr 64px 70px 60px 70px 80px; gap: 8px; padding: 8px 10px; font-size: 0.7rem; font-weight: 600; color: #9b9590; text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 1px solid #e5e1da; }
.hu-leader-row { display: grid; grid-template-columns: 36px 1fr 64px 70px 60px 70px 80px; gap: 8px; padding: 10px; align-items: center; border-radius: 6px; transition: background .15s; cursor: pointer; }
.hu-leader-row:hover { background: #f8f7f5; }
.hu-leader-rank { text-align: center; font-weight: 600; font-size: 0.8rem; color: #9b9590; }
.hu-leader-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hu-leader-name { font-size: 0.82rem; font-weight: 500; color: #2d2a26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hu-leader-email { font-size: 0.7rem; color: #9b9590; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hu-leader-score { display: flex; justify-content: center; }
.hu-score-ring { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), #e5e1da calc(var(--pct) * 1%)); position: relative; }
.hu-score-ring::after { content: ''; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.hu-score-ring > span { position: relative; z-index: 1; color: var(--ring-color); }
.hu-leader-acts, .hu-leader-avg, .hu-leader-feats { text-align: center; font-size: 0.8rem; font-weight: 500; color: #2d2a26; }
.hu-leader-last { font-size: 0.72rem; color: #9b9590; text-align: right; }

/* ── Last Seen Distribution ── */
.hu-dist-bars { display: flex; gap: 8px; height: 140px; align-items: flex-end; padding-top: 10px; }
.hu-dist-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.hu-dist-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hu-dist-bar { width: 80%; max-width: 48px; border-radius: 4px 4px 0 0; transition: height .4s; }
.hu-dist-count { font-size: 0.78rem; font-weight: 600; color: #2d2a26; margin-top: 4px; }
.hu-dist-label { font-size: 0.65rem; color: #9b9590; text-align: center; line-height: 1.1; }

/* ── Session Frequency ── */
.hu-freq-bars { display: flex; flex-direction: column; gap: 10px; }
.hu-freq-item { display: flex; align-items: center; gap: 10px; }
.hu-freq-label { width: 90px; flex-shrink: 0; font-size: 0.78rem; line-height: 1.2; }
.hu-freq-label strong { color: #2d2a26; }
.hu-freq-label small { color: #9b9590; font-size: 0.68rem; }
.hu-freq-bar-track { flex: 1; height: 8px; background: #f3f0ec; border-radius: 4px; overflow: hidden; }
.hu-freq-bar-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.hu-freq-count { font-size: 0.82rem; font-weight: 600; color: #2d2a26; min-width: 30px; text-align: right; }

/* ── New User Timeline ── */
.hu-new-timeline { padding: 0 4px; }
.hu-ntl-date { font-size: 0.72rem; font-weight: 600; color: #1E6332; padding: 12px 0 6px; border-bottom: 1px solid #e5e1da; margin-bottom: 6px; }
.hu-ntl-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.hu-ntl-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1E6332; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; flex-shrink: 0; }
.hu-ntl-info { flex: 1; min-width: 0; }
.hu-ntl-name { font-size: 0.82rem; font-weight: 500; color: #2d2a26; }
.hu-ntl-email { font-size: 0.7rem; color: #9b9590; }
.hu-ntl-time { font-size: 0.72rem; color: #9b9590; }

/* ── Retention Cohorts ── */
.hu-cohort-table { overflow-x: auto; }
.hu-cohort-table table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.hu-cohort-table th { padding: 6px 8px; background: #f3f0ec; color: #6b6560; font-weight: 600; text-align: center; white-space: nowrap; }
.hu-cohort-table td { padding: 6px 8px; text-align: center; border: 1px solid #f3f0ec; }
.hu-cohort-label { font-weight: 500; color: #2d2a26; text-align: left !important; white-space: nowrap; }
.hu-cohort-total { font-weight: 600; color: #1E6332; }
.hu-cohort-cell { font-size: 0.72rem; font-weight: 500; min-width: 48px; transition: background .2s; }

/* ── Feature Discovery ── */
.hu-discovery-list { display: flex; flex-direction: column; gap: 6px; }
.hu-discovery-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.hu-discovery-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; flex-shrink: 0; }
.hu-discovery-info { flex: 1; min-width: 0; }
.hu-discovery-info > span { font-size: 0.8rem; font-weight: 500; color: #2d2a26; display: block; margin-bottom: 3px; }
.hu-discovery-bar { height: 5px; background: #f3f0ec; border-radius: 3px; overflow: hidden; }
.hu-discovery-bar > div { height: 100%; border-radius: 3px; }
.hu-discovery-count { font-size: 0.82rem; font-weight: 600; color: #2d2a26; white-space: nowrap; }
.hu-discovery-count small { font-weight: 400; color: #9b9590; }

/* ── Feature by Role ── */
.hu-role-feat-legend { display: flex; gap: 16px; margin-bottom: 12px; font-size: 0.75rem; color: #6b6560; }
.hu-role-feat-legend .hu-role-dot { display: inline-block; margin-right: 4px; }
.hu-role-feat-list { display: flex; flex-direction: column; gap: 6px; }
.hu-role-feat-row { display: flex; align-items: center; gap: 10px; }
.hu-role-feat-label { width: 120px; font-size: 0.78rem; font-weight: 500; color: #2d2a26; flex-shrink: 0; }
.hu-role-feat-bars { flex: 1; height: 14px; display: flex; border-radius: 4px; overflow: hidden; background: #f3f0ec; }
.hu-role-feat-seg { height: 100%; transition: width .4s; }
.hu-role-feat-total { font-size: 0.78rem; font-weight: 600; color: #2d2a26; min-width: 36px; text-align: right; }

/* (Feature Correlation card removed — was based on cached log scanning,
   noisy and not reliable. Old `.hu-corr-*` classes deleted.) */

/* ── Underutilized Features ── */
/* Status summary line shown above the list (e.g. "2 Critical · 5 Low · 1 Never Used (of 7 active users)") */
.hu-under-summary {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b6560;
    padding: 8px 12px;
    background: #faf9f7;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #C19A6B;
}
.hu-under-list { display: flex; flex-direction: column; gap: 8px; }
.hu-under-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f8f7f5; border-radius: 8px; border: 1px solid #e5e1da; }
.hu-under-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.hu-under-info { flex: 1; min-width: 0; }
.hu-under-name { font-size: 0.82rem; font-weight: 600; color: #2d2a26; }
.hu-under-desc { font-size: 0.7rem; color: #9b9590; margin-top: 2px; }
.hu-under-stats { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hu-under-badge { padding: 2px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 600; }
.hu-under-pct { font-size: 0.75rem; color: #6b6560; }
.hu-under-users { font-size: 0.75rem; color: #9b9590; }

/* ── Navigation Paths ── */
.hu-paths-list { display: flex; flex-direction: column; gap: 6px; }
.hu-path-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; }
.hu-path-row:hover { background: #f8f7f5; }
.hu-path-rank { width: 24px; text-align: center; font-size: 0.75rem; font-weight: 600; color: #9b9590; }
.hu-path-steps { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; flex-wrap: wrap; }
.hu-path-step { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: #f3f0ec; border-radius: 6px; font-size: 0.72rem; font-weight: 500; color: #2d2a26; white-space: nowrap; }
.hu-path-step i { font-size: 0.65rem; color: #1E6332; opacity: 0.6; }
.hu-path-arrow { font-size: 0.55rem; color: #d1cdc8; }
.hu-path-bar { width: 60px; height: 6px; background: #f3f0ec; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.hu-path-bar > div { height: 100%; border-radius: 3px; }
.hu-path-count { font-size: 0.78rem; font-weight: 600; color: #2d2a26; min-width: 30px; text-align: right; }

/* ── Page × Time Heatmap ── */
.hu-page-hm { overflow-x: auto; }
.hu-phm-row { display: flex; gap: 2px; align-items: center; }
.hu-phm-row + .hu-phm-row { margin-top: 2px; }
.hu-phm-page-label { width: 100px; font-size: 0.68rem; color: #6b6560; text-align: right; padding-right: 6px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hu-phm-hour-label { width: 18px; min-width: 18px; text-align: center; font-size: 0.58rem; color: #9b9590; }
.hu-phm-cell { width: 18px; height: 18px; min-width: 18px; border-radius: 2px; cursor: default; }

/* ── Export Button ── */
.hu-export-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 1px solid #e5e1da; background: #fff;
    border-radius: 6px; color: #9b9590; cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.hu-export-btn:hover { background: #1E6332; color: #fff; border-color: #1E6332; }
.hu-export-btn i { font-size: 0.72rem; }

/* ── Engagement Summary ── */
.hu-engage-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 10px; }
.hu-engage-seg { height: 100%; color: #fff; font-size: 0.6rem; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.hu-engage-seg:hover { filter: brightness(1.15); }
.hu-engage-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.hu-engage-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #6b6560; border-radius: 4px; padding: 2px 4px; transition: background .15s; }
.hu-engage-legend-item:hover { background: #f3f0ec; }
.hu-engage-legend-item strong { color: #2d2a26; margin-left: 2px; }
.hu-engage-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hu-engage-user { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; transition: background .15s; }
.hu-engage-user:hover { background: #f3f0ec; }
.hu-engage-rank { width: 18px; text-align: center; font-size: 0.7rem; font-weight: 600; color: #9b9590; }
.hu-engage-uname { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.hu-engage-uname-name { font-size: 0.78rem; color: #2d2a26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hu-engage-uname-email { font-size: 0.66rem; color: #9b9590; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dark-theme .hu-engage-uname-name { color: #e2e8f0; }
body.dark-theme .hu-engage-uname-email { color: #94a3b8; }
.hu-engage-ucount { font-size: 0.78rem; font-weight: 600; color: #1E6332; flex-shrink: 0; }

/* ── Card subtitle row helper ── */
.hu-card-subtitle-row { display: flex; align-items: center; }

/* ── Responsive: sub-tabs ── */
@media (max-width: 900px) {
    .hu-subtab span { display: none; }
    .hu-subtab { padding: 9px 12px; }
    .hu-leader-header, .hu-leader-row { grid-template-columns: 30px 1fr 50px 50px; }
    .hu-leader-avg, .hu-leader-feats, .hu-leader-last { display: none; }
    .hu-corr-pair { flex-direction: column; gap: 3px; }
    .hu-corr-link { display: none; }
}

/* ============================================================
   HOME PAGE MODE PICKER (custom builder vs native page)
   ============================================================ */
.home-mode-picker {
    background: #fff;
    border: 1px solid #e5e1da;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.home-mode-header h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-mode-header h4 i { color: #1E6332; }
.home-mode-header p { margin: 0 0 16px 0; font-size: 13px; color: #6b7280; }

.home-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.home-mode-option {
    position: relative;
    border: 2px solid #e5e1da;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    background: #fff;
}
.home-mode-option:hover {
    border-color: #1E6332;
    box-shadow: 0 4px 12px rgba(30, 99, 50, 0.08);
}
.home-mode-option.active {
    border-color: #1E6332;
    background: #F4F0E9;
}

.home-mode-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #F4F0E9;
    color: #1E6332;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.home-mode-option.active .home-mode-icon { background: #1E6332; color: #fff; }

.home-mode-body { flex: 1; }
.home-mode-title { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.home-mode-desc { font-size: 12px; color: #6b7280; line-height: 1.5; }

.home-mode-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1E6332;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.home-mode-option.active .home-mode-check { display: flex; }

/* Status badges on each mode card — "Live" (currently published) vs
   "Selected" (admin's pending draft choice, not yet published). */
.home-mode-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.home-mode-live-pill,
.home-mode-draft-pill {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}
.home-mode-live-pill {
    background: #1E6332;
    color: #fff;
}
.home-mode-draft-pill {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.home-mode-option.is-live .home-mode-live-pill { display: inline-flex; }
.home-mode-option.has-changes .home-mode-draft-pill { display: inline-flex; }
/* Hide the redundant "selected" pill on the card that's also currently live —
   we only need the green Live pill in that case. The .has-changes class is
   only added when the draft DIFFERS from the published mode, so this is
   already mutually exclusive — but be explicit. */
.home-mode-option.is-live.has-changes .home-mode-draft-pill { display: none; }

/* When the draft mode differs from the live mode, the active card gets a
   subtle amber outline to signal "this is selected but not yet live". */
.home-mode-option.has-changes {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10) !important;
}
.home-mode-option.has-changes .home-mode-icon {
    background: #f59e0b;
    color: #fff;
}

/* ─── Publish bar — sits between the mode picker and the working panel ─── */
.home-mode-publish-bar {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.10);
}
.hm-publish-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.hm-publish-bar-info > i {
    color: #b45309;
    font-size: 22px;
    flex-shrink: 0;
}
.hm-publish-bar-info > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hm-publish-bar-info strong {
    font-size: 13px;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.hm-publish-bar-info span {
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}
.hm-publish-bar-info b { color: #1f2937; font-weight: 700; }
.hm-publish-bar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.hm-publish-discard,
.hm-publish-go {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}
.hm-publish-discard {
    background: #fff;
    color: #78350f;
    border: 1px solid #fcd34d;
}
.hm-publish-discard:hover {
    background: #fffbeb;
    border-color: #f59e0b;
}
.hm-publish-go {
    background: #1E6332;
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 99, 50, 0.20);
}
.hm-publish-go:hover {
    background: #214A3E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 99, 50, 0.30);
}
@media (max-width: 768px) {
    .home-mode-publish-bar { flex-direction: column; align-items: stretch; }
    .hm-publish-bar-actions { justify-content: flex-end; }
}

/* Dark theme */
body.dark-theme .home-mode-publish-bar {
    background: linear-gradient(135deg, #1a1410 0%, #2c1f10 100%);
    border-color: #d97706;
}
body.dark-theme .hm-publish-bar-info strong { color: #fcd34d; }
body.dark-theme .hm-publish-bar-info span { color: #fde68a; }
body.dark-theme .hm-publish-bar-info b { color: #f1f5f9; }
body.dark-theme .hm-publish-discard {
    background: #0f172a;
    color: #fcd34d;
    border-color: #b45309;
}
body.dark-theme .hm-publish-discard:hover { background: #1e293b; }

/* Native preview panel */
.home-native-preview-card {
    background: #fff;
    border: 1px solid #e5e1da;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.home-native-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1ede7;
}
.home-native-preview-header h4 { margin: 0; font-size: 15px; color: #111827; display: flex; align-items: center; gap: 8px; }
.home-native-preview-header h4 i { color: #1E6332; }

.home-mode-preview-link {
    color: #1E6332;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.home-mode-preview-link:hover { text-decoration: underline; }

.home-native-feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.home-native-feature-list li {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-native-feature-list li i { color: #1E6332; font-size: 11px; }

.home-native-switch-hint {
    margin: 12px 0 0 0;
    padding: 10px 14px;
    background: #F4F0E9;
    border-left: 3px solid #1E6332;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
}

@media (max-width: 768px) {
    .home-mode-options { grid-template-columns: 1fr; }
    .home-native-feature-list { grid-template-columns: 1fr; }
}

/* Dark theme */
body.dark-theme .home-mode-picker,
body.dark-theme .home-mode-option,
body.dark-theme .home-native-preview-card { background: #1e293b; border-color: #334155; }
body.dark-theme .home-mode-option.active { background: #0f172a; }
body.dark-theme .home-mode-header h4,
body.dark-theme .home-mode-title,
body.dark-theme .home-native-preview-header h4 { color: #f1f5f9; }
body.dark-theme .home-mode-icon { background: #0f172a; }
body.dark-theme .home-native-feature-list li { color: #cbd5e1; }
body.dark-theme .home-native-switch-hint { background: #0f172a; color: #cbd5e1; }

/* ============================================================
   What's New (Updates) admin — list thumbnails + editor image picker
   ============================================================ */
.kba-update-thumb {
    width: 90px;
    height: 56px;
    border-radius: 8px;
    background: #f3f4f6 center center / cover no-repeat;
    border: 1px solid #e5e1da;
}
.kba-update-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 18px;
    background: #fafaf7;
    border-style: dashed;
}

/* Heading-image picker inside the editor sidebar */
.kbu-image-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #fafaf7;
    border: 1px dashed #d1d5db;
}
.kbu-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kbu-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 13px;
}
.kbu-image-empty i { font-size: 28px; }
.kbu-image-empty.kbu-image-error { color: #dc2626; }

.kbu-image-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.kbu-image-clear:hover { background: rgba(15, 23, 42, 0.85); }

.kbu-image-hint {
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}

.kbu-image-upload-btn {
    width: 100%;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    color: #1E6332;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.kbu-image-upload-btn:hover {
    border-color: #1E6332;
    background: #F4F0E9;
    border-style: solid;
}

/* Dark theme */
body.dark-theme .kba-update-thumb { background-color: #0f172a; border-color: #334155; }
body.dark-theme .kba-update-thumb-empty { background: #0f172a; color: #475569; }
body.dark-theme .kbu-image-preview { background: #0f172a; border-color: #334155; }
body.dark-theme .kbu-image-empty { color: #64748b; }
body.dark-theme .kbu-image-upload-btn { background: #1e293b; color: #4ade80; border-color: #334155; }
body.dark-theme .kbu-image-upload-btn:hover { background: #0f172a; border-color: #4ade80; }

/* ============================================================
   EFF NATIVE PAGE — admin manager tile grid
   Quick-access tiles for managing the dynamic content that feeds
   the Native Home Page sections (events, news, resource center,
   live preview). Sits above the section-reference card.
   ============================================================ */
.hn-mgr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* 3-column variant for the manager grid (used when there are 3 tiles instead of 4) */
.hn-mgr-grid.hn-mgr-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
    .hn-mgr-grid.hn-mgr-grid-3col { grid-template-columns: repeat(2, 1fr); }
}

.hn-mgr-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #e5e1da;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
    width: 100%;
}

.hn-mgr-tile:hover {
    transform: translateY(-2px);
    border-color: #1E6332;
    box-shadow: 0 6px 16px rgba(30, 99, 50, 0.12);
}

.hn-mgr-tile:hover .hn-mgr-tile-arrow {
    color: #1E6332;
    transform: translateX(3px);
}

.hn-mgr-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}
.hn-mgr-tile-icon-events  { background: #F4F0E9; color: #1E6332; }
.hn-mgr-tile-icon-news    { background: #fef3c7; color: #d97706; }
.hn-mgr-tile-icon-tools   { background: #e0e7ff; color: #4338ca; }
.hn-mgr-tile-icon-preview { background: #e9faf0; color: #2F8542; }

.hn-mgr-tile-body { flex: 1; min-width: 0; }
.hn-mgr-tile-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.hn-mgr-tile-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
}
.hn-mgr-tile-desc strong { color: #1E6332; font-weight: 600; }

.hn-mgr-tile-arrow {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

/* Section reference list — small src tag next to each item */
.home-native-feature-src {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
    margin-left: 4px;
}
.home-native-feature-src a { font-style: normal; }

@media (max-width: 768px) {
    .hn-mgr-grid { grid-template-columns: 1fr; }
}

/* Dark theme */
body.dark-theme .hn-mgr-tile { background: #1e293b; border-color: #334155; }
body.dark-theme .hn-mgr-tile:hover { border-color: #4ade80; }
body.dark-theme .hn-mgr-tile-title { color: #f1f5f9; }
body.dark-theme .hn-mgr-tile-desc  { color: #cbd5e1; }
body.dark-theme .hn-mgr-tile-icon-events  { background: #0f172a; color: #4ade80; }
body.dark-theme .hn-mgr-tile-icon-news    { background: #0f172a; color: #fcd34d; }
body.dark-theme .hn-mgr-tile-icon-tools   { background: #0f172a; color: #a5b4fc; }
body.dark-theme .hn-mgr-tile-icon-preview { background: #0f172a; color: #4ade80; }

/* ==================== SUPPORT TICKETS (Admin tab) ==================== */
.hubt-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.hubt-title { font-size: 19px; font-weight: 700; color: #1E6332; margin: 0 0 4px; }
.hubt-title i { margin-right: 8px; }
.hubt-sub { font-size: 13px; color: #6c757d; margin: 0; }
.hubt-head-actions { display: flex; align-items: center; gap: 8px; }
.hubt-select {
    border: 1.5px solid #e3ddd0; border-radius: 8px; padding: 7px 10px;
    font-size: 13px; font-family: 'Futura PT', 'Jost', sans-serif;
    background: #fff; color: #212529; cursor: pointer;
}
.hubt-refresh {
    border: 1.5px solid #e3ddd0; background: #fff; color: #1E6332;
    border-radius: 8px; padding: 7px 11px; cursor: pointer; transition: all 0.15s;
}
.hubt-refresh:hover { background: #F4F0E9; }

/* ── KPI strip — 4 cards, icon left of value, color-coded by purpose ── */
.hubt-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.hubt-kpi {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #e8e3da; border-radius: 14px;
    padding: 14px 16px; transition: transform 0.18s, box-shadow 0.18s;
}
.hubt-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,99,50,0.08); }
.hubt-kpi-ic {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; background: #F4F0E9; color: #1E6332;
}
.hubt-kpi-text { display: flex; flex-direction: column; min-width: 0; }
.hubt-kpi-val { font-size: 24px; font-weight: 800; color: #1E6332; line-height: 1; }
.hubt-kpi-lbl {
    font-size: 11px; font-weight: 600; color: #8a8276;
    text-transform: uppercase; letter-spacing: 0.04em; margin-top: 5px;
}
.hubt-kpi.open     .hubt-kpi-ic { background: #FEF3C7; color: #b45309; }
.hubt-kpi.open     .hubt-kpi-val { color: #b45309; }
.hubt-kpi.resolved .hubt-kpi-ic { background: #D1E7DD; color: #14613a; }
.hubt-kpi.resolved .hubt-kpi-val { color: #14613a; }
.hubt-kpi.urgent   .hubt-kpi-ic { background: #FEE7E7; color: #b91c1c; }
.hubt-kpi.urgent   .hubt-kpi-val { color: #b91c1c; }

.hubt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hubt-chip {
    border: 1.5px solid #e3ddd0; background: #fff; color: #6b5e47;
    padding: 6px 14px; border-radius: 999px; font-size: 12.5px;
    font-weight: 600; cursor: pointer; transition: all 0.15s;
    font-family: 'Futura PT', 'Jost', sans-serif;
}
.hubt-chip:hover { background: #F4F0E9; }
.hubt-chip.active { background: linear-gradient(135deg, #1E6332, #2F8542); color: #fff; border-color: #1E6332; }

/* ── Ticket card — header (icon+subj+badge) / body / foot (chips+action) ── */
.hubt-tickets { display: flex; flex-direction: column; gap: 12px; }
.hubt-ticket {
    display: flex; flex-direction: column;
    border: 1px solid #e8e3da; border-left: 4px solid #cbd5e1;
    border-radius: 14px; padding: 16px 18px; background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hubt-ticket:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(30,99,50,0.07); }

/* Left accent bar now driven by CATEGORY (more useful for at-a-glance) */
.hubt-ticket.hubt-cat-feature_request { border-left-color: #C19A6B; }
.hubt-ticket.hubt-cat-technical       { border-left-color: #dc2626; }
.hubt-ticket.hubt-cat-general         { border-left-color: #1E6332; }
/* legacy: keep the old status-color rules harmless when no category class */
.hubt-ticket.hubt-st-open:not([class*="hubt-cat-"])        { border-left-color: #f59e0b; }
.hubt-ticket.hubt-st-resolved:not([class*="hubt-cat-"])    { border-left-color: #22c55e; }

.hubt-ticket-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px;
}
.hubt-ticket-cat-icon {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.hubt-ticket-cat-icon.req-cat-feature_request { background: #FDF3DE; color: #B8870B; }
.hubt-ticket-cat-icon.req-cat-technical       { background: #FEE7E7; color: #dc2626; }
.hubt-ticket-cat-icon.req-cat-general         { background: #E9F5EE; color: #1E6332; }
.hubt-ticket-head-text { flex: 1; min-width: 0; }
.hubt-ticket-subj { font-weight: 700; font-size: 15px; color: #212529; line-height: 1.3; }
.hubt-ticket-submeta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px;
    font-size: 11.5px; color: #8a8276; margin-top: 3px;
}
.hubt-ticket-ref { color: #475569; font-weight: 600; }
.hubt-ticket-dot { color: #cbd5e1; }

.hubt-ticket-body {
    font-size: 13px; color: #555; line-height: 1.55; margin: 2px 0 12px;
    white-space: pre-wrap; word-break: break-word;
    padding-left: 50px;  /* line up under the head text, past the icon */
}
/* keep legacy selector working so old captures still render */
.hubt-ticket-details { font-size: 13px; color: #555; line-height: 1.55; margin-bottom: 9px; white-space: pre-wrap; word-break: break-word; }

.hubt-ticket-foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    border-top: 1px dashed #e8e3da; padding-top: 12px;
}
.hubt-ticket-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.hubt-ticket-action {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto; flex-shrink: 0;
}
.hubt-ticket-action label {
    font-size: 11px; font-weight: 700; color: #8a8276;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.hubt-ticket-action select {
    border: 1.5px solid #e3ddd0; border-radius: 999px; padding: 6px 12px;
    font-size: 12px; font-family: 'Futura PT', 'Jost', sans-serif;
    background: #fcfbf8; color: #212529; cursor: pointer; min-width: 130px;
    font-weight: 600; transition: all 0.15s;
}
.hubt-ticket-action select:hover { background: #F4F0E9; border-color: #d8c9a8; }
.hubt-ticket-action select:focus { outline: none; border-color: #1E6332; box-shadow: 0 0 0 3px rgba(30,99,50,0.10); }
/* When a ticket is currently resolved, tint the dropdown green so it
   communicates state without obscuring the action. */
.hubt-ticket.hubt-st-resolved .hubt-ticket-action select { background: #E9F5EE; border-color: #b9dac6; color: #14613a; }

/* Initials circle inside the submitter chip */
.hubt-chip-user { background: #fff !important; }
.hubt-user-avatar {
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, #1E6332, #2F8542); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em;
}

.hubt-empty {
    text-align: center; padding: 32px 16px; color: #8a8276;
    font-size: 13.5px; background: #faf8f4;
    border: 1px dashed #e3ddd0; border-radius: 12px;
}
.hubt-empty i { color: #1E6332; margin-right: 6px; }

/* Per-category palettes — also used by the chip inside the foot */
.req-chip-cat.req-cat-feature_request { background: #FDF3DE; color: #B8870B; border-color: #f1d8a8; }
.req-chip-cat.req-cat-technical       { background: #FEE7E7; color: #b91c1c; border-color: #f3c0c0; }
.req-chip-cat.req-cat-general         { background: #E9F5EE; color: #14613a; border-color: #b9dac6; }

/* Shared badge / chip styles (also used by the Profile Requests tab) */
.req-badge {
    flex-shrink: 0; font-size: 11px; font-weight: 700;
    padding: 3px 11px; border-radius: 999px; text-transform: uppercase;
    letter-spacing: 0.03em; white-space: nowrap;
}
.req-badge-open        { background: #fef3c7; color: #92600b; }
.req-badge-in_progress { background: #cfe2ff; color: #1c4f9c; }
.req-badge-resolved    { background: #d1e7dd; color: #14613a; }
.req-badge-closed      { background: #e9ecef; color: #5c636a; }
.req-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #F4F0E9; color: #6b5e47; border: 1px solid #e3ddd0;
    padding: 3px 9px; border-radius: 999px; font-size: 11px;
    font-weight: 600; text-transform: capitalize;
}
.req-chip i { font-size: 10px; }
.req-pri-high   { background: #fff3e0; color: #b45309; border-color: #f5d9b0; }
.req-pri-urgent { background: #fde8e8; color: #b91c1c; border-color: #f3c0c0; }
.req-chip-ref   { background: #eef2f7; color: #475569; border-color: #dde3ec; }
.req-date { font-size: 11.5px; color: #9ca3af; margin-left: auto; }

@media (max-width: 768px) {
    .hubt-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hubt-kpi { padding: 12px 12px; }
    .hubt-kpi-val { font-size: 20px; }
    .hubt-kpi-ic { width: 36px; height: 36px; font-size: 14px; }
    .hubt-ticket { padding: 14px 14px; }
    .hubt-ticket-body { padding-left: 0; }
    .hubt-ticket-foot { flex-direction: column; align-items: stretch; gap: 10px; }
    .hubt-ticket-action { margin-left: 0; justify-content: flex-end; }
    .hubt-ticket-action select { flex: 1; }
}

/* Dark theme */
body.dark-theme .hubt-title { color: #4ade80; }
body.dark-theme .hubt-sub,
body.dark-theme .hubt-kpi-lbl,
body.dark-theme .hubt-ticket-submeta { color: #94a3b8; }
body.dark-theme .hubt-select,
body.dark-theme .hubt-refresh,
body.dark-theme .hubt-chip,
body.dark-theme .hubt-kpi,
body.dark-theme .hubt-ticket { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-theme .hubt-kpi-val { color: #4ade80; }
body.dark-theme .hubt-ticket-subj { color: #f1f5f9; }
body.dark-theme .hubt-ticket-body,
body.dark-theme .hubt-ticket-details { color: #cbd5e1; }
body.dark-theme .hubt-ticket-ref { color: #cbd5e1; }
body.dark-theme .hubt-ticket-dot { color: #475569; }
body.dark-theme .hubt-ticket-foot { border-top-color: #334155; }
body.dark-theme .hubt-ticket-action select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-theme .hubt-ticket.hubt-st-resolved .hubt-ticket-action select { background: #0d2519; border-color: #1d4d33; color: #86efac; }
body.dark-theme .hubt-empty { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.dark-theme .hubt-chip.active { background: linear-gradient(135deg, #1E6332, #2F8542); color: #fff; }
body.dark-theme .hubt-chip-user { background: #0f172a !important; }
