#zt-local-converter[hidden],
#zt-local-converter [hidden] {
  display: none !important;
}

#zt-local-converter {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 36px;
  color: var(--text, inherit);
}

.zt-local-shell {
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(132, 149, 178, .27);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at top right,
      rgba(83, 115, 255, .13), transparent 60%),
    var(--surface, rgba(124, 137, 160, .06));
  box-shadow: 0 15px 50px rgba(0, 0, 0, .055);
}

.zt-local-kicker {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  color: #718df8;
  text-transform: uppercase;
}

#zt-local-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 10px 0;
}

.zt-local-description,
.zt-local-note {
  line-height: 1.65;
  opacity: .78;
}

.zt-local-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: 22px 0 12px;
  padding: 30px 15px;
  border: 2px dashed rgba(116, 138, 225, .55);
  border-radius: 19px;
  background: rgba(111, 140, 255, .055);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
}

.zt-local-drop:hover,
.zt-local-drop[data-drag="true"],
.zt-local-drop:focus-within {
  border-color: #778cff;
  background: rgba(111, 140, 255, .13);
}

.zt-local-drop strong {
  font-size: 1.05rem;
}

.zt-local-file-input {
  max-width: 100%;
  font: inherit;
}

.zt-local-filename {
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.zt-local-rights {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  margin: 16px 0;
  font-size: .93rem;
}

.zt-local-rights input {
  margin-top: 5px;
  flex-shrink: 0;
}

.zt-local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.zt-local-actions button,
.zt-local-actions a {
  min-height: 44px;
  padding: 11px 19px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.zt-local-primary {
  border: none;
  background: #586ff0;
  color: white;
}

.zt-local-secondary {
  border: 1px solid rgba(140, 150, 175, .4);
  background: transparent;
  color: inherit;
}

.zt-local-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.zt-local-options {
  margin: 20px 0;
}

.zt-local-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zt-local-fields label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.zt-local-fields select {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  font: inherit;
  border: 1px solid rgba(140, 150, 175, .45);
  border-radius: 10px;
  color: inherit;
  background: var(--surface, #202331);
}

.zt-local-progress {
  margin: 20px 0;
}

.zt-local-progress progress {
  width: 100%;
  height: 13px;
  accent-color: #687ffc;
}

#zt-local-status {
  margin: 14px 0 0;
  font-size: .91rem;
  line-height: 1.5;
}

#zt-local-status[data-error="true"] {
  color: #db6565;
}

@media (max-width: 620px) {
  .zt-local-fields {
    grid-template-columns: 1fr;
  }

  .zt-local-shell {
    border-radius: 18px;
  }

  .zt-local-actions button,
  .zt-local-actions a {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zt-local-drop {
    transition: none;
  }
}
