:root {
  color-scheme: light;
  --bg: #FEFDFC;
  --panel: #FFFFFF;
  --panel-soft: #F5F4F3;
  --border: #E5DEDB;
  --accent: #C94E40;
  --accent-dark: #A6382D;
  --ink: #292522;
  --muted: #716864;
  --success: #596C60;
  --warn: #896748;
  --error: #A6382D;
  --rose: #FCF0ED;
  --rose-deep: #F5DED7;
  --rose-light: #FFF8F5;
  --frame: #D5CCC7;
  --chrome-dot: #CEC4BE;
  --clear: transparent;
  --flag-white: #FFFFFF;
  --flag-red: #DA3445;
  --flag-blue: #263761;
  --flag-france: #2B4381;
  --accent-wash: rgb(201 78 64 / 5%);
  --accent-edge: rgb(201 78 64 / 7%);
  --flag-edge: rgb(41 37 34 / 8%);
  --veil: rgb(41 37 34 / 24%);
  --glass: rgb(255 255 255 / 50%);
  --ambient: radial-gradient(ellipse at 77% 50%, rgb(201 78 64 / 5%), transparent 57%), linear-gradient(180deg, var(--bg), var(--bg) 65%, var(--rose-light));
  --stage-fill: radial-gradient(ellipse at 75% 73%, rgb(201 78 64 / 19%), transparent 62%), radial-gradient(ellipse at 23% 17%, rgb(237 167 139 / 26%), transparent 62%), linear-gradient(135deg, var(--rose-light), var(--rose));
  --stage-glint: linear-gradient(145deg, rgb(255 255 255 / 65%), rgb(255 255 255 / 5%));
  --stage-ribbon: linear-gradient(170deg, rgb(201 78 64 / 7%), rgb(255 255 255 / 52%));
  --note-shadow: 0 16px 36px rgb(201 78 64 / 10%), 0 3px 8px rgb(71 40 31 / 5%);
  --window-shadow: 0 32px 64px rgb(201 78 64 / 12%), 0 8px 20px rgb(101 57 42 / 8%), inset 0 0 0 1px var(--panel);
  --phone-shadow: 0 24px 42px rgb(166 56 45 / 14%), 0 5px 12px rgb(87 51 42 / 12%), inset 0 0 0 2px var(--panel);
  --button-shadow: 0 4px 0 rgb(166 56 45 / 12%), inset 0 1px 0 rgb(255 255 255 / 16%);
  --selected-shadow: inset 0 0 0 1px var(--accent-dark), var(--note-shadow);
  --font: Inter, 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --display-font: var(--font);
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 48px;
  --s10: 56px;
  --s11: 64px;
  --s12: 72px;
  --s13: 88px;
  --hair: 1px;
  --line: 2px;
  --radius: 8px;
  --flag-radius: 3px;
  --round: 999px;
  --circle: 50%;
  --phone-radius: 28px;
  --screen-radius: 21px;
  --tiny: 10px;
  --micro: 11px;
  --small: 12px;
  --label: 13px;
  --nav: 14px;
  --base: 16px;
  --body: 18px;
  --medium: 20px;
  --card-title: 23px;
  --brand-size: 25px;
  --number: 28px;
  --heading: 40px;
  --display: 64px;
  --mobile-display: 36px;
  --regular: 400;
  --medium-weight: 500;
  --bold: 650;
  --heavy: 750;
  --black: 900;
  --tight: -.035em;
  --cjk-tight: -.02em;
  --tracking: .1em;
  --lh: 1.65;
  --reading-lh: 1.8;
  --heading-lh: 1.13;
  --compact-lh: 1.3;
  --brand-lh: 1.2;
  --shell: 1280px;
  --gutter: 64px;
  --reading-width: 800px;
  --hero-copy-width: 560px;
  --hero-single-width: 680px;
  --hero-description-width: 28em;
  --platform-row-width: 496px;
  --scene-height: 552px;
  --sidebar-width: 132px;
  --phone-width: 194px;
  --phone-height: 304px;
  --desktop-top: 64px;
  --desktop-height: 408px;
  --note-width: 232px;
  --region-reserve: 116px;
  --region-min: 164px;
  --flag-width: 26px;
  --flag-height: 18px;
  --dot-size: 6px;
  --phone-inset: 6px;
  --credential-height: 36px;
  --primary-width: 176px;
  --secondary-width: 152px;
  --touch: 44px;
  --table-width: 680px;
  --swatch-min: 160px;
  --swatch-height: 72px;
  --platform-card-min: 176px;
  --toc-offset: 16px;
  --anchor-offset: 104px;
  --drawer-top: 88px;
  --layer-header: 30;
  --layer-menu: 32;
  --layer-veil: 29;
  --layer-toc: 10;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: 650ms;
  --hover-duration: 180ms;
  --reveal-duration: 550ms;
  --line-duration: 1200ms;
  --disabled-opacity: .55;
  --entry-tilt: 1deg;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: var(--anchor-offset); }
