*{box-sizing:border-box}
body{font:16px/1.4 system-ui,sans-serif;margin:0;color:#14201f;background:#f2f5f4;padding-bottom:76px}
header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;background:#0f3d3e;color:#fff;position:sticky;top:0;z-index:2}
h1{font-size:18px;margin:0}h2{font-size:16px;margin:8px 0}
#who{display:flex;align-items:center;gap:8px;font-size:14px;min-width:0}#who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{max-width:640px;margin:0 auto;padding:12px 12px 4px}
.card,form.card{background:#fff;border:1px solid #d5dedc;border-radius:12px;padding:12px 14px;margin:12px 0}
.field{margin:10px 0}
label{display:block;margin:0 0 4px;font-weight:600;font-size:14px}
small{display:block;color:#5a6b69;font-size:12px}
input,select,textarea{font:inherit;width:100%;min-height:44px;padding:8px 10px;border:1px solid #a9b8b5;border-radius:8px;background:#fff}
button,a.button{font:inherit;min-height:44px;padding:8px 14px;border:1px solid #0f3d3e;border-radius:10px;background:#fff;color:#0f3d3e;cursor:pointer;margin-top:8px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
button.primary{background:#0f6b66;border-color:#0f6b66;color:#fff;width:100%}
button.secondary{background:#fff;color:#0f3d3e}
button.danger{color:#a11d1d;border-color:#a11d1d}
button:disabled{opacity:.5}
a.wa{background:#1f9d55;border-color:#1f9d55;color:#fff;margin-top:8px}
.small-btn{min-height:36px;margin:0;padding:4px 10px;font-size:14px}
.row{display:flex;gap:8px;flex-wrap:wrap}.row>*{flex:1 1 140px}
.top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.top strong{overflow-wrap:anywhere}
.search{margin:6px 0}
.list{display:flex;flex-direction:column;gap:10px}
button.client{display:block;width:100%;text-align:left;background:#fff;border:1px solid #d5dedc;border-radius:12px;padding:12px;margin:0;color:inherit}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.grid span{font-weight:600;font-size:14px;overflow-wrap:anywhere}
.chip{font-size:12px;font-weight:700;padding:2px 8px;border-radius:99px;background:#e1ece9;color:#0f3d3e;white-space:nowrap}
.chip.paying{background:#d7f0dc;color:#14602b}.chip.demo{background:#e8e1f7;color:#4b2e8f}.chip.suspended{background:#fdecc8;color:#7a4a00}.chip.closed{background:#f6d6d6;color:#8a1c1c}
.balance{font-size:26px;font-weight:700;margin:4px 0 0}
.small,p.small{font-size:13px;color:#3d4f4c;margin:4px 0}
.empty{color:#5a6b69;text-align:center;padding:16px}
.entry{padding:8px 0;border-top:1px solid #e3eae8}.entry:first-of-type{border-top:0}
.wrap{overflow-wrap:anywhere}
code.link{display:block;background:#eef3f2;padding:8px;border-radius:8px;word-break:break-all;font-size:13px;margin:6px 0}
.back{margin:0 0 4px}
#notice{max-width:640px;margin:0 auto;padding:0 14px 12px;min-height:0}
#notice.bad{color:#a11d1d}#notice.good{color:#14602b}
#tabs{position:fixed;left:0;right:0;bottom:0;display:flex;background:#fff;border-top:1px solid #d5dedc;z-index:3;padding-bottom:env(safe-area-inset-bottom)}
#tabs[hidden]{display:none}
#tabs button{flex:1;margin:0;border:0;border-radius:0;min-height:56px;background:#fff;color:#5a6b69;font-size:14px}
#tabs button.on{color:#0f6b66;font-weight:700;border-top:3px solid #0f6b66}
.low{color:#b3261e}
