/* The estimator's styles (Build 284): the dashboard's Estimate tab and the Koroseal estimator share this file and
   estimate/estimator.js. The tokens are the dashboard's, so the tab and the standalone page look the same. */
  :root{--z-bg:#f4f2ee;--z-surf:#fff;--z-surf2:#f7f5f1;--z-fg:#1c1c1c;--z-muted:#5f5f5f;--z-faint:#8a8580;--z-line:#e5e1db;--z-edge:#d3cdc4;--z-rose:#b06a62;--z-rose-soft:#f6ebe9;--z-ok:#23804c;--z-ok-soft:#e6f1e9;--z-warn:#b7862e;--z-bad:#a03c36;--z-bad-soft:#fbeeed;--z-shadow:0 1px 2px rgba(0,0,0,.05),0 6px 18px rgba(0,0,0,.06);--z-r:16px;--z-ease:cubic-bezier(.2,.8,.2,1);
    --z-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f5f5f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
  /* Build 275: the Estimate tab, rebuilt for a rep's first time. Big fields, big buttons, the price as you type. Scoped to the tab. */
  #tab-estimate{--ez-output-fade:120ms;padding:0 0 24px;font-family:'Jost',sans-serif;font-weight:400;color:var(--z-fg);font-size:15px;line-height:1.45}
  #tab-estimate *{box-sizing:border-box}
  #tab-estimate button{font-family:'Jost',sans-serif;touch-action:manipulation;-webkit-user-select:none;user-select:none}
  #tab-estimate input,#tab-estimate textarea,#tab-estimate select{font-family:'Jost',sans-serif;font-weight:400;color:var(--z-fg)}
  #tab-estimate :focus-visible{outline:3px solid rgba(176,106,98,.5);outline-offset:2px}
  #tab-estimate input:not([type=range]):focus-visible,#tab-estimate textarea:focus-visible{outline:none}
  .ez{max-width:1040px;margin-inline:auto}
  /* In the dashboard, align the estimator with the full width of the other tabs. */
  .tabs~#tab-estimate>.ez{max-width:none}
  .ez-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
  .ez-h{font-family:'Jost',sans-serif;font-size:28px;font-weight:600;letter-spacing:-.02em;margin:0;line-height:1.15}
  .ez-sub{font-size:15.5px;color:var(--z-muted);margin:4px 0 0}
  .ez-muted{font-size:13.5px;color:var(--z-muted);margin:0}
  .ez-muted b{font-weight:600;color:var(--z-fg)}
  .ez-card{background:var(--z-surf);border-radius:var(--z-r);box-shadow:var(--z-shadow);padding:18px 20px 20px;margin:0 0 14px}
  .ez-card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
  .ez-card-h h3{font-family:'Jost',sans-serif;font-size:19px;font-weight:600;letter-spacing:-.01em;margin:0}
  .ez-banner{display:flex;align-items:center;gap:12px;background:var(--z-rose-soft);color:var(--z-fg);border-radius:14px;padding:12px 16px;margin:0 0 14px;font-size:14.5px}
  .ez-banner[hidden]{display:none}
  .ez-banner b{font-weight:600}
  .ez-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
  /* buttons, as the studio draws them */
  .ez-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:14px;background:var(--z-fg);color:#fff;border:1.5px solid var(--z-fg);font-size:15.5px;font-weight:600;letter-spacing:0;text-transform:none;cursor:pointer;transition:transform .14s var(--z-ease),filter .18s,border-color .18s}
  .ez-action-icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .ez-btn.ghost{background:var(--z-surf);color:var(--z-fg);border-color:var(--z-edge)}
  .ez-btn.big{min-height:54px;padding:0 24px;font-size:16px;flex:1 1 180px}
  .ez-btn.small{min-height:40px;padding:0 14px;font-size:14px;border-radius:12px}
  .ez-btn:active{transform:scale(.97)}
  .ez-btn[disabled]{opacity:.45;cursor:default}
  @media(hover:hover){.ez-btn:hover{filter:brightness(1.08)}.ez-btn.ghost:hover{filter:none;border-color:var(--z-fg)}}
  .ez-x{width:40px;height:40px;border-radius:50%;background:var(--z-surf2);border:1px solid var(--z-line);color:var(--z-muted);font-size:20px;line-height:1;display:grid;place-items:center;cursor:pointer;flex:none;transition:transform .14s var(--z-ease)}
  .ez-x:active{transform:scale(.9)}
  .ez-seg{display:inline-flex;background:var(--z-surf2);border:1.5px solid var(--z-edge);border-radius:14px;padding:4px;gap:4px}
  .ez-seg button{min-height:40px;padding:0 18px;border-radius:10px;border:0;background:transparent;font-size:15px;font-weight:600;color:var(--z-muted);cursor:pointer;transition:transform .14s var(--z-ease),background-color .18s,color .18s}
  .ez-seg button.on{background:var(--z-fg);color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15)}
  .ez-seg button:active{transform:scale(.96)}
  .ez-seg.lg button{min-height:46px;padding:0 24px;font-size:16px}
  /* walls */
  .ez-units{flex-shrink:0}
  .ez-units button{padding-inline:14px;white-space:nowrap}
  .ez-walls{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 14px}
  .ez-wall{background:var(--z-surf2);border:1.5px solid var(--z-line);border-radius:14px;padding:14px 16px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top top" "dims mini" "res mini";gap:10px 18px;align-items:center;min-width:0}
  .ez-wall.bad{border-color:var(--z-bad)}
  .ez-wall-top{grid-area:top;display:flex;align-items:center;gap:10px;min-width:0}
  .ez-name{flex:1 1 0;width:0;min-width:0;font-size:18px;font-weight:600;border:0;border-bottom:2px solid transparent;background:transparent;padding:4px 0;outline:none;border-radius:0}
  .ez-name:focus{border-bottom-color:var(--z-rose)}
  .ez-name::placeholder{color:#a39e97;font-weight:600}
  .ez-dims{grid-area:dims;display:flex;gap:18px;flex-wrap:wrap;min-width:0}
  .ez-dim{min-width:0}
  .ez-lbl{display:block;font-size:13px;font-weight:600;color:var(--z-muted);margin:0 0 4px}
  .ez-ftin{display:flex;align-items:baseline;gap:6px}
  .ez-ftin[hidden]{display:none}
  .ez-ftin input{width:5ch;min-width:5ch;font-size:30px;font-weight:600;letter-spacing:-.02em;border:0;border-bottom:2px solid var(--z-edge);border-radius:0;background:transparent;padding:0 0 2px;outline:none;font-variant-numeric:tabular-nums;-moz-appearance:textfield;text-align:center}
  .ez-ftin[data-units=feet-inches] input{min-width:0}
  .ez-ftin input::-webkit-outer-spin-button,.ez-ftin input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
  .ez-ftin input:focus{border-bottom-color:var(--z-rose)}
  .ez-ftin input::placeholder{color:#c7c1b8}
  .ez-ftin span{font-size:14px;font-weight:600;color:var(--z-muted);margin-right:6px}
  .ez-mini{grid-area:mini;width:150px;height:auto;max-height:96px;display:block}
  .ez-mini .w{fill:#fff;stroke:#1c1c1c;stroke-width:1.2}.ez-mini .p{fill:none;stroke:#1c1c1c;stroke-width:1}.ez-mini .p.s{fill:#f0e9e4}.ez-mini .p.n{fill:#eee5e0}.ez-mini text{font-family:'Jost',sans-serif;font-size:10px;font-weight:600;fill:#1c1c1c;text-anchor:middle}
  .ez-mini.off{opacity:.25}
  .ez-wall-res{grid-area:res;font-size:14px;color:var(--z-muted);min-height:20px}
  .ez-wall-res b{color:var(--z-fg);font-weight:600}
  .ez-wall-res.warn{color:var(--z-bad)}
  /* price */
  .ez-empty{font-size:15.5px;color:var(--z-muted);padding:10px 0 4px}
  .ez-empty[hidden],#ez-priced[hidden]{display:none}
  #tab-estimate .ep-big{font-family:'Jost',sans-serif;font-size:52px;font-weight:600;letter-spacing:-.03em;line-height:1;color:var(--z-fg);font-variant-numeric:tabular-nums;margin-top:4px}
  #tab-estimate .ep-unit{font-size:14.5px;letter-spacing:0;text-transform:none;color:var(--z-muted);margin-top:6px}
  #tab-estimate .ep-altline{font-size:14.5px;color:var(--z-fg);margin-top:8px}
  #tab-estimate .ep-altline:empty{display:none}
  #tab-estimate .ep-below{color:var(--z-bad)}
  .ez-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 4px}
  .ez-fact{background:var(--z-surf2);border-radius:12px;padding:10px 12px}
  .ez-fact b{display:block;font-size:22px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1}
  .ez-fact span{display:block;font-size:12.5px;color:var(--z-muted);margin-top:3px}
  .ez-table{width:100%;border-collapse:collapse;margin:14px 0 0}
  .ez-table th .sm{display:none}
  .ez-table th{text-align:left;font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--z-muted);padding:8px 10px 8px 0;border-bottom:1px solid var(--z-line)}
  .ez-table td{font-size:14.5px;padding:10px 10px 10px 0;border-bottom:1px solid #f0ece7;white-space:nowrap;font-variant-numeric:tabular-nums}
  .ez-table td.name{white-space:normal;font-weight:600}
  .ez-table th.r,.ez-table td.r{text-align:right;padding-right:0}
  .ez-table tr.total td{border-top:1.5px solid var(--z-fg);border-bottom:0;font-weight:600}
  .ez-table .pcl{display:none}
  #tab-estimate .ez-qty{width:5.5em;min-height:40px;padding:8px 10px;border:1px solid var(--z-edge);border-radius:8px;background:var(--z-surf);font-size:16px;font-variant-numeric:tabular-nums;text-align:center}
  #tab-estimate .ez-qty:focus{border-color:var(--z-rose);box-shadow:0 0 0 2px rgba(176,106,98,.2)}
  /* Fade the existing output without removing any of the space it occupies. Controls stay usable. */
  #tab-estimate :is([data-calculated],#ez-facts,#est-plan,#ez-walls-sum,.ez-wall-res,#ep-quote,#ep-unit,#ep-alt,#ep-cost,#ep-list,#ep-markup,#ep-tier,#ep-note,#ez-adjust-sum,#ez-bar-price,#ez-bar-sub){transition:opacity var(--ez-output-fade) ease,visibility 0s}
  #tab-estimate.ez-output-pending :is([data-calculated],#ez-facts,#est-plan,#ez-walls-sum,.ez-wall-res,#ep-quote,#ep-unit,#ep-alt,#ep-cost,#ep-list,#ep-markup,#ep-tier,#ep-note,#ez-adjust-sum,#ez-bar-price,#ez-bar-sub){opacity:0;visibility:hidden;transition:opacity var(--ez-output-fade) ease,visibility 0s linear var(--ez-output-fade)}
  #ez-priced.showpcl .ez-table .pcl{display:table-cell}
  .ez-adjust{margin-top:14px;border:1.5px solid var(--z-line);border-radius:14px;background:var(--z-surf)}
  .ez-adjust summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;font-size:15.5px;font-weight:600;border-radius:14px}
  .ez-adjust summary::-webkit-details-marker{display:none}
  .ez-adjust summary>span:first-child{flex:none}
  .ez-adjust summary::after{content:'\25BE';color:var(--z-muted);font-size:14px;flex:none}
  .ez-adjust[open] summary::after{content:'\25B4'}
  .ez-adjust summary .ez-muted{font-weight:400;flex:1;min-width:0;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ez-adjust-in{padding:4px 16px 16px;border-top:1px solid var(--z-line)}
  #tab-estimate .ep-row{display:flex;justify-content:space-between;font-size:14.5px;padding:9px 0;border-bottom:1px solid #f0ece7}
  #tab-estimate .ep-row strong{font-weight:600}
  /* the price and the margin slider side by side; the slider's fill and the list mark follow --pos and --list (0 to 1) */
  .ez-quote{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 32px;align-items:center}
  .ez-quote>div:first-child{min-height:134px;display:flex;flex-direction:column;justify-content:center}
  .ez-margin{--pos:.5;--list:.5;background:var(--z-surf2);border:1.5px solid var(--z-line);border-radius:14px;padding:14px 16px 10px}
  .ez-margin-h{display:flex;align-items:center;gap:10px;min-height:40px}
  .ez-margin-h .ez-lbl{flex:1;margin:0}
  .ez-margin-h .ez-btn.small{min-height:34px;padding:0 12px;font-size:13.5px;border-radius:10px}
  #ep-margin-val{font-size:26px;font-weight:600;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums;min-width:2.6em;text-align:right;color:var(--z-fg)}
  #ep-margin-val.ep-below{color:var(--z-bad)}
  .ez-slider{position:relative}
  .ez-tick{position:absolute;top:50%;left:calc(15px + (100% - 30px) * var(--list));width:3px;height:20px;margin:-10px 0 0 -1.5px;border-radius:2px;background:var(--z-rose);pointer-events:none}
  #tab-estimate [hidden]{display:none !important}
  /* Keep the reset button's slot, especially its separate row on phones, at the list margin. */
  #tab-estimate #ep-reset[hidden]{display:inline-flex !important;visibility:hidden;pointer-events:none}
  #tab-estimate input[type=range]{position:relative;-webkit-appearance:none;appearance:none;display:block;width:100%;height:48px;background:transparent;margin:0;padding:0;border:0;cursor:pointer}
  #tab-estimate input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:linear-gradient(to right,var(--z-fg) 0 calc(15px + (100% - 30px) * var(--pos)),var(--z-edge) 0)}
  #tab-estimate input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;border-radius:50%;background:var(--z-fg);border:3px solid var(--z-surf);box-shadow:0 2px 8px rgba(0,0,0,.3);margin-top:-11px;transition:transform .14s var(--z-ease)}
  #tab-estimate input[type=range]:active::-webkit-slider-thumb{transform:scale(1.1)}
  #tab-estimate input[type=range]::-moz-range-track{height:8px;border-radius:4px;background:var(--z-edge)}
  #tab-estimate input[type=range]::-moz-range-progress{height:8px;border-radius:4px;background:var(--z-fg)}
  #tab-estimate input[type=range]::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:var(--z-fg);border:3px solid var(--z-surf);box-shadow:0 2px 8px rgba(0,0,0,.3)}
  #tab-estimate .ep-scale{position:relative;height:20px;font-size:13px;color:var(--z-muted);font-variant-numeric:tabular-nums}
  #tab-estimate .ep-scale span{position:absolute;top:0;white-space:nowrap}
  #ep-lo{left:0}#ep-hi{right:0}
  #ep-mid{left:calc(15px + (100% - 30px) * var(--list));transform:translateX(-50%);color:var(--z-fg);font-weight:600}
  #tab-estimate .ep-custom{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:14.5px;color:var(--z-muted)}
  .ez-in{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--z-edge);border-radius:12px;padding:0 12px;background:var(--z-surf)}
  .ez-in:focus-within{border-color:var(--z-rose)}
  .ez-in span{font-size:16px;color:var(--z-muted)}
  .ez-in input{width:120px;font-size:18px;font-weight:600;border:0;background:transparent;padding:10px 0;outline:none;margin:0;-moz-appearance:textfield}
  .ez-in input::-webkit-outer-spin-button,.ez-in input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
  /* for the estimate: who it is for, what goes on the PDF, the buttons */
  .ez-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .ez-field{display:block;background:var(--z-surf);border:1.5px solid var(--z-edge);border-radius:14px;padding:9px 14px}
  .ez-field:focus-within{border-color:var(--z-rose)}
  .ez-field span{display:block;font-size:12.5px;color:var(--z-muted);font-weight:600}
  .ez-field input{display:block;width:100%;border:0;background:transparent;padding:3px 0 1px;font-size:16px;outline:none;margin:0}
  .ez-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}
  /* panel guides, folded */
  .ez-plan-wrap{padding:0}
  .ez-plan-wrap>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;cursor:pointer;font-size:19px;font-weight:600;letter-spacing:-.01em;border-radius:var(--z-r)}
  .ez-plan-wrap>summary::-webkit-details-marker{display:none}
  .ez-plan-wrap>summary::after{content:'Show';font-size:14px;font-weight:600;color:var(--z-rose);margin-left:auto;flex:none}
  .ez-plan-wrap[open]>summary::after{content:'Hide'}
  .ez-plan-wrap>summary>span:first-child{flex:none}
  .ez-plan-wrap>summary .ez-muted{font-weight:400;font-size:13.5px;flex:1;min-width:0}
  .ez-plan-wrap .est-plan{padding:0 20px 20px;margin:0}
  #tab-estimate .est-plan{display:grid;gap:14px}
  #tab-estimate .est-wall{border:1.5px solid var(--z-line);border-radius:14px;padding:16px 18px 16px;background:var(--z-surf2)}
  #tab-estimate .est-wall-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--z-line);padding-bottom:8px;margin-bottom:14px}
  #tab-estimate .est-wall-head h3{font-family:'Jost',sans-serif;font-weight:600;font-size:18px;margin:0}
  #tab-estimate .est-wall-head span{font-size:13.5px;color:var(--z-muted)}
  #tab-estimate .est-guide{display:block;width:100%;max-width:820px;height:auto}
  #tab-estimate .est-guide .g-wall{fill:#fff;stroke:#1c1c1c;stroke-width:1.2}#tab-estimate .est-guide .g-panel{fill:#fff;stroke:#1c1c1c;stroke-width:.9}#tab-estimate .est-guide .g-panel.narrow{fill:#eee5e0}#tab-estimate .est-guide .g-panel.short{fill:#f0e9e4}
  #tab-estimate .est-guide .g-num{font-family:'Jost',sans-serif;font-size:20px;font-weight:600;fill:#1c1c1c;text-anchor:middle}#tab-estimate .est-guide .g-size{font-family:'Jost',sans-serif;font-size:10.5px;letter-spacing:.06em;fill:#6d6d6d;text-anchor:middle}#tab-estimate .est-guide .g-dim{font-family:'Jost',sans-serif;font-size:11px;font-weight:600;letter-spacing:.06em;fill:#8a8a8a;text-anchor:middle}#tab-estimate .est-guide .g-dimline{stroke:#b3b3b3;stroke-width:.8}
  #tab-estimate .est-cap{font-size:13.5px;color:var(--z-muted);line-height:1.6;margin:12px 0 0;max-width:640px}
  #tab-estimate .est-sched{max-width:440px;margin-top:12px;border-collapse:collapse;width:100%}
  #tab-estimate .est-sched th{text-align:left;font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--z-muted);padding:6px 10px 6px 0;border-bottom:1px solid var(--z-line)}
  #tab-estimate .est-sched td{font-size:14px;padding:8px 10px 8px 0;border-bottom:1px solid #f0ece7}
  #tab-estimate .est-sched td.num{font-family:'Jost',sans-serif;font-size:15px;font-style:normal;font-weight:600}
  #tab-estimate .est-nest{margin-top:18px;padding-top:14px;border-top:1px solid var(--z-line)}
  #tab-estimate .est-nest .label{font-size:13.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--z-fg)}
  #tab-estimate .nest-stage{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
  #tab-estimate .nest-sheet .n-sheet{fill:#fff;stroke:#1c1c1c;stroke-width:.8;stroke-dasharray:2 2}#tab-estimate .nest-sheet .n-piece{fill:#fff;stroke:#1c1c1c;stroke-width:.7}#tab-estimate .nest-sheet .n-piece.narrow{fill:#eee5e0}#tab-estimate .nest-sheet .n-piece.short{fill:#f0e9e4}#tab-estimate .nest-sheet .n-label{font-family:'Jost',sans-serif;font-size:8px;font-weight:600;fill:#1c1c1c;text-anchor:middle}#tab-estimate .nest-sheet .n-cap{font-family:'Jost',sans-serif;font-size:8px;fill:#8a8a8a;text-anchor:middle}
  /* saved estimates, at the bottom */
  .ez-saved{margin-top:28px}
  .ez-saved-tabs{margin:0 0 16px;max-width:100%;flex-wrap:wrap}
  .ez-saved-tabs button{flex:1;white-space:nowrap}
  .ez-list{display:grid;gap:10px}
  .ez-pages{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:18px}
  .ez-est{display:grid;grid-template-columns:minmax(0,1.5fr) auto auto auto;gap:12px 18px;align-items:center;background:var(--z-surf);border-radius:14px;box-shadow:var(--z-shadow);padding:14px 16px;border:2px solid transparent}
  .ez-est.open{border-color:var(--z-fg)}
  .ez-est .t{min-width:0}
  .ez-est .t b{display:block;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ez-est .t span{display:block;font-size:13px;color:var(--z-muted);margin-top:2px}
  .ez-est .t .ez-creator{margin-top:4px;overflow-wrap:anywhere}
  .ez-est .ez-creator strong{font-weight:500;color:var(--z-fg)}
  .ez-est .p{text-align:right}
  .ez-est .p b{display:block;font-size:20px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
  .ez-est .p span{display:block;font-size:12.5px;color:var(--z-muted)}
  .ez-est select{font-family:'Jost',sans-serif;font-size:14px;font-weight:600;min-height:40px;padding:0 10px;border:1.5px solid var(--z-edge);border-radius:12px;background:var(--z-surf2);color:var(--z-fg);text-transform:capitalize}
  .ez-est .a{display:flex;gap:8px;align-items:center}
  .ez-none{font-size:14.5px;color:var(--z-muted);padding:6px 0}
  /* Shared confirmation for saved estimates on the dashboard and standalone tool. */
  html:has(.ez-delete-dialog[open]){overflow:hidden}
  .ez-delete-dialog{position:fixed;inset:0;margin:auto;width:calc(100vw - 32px);max-width:520px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border:0;border-radius:20px;background:var(--z-surf);color:var(--z-fg);box-shadow:0 16px 60px #0003;font-family:'Jost',sans-serif;font-size:15px;line-height:1.5}
  .ez-delete-dialog[open]{display:flex;flex-direction:column}
  .ez-delete-dialog,.ez-delete-dialog *{box-sizing:border-box}
  .ez-delete-dialog::backdrop{background:#1c1c1c66;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
  .ez-delete-dialog button{font-family:inherit;touch-action:manipulation}
  .ez-delete-dialog :focus-visible{outline:3px solid rgba(176,106,98,.5);outline-offset:2px}
  .ez-delete-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid var(--z-line)}
  .ez-delete-head h2{min-width:0;margin:0;font-family:inherit;font-size:23px;font-weight:600;line-height:1.2;letter-spacing:-.02em}
  .ez-delete-dialog .ez-delete-close{flex:none;width:44px;min-height:44px;padding:0;border-radius:50%}
  .ez-delete-dialog svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .ez-delete-close svg{width:20px;height:20px}
  .ez-delete-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 22px}
  .ez-delete-record{padding:14px 16px;margin-bottom:16px;border:1px solid var(--z-line);border-radius:12px;background:var(--z-surf2);overflow-wrap:anywhere}
  .ez-delete-record strong,.ez-delete-record span{display:block}
  .ez-delete-record strong{font-size:17px;font-weight:600}
  .ez-delete-record span{font-size:14px;color:var(--z-muted)}
  .ez-delete-record span:empty,.ez-delete-error:empty{display:none}
  .ez-delete-body p{margin:0;font-size:15px;line-height:1.5;color:var(--z-muted);overflow-wrap:anywhere}
  .ez-delete-body .ez-delete-error{margin-top:12px;color:var(--z-bad)}
  .ez-delete-actions{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--z-line)}
  .ez-delete-actions .ez-delete-confirm{background:var(--z-bad);border-color:var(--z-bad)}
  .ez-delete-dialog button:disabled{opacity:.5;cursor:wait}
  @media(max-width:600px){
    .ez-delete-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:16px}
    .ez-delete-head{padding:14px 16px;gap:10px}
    .ez-delete-head h2{font-size:20px}
    .ez-delete-body{padding:16px}
    .ez-delete-actions{padding:14px 16px}
    .ez-delete-actions .ez-btn{flex:1;min-width:0;padding:0 12px}
  }
  /* the price stays in reach on a phone */
  .ez-bar{display:none}
  @media(max-width:700px){
    #tab-estimate{padding:0 0 96px}
    .ez,.ez-card{min-width:0}
    .ez-top{flex-direction:column;align-items:stretch}
    .ez-banner{overflow-wrap:anywhere}
    .ez-wall{grid-template-columns:1fr;grid-template-areas:"top" "dims" "mini" "res"}
    .ez-mini{width:auto;height:80px;max-width:100%;justify-self:start}
    .ez-facts{grid-template-columns:1fr 1fr}
    .ez-facts .ez-fact:nth-child(3){grid-column:1/-1}
    .ez-fields{grid-template-columns:1fr}
    .ez-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin-top:14px;padding-bottom:4px}
    .ez-table-scroll .ez-table{min-width:480px;margin-top:0}
    #ez-priced.showpcl .ez-table-scroll .ez-table{min-width:660px}
    .ez-table td.name{min-width:80px;max-width:180px;overflow-wrap:anywhere}
    .ez-table th .lg{display:none}.ez-table th .sm{display:inline}
    .ez-quote{grid-template-columns:minmax(0,1fr)}
    .ez-margin-h{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}
    .ez-margin-h .ez-lbl{grid-column:1;grid-row:1}
    .ez-margin-h .ez-btn.small{grid-column:1/-1;grid-row:2;justify-self:start}
    .ez-margin-h #ep-margin-val{grid-column:2;grid-row:1}
    #tab-estimate .ep-custom{flex-wrap:wrap;gap:8px}
    #tab-estimate .ep-row{gap:8px;flex-wrap:wrap}
    .ez-in{max-width:100%}
    .ez-in input{min-width:0;max-width:100%}
    .ez-pages{flex-wrap:wrap;gap:10px}
    .ez-pages>.ez-muted{flex-basis:100%;order:-1;text-align:center;overflow-wrap:anywhere}
    .ez-pages>.ez-btn{flex:1 1 100px;min-width:0;max-width:180px;padding-left:14px;padding-right:14px}
    .ez-est{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t p" "s a";column-gap:10px}
    .ez-est .t{grid-area:t}.ez-est .p{grid-area:p}.ez-est .s{grid-area:s}.ez-est .a{grid-area:a;justify-content:flex-end}
    .ez-est .t span,.ez-est .p b{overflow-wrap:anywhere}
    .ez-est .s{min-width:0}
    .ez-est select{width:100%;max-width:100%;font-size:16px}
    .ez-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;align-items:center;gap:12px;padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(244,242,238,.86);-webkit-backdrop-filter:saturate(1.4) blur(16px);backdrop-filter:saturate(1.4) blur(16px);box-shadow:0 -1px 0 rgba(28,28,28,.06)}
    .ez-bar[hidden]{display:none}
    .ez-bar .l{flex:1;min-width:0}
    .ez-bar .l b{display:block;font-size:22px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1}
    .ez-bar .l span{display:block;font-size:12.5px;color:var(--z-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .ez-bar .ez-btn{flex:none;min-height:48px;padding:0 20px}
    #tab-estimate .ep-big{font-size:44px;overflow-wrap:anywhere}
  }
  @media(max-width:380px){
    .ez-est{grid-template-areas:"t t" "p p" "s a"}
    .ez-est .p{text-align:left}
  }
  /* a role that may not see the cost price gets list prices only; the cost row and column stay out of sight */
  #ez-priced.costhidden .ez-table th:nth-child(5),#ez-priced.costhidden .ez-table td:nth-child(5),#ez-priced.costhidden .ep-row.cost{display:none}

  /* The status shares the results' grid cell, so it never inserts a loading row above them. */
  #est-result{display:grid;grid-template-columns:minmax(0,1fr)}
  #est-result>.ez-card-h{grid-area:1 / 1}
  #ez-priced,#ez-empty,.ez-calculation-status{grid-area:2 / 1;min-width:0}
  .ez-calculation-status{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px 0 20px;color:var(--z-muted);text-align:center;overflow-anchor:none}
  .ez-output-pending .ez-calculation-status{z-index:1;align-self:start;width:calc(50% - 16px);min-height:134px;padding:8px 12px;animation:ez-status-in var(--ez-output-fade) ease}
  .ez-calculation-status[hidden]{display:none}
  .ez .tool-loading.ez-calculating{position:relative;inset:auto;z-index:auto;flex:none;width:60px;height:60px;background:transparent;transition:none}
  .ez .ez-calculating .studio-motion{width:60px;height:60px}
  .ez-calculation-status p{margin:0;font-size:15px;max-width:32em}
  .ez-calculation-status .ez-btn{min-height:42px}
  .ez-actions .ez-btn:disabled{opacity:.45;cursor:default}
  @keyframes ez-status-in{from{opacity:0}to{opacity:1}}
  @media(max-width:700px){.ez-output-pending .ez-calculation-status{width:100%}}
  @media(prefers-reduced-motion:reduce){
    #tab-estimate{--ez-output-fade:0s}
  }
