/* =====================================================================
   System Typowania Przetargów — Nowoczesny Interfejs (2026 UI/UX)
   Styl: Dark / Light Dashboard SaaS, mikroanimacje, glassmorphism,
   sprężyste przejścia, interaktywne karty i płynne usuwanie wierszy.
   ===================================================================== */

:root {
  /* Jasny motyw (Domyślny / Light Mode) */
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #334155;
  
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(59, 130, 246, 0.35);

  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --powierzchnia-2: #f1f5f9;
  --powierzchnia-glass: rgba(255, 255, 255, 0.85);

  --ok: #059669;
  --ok-bg: #ecfdf5;
  --ok-line: #a7f3d0;
  --ok-glow: rgba(16, 185, 129, 0.3);

  --warn: #d97706;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --warn-glow: rgba(245, 158, 11, 0.3);

  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --bad-line: #fecaca;
  --bad-glow: rgba(239, 68, 68, 0.3);

  --info: #0284c7;
  --info-bg: #f0f9ff;
  --info-line: #bae6fd;

  --r-1: 6px;
  --r: 10px;
  --r-2: 16px;
  
  --cien-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --cien-1: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --cien: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --cien-2: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  
  --szybko: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --sprezyscie: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  --menu: clamp(210px, 16vw, 260px);
  --luz: clamp(14px, 1.8vw, 32px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =====================================================================
   Ciemny motyw (Wymuszony lub przez preferencję systemową)
   ===================================================================== */
:root[data-theme="dark"],
body[data-theme="dark"] {
  --navy: #070a10;
  --navy-2: #0e141f;
  --navy-3: #172030;

  --accent: #38bdf8;
  --accent-2: #60a5fa;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.4);

  --ink: #f1f5f9;
  --ink-2: #94a3b8;
  --ink-3: #64748b;

  --line: #1e293b;
  --line-2: #141d2b;
  --bg: #090d16;
  --white: #0f172a;
  --powierzchnia-2: #162032;
  --powierzchnia-glass: rgba(15, 23, 42, 0.88);

  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.12);
  --ok-line: rgba(16, 185, 129, 0.25);
  --ok-glow: rgba(16, 185, 129, 0.4);

  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-line: rgba(245, 158, 11, 0.25);
  --warn-glow: rgba(245, 158, 11, 0.4);

  --bad: #f43f5e;
  --bad-bg: rgba(244, 63, 94, 0.12);
  --bad-line: rgba(244, 63, 94, 0.25);
  --bad-glow: rgba(244, 63, 94, 0.4);

  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.12);
  --info-line: rgba(56, 189, 248, 0.25);

  --cien-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --cien-1: 0 4px 12px rgba(0, 0, 0, 0.45);
  --cien: 0 10px 24px -2px rgba(0, 0, 0, 0.55);
  --cien-2: 0 20px 36px -4px rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #070a10;
    --navy-2: #0e141f;
    --navy-3: #172030;

    --accent: #38bdf8;
    --accent-2: #60a5fa;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --accent-glow: rgba(56, 189, 248, 0.4);

    --ink: #f1f5f9;
    --ink-2: #94a3b8;
    --ink-3: #64748b;

    --line: #1e293b;
    --line-2: #141d2b;
    --bg: #090d16;
    --white: #0f172a;
    --powierzchnia-2: #162032;
    --powierzchnia-glass: rgba(15, 23, 42, 0.88);

    --ok: #10b981;
    --ok-bg: rgba(16, 185, 129, 0.12);
    --ok-line: rgba(16, 185, 129, 0.25);
    --ok-glow: rgba(16, 185, 129, 0.4);

    --warn: #f59e0b;
    --warn-bg: rgba(245, 158, 11, 0.12);
    --warn-line: rgba(245, 158, 11, 0.25);
    --warn-glow: rgba(245, 158, 11, 0.4);

    --bad: #f43f5e;
    --bad-bg: rgba(244, 63, 94, 0.12);
    --bad-line: rgba(244, 63, 94, 0.25);
    --bad-glow: rgba(244, 63, 94, 0.4);

    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.12);
    --info-line: rgba(56, 189, 248, 0.25);

    --cien-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --cien-1: 0 4px 12px rgba(0, 0, 0, 0.45);
    --cien: 0 10px 24px -2px rgba(0, 0, 0, 0.55);
    --cien-2: 0 20px 36px -4px rgba(0, 0, 0, 0.7);
  }
}

