(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73784,e=>{"use strict";var t=e.i(43476),n=e.i(40737),r=e.i(71645),i=e.i(18566),o=e.i(21724),s=e.i(8144),a=e.i(53956),l=e.i(22416),d=e.i(7659),c=e.i(27969),m=e.i(1676),p=e.i(4592);function u({receiptId:e,question:n,trueNorth:r,nciScore:o,nciGrade:a,createdAt:l,protecting:d=[]}){let f=(0,i.useRouter)(),h=new Date,g=new Date(l),x=(h.getTime()-g.getTime())/864e5,y=Number.isFinite(x)?Math.floor(x):0;return(0,t.jsxs)(c.Card,{style:{marginBottom:"1.5rem",borderLeft:`3px solid ${s.signal.cyan}`},children:[(0,t.jsxs)("div",{style:{marginBottom:"1rem"},children:[(0,t.jsx)(m.Label,{style:{marginBottom:"0.75rem",display:"block"},children:"The shoe has dropped"}),(0,t.jsxs)("div",{style:{fontFamily:s.font.sans,fontSize:"0.85rem",color:s.text.secondary,lineHeight:1.6,marginBottom:"0.75rem"},children:[(0,t.jsxs)("div",{style:{marginBottom:"0.5rem"},children:[(0,t.jsx)("span",{style:{color:s.text.muted,fontFamily:s.font.mono,fontSize:"0.75rem",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Question"}),(0,t.jsx)("div",{style:{color:s.text.primary,fontSize:"0.9rem",marginTop:"0.25rem"},children:n})]}),(0,t.jsxs)("div",{style:{marginBottom:"0.5rem"},children:[(0,t.jsx)("span",{style:{color:s.text.muted,fontFamily:s.font.mono,fontSize:"0.75rem",textTransform:"uppercase",letterSpacing:"0.05em"},children:"True North"}),(0,t.jsx)("div",{style:{color:s.signal.cyan,fontSize:"0.9rem",marginTop:"0.25rem"},children:r})]}),(0,t.jsxs)("div",{style:{display:"flex",gap:"2rem",fontSize:"0.8rem",color:s.text.secondary},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{style:{color:s.text.muted,fontFamily:s.font.mono,fontSize:"0.7rem",textTransform:"uppercase",letterSpacing:"0.05em"},children:"NCI"}),(0,t.jsxs)("div",{style:{fontWeight:700,color:s.text.primary,marginTop:"0.2rem"},children:[o,"/100"]}),a?(0,t.jsx)("div",{style:{color:s.text.muted,fontSize:"0.6875rem",marginTop:"0.15rem",maxWidth:200,lineHeight:1.3},children:a}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{style:{color:s.text.muted,fontFamily:s.font.mono,fontSize:"0.7rem",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Days elapsed"}),(0,t.jsxs)("div",{style:{fontWeight:700,color:s.text.primary,marginTop:"0.2rem"},children:[y,"d"]})]})]})]})]}),(0,t.jsxs)("div",{style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[(0,t.jsx)(p.Button,{variant:"primary",size:"sm",onClick:()=>f.push(`/debrief/${e}`),children:"Log how it landed →"}),(0,t.jsx)(p.Button,{variant:"ghost",size:"sm",onClick:()=>{let t,i,s;window.open((t=new Date(h.getFullYear(),h.getMonth(),h.getDate()).toISOString().replace(/[-:]/g,"").split(".")[0]+"Z",i=r.length>200?r.slice(0,197)+"…":r,s=new URLSearchParams({action:"TEMPLATE",text:"Debrief: Did it land?",details:`Original decision: "${n}"

True North: "${i}"

NCI (decision coherence): ${o}/100${a?`. ${a}`:""}
Days elapsed: ${y}d

The shoe has dropped. Did it land where the compass pointed? Log your outcome at:
${window.location.origin}/debrief/${e}`,dates:`${t}/${t}`}),`https://calendar.google.com/calendar/render?${s.toString()}`),"_blank")},children:"📅 Add reminder"})]})]})}var f=e.i(2511),h=e.i(99224),g=e.i(4889);e.s(["default",0,function(){let e=(0,i.useParams)(),x=(0,i.useRouter)(),y=String(e.receiptId),S=(0,a.useVw)(),[j,b]=(0,r.useState)(null),[v,T]=(0,r.useState)(null),[w,k]=(0,r.useState)(0),[F,C]=(0,r.useState)(null),[R,E]=(0,r.useState)(""),[z,I]=(0,r.useState)([]),[$,A]=(0,r.useState)(null),[B,D]=(0,r.useState)(!1),[W,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=!1;return fetch(`/api/brief/${y}`).then(async e=>({ok:e.ok,data:await e.json()})).then(({ok:t,data:n})=>{if(!e){if(!t)return void A(n.error??"Could not load brief");T(n.receipt),b((0,h.toCompassResult)(n.receipt,n.tributaries??[])),k(Number(n.receipt?.version??0)),C(n.receipt?.parentId??null),E(n.brief?.situationFraming??""),I(n.children??[])}}).catch(()=>{e||A("Could not load brief")}),()=>{e=!0}},[y]),(0,r.useEffect)(()=>{let e=!1;return fetch("/api/auth/session").then(e=>e.json()).then(t=>{e||N(!!t?.user?.id)}).catch(()=>{e||N(!1)}),()=>{e=!0}},[]);let[_,L]=(0,r.useState)(null),[O,H]=(0,r.useState)(null);async function P(){if(_)return _;let e=await fetch(`/api/brief/${y}/share`,{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok||"string"!=typeof t.path)return H(t.error??"Could not create a share link"),null;let n=`${window.location.origin}${t.path}`;return L(n),n}async function U(){let e=await fetch(`/api/brief/${y}/share`,{method:"DELETE"});L(null),H(e.ok?"Share links revoked":"Could not revoke share links"),setTimeout(()=>H(null),2500)}function q(e){(0,o.track)("brief_shared",{method:e,receiptId:y})}async function M(){let e=await P();e&&(await navigator.clipboard.writeText(e),q("copy"),D(!0),setTimeout(()=>D(!1),2e3))}async function G(){let e=await P();e&&(q("sms"),window.open(`sms:?body=${encodeURIComponent(`${j?.true_north}

ARCS Brief → ${e}`)}`))}async function Y(){let e=await P();e&&(q("x"),window.open(`https://x.com/intent/tweet?text=${encodeURIComponent((j?.true_north??"").slice(0,220))}&url=${encodeURIComponent(e)}`))}if($){let e=/not found/i.test($);return(0,t.jsx)(n.DeadEnd,{section:"Decision Brief",title:e?"We can't find that brief.":"This brief didn't load.",body:e?"Briefs open only for their owner. If this one is yours, sign in. If someone sent it to you, ask them for a share link.":"Something went wrong on our side. Try again in a minute, or start from the compass."})}return j?(0,t.jsx)(g.ReflectLayer,{receiptId:y,surface:"BRIEF",reflectUrl:`/brief/reflect/${y}`,children:(0,t.jsxs)("main",{style:{minHeight:"100vh",background:s.surface.bg,color:s.text.primary},children:[w>0&&(0,t.jsxs)("div",{style:{...(0,s.contentContainer)(S),paddingTop:"1.25rem",paddingBottom:0,display:"flex",alignItems:"center",gap:"0.75rem",fontFamily:s.font.mono,fontSize:"0.7rem",letterSpacing:"0.1em",textTransform:"uppercase"},children:[(0,t.jsxs)("span",{style:{color:s.signal.cyan},children:["Level ",w]}),(0,t.jsx)("span",{style:{color:s.text.muted},children:"·"}),F?(0,t.jsx)("button",{onClick:()=>x.push(`/brief/${F}`),style:{background:"none",border:"none",padding:0,cursor:"pointer",color:s.text.dimmed,fontFamily:s.font.mono,fontSize:"0.7rem",letterSpacing:"0.1em",textTransform:"uppercase"},children:"← Parent brief"}):(0,t.jsx)("span",{style:{color:s.text.dimmed},children:"Reasoning chain"})]}),(0,t.jsx)(d.Brief,{result:j,situationFraming:R,onBack:()=>x.push("/history"),onTributary:function(e,t){(0,o.track)("brief_tributary_followed",{receiptId:y});let n=new URLSearchParams({q:e,parent:y,tributary:String(t)});x.push(`/dashboard?${n.toString()}`)},onNewQuestion:()=>x.push("/dashboard")}),(0,t.jsx)("div",{style:{position:"sticky",bottom:0,zIndex:30,background:"rgba(2,4,8,0.92)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",borderTop:"0.5px solid rgba(30,41,59,0.5)"},children:(0,t.jsxs)("div",{style:{...(0,s.contentContainer)(S),paddingTop:"0.75rem",paddingBottom:"0.75rem",display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,t.jsx)(m.Label,{style:{marginRight:"0.25rem",flexShrink:0},children:"Share"}),W?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Button,{variant:"ghost",size:"sm",onClick:M,children:B?"✓ Copied":"Copy link"}),(0,t.jsx)(p.Button,{variant:"ghost",size:"sm",onClick:G,children:"SMS"}),(0,t.jsx)(p.Button,{variant:"ghost",size:"sm",onClick:Y,children:"Post to X"}),(0,t.jsx)(p.Button,{variant:"ghost",size:"sm",onClick:U,children:"Revoke links"}),O&&(0,t.jsx)("span",{style:{fontFamily:s.font.mono,fontSize:"0.7rem",color:s.text.muted},children:O})]}):(0,t.jsx)(p.Button,{variant:"gold",size:"sm",glyph:"◈",onClick:()=>x.push(`/compass?next=${encodeURIComponent(`/brief/${y}`)}`),children:"Sign in to share"})]})}),(0,t.jsxs)("div",{style:{...(0,s.contentContainer)(S),paddingTop:0,paddingBottom:"6rem"},children:[v&&j&&(0,t.jsx)(u,{receiptId:y,question:String(v.decision??""),trueNorth:String(v.trueNorth??""),nciScore:Number(v.nciScore??0),nciGrade:"string"==typeof v.nciGrade?v.nciGrade:void 0,createdAt:String(v.createdAt??new Date().toISOString()),protecting:(()=>{try{return JSON.parse(v.protecting)}catch{return[]}})()}),z.length>0&&(0,t.jsxs)(c.Card,{style:{marginBottom:"1.5rem"},children:[(0,t.jsx)(m.Label,{style:{marginBottom:"0.75rem"},children:"Tributary rounds · where this led"}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:z.map(e=>{let n=(0,s.getWeather)(e.yState),r=(0,s.nciColor)(e.nciScore);return(0,t.jsxs)("div",{onClick:()=>x.push(`/brief/${e.id}`),style:{cursor:"pointer",padding:"0.75rem",borderRadius:4,border:`1px solid ${s.signal.cyan}22`,background:"#0a1520",transition:"border-color 0.15s"},onMouseEnter:e=>e.currentTarget.style.borderColor=`${s.signal.cyan}66`,onMouseLeave:e=>e.currentTarget.style.borderColor=`${s.signal.cyan}22`,children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",marginBottom:"0.35rem"},children:[(0,t.jsx)(l.Badge,{label:`${n.icon} ${n.label}`,color:n.color,register:"light"}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,t.jsxs)("span",{style:{fontFamily:s.font.mono,fontSize:"0.6875rem",color:s.text.muted,letterSpacing:"0.08em"},children:["L",e.version]}),(0,t.jsx)("span",{style:{fontFamily:s.font.mono,fontWeight:700,fontSize:"0.85rem",color:r},children:e.nciScore})]})]}),(0,t.jsx)("div",{style:{fontFamily:s.font.sans,fontSize:"0.8rem",color:s.text.primary,lineHeight:1.4,marginBottom:"0.25rem"},children:e.decision}),(0,t.jsxs)("div",{style:{fontFamily:s.font.sans,fontSize:"0.75rem",color:s.text.secondary,lineHeight:1.4},children:[(0,t.jsx)("span",{style:{color:s.signal.cyan},children:"True North · "}),e.trueNorth]})]},e.id)})})]})]})]})}):(0,t.jsx)("main",{style:{minHeight:"100vh",background:"radial-gradient(120% 70% at 50% -5%, #0a1422 0%, #020408 62%)",color:s.text.primary,display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem"},children:(0,t.jsx)(f.SequenceLoader,{title:"Rendering your decision brief…",stages:[{name:"SURVEY"},{name:"SITUATION FRAMING"},{name:"ENTITY READ"},{name:"TERRAIN PATHS"},{name:"SILKSCREEN"}],footer:"Reading the terrain…"})})}],73784)},99224,e=>{"use strict";function t(e,t){if("string"!=typeof e)return e??t;try{return JSON.parse(e)}catch{return t}}e.s(["toCompassResult",0,function(e,n){let r=t(e.rawResponse,{}).reasoning??{};return{receipt_id:String(e.id??""),question:String(e.decision??""),true_north:String(e.trueNorth??""),why:t(e.whyBullets,[]),nci_score:Number(e.nciScore??50),coherence_pct:e.coherencePct??void 0,is_satoshi:!!e.isSatoshi,decision_mode:String(e.mode??""),door_class:String(e.doorClass??""),y_state:String(e.yState??"SCRATCH"),render_resolution:String(e.renderResolution??""),horizon:e.horizon??null,stakes:e.stakes??null,nci_delta:null,macro_tags:t(e.macroTags,[]),tributaries:n,reasoning:{fated:t(e.fated,void 0),paths:t(e.paths,void 0),court:t(e.court,void 0),court_verdict:e.courtVerdict??void 0,advisors:r.advisors??void 0}}}])},36198,1676,86483,e=>{"use strict";var t=e.i(43476),n=e.i(8144),r=e.i(27969);function i({children:e,color:r,style:o}){return(0,t.jsx)("div",{style:{fontFamily:n.font.mono,...n.font.tier.t3,textTransform:"uppercase",color:r||n.text.muted,...o},children:e})}e.s(["Label",0,i],1676);let o={Facts:"#00F0FF",Assumptions:"#FFD700",Tradeoffs:"#FF4D6D",Emotions:"#00FF9D",Direction:"#94A3B8"};e.s(["FatedGrid",0,function({fated:e}){let s=[["Facts",e.facts],["Assumptions",e.assumptions],["Tradeoffs",e.tradeoffs],["Emotions",e.emotions],["Direction",e.direction]];return(0,t.jsxs)(r.Card,{children:[(0,t.jsx)(i,{style:{marginBottom:"1rem"},children:"FATED Decomposition"}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:s.map(([e,r])=>{let i=o[e]??n.text.muted;return(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr",gap:"0.75rem",alignItems:"baseline"},children:[(0,t.jsx)("span",{style:{fontFamily:n.font.mono,fontSize:"0.6875rem",letterSpacing:"0.1em",textTransform:"uppercase",color:i,textShadow:`0 0 8px ${i}44`},children:e}),(0,t.jsx)("span",{style:{fontFamily:n.font.sans,fontSize:"0.85rem",color:n.text.secondary,lineHeight:1.85},children:r})]},e)})})]})}],36198);var s=e.i(22416);e.s(["TerrainPaths",0,function({paths:e,bare:o}){let a=(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.875rem"},children:e?.map(e=>{let r;return(0,t.jsxs)("div",{style:{paddingLeft:"0.875rem",borderLeft:`2px solid ${"selected"===(r=e.status)?n.signal.cyan:"blocked"===r?`${n.signal.red}55`:n.border.subtle}`},children:[(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.3rem 0.5rem",marginBottom:"0.2rem"},children:[(0,t.jsx)("span",{style:{fontFamily:n.font.sans,fontSize:"0.875rem",fontWeight:600,color:"selected"===e.status?n.text.primary:n.text.dimmed,textDecoration:"blocked"===e.status?"line-through":"none"},children:e.title}),(0,t.jsx)(s.Badge,{label:e.tag,color:"selected"===e.status?n.signal.cyan:n.signal.steel,register:"light"}),"selected"===e.status&&(0,t.jsx)("span",{style:{fontFamily:n.font.mono,fontSize:"0.6875rem",letterSpacing:"0.1em",color:n.signal.cyan},children:"SELECTED LINE"})]}),(0,t.jsx)("div",{style:{fontFamily:n.font.sans,fontSize:"0.8rem",color:n.text.dimmed,lineHeight:1.85},children:e.detail})]},e.id)})});return o?a:(0,t.jsxs)(r.Card,{children:[(0,t.jsx)(i,{style:{marginBottom:"1rem"},children:"Terrain Paths"}),a]})}],86483)},2511,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(8144),i=e.i(19882);function o({state:e,stepMs:i}){let[s,a]=n.default.useState(100*("done"===e));n.default.useEffect(()=>{let t=requestAnimationFrame(()=>a("done"===e?100:"pending"===e?0:"last"===e?90:100));return()=>cancelAnimationFrame(t)},[e]),n.default.useEffect(()=>{if("last"!==e)return;let t=setInterval(()=>a(e=>Math.min(99,e+1)),1400);return()=>clearInterval(t)},[e]);let l="last"===e?1300:i;return(0,t.jsx)("div",{style:{flex:1,height:2,borderRadius:2,background:"#141e2e",overflow:"hidden"},children:(0,t.jsx)("div",{style:{height:"100%",width:`${s}%`,background:r.signal.cyan,transition:`width ${l}ms linear`,boxShadow:`0 0 6px ${r.signal.cyan}99`}})})}e.s(["SequenceLoader",0,function({title:e,stages:s,footer:a,stepMs:l=800}){let d=s.length-1,[c,m]=n.default.useState(0);return n.default.useEffect(()=>{if(c>=d)return;let e=setTimeout(()=>m(e=>e+1),l);return()=>clearTimeout(e)},[c,d,l]),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"2.25rem",width:"100%"},children:[(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.75rem"},children:[(0,t.jsx)(i.Wordmark,{}),(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:r.signal.cyan},children:e})]}),(0,t.jsx)("div",{style:{width:"100%",maxWidth:420,display:"flex",flexDirection:"column",gap:"0.6rem"},children:s.map((e,n)=>{let i=n<c?"done":n===c?n===d?"last":"active":"pending",s="pending"!==i;return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.7rem"},children:[(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.85rem",width:16,textAlign:"center",color:s?r.signal.cyan:r.text.muted,textShadow:s?`0 0 10px ${r.signal.cyan}88`:"none"},children:s?"▸":"·"}),e.id&&(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.1em",color:s?r.text.primary:r.text.muted,minWidth:26},children:e.id}),(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.1em",color:s?r.text.secondary:r.text.muted,minWidth:0,whiteSpace:"nowrap"},children:e.name}),(0,t.jsx)(o,{state:i,stepMs:l}),"done"===i&&(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.7rem",color:r.signal.green},children:"✓"}),("active"===i||"last"===i)&&(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",letterSpacing:"0.08em",color:r.signal.cyan},children:"◂ active"})]},e.name)})}),a&&(0,t.jsx)("span",{style:{fontFamily:r.font.sans,fontSize:"0.8rem",color:r.text.dimmed,fontStyle:"italic"},children:a})]})}])},54654,45378,e=>{"use strict";var t=e.i(43476),n=e.i(8144),r=e.i(36198),i=e.i(86483);let o={verdict:{order:1,label:"True North",pageFields:["trueNorth","yState","renderResolution","mode","doorClass","stakes"],ledgerColumns:["question","mode","stakes"],count:null,folded:!1},reasons:{order:2,label:"Reasons",pageFields:["whyBullets"],ledgerColumns:["what_confirmed"],count:3,folded:!1},questions:{order:3,label:"Open questions",pageFields:["atgTributaries","situationFraming"],ledgerColumns:["what_unconfirmed"],count:3,folded:!1},tasks:{order:4,label:"Next moves",pageFields:["paths","horizon"],ledgerColumns:["horizon"],count:null,folded:!1},evidence:{order:5,label:"Evidence",pageFields:["fated","court","courtVerdict","nciScore","coherencePct","macroTags","version","parentId","createdAt"],ledgerColumns:["refs","event_at","operator","source_repo"],count:null,folded:!0}},s="Decision";Object.keys(o).sort((e,t)=>o[e].order-o[t].order);let a={TODAY:"Today",WEEK:"This Week",THIS_WEEK:"This Week","THIS-WEEK":"This Week",QUARTER:"This Quarter",THIS_QUARTER:"This Quarter","THIS-QUARTER":"This Quarter",YEAR:"This Year",YEARS:"1 to 3 Years",ONE_TO_THREE_YEARS:"1 to 3 Years","1-3Y":"1 to 3 Years"};function l(e){return e?a[e.trim().toUpperCase()]??null:null}let d="The compass can ask. Only the one who walks can answer.";e.s(["AHMED_ORDER",0,o,"OPEN_QUESTION_PROMPT",0,d,"SITUATION_LABEL",0,"Situation","SUBJECT_LABEL",0,s,"horizonLabel",0,l],45378);let c={GREEN:"SHARP",LOCKED:"SHARP",YELLOW:"DEGRADED",FORK:"DEGRADED",SCRATCH:"GRAIN",DELTA:"GRAIN",DRIFT:"GRAIN",RED:"GRAIN",PARADOX:"MOIRE"},m=(e,t)=>(t&&n.resStyle[t]?t:c[e])??"GRAIN",p={marginTop:"2.75rem"};function u({children:e,color:r=n.text.muted,id:i,as:o="h2"}){return(0,t.jsx)(o,{id:i,style:{fontFamily:n.font.mono,...n.font.tier.t6,textTransform:"uppercase",color:r,margin:"0 0 0.9rem"},children:e})}let f=e=>e.charAt(0)+e.slice(1).toLowerCase();function h({k:e,v:r,color:i=n.text.primary}){return(0,t.jsxs)("div",{style:{minWidth:0},children:[(0,t.jsx)("dt",{style:{fontFamily:n.font.mono,...n.font.tier.t2,textTransform:"uppercase",color:n.text.dimmed,marginBottom:"0.25rem"},children:e}),(0,t.jsx)("dd",{style:{fontFamily:n.font.mono,...n.font.tier.t5,color:i,margin:0,fontVariantNumeric:"tabular-nums"},children:r})]})}function g({children:e}){return(0,t.jsx)("p",{style:{fontFamily:n.font.sans,fontSize:"0.875rem",color:n.text.muted,margin:0},children:e})}e.s(["AhmedOrder",0,function({data:e,onQuestion:a,after:c}){let x=m(e.yState,e.renderResolution),y=n.resStyle[x],S=(0,n.getWeather)(e.yState),j=l(e.horizon),b=e.fated&&Object.values(e.fated).some(e=>"string"==typeof e&&e.trim())?e.fated:null,v=[["Mode",e.mode?f(e.mode):""],["Door",e.doorClass?f((0,n.doorLabel)(e.doorClass)):""],["Stakes",e.stakes?f(e.stakes):""],["Horizon",j??""]].filter(([,e])=>e);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{marginBottom:"1.75rem"},children:[(0,t.jsx)("div",{style:{fontFamily:n.font.mono,...n.font.tier.t2,textTransform:"uppercase",color:n.text.dimmed,marginBottom:"0.4rem"},children:s}),(0,t.jsx)("p",{style:{fontFamily:n.font.sans,fontSize:"0.95rem",color:n.text.secondary,lineHeight:1.6,margin:0,textWrap:"pretty"},children:e.decision})]}),(0,t.jsxs)("section",{"aria-labelledby":"slot-verdict",children:[(0,t.jsx)(u,{id:"slot-verdict",color:n.signal.cyan,as:"div",children:o.verdict.label}),(0,t.jsx)("h1",{style:{fontFamily:n.font.sans,fontSize:"clamp(1.15rem, 2.6vw, 1.55rem)",lineHeight:1.35,color:n.text.primary,margin:0,textWrap:"pretty",...y,fontWeight:Math.max(Number(y.fontWeight??400),400)+100},children:e.trueNorth}),(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"baseline",gap:"0.4rem 1.25rem",marginTop:"0.9rem"},children:[(0,t.jsxs)("span",{style:{fontFamily:n.font.mono,...n.font.tier.t4,textTransform:"uppercase",color:S.color,whiteSpace:"nowrap"},children:[S.icon," ",S.label," · ","SHARP"===x?"sharp":`rendered ${x.toLowerCase()}`]}),v.map(([e,r])=>(0,t.jsxs)("span",{style:{fontFamily:n.font.sans,fontSize:"0.8rem",color:n.text.muted,whiteSpace:"nowrap"},children:[e," ",(0,t.jsx)("span",{style:{color:n.text.secondary},children:r})]},e))]})]}),(0,t.jsxs)("section",{"aria-labelledby":"slot-reasons",style:p,children:[(0,t.jsx)(u,{id:"slot-reasons",children:o.reasons.label}),e.reasons.length>0?(0,t.jsx)("ol",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:"0.8rem",maxWidth:680,opacity:y.opacity},children:e.reasons.map((e,r)=>(0,t.jsxs)("li",{style:{display:"grid",gridTemplateColumns:"1.75rem 1fr",alignItems:"baseline"},children:[(0,t.jsx)("span",{style:{fontFamily:n.font.mono,...n.font.tier.t4,color:n.signal.cyan,fontVariantNumeric:"tabular-nums"},children:String(r+1).padStart(2,"0")}),(0,t.jsx)("span",{style:{fontFamily:n.font.sans,fontSize:"0.925rem",color:n.text.secondary,lineHeight:1.6,textWrap:"pretty"},children:e})]},r))}):(0,t.jsx)(g,{children:"No reasons were recorded with this receipt."})]}),(0,t.jsxs)("section",{"aria-labelledby":"slot-questions",style:p,children:[(0,t.jsx)(u,{id:"slot-questions",children:o.questions.label}),e.questions.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ol",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:"1.1rem",maxWidth:680},children:e.questions.map((e,r)=>(0,t.jsxs)("li",{style:{borderTop:`1px solid ${n.border.subtle}`,paddingTop:"0.85rem"},children:[(0,t.jsx)("div",{style:{fontFamily:n.font.mono,...n.font.tier.t3,textTransform:"uppercase",color:(0,n.tribColor)(e.type),marginBottom:"0.35rem"},children:e.label}),(0,t.jsx)("p",{style:{fontFamily:n.font.sans,fontSize:"0.925rem",color:n.text.secondary,lineHeight:1.6,margin:0,textWrap:"pretty"},children:e.prompt}),a&&(0,t.jsx)("button",{type:"button",onClick:()=>a(e.prompt,r),style:{marginTop:"0.55rem",background:"none",border:"none",padding:"0.25rem 0",cursor:"pointer",fontFamily:n.font.mono,...n.font.tier.t3,textTransform:"uppercase",color:n.signal.cyan,textUnderlineOffset:3},children:"Run this question →"})]},r))}),(0,t.jsx)("p",{style:{fontFamily:"'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif",fontStyle:"italic",fontSize:"1rem",color:n.text.secondary,margin:"1.25rem 0 0",maxWidth:680},children:d})]}):(0,t.jsx)(g,{children:"No open questions were recorded with this receipt."})]}),(0,t.jsxs)("section",{"aria-labelledby":"slot-tasks",style:p,children:[(0,t.jsxs)(u,{id:"slot-tasks",children:[o.tasks.label,j?` \xb7 ${j}`:""]}),e.paths.length>0?(0,t.jsx)("div",{style:{maxWidth:680},children:(0,t.jsx)(i.TerrainPaths,{paths:e.paths,bare:!0})}):(0,t.jsx)(g,{children:"No moves were recorded with this receipt."})]}),c,(0,t.jsxs)("details",{style:{...p,borderTop:`1px solid ${n.border.subtle}`,paddingTop:"1rem"},children:[(0,t.jsx)("summary",{style:{cursor:"pointer",fontFamily:n.font.mono,...n.font.tier.t6,textTransform:"uppercase",color:n.text.muted},children:o.evidence.label}),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1.25rem",marginTop:"1.25rem"},children:[(0,t.jsxs)("dl",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:"0.9rem 1.5rem",margin:0},children:[null!=e.nciScore&&(0,t.jsx)(h,{k:"NCI (decision coherence)",v:`${e.nciScore} / 100`,color:(0,n.nciColor)(e.nciScore)}),null!=e.coherencePct&&(0,t.jsx)(h,{k:"Question coherence",v:`${e.coherencePct}%`}),null!=e.bayesianRiskPct&&(0,t.jsx)(h,{k:"Bayesian risk",v:`${e.bayesianRiskPct}%`}),e.macroTags&&e.macroTags.length>0&&(0,t.jsx)(h,{k:"Checks run",v:e.macroTags.join(" · ")}),null!=e.version&&(0,t.jsx)(h,{k:"Lineage depth",v:String(e.version)}),e.createdAt&&(0,t.jsx)(h,{k:"Recorded",v:new Date(e.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})})]}),e.courtVerdict&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontFamily:n.font.mono,...n.font.tier.t3,textTransform:"uppercase",color:n.signal.gold,marginBottom:"0.35rem"},children:"Court verdict"}),(0,t.jsx)("p",{style:{fontFamily:n.font.sans,fontSize:"0.9rem",color:n.text.secondary,lineHeight:1.6,margin:0,maxWidth:680},children:e.courtVerdict})]}),e.court&&e.court.length>0&&(0,t.jsxs)("div",{style:{maxWidth:680},children:[(0,t.jsx)("div",{style:{fontFamily:n.font.mono,...n.font.tier.t3,textTransform:"uppercase",color:n.text.dimmed,marginBottom:"0.6rem"},children:"Court findings"}),(0,t.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:"0.6rem"},children:e.court.map((e,r)=>(0,t.jsxs)("li",{style:{display:"grid",gridTemplateColumns:"4.5rem 1fr",gap:"0.75rem",alignItems:"baseline"},children:[(0,t.jsx)("span",{style:{fontFamily:n.font.mono,...n.font.tier.t3,color:"PASS"===e.verdict?n.signal.green:"TENSION"===e.verdict?n.signal.gold:n.signal.red},children:e.verdict}),(0,t.jsxs)("span",{style:{fontFamily:n.font.sans,fontSize:"0.875rem",color:n.text.secondary,lineHeight:1.6},children:[(0,t.jsx)("strong",{style:{color:n.text.primary,fontWeight:600},children:e.name}),": ",e.detail]})]},r))})]}),b&&(0,t.jsx)(r.FatedGrid,{fated:b})]})]})]})},"MEASURE",0,680,"resolutionFor",0,m],54654)},7659,e=>{"use strict";var t=e.i(43476),n=e.i(8144),r=e.i(53956),i=e.i(19882),o=e.i(63087),s=e.i(4592),a=e.i(54654),l=e.i(45378);e.s(["Brief",0,function({result:e,onBack:d,onTributary:c,onNewQuestion:m,situationFraming:p}){let u=e.reasoning||{},f=(0,r.useVw)(),h=p?.trim();return(0,t.jsxs)("div",{style:{...(0,n.contentContainer)(f),paddingTop:"2rem",paddingBottom:"5rem"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem",flexWrap:"wrap",marginBottom:"1rem"},children:[(0,t.jsx)(i.Wordmark,{section:"Decision Brief"}),(0,t.jsxs)("div",{style:{display:"flex",gap:"0.25rem"},children:[d&&(0,t.jsx)(s.Button,{variant:"ghost",size:"sm",onClick:d,children:"← Ledger"}),m&&(0,t.jsx)(s.Button,{variant:"ghost",size:"sm",glyph:"⊕",onClick:m,children:"New question"})]})]}),(0,t.jsx)(o.Rule,{style:{marginBottom:"1.75rem"}}),(0,t.jsx)(a.AhmedOrder,{data:{decision:e.question??"",trueNorth:e.true_north,yState:e.y_state,renderResolution:e.render_resolution,mode:e.decision_mode,doorClass:e.door_class,stakes:e.stakes,horizon:e.horizon,reasons:e.why??[],questions:e.tributaries??[],paths:u.paths??[],fated:u.fated,court:u.court,courtVerdict:u.court_verdict,bayesianRiskPct:u.advisors?.bayesian_risk_pct,nciScore:e.nci_score,coherencePct:e.coherence_pct,macroTags:e.macro_tags},onQuestion:c,after:h?(0,t.jsxs)("section",{"aria-labelledby":"slot-situation",style:{marginTop:"2.75rem"},children:[(0,t.jsx)("h2",{id:"slot-situation",style:{fontFamily:n.font.mono,...n.font.tier.t6,textTransform:"uppercase",color:n.text.muted,margin:"0 0 0.9rem"},children:l.SITUATION_LABEL}),h.split(/\n\s*\n/).map((e,r)=>(0,t.jsx)("p",{style:{fontFamily:n.font.sans,fontSize:"0.925rem",color:n.text.secondary,lineHeight:1.65,margin:r?"0.9rem 0 0":0,maxWidth:a.MEASURE,textWrap:"pretty"},children:e},r))]}):null})]})}])},22416,e=>{"use strict";var t=e.i(43476),n=e.i(8144);e.s(["Badge",0,function({label:e,glyph:r,color:i=n.signal.steel,register:o="state",style:s}){let a={display:"inline-flex",alignItems:"center",gap:6,fontFamily:n.font.mono,fontWeight:700,whiteSpace:"nowrap",lineHeight:1,textTransform:"uppercase",color:i},l="governance"===o?{fontSize:11,letterSpacing:"0.12em",padding:"4px 11px",borderRadius:7,background:`${i}1f`,border:`1px solid ${i}55`}:"light"===o?{fontSize:11,fontWeight:500,letterSpacing:"0.06em",padding:"2px 9px",borderRadius:6,background:"transparent",border:`1px solid ${i}40`,opacity:.92}:{fontSize:11,letterSpacing:"0.11em",padding:"6px 12px",borderRadius:8,background:`linear-gradient(165deg, ${i}2e, ${i}0f)`,border:`1px solid ${i}45`,boxShadow:`inset 0 1px 0 rgba(255,255,255,.05), 0 0 8px ${i}26`};return(0,t.jsxs)("span",{style:{...a,...l,...s},children:[r&&(0,t.jsx)("span",{style:{fontSize:"1.05em",lineHeight:1},children:r}),e]})}])},27969,e=>{"use strict";var t=e.i(43476),n=e.i(8144);e.s(["Card",0,function({accent:e,padding:r="default",style:i,children:o,...s}){let a="compact"===r?{padding:`${n.space[3]} ${n.space[4]}`}:"flush"===r?{}:{padding:"1.25rem 1.5rem"},l=e?{border:`1px solid ${e}45`,background:`linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, ${e}1c, #0a1620)`,boxShadow:`inset 0 1px 0 ${e}80, inset 0 -11px 17px -11px ${e}44, 0 0 6px ${e}1e, 0 5px 16px rgba(0,0,0,.5)`}:{border:"1px solid #1c2738",background:"linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, #11181f, #0a1016)",boxShadow:"inset 0 1px 0 rgba(255,255,255,.04), inset 0 -2px 8px rgba(0,0,0,.4)"};return(0,t.jsx)("div",{style:{borderRadius:4,...l,...a,...i},...s,children:o})},"CardDivider",0,function({style:e,...r}){return(0,t.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${n.border.subtle}`,margin:`${n.space[4]} 0`,...e},...r})},"CardHeader",0,function({label:e,accent:r,style:i,children:o,...s}){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:o?"space-between":"flex-start",marginBottom:n.space[3],...i},...s,children:[(0,t.jsx)("span",{style:{fontSize:n.font.size.xs,fontFamily:n.font.mono,fontWeight:n.font.weight.bold,letterSpacing:n.font.tracking.widest,textTransform:"uppercase",color:r??n.text.muted},children:e}),o]})}])},63087,e=>{"use strict";var t=e.i(43476);e.s(["Rule",0,function({style:e}){return(0,t.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.06)",...e}})}])},19882,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(8144),i=e.i(53956);e.s(["Wordmark",0,function({section:e}){let o=(0,i.useVw)();return(0,t.jsxs)(n.default,{href:"/",style:{display:"flex",alignItems:"center",gap:"0.75rem",textDecoration:"none",flexShrink:0},children:[(0,t.jsxs)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",textTransform:"uppercase",whiteSpace:"nowrap",display:"inline-flex",alignItems:"baseline",gap:"0.45em"},children:[(0,t.jsx)("span",{style:{color:r.signal.cyan,fontWeight:800,letterSpacing:"0.22em"},children:"ARCS"}),(0,t.jsx)("span",{style:{color:r.text.dimmed,fontWeight:400,letterSpacing:"0.14em"},children:"FIELD OS"})]}),!!e&&o>=640&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{width:1,height:12,background:r.border.subtle}}),(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",letterSpacing:"0.12em",color:r.text.muted,textTransform:"uppercase",whiteSpace:"nowrap"},children:e})]})]})}])}]);