@font-face { font-family: "Nunito Sans"; src: url("/guide/assets/nunito-sans.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #F7FCFF; --surface: #FFFFFF; --card: #EAF4F8; --ink: #101827; --muted: #4B5B66; --line: #DCECF1; --field: #BED8E2;
  --primary: #00576B; --primary-tint: #D7F7FC; --violet: #5D45C9; --violet-tint: #E9E2FF; --violet-ink: #352176; --hover: #F4F1FF;
  --gold-tint: #FFF4DC; --mark: #FFE2AA; --mark-ink: #101827;
  --brand: linear-gradient(118deg, #12C6D8 0%, #299BDE 48%, #6D52E8 100%); --soft: linear-gradient(135deg, #D7F7FC 0%, #EDE7FF 100%);
  --bubble: linear-gradient(135deg, #12C6D8, #6D52E8); --pill-rgb: 16 24 39; --pill-ink: #FFFFFF; --pill-muted: #C0CFDA; --shadow: rgba(16, 24, 39, 0.10);
  --c: #00576B; --t: #D7F7FC;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070B1B; --surface: #0D1630; --card: #14213D; --ink: #F1F6FF; --muted: #C0CFDA; --line: #253752; --field: #4AA9B8;
    --primary: #54DDE9; --primary-tint: #004E61; --violet: #C9BBFF; --violet-tint: #352176; --violet-ink: #E9E2FF; --hover: #1C2850;
    --gold-tint: #3A2A08; --mark: #6B4300; --mark-ink: #FFFFFF;
    --brand: linear-gradient(118deg, #12C6D8 0%, #48A8FF 52%, #7C66F2 100%); --soft: linear-gradient(135deg, #0B5266 0%, #352176 100%);
    --pill-rgb: 27 42 74; --pill-muted: #C0CFDA; --shadow: rgba(0, 0, 0, 0.4); --c: #54DDE9; --t: #004E61;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Nunito Sans", system-ui, sans-serif; line-height: 1.5; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 900; }
.brand img { width: 36px; height: 36px; }
.search-open { display: flex; align-items: center; gap: 10px; height: 44px; flex: 1 1 260px; max-width: 480px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--field); background: var(--surface); color: var(--muted); font: 600 16px "Nunito Sans", system-ui, sans-serif; cursor: pointer; text-align: left; }
.search-open svg { color: var(--violet); flex: none; }
.search-open kbd { margin-left: auto; font: 700 12px "Nunito Sans", system-ui, sans-serif; border: 1px solid var(--field); border-radius: 6px; padding: 2px 7px; }
.spacer { flex: 1; }
.langs { display: flex; gap: 8px; align-items: center; }
.langs .flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.5); }
.open-app { display: flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--primary); color: var(--surface);
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hero { padding-top: 24px; }
.hero-card { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 56px; border-radius: 36px;
  background: var(--brand); color: #FFFFFF; }
.hero-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%); }
.hero-text { position: relative; flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 900; letter-spacing: -1px; }
.hero-text > p { margin: 0; font-size: 19px; max-width: 640px; }
.hero .search-open { flex: none; max-width: 680px; width: 100%; height: 64px; border: 0; border-radius: 20px; font-size: 18px;
  box-shadow: 0 16px 40px rgba(32, 20, 110, 0.25); background: #FFFFFF; color: #4B5B66; }
.popular { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; font-weight: 700; }
.popular a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.55); color: #FFFFFF;
  text-decoration: none; }
