@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.6e4f2958c3.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-ext.45683de03d.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.f1a7a03672.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #e8eef7;
  --rule: #dce3ed;
  --rule-strong: #0a1633;
  --ink: #0a1633;
  --slate: #4f5c73;
  --link: #0058c7;
  --accent: #0d89f3;
  --band: #000c3f;
  --band-ink: #eef3fc;
  --band-muted: #b6c3e0;
  --amber: #9a4f06;
  --btn-bg: #0a1633;
  --btn-fg: #ffffff;
  --btn-hover: #0058c7;
  --header-bg: rgba(255, 255, 255, 0.92);

  --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial,
    "Noto Sans", Roboto, "Liberation Sans", "DejaVu Sans",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;

  --page: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 68ch;
  --measure-wide: 49rem;
  --radius: 6px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1120;
  --surface: #111a2c;
  --surface-2: #18233a;
  --rule: #24314a;
  --rule-strong: #c9d4e8;
  --ink: #e6ecf6;
  --slate: #9ba9c1;
  --link: #74b8ff;
  --accent: #3ea0ff;
  --band: #101a33;
  --band-ink: #e6ecf6;
  --band-muted: #a3b2cf;
  --amber: #f2a94e;
  --btn-bg: #e6ecf6;
  --btn-fg: #0b1120;
  --btn-hover: #74b8ff;
  --header-bg: rgba(11, 17, 32, 0.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b1120;
    --surface: #111a2c;
    --surface-2: #18233a;
    --rule: #24314a;
    --rule-strong: #c9d4e8;
    --ink: #e6ecf6;
    --slate: #9ba9c1;
    --link: #74b8ff;
    --accent: #3ea0ff;
    --band: #101a33;
    --band-ink: #e6ecf6;
    --band-muted: #a3b2cf;
    --amber: #f2a94e;
    --btn-bg: #e6ecf6;
    --btn-fg: #0b1120;
    --btn-hover: #74b8ff;
    --header-bg: rgba(11, 17, 32, 0.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.lang-zh { line-height: 1.8; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; color: var(--ink); margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }

.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--btn-fg); }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

h1, h2 { font-family: var(--serif); font-weight: 420; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 2.9vw, 2.4rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }

.lang-zh h1, .lang-zh h2 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.lang-zh h1 { font-size: clamp(2.05rem, 4.6vw, 3.4rem); line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; }
.lang-zh h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.3; }

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--slate); max-width: 58ch; margin: 1.1rem 0 0; }
.lang-zh .lede { line-height: 1.75; max-width: 36em; }
.lang-zh :is(.sample-head h3, .sample-index a, .card h3) { word-break: keep-all; overflow-wrap: anywhere; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border-radius: var(--radius); border: 0;
}
.button:hover { background: var(--btn-hover); color: var(--btn-fg); }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--link); text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 2rem 0 0; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: auto; }
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}

.site-nav { display: flex; align-items: center; gap: 4px 22px; font-size: 0.95rem; }
.site-nav > a { color: var(--slate); text-decoration: none; padding: 6px 0; font-weight: 500; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--ink); }
.site-nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.lang-switch { display: inline-flex; gap: 10px; padding-left: 18px; border-left: 1px solid var(--rule); font-size: 0.9rem; }
.lang-switch a { color: var(--slate); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-current { color: var(--ink); font-weight: 600; }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: transparent; color: var(--slate);
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
}
.icon-button:hover { color: var(--ink); border-color: var(--slate); }
.icon-button svg { width: 18px; height: 18px; }
.icon-moon { display: block; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}

.nav-toggle {
  display: none; font: inherit; font-weight: 500; font-size: 0.95rem;
  background: none; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius);
  min-height: 38px; padding: 0 14px;
}

