/* Breakpoints */
.tz-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.tz-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.tz-page__header h2 {
  margin-bottom: 0;
}
.tz-page__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.tz-page__step {
  display: contents;
}
.tz-page__step--result {
  display: contents;
}
.tz-page__main {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  padding: 32px;
}

.tz-page__url-block {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding-block: 40px;
}

.tz-page__description {
  color: var(--Colors-Text-Subtext, #777);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  margin-bottom: 0;
}

.tz-page__url-actions {
  display: flex;
  justify-content: center;
}

.tz-page__step--result {
  display: contents;
}
.tz-page__step--result .tz-page__btns {
  grid-row: 1;
  grid-column: 1/-1;
  margin-bottom: 20px;
}

.tz-page__switch {
  display: flex;
  justify-content: center;
}

.tz-switch {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.tz-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tz-switch__track {
  position: relative;
  display: flex;
  align-items: center;
  width: 200px;
  height: 40px;
  border-radius: 12px;
  background: rgba(149, 130, 181, 0.08);
  border: 1px solid rgba(149, 130, 181, 0.18);
  padding: 3px;
  transition: background 0.2s ease;
}

.tz-switch__thumb {
  position: absolute;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(149, 130, 181, 0.25);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.tz-switch__label {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--Colors-Text-Subtext, #777);
  transition: color 0.2s ease;
}
.tz-switch__label--left {
  color: var(--Colors-Text-Text, #505050);
}

.tz-switch__input:checked + .tz-switch__track .tz-switch__thumb {
  transform: translateX(calc(100% + 0px));
}
.tz-switch__input:checked + .tz-switch__track .tz-switch__label--left {
  color: var(--Colors-Text-Subtext, #777);
}
.tz-switch__input:checked + .tz-switch__track .tz-switch__label--right {
  color: var(--Colors-Text-Text, #505050);
}

.tz-page__file-drop {
  width: 100%;
  border-radius: 16px;
  border: 1.5px dashed rgba(149, 130, 181, 0.35);
  background: rgba(149, 130, 181, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tz-page__file-drop--over, .tz-page__file-drop:hover {
  border-color: rgba(149, 130, 181, 0.7);
  background: rgba(149, 130, 181, 0.07);
}

.tz-page__file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  pointer-events: none;
}

.tz-page__file-drop-text {
  color: var(--Colors-Text-Text, #505050);
  font-size: 14px;
  pointer-events: auto;
}

.tz-page__file-drop-link {
  color: #9582b5;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
}
.tz-page__file-drop-link:hover {
  text-decoration: none;
}

.tz-page__file-drop-hint {
  color: var(--Colors-Text-Subtext, #777);
  font-size: 12px;
}

.tz-page__file-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(149, 130, 181, 0.2);
  background: rgba(149, 130, 181, 0.05);
}

.tz-page__file-chosen-name {
  color: var(--Colors-Text-Text, #505050);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tz-page__file-chosen-remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.tz-page__file-chosen-remove:hover {
  background: rgba(149, 130, 181, 0.12);
}

.tz-result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tz-result__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.tz-result__meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--colors-stroke-inner-blocks-10, rgba(149, 130, 181, 0.1));
  background: var(--Colors-Backgound-Inner-content-blocks, rgba(149, 130, 181, 0.03));
  flex: 1 1 160px;
}

.tz-result__meta-label {
  color: var(--Colors-Text-Subtext, #777);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.tz-result__meta-value {
  color: var(--Colors-Text-Text, #505050);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.tz-result__structure {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: task-counter;
}

.tz-result__section {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--colors-stroke-inner-blocks-10, rgba(149, 130, 181, 0.1));
  background: var(--Colors-Backgound-Pure-White, #fff);
}
.tz-result__section .tz-result__tasks {
  counter-reset: task-counter;
}

.tz-result__section-heading {
  color: var(--Colors-Text-Headings, #333);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--colors-stroke-inner-blocks-10, rgba(149, 130, 181, 0.1));
}

.tz-result__tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tz-result__task {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 12px;
  border: 1px solid var(--colors-stroke-blocks-20, rgba(149, 130, 181, 0.2));
  color: var(--Colors-Text-Text, #505050);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  counter-increment: task-counter;
}
.tz-result__task::before {
  content: counter(task-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--Colors-Icons-System-icons, #9582b5);
}
