* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #dee1e6;
  min-height: 100vh;
  user-select: none;
}

.to-app {
  max-width: 900px;
  margin: 24px auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.to-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #e8eaed;
  border-bottom: 1px solid #dadce0;
}

.to-dots { display: flex; gap: 6px; }
.to-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #bbb;
}
.to-dots i:first-child { background: #ff5f57; }
.to-dots i:nth-child(2) { background: #febc2e; }
.to-dots i:nth-child(3) { background: #28c840; }

.to-url {
  flex: 1;
  padding: 6px 12px;
  background: #fff;
  border-radius: 16px;
  font-size: 0.8rem;
  color: #555;
}

.to-task {
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.to-label { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.to-target { font-size: 0.95rem; font-weight: 600; color: #333; margin-bottom: 8px; }
.to-moves { font-size: 0.78rem; color: #666; }

.to-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  min-height: 120px;
  position: relative;
}

.to-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 8px 8px 0 0;
  cursor: grab;
  font-size: 0.82rem;
  max-width: 180px;
  transition: transform 0.1s;
  position: relative;
}

.to-tab.dragging { opacity: 0.5; cursor: grabbing; }
.to-tab.over { border-color: #1a73e8; background: #e8f0fe; }
.to-tab.creepy { color: #800; animation: to-shake 0.3s infinite; }
.to-tab.clone { box-shadow: 0 0 12px rgba(200,0,0,0.4); border-color: #c00; }

@keyframes to-shake {
  50% { transform: translateX(2px); }
}

.to-favicon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #4285f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.to-favicon.eye {
  background: #111;
  animation: to-blink 1s step-end infinite;
}

@keyframes to-blink {
  50% { opacity: 0.2; }
}

.to-hint {
  padding: 12px 18px;
  font-size: 0.75rem;
  color: #999;
}

.to-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 100;
}
.to-overlay[hidden] { display: none !important; }
.to-overlay h2 { font-size: 1.8rem; margin-bottom: 12px; color: #f44; }
.to-overlay button {
  margin-top: 20px;
  padding: 10px 24px;
  cursor: pointer;
}

.to-cursor-trap {
  position: fixed;
  width: 80px;
  height: 32px;
  background: #f1f3f4;
  border: 1px solid #c00;
  border-radius: 6px;
  pointer-events: none;
  z-index: 50;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #800;
  transform: translate(-50%, -50%);
}
