/* Shared-ledger tool: scoped to the warm-paper editorial page. */
.te-article{max-width:880px}
.te-app{margin:30px 0 48px;font-size:16px;line-height:1.5}
.te-app .te-panel{padding:24px;margin:0 0 18px;border:1px solid var(--hair,#bfc5b9);background:var(--surface,#fbf7ee);border-radius:8px}
.te-app h2{font:600 clamp(23px,3vw,29px)/1.2 var(--display,ui-serif,Georgia,serif);margin:0 0 20px;letter-spacing:-.01em}
.te-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.te-heading .stencil{margin-bottom:14px}
.te-app label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;margin:0 0 15px;min-width:0}
.te-app input:not([type=checkbox]),.te-app select{display:block;width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--hair,#bfc5b9);border-radius:5px;background:var(--paper,#f3ede1);font:400 16px/1.3 var(--text,system-ui,sans-serif);color:var(--ink,#14261f)}
.te-app input::placeholder{color:var(--muted,#5e6e65);opacity:1}
.te-app .te-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.te-app .te-currency{max-width:340px;margin-top:20px}
.te-app fieldset{border:0;padding:0;margin:3px 0 18px;min-width:0}
.te-app legend{padding:0;font-size:14px;font-weight:600}
.te-app .te-help{font-size:13px;color:var(--muted,#5e6e65);line-height:1.55;margin:7px 0 15px}
.te-app .te-checks{display:flex;flex-wrap:wrap;gap:6px 18px}
.te-app .te-checks label{flex-direction:row;align-items:center;gap:9px;min-height:44px;margin:0;font-weight:400;overflow-wrap:anywhere}
.te-app .te-checks input{accent-color:var(--moss,#178371);width:19px;height:19px;flex:none;margin:0}
.te-app button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;font:600 14px/1.35 var(--text,system-ui,sans-serif);color:white;background:var(--moss-deep,#11695b);border:1px solid var(--moss-deep,#11695b);border-radius:5px;cursor:pointer;white-space:normal}
.te-app button:hover{background:var(--ink,#14261f);border-color:var(--ink,#14261f)}
.te-app button.te-secondary,.te-app button.te-remove{background:transparent;color:var(--moss-deep,#11695b);border-color:var(--hair,#bfc5b9)}
.te-app button.te-secondary:hover,.te-app button.te-remove:hover{border-color:var(--moss,#178371);background:var(--moss-soft,#e0e5d7)}
.te-app button:disabled{opacity:.55;cursor:default}
.te-app .te-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.te-app .te-main-actions{margin:24px 0 12px}
.te-app .te-adjustments{border-top:1px dashed var(--hair,#bfc5b9);margin-top:24px}
.te-app details{padding:14px 0;border-bottom:1px solid var(--hair,#bfc5b9)}
.te-app details:last-child{border-bottom:0;padding-bottom:0}
.te-app summary{cursor:pointer;min-height:36px;padding:6px 0;color:var(--moss-deep,#11695b);font-weight:600}
.te-app details form{padding-top:4px}
.te-app .te-status{min-height:25px;font-weight:600;font-size:14px;margin:8px 0 18px;overflow-wrap:anywhere}
.te-app .te-ledger{list-style:none;margin:0;padding:0}
.te-app .te-ledger li{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--hair,#bfc5b9);font-size:14px}
.te-app .te-ledger li:last-child{border-bottom:0}
.te-app .te-ledger span{overflow-wrap:anywhere;min-width:0}
.te-app .te-remove{padding:7px 10px;flex:none;font-size:12px}
.te-app .te-results>.stencil{margin:0}
.te-app .te-total{font:600 clamp(34px,6vw,44px)/1.15 var(--display,ui-serif,Georgia,serif);margin:8px 0;overflow-wrap:anywhere}
.te-app .te-results h2{margin-top:28px}
.te-app .te-table-wrap{max-width:100%;overflow-x:auto;margin:0 -4px;padding:0 4px 8px}
.te-app table{width:100%;border-collapse:collapse;font-size:13px;margin:0}
.te-app caption{text-align:left;color:var(--muted,#5e6e65);font-size:12px;margin-bottom:8px}
.te-app th,.te-app td{text-align:right;padding:12px 8px;border-bottom:1px solid var(--hair,#bfc5b9);vertical-align:top;white-space:nowrap;font-variant-numeric:tabular-nums}
.te-app thead th{font-size:12px;white-space:normal;min-width:92px;font-weight:600}
.te-app th:first-child{text-align:left;max-width:150px;white-space:normal;overflow-wrap:anywhere}
.te-app h3{font-size:18px;margin:24px 0 12px}
.te-app .te-settlements{padding-left:22px;font-weight:600;overflow-wrap:anywhere}
.te-app .te-settlements li{padding:5px 0}
.te-app .te-storage{border-top:1px dashed var(--hair,#bfc5b9);padding-top:18px;margin-top:24px}
.te-app :focus-visible{outline:3px solid var(--moss,#178371);outline-offset:3px}
@media(max-width:520px){.te-app .te-panel{padding:18px 14px}.te-app .te-fields{grid-template-columns:minmax(0,1fr)}.te-app .te-heading{display:block}.te-app .te-heading .stencil{display:block}.te-app .te-currency{max-width:none}.te-app .te-actions button{flex:1 1 auto}.te-app .te-ledger li{gap:8px}.te-app .te-main-actions button{flex-basis:100%}}
