@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.6; overscroll-behavior-x: none; }
main { display: block; min-width: 0; }

.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.grid > *, .split > *, .hero-grid > *, .section-head > *, .foot-grid > *, .laws > *, .dev-hub > *, .def-points > *, .faq > *, .tr-body > *, .reveal { min-width: 0; }
.code, .formula, .table-wrap, .diagram, .copy-row, .qa-code, .qa-code pre, .tr-pre, .player, .trail, .cmp-stage, .callout, .card, .law, .dev-tile, .faq-item, .def-band, .cta-band { max-width: 100%; }

h1, h2, h3, h4, h5, .faq-q, .step-title, .law-n, .tr-panel h4, .lead, .hero-kicker, .def-lead, .eyebrow, .crumbs, .tag, .pill, .card p, .law-r, .dev-tile p, .def-point p, .notice, .foot-bottom span, .list li, .priv-list li, .step p, .tr-d, .faq-a, .msg { overflow-wrap: break-word; }
h1, h2, h3, h4, .faq-q, .eyebrow, .law-n, .tag { overflow-wrap: anywhere; hyphens: manual; -webkit-hyphens: manual; }
h1, h2, .faq-q, .section-head h3, .cta-band h2 { text-wrap: balance; }
p, li, .lead, .faq-a { text-wrap: pretty; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { word-break: auto-phrase; line-break: strict; }
html:lang(ja) body, html:lang(zh) body { line-break: strict; }
html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3, html:lang(ko) h4, html:lang(ko) .faq-q, html:lang(ko) .lead, html:lang(ko) .hero-kicker { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) h1, html:lang(ko) h1, html:lang(zh) h1, html:lang(ja) h2, html:lang(ko) h2, html:lang(zh) h2 { line-height: 1.38; letter-spacing: 0; }
html:lang(ja) h1, html:lang(zh) h1, html:lang(ko) h1 { font-size: 23px; }
html:lang(ja) .hero h1, html:lang(zh) .hero h1 { font-size: clamp(21px, 6.2vw, 26px); letter-spacing: -0.01em; }
html:lang(ko) .hero h1 { font-size: clamp(23px, 6.6vw, 28px); }
html:lang(ja) h2, html:lang(zh) h2, html:lang(ko) h2 { font-size: 20px; }
html:lang(ja) h3, html:lang(zh) h3, html:lang(ko) h3 { font-size: 17px; }

header.top {
  padding-top: env(safe-area-inset-top);
  background: rgba(0, 0, 0, 0.98);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav { height: 60px; gap: 10px; }
.brand { min-height: 44px; gap: 9px; font-size: 16.5px; }
.brand img { width: 26px; height: 26px; }
.nav-cta { gap: 6px; }
.nav-cta .btn.gh, .lang summary, .menu-btn { height: 44px; min-height: 44px; }
.nav-cta .btn.gh, .menu-btn { width: 44px; padding: 0; justify-content: center; border-radius: 10px; }
.nav-cta .btn.gh .brandico { width: 17px; height: 17px; }
.nav-cta .btn.gh:hover { transform: none; }
.lang summary { padding: 0 11px; border-radius: 10px; font-size: 12.5px; gap: 6px; }
.lang summary svg { width: 15px; height: 15px; }
.mb-lines { width: 18px; }
.mb-lines i { width: 18px; }
.lang-menu { position: fixed; top: calc(60px + env(safe-area-inset-top)); left: auto; right: max(12px, env(safe-area-inset-right)); min-width: 220px; max-height: calc(100vh - 80px - env(safe-area-inset-top)); max-height: calc(100dvh - 80px - env(safe-area-inset-top)); overflow-y: auto; padding: 6px; border-radius: 12px; }
.lang-menu a { min-height: 46px; align-items: center; padding: 10px 12px; font-size: 15px; border-radius: 8px; }
.lang-menu a .code { font-size: 12px; }

.links.open, .top.compact .links.open {
  top: calc(60px + env(safe-area-inset-top));
  background: #000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  gap: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.links.open a, .top.compact .links.open a {
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 520; padding: 12px 16px; border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--text-2);
}
.links.open a:last-child { border-bottom: none; }
.links.open a.active { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.btn { min-height: 44px; justify-content: center; padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.btn.sm { min-height: 44px; padding: 10px 16px; font-size: 14.5px; border-radius: 10px; }
.btn.primary, .btn.ghost { white-space: normal; text-align: center; }
.hero-actions, .cta-band .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; gap: 10px; }
.hero-actions .btn { width: 100%; }
.dev-acts { gap: 8px; }
.dev-acts .btn { flex: 1 1 auto; }

.eyebrow { display: block; font-size: 12px; letter-spacing: 0.14em; max-width: 100%; line-height: 1.6; }
.eyebrow::before { display: inline-block; vertical-align: middle; width: 18px; margin: -2px 10px 0 0; }
html:lang(ja) .eyebrow, html:lang(ko) .eyebrow, html:lang(zh) .eyebrow, html:lang(ja) .card .tag, html:lang(ko) .card .tag, html:lang(zh) .card .tag { letter-spacing: 0.04em; }
h1 { font-size: 26px; line-height: 1.2; }
.hero h1 { font-size: clamp(27px, 7.4vw, 32px); line-height: 1.16; letter-spacing: -0.024em; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.35; }
p { font-size: inherit; }
.lead, .hero .lead { font-size: 16px; line-height: 1.62; }
.hero-kicker { font-size: 16.5px; line-height: 1.5; margin-top: 0; }
.section-head { gap: 12px; margin-bottom: 24px; padding: 0 2px; }
.page-hero { padding: 28px 0 8px; }
.crumbs { font-size: 12.5px; margin-bottom: 10px; line-height: 1.6; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin: -14px -2px; padding: 0 2px; vertical-align: middle; }
section { padding: 44px 0; }
section.tight { padding: 30px 0; }

.hero { padding: 24px 0 16px; }
.hero-grid { gap: 18px; }
.hero-scope { gap: 7px; max-width: 360px; margin-left: auto; margin-right: auto; }
.hero-scope span { font-size: 12px; padding: 5px 11px; letter-spacing: 0.05em; }
.hero-dev { margin-top: 10px; gap: 14px; width: 100%; }
.hero-live { display: block; max-width: 330px; margin: 0 auto; font-size: 13.5px; line-height: 1.55; text-align: center; }
.hero-live .dot { display: inline-block; vertical-align: 1px; margin-right: 8px; }
.hero-dev .copy-row { width: 100%; max-width: 400px; font-size: 13px; }
.copy-row code { text-align: left; }
.hero-dev-links { gap: 8px; }
.chip { min-height: 44px; padding: 0 15px; font-size: 14px; gap: 8px; }
.copy-row { padding: 3px 3px 3px 14px; gap: 10px; border-radius: 11px; }
.copy-btn { min-height: 44px; min-width: 64px; font-size: 13px; padding: 0 12px; border-radius: 8px; }
.pill { font-size: 12px; line-height: 1.5; }

.grid, .grid.g2, .grid.g3, .grid.g4, .laws, .dev-hub, .faq { gap: 12px; }
.card, .law, .dev-tile { padding: 20px 18px; border-radius: 14px; }
.card p, .law-r, .dev-tile p, .def-point p, .priv-list, .priv-note { font-size: 15px; line-height: 1.6; }
.card .tag, .law-c, .dev-k { font-size: 12px; letter-spacing: 0.1em; }
.card .tag { margin-bottom: 10px; }
.card::before { display: none; }
.law-n { font-size: 16px; }
.law-q p { font-size: 14.5px; }
.dev-badge { font-size: 12px; }
.callout { padding: 20px 18px; }
.def-band, .cta-band { padding: 24px 18px; border-radius: 16px; }
.def-lead { font-size: 17px; margin: 14px 0 20px; }
.cta-band { gap: 14px; }
.cta-band h2 { font-size: 22px; }
.notice { font-size: 13.5px; line-height: 1.6; }
.list { gap: 10px; }
.list li { padding-left: 20px; }
.list li::before { top: 12px; }

.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { padding: 16px 8px; }
.metric .num { font-size: 21px; }
.metric .lbl { font-size: 12.5px; line-height: 1.4; white-space: normal; }

.code { font-size: 12.5px; line-height: 1.7; padding: 16px; -webkit-overflow-scrolling: touch; }
.code-head { padding: 10px 14px; font-size: 12px; gap: 10px; min-width: 0; }
.code-head > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.formula { font-size: 13px; padding: 14px 16px; }
.split { gap: 24px; }
.kv { gap: 4px; font-size: 15px; }
.kv dt { font-size: 12px; padding-top: 8px; }
.kv dd { overflow-wrap: anywhere; }

.table-wrap { border-radius: 12px; }
table.spec { font-size: 14.5px; }
table.spec td { line-height: 1.55; }
table.spec td[data-label]::before { font-size: 12px; letter-spacing: 0.1em; }

.steps { margin-left: 13px; }
.step { padding: 0 0 26px 28px; }
.step::before { font-size: 12px; }

.diagram { padding: 12px; border-radius: 12px; }
.diagram .caption { font-size: 12px; line-height: 1.55; }

.player { margin-top: 26px; border-radius: 16px; }
.player-bar { padding: 10px 14px; }
.player-caption { gap: 12px; padding: 16px; }
.player-caption .step-no { justify-self: start; font-size: 12px; }
.player-caption .step-title { font-size: 16.5px; }
.player-caption .step-text { font-size: 15px; line-height: 1.55; }
.player-controls { gap: 8px; }
.player-controls button { height: 44px; min-width: 48px; font-size: 13px; border-radius: 10px; }
.player-controls button[data-act="play"] { flex: 1; max-width: 140px; }
.progress { padding: 0 16px 16px; }
.progress span { height: 4px; }
.stage-node text.sub { font-size: 11px; }

.cmp-stage { padding: 8px; border-radius: 14px; }
.cmp-legend { gap: 8px 18px; font-size: 13.5px; }

.ticker-wrap { padding: 12px 0; }
.ticker { font-size: 12px; gap: 28px; }

.laptop { padding: 0 2px; }
.laptop .trail { border-width: 5px 5px 8px; border-radius: 14px 14px 4px 4px; box-shadow: 0 0 0 1px #2c2c2c, 0 16px 40px rgba(0, 0, 0, 0.5); }
.laptop-base { margin: 0 -8px; height: 9px; }
.laptop-base::before { width: 64px; height: 4px; }
.laptop .tr-bar, .tr-bar { padding: 4px 6px 4px 12px; gap: 10px; font-size: 12px; }
.tr-play { min-height: 44px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.tr-step { min-height: 44px; }
.tr-step .n, .laptop .tr-step .n { font-size: 12px; }
.laptop .tr-phase, .tr-phase { font-size: 12px; }
.tr-ph { font-size: 12px; }
.laptop .tr-stage, .tr-stage { padding: 16px 14px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.laptop .tr-panel h4, .tr-panel h4 { font-size: 17px; }
.laptop .tr-d, .tr-d { font-size: 15px; line-height: 1.6; }
.laptop .tr-pre, .tr-pre { font-size: 12px; padding: 12px; }
.tr-file-h { font-size: 12px; gap: 10px; }
.laptop .tr-kv, .tr-kv { font-size: 13.5px; padding: 8px 0; }
.laptop .tr-kv .v, .tr-kv .v { font-size: 12.5px; }
.tr-ok { font-size: 13px; }
.tr-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }

.faq-item { padding: 20px 18px; border-radius: 14px; }
.faq-q { font-size: 17px; line-height: 1.35; }
.faq-a p, .faq-a ol { font-size: 15.5px; }
.faq-a .qa-code pre, .qa-code pre { font-size: 12px; }
.qa-code .copy-btn { min-height: 32px; font-size: 12px; }

footer.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 16px; }
.foot-grid .brand { min-height: 44px; }
.foot-contact { font-size: 15px; }
.foot-contact a { display: inline; min-height: 0; padding: 0; overflow-wrap: anywhere; }
.foot-grid p.foot-contact a { display: inline; }
.foot-bottom { flex-direction: column; gap: 8px; margin-top: 30px; padding-top: 18px; font-size: 13px; line-height: 1.55; }

.assist { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); }
.assist-launch { width: 52px; height: 52px; padding: 0; justify-content: center; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7); }
.assist-launch svg { width: 20px; height: 20px; }
.assist-launch:hover { transform: none; }
.assist.open { left: 0; right: 0; bottom: 0; }
.assist-panel { height: 86vh; height: 86dvh; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); padding-bottom: env(safe-area-inset-bottom); border-left: none; border-right: none; }
.assist-head { padding: 12px 12px 12px 16px; }
.assist-close { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; }
.assist-sub { font-size: 12px; }
.msg { font-size: 15px; }
.qa-code pre { font-size: 12px; }
.topic { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 14px; line-height: 1.4; }
.assist-topics .label { font-size: 12px; }
.assist-form { padding: 10px 12px; }
.assist-form input { font-size: 16px; min-height: 46px; }
.assist-form button { width: 46px; min-height: 46px; }
.assist-foot { padding: 6px 14px 10px; }
.assist-foot a, .assist-reset { font-size: 12.5px; min-height: 36px; display: inline-flex; align-items: center; }

