.touch-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-head {
  padding: 20px;
}

.touch-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 33fr) 10px minmax(260px, 33fr) 10px minmax(300px, 34fr);
  min-height: 520px;
  gap: 0;
}

.touch-card {
  padding: 16px;
}

.touch-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.hint {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.text-area {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(79, 201, 137, 0.26);
  background: rgba(10, 16, 14, 0.72);
  color: var(--text-main);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.45;
}

.text-area:focus {
  outline: none;
  border-color: rgba(79, 201, 137, 0.62);
  box-shadow: 0 0 0 1px rgba(79, 201, 137, 0.42);
}

.action-btn,
.copy-btn {
  border-radius: 10px;
  border: 1px solid rgba(79, 201, 137, 0.5);
  background: linear-gradient(180deg, rgba(79, 201, 137, 0.24), rgba(79, 201, 137, 0.12));
  color: var(--text-main);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 14px;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.action-btn:hover,
.copy-btn:hover {
  filter: brightness(1.08);
}

.action-btn:active,
.copy-btn:active {
  transform: translateY(1px);
}

.action-btn:disabled,
.copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.touch-card .action-btn {
  margin-top: 10px;
}

.toggle-row {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.touch-pane {
  min-width: 0;
}

.splitter {
  cursor: col-resize;
  position: relative;
}

.splitter::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.splitter:hover::before {
  background: rgba(79, 201, 137, 0.5);
}

.results-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.results-head h3 {
  margin: 0;
  font-size: 16px;
}

.filter-group {
  display: flex;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.filter-group label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.radio-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-toggle span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.radio-toggle input:checked + span {
  border-color: rgba(79, 201, 137, 0.55);
  background: rgba(79, 201, 137, 0.16);
  color: var(--text-main);
}

.results-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 48vh;
  overflow: auto;
}

.result-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.01);
}

.result-item.hidden {
  display: none;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-domain {
  font-weight: 700;
  word-break: break-word;
}

.status-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-never .status-chip {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
}

.status-old .status-chip {
  background: rgba(163, 230, 53, 0.18);
  border-color: rgba(163, 230, 53, 0.55);
}

.status-month .status-chip {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.45);
}

.status-recent .status-chip {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.pill-connected {
  border-color: rgba(79, 201, 137, 0.55);
  color: #a7f3d0;
  background: rgba(79, 201, 137, 0.14);
}

.toast-container {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  padding: 8px 12px;
  min-width: 200px;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.6);
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.6);
}

@media (max-width: 1100px) {
  .touch-workspace {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 12px;
  }

  .splitter {
    display: none;
  }
}
