.commerce-shell{max-width:1280px}.commerce-nav{display:flex;justify-content:space-between;align-items:end;gap:24px;border-bottom:1px solid var(--line);margin-bottom:40px}.commerce-tabs{display:flex;gap:30px}.commerce-tabs a{padding:20px 0;font-size:15px;border-bottom:2px solid transparent;color:var(--muted)}.commerce-tabs a.active{border-color:var(--ink);color:var(--ink);font-weight:700}.org-picker{font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.org-picker select{font:inherit;font-size:13px;background:white;border:1px solid var(--line);border-radius:5px;min-width:180px;max-width:270px;padding:8px 10px;color:var(--ink)}.commerce-footnote{font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin-top:55px;padding-top:20px}.commerce-empty{text-align:center;padding:64px 24px;border:1px solid var(--line);background:#fff}.commerce-empty .empty-mark{display:block;font-weight:200;font-size:35px;color:#7b9fb3;margin-bottom:18px}.commerce-empty h2{font-size:25px;letter-spacing:-.04em;margin-bottom:14px}.commerce-empty p{font-size:14px;color:var(--muted);max-width:460px;margin:0 auto 25px;line-height:1.8}.commerce-section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 24px}.commerce-section-title h2,.commerce-section-title h3{font-size:22px}.commerce-section-title span{font-size:14px;color:var(--muted);font-weight:400;margin-left:6px}.work-list{border-top:1px solid var(--line)}.work-list>a{display:grid;grid-template-columns:1fr auto 18px;align-items:center;gap:32px;padding:27px 12px;border-bottom:1px solid var(--line);transition:background .15s}.work-list>a:hover{background:#edf3f7}.work-list h3{font-size:20px;margin:10px 0}.work-list p,.work-list>a>span{font-size:13px;color:var(--muted)}.commerce-status{display:inline-block;font-size:11px;padding:4px 8px;border-radius:3px;background:#e6eef4;color:#325873}.commerce-status.status-received{background:#e4efe9;color:#34624b}.commerce-status.status-cancelled,.commerce-status.status-declined{background:#eee;color:#777}.commerce-title{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:25px}.commerce-title h2{font-size:32px;line-height:1.4;letter-spacing:-.04em;margin-top:10px;overflow-wrap:anywhere}.commerce-columns{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:45px}.commerce-spec{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:23px 0}.commerce-spec div{display:flex;flex-direction:column;gap:8px;min-width:0}.commerce-spec span{font-size:12px;color:var(--muted)}.commerce-spec strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.commerce-prose{font-size:15px;white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere;margin:25px 0}.commerce-note{background:#eaf1f5;color:#415965;padding:20px;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.commerce-subtitle{font-size:19px;margin:32px 0 18px}.commerce-aside{background:#eef3f6;padding:26px;margin-bottom:20px}.commerce-aside h3{font-size:16px;margin-bottom:16px}.commerce-aside p{font-size:13px;color:var(--muted);line-height:1.9;margin-bottom:22px;overflow-wrap:anywhere}.commerce-aside .text-link{display:block;margin-top:18px;font-size:12px;color:var(--green)}.commerce-files{margin-bottom:22px}.commerce-files button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.commerce-files button span{overflow-wrap:anywhere;min-width:0}.commerce-files small{color:var(--muted);white-space:nowrap}.file-upload{position:relative;display:block;padding:20px;border:1px dashed #a9bbc7;border-radius:4px;color:#326078;cursor:pointer;font-size:14px}.file-upload input{display:block;width:100%;font-size:12px;margin:15px 0}.file-upload small{font-size:11px;color:var(--muted)}.invite-list{margin-top:26px;border-top:1px solid #d8e1e7}.invite-list>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #d8e1e7;font-size:12px}.invite-list small{display:block;font-size:10px;color:var(--muted)}.offer-list{display:flex;flex-direction:column;gap:20px}.offer-card{border:1px solid var(--line);background:white;padding:28px}.offer-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.offer-head h3{font-size:20px;margin-top:7px}.offer-head>strong{font-size:25px;font-variant-numeric:tabular-nums;white-space:nowrap}.offer-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:15px 25px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.offer-breakdown>div{display:flex;justify-content:space-between;gap:15px;font-size:12px}.offer-breakdown dt{color:var(--muted)}.offer-breakdown dd{margin:0;font-variant-numeric:tabular-nums}.offer-card .commerce-prose{font-size:13px}.commerce-warning,.inline-error{font-size:12px;color:#a04725;line-height:1.6}.inline-error{margin-top:12px}.button:disabled{opacity:.45;cursor:not-allowed;filter:none}.order-total{font-size:28px;font-variant-numeric:tabular-nums;white-space:nowrap}.order-progress{list-style:none;padding:25px 0;margin:20px 0 25px;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:12px}.order-progress li{font-size:12px;color:#98a6af;display:flex;align-items:center;gap:9px}.order-progress span{border:1px solid #ccd6dd;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;flex-shrink:0}.order-progress .done{color:var(--green)}.order-progress .done span{background:var(--green);color:white;border-color:var(--green)}.order-action-bar{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.commerce-alert{background:#fff4de;padding:20px;margin:20px 0}.commerce-alert h3{font-size:16px}.commerce-alert p{font-size:13px;margin-top:8px}.order-events{list-style:none;padding:0}.order-events li{border-left:1px solid #c6d5df;padding:0 0 22px 16px;position:relative}.order-events li:before{content:'';position:absolute;width:5px;height:5px;background:#7595aa;left:-3px;top:6px;border-radius:50%}.order-events strong{font-size:13px;font-weight:550}.order-events small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.order-events p{margin:10px 0 0;font-size:12px}.commerce-form{display:grid;grid-template-columns:1fr 1fr;gap:20px}.commerce-form label{font-size:13px;display:flex;flex-direction:column;gap:8px;min-width:0}.commerce-form input,.commerce-form textarea,.share-link input{font:inherit;padding:12px;border:1px solid #c6d3dc;border-radius:4px;width:100%;background:white;color:var(--ink)}.commerce-form textarea{min-height:115px;resize:vertical}.commerce-form .full-width{grid-column:1/-1}.commerce-form .commerce-consent{flex-direction:row;align-items:flex-start;font-size:12px;line-height:1.8}.commerce-consent input{width:16px;flex-shrink:0;margin-top:4px}.commerce-form .error{font-size:13px;color:#a03c2a;line-height:1.7}.quote-total{display:flex;align-items:center;justify-content:space-between;background:#e7eff5;padding:18px;font-size:14px}.quote-total strong{font-size:24px;font-variant-numeric:tabular-nums}.share-link{display:block;font-size:12px;margin:24px 0}.share-link input{margin-top:8px;font-size:12px}.commerce-form>p{font-size:14px;line-height:1.8}.tool-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;margin:20px 0;color:var(--muted)}.tool-meta span{padding:6px 10px;border:1px solid var(--line)}
@media(max-width:900px){.commerce-columns{grid-template-columns:minmax(0,1fr) 260px;gap:25px}.offer-breakdown{grid-template-columns:1fr}.commerce-tabs{gap:20px}.order-progress li{display:block}.order-progress span{margin-bottom:9px}}
@media(max-width:650px){.commerce-nav{flex-direction:column;align-items:stretch;gap:12px}.org-picker{max-width:100%;flex-direction:row;align-items:center;justify-content:space-between}.org-picker select{max-width:240px}.commerce-tabs{justify-content:space-between;gap:12px}.commerce-tabs a{font-size:14px;padding:15px 0}.commerce-columns{grid-template-columns:1fr;gap:20px}.commerce-title{align-items:start;flex-wrap:wrap}.commerce-title h2{font-size:26px}.commerce-title .button{min-height:38px}.commerce-section-title{align-items:start;flex-wrap:wrap}.commerce-section-title h2{font-size:22px}.work-list>a{grid-template-columns:1fr 16px;gap:15px;padding:24px 0}.work-list>a>strong,.work-list>a>span:nth-child(2){grid-column:1;grid-row:2}.work-list>a>span:last-child{grid-column:2;grid-row:1}.offer-card{padding:22px}.offer-head{align-items:start;flex-direction:column;gap:12px}.offer-head>strong{font-size:25px}.commerce-form{grid-template-columns:1fr}.commerce-form .full-width{grid-column:auto}.commerce-empty{padding:40px 20px}.commerce-empty h2{font-size:22px}.order-progress{gap:7px}.order-progress li{font-size:10px;line-height:1.6}.order-progress span{width:23px;height:23px}.commerce-footnote{line-height:1.8}.commerce-aside{padding:24px}.commerce-form .actions .button{flex:1}}
.commerce-design-draft{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #bdd8e6;border-left:3px solid #176e9b;background:#f1f8fc;padding:22px 24px;margin-bottom:28px}.commerce-design-draft>div{min-width:0}.commerce-design-draft h2{font-size:19px;line-height:1.5;letter-spacing:-.03em;margin-top:7px}.commerce-design-draft p{font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin-top:8px}.commerce-design-draft small{display:block;font-size:12px;color:var(--muted);margin-top:10px}.commerce-design-draft .actions{flex-shrink:0;gap:16px}.commerce-design-draft .caption{font-size:11px}@media(max-width:650px){.commerce-design-draft{align-items:stretch;flex-direction:column;padding:20px;gap:20px}.commerce-design-draft h2{font-size:18px}.commerce-design-draft .actions{justify-content:flex-start;flex-wrap:wrap}}
.commerce-shell{padding-top:32px}.commerce-workspace-head{margin-bottom:18px}.commerce-workspace-head .eyebrow{font-size:10px;letter-spacing:.09em;margin:0 0 9px;gap:8px}.commerce-workspace-head .eyebrow:before{width:5px;height:5px}.commerce-workspace-head h1{font-size:30px;line-height:1.25;letter-spacing:-.04em}.commerce-workspace-head p{font-size:13px;color:var(--muted);margin-top:8px}.commerce-workspace-head.compact{display:flex;align-items:center;gap:14px;margin-bottom:10px}.commerce-workspace-head.compact .eyebrow{margin:0}.commerce-workspace-head.compact h1{font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.03em}.commerce-detail{padding-top:24px}.commerce-shell .commerce-nav{margin-bottom:24px}.commerce-shell .commerce-tabs a{padding-top:14px;padding-bottom:14px}.commerce-content>.back{margin-bottom:16px}.commerce-columns>div>.commerce-subtitle:first-child{margin-top:0}.file-upload input::file-selector-button{font:inherit;font-size:12px;font-weight:600;border:1px solid #b8c9d5;border-radius:5px;background:#fff;color:var(--ink);padding:9px 13px;min-height:36px;margin-right:12px;cursor:pointer}.file-upload input::file-selector-button:hover{background:#eaf5fa}.file-upload input:focus-visible{outline:2px solid #176e9b;outline-offset:4px}.file-upload input:disabled::file-selector-button{cursor:wait;opacity:.5}
@media(max-width:650px){.commerce-shell{padding-top:26px}.commerce-workspace-head h1{font-size:27px}.commerce-workspace-head p{line-height:1.7}.commerce-workspace-head.compact{gap:10px;flex-wrap:wrap}.commerce-workspace-head.compact .eyebrow{font-size:9px}.commerce-workspace-head.compact h1{font-size:16px}.commerce-detail{padding-top:20px}.commerce-shell .commerce-nav{margin-bottom:22px}.commerce-detail .commerce-title h2{font-size:25px}.file-upload input::file-selector-button{margin-right:9px}}

.requote-files{border:1px solid #cfdae2;margin:8px 0;padding:18px 20px;min-width:0}
.requote-files legend{padding:0 6px;font-size:14px;font-weight:600}
.commerce-form .requote-files>label{display:flex;flex-direction:row;align-items:start;gap:12px;padding:12px 0;font-size:13px}
.commerce-form .requote-files input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;margin:2px 0 0;flex:none;accent-color:#296987}
.requote-files label>span{min-width:0;overflow-wrap:anywhere;line-height:1.6}
.requote-files small{display:block;color:#7a8f9b;font-size:11px;margin-top:4px}
.requote-files>p{font-size:12px;line-height:1.8;color:#788d99;margin-top:13px}
.requote-source{border-left:2px solid #accbd9;padding:12px 16px;font-size:12px;line-height:1.8;margin:18px 0 28px;color:#627b89;background:#edf3f6}
.requote-source a{color:#246182;margin-left:14px;text-decoration:underline;text-underline-offset:3px}
.shipping-changes{margin-top:10px;font-size:11px;line-height:1.7;color:#5f7a89}
.shipping-changes summary{cursor:pointer;padding:8px 0;min-height:36px}
.shipping-changes>div{border-top:1px solid #d5e0e6;padding:12px 0}
.shipping-changes>div>strong{font-size:11px;color:#3c5b6c}
.shipping-changes dl{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px 10px;margin:9px 0 0}
.shipping-changes dt{color:#8195a0}
.shipping-changes dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:760px){.requote-files{padding:12px 14px}.requote-source a{display:block;margin:5px 0 0}}

/* 선택한 보고서와 BOM의 명시적 저장·재시도·이력 */
.bundle-destination{border:0;padding:0;margin:0;min-width:0}
.bundle-destination legend{font-size:13px;font-weight:650;margin-bottom:12px}
.bundle-destination>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.commerce-form .bundle-destination>div>label{display:flex;flex-direction:row;align-items:center;gap:9px;padding:13px;border:1px solid var(--line);background:#fff;border-radius:6px;line-height:1.5;cursor:pointer}
.commerce-form .bundle-destination input[type=radio]{width:17px;height:17px;padding:0;margin:0;flex:none;accent-color:#286b88}
.commerce-form .bundle-destination select{width:100%;min-height:44px;padding:10px;border:1px solid #c6d3dc;border-radius:4px;background:#fff;font:inherit;color:var(--ink)}
.bundle-destination>p,.bundle-files>p,.bundle-confirm-files>p,.bundle-sharing{font-size:12px;line-height:1.8;color:var(--muted);margin-top:12px}
.bundle-files{border:1px solid var(--line);border-radius:6px;padding:18px;background:#fff}
.bundle-files h3,.bundle-confirm-files h3{font-size:14px;line-height:1.5;margin-bottom:10px}
.bundle-files>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.bundle-files>div>span{min-width:0}.bundle-files strong{font-size:12px;font-weight:600}
.bundle-files small{display:block;font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.bundle-files>div>small{flex-shrink:0}.bundle-files>p{margin-bottom:0}
.bundle-sharing{border-left:2px solid #a8bdc8;padding-left:14px;margin:0}
.commerce-form[data-kind=design-bundle] input:disabled,.commerce-form[data-kind=design-bundle] textarea:disabled,.commerce-form[data-kind=design-bundle] select:disabled{opacity:1;background:#f0f3f5;color:#526673}
.commerce-form[data-kind=design-bundle]>.actions{position:sticky;bottom:-24px;padding:15px 0;background:var(--paper);border-top:1px solid var(--line)}
.commerce-current-design{border-top:2px solid #7dabbf;padding-top:17px;margin-top:16px}
.commerce-current-design>div:first-child{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.commerce-current-design h4,.commerce-extra-files h4,.commerce-design-history h4{font-size:13px;font-weight:600;margin:0}
.commerce-current-design>div>span{font-size:11px;color:var(--muted)}
.commerce-design-history{border-top:1px solid var(--line);margin:22px 0;color:var(--muted)}
.commerce-design-history>summary{font-size:13px;padding:14px 0;min-height:44px;cursor:pointer}
.commerce-design-history>section{padding:14px 0}.commerce-design-history .commerce-files{margin-bottom:0}
.bundle-confirm-files{border-top:1px solid var(--line);padding-top:18px}
.bundle-confirm-files ul{list-style:none;margin:0;padding:0}.bundle-confirm-files li{display:flex;justify-content:space-between;gap:14px;font-size:12px;line-height:1.7;padding:8px 0}
.bundle-confirm-files li>span{min-width:0;overflow-wrap:anywhere}.bundle-confirm-files small{flex-shrink:0;color:var(--muted);font-size:11px}
@media(max-width:650px){.bundle-destination>div{grid-template-columns:1fr}.bundle-files{padding:15px}.commerce-bundle-pending .actions>.button{width:100%}.commerce-form[data-kind=design-bundle]>.actions{bottom:-24px}.commerce-current-design>div:first-child{display:block}.commerce-current-design>div>span{display:block;margin-top:6px}}

.commerce-form [data-design-request-label][hidden],.commerce-form [data-design-sharing][hidden],.commerce-form [data-bundle-problem][hidden]{display:none}

.bundle-legacy-note{font-size:12px;line-height:1.65;color:#715328;padding:10px 12px;border-left:2px solid #c8a879;background:#fbf7ef;margin:8px 0 12px;overflow-wrap:anywhere}
.commerce-form [data-design-legacy-note][hidden]{display:none}

/* 견적 조건에서 원본 설계 검토로 이어지는 명시적 진입 */
.offer-review{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;border-top:1px solid var(--line);padding:16px 0;margin-top:18px}
.offer-review>.button{min-height:44px;flex-shrink:0;white-space:normal;text-align:left}
.offer-review>p{flex:1 1 240px;margin:0;font-size:12px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:650px){.offer-review{align-items:stretch}.offer-review>.button{width:100%;justify-content:space-between}.offer-review>p{flex-basis:100%}}

/* 제작 자료와 인도 방식: 긴 파일명과 좁은 화면에서도 조작을 분리한다. */
.commerce-file-row{display:flex;align-items:center;gap:12px;min-width:0}
.commerce-file-row>.commerce-file{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:12px 0;display:flex;justify-content:space-between;gap:12px;align-items:center;color:inherit}
.commerce-file>span{overflow-wrap:anywhere}.commerce-file>small{flex-shrink:0;color:var(--muted);font-size:12px}
.commerce-file-row>.text-button{min-height:44px;padding:8px 12px;flex-shrink:0}
.delivery-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.delivery-fields[hidden]{display:none}
.design-file-history{margin:18px 0;color:var(--muted);font-size:13px}
.design-file-history summary{cursor:pointer;padding:10px 0}
.commerce-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0 8px;color:var(--muted);font-size:12px}
.status-closed,.status-withdrawn{background:#f1f2f4;color:#59616c}
@media(max-width:650px){.commerce-file{flex-direction:column;align-items:flex-start!important;gap:5px!important}.delivery-fields{grid-template-columns:1fr}.commerce-title>.actions{width:100%}.commerce-pagination{gap:8px}}

.commerce-form select{font:inherit;padding:12px;border:1px solid #c6d3dc;border-radius:4px;min-height:44px;width:100%;background:white;color:var(--ink)}
.commerce-draft-notice{padding:14px 16px;background:#eaf1f5;font-size:12px;line-height:1.7}
.commerce-draft-notice p{margin:0}.commerce-draft-notice button{margin-top:8px;margin-right:16px;text-decoration:underline}
.commerce-form[aria-busy=true] input,.commerce-form[aria-busy=true] textarea,.commerce-form[aria-busy=true] select{background:#f0f3f5;color:#526673;opacity:1}

.commerce-file-row>.text-button{width:auto}
