:root{font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:#262626;background:#f5f5f3;font-size:16px}*{box-sizing:border-box}body{margin:0}header{height:auto;min-height:76px;padding:14px clamp(16px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border-bottom:1px solid #ddd}header img{width:min(210px,45vw);height:auto}main{max-width:1320px;margin:auto;padding:24px clamp(12px,4vw,55px)}h1{font-size:clamp(26px,4vw,40px);margin:0 0 16px}h2{font-size:21px}section.card,article,dialog{background:#fff;border:1px solid #ddd;padding:20px;border-radius:9px;margin-bottom:18px}nav,.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}button{font:inherit;border:1px solid #d3d3d0;background:white;color:#252525;border-radius:6px;padding:8px 12px;cursor:pointer}button:hover{border-color:#e87e1a}.primary{background:#2b2b2b;color:#fff;border-color:#2b2b2b}.orange{background:#e87e1a;border-color:#e87e1a;color:#222;font-weight:650}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}label{display:grid;gap:5px}input,textarea,select{width:100%;padding:9px;font:inherit;background:#fcfcfa;border:1px solid #ccc;border-radius:5px;color:#222}textarea{min-height:68px}.wide{grid-column:1/-1}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:right;background:white}th,td{padding:10px 8px;border-bottom:1px solid #e5e5e2;vertical-align:top}th{font-size:14px;background:#eee}td.num{white-space:nowrap;font-variant-numeric:tabular-nums}td input{min-width:95px}td select{min-width:220px}tr:hover td{background:#fcfaf7}.muted{color:#555}.tag{display:inline-block;padding:5px 10px;background:#fff0e2;border-radius:6px}.split{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;align-items:flex-start}.login{max-width:490px;margin:40px auto}.login label{margin-block:12px}#notice{position:fixed;inset:auto 18px 18px auto;max-width: min(440px,90vw);background:#2b2b2b;color:#fff;padding:12px 18px;border-radius:7px;display:none}#notice.on{display:block}#print{display:none}@media(max-width:720px){header{align-items:flex-start;flex-direction:column}main{padding-top:18px}button{padding:7px 9px}}@media print{header,main,#notice{display:none!important}#print{display:block;padding:0;background:white}#print img{width:175px}#print table{font-size:10pt}#print h1{font-size:20pt}#print h2{font-size:13pt}#print th,#print td{padding:5px}thead{display:table-header-group}tr{break-inside:avoid}body{background:#fff}@page{margin:12mm;size:A4 landscape}}
.project-tabs{margin-block:12px 20px;border-bottom:1px solid #ddd;padding-bottom:10px}.document{margin-block:9px;align-items:center}.report-logo{width:170px;height:auto}.preview{margin-block:22px}.quote-grid{table-layout:auto}.quote-grid th,.quote-grid td{border:1px solid #bbb}.quote-grid .stage td{background:#e87e1a;color:#232323;font-weight:700}.quote-grid td.num{white-space:nowrap}.quote-grid th:nth-child(5){min-width:170px}.quote-grid td:nth-child(5){white-space:pre-line} @media print{#print .stage td{-webkit-print-color-adjust:exact;print-color-adjust:exact}#print .quote-grid th:nth-child(5){min-width:0}#print .quote-grid td,#print .quote-grid th{overflow-wrap:anywhere}#print h2{break-after:avoid}}

.pick-check{width:20px;height:20px;accent-color:#e87e1a}.picker-footer{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 -3px 12px #0001}button:disabled{opacity:.55;cursor:default}

.sub-stack,.sub-card{display:grid;gap:6px;min-width:180px}.sub-card{border:1px solid #ddd;padding:7px;border-radius:5px}.sub-card textarea{min-height:46px}.inline-check{display:flex;align-items:center;gap:6px}.error-field{outline:2px solid #9d3217}.error-help{display:block;color:#9d3217;font-weight:600;white-space:normal}.import-box{margin-block:15px;padding:12px;border:1px solid #ddd}td textarea[data-desc]{min-width:175px;min-height:55px}[hidden]{display:none!important}

.linklike{border:0;color:#934810;padding:0;text-align:right;text-decoration:underline}.snapshot-choice{font-size:13px;margin-top:6px}.snapshot-choice select{min-width:180px}.project-tabs{position:sticky;top:0;background:#f5f5f3;z-index:1}td input[data-child-name],td input[data-child-desc]{display:inline-block;width:48%;min-width:115px}

.library-table td{vertical-align:middle}.library-actions{display:flex;gap:6px;flex-wrap:nowrap;align-items:center;white-space:nowrap}.library-actions button{font-size:14px;padding:6px 9px}.library-unit{width:100px;min-width:85px;padding:6px}.disclosure{line-height:1;padding:5px 7px;border-color:#d5d5d5}.library-child td{background:#fcfaf7}.library-child button[draggable]{cursor:grab}.library-table .drop-target td{background:#fff0e3;border-block-color:#e87e1a}

.message{white-space:pre-wrap}.code-preview{white-space:pre-wrap;overflow-wrap:anywhere;direction:ltr;text-align:left;max-height:65vh;overflow:auto;background:#fff;padding:18px;border:1px solid #ddd}
.team-message{overflow-wrap:anywhere}.team-check{display:flex;align-items:center;gap:.5rem}.team-check input{width:auto;min-height:0}
#page-navigation{margin-block-end:16px}#page-navigation[hidden]{display:none}

.danger-small{border-color:#d9a598;color:#972e16}.danger-small:hover{background:#fff0ea}.library-actions>.library-actions{display:contents}

.library-table .library-phase-heading th{background:#2b2b2b;color:#fff;border-inline-start:4px solid #e87e1a;font-size:15px;padding:9px 12px}.library-table .library-main td{background:#f5f5f3}.library-kind{display:inline-block;border-radius:4px;font-size:13px;font-weight:700;padding:2px 6px;white-space:nowrap}.main-kind{background:#fff0e3;color:#783c0a}.child-kind{background:#ecebe8;color:#3b3b39}.library-branch{border-inline-start:2px solid #e0b995;margin-inline-start:10px;padding-inline-start:9px}.library-branch small{display:block;color:#5f5e5a;margin-top:2px}
#resource{background:white;border:1px solid #ddd;border-radius:9px;padding:clamp(14px,2.5vw,28px)}#resource>.grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px}#resource>.grid>label,#resource .resource-field-wide>label{grid-template-rows:auto auto}#resource .resource-field-wide{grid-column:span 2}#resource .resource-links{padding:12px 0 0;border-top:1px solid #ddd}#resource .resource-links h2{margin:0}#resource .resource-links h2 small{font-size:14px;color:#555;font-weight:400}.resource-link-group{min-width:0;border:1px solid #ddd;border-radius:7px;padding:10px 14px 14px;margin:14px 0}.resource-link-group legend{padding:0 7px;font-weight:700}.resource-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:8px}#resource label.resource-check{display:flex;align-items:flex-start;gap:8px;padding:8px 9px;background:#f7f7f5;border:1px solid #e7e7e3;border-radius:6px;min-width:0;cursor:pointer}.resource-check input{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#e87e1a}.resource-check:has(input:checked){background:#fff0e3!important;border-color:#e87e1a!important}.resource-item-code{font-size:13px;color:#6b4a31}.resource-check-name small{display:block;color:#555;font-size:13px}.resource-check-name{overflow-wrap:anywhere}@media(max-width:760px){#resource>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:510px){#resource>.grid{grid-template-columns:1fr}#resource .resource-field-wide{grid-column:auto}}

.price-list{table-layout:fixed;min-width:1090px}.price-list th,.price-list td{vertical-align:middle;padding:8px}.price-list th:nth-child(1){width:90px}.price-list th:nth-child(3){width:79px}.price-list th:nth-child(4){width:105px}.price-list th:nth-child(5){width:113px}.price-list th:nth-child(6){width:115px}.price-list th:nth-child(7){width:102px}.price-list th:nth-child(8){width:62px}.price-list th:nth-child(9){width:193px}.price-list :is(th,td):is(:nth-child(3),:nth-child(4),:nth-child(7),:nth-child(8)){text-align:center;white-space:nowrap}.price-list td:nth-child(3){overflow-wrap:anywhere;white-space:normal}.price-list td:is(:nth-child(2),:nth-child(5),:nth-child(6)){overflow-wrap:anywhere}.price-list td:is(:nth-child(4),:nth-child(7)){font-variant-numeric:tabular-nums}.price-list td:nth-child(9) button{padding:6px 8px}
@media screen {
 main{max-width:clamp(1530px,68.4vw,1750px)}
 #screen :is(th,td){
  padding-block:16px;
  line-height:1.6;
  vertical-align:middle;
  overflow-wrap:anywhere;
 }
 #screen td{height:64px}
 #screen :is(.grid, .sub-stack){align-items:start;row-gap:16px}
 #screen label{gap:8px;min-width:0}
 #screen .grid>label{align-content:start}
 #screen :is(input:not([type=checkbox],[type=radio],[type=hidden]),select){
  min-height:46px;
  padding-block:10px;
 }
 #screen textarea{
  min-height:110px;
  padding-block:10px;
  resize:vertical;
  line-height:1.6;
 }
 #screen td textarea,#screen .sub-card textarea{min-height:88px}
 #screen td textarea{width:100%}
 #screen .price-list :is(th,td):nth-child(9){overflow-wrap:normal}
 #screen .price-list td:nth-child(9) button{margin-block:3px;min-height:38px}
 #screen #resource label.resource-check{min-height:52px;padding-block:12px}
}
@media screen {
 .project-dashboard{min-inline-size:0;overflow-wrap:anywhere}
 .project-dashboard .scroll{overflow:visible}
 .project-dashboard table{table-layout:fixed}
 .project-dashboard .quote-grid th:nth-child(5){min-width:0}
 #screen .project-dashboard :is(th,td){white-space:normal}
 #screen .project-dashboard .quote-grid :is(th,td){padding-inline:6px}
 #screen .project-dashboard .quote-grid td:is(:nth-child(5),:nth-child(7)){white-space:pre-line}
}
@media screen and (max-width:900px) {
 .project-dashboard{padding:clamp(10px,3vw,20px)}
}
#page-export{display:none;margin-block-end:14px}
main:has(#screen table) #page-export{display:flex}
.workbook-preview:not(:empty){margin-block-start:16px}
.workbook-preview>.scroll{margin-block-end:12px}
@media screen {
 #screen{min-inline-size:0;overflow-wrap:anywhere}
 #screen .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
 #screen :is(input,select,textarea,button){max-inline-size:100%}
 #screen .actions>label{max-inline-size:100%}
 #screen .library-actions{white-space:normal;flex-wrap:wrap}
 #screen .workbook-import{background:#fcfcfa}
}
@media screen and (min-width:1101px) and (max-width:1350px) {
 #screen th,#screen td{font-size:.94rem;padding-inline:6px}
 #screen td :is(input,select,textarea,button){font-size:.94rem}
 #screen .price-list{min-width:0}
 #screen .price-list th:nth-child(9){width:160px}
}
@media screen and (max-width:1100px) {
 #screen .scroll{overflow:visible}
 #screen table[data-responsive]{display:block;min-inline-size:0;background:transparent}
 #screen table[data-responsive] thead{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
 }
 #screen table[data-responsive] tbody{display:grid;gap:10px}
 #screen table[data-responsive] tbody tr{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));
  gap:2px 6px;
  margin-block-end:6px;
  padding:8px;
  background:#fff;
  border:1px solid #e5e5e2;
  border-radius:6px;
 }
 #screen table[data-responsive] tbody :is(td,th){
  display:block;
  inline-size:auto;
  min-inline-size:0;
  height:auto;
  padding:6px 8px;
  border:0;
  text-align:start;
  white-space:normal;
  overflow-wrap:anywhere;
  font-size:.94rem;
 }
 #screen table[data-responsive] td:empty{display:none}
 #screen table[data-responsive] td[data-column]:not([data-column=""])::before{
  content:attr(data-column);
  display:block;
  margin-block-end:4px;
  color:#555;
  font-size:.8rem;
  font-weight:600;
 }
 #screen table[data-responsive] [colspan]{grid-column:1/-1}
 #screen table[data-responsive] td :is(input,select,textarea,.sub-stack,.sub-card){min-inline-size:0}
 #screen table[data-responsive] .stage{background:#e87e1a}
 #screen table[data-responsive] .stage td{background:transparent}
 #screen .project-tabs{position:static}
}
#screen .quote-entry-table input{min-inline-size:0}
@media screen and (min-width:1101px){
 #screen .quote-entry-table{table-layout:fixed}
 #screen .quote-entry-table :is(th,td){padding-inline:6px}
}
.archive-stage,.archive-item{border:1px solid #ddd;border-radius:8px;background:white}
.archive-stage{margin-block:12px}
.archive-item{margin:10px}
.archive-stage>summary,.archive-item>summary{cursor:pointer;padding:14px 16px;overflow-wrap:anywhere}
.archive-stage>summary{background:#fff0e3;border-radius:7px;font-weight:700}
.archive-item>summary small,.archive-stage>summary small{margin-inline-start:8px;color:#555;font-weight:400}
.archive-item>p{margin-inline:16px}
.analysis-project-index{padding:12px 16px;margin-block:10px;background:#fff;border:1px solid #e5e5e2;border-radius:7px}
.analysis-project-index h3{margin:0 0 10px}
.analysis-project-index h3 small{margin-inline-start:8px;font-weight:400;color:#555}
.archive-item .analysis-project-index,.archive-index-link{margin-inline:10px}
.archive-index-link{margin-block-start:8px}
.price-register-tabs{margin-block:0 20px;padding-block-end:12px;border-block-end:1px solid #ddd}
.template-note{white-space:pre-wrap}
#developerManual textarea{direction:ltr;text-align:left;min-height:340px;font-family:monospace}
main:has(#screen[data-no-project-export]) #page-export{display:none}
.quantity-entry{direction:ltr;text-align:center;font-variant-numeric:tabular-nums}
.quantity-entry::placeholder{direction:rtl;text-align:center}
@media screen and (min-width:1101px){
 #screen .scroll:has(>.project-estimate){overflow:visible}
 #screen .project-estimate thead th{
  position:sticky;
  inset-block-start:calc(var(--page-navigation-height,0px) + var(--estimate-heading-offset,0px));
  z-index:1;
  background:#eee;
  box-shadow:0 1px #ddd;
 }
 #screen .project-estimate :is(th,td){padding-inline:clamp(4px,.55vw,9px)}
 #screen .project-estimate th{
  white-space:nowrap;font-size:clamp(12px,1vw,14px)
 }
 #screen .project-estimate td:is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6)){
  text-align:center;font-size:clamp(12px,1vw,15px);font-variant-numeric:tabular-nums;word-break:normal;overflow-wrap:normal
 }
 #screen .project-estimate td :is(.actions,button){font-size:clamp(11px,.95vw,14px)}
 #screen .project-estimate td button{padding-inline:6px}
 #screen table:not(.project-estimate) th{word-break:normal;overflow-wrap:normal}
}
#screen .project-estimate td textarea[data-desc]{
 block-size:118px;
 min-block-size:118px;
 max-block-size:118px;
 resize:none;
}
#screen .project-estimate .desc-expand{font-size:1.1rem;line-height:1;padding:8px 10px}
.description-dialog{
 inline-size:min(900px,calc(100vw - 24px));
 max-block-size:calc(100dvh - 24px);
 margin:auto;
 padding:clamp(12px,3vw,22px);
 overflow:auto;
}
.description-dialog::backdrop{background:#0006}
.description-dialog textarea{
 display:block;
 inline-size:min(100%,600px);
 block-size:min(220px,38dvh);
 min-inline-size:min(220px,100%);
 max-inline-size:100%;
 min-block-size:105px;
 max-block-size:62dvh;
 resize:both;
 margin-block-end:12px;
}
 #screen .project-estimate td select{min-inline-size:0;padding-inline:8px;font-size:inherit}
#page-navigation{justify-content:flex-end}
.select-search-entry{display:block}
.select-search-options{position:fixed;inset:auto;margin:0;padding:4px;border:1px solid #ccc;border-radius:6px;background:white;color:#262626;box-shadow:0 4px 14px #0002;overflow:auto;overscroll-behavior:contain}
.select-search-options [role=option]{cursor:pointer;padding:7px 9px;border-radius:4px;overflow-wrap:anywhere}
.select-search-options [role=option]:hover,.select-search-options [aria-selected=true]{background:#fff0e3;color:#653600}
#screen .library-phase-heading .linklike{color:#fff;font-weight:700}
.sub-drop-zone{display:block;margin-block-start:5px;padding:4px;border:1px dashed #bcae9d;border-radius:5px;font-size:.72rem;color:#675e52}
.sub-drop-zone.drop-target,.library-table .drop-target td{background:#fff0e3;border-color:#e87e1a}
.drag-sub-handle{cursor:grab}
.subitem-dialog{inline-size:min(880px,calc(100vw - 24px));max-block-size:calc(100dvh - 24px);margin:auto;overflow:auto}
.subitem-dialog::backdrop{background:#0006}
.offer-expired{background:#fff0ea;color:#9a331a}
@media screen{
 #page-navigation{position:sticky;inset-block-start:0;z-index:3;background:#f5f5f3;padding-block:6px}
 #screen .project-tabs{inset-block-start:var(--page-navigation-height,0px)}
 #screen .library-add-bar{position:sticky;inset-block-start:var(--page-navigation-height,0px);z-index:2;align-items:center;gap:8px;padding:8px 12px;background:#ededec;border-block-end:1px solid #d7d7d5}
 #screen .library-add-bar h1{margin:0}
 #screen .library-add-bar [data-do="newItem"]{background:#dededd;border-color:#bdbdbb;color:#252525}
 #screen .library-add-bar [data-do="newItem"]:hover{background:#d4d4d2}
 #screen .library-table .library-phase-heading th{background:#646464;color:#fff;padding:9px 12px}
 #screen .library-table .library-phase-heading .linklike{
  display:block;max-inline-size:100%;background:transparent;color:#fff;text-decoration:none;
  font-size:clamp(1rem,1.3vw,1.2rem);font-weight:750;white-space:normal;overflow-wrap:anywhere;
 }
 #screen .library-table .library-phase-heading .linklike:hover{text-decoration:underline}
 .estimate-sticky{position:sticky;inset-block-start:var(--page-navigation-height,0px);z-index:2;background:#f5f5f3;padding-block:4px 6px}
 .estimate-sticky .project-tabs{position:static;margin-block:0 5px;padding-block-end:5px}
 .estimate-save-bar{align-items:center;gap:8px;padding:6px 10px;background:white;border:1px solid #ddd;border-radius:7px}
 .estimate-save-bar :is(h2,p){margin:0}
 #developerManual>p{position:sticky;inset-block-end:0;padding:8px;background:#f5f5f3;margin:0;z-index:2}
}
.desc-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-block-start:5px;color:#555}
[data-pick-kind][aria-pressed=true]{background:#fff0e3;border-color:#e87e1a}
.consumption-field{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#screen .consumption-field input{min-inline-size:0;flex:1}
.consumption-field button{white-space:nowrap}
.consumption-calculator.consumption-rates{inline-size:min(640px,calc(100vw - 24px))}
.consumption-rates select{inline-size:100%;min-inline-size:0}
.consumption-calculator{inline-size:min(560px,calc(100vw - 24px));margin:auto}
.consumption-calculator::backdrop{background:#0006}
.consumption-calculator{max-block-size:calc(100dvh - 24px);overflow:auto}
.consumption-calculator.calc-positioned{position:fixed;inset-inline-end:auto;right:auto;bottom:auto;margin:0}
.calc-header,.calc-footer{position:sticky;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff}
.calc-header{inset-block-start:0;padding-block:6px 10px}
.calc-footer{inset-block-end:0;padding-block:10px 4px;margin-block-start:8px;border-block-start:1px solid #e9dfd3}
.calc-header button,.calc-footer button{white-space:nowrap}
.calc-drag-handle{cursor:grab;touch-action:none;user-select:none;margin:0;padding-block:6px;flex:1}
.calc-drag-handle:active{cursor:grabbing}
.calc-screen{display:grid;gap:6px;padding:8px;margin-block-end:12px;border-radius:8px;border:1px solid #d6d8ce;background:#eef0e7}
.calc-expression{position:relative}
.calc-expression input{padding-right:7.5rem;min-block-size:48px;font-size:1.2rem}
.calc-expression button{position:absolute;right:4px;top:4px;bottom:4px;padding:0 8px;white-space:nowrap;font-size:.9rem}
.calc-display{display:flex;align-items:center;padding:4px 8px;min-block-size:42px;border-block-start:1px solid #d6d8ce}
.calc-display p{display:flex;align-items:baseline;gap:8px;min-inline-size:0;margin:0;font-size:.95rem;font-weight:700;white-space:nowrap}
.calc-display [data-calc-output]{font-size:clamp(1.2rem,4vw,1.65rem);font-variant-numeric:tabular-nums}
.calc-status:empty{display:none}
.calc-keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.calc-keys button{min-inline-size:0;padding:7px 3px;background:#f5f4f1}
.calc-keys [data-calc-key=equals]{background:#e87e1a;border-color:#e87e1a;font-weight:700}
.calc-ai{border-top:1px solid #ddd;margin-block-start:12px;padding-block-start:8px}
.calc-ai [data-ai-result]{white-space:pre-wrap}
.component-pick-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 4px;border-block-end:1px solid #e5e5e2;overflow-wrap:anywhere}
.component-pick-row small{display:block;color:#555}
.component-group{border:1px solid #ddd;border-radius:7px;margin-block:8px;padding:8px}
.component-group summary{cursor:pointer;font-weight:600;padding:4px}
.component-group summary small{color:#595959;font-weight:400}
@media(max-width:540px){.component-pick-row{align-items:flex-start;flex-direction:column}}
.calc-history{margin-block:0 8px;padding:6px 10px;border:1px solid #ddd;border-radius:6px}
.calc-loading{margin-block-start:12px;padding:10px;border:1px solid #e9dfd3;border-radius:6px}
.calc-loading summary{cursor:pointer;font-weight:700}
.calc-loading[open] summary{margin-block-end:10px}
.calc-loading-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:center;margin-block:8px;padding:8px;background:#f9f6f3;border-radius:6px}
.calc-loading-row label:first-child{grid-column:1/-1}
.calc-loading-row input{min-inline-size:0}
.calc-loading-row button{justify-self:end}
.calc-loading-results{display:grid;gap:5px;margin-block:10px;font-weight:700}
.calc-loading [data-loading-message]:empty{display:none}
.calc-history summary{cursor:pointer;font-size:.9rem;font-weight:700}
.calc-history[open] summary{margin-block-end:6px}
.calc-units-note{margin-block:8px}
.calc-history ol{margin:0;padding-inline-start:20px}
.calc-history button{border:0;padding:3px 5px;text-align:start;overflow-wrap:anywhere;max-inline-size:100%}
.component-selection-footer{position:sticky;inset-block-end:0;margin-block-start:10px;padding:8px;background:white;border-block-start:1px solid #ddd}
.analysis-save-bar,.component-save-bar{position:sticky;z-index:2;padding-block:6px}
.analysis-save-bar{inset-block-start:var(--page-navigation-height,0px);background:#f5f5f3}
.analysis-save-bar h1{margin-block:0}
@media screen{
 .analysis-cost-title{
  position:sticky;inset-block-start:calc(var(--page-navigation-height,0px) + var(--analysis-toolbar-height,0px));
  z-index:2;margin-block:0;padding-block:10px;background:#fff;
 }
}
@media screen and (min-width:1101px){
 #screen .scroll:has(>.analysis-cost-table){overflow:visible}
 #screen .analysis-cost-table thead th{
  position:sticky;inset-block-start:calc(var(--page-navigation-height,0px) + var(--analysis-toolbar-height,0px) + var(--analysis-title-height,0px));
  z-index:1;box-shadow:0 1px #ddd;
 }
}
.analysis-cost-table [data-cost-unit],.analysis-cost-table [data-cost-line]{white-space:nowrap;font-variant-numeric:tabular-nums}
#screen .analysis-component-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}
#screen .analysis-component-actions button{flex:none}
@media screen and (min-width:1101px){
 #screen .analysis-cost-table td:has([data-do="editAnalysisComponent"]){min-inline-size:9rem}
}
#analysis-cost-summary{border-block-start:1px solid #ddd;margin-block-start:14px;padding-block-start:6px}
#analysis-cost-summary .actions{column-gap:24px}
#analysis-cost-summary [data-cost-status]:empty{display:none}
@media screen{
 #screen tr.returned-analysis-row,#screen .estimate-item-form.returned-analysis-row{outline:2px solid #c36618;outline-offset:-2px}
 #screen tr.returned-analysis-row>td{background:#fff0db}
 #screen tr.returned-analysis-row>td:first-child{box-shadow:inset -4px 0 #c36618}
}
.estimate-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.estimate-main-title,.estimate-child-title{display:flex;align-items:center;min-inline-size:0;gap:4px}
.estimate-main-title{font-weight:700}
.estimate-child-title{padding-inline-start:26px}
#screen .project-estimate .estimate-toggle{flex:none;min-inline-size:1.65rem;padding:3px}
#screen :is(.project-estimate,.library-table) tbody tr>td{background:#fff}
#screen .library-table tr.library-child>td{background:#f0f0f0}
#screen .project-estimate tr[hidden]{display:none}
#screen :is(.project-estimate,.library-table) tr.returned-analysis-row>td{background:#fff0db}
#screen .library-table tr.drop-target>td{background:#fff0e3}
#screen .project-estimate tr.additional-item-row>td{background:#fff0ee;color:#8c3026;border-block-end-color:#ebccc7}
#screen .library-table tr.additional-item-row>td{color:#8c3026}
#screen .library-table .additional-item-row .child-kind{background:#f8d3cd;color:#8c3026}
.analysis-pricing-summary tbody tr:last-child td{background:#fff0db;font-weight:700}
.resource-category{margin-block:18px}
.resource-category>h2{margin:0;padding:9px 14px;background:#646464;color:#fff;border-radius:6px;font-size:1.1rem}
.resource-inventory-boxes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px;background:#fff;border:1px solid #e0e0dd;border-radius:6px;margin-block-start:6px}
.resource-inventory-boxes:has(.inventory-controls){grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.inventory-controls{align-self:end;flex-wrap:nowrap}
@media screen and (max-width:640px){
 .resource-inventory-boxes:has(.inventory-controls){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .inventory-controls{grid-column:1/-1}
}
.inventory-box{position:relative;min-inline-size:0}
.inventory-box input{min-inline-size:0}
.inventory-box ul{position:absolute;z-index:5;inset-inline:0;inset-block-start:100%;margin:2px 0;padding:4px;list-style:none;max-block-size:230px;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #cdcac6;border-radius:6px;box-shadow:0 4px 12px #0002}
.inventory-box li{padding:6px 8px;overflow-wrap:anywhere}
.inventory-box [role=option]{cursor:pointer}
.inventory-box [role=option]:is(:hover,[aria-selected=true]){background:#fff0df}
.inventory-box li small{display:block;color:#555}
.resource-inventory-table td:last-child .actions{flex-wrap:wrap}
@media screen{
 #screen:has(#resource-inventory){
  --inventory-accent:#e87e1a;
  --inventory-accent-soft:#fff0df;
  --inventory-text:#302c29;
  --inventory-border:#dedbd7;
  color:var(--inventory-text);
 }
 #screen .resource-inventory-add button{
  background:var(--inventory-accent-soft);border-color:#d8aa7c;color:#673914;font-weight:650;
 }
 #screen .resource-inventory-add button:hover{background:#ffe1bd;border-color:var(--inventory-accent)}
 #screen .resource-inventory-filters{background:#f8f7f5;border-color:var(--inventory-border)}
 #screen .resource-category>h2{background:#5e5e5e;border-inline-start:4px solid var(--inventory-accent)}
 #screen .resource-inventory-boxes{border-color:var(--inventory-border)}
 #screen :is(.resource-inventory-filters,.resource-inventory-boxes) :is(input,select):focus-visible{
  outline:2px solid var(--inventory-accent);outline-offset:1px;
 }
 #screen .inventory-controls button{min-inline-size:4.5rem;font-weight:650;white-space:nowrap}
 #screen .inventory-controls [data-do="resource"]{
  background:var(--inventory-accent);border-color:var(--inventory-accent);color:#252525;font-weight:650;
 }
 #screen .inventory-controls [data-do="archiveEditedResource"]{background:#ffe4df;border-color:#ce8b80;color:#852c22}
 #screen .inventory-controls button:disabled{opacity:1;cursor:not-allowed}
 #screen .inventory-controls [data-do="resource"]:disabled{background:#ffecd7;border-color:#d79a63;color:#743e13}
 #screen .resource-inventory-table th{background:#eeece9;color:var(--inventory-text)}
}
.resource-links>summary{cursor:pointer;font-weight:700;padding-block:6px}
.resource-links>summary .muted{font-weight:400}
#resource .resource-select-all{display:flex;align-items:center;gap:8px;padding:7px 11px;background:#e87e1a;color:#222;font-weight:650;border-radius:6px;cursor:pointer}
#resource .resource-select-all input{width:18px;height:18px;min-height:0;margin:0;accent-color:#252525}
.estimate-drop-target{display:flex;min-inline-size:0}
.estimate-drop-target.drop-target{outline:2px dashed #e87e1a}
#screen .project-estimate td{vertical-align:middle}
#screen .project-estimate td .actions{flex-wrap:nowrap;gap:4px}
#screen .project-estimate td button{white-space:nowrap}
#screen .project-estimate :is(.estimate-number-box,.quantity-entry){
 display:flex;align-items:center;justify-content:center;inline-size:100%;min-block-size:34px;
 padding:4px 5px;border:1px solid #e1d9d1;border-radius:5px;background:#fffcfa;
 line-height:1.35;font:inherit;font-variant-numeric:tabular-nums;overflow:hidden;
}
#screen .project-estimate .estimate-number-box small{margin-inline-start:3px}
#screen .project-estimate .quantity-entry{display:block;text-align:center;background:#fff;border-color:#c7b6a6}
#screen .project-estimate .quantity-entry:focus{outline:2px solid #ed7600;outline-offset:-2px}
#screen .project-estimate .quantity-entry::placeholder{font-size:.8em}
#screen .estimate-item-form .grid>div>strong,.estimate-description strong{display:block;margin-block-end:6px}
.estimate-description{margin-block:18px}
@media screen{
 main:has(.project-estimate,.estimate-item-form,.library-table){
  --mozaik-ink:#211c19;
  --mozaik-accent:#ed7600;
  --mozaik-paper:#f4eee5;
  --mozaik-rule:#e9dfd3;
 }
 #screen :is(.estimate-save-bar,.estimate-item-form){border-color:var(--mozaik-rule)}
 #screen .estimate-save-bar{border-inline-start:4px solid var(--mozaik-accent)}
 #screen .project-estimate thead th{background:var(--mozaik-ink);color:var(--mozaik-paper);box-shadow:0 1px var(--mozaik-accent)}
 #screen .project-estimate .estimate-main-row>td{border-block-start:1px solid var(--mozaik-rule)}
 #screen .project-estimate .estimate-main-row>td:first-child{border-inline-start:3px solid var(--mozaik-accent)}
 #screen .project-estimate .estimate-main-title .linklike,#screen .library-main td:nth-child(4) .linklike{
  color:var(--mozaik-ink);font-size:clamp(1rem,1.2vw,1.2rem);font-weight:750;line-height:1.45;white-space:normal;overflow-wrap:anywhere;
 }
 #screen .project-estimate .estimate-spec{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;
 }
 #screen .project-estimate .estimate-spec-button{
  inline-size:100%;min-block-size:34px;text-align:start;padding:4px 8px;
  border-color:var(--mozaik-rule);background:#fffcfa;
 }
 #screen .project-estimate .estimate-spec-button:is(:hover,:focus-visible){border-color:var(--mozaik-accent)}
 #screen .estimate-item-form .estimate-description{
  padding:clamp(12px,2vw,24px);border:1px solid var(--mozaik-rule);border-inline-start:3px solid var(--mozaik-accent);
  border-radius:8px;background:#fffcf9;
 }
 #screen .estimate-item-form .estimate-description .desc-preview{
  display:block;white-space:pre-wrap;line-height:1.8;max-block-size:20rem;overflow:auto;
 }
}
@media screen{
 html:has(.project-estimate){scroll-padding-block-start:180px}
 #notice{pointer-events:none}
 #screen .project-estimate{table-layout:fixed}
 #screen .project-estimate td:not(:last-child){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #screen .project-estimate :is(.estimate-main-title .linklike,.estimate-child-title .linklike,.estimate-drop-target){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-inline-size:0}
 #screen .project-estimate td input{min-inline-size:0}
 #screen .project-estimate th:nth-child(1){width:20%}
 #screen .project-estimate th:nth-child(2){width:27%}
 #screen .project-estimate th:is(:nth-child(3),:nth-child(4)){width:7%}
 #screen .project-estimate th:is(:nth-child(5),:nth-child(6)){width:9%}
 #screen .project-estimate th:nth-child(7){width:8%}
 #screen .project-estimate th:nth-child(8){width:13%}
 .project-estimate :is(.estimate-child-row,.estimate-branch-heading)>td:first-child{position:relative}
 .project-estimate :is(.estimate-child-row,.estimate-branch-heading)>td:first-child::before{
  content:"";position:absolute;inset-block:0;inset-inline-start:15px;border-inline-start:1px solid #bd9a79;
 }
 .project-estimate .estimate-child-last>td:first-child::before{inset-block-end:50%}
 .project-estimate .estimate-child-row>td:first-child::after{
  content:"";position:absolute;inset-block-start:50%;inset-inline-start:15px;inline-size:12px;border-block-start:1px solid #bd9a79;
 }
 #screen .project-estimate .estimate-branch-heading>td{height:auto;padding-block:6px;background:#f4eee5;color:#4c3726;font-size:.85rem;font-weight:700}
 #screen .project-estimate .estimate-branch-heading>td:first-child{padding-inline-start:33px}
 #screen .project-estimate .estimate-editor-row>td{padding:8px;background:#f8f3ee;text-align:start}
 #screen .estimate-editor-row .estimate-item-form{margin:0;border-inline-start:3px solid var(--mozaik-accent)}
 #screen .estimate-editor-row .estimate-item-form :is(input,select){min-inline-size:0}
 #screen .estimate-editor-row .estimate-item-form .actions{flex-wrap:wrap}
}
@media screen and (max-width:1100px){
 #screen .scroll:has(>.project-estimate){overflow-x:auto;container-type:inline-size}
 #screen .project-estimate{min-inline-size:850px}
 #screen .estimate-editor-row .estimate-item-form{position:sticky;inset-inline-start:0;inline-size:min(100%,calc(100cqw - 16px))}
}
.component-save-bar{inset-block-start:0;background:white}
#screen :is([data-do="dropComponent"],[data-do="siteDrop"]){
 inline-size:max-content;
 min-inline-size:4rem;
 max-inline-size:none;
 padding-inline:.75rem;
 white-space:nowrap;
 overflow-wrap:normal;
 word-break:normal;
 color:#9e2e1c;
 border-color:#e3ab9f;
}
@media screen and (min-width:1101px){
 #screen td:has(:is([data-do="dropComponent"],[data-do="siteDrop"])){min-inline-size:5rem}
}
[data-pick-resource][aria-pressed=true]{background:#fff0e3;border-color:#e87e1a}

/* Mozaik assistant: scoped to the conversation page. */
.mozaik-chat{max-width:1100px;margin:0 auto 24px;background:#fff;border:1px solid #e2dfda;border-radius:18px;overflow:hidden;box-shadow:0 8px 30px #30241708}
.mozaik-chat .chat-heading{position:static;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#fff;border-bottom:1px solid #eee9e2}
.chat-brand{display:flex;align-items:center;gap:12px}.chat-brand h1{font-size:24px;margin:0}.chat-brand p{font-size:13px;color:#72685f;margin:5px 0 0}
.chat-avatar,.chat-welcome-icon{display:grid;place-items:center;background:#fff0df;color:#a64c00;border:1px solid #f1d5b5;font-weight:700;border-radius:14px;flex-shrink:0}.chat-avatar{width:48px;height:48px;font-size:26px}
.chat-settings{padding:12px 24px;border-bottom:1px solid #eee9e2;font-size:13px}.chat-settings summary{cursor:pointer;color:#6b6259}.chat-settings .card{margin:12px 0}.chat-settings>button{margin-bottom:8px}
.chat-project{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 24px;background:#fcfbf9;border-bottom:1px solid #eee9e2;font-size:13px}.chat-project label{display:block}.chat-project select{max-width:310px;flex:1;min-width:150px}.chat-status{margin-inline-start:auto;color:#74604e;font-size:12px}
.chat-timeline{height:clamp(280px,45vh,580px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:20px;padding:24px;background:#faf9f7;scrollbar-width:thin}
.chat-welcome{margin:auto;text-align:center;padding:24px 0;max-width:600px;align-self:center}.chat-welcome-icon{width:68px;height:68px;font-size:36px;margin:0 auto 18px}.chat-welcome h2{font-size:23px;margin:0 0 10px}.chat-welcome p{color:#746b62;line-height:1.8;margin:0 0 22px}.chat-suggestions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.chat-suggestions button{border-radius:20px;background:#fff;font-size:13px}
.chat-message{max-width:85%;width:fit-content;min-width:90px}.chat-message-user{align-self:flex-start}.chat-message-assistant{align-self:flex-end}.chat-message-author{display:block;font-size:12px;font-weight:600;color:#75695e;margin:0 4px 6px}.chat-bubble{padding:13px 18px;border:1px solid #e6e1d9;border-radius:16px;background:#fff;box-shadow:0 2px 4px #00000003}.chat-message-user .chat-bubble{background:#fff0df;border-color:#f3d5b0;border-start-start-radius:4px}.chat-message-assistant .chat-bubble{border-start-end-radius:4px}.chat-bubble .message{margin:0;line-height:1.85;overflow-wrap:anywhere;unicode-bidi:plaintext}.chat-typing{align-self:flex-end;padding:10px 16px;border-radius:12px;background:#eeece8;color:#716251;font-size:13px}.chat-error{font-size:13px;color:#9d3217;border:1px solid #ecc3b7;background:#fff4f0;padding:12px;border-radius:10px;margin:0}
.chat-composer{padding:16px 24px 12px;background:#fff;border-top:1px solid #e8e2d9}.chat-input-label{font-size:12px;color:#75695e;margin-bottom:7px}.chat-input-row{display:flex;align-items:flex-end;gap:10px;background:#faf9f7;border:1px solid #ddd6cc;border-radius:14px;padding:8px}.chat-input-row:focus-within{border-color:#e87e1a;box-shadow:0 0 0 2px #e87e1a15}.mozaik-chat #chat-message{border:0;background:transparent;resize:vertical;min-height:55px;max-height:180px;flex:1;width:100%;outline:0;box-shadow:none;line-height:1.7;padding:8px}.chat-send{min-width:90px;min-height:44px;border-radius:10px!important;white-space:nowrap}.chat-send span{font-size:20px;margin-inline-start:4px}.chat-composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;color:#81766b;font-size:11px}.mozaik-chat .chat-attachment{display:flex;align-items:center;gap:8px;font-size:12px;color:#6e5b49;max-width:100%;flex-wrap:wrap}.mozaik-chat input[name=chat_file]{font-size:11px;padding:4px;min-height:30px!important;width:230px;max-width:100%;border:0;background:transparent}.chat-disclaimer{font-size:11px;color:#8a7c6d;text-align:center;margin:10px 0 0}
@media(max-width:640px){.mozaik-chat{border-radius:12px}.mozaik-chat .chat-heading{padding:14px;gap:10px}.chat-brand h1{font-size:20px}.chat-brand p{font-size:11px}.chat-avatar{width:38px;height:38px}.chat-heading .actions button{font-size:12px;padding:7px}.chat-settings,.chat-project{padding:10px 14px}.chat-status{width:100%;margin:0}.chat-timeline{padding:16px 12px;height:42vh;min-height:260px}.chat-message{max-width:94%}.chat-bubble{padding:10px 13px}.chat-composer{padding:12px}.chat-send{min-width:65px;padding:8px}.chat-composer-tools>span{display:none}.chat-welcome h2{font-size:20px}}
