/* ═══ STUDIOHAUS PORTAL — Component Styles ═══ */

    /* ─── Modal ─── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      animation: modalOverlayIn 0.25s ease;
    }
    @keyframes modalOverlayIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal {
      background: rgba(17, 17, 17, 0.85);
      border: 1px solid rgba(255,255,255,0.06);
      width: 100%;
      max-width: 500px;
      max-height: 80vh;
      overflow-y: auto;
      padding: 36px;
      border-radius: var(--radius-lg);
      box-shadow: 0 24px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
      animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }
    @keyframes modalSlideIn {
      from { opacity: 0; transform: scale(0.95) translateY(10px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    .modal h3 {
      font-size: 18px;
      font-weight: 500;
      margin-bottom: 24px;
    }

    /* ─── Forms ─── */
    .form-group {
      margin-bottom: 16px;
    }
    .form-label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-40);
      margin-bottom: 6px;
    }

    .page-header {
      margin-bottom: 48px;
    }

    .page-label {
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--text-40);
      margin-bottom: 12px;
    }

    .page-title {
      font-size: 32px;
      font-weight: 300;
      letter-spacing: -0.5px;
    }

    .page-title strong { font-weight: 500; }

    /* ─── PROJECT CARDS ─── */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 12px;
    }

    .project-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 28px 26px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 18px;
      border-radius: var(--radius);
      transition: all 0.3s ease;
    }

    .project-card:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-hover);
      transform: translateY(-1px);
    }

    .project-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .project-card h3 {
      font-size: 18px;
      font-weight: 500;
      letter-spacing: -0.2px;
    }

    .project-status {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 4px 12px;
      border: 1px solid;
      white-space: nowrap;
      border-radius: 100px;
      display: inline-block;
    }

    .status-active { color: var(--success); border-color: rgba(74,222,128,0.2); background: rgba(74,222,128,0.06); }
    .status-review { color: var(--warning); border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.06); }
    .status-complete { color: var(--text-45); border-color: var(--border); }
    .status-upcoming { color: var(--text-40); border-color: var(--border); }

    .project-card-desc {
      font-size: 14px;
      color: var(--text-45);
      font-weight: 300;
      line-height: 1.5;
    }

    .project-card-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .project-card-meta span {
      font-size: 12px;
      color: var(--text-40);
      letter-spacing: 0.5px;
    }

    .progress-bar {
      width: 120px;
      height: 3px;
      background: var(--text-10);
      overflow: hidden;
      border-radius: 4px;
    }

    .progress-fill {
      height: 100%;
      background: var(--text);
      transition: width 0.6s ease;
      border-radius: 4px;
    }

    /* ─── PROJECT DETAIL ─── */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-40);
      text-decoration: none;
      cursor: pointer;
      margin-bottom: 32px;
      transition: color 0.2s;
      background: none;
      border: none;
      font-family: var(--font);
    }

    .back-link:hover { color: var(--text-60); }

    .project-detail-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 56px;
    }

    .project-detail-title {
      font-size: 36px;
      font-weight: 300;
      letter-spacing: -0.5px;
      margin-bottom: 8px;
    }

    .project-detail-title strong { font-weight: 500; }

    .project-detail-desc {
      font-size: 15px;
      color: var(--text-45);
      font-weight: 300;
      max-width: 600px;
    }

    /* ─── MILESTONES ─── */
    .section-heading {
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--text-40);
      margin-bottom: 24px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }

    .milestones {
      margin-bottom: 56px;
    }

    .milestone {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      padding: 20px 0;
      border-bottom: 1px solid var(--border);
    }

    .milestone:last-child { border-bottom: none; }

    .milestone-indicator {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-top: 5px;
      flex-shrink: 0;
    }

    .milestone-indicator.complete { background: var(--success); }
    .milestone-indicator.active { background: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
    .milestone-indicator.pending { background: var(--text-20); }

    .milestone-content { flex: 1; }

    .milestone-name {
      font-size: 15px;
      font-weight: 400;
      margin-bottom: 4px;
    }

    .milestone-date {
      font-size: 12px;
      color: var(--text-40);
    }

    .milestone-status-text {
      font-size: 11px;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-top: 4px;
    }

    /* ─── FILES ─── */
    .files-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 10px;
    }

    .file-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 20px 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      text-decoration: none;
      color: var(--text);
      transition: all 0.2s;
      border-radius: var(--radius);
    }

    .file-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }

    .file-icon {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      font-size: 11px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--text-45);
      flex-shrink: 0;
      border-radius: var(--radius-sm);
      background: var(--bg-glass);
    }

    .file-info { flex: 1; min-width: 0; }

    .file-name {
      font-size: 14px;
      font-weight: 400;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .file-meta {
      font-size: 12px;
      color: var(--text-40);
      margin-top: 2px;
    }

    .file-arrow {
      color: var(--text-20);
      font-size: 16px;
      transition: color 0.2s;
    }

    .file-card:hover .file-arrow { color: var(--text-45); }

    /* ─── REFERENCE FILES (property outlines) ─── */
    .ref-files-section { margin-top: 2rem; }
    .ref-files-list { margin-bottom: 12px; }
    .ref-file-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 14px; background: var(--bg-input);
      border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px;
    }
    .ref-file-ext {
      font-size: 10px; text-transform: uppercase; font-weight: 600;
      color: var(--accent); background: rgba(255,255,255,0.04);
      padding: 4px 8px; border-radius: 4px; min-width: 36px; text-align: center;
    }
    .ref-file-name { flex: 1; font-size: 13px; color: var(--text-60); }
    .ref-file-name a { color: var(--text-60); text-decoration: none; }
    .ref-file-name a:hover { color: var(--text-80); }
    .ref-file-size { font-size: 11px; color: var(--text-30); }
    .ref-file-del {
      cursor: pointer; color: var(--text-30); font-size: 16px;
      padding: 2px 6px; border-radius: 4px; transition: color 0.2s;
    }
    .ref-file-del:hover { color: #e55; }
    .ref-drop-zone {
      border: 2px dashed var(--border); border-radius: 8px;
      padding: 1.5rem; text-align: center; cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      color: var(--text-30); font-size: 13px;
    }
    .ref-drop-zone:hover, .ref-drop-zone.dragover {
      border-color: var(--accent); background: rgba(255,255,255,0.02);
      color: var(--text-45);
    }
    .ref-drop-zone svg { margin-bottom: 6px; opacity: 0.4; }
    .ref-upload-progress {
      margin-top: 8px; font-size: 12px; color: var(--accent);
    }

    /* ─── ADMIN ─── */
    /* ─── APP SHELL (admin permanent sidebar layout) ─── */
    .app-shell {
      min-height: 100vh;
      position: relative;
      z-index: 1;
    }
    .app-content {
      margin-left: 240px;
      padding: 28px 36px;
      overflow-x: auto;
      overflow-y: auto;
      min-height: 100vh;
      background: radial-gradient(ellipse 120% 50% at 50% 100%, rgba(16,185,129,0.22) 0%, rgba(16,185,129,0.10) 25%, rgba(16,185,129,0.03) 50%, transparent 75%);
      background-size: 100% 200%;
      background-position: 50% 100%;
      transition: background-position 0.1s linear;
      animation: pageTransition 0.3s ease-out;
    }
    [data-theme="light"] .app-content {
      background: radial-gradient(ellipse 120% 50% at 50% 100%, rgba(16,163,74,0.12) 0%, rgba(16,163,74,0.05) 25%, rgba(16,163,74,0.01) 50%, transparent 75%);
    }
    @media (max-width: 768px) {
      .app-content { margin-left: 0; padding: 60px 16px 20px; }
    }
    .admin-sidebar {
      background: rgba(17, 17, 17, 0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-right: 1px solid var(--border);
      padding: 0;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 240px;
      z-index: 100;
    }
    .admin-sidebar-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 20px 20px 16px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 10px;
    }
    .admin-sidebar-brand-icon {
      width: 32px; height: 32px;
      border-radius: var(--radius-sm);
      background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 14px;
      color: #0a0a0a;
      flex-shrink: 0;
    }
    .admin-sidebar-brand-text {
      font-weight: 600;
      font-size: 1.2rem;
      color: var(--text);
      letter-spacing: -0.01em;
    }
    .admin-sidebar-label {
      font-size: 0.6rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-40);
      padding: 6px 20px 8px;
    }
    .admin-sidebar-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 16px;
      margin: 1px 8px;
      font-size: 0.85rem;
      color: var(--text-60);
      cursor: pointer;
      border: none;
      background: none;
      font-family: var(--font);
      width: calc(100% - 16px);
      text-align: left;
      transition: color 0.25s ease, background 0.3s ease, transform 0.15s ease;
      border-radius: var(--radius-sm);
      position: relative;
      overflow: hidden;
    }
    /* shimmer layer for hover */
    .admin-sidebar-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
      transform: translateX(-100%);
      transition: transform 0.4s ease;
      pointer-events: none;
    }
    .admin-sidebar-item:hover::after {
      transform: translateX(100%);
    }
    .admin-sidebar-item:hover {
      color: var(--text);
      background: rgba(255,255,255,0.03);
    }
    .admin-sidebar-item:active {
      transform: scale(0.97);
    }
    .admin-sidebar-item.active {
      color: #fff;
      background: linear-gradient(to right, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.06) 40%, transparent 100%);
    }
    .admin-sidebar-item.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 6px;
      bottom: 6px;
      width: 3px;
      border-radius: 0 3px 3px 0;
      background: #10b981;
      box-shadow: 0 0 8px 0 rgba(16, 185, 129, 0.4);
      animation: accentSlideIn 0.3s ease-out;
    }
    .admin-sidebar-item.active::after {
      transform: translateX(0);
      background: none;
    }
    @keyframes accentSlideIn {
      from { transform: scaleY(0); opacity: 0; }
      to { transform: scaleY(1); opacity: 1; }
    }
    .admin-sidebar-icon {
      width: 18px;
      height: 18px;
      opacity: 0.45;
      flex-shrink: 0;
      transition: opacity 0.25s ease, transform 0.2s ease, filter 0.25s ease;
    }
    .admin-sidebar-item:hover .admin-sidebar-icon { opacity: 0.7; }
    .admin-sidebar-item.active .admin-sidebar-icon { opacity: 1; filter: brightness(1.3) drop-shadow(0 0 3px rgba(16, 185, 129, 0.3)); }
    .admin-sidebar-divider {
      height: 1px;
      background: var(--border);
      margin: 14px 20px;
    }
    .admin-sidebar-footer {
      margin-top: auto;
      padding: 16px 20px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.65rem;
      color: var(--text-40);
      letter-spacing: 0.05em;
    }
    .sidebar-theme-toggle {
      transform: scale(0.8);
      transform-origin: right center;
    }

    /* ─── Light mode for admin sidebar ─── */
    [data-theme="light"] .admin-sidebar {
      background: rgba(240, 239, 237, 0.95);
      border-right-color: rgba(0,0,0,0.08);
    }
    [data-theme="light"] .admin-sidebar-item {
      color: rgba(0,0,0,0.6);
    }
    [data-theme="light"] .admin-sidebar-item:hover {
      background: rgba(0,0,0,0.05);
      color: rgba(0,0,0,0.8);
    }
    [data-theme="light"] .admin-sidebar-item.active {
      background: rgba(0,0,0,0.08);
      color: #1a1a1a;
    }
    [data-theme="light"] .admin-sidebar-label {
      color: rgba(0,0,0,0.4);
    }
    [data-theme="light"] .admin-sidebar-brand-text {
      color: #1a1a1a;
    }
    [data-theme="light"] .admin-sidebar-footer {
      border-top-color: rgba(0,0,0,0.08);
      color: rgba(0,0,0,0.4);
    }
    [data-theme="light"] .sop-card-title { color: #fff; }
    [data-theme="light"] .sop-modal-title { color: #fff; }
    [data-theme="light"] .mon-person {
      background: rgba(0,0,0,0.08);
      color: #1a1a1a;
    }
    [data-theme="light"] .mon-person-empty {
      border-color: rgba(0,0,0,0.15);
    }
    [data-theme="light"] .mon-person-empty:hover {
      border-color: rgba(0,0,0,0.3);
      color: rgba(0,0,0,0.5);
    }
    [data-theme="light"] .modal {
      background: rgba(245, 245, 243, 0.88);
      border: 1px solid rgba(0,0,0,0.08);
      box-shadow: 0 24px 80px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
    }
    [data-theme="light"] .admin-table th {
      color: rgba(0,0,0,0.5);
      border-bottom-color: rgba(0,0,0,0.08);
    }
    [data-theme="light"] .admin-table td {
      border-bottom-color: rgba(0,0,0,0.05);
    }
    [data-theme="light"] .sop-card {
      border-color: rgba(0,0,0,0.1);
    }
    [data-theme="light"] .sop-card:hover {
      border-color: rgba(0,0,0,0.2);
    }

    .admin-content {
      padding: 28px 36px;
      overflow-x: auto;
      animation: contentFadeIn 0.3s ease;
    }
    @keyframes contentFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (max-width: 768px) {
      .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0;
      }
      .admin-sidebar-brand, .admin-sidebar-label, .admin-sidebar-divider, .admin-sidebar-footer { display: none; }
      .admin-sidebar-item {
        white-space: nowrap;
        padding: 12px 16px;
        margin: 0;
        width: auto;
        border-radius: 0;
        border-bottom: 2px solid transparent;
      }
      .admin-sidebar-item.active::before { display: none; }
      .admin-sidebar-item.active { border-bottom: 2px solid #10b981; background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.1)); box-shadow: none; }
      .app-shell { grid-template-columns: 1fr; }
      .app-content { padding: 60px 16px 20px; }
    }

    /* Legacy tab styles kept for compat */
    .admin-tabs { display: none; }
    .admin-tab { display: none; }

    /* ─── TRAINING PORTAL STYLES ─── */
    .training-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 20px;
    }
    .training-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      transition: border-color 0.2s;
    }
    .training-card:hover { border-color: var(--border-hover); }
    .training-video-wrap {
      position: relative;
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
      border-radius: var(--radius-sm);
      margin-bottom: 12px;
      background: rgba(0,0,0,0.3);
    }
    .training-card-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }
    .training-card-desc {
      font-size: 0.8rem;
      color: var(--text-60);
      line-height: 1.5;
    }
    .training-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .training-doc-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      text-decoration: none;
      color: var(--text);
      transition: border-color 0.2s, background 0.2s;
    }
    .training-doc-row:hover {
      border-color: var(--border-hover);
      background: var(--bg-card-hover);
    }
    .training-sop-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }
    .sop-card {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      cursor: grab;
      aspect-ratio: 1/1;
      background: var(--bg-card);
      border: 1px solid var(--border);
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .sop-card:hover {
      transform: translateY(-4px);
      border-color: var(--border-hover);
      box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    }
    .sop-card.dragging {
      opacity: 0.4;
      transform: scale(0.95);
    }
    .sop-card.drag-over {
      border-color: #10b981;
      box-shadow: 0 0 0 2px rgba(16,185,129,0.4);
    }
    .sop-card-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.85;
      transition: opacity 0.3s;
    }
    .sop-card:hover .sop-card-image { opacity: 1; }
    .sop-card-placeholder {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .sop-card-placeholder svg {
      width: 48px;
      height: 48px;
      color: var(--text-20);
    }
    .sop-card-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 24px 20px 20px;
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
      z-index: 1;
    }
    .sop-card-title {
      font-size: 1rem;
      font-weight: 600;
      color: #fff;
      line-height: 1.3;
      margin-bottom: 4px;
    }
    .sop-card-desc {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.6);
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .sop-card-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #10b981;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 2;
      transition: transform 0.2s;
    }
    .sop-card:hover .sop-card-btn { transform: scale(1.1); }
    .sop-card-btn svg {
      width: 16px;
      height: 16px;
      color: #000;
    }

    /* SOP Modal */
    .sop-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(8px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
    }
    .sop-modal {
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      max-width: 720px;
      width: 100%;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
    }
    .sop-modal-header {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .sop-modal-header-img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }
    .sop-modal-header-placeholder {
      width: 100%;
      height: 200px;
      background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    }
    .sop-modal-header-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 20px 24px;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    }
    .sop-modal-title {
      font-size: 1.3rem;
      font-weight: 600;
      color: #fff;
    }
    .sop-modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(0,0,0,0.5);
      border: none;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      transition: background 0.2s;
    }
    .sop-modal-close:hover { background: rgba(0,0,0,0.7); }
    .sop-modal-body {
      padding: 24px;
    }
    .sop-modal-desc {
      color: var(--text-60);
      font-size: 0.9rem;
      margin-bottom: 16px;
      line-height: 1.6;
    }
    .sop-modal-content {
      font-size: 0.85rem;
      line-height: 1.7;
      color: var(--text-80);
    }
    .sop-modal-content h3 { font-size: 1rem; margin: 28px 0 12px; color: var(--text); padding-top: 20px; border-top: 1px solid var(--border); }
    .sop-modal-content h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
    .sop-modal-content h4 { font-size: 0.9rem; margin: 20px 0 8px; color: var(--text); }
    .sop-modal-content ul, .sop-modal-content ol { padding-left: 20px; margin: 12px 0; }
    .sop-modal-content li { margin-bottom: 6px; line-height: 1.7; }
    .sop-modal-content p { margin: 12px 0; }
    .sop-modal-content div { margin: 12px 0; }
    .sop-modal-content strong { color: var(--text); }

    .admin-form {
      max-width: 500px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-group label {
      display: block;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--text-40);
      margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%;
      background: var(--bg-input);
      border: 1px solid var(--border);
      color: var(--text);
      font-family: var(--font);
      font-size: 14px;
      font-weight: 300;
      padding: 12px 16px;
      outline: none;
      transition: all 0.2s;
      border-radius: var(--radius-sm);
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
      border-color: var(--border-hover);
      background: var(--bg-card-hover);
    }

    .form-group textarea { resize: vertical; min-height: 80px; }

    .form-group select {
      appearance: none;
      cursor: pointer;
    }

    .form-actions {
      display: flex;
      gap: 12px;
      margin-top: 8px;
    }

    .btn-primary {
      background: var(--text);
      color: var(--bg);
      border: none;
      padding: 10px 24px;
      font-size: 12px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      font-family: var(--font);
      cursor: pointer;
      transition: all 0.25s ease;
      border-radius: 100px;
      font-weight: 500;
    }

    .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    .btn-primary:active { transform: translateY(0) scale(0.98); opacity: 0.95; transition-duration: 0.1s; }

    .btn-secondary {
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-45);
      padding: 10px 24px;
      font-size: 12px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      font-family: var(--font);
      cursor: pointer;
      transition: all 0.2s;
      border-radius: 100px;
    }

    .btn-secondary:hover { border-color: var(--border-hover); color: var(--text-60); background: var(--bg-card-hover); transform: translateY(-1px); }
    .btn-secondary:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }

    .btn-danger {
      background: rgba(255,80,80,0.06);
      border: 1px solid rgba(255,80,80,0.2);
      color: var(--error);
      padding: 10px 24px;
      font-size: 12px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      font-family: var(--font);
      cursor: pointer;
      transition: all 0.2s;
      border-radius: var(--radius-sm);
    }

    .btn-danger:hover { border-color: rgba(255,80,80,0.4); background: rgba(255,80,80,0.1); }
    .btn-danger-text { color: rgba(255,80,80,0.7) !important; }
    .btn-danger-text:hover { color: rgba(255,80,80,1) !important; background: rgba(255,80,80,0.08) !important; }

    .admin-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
    }

    .admin-table th {
      text-align: left;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--text-40);
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      font-weight: 400;
    }

    .admin-table td {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      font-size: 13px;
      font-weight: 300;
      vertical-align: middle;
    }
    .admin-table tbody tr:last-child td {
      border-bottom: none;
    }

    .admin-table tbody tr {
      animation: tableRowIn 0.35s ease both;
    }
    .admin-table tbody tr:nth-child(1) { animation-delay: 0s; }
    .admin-table tbody tr:nth-child(2) { animation-delay: 0.03s; }
    .admin-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
    .admin-table tbody tr:nth-child(4) { animation-delay: 0.09s; }
    .admin-table tbody tr:nth-child(5) { animation-delay: 0.12s; }
    .admin-table tbody tr:nth-child(6) { animation-delay: 0.15s; }
    .admin-table tbody tr:nth-child(7) { animation-delay: 0.18s; }
    .admin-table tbody tr:nth-child(8) { animation-delay: 0.21s; }
    .admin-table tbody tr:nth-child(9) { animation-delay: 0.24s; }
    .admin-table tbody tr:nth-child(10) { animation-delay: 0.27s; }
    @keyframes tableRowIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .admin-table tr:hover td { background: var(--bg-card); transition: background 0.2s ease; }

    .admin-table .actions {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .admin-table .action-btn {
      background: none;
      border: 1px solid transparent;
      color: var(--text-40);
      cursor: pointer;
      padding: 4px 12px;
      font-size: 10px;
      font-family: var(--font);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      transition: all 0.2s ease;
      border-radius: 100px;
      font-weight: 500;
      white-space: nowrap;
    }

    .admin-table .action-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); border-color: var(--border-hover); }
    .admin-table .action-btn:active { transform: scale(0.97); }
    .admin-table .action-btn.delete { color: rgba(255,80,80,0.5); }
    .admin-table .action-btn.delete:hover { color: var(--error); border-color: rgba(255,80,80,0.3); background: rgba(255,80,80,0.06); }

    .project-cell-name { font-weight: 400; }
    .progress-bar-sm { width: 60px; height: 4px; background: var(--border); display: inline-block; vertical-align: middle; margin-right: 8px; border-radius: 4px; overflow: hidden; }
    .progress-fill-sm { height: 100%; background: linear-gradient(90deg, var(--accent), #34d399); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 4px; position: relative; }
    .progress-fill-sm::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shimmerBar 2s infinite; }
    @keyframes shimmerBar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
    .progress-label { font-size: 12px; color: var(--text-40); }
    .date-cell { white-space: nowrap; font-size: 13px; color: var(--text-40); }
    .status-completed { color: #4ade80; border-color: rgba(74,222,128,0.2); background: rgba(74,222,128,0.06); }
    .status-paused { color: #facc15; border-color: rgba(250,204,21,0.2); background: rgba(250,204,21,0.06); }
    .status-archived { color: var(--text-40); }

    .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

    /* ─── MONDAY-STYLE OVERVIEW ─── */
    .mon-summary {
      display: flex;
      gap: 24px;
      margin-bottom: 24px;
      padding: 14px 20px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
    }
    .mon-summary-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .mon-summary-count {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
    }
    .mon-summary-label {
      font-size: 0.78rem;
      color: var(--text-60);
    }
    .mon-summary-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .mon-dot-todo { background: #c4c4c4; }
    .mon-dot-working { background: #fdab3d; }
    .mon-dot-done { background: #00c875; }

    .mon-group {
      margin-bottom: 20px;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--bg-elevated);
    }
    .mon-group-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      background: rgba(255,255,255,0.02);
      border-bottom: 1px solid var(--border);
    }
    .mon-group-color {
      width: 4px;
      height: 20px;
      border-radius: 2px;
      background: #00c875;
      flex-shrink: 0;
    }
    .mon-group-name {
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--text);
    }
    .mon-group-count {
      font-size: 0.7rem;
      color: var(--text-40);
      background: rgba(255,255,255,0.05);
      padding: 2px 8px;
      border-radius: 10px;
    }
    .mon-group-progress {
      flex: 1;
      max-width: 100px;
      height: 3px;
      background: rgba(255,255,255,0.06);
      border-radius: 2px;
      overflow: hidden;
      margin-left: auto;
    }
    .mon-group-progress-bar {
      height: 100%;
      background: #00c875;
      border-radius: 2px;
      transition: width 0.3s;
    }
    .mon-group-pct {
      font-size: 0.7rem;
      color: var(--text-40);
      min-width: 28px;
      text-align: right;
    }

    .mon-table { width: 100%; }
    .mon-row {
      display: grid;
      grid-template-columns: 1fr 80px 130px 100px 90px;
      align-items: center;
      border-bottom: 1px solid rgba(255,255,255,0.04);
      transition: background 0.1s;
    }
    .mon-row.mon-row-projects {
      grid-template-columns: 200px 70px 110px 90px 120px 1fr;
    }
    .mon-row:last-child { border-bottom: none; }
    .mon-row:not(.mon-row-header):hover { background: rgba(255,255,255,0.02); }
    .mon-row-header {
      background: rgba(255,255,255,0.02);
    }
    .mon-row-header .mon-cell {
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-40);
      padding: 10px 14px;
    }
    .mon-cell {
      padding: 12px 14px;
      font-size: 0.84rem;
      color: var(--text);
      display: flex;
      align-items: center;
    }
    .mon-cell-task, .mon-cell-project {
      font-weight: 500;
    }
    .mon-cell-person, .mon-cell-editor {
      justify-content: center;
    }

    .mon-project-name {
      cursor: pointer;
      transition: color 0.15s;
    }
    .mon-project-name:hover {
      color: #00c875;
    }
    .mon-client-label {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 100px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      color: #fff;
      white-space: nowrap;
      max-width: 110px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mon-cell-progress-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* Status pills */
    .mon-status {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 100px;
      font-size: 10px;
      font-weight: 600;
      text-align: center;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      border: 1px solid;
    }
    .mon-status-todo { color: #a0a0a0; border-color: #a0a0a050; background: #a0a0a010; }
    .mon-status-working { color: #fdab3d; border-color: #fdab3d50; background: #fdab3d10; }
    .mon-status-done { color: #00c875; border-color: #00c87550; background: #00c87510; }
    .mon-status-hold { color: #c4c4c4; border-color: #c4c4c450; background: #c4c4c410; }
    .mon-status-archived { color: #6b7280; border-color: #6b728050; background: #6b728010; }

    /* Priority pills */
    .mon-priority {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 100px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      text-align: center;
      border: 1px solid;
    }
    .mon-pri-urgent { color: #e2445c; border-color: #e2445c50; background: #e2445c10; }
    .mon-pri-high { color: #fdab3d; border-color: #fdab3d50; background: #fdab3d10; }
    .mon-pri-medium { color: #579bfc; border-color: #579bfc50; background: #579bfc10; }
    .mon-pri-low { color: #a0a0a0; border-color: #a0a0a050; background: #a0a0a010; }

    /* Person bubble */
    .mon-person {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px; height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #579bfc, #a25ddc);
      color: #fff;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      position: relative;
    }
    .mon-person-empty {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px; height: 32px;
      border-radius: 50%;
      border: 2px dashed rgba(255,255,255,0.12);
      cursor: pointer;
      transition: border-color 0.15s;
      color: transparent;
    }
    .mon-person-empty:hover {
      border-color: rgba(255,255,255,0.3);
    }
    .mon-person-empty::after {
      content: '+';
      color: rgba(255,255,255,0.2);
      font-size: 14px;
      font-weight: 300;
    }
    .mon-person-empty:hover::after { color: rgba(255,255,255,0.5); }

    /* Date badges */
    .mon-date {
      font-size: 0.78rem;
      color: var(--text-60);
    }
    .mon-date-overdue {
      color: #e2445c;
      font-weight: 600;
    }
    .mon-date-soon {
      color: #fdab3d;
      font-weight: 600;
    }
    .mon-date-empty {
      color: var(--text-60);
      font-size: 0.8rem;
    }

    @media (max-width: 768px) {
      .mon-row { grid-template-columns: 1fr 60px 100px 80px 70px; }
      .mon-status, .mon-priority { min-width: auto; padding: 3px 8px; font-size: 0.65rem; }
      .mon-summary { flex-wrap: wrap; gap: 12px; }
    }

    /* ═══ MISSING COMPONENT STYLES — From Monolith ═══ */

    /* Activity Feed Styles */
    .activity-content {
      flex: 1;
      padding-top: 2px;
    }

    .activity-detail {
      font-size: 0.8125rem;
      color: var(--text-60);
      font-weight: 300;
    }

    .activity-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--bg-card);
      position: relative;
      top: 6px;
      flex-shrink: 0;
    }

    .activity-feed {
      position: relative;
    }

    .activity-item {
      display: flex;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
      position: relative;
      padding-left: 1px;
    }

    .activity-text {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text);
      line-height: 1.5;
      margin-bottom: 0.25rem;
    }

    .activity-time {
      font-size: 0.75rem;
      color: var(--text-45);
      margin-bottom: 0.5rem;
    }

    /* Animation Utilities */
    .anim-fade-in {
      animation: fadeIn 0.3s ease-out forwards;
    }

    .anim-stagger > * {
      opacity: 0;
      animation: fadeSlideUp 0.4s ease-out forwards;
    }

    /* Brand Assets */
    .asset-actions {
      display: flex;
      gap: 0.5rem;
    }

    .asset-card {
      border: 1px solid var(--border);
      background: var(--bg-card);
      padding: 1rem;
      transition: all 0.2s;
    }

    .asset-download-btn {
      flex: 1;
      padding: 0.5rem;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-60);
      font-size: 0.7rem;
      font-weight: 300;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .asset-hex {
      font-size: 0.75rem;
      color: var(--text-60);
      font-family: 'Courier New', monospace;
      word-break: break-all;
    }

    .asset-name {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .asset-preview {
      width: 100%;
      height: 160px;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      font-size: 0.75rem;
      color: var(--text-45);
    }

    .asset-swatch {
      width: 100%;
      height: 100px;
      margin-bottom: 0.75rem;
      border: 1px solid var(--border);
      cursor: pointer;
      position: relative;
      transition: all 0.2s;
    }

    .asset-type {
      font-size: 0.7rem;
      color: var(--text-45);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.75rem;
    }

    .brand-assets-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .brand-vault-filters {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    /* Briefings */
    .briefing-card {
      padding: 1rem;
      border: 1px solid var(--border);
      background: var(--bg-card);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .briefing-date {
      font-size: 0.75rem;
      color: var(--text-45);
    }

    .briefing-form-wrapper {
      border: 1px solid var(--border);
      background: var(--bg-card);
      padding: 2rem;
    }

    .briefing-info {
      flex: 1;
    }

    .briefing-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .briefing-name {
      font-size: 0.875rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 0.25rem;
    }

    .briefing-status {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    /* Comments */
    .comment {
      display: flex;
      gap: 1rem;
    }

    .comment-author {
      font-size: 0.875rem;
      font-weight: 400;
      color: var(--text);
    }

    .comment-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 500;
      text-transform: uppercase;
      color: var(--text-60);
      flex-shrink: 0;
      background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
    }

    .comment-body {
      font-size: 0.875rem;
      font-weight: 300;
      line-height: 1.5;
      color: var(--text);
    }

    .comment-content {
      flex: 1;
    }

    .comment-header {
      display: flex;
      align-items: baseline;
      gap: 0.75rem;
      margin-bottom: 0.5rem;
    }

    .comment-submit {
      align-self: flex-end;
      padding: 0.75rem 1.5rem;
      background: var(--text);
      color: var(--bg);
      border: none;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
      border-radius: var(--radius-sm);
    }

    .comment-textarea {
      width: 100%;
      min-height: 100px;
      padding: 1rem;
      border: 1px solid var(--border);
      background: var(--bg-input);
      color: var(--text);
      font-family: var(--font);
      font-size: 0.875rem;
      font-weight: 300;
      line-height: 1.5;
      resize: vertical;
      border-radius: var(--radius);
    }

    .comment-timestamp {
      font-size: 0.75rem;
      color: var(--text-45);
    }

    .comments-header {
      font-size: 0.875rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-60);
      margin-bottom: 1.5rem;
    }

    .comments-input-group {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-top: 2rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
    }

    .comments-list {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .comments-section {
      margin: 2rem 0;
    }

    /* Contracts */
    .contract-actions {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .contract-card {
      padding: 1.25rem;
      border: 1px solid var(--border);
      background: var(--bg-card);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      transition: all 0.2s;
    }

    .contract-details {
      display: flex;
      gap: 1.5rem;
      font-size: 0.75rem;
      color: var(--text-45);
    }

    .contract-download-btn {
      padding: 0.5rem 1rem;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-60);
      font-size: 0.7rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .contract-expiry {
      font-size: 0.8125rem;
      text-align: right;
    }

    .contract-expiry-date {
      color: var(--text);
    }

    .contract-expiry-label {
      font-size: 0.7rem;
      color: var(--text-45);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      display: block;
      margin-bottom: 0.25rem;
    }

    .contract-icon {
      width: 40px;
      height: 40px;
      border: 1px solid var(--border);
      background: var(--bg-elevated);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      color: var(--text-60);
      flex-shrink: 0;
    }

    .contract-info {
      flex: 1;
    }

    .contract-name {
      font-size: 0.875rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .contract-type {
      display: inline-block;
      padding: 0.375rem 0.75rem;
      border: 1px solid var(--border);
      background: var(--bg-elevated);
      font-size: 0.7rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-60);
    }

    .contracts-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    /* Drag & Drop */
    .drop-target {
      height: 4px;
      background: var(--text);
      margin: 0.5rem 0;
      opacity: 0;
      transition: opacity 0.2s;
    }

    /* Empty States */
    .empty-state {
      text-align: center;
      padding: 80px 40px;
      color: var(--text-40);
    }

    /* File Preview */
    .file-preview {
      position: relative;
      border: 1px solid var(--border);
      background: var(--bg-card);
      padding: 0.75rem;
      text-align: center;
    }

    .file-preview-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .file-preview-image {
      width: 100%;
      height: 80px;
      object-fit: cover;
      margin-bottom: 0.5rem;
      background: var(--bg-elevated);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .file-preview-name {
      font-size: 0.7rem;
      color: var(--text-60);
      word-break: break-word;
      white-space: normal;
    }

    .file-remove-btn {
      position: absolute;
      top: 0.25rem;
      right: 0.25rem;
      width: 20px;
      height: 20px;
      padding: 0;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--error);
      font-size: 0.7rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.2s;
    }

    /* Filters */
    .filter-button {
      padding: 0.5rem 1rem;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-60);
      font-size: 0.75rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    /* Forms */
    .form-cancel-btn {
      padding: 0.75rem 1.5rem;
      border: 1px solid var(--text);
      background: transparent;
      color: var(--text);
      font-size: 0.75rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    .form-input,
    .form-textarea,
    .form-select {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: var(--text);
      font-family: var(--font);
      font-size: 0.875rem;
      font-weight: 300;
      border-radius: var(--radius-sm);
      transition: all 0.25s ease;
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }

    .form-select {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: var(--text);
      font-family: var(--font);
      font-size: 0.875rem;
      font-weight: 300;
      border-radius: var(--radius-sm);
      transition: all 0.25s ease;
    }

    .form-status-badge {
      display: inline-block;
      padding: 4px 12px;
      border: 1px solid;
      border-radius: 100px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }

    .form-submit-btn,
    .form-cancel-btn {
      padding: 0.75rem 1.5rem;
      border: 1px solid var(--text);
      background: transparent;
      color: var(--text);
      font-size: 0.75rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    .form-textarea,
    .form-select {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: var(--text);
      font-family: var(--font);
      font-size: 0.875rem;
      font-weight: 300;
      border-radius: var(--radius-sm);
      transition: all 0.25s ease;
    }

    /* Invoices */
    .invoice-amount {
      font-size: 1.125rem;
      font-weight: 300;
      color: var(--text);
    }

    .invoice-card {
      padding: 1.25rem;
      border: 1px solid var(--border);
      background: var(--bg-card);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      transition: all 0.2s;
    }

    .invoice-col {
      flex: 1;
    }

    .invoice-date {
      font-size: 0.8125rem;
      color: var(--text-60);
    }

    .invoice-label {
      font-size: 0.7rem;
      color: var(--text-45);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.25rem;
    }

    .invoice-number {
      font-size: 0.875rem;
      font-weight: 400;
      color: var(--text);
    }

    .invoice-pay-btn {
      padding: 0.5rem 1rem;
      border: 1px solid var(--text);
      background: transparent;
      color: var(--text);
      font-size: 0.7rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    .invoice-status {
      display: inline-block;
      padding: 0.375rem 0.75rem;
      border: 1px solid var(--border);
      font-size: 0.7rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .invoice-table {
      width: 100%;
      border-collapse: collapse;
    }

    .invoices-layout {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    /* Loading States */
    .loading {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 200px;
      color: var(--text-40);
      font-size: 14px;
      font-weight: 300;
    }

    /* Milestones */
    .milestone-action-btn {
      width: 32px;
      height: 32px;
      border: 1px solid var(--border);
      border-radius: 100px;
      background: transparent;
      color: var(--text-60);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .milestone-actions {
      display: flex;
      gap: 0.5rem;
      flex-shrink: 0;
    }

    .milestone-grip {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      color: var(--text-20);
      cursor: grab;
      flex-shrink: 0;
    }

    .milestone-grip-dot {
      width: 3px;
      height: 3px;
      background: currentColor;
      border-radius: 50%;
    }

    .milestone-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      border: 1px solid var(--border);
      background: var(--bg-card);
      transition: all 0.2s;
      cursor: grab;
    }

    .milestone-marker {
      width: 16px;
      height: 16px;
      border: 1px solid var(--border);
      background: var(--bg-elevated);
      border-radius: 2px;
      flex-shrink: 0;
    }

    .milestone-status {
      font-size: 0.7rem;
      color: var(--text-60);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .milestone-title {
      font-size: 0.875rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 0.25rem;
    }

    .milestones-container {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    /* Notes */
    .note-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px;
      transition: border-color 0.15s;
    }

    .note-content {
      font-size: 0.9rem;
      color: var(--text);
      line-height: 1.5;
      white-space: pre-wrap;
      margin-bottom: 10px;
    }

    .note-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .note-meta {
      font-size: 0.75rem;
      color: var(--text-60);
    }

    .notes-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* Section Navigation */
    .section-nav {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 2rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .section-nav-item {
      padding: 1rem 1.5rem;
      font-size: 0.875rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-60);
      border: none;
      background: transparent;
      cursor: pointer;
      position: relative;
      white-space: nowrap;
      transition: color 0.2s;
    }

    /* Skeleton Loading */
    .skeleton {
      background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s ease-in-out infinite;
      border-radius: var(--radius-sm);
    }

    .skeleton-card {
      aspect-ratio: 1/1;
      border-radius: var(--radius);
    }

    .skeleton-row {
      height: 48px;
      margin-bottom: 4px;
    }

    .skeleton-text {
      height: 14px;
      width: 60%;
      margin-bottom: 8px;
    }

    .skeleton-text-short {
      height: 14px;
      width: 35%;
      margin-bottom: 8px;
    }

    /* Stats */
    .stat-card {
      padding: 1.5rem;
      border: 1px solid var(--border);
      background: var(--bg-card);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 140px;
      border-radius: var(--radius);
      transition: all 0.25s ease;
    }

    .stat-change {
      font-size: 0.75rem;
      margin-top: 0.75rem;
      font-weight: 300;
    }

    .stat-label {
      font-size: 0.75rem;
      font-weight: 300;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-60);
    }

    .stat-value {
      font-size: 2.5rem;
      font-weight: 300;
      color: var(--text);
      line-height: 1;
      margin-bottom: 0.5rem;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }

    /* Service Checkbox */
    .svc-checkbox {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-input, var(--bg));
      transition: all 0.2s ease;
      font-size: 0.9rem;
      color: var(--text);
      user-select: none;
    }

    /* Task Management */
    .task-actions {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
    }

    .task-assignee, .task-due {
      font-size: 0.75rem;
      color: var(--text-60);
    }

    .task-board {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .task-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px;
      transition: border-color 0.15s;
    }

    .task-card-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }

    .task-card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 6px;
    }

    .task-column {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      min-height: 200px;
      display: flex;
      flex-direction: column;
    }

    .task-column-body {
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
    }

    .task-column-count {
      background: var(--bg-input);
      color: var(--text-60);
      font-size: 0.75rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 10px;
    }

    .task-column-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
    }

    .task-column-title {
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-60);
    }

    .task-desc {
      font-size: 0.8rem;
      color: var(--text-60);
      margin: 0 0 8px 0;
      line-height: 1.4;
    }

    .task-due::before { content: '📅 '; }

    .task-empty {
      color: var(--text-60);
      font-size: 0.85rem;
      text-align: center;
      padding: 20px 0;
      margin: 0;
    }

    .task-meta {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .task-priority {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      padding: 4px 12px;
      border-radius: 100px;
      border: 1px solid;
      white-space: nowrap;
    }

    .task-title {
      font-weight: 500;
      font-size: 0.9rem;
      color: var(--text);
      line-height: 1.3;
    }

    /* Toast Notifications */
    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--bg-elevated);
      color: var(--text);
      padding: 14px 20px;
      border-radius: var(--radius);
      font-size: 0.85rem;
      z-index: 9999;
      border: 1px solid var(--border);
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
      transform: translateX(calc(100% + 48px));
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      max-width: 360px;
      overflow: hidden;
      visibility: hidden;
    }

    /* File Upload */
    .upload-browse-btn {
      padding: 0.75rem 1.5rem;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-60);
      font-size: 0.75rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    .upload-hint {
      font-size: 0.75rem;
      color: var(--text-45);
      margin-bottom: 1.5rem;
    }

    .upload-icon {
      font-size: 2rem;
      color: var(--text-60);
      margin-bottom: 1rem;
    }

    .upload-input {
      display: none;
    }

    .upload-progress-bar {
      width: 100%;
      height: 2px;
      background: var(--border);
      margin: 1.5rem 0;
      overflow: hidden;
    }

    .upload-progress-fill {
      height: 100%;
      background: var(--text);
      width: 0%;
      transition: width 0.3s;
    }

    .upload-text {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text);
      margin-bottom: 0.25rem;
    }

    .upload-zone {
      border: 1px dashed var(--border);
      padding: 3rem 1.5rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      background: var(--bg-elevated);
    }

    /* ─── Remaining modifier/state classes ─── */
    .svc-checkbox .check-box {
      width: 20px; height: 20px; min-width: 20px; border-radius: 5px;
      border: 2px solid var(--border); background: var(--bg); transition: all 0.2s;
      display: flex; align-items: center; justify-content: center;
    }
    .svc-checkbox .svc-info { display: flex; flex-direction: column; gap: 1px; }
    .svc-checkbox .svc-name { font-size: 0.9rem; color: var(--text); font-weight: 400; }
    .svc-checkbox .svc-price { font-size: 0.75rem; color: var(--text-40); }
    .milestone-marker.completed { background: var(--success); border-color: var(--success); }
    .milestone-marker.in-progress { background: rgba(100,150,255,0.5); border-color: rgba(100,150,255,0.9); }
    .activity-dot.success { border-color: var(--success); background: var(--success); }
    .activity-dot.warning { border-color: var(--warning); background: var(--warning); }
    .activity-dot.error { border-color: var(--error); background: var(--error); }
    .activity-dot.highlight { border-color: var(--text); background: var(--text); }
    .form-status-badge.submitted { background: rgba(100,150,255,0.1); color: rgba(100,150,255,0.9); border-color: rgba(100,150,255,0.3); }
    .form-status-badge.reviewed { background: rgba(74,222,128,0.1); color: var(--success); border-color: rgba(74,222,128,0.3); }
    .invoice-col.invoice-actions { flex: 0.6; text-align: right; }
    .form-textarea { resize: vertical; min-height: 100px; font-family: var(--font); }
    .toast.show { transform: translateX(0); visibility: visible; }
    .toast::after { content: ''; position: absolute; bottom: 0; left: 0; height: 3px; background: var(--success); animation: toastProgress 3s linear forwards; }
    @keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

