  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
    padding: 20px;
    min-height: 100vh;
  }
  .container { max-width: 1400px; margin: 0 auto; }
  .header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .header h1 { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
  .header .subtitle { font-size: 14px; opacity: 0.8; margin-top: 4px; }
  .header .stats { display: flex; gap: 20px; font-size: 14px; }
  .header .stat-item { text-align: center; }
  .header .stat-value { font-size: 20px; font-weight: 700; }
  .header .stat-label { font-size: 12px; opacity: 0.7; }
  .toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .btn-primary { background: #1a1a2e; color: white; }
  .btn-primary:hover { background: #2a2a4e; }
  .btn-primary.active { background: #0f3460; box-shadow: 0 0 0 2px #4a90d9; }
  .btn-success { background: #28a745; color: white; }
  .btn-success:hover { background: #218838; }
  .btn-warning { background: #ffc107; color: #333; }
  .btn-warning:hover { background: #e0a800; }
  .btn-danger { background: #dc3545; color: white; }
  .btn-danger:hover { background: #c82333; }
  .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .toolbar-status { font-size: 13px; color: #888; margin-left: auto; }
  .toolbar-status.saving { color: #ffc107; }
  .toolbar-status.saved { color: #28a745; }
  .toolbar-status.error { color: #dc3545; }
  .week-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
  .week-tab {
    padding: 10px 24px; border: none; border-radius: 8px; cursor: pointer;
    font-size: 14px; font-weight: 600; background: #e0e0e0; color: #666; transition: all 0.2s;
  }
  .week-tab.active { background: #1a1a2e; color: white; }
  .week-tab:hover:not(.active) { background: #d0d0d0; }
  .schedule-week { display: none; }
  .schedule-week.active { display: block; }
  .schedule-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
  @media (max-width: 900px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 500px) { .schedule-grid { grid-template-columns: 1fr; } }
  .day-card { background: white; border-radius: 12px; overflow: visible; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: transform 0.15s; position: relative; }
  .day-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .day-card.weekend { border: 2px solid #ffd700; }
  .day-card.editing { border-color: #4a90d9; }
  .day-header { padding: 10px 12px; background: #f8f9fa; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
  .day-card.weekend .day-header { background: #fffbe6; }
  .day-date { font-weight: 700; font-size: 14px; }
  .day-weekday { font-size: 12px; color: #888; }
  .day-card.weekend .day-weekday { color: #d4a017; font-weight: 600; }
  .shift-row { padding: 8px 12px; border-bottom: 1px solid #f5f5f5; position: relative; }
  .shift-row:last-child { border-bottom: none; }
  .shift-label { font-size: 11px; font-weight: 600; color: #888; margin-bottom: 4px; }
  .shift-time { font-size: 10px; color: #aaa; margin-left: 4px; }
  .staff-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; }
  .staff-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.6; cursor: default; transition: all 0.15s; }
  .staff-chip .gender { font-size: 10px; opacity: 0.7; }
  .chip-director { background: #fff3cd; color: #856404; }
  .chip-senior  { background: #cce5ff; color: #004085; }
  .chip-strong  { background: #d4edda; color: #155724; }
  .chip-weak    { background: #f8d7da; color: #721c24; }
  .chip-trial   { background: #e2e3e5; color: #383d41; font-style: italic; border: 1px dashed #aaa; }
  .chip-mentor::after { content: '★'; font-size: 10px; margin-left: 2px; color: #ff8c00; }
  .chip-fulltime { border-left: 3px solid #0f3460; }
  .editing .staff-chip { cursor: pointer; }
  .editing .staff-chip:hover { filter: brightness(0.9); outline: 2px solid #4a90d9; }
  .empty-cell { padding: 8px 12px; color: #ccc; font-size: 12px; font-style: italic; }
  .staff-picker-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 1000; justify-content: center; align-items: center; }
  .staff-picker-overlay.show { display: flex; }
  .staff-picker { background: white; border-radius: 16px; padding: 24px; max-width: 420px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
  .staff-picker h3 { font-size: 16px; margin-bottom: 4px; }
  .staff-picker .picker-subtitle { font-size: 12px; color: #888; margin-bottom: 16px; }
  .staff-picker .picker-search { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; margin-bottom: 12px; outline: none; }
  .staff-picker .picker-search:focus { border-color: #4a90d9; }
  .picker-staff-list { display: flex; flex-direction: column; gap: 4px; }
  .picker-staff-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: all 0.1s; }
  .picker-staff-item:hover { background: #f0f4ff; border-color: #cce5ff; }
  .picker-staff-item.selected { background: #e8f4ff; border-color: #4a90d9; }
  .picker-staff-item .staff-chip { cursor: pointer; }
  .picker-staff-item .staff-info { font-size: 12px; color: #888; }
  .picker-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }
  .summary-section { background: white; border-radius: 16px; padding: 24px; margin-top: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
  .summary-section h2 { font-size: 18px; margin-bottom: 16px; color: #333; }
  .staff-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .staff-table th { text-align: left; padding: 10px 12px; background: #f8f9fa; border-bottom: 2px solid #dee2e6; font-weight: 600; color: #555; font-size: 12px; white-space: nowrap; }
  .staff-table td { padding: 8px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
  .staff-table tr:hover td { background: #f8f9fa; }
  .badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
  .badge-fulltime { background: #0f3460; color: white; }
  .badge-parttime { background: #6c757d; color: white; }
  .eligible-yes { color: #28a745; font-weight: 700; }
  .eligible-no { color: #dc3545; font-weight: 700; }
  .summary-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
  .rule-pass-rate { font-size: 16px; font-weight: 700; color: #28a745; }
  .loading { text-align: center; padding: 80px; color: #888; font-size: 16px; }
  .loading .spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: #1a1a2e; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 12px; color: #666; }
  .legend-item { display: flex; align-items: center; gap: 4px; }
  .staff-detail-toggle { background: none; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; font-size: 12px; padding: 2px 8px; color: #555; transition: all 0.15s; }
  .staff-detail-toggle:hover { background: #f0f0f0; border-color: #aaa; }
  .staff-detail-toggle.expanded { background: #1a1a2e; color: white; border-color: #1a1a2e; }
  .staff-detail-row { display: none; }
  .staff-detail-row.show { display: table-row; }
  .staff-detail-row td { padding: 0 !important; background: #fafbfc; }
  .staff-detail-inner { padding: 8px 16px 12px 40px; font-size: 12px; }
  .staff-detail-inner table { width: 100%; border-collapse: collapse; }
  .staff-detail-inner th { text-align: left; padding: 4px 8px; font-weight: 600; color: #888; font-size: 11px; border-bottom: 1px solid #eee; }
  .staff-detail-inner td { padding: 3px 8px; border-bottom: 1px solid #f0f0f0; color: #555; }
  .staff-detail-inner tr:last-child td { border-bottom: none; }
  .staff-detail-inner .detail-hours { font-weight: 600; color: #1a1a2e; text-align: right; }
  .staff-detail-inner .detail-sum { border-top: 1px solid #ddd; font-weight: 700; color: #1a1a2e; }
  .staff-detail-inner .detail-sum td { padding-top: 6px; }
  .validation-detail { margin-top: 8px; }
  .validation-fail-item { font-size: 12px; color: #dc3545; padding: 3px 0; display: flex; align-items: center; gap: 4px; }
  .validation-fail-item::before { content: '❌'; font-size: 11px; }
  .validation-fail-item .vf-date { color: #888; font-size: 11px; margin-right: 4px; }
