/* Editor component layer — task-first workflow, validation and export confidence UI. */
.popular-task-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.popular-task-strip a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--editor-line);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.6);
  color: #e5edf8;
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.popular-task-strip a:hover,
.popular-task-strip a:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(16, 33, 61, 0.8);
  outline: none;
}

.validation-card {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--editor-line);
  border-radius: 12px;
  background: #0f172a;
}

.validation-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.validation-card__header strong {
  color: #fff;
  font-size: 0.9rem;
}

.validation-list {
  display: grid;
  gap: 7px;
}

.validation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--editor-muted);
}

.validation-item.idle { color: rgba(148, 163, 184, 0.5); }

.validation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--editor-magenta);
  box-shadow: 0 0 8px var(--editor-magenta);
}

/* Tool active states */
.properties details.tool-active {
  border-color: rgba(43, 228, 255, 0.55) !important;
  background: linear-gradient(180deg, rgba(8, 24, 42, 0.98), rgba(7, 16, 32, 0.96)) !important;
  box-shadow: 0 0 0 1px rgba(43, 228, 255, 0.22), 0 18px 38px rgba(0, 0, 0, 0.30) !important;
}
.properties details.tool-active > summary {
  background: linear-gradient(90deg, rgba(56, 217, 240, 0.16), rgba(91, 140, 255, 0.12));
  color: #fff;
}
.properties details.tool-active .summary-kicker { color: #aef0ff; }
.properties details.tool-active .summary-title { color: #fff; }

/* Right rail (ads) — kept for backward compat */
.right-rail {
  width: 140px;
  background: #0f0a1a;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  overflow-y: auto;
  transition: width 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
}
.right-rail.collapsed { width: 0; padding: 0; border-left: none; opacity: 0; overflow: hidden; }
.rail-toggle {
  width: 32px;
  height: 58px;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  margin: 0 6px;
  font-size: 1rem;
  transition: all 0.2s;
}
.rail-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.dormant-slot {
  min-height: 240px;
  border: 1px dashed rgba(138, 92, 255, 0.24);
  border-radius: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a799d9;
  font-size: 0.78rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}
.ad-label {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.68rem;
  color: #8b7fb5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

/* App toast */
.app-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  background: linear-gradient(135deg, #1c1238, #0f0a1a);
  color: #efeaff;
  border: 1px solid rgba(138, 92, 255, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  pointer-events: none;
  font-weight: 600;
}
.app-toast.show { opacity: 1; transform: translateY(0); }
