:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --blue: #0071e3;
  --blue-bright: #2997ff;
  --green: #34c759;
  --purple: #8b5cf6;
  --radius: 32px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
  --nav-height: 52px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #000;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(15, 15, 17, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.nav-inner {
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img { width: 24px; height: 24px; border-radius: 7px; background: #fff; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 12px;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }

.language-link {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
}

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  cursor: pointer;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "⌄"; margin-left: 5px; font-size: 11px; }
.nav-dropdown[open] summary, .nav-dropdown summary:hover { color: #fff; }
.submenu {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 220px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(24,24,27,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transform: translateX(-50%);
}
.submenu a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 13px; }
.submenu a:hover { background: rgba(255,255,255,.08); }

.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }

.hero {
  position: relative;
  min-height: 860px;
  padding: 150px 24px 92px;
  overflow: hidden;
  color: #f5f5f7;
  background:
    radial-gradient(circle at 70% 22%, rgba(0, 113, 227, .56), transparent 34%),
    radial-gradient(circle at 84% 68%, rgba(139, 92, 246, .35), transparent 29%),
    linear-gradient(145deg, #050506 18%, #11131a 58%, #071b30);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.22) .7px, transparent .7px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero-inner {
  position: relative;
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-bright);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(62px, 8vw, 106px);
  line-height: .9;
  letter-spacing: -.065em;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.28;
  letter-spacing: -.025em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-size: 17px;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: #0077ed; transform: translateY(-1px); }
.button.secondary { border-color: rgba(255,255,255,.4); background: transparent; }
.button.secondary:hover { background: rgba(255,255,255,.1); }

.hero-note { margin: 20px 0 0; color: rgba(255,255,255,.52); font-size: 13px; }

.device-stage { position: relative; min-height: 560px; perspective: 1000px; }
.phone {
  position: absolute;
  width: 258px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 46px;
  background: #0b0b0c;
  box-shadow: 0 45px 100px rgba(0,0,0,.55);
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  width: 84px;
  height: 22px;
  top: 18px;
  left: 50%;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}
.phone img { width: 100%; height: 510px; border-radius: 36px; object-fit: cover; object-position: top; background: #fff; }
.phone-main { z-index: 3; top: 12px; left: 50%; transform: translateX(-50%) rotate(1deg); }
.phone-left { z-index: 1; top: 105px; left: 0; transform: rotate(-9deg) scale(.88); opacity: .76; }
.phone-right { z-index: 2; top: 94px; right: 0; transform: rotate(10deg) scale(.9); opacity: .82; }

.landing-device {
  position: absolute;
  margin: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 25px;
  background: #2d3948;
  box-shadow: 0 34px 80px rgba(0,0,0,.48);
  overflow: hidden;
}
.landing-device img { display: block; width: 100%; height: auto; }
.stage-ipad { z-index: 1; width: 59%; top: 72px; left: -2%; transform: rotate(-5deg); opacity: .8; }
.stage-iphone { z-index: 3; width: 38%; top: 0; left: 43%; transform: rotate(2deg); }
.stage-watch { z-index: 4; width: 34%; right: -2%; bottom: 30px; transform: rotate(6deg); }

.device-showcase { overflow: hidden; }
.device-collection { margin-top: 76px; }
.device-collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.device-collection-heading h3 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.device-collection-heading p { margin: 0 0 6px; color: var(--muted); font-size: 17px; }
.device-gallery {
  display: flex;
  gap: 18px;
  padding: 2px 2px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.device-gallery::-webkit-scrollbar { display: none; }
.device-gallery figure {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  margin: 0;
  border-radius: 25px;
  background: #2d3948;
  box-shadow: 0 12px 34px rgba(0,0,0,.1);
  overflow: hidden;
  scroll-snap-align: start;
}
.device-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }
.watch-device-gallery figure { border: 1px solid var(--line); background: #fff; }

.section { padding: 116px 24px; }
.section.white { background: #fff; }
.section.dark { color: #f5f5f7; background: #000; }
.section-inner { width: min(1120px, 100%); margin: auto; }

.section-heading { max-width: 850px; margin-bottom: 56px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-kicker { margin: 0 0 10px; color: var(--blue); font-size: 18px; font-weight: 700; }
.dark .section-kicker { color: var(--blue-bright); }
.section h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
}
.section-intro {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.35;
  letter-spacing: -.02em;
}
.center .section-intro { margin-inline: auto; }
.dark .section-intro { color: #a1a1a6; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  position: relative;
  grid-column: span 6;
  min-height: 420px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.card.wide { grid-column: span 12; }
.card.third { grid-column: span 4; min-height: 340px; }
.card.soft-blue { background: linear-gradient(145deg, #e9f5ff, #fff); }
.card.soft-purple { background: linear-gradient(145deg, #f1ebff, #fff); }
.card.black { color: #fff; background: #101012; }
.card h3 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.04em; }
.card p { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.card.black p { color: #a1a1a6; }
.card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.card li { position: relative; margin-top: 9px; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.card-media { display: flex; align-items: flex-end; justify-content: center; min-height: 190px; margin: 28px -12px -38px; }
.card-media img { max-height: 280px; width: auto; border-radius: 18px 18px 0 0; box-shadow: 0 18px 50px rgba(0,0,0,.13); }
.natural-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
}
.card.wide .split { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 50px; min-height: 350px; }
.card.wide .card-media { margin: 0 -20px -38px 0; }
.card.wide .card-media img { max-height: 420px; }

.feature-row { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; margin-top: 100px; }
.feature-row:first-of-type { margin-top: 0; }
.feature-row.reverse { grid-template-columns: 1.15fr .85fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h3 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.05em; }
.feature-copy p { margin: 20px 0 0; color: #a1a1a6; font-size: 21px; line-height: 1.42; }
.feature-copy ul { margin: 24px 0 0; padding-left: 20px; color: #d2d2d7; line-height: 1.8; }
.feature-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 36px;
  border-radius: 42px;
  background: linear-gradient(145deg, #17171a, #0b0b0c);
  overflow: hidden;
}
.feature-visual.blue { background: radial-gradient(circle at 50% 15%, #14385c, #06080b 66%); }
.feature-visual.purple { background: radial-gradient(circle at 50% 15%, #342461, #09070e 66%); }
.feature-visual img { max-height: 500px; border-radius: 26px; box-shadow: var(--shadow); }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { padding: 9px 13px; border-radius: 999px; color: #d2d2d7; background: #1d1d1f; font-size: 14px; }

.privacy-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  margin-top: 68px;
  padding: 34px;
  border-radius: 26px;
  background: #f0f7ff;
}
.privacy-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: var(--blue); font-size: 27px; }
.privacy-banner h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.privacy-banner p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }

.cta {
  padding: 120px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0066cc, #642dd0);
}
.cta h2 { max-width: 850px; margin: auto; font-size: clamp(44px, 7vw, 80px); line-height: .98; letter-spacing: -.055em; }
.cta p { max-width: 620px; margin: 24px auto 34px; color: rgba(255,255,255,.75); font-size: 21px; line-height: 1.4; }
.cta .button { color: var(--blue); background: #fff; }

.site-footer { padding: 34px 24px 48px; color: var(--muted); background: var(--bg); font-size: 12px; }
.footer-inner { width: min(1120px, 100%); margin: auto; }
.footer-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin: 20px 0 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto;
    display: none;
    align-items: stretch;
    padding: 18px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,.16);
    background: rgba(15,15,17,.97);
  }
  .nav-links.open { display: grid; gap: 0; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; }
  .nav-dropdown summary { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; }
  .submenu { position: static; width: 100%; padding: 4px 0 10px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
  .submenu a { padding: 11px 0; font-size: 15px; }
  .language-link { border: 0; border-radius: 0; }
  .menu-button { display: block; }
  .hero { min-height: auto; padding-top: 125px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .device-stage { width: min(590px, 100%); margin: auto; }
  .device-collection { margin-top: 62px; }
  .device-gallery figure { flex-basis: calc((100% - 18px) / 2); }
  .card, .card.third { grid-column: span 12; }
  .card.wide .split, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-copy { order: initial; }
  .feature-copy { text-align: center; }
  .feature-copy ul { display: inline-block; text-align: left; }
  .feature-visual { min-height: 450px; }
}

@media (max-width: 600px) {
  :root { --radius: 24px; }
  .nav-inner { width: calc(100% - 28px); }
  .hero { padding: 112px 18px 64px; }
  .hero h1 { font-size: clamp(56px, 19vw, 78px); }
  .hero-lead { font-size: 20px; }
  .device-stage { min-height: 430px; }
  .stage-ipad { width: 64%; left: -9%; }
  .stage-iphone { width: 43%; left: 37%; }
  .stage-watch { width: 39%; right: -7%; bottom: 38px; }
  .device-collection-heading { display: block; }
  .device-collection-heading p { margin-top: 7px; }
  .device-gallery figure { flex-basis: 84%; }
  .phone { width: 205px; border-radius: 38px; }
  .phone img { height: 400px; border-radius: 29px; }
  .phone-main { top: 0; }
  .phone-left { left: -70px; }
  .phone-right { right: -70px; }
  .section { padding: 82px 18px; }
  .section-heading { margin-bottom: 36px; }
  .card { min-height: auto; padding: 28px; }
  .card.wide .split { min-height: 0; }
  .card-media { min-height: 140px; }
  .feature-row { margin-top: 76px; }
  .feature-visual { min-height: 350px; padding: 22px; border-radius: 28px; }
  .privacy-banner { grid-template-columns: 1fr; text-align: center; }
  .privacy-icon { margin: auto; }
  .footer-top { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* User guide */
.guide-hero {
  padding: 138px 24px 76px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, #173d66, #08090c 58%, #000);
}
.guide-hero img { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 24px; background: #fff; }
.guide-hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(48px, 7vw, 84px); line-height: .96; letter-spacing: -.06em; }
.guide-hero .hero-lead { max-width: 740px; margin: 24px auto 0; }
.guide-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.guide-meta span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.7); font-size: 13px; background: rgba(255,255,255,.06); }

.guide-layout {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 120px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.guide-sidebar { position: sticky; top: 78px; }
.guide-sidebar h2 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.guide-sidebar nav { display: grid; }
.guide-sidebar a { padding: 9px 0; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.25; }
.guide-sidebar a:hover, .guide-sidebar a:focus-visible { color: var(--blue); }
.guide-sidebar .sidebar-download { display: inline-flex; margin-top: 20px; color: var(--blue); font-weight: 600; }

.guide-content { min-width: 0; }
.guide-intro {
  margin-bottom: 72px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}
.guide-intro h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.guide-intro p { margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.guide-intro ul { margin: 20px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }

.guide-chapter { padding: 0 0 92px; border-top: 1px solid var(--line); }
.chapter-head { padding-top: 70px; margin-bottom: 34px; }
.chapter-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 15px; font-weight: 700; }
.chapter-head h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.chapter-head p { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 20px; line-height: 1.45; }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-step {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
}
.guide-step.full { grid-column: 1 / -1; }
.guide-step h3 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.guide-step > p { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: guide-step; }
.steps li { position: relative; min-height: 30px; margin-top: 14px; padding-left: 42px; color: #424245; line-height: 1.48; counter-increment: guide-step; }
.steps li::before { content: counter(guide-step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--blue); background: #e8f3ff; font-size: 13px; font-weight: 700; }
.guide-image { margin: 26px 0 0; padding: 22px; border-radius: 20px; background: #f5f5f7; }
.guide-image img { max-height: 470px; width: auto; margin: auto; border-radius: 14px; box-shadow: 0 14px 35px rgba(0,0,0,.09); }
.guide-image.wide img { width: 100%; height: auto; max-height: none; object-fit: contain; }

.guide-note { margin-top: 20px; padding: 17px 18px; border-radius: 15px; color: #4c4c50; background: #f0f7ff; font-size: 14px; line-height: 1.5; }
.guide-note strong { color: #145a9c; }
.guide-note.warning { background: #fff6df; }
.guide-note.warning strong { color: #8a5900; }
.status-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.status-item { padding: 12px 14px; border-radius: 13px; color: #4c4c50; background: #f5f5f7; font-size: 14px; }
.status-item b { display: block; margin-bottom: 3px; color: var(--text); }

.guide-next { display: flex; justify-content: space-between; gap: 18px; margin-top: 34px; }
.guide-next a { color: var(--blue); text-decoration: none; font-size: 15px; }

.complete-reference {
  margin-top: 48px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.complete-reference-title { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.complete-reference-intro { margin: 12px 0 34px; color: var(--muted); line-height: 1.5; }
.reference-section { margin-top: 42px; }
.reference-section h4 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.device-gallery-title { margin: 28px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.device-gallery-title.ios-title { color: #000; }
.device-gallery-title.watch-title { color: var(--text); }
.reference-copy { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 22px; margin-top: 18px; }
.reference-copy p { margin: 0; padding: 13px 15px; border-radius: 13px; color: #55555a; background: #fff; font-size: 14px; line-height: 1.45; }
.manual-gallery {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.manual-gallery::-webkit-scrollbar { display: none; }
.manual-gallery figure {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  scroll-snap-align: start;
}
.manual-gallery img { width: 100%; height: 210px; object-fit: contain; border-radius: 10px; background: #f5f5f7; }
.manual-gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; text-align: center; }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.carousel-controls[hidden] { display: none; }
.carousel-count { min-width: 68px; color: var(--muted); font-size: 12px; text-align: center; }
.carousel-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.carousel-button:hover { background: #ececef; }
.carousel-button:disabled { opacity: .3; cursor: default; }
.guide-image img[src="images/c/pasted-image-1212.jpg"],
.manual-gallery img[src="images/c/pasted-image-1212.jpg"],
.guide-image img[src="images/j/pasted-image-932.jpg"],
.manual-gallery img[src="images/j/pasted-image-932.jpg"] {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
}
.watch-gallery { padding: 0; background: transparent; }
.watch-gallery figure { border-color: var(--line); background: #fff; }
.watch-gallery img { background: #f5f5f7; }
.watch-gallery figcaption { color: var(--muted); }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-sidebar { position: relative; top: auto; margin-bottom: 54px; padding: 24px; border-radius: 22px; background: #fff; }
  .guide-sidebar nav { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }
  .manual-gallery figure { flex-basis: calc((100% - 14px) / 2); }
}

@media (max-width: 650px) {
  .guide-hero { padding: 112px 18px 58px; }
  .guide-layout { width: calc(100% - 28px); padding-top: 42px; }
  .guide-sidebar nav, .guide-grid, .status-list { grid-template-columns: 1fr; }
  .reference-copy { grid-template-columns: 1fr; }
  .manual-gallery figure { flex-basis: 84%; }
  .manual-gallery img { height: auto; max-height: 360px; }
  .guide-intro, .guide-step { padding: 24px; }
  .guide-chapter { padding-bottom: 68px; }
  .chapter-head { padding-top: 52px; }
}
