:root{color:#211b16;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f6efe6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.auth-page{background:radial-gradient(circle at 0 0,#a1734a33,#0000 32rem),linear-gradient(135deg,#211b16,#6e5843);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{background:#fffcf7f5;border:1px solid #fff6;border-radius:28px;width:min(440px,100%);padding:34px;box-shadow:0 28px 70px #00000047}.brand-mark{color:#f8efe1;background:#211b16;border-radius:20px;place-items:center;width:64px;height:64px;margin-bottom:18px;display:grid}.eyebrow{color:#9a704a;text-transform:uppercase;letter-spacing:.12em;margin:0 0 7px;font-size:12px;font-weight:800}h1,h2,h3{margin:0}.auth-card h1{letter-spacing:-.04em;font-size:42px}.muted{color:#6f655d}.notice,.error{color:#684300;background:#fff4d8;border-radius:14px;margin-top:14px;padding:12px 14px}.error{color:#9a1d1d;background:#ffe7e7}.form-stack,.form-grid{gap:14px;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid h2,.form-grid .full{grid-column:1/-1}label{color:#4d4239;gap:7px;font-size:13px;font-weight:700;display:grid}input,select,textarea{color:#211b16;background:#fff;border:1px solid #ddcdbb;border-radius:13px;outline:none;width:100%;padding:11px 12px}input:focus,select:focus,textarea:focus{border-color:#a1734a;box-shadow:0 0 0 3px #a1734a24}textarea{resize:vertical;min-height:88px}.check{align-self:end;align-items:center;gap:10px;padding:10px 0;display:flex}.check input{width:auto}.checkbox-row{color:#2f251d;align-items:center;gap:10px;font-weight:800;display:flex}.checkbox-row input{width:auto}.portal-settings{background:#fff8ee;border:1px solid #ead1b5;border-radius:18px;gap:14px;padding:16px;display:grid}.section-title{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.section-title h3{color:#6d5035;margin:0}.section-title span{color:#7d6d5f;font-size:13px;font-weight:700}.form-grid.nested{grid-template-columns:repeat(2,minmax(0,1fr))}.multi-select-field{color:#4d4239;gap:8px;font-size:13px;font-weight:700;display:grid}.multi-select-field>span{display:block}.chip-grid{flex-wrap:wrap;gap:8px;display:flex}.choice-chip{color:#4d4239;background:#fff;border:1px solid #ddcdbb;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:850}.choice-chip.active{color:#fff4e4;background:#211b16;border-color:#211b16}.choice-chip:disabled{opacity:.55;cursor:not-allowed}.setup-warning{color:#684300;background:#fff4d8;border:1px solid #f0d39b;border-radius:14px;margin:0 0 12px;padding:10px 12px;font-size:13px;font-weight:750}.primary,.ghost,.link-button{border:0;border-radius:14px;justify-content:center;align-items:center;gap:9px;padding:12px 15px;font-weight:800;display:inline-flex}.primary{color:#fff7ec;background:#211b16;box-shadow:0 10px 24px #211b1633}.primary:disabled{opacity:.6;cursor:not-allowed}.ghost{color:#362b23;background:#fff;border:1px solid #e4d6c5}.link-button{color:#835932;background:0 0;padding-left:0}.wide{width:100%}.app-shell{grid-template-columns:278px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#f9efe2;background:#211b16;flex-direction:column;gap:24px;height:100vh;padding:22px;display:flex;position:sticky;top:0}.logo-row{border-bottom:1px solid #ffffff1f;align-items:center;gap:13px;padding:8px 4px 16px;display:flex}.logo-row svg{color:#e3b47e;flex:none}.logo-row span{color:#cbb9a4;margin-top:3px;font-size:12px;display:block}nav{gap:8px;display:grid}.nav{color:#dccbb6;text-align:left;background:0 0;border:0;border-radius:14px;align-items:center;gap:12px;width:100%;padding:12px;font-weight:750;display:flex}.nav svg{width:19px;height:19px}.nav.active,.nav:hover{color:#211b16;background:#fff4e4}.sidebar .ghost{color:#fff4e4;background:#ffffff14;border-color:#ffffff24;margin-top:auto}.content{width:100%;max-width:1440px;padding:28px}.topbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.topbar h1{letter-spacing:-.045em;font-size:clamp(30px,4vw,48px)}.grid{gap:20px;display:grid}.grid.two{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}.stack{gap:20px;display:grid}.panel,.metric{background:#ffffffd9;border:1px solid #eadccd;border-radius:24px;padding:22px;box-shadow:0 12px 30px #432d1914}.panel h2{align-items:center;gap:9px;margin-bottom:16px;display:flex}.panel h3{color:#6d5035;margin:20px 0 10px}.span-two{grid-column:1/-1}.metric{align-items:center;gap:16px;min-height:112px;display:flex}.metric-icon{color:#7e552d;background:#f1dfc8;border-radius:17px;place-items:center;width:48px;height:48px;display:grid}.metric span{color:#7b6d61;text-transform:uppercase;letter-spacing:.06em;font-size:13px;font-weight:800;display:block}.metric strong{letter-spacing:-.035em;overflow-wrap:anywhere;margin-top:4px;font-size:clamp(24px,3vw,34px);display:block}.metric em{color:#7a6a5b;margin-top:5px;font-style:normal;display:block}.list{gap:10px;display:grid}.row{background:#fffaf3;border:1px solid #eee0d1;border-radius:16px;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;display:flex}.row span{color:#74685d;text-align:right}.row-main{gap:4px;min-width:0;display:grid}.mini-badge{vertical-align:middle;text-transform:uppercase;letter-spacing:.04em;background:#211b16;border-radius:999px;align-items:center;margin-left:8px;padding:2px 8px;font-size:11px;font-weight:900;display:inline-flex;color:#fff4e4!important}.empty{color:#7a6d62;text-align:center;background:#fffaf3;border:1px dashed #d8c8b6;border-radius:18px;padding:22px}.panel-head{justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;display:flex}.search{align-items:center;gap:8px;min-width:min(360px,100%);display:flex}.search input{padding-left:8px}.inventory-form{grid-template-columns:repeat(4,minmax(0,1fr))}.cards-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;display:grid}.inventory-card{background:#fffaf3;border:1px solid #e9dac9;border-radius:18px;overflow:hidden}.inventory-card img,.image-placeholder{aspect-ratio:4/3;object-fit:cover;color:#8d6844;background:#e7ddd1;place-items:center;width:100%;display:grid}.inventory-card div:not(.image-placeholder){gap:5px;padding:14px;display:grid}.inventory-card strong{text-transform:uppercase;letter-spacing:.02em}.inventory-card span,.inventory-card small{color:#6f6258}@media (width<=980px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}nav{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.two,.inventory-form,.form-grid{grid-template-columns:1fr}.topbar,.panel-head,.row{flex-direction:column;align-items:stretch}.row span{text-align:left}}.button-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.count-badge{color:#7e552d;vertical-align:middle;background:#f1dfc8;border-radius:999px;justify-content:center;align-items:center;min-width:30px;margin-left:8px;padding:3px 9px;font-size:13px;display:inline-flex}.table-wrap{background:#fffaf3;border:1px solid #eadccd;border-radius:18px;width:100%;max-height:68vh;overflow:auto}.data-table{border-collapse:collapse;width:100%;min-width:880px}.data-table th,.data-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #eadccd;padding:12px 14px}.data-table th{z-index:1;color:#6e4d2e;text-transform:uppercase;letter-spacing:.06em;background:#f5e8d8;font-size:12px;position:sticky;top:0}.data-table tr:hover td{background:#fff4e4}.row-actions,.card-actions{flex-wrap:wrap;gap:8px;display:flex}.card-actions{margin-top:8px;padding:0!important}.icon-button{color:#362b23;background:#fff;border:1px solid #dfcfbd;border-radius:11px;justify-content:center;align-items:center;gap:6px;padding:8px 10px;font-size:13px;font-weight:800;display:inline-flex}.icon-button:hover{color:#7e552d;border-color:#a1734a}.icon-button.danger{color:#9b2c2c;background:#fff7f7;border-color:#f0c2c2}.icon-button.danger:hover{background:#ffe7e7;border-color:#d66}@media (width<=980px){.button-row{flex-direction:column;align-items:stretch}.button-row .primary,.button-row .ghost{width:100%}.table-wrap{max-height:none}}.topbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.primary.compact{padding:10px 14px}.notice.success{color:#236b35;background:#f0fff3;border-color:#b8dec2}.portal-page{background:radial-gradient(circle at 0 0,#a1734a29,#0000 34rem),#f6efe6;min-height:100vh;padding:28px}.portal-shell{gap:22px;max-width:1180px;margin:0 auto;display:grid}.portal-header{background:#ffffffdb;border:1px solid #eadccd;border-radius:28px;justify-content:space-between;align-items:center;gap:18px;padding:24px;display:flex;box-shadow:0 16px 36px #432d1914}.portal-title{align-items:center;gap:18px;min-width:0;display:flex}.portal-logo{object-fit:cover;border-radius:22px;flex:none;width:82px;height:82px;box-shadow:0 12px 28px #5a3a1d2e}.portal-header h1{letter-spacing:-.05em;font-size:clamp(32px,5vw,54px)}.portal-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.portal-section .panel-head{align-items:flex-start}.portal-list{gap:10px;display:grid}.portal-row{background:#fffaf3;border:1px solid #eee0d1;border-radius:16px;justify-content:space-between;align-items:center;gap:14px;padding:14px;display:flex}.portal-row div{gap:4px;display:grid}.portal-row span,.portal-row small{color:#74685d}.portal-quote-actions{flex-direction:column;align-items:flex-end;gap:8px;min-width:180px;display:flex!important}.portal-quote-actions strong{font-size:18px}.request-history{margin-top:18px}.portal-inventory-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px;margin-top:16px;display:grid}.portal-card{background:#fffaf3;border:1px solid #e9dac9;border-radius:18px;display:grid;overflow:hidden}.portal-card img,.portal-card .image-placeholder{aspect-ratio:4/3;object-fit:cover;color:#8d6844;background:#e7ddd1;place-items:center;width:100%;display:grid}.portal-card>div:not(.image-placeholder){gap:7px;padding:14px;display:grid}.portal-card strong{text-transform:uppercase;letter-spacing:.02em}.portal-card span,.portal-card small{color:#6f6258}.portal-auth .auth-card{max-width:520px}@media (width<=760px){.portal-page{padding:16px}.portal-header,.portal-row{flex-direction:column;align-items:stretch}.portal-title{flex-direction:column;align-items:flex-start}.portal-logo{border-radius:18px;width:68px;height:68px}.portal-quote-actions{align-items:stretch}.portal-metrics{grid-template-columns:1fr}.topbar-actions{justify-content:stretch;width:100%}.topbar-actions button{flex:1}}.image-uploader{background:#fffaf3;border:1px solid #eadccd;border-radius:18px;grid-template-columns:180px 1fr;align-items:start;gap:14px;padding:14px;display:grid}.image-preview{color:#7e6a58;text-align:center;background:#f6eadb;border:1px dashed #d8c5ae;border-radius:14px;justify-content:center;align-items:center;min-height:135px;font-weight:800;display:flex;overflow:hidden}.image-preview img{object-fit:cover;width:100%;height:100%;min-height:135px;display:block}.image-controls{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.upload-button{color:#fff;cursor:pointer;background:#8b5e34;border:1px solid #a1734a;border-radius:11px;justify-content:center;align-items:center;gap:8px;padding:9px 12px;font-size:13px;font-weight:900;display:inline-flex}.upload-button input{display:none}.image-url-details{color:#6b5b4d;grid-column:2}.image-url-details summary{cursor:pointer;margin-bottom:8px;font-weight:800}.image-url-details label{margin:0}@media (width<=760px){.image-uploader{grid-template-columns:1fr}.image-url-details{grid-column:auto}.image-controls .icon-button,.upload-button{flex:1;min-width:140px}}.brand-logo{background:0 0;padding:0;overflow:hidden;box-shadow:0 12px 28px #5a3a1d38}.brand-logo img{object-fit:cover;width:100%;height:100%;display:block}.sidebar-logo{object-fit:cover;border-radius:12px;flex:none;width:42px;height:42px;box-shadow:0 8px 18px #3223142e}.sort-note{color:#8a7663;white-space:nowrap;margin-left:8px;font-size:12px;font-weight:800}.quote-form{grid-template-columns:repeat(4,minmax(0,1fr))}.quote-preview .panel-head strong{color:#211b16;font-size:24px}.preview-email{background:#fffaf3;border:1px solid #eadccd;border-radius:18px;margin-bottom:16px;padding:18px}.preview-email pre{white-space:pre-wrap;font:inherit;color:#4d4239;margin:12px 0 0;line-height:1.55}.quote-material-preview{background:#fffaf3;border:1px solid #eadccd;border-radius:18px;grid-template-columns:96px 1fr;align-items:center;gap:14px;max-width:620px;margin-bottom:16px;padding:12px;display:grid}.quote-material-preview img,.quote-material-preview .image-placeholder{object-fit:cover;border-radius:12px;width:96px;height:72px}.quote-material-preview p{color:#6f6258;margin:6px 0 0}@media (width<=980px){.quote-form{grid-template-columns:1fr}.quote-material-preview{grid-template-columns:80px 1fr}.quote-material-preview img,.quote-material-preview .image-placeholder{width:80px;height:60px}}.quote-attachments{background:#fffaf3;border:1px dashed #d8c8b8;border-radius:18px;padding:14px}.section-label{color:#2b2118;align-items:center;gap:8px;margin-bottom:10px;font-weight:800;display:flex}.attachment-list{gap:8px;margin-top:12px;display:grid}.attachment-list strong{color:#6f6258;font-size:13px}.attachment-row{background:#fff;border:1px solid #eadccd;border-radius:12px;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:9px 10px;display:grid}.attachment-row span,.attachment-row a{color:#4d4239;overflow-wrap:anywhere;font-size:13px}.preview-attachments{background:#fffaf3;border:1px solid #eadccd;border-radius:18px;gap:8px;margin-bottom:16px;padding:14px;display:grid}.preview-attachments h3{align-items:center;gap:8px;margin:0 0 4px;display:flex}.preview-attachments a,.preview-attachments span{color:#4d4239;font-size:14px}@media (width<=720px){.attachment-row{grid-template-columns:1fr}}.quotes-head{align-items:flex-start;gap:16px}.filters-row{grid-template-columns:minmax(240px,1fr) 220px;align-items:end;gap:14px;margin:14px 0 18px;display:grid}.status-pill{color:#5d4b3d;background:#efe7dd;border-radius:999px;align-items:center;padding:5px 10px;font-size:12px;font-weight:800;display:inline-flex}.status-pill.draft{color:#7a5100;background:#fff0c7}.status-pill.sent{color:#155c7a;background:#dff4ff}.status-pill.accepted,.status-pill.quoted{color:#256327;background:#e1f7df}.status-pill.new{color:#7a5100;background:#fff0c7}.status-pill.reviewing{color:#155c7a;background:#dff4ff}.status-pill.closed{color:#57483c;background:#ece7df}.status-pill.rejected,.status-pill.cancelled{color:#8a281b;background:#fde1dc}@media (width<=760px){.filters-row{grid-template-columns:1fr}.quotes-head{flex-direction:column}}.stack>form.panel{order:-2}.stack>.quote-preview{order:-1}.quote-options{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.quote-options .check{min-height:44px;margin:0}.quote-document-brand{background:#fffaf3;border:1px solid #eadccd;border-radius:18px;align-items:center;gap:14px;margin-bottom:16px;padding:12px 14px;display:flex}.quote-document-brand img{object-fit:cover;background:#fff;border-radius:8px;flex:none;width:78px;height:78px}.quote-document-brand h2{letter-spacing:.03em;margin:2px 0 4px;font-size:24px}.quote-document-brand span{color:#6f6258;font-weight:700}.quote-document-meta{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.quote-document-meta div{background:#fff;border:1px solid #eadccd;border-radius:14px;gap:4px;padding:12px;display:grid}.quote-document-meta strong{color:#8a6a4d;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.quote-document-meta span{color:#2b2118;font-weight:700}@media (width<=850px){.quote-document-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{@page{margin:.45in}html,body{background:#fff;width:auto;height:auto;overflow:visible}body *{visibility:hidden!important}#quote-pdf,#quote-pdf *{visibility:visible!important}#quote-pdf{width:auto;max-width:none;min-height:0;box-shadow:none;break-after:auto;page-break-after:auto;background:#fff;border:0;margin:0;padding:0;position:static}.sidebar,.topbar,.no-print,.button-row,.quote-attachments,.preview-attachments a[href]:after{display:none!important}.quote-document-brand,.quote-document-meta div,.preview-email,.quote-material-preview,.preview-attachments{break-inside:avoid}.quote-document-brand{background:#fff;border:0;border-bottom:2px solid #2b2118;border-radius:0}.quote-document-brand img{width:95px;height:95px}.quote-material-preview{grid-template-columns:90px 1fr;max-width:560px}.quote-material-preview img,.quote-material-preview .image-placeholder{width:90px;height:68px}.quote-document-meta{grid-template-columns:repeat(4,1fr)}.table-wrap{max-width:none!important;overflow:visible!important}.data-table{width:100%;font-size:11px}}.quote-line-section{background:#fffaf3;border:1px dashed #d8c8b8;border-radius:18px;gap:10px;padding:14px;display:grid}.quote-line-editor{grid-template-columns:minmax(220px,1fr) 120px 150px auto;align-items:end;gap:10px;display:grid}.quote-line-editor label{margin:0}@media (width<=900px){.quote-line-editor{grid-template-columns:1fr}}.quote-material-cards{gap:10px;margin-bottom:16px;display:grid}.quote-material-cards .quote-material-preview{margin-bottom:0}@media print{.quote-material-cards{gap:6px;margin-bottom:8px}.quote-material-cards .quote-material-preview{margin-bottom:0}}.material-specs{gap:2px;margin:6px 0;display:grid}.material-specs p{color:#6f6258;margin:0;font-size:13px;line-height:1.35}.material-specs strong{color:#211b16}.quote-material-preview .material-specs{margin-top:4px}@media print{.material-specs{gap:1px;margin:3px 0}.material-specs p{font-size:10px;line-height:1.25}}.line-editor{background:#fffaf3;border:1px dashed #d8c8b8;border-radius:18px;gap:12px;padding:14px;display:grid}.line-editor .section-title{justify-content:space-between;align-items:center;gap:12px;display:flex}.line-grid{background:#fff;border:1px solid #eadccd;border-radius:14px;grid-template-columns:minmax(220px,1.5fr) 90px 100px 120px 120px auto;align-items:end;gap:10px;padding:10px;display:grid}.line-grid label{margin:0}.totals-box{background:#fff;border:1px solid #eadccd;border-radius:14px;flex-wrap:wrap;justify-content:flex-end;gap:18px;padding:12px 14px;display:flex}.totals-box span{color:#6f6258}.totals-box strong{color:#211b16}@media (width<=1100px){.line-grid{grid-template-columns:1fr 1fr}}@media (width<=700px){.line-grid{grid-template-columns:1fr}.totals-box{justify-content:flex-start}}.dashboard-v2{gap:18px}.dashboard-hero{background:linear-gradient(135deg,#fffaf3 0%,#f3e6d6 100%);justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.dashboard-hero h2{margin:4px 0 6px;font-size:30px}.quick-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.dashboard-panels{align-items:stretch}.compact-head{align-items:flex-start;gap:12px;margin-bottom:12px}.compact-head h2{margin-bottom:4px}.attention-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.attention-card{text-align:left;cursor:pointer;color:inherit;background:#fffaf3;border:1px solid #eadccd;border-radius:16px;gap:4px;padding:14px;display:grid}.attention-card:hover{border-color:#8a6a44;box-shadow:0 8px 24px #452d1814}.attention-card strong{color:#211b16;font-size:28px}.attention-card span{color:#3b3028;font-weight:800}.attention-card em{color:#8a6a44;font-size:13px;font-style:normal;font-weight:700}.pipeline-bars{gap:14px;display:grid}.pipeline-row{grid-template-columns:80px 1fr 42px;align-items:center;gap:12px;display:grid}.pipeline-row span{color:#3b3028;font-weight:800}.pipeline-row div{background:#efe7dd;border-radius:999px;height:12px;overflow:hidden}.pipeline-row i{border-radius:999px;height:100%;display:block}.pipeline-row strong{text-align:right;color:#211b16}.inventory-health{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}@media (width<=1100px){.dashboard-metrics,.inventory-health{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero{flex-direction:column}.quick-actions{justify-content:flex-start}}@media (width<=700px){.dashboard-metrics,.inventory-health,.attention-list{grid-template-columns:1fr}.pipeline-row{grid-template-columns:70px 1fr 34px}}.api-key-code{color:#fff7ec;-webkit-user-select:all;user-select:all;background:#211b16;border-radius:12px;margin-top:10px;padding:12px;font-size:13px;display:block;overflow-x:auto}