body { margin: 0; color: var(--ink); font-family: var(--font); font-size: var(--base); line-height: var(--lh); -webkit-font-smoothing: antialiased; }
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a, button, label { -webkit-tap-highlight-color: var(--clear); }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: var(--line) solid var(--accent-dark); outline-offset: var(--s1); }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display-font); overflow-wrap: break-word; }
h1 { font-size: var(--display); line-height: var(--heading-lh); font-weight: var(--black); letter-spacing: var(--tight); }
:lang(zh) h1, :lang(zh) h2, :lang(ja) h1, :lang(ko) h1 { letter-spacing: var(--cjk-tight); }
h2 { font-size: var(--heading); line-height: var(--brand-lh); font-weight: var(--heavy); text-wrap: balance; }
h3 { font-size: var(--card-title); line-height: var(--compact-lh); font-weight: var(--bold); }
code, pre, kbd { font-family: var(--mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre { max-width: 100%; overflow-x: auto; padding: var(--s6); border: var(--hair) solid var(--border); border-radius: var(--radius); background: var(--panel-soft); }
pre code { white-space: pre; overflow-wrap: normal; }
hr { border: 0; border-top: var(--hair) solid var(--border); margin-block: var(--s7); }
.no-break { white-space: nowrap; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: var(--hair); height: var(--hair); padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell, .wrap { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); padding-inline: var(--gutter); margin-inline: auto; min-width: 0; }
.section { padding-top: var(--s13); padding-bottom: var(--s13); }
.stack { display: grid; gap: var(--s6); min-width: 0; }
.flow > * + * { margin-top: var(--s5); }
.muted { color: var(--muted); }
.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: var(--s1); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.panel, .card { min-width: 0; padding: var(--s7); border: var(--hair) solid var(--border); border-radius: var(--radius); background: var(--panel); }
.panel { box-shadow: var(--note-shadow); }
.soft-panel { background: var(--stage-fill); border: var(--hair) solid var(--accent-edge); border-radius: var(--radius); padding: var(--s7); min-width: 0; overflow-x: clip; }
.prose { min-width: 0; max-width: var(--reading-width); font-size: var(--body); line-height: var(--reading-lh); overflow-wrap: break-word; }
.prose > * + * { margin-top: var(--s6); }
.prose h2 { margin-top: var(--s11); }
.prose h3 { margin-top: var(--s8); }
.prose ul { list-style: disc; padding-left: var(--s6); }
.prose ol { padding-left: var(--s6); }
.prose li + li { margin-top: var(--s2); }
.prose a:not(.btn) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: var(--s1); }
.prose img { border-radius: var(--radius); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s6); min-height: var(--s10); padding: var(--s3) var(--s7); border: var(--hair) solid var(--border); border-radius: var(--radius); font-weight: var(--bold); font-size: var(--body); line-height: var(--compact-lh); text-align: center; transition: background var(--hover-duration), box-shadow var(--hover-duration), border-color var(--hover-duration); }
.btn-primary { color: var(--panel); background: var(--accent); border-color: var(--accent); box-shadow: var(--button-shadow); min-width: var(--primary-width); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary svg { width: var(--s5); height: var(--s5); }
.btn-secondary { background: var(--panel); min-width: var(--secondary-width); }
.btn-login { min-height: var(--s8); padding: var(--s2) var(--s5); font-size: var(--nav); background: var(--panel); }
.btn-login:hover, .btn-secondary:hover { background: var(--panel-soft); }
.btn:active, .btn.is-pressed { box-shadow: inset 0 0 0 var(--line) var(--accent-dark); }
.btn.is-focus { outline: var(--line) solid var(--accent-dark); outline-offset: var(--s1); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: var(--disabled-opacity); box-shadow: none; }
.site-header { min-height: var(--s13); display: flex; align-items: center; gap: var(--s7); position: relative; z-index: var(--layer-header); }
#site-header { position: relative; z-index: var(--layer-header); background: var(--bg); }
.wordmark { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.brand-mark { width: var(--s8); height: var(--s8); flex-shrink: 0; border-radius: var(--radius); }
.brand-copy { display: flex; align-items: baseline; gap: var(--s2); line-height: var(--brand-lh); }
.brand-copy strong { font-size: var(--brand-size); letter-spacing: var(--tight); font-weight: var(--black); }
.brand-copy small { font-size: var(--nav); color: var(--muted); font-weight: var(--medium-weight); }
.primary-nav { margin-left: auto; min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: var(--s3); white-space: nowrap; }
.primary-nav li { display: flex; align-items: center; gap: var(--s3); }
.primary-nav li + li::before { content: '·'; color: var(--chrome-dot); flex-shrink: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: var(--s7); font-size: var(--nav); color: var(--muted); transition: color var(--hover-duration); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent-dark); }
.header-tools { display: flex; gap: var(--s5); align-items: center; flex-shrink: 0; }
.language { position: relative; font-size: var(--small); color: var(--muted); }
.language-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: var(--touch); padding: var(--s1); border: 0; background: var(--clear); color: var(--muted); font-size: var(--small); white-space: nowrap; }
.language-menu { position: absolute; top: 100%; right: 0; min-width: var(--platform-card-min); padding: var(--s2); background: var(--panel); border: var(--hair) solid var(--border); border-radius: var(--radius); box-shadow: var(--note-shadow); z-index: var(--layer-menu); }
.language-menu a { display: flex; align-items: center; min-height: var(--touch); padding-inline: var(--s3); border-radius: var(--radius); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--rose); color: var(--accent-dark); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: var(--touch); min-height: var(--touch); border: var(--hair) solid var(--border); border-radius: var(--radius); background: var(--panel); }
.menu-toggle svg { width: var(--s5); height: var(--s5); }
.mobile-nav { display: none; }
.nav-veil { position: fixed; inset: 0; background: var(--veil); border: 0; z-index: var(--layer-veil); }
.skip-link { position: absolute; inset-inline-start: var(--gutter); top: var(--s2); transform: translateY(-200%); padding: var(--s3) var(--s4); background: var(--panel); border-radius: var(--radius); z-index: var(--layer-menu); }
.skip-link:focus { transform: translateY(0); }
.site-footer { border-top: var(--hair) solid var(--border); background: linear-gradient(var(--rose-light), var(--bg)); padding-top: var(--s11); padding-bottom: var(--s7); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: var(--s9); }
.footer-grid > * { min-width: 0; }
.footer-brand p { color: var(--muted); margin-top: var(--s5); font-size: var(--nav); max-width: var(--hero-description-width); }
.footer-heading { font-size: var(--base); font-weight: var(--bold); margin-bottom: var(--s4); }
.footer-links { display: grid; gap: var(--s2); }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--s6); font-size: var(--nav); color: var(--muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: var(--s1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s6); margin-top: var(--s9); padding-top: var(--s6); border-top: var(--hair) solid var(--border); color: var(--muted); font-size: var(--small); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s5); }
.footer-legal a { display: inline-flex; align-items: center; min-height: var(--s6); }
.reveal { transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(var(--s4)); }
.reveal.shown { opacity: 1; transform: none; }
#server-status { position: relative; display: flow-root; min-width: 0; max-width: 100%; overflow: hidden; margin-block: var(--s7); }
#server-status > * { min-width: 0; max-width: 100%; }
#server-status + * { margin-top: var(--s7); }
.decorated-section { position: relative; overflow-x: clip; }
body:has(.toc-tabs) section[id] { scroll-margin-top: var(--anchor-offset); }
@media (max-width: 1250px) {
  :root { --gutter: 32px; }
  .site-header { gap: var(--s5); }
  .primary-nav ul, .primary-nav li { gap: var(--s2); }
  .primary-nav a { font-size: var(--small); }
  .header-tools { gap: var(--s3); }
}
@media (max-width: 1020px) {
  .primary-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; max-height: calc(100dvh - var(--drawer-top)); overflow-y: auto; overscroll-behavior: contain; padding: var(--s4); background: var(--panel); border: var(--hair) solid var(--border); border-radius: var(--radius); box-shadow: var(--note-shadow); z-index: var(--layer-menu); }
  .mobile-nav a { display: flex; align-items: center; width: 100%; min-height: var(--touch); padding: var(--s3) var(--s4); border-radius: var(--radius); }
  .mobile-nav a:hover, .mobile-nav a[aria-current] { color: var(--accent-dark); background: var(--rose); }
  .mobile-languages { margin-top: var(--s4); padding-top: var(--s4); border-top: var(--hair) solid var(--border); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: var(--mobile-display); }
  h2 { font-size: var(--s7); }
  .section { padding-top: var(--s10); padding-bottom: var(--s10); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --drawer-top: 72px; }
  .no-break { white-space: normal; }
  .site-header { min-height: var(--s12); gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3); }
  .brand-mark { width: var(--s7); height: var(--s7); }
  .wordmark { gap: var(--s2); }
  .brand-copy strong { font-size: var(--medium); }
  .header-tools { margin-left: auto; gap: var(--s2); }
  .header-tools .language { display: none; }
  .btn-login { min-height: var(--touch); padding: var(--s2) var(--s3); }
  .btn { font-size: var(--base); min-height: var(--s9); padding: var(--s3) var(--s5); min-width: 0; }
  .header-tools .btn-login { font-size: var(--nav); min-height: var(--touch); padding: var(--s2) var(--s3); }
  .panel, .card, .soft-panel { padding: var(--s5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .prose { font-size: var(--base); }
  .tilt, [data-tilt] { transform: none; }
  .decorated-section, .decorated-section > svg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending, .reveal.shown { opacity: 1; transform: none; transition: none; }
  .btn, .primary-nav a { transition: none; }
}