*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#101722;color:#eae8df}button,input,select,textarea{font:inherit}a{color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;min-height:44px;border:1px solid #697787;border-radius:7px;padding:12px 17px;background:#253448;color:inherit}button:disabled{cursor:not-allowed;opacity:.6}:focus-visible{outline:3px solid #efc780;outline-offset:4px}[hidden]{display:none!important}.skip{position:fixed;top:-60px;z-index:10;padding:14px;background:#fff;color:#111}.skip:focus{top:8px}.entrance{position:relative;min-height:100svh;isolation:isolate;overflow:hidden}.mansion{position:absolute;inset:0;z-index:-2;background:url('/mansion.png') center 27%/cover no-repeat;transform:scale(1.15);transform-origin:center top}.entrance:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,12,22,.94),rgba(7,12,22,.7) 43%,rgba(7,12,22,.1)),linear-gradient(0deg,#0a101b,transparent 65%)}.entry-header{display:flex;justify-content:space-between;align-items:center;padding:32px 5vw}.brand{text-decoration:none;letter-spacing:.15em;font-weight:800;font-size:23px}.brand span{color:#e8bf79}.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:600;color:#c1b394}.entry-content{padding:7vh 5vw 32px;max-width:1100px}.entry-content h1{font-family:Georgia,serif;font-size:clamp(42px,5.2vw,78px);font-weight:400;line-height:1.04;letter-spacing:-.035em;margin:24px 0}.entry-content>p{color:#cecfd3;font-size:19px}.signin{margin-top:32px;max-width:360px}.signin button{width:100%;display:flex;justify-content:space-between;background:#e8c68b;color:#182030;border:0;font-weight:700}.signin p{font-size:13px;line-height:1.5;min-height:40px;color:#d0c9bd}.destinations{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:6vh}.destinations a{padding:22px 20px;background:#101a29df;border:1px solid #5b5d65;text-decoration:none;display:grid;gap:14px;border-radius:5px}.destinations a:hover{border-color:#e8c68b;background:#1b2939}.destinations small{font-size:10px;letter-spacing:.14em;color:#d9b979}.destinations strong{font-size:16px;display:flex;justify-content:space-between;gap:10px}.entry-content .entry-note{font-size:12px;color:#aaaeb8;margin-top:28px}#workspace{display:grid;grid-template-columns:230px 1fr;min-height:100svh;background:#f4f2ed;color:#192b3a}.sidebar{background:#142535;color:#e3e7e9;padding:30px 22px;display:flex;flex-direction:column;gap:30px}.sidebar .brand{font-size:20px}.sidebar nav{display:grid;gap:7px}.sidebar button{text-align:left;background:transparent;border-color:transparent}.sidebar button[aria-current=page]{background:#304556}.sidebar-footer{margin-top:auto;display:grid;gap:16px;font-size:12px}.desk{padding:48px max(24px,5vw);max-width:1300px;width:100%}.desk-header{display:flex;justify-content:space-between;align-items:center;gap:20px}.desk h1{font-family:Georgia,serif;font-size:42px;margin:10px 0 25px;font-weight:400}.desk .eyebrow{color:#637881}.desk button{background:#183747;color:white}.items{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.item{background:#fff;padding:22px;border:1px solid #d4d9d7;border-radius:9px}.item h2{font-size:19px;line-height:1.4;overflow-wrap:anywhere}.item p{font-size:13px;color:#52616a}.item button{background:transparent;color:#173747;padding:8px 0;border:0;text-decoration:underline}#notice{min-height:25px;color:#725020;line-height:1.5}#editor{max-width:760px;background:#fff;border:1px solid #d4d9d7;padding:25px;border-radius:8px}form{display:grid;gap:18px}label{display:grid;gap:8px;font-size:13px;font-weight:600}input,select,textarea{width:100%;color:#192b3a;background:#fff;border:1px solid #829097;border-radius:4px;padding:12px}textarea{resize:vertical;line-height:1.6}fieldset{border:1px solid #d4d9d7;border-radius:5px}#references label{display:flex;align-items:center;padding:8px;font-weight:400}#references input{width:auto}.actions{display:flex;gap:10px;flex-wrap:wrap}form p,#account p{font-size:14px;line-height:1.7;color:#53646c}@media(max-width:720px){.entry-header{padding:24px}.entry-header>.eyebrow{display:none}.entry-content{padding:8vh 24px 24px}.mansion{background-position:62% top}.entrance:after{background:linear-gradient(90deg,#07101be8,#07101b80),linear-gradient(0deg,#0a101b,transparent)}.destinations{grid-template-columns:1fr;gap:8px;margin-top:32px}.destinations a{padding:14px 16px;gap:8px}.entry-content h1{font-size:46px}.signin{max-width:none}#workspace{grid-template-columns:1fr}.sidebar{padding:18px;gap:16px}.sidebar>.eyebrow{display:none}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar button{font-size:12px;padding:10px}.sidebar-footer{display:flex;align-items:center;justify-content:space-between}.desk{padding:24px 18px}.desk h1{font-size:32px}.desk-header{align-items:flex-start}.desk-header>button{font-size:12px}.items{grid-template-columns:1fr}.actions button{flex:1}#editor{padding:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#workflow-panel{max-width:900px}#workflow-panel>p{line-height:1.6;color:#53646c}#workflow-form,#workflow-detail{padding:24px;background:#fff;border:1px solid #d4d9d7;border-radius:8px;margin:20px 0}#workflow-sources label{display:flex;align-items:center;gap:10px;padding:8px}#workflow-sources input{width:auto}#workflow-detail details{margin:20px 0}#workflow-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 ui-monospace,monospace;max-height:500px;overflow:auto;padding:16px;background:#f1f3f2}#workflow-detail summary{cursor:pointer;min-height:44px;padding:12px 0}#workflow-note-label{margin-top:18px}
.evidence-card{margin:18px 0;padding:18px;border:1px solid #cdd6d5;border-left:4px solid #bb9659;border-radius:6px;background:#fcfbf8}.evidence-card h3{font-size:14px;color:#52616a}.evidence-card blockquote{margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.65 Georgia,serif}.evidence-card p,#workflow-summary{font-size:13px;line-height:1.65;overflow-wrap:anywhere}.evidence-card details{border-top:1px solid #d4d9d7}.evidence-card button{font-size:12px}#workflow-draft{color:#193646}
#version-panel{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid #ccd5d5}#version-panel h2{font-size:19px}#version-panel p{font-size:13px;line-height:1.6}#version-list{margin-top:12px}#version-list button{padding:8px 12px;font-size:12px}.version-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.version-columns section{min-width:0}#version-panel pre{font:12px/1.6 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto;background:#f1f3f2;padding:12px}#version-panel h4{font-size:12px}@media(max-width:720px){.version-columns{grid-template-columns:1fr}}
/* Keep long questions, receipts and native controls inside narrow/zoomed layouts. */
.desk,.desk-header>div,#workflow-panel,#editor,#version-panel,.item{min-width:0}.desk h2,.desk h3,.desk h4,.desk label,.desk button{overflow-wrap:anywhere}.desk input,.desk select,.desk textarea{min-width:0;max-width:100%}#workflow-sources label,#references label{min-height:44px}#workflow-sources input,#references input{flex:0 0 auto;width:20px;height:20px}#workspace-main:focus,#main:focus{outline:3px solid #bf8b30;outline-offset:-3px}.signin:focus{outline:3px solid #efc780;outline-offset:6px}@media(max-width:720px){.desk-header{flex-wrap:wrap}.desk input,.desk select,.desk textarea{font-size:16px}.desk-header>button{max-width:100%}.desk .actions{align-items:stretch}.desk .actions button{min-width:min(100%,140px)}}@media(forced-colors:active){button,input,select,textarea,.item,.evidence-card{border:1px solid CanvasText}:focus-visible{outline:3px solid Highlight}}

/* Preserve readable, per-source version observations in the review summary. */
#workflow-summary{white-space:pre-line}

.workflow-brief-status{white-space:pre-line}
.source-preview{min-width:0;margin-top:18px;padding:16px;border:1px solid #ccd5d5;border-radius:6px}.source-preview p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.source-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 ui-monospace,monospace;max-height:400px;overflow:auto;background:#f1f3f2;padding:12px}#workflow-sources>div{padding-bottom:12px}#workflow-sources>div>button{font-size:12px}

#library-search-form{max-width:760px;margin:0 0 24px;padding:18px;border:1px solid #d4d9d7;border-radius:8px;background:#fff;gap:10px}#library-search-form p{margin:0;overflow-wrap:anywhere}

.source-coverage{margin:18px 0;padding:18px;border:1px solid #cdd6d5;border-radius:6px;min-width:0}.source-coverage article{border-top:1px solid #d4d9d7;padding:14px 0}.source-coverage p{font-size:13px;line-height:1.65;overflow-wrap:anywhere}.source-coverage h4{margin:8px 0}.coverage-warning{font-weight:700;color:#725020}

/* Question-first desk, with explicit human review rather than simulated chat. */
.research-steps{display:flex;flex-wrap:wrap;gap:12px 30px;padding:0;list-style-position:inside;color:#53646c;font-size:13px;line-height:1.7}.question-label{font-size:18px}.question-label textarea{font-size:18px;min-height:130px;background:#fcfbf8}.question-help{margin:0}#workflow-progress{padding:14px;border-left:3px solid #bb9659;background:#f4f2ed;line-height:1.7}#brief-return{margin:0 0 16px;background:#fff;color:#183747}#capture-for-question{background:#fff;color:#183747}#workflow-form fieldset{padding:18px}#workflow-form>button[type=submit]{justify-self:start}@media(max-width:720px){.research-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px}.question-label textarea{font-size:16px}#workflow-form,#workflow-detail{padding:16px}#workflow-form fieldset{padding:12px}}

.candidate-run{border:1px solid #ccd5d5;border-radius:6px;margin:16px 0;padding:18px}.candidate-run p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65}.candidate-run section{border-top:1px solid #d4d9d7;padding:12px 0}.candidate-run .actions{margin-top:16px}

/* Original decorative artwork; navigation is real text, never baked into pixels. */
.room-overview{margin-top:36px;padding-top:20px;border-top:1px solid #637080}.room-overview h2{font:400 24px Georgia,serif;margin:0 0 12px}.room-art{display:block;width:100%;height:auto;max-height:230px;object-fit:contain;background:#0d182b;border-radius:6px}.room-overview .destinations{margin-top:12px}.room-overview .destinations a>span{font-size:13px;line-height:1.5;color:#d0d4da}.room-overview .destinations a:nth-child(1){border-top:3px solid #b78c94}.room-overview .destinations a:nth-child(2){border-top:3px solid #9caf9b}.room-overview .destinations a:nth-child(3){border-top:3px solid #d6b47c}.room-help{font-size:12px;color:#c4cbd4;line-height:1.6}.entry-header .brand{font-size:clamp(17px,3vw,23px)}
@media(max-width:720px){.room-overview h2{font-size:22px}.room-overview .destinations{grid-template-columns:1fr}.room-art{max-height:160px}.entry-content{padding-top:4vh}}

#identity-panel{max-width:900px;min-width:0}#identity-panel p{line-height:1.65;overflow-wrap:anywhere}#identity-detail{margin-top:24px;padding:20px;background:#fff;border:1px solid #ccd5d5;border-radius:8px;min-width:0}#identity-detail section{padding:14px 0;border-top:1px solid #ccd5d5}#identity-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 ui-monospace,monospace;max-height:400px;overflow:auto;background:#f1f3f2;padding:12px}#identity-detail summary{cursor:pointer;min-height:44px;padding:12px 0}#identity-detail h2:focus{outline:3px solid #bf8b30;outline-offset:3px}

#identity-create-form,#identity-mention-form{margin-block:1.5rem;padding:1rem;border:1px solid currentColor}#identity-original,#identity-quote{white-space:pre-wrap;overflow-wrap:anywhere;max-height:30rem;overflow:auto}#identity-pin{overflow-wrap:anywhere}

#context-identity-choices label{display:block;overflow-wrap:anywhere;margin-top:1rem}#context-identity-choices pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:16rem;overflow:auto}#context-identity-saved{border:1px solid currentColor;padding:1rem;margin:1rem 0;overflow-wrap:anywhere}

/* Invited account controls; the existing retro entrance remains unchanged. */
#account,#admin-panel{max-width:800px}#settings-form,#invite-form{margin:24px 0;padding:24px;background:#fff;border:1px solid #d4d9d7;border-radius:6px}#settings-form button,#invite-form button{justify-self:start}#admin-panel>p,#admin-panel p,#account p{line-height:1.7}.access-row{padding:20px 0;border-bottom:1px solid #ccd5d5}.access-row h3{font-size:16px;overflow-wrap:anywhere}.access-row label{margin:14px 0}.access-row button{background:transparent;color:#183747}.access-row input{max-width:520px}#usage-status{white-space:pre-line}@media(max-width:720px){#settings-form,#invite-form{padding:16px}.access-row input{width:100%}}

/* Read-only bounded identity map. Connection text remains the primary interface. */
#identity-map{margin-block:2rem;padding:1.25rem;border:1px solid #ccd5d5;border-radius:6px;container-type:inline-size}#identity-map h2{margin-top:0}#identity-map p{line-height:1.6;overflow-wrap:anywhere}#identity-map h3 small{font:inherit;font-weight:400}.identity-map-canvas{position:relative;height:500px;isolation:isolate}#identity-map .identity-map-node{position:absolute;z-index:1;transform:translate(-50%,-50%);width:21%;min-width:0;display:block;background:#fff;color:#183747;border:1px solid #73848b;padding:.65rem;overflow-wrap:anywhere;text-align:left}#identity-map .identity-map-node[aria-pressed=true]{background:#183747;color:#fff}.identity-map-node strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.identity-map-node small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.72rem;margin-top:.3rem}.map-slot-0{left:50%;top:12%}.map-slot-1,.map-slot-5{left:10%}.map-slot-2,.map-slot-6{left:36.6666%}.map-slot-3,.map-slot-7{left:63.3333%}.map-slot-4,.map-slot-8{left:90%}.map-slot-1,.map-slot-2,.map-slot-3,.map-slot-4{top:45%}.map-slot-5,.map-slot-6,.map-slot-7,.map-slot-8{top:82%}.identity-map-lines{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.map-edge{fill:none;stroke:#566d7a;stroke-width:2;vector-effect:non-scaling-stroke}.map-edge.proposed{stroke-dasharray:7 5}.map-edge.rejected{stroke:#855158;stroke-dasharray:2 5}.map-edge.revoked{stroke:#756a63;stroke-dasharray:9 3 2 3}.map-edge.mention{stroke:#487666;stroke-dasharray:3 3}.identity-map-edges{display:grid;gap:.5rem}#identity-map .identity-map-edge{text-align:left;background:transparent;color:#183747;border:1px solid #bac9cc;white-space:normal;overflow-wrap:anywhere}.identity-map-edge[data-status=confirmed]{border-left:4px solid #183747}.identity-map-edge[data-status=proposed]{border-left:4px dashed #566d7a}.identity-map-edge[data-status=rejected]{border-left:4px dotted #855158}.identity-map-edge[data-status=revoked]{border-left:4px dashed #756a63}#identity-map-proof{margin-top:1.5rem;border-top:1px solid #ccd5d5;padding-top:1rem;overflow-wrap:anywhere}#identity-map-proof pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto}#identity-map button:focus-visible{outline:3px solid #b18a42;outline-offset:3px}
@container(max-width:620px){.identity-map-canvas{height:auto;display:grid;gap:.5rem}#identity-map .identity-map-node{position:static;transform:none;width:100%}.identity-map-node strong{white-space:normal}.identity-map-node small{display:block;overflow:visible}.identity-map-lines{display:none}}
@media(prefers-reduced-motion:reduce){#identity-map *{animation:none;transition:none;scroll-behavior:auto}}

.desk-role-strip{display:grid;grid-template-columns:minmax(180px,240px) 1fr;gap:12px 24px;align-items:end;margin:28px 0}.desk-role-strip label{font-size:12px}.desk-role-strip p{margin:0;line-height:1.6;font-size:14px}.desk-role-strip button{justify-self:start}.practice-panel{border-left:3px solid #ab873b;padding:8px 0 8px 20px;margin:24px 0}.practice-panel h2{font-size:20px}.practice-panel p{font-size:14px;line-height:1.7;max-width:640px}.practice-panel button{margin:0 8px 8px 0}#workflow-question{min-height:140px;border-radius:12px;padding:18px;line-height:1.6}.question-label{font-size:16px}#workflow-create{justify-self:end}#practice-status{overflow-wrap:anywhere}@media(max-width:720px){.desk-role-strip{grid-template-columns:1fr}.practice-panel{padding-left:12px}.practice-panel button{width:100%}}
