._scopeReview_1e50t_1 { display: flex; flex-direction: column; gap: 1rem; }
._header_1e50t_2 h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
._desc_1e50t_3 { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

._section_1e50t_5 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
._stepLabel_1e50t_6 { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.25rem; color: var(--primary); }
._stepDesc_1e50t_7 { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 0.75rem; }

._scopeTable_1e50t_9 { display: flex; flex-direction: column; gap: 0.5rem; }
._scopeRow_1e50t_10 { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem; }
._naRow_1e50t_11 { opacity: 0.4; }
._scopeRowMain_1e50t_12 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
._categoryBadge_1e50t_13 { font-size: 0.65rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 4px; background: var(--primary); color: #fff; text-transform: uppercase; white-space: nowrap; }
._scopeDesc_1e50t_14 { flex: 1; font-size: 0.82rem; }
._drawingRef_1e50t_15 { font-size: 0.65rem; color: var(--text-muted); }
._sourceBadge_1e50t_16 { font-size: 0.6rem; padding: 0.1rem 0.3rem; border-radius: 3px; background: var(--surface-hover); color: var(--text-muted); }
._scopeRowActions_1e50t_17 { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
._confirmCheck_1e50t_18, ._naCheck_1e50t_18 { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; cursor: pointer; }
._confirmCheck_1e50t_18 input, ._naCheck_1e50t_18 input { accent-color: var(--primary); }
._removeBtn_1e50t_20 { font-size: 0.7rem; padding: 0.15rem 0.4rem; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--text-muted); cursor: pointer; }

._methodSection_1e50t_22 { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.3rem; }
._methodLabel_1e50t_23 { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
._methodCheckboxes_1e50t_24 { display: flex; flex-wrap: wrap; gap: 0.3rem; }
._methodCheckItem_1e50t_25 { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; padding: 0.2rem 0.4rem; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; background: transparent; }
._methodCheckItem_1e50t_25:hover { background: var(--surface-hover); }
._methodChecked_1e50t_27 { background: rgba(59,130,246,0.1); border-color: var(--primary); }
._methodCheckItem_1e50t_25 input { accent-color: var(--primary); width: 14px; height: 14px; }
._methodCheckName_1e50t_29 { white-space: nowrap; }
._methodHazardsBadge_1e50t_30 { font-size: 0.6rem; padding: 0.05rem 0.25rem; border-radius: 3px; background: #fef2f2; color: #b91c1c; }
._methodSummary_1e50t_31 { margin-top: 0.3rem; display: flex; flex-direction: column; gap: 0.2rem; }
._methodDetail_1e50t_32 { font-size: 0.72rem; padding: 0.3rem 0.4rem; background: var(--surface-hover); border-radius: 4px; display: flex; flex-direction: column; gap: 0.2rem; }
._methodDesc_1e50t_33 { color: var(--text-muted); }
._methodHazards_1e50t_30 { color: #b91c1c; font-weight: 500; }
._methodEliminated_1e50t_35 { color: #166534; font-weight: 500; }

._addRow_1e50t_37 { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
._addSelect_1e50t_38 { padding: 0.3rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.78rem; background: var(--bg); color: var(--text); }
._addInput_1e50t_39 { flex: 1; padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.78rem; background: var(--bg); color: var(--text); }
._addBtn_1e50t_40 { padding: 0.3rem 0.6rem; border: 1px solid var(--primary); border-radius: var(--radius); background: transparent; color: var(--primary); font-size: 0.75rem; font-weight: 600; cursor: pointer; }
._addBtn_1e50t_40:disabled { opacity: 0.4; }

._summaryRow_1e50t_43 { display: flex; gap: 1rem; font-size: 0.8rem; margin-bottom: 0.5rem; }
._pendingWarn_1e50t_44 { color: #b91c1c; font-weight: 500; }
._proceedBtn_1e50t_45 { padding: 0.5rem 1.5rem; background: #16a34a; color: #fff; border: none; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
._proceedBtn_1e50t_45:hover { background: #15803d; }
._notReadyMsg_1e50t_47 { font-size: 0.8rem; color: var(--text-muted); padding: 0.4rem 0.6rem; background: #fef3c7; border: 1px solid #fbbf24; border-radius: var(--radius); }
._overlay_14h09_1 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

._panel_14h09_10 {
  width: 380px;
  max-width: 90vw;
  background: #fff;
  height: 100%;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: _slideIn_14h09_1 0.2s ease-out;
}

@keyframes _slideIn_14h09_1 {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

._header_14h09_26 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

._header_14h09_26 h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

._closeBtn_14h09_41 {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
}

._closeBtn_14h09_41:hover {
  background: #f3f4f6;
  color: #111827;
}

._body_14h09_56 {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

._sectionInfo_14h09_62 {
  margin-bottom: 20px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

._sectionInfo_14h09_62 h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: #111827;
}

._sectionMeta_14h09_76 {
  font-size: 0.75rem;
  color: #6b7280;
}

._journeyBadge_14h09_81 {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

._journey_on_site_14h09_91 { background: #dbeafe; color: #1e40af; }
._journey_desktop_review_14h09_92 { background: #fef3c7; color: #92400e; }
._journey_back_office_14h09_93 { background: #ede9fe; color: #5b21b6; }

._form_14h09_95 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

._fieldGroup_14h09_101 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._fieldGroup_14h09_101 label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

._fieldGroup_14h09_101 input,
._fieldGroup_14h09_101 select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #111827;
  background: #fff;
}

._fieldGroup_14h09_101 input:focus,
._fieldGroup_14h09_101 select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

._typeToggle_14h09_130 {
  display: flex;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
}

._typeBtn_14h09_138 {
  flex: 1;
  padding: 8px;
  border: none;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  color: #6b7280;
}

._typeBtn_14h09_138:first-child {
  border-right: 1px solid #d1d5db;
}

._typeBtnActive_14h09_153 {
  background: #3b82f6;
  color: #fff;
}

._actions_14h09_158 {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
}

._assignBtn_14h09_165 {
  flex: 1;
  padding: 10px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

._assignBtn_14h09_165:hover { background: #2563eb; }
._assignBtn_14h09_165:disabled { background: #93c5fd; cursor: not-allowed; }

._removeBtn_14h09_181 {
  padding: 10px 16px;
  background: #fff;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

._removeBtn_14h09_181:hover { background: #fef2f2; }

._currentAssignment_14h09_195 {
  margin-top: 16px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

._currentAssignment_14h09_195 h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #065f46;
}

._assignmentDetail_14h09_209 {
  font-size: 0.8rem;
  color: #374151;
  margin: 4px 0;
}

._assignmentDetail_14h09_209 strong {
  color: #111827;
}

._computedDate_14h09_219 {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

._checkGroup_14h09_225 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

._checkboxLabel_14h09_231 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #374151;
  cursor: pointer;
}

._checkboxLabel_14h09_231 input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
}

._datePickerWrap_14h09_247 {
  display: flex;
  gap: 0;
  align-items: stretch;
}

._datePickerWrap_14h09_247 input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

._calendarBtn_14h09_259 {
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-left: none;
  border-radius: 0 6px 6px 0;
  background: #f9fafb;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

._calendarBtn_14h09_259:hover {
  background: #e5e7eb;
}

/* ── Changelog ────────────────────────────────────────────────────────── */

._changeLogSection_14h09_276 {
  margin-top: 8px;
}

._changeLogTitle_14h09_280 {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

._changeLogScroll_14h09_288 {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

._changeLogEntry_14h09_300 {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.72rem;
}

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

._changeLogDate_14h09_313 {
  color: #9ca3af;
  font-size: 0.65rem;
}

._changeLogUser_14h09_318 {
  color: #6b7280;
  font-weight: 600;
}

._changeLogDesc_14h09_323 {
  color: #374151;
}

._saveBtn_14h09_327 {
  flex: 1;
  padding: 10px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

._saveBtn_14h09_327:hover { background: #15803d; }
._saveBtn_14h09_327:disabled { background: #86efac; color: #166534; cursor: default; }
/* ── SidebarItem ─────────────────────────────────────────────────────── */

._item_da1b5_3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  /* padding, border-radius, font-size set via inline style from config */
}

._item_da1b5_3:hover {
  background: var(--surface-hover);
}

._active_da1b5_23 {
  background: var(--surface-hover);
  border-color: var(--border);
}

._collapsed_da1b5_28 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0;
}

/* ── Title line ───────────────────────────────────────────────────────── */

._titleLine_da1b5_40 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.35;
  flex-wrap: wrap;
}

._title_da1b5_40 {
  flex: 1;
  min-width: 0;
}

._multiBadge_da1b5_53 {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background: var(--border);
  color: var(--text-muted);
}

/* ── Badge row ────────────────────────────────────────────────────────── */

._badgeRow_da1b5_65 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

._statusDot_da1b5_73 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
}
._status_assigned_da1b5_80 { background: #3b82f6; }
._status_in_progress_da1b5_81 { background: #f59e0b; }
._status_submitted_for_review_da1b5_82 { background: #8b5cf6; }
._status_changes_requested_da1b5_83 { background: #ef4444; }
._status_approved_da1b5_84 { background: #22c55e; }
._status_rejected_da1b5_85 { background: #ef4444; }
._status_unassigned_da1b5_86 { background: var(--text-muted); }

._assigneeName_da1b5_88 {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

._typeBadge_da1b5_96 {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  background: var(--surface-hover);
  color: var(--text-muted);
}

._journeyBadge_da1b5_106 {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  border: 1px solid;
  color: var(--text-muted);
}

/* ── Metrics & due date ───────────────────────────────────────────────── */

._metrics_da1b5_118 {
  font-size: 0.7rem;
  color: var(--text-muted);
}

._dueLine_da1b5_123 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
}

._dueDate_da1b5_130 {
  color: var(--text-muted);
}

._dueStatusBadge_da1b5_134 {
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
}

._reminderBadge_da1b5_140 {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}
._overlay_z1epn_1 { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1000; display: flex; justify-content: flex-end; }
._panel_z1epn_2 { width: 420px; max-width: 95vw; background: #fff; height: 100%; box-shadow: -4px 0 24px rgba(0,0,0,0.15); display: flex; flex-direction: column; animation: _slideIn_z1epn_1 0.2s ease-out; }
@keyframes _slideIn_z1epn_1 { from { transform: translateX(100%); } to { transform: translateX(0); } }

._header_z1epn_5 { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
._header_z1epn_5 h3 { margin: 0; font-size: 1rem; font-weight: 600; color: #111827; }
._closeBtn_z1epn_7 { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #6b7280; padding: 4px; border-radius: 4px; }
._closeBtn_z1epn_7:hover { background: #f3f4f6; color: #111827; }

._body_z1epn_10 { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }

._depInfo_z1epn_12 { padding: 12px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 6px; }
._depInfo_z1epn_12 h4 { margin: 0; font-size: 0.9rem; color: #111827; }
._statusBadge_z1epn_14 { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; border: 1px solid; align-self: flex-start; }

._fieldGroup_z1epn_16 { display: flex; flex-direction: column; gap: 4px; }
._fieldGroup_z1epn_16 label { font-size: 0.8rem; font-weight: 600; color: #374151; }
._fieldGroup_z1epn_16 input, ._fieldGroup_z1epn_16 select, ._fieldGroup_z1epn_16 textarea { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.85rem; color: #111827; background: #fff; }
._fieldGroup_z1epn_16 input:focus, ._fieldGroup_z1epn_16 select:focus, ._fieldGroup_z1epn_16 textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
._fieldGroup_z1epn_16 textarea { resize: vertical; }

._typeToggle_z1epn_22 { display: flex; gap: 0; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
._typeBtn_z1epn_23 { flex: 1; padding: 8px; border: none; background: #fff; font-size: 0.8rem; cursor: pointer; color: #6b7280; transition: background 0.15s; }
._typeBtn_z1epn_23:first-child { border-right: 1px solid #d1d5db; }
._typeBtnActive_z1epn_25 { background: #3b82f6; color: #fff; }

._actionsRow_z1epn_27 { display: flex; gap: 6px; flex-wrap: wrap; }
._actionBtn_z1epn_28 { padding: 6px 12px; font-size: 0.78rem; font-weight: 600; border: 1px solid #3b82f6; border-radius: 6px; background: #eff6ff; color: #1d4ed8; cursor: pointer; transition: background 0.15s; }
._actionBtn_z1epn_28:hover { background: #dbeafe; }

._dateWrap_z1epn_31 { display: flex; gap: 0; }
._dateWrap_z1epn_31 input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
._calBtn_z1epn_33 { padding: 0 10px; border: 1px solid #d1d5db; border-left: none; border-radius: 0 6px 6px 0; background: #f9fafb; font-size: 1rem; cursor: pointer; }
._calBtn_z1epn_33:hover { background: #e5e7eb; }
._computedDate_z1epn_35 { font-size: 0.75rem; color: #6b7280; }

._financialSection_z1epn_37 { padding: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
._sectionLabel_z1epn_38 { font-size: 0.8rem; font-weight: 600; color: #374151; }
._fieldRow_z1epn_39 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
._amountWrap_z1epn_40 { display: flex; gap: 0; }
._amountWrap_z1epn_40 select { border-top-right-radius: 0; border-bottom-right-radius: 0; width: 70px; }
._amountWrap_z1epn_40 input { flex: 1; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: none; }
._currencySelect_z1epn_43 { padding: 8px 4px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.85rem; color: #111827; background: #f9fafb; }

._changeLogSection_z1epn_45 { display: flex; flex-direction: column; gap: 4px; }
._changeLogScroll_z1epn_46 { max-height: 160px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
._logEntry_z1epn_47 { display: flex; flex-direction: column; gap: 1px; padding: 4px 6px; border-bottom: 1px solid #e5e7eb; font-size: 0.72rem; }
._logEntry_z1epn_47:last-child { border-bottom: none; }
._logDate_z1epn_49 { color: #9ca3af; font-size: 0.65rem; }
._logUser_z1epn_50 { color: #6b7280; font-weight: 600; }
._logDesc_z1epn_51 { color: #374151; }

._footer_z1epn_53 { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid #e5e7eb; }
._saveBtn_z1epn_54 { flex: 1; padding: 10px; background: #16a34a; color: #fff; border: none; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
._saveBtn_z1epn_54:hover { background: #15803d; }
._saveBtn_z1epn_54:disabled { background: #86efac; color: #166534; cursor: default; }
._removeBtn_z1epn_57 { padding: 10px 16px; background: #fff; color: #dc2626; border: 1px solid #fca5a5; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
._removeBtn_z1epn_57:hover { background: #fef2f2; }

/* N/A row styling for the table */
._naRow_z1epn_61 { opacity: 0.45; text-decoration: line-through; }
._matrix_1yka3_1 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
._compact_1yka3_2 ._grid_1yka3_2 { gap: 1px; }
._yLabel_1yka3_3 { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); writing-mode: vertical-lr; transform: rotate(180deg); }
._xLabel_1yka3_4 { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
._grid_1yka3_2 { display: grid; grid-template-columns: auto repeat(5, 1fr); gap: 2px; }
._compact_1yka3_2 ._grid_1yka3_2 { grid-template-columns: repeat(5, 1fr); }
._corner_1yka3_7 { width: 24px; }
._headerCell_1yka3_8 { text-align: center; font-size: 0.65rem; font-weight: 600; color: var(--text-muted); padding: 2px; }
._footerCell_1yka3_9 { text-align: center; font-size: 0.65rem; color: var(--text-muted); padding: 2px; }
._rowLabel_1yka3_10 { display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 600; color: var(--text-muted); width: 24px; }
._cell_1yka3_11 { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: opacity 0.15s; }
._compact_1yka3_2 ._cell_1yka3_11 { width: 24px; height: 24px; }
._clickable_1yka3_13 { cursor: pointer; }
._clickable_1yka3_13:hover { opacity: 0.8; }
._count_1yka3_15 { font-size: 0.75rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
._compact_1yka3_2 ._count_1yka3_15 { font-size: 0.6rem; }
._overlay_zcolb_1 { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1000; display: flex; justify-content: flex-end; }
._panel_zcolb_2 { width: 480px; max-width: 95vw; background: #fff; height: 100%; box-shadow: -4px 0 24px rgba(0,0,0,0.15); display: flex; flex-direction: column; animation: _slideIn_zcolb_1 0.2s ease-out; }
@keyframes _slideIn_zcolb_1 { from { transform: translateX(100%); } to { transform: translateX(0); } }
._header_zcolb_4 { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #e5e7eb; }
._header_zcolb_4 h3 { margin: 0; font-size: 1rem; font-weight: 600; }
._closeBtn_zcolb_6 { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #6b7280; }
._body_zcolb_7 { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
._bulkHint_zcolb_8 {
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
}
._hazardInfo_zcolb_18 { padding: 10px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
._hazardInfo_zcolb_18 h4 { margin: 0; font-size: 0.9rem; flex: 1; }
._refBadge_zcolb_20 { font-size: 0.65rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #e5e7eb; color: #374151; }
._aiBadge_zcolb_21 { font-size: 0.65rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #dbeafe; color: #1e40af; }
._field_zcolb_22 { display: flex; flex-direction: column; gap: 3px; }
._field_zcolb_22 label { font-size: 0.78rem; font-weight: 600; color: #374151; }
._field_zcolb_22 input, ._field_zcolb_22 select, ._field_zcolb_22 textarea { padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.83rem; color: #111827; background: #fff; }
._field_zcolb_22 input:focus, ._field_zcolb_22 select:focus, ._field_zcolb_22 textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
._field_zcolb_22 textarea { resize: vertical; }

._ratingSection_zcolb_28 { padding: 10px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; }
._sectionLabel_zcolb_29 { display: block; font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
._ratingRow_zcolb_30 { display: flex; gap: 8px; align-items: flex-end; }
._ratingField_zcolb_31 { flex: 1; display: flex; flex-direction: column; gap: 2px; }
._ratingField_zcolb_31 label { font-size: 0.7rem; color: #6b7280; }
._ratingField_zcolb_31 select { padding: 6px 4px; font-size: 0.78rem; }
._scoreBadge_zcolb_34 { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0; }

._novelSection_zcolb_36 { padding: 10px; background: #fef3c7; border-radius: 8px; border: 1px solid #fbbf24; }
._checkLabel_zcolb_37 { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 500; cursor: pointer; }
._checkLabel_zcolb_37 input { accent-color: #f59e0b; }
._novelInput_zcolb_39 { margin-top: 8px; width: 100%; padding: 6px 8px; border: 1px solid #fbbf24; border-radius: 6px; font-size: 0.8rem; background: #fff; }

._historySection_zcolb_41 { border-top: 1px solid #e5e7eb; padding-top: 8px; }
._historyList_zcolb_42 { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; }
._historyEntry_zcolb_43 { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: #6b7280; padding: 3px 0; border-bottom: 1px solid #f3f4f6; }
._historyDate_zcolb_44 { color: #9ca3af; font-size: 0.65rem; }
._historyScore_zcolb_45 { font-weight: 600; }

._footer_zcolb_47 { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid #e5e7eb; }
._saveBtn_zcolb_48 { flex: 1; padding: 10px; background: #16a34a; color: #fff; border: none; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
._saveBtn_zcolb_48:hover { background: #15803d; }
._draPanel_iyr4w_1 { display: flex; flex-direction: column; gap: 1rem; }

/* ── Init panel ──────────────────────────────────────────────────────── */
._initPanel_iyr4w_4 { max-width: 480px; padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
._initPanel_iyr4w_4 h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
._desc_iyr4w_6 { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
._siteTypeSelect_iyr4w_7 { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
._siteTypeBtn_iyr4w_8 { flex: 1; padding: 0.6rem; border: none; background: transparent; font-size: 0.85rem; cursor: pointer; color: var(--text-muted); }
._siteTypeBtn_iyr4w_8:not(:last-child) { border-right: 1px solid var(--border); }
._siteTypeBtnActive_iyr4w_10 { background: var(--primary); color: var(--text-inverse); }
._initBtn_iyr4w_11 { width: 100%; padding: 0.6rem; background: var(--primary); color: var(--text-inverse); border: none; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer; }

/* ── Stage progress bar ──────────────────────────────────────────────── */
._stageBar_iyr4w_14 { display: flex; align-items: center; gap: 0; padding: 0.5rem 0; }
._stageStep_iyr4w_15 { display: flex; align-items: center; gap: 0.3rem; flex: 1; position: relative; }
._stageStep_iyr4w_15::after { content: ''; flex: 1; height: 2px; background: var(--border); margin: 0 0.3rem; }
._stageStep_iyr4w_15:last-child::after { display: none; }
._stageStepActive_iyr4w_18::after { background: var(--primary); }
._stageDot_iyr4w_19 { width: 12px; height: 12px; border-radius: 50%; background: var(--border); flex-shrink: 0; border: 2px solid var(--border); }
._stageStepActive_iyr4w_18 ._stageDot_iyr4w_19 { background: var(--primary); border-color: var(--primary); }
._stageStepCurrent_iyr4w_21 ._stageDot_iyr4w_19 { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-dim); }
._stageLabel_iyr4w_22 { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
._stageStepCurrent_iyr4w_21 ._stageLabel_iyr4w_22 { font-weight: 700; color: var(--primary); }
._stageGuidance_iyr4w_24 { font-size: 0.8rem; color: var(--text-muted); padding: 0.5rem 0.75rem; background: var(--surface-hover); border-radius: var(--radius); margin: -0.5rem 0 0; }

/* ── Summary cards ───────────────────────────────────────────────────── */
._summaryRow_iyr4w_27 { display: flex; gap: 0.75rem; flex-wrap: wrap; }
._summaryCard_iyr4w_28 { flex: 1; min-width: 80px; padding: 0.5rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; }
._summaryValue_iyr4w_29 { font-size: 1.2rem; font-weight: 700; color: var(--text); }
._summaryLabel_iyr4w_30 { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }
._summaryDelta_iyr4w_31 { font-size: 0.7rem; color: var(--text-muted); }

/* ── Risk matrix row ─────────────────────────────────────────────────── */
._matrixRow_iyr4w_34 { display: flex; gap: 2rem; flex-wrap: wrap; padding: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
._matrixTitle_iyr4w_35 { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* ── Filters ─────────────────────────────────────────────────────────── */
._filterRow_iyr4w_38 { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
._filterRow_iyr4w_38 select { padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8rem; background: var(--bg); color: var(--text); }
._novelFilter_iyr4w_40 { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; cursor: pointer; }
._novelFilter_iyr4w_40 input { accent-color: #f59e0b; }

/* ── Hazard table ────────────────────────────────────────────────────── */
._tableWrap_iyr4w_44 { overflow-x: auto; }
._table_iyr4w_44 { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
._table_iyr4w_44 th { text-align: left; padding: 0.45rem 0.6rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid var(--border); font-size: 0.75rem; }
._table_iyr4w_44 td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border); }
._table_iyr4w_44 tbody tr:hover { background: var(--surface-hover); }
._refCell_iyr4w_49 { font-weight: 600; color: var(--text-muted); width: 40px; }
._checkCol_iyr4w_50 { width: 32px; text-align: center; vertical-align: middle; }
._rowSelected_iyr4w_51 { background: rgba(99, 102, 241, 0.08) !important; }
._controlsCell_iyr4w_52 { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 0.75rem; }
._naRow_iyr4w_53 { opacity: 0.35; text-decoration: line-through; }
._naRow_iyr4w_53:hover { opacity: 0.5; }

._statusBadge_iyr4w_56 { font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 8px; }
._statusBadge_iyr4w_56[data-status="identified"] { background: var(--warning-soft); color: var(--warning); }
._statusBadge_iyr4w_56[data-status="assessed"] { background: var(--primary-soft); color: var(--primary); }
._statusBadge_iyr4w_56[data-status="controlled"] { background: var(--success-soft); color: var(--success); }
._statusBadge_iyr4w_56[data-status="eliminated"] { background: var(--success-soft); color: var(--success); }
._statusBadge_iyr4w_56[data-status="accepted"] { background: var(--primary-soft); color: var(--primary); }
._statusBadge_iyr4w_56[data-status="na"] { background: var(--surface-hover); color: var(--text-muted); }

._riskBadge_iyr4w_64 { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 22px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; color: var(--text-inverse); }
._novelBadge_iyr4w_65 { font-size: 0.6rem; font-weight: 600; padding: 2px 6px; border-radius: 8px; background: var(--warning-soft); color: var(--warning); border: 1px solid var(--border-strong); }

/* ── Stage advance ───────────────────────────────────────────────────── */
._advanceSection_iyr4w_68 { display: flex; gap: 0.5rem; align-items: center; padding: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
._advanceNotes_iyr4w_69 { flex: 1; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8rem; background: var(--bg); color: var(--text); }
._advanceBtn_iyr4w_70 { padding: 0.4rem 1rem; background: var(--primary); color: var(--text-inverse); border: none; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
._saveBtn_iyr4w_71 { padding: 0.4rem 1rem; background: var(--success); color: var(--text-inverse); border: none; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; cursor: pointer; }
._exportBtn_iyr4w_72 { padding: 0.4rem 1rem; background: var(--primary); color: var(--text-inverse); border: none; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
._exportBtn_iyr4w_72:hover { background: var(--primary-hover); }

._bulkActionRow_iyr4w_75 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
._bulkCount_iyr4w_85 { font-size: 0.85rem; font-weight: 600; color: var(--primary); flex: 1; }
._bulkOpenBtn_iyr4w_86 {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
._bulkOpenBtn_iyr4w_86:hover { background: var(--primary-hover); }
._bulkClearBtn_iyr4w_97 {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
}
._bulkClearBtn_iyr4w_97:hover { background: var(--primary-soft); }

/* ── Drawing + Photo info ────────────────────────────────────────────── */
._drawingInfo_iyr4w_110 { padding: 0.4rem 0.75rem; background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8rem; color: var(--primary); }
._drawingInfo_iyr4w_110 strong { margin-right: 0.3rem; }

._photoUrlSection_iyr4w_113 { display: flex; flex-direction: column; gap: 0.25rem; }
._photoUrlLabel_iyr4w_114 { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
._photoUrlRow_iyr4w_115 { display: flex; gap: 0.5rem; align-items: center; }
._photoUrlInput_iyr4w_116 { flex: 1; padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8rem; background: var(--bg); color: var(--text); }
._photoUrlInput_iyr4w_116:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--accent-dim); }
._photoUrlOk_iyr4w_118 { font-size: 0.7rem; font-weight: 600; color: var(--success); padding: 0.2rem 0.5rem; background: var(--success-soft); border-radius: 8px; }

/* ── AI Analysis ─────────────────────────────────────────────────────── */
._aiSection_iyr4w_121 { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
._resetRow_iyr4w_122 { display: flex; align-items: center; gap: 0.5rem; }
._resetBtn_iyr4w_123 { padding: 0.3rem 0.8rem; font-size: 0.75rem; border: 1px solid var(--danger); border-radius: var(--radius); background: transparent; color: var(--danger); cursor: pointer; }
._resetBtn_iyr4w_123:hover { background: var(--danger-soft); }
._resetHint_iyr4w_125 { font-size: 0.7rem; color: var(--text-muted); font-style: italic; }

._heuristicBtn_iyr4w_127 { padding: 0.4rem 1rem; background: var(--primary); color: var(--text-inverse); border: none; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
._heuristicBtn_iyr4w_127:hover { background: var(--primary-hover); }
._aiBtn_iyr4w_129 { padding: 0.4rem 1rem; background: var(--primary); color: var(--text-inverse); border: none; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
._aiBtn_iyr4w_129:hover { background: var(--primary-hover); }
._aiBtn_iyr4w_129:disabled { opacity: 0.55; cursor: wait; }
._aiNotice_iyr4w_132 { font-size: 0.7rem; color: var(--text-muted); font-style: italic; }
._aiSuccess_iyr4w_133 { padding: 0.5rem 0.75rem; background: var(--success-soft); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8rem; color: var(--success); }

/* ── Confinement violation alert ─────────────────────────────────────── */
._violationAlert_iyr4w_136 {
  padding: 0.75rem 1rem;
  background: var(--danger-soft);
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 0.82rem;
}
._violationAlert_iyr4w_136 strong { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--danger); }
._violationAlert_iyr4w_136 p { margin: 0 0 0.4rem; }
._violationAlert_iyr4w_136 ul { margin: 0; padding-left: 1.2rem; }
._violationAlert_iyr4w_136 li { margin-bottom: 0.2rem; }
._violationAlert_iyr4w_136 em { font-size: 0.7rem; color: var(--text-muted); }
/* PhaseGatePanel — shared phase gate component styles.
   Uses CSS custom properties so each phase app can theme it
   via its own :root definitions. */

._panel_1w69a_5 {
  background: var(--surface, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  font-family: inherit;
}

/* ── Header ── */
._header_1w69a_14 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border, #334155);
  background: var(--surface-alt, #243044);
}
._header_1w69a_14:hover { background: var(--surface-hover, #2d3a52); }

._headerLeft_1w69a_26 { display: flex; align-items: center; gap: 10px; }
._title_1w69a_27 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted, #94a3b8); }
._arrow_1w69a_28 { font-size: 13px; font-weight: 600; color: var(--text, #e2e8f0); }
._arrowIcon_1w69a_29 { color: var(--primary, #6366f1); margin: 0 3px; }

._headerRight_1w69a_31 { display: flex; align-items: center; gap: 8px; }
._badgeReady_1w69a_32 {
  padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
  background: #d1fae5; color: #065f46;
}
._badgeBlocked_1w69a_36 {
  padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
  background: #fee2e2; color: #991b1b;
}
._chevron_1w69a_40 { background: none; border: none; color: var(--text-muted, #94a3b8); font-size: 10px; cursor: pointer; padding: 0; }

/* ── Progress bar ── */
._progressBar_1w69a_43 {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
._progressBar_1w69a_43::-webkit-scrollbar { display: none; }

._progressStep_1w69a_53 {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
._progressDot_1w69a_59 {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border, #334155);
  border: 2px solid var(--border, #334155);
  flex-shrink: 0;
}
._progressLine_1w69a_65 {
  width: 32px; height: 2px;
  background: var(--border, #334155);
}
._progressLabel_1w69a_69 {
  display: none;
}
._progressCurrent_1w69a_72 ._progressDot_1w69a_59 {
  background: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
._progressCurrent_1w69a_72 ._progressLabel_1w69a_69 {
  display: block;
  position: absolute;
  font-size: 9px;
  color: var(--primary, #6366f1);
  white-space: nowrap;
  margin-top: 18px;
}
._progressDone_1w69a_85 ._progressDot_1w69a_59 { background: #22c55e; border-color: #22c55e; }
._progressDone_1w69a_85 ._progressLine_1w69a_65 { background: #22c55e; }

/* ── Check list ── */
._checkList_1w69a_89 { padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; }

._checkGroup_1w69a_91 { display: flex; flex-direction: column; gap: 3px; }
._groupLabel_1w69a_92 {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted, #94a3b8);
  padding: 4px 0 2px;
}

._checkRow_1w69a_98 {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
  transition: background 0.1s;
}
._checkRow_1w69a_98:hover { filter: brightness(1.1); }

._checkPassed_1w69a_105  { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
._checkBlocking_1w69a_106{ background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
._checkWarning_1w69a_107 { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.2); }

._checkIcon_1w69a_109 { font-size: 13px; flex-shrink: 0; padding-top: 1px; }
._checkPassed_1w69a_105  ._checkIcon_1w69a_109 { color: #22c55e; }
._checkBlocking_1w69a_106 ._checkIcon_1w69a_109 { color: #ef4444; }
._checkWarning_1w69a_107  ._checkIcon_1w69a_109 { color: #eab308; }

._checkBody_1w69a_114 { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
._checkLabel_1w69a_115 { font-size: 12px; font-weight: 600; color: var(--text, #e2e8f0); }
._checkDetail_1w69a_116 { font-size: 11px; color: var(--text-muted, #94a3b8); }
._checkDesc_1w69a_117 { font-size: 11px; color: var(--text-muted, #94a3b8); line-height: 1.5; margin: 4px 0 0; }

._checkNavRow_1w69a_119 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
._checkNavLink_1w69a_125 {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary, #6366f1);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
._checkNavLink_1w69a_125:hover { opacity: 0.88; }
a._checkNavLink_1w69a_125 { display: inline; }

._checkChevron_1w69a_139 { font-size: 9px; color: var(--text-muted, #94a3b8); flex-shrink: 0; align-self: center; }

/* ── Actions ── */
._actions_1w69a_142 { padding: 10px 14px 12px; border-top: 1px solid var(--border, #334155); }

._btnAdvance_1w69a_144 {
  width: 100%; padding: 9px 0; border-radius: 6px;
  border: none; background: var(--primary, #6366f1); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s;
}
._btnAdvance_1w69a_144:hover { opacity: 0.9; }
._btnAdvance_1w69a_144:disabled { opacity: 0.4; cursor: not-allowed; }

._blockedRow_1w69a_153 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
._blockedMsg_1w69a_154 { font-size: 12px; color: var(--text-muted, #94a3b8); }
._btnOverrideLink_1w69a_155 {
  background: none; border: none; color: #f59e0b;
  font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline;
  white-space: nowrap;
}
._btnOverrideLink_1w69a_155:hover { color: #d97706; }

._confirmedMsg_1w69a_162 { font-size: 13px; font-weight: 600; color: #22c55e; text-align: center; padding: 4px 0; }

/* ── Override area ── */
._overrideArea_1w69a_165 { padding: 10px 14px 12px; border-top: 1px solid var(--border, #334155); }
._overrideWarning_1w69a_166 {
  font-size: 12px; color: #f59e0b; margin-bottom: 8px; line-height: 1.5;
}
._overrideInput_1w69a_169 {
  width: 100%; padding: 7px 9px; border: 1px solid var(--border, #334155);
  border-radius: 6px; background: var(--bg, #0f172a); color: var(--text, #e2e8f0);
  font-size: 12px; resize: none; box-sizing: border-box;
}
._overrideInput_1w69a_169:focus { outline: none; border-color: #f59e0b; }
._overrideActions_1w69a_175 { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
._btnCancel_1w69a_176 {
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--border, #334155); background: transparent;
  color: var(--text-muted, #94a3b8); font-size: 12px; cursor: pointer;
}
._btnCancel_1w69a_176:hover { background: var(--surface-hover, #2d3a52); }
._btnOverride_1w69a_155 {
  padding: 6px 14px; border-radius: 6px;
  border: none; background: #f59e0b; color: #000;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
._btnOverride_1w69a_155:disabled { opacity: 0.4; cursor: not-allowed; }
._btnOverride_1w69a_155:not(:disabled):hover { background: #d97706; }
._overlay_zas5x_1 {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: var(--screen-loader-bg, rgba(248, 250, 252, 0.85));
  backdrop-filter: blur(6px);
}

._fullViewport_zas5x_10 {
  position: fixed;
  inset: 0;
}

._contained_zas5x_15 {
  position: absolute;
  inset: 0;
  min-height: 12rem;
}

._inner_zas5x_21 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

._spinner_zas5x_29 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--screen-loader-track, #e2e8f0);
  border-top-color: var(--screen-loader-accent, #6366f1);
  animation: _screenLoaderSpin_zas5x_1 0.75s linear infinite;
}

._label_zas5x_38 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--screen-loader-text, #475569);
  text-align: center;
  max-width: 16rem;
}

@keyframes _screenLoaderSpin_zas5x_1 {
  to {
    transform: rotate(360deg);
  }
}
._panel_68bdm_1 {
  max-width: 52rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 8px);
  background: var(--surface, #fff);
  padding: 0.75rem;
}

._title_68bdm_10 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}

._hint_68bdm_16 {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

._actions_68bdm_23 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

._selectBtn_68bdm_31 {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 6px);
  background: var(--surface, #fff);
  color: var(--text-muted, #64748b);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

._selectBtn_68bdm_31:hover {
  background: var(--surface-hover, #f1f5f9);
  color: var(--text, #0f172a);
}

._primaryBtn_68bdm_47 {
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--primary, #6366f1);
  border-radius: var(--radius, 6px);
  background: var(--primary, #6366f1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

._primaryBtn_68bdm_47:hover {
  filter: brightness(1.05);
}

._message_68bdm_63 {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

._assignLead_68bdm_69 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}

._table_68bdm_75 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
}

._table_68bdm_75 th {
  text-align: left;
  padding: 0.35rem 0.45rem;
  background: var(--surface-hover, #f1f5f9);
  border-bottom: 1px solid var(--border, #e2e8f0);
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

._table_68bdm_75 td {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  color: var(--text, #0f172a);
}

._journeyBadge_68bdm_96 {
  display: inline-block;
  padding: 0.14rem 0.42rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: var(--surface-hover, #f1f5f9);
  color: var(--text-muted, #64748b);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
._container_13nhu_1 {
  margin: 0.5rem 0;
  padding: 0;
}

._buttonRow_13nhu_6 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

._fillReport_13nhu_13 {
  margin-top: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: #e8f4fd;
  border: 1px solid #90cdf4;
  border-radius: 6px;
  color: #1a365d;
  font-size: 0.825rem;
}

._buttonOutline_13nhu_23 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #667eea;
  background: #fff;
  border: 2px solid #667eea;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

._buttonOutline_13nhu_23:hover:not(:disabled) {
  background: #f0f0ff;
}

._buttonOutline_13nhu_23:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

._button_13nhu_6 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

._button_13nhu_6:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

._button_13nhu_6:active:not(:disabled) {
  transform: translateY(0);
}

._button_13nhu_6:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

._verifying_13nhu_77 {
  padding: 0.75rem 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  color: #856404;
  font-size: 0.875rem;
  font-weight: 600;
}

._result_13nhu_87 {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

._resultSuccess_13nhu_94 {
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
}

._resultError_13nhu_100 {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

._resultHeader_13nhu_106 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

._detailsButton_13nhu_113 {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
  font-weight: 600;
}

._detailsButton_13nhu_113:hover {
  background: rgba(0, 0, 0, 0.15);
}

._closeButton_13nhu_128 {
  padding: 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

._closeButton_13nhu_128:hover {
  opacity: 1;
}

._failedList_13nhu_143 {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

._failedList_13nhu_143 p {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

._failedList_13nhu_143 ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

._failedList_13nhu_143 li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

._failedList_13nhu_143 code {
  padding: 0.125rem 0.25rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  font-size: 0.8125rem;
  font-family: 'Courier New', monospace;
}
._section_3ud93_1 {
  margin-bottom: 1.25rem;
}

._sectionTitle_3ud93_5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--text, inherit);
}

._lead_3ud93_12 {
  font-size: 0.85rem;
  color: var(--text-muted, #666);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

._formGrid_3ud93_19 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

._field_3ud93_25 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

._label_3ud93_31 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text, inherit);
}

._input_3ud93_37,
._select_3ud93_38,
._textarea_3ud93_39 {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  background: var(--bg, #fff);
  color: var(--text, inherit);
  font-size: 0.875rem;
  box-sizing: border-box;
}

._textarea_3ud93_39 {
  min-height: 3rem;
  resize: vertical;
}

._hint_3ud93_55 {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
  margin: 0;
}

._error_3ud93_61 {
  color: var(--danger, #b00020);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

._actions_3ud93_67 {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

._button_3ud93_74 {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border, #ccc);
  background: var(--surface-2, #f4f4f4);
  color: var(--text, inherit);
  font-size: 0.875rem;
  cursor: pointer;
}

._button_3ud93_74:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

._buttonPrimary_3ud93_89 {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--primary, #2563eb);
  color: var(--on-primary, #fff);
  font-size: 0.875rem;
  cursor: pointer;
}

._buttonPrimary_3ud93_89:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

._segmented_3ud93_104 {
  display: inline-flex;
  border: 1px solid var(--border, #ccc);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

._segmentedBtn_3ud93_112 {
  border: 0;
  background: var(--surface-2, #f4f4f4);
  color: var(--text, inherit);
  font-size: 0.8rem;
  padding: 0.38rem 0.75rem;
  cursor: pointer;
}

._segmentedBtnActive_3ud93_121 {
  background: var(--primary, #2563eb);
  color: var(--on-primary, #fff);
}

._workspacePage_3ud93_126 {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

._formGridTwo_3ud93_132 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

._inlineField_3ud93_138 {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

._dialogOverlay_3ud93_146 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
  z-index: 9999;
}

._dialogCard_3ud93_155 {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(80vh, 700px);
  overflow: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #ccc);
  border-radius: 10px;
  padding: 0.85rem;
}

._dialogResults_3ud93_165 {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

._resultRow_3ud93_172 {
  text-align: left;
  border: 1px solid var(--border, #ccc);
  border-radius: 8px;
  background: var(--bg, #fff);
  color: var(--text, inherit);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}
._filterBar_585u8_1 {
  display: flex;
  gap: 4px;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  flex-wrap: wrap;
}

._filterBtn_585u8_9 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  user-select: none;
}
._filterBtn_585u8_9:hover {
  background: var(--surface-hover, #f1f5f9);
}

._filterBtn_585u8_9._active_585u8_30 {
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

._filterBtn_585u8_9._allActive_585u8_36 {
  background: #475569;
  border-color: #334155;
  color: #fff;
}

._dot_585u8_42 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Journey-specific active styles — colours match sidebar left-border accents */
._filterBtn_585u8_9._onSiteActive_585u8_50 {
  background: #16a34a;
  border-color: #15803d;
}
._dotOnSite_585u8_54 { background: #16a34a; }

._filterBtn_585u8_9._desktopActive_585u8_56 {
  background: #2563eb;
  border-color: #1d4ed8;
}
._dotDesktop_585u8_60 { background: #2563eb; }

._filterBtn_585u8_9._backOfficeActive_585u8_62 {
  background: #7c3aed;
  border-color: #6d28d9;
}
._dotBackOffice_585u8_66 { background: #7c3aed; }

._count_585u8_68 {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.85;
}
/* Canonical programme / project / site summary — uses design tokens for light/dark */

._projectContextCard_as5mq_3 {
  margin-bottom: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--border) 74%, var(--primary) 26%);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-elevated) 82%, var(--primary) 18%) 0%,
    color-mix(in srgb, var(--surface-elevated) 93%, var(--primary) 7%) 100%
  );
  box-shadow: var(--shadow-md);
  padding: 0.72rem 0.8rem;
}

._projectContextRow_as5mq_17 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

._projectContextItem_as5mq_23 {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

._projectContextLabel_as5mq_30 {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

._projectContextValue_as5mq_38 {
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._projectContextAddress_as5mq_46 {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed color-mix(in srgb, var(--border) 76%, var(--primary) 24%);
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

._projectContextAddress_as5mq_46 ._projectContextValue_as5mq_38 {
  white-space: normal;
}
._container_1yrty_1 {
  display: grid;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

._leftPane_1yrty_8 {
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
}

._handle_1yrty_14 {
  cursor: col-resize;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

._handle_1yrty_14:hover {
  background: var(--accent, #3b82f6);
}

._handleBar_1yrty_27 {
  width: 2px;
  height: 32px;
  background: var(--text-muted);
  border-radius: 1px;
  opacity: 0.5;
}

._handle_1yrty_14:hover ._handleBar_1yrty_27 {
  background: #fff;
  opacity: 1;
}

._rightPane_1yrty_40 {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
/* Phase sidebar chrome — must match Planning workspace (collapsible rail + title + journey breadcrumb) */

._sidebar_1ghsx_3 {
  flex: 0 0 70px;
  width: 70px;
  min-height: 100vh;
  align-self: stretch;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: width 0.25s ease, flex 0.25s ease;
  display: flex;
  flex-direction: column;
}

._sidebar_1ghsx_3._open_1ghsx_16 {
  flex: 0 0 280px;
  width: 280px;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
  position: relative;
}

._sidebarContent_1ghsx_23 {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  min-width: 0;
}

._sidebarHeaderRow_1ghsx_30 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
}

._sidebarTitle_1ghsx_38 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._processLabel_1ghsx_47 {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0 0.5rem 0.25rem;
}

._sidebarToggleBtn_1ghsx_58 {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

._sidebarToggleBtn_1ghsx_58:hover {
  background: var(--surface-hover);
  color: var(--text);
}

._sidebarCollapsedHeader_1ghsx_79 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

._sidebarCollapsedLabel_1ghsx_88 {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}

._sidebarNav_1ghsx_99 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.25rem;
}

._journeyDimmed_1ghsx_106 {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}
._card_wj9pr_1 {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

._cardNa_wj9pr_12 {
  opacity: 0.97;
}

._headerRow_wj9pr_16 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

._title_wj9pr_24 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

._signActions_wj9pr_33 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

._iconButton_wj9pr_40 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

._iconButton_wj9pr_40:hover:not(:disabled) {
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
  border-color: color-mix(in srgb, var(--border) 55%, var(--accent) 45%);
  color: var(--accent);
}

._iconButton_wj9pr_40:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

._iconButton_wj9pr_40:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

._iconButtonPen_wj9pr_74 {
  border-color: color-mix(in srgb, var(--border) 65%, #16a34a 35%);
  color: #15803d;
}

._iconButtonPen_wj9pr_74:hover:not(:disabled) {
  color: #14532d;
}

._iconButtonEraser_wj9pr_83 {
  border-color: color-mix(in srgb, var(--border) 65%, #d97706 35%);
  color: #b45309;
}

._iconButtonEraser_wj9pr_83:hover:not(:disabled) {
  color: #92400e;
}

._iconSvg_wj9pr_92 {
  flex-shrink: 0;
  display: block;
}

._statusLabel_wj9pr_97 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

._statusLabelSigned_wj9pr_104 {
  color: var(--success, #15803d);
  font-weight: 600;
}

._statusLabelNa_wj9pr_109 {
  color: var(--text-muted);
  font-weight: 600;
}

._inputRow_wj9pr_114 {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

._input_wj9pr_114 {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

._inputMuted_wj9pr_130 {
  opacity: 0.8;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

._overlay_wj9pr_135 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: grid;
  place-items: center;
  z-index: 1000;
}

._dialog_wj9pr_144 {
  width: min(380px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 0.65rem;
}

._removeDialog_wj9pr_155 {
  width: min(408px, 94vw);
  padding: 0;
  overflow: hidden;
  gap: 0;
}

._removeDialogAccent_wj9pr_162 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1rem 0.35rem;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--danger, #dc2626) 10%, transparent) 0%,
    color-mix(in srgb, var(--accent, #6366f1) 8%, transparent) 100%
  );
}

._removeDialogAccentIcon_wj9pr_174 {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--danger, #dc2626) 88%, var(--text));
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--surface, #fff) 40%, transparent));
}

._removeDialogBody_wj9pr_180 {
  padding: 1rem 1.25rem 0.85rem;
  display: grid;
  gap: 0.85rem;
}

._removeDialogHeading_wj9pr_186 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
  letter-spacing: -0.02em;
}

._removeDialogLead_wj9pr_195 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

._signaturePreview_wj9pr_202 {
  margin: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 97%, var(--text) 3%);
  display: grid;
  gap: 0.55rem;
}

._signaturePreviewRow_wj9pr_212 {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.86rem;
  line-height: 1.35;
}

._signaturePreviewRow_wj9pr_212 dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
}

._signaturePreviewRow_wj9pr_212 dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}

._removeDialogActions_wj9pr_234 {
  display: flex;
  justify-content: stretch;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
}

._removeDialogActions_wj9pr_234 ._button_wj9pr_244 {
  flex: 1 1 calc(50% - 0.325rem);
  min-width: 7rem;
}

._removeDialogActions_wj9pr_234 ._buttonDanger_wj9pr_249 {
  flex: 1 1 calc(50% - 0.325rem);
  min-width: 7rem;
}

._buttonDanger_wj9pr_249 {
  padding: 0.52rem 0.95rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--danger, #dc2626) 45%, var(--border));
  background: var(--danger, #dc2626);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    filter 0.15s ease;
}

._buttonDanger_wj9pr_249:hover {
  filter: brightness(1.06);
}

._buttonDanger_wj9pr_249:focus-visible {
  outline: 2px solid var(--danger, #dc2626);
  outline-offset: 2px;
}

._actions_wj9pr_277 {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

._button_wj9pr_244 {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

._primary_wj9pr_292 {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

._error_wj9pr_301 {
  color: var(--danger);
  font-size: 0.8rem;
}
._wrap_g40qa_1 {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

._trigger_g40qa_9 {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

._trigger_g40qa_9:hover {
  background: var(--surface-hover);
}

._triggerIcon_g40qa_27 {
  font-size: 0.7rem;
  color: var(--text-muted);
}

._panel_g40qa_32 {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

._metricsList_g40qa_38 {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

._metricsList_g40qa_38 li {
  padding: 0.2rem 0;
}

._metricsList_g40qa_38 strong {
  color: var(--text);
  margin-left: 0.25rem;
}

._resizeBtn_g40qa_55 {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

._resizeBtn_g40qa_55:hover:not(:disabled) {
  filter: brightness(1.1);
}

._resizeBtn_g40qa_55:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
._wrapper_1ah07_1 {
  position: relative;
  display: inline-flex;
}

._trigger_1ah07_6 {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--accent, #3b82f6);
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

._trigger_1ah07_6:hover {
  background: var(--accent, #3b82f6);
  color: #fff;
}

._popover_1ah07_29 {
  position: absolute;
  top: 100%;
  left: -8px;
  z-index: 100;
  width: 420px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 0;
  margin-top: 4px;
}

._popoverHeader_1ah07_45 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface, #fff);
  z-index: 1;
}

._popoverTitle_1ah07_57 {
  font-weight: 600;
  font-size: 0.85rem;
}

._closeBtn_1ah07_62 {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 4px;
}

._entry_1ah07_71 {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

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

._codeLine_1ah07_80 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

._code_1ah07_80 {
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  padding: 0.1rem 0.4rem;
  background: var(--surface-hover);
  border-radius: 3px;
  color: var(--accent, #3b82f6);
}

._severity_1ah07_96 {
  font-size: 0.75rem;
  color: var(--text-muted);
}

._section_1ah07_101 {
  margin-bottom: 0.4rem;
}

._sectionTitle_1ah07_105 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.2rem;
}

._sectionText_1ah07_114 {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  color: var(--text);
}

._issueList_1ah07_121 {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

._issueList_1ah07_121 li {
  margin-bottom: 0.15rem;
}

._meta_1ah07_132 {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
/* ================================================================== */
/*  Annotation overlay                                                 */
/* ================================================================== */

._overlay_1lrtq_5 {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* ================================================================== */
/*  Visual toolbar                                                     */
/* ================================================================== */

._toolStrip_1lrtq_16 {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  background: linear-gradient(180deg, rgba(30,30,30,0.92), rgba(22,22,22,0.96));
  pointer-events: auto;
  z-index: 20;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: visible;
  position: relative;
}

/* Stamp: anchored dropdown from toolbar button */
._stampToolWrap_1lrtq_31 {
  position: relative;
  z-index: 50;
}

._stampSplitBtn_1lrtq_36 {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 6px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(40,40,44,0.95);
  color: #ccc;
  cursor: pointer;
  font-size: 0.62rem;
  min-height: 44px;
}

._stampSplitBtn_1lrtq_36:hover {
  background: rgba(255,255,255,0.08);
}

._stampSplitBtn_1lrtq_36._toolActive_1lrtq_54 {
  background: var(--accent, #3b82f6);
  color: #fff;
  border-color: var(--accent, #3b82f6);
}

._stampSplitLabel_1lrtq_60 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

._stampPreview_1lrtq_67 {
  font-size: 0.58rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._stampSplitBtn_1lrtq_36._toolActive_1lrtq_54 ._stampPreview_1lrtq_67 {
  color: #fff;
}

._stampCaret_1lrtq_83 {
  font-size: 0.5rem;
  opacity: 0.85;
  margin-left: 2px;
}

._stampDropdownPanel_1lrtq_89 {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  min-width: 148px;
  max-height: 240px;
  overflow-y: auto;
  background: rgba(22,22,26,0.98);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
  z-index: 200;
}

._toolGroup_1lrtq_108 {
  display: flex;
  align-items: center;
  gap: 2px;
}

._toolDivider_1lrtq_114 {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
  flex-shrink: 0;
}

._toolItem_1lrtq_122 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #aaa;
  font-size: 0.62rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-width: 36px;
}

._toolItem_1lrtq_122:hover {
  background: rgba(255,255,255,0.08);
  color: #eee;
}

._toolActive_1lrtq_54 {
  background: var(--accent, #3b82f6);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

._toolActive_1lrtq_54:hover {
  background: var(--accent, #3b82f6);
  color: #fff;
}

._toolIcon_1lrtq_154 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

._toolIcon_1lrtq_154 svg {
  width: 16px;
  height: 16px;
}

._toolLabel_1lrtq_167 {
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ================================================================== */
/*  Colour picker                                                      */
/* ================================================================== */

._colorPickerWrap_1lrtq_177 {
  position: relative;
}

._colorBtn_1lrtq_181 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

._colorSwatch_1lrtq_192 {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,0.3);
}

._colorDropdown_1lrtq_199 {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 6px;
  background: rgba(30,30,30,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  z-index: 30;
}

._colorOption_1lrtq_215 {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}

._colorOption_1lrtq_215:hover {
  transform: scale(1.15);
  border-color: rgba(255,255,255,0.4);
}

._colorSelected_1lrtq_229 {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}

/* ================================================================== */
/*  Stamp dropdown                                                     */
/* ================================================================== */

._stampDropdown_1lrtq_89 {
  position: absolute;
  top: 100%;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  background: rgba(30,30,30,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  z-index: 30;
}

._stampOption_1lrtq_253 {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  background: transparent;
  color: #ccc;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
}

._stampOption_1lrtq_253:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

._stampSelected_1lrtq_272 {
  background: var(--accent, #3b82f6);
  color: #fff;
  border-color: var(--accent, #3b82f6);
}

._stampActive_1lrtq_278 {
  font-size: 0.65rem;
  font-weight: 600;
  color: #eab308;
  padding: 2px 6px;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 3px;
  white-space: nowrap;
}

/* ================================================================== */
/*  Annotation count badge                                             */
/* ================================================================== */

._annotCount_1lrtq_292 {
  margin-left: auto;
  font-size: 0.68rem;
  color: #777;
  white-space: nowrap;
}

/* ================================================================== */
/*  Canvas                                                             */
/* ================================================================== */

._canvas_1lrtq_303 {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
}

/* ================================================================== */
/*  Text input overlay                                                 */
/* ================================================================== */

._textInputBox_1lrtq_314 {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 4px;
  pointer-events: auto;
}

._textField_1lrtq_322 {
  padding: 4px 8px;
  border: 2px solid #e11d48;
  border-radius: 4px;
  font-size: 0.82rem;
  background: #fff;
  color: #111;
  min-width: 180px;
}

._textSubmit_1lrtq_332 {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: #e11d48;
  color: #fff;
  font-size: 0.78rem;
  cursor: pointer;
}

/* ================================================================== */
/*  Hover tooltip                                                      */
/* ================================================================== */

._hoverTooltip_1lrtq_346 {
  position: absolute;
  pointer-events: none;
  z-index: 25;
  padding: 6px 10px;
  background: rgba(15,15,15,0.94);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  min-width: 140px;
  max-width: 220px;
}

._hoverRow_1lrtq_359 {
  font-size: 0.72rem;
  color: #bbb;
  line-height: 1.5;
}

._hoverRow_1lrtq_359 strong {
  color: #fff;
  text-transform: capitalize;
}

._hoverRow_1lrtq_359[data-status='open'] {
  color: #22c55e;
  font-weight: 600;
}

._hoverRow_1lrtq_359[data-status='closed'] {
  color: #888;
  font-weight: 600;
  text-decoration: line-through;
}

._hoverHint_1lrtq_381 {
  font-size: 0.62rem;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

/* Floating stamp status editor on PDF (when stamp selected) */
._stampFloatSelect_1lrtq_389 {
  position: absolute;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(15,15,20,0.95);
  border: 1px solid rgba(59,130,246,0.5);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  pointer-events: auto;
}

._stampFloatLabel_1lrtq_403 {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

._stampFloatDropdown_1lrtq_411 {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border, #334155);
  background: var(--surface, #1e293b);
  color: var(--text, #f1f5f9);
  cursor: pointer;
  min-width: 120px;
}

/* Pin note editor (double-click pin) */
._pinNoteEditor_1lrtq_424 {
  position: absolute;
  z-index: 50;
  pointer-events: auto;
  min-width: 220px;
  max-width: 280px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

._pinNoteTitle_1lrtq_437 {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

._pinNoteTextarea_1lrtq_444 {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.82rem;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
}

._pinNoteActions_1lrtq_455 {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

._pinNoteCancel_1lrtq_462 {
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.78rem;
}

._pinNoteSave_1lrtq_471 {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  background: #e11d48;
  color: #fff;
  cursor: pointer;
  font-size: 0.78rem;
}

._keepToolLabel_1lrtq_481 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: #aaa;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

._keepToolLabel_1lrtq_481 input {
  cursor: pointer;
}

._undoRedo_1lrtq_496 {
  display: flex;
  gap: 2px;
}

._undoRedoBtn_1lrtq_501 {
  padding: 4px 8px;
  font-size: 0.62rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(40, 40, 44, 0.95);
  color: #ccc;
  cursor: pointer;
  min-height: 32px;
}

._undoRedoBtn_1lrtq_501:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

._undoRedoBtn_1lrtq_501:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
._pane_9pvad_1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

._toolbar_9pvad_9 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

._uploadBtn_9pvad_20,
._uploadBtnLg_9pvad_21 {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent, #3b82f6);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s;
}

._uploadBtn_9pvad_20:hover,
._uploadBtnLg_9pvad_21:hover {
  background: var(--accent, #3b82f6);
  color: #fff;
}

._uploadBtnLg_9pvad_21 {
  font-size: 0.9rem;
  padding: 10px 20px;
}

._restoredBadge_9pvad_44 {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #22c55e22;
  color: #16a34a;
  border: 1px solid #22c55e44;
  white-space: nowrap;
}

._drawingSelect_9pvad_55 {
  font-size: 0.78rem;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  max-width: 200px;
}

._typeTag_9pvad_65 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

._typeTag_9pvad_65[data-type='ga'] { background: #dbeafe; color: #1d4ed8; }
._typeTag_9pvad_65[data-type='dd'] { background: #fef3c7; color: #92400e; }
._typeTag_9pvad_65[data-type='as_built'] { background: #d1fae5; color: #065f46; }
._typeTag_9pvad_65[data-type='unknown'] { background: var(--surface-hover); color: var(--text-muted); }

._spacer_9pvad_79 { flex: 1; }

._toolBtn_9pvad_81 {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
}
._toolBtn_9pvad_81:hover { background: var(--surface-hover); }
._toolBtn_9pvad_81:disabled { opacity: 0.4; cursor: default; }
._toolBtnActive_9pvad_92 {
  background: var(--accent, #3b82f6);
  color: #fff;
  border-color: var(--accent, #3b82f6);
}

._autosaveWrap_9pvad_98 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

._autosaveLabel_9pvad_106 {
  white-space: nowrap;
}

._autosaveSelect_9pvad_110 {
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  max-width: 88px;
  cursor: pointer;
}

._zoomLabel_9pvad_121 {
  font-size: 0.75rem;
  min-width: 36px;
  text-align: center;
  color: var(--text-muted);
}

._pageNav_9pvad_128 { display: flex; align-items: center; gap: 4px; }
._pageLabel_9pvad_129 { font-size: 0.78rem; color: var(--text-muted); min-width: 48px; text-align: center; }

/* ================================================================== */
/*  Main area (viewer + optional audit sidebar)                        */
/* ================================================================== */

._mainArea_9pvad_135 {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

._viewer_9pvad_142 {
  flex: 1;
  overflow: auto;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  min-width: 0;
}

._emptyState_9pvad_154 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: #888;
  text-align: center;
}

._loadingMsg_9pvad_165, ._errorMsg_9pvad_165 { padding: 2rem; text-align: center; font-size: 0.9rem; }
._loadingMsg_9pvad_165 { color: #888; }
._errorMsg_9pvad_165 { color: #ef4444; }

._pageWrapper_9pvad_169 { display: flex; flex-direction: column; align-items: center; gap: 6px; }
._pageNumber_9pvad_170 {
  font-size: 0.72rem; color: #aaa; padding: 2px 10px;
  background: rgba(255,255,255,0.08); border-radius: 3px;
}
._scrollHint_9pvad_174 { font-size: 0.65rem; color: #666; margin-top: 6px; letter-spacing: 0.02em; }
._canvasContainer_9pvad_175 { position: relative; display: inline-block; line-height: 0; }
._pdfCanvas_9pvad_176 { display: block; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }

/* ================================================================== */
/*  Audit sidebar                                                      */
/* ================================================================== */

._auditSidebar_9pvad_182 {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

._auditHeader_9pvad_192 {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-hover);
  flex-shrink: 0;
}

._auditTabs_9pvad_201 { display: flex; gap: 2px; flex: 1; }

._auditTab_9pvad_201 {
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 500;
}
._auditTab_9pvad_201:hover { background: var(--surface); }
._auditTabActive_9pvad_214 {
  background: var(--accent, #3b82f6);
  color: #fff;
}

._auditClose_9pvad_219 {
  padding: 2px 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}
._auditClose_9pvad_219:hover { color: var(--text); }

._auditBody_9pvad_229 {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._auditEmpty_9pvad_238 {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 2rem 1rem;
}

/* ================================================================== */
/*  Annotation detail panel                                            */
/* ================================================================== */

._annotDetail_9pvad_249 {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

._annotDetailHeader_9pvad_260 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

._annotDetailType_9pvad_267 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--text);
}

._annotDetailPage_9pvad_274 {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 3px;
}

._annotDetailSwatch_9pvad_282 {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

._annotDetailStatus_9pvad_289 {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: auto;
}
._statusOpen_9pvad_296 { background: #d1fae5; color: #065f46; }
._statusClosed_9pvad_297 { background: #e5e7eb; color: #6b7280; text-decoration: line-through; }

._annotDetailMeta_9pvad_299 {
  display: flex;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

._annotDetailText_9pvad_306 {
  font-size: 0.78rem;
  color: var(--text);
  padding: 4px 6px;
  background: var(--surface);
  border-radius: 3px;
}

._annotDetailActions_9pvad_314 {
  display: flex;
  gap: 4px;
}

._closeBtn_9pvad_319, ._reopenBtn_9pvad_319, ._deselectBtn_9pvad_319 {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: 500;
}
._closeBtn_9pvad_319 { background: #fef3c7; color: #92400e; border-color: #fbbf24; }
._closeBtn_9pvad_319:hover { background: #fde68a; }
._reopenBtn_9pvad_319 { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
._reopenBtn_9pvad_319:hover { background: #a7f3d0; }
._deselectBtn_9pvad_319 { background: var(--surface); color: var(--text-muted); }
._deselectBtn_9pvad_319:hover { background: var(--surface-hover); }

/* ================================================================== */
/*  Comment thread                                                     */
/* ================================================================== */

._commentThread_9pvad_338 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._commentThreadTitle_9pvad_344 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

._commentItem_9pvad_352 {
  padding: 4px 6px;
  background: var(--surface);
  border-radius: 3px;
}

._commentMeta_9pvad_358 {
  font-size: 0.65rem;
  color: var(--text-muted);
}

._commentText_9pvad_363 {
  font-size: 0.75rem;
  color: var(--text);
  margin-top: 2px;
}

._commentInput_9pvad_369 {
  display: flex;
  gap: 3px;
}

._commentField_9pvad_374 {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
}

._commentSubmit_9pvad_384 {
  padding: 4px 8px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 0.72rem;
  cursor: pointer;
}

/* ================================================================== */
/*  Per-page annotation list                                           */
/* ================================================================== */

._auditPageGroup_9pvad_398 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

._auditPageLabel_9pvad_404 {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 4px 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

._auditAnnotItem_9pvad_413 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
._auditAnnotItem_9pvad_413:hover { background: var(--surface-hover); }
._auditAnnotSelected_9pvad_428 {
  background: var(--surface-hover);
  border-color: var(--accent, #3b82f6);
}
._auditAnnotClosed_9pvad_432 {
  opacity: 0.5;
}

._auditAnnotIcon_9pvad_436 {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 24px;
}

._auditAnnotInfo_9pvad_444 {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  font-size: 0.72rem;
  color: var(--text-muted);
}

._auditCommentBadge_9pvad_453 {
  font-size: 0.6rem;
  background: var(--accent, #3b82f6);
  color: #fff;
  padding: 0 4px;
  border-radius: 99px;
  font-weight: 600;
}

._auditAnnotStatus_9pvad_462 {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ================================================================== */
/*  Audit log items                                                    */
/* ================================================================== */

._auditLogItem_9pvad_473 {
  padding: 5px 6px;
  border-bottom: 1px solid var(--border);
}

._auditLogAction_9pvad_478 {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 2px;
}
._auditLogAction_9pvad_478[data-action='created'] { background: #d1fae5; color: #065f46; }
._auditLogAction_9pvad_478[data-action='deleted'] { background: #fee2e2; color: #991b1b; }
._auditLogAction_9pvad_478[data-action='commented'] { background: #dbeafe; color: #1d4ed8; }
._auditLogAction_9pvad_478[data-action='closed'] { background: #e5e7eb; color: #374151; }
._auditLogAction_9pvad_478[data-action='reopened'] { background: #fef3c7; color: #92400e; }
._auditLogAction_9pvad_478[data-action='updated'] { background: #e0e7ff; color: #3730a3; }

._auditLogDetail_9pvad_494 {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.4;
}

._auditLogMeta_9pvad_500 {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 2px;
}
._report_mukfv_1 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

._header_mukfv_7 {
  margin-bottom: 0.25rem;
}

._title_mukfv_11 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

._subtitle_mukfv_17 {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

._stats_mukfv_23 {
  display: flex;
  gap: 1rem;
}

._stat_mukfv_23 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 100px;
}

._statNum_mukfv_39 {
  font-size: 1.4rem;
  font-weight: 700;
}

._statLabel_mukfv_44 {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

._noItems_mukfv_50 {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

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

._table_mukfv_56 th {
  text-align: left;
  padding: 0.45rem 0.5rem;
  background: var(--surface-hover);
  border-bottom: 2px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

._table_mukfv_56 td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

._rowFail_mukfv_77 {
  background: rgba(239, 68, 68, 0.06);
}

._rowComment_mukfv_81 {
  background: rgba(124, 58, 237, 0.04);
}

._cellSmall_mukfv_85 {
  font-size: 0.75rem;
  color: var(--text-muted);
}

._cellResult_mukfv_90 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
}

._cellResult_mukfv_90[data-result='fail'] {
  color: #ef4444;
}

._cellResult_mukfv_90[data-result='comment'] {
  color: #7c3aed;
}

._actions_mukfv_104 {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

._copyBtn_mukfv_110 {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

._copyBtn_mukfv_110:hover {
  opacity: 0.9;
}
/* ================================================================== */
/*  Layout                                                             */
/* ================================================================== */

._layout_1dqq5_5 {
  position: relative;
  display: flex;
  min-height: 100vh;
}

._taskOnlyLayout_1dqq5_11 {
  min-height: 100vh;
  background: var(--surface);
}

._taskOnlyContent_1dqq5_16 {
  max-width: 980px;
  margin: 0.75rem auto;
  padding: 1rem 1.25rem 2rem;
  background: linear-gradient(
    180deg,
    var(--surface-elevated) 0%,
    color-mix(in srgb, var(--surface-elevated) 94%, var(--primary) 6%) 100%
  );
  border: 1px solid color-mix(in srgb, var(--border) 78%, var(--primary) 22%);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

._taskOnlyHeader_1dqq5_30 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

._projectContextCard_1dqq5_38 {
  margin-bottom: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--border) 74%, var(--primary) 26%);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-elevated) 82%, var(--primary) 18%) 0%,
    color-mix(in srgb, var(--surface-elevated) 93%, var(--primary) 7%) 100%
  );
  box-shadow: var(--shadow-md);
  padding: 0.72rem 0.8rem;
}

._projectContextRow_1dqq5_52 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

._projectContextItem_1dqq5_58 {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

._projectContextLabel_1dqq5_65 {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

._projectContextValue_1dqq5_73 {
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._projectContextAddress_1dqq5_81 {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed color-mix(in srgb, var(--border) 76%, #2563eb 24%);
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

._taskOnlyActions_1dqq5_90 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

._completeTaskBtn_1dqq5_96 {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--success);
  border-radius: var(--radius);
  background: var(--success);
  color: var(--text-inverse);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

._completeTaskBtn_1dqq5_96:hover:not(:disabled) {
  filter: brightness(1.06);
}

._completeTaskBtn_1dqq5_96:disabled {
  opacity: 0.6;
  cursor: default;
}

._taskCompleteNotice_1dqq5_116 {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--success) 38%, transparent);
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--text);
  font-size: 0.8rem;
}

/* Collapsible sidebar */
._sidebar_1dqq5_127 {
  flex: 0 0 70px;
  width: 70px;
  min-height: 100vh;
  align-self: stretch;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: width 0.25s ease, flex 0.25s ease;
  display: flex;
  flex-direction: column;
}
._sidebar_1dqq5_127._open_1dqq5_139 {
  flex: 0 0 280px;
  width: 280px;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
  position: relative;
}

._sidebarContent_1dqq5_146 {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  min-width: 0;
}

._sidebarHeaderRow_1dqq5_153 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
}

._sidebarTitle_1dqq5_161 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._processLabel_1dqq5_170 {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0 0.5rem 0.25rem;
}

._sidebarToggleBtn_1dqq5_181 {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
._sidebarToggleBtn_1dqq5_181:hover {
  background: var(--surface-hover);
  color: var(--text);
}

._sidebarCollapsedHeader_1dqq5_201 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
._sidebarCollapsedLabel_1dqq5_209 {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}

._sidebarNav_1dqq5_220 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.25rem;
}

._sidebarItem_1dqq5_227 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  text-align: left;
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

._sidebarItem_1dqq5_227:hover {
  background: var(--surface-hover);
}

._sidebarItemActive_1dqq5_249 {
  background: var(--surface-hover);
  border-color: var(--border);
}

._sidebarItemLabel_1dqq5_254 {
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

._subsectionBadge_1dqq5_262 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: var(--border);
  color: var(--text-muted);
}

/* ================================================================== */
/*  Main content area                                                  */
/* ================================================================== */

._content_1dqq5_276 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 100vh;
}

._centerScroll_1dqq5_283 {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  height: 100%;
}

._contentHeader_1dqq5_289 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

._contentTitle_1dqq5_298 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

._headerActions_1dqq5_304 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: wrap;
  min-width: 0;
  flex-shrink: 0;
}

._saveBadgeWrap_1dqq5_314 {
  display: inline-flex;
  flex-shrink: 0;
}

._stepCounter_1dqq5_319 {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.35rem 0.75rem;
}

._drawingTag_1dqq5_330 {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

._togglePaneBtn_1dqq5_342 {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
}

._togglePaneBtn_1dqq5_342:hover {
  background: var(--surface-hover);
}

._placeholder_1dqq5_356 {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

._hubGrid_1dqq5_362 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem;
}

._hubCard_1dqq5_368 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
}

._hubTitle_1dqq5_375 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 650;
}

._hubMeta_1dqq5_381 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

._hubSearchInput_1dqq5_389 {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  background: var(--surface);
  color: var(--text);
}

._hubSearchMeta_1dqq5_398 {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

._hubSearchErr_1dqq5_404 {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #dc2626;
}

._hubResultsWrap_1dqq5_410 {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

._hubResultBtn_1dqq5_417 {
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text);
  border-radius: var(--radius);
  text-align: left;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

._hubResultBtn_1dqq5_417:hover {
  border-color: var(--accent, #2563eb);
}

._sidebarHomeRow_1dqq5_434 {
  padding: 0 0.5rem 0.35rem;
}

._sidebarHomeLink_1dqq5_438 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent, #2563eb);
  text-decoration: none;
}

._sidebarHomeLink_1dqq5_438:hover {
  text-decoration: underline;
}

._sidebarCreatePanel_1dqq5_449 {
  margin: 0.35rem 0.5rem 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-hover);
}

._sidebarCreateTitle_1dqq5_457 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
}

._sidebarCreateLead_1dqq5_463 {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

._sidebarSearchBlock_1dqq5_470 {
  margin-top: 0.45rem;
}

._sidebarSearchLabel_1dqq5_474 {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

._sidebarSearchInput_1dqq5_481 {
  width: 100%;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
}

._sidebarSearchMeta_1dqq5_491 {
  margin: 0.28rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

._sidebarSearchErr_1dqq5_497 {
  margin: 0.28rem 0 0;
  font-size: 0.68rem;
  color: #b91c1c;
}

._sidebarResultList_1dqq5_503 {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

._sidebarResultBtn_1dqq5_512 {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 0.28rem 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  font-size: 0.72rem;
}

._sidebarResultBtn_1dqq5_512:hover {
  background: var(--surface-hover);
}

._sidebarResultStatic_1dqq5_531 {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  background: var(--surface);
  font-size: 0.72rem;
}

._demoBtn_1dqq5_543 {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--accent, #3b82f6);
  border-radius: var(--radius);
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

._demoBtn_1dqq5_543:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ================================================================== */
/*  Analyzing banner                                                   */
/* ================================================================== */

._analyzingBanner_1dqq5_563 {
  padding: 0.5rem 0.75rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  color: #4338ca;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

/* ================================================================== */
/*  Section content shared                                             */
/* ================================================================== */

._sectionContent_1dqq5_577 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

._sectionDesc_1dqq5_583 {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ================================================================== */
/*  Form grid (Summary, Sign Off)                                      */
/* ================================================================== */

._formGrid_1dqq5_594 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem;
}

._formField_1dqq5_600 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

._fieldLabel_1dqq5_606 {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

._input_1dqq5_612 {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
}

._input_1dqq5_612:focus {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: -1px;
}

._textarea_1dqq5_626 {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  resize: vertical;
  font-family: inherit;
}

._textarea_1dqq5_626:focus {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: -1px;
}

/* ================================================================== */
/*  Parsed info & conflict resolution                                  */
/* ================================================================== */

._parsedBanner_1dqq5_646 {
  padding: 0.45rem 0.7rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 0.8rem;
}

._fieldConflict_1dqq5_655 {
  position: relative;
}

._fieldAutofilled_1dqq5_659 ._fieldLabel_1dqq5_606 {
  color: #059669;
}

._autofillBadge_1dqq5_663 {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  background: #d1fae5;
  color: #059669;
  margin-left: 0.4rem;
  vertical-align: middle;
}

._inputConflict_1dqq5_676 {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
}

._conflictBox_1dqq5_681 {
  margin-top: 0.3rem;
  padding: 0.45rem 0.55rem;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: var(--radius);
  font-size: 0.78rem;
}

._conflictHeader_1dqq5_690 {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 0.3rem;
}

._conflictIcon_1dqq5_699 {
  font-size: 0.95rem;
}

._conflictValues_1dqq5_703 {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

._conflictRow_1dqq5_710 {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

._conflictLabel_1dqq5_716 {
  font-size: 0.72rem;
  font-weight: 500;
  color: #78716c;
  min-width: 52px;
}

._conflictCurrent_1dqq5_723 {
  color: var(--text);
  text-decoration: line-through;
  opacity: 0.7;
}

._conflictParsed_1dqq5_729 {
  color: #059669;
  font-weight: 500;
}

._conflictActions_1dqq5_734 {
  display: flex;
  gap: 0.4rem;
}

._conflictAccept_1dqq5_739 {
  padding: 0.2rem 0.5rem;
  border: 1px solid #059669;
  border-radius: var(--radius);
  background: #059669;
  color: #fff;
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: 500;
}

._conflictAccept_1dqq5_739:hover {
  background: #047857;
}

._conflictDismiss_1dqq5_754 {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  cursor: pointer;
}

._conflictDismiss_1dqq5_754:hover {
  background: var(--surface-hover);
}

/* ================================================================== */
/*  Check / dependency tables                                          */
/* ================================================================== */

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

._checkTable_1dqq5_772 th {
  text-align: left;
  padding: 0.4rem 0.5rem;
  background: var(--surface-hover);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  z-index: 1;
}

._checkTable_1dqq5_772 td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

._checkTable_1dqq5_772 tbody tr:hover {
  background: var(--surface-hover);
}

._thWide_1dqq5_801 {
  min-width: 200px;
}

._cellMono_1dqq5_805 {
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

._cellSmall_1dqq5_811 {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 100px;
}

._selectSmall_1dqq5_817 {
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  width: 100%;
  min-width: 90px;
}

._inputSmall_1dqq5_828 {
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  width: 100%;
  min-width: 100px;
}

._rowFail_1dqq5_839 {
  background: rgba(239, 68, 68, 0.06);
}

._rowComment_1dqq5_843 {
  background: rgba(124, 58, 237, 0.04);
}

/* Status-coloured selects */
._status_pass_1dqq5_848 { color: #16a34a; }
._status_fail_1dqq5_849 { color: #ef4444; font-weight: 600; }
._status_comment_1dqq5_850 { color: #7c3aed; }
._status_na_1dqq5_851 { color: #94a3b8; }
._status_not_checked_1dqq5_852 { color: var(--text-muted); }

/* ================================================================== */
/*  Check item label / description rows                                */
/* ================================================================== */

._itemLabelRow_1dqq5_858 {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

._itemDesc_1dqq5_864 {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

._systemComment_1dqq5_870 {
  font-size: 0.72rem;
  color: #7c3aed;
  padding: 0.15rem 0.35rem;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 3px;
  margin-top: 0.2rem;
  display: inline-block;
}

/* ================================================================== */
/*  QA checklist groups                                                */
/* ================================================================== */

._qaSummaryBar_1dqq5_884 {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  flex-wrap: wrap;
}

._qaCount_1dqq5_895[data-type='pass'] { color: #16a34a; }
._qaCount_1dqq5_895[data-type='fail'] { color: #ef4444; }
._qaCount_1dqq5_895[data-type='comment'] { color: #7c3aed; }
._qaCount_1dqq5_895[data-type='na'] { color: #94a3b8; }
._qaCount_1dqq5_895[data-type='not_checked'] { color: var(--text-muted); }

._qaAreaGroup_1dqq5_901 {
  margin-top: 0.35rem;
}

._qaAreaTitle_1dqq5_905 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

._qaAreaDesc_1dqq5_913 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}

/* ================================================================== */
/*  Scope of works grid                                                */
/* ================================================================== */

._scopeGrid_1dqq5_923 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}

/* ================================================================== */
/*  Process flow (GA/DD process steps)                                 */
/* ================================================================== */

._processFlow_1dqq5_933 {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
}

._processStep_1dqq5_940 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-left: 2px solid var(--border);
  margin-left: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
}

._processStep_1dqq5_940:last-child {
  border-left-color: transparent;
}

._processStepNum_1dqq5_956 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  left: -1.55rem;
  margin-right: -0.8rem;
}

/* ================================================================== */
/*  Sign off                                                           */
/* ================================================================== */

._signOffGrid_1dqq5_977 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

._signOffBlock_1dqq5_983 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

._signOffLabel_1dqq5_993 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

/* ================================================================== */
/*  Journey left-border coding                                         */
/* ================================================================== */

._journeyOnSite_1dqq5_1003 ._sidebarItem_1dqq5_227 {
  border-left-color: #16a34a;
}

._journeyDesktop_1dqq5_1007 ._sidebarItem_1dqq5_227 {
  border-left-color: #2563eb;
}

._journeyBackOffice_1dqq5_1011 ._sidebarItem_1dqq5_227 {
  border-left-color: #7c3aed;
}

._journeyDimmed_1dqq5_1015 {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* ================================================================== */
/*  Dependency table enhancements                                      */
/* ================================================================== */

._depStatusBadge_1dqq5_1025 {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}

._naRow_1dqq5_1035 {
  opacity: 0.4;
  text-decoration: line-through;
}

._naRow_1dqq5_1035:hover {
  opacity: 0.6;
}

._selectedRow_1dqq5_1044 {
  background: rgba(99, 102, 241, 0.06) !important;
}

/* ── Bulk action row ──────────────────────────────────────────────── */
._bulkActionRow_1dqq5_1049 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 8px;
}

._bulkCount_1dqq5_1060 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6366f1;
  flex: 1;
}

._bulkAssignBtn_1dqq5_1067 {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #6366f1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

._bulkAssignBtn_1dqq5_1067:hover {
  background: #4f46e5;
}

._bulkClearBtn_1dqq5_1082 {
  padding: 0.4rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: #6366f1;
  background: transparent;
  border: 1px solid #6366f1;
  border-radius: 6px;
  cursor: pointer;
}

._bulkClearBtn_1dqq5_1082:hover {
  background: rgba(99,102,241,0.08);
}

/* ================================================================== */
/*  Overall progress bar                                               */
/* ================================================================== */

._progressBarWrap_1dqq5_1101 {
  margin-bottom: 1rem;
}
._progressBarLabel_1dqq5_1104 {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
._progressBarTrack_1dqq5_1111 {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}
._progressBarFill_1dqq5_1117 {
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
  transition: width 0.2s ease;
}

/* ================================================================== */
/*  Responsive                                                         */
/* ================================================================== */

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

  ._sidebar_1dqq5_127, ._sidebar_1dqq5_127._open_1dqq5_139 {
    flex: none;
    width: 100% !important;
    min-height: auto;
    max-height: 50vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  ._signOffGrid_1dqq5_977 {
    grid-template-columns: 1fr;
  }

  ._formGrid_1dqq5_594 {
    grid-template-columns: 1fr;
  }

  ._contentHeader_1dqq5_289 {
    align-items: flex-start;
  }

  ._headerActions_1dqq5_304 {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}
._root_1bl47_1 {
  height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

._root_1bl47_1 > * {
  flex: 1;
  min-height: 0;
  height: 100%;
}

._centered_1bl47_15 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface, #0f172a);
  color: var(--text, #e2e8f0);
}

._loading_1bl47_26 {
  font-size: 0.95rem;
  opacity: 0.85;
}

._error_1bl47_31 {
  font-size: 0.95rem;
  max-width: 420px;
  text-align: center;
  line-height: 1.5;
}
._page_1h5ky_1 {
  min-height: 100vh;
  padding: 2rem 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--text);
}

._header_1h5ky_10 {
  margin-bottom: 1.25rem;
}

._headerRow_1h5ky_14 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

._title_1h5ky_22 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

._lead_1h5ky_29 {
  margin: 0;
  max-width: 40rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-size: 0.95rem;
}

._toolbar_1h5ky_37 {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

@media (max-width: 900px) {
  ._toolbar_1h5ky_37 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  ._toolbar_1h5ky_37 {
    grid-template-columns: 1fr;
  }
}

._field_1h5ky_61 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

._fieldLabel_1h5ky_68 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

._input_1h5ky_76,
._select_1h5ky_77,
._textarea_1h5ky_78 {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
}

._textarea_1h5ky_78 {
  resize: vertical;
  min-height: 2.5rem;
  font-family: inherit;
}

._tableWrap_1h5ky_94 {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

._table_1h5ky_94 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

._table_1h5ky_94 thead {
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border);
}

._table_1h5ky_94 th {
  text-align: left;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
  color: var(--text);
}

._thBtn_1h5ky_120 {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

._thBtn_1h5ky_120:hover {
  color: var(--accent, #2563eb);
}

._thAction_1h5ky_136 {
  text-align: right;
  width: 4.5rem;
}

._table_1h5ky_94 td {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

._table_1h5ky_94 tbody tr:hover {
  background: var(--surface-hover);
}

._mono_1h5ky_151 {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.82rem;
}

._emptyCell_1h5ky_156 {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem !important;
}

._badgeDemo_1h5ky_162,
._badgeUser_1h5ky_163 {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

._badgeDemo_1h5ky_162 {
  background: #e0e7ff;
  color: #3730a3;
}

._badgeUser_1h5ky_163 {
  background: #ecfdf5;
  color: #047857;
}

._openLink_1h5ky_183 {
  font-weight: 600;
  color: var(--accent, #2563eb);
  text-decoration: none;
}

._openLink_1h5ky_183:hover {
  text-decoration: underline;
}

._footerMeta_1h5ky_193 {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

._primaryBtn_1h5ky_199 {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent, #2563eb);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

._primaryBtn_1h5ky_199:hover {
  filter: brightness(1.05);
}

._secondaryBtn_1h5ky_215 {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

._secondaryBtn_1h5ky_215:hover {
  background: var(--surface-hover);
}

/* Modal */
._modalRoot_1h5ky_231 {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

._modalBackdrop_1h5ky_241 {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

._modal_1h5ky_231 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

._modalTitle_1h5ky_265 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
}

._modalLead_1h5ky_271 {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

._form_1h5ky_278 {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

._formField_1h5ky_284 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

._formRow_1h5ky_290 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  ._formRow_1h5ky_290 {
    grid-template-columns: 1fr;
  }
}

._hint_1h5ky_302 {
  font-size: 0.75rem;
  color: var(--text-muted);
}

._formError_1h5ky_307 {
  margin: 0;
  padding: 0.5rem 0.65rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.82rem;
}

._modalActions_1h5ky_317 {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}
/*
 * SCOPE Master App — Unified Design System
 * Single source of truth for tokens, base styles, and shared utility classes.
 * Imported once per app via `import '@scope/shared/src/theme.css'` in main.tsx.
 *
 * Sections:
 *   1. Design tokens (colors, spacing, typography, radii, shadows)
 *   2. Base styles (resets, body, implicit `button` / text-field chrome — opt-out via classes)
 *   3. Touch-friendly defaults (48px minimum tap targets for field use)
 *   4. Shared utility classes (.scope-btn, .scope-toolbar, .scope-icon-btn, .scope-card, …)
 */

:root {
  color-scheme: light dark;

  /* ── Colors (light mode) ─────────────────────────────────────────── */
  /* Background scale: bg (page) → surface (cards) → surface-hover (rows on hover)
     Text scale: text-strong (headings) → text (body) → text-muted (labels, hints) */
  --bg: #f1f5f9;             /* slate-100 — slightly cooler so white cards pop */
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --surface-elevated: #ffffff;
  --border: #cbd5e1;         /* slate-300 — was e2e8f0, stronger to see card edges */
  --border-strong: #94a3b8;
  --text-strong: #0f172a;    /* slate-900 — for h1/h2 — pitch contrast */
  --text: #1e293b;           /* slate-800 — body */
  --text-muted: #475569;     /* slate-600 — was 64748b, darker for AA contrast */
  --text-inverse: #f8fafc;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);

  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);

  --rag-red: #ef4444;
  --rag-amber: #f59e0b;
  --rag-green: #22c55e;
  --rag-grey: #94a3b8;

  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, 0.15);

  /* ── Spacing (4px scale) ─────────────────────────────────────────── */
  --space-1: 0.25rem; /*  4px */
  --space-2: 0.5rem;  /*  8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */

  /* ── Typography ──────────────────────────────────────────────────── */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --text-xs: 0.72rem;
  --text-sm: 0.85rem;
  --text-base: 0.95rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* ── Radii ───────────────────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Toolbar / icon controls (aligned with file & image slot toolbars) */
  --control-radius: 6px;
  --control-icon-size: 32px;
  --toolbar-pill-bg: color-mix(in srgb, var(--bg) 55%, var(--surface-hover));
  --toolbar-pill-border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);

  /* ── Shadows ─────────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);

  /* ── Touch targets (CRITICAL for field workers wearing gloves) ───── */
  /* WCAG 2.5.5: minimum 24x24, recommended 44x44. We use 44 for desktop
     and bump to 48 in the touch media query. */
  --touch-min: 44px;

  /* ── Z layers ────────────────────────────────────────────────────── */
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* ── Transitions ─────────────────────────────────────────────────── */
  --transition-fast: 100ms ease-out;
  --transition: 150ms ease-out;
}

/* ── Explicit overrides via UserSettingsProvider ─────────────────────
   These come BEFORE the prefers-color-scheme rule so they take priority
   when the user picks light or dark explicitly. The 'system' option does
   NOT set data-theme so prefers-color-scheme remains the source of truth. */
:root[data-theme="dark"] {
  --bg: #020617;
  --surface: #0f172a;
  --surface-hover: #1e293b;
  --surface-elevated: #1e293b;
  --border: #334155;
  --border-strong: #475569;
  --text-strong: #ffffff;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-inverse: #0f172a;
  --primary-soft: rgba(59, 130, 246, 0.18);
  --success-soft: rgba(34, 197, 94, 0.16);
  --warning-soft: rgba(245, 158, 11, 0.16);
  --danger-soft: rgba(248, 113, 113, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}
:root[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --surface-elevated: #ffffff;
  --border: #cbd5e1;
  --border-strong: #94a3b8;
  --text-strong: #0f172a;
  --text: #1e293b;
  --text-muted: #475569;
  --text-inverse: #f8fafc;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --success-soft: rgba(34, 197, 94, 0.12);
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger-soft: rgba(239, 68, 68, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
}

/* ── Auto dark mode (only when no explicit data-theme) ─────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Page background is the deepest layer; cards lift above it. */
    --bg: #020617;             /* slate-950 — was 0f172a, darker so cards stand out */
    --surface: #0f172a;        /* slate-900 — was 1e293b */
    --surface-hover: #1e293b;  /* slate-800 */
    --surface-elevated: #1e293b;
    --border: #334155;         /* slate-700 — was 475569, stronger card edges */
    --border-strong: #475569;
    --text-strong: #ffffff;    /* pure white — for headings */
    --text: #f1f5f9;           /* slate-100 — body */
    --text-muted: #cbd5e1;     /* slate-300 — was 94a3b8, much brighter for AA contrast */
    --text-inverse: #0f172a;

    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.18);

    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.16);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.16);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.16);

    --rag-red: #f87171;
    --rag-amber: #fbbf24;
    --rag-green: #4ade80;
    --rag-grey: #64748b;

    --accent: #3b82f6;
    --accent-dim: rgba(59, 130, 246, 0.2);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

/* ════════════════════════════════════════════════════════════════════
   Base resets & body
   ════════════════════════════════════════════════════════════════════ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Avoid horizontal scrollbars on phones from rounding errors */
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* Headings inherit the strong-contrast token so they pop on both modes
   without each component having to opt in. */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-strong);
  font-weight: 700;
  line-height: var(--leading-tight);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Default chrome for buttons — module / utility classes override as needed */
button {
  font-family: inherit;
  border-radius: var(--control-radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
button:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--text-muted);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Text-like inputs & selects — matches .scope-input (explicit class still works) */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
textarea,
select {
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

input[type="color"] {
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--control-radius);
  background: var(--surface);
  min-height: 2.75rem;
  min-width: 2.75rem;
  cursor: pointer;
}

/* Visible focus ring for keyboard navigation (accessibility). */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   Touch-friendly defaults
   On coarse pointers (touchscreens), grow tap targets to 48px and bump
   font sizes a touch so gloved hands and field tablets work properly.
   ════════════════════════════════════════════════════════════════════ */

@media (pointer: coarse) {
  :root {
    --touch-min: 48px;
  }
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  input[type="checkbox"],
  input[type="radio"],
  select,
  a[role="button"] {
    min-height: var(--touch-min);
  }
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  textarea {
    min-height: var(--touch-min);
    font-size: max(16px, var(--text-base)); /* iOS won't zoom on focus when >= 16px */
  }
  /* Keep compact toolbar icon buttons at fixed size */
  button.scope-icon-btn,
  button.scope-icon-btn-danger {
    min-height: var(--control-icon-size);
    min-width: var(--control-icon-size);
  }
}

/* ════════════════════════════════════════════════════════════════════
   Shared utility classes — opt-in via className="scope-*"
   These give every app a consistent look without mandating a refactor.
   ════════════════════════════════════════════════════════════════════ */

/* Buttons */
.scope-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  min-height: var(--touch-min);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.scope-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.scope-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: var(--text-sm);
  min-height: auto;
  border-radius: var(--control-radius);
  font-weight: 600;
}
.scope-btn-primary  { background: var(--primary); color: #fff; border-color: transparent; }
.scope-btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.scope-btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border);
  border-radius: var(--control-radius);
}
.scope-btn-secondary:hover:not(:disabled) { background: var(--border); }
.scope-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  border-radius: var(--control-radius);
}
.scope-btn-ghost:hover:not(:disabled) { background: var(--surface-hover); }
.scope-btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.scope-btn-danger:hover:not(:disabled) { background: #b91c1c; color: #fff; }

/* Toolbar row + square icon buttons — same chrome as file / image slots */
.scope-toolbar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.scope-toolbar-with-zip {
  row-gap: 0.25rem;
}
.scope-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.scope-toolbar-actions-end {
  margin-left: auto;
}
.scope-toolbar-zip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}
.scope-toolbar-zip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.scope-toolbar-zip-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}
.scope-toolbar-pill {
  padding: 0.15rem 0.32rem;
  border-radius: var(--radius);
  background: var(--toolbar-pill-bg);
  border: var(--toolbar-pill-border);
}
.scope-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-icon-size);
  height: var(--control-icon-size);
  padding: 0;
  border-radius: var(--control-radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  box-sizing: border-box;
}
.scope-icon-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--text-muted);
}
.scope-icon-btn:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 1px;
}
.scope-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.scope-icon-btn-danger {
  border-color: color-mix(in srgb, var(--border) 45%, #dc3545 55%);
  color: #c82333;
}
.scope-icon-btn-danger:hover:not(:disabled) {
  background: rgba(220, 53, 69, 0.12);
  color: #a71d2a;
  border-color: rgba(220, 53, 69, 0.75);
}

/* Cards */
.scope-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

/* Tables — wrap in this div to get horizontal scroll on mobile */
.scope-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.scope-table-wrap > table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.scope-table-wrap th,
.scope-table-wrap td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.scope-table-wrap th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-hover);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

/* Status pills (RAG, generic) */
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.scope-pill-success { background: var(--success-soft); color: var(--success); }
.scope-pill-warning { background: var(--warning-soft); color: var(--warning); }
.scope-pill-danger  { background: var(--danger-soft);  color: var(--danger); }
.scope-pill-info    { background: var(--primary-soft); color: var(--primary); }
.scope-pill-muted   { background: var(--surface-hover); color: var(--text-muted); }

/* Form controls */
.scope-input,
.scope-select,
.scope-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.scope-input:focus,
.scope-select:focus,
.scope-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none;
}
.scope-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

/* Loading & empty states */
.scope-loading,
.scope-empty {
  padding: var(--space-8);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Spinner — apply to any element via className="scope-spinner" */
.scope-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: scope-spin 0.6s linear infinite;
}
@keyframes scope-spin {
  to { transform: rotate(360deg); }
}

/* Save status badge — use with .scope-save-status[data-state="..."] */
.scope-save-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid transparent;
}
.scope-save-status[data-state="saved"]    { background: var(--success-soft); color: var(--success); border-color: var(--success-soft); }
.scope-save-status[data-state="saving"]   { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-soft); }
.scope-save-status[data-state="offline"]  { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-soft); }
.scope-save-status[data-state="retrying"] { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-soft); }
.scope-save-status[data-state="error"]    { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger-soft); }
.scope-save-status[data-state="idle"]     { background: var(--surface-hover); color: var(--text-muted); border-color: var(--border); }

/* ════════════════════════════════════════════════════════════════════
   Responsive helpers
   Tablet breakpoint: 720-1024px
   Mobile breakpoint: <720px
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root {
    /* Slightly tighter spacing on tablets to fit more on-screen */
    --space-5: 1rem;
    --space-6: 1.25rem;
  }
}

@media (max-width: 720px) {
  :root {
    --text-base: 0.92rem;
    --text-sm: 0.82rem;
  }
  .scope-table-wrap > table {
    font-size: var(--text-xs);
  }
}

/* Stack any element with .scope-stack-mobile vertically below 720px */
@media (max-width: 720px) {
  .scope-stack-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* Hide on mobile only */
@media (max-width: 720px) {
  .scope-hide-mobile { display: none !important; }
}
/* Hide on desktop only */
@media (min-width: 721px) {
  .scope-hide-desktop { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   User-controlled primary colour overrides
   Set via UserSettingsProvider → <html data-primary="...">
   The default (data-primary missing) keeps the SCOPE Blue defined above.
   ════════════════════════════════════════════════════════════════════ */

:root[data-primary="teal"] {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-soft: rgba(13, 148, 136, 0.12);
  --accent: #0d9488;
  --accent-dim: rgba(13, 148, 136, 0.18);
}
:root[data-primary="purple"] {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-soft: rgba(124, 58, 237, 0.12);
  --accent: #7c3aed;
  --accent-dim: rgba(124, 58, 237, 0.18);
}
:root[data-primary="orange"] {
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-soft: rgba(234, 88, 12, 0.12);
  --accent: #ea580c;
  --accent-dim: rgba(234, 88, 12, 0.18);
}
:root[data-primary="green"] {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-soft: rgba(22, 163, 74, 0.12);
  --accent: #16a34a;
  --accent-dim: rgba(22, 163, 74, 0.18);
}
:root[data-primary="rose"] {
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-soft: rgba(225, 29, 72, 0.12);
  --accent: #e11d48;
  --accent-dim: rgba(225, 29, 72, 0.18);
}

/* Same overrides under dark mode — ensure soft tints stay readable on dark surfaces */
:root[data-theme="dark"][data-primary="teal"]   { --primary: #2dd4bf; --primary-hover: #5eead4; --primary-soft: rgba(45, 212, 191, 0.20); --accent: #2dd4bf; --accent-dim: rgba(45, 212, 191, 0.25); }
:root[data-theme="dark"][data-primary="purple"] { --primary: #a78bfa; --primary-hover: #c4b5fd; --primary-soft: rgba(167, 139, 250, 0.22); --accent: #a78bfa; --accent-dim: rgba(167, 139, 250, 0.28); }
:root[data-theme="dark"][data-primary="orange"] { --primary: #fb923c; --primary-hover: #fdba74; --primary-soft: rgba(251, 146, 60, 0.22); --accent: #fb923c; --accent-dim: rgba(251, 146, 60, 0.28); }
:root[data-theme="dark"][data-primary="green"]  { --primary: #4ade80; --primary-hover: #86efac; --primary-soft: rgba(74, 222, 128, 0.22); --accent: #4ade80; --accent-dim: rgba(74, 222, 128, 0.28); }
:root[data-theme="dark"][data-primary="rose"]   { --primary: #fb7185; --primary-hover: #fda4af; --primary-soft: rgba(251, 113, 133, 0.22); --accent: #fb7185; --accent-dim: rgba(251, 113, 133, 0.28); }

/* ════════════════════════════════════════════════════════════════════
   User-controlled density
   Compact = tighter spacing, smaller padding/font.
   Comfortable = the default values declared in :root above.
   Spacious = roomier padding, slightly bigger font.
   ════════════════════════════════════════════════════════════════════ */

:root[data-density="compact"] {
  --space-3: 0.5rem;
  --space-4: 0.75rem;
  --space-5: 1rem;
  --space-6: 1.125rem;
  --text-base: 0.85rem;
  --text-sm: 0.78rem;
  --touch-min: 36px;
}
:root[data-density="spacious"] {
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --text-base: 1.05rem;
  --text-sm: 0.95rem;
  --touch-min: 52px;
}

/* ════════════════════════════════════════════════════════════════════
   User-controlled table row height
   Drives the height of every row in `.scope-table-wrap` AND any table
   that opts in via the same data attribute.
   ════════════════════════════════════════════════════════════════════ */

:root[data-row-height="compact"] .scope-table-wrap th,
:root[data-row-height="compact"] .scope-table-wrap td {
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
:root[data-row-height="spacious"] .scope-table-wrap th,
:root[data-row-height="spacious"] .scope-table-wrap td {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
/*
 * Per-app CSS hook.
 *
 * Design tokens, base styles, and utility classes live in
 * @scope/shared/src/theme.css and are imported once from main.tsx.
 *
 * This file is intentionally minimal — add ONLY app-specific overrides here
 * (e.g. header backgrounds, brand-specific tweaks). Token values must come
 * from the shared theme so all 8 apps stay harmonised.
 */