input, select, textarea { font-size: 16px; }

.halo { width: 560px; height: 560px; top: -320px; }
.grid-bg { background-size: 48px 48px; }

@media (hover: none) {
  .btn:hover, .assist-launch:hover, .card:hover { transform: none; }
  .card:hover { border-color: var(--line); }
  .btn:hover .arrow { transform: none; }
}

@media (max-width: 359px) {
  .wrap { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .nav { gap: 6px; }
  .nav-cta { gap: 4px; }
  .lang summary { padding: 0 9px; }
  .brand { font-size: 15.5px; gap: 8px; }
  .hero h1 { font-size: 26px; }
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .card, .law, .dev-tile, .faq-item { padding: 18px 16px; }
  .def-band, .cta-band { padding: 22px 14px; }
  .metric .num { font-size: 19px; }
  .chip { padding: 0 12px; font-size: 13.5px; }
  .hero-dev .copy-row { font-size: 12px; }
}

.consent:not([hidden]) ~ .assist { opacity: 0; visibility: hidden; pointer-events: none; }

html .pp-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 1.4; }
html .pp-toc a.sub { padding-left: 14px; font-size: 14px; }
html .pp-toc .no { flex-shrink: 0; min-width: 36px; }
html .pp-k { font-size: 12px; }
html .pp-kw span { font-size: 12.5px; padding: 4px 11px; }
html .pp-refs li { font-size: 14.5px; overflow-wrap: anywhere; }
html .pp-thm, html .pp-note { padding: 16px; }
html .pp-algo ol { font-size: 12.5px; }

@supports (animation-timeline: scroll()) {
  .assist:not(.open) .assist-launch { animation: assistIn linear both; animation-timeline: scroll(root block); animation-range: 0 220px; }
  @keyframes assistIn { 0% { opacity: 0; transform: translateY(14px) scale(0.92); visibility: hidden; } 60% { visibility: visible; } 100% { opacity: 1; transform: none; visibility: visible; } }
}
