:root{font:16px Arial,Helvetica,sans-serif;color:#262629;background:#f2f2f4;--red:#c82237;--line:#dedee2;--muted:#68686f}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit}h1,h2,h3,p{margin:0}input,textarea{max-width:100%}button{min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #2875d0;outline-offset:3px}[hidden]{display:none!important}.work-header{height:94px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:25px;padding:10px max(24px,calc((100% - 1400px)/2))}.work-header img{width:135px;height:68px;object-fit:contain}.work-header>div{display:flex;flex-direction:column;gap:6px}.work-header>div>span{font-size:14px;color:var(--muted)}.work-header>button{margin-left:auto}.quiet{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 15px;color:#29292c}.primary{background:var(--red);color:#fff;border:0;border-radius:9px;padding:13px 18px;font-weight:700}.primary:hover:not(:disabled){background:#aa192d}.wide{width:100%}.workspace{max-width:1400px;margin:24px auto;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:24px;padding:0 24px}.conversation{background:white;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;height:calc(100dvh - 143px);min-height:530px}.chat-top{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:23px;border-bottom:1px solid var(--line)}h1{font-size:21px;line-height:1.3}.chat-top>span{font-size:13px;color:var(--muted);line-height:1.5;text-align:right}#messages{flex:1;overflow:auto;overscroll-behavior:contain;padding:24px;min-height:150px}.bubble{background:#f1f1f4;border-radius:3px 15px 15px;padding:16px 18px;max-width:92%;margin:0 0 20px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.bubble.user{background:#29292d;color:white;margin-left:auto;border-radius:15px 3px 15px 15px}.bubble small{display:block;font-size:12px;opacity:.75;margin-bottom:6px}.compose-area{border-top:1px solid var(--line);padding:18px 22px;background:white;border-radius:0 0 16px 16px}#message{display:block;width:100%;resize:vertical;min-height:90px;max-height:220px;border:0;background:#f4f4f6;border-radius:10px;padding:14px;line-height:1.5}.compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}.upload-label{font-size:14px;cursor:pointer;padding:12px 0}#upload{position:absolute;width:1px;height:1px;opacity:0}#upload:focus-visible+.primary{outline:3px solid #2875d0}.compose-hint,.small{font-size:13px;color:var(--muted);line-height:1.6;margin:12px 0 0}#feedback,#confirm-error{font-size:14px;color:#a91428;line-height:1.5;margin-bottom:10px}#feedback:empty,#confirm-error:empty{margin:0}#pending-actions{margin:10px 0}.order-side{min-width:0}#order-panel{background:white;border:1px solid var(--line);border-radius:16px}#order-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px;cursor:pointer;list-style:none;border-bottom:1px solid var(--line);font-weight:700;font-size:21px}summary::-webkit-details-marker{display:none}#summary-short{font-size:13px;color:var(--muted);font-weight:400}.order-content{padding:22px}.sheet-header{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin-bottom:20px}.empty{line-height:1.75;color:var(--muted);padding:20px 0 30px}.item{border:1px solid var(--line);border-radius:11px;padding:17px;margin-bottom:16px}.item h3{font-size:18px;line-height:1.4;margin-bottom:13px;overflow-wrap:anywhere}.field{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;font-size:14px;line-height:1.65;padding:4px 0}.field>span{color:var(--muted)}.field strong{font-weight:400;overflow-wrap:anywhere;white-space:pre-wrap}.print{padding:12px;background:#f4f4f6;border-radius:8px;margin-top:10px;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.order-row{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:17px 0;font-size:15px;line-height:1.5}.order-row>span{color:var(--muted)}.order-row>strong{text-align:right;overflow-wrap:anywhere}#common{font-size:14px;line-height:1.6;margin-bottom:16px}#common h3{font-size:15px;margin-bottom:9px}#attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}#attachments a{background:#f3f3f6;padding:9px 11px;border-radius:7px;font-size:13px;text-decoration:none;overflow-wrap:anywhere}.next-field{font-size:14px;line-height:1.6;color:#8f1728;margin:18px 0}.back-site{display:block;margin:22px 0;font-size:14px;color:var(--muted);text-decoration:none}.changed{animation:highlight 1.8s ease-out}@keyframes highlight{0%,25%{background:#ffe2e7}100%{background:transparent}}#receipt{margin-top:20px;padding:20px;border-radius:12px;background:#eff7f1;line-height:1.7;overflow-wrap:anywhere}dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);border:0;border-radius:15px;padding:28px;color:#262629}dialog::backdrop{background:#141419bb}dialog h2{font-size:24px;line-height:1.3;padding-right:25px;margin-bottom:15px}dialog p{line-height:1.6;margin-bottom:20px;color:var(--muted)}dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.5;margin-bottom:18px}dialog input,dialog textarea{padding:12px;border:1px solid #bdbdc5;border-radius:8px;background:white;color:#262629;min-height:46px;resize:vertical}dialog .consent{flex-direction:row;align-items:start;gap:11px}dialog .consent input{min-height:18px;width:18px;height:18px;flex-shrink:0;margin-top:3px}.dialog-close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:28px;width:44px;height:44px}.dialog-actions{display:flex;justify-content:end;gap:15px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:850px){.workspace{grid-template-columns:1fr;margin-top:15px;gap:16px;padding:0 14px}.order-side{grid-row:1}.order-side .back-site{display:none}#order-panel>summary{padding:16px 19px;font-size:18px}#order-panel>summary:after{content:'⌄'}#order-panel[open]>summary:after{content:'⌃'}.conversation{height:calc(100dvh - 207px);min-height:490px}.work-header{height:82px;padding:8px 17px;gap:16px}.work-header img{width:112px;height:58px}.work-header>div{display:none}.work-header>button{font-size:14px}.order-content{padding:18px}.compose-area{padding:15px}.chat-top{padding:18px}#messages{padding:18px}.bubble{max-width:96%;padding:14px}.compose-hint{font-size:12px}.workspace{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){.changed{animation:none}}

#cost-details{margin:16px 0;font-size:14px;line-height:1.7}#cost-details summary{cursor:pointer}#cost-breakdown{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px}

/* v7: compact, stable composition; all original capabilities retained. */
:root{font-family:"Segoe UI",Arial,Helvetica,sans-serif;background:#f5f4f2;--red:#bb1830;--line:#e3e1df}
.work-header{height:76px}.work-header img{width:112px;height:54px}.workspace{max-width:1320px;margin:18px auto;gap:18px;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)}
.conversation{height:calc(100dvh - 112px);min-height:500px;border-radius:12px}.chat-top{padding:17px 20px}#messages{padding:18px 20px}.bubble{padding:12px 15px;margin-bottom:14px;line-height:1.5;max-width:94%;background:#f4f3f1}.bubble.user{background:#272729}.bubble small{margin-bottom:3px}
.compose-area{padding:13px 18px}#message{min-height:64px;max-height:150px;border:1px solid var(--line);background:#faf9f8;padding:10px 12px}.compose-bottom{margin-top:7px}.compose-hint{margin-top:7px}.primary{padding:10px 16px;border-radius:7px}#order-panel{border-radius:12px}#order-panel>summary{padding:18px 20px}.order-content{padding:18px 20px}.sheet-header{margin-bottom:12px}.item{padding:12px 14px;margin-bottom:10px}.item h3{margin-bottom:7px;font-size:17px}.field{padding:2px 0}.print{padding:8px 10px;margin-top:7px;line-height:1.5}.order-row{padding:12px 0}.small{font-size:14px}.item-context{font-size:14px;padding:8px 20px;color:#962034;border-bottom:1px solid var(--line)}.item-context:empty{display:none}.order-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:14px}.order-tools a{text-decoration:none}.design-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:white;border-radius:6px;margin:0 6px 10px 0;padding:5px 9px;font-size:14px}.design-chip img{width:30px;height:38px;object-fit:cover}#item-dialog{width:min(920px,calc(100% - 24px))}.edit-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.edit-title h2,.edit-title h3{margin:0 auto 0 0}.edit-title button,fieldset button,.edit-item>button{border:1px solid var(--line);background:white;border-radius:6px;padding:6px 10px;font-size:14px}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.edit-grid label{margin-bottom:12px}.edit-grid input,.edit-grid select{font:inherit;width:100%;min-height:42px;border:1px solid #c9c6c3;border-radius:6px;padding:8px;background:white;color:#222}fieldset{border:1px solid var(--line);border-radius:8px;margin:8px 0 12px;padding:14px}.edit-item{border-bottom:2px solid var(--line);padding:12px 0 22px;margin-bottom:20px}#item-error{color:#ad1730;margin:14px 0}.edit-item legend{font-size:14px;font-weight:600}#save-items{margin:14px 0}.empty{padding:14px 0 20px}
@media(max-width:850px){.workspace{grid-template-columns:1fr}.conversation{height:65dvh;min-height:460px}.work-header{height:70px}.edit-grid{grid-template-columns:1fr}.chat-top{flex-wrap:wrap;gap:5px}.chat-top>span{text-align:left}.order-tools{flex-wrap:wrap}}

.item-context{white-space:pre-line;color:#343434;background:#f2efe9;font-size:14px;line-height:1.65;padding:16px 20px}.bubble{white-space:pre-line}#quick-choices{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}#quick-choices button{font:600 15px Arial;border:1px solid #d7c9cb;border-radius:12px;padding:12px 16px;background:white;color:#852039;text-align:left}#quick-choices button:hover{background:#f9edf0}.file-card{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.file-card img{width:90px;height:90px;object-fit:contain;cursor:zoom-in}.file-card button{padding:8px 12px;border:1px solid #ccc;background:white;border-radius:8px}#file-preview img{max-width:80vw;max-height:75vh;object-fit:contain}.work-header img{height:auto;object-fit:contain;clip-path:inset(3% 3.5% round 5px)}