.hero-lumo { position: relative; flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bubble { margin: 0; max-width: 260px; padding: 14px 18px; border-radius: 24px 24px 24px 6px; background: #FFFFFF; color: #101827; font-weight: 700;
  box-shadow: 0 10px 30px rgba(32, 20, 110, 0.2); }
.hero-lumo img { width: 240px; }
.block { padding-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.block-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.block h2 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -0.5px; }
.block-head a { font-weight: 700; }
.film-row { display: flex; gap: 40px; align-items: center; }
.film, .film-player { position: relative; flex: 0 1 520px; min-width: 0; display: block; aspect-ratio: 16 / 9; border: 0; border-radius: 26px; overflow: hidden;
  box-shadow: 0 12px 32px var(--shadow); }
.film img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.film .play::after { content: ""; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #00576B; }
.film-text { max-width: 400px; }
.film-text h2 { margin: 0 0 12px; }
.film-text p { margin: 0 0 10px; font-size: 18px; line-height: 1.55; }
.film-text .film-note { font-size: 15px; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.shot { height: 200px; overflow: hidden; display: flex; justify-content: center; padding-top: 20px; background: var(--primary-tint); }
.steps li:nth-child(2) .shot { background: var(--violet-tint); }
.steps li:nth-child(3) .shot { background: color-mix(in srgb, #48A8FF 22%, var(--surface)); }
.steps li:nth-child(4) .shot { background: var(--gold-tint); }
.shot img { width: 190px; align-self: flex-start; border-radius: 16px 16px 0 0; box-shadow: 0 8px 24px var(--shadow); }
.step-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.step-body h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.step-body p { margin: 0; color: var(--muted); }
.num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bubble); color: #FFFFFF; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center; }
.tiles { columns: 260px; column-gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: 90px; break-inside: avoid; margin: 0 0 20px; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.icon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; background: var(--t); color: var(--c); }
.tile ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tile li a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--ink); text-decoration: none; }
.tile li a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.tile li a:hover { color: var(--c); }
.bar { display: block; height: 8px; border-radius: 99px; background: var(--card); overflow: hidden; }
.bar span { display: block; height: 8px; border-radius: 99px; }
.bottom { margin-top: 64px; border-top: 1px solid var(--line); }
.bottom .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding-top: 32px; padding-bottom: 48px; }
.bottom .badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bottom .badges a { display: flex; }
.badge { height: 40px; width: auto; }
.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; margin-left: auto; }
.layout { display: flex; gap: 40px; align-items: flex-start; padding-top: 28px; padding-bottom: 140px; }
.toc { flex: 0 0 260px; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.toc-chapter { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 15px; }
.toc-chapter .icon { width: 28px; height: 28px; border-radius: 9px; }
.toc ul { margin: 2px 0 8px 23px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--t); display: flex; flex-direction: column; gap: 2px; }
.toc li a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px; }
.toc li a[aria-current] { background: var(--t); color: var(--c); font-weight: 800; }
.article { flex: 1; min-width: 0; max-width: 860px; display: flex; flex-direction: column; gap: 24px; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.chip { font-weight: 800; color: var(--c); background: var(--t); padding: 5px 12px; border-radius: 999px; }
.article h1 { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 900; letter-spacing: -1px; }
.in-short { display: flex; gap: 18px; align-items: center; padding: 20px 24px; border-radius: 26px; background: var(--soft); }
.in-short img { flex: none; width: 84px; }
.in-short p { margin: 0; font-size: 18px; font-weight: 600; }
.in-short .label { font-size: 13px; font-weight: 900; letter-spacing: 0.6px; text-transform: uppercase; color: var(--violet-ink); }
.prose { font-size: 18px; line-height: 1.65; }
.prose::after { content: ""; display: block; clear: both; }
.prose p { margin: 0 0 18px; }
.prose h2 { clear: both; margin: 40px 0 14px; font-size: 28px; line-height: 1.2; font-weight: 900; letter-spacing: -0.4px; scroll-margin-top: 90px; }
.prose strong { font-weight: 800; color: var(--primary); background: var(--primary-tint); padding: 1px 8px; border-radius: 8px; }
.prose ol { counter-reset: step; list-style: none; margin: 0 0 18px; padding: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 48px; margin: 0 0 14px; min-height: 34px; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--bubble);
  color: #FFFFFF; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.prose ul { list-style: none; margin: 0 0 18px; padding: 0; }
.prose ul > li { position: relative; padding-left: 24px; margin: 0 0 10px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.prose figure { margin: 28px auto; text-align: center; overflow-x: auto; }
.prose figure a { display: inline-block; cursor: zoom-in; }
.prose figure img { display: block; margin: 0 auto; max-width: none; border-radius: 14px; }
.prose figcaption { max-width: 420px; margin: 10px auto 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.pager-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-link { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; }
.card-link.next { grid-column: 2; justify-content: flex-end; text-align: right; }
.card-label, .card-title { display: block; }
.card-label { font-size: 13px; font-weight: 800; color: var(--muted); }
.card-title { font-size: 19px; font-weight: 800; }
.round { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--card);
  color: var(--primary); }
.next .round, .pager .next { background: var(--bubble); color: #FFFFFF; }
.pager { position: fixed; z-index: 4; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgb(var(--pill-rgb) / var(--pill-alpha, 1)); color: var(--pill-ink);
  transition: opacity 0.25s, transform 0.25s, background-color 0.25s;
  max-width: calc(100% - 32px); }
.pager.away { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
@media (hover: hover) and (min-width: 900px) {
  .pager:not(.away) { opacity: 0.25; }
  .pager:not(.away):hover, .pager:not(.away):focus-within { opacity: 1; --pill-alpha: 0.88; }
  .pager:not(.away):hover .where-text, .pager:not(.away):focus-within .where-text { opacity: 0.88; }
  .pager:not(.away):hover .off, .pager:not(.away):focus-within .off { opacity: 0.31; }
}
.pager a, .pager .off { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pill-ink); flex: none; }
.pager .off { opacity: 0.35; }
.where { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0 10px; }
.where-text { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; transition: opacity 0.25s; }
.where-text .pos { color: var(--pill-muted); font-weight: 700; }
.where .bar { display: none; width: 100%; height: 6px; }
.where .bar span { height: 6px; background: var(--bubble); }
dialog.search { width: min(780px, calc(100% - 32px)); max-height: calc(100vh - 96px); margin: 72px auto auto; padding: 0; border: 0; border-radius: 28px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(7, 11, 27, 0.45); }
dialog.search::backdrop { background: rgba(7, 11, 27, 0.55); }
.search-box { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px 0 22px; border-bottom: 1px solid var(--line); }
.search-box svg { color: var(--violet); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 20px "Nunito Sans", system-ui, sans-serif; }
.search-box .close { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--field); background: var(--surface); color: var(--muted);
  font: 700 13px "Nunito Sans", system-ui, sans-serif; cursor: pointer; }
.results { max-height: min(640px, calc(100vh - 260px)); overflow-y: auto; padding: 8px 0 12px; }
.group { margin: 0; padding: 12px 22px 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.hit { display: flex; gap: 14px; align-items: flex-start; padding: 12px 22px; color: var(--ink); text-decoration: none; }
.hit.on { background: var(--hover); }
.hit-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--t);
  color: var(--c); }
.hit-icon.s, .hit-icon.l { background: transparent; color: var(--violet); }
.hit-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hit-title { font-size: 18px; font-weight: 800; }
.hit-icon.l + .hit-body .hit-title { align-self: flex-start; color: #FFFFFF; background: #00576B; padding: 4px 12px; border-radius: 999px; font-size: 15px; }
.hit-sub { font-size: 15px; line-height: 1.45; color: var(--muted); }
.hit-chip { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--c); background: var(--t); padding: 3px 9px; border-radius: 999px; }
mark { background: var(--mark); color: var(--mark-ink); border-radius: 4px; padding: 0 2px; }
.tries { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 22px 12px; }
.tries button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--violet); background: var(--hover); color: var(--violet-ink);
  font: 700 15px "Nunito Sans", system-ui, sans-serif; cursor: pointer; }
