#country-success-stats[hidden], #country-success-stats [hidden],
#step2-country-section #left-countries-list[hidden] {display:none!important}
.cs-retry {padding:.45rem .85rem;border-radius:8px;border:1px solid var(--cs-edge);font-size:.8rem;font-weight:650;color:var(--cs-green)}
#country-success-stats {--cs-ink:#17273a;--cs-muted:#526476;--cs-edge:#d6e3df;--cs-surface:white;--cs-track:#e4eee9;--cs-green:#086d56;--cs-light:#f2faf6;color:var(--cs-ink);background:var(--cs-surface);flex:1 1 auto;overflow-y:auto;min-width:0;min-height:0;padding:0 .18rem .4rem}
html.dark #country-success-stats {--cs-ink:#e7f0f5;--cs-muted:#acbdc9;--cs-edge:#35485a;--cs-surface:#101a29;--cs-track:#2b3b46;--cs-green:#6be3b9;--cs-light:#142e2a}
#country-success-stats .cs-filters {
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr);
  border:1px solid var(--cs-edge);border-radius:10px;background:var(--cs-light);
}
.cs-filters label {
  position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;
  min-height:44px;box-sizing:border-box;padding:4px 18px 4px 8px;
}
.cs-filters label + label {border-inline-start:1px solid var(--cs-edge)}
.cs-filters label > span {color:var(--cs-muted);font-size:11px;line-height:1.3;font-weight:500}
.cs-filters label > strong {color:var(--cs-ink);font-size:13px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}
.cs-filters label::after {
  content:"";position:absolute;right:8px;top:50%;width:5px;height:5px;
  border:solid var(--cs-muted);border-width:0 1.5px 1.5px 0;transform:translateY(-70%) rotate(45deg);pointer-events:none;
}
/* The native picker uses the whole cell as its touch target. The visible
   value can wrap for a long country without shrinking the native tap area. */
