.zt-tool {
  border: 1px solid #d9dee7;
  border-radius: 14px;
  padding: 28px;
  margin: 32px 0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.zt-tool__header {
  margin-bottom: 20px;
}

.zt-tool__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #1e293b;
}

.zt-tool__description {
  margin: 0;
  color: #5b6472;
  font-size: 1rem;
  line-height: 1.6;
}

.zt-tool__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zt-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zt-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
}

.zt-input,
.zt-textarea,
.zt-select {
  width: 100%;
  border: 1px solid #cfd6e4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.5;
  background: #ffffff;
  color: #1e2430;
  box-sizing: border-box;
}

.zt-textarea {
  resize: vertical;
  min-height: 140px;
}

.zt-input:focus,
.zt-textarea:focus,
.zt-select:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.zt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zt-button {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #2f6fed;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.zt-button:hover {
  opacity: 0.92;
}

.zt-button--secondary {
    background: #2563eb;
    color: #ffffff;
}

.zt-button--secondary:hover {
    background: #1d4ed8;
}

.zt-button--ghost {
  background: #eef1f6;
  color: #293241;
}

.zt-message {
  min-height: 24px;
  font-size: 0.92rem;
  color: #5b6472;
}

.zt-message.is-success {
  color: #18794e;
}

.zt-message.is-error {
  color: #c62828;
}

.dark-mode body {
  background: #0b1220;
  color: #e5edf7;
}

.dark-mode .site-header,
.dark-mode #header,
.dark-mode [data-row="middle"] {
  background: #0f172a !important;
}

.dark-mode .site-header,
.dark-mode #header,
.dark-mode [data-row="middle"],
.dark-mode [data-row="middle"] .ct-container {
  border-color: #1e293b !important;
}

.dark-mode .site-logo-container,
.dark-mode .site-branding,
.dark-mode .menu > li > a,
.dark-mode .ct-header .ct-menu-link,
.dark-mode .ct-header .ct-icon,
.dark-mode .ct-header .ct-label {
  color: #e5edf7 !important;
}

.zt-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #cfd6e4;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.zt-theme-toggle:hover {
  border-color: #2f6fed;
  color: #2f6fed;
}

.zt-theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.zt-theme-toggle__icon {
  font-size: 16px;
  line-height: 1;
}

.zt-status {
  min-height: 24px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #5b6472;
}

.zt-status.is-success {
  color: #18794e;
}

.zt-status.is-error {
  color: #c62828;
}

.zt-status.is-info {
  color: #5b6472;
}

.zt-error-details {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #f7f9fc;
  overflow-x: auto;
}

.zt-error-details__pre {
  margin: 0;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #24324a;
  white-space: pre;
}