.counter-shell{max-width:1200px;margin:auto;color:#183943}.counter-top,.counter-section-title,.counter-resume{display:flex;align-items:center;justify-content:space-between;gap:16px}.counter-top b{font-size:24px}.counter-top p{margin:6px 0 20px;color:#607580}.counter-resume{justify-content:flex-start;margin-bottom:20px}.counter-resume label{min-width:260px}.counter-form>section{background:#fff;border:1px solid #dae6eb;border-radius:16px;padding:24px;margin-bottom:20px;box-shadow:0 3px 14px #173a4810}.counter-form h2{font-size:20px;margin:0 0 18px}.counter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.counter-addresses{grid-template-columns:1fr 1fr;margin-top:16px}.counter-form label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;min-width:0}.counter-form input,.counter-form select,.counter-form textarea{width:100%;box-sizing:border-box;min-height:44px;font:inherit;font-weight:400}.counter-form textarea{resize:vertical}.counter-form button{min-height:44px}.counter-line{display:grid;grid-template-columns:minmax(160px,2fr) minmax(90px,1fr) minmax(170px,1fr) 95px 90px;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #deeaee}.counter-quantity{display:flex;gap:5px}.counter-quantity input{min-width:50px;text-align:center}.counter-quantity button{min-width:40px;padding:8px}.counter-line small{font-weight:400}.counter-totals{padding:18px;text-align:right;background:#e9f7f3;border:1px solid #c0e2d7;border-radius:10px;font-size:18px;font-weight:700;margin-top:16px}.counter-footer{position:sticky;bottom:0;padding:16px;background:#f6fafcee;backdrop-filter:blur(12px);border:1px solid #dae6eb;border-radius:12px;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.counter-picker,.counter-ack{border:1px solid #cadae1;border-radius:16px;padding:24px;max-width:600px;width:calc(100vw - 40px);box-sizing:border-box}.counter-picker [data-options]{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow:auto;margin:16px 0}.counter-picker [data-options] button{text-align:left;min-height:44px}.counter-ack button{float:right;min-height:44px;min-width:88px}.counter-form [readonly]{background:#f0f5f7}.counter-form [data-state]{font-weight:600}.counter-form [data-pricing]{color:#9c4b15}.counter-form button:disabled{opacity:.6;cursor:default}@media(max-width:760px){.counter-top,.counter-section-title{align-items:flex-start;flex-direction:column}.counter-form>section{padding:16px}.counter-grid,.counter-addresses{grid-template-columns:1fr}.counter-line{grid-template-columns:1fr 1fr;gap:12px}.counter-line-description{grid-column:1/-1}.counter-line [data-line-total]{text-align:left}.counter-line [data-remove]{justify-self:end}.counter-section-title{margin-bottom:16px}.counter-footer{padding:10px;justify-content:stretch}.counter-footer button{flex:1}.counter-resume label{min-width:0;flex:1}.counter-resume{align-items:flex-end}.counter-totals{font-size:16px;text-align:left}}

.counter-address-suggestions{display:flex;flex-direction:column;gap:5px;font-weight:400}.counter-address-suggestions button{text-align:left;white-space:normal;min-height:44px}

.counter-time{min-width:0;margin:0;padding:14px;border:1px solid #cadae1;border-radius:12px}.counter-time legend{font-weight:700;padding:0 6px}.counter-time-rollers{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px}.counter-time-rollers select{height:132px;padding:0;border:1px solid #abc6d1;border-radius:10px;background:#f2f8fa;color:#173943;overflow-y:auto;font-size:18px;touch-action:pan-y}.counter-time-rollers option{padding:10px 4px;text-align:center;min-height:44px}.counter-time-rollers select:focus-visible{outline:3px solid #3096b8;outline-offset:2px}.counter-time-rollers option:checked{background:#164452;color:white;font-weight:700}.counter-time-rollers label{font-size:12px}.counter-time input[type=date]{font-size:16px}
.counter-dashboard{display:flex;flex-direction:column;gap:22px;margin:12px 0 28px}
.counter-dash-row{background:#fff;border:1px solid #dae6eb;border-radius:20px;padding:20px;box-shadow:0 3px 14px #173a4810}
.counter-dash-row.is-preferred{outline:3px solid #3096b8}
.counter-dash-row h2{margin:0 0 16px;font-size:20px}
.counter-dash-icons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.counter-dash-icon{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-height:148px;border:1px solid #b7d0d9;border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#eef6f9 100%);color:#163c49;font:inherit;font-size:16px;font-weight:700;cursor:pointer;padding:12px 12px 14px;box-shadow:0 8px 20px #173a4814;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.counter-dash-icon:hover{transform:translateY(-2px);box-shadow:0 12px 26px #173a4820;border-color:#7fb4c6}
.counter-dash-icon:focus-visible{outline:3px solid #138bc5;outline-offset:3px}
.counter-dash-art{display:block;width:100%;height:88px}
.counter-dash-icon span{display:block;text-align:center;line-height:1.2}
.counter-dash-icon[data-family=gutter]{background:linear-gradient(180deg,#fff,#e7f4f8)}
.counter-dash-icon[data-family=soffit]{background:linear-gradient(180deg,#fff,#eaf6ea)}
.counter-dash-icon[data-family=fascia]{background:linear-gradient(180deg,#fff,#f7efe3)}
.counter-dash-icon[data-family=complete]{background:linear-gradient(180deg,#fff,#eceff8)}
.counter-sale-summary{font-weight:700;margin:0 0 12px}
.counter-form[hidden],.counter-dashboard[hidden]{display:none!important}
@media(max-width:760px){.counter-dash-icons{grid-template-columns:1fr 1fr}.counter-dash-icon{min-height:128px;font-size:15px}.counter-dash-art{height:72px}}
.counter-portal{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) minmax(200px,1fr) auto;gap:14px;align-items:end;background:#0b3d4f;color:#fff;border-radius:16px;padding:20px 22px;margin:0 0 22px}
.counter-portal b{font-size:18px;display:block}
.counter-portal p{margin:6px 0 0;color:#c5e6ef;font-weight:400}
.counter-portal label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.counter-portal select,.counter-portal input{min-height:44px;font:inherit;border-radius:8px;border:0;padding:0 10px}
.counter-portal button{min-height:44px;background:#36a3c8;color:#fff;border:0;border-radius:8px;font-weight:700;padding:0 16px;cursor:pointer}
.counter-portal [data-portal-status]{grid-column:1/-1;margin:0;color:#9ad4e8}
@media(max-width:900px){.counter-portal{grid-template-columns:1fr}}

/* Dev 6 mobile fit: allow intrinsic form widths to shrink inside the workspace. */
@media screen and (max-width:760px){
 .counter-shell,.counter-shell *{box-sizing:border-box}
 .counter-shell,.counter-shell section,.counter-shell form,.counter-shell label,.counter-shell fieldset,.counter-shell .counter-grid>*,.counter-shell .counter-portal>*{min-width:0;max-width:100%}
 .counter-shell{width:100%;overflow-wrap:anywhere}
 .counter-shell input,.counter-shell select,.counter-shell textarea{min-width:0;max-width:100%;width:100%;font-size:16px}
 .counter-portal{grid-template-columns:minmax(0,1fr);padding:14px;gap:12px}
 .counter-portal button{width:100%;white-space:normal;padding:10px 12px}
 .counter-resume{flex-direction:column;align-items:stretch;gap:8px}
 .counter-resume label{width:100%}
 .counter-resume select{min-height:44px}
 .counter-grid,.counter-addresses{grid-template-columns:minmax(0,1fr)}
 .counter-line{grid-template-columns:repeat(2,minmax(0,1fr))}
 .counter-quantity{min-width:0}
 .counter-quantity input{width:0;flex:1;min-width:0}
 .counter-quantity button{flex-shrink:0}
 .counter-shell button{white-space:normal;overflow-wrap:anywhere;min-height:44px}
 .counter-footer{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}
 .counter-time-rollers{grid-template-columns:repeat(3,minmax(0,1fr))}
}