.lang-suggest { background: var(--surface); border-bottom: 1px solid var(--rule); font-size: 0.925rem; }
.lang-suggest-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.lang-suggest p { margin: 0; }
.lang-suggest a { white-space: nowrap; }
.lang-suggest-close { font: inherit; font-size: 0.875rem; background: none; border: 0; color: var(--slate); cursor: pointer; padding: 8px 0; }
.lang-suggest-close:hover { color: var(--ink); text-decoration: underline; }

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(36px, 5vw, 56px); }
.hero h1 { max-width: 15ch; }
.lang-zh .hero h1 { max-width: 13em; }

.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 60ch; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head p { color: var(--slate); margin: 0.75rem 0 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head-row .section-head { margin-bottom: 0; }

.map { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.map th { text-align: left; font-weight: 500; font-size: 0.8125rem; color: var(--slate); padding: 0 16px 12px 0; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.map td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.map tbody + tbody tr:first-child td { border-top: 1px solid var(--rule-strong); }
.map td.map-cat { width: 19%; padding-right: 24px; }
.map td.map-name { width: 20%; }
.map td.map-target { width: 17%; color: var(--ink); font-weight: 500; }
.map-cat-name { display: flex; align-items: baseline; gap: 10px; font-weight: 600; color: var(--ink); }
.map-cat-name::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--area, var(--accent)); transform: translateY(-1px); }
.map-cat-count { display: block; margin: 4px 0 0 20px; font-size: 0.8125rem; color: var(--slate); }
.map-title { font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.24em; }
.map-title:hover { color: var(--link); text-decoration-color: currentColor; }
.map-unit, .map-samples { color: var(--slate); }
.map-samples, .map-status { white-space: nowrap; }
.map-status .status { font-weight: 500; }
.map-target-label { display: none; }

.area-block + .area-block { margin-top: 56px; }
.area-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.area-heading::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--area, var(--accent)); flex: none; transform: translateY(-2px); }
.area-heading h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(330px, calc(50% - 10px)), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--area, var(--accent)); border-radius: var(--radius); }
.card:hover { border-color: var(--slate); border-top-color: var(--area, var(--accent)); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 1.125rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--link); text-decoration: underline; }
.card-summary { margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.55; }
.card-target { margin: 0; font-size: 0.875rem; font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(min-content, 1fr)); gap: 10px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.kv dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 450; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; }
.kv dt { font-size: 0.78rem; color: var(--slate); line-height: 1.35; margin-top: 4px; }
.kv div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--slate); padding-top: 4px; }
.card-foot a { font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.24em; }
.card-foot a:hover { color: var(--link); text-decoration-color: currentColor; }

