  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Domine:wght@400;500;600;700&display=swap');

  :root {
    --primary: #305f6d;
    --primary-light: #5e808e;
    --primary-dark: #1e4a56;
    --accent: #ffcc33;
    --accent-light: #ffde83;
    --success: #5a9e78;
    --success-light: #dae9e3;
    --danger: #e68a77;
    --bg: #f8f6f2;
    --card: #FFFFFF;
    --text: #363737;
    --text-muted: #6b7c83;
    --border: #ddd8d0;
    --shadow: 0 1px 3px rgba(48,95,109,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(48,95,109,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(48,95,109,0.1), 0 4px 6px -2px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --teal: #305f6d;
    --teal-mid: #487083;
    --teal-light: #8fa7b1;
    --gold: #ffcc33;
    --gold-light: #ffde83;
    --gold-pale: #ffe9ab;
    --coral: #ef9d76;
    --coral-light: #f3baab;
    --coral-pale: #f7d1c6;
    --sage: #8fbfa8;
    --sage-light: #b8d5c8;
    --sage-pale: #dae9e3;
    --mauve: #c77b95;
    --mauve-light: #db98a4;
    --mauve-pale: #edcfd5;
    --cream: #f8f6f2;
    --cream-dark: #f0efec;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

  /* ===== TOP NAV ===== */
  .top-bar {
    background: linear-gradient(135deg, #1e4a56 0%, #305f6d 50%, #487083 100%);
    color: white; padding: 0; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(48,95,109,0.3);
  }
  .top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px 16px; }
  .top-bar h1 { font-family: 'Domine', Georgia, serif; font-size: 24px; font-weight: 700; letter-spacing: -0.3px; }
  .top-bar .subtitle { font-size: 13px; opacity: 0.85; margin-top: 2px; font-weight: 400; }

  /* Stats row */
  .stats-row { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
  .stat-pill {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.2);
  }
  .stat-pill .emoji { font-size: 16px; }

  /* Progress bar in nav */
  .nav-progress { margin-top: 16px; }
  .nav-progress-label { font-size: 12px; opacity: 0.8; margin-bottom: 6px; display: flex; justify-content: space-between; }
  .nav-progress-bar { height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; }
  .nav-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--coral)); border-radius: 4px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }

  /* Tab nav */
  .tab-nav {
    display: flex; gap: 0; overflow-x: auto; background: rgba(0,0,0,0.15);
    border-radius: 0; -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    padding: 12px 20px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7);
    background: none; border: none; cursor: pointer; white-space: nowrap;
    border-bottom: 3px solid transparent; transition: all 0.2s;
  }
  .tab-btn:hover { color: white; background: rgba(255,255,255,0.08); }
  .tab-btn.active { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,0.12); font-weight: 600; }

  /* ===== MAIN CONTENT ===== */
  .main { max-width: 1200px; margin: 0 auto; padding: 24px; }
  .tab-content { display: none; animation: fadeIn 0.3s ease; }
  .tab-content.active { display: block; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

  /* ===== CARDS ===== */
  .card {
    background: var(--card); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    margin-bottom: 16px; transition: box-shadow 0.2s;
  }
  .card:hover { box-shadow: var(--shadow-md); }
  .card h2 { font-family: 'Domine', Georgia, serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
  .card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
  .card p { color: var(--text-muted); font-size: 14px; }

  /* Section headers */
  .section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
  .section-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }

  /* ===== WELCOME TAB ===== */
  .welcome-hero {
    background: linear-gradient(135deg, var(--sage-pale) 0%, #c8dfd5 100%);
    border-radius: var(--radius); padding: 40px; text-align: center;
    margin-bottom: 24px; border: 1px solid var(--sage-light);
  }
  .welcome-hero h2 { font-family: 'Domine', Georgia, serif; font-size: 28px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
  .welcome-hero p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

  .info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
  .info-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f8f6f2; border-radius: var(--radius-sm); }
  .info-item .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
  .info-item .value { font-size: 14px; font-weight: 500; }
  .info-item .icon { font-size: 20px; }
  .display-field { font-size: 14px; font-weight: 500; }
  .display-field.pending { color: #CBD5E1; font-style: italic; }

  /* Manager cards */
  .manager-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
  .manager-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; text-align: center;
  }
  .manager-card .avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; margin: 0 auto 8px;
  }
  .manager-card .name { font-weight: 600; font-size: 14px; }
  .manager-card .role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .manager-card .contact { font-size: 11px; color: var(--primary); margin-top: 6px; word-break: break-all; }
  .manager-card.my-ad {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(48,95,109,0.15), 0 0 16px rgba(48,95,109,0.12);
    background: linear-gradient(135deg, #eef5f7 0%, #d3e8ed 100%);
    position: relative;
  }
  .manager-card.my-ad::after {
    content: "Your AD";
    position: absolute; top: -10px; right: 12px;
    background: var(--primary); color: white;
    font-size: 10px; font-weight: 700; padding: 2px 10px;
    border-radius: 50px; letter-spacing: 0.3px;
  }

  /* ===== COLLAPSIBLE MANAGER SECTIONS ===== */
  .mgr-collapsible { margin-bottom: 4px; }
  .mgr-collapsible .mgr-collapse-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    cursor: pointer; user-select: none; transition: background 0.15s;
    border-radius: var(--radius-sm); background: white; border: 1px solid var(--border);
  }
  .mgr-collapsible .mgr-collapse-header:hover { background: #f8f6f2; }
  .mgr-collapse-header .mgr-collapse-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 18px; flex-shrink: 0;
  }
  .mgr-collapse-header .mgr-collapse-title { font-weight: 700; font-size: 14px; }
  .mgr-collapse-header .mgr-collapse-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
  .mgr-collapse-header .mgr-collapse-chevron {
    margin-left: auto; font-size: 16px; color: var(--text-muted);
    transition: transform 0.25s; flex-shrink: 0;
  }
  .mgr-collapsible.open .mgr-collapse-chevron { transform: rotate(180deg); }
  .mgr-collapse-body {
    display: none; padding: 16px 20px 20px; background: white;
    border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
  .mgr-collapsible.open .mgr-collapse-body { display: block; }
  .mgr-collapsible.open .mgr-collapse-header {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom: none;
  }

  /* ===== SCHEDULE TAB ===== */
  .week-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 20px;
  }
  .week-header {
    padding: 16px 24px; cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; user-select: none; transition: background 0.2s;
  }
  .week-header:hover { background: #f8f6f2; }
  .week-header-left { display: flex; align-items: center; gap: 12px; }
  .week-badge {
    background: var(--primary); color: white; padding: 4px 14px; border-radius: 50px;
    font-size: 13px; font-weight: 700; white-space: nowrap;
  }
  .week-badge.completed-badge { background: var(--success); }
  .week-title { font-weight: 600; font-size: 15px; }
  .week-progress-mini { font-size: 12px; color: var(--text-muted); }
  .week-chevron { font-size: 18px; color: var(--text-muted); transition: transform 0.3s; }
  .week-card.open .week-chevron, .anytime-card.open .week-chevron { transform: rotate(180deg); }
  .week-body { padding: 0 24px 20px; display: none; }
  .week-card.open .week-body { display: block; }
  .anytime-body { display: none; padding-top: 12px; }
  .anytime-card.open .anytime-body { display: block; }

  .task-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
  }
  .task-item:last-child { border-bottom: none; }
  .recurring-section { background: #F0F7FA; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; border-left: 3px solid var(--primary); }
  .recurring-section .section-label { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
  .recurring-section .task-item { border-bottom-color: #D8E8EE; }
  .recurring-section .task-item:last-child { border-bottom: none; }
  .week-specific-section { padding: 4px 0 0 0; }
  .week-specific-section .section-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; padding-left: 2px; }
  .task-check {
    width: 24px; height: 24px; min-width: 24px; min-height: 24px;
    border-radius: 6px; border: 2px solid #94A3B8;
    cursor: pointer; flex-shrink: 0; margin-top: 1px; display: flex;
    align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    background: white;
  }
  .task-check:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.15); }
  .task-check.checked { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
  .task-check .check-icon { display: none; font-size: 14px; line-height: 1; color: white; }
  .task-check.checked .check-icon { display: block; }
  .task-info { flex: 1; }
  .task-name { font-size: 14px; font-weight: 500; transition: all 0.2s; }
  .task-name.done { text-decoration: line-through; color: var(--text-muted); }
  .task-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .task-doc-link {
    display: inline-block; margin-top: 4px; font-size: 11px; color: var(--primary);
    text-decoration: none; background: #eef5f7; padding: 2px 8px; border-radius: 4px;
    font-weight: 500;
  }
  .task-xp {
    font-size: 11px; font-weight: 700; color: var(--accent);
    background: #fffaeb; padding: 2px 8px; border-radius: 50px; white-space: nowrap;
  }

  /* ===== PEOPLE TAB ===== */
  .people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .person-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; display: flex; gap: 12px; align-items: flex-start; transition: box-shadow 0.2s;
  }
  .person-card:hover { box-shadow: var(--shadow-md); }
  .person-avatar {
    width: 44px; height: 44px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
    color: white; flex-shrink: 0;
  }
  .person-info .name { font-weight: 600; font-size: 14px; }
  .person-info .title { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
  .person-info .email { font-size: 11px; color: var(--primary); margin-top: 4px; }
  .person-check {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px;
    border-radius: 5px; border: 2px solid #94A3B8;
    cursor: pointer; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; transition: all 0.2s; margin-left: auto; margin-top: 2px;
    background: white;
  }
  .person-check:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.15); }
  .person-check.checked { background: var(--success); border-color: var(--success); }
  .person-check .check-icon { display: none; font-size: 12px; line-height: 1; color: white; }
  .person-check.checked .check-icon { display: block; }

  .resource-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
  .resource-table th {
    text-align: left; padding: 8px 12px; font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border);
  }
  .resource-table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid #F1F5F9; }

  /* ===== DOCS TAB ===== */
  .doc-category { margin-bottom: 24px; }
  .doc-category-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px;
  }
  .doc-list { display: flex; flex-direction: column; gap: 6px; }
  .doc-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all 0.2s; cursor: default;
  }
  .doc-item:hover { box-shadow: var(--shadow); border-color: #b4c4ca; }
  .doc-icon { font-size: 18px; }
  .doc-info { flex: 1; }
  .doc-name { font-size: 13px; font-weight: 600; }
  .doc-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
  .doc-priority {
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 50px;
    text-transform: uppercase;
  }
  .doc-priority.p0 { background: #f7d1c6; color: #c44a3f; }
  .doc-priority.p1 { background: #fff3d4; color: #c89520; }
  .doc-priority.p2 { background: #d3ebf8; color: #3187bf; }
  .doc-priority.awareness { background: #e4eef1; color: #487083; }
  .doc-read-check {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px;
    border-radius: 5px; border: 2px solid #94A3B8;
    cursor: pointer; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; transition: all 0.2s; background: white;
  }
  .doc-read-check:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.15); }
  .doc-read-check.checked { background: var(--success); border-color: var(--success); }
  .doc-read-check .check-icon { display: none; font-size: 12px; line-height: 1; color: white; }
  .doc-read-check.checked .check-icon { display: block; }

  /* ===== TECH TAB ===== */
  .tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .tech-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all 0.2s;
  }
  .tech-item:hover { box-shadow: var(--shadow); }
  .tech-icon { font-size: 24px; }
  .tech-info { flex: 1; }
  .tech-name { font-weight: 600; font-size: 14px; }
  .tech-detail { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
  .tech-status {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 50px; cursor: pointer;
    border: none; transition: all 0.2s;
  }
  .tech-status.pending { background: #fff3d4; color: #c89520; }
  .tech-status.granted { background: #dae9e3; color: #4a8a62; }

  .channel-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
  }
  .channel-item:last-child { border-bottom: none; }
  .channel-name { font-weight: 600; font-size: 14px; color: var(--primary); }
  .channel-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .channel-audience {
    font-size: 10px; background: #F1F5F9; padding: 2px 8px; border-radius: 50px;
    color: var(--text-muted); margin-top: 4px; display: inline-block; font-weight: 500;
  }

  /* ===== ACCOUNTS TAB ===== */
  .account-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s;
  }
  .account-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .account-card-header {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer;
  }
  .account-num {
    width: 32px; height: 32px; border-radius: 8px; background: var(--primary);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
  }
  .account-header-info { flex: 1; }
  .account-header-name { font-weight: 600; font-size: 15px; color: var(--text); }
  .account-header-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .account-card-chevron { font-size: 12px; color: var(--text-muted); transition: transform 0.2s; }
  .account-card.open .account-card-chevron { transform: rotate(180deg); }
  .account-card-body { display: none; padding: 0 16px 16px; }
  .account-card.open .account-card-body { display: block; }
  .account-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
  }
  .account-detail-item { font-size: 13px; }
  .account-detail-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
  .account-detail-value { color: var(--text); }
  .account-links { display: flex; flex-wrap: wrap; gap: 6px; }
  .account-link {
    font-size: 11px; color: var(--primary); text-decoration: none; background: #eef5f7;
    padding: 4px 10px; border-radius: 6px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px;
  }
  .account-link:hover { background: #d8e8ee; }
  .account-pocs { margin-top: 10px; }
  .account-poc { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
  .account-poc:last-child { border-bottom: none; }
  .account-poc-name { font-weight: 500; }
  .account-poc-role { color: var(--text-muted); font-size: 12px; }
  .account-structure-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 50px; display: inline-block;
  }

  /* ===== ACHIEVEMENTS ===== */
  .achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .achievement {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; text-align: center; transition: all 0.3s; opacity: 0.4;
  }
  .achievement.unlocked { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .achievement .badge { font-size: 32px; margin-bottom: 8px; }
  .achievement .badge-name { font-size: 12px; font-weight: 700; }
  .achievement .badge-desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

  /* ===== TOAST ===== */
  .toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
  .toast {
    background: var(--text); color: white; padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    display: flex; align-items: center; gap: 8px;
  }
  @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }
  @keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }

  /* ===== CONFETTI ===== */
  .confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
  .confetti-piece {
    position: absolute; width: 8px; height: 8px; border-radius: 2px;
    animation: confettiFall 2s ease-out forwards;
  }
  @keyframes confettiFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
  }

  /* ===== MANAGER SETUP ===== */
  .mgr-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
  .mgr-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
  .mgr-field input, .mgr-field select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; background: white; transition: border-color 0.2s;
  }
  .mgr-field input:focus, .mgr-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.1); }
  .mgr-accounts-table { margin-top: 8px; }
  .mgr-acct-row input, .mgr-acct-row select {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 13px; font-family: inherit;
  }
  .mgr-acct-row input:focus, .mgr-acct-row select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.1); }
  .mgr-acct-delete {
    width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
    color: #CBD5E1; cursor: pointer; font-size: 16px; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
  }
  .mgr-acct-delete:hover { background: #f7d1c6; color: #c44a3f; }
  .mgr-add-acct-btn {
    margin-top: 12px; background: #f8f6f2; border: 1px dashed var(--border); padding: 10px 20px;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-muted);
    cursor: pointer; transition: all 0.2s; width: 100%;
  }
  .mgr-add-acct-btn:hover { background: #eef5f7; border-color: var(--primary); color: var(--primary); }
  .mgr-checklist-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
  }
  .mgr-checklist-item:last-child { border-bottom: none; }
  .mgr-check {
    width: 22px; height: 22px; border-radius: 6px; border: 2px solid #CBD5E1;
    cursor: pointer; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; transition: background 0.2s, border-color 0.2s; background: white;
  }
  .mgr-check:hover { border-color: var(--primary); }
  .mgr-check.checked { background: var(--success); border-color: var(--success); }
  .mgr-check .check-icon { display: none; font-size: 14px; line-height: 1; color: white; }
  .mgr-check.checked .check-icon { display: block; }
  .mgr-task-text { font-size: 14px; font-weight: 500; }
  .mgr-task-text.done { text-decoration: line-through; color: var(--text-muted); }
  .mgr-task-assignee { font-size: 11px; background: #F1F5F9; padding: 2px 8px; border-radius: 50px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
  #mgr-apply-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); background: var(--primary-dark); }

  /* ===== PEOPLE STATUS ===== */
  .person-status-select {
    font-size: 11px; font-weight: 600; padding: 4px 20px 4px 10px; border-radius: 6px;
    border: 1px solid var(--border); cursor: pointer;
    outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748B'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center; background-size: 8px;
  }
  .person-status-select.not_scheduled { background: #F1F5F9; color: #64748B; }
  .person-status-select.reached_out { background: #fff3d4; color: #c89520; }
  .person-status-select.scheduled { background: #d3ebf8; color: #3187bf; }
  .person-status-select.completed { background: #dae9e3; color: #4a8a62; }

  /* ===== WELCOME POPUP MODAL ===== */
  .welcome-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 10000; display: flex;
    align-items: center; justify-content: center; animation: fadeIn 0.3s ease;
  }
  .welcome-modal {
    background: white; border-radius: 20px; padding: 48px 40px; max-width: 520px;
    width: 90%; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
  }
  @keyframes popIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
  .welcome-modal .wm-emoji { font-size: 64px; margin-bottom: 16px; }
  .welcome-modal .wm-title { font-family: 'Domine', Georgia, serif; font-size: 26px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
  .welcome-modal .wm-subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
  .welcome-modal .wm-btn {
    background: var(--primary); color: white; border: none; padding: 14px 36px;
    border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all 0.2s; box-shadow: var(--shadow-md);
  }
  .welcome-modal .wm-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
  .welcome-modal .wm-confetti-strip {
    position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, #305f6d, #ffcc33, #8fbfa8, #ef9d76, #c77b95, #487083, #96d1f3);
  }

  /* ===== TEAM SECTION HEADERS ===== */
  .team-section { margin-bottom: 24px; }
  .team-section-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--border);
  }
  .team-section-header h3 {
    font-size: 16px; font-weight: 700; color: var(--text); margin: 0;
  }
  .team-section-header .team-icon { font-size: 20px; }
  .team-section-header .team-count {
    font-size: 11px; font-weight: 600; background: #eef5f7; color: var(--primary);
    padding: 2px 8px; border-radius: 50px; margin-left: auto;
  }
  .person-card .person-photo {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  }

  /* Manager people selection */
  .mgr-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 12px; }
  .mgr-people-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: #f8f6f2; border-radius: var(--radius-sm); border: 1px solid var(--border);
    cursor: pointer; transition: all 0.2s; user-select: none;
  }
  .mgr-people-item:hover { background: #eef5f7; border-color: var(--primary-light); }
  .mgr-people-item.selected { background: #eef5f7; border-color: var(--primary); }
  .mgr-people-item .mpi-check {
    width: 20px; height: 20px; min-width: 20px; border-radius: 5px;
    border: 2px solid #94A3B8; display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: white; transition: all 0.2s;
  }
  .mgr-people-item.selected .mpi-check { background: var(--primary); border-color: var(--primary); }
  .mgr-people-item .mpi-name { font-size: 13px; font-weight: 500; }
  .mgr-people-item .mpi-title { font-size: 11px; color: var(--text-muted); }

  /* ===== CUSTOM TEAMMATE ENTRY ===== */
  .add-teammate-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 16px; background: #f8f6f2; border-radius: var(--radius-sm);
    border: 1px dashed var(--border); margin-top: 12px;
  }
  .add-teammate-form input, .add-teammate-form select {
    padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 13px; font-family: inherit;
  }
  .add-teammate-form input:focus, .add-teammate-form select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.1);
  }
  .add-teammate-btn {
    grid-column: 1 / -1; background: var(--primary); color: white; border: none;
    padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
  }
  .add-teammate-btn:hover { background: var(--primary-dark); }
  .custom-person-tag {
    display: inline-block; font-size: 9px; font-weight: 700; background: #d3ebf8;
    color: #3187bf; padding: 1px 6px; border-radius: 3px; margin-left: 6px;
    text-transform: uppercase; letter-spacing: 0.5px; vertical-align: middle;
  }
  .remove-custom-person {
    font-size: 14px; color: #d45a4a; cursor: pointer; margin-left: 4px;
    opacity: 0.6; transition: opacity 0.2s;
  }
  .remove-custom-person:hover { opacity: 1; }

  /* ===== MANAGER DASHBOARD ===== */
  .mgr-dashboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
  .mgr-stat-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 20px 16px; text-align: center; transition: all 0.2s;
  }
  .mgr-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .mgr-stat-card .stat-emoji { font-size: 28px; margin-bottom: 8px; }
  .mgr-stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--primary-dark); }
  .mgr-stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
  .readiness-meter {
    height: 12px; background: #E2E8F0; border-radius: 6px; overflow: hidden; margin-top: 8px;
  }
  .readiness-fill {
    height: 100%; border-radius: 6px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  }
  .mgr-welcome-note textarea {
    width: 100%; min-height: 80px; padding: 12px; border: 1px solid var(--border);
    border-radius: 8px; font-family: inherit; font-size: 14px; resize: vertical;
    transition: border-color 0.2s;
  }
  .mgr-welcome-note textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.1);
  }
  .mgr-tip-card {
    background: linear-gradient(135deg, #fff3d4, #fffaeb); border: 1px solid #ffde83;
    border-radius: var(--radius-sm); padding: 16px; margin-top: 12px;
  }

  /* ===== PEER TRAINING ===== */
  .peer-timeline {
    display: flex; gap: 0; margin: 20px 0; position: relative;
  }
  .peer-timeline::before {
    content: ''; position: absolute; top: 24px; left: 0; right: 0;
    height: 3px; background: var(--border); z-index: 0;
  }
  .peer-phase {
    flex: 1; text-align: center; position: relative; z-index: 1;
  }
  .peer-phase-dot {
    width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; border: 3px solid var(--border); background: white;
    transition: all 0.3s;
  }
  .peer-phase.active .peer-phase-dot { border-color: var(--primary); background: #eef5f7; }
  .peer-phase.completed .peer-phase-dot { border-color: var(--success); background: #dae9e3; }
  .peer-phase-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .peer-phase-cadence { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

  .shadow-day {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; margin-bottom: 12px; transition: all 0.2s;
  }
  .shadow-day:hover { box-shadow: var(--shadow); }
  .shadow-day-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    cursor: pointer; user-select: none; transition: background 0.2s;
  }
  .shadow-day-header:hover { background: #f8f6f2; }
  .shadow-day-badge {
    background: var(--primary); color: white; padding: 4px 12px;
    border-radius: 50px; font-size: 12px; font-weight: 700; white-space: nowrap;
  }
  .shadow-day-badge.completed-badge { background: var(--success); }
  .shadow-day-title { font-weight: 600; font-size: 14px; flex: 1; }
  .shadow-day-progress { font-size: 12px; color: var(--text-muted); }
  .shadow-day-chevron { font-size: 16px; color: var(--text-muted); transition: transform 0.3s; }
  .shadow-day.open .shadow-day-chevron { transform: rotate(180deg); }
  .shadow-day-body { padding: 0 16px 16px; display: none; }
  .shadow-day.open .shadow-day-body { display: block; }
  .shadow-day-goal {
    font-size: 12px; color: var(--primary); font-weight: 600;
    padding: 8px 12px; background: #eef5f7; border-radius: 6px;
    margin-bottom: 10px; font-style: italic;
  }

  .peer-checklist-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
  }
  .peer-checklist-item:last-child { border-bottom: none; }
  .peer-check {
    width: 22px; height: 22px; min-width: 22px; border-radius: 5px;
    border: 2px solid #94A3B8; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
    background: white; margin-top: 1px;
  }
  .peer-check:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.15); }
  .peer-check.checked { background: var(--success); border-color: var(--success); }
  .peer-check .check-icon { display: none; font-size: 12px; color: white; }
  .peer-check.checked .check-icon { display: block; }
  .peer-checklist-text { font-size: 13px; font-weight: 500; line-height: 1.5; }
  .peer-checklist-text.done { text-decoration: line-through; color: var(--text-muted); }

  .peer-meeting-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 8px; transition: all 0.2s;
  }
  .peer-meeting-row:hover { box-shadow: var(--shadow); }

  .debrief-day { margin-bottom: 16px; }
  .debrief-day label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; }
  .debrief-textarea {
    width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-family: inherit; font-size: 13px; resize: vertical;
    transition: border-color 0.2s; line-height: 1.5;
  }
  .debrief-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(48,95,109,0.1); }

  /* ===== DOC LINK MANAGEMENT ===== */
  .mgr-doc-category { margin-bottom: 20px; }
  .mgr-doc-category-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px;
  }
  .mgr-doc-link-row {
    display: flex; align-items: center; gap: 8px; padding: 8px 0;
    border-bottom: 1px solid #F1F5F9;
  }
  .mgr-doc-link-row:last-child { border-bottom: none; }
  .mgr-doc-link-name {
    font-size: 13px; font-weight: 500; min-width: 200px; max-width: 200px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mgr-doc-link-input {
    flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 12px; font-family: inherit; transition: border-color 0.2s;
  }
  .mgr-doc-link-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(48,95,109,0.1); }
  .mgr-doc-link-input.has-link { border-color: #b8d5c8; background: #eef5f0; }
  .mgr-doc-link-status {
    font-size: 16px; min-width: 24px; text-align: center;
  }
  .doc-link-btn {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
    background: #eef5f7; color: var(--primary); border-radius: 4px;
    font-size: 11px; font-weight: 600; text-decoration: none; transition: all 0.2s;
    border: 1px solid transparent; cursor: pointer;
  }
  .doc-link-btn:hover { background: #d3e8ed; border-color: var(--primary-light); }

  /* ===== VIEW MODE ===== */
  body.newhire-mode .tab-btn[data-tab="manager"] { display: none !important; }
  body.newhire-mode #profile-dashboard { display: none !important; }
  body.newhire-mode #new-profile-btn { display: none !important; }
  body.newhire-mode #delete-profile-btn { display: none !important; }
  body.newhire-mode #reset-progress-btn { display: none !important; }
  body.newhire-mode .mgr-export-import { display: none !important; }
  body.newhire-mode .save-banner { display: none !important; }

  /* Mentor mode — only show peer training view + accessible tabs */
  body.mentor-mode .top-bar .tab-nav { display: none !important; }
  body.mentor-mode #profile-dashboard { display: none !important; }
  body.mentor-mode #new-profile-btn { display: none !important; }
  body.mentor-mode #delete-profile-btn { display: none !important; }
  body.mentor-mode #reset-progress-btn { display: none !important; }
  body.mentor-mode .mgr-export-import { display: none !important; }
  body.mentor-mode .save-banner { display: none !important; }
  body.mentor-mode .tab-content { display: none !important; }
  body.mentor-mode #tab-mentor-view.active { display: block !important; }
  body.mentor-mode #tab-people.active { display: block !important; }
  body.mentor-mode #tab-docs.active { display: block !important; }
  body.mentor-mode #tab-tech.active { display: block !important; }
  body.mentor-mode #tab-playbook.active { display: block !important; }
  body.mentor-mode #tab-bh101.active { display: block !important; }
  body.mentor-mode .stats-row { display: none !important; }
  body.mentor-mode .nav-progress { display: none !important; }
  /* Mentor mode — hide irrelevant sidebar nav items */
  body.mentor-mode .nav-item[data-tab="manager"] { display: none !important; }
  body.mentor-mode .nav-item[data-tab="preboarding"] { display: none !important; }
  body.mentor-mode .nav-item[data-tab="today"] { display: none !important; }
  body.mentor-mode .nav-item[data-tab="welcome"] { display: none !important; }
  body.mentor-mode .nav-item[data-tab="schedule"] { display: none !important; }
  body.mentor-mode .nav-item[data-tab="accounts"] { display: none !important; }
  body.mentor-mode .nav-item[data-tab="peer"] { display: none !important; }
  body.mentor-mode .nav-item[data-tab="achievements"] { display: none !important; }
  body.mentor-mode #mentor-dash-nav { display: flex !important; }
  body.mentor-mode #mentor-dash-nav.active { background: rgba(255,255,255,0.15); }


  /* Mentor view styling */
  .mentor-tab-nav { display: flex; gap: 0; overflow-x: auto; background: rgba(0,0,0,0.1); border-radius: 8px; margin-bottom: 20px; }
  .mentor-tab-btn {
    padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text-muted);
    background: none; border: none; cursor: pointer; white-space: nowrap;
    border-bottom: 3px solid transparent; transition: all 0.2s; flex: 1; text-align: center;
  }
  .mentor-tab-btn:hover { color: var(--text); background: rgba(72,112,131,0.06); }
  .mentor-tab-btn.active { color: #487083; border-bottom-color: #487083; background: rgba(72,112,131,0.1); }
  .mentor-mentee-panel { display: none; animation: fadeIn 0.3s ease; }
  .mentor-mentee-panel.active { display: block; }

  .share-link-box {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
    padding: 10px 14px; background: #eef5f0; border: 1px solid #b8d5c8;
    border-radius: 8px; font-size: 13px; word-break: break-all;
  }
  .share-link-box code {
    flex: 1; font-family: 'SF Mono', 'Consolas', monospace; font-size: 12px;
    color: #4a8a62; background: white; padding: 6px 10px; border-radius: 4px;
    border: 1px solid #dae9e3; overflow-x: auto;
  }
  .share-link-copy-btn {
    background: #4a8a62; color: white; border: none; padding: 8px 14px;
    border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: all 0.2s;
  }
  .share-link-copy-btn:hover { background: #3d7555; }

  /* PIN modal */
  .pin-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10001; display: flex;
    align-items: center; justify-content: center;
  }
  .pin-modal {
    background: white; border-radius: 16px; padding: 40px; max-width: 380px;
    width: 90%; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  }
  .pin-modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
  .pin-modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
  .pin-input {
    width: 180px; text-align: center; font-size: 24px; font-weight: 700;
    letter-spacing: 8px; padding: 12px; border: 2px solid var(--border);
    border-radius: 10px; outline: none; transition: border-color 0.2s;
  }
  .pin-input:focus { border-color: var(--primary); }
  .pin-input.error { border-color: #d45a4a; animation: shake 0.4s; }
  @keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
  .pin-submit-btn {
    display: block; width: 100%; margin-top: 16px; background: var(--primary);
    color: white; border: none; padding: 12px; border-radius: 8px;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  }
  .pin-submit-btn:hover { background: var(--primary-dark); }
  .pin-error-msg { color: #d45a4a; font-size: 13px; margin-top: 8px; display: none; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .main { padding: 16px; }
    .welcome-hero { padding: 24px 16px; }
    .welcome-hero h2 { font-size: 22px; }
    .stats-row { gap: 8px; }
    .stat-pill { padding: 6px 10px; font-size: 11px; }
    .info-grid { grid-template-columns: 1fr; }
    .people-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  }
  /* Save banner for iframe mode */
  .save-banner {
    display: none; background: linear-gradient(90deg, #fff3d4, #fffaeb); padding: 10px 20px;
    font-size: 13px; color: #305f6d; align-items: center; gap: 10px; justify-content: center;
    border-bottom: 1px solid #ffde83; flex-wrap: wrap;
  }
  .save-banner button {
    background: #c89520; color: white; border: none; padding: 6px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  }
  .save-banner button:hover { background: #B45309; }
  .save-banner .import-btn { background: white; color: #c89520; border: 1px solid #c89520; }
  .save-banner .import-btn:hover { background: #fffaeb; }

  /* ===== OPTION D: SIDEBAR LAYOUT ===== */
  .layout { display: flex; min-height: 100vh; }

  /* Hide old top-bar */
  .top-bar { display: none !important; }

  /* ===== SIDEBAR ===== */
  .sidebar {
    width: 272px; background: linear-gradient(180deg, #305f6d 0%, #294f5a 100%);
    color: white; position: fixed; top: 0; bottom: 0; overflow-y: auto;
    display: flex; flex-direction: column; z-index: 100;
  }
  .sidebar-brand {
    padding: 28px 24px 20px; position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .sidebar-brand .brand-label {
    font-size: 9px; font-weight: 600; letter-spacing: 2.5px;
    text-transform: uppercase; opacity: 0.5; margin-bottom: 8px;
  }
  .sidebar-brand h1 {
    font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -0.3px;
  }
  .sidebar-brand .sub {
    font-size: 11px; font-weight: 300; opacity: 0.6; margin-top: 4px;
  }

  .sidebar-stats {
    padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  }
  .mini-stat {
    background: rgba(255,255,255,0.06); border-radius: 8px;
    padding: 10px 12px; text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
  }
  .mini-stat .val { font-size: 18px; font-weight: 800; line-height: 1; }
  .mini-stat .lbl { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.5; margin-top: 4px; }

  .sidebar-progress { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .progress-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
  .sb-progress-label { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: 0.45; }
  .sb-progress-pct { font-size: 12px; font-weight: 800; color: #7cc0eb; }
  .sb-progress-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 100px; overflow: hidden; }
  .sb-progress-fill { height: 100%; background: linear-gradient(90deg, #7cc0eb, #8fbfa8); border-radius: 100px; transition: width 0.8s; }

  .sidebar-nav { padding: 12px 0; flex: 1; }
  .nav-section-label {
    font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    opacity: 0.3; padding: 16px 24px 8px;
  }
  .nav-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 24px;
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.55);
    cursor: pointer; transition: all 0.15s; border: none; background: none;
    width: 100%; text-align: left; position: relative;
  }
  .nav-item:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.04); }
  .nav-item.active {
    color: white; font-weight: 600;
    background: rgba(255,255,255,0.08);
  }
  .nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 3px; background: #7cc0eb; border-radius: 0 3px 3px 0;
  }
  .nav-item .icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
  .nav-item .badge {
    margin-left: auto; font-size: 10px; font-weight: 700;
    background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 100px;
    color: rgba(255,255,255,0.6);
  }

  .sidebar-footer {
    padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 10px; opacity: 0.3; font-weight: 500;
  }

  /* ===== MAIN CONTENT AREA ===== */
  .content-area { margin-left: 272px; flex: 1; min-height: 100vh; background: #f8f6f2; }

  .page-header-bar {
    background: white; border-bottom: 1px solid #ececec;
    padding: 28px 48px; position: sticky; top: 0; z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  }
  .page-breadcrumb {
    font-size: 11px; font-weight: 600; color: #8fa7b1;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
  }
  .page-header-bar h2 {
    font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
    color: #305f6d;
  }
  .page-header-bar p { font-size: 14px; color: #8fa7b1; margin-top: 2px; }

  /* Override .main for full-width + sidebar offset */
  .main { max-width: none !important; margin: 0 !important; padding: 32px 48px 64px !important; }

  /* ===== CARD STYLE OVERRIDES (Option D) ===== */
  .card {
    border-radius: 8px !important;
    border: 1px solid #ececec !important;
    box-shadow: none !important;
  }
  .card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important; }
  .card h2, .card h3 {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-weight: 800 !important; color: #487083 !important;
    letter-spacing: -0.2px !important;
  }
  .card .title-bar {
    width: 40px; height: 3px; background: #3187bf;
    border-radius: 2px; margin: 0.4rem 0 0.75rem; display: block;
  }

  /* Welcome hero override */
  .welcome-hero {
    background: linear-gradient(135deg, #305f6d 0%, #487083 40%, #3187bf 100%) !important;
    border-radius: 10px !important; padding: 3rem 2.5rem !important;
    text-align: center; margin-bottom: 1.25rem !important;
    position: relative; overflow: hidden; color: white;
    border: none !important;
  }
  .welcome-hero::before {
    content: ''; position: absolute; top: -30%; right: -15%;
    width: 350px; height: 350px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
  }
  .welcome-hero::after {
    content: ''; position: absolute; bottom: -20%; left: -10%;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
  }
  .welcome-hero h2 {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 28px !important; font-weight: 800 !important;
    color: white !important; margin-bottom: 8px; position: relative;
    line-height: 1.15; letter-spacing: -0.3px;
  }
  .welcome-hero p {
    color: rgba(255,255,255,0.75) !important; font-size: 14px !important;
    font-weight: 400; max-width: 480px; margin: 0 auto; position: relative; line-height: 1.65;
  }

  /* Info items override */
  .info-item {
    background: #f0efec !important; border-radius: 6px !important;
    border: 1px solid #ececec !important;
  }
  .info-item:hover { background: #eef5f1 !important; border-color: #dae9e3 !important; }
  .info-item .label { font-size: 9px !important; color: #8fa7b1 !important; letter-spacing: 0.8px !important; }
  .info-item .value { font-size: 13px !important; font-weight: 600 !important; color: #363737 !important; }

  /* Manager card overrides */
  .manager-card {
    border-radius: 8px !important;
  }
  .manager-card .avatar {
    border-radius: 12px !important; background: #487083 !important;
  }
  .manager-card.my-ad {
    border: 2px solid #3187bf !important;
    background: #d3ebf8 !important;
    box-shadow: none !important;
  }
  .manager-card.my-ad::after {
    background: #3187bf !important;
  }

  /* Goal cards */
  .goal-card {
    background: #f0efec !important; border-radius: 8px !important;
    border-left: 4px solid #3187bf !important;
  }
  .goal-card:hover { background: #eef5f1 !important; }
  .goal-card:nth-child(2) { border-left-color: #8fbfa8 !important; }
  .goal-card:nth-child(3) { border-left-color: #f0a050 !important; }
  .goal-card:nth-child(4) { border-left-color: #487083 !important; }

  /* Table overrides */
  thead th { background: #487083 !important; }

  /* Task items */
  .task-check.done { background: #3d9a6e !important; border-color: #3d9a6e !important; }
  .task-xp { color: #f0a050 !important; background: #fff4e0 !important; }

  /* Body & font overrides */
  body {
    font-family: 'Inter', -apple-system, sans-serif !important;
    background: #f8f6f2 !important;
    -webkit-font-smoothing: antialiased;
  }

  /* Fix achievements grid to work full-width */
  .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }

  /* ===== RESPONSIVE for sidebar ===== */
  @media (max-width: 768px) {
    .sidebar { display: none; }
    .content-area { margin-left: 0 !important; }
    .top-bar { display: flex !important; }
    .main { padding: 16px !important; }
    .page-header-bar { padding: 20px 16px !important; }
  }


  /* ===== PROGRESSIVE DISCLOSURE ===== */
  .week-card.week-complete .week-header {
    background: linear-gradient(135deg, #eef5f1, #d4f0e0) !important;
    border-color: #b8d5c8 !important;
  }
  .week-card.week-complete .week-badge {
    background: #3d9a6e !important; color: white !important;
  }
  .week-preview {
    font-size: 11px; color: #8fa7b1; font-weight: 400; font-style: italic;
    margin-left: 4px; display: none;
  }
  .week-card:not(.open) .week-preview { display: inline; }

  /* "Why this matters" context line */
  .task-why {
    font-size: 11.5px; color: #3187bf; font-style: italic; margin-top: 3px;
    padding-left: 1px; line-height: 1.5; opacity: 0.85;
  }
  .task-item:hover .task-why { opacity: 1; }

  /* Quick-win badge celebration animation */
  @keyframes badgePop {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
  }
  .badge-popup {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: white; border-radius: 16px; padding: 32px 40px; text-align: center;
    box-shadow: 0 20px 60px rgba(48,95,109,0.25); z-index: 10000;
    animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .badge-popup .badge-icon { font-size: 56px; margin-bottom: 12px; }
  .badge-popup .badge-title { font-size: 18px; font-weight: 800; color: #305f6d; margin-bottom: 4px; }
  .badge-popup .badge-subtitle { font-size: 13px; color: #8fa7b1; }
  .badge-popup .badge-xp { font-size: 14px; font-weight: 700; color: #f0a050; margin-top: 8px; }
  .badge-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(48,95,109,0.3); z-index: 9999;
    animation: fadeIn 0.2s ease;
  }


  /* ===== TODAY DASHBOARD ===== */
  .today-hero {
    background: linear-gradient(135deg, #305f6d 0%, #487083 40%, #3187bf 100%);
    border-radius: 10px; padding: 2rem 2.5rem; text-align: center;
    margin-bottom: 1.25rem; position: relative; overflow: hidden; color: white;
  }
  .today-hero::before {
    content: ''; position: absolute; top: -30%; right: -15%;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
  }
  .today-hero-emoji { font-size: 40px; margin-bottom: 8px; position: relative; }
  .today-hero h2 {
    font-size: 24px; font-weight: 800; color: white !important;
    margin-bottom: 4px; position: relative; letter-spacing: -0.3px;
  }
  .today-hero p { color: rgba(255,255,255,0.7); font-size: 14px; position: relative; }

  .today-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
  }
  @media (max-width: 700px) { .today-grid { grid-template-columns: 1fr; } }

  .today-card {
    background: white; border-radius: 8px; padding: 20px 24px;
    border: 1px solid #ececec;
  }
  .today-card-label {
    font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #8fa7b1; margin-bottom: 12px;
  }

  /* Progress ring */
  .today-progress-ring-row { display: flex; align-items: center; gap: 24px; }
  .today-ring-container { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
  .today-ring { width: 80px; height: 80px; transform: rotate(-90deg); }
  .today-ring-bg { fill: none; stroke: #ececec; stroke-width: 3; }
  .today-ring-fill { fill: none; stroke: #3187bf; stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 0.8s ease; }
  .today-ring-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 18px; font-weight: 800; color: #305f6d;
  }
  .today-stat-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px solid #f0efec; }
  .today-stat-row:last-child { border-bottom: none; }
  .today-stat-label { font-size: 12px; color: #8fa7b1; }
  .today-stat-value { font-size: 13px; font-weight: 700; color: #305f6d; }

  /* Week card */
  .today-week-phase { font-size: 20px; font-weight: 800; color: #305f6d; margin-bottom: 12px; }
  .today-week-bar-container { display: flex; align-items: center; gap: 10px; }
  .today-week-bar { flex: 1; height: 6px; background: #ececec; border-radius: 100px; overflow: hidden; }
  .today-week-bar-fill { height: 100%; background: linear-gradient(90deg, #7cc0eb, #3d9a6e); border-radius: 100px; transition: width 0.6s; }
  .today-week-bar-text { font-size: 12px; font-weight: 600; color: #8fa7b1; white-space: nowrap; }
  .today-week-tip { margin-top: 12px; font-size: 12px; color: #3187bf; font-style: italic; }

  /* Focus tasks */
  .today-section-label {
    font-size: 14px; font-weight: 800; color: #305f6d; margin-bottom: 10px;
    letter-spacing: -0.2px;
  }
  .today-focus-list .today-task {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
    background: white; border: 1px solid #ececec; border-radius: 8px;
    margin-bottom: 8px; transition: all 0.15s; cursor: pointer;
  }
  .today-focus-list .today-task:hover { border-color: #7cc0eb; box-shadow: 0 2px 8px rgba(49,135,191,0.08); }
  .today-task-check {
    width: 22px; height: 22px; min-width: 22px; border-radius: 6px;
    border: 2px solid #ececec; display: flex; align-items: center;
    justify-content: center; margin-top: 1px; transition: all 0.15s;
  }
  .today-task-check.done { background: #3d9a6e; border-color: #3d9a6e; }
  .today-task-check.done::after { content: '\2713'; color: white; font-size: 12px; font-weight: 700; }
  .today-task-name { font-size: 13px; font-weight: 600; color: #363737; }
  .today-task-name.completed { text-decoration: line-through; color: #8fa7b1; }
  .today-task-detail { font-size: 11.5px; color: #8fa7b1; margin-top: 2px; }
  .today-task-why { font-size: 11px; color: #3187bf; font-style: italic; margin-top: 2px; }
  .today-task-xp {
    margin-left: auto; font-size: 11px; font-weight: 700; color: #f0a050;
    background: #fff4e0; padding: 3px 10px; border-radius: 100px;
    white-space: nowrap; flex-shrink: 0;
  }

  .today-upcoming-list .today-task { opacity: 0.7; }
  .today-upcoming-list .today-task:hover { opacity: 1; }

  /* Nudge */
  .today-nudge {
    margin-top: 20px; padding: 16px 20px; background: linear-gradient(135deg, #eef5f1, #d4f0e0);
    border-radius: 8px; border-left: 4px solid #3d9a6e;
    font-size: 13px; color: #305f6d; line-height: 1.6;
  }
  .today-nudge:empty { display: none; }

  /* Pulse check */
  .pulse-check-card {
    margin-top: 24px; background: white; border-radius: 10px; padding: 24px 28px;
    border: 1px solid #ececec; text-align: center;
  }
  .pulse-check-card h3 { font-size: 16px; font-weight: 800; color: #305f6d; margin-bottom: 4px; }
  .pulse-check-card p { font-size: 13px; color: #8fa7b1; margin-bottom: 16px; }
  .pulse-emojis { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
  .pulse-emoji {
    font-size: 32px; cursor: pointer; padding: 8px; border-radius: 12px;
    border: 2px solid transparent; transition: all 0.15s;
  }
  .pulse-emoji:hover { transform: scale(1.2); border-color: #7cc0eb; background: #d3ebf8; }
  .pulse-emoji.selected { border-color: #3187bf; background: #d3ebf8; transform: scale(1.15); }
  .pulse-textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #ececec; border-radius: 8px;
    font-size: 13px; font-family: inherit; resize: vertical; min-height: 48px;
    margin-top: 8px; display: none;
  }
  .pulse-textarea.visible { display: block; }
  .pulse-submitted { color: #3d9a6e; font-weight: 600; font-size: 14px; }


  /* ===== BUDDY CHECK-IN PROMPTS ===== */

  /* Shared progress view */
  .buddy-progress-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  }
  @media (max-width: 600px) { .buddy-progress-grid { grid-template-columns: 1fr; } }
  .buddy-progress-stat {
    text-align: center; padding: 16px; background: #f8fafb;
    border-radius: 8px; border: 1px solid #ececec;
  }
  .buddy-progress-stat .stat-number { font-size: 28px; font-weight: 800; color: #305f6d; }
  .buddy-progress-stat .stat-label { font-size: 11px; color: #8fa7b1; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
  .buddy-week-progress {
    margin-top: 16px; display: flex; flex-direction: column; gap: 6px;
  }
  .buddy-week-row {
    display: flex; align-items: center; gap: 10px; font-size: 12px;
  }
  .buddy-week-label { width: 55px; font-weight: 600; color: #305f6d; white-space: nowrap; }
  .buddy-week-bar { flex: 1; height: 8px; background: #ececec; border-radius: 100px; overflow: hidden; }
  .buddy-week-bar-fill { height: 100%; border-radius: 100px; transition: width 0.4s; }
  .buddy-week-pct { width: 35px; text-align: right; font-weight: 600; color: #8fa7b1; font-size: 11px; }

  /* ===== PRE-BOARDING ===== */
  .preboarding-hero {
    background: linear-gradient(135deg, #305f6d 0%, #3d7a8a 40%, #3187bf 100%);
    border-radius: 10px; padding: 2.5rem; text-align: center; color: white;
    margin-bottom: 1.25rem; position: relative; overflow: hidden;
  }
  .preboarding-hero::before {
    content: ''; position: absolute; top: -40%; left: -20%;
    width: 350px; height: 350px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
  }
  .preboarding-hero h2 {
    font-size: 26px; font-weight: 800; color: white !important;
    margin-bottom: 6px; position: relative;
  }
  .preboarding-hero p {
    color: rgba(255,255,255,0.75); font-size: 14px; position: relative;
    max-width: 480px; margin: 0 auto; line-height: 1.6;
  }
  .preboarding-progress-bar-container { margin-bottom: 20px; }
  .preboarding-progress-label {
    font-size: 12px; font-weight: 600; color: #8fa7b1; margin-bottom: 6px;
  }
  .preboarding-progress-bar {
    height: 8px; background: #ececec; border-radius: 100px; overflow: hidden;
  }
  .preboarding-progress-fill {
    height: 100%; border-radius: 100px;
    background: linear-gradient(90deg, #3187bf, #3d9a6e);
    transition: width 0.5s;
  }
  .preboarding-tasks { display: flex; flex-direction: column; gap: 8px; }
  .preboarding-task {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
    background: white; border: 1px solid #ececec; border-radius: 8px;
    transition: all 0.15s; cursor: pointer;
  }
  .preboarding-task:hover { border-color: #7cc0eb; box-shadow: 0 2px 8px rgba(49,135,191,0.08); }
  .preboarding-task.done { opacity: 0.6; }
  .preboarding-task-check {
    width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
    border: 2px solid #ececec; display: flex; align-items: center;
    justify-content: center; margin-top: 1px; transition: all 0.15s;
    flex-shrink: 0;
  }
  .preboarding-task.done .preboarding-task-check {
    background: #3d9a6e; border-color: #3d9a6e;
  }
  .preboarding-task.done .preboarding-task-check::after {
    content: '\2713'; color: white; font-size: 13px; font-weight: 700;
  }
  .preboarding-task-content { flex: 1; }
  .preboarding-task-name { font-size: 14px; font-weight: 700; color: #305f6d; }
  .preboarding-task.done .preboarding-task-name { text-decoration: line-through; color: #8fa7b1; }
  .preboarding-task-detail { font-size: 12px; color: #8fa7b1; margin-top: 3px; line-height: 1.5; }
  .preboarding-task-category {
    font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 100px; white-space: nowrap; margin-top: 6px;
    display: inline-block;
  }
  .preboarding-note {
    margin-top: 20px; padding: 16px 20px; background: #f8fafb;
    border-radius: 8px; border: 1px solid #ececec;
    font-size: 13px; color: #8fa7b1; line-height: 1.6;
  }

  /* Pre-boarding toggle in manager tab */
  .preboarding-toggle-container {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: #f0f5f7; border-radius: 8px; margin-bottom: 16px;
  }
  .preboarding-toggle-label { font-size: 13px; font-weight: 600; color: #305f6d; }
  .preboarding-toggle-desc { font-size: 11px; color: #8fa7b1; }


  /* ===== ORG CHART EDITOR ===== */
  .org-branch-editor {
    margin-bottom: 16px; border: 1px solid #ececec; border-radius: 8px;
    overflow: hidden;
  }
  .org-branch-header {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: #f8fafb; border-bottom: 1px solid #ececec;
  }
  .org-branch-header .branch-name {
    font-size: 13px; font-weight: 700; color: #305f6d;
  }
  .org-branch-header .branch-count {
    font-size: 11px; color: #8fa7b1; margin-left: auto;
  }
  .org-branch-members { padding: 8px 12px; }
  .org-member-row {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    border-bottom: 1px solid #f0efec;
  }
  .org-member-row:last-child { border-bottom: none; }
  .org-member-name { font-size: 12px; font-weight: 600; color: #363737; flex: 1; }
  .org-member-title { font-size: 11px; color: #8fa7b1; flex: 1; }
  .org-member-remove {
    width: 22px; height: 22px; border-radius: 50%; border: none;
    background: #fef2f2; color: #e05252; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; flex-shrink: 0;
  }
  .org-member-remove:hover { background: #fee2e2; }
  .org-branch-add {
    display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid #ececec;
  }
  .org-branch-add input {
    flex: 1; padding: 6px 10px; border: 1px solid #ececec; border-radius: 6px;
    font-size: 12px; font-family: inherit;
  }
  .org-branch-add button {
    background: #305f6d; color: white; border: none; padding: 6px 14px;
    border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer;
    white-space: nowrap;
  }
  .org-branch-add button:hover { background: #3d7a8a; }


/* Survey link hover (replaces inline onmouseover/onmouseout) */
.survey-link-hover:hover { opacity: 0.9; }

/* ===== MANAGER SETUP: CONSOLIDATED SECTION SUB-HEADERS ===== */
.mgr-sub-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin: 4px 0 4px 0;
  letter-spacing: 0.1px;
}
.mgr-sub-header span { font-size: 15px; }
.mgr-sub-desc-text {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}
.mgr-sub-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
