.ir-studio-inline-arrow {
  width: 1rem;
  height: 1rem;
}

.ir-studio-pack-section-head {
  margin-top: 2.4rem;
}

.ir-studio-pack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ir-studio-pack-card {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ir-studio-pack-card:hover {
  transform: translateY(-2px);
  border-color: #fca5a5;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
}

.dark .ir-studio-pack-card {
  border-color: #374151;
  background: #111827;
}

.ir-studio-pack-card__stack {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--pack-bg), color-mix(in srgb, var(--pack-bg) 72%, #020617));
}

.ir-studio-pack-card__sheet {
  --offset: calc(var(--sheet-index) * 13px);
  position: absolute;
  inset: calc(22px + var(--offset)) auto auto calc(18px + var(--offset));
  width: 86px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 0;
  background: linear-gradient(165deg, color-mix(in srgb, var(--pack-accent) 22%, var(--pack-bg)), var(--pack-bg));
  box-shadow: 0 14px 28px rgba(2, 6, 23, .24);
  transform: rotate(0deg);
}

.ir-studio-pack-card__sheet:nth-child(1) { transform: rotate(-3deg); }
.ir-studio-pack-card__sheet:nth-child(2) { transform: rotate(0deg); }
.ir-studio-pack-card__sheet:nth-child(3) { transform: rotate(3deg); }

.ir-studio-pack-card__sheet b {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: .18rem .36rem;
  border-radius: 999px;
  background: var(--pack-accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 950;
  direction: ltr;
}

.ir-studio-pack-card__sheet i {
  position: absolute;
  right: 12px;
  bottom: 18px;
  left: 12px;
  height: 5px;
  border-radius: 99px;
  background: var(--pack-accent);
  box-shadow: 0 -18px 0 color-mix(in srgb, var(--pack-accent) 45%, transparent), 0 -36px 0 color-mix(in srgb, var(--pack-accent) 25%, transparent);
}

.ir-studio-pack-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem 1rem 0;
}

.ir-studio-pack-card__eyebrow {
  width: fit-content;
  margin-bottom: .55rem;
  border-radius: 999px;
  background: #fef2f2;
  padding: .3rem .65rem;
  color: #b91c1c;
  font-size: .76rem;
  font-weight: 900;
}

.dark .ir-studio-pack-card__eyebrow {
  background: rgba(239, 68, 68, .12);
  color: #fca5a5;
}

.ir-studio-pack-card__copy > strong {
  color: #111827;
  font-size: 1.04rem;
  line-height: 1.75;
  font-weight: 950;
}

.dark .ir-studio-pack-card__copy > strong { color: #fff; }

.ir-studio-pack-card__copy > small {
  display: block;
  margin-top: .35rem;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.8;
}

.dark .ir-studio-pack-card__copy > small { color: #cbd5e1; }

.ir-studio-pack-card__action {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .85rem;
  color: #dc2626;
  font-size: .82rem;
  font-weight: 900;
}

.ir-studio-pack-editor .ir-studio-editor-topbar > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.ir-studio-pack-editor__intro {
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  padding: 1rem;
}

.dark .ir-studio-pack-editor__intro {
  border-color: #374151;
  background: #111827;
}

.ir-studio-pack-editor__intro h1 {
  margin: 0;
  color: #111827;
  font-size: 1.18rem;
  line-height: 1.75;
  font-weight: 950;
}

.dark .ir-studio-pack-editor__intro h1 { color: #fff; }

.ir-studio-pack-editor__intro p {
  margin: .3rem 0 0;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.8;
}

.ir-studio-pack-editor__rail {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  margin-top: .85rem;
  padding: .1rem 0 .35rem;
  scrollbar-width: thin;
}

.ir-studio-pack-slide-tab {
  display: inline-flex;
  min-width: 155px;
  min-height: 58px;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: .55rem .65rem;
  color: #334155;
  font-family: Vazirmatn, sans-serif;
  text-align: right;
  cursor: pointer;
}

.dark .ir-studio-pack-slide-tab {
  border-color: #374151;
  background: #1f2937;
  color: #e5e7eb;
}

.ir-studio-pack-slide-tab.is-active {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .08);
}

.dark .ir-studio-pack-slide-tab.is-active { background: rgba(220, 38, 38, .08); }

.ir-studio-pack-slide-tab__number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .74rem;
  font-weight: 950;
  direction: ltr;
}

.ir-studio-pack-slide-tab.is-active .ir-studio-pack-slide-tab__number { background: #dc2626; }

.ir-studio-pack-slide-tab__copy {
  min-width: 0;
}

.ir-studio-pack-slide-tab__copy strong,
.ir-studio-pack-slide-tab__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ir-studio-pack-slide-tab__copy strong { font-size: .8rem; font-weight: 900; }
.ir-studio-pack-slide-tab__copy small { margin-top: .1rem; color: #94a3b8; font-size: .68rem; }

.ir-studio-pack-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem;
  margin-top: .8rem;
}

.ir-studio-pack-nav__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: .55rem .75rem;
  color: #334155;
  font-family: Vazirmatn, sans-serif;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
}

.dark .ir-studio-pack-nav__button {
  border-color: #374151;
  background: #1f2937;
  color: #e5e7eb;
}

.ir-studio-pack-nav__button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.ir-studio-pack-nav__counter {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  direction: ltr;
}

.ir-studio-pack-shared-note {
  margin: .75rem 0 0;
  color: #64748b;
  font-size: .74rem;
  line-height: 1.7;
}

.ir-studio-pack-upload-status {
  display: block;
  margin-top: .35rem;
  color: #059669;
  font-size: .68rem;
  font-weight: 800;
}

.ir-studio-pack-next-phase {
  margin-top: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: .75rem;
  color: #64748b;
  font-size: .76rem;
  line-height: 1.75;
}

.dark .ir-studio-pack-next-phase {
  border-color: #475569;
  background: #1f2937;
  color: #cbd5e1;
}

@media (min-width: 720px) {
  .ir-studio-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .ir-studio-pack-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 190px;
  }

  .ir-studio-pack-card__stack { min-height: 190px; }
  .ir-studio-pack-card__sheet { width: 78px; }
  .ir-studio-pack-slide-tab { min-width: 142px; }
}