/* =====================================================================
   Reset i Typografia
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--szybko), transform var(--szybko);
}
a:hover {
  color: var(--accent-2);
  text-decoration: none;
}

:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1 {
  font-size: 20px;
  margin: 0 0 3px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
h2 {
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 11px;
  margin: 0 0 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--ink-3);
}

/* =====================================================================
   Układ Główny (App Layout)
   ===================================================================== */
.app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ---------- Pasek Boczny (Sidebar) ---------- */
.side {
  width: var(--menu);
  flex: 0 0 var(--menu);
  background: var(--navy);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
  transition: width 0.2s ease;
}

.brand {
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-1);
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform var(--sprezyscie);
}
.brand:hover .brand-logo {
  transform: rotate(10deg) scale(1.08);
}
.brand-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.brand-text {
  flex: 1;
  min-width: 0;
}
.brand-text span {
  display: block;
  font-size: 9.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text b {
  display: block;
  color: #f8fafc;
  font-size: 13.5px;
  letter-spacing: -0.2px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wyszukiwarka w menu */
.szukajka {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 10px 4px;
  padding: 8px 12px;
  width: calc(100% - 20px);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  cursor: pointer;
  font-family: var(--font);
  font-size: 12.5px;
  text-align: left;
  transition: all var(--szybko);
}
.szukajka:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.szukajka span {
  flex: 1;
}
.szukajka kbd {
  font-family: var(--font);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  letter-spacing: 0.4px;
  font-weight: 600;
}

/* Nawigacja */
.nav {
  padding: 8px 10px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.nav::-webkit-scrollbar {
  width: 4px;
}
.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.nav .grp {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #475569;
  padding: 14px 10px 6px;
  font-weight: 700;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r);
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 2px;
  position: relative;
  font-size: 13px;
  transition: all var(--szybko);
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  transform: translateX(3px);
}
.nav a:hover .ic {
  transform: scale(1.15);
  color: var(--accent);
}
.nav a.on {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.05));
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}
.nav a.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav a.on .ic {
  color: var(--accent);
}

.nav .pill {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-radius: 20px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 19px;
  transition: all var(--szybko);
}
.nav .pill.pulse-badge {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse-glow 2.5s infinite;
}
.nav .pill.alert-pill {
  background: var(--bad);
  box-shadow: 0 0 8px var(--bad-glow);
}
.nav .pill.warn-pill {
  background: var(--warn);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 4px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 12px var(--accent);
  }
}

/* Stopka Sidebara i Profil */
.side .foot {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.user-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #475569, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.user-meta {
  min-width: 0;
  flex: 1;
}
.user-name {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}
.logout-link {
  color: #94a3b8;
  transition: color var(--szybko);
}
.logout-link:hover {
  color: #f43f5e;
}

/* Przełącznik motywu (Theme Toggle Button) */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-1);
  color: #cbd5e1;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--szybko);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}
.theme-toggle-label {
  display: none;
}
.ikona-slonce {
  display: none;
}
.ikona-ksiezyc {
  display: block;
}
:root[data-theme="light"] .ikona-slonce {
  display: block;
  color: #f59e0b;
}
:root[data-theme="light"] .ikona-ksiezyc {
  display: none;
}

/* ---------- Główny Obszar (Main Content) ---------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top {
  background: var(--powierzchnia-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--luz);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.top-title {
  min-width: 0;
}
.top .sub {
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 1px;
}
.top .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wrap {
  padding: 20px var(--luz) 80px;
  width: 100%;
  animation: fade-in-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================================
   Karty KPI i Statystyki (Interactive Glow Cards)
   ===================================================================== */
.grid {
  display: grid;
  gap: 14px;
}
.g4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.g3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.g2 {
  grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr);
}
@media (max-width: 1020px) {
  .g2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--cien-1);
  transition: all var(--szybko);
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--cien);
  border-color: rgba(56, 189, 248, 0.3);
}
.card .hd {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--powierzchnia-2);
}
.card .bd {
  padding: 18px;
}

.kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 16px 20px;
  box-shadow: var(--cien-1);
  position: relative;
  overflow: hidden;
  transition: transform var(--szybko), box-shadow var(--szybko), border-color var(--szybko);
  cursor: default;
}
.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}
.kpi:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--cien);
  border-color: rgba(56, 189, 248, 0.3);
}

.kpi .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-3);
  font-weight: 700;
}
.kpi .val {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink);
  transition: color var(--szybko);
}
.kpi .dsc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.kpi.acc::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.kpi.acc:hover {
  box-shadow: 0 10px 25px -4px var(--accent-glow);
}

.kpi.good::before {
  background: linear-gradient(90deg, var(--ok), #34d399);
}
.kpi.good:hover {
  box-shadow: 0 10px 25px -4px var(--ok-glow);
}

.kpi.warn::before {
  background: linear-gradient(90deg, var(--warn), #fbbf24);
}
.kpi.warn:hover {
  box-shadow: 0 10px 25px -4px var(--warn-glow);
}

/* =====================================================================
   Nowoczesne Tabele i Interaktywne Wiersze
   ===================================================================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 10;
}
th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--ink-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--powierzchnia-2);
  font-weight: 700;
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  transition: background-color var(--szybko);
}

tbody tr {
  position: relative;
  transition: transform var(--szybko), background-color var(--szybko), opacity 0.35s ease, max-height 0.35s ease;
}
tbody tr:hover {
  background: var(--powierzchnia-2);
}
tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Płynne usuwanie wiersza po decyzji */
tbody tr.wiersz-usuwany {
  opacity: 0 !important;
  transform: translateX(-40px) scale(0.96) !important;
  pointer-events: none;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* =====================================================================
   Wskaźnik Scoringu (Ocena AI) z Pulsującym Punktem
   ===================================================================== */
.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
  background: var(--powierzchnia-2);
  border: 1px solid var(--line);
  position: relative;
  transition: transform var(--sprezyscie), box-shadow var(--szybko);
}
.score:hover {
  transform: scale(1.12);
}

.s-hi {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-line);
  box-shadow: 0 0 12px var(--ok-glow);
}
.s-hi::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin-left: 5px;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.4;
  }
}

.s-md {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn-line);
}
.s-lo {
  color: var(--ink-3);
}
.s-x {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad-line);
}

/* Licznik z animacją aktualizacji */
.licznik-anim {
  animation: pop-bounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* =====================================================================
   Tagi i Pigułki Informacyjne (Badges & Chips)
   ===================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--line-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
  letter-spacing: 0.1px;
  transition: all var(--szybko);
}
.tag:hover {
  transform: translateY(-1px);
}
.tag.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-line);
}
.tag.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-line);
}
.tag.bad {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad-line);
}
.tag.info {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--info-line);
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* =====================================================================
   Przyciski Akcji (Interactive Spring Buttons)
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: var(--cien-sm);
  transition: all var(--szybko);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--powierzchnia-2);
  border-color: var(--ink-3);
  transform: translateY(-2px);
  box-shadow: var(--cien-1);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn.p {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn.p:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn.go {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
  box-shadow: 0 2px 8px var(--ok-glow);
}
.btn.go:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px var(--ok-glow);
}

.btn.no {
  background: var(--white);
  border-color: var(--bad-line);
  color: var(--bad);
}
.btn.no:hover {
  background: var(--bad-bg);
  border-color: var(--bad);
  box-shadow: 0 2px 10px var(--bad-glow);
}

