.hwr-tool,
.hwr-wallet-summary,
.hwr-static-compare,
.hwr-resource-card {
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(23, 31, 43, 0.06);
}

.hwr-tool,
.hwr-wallet-summary,
.hwr-static-compare {
  margin: 2rem 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  max-width: 100%;
  overflow: hidden;
}

.hwr-wallet-summary__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.hwr-tool__header {
  display: block;
  max-width: 760px;
}

.hwr-kicker {
  margin: 0 0 0.35rem;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hwr-score-badge,
.hwr-result-score {
  display: grid;
  min-width: 112px;
  min-height: 88px;
  place-items: center;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  text-align: center;
}

.hwr-score-badge strong {
  font-size: 2rem;
  line-height: 1;
}

.hwr-score-badge span,
.hwr-result-score {
  font-size: 0.78rem;
  font-weight: 800;
}

.hwr-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.hwr-badges span {
  border: 1px solid #b8c7d9;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #eef7f5;
  color: #17423d;
  font-size: 0.82rem;
  font-weight: 700;
}

.hwr-wallet-summary__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.hwr-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
}

.hwr-spec-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hwr-comparison-table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: auto;
}

.hwr-spec-table {
  table-layout: fixed;
}

.hwr-spec-table th,
.hwr-spec-table td,
.hwr-comparison-table th,
.hwr-comparison-table td {
  border: 1px solid #dfe5ee;
  padding: 0.72rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.hwr-comparison-table th,
.hwr-comparison-table td {
  min-width: 148px;
}

.hwr-comparison-table th:first-child,
.hwr-comparison-table td:first-child {
  min-width: 104px;
}

.hwr-spec-table th,
.hwr-comparison-table th {
  background: #f3f6fa;
  color: #111827;
  font-weight: 800;
}

.hwr-score-list {
  display: grid;
  gap: 0.65rem;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 1rem;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.hwr-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.hwr-score-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hwr-score-row strong {
  min-width: 2.5rem;
  text-align: right;
}

.hwr-score-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
}

.hwr-meter,
.hwr-risk-meter {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.hwr-meter span,
.hwr-risk-meter span {
  display: block;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #84cc16);
}

.hwr-pro-con {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.hwr-pro-con > div,
.hwr-disclosure-box,
.hwr-verdict-mini,
.hwr-tool-recommendation,
.hwr-result-card {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 1rem;
  background: #f8fafc;
}

.hwr-pro-con h3,
.hwr-result-card h3,
.hwr-tool__header h2,
.hwr-wallet-summary__header h2 {
  margin-top: 0;
}

.hwr-tool__header h2 {
  max-width: 100%;
  margin-bottom: 0.45rem;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.hwr-tool__header p:not(.hwr-kicker) {
  max-width: 68ch;
  margin-top: 0;
}

.hwr-cta,
.hwr-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  background: #d97706;
  color: #111827;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.hwr-cta:hover,
.hwr-tool-button:hover {
  background: #f59e0b;
  color: #111827;
}

.hwr-cta--small {
  min-height: 36px;
  padding: 0.55rem 0.8rem;
}

.hwr-tool-button--ghost {
  margin-left: 0.5rem;
  border: 1px solid #b8c7d9;
  background: #ffffff;
  color: #172033;
}

.hwr-wallet-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.hwr-wallet-picker label,
.hwr-question label,
.hwr-check-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 54px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: #ffffff;
}

.hwr-wallet-picker label {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  column-gap: 0.65rem;
  align-items: center;
  min-height: 54px;
}

.hwr-wallet-picker input,
.hwr-question input,
.hwr-check-row input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  transform: translateY(0);
}

.hwr-wallet-picker label span,
.hwr-question label span,
.hwr-check-row span {
  display: block;
  min-width: 0;
  line-height: 1.35;
}

.hwr-wallet-picker label span {
  align-self: center;
}

.hwr-quiz,
.hwr-security-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hwr-question {
  margin: 0;
  border: 0;
  padding: 0;
}

.hwr-question legend {
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.hwr-question label {
  margin-bottom: 0.5rem;
}

.hwr-tool-result {
  margin-top: 1rem;
}

.hwr-result-card ul {
  padding-left: 1.25rem;
}

.hwr-risk-meter {
  margin: 1rem 0;
}

.hwr-risk-meter span {
  background: linear-gradient(90deg, #16a34a, #f59e0b 55%, #dc2626);
}

.hwr-tool-empty {
  border: 1px dashed #b8c7d9;
  border-radius: 8px;
  padding: 1rem;
  background: #f8fafc;
}

.hwr-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.hwr-resource-card {
  padding: 1rem;
}

@media (max-width: 760px) {
  .hwr-wallet-summary__header,
  .hwr-wallet-summary__grid,
  .hwr-pro-con {
    grid-template-columns: 1fr;
  }

  .hwr-score-badge {
    width: 100%;
    min-height: 76px;
  }

  .hwr-tool-button--ghost {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hwr-tool,
  .hwr-wallet-summary,
  .hwr-static-compare {
    margin: 1rem 0;
    padding: 0.9rem;
  }

  .hwr-wallet-summary {
    margin-inline: 0;
  }

  .hwr-spec-table,
  .hwr-spec-table tbody,
  .hwr-spec-table tr,
  .hwr-spec-table th,
  .hwr-spec-table td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hwr-spec-table tr {
    border: 1px solid #dfe5ee;
    border-bottom: 0;
  }

  .hwr-spec-table tr:last-child {
    border-bottom: 1px solid #dfe5ee;
  }

  .hwr-spec-table th,
  .hwr-spec-table td {
    border: 0;
    overflow-wrap: anywhere;
  }

  .hwr-spec-table td {
    padding-top: 0;
  }

  .hwr-pro-con > div,
  .hwr-disclosure-box,
  .hwr-verdict-mini,
  .hwr-tool-recommendation,
  .hwr-result-card {
    padding: 0.85rem;
  }

  .hwr-cta,
  .hwr-tool-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hwr-wallet-picker label,
  .hwr-question label,
  .hwr-check-row {
    min-height: 50px;
    padding: 0.7rem 0.8rem;
  }

  .hwr-comparison-table {
    font-size: 0.88rem;
  }

  .hwr-spec-table,
  .hwr-score-list,
  .hwr-tool-result {
    font-size: 0.94rem;
  }

  .hwr-score-list {
    padding: 0.8rem;
  }

  .hwr-score-row {
    gap: 0.4rem;
  }
}
