:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f7fb;font-family:Inter,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html,body,#root{height:100%;min-height:100%;margin:0}body{background:#f5f7fb;min-height:100vh}button,input,select{font:inherit}.app-shell{color:#1f2937;background:#f5f7fb;min-height:100vh;display:flex}.sidebar{color:#fff;background:#101827;border-right:1px solid #ffffff14;width:260px;padding:24px 18px}.brand-box{border-bottom:1px solid #ffffff14;align-items:center;gap:12px;margin-bottom:20px;padding:8px 10px 20px;display:flex}.brand-mark{background:linear-gradient(135deg,#2dd4bf,#2563eb);border-radius:12px;place-items:center;width:38px;height:38px;font-weight:700;display:grid}.brand-name{font-weight:700}.brand-box small{color:#90a3bf}.nav{flex-direction:column;gap:8px;display:flex}.nav a{color:#dfe7f2;border-radius:10px;padding:10px 12px;text-decoration:none;transition:background .2s;display:block}.nav a:hover,.nav a.active{background:#94a3b829}.nav-section{color:#8ea4bf;letter-spacing:.1em;text-transform:uppercase;margin-top:18px;padding:0 8px;font-size:.7rem;font-weight:700}.content-area{flex:1;padding:28px}.page-block{max-width:1200px;margin:0 auto}.page-header-row{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#64748b;margin:0 0 8px;font-size:11px;font-weight:700}h1,h2,p{margin-top:0}h1{margin-bottom:0;font-size:2.2rem}.stats-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin-bottom:24px;display:grid}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px 20px;box-shadow:0 6px 24px #0f172a0a}.stat-card.good{border-left:4px solid #10b981}.stat-card.warn{border-left:4px solid #f59e0b}.stat-label{color:#64748b;margin-bottom:8px;font-size:.8rem}.stat-value{color:#0f172a;font-size:2rem;font-weight:700}.two-col{grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px;display:grid}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:20px;box-shadow:0 6px 24px #0f172a0a}.plain-list{gap:10px;margin:12px 0 0;padding:0;list-style:none;display:grid}.empty-state{flex-direction:column;justify-content:center;min-height:220px;display:flex}.alert{border-radius:10px;margin-bottom:18px;padding:12px 14px;font-size:.95rem}.alert.error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.field-grid{grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;display:grid}label{color:#334155;flex-direction:column;gap:8px;font-size:.9rem;display:flex}input,select,button{font:inherit}input,select{background:#fff;border:1px solid #cbd5e1;border-radius:10px;min-height:42px;padding:0 12px}.primary-button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:12px;margin-top:16px;padding:11px 18px;font-weight:600}.primary-button:disabled{opacity:.7;cursor:wait}.calculator-shell{grid-template-columns:1.5fr .9fr;gap:18px;display:grid}.workbench-header{background:radial-gradient(1200px 320px at 0 0,#0d94881f,#0000 50%),radial-gradient(900px 280px at 100% 0,#1e40af1a,#0000 52%),#fff;border:1px solid #d6dbe8}.workbench-header-main{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.workbench-actions{flex-wrap:wrap;gap:8px;display:flex}.workbench-grid{grid-template-columns:minmax(395px,1.1fr) minmax(490px,1.5fr);align-items:start;gap:15px;display:grid}.workbench-col{min-width:0}.spec-summary{cursor:pointer;color:#0f172a;background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;padding:10px 12px;font-weight:700;list-style:none}details>summary::-webkit-details-marker{display:none}.sticky-summary{position:sticky;top:18px}.formal-a4-wrap{justify-content:center;padding:10px 0 24px;display:flex}.formal-a4-sheet{background:#fff;border:1px solid #d1d5db;border-radius:8px;width:210mm;min-height:297mm;padding:14mm;box-shadow:0 14px 36px #0f172a1f}.section-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.chip{color:#0c4a6e;background:#e0f2fe;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:.72rem;font-weight:700;display:inline-flex}.chip.accent{color:#166534;background:#dcfce7}.formula-card{background:linear-gradient(#f8fafc,#eef2ff);border:1px solid #dbeafe;border-radius:12px;gap:10px;margin-bottom:18px;padding:16px;display:grid}.manual-line{margin-bottom:8px}.manual-line label{gap:8px}.summary-line{color:#334155;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:10px 0;display:flex}.summary-line.highlight{color:#9a4d00;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;margin-top:4px;padding:12px 14px}.mini-grid{grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px;margin-bottom:18px;display:grid}.mini-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.mini-box span{color:#64748b;text-transform:uppercase;letter-spacing:.06em;font-size:.75rem}.adder-list{gap:8px;display:grid}.adder-row{background:#fff;border:1px solid #e2e8f0;border-radius:10px;grid-template-columns:minmax(120px,1.5fr) minmax(70px,.6fr) minmax(110px,.9fr) minmax(90px,.8fr) minmax(80px,.6fr);align-items:center;gap:12px;padding:8px 10px;display:grid}.adder-row input[type=checkbox]{min-height:auto}.adder-row input{width:100%}.quote-summary{gap:12px;display:grid}.summary-row{border-bottom:1px solid #e2e8f0;justify-content:space-between;padding:10px 0;display:flex}pre{background:#f8fafc;border-radius:10px;margin:0;padding:12px;overflow:auto}.muted{color:#64748b}.form-panel{gap:18px;display:grid}.options-grid,.bom-table,.adjustment-list,.breakdown-list{gap:12px;display:grid}.option-row,.bom-row,.breakdown-row,.adjustment-row{grid-template-columns:1.3fr 1fr auto;align-items:end;gap:10px;display:grid}.bom-row{grid-template-columns:repeat(4,minmax(90px,1fr))}.adjustment-row{border-bottom:1px solid #e2e8f0;grid-template-columns:minmax(140px,1.4fr) minmax(110px,.9fr) minmax(80px,.7fr);align-items:end;gap:10px;padding:10px 0;display:grid}.lite-badge{color:#1d4ed8;background:#dbeafe;border-radius:999px;align-items:center;padding:4px 8px;font-size:.75rem;font-weight:700;display:inline-flex}.totals-grid{gap:10px;margin-top:14px;display:grid}.total-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.total-box strong{font-size:1.1rem}.total-box.warn{background:#fff7ed;border-color:#fed7aa}.checkbox-list{flex-wrap:wrap;gap:8px;display:flex}.checkbox-pill{background:#fff;border:1px solid #cbd5e1;border-radius:999px;align-items:center;gap:6px;padding:8px 10px;display:inline-flex}.checkbox-pill input{min-height:auto}@media (width<=900px){.app-shell{flex-direction:column}.sidebar{width:100%}.workbench-grid{grid-template-columns:1fr}.sticky-summary{position:static}.formal-a4-sheet{width:100%;min-height:auto;padding:16px}.stats-grid,.two-col,.field-grid,.bom-row,.option-row,.breakdown-row,.adjustment-row{grid-template-columns:1fr}}@media print{.sidebar,.page-header-row button,.page-header-row a{display:none!important}.formal-a4-wrap{padding:0}.formal-a4-sheet{box-shadow:none;border:0;border-radius:0;width:210mm;min-height:297mm;padding:12mm}}.formal-a4-wrap{overflow-x:auto}.formal-a4-sheet.landscape{width:297mm;min-height:210mm}.xsheet td{box-sizing:border-box}.xsheet .xcell-edit{box-sizing:border-box;width:100%;height:100%;min-height:0;color:inherit;background:#fffbe6;border:none;border-radius:0;outline:none;padding:0 2px}.xsheet textarea.xcell-edit{resize:none;line-height:1.35}.quote-list-scroll{border:1px solid #e2e8f0;border-radius:10px;max-width:100%;overflow-x:auto}.quote-list-table{border-collapse:collapse;width:max-content;min-width:100%;font-size:13px}.quote-list-table th,.quote-list-table td{white-space:nowrap;vertical-align:middle;text-align:left;border:1px solid #e2e8f0;padding:6px 8px}.quote-list-table thead th{white-space:pre-line;z-index:1;background:#f1f5f9;font-weight:700;position:sticky;top:0}.quote-list-table tr.quote-first-row td{border-top:2px solid #cbd5e1}.quote-list-table .list-edit{background:#fffbe6;width:120px;min-height:30px;padding:0 8px}@media print{.formal-a4-sheet.landscape{width:297mm;min-height:210mm}.xsheet .xcell-edit{background:0 0}.xsheet select.xcell-edit{appearance:none}}@media (width<=900px){.formal-a4-sheet.landscape{width:100%;min-height:auto}}