.btn.sm {
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 5px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =====================================================================
   Pola Formularza (Inputs & Selects)
   ===================================================================== */
input, select, textarea {
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  transition: all var(--szybko);
}
input:hover, select:hover, textarea:hover {
  border-color: var(--ink-3);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="date"] {
  min-height: 33px;
}

label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.field {
  margin-bottom: 14px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.row > * {
  flex: 1;
  min-width: 150px;
}

/* Animowany pasek postępu */
.bar {
  height: 6px;
  background: var(--line-2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  border-radius: 4px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bar i::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: bar-shimmer 2s infinite;
}

@keyframes bar-shimmer {
  to {
    left: 100%;
  }
}

.muted {
  color: var(--ink-3);
}
.small {
  font-size: 11.5px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.sep {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty b {
  display: block;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-size: 16px;
}

/* Komunikaty Flash */
.flash {
  padding: 12px 16px;
  border-radius: var(--r);
  margin-bottom: 16px;
  font-weight: 500;
  border: 1px solid;
  animation: wjedz 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash.ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
}
.flash.err {
  background: var(--bad-bg);
  border-color: var(--bad-line);
  color: var(--bad);
}
.flash.info {
  background: var(--info-bg);
  border-color: var(--info-line);
  color: var(--info);
}

@keyframes wjedz {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   Logowanie (Login View)
   ===================================================================== */
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #1e293b, var(--navy));
}
.login .box {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--r-2);
  width: 380px;
  box-shadow: var(--cien-2);
  border: 1px solid var(--line);
  animation: wjedz 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.login h1 {
  text-align: center;
}
.login .sub {
  text-align: center;
  color: var(--ink-3);
  margin-bottom: 24px;
  font-size: 13px;
}

/* Timeline & Historia */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 18px;
  margin-left: 6px;
}
.timeline .ev {
  position: relative;
  padding-bottom: 16px;
}
.timeline .ev::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--white);
}
.timeline .ev.krytyczne::before {
  background: var(--bad);
}
.timeline .ev.wazne::before {
  background: var(--warn);
}

/* Ikony SVG */
.ic {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: transform var(--szybko), opacity var(--szybko);
}
.nav a.on .ic {
  opacity: 1;
}

/* =====================================================================
   Paleta Poleceń (Command Palette Ctrl+K)
   ===================================================================== */
#paleta {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
#paleta.widoczna {
  display: block;
}
.pl-tlo {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pl-okno {
  position: relative;
  margin: 10vh auto 0;
  width: min(650px, 92vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--cien-2);
  overflow: hidden;
  animation: paleta-wjedz 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes paleta-wjedz {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pl-gora {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.pl-gora .ic {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.pl-gora input {
  border: none;
  padding: 0;
  font-size: 16px;
  background: none;
  box-shadow: none;
  color: var(--ink);
}
.pl-gora input:focus {
  border: none;
  box-shadow: none;
}
.pl-lista {
  max-height: 54vh;
  overflow-y: auto;
}
.pl-wiersz {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  transition: background var(--szybko);
}
.pl-wiersz:last-child {
  border-bottom: none;
}
.pl-wiersz.sel, .pl-wiersz:hover {
  background: var(--accent-soft);
}
.pl-typ {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 700;
  color: var(--ink-3);
  min-width: 78px;
}
.pl-tytul {
  font-size: 13.5px;
  font-weight: 600;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-opis {
  font-size: 12px;
  color: var(--ink-3);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-ocena {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ok);
}
.pl-pusto {
  padding: 28px 18px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}
.pl-stopka {
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  background: var(--powierzchnia-2);
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Wiersz wybrany klawiaturą */
tbody tr.wybrany {
  background: var(--accent-soft) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

/* =====================================================================
   Nowoczesny Pasek Toast / Potwierdzenia Decyzji
   ===================================================================== */
#pasek-decyzji {
  position: fixed;
  right: 24px;
  top: 24px;
  transform: translateX(40px) scale(0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-3);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-2);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#pasek-decyzji.widoczny {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
#pasek-decyzji .toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
#pasek-decyzji .toast-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  flex-shrink: 0;
}
#pasek-decyzji.ok {
  background: rgba(6, 78, 59, 0.96);
  border-color: rgba(52, 211, 153, 0.45);
}
#pasek-decyzji.ok .toast-indicator {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
#pasek-decyzji.info {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(56, 189, 248, 0.45);
}
#pasek-decyzji.info .toast-indicator {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}
#pasek-decyzji.err {
  background: rgba(127, 29, 29, 0.96);
  border-color: rgba(248, 113, 113, 0.45);
}
#pasek-decyzji.err .toast-indicator {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}
#pasek-decyzji .btn {
  padding: 4px 10px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
#pasek-decyzji .btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* =====================================================================
   Panel Zadań w Tle (Background Job Panel)
   ===================================================================== */
#zadanie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 480px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--cien-2);
  z-index: 9999;
  display: none;
  overflow: hidden;
  transition: width 0.2s ease, transform 0.2s ease;
  animation: wjedz 0.3s ease;
}
#zadanie.mini {
  width: 300px;
}
#zadanie.mini .teraz {
  padding: 6px 16px 12px;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#zadanie.mini .knag, #zadanie.mini .kroki {
  display: none;
}
#zadanie .zh {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--powierzchnia-2);
  cursor: pointer;
  transition: background var(--szybko);
}
#zadanie .zh:hover {
  background: var(--line-2);
}
#zadanie .zh b {
  font-size: 13.5px;
}
#zadanie .zh .czas {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
#zadanie .zh .x {
  cursor: pointer;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}
