/* Additions scoped to the Qwen walkthrough and published contributions. */
.custody-modes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.custody-modes[hidden], #release-walkthrough[hidden], #qwen-walkthrough[hidden] { display: none; }
.custody-modes button { min-height: 46px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.custody-modes button[aria-selected=true] { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.qwen-panel { border: 1px solid #435440; border-radius: 5px; background: #152219; overflow: hidden; }
.qwen-heading { padding: 30px 28px 24px; border-bottom: 1px solid var(--line); }
.qwen-heading .eyebrow { font-size: 12px; margin: 0 0 14px; }
.qwen-heading h3 { font-size: 34px; line-height: 1.15; font-weight: 500; letter-spacing: -1px; margin: 0 0 15px; }
.qwen-heading h3 em { color: var(--lime); font-style: normal; }
.qwen-heading p { max-width: 740px; font-size: 16px; color: var(--muted); margin: 0; }
.qwen-hardware { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 20px; color: #dce8d1; font-size: 13px; }
.qwen-controls { padding: 24px 28px 0; }
.qwen-scenarios { display: flex; flex-wrap: wrap; gap: 8px; }
.qwen-scenarios button { border: 1px solid #465741; border-radius: 3px; background: transparent; color: #c5d0be; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.qwen-scenarios button[aria-pressed=true] { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.qwen-runbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.qwen-playback { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.qwen-secondary { background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 14px; padding: 10px 5px; min-height: 44px; cursor: pointer; }
.qwen-secondary:disabled { opacity: .4; cursor: default; }
.qwen-runbar p { margin: 0; font-size: 12px; color: var(--muted); }
.qwen-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; padding: 30px 28px; }
.qwen-diagram { min-width: 0; }
.qwen-holders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qwen-holder { padding: 18px; border: 1px solid #4b5e46; background: #1b2a20; border-radius: 4px; }
.qwen-share { font: 12px var(--mono); color: var(--lime); }
.qwen-holder h4 { font-size: 16px; margin: 12px 0 8px; font-weight: 500; }
.qwen-holder p { font-size: 13px; color: var(--muted); margin: 0; }
.qwen-paths { display: grid; grid-template-columns: 1fr 1fr; height: 32px; }
.qwen-paths span { justify-self: center; width: 1px; background: #697c58; position: relative; }
.qwen-paths span:after { content: '↓'; position: absolute; bottom: -5px; left: -5px; color: #a9bd8c; }
.qwen-broker { width: 82%; margin: auto; border: 1px solid #56694c; background: #202e22; text-align: center; padding: 15px; border-radius: 3px; }
.qwen-broker strong { display: block; font-size: 21px; font-weight: 500; }
.qwen-broker p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.qwen-route { font: 12px var(--mono); text-align: center; color: #c3d6a8; padding: 15px 0; }
.qwen-runtime { background: #1b2a20; border: 1px solid #4b5e46; border-radius: 4px; padding: 21px; }
.qwen-runtime-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font: 12px var(--mono); color: var(--muted); margin-bottom: 17px; }
.qwen-status { color: var(--lime); }
.qwen-runtime h4 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; font-weight: 500; overflow-wrap: anywhere; }
.qwen-runtime p { font-size: 13px; color: var(--muted); margin: 0; }
.qwen-engine { margin-top: 19px; border-top: 1px solid #405139; padding-top: 18px; }
.qwen-tokens { display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0 9px; min-height: 12px; }
.qwen-tokens span { display: block; width: 26px; height: 10px; background: var(--lime); opacity: .12; transition: opacity .25s; }
.qwen-tokens span:nth-child(3n) { width: 42px; }
.qwen-panel[data-stage="3"] .qwen-tokens span, .qwen-panel[data-stage="4"] .qwen-tokens span { opacity: .9; }
.qwen-panel[data-stage="5"] .qwen-tokens span { opacity: .45; background: var(--muted); }
.qwen-story { padding: 2px 0 0 27px; border-left: 1px solid var(--line); min-width: 0; }
.qwen-story-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font: 12px var(--mono); color: var(--muted); }
.qwen-narrative { min-height: 170px; margin-top: 28px; }
.qwen-narrative h4 { font-size: 25px; line-height: 1.25; font-weight: 500; letter-spacing: -.6px; margin: 0 0 14px; }
.qwen-narrative p { font-size: 16px; color: var(--muted); margin: 0; }
.qwen-result { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 23px; }
.qwen-result strong { color: var(--lime); font-size: 17px; font-weight: 500; }
.qwen-result p { color: var(--muted); font-size: 14px; margin: 9px 0 19px; }
.qwen-result a { font-size: 14px; color: var(--lime); }
.qwen-stages { display: flex; flex-wrap: wrap; list-style: none; gap: 10px 22px; padding: 21px 28px; margin: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.qwen-stages li[aria-current=step] { color: var(--lime); }
.qwen-records { border-top: 1px solid var(--line); padding: 20px 28px; }
.qwen-records summary { cursor: pointer; font-size: 15px; color: var(--ink); }
.qwen-records p { font-size: 14px; color: var(--muted); }
.qwen-records a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.qwen-times { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 23px 0; }
.qwen-times dt { color: var(--muted); font-size: 13px; }
.qwen-times dd { margin: 5px 0 0; font: 17px var(--mono); }
.qwen-evidence-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; margin-top: 28px; background: var(--surface, #17251c); border-left: 2px solid var(--lime); }
.qwen-evidence-link p { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.qwen-evidence-link strong { font-size: 18px; font-weight: 500; }
.publications-section { border-top: 1px solid var(--line); }
.publications-intro { max-width: 820px; }
.publications-intro h2 em { color: var(--lime); font-style: normal; }
.publications-intro > p:last-child { max-width: 660px; color: var(--muted); font-size: 17px; margin-top: 22px; }
.publications-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 38px; margin-top: 45px; }
.publication { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.publication .publication-type { font: 12px var(--mono); color: var(--lime); letter-spacing: .5px; margin: 0; }
.publication h3 { font-size: 24px; font-weight: 500; line-height: 1.25; margin: 20px 0 15px; }
.publication > p:not(.publication-type) { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.publication a { margin-top: auto; color: var(--lime); font-size: 14px; padding: 10px 0; align-self: start; }
.qwen-assurance-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 25px 0; }
.qwen-assurance-table th, .qwen-assurance-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 12px 10px 12px 0; }
@media(max-width:900px) { .qwen-layout { grid-template-columns: 1fr; } .qwen-story { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } .qwen-narrative { min-height: 0; } .publications-grid { gap: 25px; } }
@media(max-width:650px) { .qwen-heading, .qwen-controls, .qwen-records { padding-left: 18px; padding-right: 18px; } .qwen-layout { padding: 25px 18px; } .qwen-heading h3 { font-size: 30px; } .qwen-holders { gap: 10px; } .qwen-holder { padding: 14px 12px; } .qwen-holder h4 { font-size: 15px; } .qwen-runtime { padding: 16px; } .qwen-stages { padding: 18px; } .qwen-times { grid-template-columns: 1fr; gap: 14px; } .publications-grid { grid-template-columns: 1fr; gap: 32px; } .publication h3 { margin-top: 15px; } .qwen-assurance-table { font-size: 13px; } }
@media(prefers-reduced-motion:reduce) { .qwen-tokens span { transition: none; } }
