.wt-tool {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 48px;
  background: #faf6ec;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #21201b;
}

.wt-panel {
  width: 100%;
  max-width: 960px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(33, 32, 27, 0.08);
  padding: 28px 32px;
}

.wt-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0e6e63;
}

.wt-lead {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: #6b6960;
}

.wt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.wt-tab {
  padding: 10px 18px;
  border: 1px solid #e5e1d6;
  border-radius: 8px;
  background: #fdfbf5;
  color: #21201b;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wt-tab:hover {
  border-color: #0e6e63;
  color: #0e6e63;
}

.wt-tab.is-active {
  background: #0e6e63;
  border-color: #0e6e63;
  color: #fff;
}

.wt-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.wt-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b6960;
}

.wt-input,
.wt-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e1d6;
  border-radius: 8px;
  font-size: 1.125rem;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}

.wt-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}

.wt-input:focus,
.wt-textarea:focus {
  outline: none;
  border-color: #0e6e63;
  box-shadow: 0 0 0 3px rgba(14, 110, 99, 0.15);
}

.wt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.wt-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #0e6e63;
  color: #fff;
  transition: background 0.15s, transform 0.1s;
}

.wt-btn:hover:not(:disabled) {
  background: #0b5a52;
}

.wt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wt-btn-secondary {
  background: #fdfbf5;
  color: #21201b;
  border: 1px solid #e5e1d6;
}

.wt-btn-secondary:hover:not(:disabled) {
  background: #f0ebe0;
}

.wt-btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.wt-results {
  min-height: 48px;
}

.wt-status {
  font-size: 0.9375rem;
  color: #6b6960;
}

.wt-status.is-error {
  color: #b42318;
}

.wt-status.is-ok {
  color: #0e6e63;
  font-weight: 600;
}

.wt-dict-head {
  margin-bottom: 20px;
}

.wt-dict-word {
  margin: 0 0 4px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #21201b;
}

.wt-dict-phonetic {
  margin: 0;
  font-size: 1.125rem;
  color: #6b6960;
}

.wt-meaning {
  margin-bottom: 20px;
}

.wt-pos {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0e6e63;
}

.wt-def {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.wt-example {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-style: italic;
  color: #6b6960;
}

.wt-synonyms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wt-syn-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f5f3;
  color: #0e6e63;
  font-size: 1rem;
  font-weight: 500;
}

.wt-spell-summary {
  margin: 0 0 16px;
  font-size: 1.0625rem;
}

.wt-spell-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wt-spell-item {
  padding: 14px 16px;
  border: 1px solid #e5e1d6;
  border-radius: 8px;
  background: #fdfbf5;
}

.wt-spell-item.is-accepted {
  border-color: #0e6e63;
  background: #e8f5f3;
}

.wt-spell-item.is-ignored {
  opacity: 0.75;
}

.wt-spell-toolbar {
  margin-bottom: 16px;
}

.wt-spell-chosen {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  color: #0e6e63;
}

.wt-spell-fragment {
  font-weight: 700;
  color: #b42318;
}

.wt-spell-msg {
  margin: 4px 0 8px;
  font-size: 0.9375rem;
  color: #6b6960;
}

.wt-spell-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wt-spell-suggestion {
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e1d6;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  color: #21201b;
}

.wt-spell-suggestion:hover {
  border-color: #0e6e63;
  color: #0e6e63;
}

.wt-spell-suggestion.is-selected {
  background: #0e6e63;
  border-color: #0e6e63;
  color: #fff;
}

.wt-spell-ignore {
  margin-top: 10px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: #6b6960;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.wt-spell-ignore:hover {
  color: #21201b;
}

.wt-corrected-heading {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #21201b;
}

.wt-corrected-hint {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: #6b6960;
}

.wt-corrected-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #0e6e63;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-family: inherit;
  line-height: 1.6;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
}

.wt-corrected-actions {
  margin-top: 12px;
  margin-bottom: 0;
}

.wt-preview {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fdfbf5;
  border: 1px solid #e5e1d6;
  font-size: 1.0625rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.wt-preview mark {
  background: #fecaca;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.wt-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .wt-panel {
    padding: 20px 16px;
  }
}
