.tabletka-heal-panel {
  width: 100%;
  max-width: 1440px;
  margin: 96px auto 0;
  padding: 0 24px;
}

.tabletka-heal-panel[hidden] {
  display: none !important;
}

.tabletka-heal-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 22px;
  padding: 22px;
  border-radius: 32px;
  border: 1px solid #1f1f1f;
  background:
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(22, 22, 24, 0.98), rgba(15, 15, 15, 0.98));
  box-shadow: 0 0 4px rgba(0, 0, 0, 1);
}

.tabletka-heal-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  padding: 20px 18px 20px 10px;
}

.tabletka-heal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 1853px;
  border: 1.855px solid #2e2e30;
  background: #272729;
  box-shadow: 0 0 7px #000;
  color: #f8f8fa;
  font-size: 20px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
}

.tabletka-heal-title {
  margin: 0;
  color: #f5f5f5;
  font-size: 64px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -1.28px;
  text-wrap: balance;
}

.tabletka-heal-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(520px, 100%);
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid #1f1f1f;
  background: #161618;
}

.tabletka-heal-timer-label {
  color: #909092;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.3px;
}

.tabletka-heal-timer {
  color: #f5f5f5;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.tabletka-heal-status,
.tabletka-heal-error {
  width: min(560px, 100%);
  padding: 16px 18px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.32px;
}

.tabletka-heal-status {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
}

.tabletka-heal-error {
  border: 1px solid rgba(255, 111, 111, 0.18);
  background: rgba(143, 34, 34, 0.24);
  color: #ffd6d6;
}

.tabletka-heal-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(560px, 100%);
}

.tabletka-heal-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  border: 1px solid #1f1f1f;
  background: #161618;
}

.tabletka-heal-step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #272729;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.32px;
}

.tabletka-heal-step-text {
  color: #f5f5f5;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.34px;
}

.tabletka-heal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(560px, 100%);
}

.tabletka-heal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 248px;
  padding: 17px 20px;
  border-radius: 999px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 1);
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.32px;
}

.tabletka-heal-button:hover {
  opacity: 0.95;
}

.tabletka-heal-button:active {
  transform: scale(0.98);
}

.tabletka-heal-button.primary {
  background: #f5f5f5;
  border: 1px solid #ffffff;
  color: #272729;
}

.tabletka-heal-button.secondary {
  background: #272729;
  border: 1px solid #2e2e30;
  color: #f8f8fa;
}

.tabletka-heal-panel-preview {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.tabletka-heal-preview {
  width: 100%;
  min-height: 100%;
  padding: 12px;
  border-radius: 28px;
  border: 1px solid #1f1f1f;
  background: #101012;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tabletka-heal-preview.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabletka-heal-live-card {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
}

.tabletka-heal-preview [class*="_card_"] {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  min-height: auto !important;
}

.tabletka-heal-preview [class*="_description_"] {
  max-width: none !important;
}

.tabletka-heal-preview [class*="_media_"] {
  border-radius: 16px !important;
}

.tabletka-heal-fallback {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tabletka-heal-fallback-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: #161618;
  border: 1px solid #1f1f1f;
}

.tabletka-heal-fallback-top,
.tabletka-heal-fallback-mid {
  background: rgba(255, 255, 255, 0.08);
}

.tabletka-heal-fallback-top {
  width: 54%;
  height: 18px;
  border-radius: 999px;
}

.tabletka-heal-fallback-mid {
  width: 100%;
  height: 180px;
  border-radius: 18px;
}

.tabletka-heal-fallback-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #272729;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.36px;
}

.tabletka-heal-fallback-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tabletka-heal-fallback-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.4px;
}

.tabletka-heal-fallback-copy p {
  margin: 0;
  color: #909092;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.32px;
}

@media (max-width: 1100px) {
  .tabletka-heal-panel-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .tabletka-heal-panel-copy {
    padding: 16px 8px 0;
  }
}

@media (max-width: 760px) {
  .tabletka-heal-panel {
    margin-top: 72px;
    padding: 0 16px;
  }

  .tabletka-heal-panel-inner {
    gap: 16px;
    padding: 14px;
    border-radius: 24px;
  }

  .tabletka-heal-panel-copy {
    gap: 16px;
    padding: 6px 2px 0;
  }

  .tabletka-heal-badge {
    min-height: 28px;
    padding: 4px 6px;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.24px;
  }

  .tabletka-heal-title {
    font-size: 34px;
    letter-spacing: -0.68px;
  }

  .tabletka-heal-timer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .tabletka-heal-timer {
    font-size: 30px;
    letter-spacing: -0.75px;
  }

  .tabletka-heal-status,
  .tabletka-heal-error {
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 15px;
  }

  .tabletka-heal-step {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 58px;
    padding: 10px 12px 10px 10px;
    border-radius: 18px;
  }

  .tabletka-heal-step-index {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .tabletka-heal-step-text {
    font-size: 15px;
    letter-spacing: -0.3px;
  }

  .tabletka-heal-actions {
    flex-direction: column;
  }

  .tabletka-heal-button {
    width: 100%;
    min-width: 0;
  }

  .tabletka-heal-preview {
    padding: 10px;
    border-radius: 20px;
  }

  .tabletka-heal-fallback-mid {
    height: 140px;
  }
}
