.cash-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0 0 8px}
.cash-strip>div{border:1px solid #cfdbe4;border-radius:17px;background:#f9fbfd;padding:15px 19px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.cash-strip b{font-size:1rem}.cash-strip span{font-size:.85rem;color:#647789}
.balance-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.balance-controls .helper{margin:0;flex:1}.balance-controls .muted{min-height:44px;padding:8px 14px;font-size:.875rem}.balance-controls [hidden]{display:none}@media(max-width:470px){.balance-controls{align-items:flex-start;flex-direction:column}}
.items-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 12px}
.items-title h2{margin:0;font-size:1.12rem}.item-list{display:grid;gap:12px}
.item-card{padding:17px;background:#f5f8fa;border:1px solid #d4dfe6;border-radius:17px}
.item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-weight:800}
.remove{border:0;background:#fff0eb;color:#a3422c;border-radius:10px;min-height:42px;padding:0 12px;font-weight:800}
.item-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
.row-total{margin-top:12px;color:#35556a;font-weight:750}.row-total output{font-variant-numeric:tabular-nums}
.add-item{border:2px dashed #8ca9bc;color:#174c6e;background:white;border-radius:13px;min-height:55px;padding:0 18px;font-weight:800;margin-top:13px;width:100%}
.total-band{display:flex;justify-content:space-between;align-items:center;background:#102f49;color:white;padding:17px 20px;border-radius:15px;margin-top:16px;font-weight:850}
.total-band output{font-size:1.3rem;font-variant-numeric:tabular-nums}
.mini-heading{font-size:1.1rem;margin:26px 0 16px}
.settlement-note{grid-column:1/-1;color:#627589;font-size:.86rem;line-height:1.5}
.currency-rate[hidden],.payment-account[hidden]{display:none}
@media(max-width:700px){.cash-strip>div{align-items:flex-start;flex-direction:column}.item-fields{grid-template-columns:1fr 1fr}.item-fields .product{grid-column:1/-1}}
@media(max-width:440px){.cash-strip{gap:9px}.cash-strip>div{padding:13px}.cash-strip b{font-size:.9rem}.cash-strip span{font-size:.77rem}.item-card{padding:13px}}

.mode{text-decoration:none;min-height:44px;display:flex;align-items:center}.inventory{margin-top:18px}.notice a{color:inherit;font-weight:750}button:disabled{cursor:wait;opacity:.65}
.dialog{max-height:90dvh;overflow:auto}.dialog p{white-space:pre-line;overflow-wrap:anywhere}.dialog button{width:100%;margin-top:10px}.dialog button[hidden]{display:none}
.draft-history{margin-bottom:24px;padding:18px;border:1px solid #d4dfe6;border-radius:16px}
.draft-history summary{cursor:pointer;font-size:18px;font-weight:700}
.draft-row{display:block;width:100%;margin:10px 0;padding:16px;text-align:right;font:inherit;line-height:1.6;color:#123754;background:#edf3f8;border:1px solid #d4dfe6;border-radius:12px;cursor:pointer;overflow-wrap:anywhere}
.draft-row:focus-visible{outline:3px solid #e9a83e;outline-offset:2px}

button.danger{color:#a82424;border-color:#d9aaaa}

#main-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#main-grid .tile{min-width:0;overflow-wrap:anywhere}
#main-grid .tile[data-id="buy"]{background:#87ceeb;border-color:#69b6d4;color:#10243a}
#main-grid .tile[data-id="buy"] .icon{background:#d9f2fc;color:#174c6e}
#main-grid .tile[data-id="buy"] .sub{color:#234a63}
#main-grid .tile[data-id="sale"]{background:#bd2424;border-color:#a51e1e;color:white}
#main-grid .tile[data-id="sale"] .icon{background:#ffffff26;color:white}
#main-grid .tile[data-id="sale"] .sub{color:#fff1f1}

.contact-create{margin:20px 0;padding:16px;border:1px solid #cad5df;border-radius:16px;background:#f7fafc}.contact-create>summary{cursor:pointer;font-weight:800}.registry-widget{margin-top:16px}.registry-result{white-space:normal;line-height:1.7}.registry-result:not(:empty){padding:18px;background:#edf3f8;border:1px solid #cad5df;border-radius:16px}.registry-result .action{display:block;margin:12px 0;width:100%;white-space:normal}.registry-summary{white-space:pre-line;overflow-wrap:anywhere}.partner-statement{padding:18px;border:1px solid #cad5df;border-radius:16px;margin:14px 0}.partner-statement h3{margin:0 0 12px}.partner-statement p{line-height:1.8;overflow-wrap:anywhere}.tile[data-id="capital"]{border-color:#e5b462;background:#fff7e8}
