:root {
  --ink: #171716;
  --body: #41413e;
  --muted: #6f6f6a;
  --line: #e4e3df;
  --header-height: 70px;
  --title-section-gap: 42px;
  --later-step-title-gap: 52px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 320px;
  overflow-x: clip;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 137px;
  height: auto;
}

.module-shell {
  width: min(930px, calc(100vw - 500px));
  min-width: 0;
  margin: 0 0 0 clamp(64px, 9vw, 132px);
  padding: 34px 0 28px;
}

.module-header {
  padding-bottom: var(--title-section-gap);
}

body:not([data-guide-stage="0"]) .module-header {
  padding-bottom: var(--later-step-title-gap);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(43px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.extension-module {
  border-top: 1px solid var(--line);
}

.module-progress {
  padding-top: 16px;
}

.module-progress p {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.progress-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: #e8e7e3;
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--ink);
  transition: width 180ms ease;
}

.module-step {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 24px;
  padding: 24px 0 12px;
}

.module-step[hidden] {
  display: none;
}

.module-step h2 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(35px, 3.3vw, 43px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.module-step > p,
.step-copy p {
  max-width: none;
  margin-bottom: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.48;
}

.step-copy {
  display: grid;
  gap: 18px;
}

.step-copy p {
  margin: 0;
}

.module-step > .module-actions:first-child {
  margin-top: 0;
}

.module-step > p strong {
  color: var(--ink);
  font-weight: 600;
}

.toolbar-icon-circle {
  position: relative;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  overflow: hidden;
  border: 1px solid #deddda;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(23, 23, 22, 0.11);
}

.toolbar-icon-circle img {
  position: absolute;
  top: 50%;
  left: 3px;
  display: block;
  width: auto;
  max-width: none;
  height: 68px;
  clip-path: inset(0 79% 0 0);
  transform: translateY(-50%);
}

.module-actions {
  position: static;
  display: flex;
  width: 350px;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.module-actions button,
.module-actions a {
  min-height: 49px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.module-actions button {
  cursor: pointer;
}

.forward-actions {
  display: grid;
  width: 290px;
  grid-template-columns: 175px 105px;
  gap: 10px;
}

.forward-actions > * {
  width: 100%;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.skip-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

.skip-action:hover {
  background: #f5f5f2;
}

.secondary-action {
  background: #fff;
  color: var(--ink);
}

.primary-action span {
  display: inline-block;
  margin-left: 11px;
  transition: transform 140ms ease;
}

.primary-action:hover span {
  transform: translateX(3px);
}

.module-step[data-step="0"] .primary-action {
  padding-inline: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.module-step[data-step="0"] .module-actions,
.module-step[data-step="0"] .forward-actions {
  width: 350px;
}

.module-step[data-step="0"] .forward-actions {
  grid-template-columns: 225px 115px;
}

.module-step[data-step="0"] .primary-action span {
  margin-left: 6px;
}

.back-action {
  flex: 0 0 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #62625d;
}

.back-action:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.module-actions button:focus-visible,
.module-actions a:focus-visible {
  outline: 3px solid rgba(23, 23, 22, 0.2);
  outline-offset: 3px;
}

.guide-pointer {
  position: fixed;
  z-index: 2147483647;
  width: 260px;
  pointer-events: none;
  color: var(--ink);
  opacity: 1;
  transition: opacity 120ms ease;
}

.guide-pointer[hidden] {
  display: none;
}

.guide-pointer.is-awaiting-target {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.guide-pointer span {
  position: absolute;
  z-index: 1;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.guide-pointer svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pointer-toolbar {
  top: 1px;
  right: max(24px, calc(25vw - 140px));
  left: auto;
  width: 500px;
  height: 140px;
}

.toolbar-callout {
  position: absolute;
  top: 54px;
  right: auto;
  left: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.toolbar-callout::after {
  position: absolute;
  top: 14px;
  right: -48px;
  color: var(--ink);
  content: "↑";
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.toolbar-callout p {
  width: 235px;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.pointer-orb {
  bottom: 38px;
  left: 87px;
  width: 280px;
}

.pointer-orb span {
  top: 0;
  right: 0;
}

.pointer-menu {
  bottom: 102px;
  left: 351px;
  width: 120px;
}

.pointer-menu span {
  top: 0;
  right: 0;
  width: 420px;
  line-height: 1.35;
  white-space: normal;
  transform: translateY(-52px);
}

.pointer-menu > svg {
  position: relative;
  top: 0;
}

.pointer-record {
  bottom: 54px;
  left: 104px;
  width: 180px;
}

.pointer-record span {
  top: 0;
  left: 85px;
  width: 320px;
  line-height: 1.35;
  white-space: normal;
  transform: translateY(-50px);
}

.pointer-delete {
  bottom: 38px;
  left: 194px;
  width: 258px;
  height: 150px;
}

.pointer-delete span {
  top: 0;
  left: 0;
  width: 258px;
  line-height: 1.35;
  white-space: normal;
  transform: none;
}

.pointer-delete > svg {
  position: absolute;
  top: 47px;
  left: 40px;
  width: 90px;
  height: 105px;
}

/*
 * The extension orb is draggable, so Steps 2–5 cannot use page-relative
 * offsets. JavaScript measures the actual extension control and applies this
 * class once the callout is anchored to it.
 */
.guide-pointer.is-live-target {
  inset: 0;
  width: auto;
  height: auto;
}

.guide-pointer.is-live-target span {
  position: fixed;
  top: var(--callout-top);
  left: var(--callout-left);
  width: var(--callout-width);
  transform: none;
  white-space: normal;
}

.guide-pointer.is-live-target > svg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
}

@media (max-width: 1120px) {
  .module-shell {
    width: calc(75vw - 48px);
    min-width: 0;
    margin-left: 24px;
  }

  .pointer-toolbar {
    right: max(24px, calc(25vw - 140px));
    left: auto;
  }

  .module-step {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }

  .module-actions {
    width: 300px;
  }

  .forward-actions {
    width: 240px;
    grid-template-columns: 140px 90px;
  }

  .module-step[data-step="0"] .module-actions,
  .module-step[data-step="0"] .forward-actions {
    width: 300px;
  }

  .module-step[data-step="0"] .forward-actions {
    grid-template-columns: 185px 105px;
  }

}

@media (min-width: 821px) and (max-height: 780px) {
  .module-shell {
    padding-top: 40px;
  }

  .module-header {
    padding-bottom: 34px;
  }

  body:not([data-guide-stage="0"]) .module-header {
    padding-bottom: 50px;
  }

  h1 {
    font-size: 48px;
  }

  .module-progress {
    padding-top: 13px;
  }

  .module-progress p {
    margin-bottom: 12px;
    font-size: 23px;
  }

  .module-step {
    min-height: 300px;
    padding-top: 20px;
  }
}

@media (min-width: 821px) and (max-height: 650px) {
  body:not([data-guide-stage="0"]) .module-header {
    padding-bottom: 38px;
  }
}

@media (min-width: 821px) {
  body[data-guide-stage="0"] .module-shell {
    padding-top: 96px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 64px;
    padding: 0 21px;
  }

  .brand img {
    width: 124px;
  }

  .module-shell {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 50px 22px 24px;
  }

  h1 {
    font-size: clamp(39px, 11vw, 49px);
  }

  .module-step > p {
    max-width: 660px;
    font-size: 18px;
  }

  .module-step {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .module-actions {
    width: min(455px, calc(100vw - 44px));
    justify-self: end;
    margin-top: 28px;
  }

  .module-actions button {
    width: auto;
  }

  .module-actions a {
    width: 100%;
  }

  .forward-actions {
    width: 370px;
    flex: 0 0 370px;
    grid-template-columns: 215px 145px;
  }

  .guide-pointer {
    display: none;
  }

  .pointer-toolbar {
    top: -4px;
    right: auto;
    left: -6px;
    display: block;
    width: 330px;
  }

  .toolbar-callout {
    top: 52px;
    right: auto;
    left: max(56px, calc(100vw - 316px));
    gap: 12px;
  }

  .toolbar-callout p {
    width: 174px;
    font-size: 16px;
  }

  .toolbar-callout::after {
    top: 14px;
    right: -40px;
    font-size: 40px;
  }

  .toolbar-icon-circle {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .toolbar-icon-circle img {
    height: 61px;
  }

  body[data-guide-stage="0"] .module-shell {
    padding-top: 84px;
  }
}

html,
body {
  height: 100%;
  overflow-y: hidden;
}

@media (max-width: 520px) {
  .module-actions {
    width: calc(100vw - 32px);
    height: 108px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .forward-actions {
    order: 2;
    width: 100%;
    flex-basis: auto;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .back-action {
    order: 1;
    width: 100%;
    flex-basis: 49px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track span,
  .primary-action span,
  .guide-pointer {
    transition: none;
  }
}