.status { display: inline-flex; align-items: baseline; gap: 8px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
.status-available { color: var(--ink); }
.status-available .status-dot { background: var(--accent); }
.status-built-to-order { color: var(--ink); }
.status-built-to-order .status-dot { border: 2px solid var(--accent); }
.status-samples-in-progress { color: var(--amber); }
.status-samples-in-progress .status-dot { border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status-under-revision, .status-in-development { color: var(--slate); }
.status-under-revision .status-dot { border: 2px dashed currentColor; }
.status-in-development .status-dot { border: 2px dotted currentColor; }

.specify { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.specify > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.specify dt { font-weight: 600; }
.specify dd { margin: 4px 0 0; color: var(--slate); font-size: 0.95rem; }

.contact-band { background: var(--band); color: var(--band-ink); padding: clamp(56px, 7vw, 88px) 0; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px 64px; align-items: end; }
.contact-band h2 { color: var(--band-ink); }
.contact-band p { color: var(--band-muted); max-width: 52ch; margin: 1rem 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.email-big { color: var(--band-ink); font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 420; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.email-big:hover { color: #9fd8ff; }
.copy-button { font: inherit; font-size: 0.875rem; font-weight: 600; background: transparent; color: var(--band-muted); border: 1px solid rgba(207, 226, 255, 0.4); border-radius: var(--radius); min-height: 36px; padding: 0 12px; cursor: pointer; }
.copy-button:hover { border-color: var(--band-ink); color: var(--band-ink); }

.about-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(36px, 5vw, 56px); }
.about-hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1.06; }
.lang-zh .about-hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.4rem); line-height: 1.25; }
.about-line { display: block; }
.about-hero .lede { margin-top: 1.4rem; }
.about-actions { margin: 1.75rem 0 0; }
.about-body { padding-bottom: clamp(64px, 8vw, 104px); }
.about-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.about-point { border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.about-point h2 { font-size: clamp(1.3rem, 1.8vw, 1.5rem); line-height: 1.25; }
.lang-zh .about-point h2 { font-size: 1.15rem; line-height: 1.45; }
.about-point p { margin: 10px 0 0; color: var(--slate); }

.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 44px); }
.page-head h1 { max-width: 18ch; }
.lang-zh .page-head h1 { max-width: 14em; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; }
.filters-label { font-size: 0.875rem; color: var(--slate); margin-right: 6px; }
.filter { font: inherit; font-size: 0.875rem; font-weight: 500; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; min-height: 34px; padding: 0 14px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
[hidden] { display: none !important; }

.catalog-map { padding-bottom: clamp(56px, 7vw, 96px); }

.crumbs { padding-top: 32px; font-size: 0.9rem; color: var(--slate); }
.crumbs a { color: var(--slate); }
.ds-head { padding: 16px 0 clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--rule); }
.ds-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.75rem); max-width: 20ch; }
.lang-zh .ds-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 16em; }
.ds-head .lede { max-width: 62ch; }
.ds-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 1.4rem 0 0; }
.ds-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 0; font-size: 0.925rem; color: var(--slate); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 28px; margin: 36px 0 0; }
.fact { border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.fact dt { font-size: 0.875rem; color: var(--slate); line-height: 1.4; }
.fact dd { margin: 4px 0 0; }
.fact-value { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 420; letter-spacing: -0.02em; line-height: 1.1; }
.fact-note { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--slate); line-height: 1.45; }
.spec { margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; background: var(--surface); padding: 4px 24px 18px; border-radius: var(--radius); }
.spec > div { padding: 14px 0 0; }
.spec dt { font-size: 0.8125rem; color: var(--slate); }
.spec dd { margin: 3px 0 0; font-size: 0.95rem; line-height: 1.45; }

.feed { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.feed-item { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 4px 28px; padding: 18px 0; border-top: 1px solid var(--rule); }
.feed-item:last-child { border-bottom: 1px solid var(--rule); }
.feed-item time { color: var(--slate); font-size: 0.925rem; padding-top: 1px; }
.feed-item p { margin: 0; }
.feed-item a { font-weight: 600; }
.page-body { padding-bottom: clamp(64px, 8vw, 104px); }

.contact-page { padding-bottom: clamp(72px, 9vw, 120px); }
.contact-page .email-big { color: var(--ink); text-decoration-color: var(--accent); }
.contact-page .email-big:hover { color: var(--link); }
.contact-page .copy-button { color: var(--slate); border-color: var(--rule); }
.contact-page .copy-button:hover { color: var(--ink); border-color: var(--slate); }
.contact-page .contact-actions { margin: 8px 0 28px; }
.contact-hint { max-width: 56ch; color: var(--slate); margin: 0; }

.prose { max-width: var(--measure); }
.ds-body { padding: 8px 0 96px; }
.ds-section { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 56px; padding: 44px 0; border-top: 1px solid var(--rule); }
.ds-section:first-child { border-top: 0; }
.ds-section-head h2 { font-size: clamp(1.45rem, 2.1vw, 1.85rem); position: sticky; top: 92px; }
.ds-section-body.prose { max-width: none; min-width: 0; }
.ds-section-body > :is(p, ul, ol:not(.transcript):not(.frames), h3, h4, blockquote, .note, .more) { max-width: 70ch; }
.ds-section-wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ds-section-wide .ds-section-head h2 { position: static; }
.ds-section-body > .figure { max-width: 860px; }
.ds-section-body > :first-child { margin-top: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; }

.prose pre, .transcript pre { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; font-variant-ligatures: none; }
.prose code { font-variant-ligatures: none; }
.prose pre.tree, .prose pre.code { background: var(--surface); padding: 16px 18px; border-radius: var(--radius); white-space: pre; overflow-x: auto; tab-size: 2; }
.prose pre code { background: none; padding: 0; font-size: inherit; }

.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.925rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.prose td:last-child, .prose th:last-child { padding-right: 0; }

.figure { margin: 1.8em 0 0; }
.figure img { border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.figure figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--slate); line-height: 1.5; }
.zoom { display: block; cursor: zoom-in; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 1.8em; }
.gallery .figure { margin: 0; }

