  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

  /* ── Prevent Thinkific container from scrolling horizontally ── */
  html,
  body {
    overflow-x: hidden !important;
  }

  /* ── Reset & Container ── */
  .gpa-app * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .gpa-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 16px;
    color: #1a1a2e;
    line-height: 1.5;
    overflow-x: hidden;
  }

  /* ── Loading & Error ── */
  .gpa-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
  }

  .gpa-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #00B1B4;
    border-radius: 50%;
    animation: gpa-spin 0.8s linear infinite;
  }

  @keyframes gpa-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .gpa-error {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
  }

  .gpa-error h2 {
    font-size: 1.25rem;
    color: #ef4444;
    margin-bottom: 8px;
  }

  /* ── Layout ── */
  .gpa-layout {
    display: flex;
    gap: 24px;
    min-height: 600px;
    overflow-x: hidden;
  }

  /* ── Sidebar ── */
  .gpa-sidebar {
    width: 220px;
    flex-shrink: 0;
  }

  .gpa-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0 12px;
    margin-bottom: 8px;
  }

  .gpa-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
  }

  .gpa-nav-item:hover {
    background: #f1f5f9;
    color: #1a1a2e;
  }

  .gpa-nav-item.active {
    background: #e0f7f8;
    color: #00878a;
    font-weight: 600;
  }

  .gpa-nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
  }

  /* ── Main Content ── */
  .gpa-main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
  }

  .gpa-panel {
    display: none;
  }

  .gpa-panel.active {
    display: block;
    max-width: 100%;
    overflow-x: hidden;
  }

  .gpa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .gpa-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
  }

  /* ── Cards ── */
  .gpa-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
  }

  .gpa-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
  }

  /* ── Buttons ── */
  .gpa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
  }

  .gpa-btn-primary {
    background: #00B1B4;
    color: #fff;
  }

  .gpa-btn-primary:hover {
    background: #00999c;
  }

  .gpa-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
  }

  .gpa-btn-sm {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  .gpa-btn-danger {
    background: #fee2e2;
    color: #dc2626;
  }

  .gpa-btn-danger:hover {
    background: #fecaca;
  }

  .gpa-btn-warning {
    background: #fef3c7;
    color: #d97706;
  }

  .gpa-btn-warning:hover {
    background: #fde68a;
  }

  .gpa-btn-success {
    background: #d1fae5;
    color: #059669;
  }

  .gpa-btn-success:hover {
    background: #a7f3d0;
  }

  .gpa-btn-ghost {
    background: #f1f5f9;
    color: #475569;
  }

  .gpa-btn-ghost:hover {
    background: #e2e8f0;
  }

  /* ── Form Elements ── */
  .gpa-select,
  .gpa-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    width: 100%;
  }

  .gpa-select:focus,
  .gpa-input:focus {
    outline: none;
    border-color: #00B1B4;
    box-shadow: 0 0 0 3px rgba(0, 177, 180, 0.1);
  }

  .gpa-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
  }

  .gpa-form-group {
    flex: 1;
  }

  .gpa-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
  }

  /* ── Tables ── */
  .gpa-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    max-height: 70vh;
    width: 100%;
    max-width: 100%;
  }

  .gpa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }

  .gpa-table th {
    background: #f8fafc;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .gpa-table th:hover {
    color: #1a1a2e;
  }

  .gpa-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    white-space: nowrap;
  }

  .gpa-table td.gpa-td-email {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gpa-table td.gpa-td-actions {
    white-space: nowrap;
  }

  .gpa-table tr:last-child td {
    border-bottom: none;
  }

  .gpa-table tr:hover td {
    background: #f8fafc;
  }

  .gpa-table .row-warning {
    background: #fffbeb;
  }

  .gpa-table .row-inactive {
    background: #f9fafb;
    color: #94a3b8;
  }

  /* ── Status Badges ── */
  .gpa-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 4px;
  }

  .gpa-badge-active {
    background: #d1fae5;
    color: #059669;
  }

  .gpa-badge-disabled {
    background: #fee2e2;
    color: #dc2626;
  }

  .gpa-badge-flag {
    background: #fef3c7;
    color: #d97706;
  }

  /* ── Toast Notifications ── */
  .gpa-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .gpa-toast {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: gpa-toast-in 0.3s ease;
    max-width: 400px;
  }

  .gpa-toast-success {
    background: #059669;
    color: #fff;
  }

  .gpa-toast-error {
    background: #dc2626;
    color: #fff;
  }

  .gpa-toast-info {
    background: #0284c7;
    color: #fff;
  }

  @keyframes gpa-toast-in {
    from {
      opacity: 0;
      transform: translateX(40px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* ── Confirm Modal ── */
  .gpa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
  }

  .gpa-modal-overlay.show {
    display: flex;
  }

  .gpa-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }

  .gpa-modal h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .gpa-modal p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 20px;
  }

  .gpa-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }

  /* ── Stats Row ── */
  .gpa-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }

  .gpa-stat-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
  }

  .gpa-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
  }

  .gpa-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
  }

  /* ── Slack Analytics ── */
  .gpa-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
  }

  .gpa-upload-zone:hover,
  .gpa-upload-zone.dragover {
    border-color: #00B1B4;
    background: #e0f7f8;
  }

  .gpa-upload-zone.has-file {
    border-color: #22c55e;
    background: #f0fdf4;
  }

  .gpa-upload-filename {
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 600;
    margin-top: 8px;
  }

  .gpa-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gpa-section-divider {
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 20px;
  }

  .gpa-help-toggle {
    font-size: 0.78rem;
    color: #00878a;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: inherit;
  }

  .gpa-help-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.82rem;
    color: #166534;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .gpa-help-box ol {
    margin: 8px 0 0 20px;
    padding: 0;
  }

  .gpa-preview-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .gpa-preview-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 8px;
  }

  .gpa-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .gpa-rank-list li {
    padding: 6px 0;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
  }

  .gpa-rank-list li:last-child {
    border-bottom: none;
  }

  .gpa-rank-num {
    font-weight: 700;
    color: #00878a;
    width: 22px;
    text-align: right;
  }

  .gpa-rank-val {
    color: #94a3b8;
    margin-left: auto;
    font-size: 0.82rem;
  }

  .gpa-analytics-filter {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .gpa-analytics-filter select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    max-width: 280px;
  }

  .gpa-analytics-filter input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    max-width: 200px;
  }

  .gpa-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
  }

  .gpa-filter-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
  }

  .gpa-filter-pill.active {
    background: #00878a;
    border-color: #00878a;
    color: #ffffff;
  }

  .gpa-filter-pill.active span {
    color: #ffffff !important;
  }

  .gpa-mapping-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .gpa-mapping-row>div {
    flex: 1;
    min-width: 200px;
  }

  .gpa-mapping-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
  }

  .gpa-warning-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #92400e;
    margin-bottom: 16px;
  }

  .gpa-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #1e40af;
    margin-bottom: 12px;
  }

  /* ── Responsive ── */
  /* ── Tab Bar (top tabs within grouped panels) ── */
  .gpa-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
  }

  .gpa-tab {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .gpa-tab:hover {
    color: #1a1a2e;
  }

  .gpa-tab.active {
    color: #00878a;
    border-bottom-color: #00B1B4;
  }

  .gpa-sub-panel {
    display: none;
  }

  .gpa-sub-panel.active {
    display: block;
    max-width: 100%;
  }

  /* ── External link nav items ── */
  .gpa-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
    text-decoration: none;
  }

  .gpa-nav-link:hover {
    background: #f1f5f9;
    color: #1a1a2e;
  }

  .gpa-nav-link .gpa-link-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: #94a3b8;
  }

  @media (max-width: 768px) {
    .gpa-layout {
      flex-direction: column;
    }

    .gpa-sidebar {
      width: 100%;
      display: flex;
      gap: 4px;
      overflow-x: auto;
    }

    .gpa-sidebar-title {
      display: none;
    }

    .gpa-nav-item {
      white-space: nowrap;
    }

    .gpa-stats-row {
      flex-wrap: wrap;
    }

    .gpa-form-row {
      flex-direction: column;
    }

    .gpa-mapping-row {
      flex-direction: column;
    }

    .gpa-tab-bar {
      overflow-x: auto;
    }

    .gpa-tab {
      white-space: nowrap;
      padding: 8px 14px;
      font-size: 0.8rem;
    }
  }

  /* ── Partner Directory Table ── */
  .gpa-dir-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .gpa-dir-search {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
  }

  .gpa-dir-search:focus {
    outline: none;
    border-color: #00B1B4;
  }

  .gpa-dir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }

  .gpa-dir-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .gpa-dir-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    background: #fff;
  }

  .gpa-dir-table th[data-sort] {
    cursor: pointer;
    user-select: none;
  }

  .gpa-dir-table th[data-sort]:hover {
    color: #00B1B4;
  }

  .gpa-dir-table th .sort-arrow {
    font-size: 0.6rem;
    margin-left: 2px;
    opacity: 0.4;
  }

  .gpa-dir-table th.sort-active .sort-arrow {
    opacity: 1;
    color: #00B1B4;
  }

  .gpa-dir-table .engagement-group {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  .gpa-dir-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }

  .gpa-dir-table tr {
    cursor: pointer;
    transition: background 0.15s;
  }

  .gpa-dir-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  .gpa-dir-table tbody tr:hover {
    background: #f0f9ff;
  }

  .gpa-dir-table td:first-child {
    min-width: 130px;
  }

  /* Engagement signal cells with tinted backgrounds */
  .eng-cell {
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
  }

  .eng-green {
    background: #ecfdf5;
    color: #059669;
  }

  .eng-amber {
    background: #fffbeb;
    color: #d97706;
  }

  .eng-red {
    background: #fef2f2;
    color: #dc2626;
  }

  .eng-muted {
    color: #cbd5e1;
  }

  /* Risk badge */
  .risk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
  }

  .risk-low {
    background: #f1f5f9;
    color: #64748b;
  }

  .risk-med {
    background: #fef3c7;
    color: #d97706;
  }

  .risk-high {
    background: #fee2e2;
    color: #dc2626;
  }

  .gpa-dir-flags {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .gpa-dir-flag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
  }

  /* ── Admin Workflow inline-edit ── */
  .awf-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00B1B4;
  }

  .awf-url-indicator {
    cursor: pointer;
    font-size: 0.78rem;
    text-decoration: none;
  }

  .awf-url-indicator:hover {
    opacity: 0.7;
  }

  .awf-text-cell {
    font-size: 0.72rem;
    color: #475569;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    min-height: 24px;
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.4;
  }

  .awf-text-cell:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .awf-text-cell.empty {
    color: #cbd5e1;
    font-style: italic;
    text-align: center;
    display: block;
  }

  .awf-text-input {
    width: 100%;
    font-size: 0.75rem;
    padding: 6px 8px;
    border: 1px solid #00B1B4;
    border-radius: 4px;
    outline: none;
    background: #fff;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    line-height: 1.4;
  }

  @keyframes awfFlash {
    0% {
      background: #ecfdf5;
    }

    100% {
      background: transparent;
    }
  }

  .awf-saved {
    animation: awfFlash 1s ease;
  }

  .awf-missing-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
  }

  /* AWF table uses colgroup for column sizing */
  #awf-table {
    table-layout: fixed;
    width: 100%;
  }

  #awf-table .awf-col-check {
    text-align: center;
    overflow: hidden;
  }

  /* ── Slide-Out Drawer ── */
  .gpa-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.25s;
  }

  .gpa-drawer-overlay.open {
    display: block;
    opacity: 1;
  }

  .gpa-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 95vw;
    background: #fff;
    z-index: 9999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px;
    display: none;
  }

  .gpa-drawer.open {
    display: block;
    transform: translateX(0);
  }

  .gpa-drawer-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .gpa-drawer-close:hover {
    background: #f1f5f9;
    color: #475569;
  }

  .gpa-drawer-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
  }

  .gpa-drawer-section:last-child {
    border-bottom: none;
  }

  .gpa-drawer-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
  }

  .gpa-drawer-field {
    margin-bottom: 10px;
  }

  .gpa-drawer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
  }

  .gpa-drawer-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
  }

  .gpa-drawer-input:focus {
    outline: none;
    border-color: #00B1B4;
  }

  .gpa-drawer-textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    min-height: 60px;
    resize: vertical;
  }

  .gpa-drawer-textarea:focus {
    outline: none;
    border-color: #00B1B4;
  }

  .gpa-drawer-readonly {
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 7px 0;
  }

  .gpa-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
  }

  .gpa-toggle-label {
    font-size: 0.85rem;
    color: #334155;
  }

  .gpa-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    cursor: pointer;
  }

  .gpa-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .gpa-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background 0.2s;
  }

  .gpa-toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
  }

  .gpa-toggle input:checked+.gpa-toggle-slider {
    background: #00B1B4;
  }

  .gpa-toggle input:checked+.gpa-toggle-slider::before {
    transform: translateX(18px);
  }

  /* ── Progress Admin ── */
  .gpa-progress-search-wrap {
    position: relative;
  }

  .gpa-progress-search-wrap .gpa-dir-search {
    width: 100%;
  }

  .gpa-progress-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
  }

  .gpa-progress-search-results.open {
    display: block;
  }

  .gpa-progress-search-item {
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
  }

  .gpa-progress-search-item:hover,
  .gpa-progress-search-item.active {
    background: #f0fdfa;
  }

  .gpa-progress-search-item .search-company {
    font-weight: 600;
  }

  .gpa-progress-search-item .search-detail {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1px;
  }

  .gpa-progress-search-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0fdfa;
    border: 1px solid #00B1B4;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0f172a;
    margin-top: 8px;
  }

  .gpa-progress-search-selected .search-clear {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
  }

  .gpa-progress-search-selected .search-clear:hover {
    color: #ef4444;
  }

  .gpa-progress-cat {
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
  }

  .gpa-progress-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
  }

  .gpa-progress-cat-header:hover {
    background: #f1f5f9;
  }

  .gpa-progress-cat-items {
    display: none;
    padding: 0 14px 10px;
  }

  .gpa-progress-cat.open .gpa-progress-cat-items {
    display: block;
  }

  .gpa-progress-cat .gpa-cat-chevron {
    display: inline-block;
    transition: transform 0.2s;
    margin-right: 6px;
    font-size: 0.7rem;
  }

  .gpa-progress-cat.open .gpa-cat-chevron {
    transform: rotate(90deg);
  }

  .gpa-progress-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.82rem;
  }

  .gpa-progress-item-row:last-child {
    border-bottom: none;
  }

  .gpa-progress-check-admin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s;
  }

  .gpa-progress-check-admin.checked {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
  }

  .gpa-progress-check-admin.auto {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
  }

  .gpa-progress-check-admin.overridden {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
  }

  .gpa-progress-item-name {
    flex: 1;
    color: #334155;
  }

  .gpa-progress-item-pts {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
  }

  .gpa-progress-item-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .gpa-progress-override-btn {
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.15s;
  }

  .gpa-progress-override-btn:hover {
    background: #f1f5f9;
  }

  .gpa-progress-override-btn.remove {
    border-color: #fca5a5;
    color: #dc2626;
  }

  /* ── Toast ── */
  .gpa-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }

  .gpa-toast.show {
    opacity: 1;
  }
