body.lite-v2 {
  background: #fff;
}

body.lite-v2 .nw-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e4e7ec;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
}

body.lite-v2 .tool-header-inner {
  max-width: 1040px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.tool-header-name {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.tool-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-switch,
body.lite-v2 .nw-lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
}

.tool-switch a,
body.lite-v2 .nw-lang-switch button {
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.tool-switch a.active,
body.lite-v2 .nw-lang-switch button.active {
  background: #101828;
  color: #fff;
}

body.lite-v2 .nw-main {
  max-width: 1040px;
  padding-top: 0;
}

.tool-hero {
  padding: 38px 0 28px;
  border-bottom: 1px solid #f0f2f5;
}

.tool-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(29px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.tool-hero-lead {
  max-width: 780px;
  margin: 14px 0 0;
  color: #344054;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
}

.tool-hero-sub {
  max-width: 780px;
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
}

.purpose-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  overflow: hidden;
}

.purpose-item {
  padding: 12px 14px;
  border-right: 1px solid #e4e7ec;
  background: #fff;
}

.purpose-item:last-child {
  border-right: 0;
}

.purpose-item strong {
  display: block;
  font-size: 11px;
}

.purpose-item span {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 10px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 30px;
  padding: 30px 0 14px;
}

.tool-primary {
  min-width: 0;
}

body.lite-v2 .tool-card {
  margin-bottom: 28px;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid #e4e7ec;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.lite-v2 .workspace-card {
  border-color: #e4e7ec;
}

body.lite-v2 .cic-textarea {
  border-color: #d0d5dd;
  border-radius: 12px;
}

body.lite-v2 .btn {
  min-height: 40px;
  border-radius: 10px;
}

body.lite-v2 .btn-primary {
  border-color: #2563eb;
  background: #2563eb;
}

body.lite-v2 .btn-primary:hover:not(:disabled) {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

body.lite-v2 .disclaimer-box {
  border: 0;
  border-left: 3px solid #f0b429;
  border-radius: 0;
  background: #fffdf8;
}

.tool-side {
  padding-left: 24px;
  border-left: 1px solid #e4e7ec;
}

.side-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e7ec;
}

.side-block:last-child {
  border-bottom: 0;
}

.side-block h2 {
  margin: 0 0 8px;
  font-size: 14px;
}

.side-block p,
.side-block li {
  color: #667085;
  font-size: 12px;
}

.side-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.route-card {
  display: block;
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

.route-card strong {
  display: block;
  color: #1d4ed8;
  font-size: 12px;
}

.route-card span {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 10px;
}

body.lite-v2 .summary-box {
  padding: 0;
  border: 0;
  background: #fff;
}

body.lite-v2 .metric-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  overflow: hidden;
}

body.lite-v2 .metric-card {
  border: 0;
  border-right: 1px solid #e4e7ec;
  border-radius: 0;
  background: #fff;
}

body.lite-v2 .metric-card:last-child {
  border-right: 0;
}

body.lite-v2 .metric-review {
  background: #fff;
}

body.lite-v2 .table-wrapper {
  overflow: visible;
}

body.lite-v2 .result-table {
  min-width: 0;
}

body.lite-v2 .result-table thead {
  background: #fff;
}

body.lite-v2 .result-table th,
body.lite-v2 .result-table td {
  border-bottom-color: #e4e7ec;
}

body.lite-v2 .empty-state {
  border: 1px solid #e4e7ec;
  background: #fff;
}

body.lite-v2 .about-card {
  padding-top: 4px;
}

@media (max-width: 850px) {
  .tool-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tool-side {
    padding: 24px 0 0;
    border-top: 1px solid #e4e7ec;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body.lite-v2 .nw-header-inner,
  body.lite-v2 .nw-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tool-header-name {
    display: none;
  }

  body.lite-v2 .tool-header-inner {
    justify-content: flex-end;
  }

  .tool-hero {
    padding-top: 27px;
  }

  .purpose-strip {
    grid-template-columns: 1fr;
  }

  .purpose-item {
    border-right: 0;
    border-bottom: 1px solid #e4e7ec;
  }

  .purpose-item:last-child {
    border-bottom: 0;
  }

  body.lite-v2 .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.lite-v2 .metric-card:nth-child(2) {
    border-right: 0;
  }

  body.lite-v2 .metric-card:nth-child(-n+2) {
    border-bottom: 1px solid #e4e7ec;
  }

  body.lite-v2 .table-wrapper {
    overflow: visible;
  }

  body.lite-v2 .result-table,
  body.lite-v2 .result-table tbody,
  body.lite-v2 .result-table tr,
  body.lite-v2 .result-table td {
    display: block;
    width: 100%;
  }

  body.lite-v2 .result-table thead {
    display: none;
  }

  body.lite-v2 .result-table tr {
    padding: 13px 0;
    border-bottom: 1px solid #e4e7ec;
  }

  body.lite-v2 .result-table td {
    padding: 3px 0;
    border: 0;
    max-width: none;
    min-width: 0;
  }

  body.lite-v2 .result-table td:first-child {
    font-size: 14px;
  }

  body.lite-v2 .result-table td:nth-child(2) {
    margin-top: 4px;
  }

  body.lite-v2 .result-table td:nth-child(3) {
    margin-top: 5px;
    color: #475467;
  }
}
