/* 图片模型大PK — desktop comparison archive, scoped to its page. */
.pk-page {
  --pk-soft: #eef0e6;
  --pk-image-bed: #e9eadf;
  --pk-dark: #252b22;
  --pk-gap: 26px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  min-width: 980px;
}

.pk-page *, .pk-page *::before, .pk-page *::after { box-sizing: border-box; }
.pk-page :is(h1,h2,h3,h4,p,figure) { margin: 0; }
.pk-page :is(h1,h2,h3,h4) { font-family: var(--serif); font-weight: 400; }
.pk-page :is(a,button,summary) { -webkit-tap-highlight-color: transparent; }
.pk-page a { color: inherit; text-decoration: none; }
.pk-page button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; }
.pk-page button:disabled { cursor: default; opacity: .35; }
.pk-page :is(button,a,summary):focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.pk-page img { display: block; max-width: 100%; }
.pk-page table { border-collapse: collapse; width: 100%; }
.pk-page small { font-size: 12px; }
.pk-page ::selection { background: var(--ink); color: var(--lime); }

/* A compact chapter heading keeps the comparison close to the fold. */
.pk-page .pk-heading { position: relative; padding-top: 145px; padding-bottom: 30px; background: var(--lime); }
.pk-page .pk-heading .page-kicker { margin: 0 0 12px; font-size: 12px; line-height: 1.7; }
.pk-page .pk-heading > .eyebrow { position: absolute; top: 145px; right: var(--gutter); color: #5a6240; }
.pk-page .eyebrow { font: 12px/1.7 Arial,var(--sans); letter-spacing: .13em; }
.pk-page .pk-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.pk-page .pk-heading-row h1 { font-size: clamp(58px,4.4vw,80px); line-height: 1.15; letter-spacing: -.04em; white-space: nowrap; }
.pk-page .pk-heading-row > p { max-width: 390px; padding-bottom: 4px; font-size: 15px; line-height: 1.9; color: #485026; }
.pk-page .pk-heading-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding-top: 10px; border-top: 1px solid #a2b22d; color: #5a6240; font-size: 12px; line-height: 1.8; }
.pk-page .pk-heading-foot > span { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pk-page .pk-heading-foot a { display: inline-flex; align-items: center; gap: 15px; color: var(--ink); padding: 1px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.pk-page .pk-heading-foot a:hover { color: #525c18; }

/* The page has its own chapter navigation alongside the site navigation. */
.pk-page .pk-layout { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 40px; align-items: start; padding-top: 28px; padding-bottom: 90px; }
.pk-page .pk-sidebar { position: sticky; top: 126px; max-height: calc(100dvh - 150px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 8px; }
.pk-page .nav-caption { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 12px; line-height: 1.7; }
.pk-page .nav-caption > span { font-family: Georgia,serif; }
.pk-page .nav-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 8px 11px 0; font-size: 14px; line-height: 1.6; color: var(--muted); transition: color .2s,background .2s; }
.pk-page .nav-link .nav-index { flex: 0 0 21px; font: 12px/1.5 Georgia,serif; color: #8a8f7b; text-align: center; }
.pk-page .nav-link:hover { color: var(--ink); background: #f0f2e8; }
.pk-page .nav-link.active { color: var(--ink); font-weight: 500; background: var(--pk-soft); }
.pk-page .nav-link.active::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--ink); }
.pk-page .nav-link.active .nav-index { color: var(--ink); }
.pk-page .nav-divider { height: 1px; margin: 12px 0; background: var(--line); }
.pk-page .pk-side-note { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.9; }
.pk-page .pk-side-note small { display: block; margin-top: 5px; font-size: 11px; }
.pk-page .pk-side-note a { border-bottom: 1px solid var(--line); }
.pk-page .pk-body { min-width: 0; }
.pk-page #pk-content { min-width: 0; min-height: 420px; }
.pk-page #pk-content:focus { outline: none; }
.pk-page #pk-load { padding: 28px 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.pk-page .pk-view-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.pk-page .pk-view-heading .eyebrow { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.pk-page .pk-view-heading:has(+ .ranking) .eyebrow { display: none; }
.pk-page .pk-view-heading h2 { font-size: clamp(28px,2.1vw,34px); line-height: 1.35; letter-spacing: -.025em; }
.pk-page .heading-note { max-width: 860px; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.pk-page .edition { flex: 0 0 auto; padding: 6px 9px; color: var(--muted); border: 1px solid var(--line); font-size: 11px; line-height: 1.5; white-space: nowrap; }

/* Editorial score cards: one rule, a large score, then the actual sample. */
.pk-page .ranking { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--pk-gap); }
.pk-page .rank-card { min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.pk-page .rank-info { padding: 12px 0; }
.pk-page .rank-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font: 11px/1.6 Arial,var(--sans); letter-spacing: .1em; }
.pk-page .rank-label::before { content: ''; width: 6px; height: 6px; background: var(--model); border-radius: 50%; flex: 0 0 auto; }
.pk-page .rank-label > span { margin-left: auto; font-family: var(--sans); letter-spacing: 0; font-size: 11px; }
.pk-page .rank-card :is(h2,h3) { font-size: 22px; line-height: 1.4; margin: 6px 0 5px; white-space: nowrap; }
.pk-page .rank-score { font-family: Georgia,serif; font-size: 44px; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pk-page .rank-score small { margin-left: 8px; color: var(--muted); font: 12px/1.5 var(--sans); letter-spacing: 0; }
.pk-page .rank-total { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pk-page .rank-art-button { display: block; width: 100%; padding: 0; margin-top: auto; text-align: left; }
.pk-page .rank-art-frame { position: relative; display: block; overflow: hidden; background: var(--pk-image-bed); }
.pk-page .rank-art { width: 100%; height: auto; aspect-ratio: 16/4.8; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.3,1); }
.pk-page .rank-art-button:hover .rank-art { transform: scale(1.035); }
.pk-page .rank-art-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.pk-page .rank-art-caption > span:last-child { color: var(--ink); white-space: nowrap; }
.pk-page .section-line { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; margin: 30px 0 15px; }
.pk-page .section-line h2 { font-size: 27px; line-height: 1.4; }
.pk-page .section-line p { color: var(--muted); font-size: 12px; line-height: 1.8; text-align: right; }
.pk-page .panel { min-width: 0; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pk-page .matrix { min-width: 640px; table-layout: fixed; }
.pk-page .matrix th { padding: 14px 15px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 12px; font-weight: 400; line-height: 1.8; }
.pk-page .matrix th:first-child { width: 31%; }
.pk-page .matrix th.model-head { text-align: center; color: var(--ink); font-size: 13px; }
.pk-page .matrix th.model-head::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; background: var(--model); border-radius: 50%; }
.pk-page .matrix td { padding: 14px 15px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.pk-page .matrix tbody tr:last-child td { border-bottom: 0; }
.pk-page .matrix tbody tr:hover { background: #f0f2e8; }
.pk-page .ability-link { display: flex; align-items: center; gap: 12px; }
.pk-page .ability-link .number { color: var(--muted); font: 12px/1.5 Georgia,serif; }
.pk-page .ability-link .arrow { margin-left: auto; color: #92977f; transition: transform .2s; }
.pk-page .ability-link:hover { color: #697415; }
.pk-page .ability-link:hover .arrow { color: var(--ink); transform: translate(2px,-2px); }
.pk-page .score-cell { text-align: center; font-variant-numeric: tabular-nums; }
.pk-page .mini-score { display: flex; justify-content: center; align-items: center; gap: 12px; }
.pk-page .score-value { width: 35px; text-align: right; }
.pk-page .mini-track { width: 62px; height: 3px; overflow: hidden; background: #e3e6d7; }
.pk-page .mini-track i { display: block; width: calc(var(--value)*10%); height: 100%; background: var(--model); opacity: .7; }
.pk-page .best .score-value { font-weight: 700; }
.pk-page .matrix-key { display: flex; justify-content: space-between; gap: 20px; padding: 12px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.pk-page .overview-notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pk-gap); margin-top: 28px; }
.pk-page .note-box { min-width: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.pk-page .note-box h3 { font-size: 23px; line-height: 1.5; margin-bottom: 9px; }
.pk-page .note-box p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.pk-page .text-link { display: inline-flex; align-items: center; gap: 15px; margin-top: 12px; padding: 8px 0; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 13px; line-height: 1.7; }
.pk-page .text-link:hover { color: #697415; }

/* Per-capability score line, rubric and three-column sample comparison. */
.pk-page .score-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-bottom: 20px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pk-page .strip-cell { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 22px; }
.pk-page .strip-cell:first-child { padding-left: 0; }
.pk-page .strip-cell:last-child { padding-right: 0; }
.pk-page .strip-cell + .strip-cell { border-left: 1px solid var(--line); }
.pk-page .strip-cell h2 { color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.6; }
.pk-page .strip-cell h2::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--model); }
.pk-page .strip-cell strong { font: 34px/1 Georgia,serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-page .strip-cell strong small { margin-left: 5px; color: var(--muted); font: 11px/1.5 var(--sans); }
.pk-page .rubric { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--pk-soft); margin-bottom: 17px; }
.pk-page .rubric > div { padding: 19px 22px; }
.pk-page .rubric > div + div { border-left: 1px solid var(--line); }
.pk-page .rubric-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.pk-page .rubric p { color: #52584a; font-size: 14px; line-height: 1.9; }
.pk-page .rubric p + p { margin-top: 5px; }
.pk-page .rubric p strong { font-weight: 500; }
.pk-page .branch-jump { display: flex; flex-wrap: wrap; column-gap: 25px; margin: 0 0 29px; border-bottom: 1px solid var(--line); }
.pk-page .branch-jump a { padding: 12px 0; font-size: 13px; line-height: 1.8; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pk-page .branch-jump a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.pk-page .branch { margin-top: 40px; scroll-margin-top: 16px; }
.pk-page .branch-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 13px; }
.pk-page .branch-heading h2 { font-size: 27px; line-height: 1.5; }
.pk-page .branch-code { display: inline-block; margin-right: 13px; color: var(--muted); font: 14px/1.5 Georgia,serif; vertical-align: baseline; }
.pk-page .branch-heading > span { flex: 0 0 auto; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: nowrap; }
.pk-page .branch-note { max-width: 960px; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.pk-page .reference { display: flex; align-items: center; gap: 20px; padding: 15px 18px; margin-bottom: 20px; background: #f0f2e8; }
.pk-page .reference button { flex: 0 0 auto; padding: 0; }
.pk-page .reference img { width: 58px; height: 72px; max-width: none; object-fit: contain; background: var(--paper); }
.pk-page .reference h3 { font-family: var(--sans); font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.pk-page .reference p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.pk-page .reference .reference-open { margin-left: auto; padding: 9px 0; color: var(--ink); font-size: 12px; line-height: 1.8; border-bottom: 1px solid var(--ink); }
.pk-page .comparison { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--pk-gap); align-items: start; }
.pk-page .model-column { min-width: 0; }
.pk-page .model-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 0; border-top: 1px solid var(--model); font-size: 13px; line-height: 1.5; }
.pk-page .model-title > span:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.pk-page .model-title small { color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.pk-page .model-title .branch-score { flex: 0 0 auto; font: 23px/1.5 Georgia,serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-page .model-title .branch-score small { margin-left: 3px; font-family: var(--sans); font-size: 11px; }
.pk-page .result-card + .result-card { margin-top: 18px; }
.pk-page .image-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: var(--pk-image-bed); cursor: zoom-in; }
.pk-page .image-button img { width: 100%; height: auto; max-width: none; aspect-ratio: var(--ratio); object-fit: contain; }
.pk-page .image-button .view-image { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 5px 8px; background: var(--paper); color: var(--ink); font-size: 11px; line-height: 1.6; opacity: 0; transition: opacity .2s; }
.pk-page .image-button:is(:hover,:focus-visible) .view-image { opacity: 1; }
.pk-page .model-overlay { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: block; max-width: calc(100% - 20px); padding: 6px 8px; border-left: 2px solid var(--model); background: rgb(38 40 33 / .9); color: var(--paper); font-family: var(--sans); font-size: clamp(11px,.8vw,13px); font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.pk-page .model-overlay[hidden] { display: none; }
.pk-page .image-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.pk-page .image-meta .sample-score { color: var(--ink); }
.pk-page .empty-result { padding: 24px; border: 1px dashed #b7beaa; color: var(--muted); font-size: 14px; line-height: 1.9; background: #f4f5ee; }

/* Hover may isolate a model, while keeping the other samples legible. */
.pk-page #pk-content :is(.image-button,.rank-art-frame)::after { content: ''; position: absolute; inset: 0; z-index: 3; background: rgb(0 0 0 / .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
@media screen and (hover:hover) and (pointer:fine) {
  .pk-page #pk-content:has(.model-column:hover,.rank-art-button:hover) :is(.image-button,.rank-art-frame)::after { opacity: 1; }
  .pk-page #pk-content:has(.rank-art-button:hover) .rank-art-button:hover .rank-art-frame::after,
  .pk-page #pk-content:has(.model-column:hover) .model-column:hover .image-button::after { opacity: 0; }
}

/* The recorded inputs and scoring evidence remain readable long-form content. */
.pk-page .prompt { margin-top: 18px; background: var(--pk-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pk-page .prompt summary { cursor: pointer; padding: 16px 22px; color: var(--ink); font-size: 14px; line-height: 1.8; }
.pk-page .prompt summary > span { color: var(--muted); font-size: 12px; }
.pk-page .prompt summary::marker { color: var(--muted); }
.pk-page .prompt-content { padding: 0 24px 24px; }
.pk-page .prompt-meta { margin: 3px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.9; white-space: pre-line; }
.pk-page .prompt-warning { margin-bottom: 18px; padding: 11px 15px; border-left: 2px solid #8d986c; color: #626a4e; background: #e7ebda; font-size: 12px; line-height: 1.9; }
.pk-page .copy-prompt { float: right; min-height: 40px; padding: 7px 12px; margin: 3px 0 12px 20px; border: 1px solid #9ca589; font-size: 12px; line-height: 1.6; }
.pk-page .copy-prompt:hover { color: var(--ink); background: var(--lime); border-color: var(--ink); }
.pk-page .prompt-text { color: #52584a; font-size: 16px; line-height: 2.05; white-space: pre-wrap; overflow-wrap: anywhere; }
.pk-page .prompt-criteria { clear: both; margin-top: 22px; padding-top: 18px; border-top: 1px solid #d2d8c5; color: #626a55; font-size: 14px; line-height: 1.95; white-space: pre-line; }
.pk-page .prompt-criteria strong { color: var(--ink); font-weight: 500; }
.pk-page .details-report { margin-top: 26px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pk-page .details-report > summary { padding: 18px 0; cursor: pointer; color: var(--ink); font-size: 14px; line-height: 1.8; }
.pk-page .details-report[open] > summary { margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.pk-page .report-body { padding: 0 0 26px; color: #52584a; font-size: 17px; line-height: 2.05; overflow-x: auto; }
.pk-page .report-body h2 { margin: 29px 0 17px; color: var(--ink); font-size: 30px; line-height: 1.6; }
.pk-page .report-body h3 { margin: 28px 0 14px; color: var(--ink); font-size: 25px; line-height: 1.6; }
.pk-page .report-body h4 { margin: 24px 0 12px; color: var(--ink); font-size: 22px; line-height: 1.6; }
.pk-page .report-body p { max-width: 740px; margin: 17px 0; }
.pk-page .report-body strong { font-weight: 500; color: var(--ink); }
.pk-page .report-body table { min-width: 650px; margin: 23px 0; border-top: 1px solid var(--ink); color: #52584a; font-size: 13px; line-height: 1.85; }
.pk-page .report-body :is(td,th) { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pk-page .report-body th { background: var(--pk-soft); color: var(--ink); font-weight: 500; }
.pk-page .report-body a { color: var(--ink); border-bottom: 1px solid #9ca589; overflow-wrap: anywhere; }
.pk-page .report-body a:hover { color: #697415; border-bottom-color: currentColor; }
.pk-page .method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--pk-gap); margin-bottom: 30px; }
.pk-page .method-card { min-width: 0; padding-top: 16px; border-top: 1px solid var(--ink); }
.pk-page .method-index { color: var(--muted); font: 12px/1.8 Georgia,serif; }
.pk-page .method-card h2 { margin: 12px 0 10px; font-size: 25px; line-height: 1.5; }
.pk-page .method-card p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.pk-page .standards-table { min-width: 600px; }
.pk-page .standards-table :is(th,td) { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.9; vertical-align: top; }
.pk-page .standards-table th { color: var(--muted); font-size: 12px; font-weight: 400; }
.pk-page .standards-table td:first-child { width: 25%; color: var(--ink); white-space: nowrap; }
.pk-page .standards-table tr:last-child td { border-bottom: 0; }
.pk-page .standards-table a:hover { color: #697415; }
.pk-page .standards-table small { display: block; color: var(--muted); font-size: 12px; }
.pk-page .limits { margin-top: 29px; padding: 24px 26px; border-left: 3px solid var(--ink); background: var(--pk-soft); }
.pk-page .limits h2 { margin-bottom: 14px; font-size: 27px; line-height: 1.5; }
.pk-page .limits ul { margin: 0; padding-left: 20px; }
.pk-page .limits li { margin: 8px 0; color: #626a55; font-size: 14px; line-height: 1.95; padding-left: 2px; }
.pk-page .source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--pk-gap); margin-top: 20px; }
.pk-page .source-card { display: block; padding: 20px 0; border-top: 1px solid var(--line); }
.pk-page .source-card h3 { margin-bottom: 7px; font-size: 23px; line-height: 1.5; }
.pk-page .source-card p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.pk-page .source-card:hover h3 { color: #697415; }
.pk-page .rules-intro { max-width: 850px; margin-bottom: 24px; color: var(--muted); font-size: 15px; line-height: 1.95; }
.pk-page .back-top { border: 0; border-radius: 0; height: auto; display: block; width: fit-content; margin: 32px 0 0 auto; padding: 10px 0; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 13px; line-height: 1.8; }
.pk-page .back-top:hover { color: #697415; }

/* Original-file viewer. JS sizes the frame for fit, 100% and 200%. */
.pk-page #pk-viewer { position: fixed; inset: 20px; width: calc(100vw - 40px); height: calc(100dvh - 40px); max-width: none; max-height: none; margin: 0; padding: 0; border: 1px solid #737b67; border-radius: 0; background: var(--pk-dark); color: var(--paper); overflow: hidden; }
.pk-page #pk-viewer[open] { display: flex; flex-direction: column; }
.pk-page #pk-viewer::backdrop { background: rgb(20 24 17 / .86); }
.pk-page .viewer-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 22px; border-bottom: 1px solid #4b5342; }
.pk-page .viewer-top > div { min-width: 0; }
.pk-page .viewer-top strong { display: block; font-size: 14px; font-weight: 400; line-height: 1.8; overflow-wrap: anywhere; }
.pk-page .viewer-top span { display: block; margin-top: 3px; color: #bac2ae; font-size: 11px; line-height: 1.8; }
.pk-page #pk-close-viewer { flex: 0 0 40px; width: 40px; min-height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid #737b67; border-radius: 50%; font-size: 18px; line-height: 1; }
.pk-page #pk-close-viewer:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.pk-page .viewer-toolbar { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 22px; font-size: 12px; line-height: 1.8; }
.pk-page #pk-zoom-controls { display: flex; gap: 8px; }
.pk-page .viewer-toolbar button { min-height: 35px; padding: 5px 12px; border: 1px solid #737b67; color: #d2d8c6; font-size: 12px; line-height: 1.6; }
.pk-page .viewer-toolbar button.active { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.pk-page .viewer-toolbar > span { color: #bac2ae; }
.pk-page .viewer-toolbar a { padding: 5px 0; color: var(--paper); border-bottom: 1px solid #737b67; }
.pk-page .viewer-toolbar a:hover { color: var(--lime); }
.pk-page #pk-image-stage { flex: 1 1 0; min-height: 0; position: relative; padding: 12px; overflow: auto; overscroll-behavior: contain; background: #181d15; text-align: center; }
.pk-page #pk-original-frame { position: relative; display: block; margin: 0 auto; max-width: none; max-height: none; }
.pk-page #pk-original-image { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: contain; }
.pk-page #pk-original-frame .model-overlay { right: 16px; bottom: 16px; font-size: clamp(11px,.9vw,15px); }
.pk-page #pk-loading-original { position: absolute; top: 45%; left: 24px; right: 24px; color: #bac2ae; font-size: 13px; line-height: 1.9; pointer-events: none; }
.pk-page .viewer-bottom { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 22px; border-top: 1px solid #4b5342; color: #bac2ae; font-size: 11px; line-height: 1.8; }
.pk-page .viewer-bottom button { min-height: 36px; padding: 6px 0; color: var(--paper); font-size: 12px; line-height: 1.8; }
.pk-page .viewer-bottom button:not(:disabled):hover { color: var(--lime); }
.pk-page #pk-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; max-width: min(650px,calc(100vw - 60px)); padding: 13px 20px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.8; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pk-page #pk-toast.show { opacity: 1; }

/* Compact and wide desktop windows retain three comparison columns. */
@media (min-width: 1600px) {
  .pk-page { --pk-gap: 38px; }
  .pk-page .pk-heading-row h1 { font-size: 88px; }
  .pk-page .pk-heading-row > p { max-width: 460px; font-size: 16px; }
  .pk-page .pk-layout { grid-template-columns: 190px minmax(0,1fr); gap: 54px; padding-top: 42px; }
  .pk-page .rank-card :is(h2,h3) { font-size: 27px; }
  .pk-page .rank-info { padding-top: 17px; padding-bottom: 20px; }
  .pk-page .rank-score { font-size: 54px; }
  .pk-page .model-title > span:first-child { font-size: 25px; }
  .pk-page .rank-art { aspect-ratio: 16/5.6; }
  .pk-page .matrix th, .pk-page .matrix td { padding-top: 16px; padding-bottom: 16px; }
  .pk-page .section-line h2 { font-size: 30px; }
}

@media (max-width: 1199px) {
  .pk-page { --pk-gap: 16px; }
  .pk-page .pk-heading { padding-top: 140px; padding-bottom: 30px; }
  .pk-page .pk-heading > .eyebrow { top: 140px; }
  .pk-page .pk-heading-row { gap: 28px; }
  .pk-page .pk-heading-row h1 { font-size: 58px; }
  .pk-page .pk-heading-row > p { max-width: 320px; font-size: 14px; }
  .pk-page .pk-heading-foot { margin-top: 17px; }
  .pk-page .pk-layout { grid-template-columns: 155px minmax(0,1fr); gap: 26px; padding-top: 28px; }
  .pk-page .nav-link { font-size: 13px; gap: 8px; }
  .pk-page .nav-link .nav-index { flex-basis: 19px; }
  .pk-page .pk-view-heading h2 { font-size: 28px; }
  .pk-page .heading-note { font-size: 13px; }
  .pk-page .pk-view-heading { gap: 15px; }
  .pk-page .rank-card :is(h2,h3) { font-size: 20px; }
  .pk-page .rank-score { font-size: 43px; }
  .pk-page .rank-label { letter-spacing: .04em; }
  .pk-page .rank-label > span { font-size: 11px; }
  .pk-page .rank-art-caption { flex-wrap: wrap; gap: 2px 7px; }
  .pk-page .matrix th, .pk-page .matrix td { padding: 12px 11px; }
  .pk-page .matrix th.model-head { font-size: 12px; }
  .pk-page .mini-score { gap: 8px; }
  .pk-page .mini-track { width: 49px; }
  .pk-page .ability-link { gap: 8px; }
  .pk-page .matrix-key { padding: 11px; gap: 15px; }
  .pk-page .section-line { gap: 16px; }
  .pk-page .section-line h2 { font-size: 25px; }
  .pk-page .strip-cell { padding: 16px 13px; }
  .pk-page .strip-cell h2 { font-size: 12px; }
  .pk-page .strip-cell strong { font-size: 29px; }
  .pk-page .rubric > div { padding: 17px; }
  .pk-page .rubric p { font-size: 13px; }
  .pk-page .branch-heading h2 { font-size: 24px; }
  .pk-page .model-title { padding: 12px 0; }
  .pk-page .model-title > span:first-child { font-size: 18px; }
  .pk-page .model-title .branch-score { font-size: 21px; }
  .pk-page .image-meta { font-size: 11px; }
  .pk-page .prompt-content { padding-right: 20px; padding-left: 20px; }
  .pk-page .note-box h3, .pk-page .source-card h3 { font-size: 22px; }
  .pk-page .method-card h2 { font-size: 23px; }
  .pk-page .method-card p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-page *, .pk-page *::before, .pk-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .pk-page .rank-art-button:hover .rank-art { transform: none; }
  .pk-page .ability-link:hover .arrow { transform: none; }
}

@media print {
  .pk-page { min-width: 0; background: #fff; }
  .pk-page .pk-heading { padding-top: 20px; padding-bottom: 25px; background: #fff; }
  .pk-page .pk-heading > .eyebrow { position: static; margin-bottom: 12px; }
  .pk-page .pk-heading-row h1 { font-size: 42px; }
  .pk-page .pk-layout { display: block; padding-top: 20px; }
  .pk-page :is(.pk-sidebar,.branch-jump,.copy-prompt,.back-top,#pk-viewer,#pk-toast) { display: none !important; }
  .pk-page .rank-art { display: none; }
  .pk-page .comparison { break-inside: avoid; }
  .pk-page .prompt, .pk-page .details-report { break-inside: auto; }
  .pk-page .image-button img { max-height: 300px; object-fit: contain; }
  .pk-page #pk-content :is(.image-button,.rank-art-frame)::after { display: none; }
}
