/* v0.6 estimates, pricebook, customer view, tax (classes from Mobile Designer mocks gen_estimates.py) */
.pe-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--surface)}
.pe-bar h1{font-size:var(--fs-xl);margin:0 8px 0 0;font-weight:600}
.pe-fz{position:relative;width:320px}
.pe-fz input{width:100%;height:30px;border:1px solid var(--accent);border-radius:6px;padding:0 10px 0 28px;font:inherit;background:var(--surface);color:var(--text);box-shadow:0 0 0 3px var(--accent-soft)}
.pe-fz .ic{position:absolute;left:9px;top:6px;color:var(--text-faint)}
.pe-dym{font-size:var(--fs-sm);color:var(--text-muted)}.pe-dym a{color:var(--accent);font-weight:500;text-decoration:none}
.pe-fc{display:flex;gap:6px;padding:8px 16px;border-bottom:1px solid var(--border);background:var(--surface)}
.pe-fc span{height:26px;padding:0 10px;border-radius:999px;border:1px solid var(--border);display:inline-flex;align-items:center;gap:6px;color:var(--text-muted);font-size:var(--fs-sm)}
.pe-fc .on{background:var(--text);border-color:var(--text);color:var(--surface)}
.pe-fc i{font-style:normal;color:var(--text-faint)}.pe-fc .on i{color:var(--surface);opacity:.7}
.pe-tbl td.n,.pe-tbl th.n{text-align:right;font-variant-numeric:tabular-nums}
.pe-tbl mark{background:var(--amber-soft);color:inherit;border-radius:2px;padding:0 1px}
.pe-tbl tr.pe-best td{background:var(--accent-soft)}
.pe-m-hi{color:var(--green)}.pe-m-lo{color:var(--amber)}
.pe-pf{padding:12px 16px;display:flex;flex-direction:column;gap:12px}
.pe-f label{display:block;font-size:var(--fs-sm);color:var(--text-faint);margin-bottom:4px}
.pe-f .in{height:30px;border:1px solid var(--border);border-radius:6px;padding:0 10px;display:flex;align-items:center;background:var(--surface);font-variant-numeric:tabular-nums}
.pe-f2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pe-tg{display:flex;align-items:center;gap:8px}.pe-tg b{width:30px;height:18px;border-radius:9px;background:var(--accent);position:relative;display:inline-block}
.pe-tg b:after{content:"";position:absolute;right:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--gray-0)}
.pe-mbox{padding:10px 12px;border-radius:8px;background:var(--surface-sunken);border:1px solid var(--border);display:flex;justify-content:space-between;font-size:var(--fs-sm)}
.pe-mbox b{font-size:var(--fs-lg);color:var(--green);font-weight:600}
.pe-foot{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--border);margin-top:auto}
.pe-wrap{flex:1;min-width:0;padding:16px 20px 24px;overflow:hidden}
.pe-eh h1{white-space:nowrap}.pe-eh{display:flex;align-items:center;gap:10px;margin-bottom:4px}.pe-eh h1{font-size:var(--fs-2xl);margin:0;font-weight:600}
.pe-meta{color:var(--text-muted);font-size:var(--fs-sm);margin-bottom:14px}
.pe-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.pe-opt{background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;min-width:0}
.pe-opt.pick{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft),var(--shadow-sm)}
.pe-opt.dim{opacity:.55}
.pe-oh{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}
.pe-oh h3{margin:0;font-size:var(--fs-lg);font-weight:600}.pe-oh .tier{font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--text-faint)}
.pe-ln{display:grid;grid-template-columns:1fr 34px 82px;gap:6px;padding:7px 14px;border-bottom:1px solid var(--border);font-size:var(--fs-sm);align-items:center}
.pe-ln .q{color:var(--text-faint);text-align:right}.pe-ln .p{text-align:right;font-variant-numeric:tabular-nums}
.pe-ln .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pe-ben{padding:10px 14px;display:flex;flex-direction:column;gap:5px;font-size:var(--fs-sm);flex:1}
.pe-ben div{display:flex;gap:6px}.pe-ben div:before{content:"✓";color:var(--green);font-weight:600}
.pe-tot{padding:10px 14px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:2px;font-size:var(--fs-sm);font-variant-numeric:tabular-nums}
.pe-tot div{display:flex;justify-content:space-between;color:var(--text-muted)}
.pe-tot .g{color:var(--text);font-size:20px;font-weight:600;margin-top:4px}
.pe-low{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:14px;margin-top:14px}
.pe-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-sm);min-width:0}
.pe-card .hd{padding:10px 14px;border-bottom:1px solid var(--border);font-weight:600;display:flex;align-items:center;gap:8px}
.pe-sig{display:grid;grid-template-columns:200px 1fr;gap:14px;padding:12px 14px}
.pe-sigimg{height:90px;border:1px solid var(--border);border-radius:6px;background:var(--surface-sunken);display:grid;place-items:center}
.pe-sig dl{display:grid;grid-template-columns:110px 1fr;gap:5px 8px;margin:0;font-size:var(--fs-sm)}.pe-sig dt{color:var(--text-faint)}.pe-sig dd{margin:0;font-variant-numeric:tabular-nums}
.pe-act{padding:4px 0}
.pe-ok{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;background:var(--surface-sunken);font-size:var(--fs-sm);color:var(--text-muted);margin:12px 14px}
.pe-seg{display:inline-flex;border:1px solid var(--border);border-radius:6px;overflow:visible;font-size:var(--fs-sm);position:relative}
.pe-seg>span{padding:2px 9px;color:var(--text-muted);border-right:1px solid var(--border)}.pe-seg>span:first-child{border-radius:5px 0 0 5px}.pe-seg>span:last-of-type{border-radius:0 5px 5px 0}.pe-seg .off{border-right:0;border-radius:0 5px 5px 0}
.pe-seg .on{background:var(--surface-hover);color:var(--text);font-weight:500}
.pe-seg .off{color:var(--text-faint);opacity:.5;background:var(--surface-sunken)}
.pe-hint{position:absolute;top:28px;right:0;z-index:6;background:var(--gray-900);color:var(--gray-0);font-size:var(--fs-sm);padding:6px 9px;border-radius:5px;white-space:nowrap;font-weight:400}
.pe-hint:before{content:"";position:absolute;top:-4px;right:18px;width:8px;height:8px;background:var(--gray-900);transform:rotate(45deg)}
.pe-inv{max-width:760px;margin:20px auto;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-sm)}
.pe-inv .ph{padding:16px 18px}.pe-inv .bt{display:flex;gap:6px;margin-top:10px}
.pe-li th,.pe-li td{border-right:0}.pe-li .r{text-align:right;font-variant-numeric:tabular-nums}
.pe-totd{display:grid;grid-template-columns:1fr 130px;gap:6px 12px;padding:12px 18px;text-align:right;font-variant-numeric:tabular-nums}
.pe-totd dt{color:var(--text-muted)}.pe-totd dd{margin:0}.pe-totd .big{font-size:20px;font-weight:600;color:var(--text)}
.pe-taxn{margin:0 18px 16px;padding:8px 12px;border-radius:6px;background:var(--surface-sunken);border:1px solid var(--border);font-size:var(--fs-sm);color:var(--text-muted)}
.pe-ex{border:1px solid var(--amber);background:var(--amber-soft);border-radius:8px;padding:12px;margin:12px 16px}
.pe-ex .r{display:flex;align-items:center;gap:8px}.pe-ex h4{margin:0;font-size:var(--fs-md);font-weight:600;flex:1}
.pe-ex dl{display:grid;grid-template-columns:90px 1fr;gap:5px 8px;margin:10px 0;font-size:var(--fs-sm)}.pe-ex dt{color:var(--text-muted)}.pe-ex dd{margin:0}
.pe-scan{display:flex;gap:10px;align-items:center}.pe-scan i{width:64px;height:82px;border-radius:4px;background:var(--gray-0);border:1px solid var(--border);display:block;position:relative}
.pe-scan i:before{content:"";position:absolute;inset:10px 8px;background:repeating-linear-gradient(var(--border-strong) 0 2px,transparent 2px 9px)}
.pe-ph{padding:20px 18px 120px;font-size:17px;line-height:1.4}
.pe-co{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--text-muted)}
.pe-ph h1{font-size:28px;line-height:1.2;margin:10px 0 4px;font-weight:700}
.pe-ph .lead{color:var(--text-muted);margin:0 0 18px}
.pe-c{background:var(--surface);border:2px solid var(--border);border-radius:16px;padding:18px;margin-bottom:14px;position:relative}
.pe-c.on{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.pe-c h2{font-size:var(--fs-2xl);margin:0;font-weight:700;text-transform:none;letter-spacing:0;color:var(--text)}
.pe-c .tr{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);font-weight:600}
.pe-pop{position:absolute;top:-12px;right:16px;background:var(--accent);color:var(--on-accent);font-size:13px;font-weight:600;padding:3px 10px;border-radius:999px}
.pe-c ul{list-style:none;padding:0;margin:12px 0 14px;display:flex;flex-direction:column;gap:8px}
.pe-c li{display:flex;gap:10px}.pe-c li:before{content:"✓";color:var(--green);font-weight:700}
.pe-big{font-size:34px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1}
.pe-big small{font-size:14px;font-weight:400;color:var(--text-faint);margin-left:6px}
.pe-rad{position:absolute;top:18px;right:18px;width:28px;height:28px;border-radius:50%;border:2px solid var(--border-strong)}
.pe-c.on .pe-rad{border-color:var(--accent);background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-size:16px}
.pe-cta{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:480px;z-index:5;padding:14px 18px 22px;background:var(--surface);border-top:1px solid var(--border)}
.pe-cta .b{height:56px;border-radius:14px;background:var(--accent);color:var(--on-accent);font-size:19px;font-weight:600;display:grid;place-items:center}
.pe-sum{background:var(--surface);border:2px solid var(--accent);border-radius:16px;padding:16px 18px;margin-bottom:18px}
.pe-sum .r{display:flex;justify-content:space-between;align-items:baseline}
.pe-lb{font-size:15px;font-weight:600;margin:0 0 6px}
.pe-inp{height:54px;border:2px solid var(--border-strong);border-radius:12px;background:var(--surface);padding:0 14px;display:flex;align-items:center;font-size:19px;margin-bottom:18px}
.pe-pad{height:190px;border:2px dashed var(--border-strong);border-radius:14px;background:var(--surface);position:relative}
.pe-pad .ln{position:absolute;left:18px;right:18px;bottom:44px;border-top:1px solid var(--border-strong)}
.pe-pad .x{position:absolute;left:18px;bottom:48px;color:var(--text-faint);font-size:20px}
.pe-pad .cl{position:absolute;right:14px;top:10px;font-size:15px;color:var(--accent);font-weight:600}
.pe-pad .hp{position:absolute;left:0;right:0;bottom:14px;text-align:center;font-size:14px;color:var(--text-faint)}
.pe-legal{font-size:12px;color:var(--text-faint);line-height:1.45;margin:10px 0 0}
.pe-dim{position:fixed;inset:0;background:rgba(15,20,30,.45);z-index:7}
.pe-sh{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:480px;background:var(--surface);border-radius:20px 20px 0 0;padding:10px 22px 24px;z-index:8;text-align:center}
.pe-sh .gr{width:40px;height:5px;border-radius:3px;background:var(--border-strong);margin:0 auto 14px}
.pe-sh h2{font-size:var(--fs-2xl);margin:0 0 4px;text-transform:none;letter-spacing:0;color:var(--text)}
.pe-dots{display:flex;gap:14px;justify-content:center;margin:18px 0}.pe-dots i{width:14px;height:14px;border-radius:50%;border:2px solid var(--text-muted)}.pe-dots i.f{background:var(--text);border-color:var(--text)}
.pe-kp{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pe-kp button{border:0;font:inherit;color:var(--text);cursor:pointer;height:58px;border-radius:14px;background:var(--surface-sunken);display:grid;place-items:center;font-size:24px;font-weight:500}.pe-kp .e{background:none;font-size:16px;color:var(--text-muted)}
/* app glue for the v0.6 mocks */
.pe-fc a{height:26px;padding:0 10px;border-radius:999px;border:1px solid var(--border);display:inline-flex;align-items:center;gap:6px;color:var(--text-muted);font-size:var(--fs-sm);text-decoration:none}
.pe-fc a.on{background:var(--text);border-color:var(--text);color:var(--surface)}.pe-fc a i{font-style:normal;color:var(--text-faint)}.pe-fc a.on i{color:var(--surface);opacity:.7}
#view.pb{display:flex;flex-direction:column;overflow:hidden}.pbw{flex:1;min-height:0;display:flex}.pbw>.tbl{flex:1;overflow:auto;min-width:0}.pbw>.panel{width:300px;flex:none;border-left:1px solid var(--border);background:var(--surface)}
.pe-f input.in,.pe-f select.in,.pe-f textarea.in{width:100%;font:inherit;color:var(--text)}.pe-f textarea.in{height:auto;padding:8px 10px;resize:vertical}
.pe-tg input{accent-color:var(--accent);width:16px;height:16px}
.pe-seg>span{cursor:pointer;user-select:none;position:relative}.pe-seg>span[aria-disabled=true]{cursor:not-allowed}.pe-seg>span:last-child{border-right:0}
.pe-seg .pe-hint{border-right:0;padding:6px 9px;color:var(--gray-0)}.pe-seg .pe-hint[hidden]{display:none}
.pe-ln{position:relative}.pe-ln .lnx{position:absolute;right:2px;top:5px;border:0;background:var(--surface);color:var(--text-faint);cursor:pointer;opacity:0;font-size:11px}.pe-ln:hover .lnx,.pe-ln .lnx:focus{opacity:1}
.pe-add{grid-template-columns:1fr 46px 0}.pe-add .in{height:26px;padding:0 6px;font-size:var(--fs-sm);border:1px dashed var(--border);border-radius:5px;background:transparent;color:var(--text)}
.pe-notes{width:calc(100% - 28px);margin:12px 14px;min-height:64px;padding:8px 10px;border:1px solid var(--border);border-radius:6px;font:inherit;background:var(--surface);color:var(--text)}
.pe-oe{padding:10px 14px;flex:1}
.pe-ex.ok{border-color:var(--border);background:var(--surface-sunken)}
dl.pe-ovw{display:grid;grid-template-columns:110px 1fr;gap:5px 8px;margin:0;font-size:var(--fs-sm)}dl.pe-ovw dt{color:var(--text-faint)}dl.pe-ovw dd{margin:0}
.pe-taxn{margin:0 16px 16px}
/* customer view: nothing but the cards, no way into the app */
body.custmode .side,body.custmode .top,body.custmode .views,body.custmode .tabbar,body.custmode #syncslot{display:none!important}
body.custmode .app{display:block}body.custmode .main{display:block}body.custmode .work{display:block}body.custmode #view{overflow:visible;background:var(--surface-sunken);min-height:100vh}
body.custmode .pe-ph{max-width:480px;margin:0 auto;position:relative}
.pe-ph .pe-c{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.pe-cta .b{width:100%;border:0;font:inherit;font-size:19px;font-weight:600;cursor:pointer}.pe-cta .b:disabled{opacity:.45;cursor:default}
.pe-lockb{position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:50%;background:var(--surface);border:1px solid var(--border);display:grid;place-items:center;color:var(--text-muted);cursor:pointer;z-index:5}.pe-lockb .ic{width:16px;height:16px}
.pe-back{display:inline-flex;align-items:center;gap:6px;color:var(--text-muted);text-decoration:none;font-size:15px}.pe-back .ic{width:16px;height:16px}
.pe-sum .tr{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);font-weight:600}
.pe-inp{width:100%;font:inherit;font-size:19px;color:var(--text)}
.pe-pad canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;z-index:1}.pe-pad .cl{border:0;background:none;cursor:pointer;z-index:2}
#pexit .pe-dots i.f{background:var(--text);border-color:var(--text)}
@media (max-width:980px){.pe-opts{grid-template-columns:repeat(2,minmax(280px,1fr))!important}.pe-low{grid-template-columns:minmax(0,1fr)}.pe-eh{flex-wrap:wrap}}
@media (max-width:760px){.pe-opts{grid-template-columns:minmax(0,1fr)!important}}
@media (max-width:600px){.pe-wrap{padding:12px 12px 80px;overflow:visible}.pe-sig{grid-template-columns:1fr}.pbw>.panel{position:fixed;inset:0;width:auto;z-index:20}}
.chip .lk,.pe-ok .lk,.pe-eh .lk{width:12px;height:12px;vertical-align:-1px;margin-right:3px;flex:none}.pe-ok .lk{width:13px;height:13px}
.pe-eh a.btn,.pe-bar a.btn,.pe-foot a.btn{text-decoration:none}
.pe-eh .chip{white-space:nowrap;display:inline-flex;align-items:center}
.pe-fz input:focus{outline:none}
body.custmode .pe-ph h1,body.custmode .pe-c h2,body.custmode .pe-sum h2{font-weight:700;text-transform:none;letter-spacing:0;color:var(--text)}
body.custmode .pe-ph h1{font-size:28px}