#zadanie .zh .x:hover {
  color: var(--ink);
}
#zadanie .pas {
  height: 4px;
  background: var(--line-2);
}
#zadanie .pas i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.4s ease;
}
#zadanie .teraz {
  padding: 10px 16px 8px;
  font-size: 13px;
  font-weight: 600;
}
#zadanie .knag {
  padding: 5px 16px 6px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--ink-3);
  font-weight: 700;
  border-top: 1px solid var(--line);
  background: var(--powierzchnia-2);
  display: flex;
  justify-content: space-between;
}
#zadanie .knag span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
#zadanie .kroki {
  max-height: 280px;
  overflow-y: auto;
  padding: 0 16px 12px;
  font-size: 12.5px;
}
#zadanie .kroki div {
  padding: 4px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
}
#zadanie .kroki div:first-child {
  border-top: none;
}
#zadanie .kroki span {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
#zadanie.gotowe .pas i {
  background: var(--ok);
}
#zadanie.blad .pas i {
  background: var(--bad);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: obrot 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes obrot {
  to { transform: rotate(360deg); }
}

/* =====================================================================
   Responsywność i Skalowanie
   ===================================================================== */
.kol-opc, .kol-opc-2 {}

@media (max-width: 1250px) {
  .kol-opc-2 { display: none; }
  th, td { padding: 9px 11px; }
}

@media (max-width: 900px) {
  .app { display: block; }
  .side {
    position: sticky;
    top: 0;
    z-index: 60;
    width: auto;
    flex: none;
    height: auto;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  }
  .brand {
    padding: 10px 14px 8px;
    border-bottom: none;
  }
  .brand-text b { font-size: 13.5px; }
  .nav {
    display: flex;
    gap: 6px;
    padding: 0 10px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav .grp { display: none; }
  .nav a {
    white-space: nowrap;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
  }
  .nav a.on::before { display: none; }
  .side .foot {
    padding: 8px 14px;
  }
  .theme-toggle-label {
    display: inline;
    font-size: 11px;
  }

  .top {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
    position: static;
  }
  .top .right {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .top form {
    width: 100%;
    flex-wrap: wrap;
  }
  .top form > div {
    flex: 1 1 130px;
  }
  .top form input, .top form select {
    width: 100% !important;
  }
  .wrap {
    padding: 14px 12px 70px;
  }
  h1 { font-size: 18px; }

  .card { overflow-x: auto; }
  .card .bd { padding: 14px; }
  thead th { position: static; }
  .kol-opc { display: none; }

  input, select, textarea { font-size: 16px; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .btn.sm { padding: 6px 11px; }
  .score { font-size: 16px; min-width: 36px; }

  .login .box { width: 100%; max-width: 370px; padding: 24px 20px; margin: 0 14px; }
  #zadanie { right: 10px; left: 10px; bottom: 10px; width: auto; max-width: none; }
  #zadanie.mini { width: auto; }
  #pasek-decyzji {
    left: 10px;
    right: 10px;
    bottom: auto;
    top: 10px;
    transform: translateY(-20px);
    max-width: none;
    justify-content: space-between;
  }
  #pasek-decyzji.widoczny {
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .g2 { grid-template-columns: 1fr; }
  .kpi .val { font-size: 24px; }
  .wrap { padding: 10px 10px 70px; }
  .top form > div { flex: 1 1 100%; }
}

@media print {
  .side, .top .right, #zadanie, #pasek-decyzji { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   Pigułki Jakości Typowania (Auto-Cutoff Tabs)
   ===================================================================== */
.zakladki-typowania {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-2);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--cien-sm);
  transition: all var(--szybko);
}

.btn-tab:hover {
  background: var(--powierzchnia-2);
  border-color: var(--ink-3);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ink);
}

