.nikmed-step28-toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  width: min(420px, calc(100vw - 32px));
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.nikmed-step28-toast {
  transform: translateY(12px);
  opacity: 0;
  border: 1px solid rgba(186, 230, 253, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(20px) saturate(140%);
  border-radius: 20px;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  transition: opacity .22s ease, transform .22s ease;
}
.nikmed-step28-toast.is-visible { transform: translateY(0); opacity: 1; }
.nikmed-step28-toast.is-error {
  border-color: rgba(254, 202, 202, 0.95);
  background: rgba(255, 241, 242, 0.9);
  color: #be123c;
}
.nikmed-step28-file-viewer {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(16px);
}
.nikmed-step28-file-box {
  width: min(1040px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 40px 110px rgba(15, 23, 42, 0.38);
}
.nikmed-step28-file-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.nikmed-step28-file-head p {
  margin: 0 0 6px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nikmed-step28-file-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.nikmed-step28-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nikmed-step28-file-actions a,
.nikmed-step28-file-actions button,
.nikmed-step28-file-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(125, 211, 252, 0.75);
  border-radius: 16px;
  background: rgba(240, 249, 255, 0.8);
  padding: 0 14px;
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.nikmed-step28-file-actions button {
  width: 38px;
  padding: 0;
  color: #64748b;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}
.nikmed-step28-file-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: calc(92vh - 88px);
  overflow: auto;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(224, 242, 254, 0.62));
}
.nikmed-step28-file-body img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 110px);
  object-fit: contain;
}
.nikmed-step28-file-body iframe {
  width: 100%;
  height: calc(92vh - 110px);
  border: 0;
  background: #fff;
}
.nikmed-step28-file-empty {
  padding: 32px;
  text-align: center;
  color: #475569;
}
.nikmed-step28-file-empty p { margin: 0 0 14px; }
a[data-step28-disabled-blank="1"] {
  opacity: .68;
}
@media (max-width: 640px) {
  .nikmed-step28-file-viewer { padding: 10px; }
  .nikmed-step28-file-box { width: 100%; border-radius: 24px; }
  .nikmed-step28-file-head { flex-direction: column; }
  .nikmed-step28-file-actions { width: 100%; justify-content: flex-end; }
}
