.pi-form{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:28px;align-items:start;margin-top:30px}.pi-main,.pi-lock{min-width:0}.pi-lock{border:0;padding:0;margin:0}.pi-step{border:1px solid #dedfd2;border-radius:22px;padding:24px;margin:0 0 24px;background:#fffef8;min-width:0}.pi-step legend{font-weight:750;font-size:17px;padding:0 9px;display:flex;align-items:center;gap:12px}.pi-step legend>span{display:inline-grid;place-items:center;background:#173f35;color:#efd493;border-radius:10px;font:700 12px system-ui;width:32px;height:32px}.pi-two,.pi-three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pi-three{grid-template-columns:repeat(3,minmax(0,1fr))}.pi-form .field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:650;min-width:0}.pi-form input:not([type=radio]):not([type=checkbox]):not([type=file]),.pi-form select,.pi-form textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d7ddd0;border-radius:12px;background:#f7f8f0;color:#203d33;padding:13px 14px;min-height:48px;font:inherit;outline:none}.pi-form input:focus,.pi-form select:focus,.pi-form textarea:focus{border-color:#327461;box-shadow:0 0 0 3px #32746118}.pi-help{font-size:12px;line-height:1.8;color:#647367;margin:12px 0 0}.pi-label{font-size:13px;font-weight:750;margin:24px 0 10px}.pi-label:first-child{margin-top:0}.pi-choice{display:block;position:relative;min-width:0;cursor:pointer}.pi-choice>input{position:absolute;opacity:0;width:1px;height:1px}.pi-choice>span{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:76px;border:1px solid #dce0d3;border-radius:14px;padding:14px 30px 14px 14px;background:#f8f8f0;transition:background .15s,border-color .15s;box-sizing:border-box}.pi-choice b{font-size:13px;line-height:1.6}.pi-choice small{font-size:var(--fs-xs);color:var(--muted);line-height:1.6;margin-top:3px}.pi-choice i{position:absolute;inset-inline-end:11px;top:12px;font-style:normal;opacity:0}.pi-choice input:checked+span{background:var(--selected-bg);border-color:var(--selected-line);color:var(--selected-ink)}.pi-choice input:checked+span i{opacity:1}.pi-choice input:focus-visible+span{outline:3px solid #367b64;outline-offset:3px}.pi-upload{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1.5px dashed #8fab91;background:#edf2e3;padding:24px 18px;border-radius:18px;text-align:center;cursor:pointer;margin-top:14px;overflow:hidden}.pi-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.pi-upload:focus-within{outline:3px solid #367b64;outline-offset:3px}.pi-upload-plus{background:#225949;color:#fff;border-radius:12px;display:grid;place-items:center;width:42px;height:42px;font-size:25px}.pi-upload strong{font-size:15px}.pi-upload small{font-size:var(--fs-xs);color:#61705f}.pi-document{background:white;border:1px solid #d7e0d1;border-radius:17px;padding:18px;margin-bottom:14px;box-shadow:0 5px 16px #24432e06;min-width:0}.pi-file-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.pi-file-head>div{flex:1;min-width:0}.pi-file-head b{display:block;overflow-wrap:anywhere;font-size:14px}.pi-file-head small{display:block;color:#67786a;font-size:var(--fs-xs);margin-top:5px;line-height:1.6}.pi-file-head img,.pi-file-icon{width:46px;height:54px;object-fit:cover;background:#edf2e4;border-radius:9px;flex-shrink:0}.pi-file-icon{display:grid;place-items:center;font:750 11px system-ui;color:#2a6754}.pi-file-head button{border:0;background:#f2f4ec;border-radius:50%;width:36px;height:36px;cursor:pointer;font-size:22px;color:#5c6d61;flex-shrink:0}.pi-segment{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.pi-segment label{font-size:12px;display:flex;align-items:center;gap:6px;padding:10px;background:#f2f5e9;border-radius:10px;cursor:pointer}.pi-segment input{accent-color:#28614e;width:17px;height:17px}.pi-file-settings{margin-top:14px}.pi-note{margin-top:22px}.pi-summary{position:sticky;top:96px;padding:26px;border:1px solid #d3ddcb;border-radius:22px;background:#edf1e2;color:#244536}.pi-summary h3{font-size:25px;line-height:1.3;margin:14px 0}.pi-summary p{font-size:13px;line-height:1.9}.pi-totals{padding:18px 0;margin:18px 0;border-block:1px solid #ced9c5;font-size:13px;line-height:2}.pi-totals b,.pi-totals span{font-weight:800;font-size:22px}.pi-summary .button{width:100%;justify-content:center;box-sizing:border-box;min-height:52px}.pi-summary small{display:block;font-size:var(--fs-xs);line-height:1.8;margin-top:17px}.pi-message{color:#96432d;overflow-wrap:anywhere}.pi-receipt{background:#edf2e3;border:1px solid #cdddc6;border-radius:24px;padding:38px;max-width:680px;margin:28px auto;text-align:center}.pi-check{display:inline-grid;place-items:center;border-radius:50%;background:#24634c;color:#fff;width:56px;height:56px;font-size:28px}.pi-reference{display:inline-block;background:#fffdf6;border-radius:12px;padding:14px 20px;font:700 20px system-ui}.pi-receipt p{line-height:1.9}.pi-receipt h3{font-size:27px}.pi-lock:disabled{opacity:.7}html[dir=rtl] .pi-choice>span{padding:14px 14px 14px 30px}@media(max-width:1000px){.pi-form{grid-template-columns:1fr}.pi-summary{position:static}}@media(max-width:520px){.pi-step{padding:18px 13px;border-radius:18px}.pi-step legend{font-size:15px}.pi-two{gap:9px}.pi-step:first-child .pi-two{grid-template-columns:1fr}.pi-document{padding:13px}.pi-choice>span{padding:12px 23px 12px 10px;min-height:85px}.pi-choice b{font-size:12px}.pi-choice small{font-size:var(--fs-xs)}.pi-three{gap:6px}.pi-three .pi-choice>span{padding:12px 7px;min-height:70px}.pi-three .pi-choice i{display:none}.pi-form select{padding-inline:7px;font-size:12px}.pi-summary{padding:22px}.pi-receipt{padding:25px 15px}.pi-receipt h3{font-size:22px}}

/* Keep the existing teal printing panel; paper cards use their own readable ink. */
#print::before,#print::after{pointer-events:none}
#print .pi-form{color:#203d33}
#print .pi-step legend{background:#fffef8;border-radius:12px;color:#203d33;padding:7px 10px}
#print .pi-summary h3,#print .pi-receipt{color:#203d33}
#print .pi-summary .eyebrow,#print .pi-receipt .eyebrow{color:#386653}
#print .pi-form .button.primary,#print .pi-receipt .button.primary{background:var(--action);color:var(--action-ink);border-color:var(--action);box-shadow:none;border-radius:13px}
#print .pi-summary .button{position:relative;z-index:1}

.pi-business{margin-top:24px;padding-top:20px;border-top:1px solid #d8dfd0}.pi-business .pi-label{margin-top:0}.pi-products .pi-choice>span{min-height:54px}.pi-more{border:0;background:transparent;color:#35674f;cursor:pointer;font:650 12px inherit;padding:14px 2px;min-height:44px}.pi-segment label{flex:1;justify-content:center;min-height:44px;box-sizing:border-box;padding:8px 6px}.pi-step:last-child .pi-choice>span{min-height:56px}.pi-file-settings{align-items:end}
@media(max-width:520px){.pi-segment{flex-direction:column;gap:6px}.pi-file-settings{grid-template-columns:1fr 1fr}.pi-file-settings .field{font-size:12px}.pi-products .pi-choice>span{min-height:56px}}

#print{overflow:visible}#print::before{display:none}

/* A consistent paper-and-ink finish across fields, tiles and document controls. */
.pi-step{background:linear-gradient(145deg,#fffef9,#f9faf4);border-color:#dbe1d1;box-shadow:0 8px 28px #102f2912;padding:26px;margin-bottom:28px}
.pi-icon{width:24px;height:24px;display:block;flex-shrink:0}
.pi-choice>span{justify-content:flex-start;min-height:114px;padding:15px!important;gap:3px;box-shadow:0 2px 6px #163e2e04;background:#f8faf4;border-color:#dce4d6}
.pi-choice-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eaf0e3;color:#2c624f;font-style:normal;margin-bottom:6px}
.pi-choice input:checked+span{background:var(--selected-bg);border-color:var(--selected-line);box-shadow:0 0 0 1px var(--selected-line)}
.pi-choice input:checked+span .pi-choice-icon{background:#ffffff80}
.pi-choice i{display:grid;place-items:center;width:17px;height:17px;top:16px;inset-inline-end:13px;border:1px solid #a9b9a4;border-radius:50%;opacity:1;color:transparent;font-size:var(--fs-xs)}
.pi-choice input[type=checkbox]+span i{border-radius:5px}
.pi-choice input:checked+span i{background:var(--selected-line);border-color:var(--selected-line);color:#fff}
/* On the selected card's tinted ground the muted grey drops to 4.05:1. */
.pi-choice input:checked+span small{color:var(--muted-strong)}
.pi-choice b{font-weight:700}.pi-choice small{margin:0}
.pi-products .pi-choice>span,.pi-step:last-child .pi-choice>span{min-height:106px}
.pi-field-label{display:flex;align-items:center;gap:8px}.pi-field-label .pi-icon{width:17px;height:17px;color:#54816b}
.pi-form input:not([type=radio]):not([type=checkbox]):not([type=file]),.pi-form textarea{background:#f8faf5;border-color:#d6dfd0;border-radius:14px;min-height:52px;box-shadow:inset 0 1px 2px #183c2b04;transition:border-color .18s,box-shadow .18s}
.pi-form textarea{resize:vertical;min-height:112px;line-height:1.8}
.pi-form input::placeholder,.pi-form textarea::placeholder{color:#849181;font-weight:400}
.pi-document{padding:20px;border-color:#d5dfce;border-radius:20px;box-shadow:0 4px 16px #1b483109}
.pi-file-head{padding-bottom:16px;border-bottom:1px solid #e5eadf}
.pi-file-settings{grid-template-columns:minmax(0,220px)}
.pi-faces .pi-choice>span{min-height:98px}
.pi-segment{gap:8px}.pi-segment label{position:relative;gap:8px;border:1px solid #dce4d4;background:#f8faf4;border-radius:12px;min-height:48px}
.pi-segment input{position:absolute;opacity:0;width:1px;height:1px}
.pi-segment label:has(input:checked){border-color:var(--selected-line);background:var(--selected-bg);color:var(--selected-ink)}
.pi-segment label:has(input:focus-visible){outline:3px solid #367b64;outline-offset:2px}
.pi-segment .pi-icon{width:19px;height:19px}
.pi-upload{padding:30px 18px;background:linear-gradient(120deg,#edf3e3,#f5f7ee);border-color:#83a384;transition:background .2s,border-color .2s}
.pi-upload-plus{width:48px;height:48px;border-radius:15px;box-shadow:0 5px 12px #23564220}
.pi-summary{background:linear-gradient(145deg,#f4f3df,#e6edda);box-shadow:0 8px 24px #0b2b2020}
.pi-summary .eyebrow{letter-spacing:.08em}.pi-summary .button{gap:9px;transition:background .2s,transform .2s}
.pi-step:last-child .pi-help{margin:0 0 14px}
@media(hover:hover){.pi-choice:hover>span{border-color:#98af8e;box-shadow:0 4px 12px #193c2c0d}.pi-upload:hover{border-color:#285d49;background:#e9f0de}.pi-summary .button:hover{transform:translateY(-1px)}}
@media(max-width:520px){.pi-step{padding:20px 14px;margin-bottom:23px}.pi-choice>span{padding:12px!important;min-height:118px}.pi-three .pi-choice>span{min-height:112px;padding:11px 9px!important}.pi-three .pi-choice i{display:grid;inset-inline-end:7px;top:12px;width:14px;height:14px;font-size:var(--fs-xs)}.pi-three .pi-choice-icon{width:29px;height:32px;background:transparent}.pi-three .pi-choice small{font-size:var(--fs-xs);letter-spacing:-.2px}.pi-choice b{font-size:12px}.pi-document{padding:15px}.pi-products .pi-choice>span,.pi-step:last-child .pi-choice>span{min-height:107px}.pi-segment{flex-direction:row}.pi-segment label{font-size:var(--fs-xs)}.pi-file-settings{grid-template-columns:1fr}.pi-faces .pi-choice>span{min-height:98px}}
@media(prefers-reduced-motion:reduce){.pi-form *{transition:none!important}}


/* The running estimate sits with the totals it is derived from, not as a separate promise. */
.pi-estimate{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin-top:10px;padding-top:10px;border-top:1px solid var(--line-soft)}
.pi-estimate span{font-size:var(--fs-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.pi-estimate b{font-size:var(--fs-lg);font-variant-numeric:tabular-nums}
