/* Patch 120: modulové CSS pro souhrnné karty wizardu. */

.ap-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  align-items: stretch;
}
.ap-summary-card {
  position: relative;
  min-height: 112px;
  border: 1px solid var(--ap-border);
  background: #fff;
  color: var(--ap-text);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
}
.ap-summary-card--primary,
.ap-summary-card--completed {
  border-color: var(--ap-green);
  background: var(--ap-green-soft);
  color: #064e3b;
  box-shadow: 0 12px 28px rgba(16, 185, 129, .12);
}
.ap-summary-card--placeholder {
  border-color: #dbe5ef;
  background: #fff;
  color: #94a3b8;
  box-shadow: inset 0 0 0 1px rgba(226,232,240,.55);
}
.ap-summary-number {
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid #dbe5ef;
  background: #f8fafc;
  color: #64748b !important;
  font-weight: 950;
  font-size: 1.15rem !important;
}
.ap-summary-step {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid !important;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #10b981;
  color: #fff !important;
  font-weight: 950;
  font-size: .78rem !important;
  margin: 0 !important;
}
.ap-summary-card .icon { font-size: 1.55rem; margin-bottom: .2rem; }
.ap-summary-card strong { display: block; font-size: 1rem; }
.ap-summary-card span { display: block; font-size: .88rem; color: #047857; margin-top: .2rem; }
.ap-summary-card--placeholder span { color: #64748b; }

/* Patch 112 – polish souhrnných karet. */
.ap-summary-strip {
  gap: clamp(10px, 1.6vw, 18px);
  align-items: stretch;
}

.ap-summary-card {
  min-height: 124px;
  padding: clamp(14px, 1.8vw, 20px);
  border-radius: 22px;
  border-color: #dfe8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.ap-summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.ap-summary-card--primary,
.ap-summary-card--completed {
  background: linear-gradient(180deg, #d7fae7 0%, #c9f7dc 100%);
  border-color: var(--ap-green);
  box-shadow: 0 16px 38px rgba(16, 185, 129, .16);
}

.ap-summary-card--placeholder {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #dfe8f0;
}

.ap-summary-number {
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
  border: 1px solid #dfe8f0;
  background: #f8fafc;
  color: #64748b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.ap-summary-step {
  width: 28px;
  height: 28px;
  font-size: .9rem;
  box-shadow: 0 8px 18px rgba(16, 185, 129, .22);
}

@media (max-width: 980px) {
  .ap-summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .ap-summary-card {
    min-height: 104px;
  }
}

@media (max-width: 540px) {
  .ap-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ap-summary-card { min-height: 98px; padding: 11px; }
}
