main.content-container.nerine-page {
  width: 100%;
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 54px;
  align-items: initial;
}

.nerine-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(440px, 1.18fr);
  gap: 30px;
  align-items: start;
}

.nerine-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 10px 0 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nerine-intro h1 {
  max-width: 620px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid rgba(0, 133, 124, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f4f4a;
  font-size: 12px;
  font-weight: 600;
}

.tool-password {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(2, 44, 41, 0.14);
  padding: 0;
}

.tool-password::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.tool-password .card-header {
  margin: 0;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, rgba(246, 251, 250, 0.92) 100%);
}

.tool-password .card-title {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.tool-password .card-desc {
  max-width: 560px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.security-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
  max-width: 560px;
  margin-top: 18px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(0, 133, 124, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(2, 44, 41, 0.05);
}

.security-tip span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.security-tip p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.security-tip button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.security-tip button:hover {
  color: var(--text);
  background: var(--card-soft);
}

.security-tip.is-hidden {
  display: none;
}

.tool-password .card-body {
  display: grid;
  gap: 15px;
  padding: 26px 28px 28px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.tool-password .field {
  position: relative;
}

.tool-password .field input {
  height: 56px;
  padding-left: 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.tool-password .field input.is-masked {
  -webkit-text-security: disc;
}

.tool-password .field input:not(.is-masked) {
  -webkit-text-security: none;
}

.tool-password .field input:focus {
  border-color: var(--focus-border);
  box-shadow: 0 0 0 5px var(--focus-shadow);
}

.tool-password .field-action {
  right: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.tool-password .field-action:hover {
  background: rgba(15, 23, 42, 0.06);
}

.tool-password .field-action svg {
  width: 20px;
  height: 20px;
  opacity: 0.42;
}

.tool-password .btn-group {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
}

.tool-password .btn {
  min-height: 50px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.tool-password .btn-secondary {
  background: #fff;
}

.analysis-panel {
  display: grid;
  gap: 11px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(246, 251, 250, 0.9), #ffffff);
}

.risk-dashboard {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.risk-score-card,
.anatomy-panel,
.result-explain {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.risk-score-card {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, rgba(246, 251, 250, 0.88));
}

.risk-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-score-card strong {
  color: var(--text);
  font-size: 31px;
  line-height: 1;
}

.risk-score-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.risk-score-card span[data-level="safe"] {
  color: var(--success-text);
}

.risk-score-card span[data-level="moderate"] {
  color: #9a5d00;
}

.risk-score-card span[data-level="danger"] {
  color: #dc2626;
}

.anatomy-panel {
  padding: 15px;
}

.anatomy-list {
  display: grid;
  gap: 8px;
  margin-top: 11px;
  padding: 0;
  list-style: none;
}

.anatomy-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.035);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.anatomy-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
}

.anatomy-list li span {
  margin-right: auto;
}

.anatomy-list li strong {
  color: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.anatomy-list li[data-status="pass"] {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}

.anatomy-list li[data-status="pass"]::before {
  background: #16a34a;
}

.anatomy-list li[data-status="fail"] {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.09);
}

.anatomy-list li[data-status="fail"]::before {
  background: #ef4444;
}

.anatomy-list li[data-status="mixed"] {
  color: #8a6d00;
  background: rgba(250, 204, 21, 0.14);
}

.anatomy-list li[data-status="mixed"]::before {
  background: #eab308;
}

.anatomy-list li[data-status="warn"] {
  color: #9a5d00;
  background: rgba(245, 158, 11, 0.11);
}

.anatomy-list li[data-status="warn"]::before {
  background: #d97706;
}

.result-explain {
  padding: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.result-explain strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

.result-explain p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.analysis-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.analysis-head #strengthText {
  color: var(--text);
  text-align: right;
}

.tool-password .meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
}

.tool-password .meter-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.tool-password #breachResult {
  display: none;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
}

.tool-password .checking-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
}

.tool-password .checking-icon path {
  fill: var(--brand) !important;
}

.tool-password .notice {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(21, 128, 61, 0.18);
  border-radius: 12px;
  background: #eaf8ef;
  color: var(--success-text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  text-align: center;
  backdrop-filter: blur(8px);
}

.tool-password .notice[data-type="warning"] {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff3cd;
  color: #7c3f00;
}

.privacy-note {
  padding: 14px;
  border: 1px solid rgba(0, 133, 124, 0.12);
  border-radius: 12px;
  background: rgba(246, 251, 250, 0.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.privacy-steps {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 18px;
}

.privacy-steps li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tool-password .hibp-link {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.tool-password .meta {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  text-align: right;
}

.knowledge-section,
.anatomy-guide,
.faq-section {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(2, 44, 41, 0.06);
}

.knowledge-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  margin-top: 28px;
  padding: 28px;
}

.knowledge-main h2,
.knowledge-aside h2,
.faq-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.knowledge-main p,
.knowledge-aside p,
.knowledge-aside li,
.faq-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.knowledge-main p,
.knowledge-aside p,
.knowledge-aside ul {
  margin-top: 10px;
}

.knowledge-main {
  padding-right: 8px;
}

.knowledge-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.aside-block {
  padding: 18px;
  border: 1px solid rgba(0, 133, 124, 0.12);
  border-radius: 12px;
  background: rgba(246, 251, 250, 0.75);
}

.aside-block h2 {
  font-size: 17px;
}

.anatomy-guide {
  margin-top: 16px;
  padding: 26px;
}

.anatomy-guide__header {
  max-width: 760px;
}

.anatomy-guide__header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.anatomy-guide__header p,
.anatomy-guide__grid dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.anatomy-guide__header p {
  margin-top: 10px;
}

.anatomy-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.anatomy-guide__grid div {
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(246, 251, 250, 0.62);
}

.anatomy-guide__grid dt {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.anatomy-guide__grid dd {
  margin: 6px 0 0;
}

.faq-section {
  margin-top: 16px;
  overflow: hidden;
}

.faq-header {
  padding: 22px 22px 12px;
}

.faq-section details {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 22px;
}

.faq-section summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background-color: var(--brand);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM361 417C351.6 426.4 336.4 426.4 327.1 417C317.8 407.6 317.7 392.4 327.1 383.1L366.1 344.1L216 344.1C202.7 344.1 192 333.4 192 320.1C192 306.8 202.7 296.1 216 296.1L366.1 296.1L327.1 257.1C317.7 247.7 317.7 232.5 327.1 223.2C336.5 213.9 351.7 213.8 361 223.2L441 303.2C450.4 312.6 450.4 327.8 441 337.1L361 417.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(0deg);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.faq-section details[open] summary::before {
  background-color: var(--brand-2);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM303 441L223 361C213.6 351.6 213.6 336.4 223 327.1C232.4 317.8 247.6 317.7 256.9 327.1L295.9 366.1L295.9 216C295.9 202.7 306.6 192 319.9 192C333.2 192 343.9 202.7 343.9 216L343.9 366.1L382.9 327.1C392.3 317.7 407.5 317.7 416.8 327.1C426.1 336.5 426.2 351.7 416.8 361L336.8 441C327.4 450.4 312.2 450.4 302.9 441z'/%3E%3C/svg%3E");
  transform: none;
}

.faq-section details p {
  padding-bottom: 18px;
}

.breach-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.breach-modal.is-open {
  display: flex;
}

.breach-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.breach-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.breach-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.breach-modal__close:hover {
  color: var(--text);
  background: var(--card-soft);
}

.breach-modal h2 {
  max-width: 420px;
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.breach-modal__lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.breach-modal__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.breach-modal__stats div {
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(246, 251, 250, 0.7);
}

.breach-modal__stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.breach-modal__stats dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.breach-modal__note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(246, 251, 250, 0.8);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.breach-modal__note strong {
  display: block;
  margin-bottom: 4px;
}

.breach-modal__action {
  width: 100%;
  margin-top: 16px;
}

.breach-modal[data-status="danger"] .breach-modal__panel {
  border-top: 6px solid #dc2626;
}

.breach-modal[data-status="danger"] #breachModalTitle {
  color: #b91c1c;
}

.breach-modal[data-status="safe"] .breach-modal__panel {
  border-top: 6px solid var(--brand);
}

.breach-modal[data-status="safe"] #breachModalTitle {
  color: var(--brand);
}

@media (max-width: 920px) {
  .nerine-hero {
    grid-template-columns: 1fr;
  }

  .nerine-intro {
    max-width: 760px;
    position: static;
  }

  .knowledge-section {
    grid-template-columns: 1fr;
  }

  .anatomy-guide__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  main.content-container.nerine-page {
    padding: 24px 14px 42px;
  }

  .nerine-intro h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .lead {
    font-size: 15px;
  }

  .tool-password .card-header,
  .tool-password .card-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tool-password .btn-group {
    grid-template-columns: 1fr;
  }

  .tool-password .notice {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  .risk-dashboard {
    grid-template-columns: 1fr;
  }

  .analysis-head {
    display: grid;
    gap: 4px;
  }

  .analysis-head #strengthText {
    text-align: left;
  }

  .knowledge-section {
    padding: 18px;
  }

  .anatomy-guide {
    padding: 18px;
  }

  .knowledge-main {
    padding-right: 0;
  }

  .faq-header {
    padding: 18px 18px 10px;
  }

  .faq-section details {
    padding: 0 18px;
  }

  .breach-modal {
    align-items: flex-start;
    padding: calc(var(--header-h) + 14px) 12px 14px;
    overflow: auto;
  }

  .breach-modal__panel {
    max-height: calc(100vh - var(--header-h) - 28px);
    padding: 22px 18px 18px;
    border-radius: 14px;
  }

  .breach-modal__stats {
    grid-template-columns: 1fr;
  }
}
