:root {
  --teal-950: #122a28;
  --teal-900: #1c3f3c;
  --teal-800: #295650;
  --teal-700: #33685f;
}

body { font-family: 'Trebuchet MS', 'Segoe UI', ui-sans-serif, system-ui, sans-serif; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: background-color .15s, opacity .15s; white-space: nowrap;
}
.btn-primary { background: var(--teal-800); color: #fff; }
.btn-primary:hover { background: var(--teal-700); }
.btn-secondary { background: #e2e8f0; color: #334155; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-ghost { background: transparent; color: var(--teal-800); }
.btn-ghost:hover { background: #f0f5f4; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-error { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-neutral { background: #e2e8f0; color: #334155; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }

.tab-btn { padding: 0.55rem 1rem; font-weight: 600; font-size: 0.875rem; border-bottom: 3px solid transparent; color: #64748b; cursor: pointer; }
.tab-btn.active { color: var(--teal-800); border-bottom-color: var(--teal-800); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.data-table th { background: var(--teal-800); color: #fff; text-align: left; padding: 0.5rem 0.65rem; font-weight: 600; position: sticky; top: 0; }
table.data-table td { padding: 0.55rem 0.65rem; border-bottom: 1px solid #eef1f4; vertical-align: top; }
table.data-table tr:hover td { background: #f8fafc; }

.impact-Positive { color: #166534; font-weight: 700; }
.impact-Negative { color: #b91c1c; font-weight: 700; }
.impact-Neutral { color: #475569; font-weight: 700; }
.impact-Mixed { color: #92400e; font-weight: 700; }

textarea, input[type=text], input[type=date], input[type=url], select {
  border: 1px solid #cbd5e1; border-radius: 0.4rem; padding: 0.4rem 0.55rem; font-size: 0.85rem; width: 100%;
}
textarea:focus, input:focus, select:focus { outline: 2px solid var(--teal-700); outline-offset: 1px; border-color: var(--teal-700); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal-panel { background: #fff; border-radius: 0.85rem; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; }

.spinner { border: 3px solid #e2e8f0; border-top-color: var(--teal-800); border-radius: 50%; width: 1.25rem; height: 1.25rem; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dropzone { border: 2px dashed #94a3b8; border-radius: 0.75rem; padding: 1.5rem; text-align: center; transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--teal-800); background: #f0f5f4; }
