#epv{
  --bg:#eef1f4; --panel:#fff; --ink:#18212b; --muted:#5d6b79; --line:#d7dee5; --soft:#f5f7f9;
  --accent:#1f5fae; --accent-soft:#e3edf9; --bezel:#ececec; --st-blue:#1a73e8; --live:#d9f5e3; --live-ink:#1d6b3c;
  --f-display:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif;
  --f-body:"Source Sans 3","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --st-font:"Nunito Sans","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ios:-apple-system,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme:light;
}
#epv,#epv *{box-sizing:border-box}
#epv [hidden]{display:none!important}
#epv{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.45}
#epv button,#epv input,#epv select{font:inherit;color:inherit}
#epv button{cursor:pointer}
#epv :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#epv .num{font-variant-numeric:tabular-nums}
#epv .muted{color:var(--muted)}
#epv .work{width:100%}
#epv .top{position:sticky;top:0;z-index:20;background:var(--panel);border-bottom:1px solid var(--line)}
#epv .top-in{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;padding:10px 16px}
#epv .tabs{display:flex;gap:4px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:3px}
#epv .tabs button{border:0;background:transparent;padding:7px 14px;border-radius:7px;font-weight:600;color:var(--muted)}
#epv .tabs button[aria-selected="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
#epv .file{margin-left:auto;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#epv .btn{border:1px solid var(--line);background:var(--panel);padding:7px 12px;border-radius:8px;font-weight:600}
#epv .btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
#epv main{padding:18px 16px 40px}
#epv .drop{border:2px dashed var(--line);border-radius:14px;padding:28px;text-align:center;background:var(--panel);max-width:760px;margin:30px auto}
#epv .drop.over{border-color:var(--accent);background:var(--accent-soft)}
#epv .drop h2{font-family:var(--f-display);font-weight:600;font-size:26px;margin:0 0 6px}
#epv .drop p{margin:6px auto;max-width:56ch;color:var(--muted)}
#epv .need{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-left:4px solid #9a6200;border-radius:8px;padding:9px 12px;font-size:14.5px}
#epv .need.ok{border-left-color:#1d7a46}
#epv .need.bad{border-left-color:#b3261e}
#epv .need .btn{padding:5px 11px}
#epv .sb-lab{font-size:12px;font-weight:700;color:#6b7075;margin:10px 0 4px}
#epv .sb-row{display:flex;align-items:center;gap:6px;margin:4px 0;font-size:13.5px}
#epv .sb-row>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#epv .sb-in{display:flex;align-items:center;gap:3px;flex:none}
#epv .dp .in{width:78px;padding:4px 6px;font-size:13.5px;min-width:0;border:1px solid var(--line);border-radius:6px;background:#fff}
#epv .dp select.in{width:auto;flex:1}
#epv .dp select.in.sm{flex:none;width:72px}
#epv .pv-state{font-size:12.5px;color:var(--muted);min-height:0}
#epv .pv-state.err{color:#b3261e}
#epv .chip-ok{display:inline-flex;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:#e2f3e8;color:#1d7a46}
#epv .summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
#epv .err{color:#b3261e;font-weight:600}

