#echo-estimator-app{
  --navy:#17324D;
  --navy2:#244A6A;
  --orange:#E97924;
  --bg:#F4F6F8;
  --card:#FFFFFF;
  --line:#DDE3E8;
  --text:#17212B;
  --muted:#66727E;
  --good:#176B45;
  --warn:#936114;
  --bad:#A33A32;
  --shadow:0 6px 24px rgba(23,50,77,.08);
  --radius:14px;
  width:100%;max-width:none;isolation:isolate;
  margin:0;background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.35;
}
#echo-estimator-app *{box-sizing:border-box}
#echo-estimator-app button,#echo-estimator-app input,#echo-estimator-app select,#echo-estimator-app textarea{font:inherit}
#echo-estimator-app button{cursor:pointer}
#echo-estimator-app .topbar{background:var(--navy);color:#fff;padding:16px 18px 14px;position:sticky;top:0;z-index:20;box-shadow:0 2px 12px rgba(0,0,0,.12)}
#echo-estimator-app .topbar-inner{max-width:1180px;margin:0 auto;display:flex;gap:16px;align-items:center;justify-content:space-between}
#echo-estimator-app .brand{font-weight:800;font-size:19px;letter-spacing:.2px}
#echo-estimator-app .subbrand{font-size:12px;opacity:.78;margin-top:2px}
#echo-estimator-app .topbar-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#echo-estimator-app .badge{font-size:11px;font-weight:800;letter-spacing:.8px;background:rgba(255,255,255,.12);padding:6px 9px;border-radius:999px;white-space:nowrap}
#echo-estimator-app .status-chip{font-size:11px;font-weight:800;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.12);white-space:nowrap}
#echo-estimator-app .status-chip.online{background:rgba(39,174,96,.22)}
#echo-estimator-app .status-chip.offline{background:rgba(233,121,36,.28)}
#echo-estimator-app .startup-warning{max-width:1180px;margin:12px auto 0;padding:10px 14px;border:1px solid #d99;background:#fff2f1;color:#7f2d27;border-radius:10px;font-weight:700;font-size:12px}
#echo-estimator-app main{max-width:1180px;margin:0 auto;padding:18px 14px 110px}
#echo-estimator-app .grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:16px;align-items:start}
#echo-estimator-app .card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden}
#echo-estimator-app .card-h{padding:15px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
#echo-estimator-app .card-h h2,#echo-estimator-app .card-h h3{font-size:16px;margin:0;color:var(--navy)}
#echo-estimator-app .card-b{padding:16px}
#echo-estimator-app .note{font-size:12px;color:var(--muted)}
#echo-estimator-app .banner{background:#FFF8EF;border:1px solid #F2D1A9;color:#6F4B18;border-radius:12px;padding:10px 12px;font-size:12px;margin-bottom:16px}
#echo-estimator-app .fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#echo-estimator-app .field{min-width:0}
#echo-estimator-app label{display:block;font-size:11px;font-weight:750;color:#53606C;margin:0 0 5px}
#echo-estimator-app input,#echo-estimator-app select,#echo-estimator-app textarea{width:100%;border:1px solid #C9D2DA;background:#fff;border-radius:9px;padding:10px;color:var(--text);min-height:42px}
#echo-estimator-app textarea{resize:vertical;min-height:76px}
#echo-estimator-app input:focus,#echo-estimator-app select:focus,#echo-estimator-app textarea:focus{outline:2px solid rgba(233,121,36,.18);border-color:var(--orange)}
#echo-estimator-app input[type="number"]{font-variant-numeric:tabular-nums}
#echo-estimator-app .span2{grid-column:span 2}
#echo-estimator-app .span4{grid-column:1/-1}
#echo-estimator-app .btns{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
#echo-estimator-app .btn{border:0;border-radius:9px;padding:10px 13px;font-weight:800;font-size:13px;background:#E9EEF2;color:var(--navy)}
#echo-estimator-app .btn.primary{background:var(--orange);color:#fff}
#echo-estimator-app .btn.navy{background:var(--navy);color:#fff}
#echo-estimator-app .btn.ghost{background:#fff;border:1px solid var(--line)}
#echo-estimator-app .btn.danger{color:var(--bad)}
#echo-estimator-app .btn:disabled{opacity:.45;cursor:not-allowed}
#echo-estimator-app .job-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:14px}
#echo-estimator-app .saved-job-picker{display:flex;gap:7px;align-items:center;flex:1;min-width:300px}
#echo-estimator-app .saved-job-picker select{min-width:180px;flex:1}
#echo-estimator-app .save-status{font-size:11px;color:var(--muted);font-weight:750}
#echo-estimator-app .save-note{margin-top:9px}
#echo-estimator-app .form-note{margin-top:-3px}
#echo-estimator-app .estimate-preview{margin-top:13px;background:#F7F9FB;border:1px solid var(--line);border-radius:11px;padding:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#echo-estimator-app .metric .k{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);font-weight:800}
#echo-estimator-app .metric .v{font-size:16px;font-weight:800;margin-top:2px;color:var(--navy)}
#echo-estimator-app .confidence{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;padding:4px 7px;border-radius:999px}
#echo-estimator-app .high{background:#E8F5EE;color:var(--good)}
#echo-estimator-app .medium{background:#FFF3DB;color:var(--warn)}
#echo-estimator-app .low{background:#FBE9E7;color:var(--bad)}
#echo-estimator-app .matchline{margin-top:8px;font-size:11px;color:var(--muted)}
#echo-estimator-app .pricing-method{display:inline-block;font-size:10px;font-weight:800;padding:3px 6px;border-radius:999px;background:#EEF2F6;color:var(--navy);margin-left:5px}
#echo-estimator-app .pricing-method.inferred{background:#FFF3DB;color:var(--warn)}
#echo-estimator-app .pricing-method.known{background:#E8F5EE;color:var(--good)}
#echo-estimator-app .job-row{padding:13px 15px;border-bottom:1px solid var(--line)}
#echo-estimator-app .job-row:last-child{border-bottom:0}
#echo-estimator-app .job-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#echo-estimator-app .job-left{display:flex;gap:10px;min-width:0}
#echo-estimator-app .job-photo{width:64px;height:64px;border-radius:9px;object-fit:cover;border:1px solid var(--line);flex:0 0 auto;cursor:pointer;background:#F3F5F7}
#echo-estimator-app .job-title{font-weight:800;color:var(--navy);font-size:14px}
#echo-estimator-app .job-meta{font-size:12px;color:var(--muted);margin-top:2px;word-break:break-word}
#echo-estimator-app .opening-note{font-size:12px;color:#48535E;margin-top:7px;background:#F7F9FB;border-radius:8px;padding:7px 8px}
#echo-estimator-app .job-money{text-align:right;white-space:nowrap}
#echo-estimator-app .job-money .price{font-size:16px;font-weight:850;color:var(--navy)}
#echo-estimator-app .job-money .cost{font-size:10px;color:var(--muted)}
#echo-estimator-app .row-actions{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}
#echo-estimator-app .mini{border:1px solid var(--line);background:#fff;border-radius:7px;padding:5px 8px;font-size:11px;font-weight:700;color:var(--navy)}
#echo-estimator-app .empty{padding:24px;text-align:center;color:var(--muted);font-size:13px}
#echo-estimator-app .empty.compact{padding:12px}
#echo-estimator-app .summary-highlight{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:11px;border:1px solid var(--line);background:#F7F9FB;border-radius:11px}
#echo-estimator-app .summary-highlight-right{text-align:right}
#echo-estimator-app .summary-label{font-size:10px;text-transform:uppercase;letter-spacing:.45px;color:var(--muted);font-weight:800;margin-bottom:4px}
#echo-estimator-app .range-value{font-size:17px;color:var(--navy);font-weight:850}
#echo-estimator-app .confidence-explanation{margin-top:8px}
#echo-estimator-app .summary-costs{margin-top:15px}
#echo-estimator-app .summary-list{display:grid;gap:8px}
#echo-estimator-app .sumrow{display:flex;justify-content:space-between;gap:12px;font-size:12px}
#echo-estimator-app .sumrow strong{font-size:13px}
#echo-estimator-app .sumrow.total{border-top:1px solid var(--line);padding-top:10px;margin-top:3px;font-size:14px}
#echo-estimator-app .sumrow.total strong{font-size:20px;color:var(--navy)}
#echo-estimator-app .cashbox{background:#F7F9FB;border:1px solid var(--line);border-radius:11px;padding:12px;margin-top:12px}
#echo-estimator-app .cashbox h4{font-size:12px;color:var(--navy);margin:0 0 8px}
#echo-estimator-app .status{padding:8px 10px;border-radius:9px;font-size:11px;font-weight:750;margin-top:8px}
#echo-estimator-app .status.good{background:#E8F5EE;color:var(--good)}
#echo-estimator-app .status.warn{background:#FFF3DB;color:var(--warn)}
#echo-estimator-app .status.bad{background:#FBE9E7;color:var(--bad)}
#echo-estimator-app details{border-top:1px solid var(--line)}
#echo-estimator-app details summary{padding:14px 16px;font-weight:800;color:var(--navy);cursor:pointer;list-style:none}
#echo-estimator-app details summary::-webkit-details-marker{display:none}
#echo-estimator-app details[open] summary{border-bottom:1px solid var(--line)}
#echo-estimator-app .settings{padding:15px 16px}
#echo-estimator-app .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#echo-estimator-app .settings-note{margin-top:10px}
#echo-estimator-app .pricing-note{margin-bottom:10px}
#echo-estimator-app .ref-table{width:100%;border-collapse:collapse;font-size:11px}
#echo-estimator-app .ref-table th,#echo-estimator-app .ref-table td{padding:7px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
#echo-estimator-app .ref-table th{font-size:10px;text-transform:uppercase;color:var(--muted)}
#echo-estimator-app .table-scroll{overflow:auto;margin-top:12px}
#echo-estimator-app .right{text-align:right!important}
#echo-estimator-app .library-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px}
#echo-estimator-app .library-form input,#echo-estimator-app .library-form select{padding:7px 8px;min-height:36px;font-size:12px}
#echo-estimator-app .muted{color:var(--muted)}
#echo-estimator-app .danger-text{color:var(--bad)}
#echo-estimator-app .field-error input,#echo-estimator-app .field-error select,#echo-estimator-app .field-error textarea{border-color:var(--bad)!important;outline:2px solid rgba(163,58,50,.10);background:#FFF7F6}
#echo-estimator-app .validation-box{display:none;margin:0 0 14px;padding:10px 12px;border:1px solid #E4AAA5;background:#FFF2F1;color:#7F2D27;border-radius:10px;font-size:12px;font-weight:700}
#echo-estimator-app .validation-box.show{display:block}
#echo-estimator-app .photo-field{align-self:start}
#echo-estimator-app .photo-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#echo-estimator-app .photo-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0;pointer-events:none}
#echo-estimator-app .photo-button{display:inline-flex!important;margin:0!important;width:auto!important;align-items:center}
#echo-estimator-app .draft-photo-wrap{margin-top:8px;display:flex;gap:9px;align-items:center}
#echo-estimator-app .photo-thumb{width:78px;height:78px;object-fit:cover;border-radius:9px;border:1px solid var(--line);cursor:pointer;background:#F3F5F7}
#echo-estimator-app .photo-modal{position:fixed;inset:0;background:rgba(0,0,0,.86);z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px}
#echo-estimator-app .photo-modal img{max-width:min(1100px,95vw);max-height:90vh;border-radius:10px;box-shadow:0 10px 50px rgba(0,0,0,.35)}
#echo-estimator-app .photo-modal-close{position:fixed;right:18px;top:18px;width:42px;height:42px;border-radius:50%;border:0;background:#fff;color:#111;font-size:27px;line-height:1}
#echo-estimator-app .job-note-input{width:100%}
#echo-estimator-app .note-actions{margin-top:9px}
#echo-estimator-app .job-notes-list{margin-top:14px;border-top:1px solid var(--line)}
#echo-estimator-app .job-note-item{padding:12px 2px;border-bottom:1px solid var(--line)}
#echo-estimator-app .job-note-text{white-space:pre-wrap;font-size:13px;color:var(--text)}
#echo-estimator-app .job-note-meta{font-size:10px;color:var(--muted);margin-top:5px}
#echo-estimator-app .sticky{position:fixed;left:0;right:0;bottom:0;z-index:25;background:rgba(23,50,77,.97);color:#fff;padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px rgba(0,0,0,.18)}
#echo-estimator-app .sticky-inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}
#echo-estimator-app .sticky .small{font-size:10px;opacity:.72}
#echo-estimator-app .sticky .big{font-size:20px;font-weight:850}
#echo-estimator-app .sticky .dep{font-size:12px;text-align:right}
#echo-estimator-app .pill{font-size:10px;padding:4px 7px;border:1px solid rgba(255,255,255,.25);border-radius:999px;display:inline-block;margin-left:6px}
#echo-estimator-app .hidden{display:none!important}
#echo-estimator-app .hr{height:1px;background:var(--line);margin:13px 0}

