/* Panel ukryty do startu Alpine (uniknięcie „pustej” strony / migania) */
.aipw-shop-shell {
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #f1f5f9;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

.aipw-panel {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  color: #0f172a;
  line-height: 1.5;
}

/* Logowanie globalne (bez logo sklepu klienta) */
.aipw-portal-login .aipw-topbar--portal-only {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}
.aipw-portal-login .aipw-topbar--portal-only .aipw-topbar__inner {
  justify-content: center;
}
.aipw-portal-login .aipw-topbar--portal-only .aipw-topbar__slot--platform {
  align-items: center;
  text-align: center;
}
.aipw-portal-login__card {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Grupy: nazwa produktu vs URL — wyraźny odstęp między sekcjami */
.aipw-panel .aipw-field-group--product-name {
  margin-bottom: 0.35rem;
}
.aipw-panel .aipw-field-group--product-url {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8eef4;
}

/* Pierwsza sekcja w karcie — bez kreski i zbędnej przerwy nad URL */
.aipw-panel .aipw-card > .aipw-field-group--product-url:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.aipw-panel .aipw-card > .aipw-gen-stack > .aipw-field-group--product-url:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Motywy WP często dają textarea { font-family: monospace } — wymuszamy jedną typografię */
.aipw-panel .aipw-input,
.aipw-panel .aipw-textarea,
.aipw-panel .aipw-select {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* Pasek górny: logo platformy + logo sklepu */
.aipw-topbar {
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.aipw-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.aipw-topbar__slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.aipw-topbar__slot--client {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.aipw-topbar__slot-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.aipw-topbar__logo {
  max-height: 48px;
  width: auto;
  max-width: min(220px, 44vw);
  object-fit: contain;
  display: block;
}

.aipw-topbar__client-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aipw-primary, #0e8c43);
  line-height: 1.25;
  max-width: min(100%, 280px);
}

.aipw-topbar__accent {
  width: 4px;
  align-self: stretch;
  min-height: 44px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--aipw-primary, #0e8c43);
}

@media (max-width: 520px) {
  .aipw-topbar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .aipw-topbar__slot--client {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
  }

  .aipw-topbar__accent {
    width: 100%;
    height: 3px;
    min-height: 0;
    align-self: stretch;
    background: var(--aipw-primary, #0e8c43);
  }
}

.aipw-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 200px;
  color: #64748b;
  font-size: 0.95rem;
}

.aipw-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.aipw-login .aipw-title {
  margin-top: 0;
}

.aipw-dashboard .aipw-header .aipw-title {
  margin-top: 0;
}

.aipw-login-form {
  margin-top: 1rem;
}

.aipw-remember label {
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.aipw-remember input {
  margin-right: 0.35rem;
  vertical-align: middle;
}

body.aipw-site-front .aipw-panel {
  width: 100%;
}

.aipw-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--aipw-primary, #0e8c43);
  margin: 0 0 0.35rem;
}

.aipw-section-title,
.aipw-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.aipw-muted {
  color: #64748b;
  font-size: 0.9rem;
}

.aipw-faq-copy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  font-size: 0.875rem;
}

.aipw-faq-copy-sep {
  color: #94a3b8;
  user-select: none;
}

.aipw-hint {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.aipw-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  color: #334155;
}

.aipw-input,
.aipw-textarea,
.aipw-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

.aipw-textarea {
  resize: vertical;
}

.aipw-file {
  font-size: 0.875rem;
  width: 100%;
}

.aipw-file-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

/* Przyciski — zieleń (główne) + pomarańcz (drugorzędne), spójne stany */
.aipw-btn {
  display: inline-block;
  background: var(--aipw-primary, #0e8c43);
  color: #fff !important;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgba(14, 140, 67, 0.22);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease,
    color 0.18s ease;
}

.aipw-btn:hover:not(:disabled) {
  background: #0a7236;
  box-shadow: 0 4px 12px rgba(14, 140, 67, 0.28);
  transform: translateY(-1px);
}

.aipw-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(14, 140, 67, 0.2);
}

.aipw-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--aipw-accent, #ff8e00);
}

.aipw-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.aipw-btn-lg {
  padding: 0.65rem 1.3rem;
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(14, 140, 67, 0.2);
}

.aipw-btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.aipw-btn-secondary {
  background: var(--aipw-accent, #ff8e00);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(200, 100, 0, 0.22);
  border-color: transparent;
}

.aipw-btn-secondary:hover:not(:disabled) {
  background: #e67600;
  box-shadow: 0 4px 12px rgba(200, 100, 0, 0.28);
}

.aipw-btn-secondary:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--aipw-primary, #0e8c43);
}

.aipw-btn-ghost {
  background: #fff;
  color: var(--aipw-primary, #0e8c43) !important;
  border: 2px solid rgba(14, 140, 67, 0.45);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.aipw-btn-ghost:hover:not(:disabled) {
  background: rgba(14, 140, 67, 0.08);
  border-color: var(--aipw-primary, #0e8c43);
  transform: translateY(-1px);
}

.aipw-btn-ghost:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--aipw-accent, #ff8e00);
}

.aipw-btn-link {
  background: none;
  border: none;
  color: #d97700;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  margin-right: 0.75rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 142, 0, 0.55);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.aipw-btn-link:hover {
  color: var(--aipw-accent, #ff8e00);
  text-decoration-color: var(--aipw-accent, #ff8e00);
}

.aipw-btn-link:focus-visible {
  outline: 2px solid var(--aipw-primary, #0e8c43);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Przycisk „Wybierz plik” w polach file */
.aipw-panel input[type='file']::file-selector-button,
.aipw-panel input[type='file']::-webkit-file-upload-button {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.95rem;
  margin-right: 0.75rem;
  border-radius: 8px;
  border: 2px solid rgba(14, 140, 67, 0.35);
  background: #fff;
  color: var(--aipw-primary, #0e8c43);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.aipw-panel input[type='file']:hover::file-selector-button,
.aipw-panel input[type='file']:hover::-webkit-file-upload-button {
  background: rgba(14, 140, 67, 0.09);
  border-color: var(--aipw-primary, #0e8c43);
}

.aipw-panel input[type='file']:focus-visible::file-selector-button,
.aipw-panel input[type='file']:focus-visible::-webkit-file-upload-button {
  outline: 2px solid var(--aipw-accent, #ff8e00);
  outline-offset: 2px;
}

.aipw-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.aipw-usage-section {
  margin-bottom: 1.25rem;
}

.aipw-usage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .aipw-usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.aipw-usage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 128px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(14, 140, 67, 0.14);
  border-radius: 12px;
  padding: 1rem 1.2rem 1.15rem;
  box-shadow: 0 1px 2px rgba(14, 140, 67, 0.06);
}

.aipw-usage-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: var(--aipw-primary, #0e8c43);
  opacity: 1;
}

.aipw-usage-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--aipw-primary, #0e8c43);
  margin-bottom: 0.55rem;
  opacity: 0.9;
}

.aipw-usage-value {
  margin: 0;
  font-size: 1.05rem;
}

.aipw-usage-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.aipw-usage-bar {
  height: 11px;
  background: rgba(14, 140, 67, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.aipw-usage-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.aipw-bar-green {
  background: var(--aipw-primary, #0e8c43);
}

.aipw-bar-yellow {
  background: var(--aipw-accent, #ff8e00);
}

.aipw-bar-red {
  background: #dc2626;
}

.aipw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

/* Przełącznik: pełne opisy ↔ meta SEO (adresy /sklep/{slug}/ i …/meta/) */
.aipw-module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  align-items: center;
}

.aipw-module-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #fafafa;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #64748b;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

a.aipw-module-nav__link:hover {
  border-color: rgba(14, 140, 67, 0.35);
  color: var(--aipw-primary, #0e8c43);
  background: #fff;
}

.aipw-module-nav__link.is-active,
span.aipw-module-nav__link.is-active {
  border-color: var(--aipw-primary, #0e8c43);
  color: var(--aipw-primary, #0e8c43);
  background: #ecfdf3;
  box-shadow:
    0 0 0 1px var(--aipw-primary, #0e8c43),
    0 2px 6px rgba(14, 140, 67, 0.1);
}

a.aipw-module-nav__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 142, 0, 0.45);
}

.aipw-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.aipw-tabs button {
  padding: 0.5rem 1.05rem;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #fafafa;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #64748b;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.aipw-tabs button:hover:not(.active) {
  border-color: rgba(14, 140, 67, 0.35);
  color: var(--aipw-primary, #0e8c43);
  background: #fff;
}

.aipw-tabs button.active {
  border-color: var(--aipw-primary, #0e8c43);
  color: var(--aipw-primary, #0e8c43);
  background: #ecfdf3;
  box-shadow:
    0 0 0 1px var(--aipw-primary, #0e8c43),
    0 2px 6px rgba(14, 140, 67, 0.1);
}

.aipw-tabs button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 142, 0, 0.45);
}

.aipw-gen-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Odstęp między polami a przyciskiem „Generuj” w karcie wejściowej */
.aipw-gen-card > .aipw-btn-block {
  margin-top: 1.5rem;
}

.aipw-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
}

@media (min-width: 768px) {
  .aipw-input-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.aipw-field-span {
  grid-column: 1 / -1;
}

.aipw-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.aipw-inline-actions .aipw-input {
  flex: 1 1 200px;
  min-width: 0;
}

.aipw-inline-actions .aipw-btn {
  flex: 0 0 auto;
  align-self: center;
}

.aipw-alert {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.aipw-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.aipw-alert-warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.aipw-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.aipw-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--aipw-primary, #0e8c43);
  border-radius: 50%;
  animation: aipw-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.aipw-results-card {
  border-color: rgba(14, 140, 67, 0.22);
  background: #f8fafc;
}

.aipw-field {
  margin-bottom: 1.1rem;
}

.aipw-actions-row {
  margin-top: 0.35rem;
}

.aipw-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.25rem 0;
}

.aipw-woo-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.aipw-hist-card .aipw-hist-empty {
  margin: 0 0 1rem;
}

.aipw-hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aipw-hist-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.aipw-hist-item:last-child {
  border-bottom: none;
}

.aipw-hist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.875rem;
}

.aipw-hist-name {
  font-weight: 600;
  color: #0f172a;
}

.aipw-hist-preview {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
}

/* Drag & drop — dokumenty + zdjęcia */
.aipw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aipw-dropzone {
  border: 2px dashed rgba(14, 140, 67, 0.38);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  background: rgba(14, 140, 67, 0.04);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.aipw-dropzone:hover {
  border-color: var(--aipw-primary, #0e8c43);
  background: rgba(14, 140, 67, 0.07);
}

.aipw-dropzone:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 142, 0, 0.35);
}

.aipw-dropzone--active {
  border-color: var(--aipw-accent, #ff8e00);
  border-style: solid;
  background: rgba(255, 142, 0, 0.09);
  box-shadow: 0 0 0 3px rgba(255, 142, 0, 0.22);
}

.aipw-dropzone--busy {
  pointer-events: none;
  opacity: 0.88;
}

.aipw-dropzone__title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--aipw-primary, #0e8c43);
}

.aipw-dropzone__sub {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.aipw-dropzone__busy {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aipw-accent, #ff8e00);
}

.aipw-attach-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aipw-attach-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
}

.aipw-attach-name {
  flex: 1 1 140px;
  min-width: 0;
  word-break: break-word;
  font-weight: 500;
}

.aipw-attach-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(14, 140, 67, 0.14);
  color: var(--aipw-primary, #0e8c43);
}

.aipw-attach-badge--img {
  background: rgba(255, 142, 0, 0.18);
  color: #b45309;
}

.aipw-attach-item .aipw-attach-remove {
  margin-left: auto;
  padding: 0.25rem 0.6rem !important;
  font-size: 0.78rem !important;
  min-height: 0;
}

/* Seria URL — panel meta */
.aipw-batch-card {
  border-left: 4px solid #94a3b8;
}

.aipw-batch-results-card .aipw-batch-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.aipw-batch-results-card .aipw-batch-row {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.aipw-batch-row--err {
  border-color: #fecaca;
  background: #fef2f2;
}

.aipw-batch-row__url {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  word-break: break-all;
}

.aipw-batch-row__url a {
  color: var(--aipw-primary, #0e8c43);
  font-weight: 600;
}

.aipw-batch-row__name {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
}

.aipw-batch-row__err {
  margin: 0;
  font-size: 0.875rem;
}

.aipw-batch-row__fields {
  margin-top: 0.35rem;
}

/* Raport Keyword Planner (meta panel) */
.aipw-kp-report {
  border-left: 4px solid var(--aipw-primary, #0e8c43);
}

.aipw-kp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.875rem;
}

.aipw-kp-list li {
  margin: 0;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.aipw-kp-list__phrase {
  font-weight: 600;
  color: #0f172a;
  flex: 1 1 160px;
  min-width: 0;
  word-break: break-word;
}

.aipw-kp-list__meta {
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
}

/* Log przebiegu meta (formularz → seedy → DataForSEO → AI) */
.aipw-meta-process {
  border-left: 4px solid #64748b;
}

.aipw-meta-process details {
  margin: 0;
}

.aipw-meta-process summary {
  cursor: pointer;
  font-weight: 600;
  color: #334155;
  padding: 0.15rem 0;
}

.aipw-meta-process summary::-webkit-details-marker {
  margin-right: 0.35rem;
}

.aipw-meta-process .aipw-process-sub {
  margin: 1rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.aipw-meta-process .aipw-code-inline {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  font-size: 0.85rem;
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

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

.aipw-row--gap {
  gap: 0.75rem;
}

.aipw-row .aipw-input {
  flex: 1 1 200px;
  min-width: 0;
}

/* Audyt opisu — rekomendacje + podgląd HTML */
.aipw-rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aipw-rec-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.aipw-rec-card--high {
  border-left: 4px solid #dc2626;
}

.aipw-rec-card--med {
  border-left: 4px solid #ea580c;
}

.aipw-rec-card--low {
  border-left: 4px solid #94a3b8;
}

.aipw-rec-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #475569;
  margin-right: 0.5rem;
}

.aipw-rec-prio {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.aipw-rec-card--high .aipw-rec-prio {
  background: #fee2e2;
  color: #991b1b;
}

.aipw-rec-card--med .aipw-rec-prio {
  background: #ffedd5;
  color: #9a3412;
}

.aipw-rec-issue,
.aipw-rec-fix {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1e293b;
}

.aipw-desc-html-preview {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
  max-height: 28rem;
  overflow: auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

.aipw-desc-html-preview h2 {
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
}

.aipw-desc-html-preview h2:first-child {
  margin-top: 0;
}

.aipw-desc-html-preview h3 {
  font-size: 1.02rem;
  margin: 0.85rem 0 0.35rem;
}

.aipw-desc-html-preview ul,
.aipw-desc-html-preview ol {
  margin: 0.35rem 0 0.75rem 1.25rem;
}

@media (max-width: 600px) {
  .aipw-header {
    flex-direction: column;
  }

  .aipw-cta-row .aipw-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
