@scope (.studioWorkspace) {
@font-face{font-family:DM Sans;src:url(/sans400.woff2) format('woff2');font-weight:400;font-display:swap}@font-face{font-family:DM Sans;src:url(/sans500.woff2) format('woff2');font-weight:500;font-display:swap}@font-face{font-family:DM Sans;src:url(/sans600.woff2) format('woff2');font-weight:600;font-display:swap}@font-face{font-family:DM Sans;src:url(/sans700.woff2) format('woff2');font-weight:700;font-display:swap}@font-face{font-family:Instrument Serif;src:url(/serif.woff2) format('woff2');font-style:italic;font-display:swap}
:scope{--paper:#f8f8f5;--white:#fff;--ink:#22332e;--muted:#64706a;--brick:#aa452f;--line:#d9ddd5;--light:#edf0e9;color:var(--ink);background:var(--paper);font-family:'DM Sans',Arial,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #b16d45;outline-offset:3px}button{border:0;background:none}a{color:var(--brick)}h1,h2,h3,p,figure{margin:0}h1,h2,h3{letter-spacing:-.045em;line-height:1.1}h2{font-size:1.7rem;font-weight:600}h3{font-size:1.13rem}p{line-height:1.55;color:var(--muted)}small{font-size:.82rem}main,.mastin,.sitefoot{max-width:1536px;width:92%;margin:auto}.mast{background:var(--white);border-bottom:1px solid var(--line)}.mastin{height:78px;display:flex;align-items:center;justify-content:space-between;gap:2rem}.brandbtn{padding:0}.brand,.brandmark,.actions,.btn,.mast nav,.mast nav button,.breadcrumb,.sitefoot span,.iconbtn,.flag{display:inline-flex;align-items:center}.brand{gap:10px;white-space:nowrap}.brand strong{font-size:1.55rem;letter-spacing:-.065em;font-weight:700}.brand>span{border-left:1px solid var(--line);padding-left:13px;font-size:1rem;font-weight:500;letter-spacing:-.035em}.brandmark{width:32px;height:29px;position:relative;transform:skewX(-17deg)}.brandmark b{position:absolute;background:var(--brick);height:5px;top:2px;left:1px;width:30px}.brandmark b:nth-child(2){top:10px;width:22px}.brandmark b:nth-child(3){top:18px;width:13px}.mast nav{gap:.35rem;margin-left:auto}.mast nav button{padding:.65rem .9rem;gap:.45rem;border-radius:5px;color:#626b66;font-weight:500;font-size:.92rem}.mast nav button.active,.mast nav button:hover{background:#eef0eb;color:var(--ink)}.account{position:relative;padding-left:20px;border-left:1px solid var(--line)}.avatar{width:36px;height:36px;background:#e5e8df;color:#344336;border:1px solid #cbd1c5;border-radius:50%;font-weight:600}.accountmenu{position:absolute;z-index:10;right:0;top:45px;background:white;border:1px solid var(--line);padding:20px;min-width:220px;display:grid;gap:6px;box-shadow:0 8px 30px #20332e15}.breadcrumb{gap:10px;font-size:.84rem;color:var(--muted);margin:24px 0}.breadcrumb span{color:#9a9f98}.breadcrumb button{padding:0;font-size:inherit;color:var(--brick)}
.hero{display:grid;grid-template-columns:1fr 1.02fr;min-height:410px;background:#eef0e9;border:1px solid #d5dbd0;border-radius:12px;overflow:hidden}.herocopy{align-self:center;padding:clamp(30px,4.2vw,74px)}.eyebrow{text-transform:uppercase;letter-spacing:.145em;font-weight:700;font-size:.73rem;color:var(--muted);display:flex;align-items:center;gap:9px}.eyebrow i{width:24px;height:2px;background:var(--brick)}.herocopy .eyebrow{color:#844632}.hero h1{font-size:clamp(3.8rem,5.65vw,6.4rem);font-weight:500;line-height:.98;letter-spacing:-.072em;margin:23px 0 17px}.welcome-logo{display:block;width:min(100%,360px);height:auto}.herocopy p{max-width:445px;font-size:1.03rem;line-height:1.55;color:#56625a}.herocopy .actions{margin-top:25px}.actions{gap:10px;flex-wrap:wrap}.btn{justify-content:center;gap:8px;background:var(--white);border:1px solid #cdd3ca;padding:10px 15px;min-height:42px;border-radius:6px;font-weight:600;font-size:.9rem;line-height:1.2}.btn:hover:not(:disabled),.iconbtn:hover{background:#eef0e9}.btn.primary{background:var(--ink);border-color:var(--ink);color:white}.btn.primary:hover:not(:disabled){background:#384d42}.heropic{position:relative;min-height:100%;isolation:isolate}.heropic img{position:absolute;inset:0;object-fit:cover;object-position:51% 50%;width:100%;height:100%}.heropic figcaption{display:flex;align-items:center;gap:9px;position:absolute;bottom:18px;left:18px;right:18px;padding:10px 14px;background:#fffffff0;color:#36443a;font-size:.8rem;border-radius:4px}.heropic figcaption i{width:6px;height:6px;background:var(--brick)}.heropic figcaption span{margin-left:auto;color:var(--muted)}
.homegrid{display:grid;grid-template-columns:minmax(0,1.64fr) minmax(0,1fr);gap:34px;margin:36px 0 40px}.sectiontitle{position:relative;margin-bottom:17px}.sectiontitle .eyebrow{font-size:.67rem;margin-bottom:7px}.sectiontitle h2{font-size:1.8rem}.sectiontitle button{position:absolute;bottom:0;right:0;display:flex;align-items:center;gap:5px;font-size:.87rem;color:var(--muted)}.recent,.cardgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.studycard,.newcard,.quicklist,.panel,.statgrid>div{background:white;border:1px solid var(--line);border-radius:9px}.studycard{text-align:left;display:flex;flex-direction:column;min-width:0;padding:18px 20px;transition:border-color .15s,transform .15s}.studycard:hover,.newcard:hover{border-color:#9aa799;transform:translateY(-2px)}.cardtop,.cardfoot,.sectiontitle,.quicklist button,.resultbar,.accessrow{display:flex;align-items:center}.sectiontitle{display:block}.cardtop,.cardfoot,.resultbar{justify-content:space-between}.tileicon{width:36px;height:36px;border-radius:7px;background:#edf0e9;display:grid;place-items:center;color:#405644}.flag{font-size:.74rem;line-height:1;padding:6px 9px;border-radius:20px;background:#f2eee4;color:#775e36;white-space:nowrap}.studycard h3{font-size:1.27rem;margin:14px 0 4px;overflow-wrap:anywhere}.studycard p,.newcard small,.quicklist small{font-size:.85rem;color:var(--muted)}.cardfoot{margin-top:auto;padding-top:15px;font-size:.76rem;color:var(--muted)}.newcard{border-style:dashed;background:transparent;display:flex;flex-flow:column;justify-content:center;align-items:center;gap:8px;padding:16px}.newcard>span{display:grid;place-items:center;border:1px solid #cdd3ca;width:37px;height:37px;border-radius:50%;color:var(--muted)}.quicklist{padding:0 18px}.quicklist button{width:100%;gap:13px;padding:20px 0;text-align:left}.quicklist button+button{border-top:1px solid var(--line)}.quicklist button>svg{margin-left:auto;color:#849086}.quicklist button b,.quicklist small{display:block}.quicklist b{font-size:.98rem;margin-bottom:3px}.sitefoot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:34px;padding:17px 0 23px;color:var(--muted);font-size:.78rem}.sitefoot span{gap:8px}.sitefoot b{font-weight:400;color:#a2a79f}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:6px 0 26px}.title-row h1{font-size:clamp(2.25rem,3.6vw,3.8rem);font-weight:500;margin:8px 0}.title-row .eyebrow{color:var(--brick)}.filterbar,.deploymenttools,.accessrow{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filterbar{align-items:center;background:white;padding:14px;border:1px solid var(--line);border-radius:8px}.search{flex:1;min-width:220px;display:flex;align-items:center;gap:8px}.search input{border:0;width:100%}.projectgroup{margin:26px 0}.projectgroup h2{display:flex;align-items:center;gap:8px;font-size:1.28rem;margin-bottom:14px}.cardgrid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}.samplebox{max-width:360px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span,th{font-weight:600;font-size:.86rem}.field input,.field select,.field textarea{width:100%}input,select,textarea{background:#fff;border:1px solid #cbd2c7;border-radius:5px;padding:8px 10px;max-width:100%;min-width:0;font-size:.94rem;outline-color:#8b9d87}input:disabled,select:disabled,textarea:disabled{color:#37463c;opacity:1}input[type=checkbox]{width:16px;height:16px;accent-color:#495e4a}.number-input{font-variant-numeric:tabular-nums}input:disabled,select:disabled,textarea:disabled{background-color:#f6f7f3}textarea{resize:vertical}.comparestrip{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;position:sticky;top:0;z-index:3;background:var(--paper);padding:6px 0}.comparecard,.offertotal{border:1px solid var(--line);border-radius:8px;padding:15px 18px;background:white}.comparecard .eyebrow,.offertotal .eyebrow{font-size:.66rem}.comparelines{display:flex;flex-wrap:wrap;gap:10px 22px;margin:10px 0}.comparelines span{font-size:.8rem;color:var(--muted)}.comparelines b{display:block;font-weight:600;color:var(--ink);font-size:1.22rem;font-variant-numeric:tabular-nums}.comparecard>small{font-size:.74rem;color:var(--muted)}.comparecard>small b{margin-left:6px}.offertotal{color:white;background:var(--ink);display:flex;flex-direction:column;gap:7px}.offertotal .eyebrow,.offertotal>span{color:#d7e0d7}.offertotal strong{font-size:1.7rem;letter-spacing:-.04em}.offertotal strong small{font-size:.85rem}.offertotal>span{font-size:.77rem}.tabs{display:flex;overflow-x:auto;gap:4px;border-bottom:1px solid var(--line);margin:20px 0}.tabs button{white-space:nowrap;padding:12px 11px;border-bottom:2px solid transparent;color:var(--muted);font-size:.9rem}.tabs button.active{color:var(--brick);border-bottom-color:var(--brick);font-weight:600}.editorbody{border:0;padding:0;margin:0;min-width:0}.panel{padding:22px;margin-bottom:16px;min-width:0}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.panelhead h2{font-size:1.35rem}.panelhead p,.hint{font-size:.9rem;margin-top:5px;max-width:880px}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 18px}.fields.wide{grid-template-columns:repeat(2,minmax(0,1fr))}.fields+.fields,.specialist+.specialist,.subhead{margin-top:20px}.miniresult{border-left:3px solid var(--brick);padding:0 12px;display:flex;flex-direction:column;justify-content:center;gap:4px}.tablewrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:5px}.deploymenttools{margin-bottom:18px}table{width:100%;border-collapse:collapse;font-size:.9rem}td,th{text-align:left;border-bottom:1px solid #e3e7df;padding:10px;vertical-align:middle}th{background:#f1f3ed;color:#506051;font-size:.82rem}td{font-variant-numeric:tabular-nums}tr:last-child td{border-bottom:0}td small,th small{display:block;color:var(--muted);font-weight:400;font-size:.8rem;line-height:1.4}.weights{min-width:860px}.weights td:first-child{min-width:215px}.weights td:first-child input,.teamtable td:first-child input{width:100%}.weights td:first-child input+input,.teamtable td:first-child input+input{margin-top:5px}.weightcell{display:flex;align-items:center;gap:4px}.weightcell .number-input{width:65px}.roletable{min-width:760px}.roletable td:first-child{width:29%}.roletable td:first-child input{width:100%}.roletable .number-input{max-width:112px}.roletable td:nth-child(2) input{width:65px}.schedule{margin-top:14px}.schedule th:first-child{position:sticky;left:0;z-index:1;min-width:165px;max-width:230px}.schedule td input{width:78px}.schedule td input.allocated{background:#eaf0e6;border-color:#cbd8c8}.schedule th small button{text-decoration:underline;color:var(--brick);font-size:.75rem;padding:0 3px}.totalrow{font-weight:600}.resultbar{padding-top:16px;color:var(--muted);gap:14px;font-size:.9rem}.resultbar b{color:var(--ink)}.iconbtn{padding:6px;border-radius:4px;justify-content:center}.specialist{padding:12px 0;border-top:1px solid var(--line)}.specialist .btn{margin-top:12px}.empty{padding:32px 18px;text-align:center;background:#f1f3ee;border-radius:5px;font-size:.95rem;color:var(--muted);margin:12px 0}.summarylines{margin:20px 0;max-width:600px}.summarylines span{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}.summarylines span:last-child{font-weight:600;color:var(--brick)}.pre{white-space:pre-wrap}
.adminlayout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px}.companyrail{padding:14px;border:1px solid var(--line);border-radius:8px;align-self:start;background:white}.companyrail>button{width:100%;text-align:left;display:flex;align-items:center;gap:8px;padding:12px 9px;font-size:.9rem;margin-top:8px}.companyrail button.active,.selected{background:var(--light)}.companyrail svg{flex:none}.admincontent{min-width:0}.admincontent>h2{font-size:1.6rem}.statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:15px}.statgrid>div{padding:15px}.statgrid small,.miniresult small{color:var(--muted)}.statgrid.payroll-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}.statgrid b{display:block;margin-top:5px;font-size:1.35rem}.teamtable{min-width:740px}.teamtable td:first-child{min-width:160px}.teamtable .number-input{width:90px}.accessrow{margin:12px 0}.toast,.errorbar{padding:12px 16px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:6px;z-index:20;box-shadow:0 5px 25px #26393033;display:flex;align-items:center;gap:12px;max-width:95vw}.toast button{color:white}.errorbar{background:#fbede7;color:#813d2c}.errorbar button{text-decoration:underline}dialog{border:1px solid var(--line);border-radius:12px;max-width:min(450px,94vw);width:100%;padding:24px;color:var(--ink);box-shadow:0 16px 90px #10291b35}dialog::backdrop{background:#14241b66}dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}dialog h2{font-size:1.55rem}dialog .field,dialog .hint{margin-bottom:16px}
@media(min-width:1550px){.hero{min-height:490px}}@media(max-width:1000px){.mastin{gap:10px}.hero{min-height:375px}.herocopy{padding:28px}.homegrid{gap:22px}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.adminlayout{grid-template-columns:175px minmax(0,1fr)}.comparelines{gap:12px}.comparecard,.offertotal{padding:12px}.hero h1{font-size:4.4rem}}@media(max-width:740px){main,.mastin,.sitefoot{width:92%}.mastin{height:auto;min-height:64px;flex-wrap:wrap;gap:0;padding-top:12px}.mast nav{order:3;width:100%;margin:8px 0 0}.mast nav button{padding:8px;font-size:.83rem}.account{margin-left:auto}.brand strong{font-size:1.3rem}.breadcrumb{margin:16px 0}.hero{grid-template-columns:1fr}.herocopy{padding:28px}.hero h1{font-size:4.1rem;margin:18px 0 12px}.heropic{min-height:200px}.heropic img{object-position:center 55%}.homegrid{grid-template-columns:1fr;margin-top:25px}.sectiontitle h2{font-size:1.6rem}.title-row{align-items:flex-start;flex-direction:column}.comparestrip{grid-template-columns:1fr 1fr;gap:6px;position:static}.offertotal{grid-column:1/-1}.fields,.fields.wide{grid-template-columns:1fr 1fr}.adminlayout{grid-template-columns:1fr}.companyrail{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.companyrail>button{width:auto;margin:0}.panel{padding:15px}.panelhead{align-items:flex-start;flex-wrap:wrap}.sitefoot{gap:12px;align-items:flex-start}.filterbar select{width:100%}.tabs{margin:12px 0}.recent{gap:9px}.studycard{padding:14px}.heropic figcaption{bottom:10px;left:10px;right:10px}.brand>span{font-size:.88rem}.title-row h1{overflow-wrap:anywhere}.statgrid{grid-template-columns:1fr 1fr}.accountmenu{top:39px}}@media(max-width:460px){.fields,.fields.wide{grid-template-columns:1fr}.recent{grid-template-columns:1fr}.newcard{flex-direction:row;justify-content:flex-start}.newcard small{display:none}.comparelines{flex-direction:column;gap:3px}.comparelines span{display:flex;justify-content:space-between;gap:4px}.comparelines b{font-size:.88rem}.homegrid{gap:18px}.btn{padding:9px 11px}.hero h1{font-size:3.9rem}.sitefoot{font-size:.7rem}.cardgrid{grid-template-columns:1fr}.herocopy{padding:25px}.admincontent>h2{margin-top:5px}}

.libraryviews{display:flex;align-items:center;gap:10px;margin:16px 0}.libraryviews>span{margin-right:auto;color:var(--muted);font-size:.9rem}.libraryviews>div{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden}.libraryviews button{padding:8px 12px;font-size:.85rem}.libraryviews button[aria-pressed=true]{background:var(--light);font-weight:600}.studylist{display:grid;gap:6px}.studylist .studycard{display:grid;grid-template-columns:150px 1fr 1fr 1fr;align-items:center;gap:12px}.studylist h3,.studylist .cardfoot{margin:0;padding:0}.projectgroup h2 small{color:var(--muted);font-size:.76rem;font-weight:400;letter-spacing:0}.projectgroup h2{flex-wrap:wrap}@media(max-width:740px){.studylist .studycard{grid-template-columns:1fr 1fr}.studylist .cardtop{justify-content:flex-start;gap:8px}}

.studyentry{display:flex;flex-direction:column;min-width:0;container-type:inline-size;border:1px solid var(--line);border-radius:9px;background:white}
.studyentry>.studycard{flex:1;width:100%;border:0;border-radius:8px}
.studyentry>.studycard:hover{background:#f8faf6;transform:none}
.studyactions{display:flex;align-items:center;justify-content:space-between;gap:2px;padding:5px 8px;border-top:1px solid var(--line)}
.studyactions .btn{min-height:36px;gap:4px;border:0;background:transparent;padding:5px 4px;font-size:.8rem;white-space:nowrap}
.studyactions svg{width:14px;height:14px;flex:none}
.recent .studycard{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-content:center;align-items:start;gap:3px 12px;padding:18px 16px}
.recent .cardtop{display:contents}
.recent .tileicon{grid-column:1;grid-row:1 / span 2}
.recent .flag{grid-column:3;grid-row:1;align-self:center}
.recent .studycard h3{grid-column:2;grid-row:1;margin:0;font-size:1.1rem;line-height:1.35}
.recent .studycard p,.recent .cardfoot{grid-column:2 / -1;margin:0;padding:0;overflow-wrap:anywhere}
.recent .repeated-title,.recent .studycard p:empty,.recent .cardfoot svg{display:none}
.recent .studyactions{justify-content:flex-start}
@media (min-width:741px){
 .homegrid{row-gap:0}
 .homegrid>section{display:grid;grid-row:span 2;grid-template-rows:subgrid}
 .homegrid .quicklist{display:grid;grid-auto-rows:1fr}
}
@container (min-width:300px){.recent .studyactions{padding-inline:12px;gap:7px}}
@container (max-width:265px){.studyactions{padding-inline:4px}.studyactions .btn{gap:3px;padding-inline:2px;font-size:.75rem}}
@container (max-width:255px){.studyactions .btn:last-child svg{display:none}}
@container (max-width:235px){.studyactions svg{display:none}}
.btn.deleteaction{color:#993d2c}
.btn.danger{background:#993d2c;color:white;border-color:#993d2c}
.btn.danger:hover:not(:disabled){background:#823325}
.studyactioninfo{margin-bottom:18px;overflow-wrap:anywhere}
@media(min-width:950px){.studylist .studyentry{flex-direction:row;align-items:stretch}.studylist .studycard{grid-template-columns:125px 1fr 1fr 1fr}.studylist .studyactions{align-items:center;border-top:0;border-left:1px solid var(--line)}}

.department-list{display:grid;gap:10px;min-width:0}
.member-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:white;padding:0 10px;color:var(--muted)}
.member-search:focus-within{outline:2px solid #82957e;outline-offset:1px}
.member-search input{width:100%;border:0;background:transparent;outline:none;min-height:40px}
.department-group{border:1px solid var(--line);border-radius:7px;overflow:hidden;min-width:0}
.department-heading{display:flex;align-items:center;gap:8px;width:100%;padding:11px 12px;background:#edf1ea;text-align:left}
.department-heading strong{font-size:.93rem;overflow-wrap:anywhere}
.department-heading span{margin-left:auto;white-space:nowrap;font-size:.8rem;color:var(--muted)}
.directory-table{border:0;border-radius:0}.directory-table table{min-width:640px}.directory-table td,.directory-table th{padding:9px 12px}.directory-table th{background:#f7f8f5}
.directory-table td:nth-child(4),.directory-table td:nth-child(5){white-space:nowrap}
.rate-toggle{display:flex;align-items:center;gap:7px;margin-bottom:12px;font-size:.86rem;color:var(--muted)}
.member-actions,.salary-fields{display:flex;align-items:center;gap:8px}.member-edit{font-size:.86rem;text-decoration:underline;text-underline-offset:3px}
.salary-fields .field{flex:1;min-width:0}
dialog:has(.department-list){width:min(500px,94vw)}
dialog .department-list{max-height:62vh;overflow:auto;padding:2px}
.group-search-tools{display:flex;align-items:stretch;gap:8px}
.group-search-tools .member-search{min-width:0;flex:1}
.group-search-actions{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}.group-search-actions:empty{display:none}.directory-toolbar{flex-wrap:wrap}.directory-toolbar .member-search{flex:1 1 220px}.group-search-tools .btn{white-space:nowrap}
dialog .group-search-tools{position:sticky;top:0;z-index:1;background:white}
.member-choice{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;cursor:pointer;background:white}
.member-choice:hover,.member-choice:focus-within,.member-choice:has(:checked){background:#f2f6ef}
.member-choice+.member-choice{border-top:1px solid var(--line)}
.member-choice input{flex:none}
.member-choices strong,.member-choices small{display:block}.member-choices small{color:var(--muted);margin-top:3px}
.member-picker-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:14px;margin-top:12px}
.member-picker-footer>span{margin-right:auto;color:var(--muted);font-size:.9rem}
dialog:has(.member-picker-footer) .department-list{max-height:min(58vh,calc(100dvh - 205px))}
.department-field>label{font-size:.86rem;font-weight:600}
.department-input{position:relative}
.department-input input{padding-right:38px}
.department-toggle{position:absolute;right:1px;top:1px;bottom:1px;width:34px;display:grid;place-items:center;border-radius:4px;color:var(--muted)}
.department-options{list-style:none;margin:0;padding:4px;border:1px solid var(--line);border-radius:6px;background:white;max-height:155px;overflow-y:auto}
.department-options li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;font-size:.94rem;border-radius:4px;cursor:pointer;overflow-wrap:anywhere}
.department-options li:hover,.department-options li.highlighted,.department-options li[aria-selected=true]{background:#edf1ea}

.studio-logo{width:124px;height:52px;object-fit:contain;display:block}
.company-logo-settings{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
.company-logo-settings img{width:154px;height:80px;object-fit:contain;background:white;border:1px solid var(--line);border-radius:6px;padding:8px}
.company-logo-settings p{margin:0 0 8px}
.autosave-state{display:inline-flex;align-items:center;gap:7px;font-size:.86rem;color:var(--muted)}
.method-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.phase-switch,.checkline{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.phase-switch{font-size:.83rem;font-weight:600}
.phase-switch input[type=checkbox]{appearance:none;position:relative;width:35px;height:21px;padding:0;background:#d1d7cd;border:1px solid #aab5aa;border-radius:12px}
.phase-switch input:checked{background:#49634e;border-color:#49634e}
.phase-switch input:before{content:'';display:block;width:15px;height:15px;border-radius:50%;background:white;position:absolute;top:2px;left:2px}
.phase-switch input:checked:before{transform:translateX(14px)}
.weight-method,.baseline-form,.scope-stats,.subsection-title{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.weight-method .field{min-width:200px}.weight-method p{flex:1;min-width:220px;font-size:.93rem}
.scope-stats{margin:18px 0;padding:14px 18px;background:#edf1ea;border-radius:7px;gap:30px}.scope-stats span,.scope-stage summary small{color:var(--muted);font-size:.83rem}
.scope-stats b,.scope-stage summary small{display:block}.scope-stats b{color:var(--ink);font-size:1.08rem;margin-top:3px}
.scope-stage,.schedule-department{border:1px solid var(--line);border-radius:7px;margin:10px 0;overflow:hidden}
.scope-stage>summary,.schedule-department>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:14px 16px;background:#f4f6f1;list-style:none}
.scope-stage>summary:before,.schedule-department>summary:before{content:'›';font-size:1.25rem;line-height:1;transition:transform .1s}
.scope-stage[open]>summary:before,.schedule-department[open]>summary:before{transform:rotate(90deg)}
.scope-stage>summary>span,.schedule-department>summary>span{margin-left:auto;font-size:.83rem;text-align:right;color:var(--muted)}
.scope-stage>summary small{margin-top:4px}.scope-stage>summary b{color:var(--ink)}
.stage-body,.department-body{padding:16px}.stage-body h3,.summary-section h3{margin:16px 0 9px}
.stage-body .number-input{width:92px}
.subsection-title{justify-content:space-between;margin:16px 0 10px}.subsection-title h3{margin:0}
.stage-remove{margin-top:16px;color:var(--brick);font-size:.86rem}
.summary-detail{padding:10px 0}.baseline-form{align-items:end;margin-bottom:18px}
.baseline-table{margin-top:16px}.summary-section{margin-bottom:20px}
.summary-section tfoot .totalrow>*{background:#e8eee7;border-top:1px solid var(--line);font-weight:650}
.summary-matrices{overflow-x:auto;max-width:100%}
.summary-matrices h3{position:sticky;left:0;width:fit-content}
.summary-fee-matrix{table-layout:fixed;width:100%;border:1px solid var(--line)}
.summary-fee-matrix .matrix-label{width:11rem}
.summary-fee-matrix .matrix-total{width:8rem}
.summary-fee-matrix th,.summary-fee-matrix td{overflow-wrap:anywhere}
.summary-fee-matrix tr>:first-child{position:sticky;left:0;background:#f1f3ed}
.summary-fee-matrix tr>:not(:first-child){text-align:right}
.summary-fee-matrix .totalrow>*{background:#e8eee7}

@media(max-width:950px){.method-pair{grid-template-columns:1fr;gap:0}}
@media(max-width:600px){.studio-logo{width:87px;height:40px}.stage-body,.department-body{padding:10px}.weight-method .field,.weight-method p{min-width:0;flex-basis:100%}.scope-stats{gap:12px}}

.stage-share-controls{margin:15px 0 4px}.scope-stage>summary input[type=checkbox]{flex:none}
.schedule th:last-child:not(:first-child){white-space:normal}.schedule-department .schedule select{min-width:135px}
.scope-stage .stage-percent{margin-left:auto;display:grid;grid-template-columns:auto 74px;align-items:center;gap:7px;font-size:.8rem;color:var(--muted)}
.scope-stage>summary>.stage-fee{margin-left:4px;min-width:90px}
@media(max-width:640px){.scope-stage>summary{flex-wrap:wrap}.scope-stage>summary>div{flex:1;min-width:120px}.scope-stage .stage-percent{grid-template-columns:1fr;gap:3px}.scope-stage .stage-percent input{width:74px}.scope-stage>summary>.stage-fee{min-width:65px}}
.member-login{max-width:480px;margin:8vh auto;padding:24px}
.member-login form{background:#fff;border:1px solid #d1d8ca;border-radius:16px;padding:32px;display:grid;gap:16px}
.member-login h1,.member-login p{margin:0}.member-login p{color:#516456}
.member-username{display:block;font-weight:400;color:#516456}
.member-access{margin-top:16px;border-top:1px solid #d1d8ca;padding-top:12px}.member-access .field{margin-bottom:10px}
.number-control{position:relative;display:inline-flex;vertical-align:middle;max-width:100%;min-width:0}
.field .number-control{width:100%}
.number-control input.number-input{padding-right:29px;min-width:60px}
.number-arrows{position:absolute;right:2px;top:2px;bottom:2px;width:22px;display:grid;grid-template-rows:1fr 1fr;border-left:1px solid #dbe0d7}
.number-arrows button{display:grid;place-items:center;border:0;background:transparent;padding:0;color:#53644f}
.number-arrows button:hover{background:#e8eee4}.number-arrows i{width:0;height:0;border:4px solid transparent}
.number-arrows .up{border-top:0;border-bottom-color:currentColor}.number-arrows .down{border-bottom:0;border-top-color:currentColor}
.scope-deliverables{margin-top:16px;border-top:1px solid var(--line)}
.scope-deliverables>summary{padding:12px 0;cursor:pointer;font-weight:600}
.scope-deliverables .subsection-title{margin:0 0 8px;justify-content:flex-end}
.schedule-downloads{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin:10px 0 14px;flex-wrap:wrap}
.monthly-fee-currency{font-size:.78rem;color:var(--muted)}
.schedule .month-fees td{background:#f5f7f3;font-variant-numeric:tabular-nums;border-bottom:1px solid var(--line)}
.schedule .person-monthly{min-width:7rem;font-weight:600;white-space:nowrap}
.deployment-role{min-width:125px}.department-body .schedule{margin-top:0}.schedule .member-edit{white-space:nowrap}
.reporting-table td select{width:100%;max-width:22rem}
.coordination-picker{min-width:10rem;max-width:22rem;background:white;border:1px solid #cdd3ca;border-radius:6px}
.coordination-picker summary,.coordination-picker label{padding:8px 10px;cursor:pointer}
.coordination-picker label{display:flex;align-items:center;gap:8px}
.deployment-settings{container-type:inline-size}
.deploymenttools{display:grid;grid-template-columns:repeat(4,minmax(0,13.5rem)) max-content;align-items:end;gap:16px}
.deploymenttools select,.deploymenttools .number-input,.deploymenttools .btn,.deploymenttools .phase-switch,.deploymenttools output{box-sizing:border-box;height:42px}
.deploymenttools .phase-switch{gap:10px}
.deploymenttools .phase-switch input{margin:0;flex-shrink:0}
.deploymenttools output{display:flex;align-items:center;padding:0 10px;background:#f4f5f1;border:1px solid #d7dcd3;border-radius:6px}
.deploymenttools .btn{justify-self:start}
@container (max-width:64rem){
 .deploymenttools{grid-template-columns:repeat(2,minmax(0,14.5rem))}
}
@container (max-width:31rem){
 .deploymenttools{grid-template-columns:minmax(0,1fr);gap:12px}
 .deploymenttools .btn{justify-self:stretch}
}
dialog:has(.profit-preview){max-width:min(650px,94vw)}
.profit-preview{margin-block:16px}.profit-preview h3{margin:0 0 8px}.profit-preview tbody th{font-weight:500}
.member-rate-link{background:transparent;border:0;padding:2px 0;color:var(--ink);text-align:left;font:inherit;font-weight:600;text-decoration:underline;text-decoration-color:#a5b2a6;text-underline-offset:3px}
.member-rate-link:hover{text-decoration-color:currentColor}
.rate-summary-meta{margin:-10px 0 16px;color:var(--muted)}
.rate-summary-list{margin:0 0 16px}.rate-summary-list>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:5px 0}
.rate-summary-list dt{color:var(--muted)}.rate-summary-list dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.summary-stage-groups{table-layout:fixed;overflow-wrap:anywhere}
.summary-stage-groups tbody th{font-weight:400;background:transparent;padding-left:24px}
.summary-stage-groups .stage-group-heading>*{background:#e8eee7;font-weight:650;border-top:1px solid var(--line);padding-left:12px}
.summary-stage-groups tr>:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

.hero.welcome-loading{margin:24px 0;min-height:12rem;display:grid;place-items:center;color:var(--muted)}
.hero-without-image{grid-template-columns:1fr;min-height:0}
.hero-without-image .herocopy{justify-self:center;text-align:center}
.hero-without-image .welcome-logo,.hero-without-image p{margin-inline:auto}
.hero-without-image .actions{justify-content:center}
.welcome-logo{max-height:180px;object-fit:contain;object-position:left center}.hero-without-image .welcome-logo{object-position:center}

.supplier-schedule .number-control{min-width:112px}
.supplier-schedule .number-input{width:100%}
.supplier-schedule td:nth-child(2){min-width:130px}
.supplier-schedule tfoot td{background:var(--light)}
.supplier-detail{margin:0 0 18px}
.supplier-detail summary{cursor:pointer;font-weight:600;padding:8px 0}

.account{display:flex;align-items:center;gap:8px}
.study-tab-divider{align-self:center;flex:0 0 1px;height:1.4rem;margin:0 6px;background:var(--line)}
.method-pair>.panel{display:flex;flex-direction:column}
.method-pair .offer-term{margin-top:auto;padding-top:20px}
.offer-term>div{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.offer-term strong{font-size:.86rem;font-weight:600}
.offer-term textarea{width:100%}
.offer-term textarea[readonly]{background-color:var(--light)}
.technical-study-switch{margin:0 0 12px}
.project-narratives>.field,.project-narratives>.offer-term{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:6px}
.project-narratives>.field>span,.project-narratives>.offer-term>div{align-self:center;margin:0}
.technical-stage-filter{max-width:24rem;margin-bottom:16px}
.technical-entry{padding:16px 18px;overflow-wrap:anywhere}
.technical-entry+.technical-entry{border-top:1px solid var(--line)}
.technical-entry header,.technical-deliverable{display:flex;align-items:center;justify-content:space-between;gap:12px}
.technical-entry p{margin-top:8px}
.technical-entry h4{margin:14px 0 4px;font-size:.9rem}
.technical-entry ol{margin:0;padding-inline-start:1.45rem}
.technical-entry li{padding:3px 0}
dialog:has(.technical-scope-form){max-width:min(610px,94vw)}
.technical-scope-form>.field,.technical-deliverable{margin-bottom:12px}
.technical-deliverable textarea{flex:1;min-width:0}
.technical-scope-form .actions{justify-content:flex-end}
.theme-toggle{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--ink)}
.theme-toggle:hover{background:var(--light)}
:scope[data-appearance=night]{
 color-scheme:dark;
 --paper:#141b19;--white:#202926;--ink:#edf3ee;--muted:#b2c0b8;--brick:#f09c82;--line:#48564e;--light:#303e36;
 --field:#1a221f;--raised:#29352e;--hover:#35453b;--primary:#b4ceb8;--primary-text:#16251b;
}
:scope[data-appearance=night] :is(.accountmenu,.studycard,.newcard,.quicklist,.panel,.statgrid>div,.filterbar,.comparecard,.companyrail,.studyentry,.member-choice,.department-options,.coordination-picker,dialog,.member-login form){background-color:var(--white);border-color:var(--line)}
:scope[data-appearance=night] :is(.member-search,dialog .group-search-tools){background-color:var(--white)}
:scope[data-appearance=night] :is(.mast nav button,.herocopy p,.member-login p,.member-username,.number-arrows button){color:var(--muted)}
:scope[data-appearance=night] :is(.mast nav button.active,.mast nav button:hover,.avatar,.hero,.tileicon,.department-heading,.scope-stats,.empty,.scope-stage>summary,.schedule-department>summary){background:var(--raised);color:var(--ink);border-color:var(--line)}
:scope[data-appearance=night] :is(.member-choice:hover,.member-choice:focus-within,.member-choice:has(:checked),.department-options li:hover,.department-options li.highlighted,.department-options li[aria-selected=true],.studyentry>.studycard:hover,.number-arrows button:hover){background:var(--hover)}
:scope[data-appearance=night] :is(.btn,.newcard>span,.number-arrows,.member-access,td,th){border-color:var(--line)}
:scope[data-appearance=night] :is(.btn:hover:not(:disabled),.iconbtn:hover){background:var(--hover)}
:scope[data-appearance=night] .btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}
:scope[data-appearance=night] .btn.primary:hover:not(:disabled){background:#c9ddca}
:scope[data-appearance=night] :is(.offertotal,.toast){background:#2f4438;color:var(--ink)}
:scope[data-appearance=night] .toast button{color:var(--ink)}
:scope[data-appearance=night] :is(input,select,textarea){background-color:var(--field);border-color:var(--line);color:var(--ink)}
:scope[data-appearance=night] input[type=checkbox]{accent-color:var(--primary)}
:scope[data-appearance=night] .phase-switch input[type=checkbox]{background:#49544d;border-color:#75867b}
:scope[data-appearance=night] .phase-switch input:checked{background:#51795e;border-color:#8cb396}
:scope[data-appearance=night] :is(input:disabled,select:disabled,textarea:disabled,.deploymenttools output,.schedule td input.allocated){background-color:var(--raised);border-color:var(--line);color:var(--muted)}
:scope[data-appearance=night] :is(th,.directory-table th,.summary-fee-matrix tr>:first-child,.schedule .month-fees td){background:var(--raised);color:var(--ink)}
:scope[data-appearance=night] :is(.summary-section tfoot .totalrow>*,.summary-fee-matrix .totalrow>*,.summary-stage-groups .stage-group-heading>*){background:var(--hover);color:var(--ink)}
:scope[data-appearance=night] .flag{background:#423a29;color:#ebd39c}
:scope[data-appearance=night] .errorbar{background:#462f29;color:#ffc4b1}
:scope[data-appearance=night] :is(.btn.deleteaction,.herocopy .eyebrow){color:var(--brick)}
:scope[data-appearance=night] .btn.danger{background:#833e32;color:#fff1ed}
:scope[data-appearance=night] .studio-logo{filter:invert(1)}
:scope[data-appearance=night] .welcome-logo,:scope[data-appearance=night] .company-logo-settings img.custom-logo{background:transparent;border-color:transparent;filter:brightness(0) invert(1)}
:scope[data-appearance=night] .hero .welcome-logo[src="/atom-offers.png"]{background:transparent;padding:0;filter:invert(1)}

.panelhead:has(>.directory-export){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 16px}
.directory-export{position:relative;justify-self:end}
.directory-export-trigger{white-space:nowrap;min-height:38px;padding:8px 12px}
.directory-export-trigger[aria-expanded=true]{border-color:var(--muted)}
.directory-export-trigger[aria-expanded=true] svg:last-child{transform:rotate(180deg)}
.directory-export-options{position:absolute;z-index:5;top:calc(100% + 5px);right:0;width:max-content;min-width:182px;padding:4px;background:var(--white);border:1px solid var(--line);border-radius:7px;box-shadow:0 5px 18px #172b2220}
.directory-export-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border-radius:4px;text-align:left;font-size:.92rem}
.directory-export-options button:hover,.directory-export-options button:focus-visible{background:var(--raised,#edf1ea)}
.directory-export-status{grid-column:1/-1}

.directory-sort{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}.directory-sort span{opacity:.7}

/* Keep each stepper inside the same sized box as its numeric input. */
.field .number-control > input.number-input {width:100%; box-sizing:border-box}
.scope-stage .stage-duration {margin-left:0}
.scope-stage .stage-percent .number-control {width:100%}
.scope-stage .stage-percent .number-input {width:100%; box-sizing:border-box}
.duration-pair {display:grid;grid-template-columns:minmax(5rem,1fr) minmax(6rem,auto);gap:.5rem;align-items:center}
.stage-duration-body {padding:1rem;display:grid;gap:.8rem;justify-items:start}
.stage-duration-body .hint {margin:0}
.stage-duration-grid {display:grid;width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.85rem 1rem}
.stage-duration-grid .number-control {max-width:11rem}

@media(min-width:741px){
 .scope-stage .stage-percent {grid-template-columns:auto 6rem}
}

.design-timing-summary{align-items:flex-start;flex-wrap:wrap;row-gap:.5rem}.timing-table{width:100%}.timing-table .number-control{width:7rem}.timing-table .number-input{width:100%}
.building-form section{padding:16px 0;border-top:1px solid var(--line)}
.building-form h3{font-size:1rem;margin:0 0 12px}
dialog:has(.building-form){max-width:min(560px,94vw)}
dialog .building-form .field{margin:0;justify-content:flex-end}
.building-form .building-method{grid-column:1/-1}
.building-form .field>input,.building-form .field>select,.building-form .building-preview output{min-height:38px}
.building-form .building-preview output{display:flex;align-items:center;font-weight:600;font-variant-numeric:tabular-nums}
.building-form .actions{border-top:1px solid var(--line);padding-top:14px;justify-content:flex-end}

@media(max-width:900px){.mast nav{min-width:0;flex-wrap:wrap}}
.number-input[aria-invalid="true"]{border-color:var(--accent,#ad4934)}
.number-control:has(.number-error){flex-wrap:wrap}
.number-error{display:block;width:100%;color:var(--accent,#ad4934);font-size:.75rem;line-height:1.35;padding-top:.25rem}

.studio-return{display:inline-flex;align-items:center;padding:8px 12px;color:inherit;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}.studio-return:hover{text-decoration:underline}

:scope {
  display:block; min-width:0; width:100%; font-family:DM,'Segoe UI',sans-serif; color:var(--ink);
  --paper:#f8f8f7; --white:#fff; --ink:#222220; --muted:#676763; --brick:#674b14; --line:#d5d5d0;
  --light:#eeeeeb; --field:#fff; --raised:#f0f0ed; --hover:#e9e9e3; --primary:#272726; --primary-text:#fff;
  background:transparent; color-scheme:light;
}
:scope[data-appearance=night]{
  --paper:#262626; --white:#303030; --ink:#f4f3ef; --muted:#b7b6b1; --brick:#edce71; --line:#51514f;
  --light:#383837; --field:#282828; --raised:#383837; --hover:#444440; --primary:#f0cd61; --primary-text:#24231f;
  color-scheme:dark; background:transparent;
}
.title-row{gap:14px; margin:0 0 20px; align-items:center}
.title-row h1{font-family:inherit;font-size:clamp(26px,3vw,38px);font-weight:650;letter-spacing:-.06em}
.title-row h2,.projectgroup h2{font-family:inherit;font-weight:650;letter-spacing:-.035em}
.title-row h2{font-size:24px}.projectgroup h2{font-size:18px}
.title-row .eyebrow:empty,.title-row .eyebrow i{display:none}
.btn,.iconbtn,select,input,textarea{font-family:inherit}
.btn{min-height:36px;padding:8px 13px;border-radius:11px;border-color:var(--line);background:var(--white);color:var(--ink);font-size:.825rem}
.btn.primary,.btn.primary:hover:not(:disabled){background:var(--primary);border-color:var(--primary);color:var(--primary-text)}
.filterbar,.libraryviews{margin:0 0 14px;gap:9px}.libraryviews{flex-wrap:wrap}
.filterbar{padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.filterbar input,.filterbar select,.libraryviews select{min-height:36px}
.filterbar>select,.libraryviews>select{width:auto;flex:0 1 auto}
input,select,textarea,.search{border-radius:9px;border-color:var(--line)}
.cardgrid{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:14px}
.studyentry,.studycard,.panel,dialog,.statgrid>div,.projectgroup{border-radius:16px}
.studyentry{overflow:hidden;background:var(--white);border:1px solid var(--line)}
.studyentry .studycard{width:100%;border:0;border-radius:0;background:transparent;text-align:left}
.studyactions{border-top:1px solid var(--line);background:transparent}
.tileicon{color:#383322;background:#edcf74;border-radius:11px}
.flag{border-radius:100px;padding:4px 9px;font-weight:600}
.tabs{display:flex;gap:4px;padding:4px;background:var(--raised);border:1px solid var(--line);border-radius:13px;overflow-x:auto;max-width:100%}
.tabs>button,.tabs button.active{color:var(--ink);border:0;border-radius:9px}
.tabs button.active{background:var(--white);box-shadow:0 1px 5px #0002}
.panel,.statgrid>div{background:var(--white);border:1px solid var(--line)}
dialog{max-width:min(740px,calc(100vw - 24px));color:var(--ink);border:1px solid var(--line);background:var(--white)}
dialog header{background:var(--white)}.offertotal,.toast{background:var(--raised);color:var(--ink)}
.moduleLoading{color:var(--muted)}
@media(max-width:740px){.title-row{align-items:flex-start;flex-direction:column}.filterbar{display:flex;flex-wrap:wrap}.filterbar .search{flex:1 1 100%}.title-row .actions{display:flex;flex-wrap:wrap}.cardgrid{grid-template-columns:minmax(0,1fr)}}

}
