/* Lucide icons — lokalny bundle vendor/lucide.min.js */
.ic {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ic-14 { width: 14px; height: 14px; }
.external-nav-icon {
  opacity: 0.88;
  margin-left: 1px;
}
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }
.ic-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.sticky-tools {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.sticky-tools .brand,
.ui-btn,
.btn,
.deliverable-btn,
.btn-drive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sticky-tools .brand {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--accent);
  margin-right: auto;
  text-decoration: none;
  cursor: pointer;
}
.sticky-tools .brand:hover {
  opacity: 0.88;
}
.sticky-tools .brand.brand-logo-only {
  font-size: 0;
  gap: 0;
}
.sticky-tools .brand .brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 2rem;
  overflow: visible;
  flex-shrink: 0;
  line-height: 0;
}
.sticky-tools .brand .brand-logo {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.ui-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  line-height: 1.2;
}
.ui-btn:hover { background: var(--bg2); }
.ui-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ui-btn.primary:hover { filter: brightness(0.95); }
.ui-btn.danger {
  background: #fff5f5;
  border-color: #e8b4b0;
  color: var(--flag);
}
.ui-btn.danger:hover { background: #fdecea; }
.ui-select {
  font-size: var(--text-sm);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  color: var(--text);
  max-width: 100%;
}
.sticky-tools .btn-back { margin-right: 4px; }
.lexi-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.lexi-cost-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  line-height: 1.2;
  flex-shrink: 0;
}
.lexi-cost-counter__part {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.lexi-cost-counter__label {
  font-weight: var(--weight-medium);
  color: var(--muted);
}
.lexi-cost-counter__value {
  font-weight: var(--weight-bold);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.lexi-cost-counter__total .lexi-cost-counter__value {
  color: var(--accent);
}
.lexi-cost-counter__sub {
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  color: var(--muted);
}
.lexi-cost-counter__forecast .lexi-cost-counter__value {
  color: #0d9488;
}
.cost-estimate-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f0fdfa;
}
.cost-estimate-panel h3 {
  margin: 0 0 8px;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}
.cost-estimate-panel .cost-estimate-range {
  font-size: 18px;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  color: #0f766e;
}
.cost-estimate-panel .cost-estimate-meta {
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
}
.cost-estimate-panel.loading {
  opacity: 0.75;
}
.cost-estimate-panel.err {
  background: #fef2f2;
  border-color: #fecaca;
}
body.has-app-shell {
  padding-top: 56px;
}

/* Widok użytkownika vs administracyjny */
.lexi-mode-user .lexi-admin-only {
  display: none !important;
}
.lexi-mode-admin .lexi-user-only {
  display: none !important;
}
.ui-btn.nav-mode-toggle {
  font-size: var(--text-xs);
  color: var(--muted);
  border-style: dashed;
}
.lexi-mode-admin .ui-btn.nav-mode-toggle {
  color: #e65100;
  border-color: #ffcc80;
  background: #fffaf0;
}
.deliverable-head .ic-wrap {
  margin-right: 8px;
}
.short-link-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.short-link-box label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  margin-bottom: 6px;
}
.short-link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.short-link-row input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: var(--text-xs);
}
