
.pack-page .desktop-nav a.is-active {
  color: #fff;
}
.pack-page .desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.pack-main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 36px) 0 80px;
}
.pack-hero {
  margin-bottom: 32px;
}
.pack-hero h1 {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 20%, #b9b4d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pack-lead {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}
.pack-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.pack-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 12, 18, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}
.pack-right {
  display: grid;
  gap: 18px;
}
.pack-card-head h2 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.pack-card-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.pack-card-head.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.result-actions,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pack-form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}
.field select,
.field select option,
.field select optgroup {
  color: #16151c;
  background-color: #fff;
}
.field select {
  color: var(--text);
  background-color: rgba(18, 18, 26, 0.96);
  color-scheme: light;
}
.field select.is-enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.pack-select {
  position: relative;
}
.pack-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f7f5fb;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pack-select-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f7f5fb;
}
.pack-select-btn::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #d8d4e4;
  border-bottom: 1.5px solid #d8d4e4;
  transform: rotate(45deg) translate(-2px, -2px);
}
.pack-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #16161f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.pack-select-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f7f5fb;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pack-select-option:hover,
.pack-select-option.is-active {
  background: rgba(140, 114, 255, 0.22);
  color: #fff;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-span {
  grid-column: 1 / -1;
}
.field-hint {
  color: var(--muted-2);
  font-size: 0.75rem;
}
.field-hint a {
  color: var(--violet-bright);
  text-decoration: underline;
}
.dropzone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.dropzone.is-drag {
  border-color: rgba(180, 159, 255, 0.9);
  background: rgba(140, 114, 255, 0.12);
}
.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}
.pick-image {
  justify-self: start;
  margin-top: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.dropzone-copy {
  display: grid;
  gap: 4px;
}
.dropzone-copy strong {
  color: var(--text);
  font-size: 0.92rem;
}
.dropzone-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}
.dropzone img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.pack-run {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  font-weight: 650;
}
.pack-run .button-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.form-error {
  color: #ff8d9a;
  font-size: 0.82rem;
}
.progress-track {
  height: 6px;
  margin: 16px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transition: width 0.35s var(--ease);
}
.progress-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
  counter-reset: video-step;
}
.progress-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  counter-increment: video-step;
}
.progress-steps li::before {
  content: counter(video-step);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  flex: 0 0 auto;
}
.progress-steps li.is-on {
  color: #efeaff;
  font-weight: 600;
}
.progress-steps li.is-on::before {
  border-color: rgba(180, 159, 255, 0.85);
  background: rgba(140, 114, 255, 0.22);
  color: #efeaff;
  box-shadow: 0 0 0 4px rgba(140, 114, 255, 0.12);
}
.progress-steps li.is-done {
  color: var(--green);
}
.progress-steps li.is-done::before {
  content: "\2713";
  border-color: rgba(90, 200, 140, 0.55);
  background: rgba(90, 200, 140, 0.16);
  color: var(--green);
}
.video-page [hidden] {
  display: none !important;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.gallery .empty-hint {
  color: var(--muted-2);
  font-size: 0.86rem;
}
.gallery-item {
  display: grid;
  gap: 8px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #09090f;
}
.gallery-item.detail img {
  aspect-ratio: 9 / 16;
}
.gallery-item button,
.gallery-item span {
  font-size: 0.75rem;
  color: var(--muted);
}
.gallery-item button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.plan-text {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #07070c;
  color: #d8d4e4;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.pack-footer {
  padding-top: 24px;
  padding-bottom: 28px;
}
@media (max-width: 960px) {
  .pack-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .pack-main {
    width: min(calc(100% - 28px), 1280px);
  }
}

.autofill-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(140, 114, 255, 0.28);
  border-radius: 16px;
  background: rgba(140, 114, 255, 0.08);
}
.autofill-copy {
  display: grid;
  gap: 4px;
}
.autofill-copy strong {
  color: var(--text);
  font-size: 0.9rem;
}
.autofill-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.autofill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.autofill-btn {
  height: 42px;
  white-space: nowrap;
}
.autofill-box .field-hint {
  margin: 0;
}
.field.is-filled input,
.field.is-filled textarea {
  border-color: rgba(180, 159, 255, 0.95);
  animation: pack-fill-flash 0.9s ease;
}
@keyframes pack-fill-flash {
  from { background: rgba(140, 114, 255, 0.22); }
  to { background: rgba(255, 255, 255, 0.04); }
}
@media (max-width: 960px) {
  .autofill-row {
    grid-template-columns: 1fr;
  }
  .autofill-btn {
    width: 100%;
  }
}

.dropzone-pair {
  display: grid;
  gap: 10px;
}
.dropzone.is-optional {
  border-style: dotted;
}
.check-field .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
}
.check-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #8c72ff;
}
.gallery-item.long {
  grid-column: 1 / -1;
}
.gallery-item.long img {
  aspect-ratio: auto;
  max-height: 720px;
  object-fit: contain;
}


.video-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.video-thumbs.is-drag {
  outline: 1px dashed rgba(180, 159, 255, 0.9);
  outline-offset: 6px;
  border-radius: 16px;
}
.video-thumb,
.video-add-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb .x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
  line-height: 20px;
  padding: 0;
}
.video-add-thumb {
  display: grid;
  place-items: center;
  appearance: none;
  font: inherit;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  white-space: pre-line;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
}
.video-player {
  width: 100%;
  max-height: 420px;
  margin-top: 12px;
  border-radius: 16px;
  background: #050509;
  border: 1px solid var(--line);
}
.video-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.video-badge.run {
  color: #d8d4e4;
  border-color: rgba(180, 159, 255, 0.5);
  background: rgba(140, 114, 255, 0.16);
}
.video-badge.ok {
  color: var(--green);
  border-color: rgba(90, 200, 140, 0.45);
  background: rgba(90, 200, 140, 0.12);
}
.video-badge.err {
  color: #ff8d9a;
  border-color: rgba(255, 141, 154, 0.4);
  background: rgba(255, 80, 100, 0.12);
}
.video-page .result-actions {
  align-items: center;
}
