:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.5;font-weight:400;color:#1a1a1a;background-color:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh}button{font-family:inherit}.term-sheet-wrapper{width:100%;max-width:816px;margin:0 auto;background:#fff;box-shadow:0 2px 12px #00000014}.letter-page{width:100%;min-height:1056px;padding:48px 56px 56px;box-sizing:border-box;font-family:Georgia,Times New Roman,serif;font-size:12px;line-height:1.4;color:#1a1a1a;background:#fff}.ts-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid var(--color-green, #155a2b)}[data-pdf-capture=true] .ts-header{border-bottom-width:1px}.ts-logo img{height:44px;width:auto;display:block}.ts-meta{text-align:right;font-size:12px}.ts-meta p{margin:2px 0}.ts-date{font-weight:600;margin-bottom:6px!important}.ts-intro{margin-bottom:20px}.ts-intro p{margin:0}.ts-offer-table-wrap{margin-bottom:24px;overflow:hidden}.ts-offer-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}.ts-offer-table th,.ts-offer-table td{border:1px solid #333;padding:6px 5px;text-align:left;vertical-align:middle;overflow:hidden;min-width:0;word-break:break-word;box-sizing:border-box}[data-pdf-capture=true] .ts-offer-table{border-collapse:separate;border-spacing:0}[data-pdf-capture=true] .ts-offer-table th,[data-pdf-capture=true] .ts-offer-table td{border:none;border-right:.5px solid #333;border-bottom:.5px solid #333}[data-pdf-capture=true] .ts-offer-table th:first-child,[data-pdf-capture=true] .ts-offer-table td:first-child{border-left:.5px solid #333}[data-pdf-capture=true] .ts-offer-table thead tr:first-child th{border-top:.5px solid #333}[data-pdf-capture=true] .ts-prepayment-table{border-collapse:separate;border-spacing:0}[data-pdf-capture=true] .ts-prepayment-table th,[data-pdf-capture=true] .ts-prepayment-table td{border:none;border-right:.5px solid #333;border-bottom:.5px solid #333}[data-pdf-capture=true] .ts-prepayment-table th:first-child,[data-pdf-capture=true] .ts-prepayment-table td:first-child{border-left:.5px solid #333}[data-pdf-capture=true] .ts-prepayment-table thead tr:first-child th{border-top:.5px solid #333}.ts-offer-table th{background:var(--color-green, #155a2b);color:#fff;font-weight:600;line-height:1.2;white-space:normal;word-break:normal;overflow-wrap:normal}.ts-offer-table td{white-space:normal}.ts-section{margin-bottom:20px}.ts-section h3{font-size:13px;margin:0 0 8px;color:var(--color-green, #155a2b);font-family:inherit}.ts-section h4{font-size:12px;margin:12px 0 6px;font-weight:600;font-family:inherit}.ts-text{white-space:pre-wrap;margin:0}.ts-prepayment-block{margin-bottom:16px}.ts-prepayment-table{width:100%;max-width:360px;border-collapse:collapse;font-size:11px}.ts-prepayment-table th,.ts-prepayment-table td{border:1px solid #333;padding:6px 8px;text-align:left}.ts-prepayment-table th{background:var(--color-green, #155a2b);color:#fff;font-weight:600}.ts-stipulations{margin:0;padding-left:20px}.ts-stipulations li{margin-bottom:4px}.ts-footer{margin-top:32px;padding-top:16px;border-top:1px solid #ccc;font-size:11px;color:#444}[data-pdf-capture=true] .ts-footer{border-top-width:.5px}.ts-disclaimer{margin:0 0 14px;font-style:italic;line-height:1.35}.ts-contact-block{margin-bottom:12px;padding-top:2px}.ts-contact-name{margin:0 0 4px;font-weight:600;font-size:12px;color:#1a1a1a}.ts-contact-detail{margin:0 0 2px;font-size:11px;color:#444}.ts-company{margin:4px 0 2px;color:var(--color-green, #155a2b);font-weight:600;font-size:11px}.ts-address{margin:0;font-size:11px;color:#555}:root{--color-orange: #ff8414;--color-green: #155a2b;--color-green-dark: #0f3d1e;--color-orange-light: #ffa347;--panel-bg: #f8f9fa;--border: #dee2e6}.app{min-height:100vh;background:linear-gradient(135deg,var(--panel-bg) 0%,#e9ecef 100%);position:relative}.modal-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:10px;padding:1.5rem;max-width:400px;box-shadow:0 8px 32px #0003}.modal-title{margin:0 0 .75rem;font-size:1.15rem;color:#1a1a1a}.modal-message{margin:0 0 1.25rem;color:#444;line-height:1.45}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end}.modal-actions .btn-primary,.modal-actions .btn-secondary{margin:0}.app-header{background:var(--color-green);color:#fff;padding:1rem 1.5rem;box-shadow:0 2px 8px #155a2b4d}.app-header h1{margin:0;font-size:1.5rem;font-weight:700}.tagline{margin:.25rem 0 0;font-size:.9rem;opacity:.95}.app-body{display:grid;grid-template-columns:380px 1fr;gap:0;max-width:1600px;margin:0 auto;height:calc(100vh - 80px);min-height:0;overflow:hidden}.form-panel{background:#fff;border-right:1px solid var(--border);padding:1.25rem;overflow-y:auto;overflow-x:hidden;min-height:0;box-shadow:2px 0 12px #0000000a}.form-section{margin-bottom:1.75rem}.form-section h2{font-size:1rem;color:var(--color-green);margin:0 0 .75rem;padding-bottom:.35rem;border-bottom:2px solid var(--color-orange)}.form-section-collapsible .form-section-head{cursor:pointer;display:flex;align-items:center;justify-content:space-between;margin:0 0 .75rem;padding-bottom:.35rem;border-bottom:2px solid var(--color-orange);-webkit-user-select:none;user-select:none}.form-section-collapsible .form-section-head:hover{color:var(--color-orange)}.form-section-chevron{font-size:.7rem;opacity:.8}.form-section-body{margin-top:.25rem}.form-section h3{font-size:.9rem;margin:1rem 0 .5rem;color:#333}.offer-block-head{cursor:pointer;display:flex;align-items:center;justify-content:space-between;margin:1rem 0 .5rem;padding:.25rem 0;-webkit-user-select:none;user-select:none}.offer-block-head:hover{color:var(--color-orange)}.offer-block-body{margin-top:.25rem}.form-section label{display:block;font-size:.8rem;font-weight:600;color:#444;margin-top:.6rem;margin-bottom:.25rem}.form-section label:first-of-type{margin-top:0}.form-section input[type=number]{-moz-appearance:textfield}.form-section input[type=number]::-webkit-outer-spin-button,.form-section input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.form-section input[type=date],.form-section input[type=number],.form-section input[type=text],.form-section select,.form-section textarea{width:100%;padding:.5rem .6rem;border:1px solid var(--border);border-radius:6px;font-size:1rem;font-family:inherit;box-sizing:border-box}.form-section input:focus,.form-section select:focus,.form-section textarea:focus{outline:none;border-color:var(--color-orange);box-shadow:0 0 0 2px #ff841433}.form-section input.form-input-readonly,.form-section input[readOnly].form-input-readonly{background:#f1f3f5;color:#495057;cursor:default}.form-section input.form-input-override{background:#ff84141f;border-color:#ff841466}.form-section input.form-input-override:focus{border-color:var(--color-orange);box-shadow:0 0 0 2px #ff841440}.form-row{margin-top:.5rem}.form-row label{margin-top:.35rem}.checkbox-row{display:flex;align-items:center;gap:.5rem;margin-top:.75rem}.checkbox-row input[type=checkbox]{width:auto;accent-color:var(--color-green)}.checkbox-row label{margin:0;font-weight:500}.offer-block{background:var(--panel-bg);border-radius:8px;padding:.75rem 1rem;margin-top:.75rem;border:1px solid var(--border)}.prepayment-rows{margin-top:.75rem;padding-top:.5rem;border-top:1px dashed var(--border)}.prepayment-rows h4{font-size:.85rem;margin:0 0 .5rem}.prepayment-row{display:flex;gap:.5rem;align-items:center;margin-bottom:.4rem}.prepayment-row input{flex:1;min-width:0;padding:.4rem .5rem;font-size:.85rem}.btn-remove{flex-shrink:0;width:28px;height:28px;padding:0;border:1px solid #dc3545;background:#fff;color:#dc3545;border-radius:6px;cursor:pointer;font-size:1.1rem;line-height:1;display:inline-flex;align-items:center;justify-content:center}.btn-remove:hover{background:#dc3545;color:#fff}.btn-secondary{margin-top:.5rem;padding:.4rem .75rem;font-size:.85rem;background:#fff;border:1px solid var(--color-green);color:var(--color-green);border-radius:6px;cursor:pointer;font-weight:500}.btn-secondary:hover{background:var(--color-green);color:#fff}.hint{font-size:.8rem;color:#666;margin:0 0 .5rem}.stipulation-list{margin-bottom:.75rem}.stipulation-item{display:flex;align-items:center;justify-content:space-between;padding:.4rem .5rem;background:#f1f3f5;border-radius:4px;margin-bottom:.35rem;font-size:.9rem}.stipulation-item span{flex:1;min-width:0}.add-stipulation select{width:100%;margin-bottom:.5rem}.custom-stipulation{display:flex;gap:.5rem;margin-top:.5rem}.custom-stipulation input{flex:1;min-width:0}.preview-panel{padding:1.25rem;display:flex;flex-direction:column;align-items:center;min-height:0;overflow-y:auto;overflow-x:hidden}.preview-actions{margin-bottom:1rem;width:100%;max-width:816px;display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}.preview-actions .btn-primary,.preview-actions .btn-secondary{margin:0;padding:0 1.5rem;font-size:1rem;font-weight:600;height:42px;min-height:42px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}.preview-actions .btn-secondary{font-weight:500}.preview-download-msg{color:var(--color-green);font-size:.9rem;font-weight:500;margin-left:.25rem}.btn-primary{padding:.65rem 1.5rem;font-size:1rem;font-weight:600;background:var(--color-orange);color:#fff;border:none;border-radius:8px;cursor:pointer;box-shadow:0 2px 6px #ff841466}.btn-primary:hover{background:#e67610;box-shadow:0 4px 10px #ff841473}.btn-primary:active{transform:scale(.98)}@media(max-width:1100px){.app-body{grid-template-columns:1fr}.form-panel{border-right:none;border-bottom:1px solid var(--border)}}