/* ---------- Office view: the Templates page ---------- */
#epv .st{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 30px 30px;font-family:var(--st-font);color:#1f2a33}
#epv .st h1{font-size:24px;font-weight:700;margin:0 0 6px;font-family:var(--st-font)}
#epv .st .sub{color:#56616b;font-size:14.5px;margin:0 0 18px}
#epv .st-tabs{display:flex;gap:26px;border-bottom:1px solid #dfe3e7;margin-bottom:22px}
#epv .st-tabs button{border:0;background:none;padding:0 0 10px;font-size:15px;color:#56616b;font-family:var(--st-font)}
#epv .st-tabs button[aria-selected="true"]{color:#1f2a33;font-weight:600;box-shadow:inset 0 -2px 0 var(--st-blue)}
#epv .et-wrap{border:1px solid #dfe3e7;border-radius:8px;overflow-x:auto}
#epv table.et{width:100%;border-collapse:collapse;font-size:14.5px;min-width:900px}
#epv table.et th{text-align:left;font-weight:600;padding:14px 12px;border-bottom:1px solid #dfe3e7;border-right:1px solid #dfe3e7;background:#fafbfc;white-space:nowrap}
#epv table.et th:last-child{border-right:0}
#epv table.et td{padding:16px 12px;border-bottom:1px solid #e8ebee;vertical-align:middle}
#epv table.et tr:last-child td{border-bottom:0}
#epv table.et .dash{color:#aab3bb}
#epv table.et .chk{color:var(--st-blue);font-weight:700}
#epv table.et .r{text-align:left;white-space:nowrap}
#epv .st-tools{display:flex;gap:14px;align-items:center;margin-bottom:16px;flex-wrap:wrap}
#epv .st-search{display:flex;align-items:center;gap:8px;border:1px solid #cdd3d9;border-radius:6px;padding:0 10px;height:38px;width:min(320px,100%);background:#fff}
#epv .st-search input{border:0;outline:0;flex:1;min-width:0;font-size:14.5px}
#epv .st-count{font-size:14.5px;color:#1f2a33}
#epv .st-count b{display:inline-block;background:#eef0f2;border-radius:4px;padding:0 6px;font-weight:600;font-size:12.5px;margin-left:4px}
#epv .prow{border:1px solid #dfe3e7;border-radius:8px;margin-bottom:12px;background:#fff}
#epv .prow-h{display:grid;grid-template-columns:minmax(0,1.5fr) 110px minmax(0,1fr) minmax(0,1.2fr) 74px;gap:18px;align-items:center;padding:16px 18px;min-height:76px}
#epv .pname{font-weight:700;font-size:15.5px;display:flex;gap:8px;align-items:center;min-width:0}
#epv .pname span{overflow:hidden;text-overflow:ellipsis}
#epv .info{flex:none;width:15px;height:15px;border-radius:50%;background:#8a949d;color:#fff;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
#epv .clab{font-size:11px;font-weight:700;letter-spacing:.05em;color:#56616b;text-transform:uppercase;margin-bottom:4px}
#epv .estbtn{display:inline-flex;align-items:center;gap:6px;border:1px solid #bfc6cd;border-radius:4px;background:#fff;padding:1px 9px;font-weight:700;font-size:14px;color:#1f2a33}
#epv .estbtn[aria-expanded="true"]{border-color:var(--st-blue);color:var(--st-blue);background:#f2f7fe}
#epv .estbtn .crt{font-size:10px}
#epv .chips{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
#epv .bu{background:#eef0f2;border-radius:4px;padding:1px 7px;font-size:12.5px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#epv .cat{border:1px solid #cdd3d9;border-radius:4px;padding:0 6px;font-size:12px;white-space:nowrap}
#epv .live{justify-self:end;background:var(--live);color:var(--live-ink);border-radius:4px;padding:2px 8px;font-size:13.5px;font-weight:600}
#epv .live.off{background:#eef0f2;color:#56616b}
#epv .prow-b{border-top:1px solid #dfe3e7;margin:0 18px;padding:16px 0 18px}
#epv .ocards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#epv .ocard{border:1px solid #cfd5db;border-radius:8px;display:flex;flex-direction:column;min-height:260px;background:#fff;overflow:hidden}
#epv .oband{height:40px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:#fff;padding:0 10px;text-align:center;line-height:1.1}
#epv .obody{flex:1;padding:16px 18px 12px;text-align:center;max-height:190px;overflow:auto}
#epv .obody h3{font-family:var(--st-font);font-size:19px;font-weight:700;margin:0 0 10px;line-height:1.35}
#epv .obody .osum{font-size:14.5px;color:#2b353e;line-height:1.5}
#epv .ofoot{border-top:1px dashed #cfd5db;padding:12px 18px 14px 30px;display:flex;align-items:flex-end;gap:0}
#epv .ofoot .tc{padding-right:6px}
#epv .ofoot .tp{border-left:1px solid #cfd5db;padding-left:6px}
#epv .ofoot .l{font-size:11.5px;letter-spacing:.04em;color:#56616b;text-transform:uppercase;font-weight:600}
#epv .ofoot .v{font-size:19px;font-weight:700}
#epv .ofoot .view{margin-left:auto;border:1px solid #aab3bb;background:#fff;border-radius:6px;padding:5px 18px;font-size:15px}
#epv .ocard.empty{border-style:dashed;background:#fafbfc}
#epv .ocard.empty .obody{display:flex;align-items:center;justify-content:center;color:#8a949d}
#epv .none{padding:30px;text-align:center;color:#8a949d}