.note { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.975rem; }
.note > :first-child { margin-top: 0; }

.note-hard { border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 6%, var(--paper)); }
.note-label { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 600; color: var(--amber); }
.note-label + * { margin-top: 0; }

.prose h4 { margin: 2em 0 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--slate); }
.prose h4 + * { margin-top: 0.6em; }

.sample-index { margin-top: 1.6em; }
.prose .sample-index ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0 48px; border-top: 1px solid var(--rule-strong); }
.prose .sample-index li { margin: 0; border-bottom: 1px solid var(--rule); }
.prose .sample-index ol:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.sample-index a { display: grid; grid-template-columns: 2em minmax(0, 1fr); padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; line-height: 1.45; }
.sample-index a:hover { color: var(--link); }
.sample-index-no { font-family: var(--serif); font-size: 1.05rem; color: var(--slate); }

.sample { margin-top: 72px; border-top: 2px solid var(--rule-strong); }
.sample-index + .sample { margin-top: 44px; }
.sample-head { position: sticky; top: 65px; z-index: 5; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 2px 22px; padding: 12px 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.sample-no { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--link); white-space: nowrap; }
.sample-head h3 { font-size: 1.2rem; line-height: 1.35; margin: 0; }
.sample-body { padding-top: 20px; }
.sample-body > * + * { margin-top: 1.1em; }
.sample-body > :is(p, ul, ol:not(.transcript):not(.frames), h4, blockquote, .note, .more, .events) { max-width: var(--measure-wide); }

.prose .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; max-width: none; }
.prose * + .tags { margin-top: 1em; }
.prose .tags + .tags { margin-top: 8px; }
.prose .tags li { margin: 0; padding: 2px 9px; border: 1px solid var(--rule); border-radius: 4px; font-size: 0.8125rem; line-height: 1.5; color: var(--slate); }
.prose .tags-hard li { border-color: color-mix(in srgb, var(--amber) 42%, transparent); background: color-mix(in srgb, var(--amber) 7%, transparent); color: var(--amber); font-weight: 500; }
.prose .tags-hard .tags-label { border-color: transparent; background: none; padding-left: 0; font-weight: 600; }

.prose .quote { margin-left: 0; margin-right: 0; padding: 14px 18px; background: var(--surface); border-left: 3px solid var(--rule-strong); border-radius: 0 var(--radius) var(--radius) 0; }
.prose .quote + .quote { margin-top: 3px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.prose .pair .quote { margin: 0; }
.quote-label { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 600; color: var(--slate); }
.quote-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; line-height: 1.6; }

.events { border-left: 2px solid var(--rule); padding-left: 18px; }
.events > :first-child { margin-top: 0; }
.events > * + * { margin-top: 0.9em; }

