/* Reset, type fallback and container foundation adapted from the author-owned AgentHarness3D / ManyWorlds page. */
/* Decide What, Fit How Much: project page (v2). Static, local fonts, no external dependencies.
   Layout and visual language follow the ManyWorlds / UniRobo-Data page (see DESIGN_REFERENCES.md). */
:root {
  --bg: #f7f8fb;
  --paper: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --navy: #0b1020;
  --agent: #6366f1;  --agent-d: #4f46e5;  --agent-bg: #eef2ff;
  --tool: #10b981;   --tool-d: #059669;   --tool-bg: #ecfdf5;
  --gt: #f97316;     --gt-bg: #fff7ed;
  --alone: #94a3b8;
  --bad: #e11d48;    --bad-bg: #fff1f2;
  --prov: #ea580c;
  --t1: #0ea5e9; --t2: #6366f1; --t3: #f59e0b; --t4: #ec4899; --t5: #14b8a6; --bg-c: #8b5cf6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--agent-d); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .86em; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nostyle-warning { display: none; }
.prov { color: var(--prov); font-weight: inherit; text-decoration: underline dotted rgba(234,88,12,.6); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; }
.prov::after { content: "*"; font-size: .7em; vertical-align: super; margin-left: 1px; }
.final .prov { color: inherit; text-decoration: none; cursor: auto; }
.final .prov::after, .final .pill-status, .final .prov-note { display: none; }
.ag { color: var(--agent-d); font-weight: 700; }
.tl { color: var(--tool-d); font-weight: 700; }

/* VMem-Bench: evidence-first layout; orange matches the paper's figures. */
:root{--bg:#fff;--ink:#1d1d1f;--ink-2:#4d4d50;--ink-3:#727276;--line:#e6e5e3;--orange:#e6550d;--muted:#77777b;--cream:#f7f7f5;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body{background:var(--bg);color:var(--ink);line-height:1.6}a{color:inherit}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e6550d;outline-offset:5px}img{object-fit:cover}sup{font-size:.65em;vertical-align:super}h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.08;letter-spacing:-.045em}.wrap{max-width:1200px;padding:0 32px}.skip{position:fixed;left:16px;top:-100px;z-index:100;background:white;padding:12px}.skip:focus{top:10px}.nav{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.nav-inner{display:flex;align-items:center;gap:32px;height:68px}.brand{font-size:19px;font-weight:700;letter-spacing:-.04em;display:flex;align-items:center;gap:8px;white-space:nowrap}.brand:hover{text-decoration:none}.brand-mark{display:inline-grid;place-items:center;background:var(--orange);color:white;width:27px;height:27px;border-radius:8px;font-size:24px;line-height:1}.nav-links{display:flex;gap:26px;margin-left:auto;font-size:13px;color:var(--ink-2)}.nav-paper{font-size:13px;white-space:nowrap;border:1px solid var(--line);border-radius:24px;padding:7px 14px}.hero{text-align:center;padding-top:66px;padding-bottom:58px}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:650;color:var(--muted)}.hero h1{font-size:clamp(60px,7.8vw,110px);font-weight:750;letter-spacing:-.068em;line-height:.98;margin:25px 0}.hero h1 span{color:var(--orange)}.hero-line{font-size:clamp(20px,2vw,27px);letter-spacing:-.025em;line-height:1.3}.hero-description{font-size:16px;color:var(--ink-3);margin:19px auto 24px;max-width:740px}.btns{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:22px;padding:10px 20px;border:1px solid var(--line);border-radius:28px;font-size:14px;font-weight:550;transition:background .16s,color .16s}.btn:hover{background:#f0f0ed;text-decoration:none}.btn.primary{color:#fff;background:var(--ink);border-color:var(--ink)}.btn.primary:hover{background:var(--orange);border-color:var(--orange)}.btn.quiet{border:0;color:var(--ink-3);gap:6px;font-weight:400}.section-label{display:flex;justify-content:space-between;gap:20px;font-size:10px;letter-spacing:.13em;font-weight:600;color:var(--ink-3);margin-bottom:25px}.section-label span:last-child{letter-spacing:.02em;font-weight:400}.evidence{scroll-margin-top:90px}.evidence-shell{background:#171717;border-radius:20px;color:#f5f5f5;overflow:hidden}.case-tabs{display:flex;justify-content:center;border-bottom:1px solid #363636;padding:12px 18px;gap:12px}.case-tabs button{border:0;border-radius:20px;color:#a9a9a9;background:transparent;font-size:12px;padding:9px 15px;white-space:nowrap}.case-tabs button.active{background:#373737;color:#fff}.case-tabs button:hover{color:#fff}.case-intro{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:30px 30px 26px;align-items:center}.case-intro h2{font-size:clamp(28px,3vw,43px);font-weight:600;letter-spacing:-.045em}.case-intro p{color:#bcbcbc;line-height:1.55;font-size:14px;max-width:470px}.case-tag{display:inline-block;color:#ffb58f;font-size:10px;letter-spacing:.05em;padding-top:10px}.filmstrip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0 24px}.filmstrip figcaption{font-size:10px;color:#d3d3d3;padding:0 0 10px;display:flex;gap:6px;align-items:center;min-height:28px}.filmstrip figcaption>span:first-child{color:#777;font-size:9px}.filmstrip img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#333;border-radius:3px}.filmstrip figure>p{font-size:10px;line-height:1.4;color:#888;padding-top:10px}.failure-label{font-size:8px;background:#6b2d20;color:#ffcdbd;padding:2px 5px;border-radius:3px;margin-left:auto}.evidence-note{font-size:10px;line-height:1.6;color:#888;max-width:910px;padding:23px 30px 27px}.takeaway{display:flex;align-items:center;gap:20px;padding:30px 10px 60px}.orange-dot{background:var(--orange);height:10px;width:10px;border-radius:50%;flex-shrink:0}.takeaway p{font-size:15px;color:var(--ink-3);line-height:1.5}.takeaway strong{color:var(--ink);font-weight:550}.takeaway>a{margin-left:auto;font-size:12px;color:var(--ink-3);text-align:right}.results-section,.protocol-section{background:var(--cream);padding:85px 0}.section-heading{display:grid;grid-template-columns:1.3fr 1fr;align-items:end;gap:80px;margin-bottom:45px}.section-heading h2,.prompt-layout h2,.lessons>h2,.resources-section h2{font-size:clamp(34px,4vw,56px);font-weight:650;letter-spacing:-.055em}.section-heading h2 span,.prompt-layout h2 span,.lessons>h2 span,.resources-section h2 span{color:#96969a}.section-heading>p{max-width:410px;color:var(--ink-3);font-size:16px;line-height:1.55}.control-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #dddcd9}.control-row label{font-size:13px;color:var(--ink-2)}.control-row select{border:1px solid #ccc;background:#fff;border-radius:25px;padding:9px 36px 9px 16px;font-size:13px;color:var(--ink);max-width:100%}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px}.metric-card{min-width:0}.metric-name{font-size:15px;font-weight:550;letter-spacing:-.02em}.metric-detail{font-size:11px;color:var(--ink-3);min-height:35px;margin-top:4px;line-height:1.5}.metric-values{display:flex;align-items:baseline;gap:14px;margin:15px 0}.metric-value{font-size:49px;font-weight:650;letter-spacing:-.065em}.metric-delta{font-size:17px;letter-spacing:-.04em;color:var(--orange)}.metric-bar-row{display:flex;align-items:center;gap:8px;margin:7px 0}.metric-track{flex:1;height:9px;position:relative;background:#e6e5e2;border-radius:3px;overflow:hidden}.metric-track i{display:block;height:100%;background:#88888b;transition:width .35s}.metric-bar-row.memory i{background:var(--orange)}.metric-bar-row>span{font-size:11px;min-width:39px;text-align:right;color:var(--ink-3);font-variant-numeric:tabular-nums}.metric-ci{font-size:10px;color:var(--muted);line-height:1.5;margin-top:12px}.chart-legend{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-top:32px;font-size:10px;color:var(--ink-3)}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:13px;height:6px;border-radius:2px}.baseline-key{background:#88888b}.memory-key{background:var(--orange)}.measurement-note{font-size:11px;color:var(--ink-3);line-height:1.6;margin:18px 0 24px;max-width:860px}.full-results{border-top:1px solid #dcdcd8;border-bottom:1px solid #dcdcd8}.full-results summary{list-style:none;padding:17px 0;font-size:12px;cursor:pointer;display:flex;justify-content:space-between}.full-results summary span{font-size:20px}.full-results[open] summary span{transform:rotate(45deg)}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}caption{text-align:left;color:var(--ink-3);font-size:10px;margin-bottom:12px}td,th{text-align:right;padding:10px 14px;border-bottom:1px solid #e2e2de;font-variant-numeric:tabular-nums}td:first-child,th:first-child{text-align:left;padding-left:0}th{font-weight:550;color:var(--ink-3)}tr.selected td{color:var(--orange);font-weight:600}.prompt-section{padding-top:90px;padding-bottom:90px}.prompt-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:90px;align-items:center}.prompt-layout h2{font-size:clamp(32px,3.5vw,47px)}.lead{font-size:16px;color:var(--ink-2);margin:25px 0 18px;max-width:530px}.muted{color:var(--ink-3);font-size:13px}.small-note{font-size:11px;color:var(--ink-3);margin-top:18px;line-height:1.65}.prompt-chart{padding:35px;border:1px solid var(--line);border-radius:14px}.chart-kicker{font-size:9px;letter-spacing:.09em;color:var(--ink-3);margin-bottom:30px}.prompt-row{margin-bottom:25px}.prompt-row>div:first-child{display:flex;justify-content:space-between;align-items:baseline;font-size:12px}.prompt-row strong{font-size:38px;font-weight:600;letter-spacing:-.06em}.prompt-track{height:18px;background:#eeedeb;border-radius:4px;overflow:hidden;margin-top:5px}.prompt-track i{display:block;height:100%;background:#494949}.stripped .prompt-track i{background:var(--orange)}.prompt-chart>p:last-child{color:var(--muted);font-size:12px;line-height:1.6}.track-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.track{padding:30px;background:#fff;border:1px solid #e7e7e3;border-radius:14px;min-width:0}.track-label{font-size:10px;letter-spacing:.13em;color:var(--orange);font-weight:650}.track h3{font-size:26px;margin:18px 0 12px;letter-spacing:-.04em}.track>p{color:var(--ink-3);font-size:13px;max-width:440px}.track-flow{display:flex;gap:12px;align-items:center;margin:25px 0;font-size:11px;color:var(--ink-2)}.track-flow b{color:#999;font-weight:400}.track-flow>span{background:var(--cream);padding:7px 8px;border-radius:4px}.track-stats{display:flex;gap:50px;border-top:1px solid var(--line);padding-top:20px}.track-stats strong{font-size:34px;letter-spacing:-.05em;font-weight:600}.track-stats strong span{display:block;font-size:10px;letter-spacing:0;font-weight:400;color:var(--muted);margin-top:4px}.track .small-note{font-size:10px}.protocol-boundary{font-size:11px;color:var(--ink-3);margin-top:25px;max-width:900px}.lessons{padding-top:90px;padding-bottom:90px}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:44px}.lesson-number{font-size:12px;color:var(--orange)}.lesson-grid h3{font-size:24px;letter-spacing:-.04em;margin:20px 0 17px;line-height:1.15}.lesson-grid p{font-size:13px;color:var(--ink-3)}.scope{border-top:1px solid var(--line);margin-top:45px;padding-top:15px}.scope summary{font-size:12px;cursor:pointer;color:var(--ink-2)}.scope>p{font-size:12px;color:var(--ink-3);margin-top:15px;max-width:970px}.resources-section{background:#1b1b1b;color:#fff;padding:80px 0}.resources-section .section-label{color:#929292}.resources-section h2 span{color:#858587}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:45px}.resource-grid a{border-top:1px solid #444;padding-top:18px}.resource-grid a:hover{text-decoration:none}.resource-grid a:hover h3{color:#ffa06c}.resource-grid>a>span{color:#808080;font-size:11px}.resource-grid h3{font-size:21px;letter-spacing:-.03em;margin:20px 0 12px;font-weight:500}.resource-grid p{color:#a1a1a3;font-size:12px}.paper-section{padding-top:80px;padding-bottom:80px}.paper-section>h2{font-size:33px;font-weight:600;margin-top:18px}.paper-subtitle{font-size:19px;color:var(--ink-3);margin:10px 0 25px;letter-spacing:-.02em}.authors{font-size:14px;line-height:2.2;max-width:1050px}.affiliations{font-size:11px;color:var(--ink-3);margin-top:16px;line-height:1.9}.author-notes{font-size:10px;color:var(--muted);margin-top:10px;line-height:1.8}.citation-header{display:flex;align-items:center;gap:20px;margin-top:40px;margin-bottom:15px}.citation-header h3{font-size:16px;letter-spacing:-.02em}.citation-header button{border:1px solid #ddd;background:white;border-radius:20px;padding:6px 13px;font-size:11px;margin-left:auto}.citation-header span{font-size:11px;color:var(--muted)}pre{margin:0;background:var(--cream);border:1px solid var(--line);padding:25px;font-size:11px;line-height:1.8;overflow-x:auto;border-radius:10px;color:var(--ink-2);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}footer{border-top:1px solid var(--line);padding:25px 0;color:var(--ink-3);font-size:10px}footer .wrap{display:flex;gap:25px;align-items:center}footer .wrap>a{margin-left:auto}.noscript{text-align:center;padding:20px;font-size:14px}section[id],header[id]{scroll-margin-top:100px}
@media(min-width:1500px){.hero{padding-top:80px;padding-bottom:70px}}
@media(max-width:900px){.nav-links{gap:15px}.nav-inner{gap:18px}.filmstrip{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}.section-heading,.prompt-layout{gap:35px}.metric-grid{gap:20px}.metric-value{font-size:40px}.track{padding:24px}.track-flow{gap:8px;font-size:10px}.track-stats{gap:30px}.lesson-grid,.resource-grid{gap:25px}}
@media(max-width:650px){.wrap{padding-left:22px;padding-right:22px}.nav-inner{height:60px}.brand{font-size:16px}.brand-mark{width:23px;height:23px;font-size:21px}.nav-links{display:none}.nav-paper{margin-left:auto;font-size:11px;padding:6px 11px}.hero{padding-top:48px;padding-bottom:40px}.hero h1{font-size:64px;margin:23px 0;letter-spacing:-.07em}.hero-line{font-size:20px;max-width:320px;margin:auto}.hero-description{font-size:13px;line-height:1.6;margin:18px auto 22px}.desktop-br{display:none}.eyebrow{font-size:9px;letter-spacing:.12em}.btns{gap:8px}.btn{padding:9px 15px;font-size:12px;gap:15px}.btn.quiet{padding-left:5px;padding-right:5px}.section-label{font-size:8px;gap:12px;margin-bottom:17px}.section-label span:last-child{text-align:right;max-width:42%}.case-tabs{padding:10px 6px;gap:1px}.case-tabs button{font-size:9px;padding:7px 8px}.evidence-shell{border-radius:12px}.case-intro{grid-template-columns:1fr;gap:15px;padding:24px 20px}.case-intro h2{font-size:31px}.case-intro p{font-size:12px}.case-tag{font-size:9px;padding-top:9px}.filmstrip{padding:0 13px;gap:18px 7px}.filmstrip figcaption{font-size:8px;gap:4px;min-height:27px}.filmstrip figcaption>span:first-child{font-size:8px}.failure-label{display:none}.filmstrip figure>p{font-size:9px;line-height:1.4}.evidence-note{font-size:9px;padding:20px 20px 24px}.takeaway{padding:25px 0 42px;gap:12px;flex-wrap:wrap}.takeaway p{font-size:13px}.takeaway>a{margin-left:22px;font-size:11px}.orange-dot{width:8px;height:8px}.results-section,.protocol-section{padding:50px 0}.section-heading{grid-template-columns:1fr;gap:20px;margin-bottom:28px}.section-heading h2,.lessons>h2,.resources-section h2{font-size:39px}.section-heading>p{font-size:14px}.control-row{align-items:flex-start;flex-direction:column;gap:12px}.control-row label{font-size:11px}.control-row select{font-size:12px;padding:8px 36px 8px 13px}.metric-grid{grid-template-columns:1fr;gap:25px}.metric-card{border-bottom:1px solid #dfdfda;padding-bottom:22px}.metric-name{font-size:16px}.metric-detail{min-height:0;font-size:11px}.metric-values{margin:5px 0 10px}.metric-value{font-size:45px}.metric-delta{font-size:18px}.metric-ci{font-size:10px}.metric-bar-row>span{font-size:11px}.chart-legend{margin-top:22px;gap:10px 18px}.chart-legend span:last-child{width:100%}.measurement-note{font-size:10px}.full-results summary{font-size:11px;align-items:center;gap:8px}.full-results table{min-width:310px;font-size:10px}td,th{padding:9px 7px}.prompt-section,.lessons{padding-top:50px;padding-bottom:50px}.prompt-layout{grid-template-columns:1fr;gap:28px}.prompt-layout h2{font-size:35px}.lead{font-size:14px;margin:20px 0 15px}.muted{font-size:12px}.small-note{font-size:10px}.prompt-chart{padding:25px}.chart-kicker{font-size:8px;margin-bottom:20px}.prompt-row strong{font-size:34px}.track-grid{grid-template-columns:1fr;gap:15px}.track h3{font-size:25px}.track-flow{font-size:10px;gap:10px}.track-stats{gap:50px}.track-stats strong{font-size:33px}.protocol-boundary{font-size:10px}.lesson-grid{grid-template-columns:1fr;gap:25px;margin-top:30px}.lesson-grid article{display:grid;grid-template-columns:25px 1fr;gap:10px 15px;border-top:1px solid var(--line);padding-top:20px}.lesson-number{padding-top:3px}.lesson-grid h3{margin:0;font-size:23px}.lesson-grid p{grid-column:2;font-size:12px}.scope{margin-top:30px}.scope summary,.scope>p{font-size:11px}.resources-section{padding:50px 0}.resource-grid{grid-template-columns:1fr;gap:25px;margin-top:30px}.resource-grid h3{margin:12px 0;font-size:23px}.resource-grid p{font-size:12px}.paper-section{padding-top:50px;padding-bottom:45px}.paper-section>h2{font-size:28px}.paper-subtitle{font-size:17px}.authors{font-size:12px;line-height:2.2}.authors br{display:none}.affiliations{font-size:10px}.affiliations br{display:none}.author-notes{font-size:9px}.citation-header{gap:8px}.citation-header span{font-size:9px}pre{padding:17px;font-size:9px}footer .wrap{flex-wrap:wrap;gap:10px 20px}footer p{order:3;width:100%}footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Local Inter fonts keep rendering consistent without a CDN. */
@font-face{font-family:Inter;src:url("fonts/Inter-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url("fonts/Inter-SemiBold.ttf") format("truetype");font-weight:500 600;font-display:swap}
@font-face{font-family:Inter;src:url("fonts/Inter-Bold.ttf") format("truetype");font-weight:650 900;font-display:swap}
:root{--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
@media(max-width:650px){.hero h1{font-size:clamp(42px,12.2vw,62px)}}

/* Wrap citation fields to the available width; source fields stay on one line. */
#bibtex{white-space:pre-wrap;overflow-wrap:anywhere}

.resource-grid article{border-top:1px solid #444;padding-top:18px}.resource-grid article>span{color:#808080;font-size:11px}

/* Bilingual navigation and Chinese typesetting. */
.language-switch{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:24px;flex-shrink:0}
.language-switch button{border:0;border-radius:18px;background:transparent;color:var(--ink-3);padding:5px 9px;font-size:12px;line-height:1.4;white-space:nowrap}
.language-switch button[aria-pressed="true"]{background:var(--ink);color:white}
html:lang(zh-CN) body{font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;line-height:1.75}
html:lang(zh-CN) h1,html:lang(zh-CN) h2,html:lang(zh-CN) h3{letter-spacing:-.025em;line-height:1.2}
html:lang(zh-CN) .eyebrow,html:lang(zh-CN) .section-label{letter-spacing:.04em}
html:lang(zh-CN) .hero h1{font-size:clamp(48px,7.2vw,96px)}
html:lang(zh-CN) .metric-name{line-height:1.4}
@media(max-width:800px){.nav-inner{gap:12px}.nav-paper{display:none}.language-switch{margin-left:auto}.nav-links{margin-left:auto;gap:16px}}
@media(max-width:480px){.nav-inner{gap:8px}.language-switch button{padding:5px 8px}.language-switch{margin-left:auto}}
