:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f8;
  color: #182230;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(circle at top, #ffffff 0, #eef2f7 55%, #e6ebf2 100%);
}

.extension-shell {
  width: min(100%, 38rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid #d8dee8;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1.25rem 3rem rgba(21, 35, 52, 0.12);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: #526174;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 { margin: 0; font-size: clamp(1.65rem, 5vw, 2.2rem); }
h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.lead,
.install-panel p,
.steps,
.support { line-height: 1.55; }
.lead { color: #445266; }

.install-panel {
  margin: 1.4rem 0;
  padding: 1.1rem;
  border: 1px solid #ced9e8;
  border-radius: 0.85rem;
  background: #f6f9fd;
}

.install-panel p { margin: 0; color: #4d5d72; }
.install-action { margin-top: 1rem; }

.recovery-panel {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid #e0bd6a;
  border-radius: 0.85rem;
  background: #fff8e6;
}

.recovery-panel p {
  margin: 0;
  color: #5d460e;
  line-height: 1.55;
}

.install-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid #1769e0;
  border-radius: 0.65rem;
  background: #1769e0;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.install-button:hover:not(:disabled) { background: #1059c2; }
.install-button:focus-visible,
.back-link:focus-visible { outline: 3px solid rgba(28, 103, 235, 0.25); outline-offset: 3px; }
.install-button:disabled { border-color: #b8c2cf; background: #edf2f8; color: #596779; cursor: not-allowed; }

.installed {
  margin: 1.4rem 0;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  background: #e3f7ea;
  color: #126234;
  font-weight: 700;
}

.steps { padding-left: 1.35rem; }
.steps li + li { margin-top: 0.45rem; }
.support { color: #596779; font-size: 0.9rem; }
.back-link { color: #145bbf; font-weight: 700; }
