@font-face{font-family:DM;src:url('/assets/body.ttf')}@font-face{font-family:Lora;src:url('/assets/heading.ttf')}
:root{--brown:#563c2a;--dark:#302b25;--muted:#8a8379;--line:#e8e3db;--cream:#f5f2ec;--paper:#fff;--green:#70836c}
*{box-sizing:border-box}body{margin:0;font-family:DM,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:var(--dark);background:#f6f5f2;font-size:13px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #b19b83;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:none;border-color:#9d846b!important;box-shadow:0 0 0 3px #563c2a0b}button{transition:background .18s,box-shadow .18s}.sidebar{width:234px;position:fixed;inset:0 auto 0 0;background:#fffefa;border-right:1px solid var(--line);padding:31px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:block;text-decoration:none;margin:0 9px 35px}.brand img{display:block;width:143px;height:46px;object-fit:contain}.brand>span{display:block;font-size:9px;letter-spacing:2.3px;color:#9c8a78;margin:4px 0 0 4px}.workspace-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin:0 2px 14px}.workspace-label span{background:#efeee6;color:#767966;padding:3px 7px;border-radius:4px;font-size:10px}.button{border:1px solid transparent;border-radius:7px;padding:11px 17px;font-weight:600;white-space:nowrap;line-height:1.3}.button.primary{background:var(--brown);color:#fff}.button.primary:hover{background:#402d1e}.button.secondary{background:#fff;border-color:#ddd6ca;color:#605345}.button.secondary:hover{background:#f3efe8}.button.wide{width:100%;text-align:left;padding:13px 15px;font-weight:500}.wide span{font-size:20px;vertical-align:-1px;margin-right:7px}.list-heading{display:flex;justify-content:space-between;color:#827a6d;font-size:11px;margin:33px 2px 12px}.list-heading span{color:#9b9385}.search{display:flex;gap:6px;align-items:center;border:1px solid var(--line);background:#fff;border-radius:6px;padding:0 10px;margin-bottom:13px}.search>span{font-size:23px;color:#8c8274}.search input{width:100%;border:0!important;background:transparent;padding:9px 0!important;font-size:11px;box-shadow:none!important}#quote-list{overflow-y:auto;margin:0 -7px;padding:0 7px}.quote-entry{display:block;width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:7px;padding:13px 11px;margin:0 0 8px}.quote-entry:hover{background:#f6f2eb}.quote-entry.active{background:#eee8de;border-color:#e4dbcd}.quote-entry-top{display:flex;justify-content:space-between;color:#8d7d6b;font-size:9px;letter-spacing:.3px;align-items:center}.quote-entry-top i{height:5px;width:5px;background:#a39179;border-radius:50%}.quote-entry strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:8px 0;font-weight:600;font-size:12px}.quote-entry-bottom{display:flex;justify-content:space-between;font-size:9px;color:#9a8d7d;gap:4px}.sidebar-bottom{margin-top:auto;padding-top:24px;border-top:1px solid var(--line);font-size:10px;color:#8f8779;line-height:2}.sidebar-bottom div{color:#b3ac9f;font-size:9px}.status-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px;vertical-align:1px}.empty-list{padding:20px 0;color:var(--muted);font-size:12px}main{margin-left:234px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:26px 34px 23px;background:#fffefa;border-bottom:1px solid var(--line)}.eyebrow{font-size:9px;letter-spacing:2px;color:#ac9a85;margin-bottom:7px}h1{margin:0;font-size:22px;font-weight:550;letter-spacing:.6px}.top-actions{display:flex;gap:10px;align-items:center}#save-status{font-size:11px;color:#8d9582;margin-right:9px}#save-status.dirty{color:#a37c45}.intro{display:flex;justify-content:space-between;align-items:center;padding:27px 34px 25px}.intro h2{font-size:17px;font-weight:500;letter-spacing:.2px;margin:0 0 8px}.intro p{font-size:11px;color:#9a9286;margin:0}.badge{font-size:10px;padding:7px 10px;border:1px solid #e3ddd3;border-radius:20px;color:#a28c74;background:#f9f6ef}.workspace{display:grid;grid-template-columns:minmax(410px,1.05fr) minmax(390px,1fr);gap:25px;padding:0 34px 42px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:23px 23px 21px;margin-bottom:17px;box-shadow:0 3px 9px #3c2e1402}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:22px}.section-title h3{font-size:14px;font-weight:550;margin:0}.section-title .step{display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:#f1ece2;color:#a28b70;font-size:9px}.section-title select{margin-left:auto;width:72px;padding:5px 8px;background:#fcfaf7;font-size:11px}.fields{display:grid;gap:14px}.fields.two{grid-template-columns:1fr 1fr}.fields.three{grid-template-columns:1.15fr 1fr 1fr;gap:10px}.fields label{min-width:0}label{display:block;font-size:11px;color:#776d60;margin-bottom:14px;font-weight:500}label small{font-weight:400;color:#b0a597;font-size:9px;margin-left:3px}input,textarea,select{width:100%;background:#fff;border:1px solid #e5dfd5;border-radius:5px;padding:9px 10px;color:#514a41;transition:border-color .15s;min-width:0}input,textarea{margin-top:7px;font-size:12px}input[type=date]{font-size:11px;padding-left:7px;padding-right:5px;min-height:35px}textarea{line-height:1.7;resize:vertical}input::placeholder,textarea::placeholder{color:#b8b1a7;font-size:11px}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button{appearance:none}.product-card{border:1px solid #e9e3d9;border-radius:7px;background:#fff;margin-bottom:13px}.product-head{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;background:#faf8f4;border-bottom:1px solid #eee9e1;border-radius:7px 7px 0 0;color:#a48c71;font-size:9px;letter-spacing:1px}.remove-item{background:none;border:0;font-size:20px;color:#b2a595;line-height:1;padding:0 2px}.remove-item:hover{color:#a84830}.product-content{display:flex;gap:14px;padding:14px}.image-column{width:77px;flex-shrink:0}.image-upload{width:77px;height:86px;border:1px dashed #d6cbbd;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#fcfaf7;position:relative;overflow:hidden;cursor:pointer;margin:0}.image-upload>span{font-size:25px;color:#b7a78f;text-align:center;font-weight:400}.image-upload small{display:block;font-size:9px;margin:3px 0 0;color:#a89983}.image-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}.image-upload img{width:100%;height:100%;object-fit:contain;background:#fff}.image-hint{display:block;font-size:7px;color:#b5aa9c;text-align:center;margin-top:7px;white-space:nowrap}.remove-image{display:block;border:0;background:none;color:#9d8a73;font-size:9px;margin:5px auto;padding:3px}.product-fields{flex:1;min-width:0}.product-fields label{font-size:10px;margin-bottom:11px}.product-fields input,.product-fields textarea{font-size:11px;margin-top:5px;padding:8px 9px}.product-fields .fields{gap:10px}.product-numbers{grid-template-columns:.65fr 1fr 1fr;align-items:start}.line-amount{padding-top:1px;font-size:9px;color:#9f907d;min-width:0}.line-amount strong{display:block;margin-top:16px;word-break:break-word;font-size:11px;color:#796247;font-weight:500}.add-item{border:1px dashed #d5c8b6;background:#fbf9f4;border-radius:6px;color:#987d5e;width:100%;padding:12px;font-size:11px}.add-item:hover{background:#f1ece2}.charges{margin-top:24px}.total-line{border-top:1px solid #eee7dc;padding-top:17px;display:flex;justify-content:space-between;align-items:center;color:#796c5b;font-size:12px}.total-line small{display:block;font-size:9px;color:#b0a18c;margin-top:5px}.total-line strong{font-size:22px;font-weight:500;color:#65492e}.field-note{font-size:10px;color:#aa9e8d;line-height:1.8;margin:-5px 0 18px}.terms{padding:15px 0;margin:18px 0;border-top:1px solid #eee9df;border-bottom:1px solid #eee9df}.terms>span{font-size:10px;color:#9d876c}.terms p{font-size:11px;color:#8e7c65;line-height:1.8;margin:7px 0 0}.terms p[lang]{font-size:10px;color:#a79a89;line-height:1.7}.company-panel summary{font-size:12px;color:#7a6c5d;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.company-panel summary::after{content:'＋';margin-left:10px}.company-panel[open] summary::after{content:'−'}.company-panel summary span{margin-left:auto;font-size:10px;color:#aa9d8b}.company-panel[open] summary{margin-bottom:20px}.delete-quote{background:none;border:0;font-size:10px;color:#b99d8c;padding:3px 1px}.delete-quote:hover{color:#a74029}.preview-pane{position:sticky;top:20px;min-width:0}.preview-top{display:flex;align-items:center;justify-content:space-between;margin:2px 1px 13px;color:#7e776a;font-size:11px}.preview-top small{color:#b1a89a;margin-left:6px;font-size:9px}.preview-top>span{letter-spacing:1px;font-size:8px;color:#ad9d87}.paper-viewport{padding:14px;background:#eae7e0;border:1px solid #e0dbd2;border-radius:8px}.paper{background:#fff;padding:29px 24px 22px;min-height:650px;box-shadow:0 3px 18px #3521090a;font-family:DM,Arial,"PingFang SC",sans-serif;color:#484139;font-size:9px}.quote-header{display:flex;justify-content:space-between;gap:10px}.quote-header>div:first-child{max-width:60%}.quote-logo{width:109px;display:block;height:auto;margin:-5px 0 8px -2px}.quote-header strong{display:block;font-size:9px;font-weight:500;margin-bottom:4px}.quote-header span{display:block;color:#938b80;font-size:7px;line-height:1.6;overflow-wrap:anywhere}.quote-meta{text-align:right;min-width:110px}.quote-meta h2{font-size:16px;letter-spacing:.8px;color:var(--brown);font-weight:500;margin:5px 0 11px}.quote-meta span{font-size:7px}.quote-customer{display:flex;flex-direction:column;gap:3px;margin-top:28px}.quote-customer small{font-size:7px;letter-spacing:1px;color:#a79886;margin-bottom:3px}.quote-customer strong{font-size:9px;font-weight:500}.quote-customer span{font-size:8px;color:#91877a;line-height:1.5}.quote-greeting{font-size:7.5px;line-height:1.6;color:#a29480;margin:17px 0 14px}.quote-products{width:100%;border-collapse:collapse;table-layout:fixed;font-size:7px}.quote-products th{background:#f4efe7;color:#78644c;text-align:left;font-weight:500;padding:9px 5px;border-bottom:1px solid #e4dccf}.quote-products th:first-child{width:52%}.quote-products th:nth-child(2){width:9%;text-align:center}.quote-products th:nth-child(3){width:18%;text-align:right}.quote-products th:nth-child(4){width:21%;text-align:right}.quote-products td{padding:12px 5px;border-bottom:1px solid #eee8df;vertical-align:top;overflow-wrap:anywhere}.quote-products td:not(:first-child){text-align:right;color:#776c5d;white-space:nowrap}.quote-products td:nth-child(2){text-align:center}.preview-product{display:flex;gap:7px}.preview-product img{width:35px;height:35px;object-fit:contain;flex-shrink:0}.preview-product strong{display:block;font-size:8px;line-height:1.5;color:#675744;font-weight:500}.preview-product span{display:block;font-size:7px;color:#a29482;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.quote-totals{margin:15px 0 21px auto;width:65%;font-size:8px}.quote-totals>div{display:flex;justify-content:space-between;gap:10px;padding:5px 8px;color:#9d8e7b}.quote-totals>div>span:last-child{text-align:right}.quote-totals .grand-total{background:#f4efe7;color:#745a3f;padding:9px 8px;font-size:10px;margin-top:4px}.grand-total strong{font-weight:500}.quote-terms h3,.quote-payment h3{font-size:10px;font-weight:500;color:#6f5940;margin:0 0 8px}.quote-terms p,.quote-payment p{font-size:7.5px;line-height:1.7;margin:0 0 7px;color:#9b8c78}.quote-payment{margin-top:19px}.pay-now{display:inline-block;text-decoration:none;background:var(--brown);color:white;padding:10px 26px;border-radius:4px;font-size:9px;margin-top:4px}.pay-now:hover{background:#38281c}.quote-footer{display:flex;justify-content:space-between;gap:8px;margin-top:31px;padding-top:10px;border-top:1px solid #e8e1d7;color:#b1a391;font-size:7px}.preview-note{text-align:center;font-size:9px;color:#aa9a85;letter-spacing:.3px;margin:16px 0}.toast{position:fixed;bottom:25px;left:calc(50% + 80px);transform:translateX(-50%);background:#3d4937;color:#fff;padding:13px 22px;box-shadow:0 6px 24px #20130626;border-radius:8px;font-size:12px;max-width:600px;line-height:1.8;white-space:pre-line;z-index:100}.toast.error{background:#71452f}
@media(min-width:1650px){.workspace{grid-template-columns:minmax(500px,1fr) minmax(460px,560px);max-width:1530px}.paper{padding:35px 31px;min-height:690px}.quote-products{font-size:8px}.quote-products td{padding:15px 6px}.preview-product strong{font-size:9px}.preview-product span{font-size:8px}.quote-terms p,.quote-payment p{font-size:8px}.quote-header span{font-size:8px}}
@media(max-width:1250px){.sidebar{width:205px;padding:26px 16px}main{margin-left:205px}.topbar{padding:24px}.intro{padding:24px}.workspace{padding:0 24px 40px;gap:20px;grid-template-columns:minmax(370px,1fr) minmax(330px,.9fr)}.panel{padding:20px 17px}.paper-viewport{padding:10px}.paper{padding:24px 18px}.quote-header{display:block}.quote-header>div:first-child{max-width:100%}.quote-meta{text-align:left;display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:12px}.quote-meta h2{margin:0 6px 0 0;font-size:13px}.quote-customer{margin-top:20px}.fields.three{grid-template-columns:1fr 1fr}.fields.three>label:first-child{grid-column:1/-1}.badge{display:none}#save-status{font-size:10px;margin-right:0}.button{padding:10px 13px}.product-content{gap:10px;padding:12px}.image-column,.image-upload{width:62px}.image-hint{font-size:6px}.image-upload{height:72px}.product-fields .fields.two{grid-template-columns:1fr}.product-numbers{grid-template-columns:.6fr 1fr}.line-amount{grid-column:1/-1;display:flex;justify-content:space-between}.line-amount strong{margin-top:0}.quote-products th:first-child{width:45%}.quote-products th:nth-child(3){width:20%}.quote-products th:nth-child(4){width:26%}}
@media(max-width:1000px){.workspace{grid-template-columns:1fr}.preview-pane{position:static;max-width:650px;width:100%;margin:5px auto}.paper{min-height:720px;padding:35px}.quote-header{display:flex}.quote-header>div:first-child{max-width:60%}.quote-meta{display:block;text-align:right;margin-top:0}.quote-meta h2{font-size:20px;margin-bottom:10px}.quote-customer{margin-top:27px}.quote-products,.quote-products th{font-size:9px}.quote-products td{font-size:9px}.preview-product strong{font-size:10px}.preview-product span{font-size:8px}.quote-terms p,.quote-payment p{font-size:9px}.quote-totals{font-size:10px}.quote-header span{font-size:8px}.quote-customer span{font-size:10px}.quote-greeting{font-size:9px}.quote-terms h3,.quote-payment h3{font-size:12px}.paper-viewport{padding:17px}.product-fields .fields.two{grid-template-columns:1fr 1fr}.product-numbers{grid-template-columns:.6fr 1fr 1fr}.line-amount{display:block;grid-column:auto}.line-amount strong{margin-top:16px}.image-column,.image-upload{width:85px}.image-upload{height:95px}.image-hint{font-size:8px}.fields.three{grid-template-columns:1.1fr 1fr 1fr}.fields.three>label:first-child{grid-column:auto}.topbar{gap:15px}.top-actions{gap:7px}#save-status{display:none}}
@media(max-width:640px){.sidebar{position:static;width:auto;padding:15px 18px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{display:inline-block;margin:0}.brand img{width:112px;height:36px}.brand>span{font-size:7px;letter-spacing:1.6px;margin-top:0}.workspace-label,.sidebar-bottom,.list-heading,.search{display:none}.button.wide{width:auto;float:right;padding:10px 15px;margin-top:8px}#quote-list{display:flex;overflow-x:auto;gap:8px;margin-top:15px;padding-bottom:5px}.quote-entry{min-width:180px;max-width:220px;margin-bottom:0}.quote-entry-bottom{font-size:8px}main{margin-left:0}.topbar{padding:20px 18px}.topbar h1{font-size:19px}.top-actions .button{font-size:11px;padding:9px 11px}.eyebrow{font-size:7px}.intro{padding:22px 18px}.intro h2{font-size:15px}.intro p{font-size:10px;line-height:1.8}.workspace{padding:0 14px 30px}.fields.three{grid-template-columns:1fr 1fr}.fields.three>label:first-child{grid-column:1/-1}.panel{padding:20px 16px}.product-content{gap:10px;padding:12px 10px}.image-column,.image-upload{width:63px}.image-upload{height:77px}.image-hint{font-size:6px}.product-fields .fields.two{grid-template-columns:1fr}.product-numbers{grid-template-columns:.65fr 1fr}.line-amount{grid-column:1/-1;display:flex;justify-content:space-between}.line-amount strong{margin:0}.paper-viewport{padding:9px}.paper{padding:23px 18px;min-height:650px}.quote-logo{width:93px}.quote-header span{font-size:6px}.quote-header strong{font-size:8px}.quote-meta h2{font-size:12px}.quote-meta{min-width:94px}.quote-customer span{font-size:8px}.quote-greeting{font-size:7px}.quote-products,.quote-products th,.quote-products td{font-size:7px}.preview-product img{width:25px;height:25px}.preview-product strong{font-size:7px}.preview-product span{font-size:6px}.quote-totals{font-size:7px;width:72%}.quote-totals .grand-total{font-size:9px}.quote-terms h3,.quote-payment h3{font-size:9px}.quote-terms p,.quote-payment p{font-size:7px}.quote-footer{font-size:6px}.total-line strong{font-size:19px}.toast{left:50%;width:90%;max-width:500px}.fields{gap:11px}.company-panel summary span{font-size:9px}.preview-top small{font-size:8px}}

/* Consistent editor controls and comfortable field spacing. */
body{font-size:14px}
.editor label{font-size:12px;line-height:1.6}
.editor label small{font-size:10px;color:#9a8b77}
.editor input,.editor textarea,.editor select{font-size:13px;line-height:1.5;border-color:#dfd7cb}
.editor input:not([type=checkbox]):not([type=file]),.editor select{min-height:40px}
.editor input[type=checkbox]{height:17px;padding:0;flex-shrink:0;accent-color:var(--brown)}
input::placeholder,textarea::placeholder{color:#a1988b;opacity:1}
select,.section-title select{
  -webkit-appearance:none;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%23756049' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px 18px;
  padding:10px 46px 10px 12px;
  text-overflow:ellipsis;
  cursor:pointer;
}
.section-title select{width:100px;min-width:100px;padding:8px 42px 8px 12px;background-position:right 14px center;background-size:16px 16px;font-size:12px}
select:hover:not(:disabled){border-color:#b7a083}
input:read-only{background-color:#faf8f3;color:#8f806b}
input[type=date]{padding:9px 10px;font-size:12px}
input[type=date]::-webkit-calendar-picker-indicator{padding:3px;margin-left:3px;opacity:.65;cursor:pointer}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #baa07a40;outline-offset:1px}
.topbar{gap:16px;flex-wrap:wrap}
.top-actions{gap:8px;flex-wrap:wrap}
.button{min-height:40px;font-size:12px;padding:10px 15px;line-height:1.5}
#save-status{display:block;font-size:11px;line-height:1.7}
.intro p,.field-note{font-size:11px;line-height:1.85;color:#93836c}
.section-title{gap:11px;margin-bottom:23px;flex-wrap:wrap}
.section-title h3{font-size:15px}
.section-title .step{width:25px;height:25px;font-size:10px}
.panel{border-radius:10px}
.product-fields label{font-size:11px;line-height:1.6}
.product-fields input,.product-fields textarea{font-size:12px;padding:9px 10px}
.product-fields .fields{gap:12px}
.product-head{padding:12px 14px;font-size:10px}
.product-content{padding:16px 14px;gap:14px}
.remove-item{min-width:28px;min-height:28px;display:grid;place-items:center}
.add-item{min-height:42px;font-size:12px;line-height:1.6;padding:11px 14px}
.line-amount{font-size:10px}
.line-amount strong{font-size:12px;font-variant-numeric:tabular-nums}
.terms p,.terms p[lang]{font-size:11px;line-height:1.85}
.terms>span{font-size:11px}
.company-panel summary{font-size:13px;line-height:1.7;gap:10px;flex-wrap:wrap}
.company-panel summary span{font-size:11px}
.quote-entry strong{font-size:13px}
.quote-entry-top,.quote-entry-bottom{font-size:10px}
.sidebar .search input{min-height:38px;font-size:12px}
.delete-quote{font-size:12px;min-height:36px}
.preview-top,.preview-top small,.preview-note{font-size:11px;line-height:1.8}
.preview-top{gap:12px;flex-wrap:wrap}
.toast{font-size:13px;max-width:min(600px,calc(100vw - 32px));max-height:40dvh;overflow:auto}
@media(max-width:1550px){
  .fields.three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fields.three>label:first-child{grid-column:1/-1}
}
@media(max-width:1000px){
  .top-actions{width:100%;justify-content:flex-start}
  .top-actions #save-status{order:1;flex-basis:100%;margin:2px 0 0}
  .toast{left:50%}
}
@media(max-width:640px){
  .topbar{padding:23px 18px;align-items:flex-start;gap:15px}
  .topbar h1{font-size:22px}
  .top-actions .button{min-height:40px;padding:10px 13px;font-size:12px}
  .workspace{padding:0 14px 32px}
  .panel{padding:22px 17px}
  .product-content{gap:12px;padding:14px 11px}
  .product-fields .fields.two{grid-template-columns:minmax(0,1fr)}
  .product-fields input,.product-fields textarea{font-size:12px}
  .fields{gap:12px}
  .intro h2{font-size:16px;line-height:1.65}
  .intro p{font-size:12px;line-height:1.8}
  .field-note{font-size:11px}
  .preview-top small{font-size:10px;margin-left:0}
  .company-panel summary span{font-size:10px}
}
@media(forced-colors:active){select,.section-title select{appearance:auto;background-image:none}}

/* Quote editing uses the same Shopify application navigation. */
.shopify-embedded s-app-nav{display:none}
.shopify-embedded .sidebar{display:none}
.shopify-embedded main{margin-left:0}
.shopify-embedded .toast{left:50%}
