.references{width:300px;max-width:none;background:#fafafa!important;border:1px solid #e4e4e4!important;border-radius:22px!important;padding:14px!important;color:#555!important;box-shadow:0 5px 28px #00000006!important;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,sans-serif}
.references .work-heading{margin:0 0 10px;font:400 14px/20px -apple-system,BlinkMacSystemFont,sans-serif;color:#777}
.references .camera-tile,.references .camera-tile.camera-live{width:100%;height:auto;min-height:0;aspect-ratio:1.61;border:1px solid #e5e5e5;border-radius:15px;background:#fff;overflow:hidden}
.references .camera-tile #camera-button{width:36px;height:36px;border:1px solid #dedede;border-radius:50%;background:#f8f8f8;color:#777}.references .camera-tile.camera-live #camera-button{background:#222a;color:white;right:8px;bottom:8px}.references .camera-icon{width:18px!important;height:18px!important}
.references .panel-progress,.references .work-outputs,.references .work-sources{border:0;border-top:1px solid #dedede;padding:15px 0 0;margin:12px 0 0}
.references .panel-progress>div{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;height:31px;margin:0;color:#555;font:400 14px/20px -apple-system,BlinkMacSystemFont,sans-serif}
.references .panel-progress>div>span:nth-child(2){white-space:nowrap;overflow:hidden;mask-image:linear-gradient(to right,#000 90%,transparent)}
.references .panel-progress small{display:block!important;font:inherit;color:#888;margin:0}
.work-check,.work-file,.work-source{display:grid;place-items:center;flex:none;width:18px;height:20px;color:#777}.references svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.work-file{color:#1687ff}
.references .work-row,.references .work-more,.references .source-link{display:flex;align-items:center;gap:10px;width:100%;height:31px;min-height:0;margin:0;padding:0;text-align:left;white-space:nowrap;overflow:hidden;color:#555;font:400 14px/20px -apple-system,BlinkMacSystemFont,sans-serif}
.work-row>span:last-child{overflow:hidden;mask-image:linear-gradient(to right,#000 92%,transparent)}.references .work-more{height:24px;color:#888}.references .source-link small{display:none}.references .source-link:last-child{color:#888}.references .work-sources{border-bottom:1px solid #dedede;padding-bottom:10px}.references .rail-heading,.references .reference-stack,.references>#taste-open{display:none}
@media(max-width:680px){.references{width:300px;max-width:100%}}
@media(min-width:681px){
 .references{width:100%;height:var(--panel-height);display:flex;flex-direction:column;padding:14px!important;transform:none}
 .references>.work-heading{flex:none}
 .references .camera-tile,.references .camera-tile.camera-live{flex:none;max-height:26%;width:100%;aspect-ratio:1.61}
 .references .panel-progress,.references .work-outputs,.references .work-sources{display:flex;flex-direction:column;min-height:0;margin-top:12px;padding-top:12px}
 .references .panel-progress{flex:5}
 .references .work-outputs{flex:7}
 .references .work-sources{flex:4.5;padding-bottom:4px}
 .references section>.work-heading{flex:none;margin-bottom:10px}
 .references .panel-progress>div,.references .work-row,.references .source-link{flex:1;min-height:20px;height:auto}
 .references .work-more{flex:none;height:23px}
}
.references .clean-icon svg.pastel-mark{width:18px;height:18px;stroke:none;fill:none;overflow:visible}
.references .clean-icon{align-self:center}
.references .source-link .work-source{display:grid;place-items:center;margin:0;width:18px;height:20px;font-size:inherit;color:#777}
.references .work-row,.references .source-link{gap:12px}
.references .panel-progress>div{column-gap:12px}
.references .work-check,.references .work-file,.references .work-source{align-self:center}
.references .work-sources .source-link{align-items:center}
@media(min-width:681px){main{padding-top:20px!important;padding-right:20px!important}.references .panel-progress,.references .work-outputs,.references .work-sources{padding-top:16px;margin-top:12px}}

/* Reference-card scale, using the existing 14px row text as the fixed base unit. */
.references{overflow-y:auto;scrollbar-width:none}
.references::-webkit-scrollbar{display:none}
.references .work-heading{margin:0 0 17px;font-size:15px;line-height:20px}
.references .panel-progress,.references .work-outputs,.references .work-sources{margin-top:20px;padding-top:20px}
.references .panel-progress>div{grid-template-columns:14px minmax(0,1fr) auto;column-gap:16px;height:32px;font-size:14px;line-height:20px}
.references .panel-progress small{font-size:12px;line-height:16px}
.work-check,.work-file,.work-source{width:14px;height:16px}
.references svg{width:14px;height:14px}
.references .work-row,.references .work-more,.references .source-link{gap:16px;height:32px;font-size:14px;line-height:20px}
.references .work-more{height:24px;font-size:14px}
@media(min-width:681px){
 .references .panel-progress,.references .work-outputs,.references .work-sources{flex:none;margin-top:20px;padding-top:20px}
 .references section>.work-heading{margin-bottom:17px}
 .references .panel-progress>div,.references .work-row,.references .source-link{flex:0 0 32px;min-height:32px;height:32px}
 .references .work-more{flex:0 0 24px;height:24px}
}

/* A slightly stronger icon presence and a slower, quieter text fade. */
.work-check,.work-file,.work-source{width:16px;height:18px}
.references svg{width:16px;height:16px}
.references .panel-progress>div{grid-template-columns:16px minmax(0,1fr) auto}
.work-row>span:last-child,.references .panel-progress>div>span:nth-child(2){mask-image:linear-gradient(to right,#000 97%,transparent)}
.references .panel-progress,.references .work-outputs,.references .work-sources{border-top-color:#e8e8e8}
.references .work-sources{border-bottom-color:#e8e8e8}

.work-check,.work-file,.work-source{width:18px;height:20px}
.references svg{width:18px;height:18px}
.references .panel-progress>div{grid-template-columns:18px minmax(0,1fr) auto}
.references .work-row,.references .source-link{gap:14px}
.work-row>span:last-child{mask-image:linear-gradient(to right,#000 99.5%,transparent)}

.references .section-view-all{display:flex;align-items:center;gap:14px;width:max-content;height:28px;margin:6px 0 0;padding:0;border:0;background:transparent;color:#9a9a9a;font:400 14px/20px -apple-system,BlinkMacSystemFont,sans-serif}
.references .section-view-all svg{width:18px;height:18px;stroke:#9a9a9a;stroke-width:1.6}
.references .section-view-all img{display:block;width:22px;height:20px;object-fit:cover;mix-blend-mode:multiply}

/* Keep the ChatGPT-like card rhythm, just a little denser. */
.references .work-heading{margin-bottom:14px}
.references .panel-progress,.references .work-outputs,.references .work-sources{margin-top:16px;padding-top:16px}
.references .panel-progress>div,.references .work-row,.references .source-link{height:30px}
.references .section-view-all{height:24px;margin-top:4px}
@media(min-width:681px){
 .references .panel-progress,.references .work-outputs,.references .work-sources{margin-top:16px;padding-top:16px}
 .references section>.work-heading{margin-bottom:14px}
 .references .panel-progress>div,.references .work-row,.references .source-link{flex-basis:30px;min-height:30px;height:30px}
}

/* Bring the camera title and its frame a touch closer together. */
.references>.work-heading{margin-bottom:10px}

/* Use the same close title-to-content rhythm throughout the card. */
.references .panel-progress,.references .work-outputs,.references .work-sources{margin-top:12px;padding-top:10px}
.references section>.work-heading{margin-bottom:10px}
@media(min-width:681px){
 .references .panel-progress,.references .work-outputs,.references .work-sources{margin-top:12px;padding-top:10px}
 .references section>.work-heading{margin-bottom:10px}
}

/* A single 10px vertical cadence across the entire reference card. */
.references .panel-progress,.references .work-outputs,.references .work-sources{margin-top:10px;padding-top:10px;gap:10px}
.references section>.work-heading{margin:0}
.references .section-view-all{margin-top:0}
@media(min-width:681px){
 .references .panel-progress,.references .work-outputs,.references .work-sources{margin-top:10px;padding-top:10px;gap:10px}
 .references section>.work-heading{margin:0}
}

/* Compensate for the title's visible line-height so this reads as the same gap. */
.references .panel-progress{margin-top:14px}
@media(min-width:681px){.references .panel-progress{margin-top:14px}}

/* Keep section framing at 10px, but tighten only repeated rows to 6px. */
.references .panel-progress,.references .work-outputs,.references .work-sources{gap:0}
.references section>.work-heading{margin:0 0 6px}
.references .panel-progress>div+div,.references .work-outputs .work-row+.work-row,.references .work-sources .source-link+.source-link{margin-top:0}
.references .section-view-all{margin-top:6px}

.references .reference-library-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 6px}
.references .reference-library-title h2{margin:0;color:#555;font:400 15px/20px -apple-system,BlinkMacSystemFont,sans-serif}
.references .reference-library-title button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid #ddd;border-radius:50%;background:transparent;color:#777;font:400 18px/1 -apple-system,BlinkMacSystemFont,sans-serif}
.references .reference-group-label{margin:0 0 4px;color:#999;font:500 10px/14px -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:.045em;text-transform:uppercase}

/* Bring the Progress tick closer to its sentence. */
.references .panel-progress>div{column-gap:8px}
.references .work-row,.references .source-link{gap:8px}

/* Only the row labels become smaller; headings and View all keep their scale. */
.references .panel-progress>div,.references .work-row,.references .source-link{font-size:14px}

/* Sources ends cleanly after View all. */
.references .work-sources{border-bottom:0}
.references .work-sources{padding-bottom:0}

/* Evidence → understanding → action. */
.references .system-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;column-gap:8px;width:100%;min-height:40px;margin:0;padding:0;border:0;background:transparent;color:#555;text-align:left;font-family:-apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
.references .system-icon{display:grid;place-items:center;width:18px;height:18px;color:#777}
.references .system-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.references .system-copy{display:flex;min-width:0;flex-direction:column;justify-content:center;gap:1px}
.references .system-copy strong{overflow:hidden;color:#555;font-size:14px;font-weight:400;line-height:17px;text-overflow:ellipsis;white-space:nowrap}
.references .system-copy small{overflow:hidden;color:#999;font-size:10px;font-weight:400;line-height:13px;text-overflow:ellipsis;white-space:nowrap}
.references .system-state{align-self:center;color:#999;font-size:10px;line-height:14px;white-space:nowrap}
.references .system-row:focus-visible{outline:1px solid #8d6f76;outline-offset:2px;border-radius:4px}
.references .panel-progress,.references .work-outputs,.references .work-sources{gap:0}
.references .system-row+.system-row{margin-top:0}
.references .section-view-all{margin-top:6px}

/* Live interview context: evidence stays visible while interpretation remains downstream. */
.references.clean-ledger{padding:16px!important;overflow-y:auto}
.references.clean-ledger>.work-heading{color:#777;font-size:15px;font-weight:400;margin-bottom:10px}
.references .clean-group{flex:none;display:block;margin:14px 0 0;padding:14px 0 0;border-top:1px solid #e8e8e8}
.references .clean-group h2{margin:0 0 6px;color:#777;font:400 15px/21px -apple-system,BlinkMacSystemFont,sans-serif}
.references .clean-row{display:flex;align-items:center;gap:8px;width:100%;height:31px;padding:0;border:0;background:transparent;color:#707070;text-align:left;cursor:pointer;font:400 14px/20px -apple-system,BlinkMacSystemFont,sans-serif}
.references .clean-row[hidden]{display:none}
.references .clean-icon{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;color:#7e7e7e}
.references .clean-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.references .reference-list .clean-icon{color:#1687ff}
.references .clean-icon.icon-sun{color:#d6af41}
.references .clean-icon.icon-texture{color:#d18d9d}
.references .clean-icon.icon-shape{color:#9c8ac3}
.references .clean-icon.icon-clothing{color:#74afbb}
.references .clean-icon.icon-compass{color:#8eb9bb}
.references .clean-icon.icon-spark{color:#d4aa54}
.references .clean-icon.icon-image{color:#e58aaf}
.references .clean-icon.icon-document{color:#449ce9}
.references .clean-icon.icon-id{color:#a092bb}
.references .clean-icon.icon-globe{color:#829ca5}
.references .context .clean-icon{color:#888}
.references .responses .clean-icon{color:#9b8397}
.references .clean-label{flex:1;min-width:0;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(to right,#000 calc(100% - 12px),transparent)}
.references .clean-state{flex:none;color:#999;font-size:12px}
.references .clean-more{display:block;margin:6px 0 0;padding:0;border:0;background:transparent;color:#999;font:400 14px/22px -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
.references .clean-label{color:#626262}
.references .clean-icon{filter:saturate(1.1) brightness(.94)}
.references .clean-state,.references .clean-more{color:#888}
.references .work-heading{color:#696969}
.references .clean-row:hover .clean-label{color:#333}
.references .clean-row:focus-visible,.references .clean-more:focus-visible{outline:2px solid #aaa;outline-offset:2px;border-radius:4px}
dialog.evidence-inspector{width:min(480px,calc(100vw - 40px));max-height:80vh;box-sizing:border-box;padding:30px;border:1px solid #e5e5e5;border-radius:20px;background:#fff;color:#555;box-shadow:0 12px 60px #0002;overflow:auto;font-family:-apple-system,BlinkMacSystemFont,sans-serif}
dialog.evidence-inspector::backdrop{background:#0003}
.evidence-inspector .inspector-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:#888;font-size:25px;cursor:pointer}
.evidence-inspector .inspector-eyebrow{color:#999;font-size:12px;margin:0 0 12px}
.evidence-inspector h2{margin:0 0 20px;font:400 23px/30px -apple-system,BlinkMacSystemFont,sans-serif;color:#444}
.evidence-inspector p{font:400 14px/22px -apple-system,BlinkMacSystemFont,sans-serif}
.evidence-inspector blockquote{margin:18px 0;padding:12px 16px;border-left:2px solid #ddd;background:#fafafa;font-size:15px;line-height:23px}
.inspector-actions{display:flex;gap:8px;margin-top:20px}
.inspector-actions button{padding:9px 13px;border:1px solid #ddd;border-radius:8px;background:#fafafa;color:#555;cursor:pointer}
.references .ledger-item{display:block;flex:none;width:100%;height:auto;min-height:0;margin:0;padding:0;font:400 14px/20px -apple-system,BlinkMacSystemFont,sans-serif}
.references .ledger-item summary{display:grid;grid-template-columns:18px minmax(0,1fr) 12px;gap:8px;align-items:center;min-height:46px;cursor:pointer;list-style:none}
.references .ledger-item summary::-webkit-details-marker{display:none}
.references .ledger-item .system-copy small{font-size:12px;line-height:16px;color:#888}
.references .ledger-chevron{color:#999;font-size:18px;transition:transform .15s}
.references .ledger-item[open] .ledger-chevron{transform:rotate(90deg)}
.references .ledger-detail{margin:2px 0 9px 26px;padding:8px 10px;border-left:1px solid #ddd;color:#666;font:400 12px/18px -apple-system,BlinkMacSystemFont,sans-serif}
.references .ledger-detail p{margin:0 0 8px;font:inherit;color:inherit}
.references .ledger-detail p:last-child{margin-bottom:0}
.references .ledger-detail blockquote{margin:8px 0;padding:8px;background:#f0f0f0;border-radius:6px;font:inherit}
.references .ledger-detail small{font:400 11px/16px -apple-system,BlinkMacSystemFont,sans-serif;color:#888}
.references .ledger-actions{display:flex;gap:8px}
.references .ledger-actions button{border:1px solid #ddd;border-radius:6px;background:white;padding:5px 8px;color:#555;font:inherit}
.references .ledger-count{float:right;color:#999;font-size:12px}
.references .more-references[hidden]{display:none}
.references .ledger-item summary:focus-visible{outline:2px solid #aaa;outline-offset:2px;border-radius:4px}
.references .world-header{display:flex;align-items:flex-start;justify-content:space-between;margin:0 0 12px}
.references .world-header h2{margin:0;color:#505050;font:400 17px/21px -apple-system,BlinkMacSystemFont,sans-serif}
.references .world-header p{margin:2px 0 0;color:#999;font:400 11px/14px -apple-system,BlinkMacSystemFont,sans-serif}
.references .live-status{display:flex;align-items:center;gap:6px;margin-top:3px;color:#777;font:400 11px/14px -apple-system,BlinkMacSystemFont,sans-serif}
.references .live-status i{width:6px;height:6px;border-radius:50%;background:#7e3e4d;box-shadow:0 0 0 3px #7e3e4d16}
.references .confirmation-card{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:8px;margin-top:7px;padding:10px;border:1px solid #e4e4e4;border-radius:11px;background:#fff}
.references .confirmation-icon{grid-row:1 / span 2;display:grid;place-items:center;width:18px;height:18px;color:#777}
.references .confirmation-icon svg{width:18px;height:18px}
.references .confirmation-copy{display:flex;min-width:0;flex-direction:column;gap:1px}
.references .confirmation-copy strong{color:#555;font:400 13px/17px -apple-system,BlinkMacSystemFont,sans-serif}
.references .confirmation-copy small{overflow:hidden;color:#999;font:400 10px/13px -apple-system,BlinkMacSystemFont,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.references .confirmation-actions{grid-column:2;display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:8px}
.references .confirmation-actions button{min-width:48px;height:25px;padding:0 9px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#777;font:400 11px/1 -apple-system,BlinkMacSystemFont,sans-serif}
.references .confirmation-actions .confirm-primary{border-color:#282828;background:#282828;color:#fff}
.references .confirmation-actions span{color:#777;font:400 11px/14px -apple-system,BlinkMacSystemFont,sans-serif}
.references .confirmation-card.confirmed{border-color:#ddd;background:#fdfdfd}
.references .subsection-label{margin:9px 0 5px;color:#888;font:400 12px/16px -apple-system,BlinkMacSystemFont,sans-serif}
.references .reference-index{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:10px;padding:10px 0 0;border:0;border-top:1px solid #e8e8e8;background:transparent;color:#555;text-align:left}
.references .reference-index span{display:flex;min-width:0;flex-direction:column;gap:1px}
.references .reference-index strong{font:400 14px/18px -apple-system,BlinkMacSystemFont,sans-serif}
.references .reference-index small{overflow:hidden;color:#999;font:400 11px/14px -apple-system,BlinkMacSystemFont,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.references .reference-index b{color:#888;font:400 12px/18px -apple-system,BlinkMacSystemFont,sans-serif;white-space:nowrap}
.references .panel-progress{margin-top:12px}
.references .panel-progress,.references .work-outputs,.references .work-sources{padding-top:10px}
.references .panel-progress .system-row,.references .work-outputs .system-row,.references .work-sources .system-row{min-height:38px}
@media(min-width:681px){
 .references .world-header{flex:none}
 .references>.work-heading{flex:none}
 .references .panel-progress,.references .work-outputs,.references .work-sources{flex:none}
}
