.nvstt-tool,
.nvstt-tool * {
  box-sizing: border-box;
}

.nvstt-tool {
  --nvstt-bg: #f7f8fb;
  --nvstt-card: #ffffff;
  --nvstt-ink: #111827;
  --nvstt-muted: #5f6b7a;
  --nvstt-line: #e5eaf2;
  --nvstt-primary: #111827;
  --nvstt-accent: #0f766e;
  --nvstt-soft: #eef2ff;
  --nvstt-radius: 20px;
  --nvstt-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--nvstt-ink);
  font-family: inherit;
}

.nvstt-card,
.nvstt-cta,
.nvstt-window-card {
  background: var(--nvstt-card);
  border: 1px solid var(--nvstt-line);
  border-radius: var(--nvstt-radius);
  box-shadow: var(--nvstt-shadow);
  padding: clamp(18px, 3vw, 30px);
  margin: 18px 0;
}

.nvstt-hero-card {
  background: linear-gradient(135deg, #ffffff, #f4f7fb);
}

.nvstt-kicker,
.nvstt-rank {
  margin: 0 0 8px;
  color: var(--nvstt-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nvstt-tool h2,
.nvstt-tool h3,
.nvstt-tool h4 {
  color: var(--nvstt-ink);
  margin-top: 0;
}

.nvstt-tool h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.nvstt-tool p {
  line-height: 1.55;
}

.nvstt-muted,
.nvstt-attribution,
.nvstt-actions p,
.nvstt-tool small {
  color: var(--nvstt-muted);
  font-size: 0.92rem;
}

.nvstt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nvstt-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 750;
}

.nvstt-wide {
  grid-column: span 3;
}

.nvstt-tool input,
.nvstt-tool select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--nvstt-ink);
  background: #fff;
  border: 1px solid #ccd4df;
  border-radius: 12px;
  font: inherit;
}

.nvstt-tool input:focus,
.nvstt-tool select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.14);
  border-color: var(--nvstt-accent);
}

.nvstt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.nvstt-button,
.nvstt-button-link,
.nvstt-tool button.nvstt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  color: #fff;
  background: var(--nvstt-primary);
  border: 1px solid var(--nvstt-primary);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.nvstt-button-primary {
  background: var(--nvstt-accent);
  border-color: var(--nvstt-accent);
}

.nvstt-button:hover,
.nvstt-button-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nvstt-button-link-ghost {
  color: var(--nvstt-primary);
  background: #fff;
  border-color: var(--nvstt-line);
}

.nvstt-button-link-ghost:hover {
  color: var(--nvstt-primary);
}

.nvstt-status {
  min-height: 24px;
  margin: 14px 0;
  font-weight: 750;
}

.nvstt-status-loading {
  color: var(--nvstt-accent);
}

.nvstt-status-error {
  padding: 12px 14px;
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #fecdca;
  border-radius: 12px;
}

.nvstt-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nvstt-summary h3 {
  margin-bottom: 8px;
}

.nvstt-summary-box {
  min-width: 170px;
  padding: 16px;
  text-align: center;
  background: var(--nvstt-soft);
  border-radius: 16px;
}

.nvstt-summary-box strong {
  display: block;
  font-size: 2rem;
}

.nvstt-summary-box span {
  color: var(--nvstt-muted);
  font-weight: 750;
}

.nvstt-event-note {
  padding: 12px 14px;
  color: var(--nvstt-muted);
  background: #f8fafc;
  border: 1px solid var(--nvstt-line);
  border-radius: 12px;
}

.nvstt-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.nvstt-window-card {
  margin: 0;
}

.nvstt-window-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.nvstt-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 78px;
  min-height: 78px;
  padding: 10px;
  border-radius: 18px;
  font-size: 1.65rem;
  font-weight: 900;
}

.nvstt-score span {
  margin-left: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.nvstt-score-great,
.nvstt-score-good {
  color: #067647;
  background: #ecfdf3;
}

.nvstt-score-ok {
  color: #b7791f;
  background: #fffaeb;
}

.nvstt-score-avoid {
  color: #b42318;
  background: #fff1f0;
}

.nvstt-label {
  font-weight: 850;
}

.nvstt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.nvstt-pill {
  display: inline-flex;
  padding: 7px 10px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 750;
}

.nvstt-risk-low {
  color: #067647;
  background: #ecfdf3;
}

.nvstt-risk-med {
  color: #b7791f;
  background: #fffaeb;
}

.nvstt-risk-high {
  color: #b42318;
  background: #fff1f0;
}

.nvstt-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.nvstt-detail-grid section {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 14px;
}

.nvstt-detail-grid h4 {
  margin: 0 0 7px;
  font-size: 0.94rem;
}

.nvstt-detail-grid p {
  margin: 0 0 6px;
}

.nvstt-mini-list {
  margin: 0;
  padding-left: 17px;
  color: var(--nvstt-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.nvstt-mini-list a,
.nvstt-detail-grid a {
  color: var(--nvstt-accent);
  font-weight: 750;
}

.nvstt-safety-note {
  padding: 12px 14px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 14px;
  color: #134e4a;
  font-weight: 700;
}

.nvstt-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.nvstt-cta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #fff;
  background: #111827;
}

.nvstt-cta h3,
.nvstt-cta p,
.nvstt-cta .nvstt-kicker {
  color: #fff;
}

.nvstt-cta p {
  opacity: 0.86;
}

.nvstt-cta-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nvstt-cta .nvstt-button {
  color: #111827;
  background: #fff;
  border-color: #fff;
}

.nvstt-section-heading {
  margin-top: 28px;
}

.nvstt-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--nvstt-line);
  border-radius: var(--nvstt-radius);
}

.nvstt-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.nvstt-table th,
.nvstt-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--nvstt-line);
}

.nvstt-table th {
  background: #f8fafc;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nvstt-attribution {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .nvstt-grid,
  .nvstt-window-grid,
  .nvstt-detail-grid {
    grid-template-columns: 1fr;
  }

  .nvstt-wide {
    grid-column: span 1;
  }

  .nvstt-summary,
  .nvstt-cta,
  .nvstt-window-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.nvstt-logo {
  display: block;
  max-width: 168px;
  height: auto;
  margin: 0 0 18px;
}

.nvstt-checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px !important;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--nvstt-line);
  border-radius: 14px;
}

.nvstt-checkbox-row input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.nvstt-price-section {
  margin: 14px 0;
  padding: 14px;
  background: #f8fffd;
  border: 1px solid #ccfbf1;
  border-radius: 16px;
}

.nvstt-price-section h4 {
  margin: 0 0 8px;
}

.nvstt-price-main {
  margin: 0 0 4px !important;
  color: var(--nvstt-accent);
  font-size: 1.7rem;
  font-weight: 900;
}

.nvstt-price-pill {
  color: #134e4a;
  background: #ccfbf1;
}

.nvstt-price-note {
  color: #134e4a;
  background: #f0fdfa;
  border-color: #ccfbf1;
}

.nvstt-admin-price-template {
  padding: 12px;
  background: #fff8e6;
  border: 1px dashed #d9a441;
  border-radius: 14px;
}

.nvstt-admin-price-template em {
  color: var(--nvstt-muted);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.4;
}

.nvstt-affiliate-disclosure {
    max-width: 760px;
    margin: -0.75rem auto 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.45;
}

.nvstt-price-actions {
    margin-top: .85rem;
}
