  .perm-table tr:hover td { background: var(--gray-50); }
  .perm-cb { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
  .perm-cb:disabled { cursor: not-allowed; opacity: .5; }
  .role-pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .role-ADMIN             { background:#FEE2E2;color:#991B1B; }
  .role-GM                { background:#DBEAFE;color:#1E40AF; }
  .role-MembershipManager { background:#D1FAE5;color:#065F46; }
  .role-MembershipRep     { background:#EDE9FE;color:#5B21B6; }
  .role-FDR               { background:#FEF3C7;color:#92400E; }
  .role-Coach             { background:#E0F7F7;color:#00A3A3; }

  /* ── CHECKLIST ──────────────────────────────────── */
  .cl-loc-pills { display:flex; gap:8px; margin-bottom:16px; }
  .cl-loc-pill  { padding:7px 20px; border-radius:99px; font-size:12px; font-weight:700; cursor:pointer; border:2px solid #E5E7EB; color:#6B7280; background:white; transition:.15s; }
  .cl-loc-pill.active.oc { background:#0057B8; color:white; border-color:#0057B8; }
  .cl-loc-pill.active.ln { background:#22C55E; color:white; border-color:#22C55E; }
  .cl-section-header { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1.2px; color:#9CA3AF; padding:14px 0 5px; margin-top:6px; border-top:1px solid #F3F4F6; }
  .cl-section-header:first-child { border-top:none; padding-top:4px; }
  .cl-section { margin-bottom: 20px; }
  .cl-section-title { font-size: 13px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gray-200); }
  .cl-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
  .cl-item:last-child { border-bottom: none; }
  .cl-cb { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; margin-top: 1px; }
  .cl-label { font-size: 13px; color: var(--gray-700); flex: 1; line-height: 1.4; }
  .cl-label.checked { text-decoration: line-through; color: var(--gray-400); }
  .cl-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
  .cl-progress-bar { flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
  .cl-progress-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
  .cl-progress-txt { font-size: 13px; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
  .access-denied { text-align: center; padding: 60px 24px; color: var(--gray-400); }
  .access-denied .ad-icon { font-size: 48px; margin-bottom: 12px; }
  .access-denied h3 { font-size: 16px; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }

  /* ── CHECKLIST PHOTO UPLOAD ── */
  .cl-photo-row { display:flex; align-items:center; gap:10px; margin-top:6px; flex-wrap:wrap; }
  .cl-photo-btn {
    display:inline-flex; align-items:center; gap:5px; padding:5px 12px;
    border:1.5px dashed var(--gray-300); border-radius:8px; background:white;
    font-size:12px; font-weight:600; color:var(--gray-500); cursor:pointer; transition:.15s;
  }
  .cl-photo-btn:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
  .cl-photo-thumb {
    width:56px; height:56px; border-radius:8px; object-fit:cover;
    border:2px solid var(--green); cursor:pointer; transition:.15s;
  }
  .cl-photo-thumb:hover { opacity:.8; }
  .cl-photo-remove {
    width:18px; height:18px; border-radius:50%; background:var(--red); color:white;
    border:none; font-size:11px; font-weight:700; cursor:pointer; display:flex;
    align-items:center; justify-content:center; margin-left:-6px; margin-top:-46px; align-self:flex-start; flex-shrink:0;
  }
  .cl-item.has-photo .cl-label { font-weight:600; color:var(--gray-700); }

  /* ── MONDAY BOARD ──────────────────────────────── */
  .mon-tier-pills { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
  .mon-tier-pill { padding:6px 18px; border-radius:99px; font-size:12px; font-weight:700; cursor:pointer; border:2px solid #E5E7EB; color:#6B7280; background:white; transition:.15s; }
  .mon-tier-pill.active { background:var(--blue); color:white; border-color:var(--blue); }
  .mon-person-tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
  .mon-person-tab {
    display:flex; align-items:center; gap:10px; padding:10px 16px; background:white;
    border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.07); cursor:pointer; transition:.18s;
    border:2px solid transparent; min-width:160px;
  }
  .mon-person-tab:hover { border-color:var(--blue); transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.12); }
  .mon-person-tab.active { border-color:var(--blue); background:var(--blue-light); }
  .mon-person-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; color:white; flex-shrink:0; }
  .mon-person-name { font-size:13px; font-weight:700; color:var(--gray-800); }
  .mon-person-sub { font-size:11px; color:var(--gray-400); margin-top:1px; }

  .mon-board { display:flex; flex-direction:column; gap:0; }
  .mon-col-header {
    display:grid; grid-template-columns:1fr 110px 110px 90px 100px 60px 36px;
    gap:0; padding:8px 14px; background:var(--gray-50);
    border:1px solid var(--gray-200); border-bottom:none; border-radius:12px 12px 0 0;
    font-size:11px; font-weight:700; color:var(--gray-400); text-transform:uppercase; letter-spacing:.5px;
  }
  .mon-group { margin-bottom:24px; border-radius:0 0 12px 12px; overflow:hidden; }
  .mon-group-hdr {
    display:flex; align-items:center; gap:10px; padding:10px 14px;
    font-size:13px; font-weight:800; color:white; cursor:pointer; user-select:none;
  }
  .mon-group-hdr .mon-count { background:rgba(255,255,255,.25); border-radius:20px; padding:1px 8px; font-size:11px; }
  .mon-group-hdr .mon-chevron { margin-left:auto; font-size:12px; transition:transform .2s; }
  .mon-group-hdr.collapsed .mon-chevron { transform:rotate(-90deg); }
  .mon-group-body { border:1px solid var(--gray-200); border-top:none; }
  .mon-row {
    display:grid; grid-template-columns:1fr 110px 110px 90px 100px 60px 36px;
    gap:0; padding:0; border-bottom:1px solid var(--gray-100); background:white;
    cursor:pointer; transition:background .12s; align-items:center;
  }
  .mon-row:hover { background:#F0F6FF; }
  .mon-row:last-child { border-bottom:none; }
  .mon-cell { padding:10px 14px; font-size:13px; color:var(--gray-700); }
  .mon-cell.name { font-weight:600; color:var(--gray-800); display:flex; align-items:center; gap:8px; }
  .mon-cell.name .mon-color-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
  .mon-cell.center { text-align:center; }
  .mon-priority { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; }
  .mon-priority.low    { background:#F3F4F6; color:#6B7280; }
  .mon-priority.mid    { background:#DBEAFE; color:#1E40AF; }
  .mon-priority.high   { background:#FEF3C7; color:#92400E; }
  .mon-priority.urgent { background:#FEE2E2; color:#991B1B; }
  .mon-add-row {
    padding:10px 14px; font-size:13px; color:var(--gray-400); cursor:pointer;
    display:flex; align-items:center; gap:8px; border-top:1px dashed var(--gray-200);
    background:white; transition:.12s;
  }
  .mon-add-row:hover { color:var(--blue); background:var(--blue-light); }
  .mon-due-overdue { color:var(--red); font-weight:700; }
  .mon-due-soon { color:var(--orange); font-weight:600; }
  .mon-comment-chip { display:inline-flex; align-items:center; gap:4px; background:var(--gray-100); border-radius:20px; padding:2px 8px; font-size:11px; color:var(--gray-500); }

  /* Detail Panel */
  .mon-detail-overlay { position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:800; }
  .mon-detail-panel {
    position:fixed; top:0; right:0; width:480px; height:100vh; background:white;
    box-shadow:-8px 0 40px rgba(0,0,0,.15); z-index:801; display:flex; flex-direction:column;
    transform:translateX(100%); transition:transform .25s ease;
  }
  .mon-detail-panel.open { transform:translateX(0); }
  .mon-detail-head {
    padding:20px 24px 16px; border-bottom:1px solid var(--gray-100);
    display:flex; align-items:flex-start; gap:12px; flex-shrink:0;
  }
  .mon-detail-title { font-size:18px; font-weight:800; color:var(--gray-800); flex:1; outline:none; border:none; resize:none; font-family:inherit; }
  .mon-detail-title:focus { background:var(--blue-light); border-radius:6px; }
  .mon-detail-body { flex:1; overflow-y:auto; padding:20px 24px; }
  .mon-meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
  .mon-meta-item label { display:block; font-size:11px; font-weight:700; color:var(--gray-400); text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
  .mon-meta-item select, .mon-meta-item input { width:100%; padding:7px 10px; border:1.5px solid var(--gray-200); border-radius:8px; font-size:13px; outline:none; font-family:inherit; }
  .mon-meta-item select:focus, .mon-meta-item input:focus { border-color:var(--blue); }
  .mon-notes-area { width:100%; border:1.5px solid var(--gray-200); border-radius:8px; padding:10px; font-size:13px; font-family:inherit; resize:vertical; min-height:80px; outline:none; }
  .mon-notes-area:focus { border-color:var(--blue); }
  .mon-section-lbl { font-size:12px; font-weight:800; color:var(--gray-500); text-transform:uppercase; letter-spacing:.8px; margin:18px 0 10px; }
  .mon-update-thread { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
  .mon-update-item { background:var(--gray-50); border-radius:10px; padding:12px 14px; border-left:3px solid var(--blue); }
  .mon-update-meta { font-size:11px; color:var(--gray-400); margin-bottom:4px; }
  .mon-update-text { font-size:13px; color:var(--gray-700); line-height:1.5; }
  .mon-update-input { display:flex; gap:8px; margin-top:4px; }
  .mon-update-input textarea { flex:1; padding:8px 10px; border:1.5px solid var(--gray-200); border-radius:8px; font-size:13px; font-family:inherit; resize:none; height:60px; outline:none; }
  .mon-update-input textarea:focus { border-color:var(--blue); }
  .mon-attach-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
  .mon-attach-chip { display:flex; align-items:center; gap:6px; padding:5px 10px; background:var(--gray-100); border-radius:8px; font-size:12px; color:var(--gray-600); cursor:pointer; }
  .mon-attach-chip:hover { background:var(--blue-light); color:var(--blue); }
  .mon-attach-img { width:60px; height:60px; object-fit:cover; border-radius:8px; cursor:pointer; border:2px solid var(--gray-200); }
  .mon-attach-btn { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border:1.5px dashed var(--gray-300); border-radius:8px; font-size:12px; font-weight:600; color:var(--gray-500); cursor:pointer; transition:.15s; }
  .mon-attach-btn:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
  .mon-detail-foot { padding:16px 24px; border-top:1px solid var(--gray-100); display:flex; gap:10px; flex-shrink:0; }
  .mon-status-btns { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
  .mon-status-btn { padding:6px 16px; border-radius:8px; font-size:12px; font-weight:700; cursor:pointer; border:2px solid transparent; transition:.15s; }
  .mon-status-btn.new    { background:#DBEAFE; color:#1E40AF; border-color:#BFDBFE; }
  .mon-status-btn.done   { background:#D1FAE5; color:#065F46; border-color:#A7F3D0; }
  .mon-status-btn.stuck  { background:#FEE2E2; color:#991B1B; border-color:#FECACA; }
  .mon-status-btn.active { box-shadow:0 0 0 2px var(--blue); }

  /* ── REPORT FORMS ──────────────────────────────── */
  .rpt-form-card { background: white; border-radius: 14px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.07); max-width: 720px; }
  .rpt-form-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--gray-800); }
  .rpt-form-card p { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }

  /* ── STAFF PROFILE ──────────────────────────────────── */
  /* Consistent popup size — same dimensions no matter which tab / how much
     content; the tab body (#sp-tab-content) scrolls inside. */
  #staff-profile-modal { width: min(900px, 96vw); height: min(840px, 90vh); max-width: 96vw; max-height: 90vh; border-radius: 20px; }
  #staff-profile-modal.expanded { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .sp-tab.active { color: var(--blue) !important; border-bottom-color: var(--blue) !important; background: white !important; }
  .sp-tab:hover  { color: var(--blue) !important; background: var(--blue-light) !important; }
  .staff-card {
    background: white; border-radius: 14px; padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07); cursor: pointer; transition: .18s;
    border: 2px solid transparent; position: relative;
  }
  .staff-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); border-color: var(--blue); }
  .staff-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
  .staff-card-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: white; flex-shrink: 0; }
  .staff-card-name { font-size: 15px; font-weight: 800; color: var(--gray-800); }
  .staff-card-role { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
  .staff-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
  .staff-card-cert-warn { position: absolute; top: 12px; right: 12px; background: #FEF3C7; color: #92400E; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
  /* ⋮ quick-actions button on directory cards (status / delete) */
  .staff-card-menu-btn { position:absolute; top:10px; right:10px; width:28px; height:28px; border:none; border-radius:8px; background:transparent; color:var(--gray-400); font-size:18px; font-weight:800; line-height:1; cursor:pointer; transition:.12s; }
  .staff-card-menu-btn:hover { background:var(--gray-100); color:var(--gray-700); }
  .hr-menu-item { padding:9px 12px; border-radius:8px; cursor:pointer; font-size:13px; font-weight:600; color:var(--gray-700); }
  .hr-menu-item:hover { background:var(--gray-50); }
  .status-active   { background: #D1FAE5; color: #065F46; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .status-inactive { background: #FEF3C7; color: #92400E; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .status-terminated { background: #FEE2E2; color: #991B1B; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .status-on-leave { background: #DBEAFE; color: #1E40AF; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .status-on-leave { background: #FEF3C7; color: #92400E; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
  .cert-valid    { background: #D1FAE5; color: #065F46; }
  .cert-warning  { background: #FEF3C7; color: #92400E; }
  .cert-expired  { background: #FEE2E2; color: #991B1B; }
  .note-card { background: var(--gray-50); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; border-left: 4px solid var(--gray-300); }
  .note-card.commendation { border-color: var(--green); background: #F0FFF4; }
  .note-card.warning      { border-color: var(--yellow); background: #FFFBEB; }
  .note-card.writeup      { border-color: var(--red); background: #FFF5F5; }
  .note-card.review       { border-color: var(--blue); background: var(--blue-light); }
  .timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
  .timeline-item::before { content:''; position:absolute; left:19px; top:40px; bottom:0; width:2px; background:var(--gray-200); }
  .timeline-item:last-child::before { display: none; }
  .timeline-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; background: var(--blue-light); }
  .doc-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--gray-50); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: .15s; }
  .doc-item:hover { background: var(--blue-light); }
  .sp-field-group { margin-bottom: 20px; }
  .sp-field-group h4 { font-size: 12px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--gray-100); }
  .sp-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sp-field label { display: block; font-size: 11px; font-weight: 600; color: var(--gray-400); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .4px; }
  .sp-field .val  { font-size: 14px; color: var(--gray-800); font-weight: 500; }

  /* ── DATE RANGE PICKER ──────────────────────────────── */
  .dr-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 14px; background: white; border: 1.5px solid var(--gray-200);
    border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--gray-700);
    cursor: pointer; transition: .15s; white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
  }
  .dr-btn:hover { border-color: var(--blue); color: var(--blue); }
  .dr-btn .dr-arrow { font-size: 10px; color: var(--gray-400); transition: transform .2s; }
  .dr-btn.open .dr-arrow { transform: rotate(180deg); }
  .dr-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: white; border: 1.5px solid var(--gray-200); border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15); z-index: 400;
    width: 320px; overflow: hidden;
    animation: popIn .18s ease;
  }
  .dr-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 14px 10px; }
  .dr-preset-btn {
    padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1.5px solid var(--gray-200); background: white;
    color: var(--gray-600); transition: .15s; text-align: center;
  }
  .dr-preset-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
  .dr-preset-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
  .dr-divider { height: 1px; background: var(--gray-100); margin: 0 14px; }
  .dr-custom { padding: 12px 14px 14px; }
  .dr-custom label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
  .dr-custom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .dr-custom input[type=date] {
    width: 100%; padding: 8px 10px; border: 1.5px solid var(--gray-200);
    border-radius: 8px; font-size: 13px; outline: none; transition: border-color .2s;
  }
  .dr-custom input[type=date]:focus { border-color: var(--blue); }
  .dr-apply {
    width: 100%; padding: 9px; background: var(--blue); color: white; border: none;
    border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .dr-apply:hover { background: var(--blue-dark); }
  .dr-range-wrap { position: relative; }
  .dr-active-indicator {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--blue-light); color: var(--blue);
    padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700;
    margin-left: 6px;
  }

  @keyframes popIn { from {transform:scale(.6);opacity:0} to {transform:scale(1);opacity:1} }

  /* scroll */
  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

  /* ── HIRING PIPELINE ── */
  .pipe-board { display:grid; gap:12px; }
  .pipe-col { background:#F3F4F6; border-radius:14px; padding:14px; min-width:210px; flex-shrink:0; }
  .pipe-col-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .pipe-col-title { font-size:12px; font-weight:700; color:#374151; text-transform:uppercase; letter-spacing:.5px; }
  .pipe-col-count { font-size:11px; font-weight:700; background:#E5E7EB; color:#6B7280; padding:2px 8px; border-radius:99px; }
  .pipe-col.drag-over { background:#DBEAFE; outline:2px dashed #3B82F6; }
  .pipe-card { background:white; border-radius:10px; padding:12px 14px; margin-bottom:8px; box-shadow:0 1px 4px rgba(0,0,0,.08); cursor:grab; transition:transform .15s,box-shadow .15s; border-left:3px solid transparent; user-select:none; }
  .pipe-card:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.12); }
  .pipe-card:active { cursor:grabbing; }
  .pipe-card.dragging { opacity:.4; transform:rotate(2deg); }
  .pipe-card-name { font-size:13px; font-weight:700; color:#111827; margin-bottom:2px; }
  .pipe-card-role { font-size:11px; color:#6B7280; margin-bottom:6px; }
  .pipe-card-meta { display:flex; gap:4px; flex-wrap:wrap; }
  .pipe-card-days { font-size:10px; color:#9CA3AF; margin-top:6px; }

  /* Candidate Profile Modal */
  .cand-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:700; display:none; align-items:center; justify-content:center; }
  .cand-modal { background:white; border-radius:20px; width:820px; max-width:97vw; max-height:93vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.3); }
  .cand-header { background:linear-gradient(135deg,#0057B8,#00A3A3); color:white; padding:24px 28px; flex-shrink:0; position:relative; }
  .cand-header h2 { margin:0 0 4px; font-size:20px; }
  .cand-header-sub { font-size:13px; opacity:.85; }
  .cand-tabs { display:flex; gap:0; border-bottom:1.5px solid #E5E7EB; flex-shrink:0; background:white; overflow-x:auto; }
  .cand-tab { padding:12px 20px; border:none; background:none; font-size:13px; font-weight:600; cursor:pointer; color:#6B7280; border-bottom:2.5px solid transparent; white-space:nowrap; transition:.15s; }
  .cand-tab.active { color:#0057B8; border-bottom-color:#0057B8; background:white; }
  .cand-tab:hover { color:#0057B8; background:#F0F7FF; }
  .cand-body { flex:1; overflow-y:auto; padding:24px 28px; }
  .cand-footer { padding:16px 28px; border-top:1.5px solid #E5E7EB; display:flex; gap:10px; align-items:center; background:#F9FAFB; flex-shrink:0; flex-wrap:wrap; }

  /* Stage badge strip */
  .stage-strip { display:flex; gap:4px; flex-wrap:wrap; margin:12px 0; }
  .stage-pill { font-size:11px; font-weight:700; padding:4px 12px; border-radius:99px; background:#E5E7EB; color:#374151; cursor:pointer; transition:.2s; border:2px solid transparent; }
  .stage-pill.current { background:#0057B8; color:white; border-color:#0057B8; }
  .stage-pill.done { background:#D1FAE5; color:#166534; border-color:#86EFAC; }
  .stage-pill.future { opacity:.5; cursor:default; }

  /* Note timeline in candidate modal */
  .cand-note { background:#F9FAFB; border:1.5px solid #E5E7EB; border-radius:10px; padding:14px 16px; margin-bottom:10px; }
  .cand-note.interview { border-color:#BFDBFE; background:#EFF6FF; }
  .cand-note.water { border-color:#A7F3D0; background:#ECFDF5; }
  .cand-note.offer { border-color:#FDE68A; background:#FFFBEB; }
  .cand-note.rejection { border-color:#FECACA; background:#FEF2F2; }
  .cand-note-header { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
  .cand-note-type { font-size:12px; font-weight:700; }
  .cand-note-meta { font-size:11px; color:#9CA3AF; margin-left:auto; }
  .cand-note-text { font-size:13px; color:#374151; line-height:1.55; }


  /* Pipeline stage guides */
  .pipe-col-guide { font-size:11px; color:#6B7280; background:#fff; border:1px solid #E5E7EB; border-radius:8px; padding:8px 10px; margin-bottom:10px; line-height:1.5; }
  .pipe-col-guide strong { color:#374151; display:block; margin-bottom:3px; font-size:11px; }
  .pipe-col.not-hired { background:#FEF2F2; }
  .pipe-col.not-hired .pipe-col-title { color:#DC2626; }

  /* Stage action forms in candidate modal */
  .stage-action-box { background:#F0F7FF; border:1.5px solid #BFDBFE; border-radius:14px; padding:20px 22px; margin-bottom:18px; }
  .stage-action-box.green { background:#F0FDF4; border-color:#86EFAC; }
  .stage-action-box.yellow { background:#FFFBEB; border-color:#FCD34D; }
  .stage-action-box.teal { background:#ECFDF5; border-color:#A7F3D0; }
  .stage-action-box.red { background:#FEF2F2; border-color:#FECACA; }
  .stage-action-title { font-size:13px; font-weight:800; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
  .stage-checklist { list-style:none; padding:0; margin:0 0 14px; }
  .stage-checklist li { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:#374151; margin-bottom:8px; }
  .stage-checklist li input[type=checkbox] { margin-top:2px; width:15px; height:15px; cursor:pointer; flex-shrink:0; }
  .interview-q { margin-bottom:14px; }
  .interview-q label { font-size:12px; font-weight:700; color:#374151; display:block; margin-bottom:4px; }
  .interview-q input, .interview-q textarea, .interview-q select { width:100%; border:1.5px solid #E5E7EB; border-radius:8px; padding:8px 12px; font-size:13px; box-sizing:border-box; font-family:inherit; }
  .interview-q textarea { min-height:60px; resize:vertical; }
  .water-check-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #E5E7EB; }
  .water-check-row:last-of-type { border-bottom:none; }
  .water-check-label { flex:1; font-size:13px; font-weight:600; color:#111827; }
  .water-check-sub { font-size:11px; color:#6B7280; display:block; font-weight:400; }
  .offer-template { background:white; border:1.5px solid #E5E7EB; border-radius:10px; padding:16px; font-size:13px; line-height:1.7; white-space:pre-wrap; color:#374151; }
  .rating-stars { display:flex; gap:6px; }
  .rating-star { font-size:20px; cursor:pointer; opacity:.3; transition:.1s; }
  .rating-star.on { opacity:1; }
  .jobs-checkbox-row { display:flex; gap:16px; margin-bottom:12px; }
  .jobs-checkbox-row label { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; cursor:pointer; }


  /* Profile photo upload */
  .sp-photo-wrap { position:relative; width:72px; height:72px; flex-shrink:0; }
  .sp-photo-wrap img { width:72px; height:72px; border-radius:50%; border:3px solid rgba(255,255,255,.6); object-fit:cover; display:block; }
  .sp-photo-upload-btn { position:absolute; bottom:0; right:0; width:22px; height:22px; background:#fff; border:none; border-radius:50%; cursor:pointer; font-size:12px; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 4px rgba(0,0,0,.3); }
  .sp-photo-input { display:none; }

  /* Pre-Employment Document Signing Overlay */
  .predoc-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:950; display:none; align-items:center; justify-content:center; }
  .predoc-modal { background:white; border-radius:20px; width:820px; max-width:97vw; max-height:95vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.4); }
  .predoc-header { background:linear-gradient(135deg,#1B2E7A,#0057B8); color:white; padding:22px 28px; flex-shrink:0; }
  .predoc-header h2 { font-size:18px; font-weight:900; margin:0 0 4px; }
  .predoc-header p  { font-size:12px; opacity:.85; margin:0; }
  .predoc-steps { display:flex; gap:0; margin-top:14px; }
  .predoc-step-pill { font-size:11px; font-weight:700; padding:5px 16px; border-radius:99px; background:rgba(255,255,255,.15); color:rgba(255,255,255,.7); flex:1; text-align:center; }
  .predoc-step-pill.active { background:white; color:#0057B8; }
  .predoc-step-pill.done   { background:rgba(255,255,255,.3); color:white; }
  .predoc-body { flex:1; overflow-y:auto; padding:24px 28px; }
  .predoc-doc-box { background:#F9FAFB; border:1.5px solid #E5E7EB; border-radius:12px; height:320px; overflow-y:auto; padding:20px; font-size:12px; line-height:1.8; color:#374151; margin-bottom:18px; font-family:Georgia,serif; }
  .predoc-doc-box h3 { font-size:14px; font-weight:900; color:#1B2E7A; text-align:center; margin:0 0 16px; text-transform:uppercase; letter-spacing:1px; }
  .predoc-doc-box h4 { font-size:12px; font-weight:800; color:#374151; margin:14px 0 4px; }
  .predoc-doc-box .doc-clause { margin-bottom:10px; }
  .predoc-doc-box .doc-sig-block { border-top:2px solid #E5E7EB; margin-top:20px; padding-top:16px; }
  .predoc-ack-row { display:flex; align-items:flex-start; gap:12px; background:#EFF6FF; border:1.5px solid #BFDBFE; border-radius:10px; padding:14px; margin-bottom:16px; cursor:pointer; }
  .predoc-ack-row input[type=checkbox] { width:18px; height:18px; flex-shrink:0; margin-top:2px; cursor:pointer; }
  .predoc-sig-field { margin-bottom:14px; }
  .predoc-sig-field label { font-size:12px; font-weight:700; color:#374151; display:block; margin-bottom:5px; }
  .predoc-sig-field input { width:100%; border:1.5px solid #D1D5DB; border-radius:8px; padding:10px 12px; font-size:13px; box-sizing:border-box; }
  .predoc-sig-field input.sig-font { font-family:'Brush Script MT',cursive; font-size:18px; color:#1B2E7A; }
  .predoc-footer { padding:16px 28px; border-top:1px solid #E5E7EB; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; background:#FAFAFA; }
  .predoc-progress-dots { display:flex; gap:8px; }
  .predoc-dot { width:10px; height:10px; border-radius:50%; background:#E5E7EB; }
  .predoc-dot.active { background:#0057B8; }
  .predoc-dot.done   { background:#22C55E; }

  /* FIN University locked gate */
  .finuniv-gate-banner { background:linear-gradient(135deg,#1B2E7A,#374151); color:white; border-radius:16px; padding:36px 32px; text-align:center; margin-bottom:24px; }
  .finuniv-gate-icon { font-size:64px; margin-bottom:12px; }
  .finuniv-gate-title { font-size:22px; font-weight:900; margin-bottom:8px; }
  .finuniv-gate-sub { font-size:13px; opacity:.8; margin-bottom:20px; line-height:1.6; }

  /* FIN University page */
  .finuniv-card { background:white; border-radius:14px; padding:22px; border:1.5px solid var(--gray-200); cursor:pointer; transition:.15s; }
  .finuniv-card:hover { border-color:var(--blue); box-shadow:0 4px 16px rgba(0,87,184,.12); transform:translateY(-2px); }
  .finuniv-card-icon { font-size:36px; margin-bottom:10px; }
  .finuniv-card-title { font-size:14px; font-weight:700; color:var(--blue-dark); margin-bottom:4px; }
  .finuniv-card-sub { font-size:12px; color:var(--gray-500); }
  .finuniv-card-badge { display:inline-block; font-size:10px; font-weight:700; background:#DBEAFE; color:#1E40AF; padding:2px 8px; border-radius:99px; margin-top:8px; }


  /* ══ FINTASTIC 2026 CALENDAR — digital replica of the printed proof ══════ */
  .cal-toolbar { display:flex; justify-content:flex-end; gap:10px; max-width:1180px; margin:0 auto 14px; flex-wrap:wrap; }
  .cal-dl-btn { display:inline-flex; align-items:center; gap:6px; background:var(--blue); color:#fff; text-decoration:none; font-size:13px; font-weight:800; padding:10px 18px; border-radius:10px; box-shadow:0 3px 10px rgba(0,87,184,.3); }
  .cal-dl-btn:hover { background:var(--blue-dark); }
  .cal-notify-btn { background:#fff; color:var(--blue); border:2px solid var(--blue); border-radius:10px; padding:9px 16px; font-size:13px; font-weight:800; cursor:pointer; }

  .cal-proof { max-width:1180px; margin:0 auto; border-radius:18px; overflow:hidden; box-shadow:0 10px 34px rgba(20,20,50,.25);
    background:linear-gradient(180deg,#A0A3C9 0%,#A2A4C9 42%,#B091AC 66%,#C97D58 88%,#CE6B40 100%); }
  .cal-proof-hero { width:100%; display:block; }
  .cal-proof-inner { padding:16px 26px 26px; }

  .cal-year-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
  .cal-month-card { background:#fff; border-radius:14px; padding:10px 12px 12px 8px; box-shadow:0 3px 12px rgba(25,25,60,.22); display:flex; gap:9px; align-items:stretch; }
  .cal-month-tab { writing-mode:vertical-rl; transform:rotate(180deg); background:#D2D3D6; color:#3F3F46; font-weight:800; font-size:12.5px; letter-spacing:1.5px; border-radius:8px; padding:12px 4px; flex-shrink:0; min-width:27px; display:flex; align-items:center; justify-content:center; text-transform:uppercase; }
  .cal-month-body { flex:1; min-width:0; }
  .cal-dow-row { display:grid; grid-template-columns:repeat(7,1fr); }
  .cal-dow { font-size:12px; font-weight:900; color:#18181B; text-align:center; padding:1px 0 4px; }
  .cal-weeks { display:flex; flex-direction:column; gap:2px; }
  .cal-week-row { display:grid; grid-template-columns:repeat(7,1fr); }
  .cal-day { position:relative; font-size:12.5px; font-weight:700; color:#27272A; text-align:center; min-height:23px; display:flex; align-items:center; justify-content:center; }
  .cal-day.empty { visibility:hidden; }
  /* solid highlights — exact print colors */
  .cal-day.c-tu  { background:#29ABE2; color:#fff; font-weight:800; }
  .cal-day.c-hol { background:#8CB43E; color:#fff; font-weight:800; }
  .cal-day.c-mk  { background:#17479E; color:#fff; font-weight:800; }
  .cal-day.c-5th { background:#E32726; color:#fff; font-weight:800; }
  .cal-day.c-pr  { background:#F7941D; color:#fff; font-weight:800; }
  /* diagonal split cells (two meanings on one day, as printed) */
  .cal-day.c-tu-hol  { background:linear-gradient(135deg,#29ABE2 49.6%,#8CB43E 50.4%); color:#fff; font-weight:800; }
  .cal-day.c-tu-pr   { background:linear-gradient(135deg,#29ABE2 49.6%,#F7941D 50.4%); color:#fff; font-weight:800; }
  .cal-day.c-5th-hol { background:linear-gradient(135deg,#E32726 49.6%,#8CB43E 50.4%); color:#fff; font-weight:800; }
  /* rounded ends only where a colored run starts/stops */
  .cal-day.run-l { border-top-left-radius:5px; border-bottom-left-radius:5px; }
  .cal-day.run-r { border-top-right-radius:5px; border-bottom-right-radius:5px; }

  /* bottom white panel: legend pills + holiday table + note */
  .cal-bottom-panel { background:#fff; border-radius:16px; margin-top:20px; padding:22px; box-shadow:0 3px 12px rgba(25,25,60,.22);
    display:grid; grid-template-columns:225px 1fr; gap:22px; }
  .cal-legend-col { display:flex; flex-direction:column; gap:13px; justify-content:space-between; }
  .cal-pill { border-radius:14px; color:#fff; font-weight:800; text-align:center; padding:15px 10px; font-size:15.5px; line-height:1.3; letter-spacing:.2px; }
  .cal-holiday-grid { display:grid; grid-template-columns:1.05fr .62fr 1.35fr; border-radius:12px; overflow:hidden; align-content:stretch; font-size:13.5px; color:#1F2547; }
  .chg-cell { padding:10px 12px; display:flex; flex-direction:column; justify-content:center; text-align:center; line-height:1.55; }
  .chg-c1, .chg-c2 { background:#B4B6D0; }
  .chg-c3 { background:#FBEFD0; }
  .chg-head { background:#303E73 !important; color:#fff; font-weight:800; font-size:15px; padding:9px 12px; }
  .chg-head-mk { background:#EFB93E !important; }
  .cal-note { grid-column:1 / -1; text-align:center; font-size:14.5px; font-weight:700; color:#18181B; padding-top:4px; }
  .cal-note em { font-style:italic; }

  @media (max-width: 1080px) { .cal-year-grid { grid-template-columns:repeat(2,1fr); } .cal-bottom-panel { grid-template-columns:1fr; } .cal-legend-col { flex-direction:row; flex-wrap:wrap; } .cal-legend-col .cal-pill { flex:1 1 150px; } }
  @media (max-width: 620px)  { .cal-year-grid { grid-template-columns:1fr; } .cal-proof-inner { padding:12px 12px 18px; } .cal-holiday-grid { font-size:12px; } }

  /* Key Dates Table */
  .key-dates-table { width:100%; border-collapse:collapse; font-size:13px; margin-top:14px; }
  .key-dates-table th { background:#1B3A8B; color:white; padding:10px 14px; text-align:left; font-size:12px; font-weight:700; }
  .key-dates-table td { padding:10px 14px; border-bottom:1px solid #E5E7EB; vertical-align:top; }
  .key-dates-table tr:hover td { background:#F9FAFB; }
  .key-dates-type { font-size:10px; font-weight:700; padding:2px 8px; border-radius:99px; white-space:nowrap; }
  .kdt-holiday { background:#DCFCE7; color:#166534; }
  .kdt-fifth   { background:#FEE2E2; color:#991B1B; }
  .kdt-progress{ background:#FEF3C7; color:#92400E; }
  .kdt-tuition { background:#DBEAFE; color:#1E40AF; }
  .kdt-makeup  { background:#E0E7FF; color:#3730A3; }

  /* Key Dates Coming Up — dashboard widget */
  .upcoming-events-card { background:white; border-radius:14px; padding:18px 20px; border:1.5px solid #E5E7EB; margin-bottom:20px; }
  .upcoming-event-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #F3F4F6; }
  .upcoming-event-row:last-child { border-bottom:none; }
  .upcoming-date-badge { width:46px; height:46px; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; }
  .upcoming-date-mon { font-size:10px; font-weight:700; text-transform:uppercase; }
  .upcoming-date-day { font-size:18px; font-weight:900; line-height:1; }

  /* Notification popup */
  .notif-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:900; display:none; align-items:center; justify-content:center; }
  .notif-modal { background:white; border-radius:18px; width:640px; max-width:96vw; max-height:88vh; overflow-y:auto; box-shadow:0 30px 80px rgba(0,0,0,.3); padding:32px; }

  /* Interview scheduler */
  .interview-cal { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
  .int-day-header { font-size:11px; font-weight:700; text-align:center; color:#6B7280; }
  .int-day-cell { min-height:70px; background:#F9FAFB; border-radius:8px; padding:4px; border:1px solid #E5E7EB; }
  .int-day-num { font-size:11px; font-weight:700; color:#374151; margin-bottom:4px; }
  .int-event { font-size:10px; background:#DBEAFE; color:#1E40AF; border-radius:4px; padding:2px 5px; margin-bottom:2px; cursor:pointer; }
  .int-event.water { background:#D1FAE5; color:#065F46; }
  .int-event.phone { background:#FDE68A; color:#92400E; }


  /* ══ MSD SCHEDULE ═══════════════════════════════════════════════════════ */
  .msd-hero { background:linear-gradient(135deg,#22C55E 0%,#059669 50%,#065F46 100%); border-radius:16px; color:white; padding:24px 28px; margin-bottom:22px; display:flex; align-items:center; gap:22px; }
  .msd-hero-icon { font-size:52px; flex-shrink:0; filter:drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
  .msd-hero-title { font-size:22px; font-weight:900; margin-bottom:4px; }
  .msd-hero-sub   { font-size:13px; opacity:.85; }
  .msd-hero-stats { margin-left:auto; display:flex; gap:18px; text-align:center; flex-shrink:0; }
  .msd-hero-stat-val { font-size:26px; font-weight:900; line-height:1; }
  .msd-hero-stat-lbl { font-size:10px; opacity:.75; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }

  /* Coverage grid */
  .msd-coverage-grid { background:white; border-radius:14px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.07); margin-bottom:20px; }
  .msd-cov-header { display:grid; grid-template-columns:80px repeat(7,1fr); background:var(--gray-50); border-bottom:2px solid var(--gray-200); }
  .msd-cov-hcell  { padding:9px 6px; text-align:center; font-size:11px; font-weight:700; color:var(--gray-600); text-transform:uppercase; letter-spacing:.4px; border-right:1px solid var(--gray-200); }
  .msd-cov-hcell:last-child { border-right:none; }
  .msd-cov-row    { display:grid; grid-template-columns:80px repeat(7,1fr); border-bottom:1px solid var(--gray-100); }
  .msd-cov-row:last-child { border-bottom:none; }
  .msd-cov-row:hover { background:var(--gray-50); }
  .msd-cov-time   { padding:9px 8px; font-size:11px; color:var(--gray-400); font-weight:600; text-align:right; border-right:2px solid var(--gray-200); display:flex; align-items:center; justify-content:flex-end; }
  .msd-cov-cell   { padding:5px 6px; border-right:1px solid var(--gray-100); display:flex; flex-direction:column; gap:3px; align-items:center; justify-content:center; min-height:42px; }
  .msd-cov-cell:last-child { border-right:none; }
  .msd-cov-chip   { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:20px; font-size:10px; font-weight:700; white-space:nowrap; }
  .msd-chip-sal   { background:#EDE9FE; color:#5B21B6; }
  .msd-chip-nah   { background:#D1FAE5; color:#065F46; }
  .msd-chip-both  { background:#DBEAFE; color:#1E40AF; }
  .msd-chip-none  { background:var(--gray-100); color:var(--gray-400); font-size:10px; }

  /* Staff schedule card */
  .msd-staff-card { background:white; border-radius:14px; padding:22px; box-shadow:0 1px 4px rgba(0,0,0,.07); margin-bottom:16px; }
  .msd-staff-card-header { display:flex; align-items:center; gap:16px; margin-bottom:18px; padding-bottom:14px; border-bottom:2px solid var(--gray-100); }
  .msd-staff-avatar { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; color:white; flex-shrink:0; }
  .msd-staff-name { font-size:17px; font-weight:800; color:var(--gray-800); }
  .msd-staff-role { font-size:12px; color:var(--gray-400); margin-top:2px; }
  .msd-staff-hours { margin-left:auto; text-align:right; }
  .msd-staff-hrs-val { font-size:24px; font-weight:900; color:var(--green); }
  .msd-staff-hrs-lbl { font-size:10px; color:var(--gray-400); font-weight:600; text-transform:uppercase; }
  .msd-day-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
  .msd-day-block { border-radius:10px; padding:10px 8px; text-align:center; border:1.5px solid var(--gray-200); }
  .msd-day-block.working { border-color:transparent; }
  .msd-day-block.sal { background:#EDE9FE; border-color:#C4B5FD; }
  .msd-day-block.nahomi { background:#D1FAE5; border-color:#86EFAC; }
  .msd-day-name  { font-size:10px; font-weight:700; color:var(--gray-400); text-transform:uppercase; letter-spacing:.5px; margin-bottom:5px; }
  .msd-day-time  { font-size:11px; font-weight:800; color:var(--gray-800); line-height:1.4; }
  .msd-day-off   { font-size:12px; color:var(--gray-300); font-style:italic; margin-top:6px; }
  .msd-day-hrs   { font-size:10px; font-weight:700; margin-top:3px; }

  /* ══ STAFF SCHEDULER ════════════════════════════════════════════════════ */
  .sched-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
  .sched-week-nav { display:flex; align-items:center; gap:8px; background:white; border:1.5px solid var(--gray-200); border-radius:10px; padding:4px 6px; }
  .sched-week-nav button { background:none; border:none; cursor:pointer; padding:5px 10px; border-radius:7px; font-size:14px; font-weight:700; color:var(--gray-600); transition:.15s; }
  .sched-week-nav button:hover { background:var(--blue-light); color:var(--blue); }
  .sched-week-label { font-size:13px; font-weight:700; color:var(--gray-800); white-space:nowrap; min-width:160px; text-align:center; }
  .sched-view-toggle { display:flex; background:var(--gray-100); border-radius:8px; padding:3px; gap:2px; }
  .sched-view-btn { padding:5px 14px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; border:none; background:none; color:var(--gray-500); transition:.15s; }
  .sched-view-btn.active { background:white; color:var(--gray-800); box-shadow:0 1px 3px rgba(0,0,0,.1); }

  /* Weekly Grid */
  .sched-grid-wrap { background:white; border-radius:14px; box-shadow:0 1px 4px rgba(0,0,0,.07); overflow:hidden; margin-bottom:20px; }
  .sched-grid { display:grid; }
  .sched-grid.weekly { grid-template-columns:170px repeat(7,1fr); }
  .sched-col-header { background:var(--gray-50); padding:10px 8px; text-align:center; border-bottom:2px solid var(--gray-200); border-right:1px solid var(--gray-200); }
  .sched-col-header:last-child { border-right:none; }
  .sched-col-day { font-size:12px; font-weight:800; color:var(--gray-700); text-transform:uppercase; letter-spacing:.5px; }
  .sched-col-date { font-size:18px; font-weight:900; color:var(--gray-800); line-height:1.1; }
  .sched-col-date.today { background:var(--blue); color:white; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto; font-size:16px; }
  .sched-col-hours { font-size:10px; color:var(--gray-400); margin-top:2px; }

  /* Staff cells */
  .sched-staff-cell { border-right:1px solid var(--gray-100); border-bottom:1px solid var(--gray-100); min-height:76px; padding:5px 4px 4px; position:relative; transition:background .1s; }
  .sched-staff-cell:last-child { border-right:none; }
  .sched-staff-cell.today-col { background:rgba(0,87,184,.03); }
  .sched-staff-cell.editable { cursor:pointer; }
  .sched-staff-cell.editable:hover { background:#F0F7FF; }
  .sched-row-label { border-right:2px solid var(--gray-200); border-bottom:1px solid var(--gray-100); padding:10px 14px; display:flex; align-items:center; gap:10px; background:var(--gray-50); cursor:pointer; transition:background .1s; }
  .sched-row-label:hover { background:#E8F0FB; }
  .sched-row-label:last-child { border-bottom:none; }
  .sched-staff-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; color:white; flex-shrink:0; }
  .sched-staff-name { font-size:12px; font-weight:700; color:var(--gray-800); }
  .sched-staff-role { font-size:10px; color:var(--gray-400); }
  .sched-staff-total { font-size:11px; color:var(--blue); font-weight:800; margin-top:2px; }
  .sched-row-label.highlighted { background:#DBEAFE !important; }
  .sched-row-label.highlighted .sched-staff-name { color:var(--blue); }

  /* Shift blocks */
  .shift-block {
    border-radius:7px; padding:5px 8px 5px; margin-bottom:4px; font-size:11px; cursor:grab;
    transition:transform .12s, box-shadow .12s, opacity .12s; border-left:3px solid; position:relative;
    user-select:none;
  }
  .shift-block:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,.18); }
  .shift-block.dragging { opacity:.4; cursor:grabbing; transform:scale(.97); }
  .shift-block .sb-time { font-weight:800; color:inherit; font-size:11px; }
  .shift-block .sb-label { font-weight:600; opacity:.8; font-size:10px; margin-top:1px; }
  .shift-block .sb-note { font-size:10px; opacity:.55; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  /* Per-shift responsibility chip — shown when the person wears a hat different from their title */
  .shift-block .sb-resp { display:inline-block; margin-top:3px; padding:1px 7px; border-radius:9px;
    background:var(--purple); color:#fff; font-size:9px; font-weight:800; letter-spacing:.2px;
    text-transform:uppercase; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .shift-block.open-shift { background:#FEF3C7 !important; border-color:#F59E0B !important; color:#92400E !important; }
  .shift-block.pending-sub { background:#EDE9FE !important; border-color:#8B5CF6 !important; color:#5B21B6 !important; }
  /* Sub coverage — someone took an off colleague's shift. Teal accent + "🔁 SUB" badge. */
  .shift-block.shift-sub { border-left:4px solid var(--teal) !important; box-shadow:inset 0 0 0 1.5px rgba(0,163,163,.45); }
  .shift-block .sb-sub { display:inline-block; background:var(--teal); color:#fff; font-size:9px; font-weight:800;
    letter-spacing:.3px; padding:1px 7px; border-radius:9px; margin-bottom:2px; text-transform:uppercase;
    max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  /* Floater position chip — distinct cyan so floaters stand out from other responsibilities */
  .shift-block .sb-resp.sb-resp-floater { background:#0E7490; }

  /* Drop target highlight */
  .sched-staff-cell.drag-over { background:#DBEAFE !important; outline:2px dashed var(--blue); outline-offset:-2px; }

  /* Shift action popup */
  .shift-popup {
    position:fixed; z-index:9999; background:white; border-radius:12px;
    box-shadow:0 8px 32px rgba(0,0,0,.22); padding:6px; min-width:160px;
    border:1px solid var(--gray-200); animation:popupIn .1s ease;
  }
  @keyframes popupIn { from { opacity:0; transform:scale(.92) translateY(-4px); } to { opacity:1; transform:none; } }
  .shift-popup-header { font-size:11px; font-weight:800; color:var(--gray-500); padding:4px 10px 6px; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid var(--gray-100); margin-bottom:4px; }
  .shift-popup-btn { display:flex; align-items:center; gap:8px; width:100%; padding:8px 12px; background:none; border:none; text-align:left; font-size:13px; font-weight:600; color:var(--gray-700); cursor:pointer; border-radius:7px; transition:.1s; }
  .shift-popup-btn:hover { background:var(--gray-50); color:var(--gray-900); }
  .shift-popup-btn.danger { color:#DC2626; }
  .shift-popup-btn.danger:hover { background:#FEF2F2; }

  /* Always-visible add button */
  .shift-add-btn {
    width:100%; padding:5px 4px; font-size:11px; font-weight:600; color:var(--gray-300);
    text-align:center; cursor:pointer; border:1.5px dashed var(--gray-200);
    border-radius:6px; background:none; transition:.15s; display:block; margin-top:2px;
  }
  .sched-staff-cell.editable:hover .shift-add-btn { color:var(--blue); border-color:var(--blue); background:rgba(0,87,184,.04); }

  /* Shift color themes */
  .shift-blue   { background:#EFF6FF; border-color:#3B82F6; color:#1E40AF; }
  .shift-teal   { background:#ECFDF5; border-color:#10B981; color:#065F46; }
  .shift-orange { background:#FFF7ED; border-color:#F97316; color:#9A3412; }
  .shift-green  { background:#F0FDF4; border-color:#22C55E; color:#14532D; }
  .shift-purple { background:#F5F3FF; border-color:#8B5CF6; color:#4C1D95; }
  .shift-red    { background:#FFF1F2; border-color:#EF4444; color:#991B1B; }
  .shift-gray   { background:#F9FAFB; border-color:#9CA3AF; color:#374151; }

  /* Open Shifts Panel */
  .open-shifts-card { background:white; border-radius:14px; padding:20px; box-shadow:0 1px 4px rgba(0,0,0,.07); margin-bottom:20px; }
  .open-shift-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--gray-100); }
  .open-shift-row:last-child { border-bottom:none; }
  .open-shift-date-badge { width:48px; height:48px; background:var(--orange); border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:white; flex-shrink:0; }
  .open-shift-date-badge .osd-mon { font-size:9px; font-weight:700; text-transform:uppercase; }
  .open-shift-date-badge .osd-day { font-size:18px; font-weight:900; line-height:1; }
  .open-shift-info { flex:1; }
  .open-shift-title { font-size:13px; font-weight:700; color:var(--gray-800); }
  .open-shift-meta  { font-size:12px; color:var(--gray-400); margin-top:2px; }
  .open-shift-reason { font-size:11px; color:var(--orange); font-weight:600; margin-top:2px; }

  /* Hours Report */
  .hours-report-card { background:white; border-radius:14px; box-shadow:0 1px 4px rgba(0,0,0,.07); overflow:hidden; margin-bottom:20px; }
  .hours-bar-wrap { display:flex; align-items:center; gap:10px; margin-bottom:5px; }
  .hours-bar-bg { flex:1; height:10px; background:var(--gray-100); border-radius:5px; overflow:hidden; }
  .hours-bar-fill { height:100%; border-radius:5px; transition:width .5s; }
  .hours-bar-val { font-size:12px; font-weight:700; min-width:42px; text-align:right; }
  .hours-over { color:var(--red); }
  .hours-under { color:var(--yellow); }
  .hours-ok { color:var(--green); }

  /* Scheduler Modals */
  .sched-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:2500; display:none; align-items:center; justify-content:center; } /* 2500: was 600, tied with the staff profile overlay → opened BEHIND it */
  .sched-modal-overlay.open { display:flex; }
  .sched-modal { background:white; border-radius:18px; padding:28px; width:460px; max-width:95vw; max-height:88vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.25); }
  .sched-modal h3 { font-size:18px; font-weight:800; margin-bottom:20px; color:var(--gray-800); }
  .sched-modal-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:22px; padding-top:16px; border-top:1px solid var(--gray-100); }

  /* Shift modal enhancements */
  .sched-preset-btn { font-size:11px; font-weight:700; padding:5px 10px; border-radius:7px; border:1.5px solid var(--gray-200); background:var(--gray-50); color:var(--gray-600); cursor:pointer; transition:.12s; white-space:nowrap; }
  .sched-preset-btn:hover { background:var(--blue-light); border-color:var(--blue); color:var(--blue); }
  .sm-color-swatch { display:flex; align-items:center; gap:6px; padding:6px 12px; border-radius:8px; border:2px solid transparent; cursor:pointer; font-size:12px; font-weight:700; transition:.12s; }
  .sm-color-swatch:hover { border-color:var(--gray-300); }
  .sm-color-swatch.selected { border-color:var(--gray-800) !important; box-shadow:0 0 0 3px rgba(0,0,0,.12); }
  .sm-color-dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; }
  .sm-repeat-day { display:flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:var(--gray-600); cursor:pointer; padding:5px 10px; border-radius:7px; border:1.5px solid var(--gray-200); background:var(--gray-50); transition:.12s; }
  .sm-repeat-day:hover { background:var(--blue-light); border-color:var(--blue); color:var(--blue); }
  .sm-repeat-day input { accent-color:var(--blue); }

  /* Time-off request */
  .tor-card { background:white; border-radius:12px; padding:14px 16px; margin-bottom:10px; border-left:4px solid var(--gray-300); display:flex; gap:12px; align-items:flex-start; box-shadow:0 1px 3px rgba(0,0,0,.06); }
  .tor-card.pending  { border-color:var(--yellow); }
  .tor-card.approved { border-color:var(--green); }
  .tor-card.denied   { border-color:var(--red); }

  /* My Schedule (staff profile tab) */
  .my-sched-week-block { background:white; border:1.5px solid var(--gray-200); border-radius:12px; padding:16px; margin-bottom:14px; }
  .my-sched-day-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--gray-100); }
  .my-sched-day-row:last-child { border-bottom:none; }
  .my-sched-day-name { width:80px; font-size:12px; font-weight:700; color:var(--gray-600); text-transform:uppercase; letter-spacing:.5px; flex-shrink:0; }
  .my-sched-day-date { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; color:var(--gray-500); background:var(--gray-100); flex-shrink:0; }
  .my-sched-day-date.has-shift { background:var(--blue); color:white; }
  .my-sched-day-date.today { background:var(--orange); color:white; }
  .my-sched-shifts-list { flex:1; display:flex; flex-wrap:wrap; gap:6px; }
  .my-sched-no-shift { font-size:12px; color:var(--gray-300); font-style:italic; }

  /* ── Supply Page ── */
  .supply-cat-card { background:white; border-radius:16px; box-shadow:0 1px 4px rgba(0,0,0,.07); margin-bottom:16px; overflow:hidden; }
  .supply-cat-header { display:flex; align-items:center; gap:12px; padding:16px 20px; cursor:pointer; user-select:none; transition:background .1s; }
  .supply-cat-header:hover { background:var(--gray-50); }
  .supply-cat-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
  .supply-cat-title { font-size:15px; font-weight:800; color:var(--gray-800); flex:1; }
  .supply-cat-count { font-size:12px; font-weight:700; padding:3px 10px; border-radius:99px; margin-right:4px; }
  .supply-cat-chevron { font-size:14px; color:var(--gray-400); transition:transform .2s; }
  .supply-cat-card.open .supply-cat-chevron { transform:rotate(180deg); }
  .supply-cat-body { display:none; padding:12px 16px 18px; }
  .supply-cat-card.open .supply-cat-body { display:block; }
  .supply-items-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; }
  /* Item box — image on top */
  .supply-item-box { background:var(--gray-50); border:2px solid var(--gray-100); border-radius:14px; display:flex; flex-direction:column; align-items:stretch; transition:border-color .15s, box-shadow .15s; overflow:hidden; }
  .supply-item-box:hover { border-color:var(--gray-300); box-shadow:0 2px 8px rgba(0,0,0,.08); }
  .supply-item-box.has-qty { border-color:var(--blue); box-shadow:0 2px 12px rgba(0,87,184,.15); }
  /* Image area */
  .supply-img-area { width:100%; height:110px; background:var(--gray-100); display:flex; align-items:center; justify-content:center; cursor:pointer; position:relative; overflow:hidden; flex-shrink:0; }
  .supply-img-area img { width:100%; height:100%; object-fit:cover; transition:.2s; }
  .supply-img-area:hover img { transform:scale(1.04); }
  .supply-img-emoji { font-size:46px; line-height:1; user-select:none; }
  .supply-img-overlay { position:absolute; inset:0; background:rgba(0,0,0,.5); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; opacity:0; transition:.15s; }
  .supply-img-area:hover .supply-img-overlay { opacity:1; }
  .supply-img-overlay-icon { font-size:20px; }
  .supply-img-overlay-label { font-size:10px; font-weight:800; color:white; letter-spacing:.3px; }
  /* Item info below image */
  .supply-item-info { padding:8px 10px 10px; display:flex; flex-direction:column; align-items:center; gap:6px; }
  .supply-item-name { font-size:12px; font-weight:700; color:var(--gray-700); text-align:center; line-height:1.3; }
  .supply-item-desc { font-size:10px; color:var(--gray-500); text-align:center; line-height:1.35; }
  /* Admin-only "add item" tile at the end of each category grid */
  .supply-add-tile { border:2px dashed var(--gray-300); background:transparent; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; min-height:180px; color:var(--gray-400); font-weight:700; font-size:13px; transition:.15s; }
  .supply-add-tile:hover { border-color:var(--blue); color:var(--blue); background:#EFF6FF; box-shadow:none; }
  .supply-item-unit { font-size:10px; color:var(--gray-400); text-align:center; }
  .supply-qty-wrap { display:flex; align-items:center; gap:4px; }
  .supply-qty-btn { width:26px; height:26px; border-radius:6px; border:1.5px solid var(--gray-200); background:white; font-size:14px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.1s; color:var(--gray-600); }
  .supply-qty-btn:hover { background:var(--blue-light); border-color:var(--blue); color:var(--blue); }
  .supply-qty-input { width:44px; height:26px; border:1.5px solid var(--gray-200); border-radius:6px; text-align:center; font-size:13px; font-weight:700; color:var(--gray-800); }
  .supply-qty-input.has-qty { border-color:var(--blue); background:var(--blue-light); color:var(--blue); }
  .supply-item-note { font-size:11px; padding:4px 8px; border:1px solid var(--gray-200); border-radius:6px; color:var(--gray-600); background:white; width:100%; box-sizing:border-box; }
  /* Image picker modal */
  .supply-img-picker { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:2000; display:flex; align-items:center; justify-content:center; }
  .supply-img-picker-box { background:white; border-radius:20px; width:440px; max-width:95vw; padding:28px; box-shadow:0 30px 80px rgba(0,0,0,.3); }
  .supply-img-picker-preview { width:100%; height:160px; border-radius:12px; background:var(--gray-100); display:flex; align-items:center; justify-content:center; margin-bottom:16px; overflow:hidden; }
  .supply-img-picker-preview img { max-width:100%; max-height:100%; object-fit:contain; }
  /* Order cards */
  .supply-order-card { background:white; border-radius:14px; padding:16px 20px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.07); border-left:4px solid; }
  .supply-order-card.pending  { border-color:var(--orange); }
  .supply-order-card.approved { border-color:var(--blue); }
  .supply-order-card.supplied { border-color:var(--green); }
  .supply-order-items-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:6px; margin-top:8px; }
  .supply-order-item-chip { background:var(--gray-50); border:1px solid var(--gray-100); border-radius:6px; padding:5px 10px; font-size:11px; color:var(--gray-700); }
  .supply-cart-bar { position:sticky; bottom:0; background:white; border-top:2px solid var(--blue-light); padding:14px 20px; display:flex; align-items:center; gap:14px; border-radius:0 0 16px 16px; margin-top:4px; box-shadow:0 -4px 16px rgba(0,0,0,.07); }
  .supply-cart-summary { flex:1; font-size:13px; font-weight:700; color:var(--gray-700); }
  .supply-cart-empty { color:var(--gray-300); font-weight:500; }

  /* ── My Job Page ── */
  .myjob-role-hero { border-radius:20px; padding:28px 30px 24px; margin-bottom:20px; position:relative; overflow:hidden; }
  .myjob-role-hero::before { content:''; position:absolute; right:-30px; top:-30px; width:160px; height:160px; border-radius:50%; background:rgba(255,255,255,.1); }
  .myjob-role-hero::after  { content:''; position:absolute; right:60px; bottom:-40px; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,.07); }
  .myjob-greeting { font-size:13px; font-weight:700; color:rgba(255,255,255,.8); margin-bottom:4px; }
  .myjob-name-line { font-size:26px; font-weight:900; color:white; line-height:1.1; margin-bottom:6px; }
  .myjob-tagline { font-size:13px; color:rgba(255,255,255,.85); line-height:1.5; max-width:520px; margin-bottom:14px; }
  .myjob-signed-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 14px; border-radius:99px; font-size:12px; font-weight:700; }
  .myjob-signed-pill.signed   { background:#DCFCE7; color:#15803D; }
  .myjob-signed-pill.unsigned { background:#FEF3C7; color:#92400E; }
  /* Attachment card */
  .myjob-doc-card { display:flex; align-items:center; gap:14px; padding:14px 18px; background:white; border:2px solid var(--gray-100); border-radius:12px; cursor:pointer; transition:.15s; text-decoration:none; }
  .myjob-doc-card:hover { border-color:var(--blue); box-shadow:0 2px 10px rgba(0,87,184,.1); }
  .myjob-doc-icon-wrap { width:46px; height:46px; border-radius:10px; background:#EFF6FF; display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
  .myjob-doc-title { font-size:14px; font-weight:700; color:var(--gray-800); }
  .myjob-doc-meta  { font-size:11px; color:var(--gray-400); margin-top:2px; }
  .myjob-doc-arrow { font-size:18px; color:var(--gray-300); margin-left:auto; }
  /* Signed doc viewer modal */
  .myjob-doc-overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:1600; display:none; align-items:center; justify-content:center; }
  .myjob-doc-modal { background:#F8F9FA; border-radius:20px; width:720px; max-width:96vw; max-height:94vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.35); }
  .myjob-doc-paper { background:white; margin:0 24px 0; border-radius:0; padding:40px 48px; flex:1; overflow-y:auto; box-shadow:0 0 30px rgba(0,0,0,.08); font-family:'Georgia',serif; }
  @media print { .myjob-doc-overlay { position:static; background:none; } .myjob-doc-modal { box-shadow:none; } }
  .myjob-section { background:white; border-radius:16px; padding:22px 24px; margin-bottom:16px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
  .myjob-section-title { font-size:13px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.6px; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
  .myjob-desc-body { font-size:14px; color:var(--gray-700); line-height:1.7; white-space:pre-wrap; }
  .myjob-resp-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
  .myjob-resp-item { display:flex; align-items:flex-start; gap:12px; padding:11px 14px; background:var(--gray-50); border-radius:10px; border-left:3px solid transparent; }
  .myjob-resp-item:hover { background:white; box-shadow:0 1px 4px rgba(0,0,0,.06); }
  .myjob-resp-num { width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; flex-shrink:0; margin-top:1px; }
  .myjob-resp-text { font-size:13px; color:var(--gray-700); font-weight:500; line-height:1.4; flex:1; }
  .myjob-admin-bar { display:flex; align-items:center; gap:10px; margin-bottom:20px; padding:14px 18px; background:white; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
  /* Edit modal */
  .myjob-edit-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:1500; display:none; align-items:center; justify-content:center; }
  .myjob-edit-box { background:white; border-radius:20px; width:680px; max-width:96vw; max-height:92vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.3); }
  .myjob-edit-scroll { flex:1; overflow-y:auto; padding:24px 28px; }
  .myjob-edit-resp-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
  .myjob-edit-resp-input { flex:1; padding:9px 12px; border:1.5px solid var(--gray-200); border-radius:8px; font-size:13px; }
  .myjob-edit-resp-del { width:30px; height:30px; border-radius:7px; background:var(--gray-100); border:none; cursor:pointer; font-size:14px; color:var(--gray-400); }
  .myjob-edit-resp-del:hover { background:#FEE2E2; color:#EF4444; }

  /* KPI Drilldown */
  .kpi-card { cursor:pointer; transition:transform .15s, box-shadow .15s; }
  .kpi-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,.13); }
  .kpi-card:hover .kpi-label::after { content:' ↗'; font-size:10px; opacity:.6; }
  .dd-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:800; display:none; align-items:center; justify-content:center; }
  .dd-modal { background:white; border-radius:20px; width:860px; max-width:97vw; max-height:92vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.3); }
  .dd-header { background:linear-gradient(135deg,#0057B8,#00A3A3); color:white; padding:22px 28px; flex-shrink:0; }
  .dd-header h2 { margin:0 0 4px; font-size:20px; font-weight:800; }
  .dd-sub { font-size:13px; opacity:.85; }
  .dd-body { flex:1; overflow-y:auto; padding:24px 28px; }
  .dd-table { width:100%; border-collapse:collapse; font-size:13px; }
  .dd-table th { background:#F3F4F6; padding:9px 12px; text-align:left; font-size:11px; font-weight:700; color:#6B7280; text-transform:uppercase; letter-spacing:.4px; border-bottom:2px solid #E5E7EB; position:sticky; top:0; }
  .dd-table td { padding:9px 12px; border-bottom:1px solid #F3F4F6; }
  .dd-table tr:hover td { background:#F9FAFB; }
  .dd-table tr.totals-row td { background:#EFF6FF; font-weight:700; border-top:2px solid #BFDBFE; }
  .dd-math-box { background:#F0FDF4; border:1.5px solid #86EFAC; border-radius:12px; padding:18px 22px; margin-bottom:20px; }
  .dd-math-eq  { font-size:18px; font-weight:800; color:#15803D; text-align:center; margin-top:6px; }
  .dd-stat-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; margin-bottom:20px; }
  .dd-stat { background:#F9FAFB; border-radius:10px; padding:14px; text-align:center; border:1.5px solid #E5E7EB; }
  .dd-stat-val { font-size:26px; font-weight:900; color:#111827; }
  .dd-stat-lbl { font-size:11px; color:#9CA3AF; font-weight:600; text-transform:uppercase; letter-spacing:.4px; margin-top:2px; }


  /* ══════════════════════════════════════════════════════
     MONDAY BOARD — Full Workspace/Board Layout
  ══════════════════════════════════════════════════════ */

  /* App shell */
  .mon-app { display:flex; flex:1; height:100%; overflow:hidden; }

  /* ── Sidebar ── */
  .mon-sidebar { width:240px; min-width:240px; background:#1E1F28; border-right:1px solid #2A2B36; overflow-y:auto; padding:12px 0; }
  .mon-ws-item { margin-bottom:2px; }
  .mon-ws-header { display:flex; align-items:center; gap:8px; padding:8px 14px; cursor:pointer; transition:.12s; border-radius:0; }
  .mon-ws-header:hover { background:#2A2B36; }
  .mon-ws-item.open > .mon-ws-header { background:#2A2B36; }
  .mon-ws-icon { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
  .mon-ws-name { font-size:13px; font-weight:700; color:#E5E7EB; flex:1; }
  .mon-ws-chevron { font-size:10px; color:#6B7280; }
  .mon-ws-boards { padding:0 0 4px 12px; }
  .mon-board-link { display:flex; align-items:center; gap:8px; padding:6px 12px; border-radius:8px; cursor:pointer; font-size:12px; font-weight:600; color:#9CA3AF; transition:.12s; margin:2px 4px; }
  .mon-board-link:hover { background:#2A2B36; color:#E5E7EB; }
  .mon-board-link.active { background:#2A3F7A; color:white; }
  .mon-board-link.add-board { color:#4B6A8A; font-weight:500; font-size:11px; }
  .mon-board-link.add-board:hover { color:#00A3A3; }
  .mon-board-count { margin-left:auto; background:#2A2B36; border-radius:99px; font-size:10px; padding:1px 6px; color:#6B7280; }
  .mon-add-ws-btn { margin:8px 14px; padding:8px 14px; border-radius:8px; font-size:12px; font-weight:700; color:#4B9EFF; cursor:pointer; border:1.5px dashed #2A3F7A; text-align:center; transition:.15s; }
  .mon-add-ws-btn:hover { background:#2A3F7A; }

  /* ── Main Board Area ── */
  .mon-main { flex:1; display:flex; flex-direction:column; overflow:hidden; background:#F8F9FB; }

  /* ── Board Header ── */
  .mon-bh-top { background:white; border-bottom:1.5px solid #E5E7EB; padding:16px 24px 0; flex-shrink:0; }
  .mon-bh-title-row { display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; }
  .mon-bh-icon { font-size:28px; cursor:pointer; padding:4px; border-radius:8px; transition:.15s; }
  .mon-bh-icon:hover { background:var(--gray-100); }
  .mon-bh-name { font-size:22px; font-weight:900; color:var(--gray-900); line-height:1.2; border:none; outline:none; cursor:text; }
  .mon-bh-name:focus { border-bottom:2px solid var(--blue); }
  .mon-bh-meta { font-size:12px; color:var(--gray-400); margin-top:2px; }
  .mon-bh-actions { display:flex; gap:8px; align-items:center; margin-left:auto; }
  .mon-action-btn { padding:7px 14px; border-radius:8px; font-size:12px; font-weight:700; border:1.5px solid var(--gray-200); background:white; cursor:pointer; transition:.12s; color:var(--gray-600); }
  .mon-action-btn:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
  .mon-action-btn.primary { background:var(--blue); color:white; border-color:var(--blue); }
  .mon-action-btn.primary:hover { background:#0048a0; }
  .mon-action-btn.danger { color:var(--red); border-color:#FECACA; }
  .mon-action-btn.danger:hover { background:#FEE2E2; }

  /* Toolbar */
  .mon-bh-toolbar { display:flex; align-items:center; gap:12px; padding-bottom:12px; }
  .mon-view-tabs { display:flex; gap:4px; border-radius:10px; background:var(--gray-100); padding:4px; }
  .mon-view-tab { padding:5px 14px; border-radius:7px; font-size:12px; font-weight:700; border:none; cursor:pointer; background:transparent; color:var(--gray-500); transition:.12s; }
  .mon-view-tab.active { background:white; color:var(--blue); box-shadow:0 1px 4px rgba(0,0,0,.1); }
  .mon-toolbar-right { display:flex; align-items:center; gap:10px; margin-left:auto; }
  .mon-search-input { padding:7px 14px; border:1.5px solid var(--gray-200); border-radius:8px; font-size:13px; width:220px; outline:none; transition:.15s; }
  .mon-search-input:focus { border-color:var(--blue); }

  /* ── Board Content Scroll Area ── */
  .mon-board-content { flex:1; overflow:auto; padding:16px 20px; }

  /* ── Table View ── */
  .mon-table-wrap { min-width:max-content; }
  .mon-table-group { margin-bottom:20px; border-radius:12px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06); }
  .mon-grp-header { display:flex; align-items:center; gap:10px; background:white; padding:10px 14px; cursor:pointer; user-select:none; border-bottom:1.5px solid var(--gray-100); }
  .mon-grp-chevron { font-size:11px; color:var(--gray-400); width:16px; }
  .mon-grp-dot { width:12px; height:12px; border-radius:3px; flex-shrink:0; }
  .mon-grp-name { font-size:13px; font-weight:800; color:var(--gray-800); flex:1; outline:none; border:none; background:transparent; }
  .mon-grp-name:focus { border-bottom:1.5px solid var(--blue); }
  .mon-grp-count { font-size:11px; color:var(--gray-400); }
  .mon-grp-actions { display:flex; gap:6px; opacity:0; transition:.15s; }
  .mon-grp-header:hover .mon-grp-actions { opacity:1; }
  .mon-grp-action-btn { padding:3px 10px; border-radius:6px; font-size:11px; font-weight:700; border:none; cursor:pointer; background:var(--gray-100); color:var(--gray-600); }
  .mon-grp-action-btn:hover { background:var(--blue-light); color:var(--blue); }
  .mon-grp-action-btn.danger:hover { background:#FEE2E2; color:var(--red); }

  .mon-table-inner { background:white; }
  .mon-col-headers { display:flex; align-items:center; background:var(--gray-50); border-bottom:1.5px solid var(--gray-200); }
  .mon-th { padding:8px 12px; font-size:11px; font-weight:800; color:var(--gray-500); text-transform:uppercase; letter-spacing:.4px; flex-shrink:0; display:flex; align-items:center; gap:4px; }
  .mon-th.add-col { cursor:pointer; color:var(--blue); font-size:16px; padding:8px 14px; }
  .mon-th.add-col:hover { background:var(--blue-light); }

  .mon-rows-body { }
  .mon-table-row { display:flex; align-items:center; border-bottom:1px solid var(--gray-100); transition:.1s; }
  .mon-table-row:hover { background:var(--gray-50); }
  .mon-row-check { width:48px; flex-shrink:0; display:flex; align-items:center; justify-content:center; gap:2px; }
  .mon-lead-spacer { width:48px; flex-shrink:0; }
  .mon-td { padding:8px 12px; font-size:13px; color:var(--gray-700); flex-shrink:0; min-height:40px; display:flex; align-items:center; cursor:pointer; overflow:hidden; border-right:1px solid var(--gray-100); }
  .mon-td:hover { background:var(--blue-light); }
  .mon-td.expand-cell { width:36px; min-width:36px; justify-content:center; color:var(--gray-300); font-size:14px; border-right:none; }
  .mon-td.expand-cell:hover { color:var(--blue); background:var(--blue-light); }
  .mon-cell-name { font-size:13px; font-weight:600; color:var(--gray-800); }
  .mon-status-pill { padding:3px 10px; border-radius:6px; font-size:11px; font-weight:800; white-space:nowrap; }
  .mon-priority-pill { padding:3px 8px; border-radius:5px; font-size:11px; font-weight:700; }
  .mon-add-item-row { padding:9px 14px; font-size:12px; color:var(--gray-300); cursor:pointer; transition:.1s; border-top:1px solid var(--gray-100); }
  .mon-add-item-row:hover { background:var(--blue-light); color:var(--blue); }
  .mon-add-group-btn { margin-top:8px; padding:10px 18px; font-size:12px; font-weight:700; color:var(--blue); cursor:pointer; display:inline-block; border-radius:8px; transition:.15s; }
  .mon-add-group-btn:hover { background:var(--blue-light); }

  /* ── Kanban View ── */
  .mon-kanban-board { display:flex; gap:14px; padding:4px 4px 20px; min-width:max-content; }
  .mon-kanban-col { width:260px; min-width:260px; display:flex; flex-direction:column; gap:8px; }
  .mon-kanban-col-header { display:flex; align-items:center; gap:8px; padding:10px 14px; background:white; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,.07); }
  .mon-kanban-col-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
  .mon-kanban-col-name { font-size:13px; font-weight:800; color:var(--gray-700); flex:1; }
  .mon-kanban-col-count { font-size:11px; font-weight:700; padding:2px 7px; border-radius:99px; background:var(--gray-100); color:var(--gray-500); }
  .mon-kanban-cards { display:flex; flex-direction:column; gap:8px; }
  .mon-kanban-card { background:white; border-radius:10px; padding:14px; box-shadow:0 1px 3px rgba(0,0,0,.07); cursor:pointer; transition:.15s; border:1.5px solid transparent; }
  .mon-kanban-card:hover { border-color:var(--blue); box-shadow:0 3px 12px rgba(0,87,184,.12); }
  .mon-kanban-card-name { font-size:13px; font-weight:700; color:var(--gray-800); margin-bottom:8px; line-height:1.4; }
  .mon-kanban-card-meta { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  .mon-kanban-add { padding:8px 14px; border-radius:8px; font-size:12px; font-weight:700; color:var(--gray-400); cursor:pointer; border:1.5px dashed var(--gray-200); text-align:center; transition:.15s; background:white; }
  .mon-kanban-add:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
  .mon-kanban-add-col { width:44px; min-width:44px; display:flex; align-items:flex-start; padding-top:14px; color:var(--gray-300); font-size:22px; cursor:pointer; transition:.15s; justify-content:center; }
  .mon-kanban-add-col:hover { color:var(--blue); }

  /* ── Calendar View ── */
  .mon-calendar-view { background:white; border-radius:14px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.08); }
  .mon-cal-header { padding:16px 20px; border-bottom:1.5px solid var(--gray-100); }
  .mon-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); }
  .mon-cal-dow { text-align:center; padding:8px; font-size:11px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.4px; border-bottom:1.5px solid var(--gray-100); background:var(--gray-50); }
  .mon-cal-day { min-height:90px; padding:6px 8px; border-right:1px solid var(--gray-100); border-bottom:1px solid var(--gray-100); }
  .mon-cal-day.empty { background:var(--gray-50); }
  .mon-cal-day.today { background:#EFF6FF; }
  .mon-cal-day-num { font-size:13px; font-weight:700; color:var(--gray-600); margin-bottom:4px; width:26px; height:26px; display:flex; align-items:center; justify-content:center; border-radius:50%; }
  .mon-cal-day-num.today-num { background:var(--blue); color:white; }
  .mon-cal-event { font-size:11px; font-weight:600; padding:2px 6px; border-radius:4px; color:white; margin-bottom:3px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

  /* ── Item Detail Panel ── */
  .mon-detail-panel { position:fixed; right:0; top:0; bottom:0; width:540px; max-width:95vw; background:white; z-index:1300; transform:translateX(100%); transition:transform .25s cubic-bezier(.25,.8,.25,1); overflow:hidden; display:flex; flex-direction:column; box-shadow:-8px 0 40px rgba(0,0,0,.15); }
  .mon-detail-panel.open { transform:translateX(0); }
  .mon-detail-head { padding:20px 24px 16px; border-bottom:1.5px solid var(--gray-100); display:flex; align-items:flex-start; gap:12px; flex-shrink:0; }
  .mon-detail-title-input { font-size:18px; font-weight:900; color:var(--gray-900); border:none; outline:none; width:100%; background:transparent; }
  .mon-detail-title-input:focus { border-bottom:2px solid var(--blue); }
  .mon-detail-body { flex:1; overflow-y:auto; padding:20px 24px; }
  .mon-detail-fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:22px; }
  .mon-detail-field label { font-size:11px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.5px; display:block; margin-bottom:5px; }
  .mon-detail-input, .mon-detail-select { width:100%; padding:8px 12px; border:1.5px solid var(--gray-200); border-radius:8px; font-size:13px; color:var(--gray-700); outline:none; box-sizing:border-box; transition:.15s; }
  .mon-detail-input:focus, .mon-detail-select:focus { border-color:var(--blue); }
  .mon-section-lbl { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:var(--gray-400); margin-bottom:10px; margin-top:4px; }
  .mon-update-thread { max-height:220px; overflow-y:auto; margin-bottom:12px; display:flex; flex-direction:column; gap:10px; }
  .mon-update-item { background:var(--gray-50); border-radius:10px; padding:10px 14px; }
  .mon-update-meta { font-size:11px; font-weight:700; color:var(--gray-400); margin-bottom:4px; }
  .mon-update-text { font-size:13px; color:var(--gray-700); line-height:1.5; }
  .mon-update-input { display:flex; gap:10px; align-items:flex-end; }
  .mon-update-input textarea { flex:1; padding:9px 12px; border:1.5px solid var(--gray-200); border-radius:8px; font-size:13px; resize:none; min-height:72px; outline:none; transition:.15s; }
  .mon-update-input textarea:focus { border-color:var(--blue); }
  .mon-attach-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
  .mon-attach-img { width:80px; height:80px; object-fit:cover; border-radius:8px; border:1.5px solid var(--gray-200); cursor:pointer; }
  .mon-attach-chip { padding:5px 12px; background:var(--gray-50); border:1.5px solid var(--gray-200); border-radius:7px; font-size:12px; color:var(--gray-600); }
  .mon-attach-btn { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border:1.5px dashed var(--gray-300); border-radius:8px; cursor:pointer; font-size:12px; font-weight:600; color:var(--gray-500); transition:.15s; }
  .mon-attach-btn:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }

  /* Cell popup */
  .mon-cell-popup { animation-duration:.12s; }
  @keyframes popIn { from{opacity:0;transform:scale(.95) translateY(-4px)} to{opacity:1;transform:scale(1) translateY(0)} }

  /* ═══════════════════════════════════════════════════════════
     MONDAY.COM SIGNATURE UPGRADE — full-color cells, batteries,
     summaries, automations, activity log, filters
     ═══════════════════════════════════════════════════════════ */

  /* ── Full-color status & priority cells (the iconic Monday look) ── */
  .mon-td.fill { padding:0; border-right:2px solid white; }
  .mon-fill-cell {
    width:100%; height:100%; min-height:40px; display:flex; align-items:center; justify-content:center;
    color:white; font-size:12px; font-weight:600; text-align:center; line-height:1.2;
    position:relative; transition:filter .12s; padding:4px 8px; box-sizing:border-box;
  }
  .mon-fill-cell:hover { filter:brightness(.93); }
  .mon-fill-cell.empty { background:#C4C4C4; color:rgba(255,255,255,.85); }
  .mon-fill-cell .mon-fill-corner { position:absolute; right:0; bottom:0; width:0; height:0;
    border-style:solid; border-width:0 0 8px 8px; border-color:transparent transparent rgba(255,255,255,.5) transparent; }

  /* ── Group battery / status distribution bar ── */
  .mon-grp-battery { display:flex; height:100%; width:100%; border-radius:4px; overflow:hidden; min-height:22px; }
  .mon-battery-seg { height:100%; transition:width .3s; position:relative; }
  .mon-battery-seg:hover::after {
    content:attr(data-label); position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%);
    background:var(--gray-900); color:white; font-size:10px; font-weight:700; padding:3px 8px; border-radius:5px; white-space:nowrap; z-index:50;
  }

  /* ── Column footer summary row ── */
  .mon-col-footer { display:flex; align-items:stretch; background:white; border-top:2px solid var(--gray-100); }
  .mon-foot-check { width:48px; flex-shrink:0; }
  .mon-foot-cell { padding:6px 12px; font-size:11px; flex-shrink:0; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--gray-100); overflow:hidden; }
  .mon-foot-cell .mon-foot-val { font-size:13px; font-weight:800; color:var(--gray-700); }
  .mon-foot-cell .mon-foot-lbl { font-size:9px; font-weight:700; color:var(--gray-400); text-transform:uppercase; letter-spacing:.4px; }

  /* ── Toolbar: filter / sort / person chips ── */
  .mon-toolbar-right { display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; }
  .mon-tool-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:8px; font-size:12px; font-weight:700; border:1.5px solid var(--gray-200); background:white; cursor:pointer; transition:.12s; color:var(--gray-600); }
  .mon-tool-chip:hover { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
  .mon-tool-chip.active { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
  .mon-tool-chip.auto { border-color:#A258F5; color:#7B2BD6; }
  .mon-tool-chip.auto:hover { background:#F5EDFF; }
  .mon-tool-chip .mon-chip-count { background:var(--blue); color:white; font-size:10px; font-weight:800; padding:0 6px; border-radius:99px; min-width:16px; text-align:center; }
  .mon-tool-chip.auto .mon-chip-count { background:#A258F5; }
  .mon-person-filter-row { display:flex; align-items:center; gap:4px; }
  .mon-pf-avatar { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; color:white; cursor:pointer; border:2px solid transparent; margin-left:-6px; transition:.12s; }
  .mon-pf-avatar:first-child { margin-left:0; }
  .mon-pf-avatar:hover { transform:translateY(-2px); }
  .mon-pf-avatar.active { border-color:var(--blue); transform:translateY(-2px); box-shadow:0 2px 8px rgba(0,87,184,.3); }

  /* ── Generic Monday modal (wider, for automations) ── */
  .mon-modal-wrap { max-width:760px; width:760px; }
  .mon-modal-head { display:flex; align-items:center; gap:12px; margin-bottom:6px; }
  .mon-modal-head .mon-modal-emoji { font-size:26px; }
  .mon-modal-title { font-size:20px; font-weight:900; color:var(--gray-900); }
  .mon-modal-sub { font-size:13px; color:var(--gray-400); margin-bottom:20px; }
  .mon-modal-tabs { display:flex; gap:6px; border-bottom:2px solid var(--gray-100); margin-bottom:18px; }
  .mon-modal-tab { padding:9px 16px; font-size:13px; font-weight:700; color:var(--gray-500); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:.12s; }
  .mon-modal-tab:hover { color:var(--gray-800); }
  .mon-modal-tab.active { color:#7B2BD6; border-bottom-color:#A258F5; }

  /* ── Automation recipe cards ── */
  .mon-recipe-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; max-height:50vh; overflow-y:auto; padding:2px; }
  .mon-recipe-card { border:1.5px solid var(--gray-200); border-radius:12px; padding:16px; cursor:pointer; transition:.15s; background:white; display:flex; flex-direction:column; gap:8px; }
  .mon-recipe-card:hover { border-color:#A258F5; box-shadow:0 4px 16px rgba(162,88,245,.15); transform:translateY(-2px); }
  .mon-recipe-icon { width:38px; height:38px; border-radius:10px; background:#F5EDFF; display:flex; align-items:center; justify-content:center; font-size:18px; }
  .mon-recipe-text { font-size:13px; color:var(--gray-700); line-height:1.5; }
  .mon-recipe-text b { color:var(--gray-900); font-weight:800; }
  .mon-recipe-text .mon-rc-status { display:inline-block; padding:1px 8px; border-radius:5px; color:white; font-size:11px; font-weight:700; vertical-align:middle; }

  /* ── Active automations list ── */
  .mon-auto-item { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1.5px solid var(--gray-200); border-radius:12px; margin-bottom:10px; background:white; transition:.12s; }
  .mon-auto-item:hover { border-color:var(--gray-300); }
  .mon-auto-item.disabled { opacity:.55; }
  .mon-auto-icon { width:36px; height:36px; border-radius:9px; background:#F5EDFF; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
  .mon-auto-body { flex:1; font-size:13px; color:var(--gray-700); line-height:1.5; }
  .mon-auto-toggle { width:42px; height:24px; border-radius:99px; background:var(--gray-300); position:relative; cursor:pointer; transition:.15s; flex-shrink:0; }
  .mon-auto-toggle.on { background:#22C55E; }
  .mon-auto-toggle::after { content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:white; transition:.15s; box-shadow:0 1px 3px rgba(0,0,0,.3); }
  .mon-auto-toggle.on::after { left:20px; }
  .mon-auto-del { background:none; border:none; cursor:pointer; color:var(--gray-300); font-size:16px; padding:4px; flex-shrink:0; }
  .mon-auto-del:hover { color:var(--red); }

  /* ── Custom automation builder sentence ── */
  .mon-builder { background:var(--gray-50); border:1.5px solid var(--gray-200); border-radius:14px; padding:22px; font-size:16px; line-height:2.1; color:var(--gray-700); }
  .mon-builder-token { display:inline-block; padding:4px 12px; border-radius:8px; font-size:14px; font-weight:700; cursor:pointer; margin:0 2px; border:1.5px dashed; transition:.12s; }
  .mon-builder-token.trigger { color:#0073EA; border-color:#0073EA; background:#E5F0FF; }
  .mon-builder-token.action { color:#7B2BD6; border-color:#A258F5; background:#F5EDFF; }
  .mon-builder-token:hover { filter:brightness(.95); transform:translateY(-1px); }
  .mon-builder-token.unset { color:var(--gray-400); border-color:var(--gray-300); background:white; }

  /* ── Activity log ── */
  .mon-activity-list { max-height:55vh; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
  .mon-activity-row { display:flex; gap:12px; padding:11px 8px; border-bottom:1px solid var(--gray-100); font-size:13px; align-items:flex-start; }
  .mon-activity-ava { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:white; flex-shrink:0; }
  .mon-activity-ava.bot { background:linear-gradient(135deg,#A258F5,#7B2BD6); }
  .mon-activity-main { flex:1; }
  .mon-activity-text { color:var(--gray-700); line-height:1.4; }
  .mon-activity-text b { color:var(--gray-900); font-weight:700; }
  .mon-activity-time { font-size:11px; color:var(--gray-400); margin-top:2px; }

  /* ── Notification bell ── */
  .mon-bell { position:relative; cursor:pointer; font-size:18px; padding:6px; border-radius:8px; transition:.12s; }
  .mon-bell:hover { background:var(--gray-100); }
  .mon-bell-badge { position:absolute; top:0; right:0; background:var(--red); color:white; font-size:9px; font-weight:800; min-width:15px; height:15px; border-radius:99px; display:flex; align-items:center; justify-content:center; padding:0 3px; }
  .mon-notif-pop { position:absolute; right:0; top:calc(100% + 8px); width:340px; background:white; border:1.5px solid var(--gray-200); border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,.18); z-index:200; overflow:hidden; }
  .mon-notif-head { padding:12px 16px; font-size:13px; font-weight:800; color:var(--gray-800); border-bottom:1px solid var(--gray-100); display:flex; justify-content:space-between; align-items:center; }
  .mon-notif-item { padding:12px 16px; border-bottom:1px solid var(--gray-100); font-size:12.5px; color:var(--gray-600); line-height:1.5; display:flex; gap:10px; }
  .mon-notif-item:last-child { border-bottom:none; }
  .mon-notif-item.unread { background:#F0F6FF; }
  .mon-notif-dot { width:8px; height:8px; border-radius:50%; background:var(--blue); flex-shrink:0; margin-top:5px; }

  /* ── Drag & drop rows ── */
  .mon-table-row.dragging { opacity:.4; }
  .mon-table-row.drag-over { border-top:2px solid var(--blue); }
  .mon-row-drag { width:20px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--gray-300); cursor:grab; font-size:13px; opacity:0; transition:.12s; }
  .mon-table-row:hover .mon-row-drag { opacity:1; }

  /* ── Dashboard / widgets view ── */
  .mon-dash-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
  .mon-widget { background:white; border-radius:14px; padding:20px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
  .mon-widget-title { font-size:13px; font-weight:800; color:var(--gray-700); margin-bottom:16px; display:flex; align-items:center; gap:8px; }
  .mon-widget-big { font-size:38px; font-weight:900; line-height:1; }
  .mon-widget-sub { font-size:12px; color:var(--gray-400); margin-top:6px; }
  .mon-donut-legend { display:flex; flex-direction:column; gap:7px; margin-top:14px; }
  .mon-donut-leg-row { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--gray-600); }
  .mon-donut-leg-dot { width:11px; height:11px; border-radius:3px; flex-shrink:0; }
  .mon-wkload-row { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
  .mon-wkload-bar-track { flex:1; height:10px; background:var(--gray-100); border-radius:99px; overflow:hidden; }
  .mon-wkload-bar-fill { height:100%; border-radius:99px; transition:width .4s; }

  /* ═══════════════════════════════════════════════════════════
     CLOCK-IN STATION KIOSK
     ═══════════════════════════════════════════════════════════ */
  .clock-kiosk-wrap { min-height:100vh; max-width:560px; margin:0 auto; padding:24px 20px 48px; display:flex; flex-direction:column; align-items:center; }
  .clock-kiosk-header { width:100%; display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
  .clock-kiosk-brand { font-size:15px; font-weight:800; color:rgba(255,255,255,.95); letter-spacing:.3px; }
  .clock-exit-btn { background:rgba(255,255,255,.12); color:white; border:1px solid rgba(255,255,255,.25); border-radius:8px; padding:7px 14px; font-size:12px; font-weight:700; cursor:pointer; transition:.15s; }
  .clock-exit-btn:hover { background:rgba(255,255,255,.22); }
  .clock-kiosk-loc { font-size:15px; font-weight:800; margin-bottom:6px; letter-spacing:.4px; }
  .clock-kiosk-time { font-size:64px; font-weight:900; color:white; line-height:1; font-variant-numeric:tabular-nums; text-shadow:0 2px 20px rgba(0,0,0,.25); }
  .clock-kiosk-date { font-size:14px; color:rgba(255,255,255,.75); margin:8px 0 22px; }

  .clock-panel { background:white; border-radius:22px; padding:26px 24px; width:100%; box-shadow:0 24px 60px rgba(0,0,0,.3); }
  .clock-panel-label { font-size:14px; font-weight:700; color:var(--gray-700); text-align:center; margin-bottom:16px; }
  .clock-dots { display:flex; justify-content:center; gap:14px; margin-bottom:18px; }
  .clock-dot { width:48px; height:58px; border:2px solid var(--gray-200); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:30px; color:var(--blue); background:var(--gray-50); transition:.12s; }
  .clock-dot.filled { border-color:var(--blue); background:var(--blue-light); }

  .clock-result { border:2px solid; border-radius:14px; padding:16px 18px; margin-bottom:16px; text-align:center; animation:popIn .18s ease; }
  .clock-result-title { font-size:20px; font-weight:900; line-height:1.25; }
  .clock-result-sub { font-size:13px; font-weight:600; margin-top:6px; opacity:.85; }

  .clock-keypad { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
  .clock-key { padding:18px 0; font-size:24px; font-weight:800; color:var(--gray-800); background:var(--gray-50); border:1.5px solid var(--gray-200); border-radius:14px; cursor:pointer; transition:.1s; user-select:none; }
  .clock-key:hover { background:var(--blue-light); border-color:var(--blue); }
  .clock-key:active { transform:scale(.95); }
  .clock-key-clear, .clock-key-back { font-size:15px; color:var(--gray-500); }
  .clock-submit { width:100%; padding:18px; font-size:18px; font-weight:800; color:white; border:none; border-radius:14px; cursor:pointer; transition:.15s; box-shadow:0 6px 18px rgba(0,0,0,.18); }
  .clock-submit:hover { filter:brightness(1.05); }
  .clock-submit:active { transform:translateY(1px); }

  .clock-roster { width:100%; margin-top:22px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); border-radius:16px; padding:16px 18px; }
  .clock-roster-title { font-size:13px; font-weight:800; color:white; margin-bottom:12px; }
  .clock-roster-empty { font-size:13px; color:rgba(255,255,255,.7); text-align:center; padding:8px; }
  .clock-roster-grid { display:flex; flex-direction:column; gap:8px; }
  .clock-roster-row { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.95); border-radius:10px; padding:8px 12px; }
  .clock-ava { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:white; font-size:11px; font-weight:800; flex-shrink:0; }
  .clock-roster-main { flex:1; min-width:0; }
  .clock-roster-name { font-size:13px; font-weight:700; color:var(--gray-800); }
  .clock-roster-time { font-size:11px; color:var(--gray-500); }
  .clock-chip { font-size:10px; font-weight:800; padding:3px 9px; border-radius:99px; white-space:nowrap; flex-shrink:0; }
  .clock-chip.sched  { background:var(--gray-100); color:var(--gray-500); }
  .clock-chip.active { background:#DBEAFE; color:#1E40AF; }
  .clock-chip.done   { background:#DCFCE7; color:#15803D; }
  .clock-chip.auto   { background:#FFEDD5; color:#9A3412; }
  .clock-chip.noshow { background:#FEE2E2; color:#991B1B; }

  /* ── My Job: Attendance card ── */
  .clock-att-card { background:white; border-radius:16px; padding:20px 22px; box-shadow:0 1px 4px rgba(0,0,0,.07); margin-bottom:20px; border:1px solid var(--gray-100); }
  .clock-att-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
  .clock-att-title { font-size:16px; font-weight:900; color:var(--gray-900); }
  .clock-att-sub { font-size:12px; color:var(--gray-400); margin-top:3px; }
  .clock-att-stars { text-align:right; }
  .clock-att-stars-val { font-size:24px; font-weight:900; line-height:1; }
  .clock-att-stars-lbl { font-size:11px; color:var(--gray-400); font-weight:600; margin-top:3px; }
  .clock-att-table-wrap { overflow-x:auto; }
  .clock-att-table { width:100%; border-collapse:collapse; font-size:13px; }
  .clock-att-table thead th { text-align:left; font-size:10px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.4px; padding:6px 10px; border-bottom:1.5px solid var(--gray-100); }
  .clock-att-table tbody td { padding:9px 10px; border-bottom:1px solid var(--gray-100); color:var(--gray-700); }
  .clock-att-table tbody tr:last-child td { border-bottom:none; }
  .clock-att-empty { font-size:13px; color:var(--gray-400); text-align:center; padding:24px; background:var(--gray-50); border-radius:12px; }

  @media (max-width:600px) {
    .clock-kiosk-time { font-size:52px; }
    .clock-dot { width:42px; height:52px; font-size:26px; }
  }

  /* ═══════════════════════════════════════════════════════════
     FINTASTIC BRAIN — social marketing funnel + platform tabs
     ═══════════════════════════════════════════════════════════ */
  #brain-tabbar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:20px; }
  #brain-tabbar .sa-tab { display:inline-flex; align-items:center; gap:6px; }

  .brain-card { background:white; border-radius:16px; padding:18px 20px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); }
  .brain-card-title { font-size:14px; font-weight:800; color:var(--gray-800); margin-bottom:14px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .brain-card-tag { font-size:11px; font-weight:600; color:var(--gray-400); background:var(--gray-50); padding:2px 8px; border-radius:99px; }

  .brain-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
  .brain-kpi-card { background:white; border-radius:14px; padding:16px 18px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
  .brain-kpi-val { font-size:28px; font-weight:900; line-height:1; }
  .brain-kpi-lbl { font-size:13px; font-weight:700; color:var(--gray-700); margin-top:6px; }
  .brain-kpi-sub { font-size:11px; color:var(--gray-400); margin-top:2px; }

  .brain-funnel-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:16px; }
  .brain-funnel-stages { display:flex; flex-direction:column; gap:14px; }
  .brain-funnel-stage { }
  .brain-funnel-bar-wrap { display:flex; align-items:center; gap:10px; }
  .brain-funnel-bar { height:38px; border-radius:8px; display:flex; align-items:center; justify-content:flex-end; padding:0 12px; min-width:60px; transition:width .5s ease; }
  .brain-funnel-bar-val { color:white; font-weight:900; font-size:15px; text-shadow:0 1px 2px rgba(0,0,0,.2); }
  .brain-funnel-conv { font-size:12px; font-weight:800; color:var(--gray-500); background:var(--gray-50); padding:3px 8px; border-radius:99px; white-space:nowrap; }
  .brain-funnel-meta { font-size:12px; color:var(--gray-500); margin-top:5px; }
  .brain-funnel-meta b { color:var(--gray-800); }

  .brain-src-row { display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:10px; cursor:pointer; transition:.12s; }
  .brain-src-row:hover { background:var(--gray-50); }
  .brain-src-logo { width:24px; flex-shrink:0; text-align:center; }
  .brain-src-name { font-size:13px; font-weight:700; color:var(--gray-700); width:96px; flex-shrink:0; }
  .brain-src-track { flex:1; height:9px; background:var(--gray-100); border-radius:99px; overflow:hidden; }
  .brain-src-fill { height:100%; border-radius:99px; transition:width .4s; }
  .brain-src-val { font-size:14px; font-weight:800; color:var(--gray-800); width:28px; text-align:right; }
  .brain-src-hint { font-size:11px; color:var(--gray-400); margin-top:8px; text-align:center; }
  .brain-msd-card { background:linear-gradient(135deg,#F5F3FF,#EFF6FF); border-color:#E5E0FB; }
  .brain-msd-text { font-size:13px; color:var(--gray-600); line-height:1.6; }

  .brain-plat-header { display:flex; align-items:center; gap:16px; padding:22px 24px; border-radius:18px; margin-bottom:18px; }
  .brain-plat-logo { width:60px; height:60px; background:white; border-radius:16px; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.1); flex-shrink:0; }
  .brain-plat-name { font-size:22px; font-weight:900; color:var(--gray-900); }
  .brain-plat-handle { font-size:13px; color:var(--gray-500); margin-top:2px; }
  .brain-plat-headline { text-align:right; }
  .brain-plat-headline-val { font-size:30px; font-weight:900; line-height:1; }
  .brain-plat-headline-lbl { font-size:12px; color:var(--gray-500); margin-top:4px; }

  .brain-plat-kpis { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-bottom:18px; }
  .brain-plat-kpi { background:white; border-radius:14px; padding:14px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
  .brain-plat-kpi-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
  .brain-plat-kpi-icon { font-size:16px; }
  .brain-plat-kpi-delta { font-size:10px; font-weight:800; color:var(--green); background:#ECFDF5; padding:2px 6px; border-radius:99px; }
  .brain-plat-kpi-val { font-size:22px; font-weight:900; color:var(--gray-900); line-height:1; }
  .brain-plat-kpi-lbl { font-size:11px; color:var(--gray-500); margin-top:4px; font-weight:600; }

  .brain-plat-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .brain-trend { display:flex; align-items:flex-end; gap:12px; height:140px; padding-top:10px; }
  .brain-trend-col { flex:1; display:flex; flex-direction:column; align-items:center; height:100%; justify-content:flex-end; }
  .brain-trend-bar { width:100%; max-width:38px; border-radius:7px 7px 0 0; min-height:6px; transition:height .5s ease; }
  .brain-trend-x { font-size:11px; color:var(--gray-400); margin-top:6px; font-weight:600; }

  .brain-mini-funnel { display:flex; align-items:center; justify-content:space-around; padding:10px 0; }
  .brain-mini-stage { text-align:center; position:relative; flex:1; }
  .brain-mini-num { font-size:30px; font-weight:900; line-height:1; }
  .brain-mini-lbl { font-size:12px; color:var(--gray-500); margin-top:4px; font-weight:600; }
  .brain-mini-arrow { position:absolute; right:-6px; top:8px; color:var(--gray-300); font-size:16px; }

  .brain-hl-row { display:flex; align-items:flex-start; gap:10px; padding:9px 0; border-bottom:1px solid var(--gray-100); }
  .brain-hl-row:last-child { border-bottom:none; }
  .brain-hl-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; margin-top:5px; }
  .brain-hl-t { font-size:13px; font-weight:700; color:var(--gray-800); }
  .brain-hl-m { font-size:12px; color:var(--gray-500); margin-top:1px; }

  @media (max-width:900px) {
    .brain-kpi-row { grid-template-columns:repeat(2,1fr); }
    .brain-funnel-grid, .brain-plat-grid { grid-template-columns:1fr; }
    .brain-plat-kpis { grid-template-columns:repeat(3,1fr); }
  }

  /* ═══════════════════════════════════════════════════════════
     REVIEWS PORTAL
     ═══════════════════════════════════════════════════════════ */
  .rv-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
  .rv-title { font-size:22px; font-weight:900; color:var(--gray-900); }
  .rv-sub { font-size:13px; color:var(--gray-400); margin-top:2px; }
  .rv-connect { background:white; border:1.5px solid var(--gray-200); border-radius:9px; padding:9px 16px; font-size:13px; font-weight:700; color:var(--gray-700); cursor:pointer; transition:.12s; }
  .rv-connect:hover { border-color:#4285F4; color:#4285F4; background:#E8F0FE; }
  .rv-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }
  .rv-tab-badge { background:var(--red); color:white; font-size:10px; font-weight:800; padding:0 6px; border-radius:99px; margin-left:2px; }

  .rv-card { background:white; border-radius:16px; padding:18px 20px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); }
  .rv-card-title { font-size:14px; font-weight:800; color:var(--gray-800); margin-bottom:14px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .rv-card-tag { font-size:11px; font-weight:600; color:var(--gray-400); background:var(--gray-50); padding:2px 8px; border-radius:99px; }

  .rv-alert { background:#FEF2F2; border:1.5px solid #FECACA; color:#991B1B; border-radius:12px; padding:12px 16px; font-size:13px; margin-bottom:16px; cursor:pointer; transition:.12s; }
  .rv-alert:hover { background:#FEE2E2; }

  .rv-vs { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:16px; }
  .rv-vs-card { background:white; border-radius:16px; padding:18px 20px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
  .rv-vs-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
  .rv-vs-name { font-size:15px; font-weight:800; color:var(--gray-800); }
  .rv-lead { font-size:10px; font-weight:800; background:#FEF3C7; color:#92400E; padding:2px 8px; border-radius:99px; margin-left:6px; white-space:nowrap; }
  .rv-vs-score { font-size:34px; font-weight:900; line-height:1; }
  .rv-vs-score-lbl { font-size:14px; font-weight:700; color:var(--gray-400); }
  .rv-vs-meta { font-size:12px; color:var(--gray-500); margin-top:4px; }
  .rv-goal-row { margin-top:14px; }
  .rv-goal-bar { height:10px; background:var(--gray-100); border-radius:99px; overflow:hidden; }
  .rv-goal-fill { height:100%; border-radius:99px; transition:width .5s; }
  .rv-goal-cap { font-size:12px; color:var(--gray-500); margin-top:6px; }
  .rv-goal-cap b { color:var(--gray-800); }

  .rv-pills { display:inline-flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
  .rv-pill { padding:6px 12px; border-radius:8px; font-size:12px; font-weight:700; border:1.5px solid var(--gray-200); background:white; color:var(--gray-600); cursor:pointer; transition:.12s; }
  .rv-pill:hover { border-color:var(--blue); color:var(--blue); }
  .rv-pill.active { background:var(--blue); color:white; border-color:var(--blue); }

  .rv-insight-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

  .rv-topstaff { background:linear-gradient(135deg,#FFFBEB,#FEF3C7); border:1px solid #FDE68A; border-radius:12px; padding:12px 16px; font-size:13px; color:#92400E; margin-bottom:14px; }
  .rv-staff-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid var(--gray-100); }
  .rv-staff-row:last-child { border-bottom:none; }
  .rv-staff-ava { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:white; font-size:12px; font-weight:800; flex-shrink:0; }
  .rv-staff-name { font-size:13px; font-weight:700; color:var(--gray-800); }
  .rv-staff-meta { font-size:11px; color:var(--gray-500); margin-top:1px; }
  .rv-award-btn { background:#FEF3C7; color:#92400E; border:1.5px solid #FDE68A; border-radius:8px; padding:6px 12px; font-size:12px; font-weight:700; cursor:pointer; transition:.12s; flex-shrink:0; }
  .rv-award-btn:hover { background:#FDE68A; }

  .rv-review { background:white; border-radius:14px; padding:16px 18px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); margin-bottom:12px; }
  .rv-review.flag { border-left:4px solid #EF4444; }
  .rv-review-head { display:flex; align-items:flex-start; gap:12px; }
  .rv-review-ava { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:white; font-size:15px; font-weight:800; flex-shrink:0; }
  .rv-review-author { font-size:14px; font-weight:800; color:var(--gray-900); }
  .rv-review-loc { font-size:11px; font-weight:600; color:var(--gray-400); margin-left:6px; }
  .rv-review-stars { font-size:15px; letter-spacing:1px; margin-top:2px; }
  .rv-flag-btn { background:#FEE2E2; color:#991B1B; border:none; border-radius:8px; padding:6px 12px; font-size:12px; font-weight:800; cursor:pointer; flex-shrink:0; }
  .rv-flag-btn:hover { background:#FECACA; }
  .rv-pts { font-size:11px; font-weight:800; color:var(--green); background:#ECFDF5; padding:3px 9px; border-radius:99px; flex-shrink:0; }
  .rv-review-text { font-size:13.5px; color:var(--gray-700); line-height:1.6; margin:10px 0; }
  .rv-review-mentions { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
  .rv-mention { font-size:11px; font-weight:700; padding:2px 9px; border-radius:99px; }

  .rv-resp { background:var(--gray-50); border-radius:10px; padding:12px 14px; margin-top:8px; }
  .rv-resp-label { font-size:12px; font-weight:800; color:var(--gray-600); margin-bottom:8px; }
  .rv-resp-input { width:100%; border:1.5px solid var(--gray-200); border-radius:8px; padding:10px 12px; font-size:13px; font-family:inherit; resize:vertical; min-height:70px; outline:none; box-sizing:border-box; }
  .rv-resp-input:focus { border-color:var(--blue); }
  .rv-resp-actions { display:flex; gap:8px; margin-top:8px; }
  .rv-btn-ai { background:#F5EDFF; color:#7B2BD6; border:1.5px solid #E5D4FB; border-radius:8px; padding:8px 14px; font-size:12px; font-weight:700; cursor:pointer; }
  .rv-btn-ai:hover { background:#EDE0FF; }
  .rv-btn-pub { background:var(--blue); color:white; border:none; border-radius:8px; padding:8px 14px; font-size:12px; font-weight:700; cursor:pointer; }
  .rv-btn-pub:hover { background:var(--blue-dark); }
  .rv-resp-published { font-size:12px; color:#15803D; }
  .rv-resp-text { font-size:13px; color:var(--gray-700); line-height:1.6; margin-top:6px; background:white; border-radius:8px; padding:10px 12px; border:1px solid var(--gray-100); }
  .rv-status { font-size:10px; font-weight:800; padding:3px 9px; border-radius:99px; flex-shrink:0; }

  /* Red-flag modal */
  .rv-modal { background:white; border-radius:20px; padding:26px; width:620px; max-width:95vw; box-shadow:0 30px 80px rgba(0,0,0,.3); animation:popIn .2s ease; }
  .rv-modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
  .rv-modal-review { background:#FEF2F2; border:1px solid #FECACA; border-radius:12px; padding:14px 16px; font-size:13.5px; color:var(--gray-700); line-height:1.6; margin-bottom:18px; }
  .rv-modal-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:6px; }
  .rv-flabel { display:block; font-size:11px; font-weight:800; color:var(--gray-500); text-transform:uppercase; letter-spacing:.4px; margin:12px 0 5px; }
  .rv-finput { width:100%; border:1.5px solid var(--gray-200); border-radius:8px; padding:9px 12px; font-size:13px; font-family:inherit; outline:none; box-sizing:border-box; resize:vertical; }
  .rv-finput:focus { border-color:var(--blue); }
  .rv-timeline { max-height:200px; overflow-y:auto; display:flex; flex-direction:column; gap:2px; background:var(--gray-50); border-radius:10px; padding:10px 12px; }
  .rv-tl-row { display:flex; gap:10px; padding:7px 0; border-bottom:1px solid var(--gray-100); align-items:flex-start; }
  .rv-tl-row:last-child { border-bottom:none; }
  .rv-tl-icon { font-size:14px; flex-shrink:0; }
  .rv-tl-text { font-size:13px; color:var(--gray-700); }
  .rv-tl-meta { font-size:11px; color:var(--gray-400); margin-top:1px; }

  /* Goals & rewards */
  .rv-race { padding:6px 4px 2px; }
  .rv-race-row { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
  .rv-race-name { width:90px; font-size:13px; font-weight:800; flex-shrink:0; }
  .rv-race-track { position:relative; flex:1; height:14px; background:var(--gray-100); border-radius:99px; }
  .rv-race-fill { position:absolute; left:0; top:0; height:100%; border-radius:99px; opacity:.35; transition:width .6s; }
  .rv-race-tick { position:absolute; top:-4px; transform:translateX(-50%); font-size:12px; }
  .rv-race-dot { position:absolute; top:50%; transform:translate(-50%,-50%); color:white; font-size:10px; font-weight:800; padding:2px 7px; border-radius:99px; white-space:nowrap; box-shadow:0 1px 4px rgba(0,0,0,.25); }
  .rv-race-scale { position:relative; height:16px; font-size:10px; color:var(--gray-400); margin-left:102px; }
  .rv-race-scale span { position:absolute; transform:translateX(-50%); }
  .rv-goal-ladder { display:flex; flex-direction:column; gap:10px; }
  .rv-goal-tier { display:flex; align-items:center; gap:16px; background:white; border-radius:14px; padding:14px 18px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); }
  .rv-goal-tier.done { background:linear-gradient(135deg,#ECFDF5,#F0FDF4); border-color:#A7F3D0; }
  .rv-goal-prize { display:flex; align-items:center; gap:12px; flex:1; }
  .rv-goal-prize-emoji { font-size:30px; }
  .rv-goal-prize-name { font-size:15px; font-weight:800; color:var(--gray-900); }
  .rv-goal-prize-sub { font-size:12px; color:var(--gray-500); }
  .rv-goal-target { font-size:16px; font-weight:900; color:var(--gray-700); width:80px; text-align:center; flex-shrink:0; }
  .rv-goal-loc { display:flex; flex-direction:column; gap:6px; flex-shrink:0; }
  .rv-goal-chip { font-size:11px; font-weight:700; padding:4px 10px; border-radius:99px; background:var(--gray-100); color:var(--gray-600); text-align:center; }

  @media (max-width:900px) {
    .rv-vs, .rv-insight-grid { grid-template-columns:1fr; }
    .rv-modal-grid { grid-template-columns:1fr; }
  }

  /* ═══════════════════════════════════════════════════════════
     CFO COMMAND CENTER + PAYROLL GUARDRAIL WIDGET
     ═══════════════════════════════════════════════════════════ */
  /* GM-facing guardrail widget (hours only) */
  .gr-widget { background:white; border-radius:14px; padding:14px 18px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); margin-bottom:10px; }
  .gr-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
  .gr-title { font-size:14px; font-weight:800; color:var(--gray-800); }
  .gr-status { font-size:11px; font-weight:800; margin-left:6px; }
  .gr-rule { font-size:12px; color:var(--gray-500); }
  .gr-rule b { color:var(--gray-800); }
  .gr-bars { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .gr-bar-lbl { font-size:12px; color:var(--gray-600); margin-bottom:4px; }
  .gr-bar-lbl b { color:var(--gray-900); }
  .gr-bar { height:10px; background:var(--gray-100); border-radius:99px; overflow:hidden; }
  .gr-bar-fill { height:100%; border-radius:99px; transition:width .4s; }

  /* CFO dashboard */
  .cfo-section-lbl { font-size:13px; font-weight:800; color:var(--gray-700); margin:6px 0 12px; }
  .cfo-kpi-row { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
  .cfo-kpi { background:white; border-radius:14px; padding:16px 18px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); }
  .cfo-kpi.red { border-color:#FECACA; background:#FFF8F8; }
  .cfo-kpi-val { font-size:26px; font-weight:900; line-height:1; }
  .cfo-flag { font-size:15px; }
  .cfo-kpi-lbl { font-size:12px; font-weight:700; color:var(--gray-700); margin-top:6px; }
  .cfo-kpi-sub { font-size:11px; color:var(--gray-400); margin-top:2px; }

  .cfo-fac-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .cfo-fac-card { background:white; border-radius:16px; padding:18px 20px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); }
  .cfo-fac-name { font-size:16px; font-weight:900; margin-bottom:6px; }
  .cfo-fac-sub { font-size:11px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.4px; margin:10px 0 6px; }
  .cfo-fr { display:flex; align-items:center; justify-content:space-between; font-size:13px; color:var(--gray-600); padding:4px 0; border-bottom:1px solid var(--gray-100); }
  .cfo-fr:last-child { border-bottom:none; }
  .cfo-light { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:middle; }
  .cfo-computed { margin-top:12px; background:var(--gray-50); border-radius:10px; padding:8px 12px; }

  /* CFO guardrail editor */
  .cfo-gr-editor { background:white; border-radius:16px; padding:18px 20px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); margin-bottom:14px; }
  .cfo-gr-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
  .cfo-gr-pay { font-size:12px; font-weight:700; color:var(--gray-600); background:var(--gray-50); padding:6px 12px; border-radius:99px; }
  .cfo-gr-pay.red { background:#FEE2E2; color:#991B1B; }
  .cfo-gr-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
  .cfo-field label { display:block; font-size:11px; font-weight:700; color:var(--gray-500); margin-bottom:4px; }
  .cfo-input { width:100%; border:1.5px solid var(--gray-200); border-radius:8px; padding:8px 10px; font-size:14px; font-weight:700; color:var(--gray-800); outline:none; box-sizing:border-box; }
  .cfo-input:focus { border-color:var(--blue); }
  .cfo-input.sm { padding:6px 8px; font-size:13px; }
  .cfo-money { display:flex; align-items:center; border:1.5px solid var(--gray-200); border-radius:8px; padding-left:10px; }
  .cfo-money span { color:var(--gray-400); font-weight:700; }
  .cfo-money .cfo-input { border:none; }
  .cfo-rec { background:#EFF6FF; border:1px solid #DBEAFE; border-radius:10px; padding:12px 14px; font-size:13px; color:var(--gray-700); margin:14px 0; line-height:1.6; }
  .cfo-apply { background:var(--blue); color:white; border:none; border-radius:7px; padding:6px 12px; font-size:12px; font-weight:700; cursor:pointer; margin-left:8px; }
  .cfo-apply:hover { background:var(--blue-dark); }
  .cfo-gr-sub { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:6px; }
  .cfo-gr-sub-lbl { font-size:11px; font-weight:800; color:var(--gray-500); text-transform:uppercase; letter-spacing:.4px; margin-bottom:8px; }
  .cfo-mini-row { display:flex; gap:10px; flex-wrap:wrap; }
  .cfo-mini { display:flex; flex-direction:column; }
  .cfo-mini label { font-size:11px; color:var(--gray-500); margin-bottom:3px; }
  .cfo-mini .cfo-input { width:70px; }
  .cfo-gr-preview { margin-top:16px; padding-top:14px; border-top:1px dashed var(--gray-200); }

  @media (max-width:900px) {
    .cfo-kpi-row { grid-template-columns:repeat(2,1fr); }
    .cfo-fac-grid, .cfo-gr-grid, .cfo-gr-sub, .gr-bars { grid-template-columns:1fr; }
  }

  /* ── ROE table + conversion leaderboard ── */
  .roe-table { width:100%; border-collapse:collapse; font-size:13px; }
  .roe-table thead th { text-align:left; font-size:10px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.4px; padding:10px 12px; background:var(--gray-50); border-bottom:1.5px solid var(--gray-100); white-space:nowrap; }
  .roe-table tbody td { padding:10px 12px; border-bottom:1px solid var(--gray-100); color:var(--gray-700); white-space:nowrap; }
  .roe-table tbody tr:last-child td { border-bottom:none; }
  .roe-table tbody tr:hover { background:var(--gray-50); }
  .roe-ava { display:inline-flex; width:24px; height:24px; border-radius:50%; align-items:center; justify-content:center; color:white; font-size:9px; font-weight:800; margin-right:6px; vertical-align:middle; }
  .roe-tag { font-size:9px; font-weight:800; background:#FEF3C7; color:#92400E; padding:1px 6px; border-radius:99px; }
  .roe-mult { display:inline-block; color:white; font-weight:800; font-size:12px; padding:2px 9px; border-radius:99px; }
  .roe-lb-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid var(--gray-100); }
  .roe-lb-row:last-child { border-bottom:none; }
  .roe-lb-name { font-size:13px; font-weight:700; color:var(--gray-800); }
  .roe-lb-sub { font-size:11px; color:var(--gray-400); }
  .roe-conv-track { flex:1; height:14px; background:var(--gray-100); border-radius:99px; overflow:hidden; }
  .roe-conv-fill { height:100%; border-radius:99px; transition:width .4s; }
  .roe-conv-pct { font-size:14px; font-weight:900; width:46px; text-align:right; }
  .roe-badge { font-size:10px; font-weight:800; padding:3px 9px; border-radius:99px; white-space:nowrap; }
  .roe-badge.top { background:#DCFCE7; color:#15803D; }
  .roe-badge.low { background:#FEE2E2; color:#991B1B; }
  .cfo-comp-wrap { margin-top:14px; }
  .cfo-roe-preview { display:flex; flex-wrap:wrap; gap:16px; margin-top:12px; padding-top:10px; border-top:1px dashed #99F6E4; font-size:13px; color:var(--gray-600); }
  .cfo-roe-preview b { font-size:14px; }

  /* ── "Ask Claude" — Sean's Workflow Builder chat ── */
  .cfo-wf-stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:14px; }
  .cfo-wf-stat { background:white; border:1px solid var(--gray-100); border-radius:12px; padding:12px 14px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.05); }
  .cfo-wf-stat-n { font-size:24px; font-weight:900; line-height:1; }
  .cfo-wf-stat-l { font-size:11px; font-weight:700; color:var(--gray-500); margin-top:5px; }

  .cfo-wf-thread { background:var(--gray-50); border:1px solid var(--gray-100); border-radius:16px; padding:16px; max-height:52vh; overflow-y:auto; display:flex; flex-direction:column; gap:12px; }
  .cfo-wf-empty { text-align:center; color:var(--gray-400); font-size:13px; line-height:1.7; padding:26px 12px; }
  .cfo-wf-bubble { max-width:82%; background:white; border:1px solid var(--gray-100); border-radius:14px; padding:10px 13px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
  .cfo-wf-bubble.left { align-self:flex-start; border-top-left-radius:4px; }
  .cfo-wf-bubble.right { align-self:flex-end; border-top-right-radius:4px; }
  .cfo-wf-bubble.req { border-left:3px solid var(--teal); }
  .cfo-wf-bubble.admin { background:#EFF6FF; border-color:#BFDBFE; }
  .cfo-wf-bubble.ai { align-self:flex-start; background:#F5F3FF; border:1px solid #DDD6FE; border-top-left-radius:4px; }
  .cfo-wf-who { display:flex; align-items:center; gap:7px; font-size:12px; font-weight:800; color:var(--gray-700); margin-bottom:5px; }
  .cfo-wf-ava { width:20px; height:20px; border-radius:50%; color:white; font-size:10px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
  .cfo-wf-textbody { font-size:14px; color:var(--gray-800); line-height:1.55; white-space:normal; word-wrap:break-word; }
  .cfo-wf-status { display:inline-block; margin-top:8px; font-size:11px; font-weight:800; padding:3px 9px; border-radius:99px; }
  .cfo-wf-setlink { cursor:pointer; text-decoration:underline; opacity:.85; margin-left:3px; }
  .cfo-wf-setlink:hover { opacity:1; }
  .cfo-wf-time { font-size:10px; color:var(--gray-400); margin-top:6px; }

  .cfo-wf-typing { display:flex; gap:4px; padding:4px 0; }
  .cfo-wf-typing span { width:7px; height:7px; border-radius:50%; background:#A78BFA; animation:cfoWfBlink 1.2s infinite ease-in-out; }
  .cfo-wf-typing span:nth-child(2){ animation-delay:.2s; } .cfo-wf-typing span:nth-child(3){ animation-delay:.4s; }
  @keyframes cfoWfBlink { 0%,80%,100%{ opacity:.3; transform:translateY(0);} 40%{ opacity:1; transform:translateY(-3px);} }

  .cfo-wf-composer { display:flex; align-items:flex-end; gap:10px; margin-top:12px; background:white; border:1.5px solid var(--gray-200); border-radius:14px; padding:10px 12px; }
  .cfo-wf-composer:focus-within { border-color:var(--blue); }
  .cfo-wf-textarea { flex:1; border:none; outline:none; resize:none; font-size:14px; font-family:inherit; color:var(--gray-800); background:transparent; line-height:1.5; max-height:140px; }
  .cfo-wf-composer-btns { display:flex; align-items:center; gap:8px; }
  .cfo-wf-mic { width:38px; height:38px; border-radius:50%; border:1.5px solid var(--gray-200); background:white; font-size:16px; cursor:pointer; transition:.15s; flex-shrink:0; }
  .cfo-wf-mic:hover { border-color:var(--blue); }
  .cfo-wf-mic.rec { background:#FEE2E2; border-color:var(--red); animation:cfoWfPulse 1s infinite; }
  @keyframes cfoWfPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(239,68,68,.5);} 50%{ box-shadow:0 0 0 6px rgba(239,68,68,0);} }
  .cfo-wf-send { background:var(--blue); color:white; border:none; border-radius:10px; padding:10px 16px; font-size:13px; font-weight:800; cursor:pointer; white-space:nowrap; transition:.15s; }
  .cfo-wf-send:hover { background:var(--blue-dark); }

  /* ── Profit & KPI dashboard ── */
  .pk-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:12px; }
  .cfo-pk-edit { background:white; border:1.5px solid var(--gray-200); color:var(--gray-700); border-radius:10px; padding:8px 14px; font-size:12px; font-weight:800; cursor:pointer; transition:.15s; }
  .cfo-pk-edit:hover { border-color:var(--blue); color:var(--blue); }
  .cfo-pk-edit.on { background:var(--green); border-color:var(--green); color:white; }

  .pk-tablecard { padding:0 !important; overflow-x:auto; }
  .pk-table { width:100%; border-collapse:collapse; font-size:12.5px; min-width:640px; }
  .pk-table thead th { text-align:right; font-size:10px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.4px; padding:9px 10px; background:var(--gray-50); border-bottom:1.5px solid var(--gray-100); white-space:nowrap; }
  .pk-table thead th.pk-lbl { text-align:left; }
  .pk-table thead th.pk-ytd { color:var(--blue); border-left:1.5px solid var(--gray-100); }
  .pk-table tbody td { padding:8px 10px; border-bottom:1px solid var(--gray-100); color:var(--gray-700); text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .pk-table td.pk-lbl { text-align:left; color:var(--gray-600); font-weight:600; position:sticky; left:0; background:white; }
  .pk-table td.pk-ytd { border-left:1.5px solid var(--gray-100); color:var(--gray-900); font-weight:700; }
  .pk-table .pk-strong { font-weight:800; color:var(--gray-900); }
  .pk-table td.pk-neg, .pk-table .pk-neg { color:var(--red) !important; }
  .pk-table .pk-sub { color:var(--gray-400); font-size:11px; font-weight:600; }
  .pk-table .pk-pctrow td { padding-top:2px; padding-bottom:8px; border-bottom:1px solid var(--gray-100); }
  .pk-table tr.pk-ebitda td, .pk-table tr.pk-total td { background:var(--gray-50); border-top:1.5px solid var(--gray-200); }
  .pk-table tr.pk-total td.pk-lbl { border-left:3px solid var(--tc,var(--blue)); }
  .pk-table tr.pk-enroll td { color:var(--teal); font-weight:700; }
  .pk-table tbody tr:hover td { background:#F8FAFC; }
  .pk-table tbody tr.pk-total:hover td, .pk-table tbody tr.pk-ebitda:hover td { background:var(--gray-100); }
  .pk-ytd-note { display:block; font-size:8px; font-weight:700; color:var(--gray-300); }
  .pk-in { width:76px; border:1px solid var(--blue); border-radius:6px; padding:3px 6px; font-size:12px; text-align:right; font-variant-numeric:tabular-nums; color:var(--gray-900); }
  .pk-in:focus { outline:none; box-shadow:0 0 0 2px rgba(0,87,184,.2); }

  .pk-loc { background:white; border-radius:16px; padding:16px 18px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); margin-top:14px; }
  .pk-loc-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
  .pk-loc-badges { display:flex; gap:8px; flex-wrap:wrap; }
  .pk-badge { font-size:11px; font-weight:700; color:var(--gray-600); background:var(--gray-50); border:1px solid var(--gray-200); padding:4px 10px; border-radius:99px; }
  .pk-badge b { color:var(--gray-900); }
  .pk-badge.pos { background:#F0FDF4; border-color:#BBF7D0; color:#15803D; } .pk-badge.pos b { color:#15803D; }
  .pk-badge.neg { background:#FEF2F2; border-color:#FECACA; color:#B91C1C; } .pk-badge.neg b { color:#B91C1C; }
  .pk-loc-subttl { font-size:11px; font-weight:800; color:var(--gray-400); text-transform:uppercase; letter-spacing:.5px; margin:12px 0 6px; }

  .pk-chart { width:100%; height:auto; display:block; }
  .pk-xlab { font-size:10px; fill:var(--gray-400); font-weight:700; }
  .pk-leg-t { font-size:10px; fill:var(--gray-500); font-weight:700; }

  @media print {
    .sidebar, .topbar, .no-print, .nav-item, #cfo-tabs, .rv-head, .rv-connect { display:none !important; }
    .pk-tablecard { overflow:visible !important; }
    .pk-table { min-width:0; font-size:10px; }
    body, .page, .content { background:white !important; }
  }

  /* ═══════════════════════════════════════════════════════════
     RECOGNITION & CULTURE
     ═══════════════════════════════════════════════════════════ */
  .rec-card { background:white; border-radius:16px; padding:18px 20px; box-shadow:0 1px 4px rgba(0,0,0,.07); border:1px solid var(--gray-100); margin-bottom:20px; }
  .rec-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
  .rec-card-title { font-size:16px; font-weight:900; color:var(--gray-900); }
  .rec-card-sub { font-size:12px; color:var(--gray-400); margin-top:2px; }
  .rec-gift-btn { background:linear-gradient(135deg,#8B5CF6,#6D28D9); color:white; border:none; border-radius:10px; padding:9px 16px; font-size:13px; font-weight:800; cursor:pointer; transition:.15s; }
  .rec-gift-btn:hover { filter:brightness(1.07); }
  .rec-gift-btn:disabled { opacity:.5; cursor:not-allowed; }
  .rec-left { background:rgba(255,255,255,.25); padding:1px 7px; border-radius:99px; font-size:11px; margin-left:4px; }

  .rec-star-breakdown { display:flex; align-items:center; gap:18px; background:var(--gray-50); border-radius:12px; padding:12px 16px; margin-bottom:16px; flex-wrap:wrap; }
  .rec-star-tot-val { font-size:26px; font-weight:900; color:#F59E0B; line-height:1; }
  .rec-star-tot-lbl { font-size:11px; color:var(--gray-400); font-weight:600; }
  .rec-star-chips { display:flex; gap:8px; flex-wrap:wrap; }
  .rec-chip { font-size:12px; font-weight:700; color:var(--gray-600); background:white; border:1px solid var(--gray-200); padding:5px 11px; border-radius:99px; }

  .rec-eo-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
  .rec-eo { background:linear-gradient(135deg,#FFFBEB,#FEF3C7); border:1px solid #FDE68A; border-radius:12px; padding:14px; text-align:center; }
  .rec-eo-emoji { font-size:26px; }
  .rec-eo-lbl { font-size:11px; font-weight:800; color:#92400E; text-transform:uppercase; letter-spacing:.4px; margin:4px 0 8px; }
  .rec-eo-name { font-size:14px; font-weight:800; color:var(--gray-900); display:flex; align-items:center; justify-content:center; gap:6px; }
  .rec-eo-stars { font-size:11px; color:var(--gray-500); margin-top:2px; }
  .rec-ava { display:inline-flex; width:22px; height:22px; border-radius:50%; align-items:center; justify-content:center; color:white; font-size:9px; font-weight:800; }

  .rec-sup-done { background:linear-gradient(135deg,#ECFDF5,#F0FDF4); border-color:#A7F3D0; font-size:13px; color:#15803D; }
  .rec-slider-row { display:flex; align-items:center; gap:14px; margin-bottom:10px; }
  .rec-slider-lbl { width:180px; flex-shrink:0; font-size:13px; font-weight:700; color:var(--gray-700); }
  .rec-slider { flex:1; accent-color:#8B5CF6; }
  .rec-slider-val { width:26px; text-align:center; font-size:15px; font-weight:900; color:#8B5CF6; }

  .rec-overall { text-align:center; }
  .rec-overall-val { font-size:30px; font-weight:900; color:#22C55E; line-height:1; }
  .rec-overall-lbl { font-size:11px; color:var(--gray-400); }
  .rec-result-row { display:flex; align-items:center; gap:14px; margin-bottom:9px; }
  .rec-result-lbl { width:180px; flex-shrink:0; font-size:13px; font-weight:700; color:var(--gray-700); }
  .rec-result-track { flex:1; height:12px; background:var(--gray-100); border-radius:99px; overflow:hidden; }
  .rec-result-fill { height:100%; border-radius:99px; transition:width .4s; }
  .rec-result-val { width:34px; text-align:right; font-size:14px; font-weight:900; }

  .rec-modal { background:white; border-radius:20px; padding:26px; width:540px; max-width:95vw; box-shadow:0 30px 80px rgba(0,0,0,.3); animation:popIn .2s ease; }
  .rec-modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
  .rec-flabel { display:block; font-size:11px; font-weight:800; color:var(--gray-500); text-transform:uppercase; letter-spacing:.4px; margin:14px 0 6px; }
  .rec-input { width:100%; border:1.5px solid var(--gray-200); border-radius:8px; padding:9px 12px; font-size:13px; outline:none; box-sizing:border-box; }
  .rec-award-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
  .rec-award { border:2px solid var(--gray-200); border-radius:12px; padding:12px 6px; text-align:center; cursor:pointer; transition:.12s; display:block; }
  .rec-award:hover { border-color:#8B5CF6; }
  .rec-award:has(input:checked) { border-color:#8B5CF6; background:#F5EDFF; }
  .rec-award-emoji { font-size:22px; }
  .rec-award-label { font-size:11px; font-weight:800; color:var(--gray-800); margin-top:4px; line-height:1.2; }
  .rec-award-stars { font-size:11px; font-weight:800; color:#8B5CF6; margin-top:3px; }
  .rec-award-desc { font-size:10px; color:var(--gray-400); margin-top:3px; line-height:1.2; }

  @media (max-width:760px) {
    .rec-eo-row, .rec-award-grid { grid-template-columns:1fr; }
    .rec-slider-lbl, .rec-result-lbl { width:130px; }
  }

  /* Trial Tracker avatar */
  .trl-ava { display:inline-flex; width:26px; height:26px; border-radius:50%; align-items:center; justify-content:center; color:white; font-size:10px; font-weight:800; vertical-align:middle; margin-right:6px; }

  /* ════════ SHIFT LEAD & ACCOUNTABILITY ════════ */
  /* Captain-armband badge on a Shift Lead's schedule block (top-left corner) */
  .sl-badge { position:absolute; top:-7px; left:-7px; width:19px; height:19px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:900;
    line-height:1; box-shadow:0 1px 4px rgba(0,0,0,.3); border:2px solid #fff; z-index:3; cursor:help; }
  .sl-badge-ribbon { background:var(--blue); color:#fff; }
  .sl-badge-star   { background:var(--yellow); color:#7a4a00; font-size:12px; }
  /* Manager-only shift indicators (no-lead / replacement) — top-right corner */
  .sl-ind { position:absolute; top:-7px; right:-7px; min-width:18px; height:18px; padding:0 3px;
    border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:11px;
    font-weight:900; line-height:1; border:2px solid #fff; z-index:3; cursor:pointer; }
  .sl-ind-warn   { background:#94a3b8; color:#fff; }
  .sl-ind-urgent { background:var(--red); color:#fff; box-shadow:0 0 0 0 rgba(239,68,68,.6); animation:slPulse 1.4s infinite; }
  @keyframes slPulse {
    0%   { box-shadow:0 0 0 0 rgba(239,68,68,.55); }
    70%  { box-shadow:0 0 0 7px rgba(239,68,68,0); }
    100% { box-shadow:0 0 0 0 rgba(239,68,68,0); }
  }

  /* Shift Lead modal (own body-level overlay, like other modules) */
  #sl-modal-overlay { position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:9000;
    display:flex; align-items:center; justify-content:center; padding:20px; }
  .sl-modal { background:#fff; border-radius:16px; padding:22px 24px; width:440px; max-width:96vw;
    max-height:90vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.35); }
  .sl-modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
  .sl-flabel { display:block; font-size:11px; font-weight:800; color:var(--gray-500);
    text-transform:uppercase; letter-spacing:.4px; margin:12px 0 5px; }
  .sl-input { width:100%; padding:9px 11px; border:1.5px solid #e2e8f0; border-radius:9px;
    font-size:13px; font-family:inherit; background:#fff; color:var(--gray-800); box-sizing:border-box; }
  .sl-input:focus { outline:none; border-color:var(--blue); }
  .sl-ava { display:inline-flex; width:26px; height:26px; border-radius:50%; align-items:center;
    justify-content:center; color:#fff; font-size:10px; font-weight:800; vertical-align:middle; margin-right:6px; }
  #sl-dash-body { margin-top:4px; }

  /* ══════════ MORNING HUDDLE (dashboard "Your Day") ══════════ */
  .hud-card { background:linear-gradient(135deg,#0B1B33 0%,#0F2A52 55%,#0B4A6F 100%); border-radius:18px; padding:22px 24px; margin-bottom:20px; color:#fff; box-shadow:0 10px 30px rgba(11,27,51,.25); }
  .hud-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
  .hud-greet { font-size:20px; font-weight:800; letter-spacing:-.02em; }
  .hud-date { font-size:12.5px; color:#9FB6D6; margin-top:2px; }
  .hud-install-btn { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22); border-radius:9px; backdrop-filter:blur(4px); flex-shrink:0; }
  .hud-install-btn:hover { background:rgba(255,255,255,.2); }
  .hud-rows { display:flex; flex-direction:column; gap:6px; }
  .hud-row { display:flex; align-items:center; gap:12px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px 14px; cursor:pointer; transition:background .15s, transform .15s; }
  .hud-row:hover { background:rgba(255,255,255,.13); transform:translateX(2px); }
  .hud-icon { font-size:17px; flex-shrink:0; }
  .hud-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:#8FA9CC; width:130px; flex-shrink:0; }
  .hud-val { font-size:13.5px; color:#EAF1FA; flex:1; }
  .hud-val strong { color:#fff; }
  .hud-red { color:#FF8A7A !important; }
  .hud-arrow { color:#5E7BA6; font-size:14px; }
  .hud-inst-steps { display:flex; flex-direction:column; gap:10px; }
  .hud-inst-step { display:flex; align-items:center; gap:12px; font-size:13.5px; line-height:1.5; }
  .hud-inst-step span:first-child { width:26px; height:26px; border-radius:50%; background:var(--blue-light); color:var(--blue); font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  @media (max-width:768px){ .hud-label { width:auto; min-width:90px; } .hud-head { flex-direction:column; } }

  /* ══════════ GROWTH PLAN page ══════════ */
  .gp-hero { background:linear-gradient(135deg,#0B1B33 0%,#0057B8 70%,#00A3A3 130%); border-radius:18px; padding:26px 28px; margin-bottom:22px; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:20px; box-shadow:0 10px 30px rgba(0,87,184,.25); flex-wrap:wrap; }
  .gp-hero-title { font-size:23px; font-weight:800; letter-spacing:-.02em; margin-bottom:6px; }
  .gp-hero-sub { font-size:13px; color:#C7DCF5; max-width:560px; line-height:1.55; }
  .gp-hero-stat { text-align:center; min-width:150px; }
  .gp-hero-num { font-size:38px; font-weight:800; line-height:1; }
  .gp-hero-den { font-size:20px; color:#9FC4EE; font-weight:700; }
  .gp-hero-label { font-size:11px; text-transform:uppercase; letter-spacing:.7px; color:#9FC4EE; margin:4px 0 8px; }
  .gp-progress { height:8px; background:rgba(255,255,255,.18); border-radius:99px; overflow:hidden; }
  .gp-progress-fill { height:100%; background:linear-gradient(90deg,#22C55E,#4ADE80); border-radius:99px; transition:width .4s ease; }
  .gp-section { padding:20px 22px; }
  .gp-sec-head { display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
  .gp-sec-icon { font-size:22px; margin-top:1px; }
  .gp-sec-title { font-size:16px; font-weight:800; letter-spacing:-.01em; color:var(--gray-800); }
  .gp-sec-sub { font-size:12.5px; color:var(--gray-500); margin-top:3px; line-height:1.55; max-width:760px; }
  .gp-item { display:flex; gap:14px; align-items:flex-start; padding:11px 0; border-top:1px solid var(--gray-100); }
  .gp-item-title { font-size:13.5px; font-weight:700; color:var(--gray-800); margin-bottom:2px; }
  .gp-item-desc { font-size:12.5px; color:var(--gray-500); line-height:1.55; max-width:760px; }
  .gp-pill { border:none; border-radius:99px; font-size:11px; font-weight:700; padding:5px 12px; cursor:pointer; flex-shrink:0; min-width:92px; margin-top:1px; transition:filter .15s, transform .1s; }
  .gp-pill:hover { filter:brightness(.95); } .gp-pill:active { transform:scale(.96); }
  .gp-st-todo  { background:var(--gray-100); color:var(--gray-600); }
  .gp-st-doing { background:#FEF3C7; color:#92400E; }
  .gp-st-done  { background:#D1FAE5; color:#065F46; }
  .gp-item-static { padding-left:4px; }
  [data-theme="dark"] .hud-card { box-shadow:0 10px 30px rgba(0,0,0,.4); }
  [data-theme="dark"] .gp-sec-title, [data-theme="dark"] .gp-item-title { color:#F1F5F9; }
  [data-theme="dark"] .gp-item { border-top-color:rgba(255,255,255,.07); }
  [data-theme="dark"] .gp-st-todo { background:#232D44; color:#94A3B8; }

/* ── Shift confirmations (When-I-Work style "I saw it" ✓) ── */
.sb-confirm-btn{display:block;margin-top:4px;background:rgba(255,255,255,.9);border:1.5px solid var(--green);color:var(--green);font-size:10px;font-weight:800;border-radius:6px;padding:2px 8px;cursor:pointer;transition:.15s}
.sb-confirm-btn:hover{background:var(--green);color:#fff}
.sb-confirm-ok{margin-top:3px;font-size:9.5px;font-weight:800;color:var(--green)}
.sb-confirm-wait{margin-top:3px;font-size:9px;font-weight:700;color:rgba(0,0,0,.35);font-style:italic}