/* ---------- Technician view: Presentation Mode ---------- */
#epv .tv{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}
#epv .side{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;position:sticky;top:76px}
#epv .side h3{font-family:var(--f-body);font-size:15px;font-weight:700;margin:6px 0 0}
#epv .side h3:first-child{margin-top:0}
#epv .side select{width:100%;padding:7px 8px;border:1px solid var(--line);border-radius:8px;background:#fff}
#epv .side .hint{font-size:13px;color:var(--muted);margin:-4px 0 0;line-height:1.35}
#epv .side input[type=search]{width:100%;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14px}
#epv .plist{position:relative;display:flex;flex-direction:column;gap:2px;max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:4px;background:#fff}
#epv .plist button{border:0;background:none;text-align:left;padding:6px 8px;border-radius:6px;display:flex;flex-direction:column;gap:1px;line-height:1.25}
#epv .plist button:hover{background:var(--soft)}
#epv .plist button[aria-selected="true"]{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}
#epv .plist .pn{font-weight:600;font-size:14px;overflow-wrap:anywhere}
#epv .plist .pc{font-size:12.5px;color:var(--muted)}
#epv .side label{display:flex;gap:8px;align-items:center;font-size:14.5px}
#epv .side .rec-list{display:flex;flex-direction:column;gap:6px}
#epv .side .dot{width:10px;height:10px;border-radius:2px;flex:none}
#epv .tv-main{display:flex;justify-content:center;min-width:0}
#epv .ipad{width:min(980px,100%);aspect-ratio:4/3;max-height:calc(100vh - 100px);min-height:560px;background:var(--bezel);border-radius:44px;padding:30px 66px;box-shadow:0 0 0 1px var(--line),0 14px 40px rgba(0,0,0,.10)}
#epv .ipad.portrait{aspect-ratio:3/4;width:min(760px,100%);max-height:none;padding:60px 30px}
#epv .screen{width:100%;height:100%;background:#fafafa;overflow:hidden;display:flex;flex-direction:column;position:relative;font-family:var(--ios);color:#111}
#epv .yp-bar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:56px;border-bottom:1px solid #e3e3e3;background:#fff;flex:none}
#epv .yp-bar .ttl{text-align:center;font-weight:600;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#epv .yp-bar .ic{display:flex;align-items:center;justify-content:center;border:0;background:none;color:#111;height:44px}
#epv .yp-bar .ic.inert{cursor:default}
#epv .cards{flex:1;display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;padding:14px 14px 16px;scroll-snap-type:x mandatory}
#epv .pcard{flex:0 0 calc((100% - 28px)/3);scroll-snap-align:start;border:1px solid #dcdcdc;border-radius:10px;background:#fff;display:flex;flex-direction:column;overflow:hidden;text-align:left;padding:0;color:#111}
#epv .ipad.portrait .pcard{flex-basis:calc((100% - 14px)/2)}
#epv .pcard .band{height:34px;display:flex;align-items:center;justify-content:center;background:#efefef;font-weight:600;font-size:15px;flex:none;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#epv .pcard.rec{border:2px solid #222}
#epv .pcard.rec .band{color:#fff}
#epv .rtag{display:inline-block;align-self:flex-start;margin:8px 0 0 10px;background:#ececec;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600}
#epv .pcard .pc-in{flex:1;display:flex;flex-direction:column;padding:10px 14px 0;min-height:0;overflow:hidden}
#epv .car{position:relative;height:130px;display:flex;align-items:center;justify-content:center;flex:none}
#epv .car img{max-height:100%;max-width:70%;object-fit:contain}
#epv .car .cnt{position:absolute;left:50%;bottom:4px;margin-left:34px;background:rgba(40,40,40,.8);color:#fff;font-size:11px;padding:1px 5px;border-radius:2px}
#epv .car .nx{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;background:rgba(80,80,80,.7);color:#fff;display:flex;align-items:center;justify-content:center;border:0;font-size:16px}
#epv .pcard h4{font-size:15.5px;font-weight:700;margin:10px 0 6px;line-height:1.3}
#epv .pcard .ps{font-size:13.5px;line-height:1.4;overflow:hidden;flex:1;min-height:0}
#epv .pcard .ps ul{margin:0;padding-left:16px}
#epv .pcard .more{color:#0a6fd6}
#epv .pbox2{margin:10px 14px 0;background:#f4f4f4;border-radius:10px;padding:14px 10px;text-align:center;flex:none}
#epv .pcard.rec .pbox2{background:var(--rec-tint,#efeaff)}
#epv .pbox2 .amt{font-size:22px;font-weight:700}
#epv .acc{margin:10px 14px 14px;background:#111;color:#fff;border-radius:999px;text-align:center;padding:9px 6px;font-weight:600;font-size:15px;flex:none}
#epv .st-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;text-align:center}
#epv .st-ph svg{width:70px;height:70px;color:#e6e6e6}
#epv .st-ph span{font-size:12px;line-height:1.3;color:#8a8f94;max-width:170px}
#epv .img-miss{font-size:12px;color:#8a8f94}
/* option page */
#epv .op{flex:1;overflow:auto;padding:14px 18px 90px}
#epv .op-head{border:1px solid #e0e0e0;border-radius:10px;overflow:hidden;background:#fff}
#epv .op-head .band{height:26px;display:flex;align-items:center;padding:0 12px;color:#fff;font-weight:600;font-size:14px}
#epv .op-top{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;padding:14px}
#epv .op-img{height:120px;display:flex;align-items:center;justify-content:center;position:relative}
#epv .op-img img{max-height:100%;max-width:100%;object-fit:contain}
#epv .op-thumbs{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
#epv .op-thumbs button{width:40px;height:32px;padding:0;border:1px solid #ddd;background:#fff}
#epv .op-thumbs button[aria-pressed="true"]{border-color:#222}
#epv .op-thumbs img{width:100%;height:100%;object-fit:contain}
#epv .op h3{font-size:18px;font-weight:700;margin:0 0 6px}
#epv .op .desc{font-size:13.5px;line-height:1.45}
#epv .op h5{font-size:16px;font-weight:700;margin:18px 0 8px}
#epv .inc{border:1px solid #e0e0e0;border-radius:10px;background:#fff}
#epv .incr{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;padding:12px;border-bottom:1px solid #eee}
#epv .incr:last-child{border-bottom:0}
#epv .incr .th{width:54px;height:54px;display:flex;align-items:center;justify-content:center}
#epv .incr .th img{max-width:100%;max-height:100%;object-fit:contain}
#epv .incr .th .st-ph svg{width:34px;height:34px}
#epv .incr .th .st-ph span{display:none}
#epv .incr .nm{font-weight:600;font-size:15px}
#epv .incr .ds{font-size:12.5px;color:#444;line-height:1.4;margin-top:4px}
#epv .incr .q{font-size:12.5px;color:#444;margin-top:6px}
#epv .incr .pr{text-align:right;white-space:nowrap;font-size:14px}
#epv .incr .mem{color:#a3238a}
#epv .op-bar{position:absolute;left:0;right:0;bottom:0;background:#111;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px}
#epv .op-bar .amt{font-size:20px;font-weight:700}
#epv .op-bar .acc2{background:#fff;color:#111;border-radius:999px;padding:8px 22px;font-weight:600}
@media (max-width:900px){
  #epv .prow-h{grid-template-columns:minmax(0,1fr) auto;gap:10px}
  #epv .prow-h .bus,#epv .prow-h .cats{display:none}
  #epv .ocards{grid-template-columns:repeat(2,minmax(0,1fr))}
  #epv .tv{grid-template-columns:1fr}
  #epv .side{position:static}
}
@media (max-width:620px){
  #epv .ocards{grid-template-columns:1fr}
  #epv .st{padding:18px 14px}
  #epv .ipad{padding:10px;border-radius:20px;aspect-ratio:auto;height:80vh;min-height:0}
  #epv .pcard,#epv .ipad.portrait .pcard{flex-basis:100%}
  #epv .op-top{grid-template-columns:1fr}
}
/* Approved exception, same as Pricebook Preview (Boss 2026-11-12): once a file is open, only the working area widens. */
#epv:has(#dropZone[hidden]){--epvw:min(1240px,calc(100vw - 32px));width:var(--epvw);margin-left:calc((100% - var(--epvw)) / 2)}
/* Website wrapper, same as Pricebook Preview: site fonts and the tool's own hue, no sticky bar under the site header */
#epv{--accent:var(--tool);--accent-soft:var(--tool-tint);--f-display:var(--display);--f-body:var(--body);--f-mono:var(--mono);--bg:transparent;background:transparent;font-size:15px;line-height:1.45;color:var(--ink);margin-top:22px}
#epv .top{position:static;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
#epv .top-in{padding:10px 14px}
#epv main{padding:16px 0 10px}