.prose .frames { list-style: none; margin: 1.3em 0 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; overflow-x: clip; }
.prose .frames-n1 { grid-template-columns: minmax(0, 640px); }
.prose .frames-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .frames-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .frames .frame { margin: 0; min-width: 0; }
.frame-label { position: relative; margin: 0 0 10px; padding-top: 14px; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.frame-label::before { content: ""; position: absolute; left: 0; right: -22px; top: 3px; height: 2px; background: var(--rule); }
.frame-label::after { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.frame:last-child .frame-label::before { right: 0; }
.frame .zoom img { width: 100%; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.frame-text { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--slate); }
.lang-zh .frame-text { line-height: 1.65; }

.prose .stats { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 1.3em 0 0; padding-top: 14px; border-top: 1px solid var(--rule); max-width: none; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 84px; max-width: 15rem; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 450; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; }
.stats dt { margin-top: 4px; font-size: 0.8125rem; line-height: 1.35; color: var(--slate); }

.prose .more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.prose .more + .more { margin-top: 0; border-top: 0; }
.prose .more:has(.transcript) { max-width: none; }
.more summary { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; font-size: 0.95rem; font-weight: 600; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; flex: none; width: 0.8em; font-weight: 400; color: var(--slate); }
.more[open] summary::before { content: "\2212"; }
.more summary:hover { color: var(--link); }
.more-body { padding: 2px 0 18px 1.45em; }
.more-body > :first-child { margin-top: 0; }
.more-body > * + * { margin-top: 0.9em; }

.prose .checks { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; line-height: 1.55; }
.prose .checks li { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); margin: 0; padding: 7px 0; border-top: 1px solid var(--rule); }
.prose .checks li:first-child { border-top: 0; }
.check-mark { font-weight: 700; color: var(--link); }
.check-fail .check-mark, .check-part .check-mark { color: var(--amber); }

.prose .file { margin: 1.1em 0 0; max-width: var(--measure-wide); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.file-name { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--slate); }
.file-body { padding: 14px 18px 16px; font-size: 0.9375rem; line-height: 1.65; }
.lang-zh .file-body { line-height: 1.65; }
.file-body > * { margin: 0; }
.file-body > * + * { margin-top: 0.85em; }
.file-body ul, .file-body ol { padding-left: 1.3em; }
.file-body code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); padding: 0.08em 0.3em; border-radius: 3px; overflow-wrap: anywhere; font-variant-ligatures: none; }
.file-body pre { padding: 10px 12px; background: var(--surface); border-radius: 4px; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; text-indent: 2ch hanging each-line; font-variant-ligatures: none; }
.file-body pre code { background: none; padding: 0; font-size: inherit; }
.file-h { font-weight: 600; }

.matrix .table-wrap { max-width: 760px; }
.matrix th, .matrix td { text-align: center; padding: 8px 10px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: 0; white-space: nowrap; }
.matrix td { color: var(--amber); font-size: 0.8rem; }
.matrix td:first-child { color: var(--ink); font-size: 0.925rem; }
.matrix th a { font-weight: 600; text-decoration: none; }
.matrix th a:hover { text-decoration: underline; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }

