:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2937;background:#eef1f7;font-synthesis:none;text-rendering:optimizeLegibility;--primary: #667eea;--primary-dark: #5a67d8;--purple: #764ba2;--ink: #1f2937;--muted: #6b7280;--line: #dfe3eb;--soft: #f7f8fb;--white: #fff;--good: #138a61;--warn: #a96300;--danger: #c53b4c;--shadow: 0 12px 35px rgb(33 42 70 / 9%)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 10% 0%,rgb(102 126 234 / 10%),transparent 30rem),#eef1f7}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{min-height:100vh}.app-header{min-height:176px;padding:30px clamp(24px,4vw,64px);color:#fff;background:linear-gradient(135deg,var(--primary),var(--purple));display:flex;align-items:center;justify-content:space-between;gap:28px;box-shadow:0 10px 25px #45398938}.app-header h1{margin:4px 0 6px;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em}.app-header p{margin:0;opacity:.86}.eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.19em}.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:680px}.button{min-height:40px;border:1px solid transparent;border-radius:9px;padding:8px 15px;font-weight:700;color:var(--ink);background:#fff;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}a.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 7px 16px #1f29371f}.button.primary{color:#fff;background:linear-gradient(135deg,var(--primary),var(--purple))}.button.secondary{border-color:#cbd2f8;color:#4d5cc4;background:#f4f5ff}.button.ghost{border-color:var(--line);color:var(--muted);background:transparent}.button.danger{border-color:#f4cbd1;color:var(--danger);background:#fff5f6}.button.compact{min-height:32px;padding:5px 10px;font-size:.82rem}.header-ghost{color:#fff;border-color:#ffffff52;background:#ffffff1a}.header-light{color:#5263cc;background:#fff}.header-deal{border-color:#ffffff7a;color:#4e3c10;background:#fff2bc}.workspace{width:min(1800px,calc(100% - 32px));margin:-22px auto 0;padding-bottom:48px;position:relative}.panel,.scenario-card{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.control-bar{padding:20px;display:grid;grid-template-columns:.8fr 1fr 1.4fr 1fr 1fr;gap:14px;align-items:end}.field{min-width:0;display:flex;flex-direction:column;gap:7px}.field>span,.field>.field-label,.field>legend,.group-label{color:#4b5563;font-size:.75rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.field-hint{margin-top:-2px;color:#4b5563;font-size:.75rem;font-weight:600;line-height:1.35}.field input,.field select,.field textarea,.catalog-search input,.library-search input{width:100%;min-height:42px;border:1px solid #cfd5df;border-radius:8px;padding:9px 11px;color:var(--ink);background:#fff;outline:none}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.catalog-search input:focus,.library-search input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #667eea21}.mode-field{margin:0;padding:0;border:0}.pill-toggle,.validity-pills{display:flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.pill-toggle button,.validity-pills button{flex:1;min-height:34px;border:0;border-radius:7px;color:var(--muted);font-size:.83rem;font-weight:700;background:transparent}.pill-toggle button.active,.validity-pills button.active{color:#fff;background:linear-gradient(135deg,var(--primary),var(--purple));box-shadow:0 3px 8px #667eea40}.parties-grid{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.party-card,.terms-panel{padding:22px}.party-card h2,.terms-panel h2{margin:0 0 18px;font-size:1.08rem}.form-grid,.terms-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.full{grid-column:1 / -1}.lookup-feedback{min-height:17px;display:flex;align-items:baseline;justify-content:space-between;gap:10px;color:var(--muted)}.lookup-feedback small{line-height:1.45}.lookup-feedback.found{color:var(--good)}.lookup-feedback.not-found,.lookup-feedback.unavailable{color:var(--warn)}.lookup-actions{display:inline-flex;flex-shrink:0;gap:9px}.lookup-action{border:0;padding:0;color:currentcolor;background:transparent;font-size:.76rem;font-weight:800;text-decoration:underline;text-underline-offset:2px}.lookup-action:hover{color:var(--primary-dark)}.hubspot-combobox{position:relative}.hubspot-suggestions{position:absolute;z-index:20;top:calc(100% + 5px);right:0;left:0;max-height:300px;margin:0;padding:5px;overflow-y:auto;list-style:none;border:1px solid #c9d1e3;border-radius:10px;background:#fff;box-shadow:0 14px 32px #1f29372e}.hubspot-suggestions li{border-radius:7px;padding:9px 10px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:2px 12px;cursor:pointer}.hubspot-suggestions li.active{color:#3546ad;background:#eef0ff}.hubspot-suggestions strong,.hubspot-suggestions span,.hubspot-suggestions small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hubspot-suggestions strong{font-size:.86rem}.hubspot-suggestions span{color:#46506a;font-size:.8rem}.hubspot-suggestions small{grid-column:1 / -1;color:var(--muted);font-size:.73rem}.contact-search-feedback{min-height:17px;display:flex;align-items:baseline;justify-content:space-between;gap:10px;color:var(--muted)}.contact-search-feedback small{line-height:1.45}.contact-search-feedback.ready{color:var(--good)}.contact-search-feedback.not-found,.contact-search-feedback.unavailable{color:var(--warn)}.hubspot-review{border:1px solid #cbd7f7;border-radius:10px;padding:13px;color:#405391;background:#f7f8ff}.hubspot-review-heading{display:flex;flex-direction:column;gap:3px;font-size:.84rem}.hubspot-review-heading>span{color:var(--muted);font-size:.75rem}.hubspot-conflicts{margin-top:11px;display:grid;gap:7px}.hubspot-conflict{border:1px solid #dce2f6;border-radius:8px;padding:9px 10px;display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:start;color:var(--ink);background:#fff;cursor:pointer}.hubspot-conflict>input{margin:3px 0 0;accent-color:var(--primary)}.hubspot-conflict>span,.hubspot-conflict small{display:flex;flex-direction:column;gap:2px}.hubspot-conflict strong{font-size:.78rem}.hubspot-conflict small{color:var(--muted);font-size:.72rem}.hubspot-conflict small span{overflow-wrap:anywhere;color:#46506a}.hubspot-review-actions{margin-top:11px;display:flex;flex-wrap:wrap;gap:7px}.section-heading{margin:34px 2px 15px;display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading span{color:var(--primary-dark);font-size:.72rem;font-weight:800;letter-spacing:.15em}.section-heading h2{margin:3px 0 0;font-size:1.45rem}.section-meta{color:var(--muted);font-size:.86rem}.scenarios{display:grid;gap:18px}.scenarios.compare{grid-template-columns:repeat(auto-fit,minmax(min(690px,100%),1fr));align-items:start}.scenario-card{min-width:0;overflow:hidden}.scenario-header{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:linear-gradient(90deg,#fafaff,#fff)}.scenario-title-input{width:min(360px,70%);border:0;border-bottom:1px solid transparent;padding:4px 0;color:var(--ink);font-size:1.13rem;font-weight:800;background:transparent;outline:none}.scenario-title-input:focus{border-bottom-color:var(--primary)}.scenario-config{padding:18px 20px 12px;display:grid;grid-template-columns:1.4fr 1fr .8fr .8fr;gap:12px}.option-grid{padding:8px 20px 5px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.option-grid.three{padding:0;grid-template-columns:repeat(3,1fr)}.option-box{min-height:64px;border:1px solid #d7dbe4;border-radius:10px;padding:12px;display:flex;gap:10px;align-items:flex-start;color:#4b5563;background:#fff;cursor:pointer;transition:.12s ease}.option-box:hover{border-color:#aab4f1}.option-box.selected{border-color:var(--primary);color:#3848ad;background:#f3f4ff;box-shadow:inset 0 0 0 1px #667eea40}.option-box.disabled{opacity:.48;cursor:not-allowed}.option-box input{margin:3px 0 0;accent-color:var(--primary)}.option-box span{display:flex;flex-direction:column;gap:3px}.option-box small{color:var(--muted);font-size:.75rem}.warranty-group{padding:12px 20px 20px}.warranty-group>.group-label{display:block;margin-bottom:8px}.line-items-heading,.print-line-items-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.line-items-heading{padding:11px 20px;border-top:1px solid var(--line);background:#fafbfc}.line-items-heading>strong,.print-line-items-heading>strong{color:#3f4859;font-size:.76rem;letter-spacing:.07em;text-transform:uppercase}.pricing-audience-badge{border-radius:999px;padding:5px 11px;display:inline-flex;align-items:center;gap:4px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--purple));font-size:.7rem;font-weight:600;letter-spacing:.025em;white-space:nowrap}.pricing-audience-badge strong{font-weight:850}.line-items-wrap{width:100%;overflow-x:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.line-items,.print-table{width:100%;border-collapse:collapse}.line-items{min-width:850px}.line-items th,.line-items td{padding:10px 9px;border-bottom:1px solid #e8eaf0;vertical-align:top}.line-items th{color:#525b6d;font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;background:#eff1f6}.line-items .line-group-row th{padding:7px 10px 5px;color:#687184;background:#f7f7f9;font-size:.68rem;letter-spacing:.08em;text-align:left}.line-items td:first-child{width:31%}.line-items tbody tr:last-child td{border-bottom:0}.line-items strong,.line-items .sku{display:block}.line-items strong{font-size:.83rem}.sku{margin-top:4px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.7rem}.number{text-align:right;white-space:nowrap}.suggested{color:#606d85;background:#fafbfc}.table-input{border:1px solid #d8dce4;border-radius:6px;padding:6px;outline:none}.table-input:focus{border-color:var(--primary)}.number-input{width:64px;text-align:right}.money-input{width:104px;text-align:right}.item-name,.sku-input,.billing-input{display:block;width:100%;margin-bottom:4px}.billing-input{max-width:120px}.discount-input{display:flex;align-items:center;justify-content:flex-end;gap:3px}.override-label{display:block;margin-top:3px;color:var(--warn);font-size:.64rem}.total-cell{font-weight:800}.line-actions{display:flex;justify-content:flex-end;gap:2px}.icon-button{width:32px;height:32px;border:0;border-radius:7px;padding:0;color:var(--muted);background:transparent;font-size:1.15rem}.icon-button:hover{background:#edf0f5}.danger-text{color:var(--danger)}.add-product{padding:13px 20px;display:flex;justify-content:space-between;gap:10px;background:#fafbfc}.catalog-search{flex:1;display:flex;gap:8px}.catalog-search input{max-width:520px}.scenario-footer{padding:20px;display:grid;grid-template-columns:1.3fr minmax(310px,.7fr);gap:24px;align-items:start}.included-panel{border:1px solid #dce1fa;border-radius:10px;padding:15px;color:#445070;background:#f5f6ff}.included-panel strong{color:#4d5cc4}.included-panel p{margin:7px 0 0;font-size:.8rem;line-height:1.55}.totals{border:1px solid var(--line);border-radius:10px;overflow:hidden}.totals>div{padding:10px 12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;font-size:.82rem}.totals>small{display:block;padding:0 12px 9px;color:var(--muted);text-align:right}.totals .discount-total{color:var(--good)}.totals .grand-total{border-bottom:0;padding:13px 12px;color:#fff;background:#303542;font-size:.94rem}.scenario-meta{padding:8px 20px;border-top:1px solid var(--line);color:var(--muted);background:#fafafa;font-size:.72rem;text-align:right}.add-scenario{width:100%;min-height:54px;margin-top:14px;border:1px dashed #a9b3ee;color:#5263cc;background:#ffffffa6}.terms-panel{margin-top:26px}.terms-grid{grid-template-columns:1fr 1fr}.validity-pills{min-height:42px}.terms-grid small{color:var(--muted)}.app-footer{min-height:54px;padding:14px clamp(24px,4vw,64px);border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:var(--muted);background:#fff;font-size:.77rem}.alert{margin:0 0 12px;border:1px solid;border-radius:10px;padding:11px 14px;font-size:.84rem}.alert.warning{border-color:#f0d7aa;color:#80510a;background:#fff9ed}.alert.info{border-color:#cbd7f7;color:#405391;background:#f3f6ff}.alert.success{border-color:#bfe6d6;color:#116647;background:#effbf6}.alert.error{border-color:#efc0c8;color:#9d293a;background:#fff3f5}.action-alert{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-backdrop{position:fixed;inset:0;z-index:1000;padding:30px;display:grid;place-items:center;background:#141823a3}.modal{width:min(900px,100%);max-height:calc(100vh - 60px);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 25px 80px #00000040}.modal-header{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:start;justify-content:space-between}.modal-header h2{margin:0 0 4px}.modal-header p{margin:0;color:var(--muted);font-size:.85rem}.deal-modal{width:min(760px,100%)}.deal-form{display:flex;flex-direction:column;max-height:calc(100vh - 170px)}.deal-form-body,.deal-result{padding:20px 22px;overflow-y:auto}.deal-result{max-height:calc(100vh - 170px)}.deal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.deal-grid .field:first-child{grid-column:1 / -1}.deal-name-field{margin-bottom:16px}.deal-preview{margin:20px 0 12px;border:1px solid var(--line);border-radius:12px;padding:15px;display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr);gap:18px;background:var(--soft)}.deal-preview div{display:flex;flex-direction:column;gap:5px}.deal-preview span,.deal-associations dt{color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.deal-preview strong{overflow-wrap:anywhere}.deal-stage-note{margin:0 0 16px;color:var(--muted);font-size:.82rem;line-height:1.45}.deal-modal-footer{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:var(--soft)}.deal-result>.alert.success{display:flex;flex-direction:column;gap:5px}.deal-associations{margin:18px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.deal-associations div{border:1px solid var(--line);border-radius:10px;padding:12px}.deal-associations dd{margin:5px 0 0;font-weight:700}.deal-warning-list{margin:7px 0 0;padding-left:20px}.deal-result .deal-modal-footer{margin:20px -22px -20px}.library-search{padding:14px 22px;display:flex;gap:8px;background:var(--soft)}.library-list{max-height:65vh;overflow-y:auto;padding:8px 22px 22px}.library-item{border-bottom:1px solid var(--line);padding:12px 0;display:flex;align-items:center;gap:12px}.library-main{flex:1;border:0;padding:5px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;color:var(--ink);text-align:left;background:transparent}.library-main span{color:#4b5563}.library-main small,.muted{color:var(--muted)}.library-actions{display:flex;gap:5px}.loading-state,.fatal-state{min-height:100vh;padding:30px;display:grid;place-content:center;justify-items:center;text-align:center}.spinner{width:42px;height:42px;border:4px solid #d8dcf7;border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.quote-view{position:fixed;inset:0;z-index:900;overflow-y:auto;background:#d9dde5}.quote-view-toolbar{position:sticky;top:0;z-index:2;min-height:62px;padding:10px 24px;display:flex;justify-content:space-between;align-items:center;color:#fff;background:#252a35;box-shadow:0 4px 12px #0003}.quote-view-toolbar div{display:flex;gap:8px}.print-document{width:min(1120px,calc(100% - 32px));margin:24px auto;color:#1f2937;background:#fff;box-shadow:0 12px 45px #00000029}.print-hero{padding:30px 40px;display:flex;justify-content:space-between;gap:30px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--purple))}.print-hero h1{margin:5px 0 0;font-size:2rem}.print-hero dl{margin:0;display:grid;grid-template-columns:auto auto;gap:4px 14px;font-size:.82rem}.print-hero dt{opacity:.72}.print-hero dd{margin:0;font-weight:700;text-align:right}.print-parties{padding:24px 40px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:20px}.print-party{min-height:120px;border:1px solid var(--line);border-radius:10px;padding:15px;display:flex;flex-direction:column;gap:3px;background:#f8f8fa}.print-party h3{margin:0 0 8px;color:var(--muted);font-size:.7rem;letter-spacing:.07em;text-transform:uppercase}.print-party span{color:#5d6472;font-size:.82rem}.print-scenario{padding:26px 40px;border-bottom:1px solid var(--line)}.print-section-title{margin-bottom:14px;display:flex;align-items:end;justify-content:space-between}.print-section-title span{color:var(--primary);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.print-section-title h2{margin:2px 0 0}.print-section-title>strong{color:var(--muted);font-size:.8rem}.print-line-items-heading{margin-bottom:8px}.print-table{border:1px solid var(--line);font-size:.75rem}.print-table th,.print-table td{padding:9px 8px;border-bottom:1px solid var(--line)}.print-table th{color:#4b5563;background:#e9ebf0;font-size:.66rem;letter-spacing:.04em;text-transform:uppercase}.print-table .line-group-row th{padding:7px 10px 5px;color:#687184;background:#f7f7f9;font-size:.68rem;letter-spacing:.08em;text-align:left}.print-table small{display:block;color:var(--muted)}.print-summary{margin-top:18px;display:grid;grid-template-columns:1fr 360px;gap:22px}.print-summary aside{border:1px solid #dce1fa;border-radius:8px;padding:13px;color:#495575;background:#f6f7ff;font-size:.75rem}.print-summary aside p{margin:6px 0 0;line-height:1.5}.print-totals{font-size:.78rem}.print-totals>div{padding:7px 10px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.print-totals>small{display:block;padding:2px 10px 7px;color:var(--muted);text-align:right}.print-totals .print-discount{color:var(--good)}.print-totals .print-grand-total{margin-top:4px;border-radius:6px;color:#fff;background:#303542;font-size:.86rem}.print-terms{padding:24px 40px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.print-terms h3{margin:0 0 5px;color:var(--muted);font-size:.68rem;letter-spacing:.07em;text-transform:uppercase}.print-terms p{margin:0;white-space:pre-wrap;font-size:.82rem;line-height:1.5}.print-footer{padding:16px 40px;color:var(--muted);background:#f6f7f9;font-size:.74rem;text-align:center}@media(max-width:1050px){.app-header{align-items:flex-start;flex-direction:column}.header-actions{justify-content:flex-start}.control-bar{grid-template-columns:repeat(2,1fr)}.mode-field{grid-column:1 / -1}.scenario-config{grid-template-columns:repeat(2,1fr)}}@media(max-width:740px){.workspace{width:min(100% - 18px,1800px)}.control-bar,.parties-grid,.form-grid,.terms-grid,.scenario-footer,.print-summary,.deal-grid,.deal-preview,.deal-associations{grid-template-columns:1fr}.deal-grid .field:first-child,.mode-field,.full{grid-column:auto}.option-grid.three{grid-template-columns:1fr}.add-product,.catalog-search,.line-items-heading,.print-line-items-heading,.library-item{align-items:stretch;flex-direction:column}.lookup-feedback,.contact-search-feedback{align-items:flex-start;flex-direction:column;gap:4px}.hubspot-suggestions li{grid-template-columns:1fr}.hubspot-suggestions small{grid-column:auto}.app-footer{flex-direction:column}.modal-backdrop{padding:10px}}@page{size:A4 portrait;margin:11mm}@media print{:root,body{background:#fff!important}.no-print,.app-shell{display:none!important}.quote-view{position:static;overflow:visible;background:#fff}.print-document{width:100%;margin:0;box-shadow:none}.print-hero{print-color-adjust:exact;-webkit-print-color-adjust:exact}.print-scenario{padding:18px 10px}.print-page-break{break-before:page}.print-table tr,.print-summary,.print-party,.print-totals{break-inside:avoid}.print-table .line-group-row{break-after:avoid}.print-parties,.print-terms{padding-left:10px;padding-right:10px}.print-table th,.pricing-audience-badge,.print-grand-total{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
