:root {
  --accent: #1459a6;
  --accent-soft: #edf5ff;
  --ink: #171716;
  --body: #4b4b48;
  --muted: #73736f;
  --line: #deded9;
  --soft: #f5f5f2;
  --header-height: 70px;
  --content-width: 820px;
}

/* A shared reading rhythm and stable carousel frame. */
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; transform: translateY(-160%); padding: 12px 18px; background: #fff; color: var(--accent); border: 2px solid var(--accent); border-radius: 8px; }
.skip-link:focus { transform: none; }

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand { display: flex; align-items: center; }
.brand img { display: block; width: 137px; height: auto; }
.tutorial-link { font-size: 15px; font-weight: 500; text-decoration: none; }
.tutorial-link:hover { text-decoration: underline; }
.tutorial-link:focus-visible,
.contents a:focus-visible,
.video-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.page {
  display: grid;
  width: min(1190px, calc(100% - 64px));
  grid-template-columns: 220px minmax(0, var(--content-width));
  gap: 86px;
  margin: 0 auto;
  padding: 70px 0 124px;
  scroll-margin-top: var(--header-height);
}

.contents { position: sticky; top: calc(var(--header-height) + 38px); align-self: start; }
.contents > p { margin: 0 0 16px; color: var(--ink); font-size: 16px; font-weight: 600; }
.contents nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contents a { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 16px; line-height: 1.3; text-decoration: none; transition: color 140ms ease; }
.contents a:hover { color: var(--ink); }
.contents a.is-active { color: var(--ink); font-weight: 600; }
.contents a.is-active::before { position: absolute; top: 12px; bottom: 12px; left: -14px; width: 2px; background: var(--ink); content: ""; }

main { min-width: 0; }
.guide-intro { padding: 4px 0 76px; }
.guide-intro h1 { max-width: 740px; margin: 0; font-size: clamp(54px, 5.4vw, 70px); font-weight: 500; letter-spacing: -0.052em; line-height: 1; }

.documentation-methods {
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
}

.documentation-methods > h2 {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.documentation-methods > article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.documentation-methods h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.documentation-methods article > p {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.58;
}

.method-points {
  margin: 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.58;
}

.method-points li + li { margin-top: 8px; }

.documentation-methods a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

.guide-section { padding: 64px 0 88px; border-top: 1px solid var(--ink); scroll-margin-top: calc(var(--header-height) + 28px); }
.section-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin-bottom: 42px; }
.chapter-number { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin: 2px 0 0; border: 1px solid var(--ink); border-radius: 50%; font-size: 17px; font-weight: 600; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 3.6vw, 44px); font-weight: 500; letter-spacing: -0.043em; line-height: 1.08; }
.section-heading div > p { max-width: 590px; margin: 16px 0 0; color: var(--body); font-size: 19px; line-height: 1.5; }

.consent-guide > p:first-child { max-width: 680px; margin: 0 0 30px; color: var(--body); font-size: 20px; line-height: 1.58; }
.consent-options { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: consent-option; }
.consent-options > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 18px; line-height: 1.58; counter-increment: consent-option; }
.consent-options > li::before { content: counter(consent-option); color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.78; }
.consent-options strong { color: var(--ink); font-weight: 600; }
.consent-options a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.consent-options ul { margin: 12px 0 0; padding-left: 20px; }
.consent-options ul li + li { margin-top: 6px; }
.guide-note { max-width: 680px; margin: 30px 0 0; padding-left: 16px; border-left: 2px solid var(--ink); color: var(--body); font-size: 18px; line-height: 1.58; }

.instructions { margin: 0; padding: 0; list-style: none; counter-reset: instruction; }
.instructions li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); counter-increment: instruction; }
.instructions li:last-child { border-bottom: 1px solid var(--line); }
.instructions li::before { content: counter(instruction); color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.45; }
.instruction-copy h3,
.troubleshooting-list h3,
.support h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.instruction-copy p,
.troubleshooting-list p,
.support p { max-width: 660px; margin: 9px 0 0; color: var(--body); font-size: 18px; line-height: 1.58; }
.instruction-copy strong { color: var(--ink); }
.example { padding-left: 16px; border-left: 2px solid var(--ink); }