.btn-tab.aktywny {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--cien-1);
}

:root[data-theme="dark"] .btn-tab.aktywny {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-tab .tab-licznik {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink-2);
}

.btn-tab.aktywny .tab-licznik {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tab-rek {
  color: var(--ok) !important;
  background: var(--ok-bg) !important;
}

.btn-tab.aktywny .tab-rek {
  background: #34d399 !important;
  color: #064e3b !important;
}

.tab-kand {
  color: var(--warn) !important;
  background: var(--warn-bg) !important;
}

.btn-tab.aktywny .tab-kand {
  background: #fbbf24 !important;
  color: #78350f !important;
}

.tab-dzis {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
}

.btn-tab.aktywny .tab-dzis {
  background: #38bdf8 !important;
  color: #0c4a6e !important;
}

.btn-tab-slabe {
  opacity: 0.75;
  border-style: dashed;
}
.btn-tab-slabe:hover {
  opacity: 1;
}

/* Zwijane filtry szczegółowe */
.filtry-box summary {
  list-style: none;
}
.filtry-box summary::-webkit-details-marker {
  display: none;
}

/* =====================================================================
   Pasek Akcji Masowych (Batch Actions Bar)
   ===================================================================== */
.pasek-masowy {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-2);
  margin-bottom: 14px;
  box-shadow: var(--cien-2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: wjedz 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="dark"] .pasek-masowy {
  background: var(--navy-2);
  border-color: rgba(56, 189, 248, 0.3);
}

.pasek-masowy.widoczny {
  display: flex;
}

.masowy-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.masowy-info .ic {
  color: #38bdf8;
  width: 18px;
  height: 18px;
}

.masowy-przyciski {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =====================================================================
   Hybrydowy Układ Split-View
   ===================================================================== */
.split-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.tabela-panel {
  flex: 1 1 65%;
  min-width: 0;
  overflow-x: auto;
  box-shadow: var(--cien);
}

.wiersz-przetargu {
  cursor: pointer;
  transition: background var(--szybko);
}

.wiersz-przetargu:hover {
  background: var(--powierzchnia-2);
}

.wiersz-przetargu.wybrany {
  background: var(--accent-soft) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

.wiersz-przetargu.zaznaczony {
  background: rgba(37, 99, 235, 0.05);
}

/* Prawy Panel Podglądu (Inspector) */
.podglad-panel {
  flex: 0 0 35%;
  width: 35%;
  max-width: 460px;
  min-width: 320px;
  position: sticky;
  top: 75px;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  padding: 0;
  box-shadow: var(--cien-2);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color var(--szybko);
}

.podglad-panel.otwarty .pp-pusto {
  display: none;
}
.podglad-panel.otwarty .pp-zawartosc {
  display: block;
}

.pp-pusto {
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pp-zawartosc {
  display: none;
  padding: 16px;
}

.pp-naglowek {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.pp-metryki {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: var(--powierzchnia-2);
  border-radius: var(--r-1);
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.pp-metryki div {
  min-width: 0;
}

.pp-metryki label {
  font-size: 9.5px;
  margin-bottom: 2px;
}

.pp-metryki b {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-sekcja {
  margin-bottom: 14px;
}

.pp-tekst {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--powierzchnia-2);
  padding: 10px 12px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-line;
}

.pp-stopka {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .split-layout {
    flex-direction: column;
  }
  .podglad-panel {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    position: static;
    max-height: none;
.spinner-sm {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: obrot-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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