:root{--safety-orange: #F26B1D;--burnt-orange: #C2410C;--charcoal: #1F2328;--slate: #4A4F57;--steel: #5F646B;--concrete: #C3C8CF;--chalk-line: #E3E5E8;--drywall: #F5F5F2;--white: #FFFFFF;--go-green: #1E7B45;--caution-amber: #FFB000;--stop-red: #B42318;--color-primary: var(--safety-orange);--color-on-primary: var(--charcoal);--color-accent: var(--charcoal);--color-on-accent: var(--white);--color-text: var(--charcoal);--color-text-secondary: var(--slate);--color-text-muted: var(--steel);--color-link: var(--burnt-orange);--color-bg: var(--drywall);--color-surface: var(--white);--color-border: var(--steel);--color-divider: var(--chalk-line);--color-success: var(--go-green);--color-on-success: var(--white);--color-warning: var(--caution-amber);--color-on-warning: var(--charcoal);--color-danger: var(--stop-red);--color-on-danger: var(--white);--qb-demo-banner-bg: var(--charcoal);--qb-demo-banner-text: var(--white);--qb-demo-tag-bg: var(--safety-orange);--qb-demo-tag-text: var(--charcoal);--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;--font-body: "Barlow", system-ui, sans-serif;--space-1: 8px;--space-2: 16px;--space-3: 24px;--space-4: 40px;--space-5: 64px;--tap-min: 44px;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 20px}@font-face{font-family:Barlow;font-style:normal;font-weight:400;font-display:swap;src:url(./Barlow-Regular-BQgQ-zYU.woff2) format("woff2")}@font-face{font-family:Barlow;font-style:normal;font-weight:500;font-display:swap;src:url(./Barlow-Medium-CfmaFMck.woff2) format("woff2")}@font-face{font-family:Barlow;font-style:normal;font-weight:600;font-display:swap;src:url(./Barlow-SemiBold-Caiq8oTt.woff2) format("woff2")}@font-face{font-family:Barlow Condensed;font-style:normal;font-weight:700;font-display:swap;src:url(./BarlowCondensed-Bold-DxShDmBb.woff2) format("woff2")}@font-face{font-family:Barlow Condensed;font-style:normal;font-weight:800;font-display:swap;src:url(./BarlowCondensed-ExtraBold-D1-fidL2.woff2) format("woff2")}:root{color-scheme:light;--qb-bar-height: 72px;font-family:var(--font-body);font-size:16px;line-height:1.4;-webkit-text-size-adjust:100%}*,*:before,*:after{box-sizing:border-box}body{margin:0;background:var(--color-bg);color:var(--color-text);overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3{margin:0;line-height:1.2;font-family:var(--font-display);font-weight:700;text-transform:uppercase;letter-spacing:.01em}:focus-visible{outline:2px solid var(--color-text);outline-offset:2px}.muted{color:var(--color-text-muted)}.small{font-size:.875rem}.note{margin:0;color:var(--color-text-muted)}.app-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.app-shell>.screen,.app-shell>.pin-screen{flex:1 0 auto;min-height:0}.demo-banner{flex:none;display:flex;align-items:center;gap:var(--space-1);padding:calc(var(--space-1) + env(safe-area-inset-top)) var(--space-2) var(--space-1);background:var(--qb-demo-banner-bg);color:var(--qb-demo-banner-text);font-size:.875rem;font-weight:500;line-height:1.3}.demo-tag{flex:none;padding:2px var(--space-1);border-radius:var(--radius-sm);background:var(--qb-demo-tag-bg);color:var(--qb-demo-tag-text);font-size:.75rem;font-weight:600;letter-spacing:.04em}.screen{min-height:100vh;min-height:100dvh}.screen.has-bar{padding-bottom:calc(var(--qb-bar-height) + 16px + env(safe-area-inset-bottom))}.content{max-width:720px;margin:0 auto;padding:16px;display:flex;flex-direction:column;gap:14px}.app-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;min-height:56px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;background:var(--color-surface);color:var(--color-text);border-bottom:4px solid var(--color-primary)}.header-title{flex:1;min-width:0;font-size:1.35rem;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-spacer{width:64px}.brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.brand-logo{height:40px;width:auto;max-width:100%;object-fit:contain}.brand-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.back{background:none;border:0;color:inherit;font-weight:600;padding:10px 6px;min-height:44px;white-space:nowrap}.status-select{min-height:44px;border-radius:var(--radius-sm);border:1px solid var(--color-border);padding:0 10px;background:var(--color-surface);color:var(--color-text);font-weight:600;max-width:110px}.card{background:var(--color-surface);border-radius:var(--radius-md);padding:16px;border:1px solid var(--color-divider);display:flex;flex-direction:column;gap:12px;min-width:0}.card-title{font-size:1.3rem}.section-title{font-size:1.35rem;margin-top:4px}.sub-title{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);margin-top:4px}.stack{display:flex;flex-direction:column;gap:12px}.two-col{display:grid;grid-template-columns:1fr;gap:12px}@media(min-width:520px){.two-col{grid-template-columns:1fr 1fr}}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field-label{font-size:.875rem;font-weight:600;color:var(--color-text-muted)}.field-hint{font-size:.8rem}.field-hint.warn{color:var(--color-text);font-weight:600}.text-input,.select,.search{width:100%;min-height:48px;border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:10px 12px;background:var(--color-surface);font-size:1.0625rem}textarea.text-input{resize:vertical;min-height:64px}.numfield:focus-within{outline:2px solid var(--color-text);outline-offset:2px}.numfield{display:flex;align-items:center;min-height:48px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);overflow:hidden;min-width:0}.numfield input{flex:1;min-width:0;width:100%;border:0;outline:none;padding:10px;font-size:1.125rem;font-weight:600;background:transparent}.numfield .affix{padding:0 0 0 10px;color:var(--color-text-muted);white-space:nowrap}.numfield .affix.suffix{padding:0 10px 0 0;font-size:.875rem;max-width:45%;overflow:hidden;text-overflow:ellipsis}.numfield.is-invalid{background:var(--color-warning);color:var(--color-on-warning)}.numfield.is-invalid .affix{color:var(--color-on-warning)}.inputs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inputs-grid .field-wide{grid-column:1 / -1}.segmented{display:flex;gap:6px;flex-wrap:wrap}.segmented button{flex:1 1 0;min-width:0;min-height:46px;border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-surface);font-weight:600;padding:6px 8px}.segmented button.on{background:var(--color-primary);color:var(--color-on-primary);border-color:var(--color-primary)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:10px 16px;border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-surface);font-weight:600;text-align:center}.btn:disabled{opacity:.5}.btn-primary{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-on-primary)}.btn-accent{background:var(--color-accent);border-color:var(--color-accent);color:var(--color-on-accent)}.btn-danger{background:var(--color-danger);border-color:var(--color-danger);color:var(--color-on-danger)}.btn-big{min-height:56px;font-size:1.1rem}.btn-block{width:100%}.btn-small{min-height:40px;padding:6px 12px;font-size:.95rem}.btn-dashed{border-style:dashed;background:transparent;color:var(--color-link)}.icon-btn{min-width:44px;min-height:44px;border:0;background:transparent;border-radius:var(--radius-md);font-size:1.15rem;line-height:1}.link{border:0;background:none;padding:4px 2px;color:var(--color-link);font-weight:600;text-decoration:underline;font-size:.9rem}.link.danger,.menu-item.danger strong{color:var(--color-danger)}.banner{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border-radius:var(--radius-md);font-size:.95rem}.banner-info{background:var(--color-surface);border:1px solid var(--color-divider)}.banner-actions{display:flex;gap:8px;flex-wrap:wrap}.update-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:var(--color-accent);color:var(--color-on-accent);font-size:.9rem}.warnings{display:flex;flex-direction:column;gap:8px}.warning{padding:10px 12px;border-radius:var(--radius-md);border:1px solid;font-size:.95rem}.warning-yellow{background:var(--color-warning);border-color:var(--color-warning);color:var(--color-on-warning)}.warning-red{background:var(--color-danger);border-color:var(--color-danger);color:var(--color-on-danger)}.toast{position:fixed;left:16px;right:16px;bottom:calc(var(--qb-bar-height) + 24px + env(safe-area-inset-bottom));margin:0 auto;max-width:480px;z-index:60;background:var(--color-text);color:var(--color-surface);padding:12px 14px;border-radius:var(--radius-md);font-size:.95rem}.list-tools{display:flex;flex-direction:column;gap:10px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{min-height:36px;padding:4px 14px;border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-surface);font-weight:600;font-size:.9rem}.chip.on{background:var(--color-primary);color:var(--color-on-primary);border-color:var(--color-primary)}.quote-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.quote-card{display:flex;align-items:stretch;background:var(--color-surface);border-radius:var(--radius-md);border:1px solid var(--color-divider);min-width:0}.quote-card-main{flex:1;min-width:0;border:0;background:none;text-align:left;padding:14px 4px 14px 14px;display:flex;flex-direction:column;gap:4px}.qc-top,.qc-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}.qc-name{font-size:1.05rem;min-width:0}.qc-jobs,.qc-meta span{color:var(--color-text-muted);font-size:.9rem}.qc-more{align-self:center}.pill{display:inline-block;padding:2px 10px;border-radius:var(--radius-sm);font-size:.8rem;font-weight:600;white-space:nowrap}.pill-draft,.pill-sent,.pill-lost{background:var(--color-bg);color:var(--color-text-secondary);border:1px solid var(--color-divider)}.pill-won{background:var(--color-success);color:var(--color-on-success)}.empty{background:var(--color-surface);border-radius:var(--radius-md);padding:20px;text-align:center}.template-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.template-card{width:100%;min-height:64px;text-align:left;background:var(--color-surface);border-radius:var(--radius-md);padding:14px 16px;display:flex;flex-direction:column;gap:3px;border:1px solid var(--color-divider)}.template-card strong{font-size:1.1rem}.template-card span{color:var(--color-text-muted);font-size:.92rem}.template-card.is-custom{border-style:dashed;background:transparent;box-shadow:none}.job-head{display:flex;align-items:center;gap:6px}.job-toggle{flex:1;min-width:0;border:0;background:none;padding:0;text-align:left;display:flex;flex-direction:column;gap:2px}.job-num{font-size:1.1rem;font-weight:700}.job-sub{color:var(--color-text-muted);font-size:.9rem}.chev{color:var(--color-text-muted)}.lines{display:flex;flex-direction:column}.line{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-top:1px solid var(--color-divider);min-width:0}.line.is-zero .line-name,.line.is-zero .line-price{color:var(--color-text-muted)}.line-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.line-name{font-weight:600;min-width:0}.line-price{font-weight:700;white-space:nowrap}.line-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.line-controls .qty{width:168px;max-width:60%;min-height:44px}.line-controls .remove{margin-left:auto;color:var(--color-text-muted)}.line-meta{font-size:.82rem;color:var(--color-text-muted)}.line-problem{font-size:.85rem;color:var(--color-on-warning);background:var(--color-warning);border-radius:var(--radius-md);padding:6px 8px}.line-custom .line-top .text-input{flex:1}.custom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tag{font-size:.78rem;font-weight:700;color:var(--color-text-muted);background:var(--color-bg);border-radius:var(--radius-sm);padding:2px 8px}.add-row{display:flex;gap:8px;flex-wrap:wrap}.add-row .btn{flex:1 1 auto}.remove-job{align-self:flex-start}.owner-only{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);margin-left:6px}.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-grid .stat:first-child{grid-column:1 / -1}.stat-grid .stat:first-child strong{font-size:1.5rem}.stat{background:var(--color-bg);border-radius:var(--radius-md);padding:10px;display:flex;flex-direction:column;gap:2px;min-width:0}.stat-label{font-size:.78rem;color:var(--color-text-muted);font-weight:600}.stat strong{font-size:1.2rem;white-space:nowrap;font-variant-numeric:tabular-nums}.level-yellow .stat{background:var(--color-warning);color:var(--color-on-warning)}.level-red .stat{background:var(--color-danger);color:var(--color-on-danger)}.level-yellow .stat .stat-label,.level-red .stat .stat-label{color:inherit}.sum-rows{margin:0;display:flex;flex-direction:column}.sum-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--color-divider)}.sum-row dt{color:var(--color-text-muted)}.sum-row dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}.sum-row.strong dt,.sum-row.strong dd{color:var(--color-text);font-weight:700}.sum-row.total{border-bottom:0}.sum-row.total dt,.sum-row.total dd{color:var(--color-text);font-weight:800;font-size:1.15rem}.sticky-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--color-surface);border-top:1px solid var(--color-divider)}.sb-total{flex:1;min-width:0;border:0;background:none;padding:0;text-align:left;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:baseline}.sb-label{color:var(--color-text-muted);font-size:.85rem}.sb-total strong{font-size:1.25rem;white-space:nowrap}.sb-margin{grid-column:1 / -1;justify-self:start;font-size:.85rem;font-weight:700;padding:0 8px;border-radius:var(--radius-sm);background:var(--color-success);color:var(--color-on-success)}.sb-margin.level-yellow{background:var(--color-warning);color:var(--color-on-warning)}.sb-margin.level-red{background:var(--color-danger);color:var(--color-on-danger)}.sticky-bar .btn{min-height:50px;padding:10px 18px;white-space:nowrap}.sheet-backdrop{position:fixed;inset:0;z-index:50;background:color-mix(in srgb,var(--color-text) 45%,transparent);display:flex;align-items:flex-end;justify-content:center}.sheet-backdrop.center{align-items:center;padding:16px}.sheet{background:var(--color-surface);width:100%;max-width:640px;max-height:88vh;max-height:88dvh;border-radius:var(--radius-lg) var(--radius-lg) 0 0;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 8px 6px 16px;border-bottom:1px solid var(--color-divider)}.sheet-head h2{font-size:1.3rem;min-width:0}.sheet-body{overflow-y:auto;padding:12px 16px 20px;display:flex;flex-direction:column;gap:10px}@media(min-width:700px){.sheet-backdrop{align-items:center}.sheet{border-radius:var(--radius-lg)}}.dialog{background:var(--color-surface);border-radius:var(--radius-lg);padding:20px;max-width:420px;width:100%;display:flex;flex-direction:column;gap:12px}.dialog p{margin:0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.menu-list{display:flex;flex-direction:column;gap:8px}.menu-item{border:1px solid var(--color-divider);background:var(--color-surface);border-radius:var(--radius-md);padding:12px 14px;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:52px}.menu-item span{color:var(--color-text-muted);font-size:.9rem}.pick-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.pick-item{width:100%;border:1px solid var(--color-divider);background:var(--color-surface);border-radius:var(--radius-md);padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:52px}.pick-item span{color:var(--color-text-muted);font-size:.85rem}.pin-screen{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 16px;background:var(--color-bg)}.pin-logo{max-width:240px;max-height:90px;object-fit:contain}.pin-title{margin:0;font-family:var(--font-display);font-size:1.5rem;font-weight:700;text-transform:uppercase;letter-spacing:.01em}.pin-credit{display:flex;align-items:center;gap:var(--space-1);margin:var(--space-3) 0 0;color:var(--color-text-muted);font-size:.875rem;font-weight:500}.pin-credit img{width:20px;height:20px}@media(max-height:720px){.keypad{grid-template-columns:repeat(3,64px);gap:10px}.keypad button{height:64px}.pin-screen{gap:8px}}.pin-dots{display:flex;gap:16px}.pin-dots span{width:18px;height:18px;border-radius:50%;border:2px solid var(--color-primary)}.pin-dots span.filled{background:var(--color-primary)}.pin-error{min-height:1.4em;margin:0;color:var(--color-danger);font-size:.95rem}.shake{animation:shake .35s}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-8px)}75%{transform:translate(8px)}}.keypad{display:grid;grid-template-columns:repeat(3,76px);gap:14px}.keypad button{height:76px;border-radius:50%;border:1px solid var(--color-border);background:var(--color-surface);font-size:1.6rem;font-weight:600}.fatal{max-width:720px;margin:24px auto;padding:16px}.fatal h1{font-size:1.3rem;margin-bottom:12px}.fatal pre{white-space:pre-wrap;background:var(--color-surface);border:1px solid var(--color-divider);border-radius:10px;padding:12px;font-size:.9rem}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