.section-intro { max-width: 680px; margin: -4px 0 30px; color: var(--body); font-size: 19px; line-height: 1.55; }
.information-blocks { display: grid; gap: 62px; }
.information-block { padding-top: 30px; border-top: 1px solid var(--line); }
.information-block p { max-width: 720px; margin: 0; color: var(--body); font-size: 20px; line-height: 1.58; }
.information-block strong { color: var(--ink); font-weight: 600; }
.detail-bullets { max-width: 720px; margin: 14px 0 0; padding-left: 22px; color: var(--body); font-size: 18px; line-height: 1.58; }
.detail-bullets li + li { margin-top: 8px; }
.instruction-image { display: block; width: 100%; height: auto; margin-top: 30px; border: 1px solid var(--line); background: var(--soft); }
.instruction-image--portrait { width: min(100%, 380px); }
.screenshot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 780px; }

.instruction-video {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.guide-carousel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 26px); }
.carousel-slide { display: grid; grid-template-columns: minmax(210px, 0.76fr) minmax(320px, 1fr); min-height: 620px; align-items: center; gap: 44px; padding: 28px 0; }
.guide-carousel--compact .carousel-slide,
.guide-carousel--group .carousel-slide { min-height: 0; padding: 26px 0; }
.carousel-slide[hidden] { display: none; }
.carousel-copy h3 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.carousel-copy > p { margin: 16px 0 0; color: var(--body); font-size: 18px; line-height: 1.58; }
.carousel-copy > p + p { margin-top: 16px; }
.carousel-copy strong { color: var(--ink); font-weight: 600; }
.carousel-media { display: flex; align-items: center; justify-content: center; min-width: 0; }
.carousel-media img,
.carousel-media video { display: block; width: auto; max-width: 100%; max-height: 590px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.video-frame { position: relative; display: inline-flex; max-width: 100%; flex-direction: column; align-items: flex-end; gap: 10px; }
.video-frame video { width: 100%; }
.video-toggle { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--body); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.35; cursor: pointer; }
.video-toggle:hover { color: var(--ink); }
.detail-image-crop { width: min(100%, 380px); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.detail-image-crop--highlights,
.detail-image-crop--regenerate,
.detail-image-crop--revision { aspect-ratio: 652 / 980; }
.carousel-media .detail-image-crop img { width: 100%; max-width: none; max-height: none; border: 0; border-radius: 0; object-fit: cover; object-position: top; }
.guide-carousel--group .carousel-media img { border-radius: 16px; }
.carousel-controls { display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.carousel-button { min-height: 44px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.carousel-button:not(:disabled):hover { background: var(--ink); color: #fff; }
.carousel-button:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--ink); }
.carousel-button:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.carousel-status { margin: 0; color: var(--body); font-size: 15px; font-weight: 600; text-align: center; }

.visual-placeholder { display: flex; min-height: 330px; align-items: center; justify-content: center; flex-direction: column; gap: 18px; margin: 46px 0 0; border: 1px solid var(--line); background: var(--soft); color: var(--muted); }
.visual-placeholder div { display: flex; width: 54px; height: 54px; align-items: center; justify-content: center; border: 1px solid #bdbdb7; border-radius: 50%; background: #fff; color: var(--ink); font-size: 21px; }
.visual-placeholder figcaption { font-size: 16px; font-weight: 500; }

.troubleshooting-list { border-top: 1px solid var(--line); }
.troubleshooting-list article { padding: 36px 0; border-bottom: 1px solid var(--line); }
.troubleshooting-list h3 { line-height: 1.45; }
.troubleshooting-list p { margin-top: 13px; line-height: 1.7; }
.troubleshooting-list p + p { margin-top: 18px; }
.troubleshooting-list strong { color: var(--ink); font-weight: 600; }
.troubleshooting-list a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.troubleshooting-list article.recovery-item { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 28px; }
.troubleshooting-visual { position: relative; width: 100%; margin: 0; }
.troubleshooting-image { display: block; width: 52.38%; height: auto; margin-left: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.troubleshooting-visual figcaption { position: absolute; z-index: 2; bottom: 20%; left: 0; width: 45.24%; padding: 9px 10px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.42; }
.recovery-pointer { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.recovery-followup { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: start; gap: 40px; margin-top: 16px; padding-top: 34px; border-top: 1px solid var(--line); }
.recovery-followup-copy h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; }
.troubleshooting-list .recovery-followup-copy p { margin-top: 12px; }
.recovery-followup-copy ul { margin: 18px 0 0; padding-left: 22px; color: var(--body); font-size: 17px; line-height: 1.65; }
.recovery-followup-copy li + li { margin-top: 10px; }
.recovery-options-visual { width: 100%; margin: 0; }
.recovery-options-visual img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.recovery-options-visual figcaption { margin-top: 10px; color: var(--body); font-size: 14px; line-height: 1.5; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.settings-link { min-height: 44px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.settings-link:hover { background: #333330; }
.settings-link--secondary { background: #fff; color: var(--ink); }
.settings-link--secondary:hover { background: var(--soft); }
.settings-link:focus-visible { outline: 3px solid rgba(23, 23, 22, 0.2); outline-offset: 3px; }
.troubleshooting-list .settings-link-status { margin-top: 10px; font-size: 15px; }
.troubleshooting-list .settings-link-status:empty { display: none; }
.microphone-permission-steps { display: grid; gap: 28px; max-width: 580px; margin-top: 28px; }
.microphone-permission-steps figure { display: grid; gap: 12px; margin: 0; }
.microphone-permission-steps figure + figure { padding-top: 28px; border-top: 1px solid var(--line); }
.microphone-permission-steps figcaption { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 12px; margin: 0; color: var(--body); }
.permission-step-number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; line-height: 1; }
.microphone-permission-steps figcaption strong,
.microphone-permission-steps figcaption small { display: block; }
.microphone-permission-steps figcaption strong { color: var(--ink); font-size: 17px; line-height: 1.35; }
.microphone-permission-steps figcaption small { margin-top: 3px; color: var(--body); font-size: 15px; line-height: 1.5; }
.microphone-permission-steps img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.support { margin-top: 46px; padding: 30px; background: var(--soft); }
.support a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .page { width: min(760px, calc(100% - 48px)); grid-template-columns: 1fr; gap: 46px; padding-top: 48px; }
  .contents { position: static; }
  .contents nav { display: grid; grid-template-columns: 1fr 1fr; }
  .contents a:nth-child(odd) { padding-right: 18px; }
  .guide-intro { padding-bottom: 64px; }
  .guide-section { padding: 58px 0 80px; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 20px; }
  .brand img { width: 126px; }
  .tutorial-link { font-size: 14px; }
  .page { width: calc(100% - 36px); padding: 36px 0 84px; gap: 40px; }
  .contents nav { grid-template-columns: 1fr; }
  .contents a:nth-child(odd) { padding-right: 0; }
  .guide-intro { padding-bottom: 60px; }
  .guide-intro h1 { font-size: 46px; }
  .documentation-methods { margin-top: 38px; }
  .documentation-methods > h2 { font-size: 20px; }
  .documentation-methods > article { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .documentation-methods article > p,
  .method-points { font-size: 17px; }
  .guide-section { padding: 58px 0 82px; }
  .section-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .section-heading h2 { font-size: 34px; }
  .consent-guide > p:first-child { font-size: 18px; }
  .consent-options > li { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; font-size: 17px; }
  .guide-note { font-size: 17px; }
  .section-intro { font-size: 18px; }
  .information-block p { font-size: 18px; }
  .screenshot-pair { grid-template-columns: 1fr; }
  .carousel-slide { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding: 24px 0; }
  .guide-carousel--compact .carousel-slide { min-height: 0; }
  .carousel-copy h3 { font-size: 25px; }
  .carousel-media img,
  .carousel-media video { width: min(100%, 420px); max-height: none; }
  .carousel-controls { grid-template-columns: 82px 1fr 82px; gap: 10px; padding: 16px 0; }
  .instructions li { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
  .instruction-copy p,
  .troubleshooting-list p,
  .support p { font-size: 17px; }
  .visual-placeholder { min-height: 230px; }
  .support { padding: 24px; }
  .troubleshooting-list article.recovery-item { grid-template-columns: 1fr; gap: 24px; }
  .troubleshooting-visual { width: min(100%, 420px); }
  .recovery-followup { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contents a { transition: none; }
}

.page { gap: 64px; padding-top: 48px; padding-bottom: 80px; }
.guide-intro { padding-bottom: 48px; }
.guide-intro h1 { font-size: clamp(38px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -0.04em; }
.documentation-methods { margin-top: 32px; }
.guide-section { padding: 42px 0 48px; }
.section-heading { display: block; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(30px, 3vw, 36px); line-height: 1.18; letter-spacing: -0.035em; }
.contents a.is-active { color: var(--accent); }
.contents a.is-active::before { background: var(--accent); }
.carousel-viewport { display: grid; }
.carousel-slide,
.guide-carousel--compact .carousel-slide,
.guide-carousel--group .carousel-slide { grid-area: 1 / 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: 0; align-items: start; gap: 40px; padding: 32px 0; }
.carousel-slide[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.carousel-copy { padding: 0; }
.carousel-copy h3 { font-size: 26px; line-height: 1.22; }
.carousel-media { height: clamp(360px, 54vh, 460px); flex-direction: column; gap: 10px; justify-content: flex-start; }
.carousel-media > img { min-height: 0; max-height: calc(100% - 54px); max-width: 100%; width: auto; object-fit: contain; }
.video-frame { height: 100%; width: 100%; align-items: center; }
.video-frame video { min-height: 0; height: calc(100% - 54px); width: 100%; object-fit: contain; background: #f3f7fb; }
.detail-image-crop { width: auto; height: calc(100% - 54px); max-width: 100%; flex-shrink: 1; }
.guide-carousel { border: 0; }
.carousel-controls { display: flex; justify-content: space-between; gap: 12px; border: 0; }
.carousel-controls .carousel-button { min-width: 90px; }
/* Announce slide changes without repeating a visible counter. */
.carousel-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.carousel-button[aria-disabled="true"] { color: var(--muted); border-color: var(--line); background: #fff; cursor: default; }
.carousel-button[aria-disabled="true"]:hover { color: var(--muted); border-color: var(--line); background: #fff; }
.carousel-button:not([aria-disabled="true"]):hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.image-enlarge, .video-toggle, .image-dialog button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.image-enlarge, .video-toggle { color: var(--accent); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.image-enlarge:hover, .video-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.settings-link, .settings-link--secondary { background: #fff; color: var(--accent); border-color: var(--accent); }
.settings-link:hover, .settings-link--secondary:hover { background: var(--accent-soft); }
.support { margin-top: 28px; border-radius: 12px; background: var(--accent-soft); }
.troubleshooting-list article.recovery-item { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.troubleshooting-visual > .image-enlarge { display: block; margin: 8px 0 0 auto; }
.troubleshooting-visual { padding-bottom: 52px; }
.troubleshooting-visual > .image-enlarge { position: absolute; bottom: 0; right: 0; }
.troubleshooting-visual figcaption { bottom: calc(16% + 42px); }
.recovery-pointer { height: calc(100% - 52px); }
body.image-open { overflow: hidden; }
.image-dialog { width: min(960px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: #fff; }
.image-dialog::backdrop { background: rgba(16, 26, 40, 0.7); }
.image-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.image-dialog h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.image-dialog button { flex-shrink: 0; }
.image-dialog-content { padding: 24px; }
.image-dialog img { display: block; width: auto; height: auto; max-width: 100%; margin: auto; }
a:focus-visible, button:focus-visible, .carousel-button:focus-visible, .settings-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; box-shadow: none; }
main:focus { outline: none; }

@media (max-width: 1150px) and (min-width: 901px) {
  .page { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; width: calc(100% - 48px); }
}
@media (max-width: 1050px) {
  .troubleshooting-list article.recovery-item { grid-template-columns: 1fr; }
  .troubleshooting-visual { max-width: 420px; justify-self: end; }
}
@media (max-width: 900px) {
  .page { gap: 32px; }
}
@media (max-width: 700px) {
  .carousel-slide, .guide-carousel--compact .carousel-slide, .guide-carousel--group .carousel-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; gap: 22px; }
  .carousel-media { height: 400px; }
  .carousel-media > img { width: auto; }
  .documentation-methods > article { grid-template-columns: 1fr; gap: 12px; }
  .carousel-controls { grid-template-columns: 72px minmax(0, 1fr) 72px; }
  .carousel-status { font-size: 14px; }
  .image-dialog-toolbar { align-items: start; gap: 12px; }
  .image-dialog h2 { font-size: 16px; }
  .recovery-followup { grid-template-columns: 1fr; }
  .recovery-options-visual { width: min(100%, 280px); }
}
