.touchpad-repair {
  --tp-ink: #10243a;
  --tp-muted: #5d7186;
  --tp-line: #d8e3ed;
  --tp-panel: #ffffff;
  --tp-soft: #f5f9fc;
  --tp-accent: #0f78b8;
  --tp-accent-soft: #e4f4fd;
  --tp-success: #13795b;
  --tp-warning: #a15c08;
  color: var(--tp-ink);
}

.touchpad-repair .tp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid #bcd8e8;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 15%, rgba(20, 149, 204, .19), transparent 33%),
    linear-gradient(135deg, #f9fdff 0%, #edf8fd 100%);
  box-shadow: 0 18px 44px rgba(25, 79, 111, .09);
}

.touchpad-repair .tp-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid #b8dcef;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #086596;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.touchpad-repair .tp-title {
  margin: 0;
  color: var(--tp-ink);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.touchpad-repair .tp-lead {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--tp-muted);
  font-size: 15px;
  line-height: 1.65;
}

.touchpad-repair .tp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.touchpad-repair .tp-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(15, 120, 184, .17);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: #315c73;
  font-size: 12px;
  font-weight: 750;
}

.touchpad-repair .tp-device-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
}

.touchpad-repair .tp-device-visual svg {
  width: min(100%, 180px);
  filter: drop-shadow(0 18px 18px rgba(7, 70, 105, .15));
}

.touchpad-repair .tp-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 18px;
  padding: 15px 17px;
  border: 1px solid #f2c47d;
  border-radius: 15px;
  background: #fff8e9;
  color: #75420b;
}

.touchpad-repair .tp-alert-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #ffe5ad;
  font-size: 17px;
  font-weight: 900;
}

.touchpad-repair .tp-alert strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.touchpad-repair .tp-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.touchpad-repair .tp-section-heading {
  margin: 24px 0 12px;
  color: var(--tp-ink);
  font-size: 1.1rem;
}

.touchpad-repair .tp-symptom-grid,
.touchpad-repair .tp-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.touchpad-repair .tp-symptom-card,
.touchpad-repair .tp-outcome-card {
  padding: 16px;
  border: 1px solid var(--tp-line);
  border-radius: 15px;
  background: var(--tp-panel);
  box-shadow: 0 8px 22px rgba(20, 52, 76, .055);
}

.touchpad-repair .tp-symptom-card strong,
.touchpad-repair .tp-outcome-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--tp-ink);
  font-size: 13.5px;
}

.touchpad-repair .tp-symptom-card p,
.touchpad-repair .tp-outcome-card p {
  margin: 0;
  color: var(--tp-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.touchpad-repair .tp-flow {
  display: grid;
  gap: 10px;
}

.touchpad-repair .tp-step {
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  background: var(--tp-panel);
  box-shadow: 0 8px 24px rgba(20, 52, 76, .045);
}

.touchpad-repair .tp-step summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px 16px;
  color: var(--tp-ink);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 820;
}

.touchpad-repair .tp-step summary::-webkit-details-marker {
  display: none;
}

.touchpad-repair .tp-step summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--tp-soft);
  color: var(--tp-accent);
  font-size: 18px;
}

.touchpad-repair .tp-step[open] summary {
  border-bottom: 1px solid var(--tp-line);
  background: var(--tp-soft);
}

.touchpad-repair .tp-step[open] summary::after {
  content: "\2212";
}

.touchpad-repair .tp-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--tp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.touchpad-repair .tp-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 15px 16px 17px;
  list-style: none;
}

.touchpad-repair .tp-checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--tp-muted);
  font-size: 13px;
  line-height: 1.52;
}

.touchpad-repair .tp-checklist input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--tp-accent);
}

.touchpad-repair .tp-checklist label {
  cursor: pointer;
}

.touchpad-repair .tp-tip {
  margin: 0 16px 16px;
  padding: 11px 12px;
  border-left: 3px solid var(--tp-success);
  border-radius: 0 10px 10px 0;
  background: #edf9f4;
  color: #315f50;
  font-size: 12.5px;
  line-height: 1.5;
}

.touchpad-repair .tp-sources {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--tp-line);
  border-radius: 15px;
  background: var(--tp-soft);
}

.touchpad-repair .tp-sources strong {
  color: var(--tp-ink);
  font-size: 13px;
}

.touchpad-repair .tp-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.touchpad-repair .tp-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #b9d7e8;
  border-radius: 10px;
  background: var(--tp-panel);
  color: var(--tp-accent);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.touchpad-repair .tp-source-links a:hover {
  border-color: var(--tp-accent);
  text-decoration: underline;
}

html[data-color-mode="dark"] .touchpad-repair {
  --tp-ink: #e8f2fb;
  --tp-muted: #9db2c5;
  --tp-line: #263c50;
  --tp-panel: #0b1622;
  --tp-soft: #101f2d;
  --tp-accent: #6bc8ff;
  --tp-accent-soft: #102c3e;
  --tp-success: #55d4aa;
}

html[data-color-mode="dark"] .touchpad-repair .tp-hero {
  border-color: #29455b;
  background:
    radial-gradient(circle at 88% 15%, rgba(43, 160, 218, .18), transparent 34%),
    linear-gradient(135deg, #0b1723 0%, #0d2230 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

html[data-color-mode="dark"] .touchpad-repair .tp-eyebrow,
html[data-color-mode="dark"] .touchpad-repair .tp-meta span {
  border-color: #31556e;
  background: rgba(8, 22, 33, .72);
  color: #8bd4fb;
}

html[data-color-mode="dark"] .touchpad-repair .tp-alert {
  border-color: #6e4a1b;
  background: #281d10;
  color: #ffd89a;
}

html[data-color-mode="dark"] .touchpad-repair .tp-alert-icon {
  background: #503513;
}

html[data-color-mode="dark"] .touchpad-repair .tp-tip {
  background: #102a24;
  color: #9fe4ce;
}

html[data-ui-theme="xp"] .touchpad-repair .tp-hero,
html[data-ui-theme="xp"] .touchpad-repair .tp-alert,
html[data-ui-theme="xp"] .touchpad-repair .tp-symptom-card,
html[data-ui-theme="xp"] .touchpad-repair .tp-outcome-card,
html[data-ui-theme="xp"] .touchpad-repair .tp-step,
html[data-ui-theme="xp"] .touchpad-repair .tp-sources {
  border-radius: 2px;
  box-shadow: none;
}

html[data-ui-theme="saas"] .tool-launcher-option[data-category="repair"] .tool-launcher-badge {
  border-color: #b9d7e8 !important;
  background: #eaf7fc !important;
  color: #086596 !important;
}

@media (max-width: 720px) {
  .touchpad-repair .tp-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .touchpad-repair .tp-device-visual {
    min-height: 105px;
  }

  .touchpad-repair .tp-device-visual svg {
    width: 130px;
  }

  .touchpad-repair .tp-symptom-grid,
  .touchpad-repair .tp-outcome-grid {
    grid-template-columns: 1fr;
  }

  .touchpad-repair .tp-step summary {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .touchpad-repair .tp-step-number {
    width: 34px;
    height: 34px;
  }

  .touchpad-repair .tp-checklist {
    padding-inline: 12px;
  }

  .touchpad-repair .tp-source-links {
    display: grid;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .touchpad-repair .tp-step[open] .tp-checklist {
    animation: tp-checklist-in .2s ease-out both;
  }
}

@keyframes tp-checklist-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
