/* 공통 현장 화면은 기존 숲색·금색과 큰 글씨 설정을 따릅니다. */
.sb-page,.sb-dialog,.sb-console-dialog{--sb-line:#486054;--sb-muted:#b4c4b9;--sb-gold:#e2ca90;color:#eee9d2;background:#102b23;font-family:'IBM Plex Sans KR','Malgun Gothic',sans-serif;font-size:calc(13px * var(--fz,1.25));line-height:1.75;box-sizing:border-box}
.sb-page *,.sb-dialog *{box-sizing:border-box;min-width:0}.sb-page{max-width:1284px;width:100%;margin:0 auto;padding:24px 36px 110px}.sb-page h1{font-size:calc(26px * var(--fz,1.25));font-weight:500;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}.sb-page h2{font-size:calc(20px * var(--fz,1.25));font-weight:500}.sb-page h3{margin-top:30px;font-size:calc(16px * var(--fz,1.25))}.sb-page h4{font-weight:500;margin:0 0 10px;color:var(--sb-gold)}
.sb-page button,.sb-page input,.sb-page select,.sb-dialog button,.sb-dialog input,.sb-dialog select,.sb-dialog textarea,.sb-switch button,.sb-console-close{font:inherit;min-height:44px;border:1px solid #486054;border-radius:3px;padding:10px 14px;color:#eee9d2;background:#17362b;max-width:100%}.sb-page button,.sb-dialog button,.sb-switch button,.sb-file{cursor:pointer}.sb-page label,.sb-dialog label{display:grid;gap:7px;margin:0;font-size:calc(12px * var(--fz,1.25))}.sb-page input,.sb-page select,.sb-dialog input,.sb-dialog textarea,.sb-dialog select{width:100%;background:#0b211a}.sb-dialog input[type=file]{white-space:normal}.sb-dialog textarea{min-height:90px;resize:vertical}
.sb-page .sb-primary,.sb-dialog .sb-primary{background:#e2ca90;color:#102b23;font-weight:600}.sb-page button:disabled,.sb-dialog button:disabled{opacity:.5;cursor:wait}.sb-page :focus-visible,.sb-dialog :focus-visible,.sb-switch :focus-visible{outline:2px solid #f8dfab;outline-offset:3px}.sb-note,.sb-page small,.sb-dialog .sb-note{font-size:calc(11px * var(--fz,1.25));color:#b4c4b9;line-height:1.7}.sb-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.sb-actions>*{flex:0 1 auto}.sb-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--sb-line);padding-bottom:20px}.sb-heading .eyebrow{font-size:calc(11px * var(--fz,1.25));color:var(--sb-gold);letter-spacing:.02em}.sb-heading .sb-actions{flex-shrink:0}
.sb-switch{max-width:1284px;margin:0 auto;padding:24px 36px 0;display:flex;gap:8px;font-size:calc(12px * var(--fz,1.25))}.sb-switch button[aria-pressed=true],.sb-zone-tabs button[aria-pressed=true],.sb-scope button[aria-pressed=true]{border-color:#d5bd83;background:#d5bd8320;color:#ffe2a1}.sb-switch[hidden],.sb-page[hidden],.sb-context[hidden],#sb-work-fields[hidden],.sb-commercial label[hidden],.sb-error[hidden]{display:none!important}
body[data-service=records][data-sitebook-open=true] #workspace-shell,body[data-service=records][data-sitebook-open=true] #slope-app,body[data-service=records][data-sitebook-open=true] .sticky-summary{display:none!important}
.sb-summary{display:grid;grid-template-columns:1fr 1fr 1.6fr;border-block:1px solid var(--sb-line);margin:24px 0 10px;padding:20px 0;gap:18px}.sb-summary small{display:block}.sb-summary strong{display:block;font-weight:500;font-size:calc(23px * var(--fz,1.25));color:var(--sb-gold);overflow-wrap:anywhere}.sb-summary strong span{font-size:calc(12px * var(--fz,1.25));margin-left:5px}
.sb-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}.sb-projects button{text-align:left;padding:22px;display:grid;gap:8px}.sb-projects button>span{font-size:calc(18px * var(--fz,1.25));color:#e2ca90}.sb-projects strong{font-weight:400}.sb-welcome{padding:30px;border:1px dashed var(--sb-line);margin:24px 0}.sb-zone-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0}.sb-zone-tabs button{display:grid;text-align:left;min-width:130px}.sb-zone{border:1px solid var(--sb-line);padding:28px;background:#17362b66}.sb-zone-title{display:flex;align-items:center;justify-content:space-between;gap:18px}.sb-zone-title h2{margin:0}.sb-zone details{margin:20px 0}.sb-page summary,.sb-dialog summary{cursor:pointer;min-height:44px;padding:9px 0;color:var(--sb-gold)}
.sb-cost-split{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0;border-block:1px solid #486054;padding:18px 0}.sb-cost-split>div{display:grid;align-content:start;gap:5px}.sb-cost-split>div+div{border-left:1px solid #486054;padding-left:18px}.sb-cost-split span{font-size:calc(12px * var(--fz,1.25));color:#b4c4b9}.sb-cost-split strong{font-size:calc(21px * var(--fz,1.25));font-weight:500;color:#e2ca90;overflow-wrap:anywhere}.sb-cost-split small{font-size:calc(11px * var(--fz,1.25));color:#b4c4b9}.sb-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:calc(12px * var(--fz,1.25));line-height:1.7}.sb-table th,.sb-table td{padding:10px 0;border-bottom:1px solid #486054;vertical-align:top;overflow-wrap:anywhere}.sb-table th{font-weight:400;text-align:left;width:45%;padding-right:14px;color:#b4c4b9}.sb-table td{text-align:right}
.sb-photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sb-photo-pair section{border:1px solid var(--sb-line);padding:16px}.sb-photo-pair figure{margin:0 0 18px}.sb-photo-pair img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#091b15}.sb-photo-pair button{border:0;padding:0;display:block;width:100%;background:none}.sb-photo-pair figcaption{margin-top:7px;color:var(--sb-muted);font-size:calc(11px * var(--fz,1.25));overflow-wrap:anywhere}.sb-empty{color:var(--sb-muted);border:1px dashed var(--sb-line);padding:18px;text-align:center;font-size:calc(12px * var(--fz,1.25))}.sb-measure{border-top:1px solid var(--sb-line);padding:18px 0}.sb-measure>header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.sb-measure header>span{color:#99d8bf}.sb-pair-values{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px}.sb-pair-values p{display:grid;gap:4px;margin:12px 0}.sb-pair-values b{font-size:calc(24px * var(--fz,1.25));font-weight:500}.sb-pair-values time{font-size:calc(11px * var(--fz,1.25));color:var(--sb-muted)}.sb-measure>p{font-size:calc(11px * var(--fz,1.25));color:var(--sb-muted);overflow-wrap:anywhere}
.sb-sharing,.sb-history{border-top:1px solid #486054;padding:16px 0;margin-top:25px}.sb-sharing form{display:flex;gap:10px;align-items:end;max-width:600px}.sb-sharing label{flex:1}.sb-file{display:inline-flex!important;align-items:center;border:1px solid #486054;padding:9px 14px}.sb-file input{max-width:200px;font-size:calc(11px * var(--fz,1.25))}.sb-status{color:#d9c48d;font-size:calc(12px * var(--fz,1.25))}.sb-error,.sb-conflict{padding:12px;color:#ffe1b3;border-left:3px solid #e2ad72;background:#70442033}.sb-history p{font-size:calc(11px * var(--fz,1.25));overflow-wrap:anywhere}
.sb-dialog{padding:0;width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1px solid #486054;overflow:auto;overscroll-behavior:contain}.sb-dialog::backdrop,.sb-console-dialog::backdrop{background:#02130cbb;backdrop-filter:blur(3px)}.sb-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #486054;position:sticky;top:0;background:#102b23;z-index:2}.sb-dialog h2{font-size:calc(18px * var(--fz,1.25));margin:0}.sb-dialog>header button{font-size:24px;padding:0 12px}.sb-form{padding:22px;display:grid;gap:16px}.sb-form>footer{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:-22px;padding:16px 0;background:#102b23}.sb-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sb-full-photo{width:100%;max-height:65vh;object-fit:contain}.sb-console-dialog{padding:12px 0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;inset:0;margin:0;overflow:auto}.sb-console-close{margin:8px 36px}.sb-context{padding:12px 16px;border-left:3px solid #cbb478;background:#cbb47818;font-size:calc(12px * var(--fz));margin:0 0 20px}.sb-context button{margin-left:10px;min-height:44px}.sb-view-toggle{margin-top:15px}.sb-scope{display:flex;gap:8px;flex-wrap:wrap}.sb-scope button{flex:1}.sb-commercial .usage-fields{margin-top:16px}.sb-commercial label{display:grid;gap:6px;font-size:calc(12px * var(--fz))}.sb-legacy-save{margin-top:20px;font-size:calc(11px * var(--fz));color:var(--muted)}.sb-legacy-save summary{cursor:pointer;min-height:44px;padding:10px 0}.sb-price-settings .usage-fields{margin-top:18px}.usage-intro .usage-steps[hidden]{display:none!important}#sitebook-print{display:none}
@media(max-width:760px){.sb-page{padding:20px 16px 110px}.sb-switch{padding:18px 16px 0}.sb-heading{display:block}.sb-heading .sb-actions{margin-bottom:0}.sb-summary{grid-template-columns:1fr 1fr}.sb-summary>div:last-child{grid-column:1/-1}.sb-projects{grid-template-columns:1fr}.sb-zone{padding:18px 14px}.sb-zone-title{display:block}.sb-zone-title label{margin-top:12px}.sb-photo-pair{gap:10px}.sb-photo-pair section{padding:10px}.sb-cost-split{gap:12px}.sb-cost-split strong{font-size:calc(17px * var(--fz,1.25))}.sb-cost-split>div+div{padding-left:12px}.sb-actions>*{flex:1 1 150px}.sb-sharing form{align-items:stretch;flex-direction:column}.sb-dialog>header{padding:14px}.sb-form{padding:16px}.sb-dialog .sb-form-pair{grid-template-columns:1fr}.sb-zone-tabs button{min-width:100px;flex:1}.sb-dialog input[type=datetime-local]{min-width:0;max-width:100%;width:100%}.sb-dialog .sb-form>footer{bottom:-16px}.sb-photo-pair figcaption{font-size:calc(11px * var(--fz,1.25))}.sb-page h1{font-size:calc(23px * var(--fz,1.25))}}
@media print{body[data-sitebook-print=true]>*:not(#sitebook-print){display:none!important}body[data-sitebook-print=true] #sitebook-print{display:block!important;padding:12mm;color:#17271f;background:white;font:12px/1.65 'Malgun Gothic',sans-serif}#sitebook-print h1{font-size:22px}#sitebook-print table{font-size:12px}#sitebook-print th,#sitebook-print td,#sitebook-print strong,#sitebook-print small,#sitebook-print span{color:#17271f}#sitebook-print img{max-height:230px}#sitebook-print .sb-photo-pair button{display:block!important;border:0;padding:0}#sitebook-print button[data-correct]{display:none}#sitebook-print figure,#sitebook-print tr,#sitebook-print .sb-measure{break-inside:avoid}body[data-sitebook-print=true]{height:auto!important;overflow:visible!important}}
.sb-dose-settings>.usage-note{display:block!important}.sb-dose-settings>.usage-note{margin-bottom:0}.sb-dose-settings .usage-block{border:0;padding:16px 0 0;background:none}.sb-dose-settings .usage-block h2{margin:12px 0!important}
.sb-dose-settings summary small{display:block;margin:4px 0 0;color:var(--muted);font-weight:400}
/* 기존 버튼 규칙보다 구체적으로 써서 선택 범위와 저장 동작을 바로 알아보게 합니다. */
#usage-simulator .sb-scope button[aria-pressed=true],#usage-simulator #use-save{background:#e2ca90;color:#102b23;border-color:#e2ca90;font-weight:600}
#usage-simulator .sb-scope button{min-height:48px}
.sb-analysis-quote{min-width:0}.sb-analysis-quote .sb-actions button{font:inherit;min-height:44px;padding:10px 14px;color:#eee9d2;background:#17362b;border:1px solid #486054;cursor:pointer}.sb-analysis-quote .sb-actions button:first-child{background:#e2ca90;color:#102b23}
.sb-road-quote{flex:none;max-height:45vh;overflow:auto;padding:10px 24px;border-bottom:1px solid #486054;font-size:calc(12px * var(--fz))}.sb-road-quote summary{cursor:pointer;min-height:28px;color:#e2ca90}body:not([data-service=analysis]) .sb-road-quote{display:none!important}
@media(max-width:760px){.sb-road-quote{padding:8px 12px}.sb-road-quote[open]{max-height:50vh}.sb-analysis-quote .sb-actions button{flex:1 1 150px}}
.sb-sync-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #526b5c;background:#1b3b2e;padding:12px 18px;margin:18px 0}.sb-sync-banner p{margin:0}.sb-overview{border-bottom:1px solid #486054;padding-bottom:18px}.sb-overview details{margin:16px 0}.sb-overview a{color:#e2ca90;text-underline-offset:4px;overflow-wrap:anywhere}.sb-list-tools{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin:20px 0}.sb-list-tools>label{flex:1;min-width:160px}.sb-list-tools .sb-actions{margin:0}.sb-map{height:560px;aspect-ratio:3/4;max-width:460px;width:100%;margin:20px auto;background:#152e24;isolation:isolate;border:1px solid #486054}.sb-schedule-row{display:grid!important;grid-template-columns:110px 1fr auto;gap:16px;align-items:center;width:100%;text-align:left;margin:8px 0}.sb-bars{display:grid;gap:5px;margin:12px 0}.sb-bars i,.sb-bars b{display:block;height:9px;min-width:1px}.sb-bars i{background:#a4b1a9}.sb-bars b{background:#51b7ab}.sb-photo-pair .sb-photo-action{font-size:calc(11px * var(--fz,1.25));border:1px solid #486054;padding:8px;margin-top:12px}.sb-tax-setting{max-width:380px;margin-top:20px}.sb-quick-guide{margin:20px 0;padding:12px 16px;border:1px solid #486054;font-size:calc(12px * var(--fz,1.25));line-height:1.8}.sb-quick-guide summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#e2ca90}.sb-quick-guide li{margin:8px 0}.sb-page [hidden],.sb-dialog [hidden]{display:none!important}
@media(max-width:760px){.sb-sync-banner{align-items:stretch;flex-direction:column;padding:14px}.sb-map{height:480px;max-width:100%}.sb-schedule-row{grid-template-columns:1fr}.sb-list-tools>label{min-width:0;flex:1 1 100%}.sb-photo-pair{grid-template-columns:1fr}.sb-photo-pair section{padding:14px}.sb-page input,.sb-page select{max-width:100%;min-width:0}.sb-dialog>header{top:0}.sb-form footer{padding-bottom:calc(16px + env(safe-area-inset-bottom))}}
@media print{#sitebook-print .sb-print-zone{break-before:page}#sitebook-print button,#sitebook-print .sb-actions,#sitebook-print .sb-bars{display:none!important}#sitebook-print .sb-print-zone:first-of-type{break-before:auto}#sitebook-print .sb-photo-pair{grid-template-columns:1fr 1fr}#sitebook-print .sb-photo-pair button[data-photo]{display:block!important}#sitebook-print .sb-cost-split{break-inside:avoid}}

@media print{body[data-sitebook-print=true] #sitebook-print{padding:6mm;font-size:13px;line-height:1.5}#sitebook-print .sb-print-zone{break-before:page;break-inside:avoid}#sitebook-print .sb-print-zone:first-of-type{break-before:auto}#sitebook-print .sb-table{font-size:13px;line-height:1.5}#sitebook-print .sb-table th,#sitebook-print .sb-table td{padding:4px 0}#sitebook-print .sb-print-zone h2{font-size:16px;margin:16px 0 6px}#sitebook-print p{margin:4px 0}}
