:root{color-scheme:light;--bg:#f3f4f0;--surface:#fff;--ink:#232a25;--muted:#687166;--border:#dce1d8;--accent:#364c34;--sage:#d8e2c9;--danger:#9a4539;--radius:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--border);border-radius:10px;background:white;color:var(--ink);padding:11px 18px;min-height:44px;line-height:1.4}button:hover{background:#edf1e8;border-color:#a5b49b}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #90ab76;outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#263a25;color:#fff}.quiet{background:none;border:0;color:var(--muted)}.small{font-size:.875rem;color:var(--muted)}.muted{color:var(--muted)}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#1b211c;color:#e6eddf;padding:36px 20px 24px;display:flex;flex-direction:column}.brand{font-family:Georgia,serif;font-size:1.8rem;font-style:italic;letter-spacing:-1px;font-weight:600;margin:0 12px}.brand-sub{font-size:.875rem;letter-spacing:2px;color:#98a58f;margin:8px 12px 38px}.nav-label{font-size:.75rem;letter-spacing:2px;color:#91a087;padding:0 14px;margin-bottom:12px}.nav-button{display:flex;gap:13px;align-items:center;width:100%;border:0;background:none;color:#b6c2ad;text-align:left;margin:5px 0;padding:14px;white-space:nowrap}.nav-button:hover{background:#2a3328}.nav-button.active{background:#d8e2c9;color:#25311f;font-weight:600}.nav-icon{font-size:.875rem;opacity:.65;width:22px}.sidebar-footer{margin-top:auto;padding:24px 12px 0;font-size:.875rem;color:#9baa91;border-top:1px solid #343e30}.sidebar-footer .quiet{color:#becbb2;padding-left:0}.main{min-width:0;padding:0 42px 48px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:23px 0;border-bottom:1px solid var(--border);gap:20px;color:var(--muted);font-size:.875rem}.topbar strong{color:var(--ink);font-weight:500}.user-badge{background:#e5eadf;padding:6px 14px;border-radius:100px;color:#4b5c40}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:32px 0 24px}.page-head h1{font-size:1.75rem;letter-spacing:-.7px;line-height:1.35;margin:0 0 6px}.page-head p{margin:0;color:var(--muted);font-size:.875rem}.head-actions,.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:26px;margin-bottom:24px}.card h2{font-size:1.05rem;margin:0 0 20px;font-weight:600}.login-layout{max-width:1010px;margin:60px auto;display:grid;grid-template-columns:.95fr 1fr;gap:54px;align-items:start}.login-intro{padding:28px 0}.login-intro h1{font-size:2.3rem;line-height:1.45;letter-spacing:-1px;margin:16px 0 20px}.login-intro p{color:var(--muted);line-height:1.9}.eyebrow{font-size:.75rem;letter-spacing:3px;color:var(--accent);font-weight:600}.login-card{padding:32px}.login-card h2{font-size:1.4rem;margin-bottom:10px}.steps{counter-reset:item;margin:28px 0;display:grid;gap:18px}.step{display:flex;gap:14px;align-items:flex-start}.step span{background:#e9eee2;color:#4d6341;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;font-size:.875rem;flex-shrink:0}.step div{font-size:.9375rem}.step small{display:block;font-size:.875rem;color:var(--muted);margin-top:3px}label{display:block;font-size:.9375rem;font-weight:500;margin-bottom:8px}input,textarea,select{width:100%;min-height:46px;border:1px solid #cdd5c7;border-radius:9px;background:#fff;color:var(--ink);padding:11px 13px}input:focus,textarea:focus,select:focus{outline:2px solid #a5b797;outline-offset:1px}textarea{min-height:115px;resize:vertical}.code-input{font-family:monospace;letter-spacing:1px;margin-bottom:18px;min-height:58px}.full{width:100%}.notice{background:#edf2e7;border:1px solid #d7e0ce;color:#506244;border-radius:10px;padding:14px 18px;font-size:.875rem;margin-bottom:22px}.error{background:#f8eae6;border-color:#e7c4bb;color:#973e31}.toast{margin:18px 0}.kpis{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px;margin-bottom:24px}.kpi{border:1px solid var(--border);border-radius:var(--radius);padding:25px;background:#fff;min-width:0}.kpi.hero{background:#263722;border-color:#263722;color:#f3f6ed}.kpi-label{font-size:.875rem;color:var(--muted);margin-bottom:13px}.hero .kpi-label,.hero .small{color:#bbccae}.kpi-value{font-size:clamp(1.65rem,2.2vw,2.4rem);font-variant-numeric:tabular-nums;line-height:1.4;letter-spacing:-1px;overflow-wrap:anywhere}.kpi-value .unit{font-size:1rem;letter-spacing:0;margin-right:5px}.kpi .small{margin-top:13px}.grid-2{display:grid;grid-template-columns:1.65fr 1fr;gap:24px}.card-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.card-head h2{margin:0}.progress{height:7px;background:#e5ebdf;border-radius:7px;overflow:hidden;margin:18px 0 10px}.progress>span{display:block;height:100%;background:#8ca475;border-radius:7px}.hero .progress{background:#43503d}.hero .progress>span{background:#b7cc9d}.metric-row{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #e9ede5}.metric-row:last-child{border-bottom:0}.metric-row strong{font-variant-numeric:tabular-nums}.mini-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:26px}.mini-stat{background:#fafbf8;padding:17px 22px}.mini-stat strong{display:block;font-size:1.5rem;font-weight:500}.mini-stat span{font-size:.875rem;color:var(--muted)}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:14px;background:white}table{width:100%;border-collapse:collapse;font-size:.9375rem}th{text-align:left;font-size:.875rem;color:var(--muted);background:#f8faf5;font-weight:500;white-space:nowrap}td,th{padding:17px 18px;border-bottom:1px solid #e5eadd}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f5f8f0}.money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.table-name{font-weight:600}.table-meta{font-size:.875rem;color:var(--muted);margin-top:4px;max-width:340px;overflow-wrap:anywhere}.badge{display:inline-block;border-radius:6px;background:#e9efdf;color:#536840;padding:4px 9px;font-size:.875rem;white-space:nowrap}.badge.neutral{background:#eceee8;color:#6d7566}.filters{display:flex;gap:12px;margin-bottom:22px}.filters input{flex:1;min-width:100px}.filters select{width:190px}.empty{text-align:center;padding:54px 24px;color:var(--muted)}.chart{height:205px;display:flex;align-items:end;gap:12px;padding:12px 0 0}.bar-group{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:10px}.bar{width:65%;min-height:0;background:#98ad85;border-radius:4px 4px 0 0}.bar-group span{font-size:.875rem;color:var(--muted)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.detail-grid .card{margin:0}.detail-grid .wide{grid-column:1/-1}.facts{display:grid;grid-template-columns:minmax(100px,.45fr) 1fr;gap:12px 22px;font-size:.9375rem;margin:0 0 22px}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.warranty-number{font-size:2rem;color:var(--accent);font-weight:500}.detail-copy{white-space:pre-wrap;overflow-wrap:anywhere;color:#515e4b;line-height:1.8}.record{border-top:1px solid var(--border);padding:20px 0}.record:first-of-type{border:0}.record strong{display:block;margin-bottom:6px}.drawer{border:0;border-radius:18px;padding:0;width:min(620px,calc(100vw - 32px));max-height:90vh;box-shadow:0 25px 90px #14240e40}.drawer::backdrop{background:#14210ed0;opacity:.52}.drawer-head{padding:24px 28px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.drawer-head h2{font-size:1.3rem;margin:0}.drawer-body{padding:24px 28px}.form-field{margin-bottom:22px}.drawer-footer{position:sticky;bottom:0;background:white;padding:18px 28px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:12px}.form-notice{font-size:.875rem;color:var(--muted);margin:0 0 22px}.busy-line{height:3px;background:#a5bc8e;position:fixed;top:0;left:0;right:0;z-index:10}.project-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.project-cards .card{margin:0}.project-cards h2{margin:0}.project-cards .actions{margin-top:24px}.footer-note{color:var(--muted);font-size:.875rem;margin-top:28px}
@media(min-width:1600px){.main{padding-left:64px;padding-right:64px}.login-layout{margin-top:100px}}@media(max-width:1050px){.shell{grid-template-columns:190px 1fr}.main{padding:0 24px 32px}.sidebar{padding:30px 12px}.kpis{gap:12px;grid-template-columns:1fr 1fr}.kpi.hero{grid-column:1/-1}.grid-2{grid-template-columns:1fr}.login-layout{gap:24px;grid-template-columns:1fr;margin:25px auto;max-width:600px}.login-intro{padding:0}.login-intro h1{font-size:1.7rem}.login-intro p{margin:0}.detail-grid{grid-template-columns:1fr}.detail-grid .wide{grid-column:auto}.mini-stat{padding:15px}.project-cards{grid-template-columns:1fr}}@media(max-width:680px){.shell{display:block}.sidebar{position:static;height:auto;padding:16px;display:block}.brand{font-size:1.5rem}.brand-sub,.nav-label,.sidebar-footer{display:none}.side-nav{display:flex;overflow:auto;margin-top:14px;gap:6px}.nav-button{width:auto;margin:0;padding:10px;font-size:.875rem}.nav-icon{display:none}.main{padding:0 18px 32px}.topbar{padding:16px 0}.login-layout{margin:24px auto}.login-card{padding:24px}.page-head{align-items:start;flex-direction:column}.page-head h1{font-size:1.5rem}.kpis{gap:12px}.kpi{padding:18px}.kpi-value{font-size:1.55rem}.mini-stats{grid-template-columns:1fr 1fr}.filters{flex-wrap:wrap}.filters select{width:100%}.card{padding:20px}.chart{gap:5px}.badge{white-space:normal}.facts{grid-template-columns:100px minmax(0,1fr);gap:12px}.drawer-body{padding:22px}.drawer-head,.drawer-footer{padding:20px}.topbar>span:first-child{max-width:60%}}

/* Customer needs and appointment inboxes */
.inbox-intro{margin-bottom:22px}.inbox-filters{margin-bottom:18px}.inbox-table{min-width:780px}.inbox-table td{vertical-align:top;line-height:1.7}.inbox-excerpt{max-width:260px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.inbox-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}.inbox-back{margin-bottom:18px}.inbox-phone{font-size:30px;font-weight:650;letter-spacing:1px;margin:18px 0}.inbox-note{min-height:90px;overflow-wrap:anywhere}.contact-call{display:inline-flex;align-items:center;justify-content:center;background:var(--ink,#202920);color:#fff;border-radius:10px;padding:12px 20px;text-decoration:none;font-size:14px;font-weight:600}.demo-notice{margin:0 0 22px;border:1px dashed #cba967;background:#fff5df}.inbox-filters input{min-width:240px}.facts dd{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:720px){.inbox-pagination{align-items:flex-start;flex-direction:column}.inbox-phone{font-size:25px}.inbox-filters input{min-width:0}.inbox-filters select{width:100%}}

.qr-area{text-align:center;margin:22px 0}.login-qr{display:block;width:252px;max-width:100%;height:auto;margin:0 auto 18px;background:#fff;border:12px solid #fff;border-radius:12px}.qr-number{font-size:14px;color:#657064}.qr-number strong{font-size:24px;letter-spacing:5px;color:#202920;margin-left:8px}.code-fallback{margin-top:24px;padding-top:18px;border-top:1px solid #e2e6df}.code-fallback summary{cursor:pointer;font-size:14px}.code-fallback form{margin-top:16px}
/* Quotation and catalog */
.quote-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}.quote-fields label,.quote-product-form>label,.quote-catalog-picker label,#quote-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#667066}.quote-fields input,.quote-fields select,.quote-product-form textarea,#quote-form input,#quote-form textarea,.quote-filters input,.quote-filters select{width:100%;border:1px solid #d9dfd5;border-radius:8px;padding:11px;font:inherit;background:#fff;color:#263026}#quote-form textarea,.quote-product-form textarea{min-height:100px;width:100%;margin-bottom:18px}.quote-filters{display:flex;gap:12px;margin:20px 0}.quote-filters input{max-width:400px}.quote-filters select{width:auto}.quote-status{display:inline-block;padding:5px 9px;border-radius:20px;background:#edf0e9;white-space:nowrap}.quote-status.pending{background:#fff0ce;color:#795621}.quote-status.approved{background:#dcebd9;color:#294c2d}.quote-summary{display:flex;flex-direction:column;gap:9px;align-items:flex-end;padding:25px 0;border-top:1px solid #dfe4da}.quote-summary strong,.quote-live-total{font-size:23px;color:#263d25}.quote-customer{padding-bottom:22px}.quote-paper{margin-bottom:20px}.quote-note{white-space:pre-wrap;overflow-wrap:anywhere}.quote-catalog-picker{display:grid;grid-template-columns:2fr 1fr;gap:20px}.quote-product-results{max-height:280px;overflow:auto;margin-top:12px;color:#75806d;font-size:13px}.quote-product-hit{display:flex;justify-content:space-between;gap:20px;width:100%;text-align:left;border:0;border-bottom:1px solid #e5e9e0;padding:12px;background:#fff;border-radius:0}.quote-product-hit:hover{background:#f0f4e9}.quote-product-hit span{font-size:12px;white-space:nowrap}.quote-edit-table{min-width:1030px;width:100%;table-layout:fixed}.quote-edit-table th:nth-child(1){width:100px}.quote-edit-table th:nth-child(2){width:240px}.quote-edit-table th:nth-child(3){width:65px}.quote-edit-table th:nth-child(4),.quote-edit-table th:nth-child(5){width:90px}.quote-edit-table th:nth-child(6){width:100px}.quote-edit-table th:nth-child(8){width:50px}.quote-edit-table input{padding:8px!important;margin-bottom:5px}.quote-edit-table td{vertical-align:top}.quote-save-bar{display:flex;align-items:center;justify-content:space-between;gap:20px}.quote-detail-table td:nth-child(n+3){white-space:nowrap}.quote-detail-table td{overflow-wrap:anywhere}.quote-product-form{max-width:1000px}
@media(max-width:800px){.quote-fields{grid-template-columns:1fr}.quote-catalog-picker{grid-template-columns:1fr}.quote-product-hit{flex-direction:column;gap:5px}.quote-save-bar{align-items:stretch;flex-direction:column}.quote-filters{flex-wrap:wrap}.quote-summary{align-items:flex-start}}

.booking-actions{flex-wrap:wrap;margin-top:20px}.booking-editor{margin-top:24px;border-top:1px solid var(--line,#ddd);padding-top:16px}.booking-editor fieldset{border:0;padding:0;margin:0}.booking-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.booking-editor label{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;font-size:14px}.booking-editor input,.booking-editor select,.booking-editor textarea{max-width:100%;width:100%;padding:10px;border:1px solid #c9ceca;border-radius:8px;font:inherit;background:#fff}.booking-editor textarea{min-height:88px;resize:vertical}.booking-editor .booking-agreed{flex-direction:row;align-items:center}.booking-agreed input{width:18px;height:18px}.booking-editor .actions{margin-top:16px}@media(max-width:650px){.booking-fields{grid-template-columns:1fr}}
