/* Only the engineering coordinator UI; never override customer chat or common grids. */
.ec-shell{font-family:inherit;color:#182e36;line-height:1.65;width:100%;min-width:0;text-align:right;direction:rtl}.ec-shell *,.ec-notice *{box-sizing:border-box}.ec-shell [hidden],.ec-notice[hidden],#ecHeaderLink[hidden]{display:none!important}
.ec-page-head,.ec-row,.ec-actions,.ec-context{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.ec-page-head h1{font-size:27px;margin:4px 0}.ec-shell h2{font-size:21px;margin:0 0 12px}.ec-shell h3{font-size:18px;margin:0 0 10px}.ec-shell p{margin:6px 0 14px}.ec-eyebrow{font-size:12px;color:#537c78;font-weight:650;letter-spacing:.2px}.ec-muted,.ec-shell small{color:#697b82;font-size:13px}.ec-badge{border-radius:8px;padding:5px 11px;background:#eaf5f1;color:#226855;font-size:12px;display:inline-block}.ec-work-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.ec-panel{width:100%;min-width:0;background:#fff;border:1px solid #dfe8e8;border-radius:16px;padding:24px;margin:18px 0;overflow-wrap:anywhere}.ec-work-list .ec-panel{margin:0}.ec-button{min-height:44px;display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:10px 18px;border-radius:10px;border:1px solid transparent;text-decoration:none;cursor:pointer;font:inherit;font-size:14px;font-weight:650;line-height:1.4;white-space:normal;text-align:center}.ec-primary{background:#176b5b;color:#fff!important;border-color:#176b5b}.ec-secondary{background:#fff;color:#25443d!important;border-color:#cedfda}.ec-button:hover{filter:brightness(.96)}.ec-button:focus-visible,.ec-shell a:focus-visible,.ec-shell input:focus-visible,.ec-shell select:focus-visible{outline:3px solid #68b7a5;outline-offset:3px}.ec-button:disabled{opacity:.5;cursor:not-allowed}.ec-context{background:#eef7f3;border:1px solid #d2e7dd;border-radius:14px;padding:20px;margin:18px 0}.ec-context>div{flex:1;min-width:200px}.ec-context h2{font-size:20px;margin:0}.ec-context p{font-size:14px;margin:7px 0 0}.ec-price{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.ec-price>div{background:#f6f8f9;border-radius:12px;border:1px solid #e4ebee;padding:17px;display:flex;flex-direction:column;gap:8px}.ec-price span{font-size:13px;color:#5b6d76}.ec-price b{font-size:21px}.ec-price .total{background:#edf6f0;border-color:#d6e7dd}.ec-signatures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}.ec-signatures article{display:flex;flex-direction:column;border:1px dashed #c5d0d5;padding:16px;border-radius:12px}.ec-signatures .signed{border:1px solid #8fbfac;background:#f4faf7}.ec-signatures span{color:#627583;font-size:13px}.ec-signatures b{font-size:14px;margin-top:8px}.ec-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.ec-terms div{padding:14px 0;border-bottom:1px solid #e8eded}.ec-terms dt{font-size:12px;color:#607b82}.ec-terms dd{margin:3px 0 0;font-size:15px;white-space:pre-wrap}.ec-details{padding:16px 0;border-top:1px solid #e2eaea;margin-top:16px}.ec-details summary{cursor:pointer;font-weight:650}.ec-confirm{margin-top:20px;padding:18px;background:#f7faf9;border:1px solid #d9e5df;border-radius:12px;display:flex;flex-direction:column;gap:14px}.ec-confirm label,.ec-check{display:flex!important;align-items:flex-start;gap:10px;font-size:14px}.ec-shell input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px;accent-color:#176b5b;margin-top:3px}.ec-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ec-shell label:not(.ec-check){font-size:14px;display:block;min-width:0}.ec-shell input:not([type=checkbox]):not([type=hidden]),.ec-shell select,.ec-shell textarea{display:block;width:100%;min-height:44px;border:1px solid #ccdbdb;border-radius:9px;padding:10px 12px;font:inherit;font-size:14px;background:#fff;color:#152e35;margin-top:7px}.ec-shell textarea{resize:vertical;min-height:85px}.ec-inline-form{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin:16px 0}.ec-inline-form label{flex:1;min-width:180px}.ec-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #dce5e5;border-radius:12px;margin:18px 0;padding:16px}.ec-choices legend{font-weight:650;padding:0 7px}.ec-choices label{display:flex!important;align-items:flex-start;gap:10px;border:1px solid #e1e8e6;border-radius:8px;padding:10px}.ec-choices label:has(input:checked){border-color:#589a83;background:#f0f8f4}.ec-phase-list>article{padding:18px 0;border-bottom:1px solid #e3eaea;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ec-phase-list>article>div{display:flex;flex-direction:column;gap:4px}.ec-phase-list details{width:100%;font-size:13px}.ec-phase-list details summary{cursor:pointer;color:#39746c}.ec-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.ec-file{min-width:0;padding:14px;border:1px solid #dbe5e8;border-radius:10px;background:#fbfcfd}.ec-file a{display:grid;grid-template-columns:30px minmax(0,1fr);gap:6px;text-decoration:none;color:#21453d;font-size:14px}.ec-file a>span{font-size:25px;grid-row:span 2}.ec-file a>small{font-size:12px;font-weight:400}.ec-file .ec-check{margin-top:12px}.ec-upload{border:1px dashed #9bbcb3;padding:18px;border-radius:12px;background:#f6faf8;display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.ec-upload>label{flex:1;min-width:180px}.ec-upload small{width:100%}.ec-upload input{background:#fff}.ec-review{margin-top:20px}.ec-review .ec-actions{margin:14px 0}.ec-warning{background:#fff9ed;border:1px solid #ecd7a6;color:#765a29;padding:16px;border-radius:12px;margin:16px 0;font-size:14px}.ec-error{color:#963a36;background:#fff2f0;border:1px solid #efc2bb;padding:15px;border-radius:9px}.ec-feedback:empty{display:none}.ec-feedback{background:#edf6f1;color:#1e6955;padding:12px;border-radius:8px}.ec-feedback.ec-error{background:#fff2f0;color:#963a36}.ec-progress{list-style:none;padding:0;display:flex;gap:8px;margin:20px 0;overflow:auto}.ec-progress li{flex:1;min-width:95px;font-size:12px;color:#76868b;padding-bottom:12px;border-bottom:3px solid #e5eaea;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}.ec-progress span{height:25px;width:25px;display:grid;place-items:center;border-radius:50%;background:#edf0f0}.ec-progress .done{border-color:#639c83;color:#347457}.ec-progress .current{border-color:#176b5b;color:#176b5b;font-weight:700}.ec-progress .current span{background:#176b5b;color:#fff}.ec-notice{display:flex;align-items:center;gap:16px;background:#edf7f2;border:1px solid #bcddcc;border-radius:15px;padding:18px 22px;margin:0 0 20px;color:#194f40;direction:rtl;line-height:1.55}.ec-notice-copy{flex:1;min-width:0}.ec-notice strong{font-size:18px}.ec-notice p{font-size:14px;margin:6px 0 0}.ec-notice-icon{background:#176b5b;color:#fff;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;flex:none;font-weight:bold}.ec-board{border:1px solid #dce7e4;border-radius:12px;padding:18px;margin:20px 0}.ec-board-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.ec-board-tools>label{flex:1;min-width:125px}.ec-board-scroll{margin:14px 0;border:1px solid #b8ccca;border-radius:7px;overflow:auto}.ec-board svg{display:block;width:100%;min-width:400px;height:auto;aspect-ratio:10/7;cursor:crosshair;touch-action:manipulation;background-color:white;background-image:linear-gradient(#e6eded 1px,transparent 1px),linear-gradient(90deg,#e6eded 1px,transparent 1px);background-size:20px 20px}.ec-empty{padding:36px;color:#617b81;text-align:center}
@media(max-width:700px){.ec-panel{padding:17px;margin:14px 0}.ec-work-list,.ec-two,.ec-terms{grid-template-columns:1fr}.ec-price{gap:7px}.ec-price>div{padding:11px 8px}.ec-price b{font-size:16px}.ec-price span{font-size:11px}.ec-signatures{gap:9px}.ec-signatures article{padding:12px}.ec-context{padding:16px}.ec-context .ec-button{width:100%}.ec-notice{padding:15px;gap:10px;flex-wrap:wrap}.ec-notice strong{font-size:16px}.ec-notice>.ec-button{width:100%}.ec-files,.ec-choices{grid-template-columns:1fr}.ec-actions{justify-content:stretch}.ec-actions .ec-button{flex:1}.ec-signatures strong{font-size:14px}.ec-progress{margin:10px 0}.ec-progress li{min-width:87px}.ec-shell h2{font-size:19px}.ec-board{padding:12px}.ec-upload .ec-button{width:100%}}
/* The inherited generic button selector has high :not specificity. Scope these overrides. */
.ec-shell button.ec-primary,.ec-notice .ec-primary{background:#176b5b!important;color:#fff!important;border:1px solid #176b5b!important}.ec-shell button.ec-secondary{background:#fff!important;color:#25443d!important;border:1px solid #cedfda!important}.ec-shell button.ec-button{padding:10px 18px!important;border-radius:10px!important}
@media(max-width:520px){#ecHeaderLink{font-size:11px;padding:7px 8px;min-height:34px}.topbar .userbox{flex-wrap:wrap;gap:5px}.topbar .brand span{display:none}}

/* Keep horizontal progress scroll inside the engineering screen, never expand its grid track. */
.app-shell:has(.ec-shell)>.content,.app-shell:has(.ec-shell)>.sidebar{min-width:0;max-width:100%}
