    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --orange: #F97316;
      --orange-dark: #EA6A0A;
      --orange-light: #FFF7ED;
      --navy: #1E293B;
      --navy-light: #334155;
      --bg: #F1F5F9;
      --card: #FFFFFF;
      --text: #0F172A;
      --muted: #64748B;
      --border: #E2E8F0;
      --green: #22C55E;
      --green-bg: #F0FDF4;
      --red: #EF4444;
      --red-bg: #FEF2F2;
      --yellow: #EAB308;
      --nav-h: 64px;
      --header-h: 56px;
    }

    html, body {
      height: 100%;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      touch-action: manipulation;
      overflow: hidden;
    }

    /* === SCREENS === */
    .screen {
      display: none;
      position: fixed;
      inset: 0;
      bottom: var(--nav-h);
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      background: var(--bg);
    }
    .screen.active { display: flex; flex-direction: column; }
    .screen.no-nav { bottom: 0; }

    /* === HEADER === */
    .header {
      position: sticky;
      top: 0;
      z-index: 10;
      height: var(--header-h);
      background: var(--card);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 1px 3px rgba(0,0,0,0.06);
      display: flex;
      align-items: center;
      padding: 0 16px;
      gap: 12px;
      flex-shrink: 0;
    }
    .header-title {
      flex: 1;
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
    }
    .header-logo {
      font-size: 18px;
      font-weight: 800;
      color: var(--orange);
    }
    .btn-icon {
      width: 44px;
      height: 44px;
      border: none;
      background: transparent;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--muted);
      -webkit-tap-highlight-color: transparent;
    }
    .btn-icon:active { background: var(--border); }

    /* === BOTTOM NAV === */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: var(--nav-h);
      background: var(--card);
      border-top: 1px solid var(--border);
      display: flex;
      z-index: 100;
    }
    .nav-item {
      flex: 1;
      border: none;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      cursor: pointer;
      color: var(--muted);
      font-size: 11px;
      font-weight: 500;
      -webkit-tap-highlight-color: transparent;
      padding: 8px 0;
    }
    .nav-item.active { color: var(--orange); }
    .nav-item svg { width: 22px; height: 22px; }

    /* === CARDS === */
    .card {
      background: var(--card);
      border-radius: 12px;
      border: 1px solid var(--border);
      overflow: hidden;
    }
    .card-body { padding: 16px; }
    .card-header {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* === BUTTONS === */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 44px;
      padding: 10px 20px;
      border-radius: 10px;
      border: none;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 0.15s;
    }
    .btn:active { opacity: 0.8; }
    .btn-primary { background: var(--orange); color: #fff; }
    .btn-secondary { background: var(--border); color: var(--text); }
    .btn-danger { background: var(--red-bg); color: var(--red); }
    .btn-success { background: var(--green-bg); color: var(--green); }
    .btn-full { width: 100%; }
    .btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }

    /* === FORM === */
    .form-group { margin-bottom: 16px; }
    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .form-input {
      width: 100%;
      min-height: 44px;
      padding: 10px 12px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      color: var(--text);
      background: var(--card);
      outline: none;
      -webkit-appearance: none;
    }
    .form-input:focus { border-color: var(--orange); }
    .form-section-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 12px;
      margin-top: 24px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--orange);
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    /* === TAGS / BADGES === */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 10px;
      border-radius: 100px;
      font-size: 12px;
      font-weight: 600;
    }
    .badge-actief { background: var(--green-bg); color: var(--green); }
    .badge-offerte { background: #FFF7ED; color: var(--orange); }
    .badge-afgerond { background: var(--border); color: var(--muted); }
    .badge-meerwerk { background: #FFF7ED; color: var(--orange); font-size: 11px; padding: 2px 8px; border-radius: 100px; font-weight: 600; }
    .btn-meerwerk-toggle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
    .btn-meerwerk-toggle.active { border-color: var(--orange); background: var(--orange); color: #fff; }

    /* === TRIAL BANNER === */
    .trial-banner {
      background: var(--orange-light);
      border: 1px solid var(--orange);
      border-radius: 10px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }
    .trial-banner-text { font-size: 13px; font-weight: 600; color: var(--orange-dark); }
    .trial-banner-link { font-size: 13px; font-weight: 700; color: var(--orange); text-decoration: none; white-space: nowrap; cursor: pointer; }

    /* === EXPIRED OVERLAY === */
    .expired-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0,0,0,0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    .expired-card {
      background: var(--card);
      border-radius: 16px;
      padding: 32px 24px;
      text-align: center;
      max-width: 360px;
      width: 100%;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }
    .expired-card h2 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
    .expired-card p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

    /* === PRICING MODAL === */
    .pricing-container { display: flex; gap: 12px; flex-direction: column; }
    @media (min-width: 600px) { .pricing-container { flex-direction: row; } }
    .pricing-card {
      flex: 1;
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: 14px;
      padding: 20px 16px;
      position: relative;
      display: flex;
      flex-direction: column;
    }
    .pricing-card.popular {
      border-color: var(--orange);
      box-shadow: 0 4px 16px rgba(249,115,22,0.15);
    }
    .pricing-badge {
      position: absolute;
      top: -11px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--orange);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 12px;
      border-radius: 100px;
      white-space: nowrap;
    }
    .pricing-name { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
    .pricing-price { font-size: 28px; font-weight: 800; color: var(--orange); margin-bottom: 2px; }
    .pricing-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
    .pricing-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
    .pricing-features { list-style: none; padding: 0; margin: 0 0 20px 0; flex: 1; }
    .pricing-features li { font-size: 13px; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
    .pricing-features li.included { color: var(--text); }
    .pricing-features li.excluded { color: var(--muted); opacity: 0.6; }

    /* === UTILITY CLASSES === */
    .form-group-last { margin-bottom: 0; }
    .meerwerk-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; cursor: pointer; }
    .meerwerk-checkbox { width: 18px; height: 18px; accent-color: var(--orange); }

    /* === CONTENT AREA === */
    .content { padding: 16px; flex: 1; }
    .content-gap { display: flex; flex-direction: column; gap: 12px; }

    /* === SCREEN: HOME === */
    .home-mic-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 32px 20px;
      gap: 16px;
    }
    .home-scroll-area {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      display: flex;
      flex-direction: column;
    }
    .home-input-area {
      flex-shrink: 0;
      padding: 10px 12px;
      padding-bottom: max(10px, env(safe-area-inset-bottom));
      background: var(--card);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: flex-end;
      gap: 8px;
    }
    .mic-btn {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      border: none;
      background: var(--orange);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(249,115,22,0.4);
      transition: transform 0.15s, box-shadow 0.15s;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0;
    }
    .mic-btn:active { transform: scale(0.93); }
    .mic-btn.recording {
      background: var(--red);
      box-shadow: 0 4px 20px rgba(239,68,68,0.4);
      animation: pulse 1.2s infinite;
      will-change: transform, opacity;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.85; transform: scale(1.04); }
    }
    .mic-btn.processing {
      background: var(--yellow);
      box-shadow: 0 4px 20px rgba(234,179,8,0.4);
      animation: spin-fade 1s ease-in-out infinite;
    }
    @keyframes spin-fade {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
    }
    .mic-btn svg { width: 38px; height: 38px; }
    .mic-btn-compact {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: none;
      background: var(--orange);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.15s;
    }
    .mic-btn-compact:active { opacity: 0.8; }
    .mic-btn-compact svg { width: 20px; height: 20px; }
    .mic-btn-compact.recording {
      background: var(--red);
      animation: pulse 1.2s infinite;
      width: auto;
      border-radius: 22px;
      padding: 0 14px;
      gap: 6px;
    }
    .mic-btn-compact.processing {
      background: var(--yellow);
      animation: spin-fade 1s ease-in-out infinite;
      width: auto;
      border-radius: 22px;
      padding: 0 14px;
      gap: 6px;
    }
    .mic-btn-compact .mic-label {
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      display: none;
    }
    .mic-btn-compact.recording .mic-label,
    .mic-btn-compact.processing .mic-label {
      display: inline;
    }
    .mic-btn-compact.recording svg,
    .mic-btn-compact.processing svg {
      width: 16px;
      height: 16px;
    }
    .mic-btn-locked {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: none;
      background: var(--border);
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      font-size: 18px;
      -webkit-tap-highlight-color: transparent;
    }
    .mic-btn-locked:active { opacity: 0.7; }
    .home-hint {
      font-size: 20px;
      font-weight: 700;
      color: var(--navy);
      text-align: center;
    }
    .home-hint-sub {
      font-size: 14px;
      color: var(--muted);
      text-align: center;
    }
    /* Notificatie balk */
    .ai-notification-bar {
      position: absolute;
      bottom: calc(var(--input-h, 64px) + 8px);
      left: 12px;
      right: 12px;
      background: var(--card);
      border-left: 3px solid var(--orange);
      border-radius: 10px;
      padding: 10px 14px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.10);
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
      z-index: 20;
      transition: opacity 0.22s ease, transform 0.22s ease;
      will-change: transform, opacity;
    }
    .ai-notification-bar.visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .ai-notification-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--orange);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }
    .ai-notification-text {
      font-size: 14px;
      color: var(--navy);
      line-height: 1.45;
    }
    /* Timer bar */
    .timer-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 16px;
      background: #fff;
      border-bottom: 1.5px solid var(--orange);
      flex-shrink: 0;
    }
    .timer-bar-info { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .timer-bar-time { font-size: 15px; font-weight: 700; color: var(--orange); }
    .timer-bar-sub { font-size: 12px; color: var(--muted); }

    /* === SCREEN: PROJECTS === */
    .search-bar {
      display: flex;
      align-items: center;
      background: var(--card);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 0 12px;
      gap: 8px;
    }
    .search-bar input {
      flex: 1;
      min-height: 44px;
      border: none;
      outline: none;
      font-size: 15px;
      background: transparent;
      color: var(--text);
    }
    .search-bar svg { color: var(--muted); flex-shrink: 0; }

    .project-card {
      background: var(--card);
      border-radius: 12px;
      border: 1px solid var(--border);
      padding: 14px 16px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: border-color 0.15s;
    }
    .project-card:active { border-color: var(--orange); }
    .project-card-afgerond {
      background: var(--bg);
      border-color: var(--border);
      opacity: 0.7;
    }
    .project-card-afgerond .project-name {
      color: var(--muted);
    }
    .project-card-afgerond .project-meta {
      color: var(--border);
    }
    .project-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }
    .project-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.3;
    }
    .project-meta {
      display: flex;
      gap: 12px;
      font-size: 13px;
      color: var(--muted);
    }
    .project-meta span { display: flex; align-items: center; gap: 4px; }

    .fab {
      position: fixed;
      bottom: calc(var(--nav-h) + 16px);
      right: 16px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--orange);
      border: none;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(249,115,22,0.4);
      z-index: 50;
      -webkit-tap-highlight-color: transparent;
    }
    .fab:active { opacity: 0.85; }

    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 48px 24px;
      text-align: center;
      color: var(--muted);
      gap: 12px;
    }
    .empty-state svg { color: var(--border); }
    .empty-state h3 { font-size: 16px; color: var(--muted); }
    .empty-state p { font-size: 14px; line-height: 1.5; }

    /* === SCREEN: PROJECT DETAIL === */
    .detail-header {
      background: var(--card);
      border-bottom: 1px solid var(--border);
    }
    .detail-header-top {
      display: flex;
      align-items: center;
      height: var(--header-h);
      padding: 0 8px 0 4px;
      gap: 4px;
    }
    .detail-header-info {
      padding: 0 16px 14px;
    }
    .detail-project-name {
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.2;
    }
    .detail-client {
      font-size: 14px;
      color: var(--muted);
      margin-top: 4px;
    }

    .tab-bar {
      display: flex;
      background: var(--card);
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      flex-shrink: 0;
    }
    .tab-bar::-webkit-scrollbar { display: none; }
    .tab-btn {
      flex-shrink: 0;
      border: none;
      background: transparent;
      padding: 12px 14px;
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      position: relative;
      white-space: nowrap;
      -webkit-tap-highlight-color: transparent;
    }
    .tab-btn.active { color: var(--orange); }
    .tab-btn.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 8px;
      right: 8px;
      height: 2px;
      background: var(--orange);
      border-radius: 2px 2px 0 0;
    }
    .tab-content { display: none; padding: 16px; flex: 1; }
    .tab-content.active { display: block; }

    .item-row {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      gap: 12px;
      border-bottom: 1px solid var(--border);
    }
    .item-row:last-child { border-bottom: none; }
    .item-row-info { flex: 1; min-width: 0; }
    .item-row-title { font-size: 15px; color: var(--text); font-weight: 500; }
    .item-row-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
    .item-row-action {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      border: none;
      background: var(--red-bg);
      color: var(--red);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .item-row-action:active { opacity: 0.7; }
    .checkbox-btn {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      border: 2px solid var(--border);
      background: transparent;
      flex-shrink: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }
    .checkbox-btn.checked {
      background: var(--green);
      border-color: var(--green);
    }
    .item-done .item-row-title {
      text-decoration: line-through;
      color: var(--muted);
    }

    .doc-btn-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      padding: 16px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }

    /* === MODAL === */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 200;
      display: none;
      align-items: flex-end;
      -webkit-tap-highlight-color: transparent;
    }
    .modal-overlay.open { display: flex; }
    .modal {
      background: var(--card);
      border-radius: 20px 20px 0 0;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 20px 16px 32px;
      animation: slideUp 0.25s ease-out;
    }
    @keyframes slideUp {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }
    .modal-handle {
      width: 40px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin: 0 auto 16px;
    }
    .modal-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 20px;
      color: var(--text);
    }

    /* === SCREEN: PLANNING === */
    .planning-tabs {
      display: flex;
      background: var(--card);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .planning-tab {
      flex: 1;
      border: none;
      background: transparent;
      padding: 14px;
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      position: relative;
      -webkit-tap-highlight-color: transparent;
    }
    .planning-tab.active { color: var(--orange); }
    .planning-tab.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 20%;
      right: 20%;
      height: 2px;
      background: var(--orange);
      border-radius: 2px 2px 0 0;
    }

    .day-label {
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
      margin-top: 4px;
    }

    /* === PLANNING PROJECT GROEPEN === */
    .planning-project-group {
      background: var(--card);
      border-radius: 12px;
      border: 1px solid var(--border);
      overflow: hidden;
      margin-bottom: 12px;
    }
    .planning-project-header {
      display: flex;
      align-items: center;
      padding: 14px 16px;
      gap: 12px;
      cursor: pointer;
      border-bottom: 1px solid var(--border);
      -webkit-tap-highlight-color: transparent;
    }
    .planning-project-header:active { background: var(--bg); }
    .planning-project-info { flex: 1; min-width: 0; }
    .planning-project-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.3;
    }
    .planning-project-client {
      font-size: 13px;
      color: var(--muted);
      margin-top: 2px;
    }
    .planning-section-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 10px 16px 4px;
    }
    .planning-item {
      display: flex;
      align-items: center;
      padding: 10px 16px;
      gap: 10px;
      border-bottom: 1px solid var(--border);
    }
    .planning-item:last-child { border-bottom: none; }
    .planning-item-afspraak .planning-item-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 16px;
    }
    .planning-item-taak .checkbox-btn {
      width: 22px;
      height: 22px;
      min-width: 22px;
    }
    .planning-item-info { flex: 1; min-width: 0; }
    .planning-item-title { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.3; }
    .planning-item-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

    /* === DEADLINE BADGES === */
    .planning-deadline-badge {
      font-size: 11px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 100px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .deadline-today { background: var(--red-bg); color: var(--red); }
    .deadline-tomorrow { background: #FFF7ED; color: var(--orange); }
    .deadline-week { background: #F3F4F6; color: var(--muted); }

    /* === TOAST === */
    .toast {
      position: fixed;
      bottom: calc(var(--nav-h) + 16px);
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--navy);
      color: #fff;
      padding: 10px 20px;
      border-radius: 100px;
      font-size: 14px;
      font-weight: 500;
      z-index: 300;
      opacity: 0;
      transition: opacity 0.2s, transform 0.2s;
      will-change: transform, opacity;
      white-space: nowrap;
      max-width: calc(100% - 32px);
      text-align: center;
    }
    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* === SETTINGS === */
    .settings-content { padding: 16px; }
    .api-key-input { font-family: monospace; font-size: 13px; }


    /* === FOTO === */
    .foto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
    .foto-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--border); }
    .foto-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .foto-delete { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; padding: 0; }

    /* === FINANCIEN === */
    .fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
    .fin-card { background: var(--card); border-radius: 12px; padding: 14px 16px; }
    .fin-card-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
    .fin-card-value { font-size: 22px; font-weight: 800; color: var(--navy); }
    .fin-card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .fin-nacalc { border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
    .fin-nacalc.pos { background: #DCFCE7; }
    .fin-nacalc.neg { background: #FEE2E2; }
    .fin-nacalc-label { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
    .fin-nacalc.pos .fin-nacalc-label { color: var(--green); }
    .fin-nacalc.neg .fin-nacalc-label { color: var(--red); }
    .fin-nacalc-value { font-size: 18px; font-weight: 700; }
    .fin-nacalc.pos .fin-nacalc-value { color: var(--green); }
    .fin-nacalc.neg .fin-nacalc-value { color: var(--red); }
    .fin-nacalc-sub { font-size: 13px; margin-top: 4px; }
    .fin-nacalc.pos .fin-nacalc-sub { color: #166534; }
    .fin-nacalc.neg .fin-nacalc-sub { color: #991B1B; }

    /* === LEADS === */
    .leads-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .leads-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .leads-count { background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
    .lead-card { background: var(--card); border-radius: 10px; border: 1px solid var(--border); border-left: 3px solid var(--orange); padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .lead-card:active { opacity: 0.85; }
    .lead-card-naam { font-size: 15px; font-weight: 600; color: var(--text); }
    .lead-card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
    .lead-opvolging { font-size: 12px; font-weight: 600; color: var(--orange); white-space: nowrap; margin-left: 8px; flex-shrink: 0; }
    .lead-contact-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); gap: 12px; font-size: 14px; color: var(--text); }
    .lead-contact-row:last-of-type { border-bottom: none; }
    .lead-detail-section { margin-top: 14px; }
    .badge-gecontacteerd { background: #DBEAFE; color: #3B82F6; }
    .planning-item-lead { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .planning-item-lead:active { background: var(--bg); }
    .planning-leads-group { background: var(--card); border-radius: 12px; border: 1px solid var(--border); border-left: 3px solid var(--orange); overflow: hidden; margin-bottom: 12px; }
    .planning-leads-header { display: flex; align-items: center; padding: 12px 16px; gap: 10px; border-bottom: 1px solid var(--border); }
    .planning-leads-title { font-size: 14px; font-weight: 700; color: var(--text); flex: 1; }

    /* === DOCS TAB === */
    .docs-section-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 12px 0 6px; }
    .docs-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .docs-item:last-child { border-bottom: none; }
    .docs-item-info { flex: 1; min-width: 0; }
    .docs-item-num { font-size: 14px; font-weight: 600; color: var(--text); }
    .docs-item-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .docs-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
    .docs-badge.verstuurd  { background: #FEF9C3; color: #854D0E; }
    .docs-badge.geaccepteerd { background: #DCFCE7; color: #166534; }
    .docs-badge.afgewezen  { background: #FEE2E2; color: #991B1B; }
    .docs-badge.open       { background: #FEF9C3; color: #854D0E; }
    .docs-badge.betaald    { background: #DCFCE7; color: #166534; }
    .docs-actions { display: flex; gap: 6px; flex-shrink: 0; }

    /* === AUTH === */
    .auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
    .auth-box { background: var(--card); border-radius: 20px; border: 1px solid var(--border); padding: 32px 24px; width: 100%; max-width: 360px; }
    .auth-logo { font-size: 40px; text-align: center; margin-bottom: 6px; }
    .auth-title { font-size: 24px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 4px; }
    .auth-sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 24px; }
    .auth-error { background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; display: none; }
    .auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
    .auth-switch button { color: var(--orange); font-weight: 600; background: none; border: none; cursor: pointer; font-size: 14px; }

    /* === BTW OVERZICHT === */
    .btw-card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 8px; }
    .btw-card-header { display: flex; align-items: center; padding: 14px 16px; cursor: pointer; gap: 12px; -webkit-tap-highlight-color: transparent; }
    .btw-card-header:active { background: var(--bg); }
    .btw-card-label { font-size: 16px; font-weight: 700; color: var(--text); }
    .btw-card-total { font-size: 15px; font-weight: 700; color: var(--orange); white-space: nowrap; }
    .btw-card-chevron { flex-shrink: 0; transition: transform 0.2s; color: var(--muted); }
    .btw-card-body { display: none; padding: 0 16px 14px; border-top: 1px solid var(--border); }
    .btw-card-body.open { display: block; }
    .btw-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
    .btw-row:last-of-type { border-bottom: none; }
    .btw-row-label { color: var(--muted); line-height: 1.3; }
    .btw-row-value { font-weight: 600; color: var(--text); white-space: nowrap; margin-left: 8px; }
    .btw-divider { height: 1px; background: var(--border); margin: 4px 0; }
    .btw-total-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--orange-light); border-top: 2px solid var(--orange); }
    .btw-total-label { font-size: 14px; font-weight: 700; color: var(--navy); }
    .btw-total-value { font-size: 17px; font-weight: 800; }
    .btw-empty { color: var(--muted); font-size: 14px; font-style: italic; padding: 12px 0; }
    .btw-year-summary { background: var(--orange); border-radius: 12px; padding: 16px; margin-bottom: 16px; color: #fff; }
    .btw-year-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; margin-bottom: 4px; }
    .btw-year-value { font-size: 28px; font-weight: 800; }
    .btw-year-sub { font-size: 13px; opacity: 0.85; margin-top: 2px; }

    /* Timer button - projectenscherm */
    .project-timer-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid var(--orange);
      background: transparent;
      color: var(--orange);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
      transition: all 0.2s ease;
    }
    .project-timer-btn:active {
      background: var(--orange-light);
    }
    .project-timer-btn svg {
      width: 16px;
      height: 16px;
    }
    .project-timer-btn.disabled {
      border-color: var(--border);
      color: var(--border);
      opacity: 0.4;
      pointer-events: none;
    }
    .project-card.timer-active {
      border-left: 3px solid var(--orange);
      background: var(--orange-light);
    }
    .project-timer-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      border-top: 1px solid #FED7AA;
      margin-top: 10px;
    }
    .project-timer-bar-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .project-timer-bar-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--orange);
      animation: pulse-dot 1.5s ease-in-out infinite;
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.8); }
    }
    .project-timer-bar-time {
      font-size: 18px;
      font-weight: 700;
      color: var(--orange);
      font-variant-numeric: tabular-nums;
    }
    .project-timer-bar-label {
      font-size: 12px;
      color: var(--muted);
      margin-top: 1px;
    }
    .project-timer-stop {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: none;
      background: var(--red);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 0.15s;
    }
    .project-timer-stop:active {
      opacity: 0.7;
    }
    .project-timer-stop svg {
      width: 14px;
      height: 14px;
    }
    .badge-clickable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .badge-clickable:active { opacity: 0.7; }

    /* === KLANT OVERZICHT === */
    .klant-overview {
      background: var(--card);
      border-radius: 12px;
      border: 1px solid var(--border);
      overflow: hidden;
    }
    .klant-overview-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
    }
    .klant-overview-name {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
    }
    .klant-overview-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
      color: var(--text);
    }
    .klant-overview-row:last-child {
      border-bottom: none;
    }
    .klant-overview-icon {
      flex-shrink: 0;
      width: 20px;
      text-align: center;
      color: var(--muted);
      font-size: 15px;
    }
    .klant-overview-label {
      font-size: 12px;
      color: var(--muted);
      font-weight: 600;
      min-width: 60px;
    }
    .klant-overview-value {
      flex: 1;
      color: var(--text);
    }
    .klant-overview-action {
      flex-shrink: 0;
    }
    .klant-overview-action a {
      color: var(--orange);
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
    }

    /* === CHAT BUBBLES === */
    .chat-bubbles-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      padding-bottom: 24px;
    }
    .chat-bubble {
      max-width: 85%;
      border-radius: 16px;
      padding: 12px 16px;
      font-size: 15px;
      line-height: 1.45;
      animation: bubbleIn 0.25s ease-out;
    }
    @keyframes bubbleIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .chat-bubble-user {
      align-self: flex-end;
      background: var(--navy);
      color: #fff;
      border-bottom-right-radius: 4px;
    }
    .chat-bubble-ai {
      align-self: flex-start;
      background: var(--card);
      border: 1px solid var(--border);
      color: var(--text);
      border-bottom-left-radius: 4px;
    }
    .chat-bubble-label {
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .chat-bubble-user .chat-bubble-label { color: rgba(255,255,255,0.5); }
    .chat-bubble-ai .chat-bubble-label { color: var(--orange); }
    .chat-bubble-time {
      font-size: 11px;
      margin-top: 4px;
    }
    .chat-bubble-user .chat-bubble-time { color: rgba(255,255,255,0.4); }
    .chat-bubble-ai .chat-bubble-time { color: var(--muted); }
    .chat-typing {
      align-self: flex-start;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      border-bottom-left-radius: 4px;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .typing-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--orange);
      animation: typingDot 1.2s ease-in-out infinite;
    }
    .typing-dot:nth-child(2) { animation-delay: 0.15s; }
    .typing-dot:nth-child(3) { animation-delay: 0.3s; }
    @keyframes typingDot {
      0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
      30% { opacity: 1; transform: translateY(-4px); }
    }
    /* === INSTALL BANNER === */
    .install-banner {
      position: fixed;
      bottom: calc(var(--nav-h) + 8px);
      left: 12px;
      right: 12px;
      background: var(--card);
      border: 1.5px solid var(--orange);
      border-radius: 12px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12);
      z-index: 150;
      animation: slideUp 0.3s ease-out;
    }
    .install-banner-icon {
      font-size: 28px;
      flex-shrink: 0;
    }
    .install-banner-text {
      flex: 1;
      font-size: 14px;
      color: var(--text);
      line-height: 1.4;
    }
    .install-banner-text strong {
      font-weight: 700;
    }
    .install-banner-btn {
      flex-shrink: 0;
      background: var(--orange);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .install-banner-btn:active { opacity: 0.8; }
    .install-banner-close {
      position: absolute;
      top: 6px;
      right: 8px;
      background: none;
      border: none;
      color: var(--muted);
      font-size: 18px;
      cursor: pointer;
      padding: 4px;
      line-height: 1;
      -webkit-tap-highlight-color: transparent;
    }