/* r7 estimates list (desktop-estimates mock): Customer + Job title share the rest, >=200px each at 1024, then the table scrolls sideways */
.pe-scroll{overflow-x:auto}.pe-lt{min-width:824px}.pe-lt .shx{display:none}.pe-lt col.w{width:auto}
.pe-lt .c1{width:96px}.pe-lt .c4{width:78px}.pe-lt .c5{width:160px}.pe-lt .c6{width:96px}.pe-lt .c7{width:80px}.pe-lt .c8{width:110px}
.pe-lt td,.pe-lt th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pe-lt .n{text-align:right;font-variant-numeric:tabular-nums}.pe-lt .ct{color:var(--text-muted)}
@media (max-width:1279px){.pe-lt .c1{width:84px}.pe-lt .c4{width:48px}.pe-lt .c5{width:84px}.pe-lt .c6{width:88px}.pe-lt .c7{width:72px}.pe-lt .c8{width:48px}
 .pe-lt td,.pe-lt th{padding:0 8px}.pe-lt .ct,.pe-lt .tn,.pe-lt .lgx{display:none}.pe-lt .shx{display:inline}.pe-lt td .av{margin-right:0}}

/* r7 phone signed estimate */
.pe-tt{position:sticky;top:0;background:var(--surface);border-bottom:1px solid var(--border);padding:12px 16px;z-index:3}
.pe-tt .bk{color:var(--text-muted);font-size:14px;display:flex;align-items:center;gap:4px;text-decoration:none}.pe-tt .bk .ic{width:16px;height:16px}
.pe-tt .r8{display:flex;align-items:center;gap:8px;margin-top:6px}.pe-tt h1{font-size:21px;margin:6px 0 2px;font-weight:600;line-height:1.25}
.pe-tl{padding:12px 12px 150px;display:flex;flex-direction:column;gap:10px}
.pe-tc{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 14px}.pe-tc.ch{border-color:var(--accent)}
.pe-tc .r{display:flex;align-items:center;gap:8px}.pe-tc h3{margin:0;font-size:17px;font-weight:600;flex:1}.pe-tier{font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.pe-tln{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid var(--border);font-size:14px}
.pe-tln span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pe-tln span:last-child{font-variant-numeric:tabular-nums;color:var(--text-muted);flex:none}
.pe-ttot{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--border);padding-top:8px;margin-top:2px}.pe-ttot b{font-size:24px;font-variant-numeric:tabular-nums}
.pe-tsig{height:74px;border-radius:8px;background:var(--surface-sunken);border:1px solid var(--border);display:grid;place-items:center;margin:10px 0;overflow:hidden}.pe-tsig img{max-height:66px;max-width:100%}
.pe-tdl{display:grid;grid-template-columns:110px 1fr;gap:6px 8px;margin:0;font-size:14px}.pe-tdl dt{color:var(--text-faint)}.pe-tdl dd{margin:0;font-variant-numeric:tabular-nums}
.pe-tlk{font-size:13px;display:flex;gap:6px;align-items:center;padding:0 4px}.pe-tlk .lk,.pe-tt .lk{width:13px;height:13px}
.pe-tcta{position:fixed;left:0;right:0;bottom:56px;padding:10px 12px;background:var(--surface);border-top:1px solid var(--border);z-index:4}
.pe-tcta .b{height:48px;width:100%;border:0;border-radius:10px;background:var(--accent);color:var(--on-accent);font:inherit;font-size:17px;font-weight:600;display:grid;place-items:center;text-decoration:none;cursor:pointer}