@media (max-width:860px){
  #echo-estimator-app .grid{grid-template-columns:1fr}
  #echo-estimator-app .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  #echo-estimator-app .span4{grid-column:1/-1}
  #echo-estimator-app .estimate-preview{grid-template-columns:repeat(2,minmax(0,1fr))}
  #echo-estimator-app .library-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  #echo-estimator-app .saved-job-picker{min-width:100%;flex-wrap:wrap}
  #echo-estimator-app .saved-job-picker select{min-width:200px}
}
@media (max-width:560px){
  #echo-estimator-app main{padding-left:9px;padding-right:9px}
  #echo-estimator-app .topbar{padding-left:12px;padding-right:12px}
  #echo-estimator-app .topbar-inner{align-items:flex-start}
  #echo-estimator-app .topbar-badges{max-width:48%}
  #echo-estimator-app .badge{display:none}
  #echo-estimator-app .fields{grid-template-columns:1fr 1fr;gap:9px}
  #echo-estimator-app .span2,#echo-estimator-app .span4{grid-column:1/-1}
  #echo-estimator-app .card-b{padding:13px}
  #echo-estimator-app .field label{font-size:10px}
  #echo-estimator-app input,#echo-estimator-app select,#echo-estimator-app textarea{padding:9px 8px}
  #echo-estimator-app .sticky .big{font-size:18px}
  #echo-estimator-app .job-head{flex-direction:column}
  #echo-estimator-app .job-money{text-align:left}
  #echo-estimator-app .summary-highlight{flex-direction:column}
  #echo-estimator-app .summary-highlight-right{text-align:left}
  #echo-estimator-app .job-actions{align-items:stretch}
  #echo-estimator-app .job-actions>.btn{flex:1}
  #echo-estimator-app .saved-job-picker{display:grid;grid-template-columns:1fr 1fr}
  #echo-estimator-app .saved-job-picker select{grid-column:1/-1;width:100%}
}
#echo-estimator-app .customer-estimate-card textarea{min-height:104px}
#echo-estimator-app .customer-pdf-safety{margin-top:9px;padding:9px 10px;background:#F7F9FB;border:1px solid var(--line);border-radius:9px}
#echo-estimator-app .summary-actions{display:grid;grid-template-columns:1fr;gap:8px}
#echo-estimator-app .summary-actions .btn{width:100%}
#echo-estimator-app .pdf-note{margin-top:8px}
