/* A bounded, source-ordered reading surface inside the retained private instrument. */
#compact-reading{font:13px/1.55 system-ui,sans-serif;color:#dbe5e2;min-width:0;overflow-wrap:anywhere}#compact-reading h3{font-size:16px;margin:8px 0}#compact-reading h4{font-size:13px;margin:8px 0}#compact-reading h5{font-size:12px;margin:12px 0 8px}#compact-reading p{margin:6px 0}#compact-reading button,#compact-reading select{font:inherit;max-width:100%;min-width:0}.cp-policy{font-size:11px;line-height:1.65;color:#c3d0c9}.cp-corpus,.cp-image-binding{font-size:10px;color:#adc1be}.cp-controls{display:flex;flex-wrap:wrap;gap:9px;align-items:end;margin:10px 0}.cp-controls>label{display:grid;gap:4px;flex:1 1 180px;font-size:11px;color:#c3d4cb}.cp-controls select{width:100%;background:#0e191c;color:#e5ece8;border:1px solid #526b66;border-radius:4px;min-height:36px;padding:6px}.cp-mode{display:flex;gap:5px;flex-wrap:wrap}.cp-button{background:#263d3a;color:#e6eee7;border:1px solid #61796c;border-radius:4px;min-height:34px;padding:6px 9px;cursor:pointer}.cp-button:disabled{opacity:.4;cursor:default}.cp-mode button[aria-pressed=true]{background:#65765d;color:#fff;border-color:#bac3a2}#compact-reading button:focus-visible,#compact-reading select:focus-visible{outline:2px solid #edc679;outline-offset:2px}.cp-status{color:#ebce9a;font-size:11px;line-height:1.6}.cp-status:empty{display:none}.cp-pagination{display:flex;flex-wrap:wrap;gap:7px;justify-content:space-between;align-items:center;margin:10px 0}.cp-window-count{font:10px/1.5 ui-monospace,monospace;color:#c5d8c8;flex:1 1 120px;text-align:center}.cp-paper{padding:16px 12px;background:#eee6d3;color:#283126;border:1px solid #b4aa8a;border-radius:5px;min-width:0;box-shadow:inset 0 0 18px #6d62451a}.cp-locus{min-width:0;margin:0 0 15px;border-bottom:1px solid #b3ad993b;padding-bottom:12px}.cp-locus:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.cp-locus-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;margin:0 0 6px}.cp-locus-heading h4{font:10px/1.5 ui-monospace,monospace!important;color:#656e58!important;margin:0!important}.cp-locus-type,.cp-continuation{font-size:9px;line-height:1.5;color:#74715b}.cp-continuation{font-style:italic}.cp-token-flow{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:7px;min-width:0}#compact-reading .cp-token{position:relative;display:inline-flex;align-items:baseline;gap:2px;max-width:100%;background:transparent;border:0;border-bottom:1px solid transparent;border-radius:3px;color:#263327;padding:2px 3px;min-height:29px;cursor:pointer;flex:0 0 auto;line-height:1.4;overflow-wrap:anywhere}#compact-reading .cp-token:hover{background:#d9d2bc}#compact-reading .cp-token.selected{background:#d1c7a7;outline:1px solid #78876a;outline-offset:1px}#compact-reading .cp-token-definition{font:17px/1.45 Georgia,'Times New Roman',serif;border-bottom:1px dotted #817657}#compact-reading .cp-token-glyph{font:24px/1.3 EvaHand1,EvaHand1Fallback,ui-monospace,monospace;color:#303b41}#compact-reading .cp-token-encoded{font:11px/1.6 ui-monospace,monospace;color:#60452c;border-bottom:1px dashed #a28d6d;background:#e5dcc5}.cp-definition-mark{font:10px/1 system-ui,sans-serif;color:#746341;align-self:start;margin-top:1px}.cp-lines .cp-locus{display:grid;grid-template-columns:74px minmax(0,1fr);column-gap:9px;align-items:center}.cp-lines .cp-locus-heading{display:block}.cp-lines .cp-locus-type,.cp-lines .cp-continuation{display:block}.cp-lines .cp-token-flow{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:4px 3px 8px;overscroll-behavior-x:contain;scrollbar-width:thin}.cp-lines .cp-token{white-space:nowrap;max-width:none!important}.cp-empty{font-size:12px;line-height:1.7}.cp-selected{margin-top:13px;border:1px solid #637266;border-radius:5px;padding:11px;background:#192823}.cp-selection-hint{font-size:11px;color:#c8d3c7}.cp-selected h4{color:#e9e0c7!important}.cp-field{margin:8px 0}.cp-field dt{font:10px/1.5 system-ui,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:#adcab5;font-weight:650}.cp-field dd{margin:3px 0;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.cp-selected>.cp-field dd{font-family:ui-monospace,monospace}.cp-selected dl>.cp-field:first-child dd{font:13px/1.7 ui-monospace,monospace;padding:7px;background:#0d1b18;border-radius:4px}.cp-evidence{margin-top:10px;border-top:1px solid #53685c}.cp-evidence>summary{cursor:pointer;min-height:38px;padding:9px 0;color:#cedbcc;font-size:11px}.cp-source{padding:8px;margin:6px 0;background:#0d181a;border-left:2px solid #859b82;font-size:11px}.cp-source code{white-space:pre-wrap;overflow-wrap:anywhere}.cp-source .cp-field dd{font:10px/1.6 ui-monospace,monospace}.cp-latest-card{border:1px solid #53685c;border-radius:4px;padding:9px;margin:8px 0}.cp-latest>p{font-size:11px;color:#c1d1c4}
@media(max-width:760px){.cp-controls{gap:8px}.cp-controls>label{flex-basis:100%}.cp-mode{width:100%}.cp-mode>.cp-button{flex:1}#compact-reading .cp-button,#compact-reading select{min-height:42px}.cp-paper{padding:12px 8px}.cp-token-flow{column-gap:5px;row-gap:8px}#compact-reading .cp-token{min-height:34px;padding:3px}#compact-reading .cp-token-definition{font-size:17px}#compact-reading .cp-token-glyph{font-size:25px}.cp-lines .cp-locus{grid-template-columns:59px minmax(0,1fr);gap:6px}.cp-pagination{gap:5px}.cp-window-count{flex-basis:100%;order:2}.cp-evidence>summary{min-height:44px}}
@media(prefers-reduced-motion:reduce){#compact-reading *{scroll-behavior:auto!important}}
/* The legacy application has a global sticky header rule. Reading headings belong in normal flow. */
#chip-research-context header,#compact-reading header{position:static;top:auto;z-index:auto;background:transparent;padding:0;border-bottom:0}