.none { display: flex; gap: 18px; align-items: center; padding: 24px 22px; }
.none img { width: 96px; flex: none; }
.none p { margin: 0; color: var(--muted); }
.none .none-title { font-size: 18px; font-weight: 800; color: var(--ink); }
.keys { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--bg); font-size: 13px;
  font-weight: 700; color: var(--muted); border-radius: 0 0 28px 28px; }
dialog.viewer { padding: 0; border: none; background: transparent; max-width: 100vw; max-height: 100vh; cursor: zoom-out; }
dialog.viewer::backdrop { background: rgba(0, 0, 0, 0.8); }
dialog.viewer img { display: block; max-width: 95vw; max-height: 95vh; width: auto; height: auto; }
@media (max-width: 899px) {
  .toc, .pager-cards { display: none; }
  .layout { padding-bottom: 120px; }
  .pager { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border-radius: 0; padding: 10px 12px 14px; gap: 10px; background: var(--surface);
    color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px var(--shadow); }
  .pager a, .pager .off { width: 52px; height: 52px; background: var(--card); color: var(--primary); }
  .where { flex: 1; }
  .where-text .title { display: none; }
  .where-text .pos { color: var(--muted); font-size: 13px; }
  .where .bar { display: block; }
  .article h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .open-app, .brand span, .search-open kbd { display: none; }
  .hero-card { padding: 24px 20px; gap: 16px; border-radius: 30px; }
  .hero h1 { font-size: 30px; }
  .hero-text > p { font-size: 16px; }
  .hero-lumo { order: -1; flex-direction: row; justify-content: flex-start; }
  .hero-lumo img { width: 96px; }
  .bubble { font-size: 14px; }
  .block h2 { font-size: 22px; }
  .steps { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; }
  .steps li { flex: none; width: 220px; }
  .film-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .film, .film-player { flex: none; width: 100%; }
  .film-text { max-width: none; }
  .film-text p { font-size: 16px; }
  .in-short { flex-direction: column; align-items: flex-start; padding: 16px; }
  .in-short img { width: 52px; }
  .prose { font-size: 17px; }
  dialog.search { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .results { max-height: calc(100vh - 130px); }
  .keys { display: none; }
}
.ch-getting-started { --c: #007A91; --t: #D7F7FC; }
.ch-home-and-me { --c: #1F6FB8; --t: #DDEEFF; }
.ch-learning { --c: #5D45C9; --t: #E9E2FF; }
.ch-lumo { --c: #9A3DB8; --t: #F6E6FB; }
.ch-my-circles { --c: #1E7A4C; --t: #DDF5E8; }
.ch-family { --c: #8A5300; --t: #FFF0D6; }
.ch-zaps-and-plans { --c: #7A3FD0; --t: #EFE5FF; }
.ch-account { --c: #3D4F5C; --t: #E8EEF2; }
@media (prefers-color-scheme: dark) {
  .ch-getting-started { --c: #54DDE9; --t: #004E61; }
  .ch-home-and-me { --c: #7BC8FF; --t: #0F3A5C; }
  .ch-learning { --c: #C9BBFF; --t: #352176; }
  .ch-lumo { --c: #E3A6F5; --t: #4A1D5C; }
  .ch-my-circles { --c: #7DDBA8; --t: #123F2B; }
  .ch-family { --c: #FFC766; --t: #4A3000; }
  .ch-zaps-and-plans { --c: #D2B8FF; --t: #3A2470; }
  .ch-account { --c: #C0CFDA; --t: #253752; }
}
