.stop-tool {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--theme-panel-strong, rgba(255, 255, 255, .92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.08);
  padding: 18px;
}
.stop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 14px;
  margin-bottom: 12px;
}
.stop-grid textarea {
  min-height: 310px;
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.45;
}
.stop-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}
.toggle-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(20, 94, 91, .16);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.toggle-row:hover {
  transform: translateY(-1px);
  border-color: rgba(125,211,252,.38);
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 28px rgba(16, 70, 76, .10);
}
.toggle-row.is-active {
  border-color: rgba(48,213,200,.48);
  background: rgba(48,213,200,.14);
}
.toggle-row input {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid rgba(164,188,209,.44);
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.toggle-row input::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #041313;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(38deg) scale(.65);
  transition: opacity .16s ease, transform .2s cubic-bezier(.2, .9, .2, 1.25);
}
.toggle-row input:checked {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(48,213,200,.12), 0 10px 24px rgba(48,213,200,.22);
}
.toggle-row input:checked::after {
  opacity: 1;
  transform: rotate(38deg) scale(1);
}
.stop-summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: 14px;
}
.stop-results {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--theme-panel-strong, rgba(255,255,255,.92));
}
.stop-results::before {
  content: "";
  display: inline-flex;
  margin: 12px 12px 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: #041313;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stop-results table {
  min-width: 920px;
  margin-top: 8px;
}
.stop-results th:nth-child(1), .stop-results td:nth-child(1) { width: 260px; }
.stop-results th:nth-child(2), .stop-results td:nth-child(2) { width: 520px; }
.stop-results th:nth-child(3), .stop-results td:nth-child(3) { width: 150px; }
.stop-results a {
  color: #126ad8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stop-results td {
  white-space: normal;
  vertical-align: middle;
}
.stop-row-blocked td {
  background: rgba(255, 104, 117, .12) !important;
}
.stop-row-blocked td:first-child,
.stop-row-blocked .stop-status {
  color: var(--red);
  font-weight: 950;
}
.stop-row-duplicate td {
  background: rgba(255, 104, 117, .10) !important;
}
.stop-row-duplicate td:first-child,
.stop-row-duplicate .stop-status {
  color: var(--red);
  font-weight: 950;
}
.stop-row-blocked.stop-row-duplicate td {
  background: rgba(255, 104, 117, .12) !important;
}
.stop-row-blocked.stop-row-duplicate td:first-child,
.stop-row-blocked.stop-row-duplicate .stop-status {
  color: var(--red);
  font-weight: 950;
}
.stop-status.clean {
  color: var(--green);
  font-weight: 950;
}
.empty-result-row td {
  height: 90px;
  color: var(--muted);
  text-align: center;
}
.hero .toolbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}
.hero .toolbar #checkBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041313;
}
body:not(.is-authenticated) .app-only { display: none !important; }
html[data-theme="dark"] .stop-tool,
html[data-theme="dark"] .stop-results {
  background: var(--theme-panel, rgba(9, 21, 26, .9));
}
html[data-theme="dark"] .toggle-row,
html[data-theme="dark"] .stop-summary {
  background: rgba(15, 37, 43, .78);
  border-color: rgba(124, 221, 216, .18);
}
html[data-theme="dark"] .toggle-row:hover {
  background: rgba(18, 45, 52, .92);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
html[data-theme="dark"] .toggle-row input { background: rgba(5,11,15,.86); }
html[data-theme="dark"] .stop-results a { color: #74c7ff; }
@media (max-width: 760px) {
  .stop-grid { grid-template-columns: 1fr; }
  .stop-summary { border-radius: 18px; }
  .hero .toolbar { display: grid !important; grid-template-columns: 1fr; }
}

/* v73 stop-list surface normalization */
.stop-results::before { content: none !important; display: none !important; }
.stop-tool, .stop-results { background: var(--theme-panel-strong) !important; color: var(--ink) !important; }
.stop-grid label, .stop-results th, .stop-results td { color: var(--ink) !important; }
.stop-options, .stop-summary {
  background: color-mix(in srgb, var(--theme-panel-strong) 82%, var(--accent) 5%) !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
}
.stop-grid textarea { min-height: 260px; line-height: 1.45; }
.stop-results table { margin-top: 0 !important; }

/* v76 compact stop-list options */
.stop-options {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.stop-options .toggle-row {
  width: auto !important;
  max-width: min(100%, 620px) !important;
  min-height: 42px !important;
  padding: 8px 14px 8px 10px !important;
  background: color-mix(in srgb, var(--theme-panel-strong) 86%, var(--accent) 4%) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
}

html[data-theme="dark"] .stop-options .toggle-row {
  background: rgba(10, 28, 34, .92) !important;
  color: #e9fbfb !important;
  border-color: rgba(148, 226, 226, .22) !important;
}

.stop-options .toggle-row span {
  line-height: 1.25 !important;
}

.stop-summary {
  margin-top: 2px !important;
}
