.htr,
.htr * { box-sizing: border-box; }

.htr {
  --htr-ink: #102132;
  --htr-muted: #69798a;
  --htr-line: rgba(16, 33, 50, .095);
  --htr-line-strong: rgba(16, 33, 50, .14);
  --htr-teal: #008f8c;
  --htr-teal-rgb: 0, 143, 140;
  --htr-surface: #fff;
  --htr-soft: #fbfdfd;
  width: min(1280px, calc(100% - 48px));
  margin: 76px auto;
  color: var(--htr-ink);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.htr a { text-decoration: none; }

.htr-header {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(440px, 1.1fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 31px;
  border-bottom: 1px solid var(--htr-line);
}

.htr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--htr-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .125em;
  line-height: 1;
  text-transform: uppercase;
}

.htr-eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--htr-teal);
}

.htr-header h2 {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--htr-ink);
  font-size: clamp(32px, 3vw, 43px);
  font-weight: 650;
  letter-spacing: -.052em;
  line-height: 1.02;
  text-wrap: balance;
}

.htr-intro {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}

.htr-tabs {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--htr-line);
  border-radius: 11px;
  background: #fafcfc;
  gap: 3px;
}

.htr-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--htr-muted);
  font: inherit;
  font-size: 9.5px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.htr-tab small {
  color: #91a0ad;
  font-size: 7.5px;
  font-weight: 760;
  letter-spacing: .04em;
}

.htr-tab-icon { display: grid; place-items: center; width: 15px; height: 15px; }
.htr-tab-icon svg,
.htr-item-icon svg,
.htr-arrow svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65;
}

.htr-tab.is-active {
  background: #fff;
  color: var(--htr-teal);
  box-shadow: 0 1px 5px rgba(16, 33, 50, .07);
}

.htr-tab:focus-visible { outline: 3px solid rgba(var(--htr-teal-rgb), .12); outline-offset: 2px; }

.htr-stage {
  position: relative;
  border: 1px solid var(--htr-line);
  border-radius: 17px;
  overflow: hidden;
  background: var(--htr-surface);
  box-shadow: 0 8px 24px rgba(16, 33, 50, .025);
}

.htr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.htr-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 42px minmax(0, 1fr) 82px 58px 16px;
  gap: 13px;
  align-items: center;
  min-height: 92px;
  padding: 15px 19px;
  color: var(--htr-ink);
  border-bottom: 1px solid var(--htr-line);
  transition: background-color 160ms ease, color 160ms ease;
}

.htr-item:nth-child(odd) { border-right: 1px solid var(--htr-line); }
.htr-item:nth-last-child(-n+2) { border-bottom: 0; }

.htr-rank {
  color: #a3aeb8;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .055em;
  font-variant-numeric: tabular-nums;
}

.htr-item-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--htr-teal-rgb), .10);
  border-radius: 11px;
  background: rgba(var(--htr-teal-rgb), .045);
  color: var(--htr-teal);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.htr-item-icon svg { width: 20px; height: 20px; }

.htr-copy { display: block; min-width: 0; }
.htr-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--htr-ink);
  font-size: 14px;
  font-weight: 660;
  letter-spacing: -.025em;
  line-height: 1.28;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  transition: color 160ms ease;
}
.htr-copy small {
  display: block;
  margin-top: 5px;
  color: var(--htr-muted);
  font-size: 8px;
  font-weight: 730;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.htr-signal-slot {
  display: flex;
  width: 82px;
  min-width: 82px;
  align-items: center;
  justify-content: flex-end;
}

.htr-signal {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(var(--htr-teal-rgb), .11);
  border-radius: 999px;
  background: rgba(var(--htr-teal-rgb), .035);
  color: #557b78;
  font-size: 7.7px;
  font-weight: 760;
  letter-spacing: .035em;
  white-space: nowrap;
}

.htr-spark {
  display: flex;
  width: 58px;
  height: 24px;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
}
.htr-spark i {
  display: block;
  width: 4px;
  min-height: 4px;
  max-height: 22px;
  border-radius: 2px 2px 1px 1px;
  background: rgba(var(--htr-teal-rgb), .22);
}
.htr-spark i:nth-last-child(-n+2) { background: rgba(var(--htr-teal-rgb), .48); }

.htr-arrow { width: 16px; height: 16px; color: #9aa7b2; transition: transform 160ms ease, color 160ms ease; }

@media (hover: hover) {
  .htr-item:hover { background: rgba(var(--htr-teal-rgb), .018); }
  .htr-item:hover .htr-copy strong { color: var(--htr-teal); }
  .htr-item:hover .htr-item-icon { border-color: rgba(var(--htr-teal-rgb), .18); background: rgba(var(--htr-teal-rgb), .065); }
  .htr-item:hover .htr-arrow { color: var(--htr-teal); transform: translateX(2px); }
  .htr-tab:hover:not(.is-active) { color: #506576; background: rgba(255,255,255,.7); }
}
.htr-item:focus-visible { z-index: 2; outline: 3px solid rgba(var(--htr-teal-rgb), .12); outline-offset: -3px; }

.htr-admin-empty { margin: 20px auto; max-width: 1180px; padding: 14px 16px; border: 1px solid #dcdcde; background: #fff; }

@media (max-width: 1040px) {
  .htr { width: min(1280px, calc(100% - 40px)); }
  .htr-header { grid-template-columns: minmax(290px,.9fr) minmax(380px,1.1fr); gap: 44px; }
  .htr-item { grid-template-columns: 25px 40px minmax(0,1fr) 76px 48px 14px; gap: 10px; padding-left: 16px; padding-right: 16px; }
  .htr-signal-slot { width: 76px; min-width: 76px; }
  .htr-item-icon { width: 40px; height: 40px; }
  .htr-spark { width: 48px; gap: 2px; }
  .htr-spark i { width: 3px; }
}

@media (max-width: 880px) {
  .htr-header { grid-template-columns: 1fr; gap: 20px; }
  .htr-grid { grid-template-columns: 1fr; }
  .htr-item, .htr-item:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--htr-line); }
  .htr-item:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .htr { width: min(1280px, calc(100% - 26px)); margin: 54px auto; }
  .htr-header { display: block; margin-bottom: 21px; padding-bottom: 24px; }
  .htr-header h2 { max-width: none; margin-top: 12px; font-size: clamp(29px, 9vw, 34px); }
  .htr-intro { margin-top: 16px; }
  .htr-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; }
  .htr-tab { justify-content: center; min-width: 0; padding: 0 7px; font-size: 8.5px; }
  .htr-tab small { display: none; }
  .htr-item { grid-template-columns: 24px 39px minmax(0,1fr) 72px 14px; min-height: 86px; padding: 13px 14px; gap: 10px; }
  .htr-signal-slot { width: 72px; min-width: 72px; }
  .htr-item-icon { width: 39px; height: 39px; border-radius: 11px; }
  .htr-copy strong { font-size: 13.5px; }
  .htr-spark { display: none; }
  .htr-signal { font-size: 7.2px; padding: 0 7px; }
}

@media (max-width: 430px) {
  .htr-tab-icon { display: none; }
  .htr-tab { font-size: 8px; }
  .htr-item { grid-template-columns: 20px 37px minmax(0,1fr) 13px; gap: 9px; }
  .htr-item-icon { width: 37px; height: 37px; }
  .htr-signal-slot { display: none; }
  .htr-copy strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .htr-tab, .htr-item, .htr-item-icon, .htr-copy strong, .htr-arrow { transition: none !important; }
  .htr-item:hover .htr-arrow { transform: none; }
}