.prose .transcript { list-style: none; margin: 1.6em 0 0; padding: 0; border-top: 1px solid var(--rule); }
.transcript .step + .step { margin-top: 0; }
.step-body strong { font-weight: 600; }
.step-body code { font-family: var(--mono); font-size: 0.9em; }
.transcript .step { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.step-role { font-size: 0.8125rem; font-weight: 600; color: var(--slate); padding-top: 2px; }
.step-user .step-role { color: var(--ink); }
.step-assistant .step-role { color: var(--link); }
.tool-name { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.78rem; color: var(--slate); }
.step-body pre { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 26em; overflow: auto; }
.step-user .step-body pre, .kind-message .step-body pre { font-family: var(--sans); font-size: 0.95rem; line-height: 1.6; }
.kind-thinking .step-body pre { font-family: var(--sans); font-style: italic; color: var(--slate); font-size: 0.925rem; }
.kind-tool_call .step-body pre, .kind-tool_result .step-body pre { background: var(--surface); padding: 10px 12px; border-radius: 4px; }
.kind-tool_result .step-body pre { color: var(--slate); }

.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 0.925rem; color: var(--slate); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 24px 48px; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 24px; margin-top: 3px; }
.footer-brand p { margin: 0; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-nav a, .footer-contact a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--link); text-decoration: underline; }
.footer-contact p { margin: 6px 0 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1920px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 8, 32, 0.88); }
.lightbox img { max-width: min(96vw, 1920px); max-height: 78vh; width: auto; height: auto; margin: 0 auto; background: #fff; }
.lightbox-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
.lightbox-count { margin-right: auto; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.lightbox-bar button { font: inherit; font-size: 0.9rem; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius); min-height: 36px; padding: 0 14px; cursor: pointer; }
.lightbox-bar button:hover { border-color: #fff; }
.lightbox-cap { max-width: 920px; margin: 10px auto 0; font-size: 0.925rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.lightbox-cap:empty { display: none; }

@media (max-width: 1080px) {
  .specify { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .frames, .prose .frames-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prose .frames-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .about-points { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); }
  .prose .sample-index ol:has(> li:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
  .map-target-label { display: inline; color: var(--slate); font-weight: 400; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 18px; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-nav > a[aria-current="page"] { box-shadow: none; color: var(--link); }
  .lang-switch { border-left: 0; padding: 14px 0 0; gap: 18px; }
  .contact-inner, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-inner { align-items: start; }
  .ds-section { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ds-section-head h2 { position: static; }
  .prose .frames, .prose .frames-n3, .prose .frames-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .frame-label::before { right: -16px; }

  
  .map, .map tbody, .map tr, .map td { display: block; width: 100%; }
  .map thead { display: none; }
  .map tbody { border-bottom: 1px solid var(--rule-strong); padding: 6px 0 8px; }
  .map tbody + tbody tr:first-child td { border-top: 0; }
  .map tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .map tr:last-child { border-bottom: 0; }
  .map td { border: 0; padding: 0; }
  .map td.map-cat, .map td.map-name, .map td.map-target { width: 100%; }
  .map td.map-cat { padding: 4px 0 12px; }
  .map td.map-target { font-size: 0.875rem; margin-top: 2px; }
  .map-unit, .map-samples { font-size: 0.875rem; margin-top: 2px; }
  .map-status { margin-top: 8px; }
  .map-cat-count { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .specify, .spec { grid-template-columns: minmax(0, 1fr); }
  .spec { padding: 2px 18px 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .fact { margin-bottom: 16px; }
  .fact-value { font-size: 1.75rem; }
  .prose th { white-space: normal; }
  .prose th, .prose td { padding-right: 10px; }
  .prose table { font-size: 0.875rem; }
  .ds-bar .button { width: 100%; }
  .file-body { padding: 12px 14px 14px; font-size: 0.9rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .feed-item { grid-template-columns: minmax(0, 1fr); }
  .ds-section { padding: 32px 0; }
  .transcript .step { grid-template-columns: minmax(0, 1fr); }
  .prose pre.tree { font-size: 0.72rem; }
  
  .prose .frames, .prose .frames-n3, .prose .frames-n2 { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px 0; scroll-padding-left: 0; }
  .prose .frames .frame { flex: 0 0 84%; scroll-snap-align: start; }
  .prose .frames-n1 .frame { flex-basis: 100%; }
  .frame-label::before { right: -14px; }
  
  .sample-head { display: contents; }
  .sample-no { position: sticky; top: 65px; z-index: 5; padding: 9px 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .sample-head h3 { margin-top: 12px; font-size: 1.1rem; }
  .sample-body { padding-top: 14px; }
  .sample { margin-top: 56px; }
  .more-body { padding-left: 0; }
  
  .matrix th, .matrix td { padding: 8px 4px; }
  .matrix th:first-child, .matrix td:first-child { white-space: normal; min-width: 7.5em; padding-right: 8px; }
  .prose pre.code { font-size: 0.72rem; white-space: pre-wrap; word-break: break-word; }
}

@media print {
  .site-header, .lang-suggest, .contact-band, .ds-bar .button, .nav-toggle, .icon-button { display: none !important; }
  a { color: inherit; }
}
.area-coding { --area: #0d89f3; }
.area-computer-use { --area: #0fa58f; }
.area-creative { --area: #8a63ff; }
