  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0e1a;
    color: #e2e8f0;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  /* ═════════ LEFT SIDEBAR ═════════ */
  .sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    background: #0d1117;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease, min-width 0.25s ease, opacity 0.2s ease, border 0.25s ease;
  }
  .sidebar.collapsed {
    width: 0;
    min-width: 0;
    border-right-color: transparent;
    overflow: hidden;
    padding: 0;
  }
  .sidebar::-webkit-scrollbar { width: 4px; }
  .sidebar::-webkit-scrollbar-track { background: transparent; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

  /* Sidebar Header */
  .sb-header {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
  }
  .sb-logo {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  .sb-logo img { width: 100%; height: 100%; object-fit: contain; }
  .sb-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
  }
  .sb-subtitle {
    font-size: 10.5px;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 42px;
  }

  /* Nav Section */
  .sb-section {
    padding: 14px 0 8px;
  }
  .sb-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 18px;
    margin-bottom: 6px;
  }

  /* Nav Item */
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.12s ease;
    border-left: 3px solid transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    position: relative;
  }
  .nav-item:hover {
    background: rgba(255,255,255,0.03);
    color: #cbd5e1;
  }
  .nav-item.active {
    background: rgba(59,130,246,0.08);
    border-left-color: #3b82f6;
    color: #fff;
    font-weight: 600;
  }
  .nav-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
  }
  .nav-label { flex: 1; }
  .nav-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  .badge-active   { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
  .badge-live     { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
  .badge-version  { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
  .badge-warn     { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); font-weight:700; }
  .badge-weekly   { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); font-weight:700; font-size:9px; }

  /* ═════════ RIGHT CONTENT AREA ═════════ */
  .main-area {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
  }
  .main-area::-webkit-scrollbar { width: 5px; }
  .main-area::-webkit-scrollbar-track { background: transparent; }
  .main-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

  /* Top Bar */
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(10,14,26,0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .topbar-left { display: flex; align-items: center; gap: 12px; }

  /* Sidebar Toggle Button */
  .sidebar-toggle {
    display: none;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }
  .sidebar-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
  @media (min-width: 1025px) {
    .sidebar-toggle { display: flex; }
  }
  /* When sidebar is collapsed on desktop, show the toggle with a different icon feel */
  body.sb-collapsed .sidebar-toggle::after { content: '☰'; }
  .page-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
  }
  .topbar-right { display: flex; align-items: center; gap: 12px; }

  /* Language Switcher */
  .lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2px;
  }
  .lang-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.15s;
  }
  .lang-btn.active { background: rgba(59,130,246,0.2); color: #60a5fa; }
  .topbar-date {
    font-size: 12px;
    color: #475569;
  }
  .refresh-btn-sm {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .refresh-btn-sm:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }
  .refresh-btn-sm.refreshing { cursor: wait; pointer-events: none; opacity: 0.6; }
  .refresh-btn-sm .spinning { display: inline-block; animation: spin 0.8s linear infinite; }
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  /* Toast notification */
  .toast {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500;
    animation: toastSlide 0.3s ease, toastFade 0.3s ease 2.2s forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }
  .toast.success { background: #065f46; color: #34d399; border: 1px solid #34d399; }
  .toast.error { background: #7f1d1d; color: #f87171; border: 1px solid #f87171; }
  @keyframes toastSlide { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
  @keyframes toastFade { to { opacity: 0; transform: translateY(-10px); } }

  /* Page content container */
  .page { display: none; padding: 24px 28px; animation: fadeIn 0.2s ease; }
  .page.active { display: block; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

  /* ═════════ SHARED COMPONENTS ═════════ */
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px;
  }
  .stat-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
  }
  .stat-value { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
  .stat-sub { font-size: 11.5px; color: #475569; margin-top: 5px; line-height: 1.4; }
  .stat-ok { color: #10b981; }
  .stat-warn { color: #f59e0b; }
  .stat-crit { color: #ef4444; }

  /* ═══ Performance Charts (业绩图表) ═══ */
  .perf-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .perf-title { font-size: 15px; font-weight: 700; color: #fff; }
  .perf-subtitle { font-size: 11.5px; color: #64748b; }
  .chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
  .chart-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 18px; }
  .chart-card-title { font-size: 11.5px; font-weight: 600; color: #94a3b8; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
  .chart-area { height: 180px; position: relative; }
  .bar-group { display: flex; align-items: flex-end; gap: 4px; height: 100%; padding-bottom: 24px; }
  .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
  .bar-wrap { width: 100%; max-width: 36px; position: relative; display: flex; flex-direction: column; align-items: center; }
  .bar { width: 100%; border-radius: 4px 4px 0 0; transition: height 0.5s ease; position: relative; min-height: 2px; }
  .bar-rev { background: linear-gradient(180deg, #f97316 0%, #ea580c 100%); }
  .bar-gp { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
  .bar-label { font-size: 9px; color: #64748b; margin-top: 5px; white-space: nowrap; }
  .bar-val { font-size: 9px; font-weight: 600; color: #e2e8f0; margin-bottom: 3px; white-space: nowrap; }
  .chart-legend { display: flex; gap: 12px; margin-top: 8px; justify-content: center; }
  .legend-item { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: #94a3b8; }
  .legend-dot { width: 8px; height: 8px; border-radius: 2px; }
  .chart-y-axis { position: absolute; left: 0; top: 0; bottom: 24px; width: 52px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
  .y-tick { font-size: 9px; color: #475569; text-align: right; padding-right: 4px; }
  .chart-body { margin-left: 54px; }

  .section-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .section-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

  /* Status pills */
  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
  }
  .pill-ok { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.22); }
  .pill-warn { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.22); }
  .pill-crit { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.22); }
  .pill-pending { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.22); }
  .pill-unknown { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.18); }

  /* ═════════ Team Page — Person Dashboard Cards ═════════ */
  .person-dash-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 16px;
  }
  .person-dash-card:hover { border-color: rgba(255,255,255,0.12); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
  .pd-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; cursor: pointer; }
  .pd-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; flex-shrink: 0;
  }
  .pd-name { font-size: 17px; font-weight: 700; color: #f0f0f0; }
  .pd-vert { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; }
  .pd-score {
    margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800;
  }
  .score-A { background: rgba(16,185,129,0.2); color: #10b981; border: 2px solid rgba(16,185,129,0.4); }
  .score-B { background: rgba(59,130,246,0.2); color: #60a5fa; border: 2px solid rgba(59,130,246,0.4); }
  .score-C { background: rgba(245,158,11,0.2); color: #f59e0b; border: 2px solid rgba(245,158,11,0.4); }
  .score-D { background: rgba(239,68,68,0.2); color: #ef4444; border: 2px solid rgba(239,68,68,0.4); }
  .pd-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
  .pd-kpi-item {
    padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    text-align: center;
  }
  .pd-kpi-label { font-size: 9px; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
  .pd-kpi-val { font-size: 16px; font-weight: 700; }
  .pd-kpi-sub { font-size: 9px; color: #94a3b8; margin-top: 2px; }
  .pd-chart-section { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
  .pd-chart-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 14px;
  }
  .pd-chart-title { font-size: 11px; font-weight: 600; color: #94a3b8; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
  .pd-expand { font-size: 10px; color: #60a5fa; margin-left: 8px; }
  .pd-detail { display: none; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 16px; margin-top: 4px; }
  .pd-detail.open { display: block; }
  .pd-crm-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .pd-crm-table th { text-align: left; color: #64748b; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .pd-crm-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #cbd5e1; }
  .pd-crm-table tr:hover td { background: rgba(255,255,255,0.02); }
  .pd-funnel { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
  .pd-funnel-stage { height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #fff; transition: width 0.4s; }
  .pd-task-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
  .pd-task-row:last-child { border-bottom: none; }

  /* ═════════ Team Page — Task Rows ═════════ */
  .team-task-section { margin-bottom: 0; }
  .team-task-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
  }
  .team-task-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; cursor: pointer;
    background: rgba(255,255,255,0.02);
    transition: background 0.15s;
  }
  .team-task-header:hover { background: rgba(255,255,255,0.04); }
  .team-task-header .tt-avatar {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
  }
  .team-task-header .tt-name { font-size: 14px; font-weight: 600; color: #e2e8f0; }
  .team-task-header .tt-meta { font-size: 10px; color: #64748b; margin-left: auto; }
  .team-task-header .tt-completion { font-size: 12px; font-weight: 600; }
  .tt-completion-good { color: #10b981; }
  .tt-completion-warn { color: #f59e0b; }
  .tt-completion-crit { color: #ef4444; }
  .team-task-body {
    padding: 0 18px 14px;
    display: block;
  }
  .tt-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 12px;
  }
  .tt-row:last-child { border-bottom: none; }
  .tt-chk {
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; flex-shrink: 0;
  }
  .tt-chk-done { background: rgba(16,185,129,0.15); color: #10b981; }
  .tt-chk-prog { background: rgba(59,130,246,0.15); color: #60a5fa; }
  .tt-chk-pend { background: rgba(100,116,139,0.15); color: #64748b; }
  .tt-task-text { flex: 1; color: #cbd5e1; }
  .tt-task-done { color: #475569; text-decoration: line-through; }
  .tt-tag {
    font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
    white-space: nowrap;
  }
  .tt-tag-done { background: rgba(16,185,129,0.1); color: #10b981; }
  .tt-tag-prog { background: rgba(59,130,246,0.1); color: #60a5fa; }
  .tt-tag-pend { background: rgba(100,116,139,0.1); color: #94a3b8; }

  /* ═════════ Weekly Report Cards ═════════ */
  .weekly-report { margin-bottom: 24px; }
  .weekly-report h3 { font-size: 16px; font-weight: 700; color: #f0f0f0; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .weekly-report h4 { font-size: 13px; font-weight: 600; color: #cbd5e1; margin: 18px 0 10px; }
  .wr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
  .wr-card { border-radius: 10px; padding: 16px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); text-align: center; }
  .wr-label { font-size: 11px; color: #64748b; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
  .wr-value { font-size: 20px; font-weight: 700; line-height: 1.2; }
  .wr-green { border-left: 3px solid #10b981; }
  .wr-green .wr-value { color: #10b981; }
  .wr-blue { border-left: 3px solid #3b82f6; }
  .wr-blue .wr-value { color: #3b82f6; }
  .wr-orange { border-left: 3px solid #f59e0b; }
  .wr-orange .wr-value { color: #f59e0b; }
  .wr-sub { font-size: 10px; color: #64748b; margin-top: 2px; }
  .wr-timestamp { font-size: 10px; color: #475569; text-align: right; margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.04); }
  .wr-actions { list-style: none; padding: 0; }
  .wr-actions li { padding: 6px 0 6px 18px; position: relative; font-size: 12px; color: #94a3b8; line-height: 1.5; border-bottom: 1px solid rgba(255,255,255,0.03); }
  .wr-actions li::before { content: '\u25b8'; position: absolute; left: 0; color: #3b82f6; font-weight: 700; }
  .wr-actions li:last-child { border-bottom: none; }
  .wr-note { font-size: 10.5px; color: #f59e0b; padding: 8px 12px; background: rgba(245,158,11,0.06); border-radius: 6px; margin-bottom: 14px; border: 1px solid rgba(245,158,11,0.12); }
  .wr-spark { font-size: 12px; color: #94a3b8; margin-bottom: 10px; line-height: 1.6; }
  @media (max-width: 768px) { .wr-grid { grid-template-columns: 1fr; } }

  /* Banners */
  .alert-banner { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
  .warn-banner { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.15); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
  .ok-banner { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
  .alert-icon { font-size: 17px; flex-shrink: 0; }
  .alert-text { flex: 1; }
  .alert-title { font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
  .alert-desc { font-size: 11.5px; color: #94a3b8; }

  /* Tables */
  .pricing-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .pricing-table th { text-align: left; padding: 9px 10px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .pricing-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
  .pricing-table tr:last-child td { border-bottom: none; }
  .fw-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; }
  .fw-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

  /* Progress bars */
  .progress-section { margin-top: 12px; }
  .progress-row { display: flex; justify-content: space-between; font-size: 11.5px; color: #64748b; margin-bottom: 5px; }
  .progress-track { height: 5px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
  .progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transition: width 0.6s ease; }

  /* Task items */
  .task-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .task-item:last-child { border-bottom: none; }
  .task-priority { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
  .prio-high { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.4); }
  .prio-medium { background: #f59e0b; }
  .prio-low { background: #3b82f6; }
  .prio-done { background: #10b981; }
  .task-body { flex: 1; }
  .task-title { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 2px; }
  .task-desc { font-size: 11.5px; color: #64748b; line-height: 1.45; }
  .task-tag { font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
  .tag-high { background: rgba(239,68,68,0.15); color: #ef4444; }
  .tag-medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
  .tag-low { background: rgba(59,130,246,0.15); color: #60a5fa; }
  .tag-done { background: rgba(16,185,129,0.15); color: #10b981; }

  /* Deploy URL */
  .deploy-url { font-family:'Courier New',monospace;font-size:12px;color:#60a5fa;background:rgba(96,165,250,0.08);border:1px solid rgba(96,165,250,0.15);padding:7px 10px;border-radius:8px;display:inline-block;text-decoration:none;margin-top:6px; }
  .deploy-url:hover { background: rgba(96,165,250,0.15); }

  /* Buttons */
  .btn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
  .btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; }
  .btn-primary { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; }
  .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
  .btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #94a3b8; }
  .btn-secondary:hover { background: rgba(255,255,255,0.09); }

  /* Team grid */
  .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .team-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; padding: 14px 10px; text-align: center; }
  .team-avatar { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
  .team-name { font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
  .team-role { font-size: 10.5px; color: #64748b; }
  .team-tenure { font-size: 9.5px; color: #475569; margin-top: 3px; }

  /* Coverage grid */
  .coverage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cov-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; padding: 11px; text-align: center; }
  .cov-country { font-size: 11.5px; font-weight: 700; margin-bottom: 5px; }
  .cov-routes { font-size: 10.5px; color: #64748b; }
  .cov-fw { font-size: 9.5px; margin-top: 6px; }

  /* Script box */
  .script-box { background:#0d1117;border:1px solid rgba(255,255,255,0.07);border-radius:10px;padding:14px;font-family:'Courier New',monospace;font-size:11.5px;color:#60a5fa;line-height:1.8;margin-top:10px; }
  .comment { color: #6b7280; }
  .cmd { color: #10b981; }

  /* Loading / Error */
  .loading { text-align: center; padding: 40px 0; color: #64748b; font-size: 13px; }
  .loading-spinner { display:inline-block;width:20px;height:20px;border:2px solid rgba(255,255,255,0.1);border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-right:8px;vertical-align:middle; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .error-box { background:rgba(239,68,68,0.08);border:1px solid rgba(239,68,68,0.15);border-radius:12px;padding:18px;color:#ef4444;margin:16px 0; }
  .detail-row { font-size: 11px; color: #475569; margin-top: 3px; line-height: 1.55; }
  .expire-bar { height: 4px; border-radius: 2px; margin-top: 5px; }
  .expire-bar-track { background: rgba(255,255,255,0.05); border-radius: 2px; position: relative; height: 100%; }
  .expire-bar-fill { position:absolute;top:0;left:0;height:100%;border-radius:2px;transition:width 0.6s ease; }

  /* Footer */
  .footer { text-align:center;padding:20px 28px;font-size:10.5px;color:#334155;border-top:1px solid rgba(255,255,255,0.04);margin-top:20px; }

  /* ═════════ EXECUTIVE SUMMARY (WEEKLY) ═════════ */
  .week-label { font-size:12px;font-weight:700;color:#fbbf24;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:14px;display:flex;align-items:center;gap:8px; }
  .week-label span { color:#64748b;font-weight:400;font-size:11px; }
  .kpi-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px; }
  .kpi-card { background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.05);border-radius:10px;padding:14px;text-align:center; }
  .kpi-label { font-size:10.5px;color:#64748b;margin-bottom:5px; }
  .kpi-value { font-size:22px;font-weight:800;color:#e2e8f0;line-height:1; }
  .init-grid { display:flex;flex-direction:column;gap:8px; }
  .init-card-exec { background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.05);border-radius:12px;padding:14px 16px;cursor:pointer;transition:border-color 0.15s ease; }
  .init-card-exec:hover { border-color:rgba(255,255,255,0.12); }
  .init-card-exec.expanded { border-color:rgba(59,130,246,0.3); }
  .init-summary { display:flex;align-items:center;justify-content:space-between; }
  .init-left { display:flex;align-items:center;gap:10px;flex:1;min-width:0; }
  .init-icon { width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0; }
  .init-info { flex:1;min-width:0; }
  .init-name { font-size:13.5px;font-weight:600;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  .init-sub { font-size:11px;color:#64748b;margin-top:2px; }
  .init-right { text-align:right;flex-shrink:0;margin-left:10px; }
  .init-progress { font-size:11px;font-weight:700;margin-top:3px; }
  .progress-mini { height:4px;border-radius:2px;background:rgba(255,255,255,0.06);margin-top:4px;overflow:hidden; }
  .progress-mini-fill { height:100%;border-radius:2px;transition:width 0.4s ease; }
  .init-detail-exec { display:none;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,0.05); }
  .init-detail-exec.open { display:block; }
  .wt-row { display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,0.03);font-size:11.5px;line-height:1.5; }
  .wt-row:last-child { border-bottom:none; }
  .wt-chk { width:18px;height:18px;border-radius:5px;border:2px solid rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10.5px;color:transparent;transition:all 0.15s;cursor:pointer;user-select:none; }
  .wt-chk.done { background:rgba(16,185,129,0.2);border-color:rgba(16,185,129,0.5);color:#10b981; }
  .wt-chk.partial { background:rgba(245,158,11,0.12);border-color:rgba(245,158,11,0.35);color:#f59e0b; }
  .wt-text { flex:1;color:#cbd5e1; }
  .wt-text.done-text { color:#475569;text-decoration:line-through; }
  .wt-tag { font-size:9.5px;font-weight:600;padding:2px 7px;border-radius:4px;flex-shrink:0; }
  .tag-done { background:rgba(16,185,129,0.12);color:#10b981; }
  .tag-pending { background:rgba(100,116,139,0.12);color:#94a3b8; }
  .tag-overdue { background:rgba(239,68,68,0.12);color:#ef4444; }
  .init-meta { font-size:10.5px;color:#475569;margin-top:8px;line-height:1.5; }
  .exec-actions { display:flex;gap:8px;margin-top:14px;justify-content:center; }
  .exec-btn { font-size:11.5px;padding:6px 16px;border:1px solid rgba(255,255,255,0.07);border-radius:20px;background:transparent;color:#94a3b8;cursor:pointer;transition:all 0.15s ease; }
  .exec-btn:hover { background:rgba(255,255,255,0.05);color:#e2e8f0; }

  /* Quick Links in dashboard */
  .quick-links { display:flex;align-items:center;gap:8px;margin-bottom:18px;padding:10px 14px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.05);border-radius:10px;flex-wrap:wrap; }
  .ql-link { display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:7px;font-size:11.5px;font-weight:600;text-decoration:none;color:#94a3b8;border:1px solid rgba(255,255,255,0.07);background:rgba(255,255,255,0.03);transition:all 0.12s; }
  .ql-link:hover { background:rgba(59,130,246,0.1);border-color:rgba(59,130,246,0.3);color:#60a5fa; }
  .ql-link.primary { background:rgba(59,130,246,0.1);border-color:rgba(59,130,246,0.25);color:#60a5fa; }
  .ql-link.success { border-color:rgba(16,185,129,0.2);color:#10b981; }
  .ql-label { font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.07em;color:#475569;white-space:nowrap; }

  /* Pipeline metrics row */
  .pipeline-metrics { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px; }
  .pm-card { background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.05);border-radius:10px;padding:14px;text-align:center; }
  .pm-value { font-size:22px;font-weight:800; }
  .pm-label { font-size:10px;color:#64748b;margin-top:3px;text-transform:uppercase;letter-spacing:0.04em; }

  /* Product mix table enhancement */
  .mix-table { width:100%;border-collapse:collapse;font-size:12px; }
  .mix-table th { text-align:left;padding:10px 12px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:#64748b;border-bottom:1px solid rgba(255,255,255,0.06); }
  .mix-table td { padding:10px 12px;border-bottom:1px solid rgba(255,255,255,0.04); }
  .mix-table tr:last-child td { border-bottom:none; }

  /* Responsive sidebar toggle for mobile */
  @media (max-width: 1024px) {
    body { flex-direction: column; height: auto; min-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .sidebar { position: fixed; left: -260px; top: 0; z-index: 100; transition: left 0.25s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.4); }
    .sidebar.open { left: 0; }
    .main-area { width: 100%; height: auto; min-height: 100vh; overflow-y: visible; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .topbar { padding: 10px 14px; }
    .page-title { font-size: 14px; }
    .grid { grid-template-columns: 1fr !important; }
    .grid-2 { grid-template-columns: 1fr !important; }
    .grid-3 { grid-template-columns: 1fr !important; }
    .grid-5 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .card { padding: 14px; }
    .stat-value { font-size: 20px !important; }
    .section-title { font-size: 12px; }
    .pricing-table { display: block; overflow-x: auto; white-space: nowrap; font-size: 11px; }
    .pricing-table thead, .pricing-table tbody { display: table; width: 100%; min-width: 600px; }
    .init-summary { flex-direction: column; align-items: flex-start; gap: 10px; }
    .init-right { width: 100%; justify-content: flex-start; }
    .pipeline-metrics { grid-template-columns: repeat(2, 1fr) !important; }
    .pm-value { font-size: 18px; }
    .chart-row { flex-direction: column; }
    .chart-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .week-label { font-size: 13px; padding: 8px 12px; }
    .week-label span { display: block; margin-top: 4px; }
    .lang-switch { gap: 2px; }
    .lang-btn { padding: 3px 8px; font-size: 10px; }
    .topbar-date { font-size: 11px; }
    .refresh-btn-sm { padding: 4px 8px; font-size: 12px; }
    .exec-actions { flex-wrap: wrap; }
    .exec-btn { padding: 5px 12px; font-size: 10px; }
    .wt-row { font-size: 11px; }
    .sb-header { padding: 14px 12px 10px; }
    .sb-title { font-size: 13px; }
    .nav-item { padding: 8px 12px; font-size: 12px; }
    .page { padding: 14px; }
    .mix-table { font-size: 10px; }
    .mix-table th, .mix-table td { padding: 6px 8px; }
    .mobile-menu-btn { display: flex !important; }
    .sidebar-overlay { display: block !important; }
  }
  .mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 101;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(13,17,23,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
