.app-shell{min-height:100vh;display:flex;flex-direction:column;background:#eeeee8;color:#050706}.site-header{width:100%;min-height:3.75rem;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1.5rem;padding:.55rem clamp(1rem,2.2vw,2rem);border-top:2px solid #0f1310;background:rgba(238,238,232,.95);position:sticky;top:0;z-index:20}.site-title,.footer-brand{font-family:Georgia,Times New Roman,serif;font-size:1.75rem;line-height:1;text-decoration:none}.site-nav,.app-nav{display:flex;align-items:center;gap:clamp(.85rem,2vw,2rem);font-weight:500;white-space:nowrap}.site-nav{justify-content:center}.app-nav{justify-content:flex-end}.site-nav a,.site-footer a{text-decoration:none}.site-nav a:hover,.site-nav a:focus-visible,.site-footer a:hover,.site-footer a:focus-visible{color:#005646}.app-nav button,.segmented-control button{border:1px solid transparent;border-radius:999px;padding:.45rem .82rem;background:transparent;color:inherit;cursor:pointer;font:inherit}.app-nav button:hover,.app-nav button:focus-visible,.app-nav button.active,.segmented-control button.active{border-color:#00564647;background:#ffffff;color:#005646}.user-menu{position:relative}.user-menu-button{display:inline-flex;align-items:center;gap:.42rem;max-width:min(22rem,34vw)}.user-menu-icon{width:1.25rem;height:1.25rem;display:inline-grid;place-items:center;flex:0 0 auto}.user-menu-icon svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.user-menu-name{overflow:hidden;text-overflow:ellipsis}.user-menu-caret{flex:0 0 auto;font-size:.9rem}.user-menu-popover{position:absolute;top:calc(100% + .45rem);right:0;z-index:60;width:min(20rem,90vw);display:grid;gap:.25rem;padding:.55rem;border:1px solid rgba(5,7,6,.12);border-radius:8px;background:#ffffff;box-shadow:0 18px 34px #05070629}.user-menu-summary{display:grid;gap:.15rem;padding:.55rem .6rem .7rem;border-bottom:1px solid rgba(5,7,6,.1);margin-bottom:.25rem;line-height:1.25}.user-menu-summary span{color:#4b5650;font-size:.88rem;overflow-wrap:anywhere}.user-menu-popover button{width:100%;border:none;border-radius:6px;background:transparent;padding:.62rem .65rem;text-align:left;color:#050706;font:inherit;cursor:pointer}.user-menu-popover button:hover,.user-menu-popover button:focus-visible{background:#eeeee8;color:#005646}.app-main{width:100%;max-width:1040px;margin:0 auto;padding:0 clamp(1rem,2vw,1.5rem) .9rem}.chat-controls{display:flex;align-items:center;gap:.8rem;padding:0;flex-wrap:wrap}.theme-control{display:grid;justify-items:start;gap:.75rem}.theme-control label{display:grid;gap:.32rem;font-weight:500}select,input,textarea{border:1px solid #c8cfc8;background:#ffffff;color:#050706}select{min-height:2rem;border:none;border-bottom:1px solid rgba(5,7,6,.55);border-radius:0;padding:0 2rem 0 .4rem;background-color:transparent}.credit-pill,.background-pill{display:inline-flex;align-items:center;min-height:2.35rem;border-radius:999px;padding:.28rem .76rem;background:#ffffff;border:1px solid rgba(5,7,6,.1);font-weight:500}.background-pill{max-width:min(100%,30rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#005646}.workbench{min-height:calc(100vh - 4.5rem);display:grid;gap:clamp(1.6rem,4vw,3.6rem);align-items:stretch}.workbench.has-milestones{grid-template-columns:minmax(13rem,18rem) minmax(0,1fr)}.workbench.no-milestones{grid-template-columns:minmax(0,1fr)}.milestone-sidebar{padding:1.1rem 0 2rem;display:flex;flex-direction:column;gap:clamp(1.7rem,5vh,3.2rem)}.eyebrow{margin:0 0 1rem;color:#005646;font-size:.95rem;font-weight:500;line-height:1.1}.intro-block{padding-top:.25rem}.intro-quote{max-width:17rem;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(1.45rem,2.15vw,2rem);font-weight:400;line-height:1.08}.milestone-list{list-style:none;margin:0;padding:0 0 0 1.05rem;display:flex;flex-direction:column;gap:.36rem;border-left:1px solid #d7d7d0}.milestone-item{position:relative;display:flex;align-items:baseline;gap:.6rem;color:#151915;font-size:clamp(.98rem,1.35vw,1.12rem);font-weight:400;line-height:1.15;transition:color .18s ease,opacity .18s ease}.milestone-item:before{content:"";position:absolute;left:calc(-1.05rem - 4px);top:.42em;width:7px;height:7px;border-radius:999px;background:#cfcfca}.milestone-item.milestone-done{opacity:.48}.milestone-item.milestone-future{opacity:.32}.milestone-item.milestone-current{align-items:center;margin:.08rem 0;color:#050706}.milestone-item.milestone-current:before{background:#9d9389}.milestone-item.milestone-current .milestone-name{font-family:Inter,system-ui,sans-serif;font-size:clamp(1.15rem,1.7vw,1.45rem);font-style:normal;font-weight:600;line-height:1.08}.milestone-current-label,.ribbon-current-label{border:1px solid currentColor;border-radius:999px;padding:.12rem .42rem;font-family:Inter,system-ui,sans-serif;font-size:.68rem;font-style:normal;font-weight:500;text-transform:uppercase}.chat-card{position:relative;min-height:calc(100vh - 4.5rem);max-height:calc(100vh - 4.5rem);display:flex;flex-direction:column;overflow:hidden;background:transparent;border-radius:0;box-shadow:none}.message-list{flex:1;display:flex;flex-direction:column;gap:clamp(1rem,3.5vh,2.6rem);padding:1.35rem clamp(.7rem,1.5vw,1rem) 14rem;overflow-y:auto;scrollbar-gutter:stable;scroll-padding-bottom:14rem}.message{display:flex;width:100%}.message-engine{justify-content:flex-start}.message-user{justify-content:flex-end}.message-bubble{width:fit-content;max-width:min(72%,28rem);min-width:0;padding:.72rem .82rem;border-radius:8px;background:#f0f1f0;border:none;box-shadow:none}.message-user .message-bubble{max-width:min(74%,36rem);background:#e9dfd4;border:1px solid rgba(189,148,111,.65);box-shadow:none}.message-role{margin-bottom:.35rem;color:#151915;font-size:clamp(1.02rem,1.45vw,1.32rem);font-weight:500;line-height:1.1}.message-bubble p{margin:0;font-size:clamp(1rem,1.45vw,1.32rem);font-weight:460;line-height:1.18;overflow-wrap:anywhere}.message-bubble .inline-report{margin-top:1rem}.message-bubble .inline-report h2{margin:0 0 .85rem;font-family:Georgia,Times New Roman,serif;font-size:clamp(1.4rem,2.2vw,2.1rem);font-weight:500;line-height:1.08}.message-bubble .markdown-body{border:none;padding:0;background:transparent}.message:has(.inline-report) .message-bubble{max-width:min(92%,46rem)}.typing-dots{display:flex;align-items:center;gap:.42rem;min-width:4rem;min-height:1.7rem;padding:.35rem 0 .15rem}.typing-dots span{width:.58rem;height:.58rem;border-radius:999px;background:#005646;opacity:.38;animation:typing-bounce .95s ease-in-out infinite}.typing-dots span:nth-child(2){animation-delay:.14s}.typing-dots span:nth-child(3){animation-delay:.28s}@keyframes typing-bounce{0%,80%,to{opacity:.38;transform:translateY(0)}40%{opacity:1;transform:translateY(-.42rem)}}.chat-form{position:absolute;left:50%;right:auto;bottom:1.1rem;width:min(100% - 1.5rem,31rem);transform:translate(-50%);display:flex;align-items:center;gap:.45rem;padding:.34rem;border-radius:999px;background:#eef0f1;border:1px solid rgba(5,7,6,.05);box-shadow:0 12px 28px #05070614;z-index:4;pointer-events:auto}.chat-form:focus-within{outline:2px solid rgba(0,86,70,.24);outline-offset:2px}.chat-input,.icon-button{pointer-events:auto}.chat-input{flex:1;width:100%;min-height:2.35rem;max-height:7rem;resize:none;border-radius:999px;border:none;padding:.58rem 1.25rem;margin-right:.15rem;background:transparent;color:#050706;font:inherit;font-size:.95rem;line-height:1.35;box-shadow:none;scrollbar-gutter:stable}.chat-input:focus-visible,select:focus-visible,input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid rgba(0,86,70,.22);outline-offset:2px}.chat-input:focus-visible{outline:none}.button{border:none;border-radius:8px;font-weight:520;cursor:pointer;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}.button:hover,.button:focus-visible{transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.54;transform:none}.button-primary,.button-send{background:#0f1714;color:#fff;box-shadow:none}.button-send{flex:0 0 auto}.button-save-draft{background:transparent;color:#59615c;box-shadow:none}.icon-button{width:2.35rem;height:2.35rem;display:inline-grid;place-items:center;padding:0;border-radius:999px}.icon-button svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.button-secondary{min-height:2.35rem;padding:.48rem .8rem;background:#ffffff;color:#005646;border:1px solid rgba(0,86,70,.24)}.text-action{width:fit-content;min-height:2.1rem;border:1px solid rgba(5,7,6,.72);border-radius:999px;padding:.32rem .68rem;background:rgba(255,255,255,.35);color:#050706;font:inherit;font-size:.95rem;font-weight:500;line-height:1.2;cursor:pointer}.text-action:hover,.text-action:focus-visible{border-color:#005646;color:#005646;background:#ffffff}.button-danger{min-height:2.35rem;padding:.48rem .8rem;background:#8f2d24;color:#fff}.auth-main,.account-main{width:min(100%,58rem);margin:0 auto;padding:clamp(2rem,7vh,5rem) clamp(1rem,3vw,2rem)}.auth-panel,.account-panel{display:grid;gap:1.4rem}.auth-panel h1,.account-panel h1,.section-heading h1,.section-heading h2{margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(2.1rem,5vw,4.4rem);font-weight:500;line-height:1}.auth-panel h1{font-size:clamp(2.15rem,4vw,3.45rem);font-weight:400}.section-heading h2{font-size:clamp(1.55rem,3vw,2.55rem)}.segmented-control{display:inline-flex;width:fit-content;padding:.2rem;border-radius:999px;background:rgba(255,255,255,.65);border:1px solid rgba(5,7,6,.1)}.auth-form{display:grid;gap:1rem;max-width:32rem}.auth-form label{display:grid;gap:.35rem;font-weight:500}.auth-form input{min-height:3rem;border-radius:8px;padding:.72rem .86rem}.auth-form .button{min-height:3rem}.library-main{width:min(100%,1280px);margin:0 auto;padding:clamp(1.2rem,3vw,2rem);display:grid;grid-template-columns:minmax(17rem,25rem) minmax(0,1fr);gap:clamp(1rem,2vw,1.5rem);align-items:start}.library-list,.report-detail{min-width:0}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.section-heading.compact{align-items:center}.report-list{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}.library-subsection{display:grid;gap:.55rem;margin:1rem 0 1.25rem}.library-subsection h2{margin:0;color:#005646;font-size:.95rem;line-height:1.15}.report-row{width:100%;min-height:4.3rem;display:grid;gap:.25rem;text-align:left;border:1px solid rgba(5,7,6,.1);border-radius:8px;background:#ffffff;padding:.82rem .9rem;cursor:pointer}.report-row:hover,.report-row:focus-visible,.report-row.selected{border-color:#0056466b;box-shadow:0 10px 18px #05070614}.report-row span{font-weight:520;line-height:1.22}.report-row small{color:#5a625d}.draft-row{display:grid;gap:.65rem;border:1px solid rgba(5,7,6,.1);border-radius:8px;background:#ffffff;padding:.82rem .9rem}.draft-row>div:first-child{display:grid;gap:.25rem}.draft-row small{color:#5a625d}.draft-actions{display:flex;gap:.5rem;flex-wrap:wrap}.button-danger.subtle{background:#ffffff;color:#8f2d24;border:1px solid rgba(143,45,36,.28)}.detail-actions{display:flex;flex-wrap:wrap;gap:.6rem}.markdown-body{background:#ffffff;border:1px solid rgba(5,7,6,.09);border-radius:8px;padding:clamp(1rem,2.5vw,2rem);line-height:1.7}.markdown-body h1,.markdown-body h2,.markdown-body h3{font-family:Georgia,Times New Roman,serif;line-height:1.08}.markdown-body h1:first-child,.markdown-body h2:first-child,.markdown-body h3:first-child{margin-top:0}.markdown-body p:last-child{margin-bottom:0}.mermaid-diagram{width:100%;max-width:100%;overflow-x:auto;margin:1rem 0;padding:.85rem;border:1px solid rgba(0,86,70,.16);border-radius:8px;background:#fbfdfb}.mermaid-diagram svg{display:block;width:100%;max-width:100%;height:auto;min-width:34rem}.mermaid-fallback{max-width:100%;overflow-x:auto;padding:.85rem;border-radius:8px;background:#f7f8f7;border:1px solid rgba(5,7,6,.1)}.empty-state,.notice-box{margin:0;padding:.9rem 1rem;border-radius:8px;background:#ffffff;border:1px solid rgba(5,7,6,.1)}.notice-box{color:#005646}.chat-notice{position:absolute;left:50%;right:auto;bottom:4.35rem;width:min(100% - 1.5rem,31rem);transform:translate(-50%);z-index:5;box-shadow:0 8px 18px #0056461a}.account-facts{display:grid;gap:.75rem;margin:0}.account-facts div{display:grid;grid-template-columns:10rem minmax(0,1fr);gap:1rem;padding:.9rem 0;border-bottom:1px solid rgba(5,7,6,.1)}.account-facts dt{font-weight:520}.account-facts dd{margin:0;overflow-wrap:anywhere}.site-footer{display:grid;justify-items:center;gap:.8rem;margin-top:auto;padding:3rem clamp(1rem,3vw,2rem);background:#16201d;color:#d2d8d0;text-align:center}.site-footer p{margin:0}.site-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:1.1rem;font-weight:500}.footer-brand{color:#fff}.opening-loader{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:1.5rem;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.82),rgba(238,238,232,.94) 42%),#eeeee8}.opening-loader-panel{display:grid;justify-items:center;gap:.65rem;color:#050706}.loader-mark{width:2.35rem;height:2.35rem;border-radius:999px;border:1px solid rgba(0,86,70,.22);border-top-color:#005646;animation:loader-spin .9s linear infinite}.loader-kicker{margin:.25rem 0 0;color:#005646;font-size:.85rem;font-weight:500;text-transform:uppercase}.loader-text{margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(1.5rem,4vw,2.5rem);line-height:1.05}@keyframes loader-spin{to{transform:rotate(360deg)}}.error-box{position:absolute;left:50%;right:auto;bottom:4.35rem;width:min(100% - 1.5rem,31rem);transform:translate(-50%);z-index:5;padding:.85rem 1rem;border-radius:8px;background:#ffe8e5;border:1px solid #f3c2b9;color:#823b2f;box-shadow:0 8px 18px #823b2f21}.error-box.static{position:static;box-shadow:none}.page-alert{position:fixed;top:4.4rem;left:50%;transform:translate(-50%);z-index:90;display:flex;align-items:center;gap:.8rem;width:min(94vw,42rem);padding:.8rem 1rem;border-radius:8px;background:#ffe8e5;border:1px solid #f3c2b9;color:#823b2f}.page-alert button{margin-left:auto;border:none;background:transparent;font-size:1.35rem;cursor:pointer}.milestone-ribbon{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (max-width: 880px){.site-header{min-height:auto;grid-template-columns:1fr;justify-items:start;gap:.65rem;padding-top:.8rem;padding-bottom:.75rem}.site-nav,.app-nav{width:100%;justify-content:flex-start;gap:.65rem;overflow-x:auto;font-size:.95rem}.user-menu-button{max-width:18rem}.user-menu-popover{left:0;right:auto}.app-main{padding:0 .75rem .85rem}.chat-controls{align-items:stretch}.theme-control,.theme-control label{flex:1 1 100%}.theme-control select{flex:1}.workbench,.workbench.has-milestones,.workbench.no-milestones{min-height:calc(100svh - 13rem);grid-template-columns:minmax(0,1fr)}.milestone-sidebar{display:none}.chat-card{min-height:calc(100svh - 13rem);max-height:calc(100svh - 13rem);border-radius:8px}.milestone-ribbon{display:block;flex:0 0 auto;padding:.72rem .15rem .45rem;overflow:hidden}.milestone-ribbon.fade-left{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 100%);mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 100%)}.milestone-ribbon.fade-right{-webkit-mask-image:linear-gradient(90deg,#000 0,#000 88%,transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 88%,transparent 100%)}.milestone-ribbon.fade-both{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 88%,transparent 100%)}.milestone-ribbon-scroll{display:flex;align-items:center;gap:.42rem;overflow-x:auto;white-space:nowrap;scrollbar-width:none;padding:0 .85rem .3rem}.milestone-ribbon-scroll::-webkit-scrollbar{display:none}.ribbon-item{display:inline-flex;align-items:center;gap:.28rem;color:#151915;font-size:.82rem;font-weight:400}.ribbon-item:not(:last-child):after{content:"·";margin-left:.42rem;color:#1519158c}.ribbon-item.milestone-done{opacity:.66}.ribbon-item.milestone-current{color:#005646;font-family:Georgia,Times New Roman,serif;font-size:1.12rem;font-style:italic;font-weight:600}.ribbon-current-label{font-family:Inter,system-ui,sans-serif;font-size:.58rem}.message-list{padding:1.25rem .55rem 12rem;gap:1.75rem;scroll-padding-bottom:12rem}.message-bubble,.message-user .message-bubble{max-width:min(88%,32rem)}.message-role{margin-bottom:.65rem;font-size:1rem}.message-bubble p{font-size:.98rem;line-height:1.28}.chat-form{width:calc(100% - 1.5rem);bottom:.75rem;gap:.35rem}.chat-input{min-height:2.35rem}.button-send{flex-basis:auto}.error-box,.chat-notice{bottom:4.1rem}.library-main{grid-template-columns:minmax(0,1fr)}.section-heading,.section-heading.compact{display:grid}.detail-actions{width:100%}.detail-actions .button{flex:1 1 10rem}}@media (max-width: 430px){.message-list{padding-bottom:12rem;scroll-padding-bottom:12rem}.error-box,.chat-notice{bottom:4.35rem}.account-facts div{grid-template-columns:minmax(0,1fr);gap:.25rem}}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.6;color-scheme:light;color:#14201b;background-color:#f5f8f5;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}strong,b,h1,h2,h3,h4,h5,h6{font-weight:500}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:#f5f8f5}button,textarea,input{font:inherit}a{color:inherit}img{max-width:100%;display:block}
