/* Styles for the extension page's looping chop demo. Scoped to .sc-ext-* so they are inert on
   every other page that loads this sheet. */

.sc-ext-demo {
  max-width: 560px;
  margin: 1.5rem auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  font-family: system-ui, sans-serif;
}

.sc-ext-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #1b1b1b;
}

.sc-ext-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}
.sc-ext-dot:nth-child(1) { background: #ff5f57; }
.sc-ext-dot:nth-child(2) { background: #febc2e; }
.sc-ext-dot:nth-child(3) { background: #28c840; }

.sc-ext-url {
  color: #9aa;
  font-size: 12px;
  margin-left: 8px;
}

.sc-ext-score {
  margin-left: auto;
  font: 700 12px/1 ui-monospace, monospace;
  padding: 4px 9px;
  border-radius: 999px;
  transition: color 0.3s;
}
.sc-ext-score.high { color: #ff7b72; }
.sc-ext-score.mid { color: #e8b93e; }
.sc-ext-score.low { color: #9bcf1a; }

.sc-ext-field {
  position: relative;
  background: #fff;
  padding: 18px 20px;
  min-height: 92px;
}

.sc-ext-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #555;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.sc-ext-text.clean { color: #111; }

.sc-ext-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #9bcf1a;
  font: 700 15px/1 system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
  cursor: default;
}
.sc-ext-btn.press { transform: scale(0.82); }

.sc-ext-toast {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #111;
  color: #9bcf1a;
  font: 600 12px system-ui, sans-serif;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sc-ext-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
  .sc-ext-field { background: #141414; }
  .sc-ext-text { color: #999; }
  .sc-ext-text.clean { color: #eee; }
}
