#project-references{position:fixed;left:16px;top:180px;z-index:80;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;border:1px solid #cbb98c88;border-radius:10px;background:#203128f5;color:#eee8d7;box-shadow:0 12px 35px #0006;font:14px/1.4 system-ui;overflow:hidden}
#project-references[hidden],#project-references [hidden]{display:none!important}#project-references button{min-height:36px;padding:7px 10px;background:#34483b;color:#f3ead8;border:1px solid #b5bb9d55;border-radius:5px;font:inherit;cursor:pointer}#project-references button:focus-visible,#project-references input:focus-visible,#project-references summary:focus-visible{outline:2px solid #dcc694;outline-offset:2px}.ref-heading{display:flex;gap:6px;align-items:center;padding:8px;border-bottom:1px solid #b5bb9d33}.ref-heading h2{flex:1;margin:0;font:20px Georgia,serif}.ref-grip{touch-action:none;cursor:move!important}.ref-body{padding:12px;overflow:auto;max-height:calc(100dvh - 100px)}.ref-collapsed .ref-body{display:none}.ref-strip{display:flex;gap:6px;overflow:auto;padding-bottom:8px}.ref-strip button{flex:0 0 auto;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-strip button[aria-pressed=true]{background:#d8c6a1!important;color:#23362c!important}.ref-empty{margin:6px 0 14px;color:#dbd7c7}.ref-title{margin-bottom:8px}.ref-image-scroll{overflow:auto;max-height:40dvh;background:#121c17;border-radius:5px;overscroll-behavior:contain;touch-action:pan-x pan-y}.ref-image{display:block;width:100%;max-width:none;height:auto}.ref-image-controls{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin:8px 0}.ref-source{color:#e1c993;margin:0 5px}.ref-remove{margin-left:auto}.ref-add{border-top:1px solid #b5bb9d33;padding-top:10px}.ref-add summary{cursor:pointer;min-height:32px}.ref-add label{display:grid;gap:6px}.ref-add form{display:grid;gap:8px;margin:12px 0}.ref-add small{font-size:12px;color:#bac4b7;display:block}.ref-upload input{max-width:100%;font:14px system-ui}.ref-body input:not([type=file]){width:100%;box-sizing:border-box;min-height:38px;background:#15241b;color:#f3ead8;border:1px solid #b5bb9d55;border-radius:4px;padding:8px;font:16px system-ui}.ref-status{margin:8px 0 0;color:#e1c993}.ref-status:empty{display:none}@media(max-width:600px){#project-references{top:150px;left:12px;width:min(320px,calc(100vw - 24px));max-height:65dvh}.ref-body{max-height:calc(65dvh - 76px)}.ref-image-scroll{max-height:30dvh}}