#country-success-stats .cs-filters select {
  position:absolute;inset:0;width:100%;height:100%;min-width:0;margin:0;opacity:0;cursor:pointer;
}
#country-success-stats #country-success-ranking {
  position:absolute;inset:0;width:100%;height:100%;min-width:0;box-sizing:border-box;
  margin:0;padding:14px 4px 0 8px;border:0;background:transparent;box-shadow:none;
  color:var(--cs-ink);font:inherit;opacity:0;cursor:text;
}
#country-success-stats #country-success-ranking[aria-expanded=true] {opacity:1;font-size:16px}
.cs-rank-field:has([aria-expanded=true]) > strong {visibility:hidden}
.cs-rank-field:has([aria-expanded=true])::after {display:none}
#cs-rank-options:not([hidden]) {
  max-height:min(225px,30dvh);overflow:auto;overscroll-behavior:contain;
  margin:3px 0;padding:3px;border:1px solid var(--cs-edge);border-radius:10px;background:var(--cs-surface);
}
#cs-rank-options:empty {display:none}
#cs-rank-options [role=option] {
  display:flex;align-items:center;gap:8px;min-height:38px;padding:3px 10px;
  border-radius:7px;color:var(--cs-ink);font-size:14px;cursor:pointer;
}
#cs-rank-options [aria-selected=true] {font-weight:700;color:var(--cs-green)}
#cs-rank-options [role=option]:hover,#cs-rank-options .cs-highlight {background:var(--cs-light)}
#cs-rank-no-match {font-size:13px;color:var(--cs-muted);margin:6px}
.cs-filters label:focus-within {outline:2px solid var(--cs-green);outline-offset:-2px;border-radius:7px}
#country-success-stats :focus-visible,#country-toggle-success-btn:focus-visible {outline:2px solid #009782;outline-offset:1px}
.cs-heading {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;margin:.75rem 0 .45rem}.cs-heading strong{font-size:14px}.cs-heading time{font-size:10px;color:var(--cs-muted)}
#country-success-rows {list-style:none;margin:0;padding:0;display:grid;gap:5px}
.cs-row {width:100%;display:grid;grid-template-columns:20px minmax(80px,1.25fr) minmax(24px,.7fr) minmax(46px,auto);align-items:center;gap:.5rem;text-align:left;padding:.5rem .65rem;border:1px solid var(--cs-edge);background:var(--cs-surface);color:var(--cs-ink);border-radius:10px;box-sizing:border-box}
button.cs-row:hover,button.cs-row[aria-pressed="true"]{border-color:#39a78a;background:var(--cs-light)}
.cs-rank{color:var(--cs-muted);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;text-align:center}
.cs-country{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:6px;align-items:center;font-size:13px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.cs-flag{display:block;width:22px;height:15px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #69798730}
.cs-flag-slot{grid-column:1;display:grid;place-items:center}
.cs-country small{grid-column:2;font-size:11px;font-weight:550;color:var(--cs-muted);margin-top:3px}
.cs-track {display:block;height:4px;overflow:hidden;border-radius:5px;background:var(--cs-track)}.cs-track i{display:block;height:100%;background:#25a684;border-radius:5px}
.cs-rate {color:var(--cs-green);font-size:13px;font-variant-numeric:tabular-nums;text-align:right}.cs-empty{color:var(--cs-muted);font-size:.75rem;padding:1rem 0}
body.mobile-app-page #country-success-stats {overflow:visible;flex:none;padding:0 0 .5rem;width:100%}
#country-sort-pills .country-filter-pill {
  border-width:1px;
  border-style:solid;
  font-weight:600;
  transition-property:transform;
}
/* The light theme assigns important colors to neutral pills and white text. */
#country-sort-pills .country-filter-pill[aria-pressed="true"] {
  background-color:#047857!important;
  border-color:#065f46!important;
  color:white!important;
  font-weight:750;
  box-shadow:inset 0 -2px 0 #065f46;
}
.country-success-signal {
  display:inline-flex;
  align-items:flex-end;
  justify-content:space-between;
  flex:0 0 12px;
  height:12px;
  color:#047857;
}
.country-success-signal i {
  --rest-scale:.42;
  width:3px;
  height:100%;
  border-radius:1px;
  background:currentColor;
  transform:scaleY(var(--rest-scale));
  transform-origin:center bottom;
}
.country-success-signal i:nth-child(2) {--rest-scale:.67; --delay:120ms}
.country-success-signal i:nth-child(3) {--rest-scale:1; --delay:240ms}
html.dark .country-success-signal,
#country-toggle-success-btn[aria-pressed="true"] .country-success-signal {color:#a7f3d0}

@media(prefers-reduced-motion:no-preference) {
  .country-success-signal i {
    animation:country-signal-wave 1.8s ease-in-out var(--delay,0s) 2;
  }
  #country-toggle-success-btn:focus-visible .country-success-signal i {
    animation-iteration-count:infinite;
  }
  @media(hover:hover) {
    #country-toggle-success-btn:hover .country-success-signal i {
      animation-iteration-count:infinite;
    }
  }
}
@keyframes country-signal-wave {
  0%, 64%, 100% {transform:scaleY(var(--rest-scale))}
  18% {transform:scaleY(.28)}
  38% {transform:scaleY(1)}
}
@media(forced-colors:active) {
  .country-success-signal i {background:ButtonText;forced-color-adjust:none}
  #country-sort-pills .country-filter-pill[aria-pressed="true"] > span {
    text-decoration:underline;
  }
}
body.mobile-app-page #country-sort-pills {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;align-items:stretch;overflow:visible;
}
body.mobile-app-page #country-sort-pills > button {
  min-width:0;min-height:44px;justify-content:center;text-align:center;
  padding-inline:4px;line-height:1.25;white-space:normal;
}
body.mobile-app-page #country-sort-pills #country-toggle-success-btn {
  display:inline-flex!important;
}
@media(max-width:370px){.cs-filters label{padding-inline:6px 14px}.cs-filters label::after{right:6px}.cs-row{gap:5px}}
