/* Wspólne tokeny wizualne — Lexi AI Prawnik */
@import url('fonts/jost.css');

:root {
  --text: #202124;
  --muted: #4a4f55;
  --line: #e6e8eb;
  --border: #e6e8eb;
  --bg: #fff;
  --bg2: #f8f9fa;
  --card: #fff;
  --accent: #0d5a87;
  --accent-soft: #e8eef3;
  --flag: #b3261e;
  --flag-soft: #fbe9e7;
  --accept: #2e7d32;
  --accept-soft: #e7f4ea;
  --warn: #e65100;
  --warn-soft: #fff3e0;
  --reject: #c62828;
  --defer: #f9a825;
  --p1-bg: #fdecea;
  --p1-text: #b71c1c;
  --p2-bg: #fff8e1;
  --p2-text: #f57f17;
  --p3-bg: #e8f5e9;
  --p3-text: #2e7d32;
  --font-sans: 'Jost', Arial, sans-serif;
  /* Typografia — skala UI (baza dokumentu 16px; --text-base = 14px UI) */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lead: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.625rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

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

.ui-btn:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s;
  position: relative;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.vision-ocr-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 13px;
}

.vision-ocr-banner-text {
  flex: 1;
  min-width: 0;
}

html.lexi-auth-pending body {
  visibility: hidden;
}
