.tz-wrap {
  width: 100%;
  padding: 4px 0 28px;
  box-sizing: border-box;
}

.tz-hint {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.tz-hint code {
  font-size: 13px;
  background: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}

.tz-form {
  max-width: 860px;
}

.tz-field {
  margin-bottom: 16px;
}

.tz-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.tz-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tz-multi {
  position: relative;
}

.tz-multi-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-right: 32px;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.tz-multi-btn:focus,
.tz-multi.is-open .tz-multi-btn {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.tz-multi-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

.tz-checks {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 8px;
  background: #f9fafb;
}

.tz-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tz-input,
.tz-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}

.tz-input-row .tz-input {
  flex: 1 1 240px;
  min-width: 0;
}

.tz-input:focus,
.tz-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.tz-search {
  margin-bottom: 8px;
}

.tz-preset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tz-chip {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}

.tz-chip:hover {
  background: #f3f4f6;
}

.tz-chip.is-on {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.tz-group-title {
  margin: 8px 4px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.tz-country {
  margin: 6px 4px 2px;
  padding-left: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.tz-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
}

.tz-check:hover {
  background: #fff;
}

.tz-check input {
  margin: 0;
}

.tz-check .tz-id {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tz-actions {
  margin-top: 8px;
}

.tz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}

.tz-btn-primary {
  background: #10b981;
  color: #fff;
}

.tz-btn-primary:hover:not(:disabled) {
  background: #059669;
}

.tz-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.tz-btn-secondary:hover {
  background: #d1d5db;
}

.tz-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.tz-error {
  margin: 10px 0 0;
  font-size: 14px;
  color: #dc2626;
}

.tz-result {
  margin-top: 20px;
}

.tz-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tz-result-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.tz-source-line {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}

.tz-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.tz-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

.tz-table th,
.tz-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  font-size: 14px;
  color: #111827;
}

.tz-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.tz-table tbody tr:last-child td {
  border-bottom: none;
}

.tz-table tbody tr:hover {
  background: #f9fafb;
}

.tz-table tbody tr.is-source {
  background: #ecfdf5;
}

.tz-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.tz-intro {
  margin-top: 28px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.tz-intro h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.tz-intro h2:not(:first-child) {
  margin-top: 20px;
}

.tz-intro h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.tz-intro p,
.tz-intro li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.tz-intro ul {
  margin: 0;
  padding-left: 1.3em;
}

.tz-intro code {
  font-size: 13px;
  background: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
}

.tz-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

@media (max-width: 640px) {
  .tz-input-row {
    flex-direction: column;
  }

  .tz-btn-primary,
  .tz-input-row .tz-btn {
    width: 100%;
  }
}
