@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --white: #fff;
  --ink: #171716;
  --muted: #686660;
  --line: #d8d3c9;
  --forest: #171716;
  --forest-soft: #edf2ec;
  --rust: #a56443;
  --rust-soft: #f5eee7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { margin: 0; min-width: 300px; }
body:has(dialog[open]) { overflow: hidden; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #8ba68e; outline-offset: 5px; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button { cursor: pointer; }
.page-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 20px; background: var(--forest); color: white; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.masthead { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .13em; white-space: nowrap; }
.brand-mark { font-size: 26px; line-height: 1; font-weight: 400; color: var(--forest); }
.edition { display: flex; align-items: center; gap: 20px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.edition time { font-variant-numeric: tabular-nums; }
.hero { padding: 58px 0 46px; }
.eyebrow { margin-bottom: 18px; color: var(--rust); font-size: 11px; font-weight: 600; letter-spacing: .18em; }
h1 { max-width: 1100px; font-size: clamp(32px, 3.5vw, 52px); font-weight: 600; line-height: 1.3; letter-spacing: -.05em; text-wrap: balance; }
.hero-note { max-width: 920px; margin-top: 20px; color: #777d73; font-size: 14px; line-height: 1.9; }
.hero-note:empty { display: none; }
.section-nav { position: sticky; z-index: 10; top: 0; background: rgb(245 242 235 / 96%); border-block: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-inner { display: flex; gap: 7px; width: min(1120px, calc(100% - 48px)); margin-inline: auto; overflow-x: auto; padding: 12px 1px; scrollbar-width: thin; scrollbar-color: #c7cec4 transparent; }
.nav-link { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 10px 14px; border-radius: 5px; color: #7b8178; font-size: 12px; line-height: 1.5; transition: background .18s, color .18s; }
.nav-link span { font-size: 10px; opacity: .7; font-variant-numeric: tabular-nums; }
.nav-link:hover { background: #eeeee8; color: var(--ink); }
.nav-link[aria-current="location"] { background: var(--forest); color: white; }
.review-group { padding: 52px 0 50px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.group-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.group-title-wrap { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.section-number { color: #a5ada0; font-size: 13px; line-height: 1.5; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.group-heading h2 { font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; }
.group-chips { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 5px; flex-shrink: 0; max-width: 48%; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 5px 9px; border-radius: 4px; background: #ebeee7; color: #6b7769; font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .025em; }
.chip.token-chip { background: transparent; border: 1px solid #dce1d6; color: #858d80; font-variant-numeric: tabular-nums; }
.chip.good { background: #e9f0e6; color: #527149; }
.chip.warn { background: var(--rust-soft); color: var(--rust); }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0 0 25px 40px; padding: 0; }
.steps li { display: inline-flex; align-items: center; color: #6c776b; font-size: 12px; line-height: 1.7; }
.steps li + li::before { content: "→"; margin: 0 13px; color: #b3b9ad; }
.group-note { margin: -9px 0 24px 40px; max-width: 920px; color: #8b897d; font-size: 12px; line-height: 1.8; }
.sample + .sample { margin-top: 32px; padding-top: 26px; border-top: 1px solid #e9eae3; }
.sample-heading { display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; margin: 0 0 13px; }
.sample-heading h3 { font-size: 14px; font-weight: 600; line-height: 1.7; }
.sample-heading p { max-width: 1050px; color: #8b8b7f; font-size: 12px; line-height: 1.8; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.media-grid.count-1 { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.media-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-card { margin: 0; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid #e2e6dd; border-radius: 8px; }
.media-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #f0f1ec; aspect-ratio: 4 / 3; overflow: hidden; }
.media-button, .image-stage { background-color: #f1f1eb; background-image: conic-gradient(#e9ebe4 25%, transparent 0 50%, #e9ebe4 0 75%, transparent 0); background-size: 20px 20px; }
.media-button img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; transition: transform .3s; }
.media-button:hover img { transform: scale(1.025); }
.media-button:focus-visible { outline-offset: -4px; }
.enlarge-icon { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgb(225 229 219 / 70%); border-radius: 5px; background: rgb(255 255 255 / 90%); color: #717f6b; font-size: 17px; line-height: 1; opacity: 0; transform: translateY(3px); transition: opacity .2s, transform .2s; }
.media-button:hover .enlarge-icon, .media-button:focus-visible .enlarge-icon { opacity: 1; transform: translateY(0); }
.media-caption { min-height: 53px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.6; }
.media-label { min-width: 0; overflow-wrap: anywhere; color: #687461; }
.kind-label { flex-shrink: 0; color: #9a9f91; font-size: 10px; letter-spacing: .025em; }
.kind-output { color: #4e7958; }
.kind-process { color: #a07751; }
.no-preview { padding: 8px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.sample-text-only .sample-heading { display: block; margin-bottom: 0; }
.sample-text-only .sample-heading p { margin-top: 5px; }
.sample-text-only .sample-links { margin-top: 10px; }
.review-group.review-group-compact { padding-block: 28px; }
.review-group-compact .group-heading { margin-bottom: 14px; }
.review-group-compact .steps { margin-bottom: 18px; }
.review-group-compact .group-note { margin-bottom: 16px; }
.review-group-compact .sample + .sample { margin-top: 16px; padding-top: 14px; }
.image-failure { display: flex; align-items: center; justify-content: center; padding: 24px; background: #f1f2eb; color: #8a927f; font-size: 12px; text-align: center; line-height: 1.8; }
.image-failure { position: absolute; inset: 0; min-height: 0; border: 0; border-radius: 0; }
.sample-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 15px; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 0; padding: 4px 0; background: transparent; color: #6a7c61; font-size: 12px; line-height: 1.8; white-space: nowrap; }
.text-button:hover { color: #234c2e; }
.model-open { border: 1px solid #d3ddcd; border-radius: 5px; padding: 7px 12px; background: #edf2e8; color: #48633e; font-weight: 500; }
.model-open:hover { background: #e5eddc; }
.pending-section { padding: 34px 0; }
.pending-heading { display: flex; align-items: baseline; gap: 20px; margin-bottom: 17px; }
.pending-heading h2 { color: #788171; font-size: 15px; font-weight: 500; }
.pending-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; margin-left: 34px; }
.pending-item { display: flex; align-items: baseline; gap: 12px; color: #919887; font-size: 12px; line-height: 1.9; }
.pending-item strong { flex-shrink: 0; color: #7b8574; font-weight: 500; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 34px; border-top: 1px solid var(--line); color: #a0a696; font-size: 10px; line-height: 1.8; letter-spacing: .075em; }
.empty-message, .noscript-message { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.9; }

.preview-dialog { width: min(1120px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 1px solid #dbe1d6; border-radius: 12px; background: #fcfcf9; color: var(--ink); box-shadow: 0 22px 100px rgb(20 34 24 / 22%); }
.preview-dialog::backdrop { background: rgb(27 38 29 / 62%); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; }
.dialog-heading h2 { font-size: 15px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.dialog-eyebrow { font-size: 10px; color: #8c977f; line-height: 1.5; letter-spacing: .08em; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 0; border: 1px solid #e3e8dd; border-radius: 50%; background: transparent; color: #718265; font-size: 24px; font-weight: 300; line-height: 1; }
.icon-button:hover { background: #eaf0e3; }
.image-stage { display: grid; place-items: center; min-height: 140px; padding: 16px; }
.image-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 214px); object-fit: contain; }
.dialog-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 20px; font-size: 12px; line-height: 1.8; color: #7e8974; }
.dialog-caption a { flex-shrink: 0; color: #58714c; }
.model-dialog { width: min(1040px, calc(100% - 48px)); }
.model-stage { position: relative; height: min(62dvh, 650px); min-height: 230px; background: #f4f4ee; overflow: hidden; }
.model-stage canvas { display: block; width: 100%; height: 100%; outline-offset: -5px; touch-action: none; }
.viewer-message { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 30px; background: #f4f4ee; text-align: center; }
.viewer-message p { max-width: 420px; font-size: 13px; line-height: 1.9; color: #7c8b71; }
.spinner { width: 26px; height: 26px; border: 2px solid #dce4d5; border-top-color: #758c64; border-radius: 50%; animation: spin .8s linear infinite; }
.viewer-message.is-error .spinner { display: none; }
.model-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; }
.viewer-hint { color: #97a08d; font-size: 11px; line-height: 1.8; }
.model-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.animation-control { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #8e9a83; }
.animation-control select { min-height: 32px; width: 142px; padding: 4px 8px; border: 1px solid #dae2d3; border-radius: 4px; background: #fff; color: #60744f; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1700px) { .media-button { aspect-ratio: 1.45; } }
@media (max-width: 1100px) {
  .page-shell, .nav-inner { width: calc(100% - 56px); }
  .media-grid { gap: 12px; }
  .media-grid.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-caption { gap: 6px; padding: 10px 11px; }
  .pending-list { grid-template-columns: 1fr; }
  .nav-link { padding-inline: 11px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .page-shell, .nav-inner { width: calc(100% - 36px); }
  .masthead { min-height: 73px; }
  .brand { gap: 7px; font-size: 10px; letter-spacing: .08em; }
  .brand-mark { font-size: 23px; }
  .edition { gap: 0; font-size: 10px; }
  .edition time { display: none; }
  .hero { padding: 37px 0 30px; }
  .eyebrow { margin-bottom: 15px; font-size: 10px; }
  h1 { font-size: 33px; letter-spacing: -.04em; }
  .hero-note { margin-top: 16px; font-size: 12px; line-height: 1.9; }
  .nav-inner { gap: 4px; padding-block: 9px; }
  .nav-link { padding: 8px 10px; font-size: 11px; }
  .review-group { padding-block: 34px; scroll-margin-top: 76px; }
  .group-heading { flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .group-title-wrap { gap: 12px; }
  .group-heading h2 { font-size: 21px; }
  .section-number { font-size: 11px; }
  .group-chips { justify-content: flex-start; padding: 0; max-width: 100%; margin-left: 27px; }
  .chip { font-size: 9px; min-height: 25px; }
  .steps { margin-left: 0; margin-bottom: 20px; gap: 6px 0; }
  .steps li { font-size: 11px; }
  .steps li + li::before { margin-inline: 9px; }
  .group-note { margin-left: 0; font-size: 11px; }
  .media-grid, .media-grid.count-2, .media-grid.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .media-grid.count-3 > :last-child { grid-column: 1 / -1; }
  .media-grid.count-3 > :last-child .media-button { aspect-ratio: 1.8; }
  .media-caption { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 58px; font-size: 11px; }
  .kind-label { font-size: 9px; }
  .media-button img { padding: 6px; }
  .sample-heading { gap: 4px 12px; margin-bottom: 10px; }
  .sample-heading h3 { font-size: 13px; }
  .sample-heading p { font-size: 11px; }
  .enlarge-icon { opacity: 1; transform: none; width: 22px; height: 22px; font-size: 13px; right: 6px; bottom: 6px; }
  .sample-links { gap: 9px 18px; }
  .pending-list { margin-left: 0; }
  .pending-item { flex-direction: column; gap: 1px; }
  .pending-heading { gap: 12px; }
  .page-footer { font-size: 9px; padding-bottom: 28px; }
  .preview-dialog, .model-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 9px; }
  .dialog-heading { padding: 12px 14px; }
  .dialog-heading h2 { font-size: 13px; }
  .image-stage { padding: 8px; }
  .image-stage img { max-height: calc(100dvh - 200px); }
  .dialog-caption { padding: 12px 14px; font-size: 11px; }
  .model-stage { height: 53dvh; }
  .model-toolbar { padding: 12px 14px; flex-direction: column; align-items: flex-start; gap: 7px; }
  .model-actions { gap: 15px; width: 100%; }
  .animation-control select { width: 118px; }
}
@media (max-width: 390px) {
  .media-grid, .media-grid.count-2, .media-grid.count-4 { grid-template-columns: 1fr; }
  .media-grid.count-3 > :last-child { grid-column: auto; }
  .media-grid.count-3 > :last-child .media-button { aspect-ratio: 4 / 3; }
  .media-caption { flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px; min-height: 44px; }
  .edition { display: none; }
  .page-footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Notes article context; the comparison layout follows the original study. */
.site-header { border-bottom: 1px solid var(--line); }
.back-notes { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 26px; color: var(--muted); font-size: 12px; }
.back-notes:hover, .page-footer a:hover { color: var(--ink); }
.entry-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; margin-bottom: 18px; }
.entry-meta .eyebrow { margin: 0; color: var(--muted); letter-spacing: .09em; }
.entry-meta time { color: var(--muted); font-size: 11px; }
.hero-note { color: var(--muted); }
.page-footer { align-items: center; }
.page-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); letter-spacing: 0; font-size: 12px; }
@media (max-width: 560px) { .entry-meta { align-items: flex-start; flex-direction: column; gap: 8px; } .back-notes { margin-bottom: 20px; } }
