.oracle-delegation{position:fixed;right:26px;top:158px;z-index:55;max-width:calc(100vw - 32px);font:13px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text,#dce8ed)}
.oracle-work-pill{background:var(--panel,#102331);color:inherit;border:1px solid var(--line,#31505f);border-radius:6px;padding:8px 12px;font-size:11px;letter-spacing:.3px;cursor:pointer;float:right}
.oracle-work-panel{clear:both;width:min(430px,calc(100vw - 32px));max-height:min(70vh,680px);overflow:auto;box-shadow:0 18px 60px #0004;background:var(--panel,#102331);border:1px solid var(--line,#31505f);border-radius:9px;padding:18px;margin-top:10px}
.oracle-work-panel header{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line,#31505f);padding-bottom:12px;font-size:14px}
.oracle-work-panel button{color:inherit;background:transparent;border:1px solid var(--line,#31505f);border-radius:5px;padding:8px 12px;cursor:pointer;font:inherit}
.oracle-work-panel button:disabled{opacity:.45;cursor:not-allowed}.oracle-work-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.oracle-work-actions button:first-child{background:#1b4858}
.oracle-work-body{overflow-wrap:anywhere}.oracle-work-body pre{white-space:pre-wrap;font:12px/1.6 inherit;background:#0001;border-left:2px solid #42839b;padding:12px}.oracle-specialist-answer{white-space:pre-wrap;line-height:1.7}.oracle-work-panel p{margin:12px 0}.oracle-work-panel details{margin-top:14px}
.oracle-work-pill:focus-visible,.oracle-work-panel button:focus-visible{outline:2px solid #5fb8d7;outline-offset:4px}.oracle-delegation[data-home=true]{top:auto;bottom:24px;right:24px}
html[data-theme=light] .oracle-delegation{color:#233e50}html[data-theme=light] .oracle-work-panel,html[data-theme=light] .oracle-work-pill{background:#eaf0f6;border-color:#b6c8d5}html[data-theme=light] .oracle-work-actions button:first-child{background:#d5e6ef}
.oracle-visual-summary{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){.oracle-delegation{right:16px;top:100px}.oracle-delegation[data-home=true]{right:16px;bottom:16px}.oracle-work-panel{max-height:65vh}}
@media(prefers-reduced-motion:reduce){.oracle-delegation *{animation:none!important;transition:none!important}}

.oracle-work-timing{padding:9px 11px;border:1px solid color-mix(in srgb,var(--line,#31505f) 78%,transparent);border-radius:8px;background:color-mix(in srgb,var(--panel,#102331) 76%,#1a5166);font-variant-numeric:tabular-nums}
.oracle-specialist-answer{white-space:normal;line-height:1.65}.oracle-specialist-answer h3,.oracle-specialist-answer h4{margin:18px 0 7px;line-height:1.25}.oracle-specialist-answer h3{font-size:17px}.oracle-specialist-answer h4{font-size:14px}.oracle-specialist-answer p{margin:8px 0}.oracle-specialist-answer ul,.oracle-specialist-answer ol{margin:8px 0 12px;padding-left:22px}.oracle-specialist-answer li{margin:5px 0}.oracle-specialist-answer code{font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;background:#0002;padding:1px 4px;border-radius:4px}

.oracle-specialist-answer a{color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 48%,transparent);text-underline-offset:2px}
.oracle-specialist-answer a:hover{text-decoration-color:currentColor}
.oracle-work-actions button:last-child{margin-left:auto}

/* The approval choices stay visible; the specialist brief and dissertation scroll separately. */
.oracle-work-panel{display:flex;flex-direction:column;overflow:hidden;max-height:min(78vh,720px)}
.oracle-work-panel header{flex:none}
.oracle-work-actions{flex:none;padding:12px 0 14px;margin-top:0;border-bottom:1px solid var(--line,#31505f)}
.oracle-work-actions button{min-height:38px;font-weight:650}
.oracle-work-body{flex:1;min-height:0;overflow-y:auto;padding-right:4px}
.oracle-work-body details>summary{cursor:pointer;padding:9px 4px;font-weight:650}
.oracle-work-body pre{max-height:350px;overflow:auto}
.oracle-specialist-summary{padding:13px 14px;border:1px solid color-mix(in srgb,var(--line,#31505f) 70%,#49869b);border-radius:8px;background:color-mix(in srgb,var(--panel,#102331) 82%,#26546a)}
.oracle-specialist-summary strong{display:block;margin-bottom:6px}
@media(max-width:760px){.oracle-work-panel{max-height:75vh}.oracle-work-actions{gap:7px}.oracle-work-actions button{flex:1 1 150px}}

.oracle-full-analysis-label{margin:18px 0 8px;font-size:14px;letter-spacing:.01em}.oracle-specialist-summary p{margin:7px 0 0;line-height:1.7}.oracle-work-actions button:first-child{font-weight:650}


/* ODIN Max: a signature ink/indigo consultation surface, docked to the active
   Vault page instead of requiring a return to Oracle home. */
.oracle-delegation{
 top:auto;bottom:22px;right:24px;z-index:125;
 display:flex;flex-direction:column-reverse;align-items:flex-end;
 gap:0;max-width:calc(100vw - 24px);
}
.oracle-delegation[hidden],.oracle-work-panel[hidden]{display:none!important}
.oracle-delegation[data-home=true]{top:auto;bottom:22px;right:24px}
.oracle-work-pill{
 float:none;align-self:flex-end;flex:none;
 color:#e9f2ff;border:1px solid #59779e;
 border-radius:10px;font-weight:700;letter-spacing:.035em;
 background:linear-gradient(115deg,#213950,#31476d 70%,#354b78);
 box-shadow:0 8px 26px #05142265,inset 0 1px #9ec8ef23;
}
.oracle-work-pill:hover{border-color:#8fc5e4;box-shadow:0 12px 36px #05142280,0 0 0 1px #8fc5e430}
.oracle-work-panel{
 position:relative;margin:0 0 10px;width:min(450px,calc(100vw - 26px));
 color:#e6eff8;border:1px solid #557198;border-radius:14px;
 background:linear-gradient(148deg,#23334e 0%,#1c3044 56%,#222b46 100%);
 box-shadow:0 26px 75px #03101eb3,0 0 32px #3d6c9a25;
 max-height:min(74vh,690px);padding:19px 20px 17px;
}
.oracle-work-panel:before{
 content:"";position:absolute;inset:0 0 auto;height:3px;
 border-radius:14px 14px 0 0;
 background:linear-gradient(90deg,#65cbd1,#648bd5 56%,#9988cc);
}
.oracle-work-panel header{font-size:15px;letter-spacing:.015em;border-color:#657f9f54}
.oracle-work-panel header>strong{color:#f1f5ff}
.oracle-work-panel button{border-color:#708eaf73;border-radius:8px}
.oracle-work-panel button:hover{background:#93c5e41c;border-color:#89c5dd}
.oracle-work-actions button:first-child{
 color:#f4fbff;background:linear-gradient(115deg,#315779,#435c8b);
 border-color:#7db8dd80;box-shadow:inset 0 1px #d7ebff24;
}
.oracle-work-actions button:first-child:hover{background:linear-gradient(115deg,#386b89,#536aa0)}
.oracle-work-timing{
 background:linear-gradient(95deg,#244759,#263b60);
 border-color:#518cad70;color:#bfd9ec;
}
.oracle-specialist-summary{background:#2a4564a8;border-color:#729ec466}
.oracle-action-sheet{
 margin:16px 0 12px;padding:15px;border:1px solid #73abc177;
 border-radius:10px;background:#172d4088;
}
.oracle-action-sheet>strong{display:block;letter-spacing:.12em;font-size:10px;color:#82d8df}
.oracle-action-sheet p{margin:8px 0 10px;font-size:12px;color:#d0e1ed}
.oracle-action-sheet ul{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.oracle-action-sheet li{line-height:1.45}
.oracle-action-sheet label{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
.oracle-action-sheet input{accent-color:#6bbfc9;margin-top:3px;flex:none}
.oracle-action-sheet label:has(input:checked){color:#a7bdcb;text-decoration:line-through;text-decoration-color:#7294aa}
.oracle-full-report-link{color:#a4d9eb;text-underline-offset:3px}
html[data-theme=light] .oracle-work-panel{
 color:#243d53;border-color:#a5bbd6;
 background:linear-gradient(140deg,#f1f6fc,#e8eff8);
}
html[data-theme=light] .oracle-work-panel header>strong{color:#263955}
html[data-theme=light] .oracle-work-timing{background:#e1eaf7;color:#3a5871}
html[data-theme=light] .oracle-action-sheet{background:#fff;border-color:#aac9d8}
html[data-theme=light] .oracle-action-sheet p{color:#536c7f}
@media(max-width:760px){
 .oracle-delegation,.oracle-delegation[data-home=true]{bottom:12px;right:12px;max-width:calc(100vw - 24px)}
 .oracle-work-panel{padding:17px 15px;max-height:min(78vh,700px);width:min(430px,calc(100vw - 24px))}
}
