    :root {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: #18212f;
      background: #f3f5f7;
      font-synthesis: none;
    }
    * { box-sizing: border-box; }
    body { margin: 0; }
    body.locked header, body.locked main { display: none; }
    button, input, textarea, select { font: inherit; }
    button { cursor: pointer; }
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 18px 28px;
      color: white;
      background: #111827;
    }
    .brand h1 { margin: 0; font-size: 21px; }
    .brand p { margin: 4px 0 0; color: #b8c1ce; font-size: 13px; }
    nav { display: flex; gap: 8px; }
    .nav-button {
      border: 1px solid #394355;
      border-radius: 8px;
      padding: 9px 13px;
      color: #dbe2ec;
      background: transparent;
      font-weight: 650;
    }
    .nav-button.active { color: #111827; background: white; border-color: white; }
    .nav-button.danger { color: #fecaca; border-color: #7f1d1d; }
    .nav-button.danger:disabled { opacity: .45; cursor: not-allowed; }
    main { max-width: 1500px; margin: 0 auto; padding: 20px; }
    .view[hidden] { display: none; }
    .panel {
      background: white;
      border: 1px solid #dce1e7;
      border-radius: 11px;
      box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    }
    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 17px 18px;
      border-bottom: 1px solid #e5e9ee;
    }
    .panel-header h2 { margin: 0; font-size: 18px; }
    .panel-header p { margin: 4px 0 0; color: #687386; font-size: 13px; }
    .stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 14px;
    }
    .stat { padding: 15px 17px; }
    .stat-label { color: #687386; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
    .stat-value { margin-top: 4px; font-size: 25px; font-weight: 750; }
    .workspace {
      display: grid;
      grid-template-columns: minmax(650px, 1.45fr) minmax(360px, .85fr);
      gap: 14px;
      align-items: start;
    }
    .filters {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      padding: 13px 15px;
      border-bottom: 1px solid #e5e9ee;
    }
    .filters > * { flex: 1 1 130px; min-width: 0; }
    .filters > #searchFilter { flex: 2 1 200px; }
    .filters > .filter-reset { flex: 0 0 auto; }
    .quick-views {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      padding: 13px 15px 0;
    }
    .quick-view {
      border: 1px solid #cbd3dd;
      border-radius: 8px;
      padding: 8px 10px;
      color: #344054;
      background: #f8fafb;
      font-size: 12px;
      font-weight: 750;
    }
    .quick-view.active {
      color: white;
      border-color: #111827;
      background: #111827;
    }
    input, textarea, select {
      width: 100%;
      border: 1px solid #cbd3dd;
      border-radius: 8px;
      padding: 10px;
      color: #18212f;
      background: white;
    }
    textarea { min-height: 300px; resize: vertical; }
    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    th {
      padding: 10px 12px;
      color: #687386;
      background: #f8fafb;
      text-align: left;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    td { padding: 12px; border-top: 1px solid #edf0f3; vertical-align: top; }
    tbody tr { cursor: pointer; }
    tbody tr:hover, tbody tr.selected { background: #f2f7ff; }
    .subject { max-width: 270px; font-weight: 680; }
    .subject small { display: block; margin-top: 4px; color: #7a8494; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 4px 8px;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
      background: #e8edf3;
      color: #3b4656;
    }
    select.badge {
      border: 0;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      font-family: inherit;
      padding-right: 22px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%233b4656' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 6px center;
      background-size: 9px;
    }
    select.badge:disabled { cursor: default; opacity: .75; background-image: none; padding-right: 8px; }
    .urgency-spoed { color: #8b1010; background: #fee2e2; }
    .urgency-hoog { color: #92400e; background: #fef3c7; }
    .urgency-normaal { color: #1e4f8a; background: #dbeafe; }
    .urgency-laag { color: #425466; background: #edf1f5; }
    .status-nieuw { color: #1e4f8a; background: #dbeafe; }
    .status-in_behandeling { color: #805b00; background: #fef3c7; }
    .status-afgehandeld { color: #166534; background: #dcfce7; }
    .empty { padding: 44px 20px; color: #727d8d; text-align: center; }
    .detail { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
    .detail-body { padding: 17px; }
    .detail-placeholder { padding: 70px 25px; color: #788394; text-align: center; }
    .detail-title { margin: 0; font-size: 19px; line-height: 1.35; }
    .detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 15px; }
    .detail-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
    .quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 18px; }
    .owner-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
    .owner-label { color: #536074; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
    .owner-row select { flex: 1; }
    .user-picker { display: flex; align-items: center; gap: 8px; }
    .user-picker span { font-size: 12px; color: #b8c1ce; white-space: nowrap; }
    .user-picker select { min-width: 140px; }
    .team-add { display: flex; gap: 6px; margin-top: 8px; }
    .status-button, .primary, .secondary {
      border: 0;
      border-radius: 8px;
      padding: 10px 12px;
      font-weight: 700;
    }
    .status-button { color: #344054; background: #eef1f5; font-size: 12px; }
    .status-button.current { outline: 2px solid #315f9b; background: #e6effb; }
    .primary { color: white; background: #111827; }
    .secondary { color: #1f2937; background: #e8ecf1; }
    .filter-reset { white-space: nowrap; }
    .detail-section { margin-top: 17px; }
    .detail-section h3 { margin: 0 0 7px; color: #536074; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
    .detail-section.customer-section {
      margin-top: 14px;
      padding: 13px;
      border: 1px solid #b9cce5;
      border-radius: 8px;
      background: #f6faff;
    }
    .detail-section.internal-section {
      padding-top: 14px;
      border-top: 1px solid #e5e9ee;
    }
    .content-box {
      padding: 12px;
      border: 1px solid #e0e5eb;
      border-radius: 8px;
      background: #fafbfc;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      line-height: 1.48;
      font-size: 13px;
    }
    .customer-box { background: #f6faff; border-color: #cad9ed; }
    .internal-box { background: #fffaf0; border-color: #f0d89b; }
    .attachments { margin: 0; padding-left: 18px; }
    .attachment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .attachment-card { min-width: 0; padding: 9px; border: 1px solid #dce2e9; border-radius: 8px; background: #fafbfc; }
    .attachment-preview { display: flex; align-items: center; justify-content: center; height: 130px; margin-bottom: 8px; border-radius: 6px; overflow: hidden; color: #657185; background: #edf1f5; font-size: 13px; font-weight: 750; }
    .attachment-preview img { width: 100%; height: 100%; object-fit: contain; background: white; }
    .attachment-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
    .attachment-meta { margin: 3px 0 8px; color: #748092; font-size: 11px; }
    .attachment-card .secondary { display: block; width: 100%; text-align: center; text-decoration: none; font-size: 12px; }
    .attachment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .attachment-card.deleted { opacity: .68; }
    .attachment-card.deleted .attachment-preview { background: #f3f4f6; }
    .feedback-panel { padding: 13px; border: 1px solid #d8e0ea; border-radius: 9px; background: #f8fafc; }
    .feedback-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin: 9px 0; }
    .feedback-row > span { font-size: 13px; font-weight: 650; }
    .feedback-options { display: flex; gap: 5px; }
    .feedback-option { border: 1px solid #cbd3dd; border-radius: 7px; padding: 6px 9px; color: #4b5563; background: white; font-size: 12px; font-weight: 700; }
    .feedback-option.positive.active { color: #166534; border-color: #86c99a; background: #dcfce7; }
    .feedback-option.negative.active { color: #991b1b; border-color: #e5a2a2; background: #fee2e2; }
    .feedback-note { min-height: 74px; margin-top: 8px; }
    .feedback-history { margin-top: 13px; padding-top: 11px; border-top: 1px solid #e0e5eb; }
    .feedback-entry { padding: 8px 0; border-top: 1px solid #e8ecf1; font-size: 12px; line-height: 1.45; }
    .feedback-entry:first-child { border-top: 0; }
    .feedback-scores { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
    .activity-list { display: grid; gap: 8px; }
    .activity-entry { padding: 9px 10px; border: 1px solid #e2e7ee; border-radius: 8px; background: #fafbfc; font-size: 12px; line-height: 1.45; }
    .activity-meta { color: #6d7889; font-size: 11px; font-weight: 700; }
    .analyze-layout { display: grid; grid-template-columns: 420px 1fr; gap: 14px; align-items: start; }
    .form-body, .result-body { padding: 18px; }
    label { display: block; margin: 13px 0 6px; font-size: 13px; font-weight: 700; }
    .form-body label:first-child { margin-top: 0; }
    .submit-button { width: 100%; margin-top: 15px; }
    .link-button { width: 100%; margin-top: 10px; background: none; border: none; color: #2563eb; font-size: 13px; cursor: pointer; padding: 4px; }
    .link-button:hover { text-decoration: underline; }
    .result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .result-card { padding: 11px; border: 1px solid #e1e6eb; border-radius: 8px; background: #fafbfc; min-height: 65px; white-space: pre-wrap; }
    .result-card h3 { margin: 0 0 7px; color: #536074; font-size: 12px; }
    .wide { grid-column: 1 / -1; }
    .muted { color: #6d7889; font-size: 13px; }
    .error { color: #991b1b; font-weight: 700; }
    .loading { opacity: .65; pointer-events: none; }
    .login-screen {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
      background: #eef2f6;
    }
    body:not(.locked) .login-screen { display: none; }
    .login-card {
      width: min(420px, 100%);
      padding: 24px;
      background: white;
      border: 1px solid #dce1e7;
      border-radius: 10px;
      box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    }
    .login-card h1 { margin: 0 0 6px; font-size: 22px; }
    .login-card p { margin: 0 0 18px; color: #687386; font-size: 13px; }
    .session-user { color: #dbe2ec; font-size: 13px; font-weight: 700; white-space: nowrap; }
    .role-pill { color: #111827; background: #e5e7eb; border-radius: 999px; padding: 3px 8px; font-size: 11px; }
    @media (max-width: 1100px) {
      .workspace, .analyze-layout { grid-template-columns: 1fr; }
      .detail { position: static; max-height: none; }
    }
    @media (max-width: 760px) {
      header { align-items: flex-start; flex-direction: column; padding: 16px; }
      main { padding: 12px; }
      .stats { grid-template-columns: repeat(2, 1fr); }
      .result-grid { grid-template-columns: 1fr; }
      .wide { grid-column: auto; }
    }