.pe-rev{display:flex;gap:8px;align-items:center;margin-top:10px;padding:8px 10px;border-radius:8px;background:var(--amber-soft);color:var(--amber);font-size:var(--fs-sm)}.pe-rev .ic{width:16px;height:16px;flex:none}.pe-rev span{flex:1;color:var(--text)}
.pe-expb{display:flex;gap:10px;align-items:center;margin:0 0 12px;padding:10px 12px;border:1px solid var(--amber);border-radius:8px;background:var(--amber-soft);font-size:var(--fs-sm);flex-wrap:wrap}.pe-expb .ic{width:16px;height:16px;color:var(--amber)}.pe-expb a{color:var(--accent);font-weight:500}

.pe-low.rv{grid-template-columns:minmax(0,1fr) 440px}.pe-rvside{display:flex;flex-direction:column;min-width:0}
.pe-rvb{background:var(--amber-soft);border:1px solid var(--amber);border-radius:8px;padding:12px 14px;margin-bottom:12px;color:var(--text)}
.pe-rvb .h{display:flex;gap:8px;align-items:center;font-weight:600;color:var(--amber);margin-bottom:4px}.pe-rvb .h .ic{width:16px;height:16px}
.pe-rvb p{margin:0 0 10px;font-size:var(--fs-sm);line-height:1.45}.pe-rvb .r{display:flex;gap:8px;align-items:center}
.pe-sig.rv{grid-template-columns:140px 1fr}.pe-sig.rv dl{grid-template-columns:100px 1fr}.pe-hl{color:var(--amber);font-weight:600}
.btn.pe-gr{background:var(--green);border-color:var(--green);color:var(--on-accent)}.btn.pe-gr:disabled{opacity:.5}.btn.pe-ro{border-color:var(--red);color:var(--red);background:var(--surface)}
@media (max-width:1279px){.pe-low.rv{grid-template-columns:1fr}.pe-rvside{order:-1}}
.pe-ov{position:fixed;inset:0;background:rgba(15,20,30,.4);z-index:30;display:grid;place-items:center}
.pe-dlg{width:min(460px,calc(100vw - 24px));background:var(--surface);border-radius:10px;box-shadow:var(--shadow-md);padding:18px}
.pe-dlg h2{margin:0 0 4px;font-size:var(--fs-xl);font-weight:600;text-transform:none;letter-spacing:0;color:var(--text)}
.pe-dlg label{display:block;font-weight:500;margin:14px 0 6px}.pe-dlg .ft{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}
.pe-pre{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.pe-pre button{height:26px;padding:0 10px;border:1px solid var(--border);border-radius:999px;display:inline-flex;align-items:center;font:inherit;font-size:var(--fs-sm);color:var(--text-muted);background:var(--surface);cursor:pointer}
.pe-pre button.on{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.pe-ta{width:100%;height:72px;border:1px solid var(--border-strong);border-radius:6px;padding:8px 10px;font:inherit;resize:vertical}.pe-er{color:var(--red);font-size:var(--fs-sm);margin-top:4px}
.pe-kp2{display:flex;gap:8px;align-items:center;margin-top:12px;padding:8px 10px;border-radius:6px;background:var(--surface-sunken);font-size:var(--fs-sm);color:var(--text-muted)}.pe-kp2 .ic{width:14px;height:14px}
.btn.pe-ro2{background:var(--red);border-color:var(--red);color:var(--on-accent)}.btn.pe-ro2:disabled{background:var(--red-soft);border-color:transparent;color:var(--red);opacity:.5;cursor:default}
.pe-twarn{margin-top:10px;padding:8px 10px;border-radius:8px;background:var(--amber-soft);color:var(--amber);font-size:14px}
.pe-tcta .b.wt{background:var(--surface-sunken);color:var(--text-muted);border:1px solid var(--border);display:flex;justify-content:center;align-items:center;gap:8px}
.pe-tcta .b.dis{display:flex;justify-content:center;align-items:center;gap:8px;background:var(--surface-sunken);color:var(--text-faint);border:1px solid var(--border)}.pe-tcta .b .ic{width:18px;height:18px}
.pe-exb{background:var(--red-soft);color:var(--red);border:1px solid var(--red);border-radius:10px;padding:12px 14px;font-size:15px}.pe-exb b{display:block;font-size:17px}
.pe-exb a{color:var(--accent);font-weight:600;text-decoration:none;display:inline-block;margin-top:6px}

.pbstar{border:0;background:none;padding:0 6px 0 0;font:inherit;color:var(--text-faint);cursor:pointer}.pbstar.on{color:var(--amber)}
.pbi-sum{display:flex;gap:6px;margin:4px 0 8px}table.pbi{border:1px solid var(--border);border-radius:6px}table.pbi tr.err td{background:var(--red-soft)}
#tpop button{border:0;border-right:1px solid var(--border);background:var(--surface);font:inherit;padding:5px 12px;color:var(--text-muted);cursor:pointer}#tpop button:last-child{border-right:0}#tpop button.on{background:var(--surface-hover);color:var(--text);font-weight:500}
.pbkeep{color:var(--text-faint);font-size:var(--fs-sm)}.pbi-note{margin:6px 0}.pbi td.r,.pbi th.r{text-align:right}
@media (max-width:600px){.pe-fc{flex-wrap:wrap;row-gap:6px}.pe-bar{flex-wrap:wrap}}
/* ===== r24ui: detail tabs (PATTERN-detail-tabs.md) ===== */
.dt-hd{position:sticky;top:0;z-index:5;background:var(--surface)}
.dt-tabs{position:sticky;top:var(--dth,0px);z-index:4;background:var(--bg);padding:8px 12px;border-bottom:1px solid var(--border)}
.dt-seg{display:flex;gap:2px;padding:3px;background:var(--surface-sunken);border:1px solid var(--border);border-radius:10px;overflow-x:auto;scrollbar-width:none;box-shadow:none!important}
.dt-seg>a,.dt-seg>button{flex:1 1 auto;text-align:center;padding:6px 6px!important;border:0;border-radius:7px;background:none;font:inherit;font-size:13px;font-weight:500;color:var(--text-muted);white-space:nowrap;text-decoration:none;box-shadow:none!important;cursor:pointer}
.dt-seg.many>a,.dt-seg.many>button{flex:none;padding:6px 9px!important}
.dt-seg i{font-style:normal;font-size:11px;color:var(--text-faint);margin-left:3px;font-variant-numeric:tabular-nums}
.dt-seg>.on{background:var(--surface);color:var(--text);font-weight:600;box-shadow:var(--shadow-sm)!important}.dt-seg>.on i{color:var(--accent)}
.dt-pn{display:flex;flex-direction:column;gap:10px;padding:10px 12px 80px}.dt-pn[hidden]{display:none}.dt-pn>.hcard{margin:0}
.dt-host .dt-tabs{margin:0 -16px;padding:8px 16px}
.dt-2{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:16px;align-items:start;padding:0 0 20px}
.dt-2 .dt-l{position:sticky;top:12px;display:flex;flex-direction:column;gap:10px}.dt-2 .dt-hd{position:static;border:1px solid var(--border);border-radius:10px;padding:12px}
.dt-2 .dt-tabs{padding:0 0 10px;border:0;top:0}.dt-2 .dt-pn{padding:0 0 20px}.dt-2 .dt-ov{padding:0}.dt-2 .dt-r{min-width:0}
@media (max-width:1100px){.dt-2{grid-template-columns:minmax(300px,380px) 1fr}}
.dt-seg>a.on,.dt-seg>a{border-bottom:0!important}
/* helper-tabs (Chris 10/16): Helper job compact header (mock phone/desktop-helper-job-tabs-*) */
.hph.hjhd{display:block;padding:8px 12px 10px;border-bottom:1px solid var(--border)}.dt-2 .hph.hjhd{border:1px solid var(--border);padding:12px}
.hj-t{display:flex;align-items:center;gap:6px;min-width:0}.hjhd .hj-t .hjn{font-size:17px;font-weight:600;margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hjhd .hj-t .hjn{text-align:left}.dt-2 .hjhd .hj-t .hjn{white-space:normal}
@media (max-width:600px){.app.hjob .dt-seg>button{padding:6px 3px!important;font-size:12px}}.hjhd .hback{flex:none;display:flex;color:var(--text-muted)}.hjhd .hback .ic{width:20px;height:20px}.hj-t .chip{flex:none}
.hj-c{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:14px;min-width:0}.hj-c b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hjph{color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.hjhd .ib{flex:none;width:36px;height:36px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--accent);display:flex;align-items:center;justify-content:center;position:relative}
.hjhd .ib::after{content:'';position:absolute;inset:-4px}.hjhd .ib .ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.hj-a{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:13px;color:var(--text-muted);min-width:0}.hj-a>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dt-2 .hj-a>span{white-space:normal}.hj-a .ic{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.hj-v{margin-top:6px}
.hj-r{display:flex;align-items:center;gap:8px;margin-top:8px}.hj-r .btn.clk:not([hidden]){flex:1;display:flex}.hjon{color:var(--text-muted)}
.hjgate{flex:none;display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 10px;border-radius:10px;background:var(--surface-sunken);border:1px solid var(--border);font-size:13px;white-space:nowrap}.hjgate b{font-family:var(--mono)}
.hjgate .ic{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.hjnp{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--text-faint);white-space:nowrap}.hjnp .ic{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.hclamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:4.2em}
.hmore{display:block;margin-top:6px;padding:4px 0;border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--accent);cursor:pointer;min-height:32px}
.hnall>summary{list-style:none;border-top:1px solid var(--border);margin-top:8px;padding-top:8px}.hnall>summary::-webkit-details-marker{display:none}
.dt-2 .hglance{display:none}
/* ===== r24ui: Good/Better/Best (r22j) ===== */
.g-wrap{padding:0!important}.g-hd{padding:10px 14px;border-bottom:1px solid var(--border);background:var(--surface)}
.g-t{display:flex;align-items:center;gap:6px;min-width:0}.g-t h1{font-size:17px;font-weight:600;margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-bk{display:flex;color:var(--text-muted)}.g-bk .ic{width:20px;height:20px}.g-s{font-size:13px;color:var(--text-muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.g-tt{display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--border);border-radius:12px;padding:9px 10px;background:var(--surface);min-width:0;font:inherit;color:var(--text);text-align:left;cursor:pointer}
.g-tt .k{font-size:12px;font-weight:600;color:var(--text-muted)}.g-tt .p{font-size:17px;font-weight:700;margin-top:2px;font-variant-numeric:tabular-nums;white-space:nowrap}.g-tt .n{font-size:11px;color:var(--text-faint)}
.g-tt.on{border:2px solid var(--accent);padding:8px 9px;background:color-mix(in srgb,var(--accent) 5%,var(--surface))}.g-tt.on .k{color:var(--accent)}
.g-cd,.g-oc{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;min-width:0}
.g-ch{display:flex;align-items:center;gap:4px;padding:10px 12px;font-size:13px;font-weight:600;color:var(--text-muted);min-width:0}.g-lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-row{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 12px;border-top:1px solid var(--border)}.g-rt{flex:1;min-width:0}
.g-rt b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.g-rt span{display:block;font-size:12px;color:var(--text-faint);margin-top:1px}
.g-amt{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.g-x{border:0;background:none;color:var(--text-faint);font-size:13px;padding:6px;cursor:pointer}
.g-add{padding:8px 12px;border-top:1px solid var(--border)}.g-add .in{width:100%}.g-empty{padding:14px 12px;border-top:1px solid var(--border);color:var(--text-faint);font-size:13px}
.g-tot{display:flex;justify-content:space-between;padding:10px 12px;border-top:1px solid var(--border);font-size:13px;color:var(--text-muted)}.g-tot.b{font-size:16px;font-weight:700;color:var(--text)}
.g-qn{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-faint)}.g-qn .ic{width:13px;height:13px;flex:none}
.g-kv{display:grid;grid-template-columns:92px 1fr;gap:6px 10px;margin:0;padding:12px;font-size:14px}.g-kv dt{color:var(--text-faint)}.g-kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.g-ta{width:calc(100% - 24px);margin:0 12px 12px}
.g-bar{position:fixed;left:0;right:0;bottom:var(--tabbar-h,56px);z-index:6;display:flex;gap:8px;padding:10px 14px;background:var(--surface);border-top:1px solid var(--border)}
.custmode .g-bar,.g-pres .g-bar{bottom:0;padding-bottom:14px}
.g-pri{flex:1;height:48px;border-radius:12px;border:0;background:var(--accent);color:var(--on-accent);font:inherit;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none;cursor:pointer}
.g-sec{flex:none;height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-weight:600;font-size:14px;display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}
.g-sec:disabled{opacity:.5}.g-sec .ic{width:14px;height:14px}
.g-wrap .dt-pn{padding-bottom:150px}
/* present */
.g-pres{display:flex;flex-direction:column;min-height:100vh;background:var(--surface-sunken);padding:0!important}
.g-brand{display:flex;align-items:center;gap:10px;padding:14px 18px 4px}.g-brand>div{flex:1;min-width:0}.g-brand b{display:block;font-size:14px}.g-brand div span{font-size:12px;color:var(--text-faint)}
.g-logo{width:32px;height:32px;border-radius:9px;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.g-pt{padding:6px 18px 0}.g-pt h2{margin:0;font-size:22px;font-weight:700;text-transform:none;letter-spacing:-.01em;color:var(--text)}.g-pt p{margin:3px 0 0;font-size:13px;color:var(--text-muted)}
.g-rail{flex:1;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:18px 36px 12px;scrollbar-width:none;min-height:520px;max-height:calc(100vh - 220px)}
.g-tc{top:0;flex:none;width:min(318px,82vw);scroll-snap-align:center;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:20px;display:flex;flex-direction:column;position:relative;box-shadow:var(--shadow-sm)}
.g-tc.pop{border:2px solid var(--accent);padding:19px;box-shadow:var(--shadow-md)}
.g-bdg{position:absolute;top:-11px;left:50%;transform:translateX(-50%);height:22px;padding:0 10px;border-radius:11px;background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:700;display:flex;align-items:center;white-space:nowrap}
.g-tc .k,.g-hc .k,.g-oc .k{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}.g-tc h3{margin:2px 0 0;font-size:19px;font-weight:600}
.g-big{font-size:38px;font-weight:800;letter-spacing:-.02em;margin-top:12px;font-variant-numeric:tabular-nums;line-height:1}
.g-bl{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:9px}.g-bl li{display:flex;gap:9px;font-size:14px;line-height:1.35}
.gck{width:16px;height:16px;flex:none;fill:none;stroke:var(--green);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.g-tc .g-qn{margin-top:auto;padding-top:12px}.g-dots{display:flex;gap:6px;justify-content:center;padding:4px 0 90px}.g-dots i{width:6px;height:6px;border-radius:3px;background:var(--border-strong)}.g-dots i.on{width:18px;background:var(--accent)}
.g-fine{font-size:11px;color:var(--text-faint);text-align:center;padding:0 18px 90px;margin-top:-80px}
.g-dep{display:flex;flex-direction:column;gap:2px;margin:10px 0;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);font-size:14px}.g-dep span{font-size:12px;color:var(--text-muted)}
.g-toast{position:fixed;left:14px;right:14px;top:14px;max-width:460px;margin:0 auto;background:var(--text);color:var(--bg);border-radius:14px;padding:12px 14px;display:flex;gap:10px;align-items:center;box-shadow:var(--shadow-md);z-index:99}
.g-tic{width:30px;height:30px;border-radius:15px;background:var(--green);display:grid;place-items:center;flex:none}.g-tic .gck{stroke:#fff}.g-toast b{display:block;font-size:14px}.g-toast span{font-size:12px;opacity:.75}
/* compare + office desktop */
.g-cmpw{padding:16px 24px 40px;max-width:1180px;margin:0 auto;width:100%}
.g-cmp{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;margin-top:12px}
.g-cmp td{border-left:0;border-right:0;border-bottom:0;white-space:normal;overflow:visible;padding:12px 16px;border-top:1px solid var(--border);text-align:center;font-size:14px}.g-cmp tr:first-child td{border-top:0}
.g-cmp .g-c0{text-align:left;color:var(--text-muted);width:32%}.g-hc{padding:22px 16px 18px!important;vertical-align:top}.g-hc h3{margin:2px 0 0;font-size:16px;font-weight:600}.g-hc .g-big{font-size:32px;margin-top:10px}
.g-hc .g-bdg{position:static;transform:none;display:inline-flex;margin-bottom:8px}.g-bdg.g-hid{visibility:hidden}
.g-cmp .g-pop{background:color-mix(in srgb,var(--accent) 5%,var(--surface))}.g-dash{color:var(--text-faint)}
.g-pick{height:38px;padding:0 16px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}.g-pick.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.g-desk{padding:20px 24px!important}.g-dh{display:flex;align-items:flex-end;gap:12px;margin-bottom:14px;flex-wrap:wrap}.g-dt{display:flex;align-items:center;gap:10px}.g-dt h1{margin:0;font-size:24px;font-weight:700}
.g-meta{margin:4px 0 0;color:var(--text-muted);font-size:14px}.g-acts{display:flex;gap:8px;flex-wrap:wrap}
.g-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:10px 0 12px}.g-oc.sel{border:2px solid var(--green)}
.g-och{padding:14px 16px;border-bottom:1px solid var(--border)}.g-r{display:flex;align-items:center;gap:8px}.g-r .k{flex:1}.g-lbl2{font-size:14px;color:var(--text-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-oc .g-big{font-size:28px;margin-top:8px}.g-oc .g-row{padding:8px 16px}
.g-mg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:8px;padding:6px 8px;border-radius:8px;background:var(--surface-sunken);font-size:12px;color:var(--text-muted)}.g-mg .ic{width:13px;height:13px}
@media (max-width:1100px){.g-desk{padding:16px!important}.g-cmp td{padding:10px 12px}.g-hc .g-big{font-size:26px}.g-cmp .g-c0{width:28%}}
.g-wrap .msg:empty,.g-pres .msg:empty{display:none}.g-wrap .dt-tabs{padding:6px 14px}.g-wrap .dt-pn{padding:10px 14px 150px}.g-hd{padding:8px 14px}
.g-mo{font-size:13px;color:var(--text-muted);margin-top:6px}.g-mo b{color:var(--text)}.g-hc .g-mo{margin-top:6px}
.g-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 2px}.g-st{background:var(--surface-sunken);border-radius:10px;padding:8px 10px;min-width:0}.g-st small{display:block;font-size:11px;color:var(--text-faint)}.g-st b{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.g-spec{font-size:13px;color:var(--text-muted);margin-top:6px;overflow-wrap:anywhere}.g-cd>.g-spec{padding:0 12px 8px;margin-top:-4px}
.g-cmp .g-fine2{font-size:12px;color:var(--text-faint);text-align:left!important;padding-top:10px}
.g-det{border-top:1px solid var(--border)}.g-det>summary>span:first-child{white-space:nowrap;flex:none}.g-det>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;cursor:pointer;font-size:13px;font-weight:600;list-style:none}.g-det>summary::-webkit-details-marker{display:none}
.g-det>summary::after{content:'';margin-left:auto;width:7px;height:7px;border:solid var(--text-faint);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);flex:none}.g-det[open]>summary::after{transform:rotate(-135deg)}
.g-dsum{font-weight:400;color:var(--text-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.g-dgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;padding:0 12px}.g-df{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12px;color:var(--text-muted)}.g-df.wide{grid-column:1/-1}
.g-df .in{min-height:44px;font-size:16px;width:100%}.g-dft{display:flex;align-items:center;gap:8px;padding:8px 12px 12px}.g-derr{flex:1;font-size:13px;color:var(--red)}.g-dsv{min-height:44px}
@media(min-width:760px){.g-df .in{font-size:14px}}
