.werun-circuits-explorer {
  --wc-blue: #13aff0;
  --wc-blue-dark: #087fae;
  --wc-text: #434445;
  --wc-muted: #6c7882;
  position: relative;
  left: 50%;
  width: 100vw;
  margin-top: -56px;
  margin-left: -50vw;
  padding-top: 56px;
  overflow: clip;
  color: var(--wc-text);
  background:
    radial-gradient(circle at 84% 2%, rgba(19,175,240,.085), transparent 29%),
    linear-gradient(180deg, rgba(239,249,253,.72) 0, rgba(247,252,254,.42) 185px, rgba(255,255,255,0) 410px);
  font-family: Inter, Arial, sans-serif;
}

.werun-circuits-explorer,
.werun-circuits-explorer *,
.werun-circuits-explorer *::before,
.werun-circuits-explorer *::after { box-sizing: border-box; }

.werun-circuits-explorer button,
.werun-circuits-explorer input { font: inherit; }

.werun-circuits-explorer svg {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
}

.werun-circuits-explorer__shell {
  width: min(1500px, calc(100% - 56px));
  margin: 0 auto;
  padding: 6px 0 64px;
}

.werun-circuits-explorer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.werun-circuits-explorer__kicker {
  display: inline-flex;
  color: var(--wc-blue-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

.werun-circuits-explorer__header h1 {
  margin: 6px 0 4px;
  color: var(--wc-text);
  font-family: Raleway, sans-serif;
  font-size: clamp(40px, 3.45vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.034em;
}

.werun-circuits-explorer__header p {
  max-width: 760px;
  margin: 0;
  color: var(--wc-muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.38;
}

.werun-circuits-explorer__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 27px;
  margin: 0 2px 9px;
}

.werun-circuits-explorer__filters-head > span:first-child {
  color: var(--wc-muted);
  font-size: 10.5px;
  font-weight: 520;
  line-height: 1.3;
}

.werun-circuits-explorer__count {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(251,196,44,.62);
  border-radius: 999px;
  color: #434445;
  background: rgba(251,196,44,.30);
  box-shadow: 0 6px 18px rgba(151,112,0,.07);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.werun-circuits-explorer__toolbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid rgba(33,102,132,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 42px rgba(38,88,111,.07);
}

.werun-circuits-explorer__tabs,
.werun-circuits-explorer__zones {
  display: flex;
  align-items: center;
  gap: 6px;
}

.werun-circuits-explorer__tabs button,
.werun-circuits-explorer__zones button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(19,175,240,.14);
  border-radius: 12px;
  color: #61707a;
  background: rgba(248,252,254,.92);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.werun-circuits-explorer__tabs button.is-active,
.werun-circuits-explorer__zones button.is-active,
.werun-circuits-explorer__tabs button:hover,
.werun-circuits-explorer__zones button:hover,
.werun-circuits-explorer__tabs button:focus-visible,
.werun-circuits-explorer__zones button:focus-visible {
  color: var(--wc-blue-dark);
  border-color: rgba(19,175,240,.34);
  background: rgba(19,175,240,.08);
  transform: translateY(-1px);
}

.werun-circuits-explorer__filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.werun-circuits-explorer__search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(33,102,132,.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(31,76,96,.055), inset 0 1px 0 rgba(255,255,255,.9);
}

.werun-circuits-explorer__search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #83929c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.werun-circuits-explorer__search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0 !important;
  outline: 0;
  color: #1d303c;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 580;
}

.werun-circuits-explorer__search input::placeholder { color: #9aa6ae; font-weight: 480; }

.werun-circuits-explorer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.werun-circuit-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(19,175,240,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 32px rgba(35,78,98,.065);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.werun-circuit-card--no-logo { grid-template-columns: minmax(0, 1fr) auto; }

.werun-circuit-card:hover { border-color: rgba(19,175,240,.28); box-shadow: 0 16px 38px rgba(35,78,98,.11); transform: translateY(-2px); }
.werun-circuit-card[hidden] { display: none !important; }

.werun-circuit-card__logo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(37,80,101,.10);
  border-radius: 14px;
  background: #fff;
}

.werun-circuit-card__logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.werun-circuit-card__body { min-width: 0; }
.werun-circuit-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; color: #87949d; font-size: 8px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.werun-circuit-card__type { color: var(--wc-blue-dark); }
.werun-circuit-card h2 { margin: 0; color: #434445; font-family: Raleway, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.18; letter-spacing: -.025em; }
.werun-circuit-card__description { margin: 7px 0 0; color: #71808a; font-size: 11px; line-height: 1.45; }
.werun-circuit-card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.werun-circuit-card__badges span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid rgba(19,175,240,.12); border-radius: 999px; color: #63747d; background: #f6fafc; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.werun-circuit-card__badges .is-discipline { color: #087fae; background: rgba(19,175,240,.07); }
.werun-circuit-card__actions { display: flex; align-items: center; gap: 8px; }
.werun-circuit-card__primary, .werun-circuit-card__external { display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; transition: .18s ease; }
.werun-circuit-card__primary { min-height: 38px; gap: 7px; padding: 0 13px; border: 1px solid rgba(19,175,240,.27); border-radius: 11px; color: #087fae !important; background: rgba(19,175,240,.07); font-size: 10px; font-weight: 850; white-space: nowrap; }
.werun-circuit-card__external { width: 38px; height: 38px; border: 1px solid rgba(19,175,240,.16); border-radius: 11px; color: #657984 !important; background: #fff; }
.werun-circuit-card__external svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.werun-circuit-card__primary:hover, .werun-circuit-card__external:hover { color: #fff !important; border-color: var(--wc-blue-dark); background: var(--wc-blue-dark); transform: translateY(-1px); }
.werun-circuits-explorer__empty { padding: 42px 20px; border: 1px dashed rgba(19,175,240,.22); border-radius: 18px; color: #647681; text-align: center; }
.werun-circuits-explorer__empty strong { display: block; color: #22343f; }
.werun-circuits-explorer__empty p { margin: 6px 0 0; font-size: 12px; }

html.werun-theme-dark .werun-circuits-explorer { --wc-text: #edf4f7; --wc-muted: #b9cbd3; background: var(--werun-page-bg, #0d151a) !important; }
html.werun-theme-dark .werun-circuits-explorer__kicker { color: #5bc2eb; }
html.werun-theme-dark .werun-circuits-explorer__header h1 { color: #edf4f7; }
html.werun-theme-dark .werun-circuits-explorer__header p,
html.werun-theme-dark .werun-circuits-explorer__filters-head > span:first-child { color: #b9cbd3; }
html.werun-theme-dark .werun-circuits-explorer__count { color: #fff0b0; border-color: rgba(251,196,44,.38); background: rgba(251,196,44,.16); }
html.werun-theme-dark .werun-circuits-explorer__toolbar { border-color: rgba(91,194,235,.15); background: transparent; box-shadow: none; }
html.werun-theme-dark .werun-circuits-explorer__tabs button,
html.werun-theme-dark .werun-circuits-explorer__zones button,
html.werun-theme-dark .werun-circuits-explorer__search,
html.werun-theme-dark .werun-circuit-card__external { color: #b9cbd3; border-color: rgba(91,194,235,.17); background: #172831; }
html.werun-theme-dark .werun-circuits-explorer__tabs button.is-active,
html.werun-theme-dark .werun-circuits-explorer__zones button.is-active { color: #80d8f7; border-color: rgba(91,194,235,.35); background: rgba(91,194,235,.10); }
html.werun-theme-dark .werun-circuits-explorer__search {
  background: #172831;
  box-shadow: none;
}
html.werun-theme-dark .werun-circuits-explorer__search svg { stroke: #8fa6b1; }
html.werun-theme-dark .werun-circuits-explorer__search input {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #edf4f7;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
html.werun-theme-dark .werun-circuits-explorer__search input::placeholder { color: #8fa6b1; }
html.werun-theme-dark .werun-circuits-explorer__search input::-webkit-search-decoration,
html.werun-theme-dark .werun-circuits-explorer__search input::-webkit-search-cancel-button,
html.werun-theme-dark .werun-circuits-explorer__search input::-webkit-search-results-button,
html.werun-theme-dark .werun-circuits-explorer__search input::-webkit-search-results-decoration { -webkit-appearance: none; }
html.werun-theme-dark .werun-circuit-card { border-color: rgba(91,194,235,.15); background: rgba(18,32,40,.96); box-shadow: 0 14px 38px rgba(0,0,0,.20); }
html.werun-theme-dark .werun-circuit-card__logo { border-color: rgba(91,194,235,.12); background: #f7fbfc; }
html.werun-theme-dark .werun-circuit-card h2,
html.werun-theme-dark .werun-circuits-explorer__empty strong { color: #edf4f7; }
html.werun-theme-dark .werun-circuit-card__description { color: #9eb0b9; }
html.werun-theme-dark .werun-circuit-card__badges span { color: #b8c9d0; border-color: rgba(91,194,235,.14); background: rgba(91,194,235,.06); }
html.werun-theme-dark .werun-circuit-card__badges .is-discipline { color: #7ed6f6; }
html.werun-theme-dark .werun-circuit-card__primary { color: #7ed6f6 !important; border-color: rgba(91,194,235,.28); background: rgba(91,194,235,.08); }

@media (max-width: 1080px) {
  .werun-circuits-explorer { margin-top: -40px; padding-top: 40px; }
  .werun-circuits-explorer__shell { width: calc(100% - 34px); }
  .werun-circuits-explorer__toolbar { grid-template-columns: 1fr; }
  .werun-circuits-explorer__tabs { justify-content: flex-start; }
  .werun-circuits-explorer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .werun-circuits-explorer { margin-top: -48px; padding-top: 48px; overflow: visible; }
  .werun-circuits-explorer__shell { width: calc(100% - 22px); padding: 8px 0 60px; }
  .werun-circuits-explorer__header { gap: 10px; margin-bottom: 10px; }
  .werun-circuits-explorer__header h1 { font-size: clamp(38px, 13vw, 50px); }
  .werun-circuits-explorer__header p { font-size: 13px; }
  .werun-circuits-explorer__filters-head { align-items: flex-start; }
  .werun-circuits-explorer__count { display: none; }
  .werun-circuits-explorer__filters { grid-template-columns: 1fr; }
  .werun-circuits-explorer__zones { overflow-x: auto; padding-bottom: 2px; }
  .werun-circuit-card { grid-template-columns: 70px minmax(0,1fr); gap: 12px; padding: 13px; }
  .werun-circuit-card__logo { width: 70px; height: 70px; }
  .werun-circuit-card--no-logo { grid-template-columns: minmax(0, 1fr); }
  .werun-circuit-card--no-logo .werun-circuit-card__actions { grid-column: 1; }
  .werun-circuit-card__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 430px) {
  .werun-circuits-explorer__tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .werun-circuits-explorer__tabs button { padding: 0 8px; }
  .werun-circuit-card h2 { font-size: 16px; }
  .werun-circuit-card__primary { flex: 1; }
}
