:root{--bg:#FFFBF9;--card:#FFFFFF;--line:#F1E4DF;--line2:#E3D3CD;--ink:#1F1B1A;--ink2:#3A2F2C;--muted:#6B605C;--coral:#CC3E27;--coral-soft:#FDEBE6;--coral-ink:#8F2B19;--green:#14613B;--green-soft:#E5F4EC;--sand:#F6EEEB}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,sans-serif;font-size:14px;-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.app{display:flex;min-height:100%}.side{display:none}.main{flex:1;min-width:0;display:flex;flex-direction:column;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.page{padding:20px 16px;display:flex;flex-direction:column;gap:14px;max-width:960px;width:100%;margin:0 auto}.chatpanel{display:none}.chatpanel.on{display:flex;flex-direction:column;position:fixed;inset:0 0 calc(64px + env(safe-area-inset-bottom)) 0;background:var(--bg);z-index:5}.bottomnav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:var(--card);border-top:1px solid var(--line);padding:4px 4px calc(4px + env(safe-area-inset-bottom));z-index:10}.bottomnav button{border:0;background:none;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:11px;font-weight:600}.bottomnav button.on{color:var(--coral)}.bottomnav svg,.side svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}h1{font-size:22px;margin:0}h2{font-size:15px;margin:0;font-weight:600}.sub{font-size:13px;color:var(--muted)}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}.hero{background:var(--ink);color:#fff;border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:6px}.hero .big{font-size:38px;font-weight:700;letter-spacing:-.5px}.hero .sub{color:#e9ddd8}.pill{display:inline-flex;align-items:center;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--coral-soft);color:var(--coral-ink)}.pill.green{background:var(--green-soft);color:var(--green)}.pill.sand{background:var(--sand);color:var(--ink2)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:4px}.stat b{font-size:22px}.stat .lbl{font-size:12px;color:var(--muted)}.split{display:flex;height:14px;border-radius:7px;overflow:hidden;gap:2px;background:var(--sand)}.bar{height:10px;background:var(--sand);border-radius:5px;flex:1}.bar i{display:block;height:10px;border-radius:5px}.entry{display:flex;align-items:center;gap:12px}.entry .ic{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;background:var(--sand);color:var(--ink2);flex:none}.entry .ic.pos{background:var(--green-soft);color:var(--green)}.entry .mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.entry .mid b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry .mid span{font-size:12px;color:var(--muted)}.amt{font-weight:700;font-size:14px;white-space:nowrap}.amt.pos{color:var(--green)}.btn{min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--line2);background:var(--card);font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:var(--coral);border-color:var(--coral);color:#fff;font-weight:700}.btn.sm{min-height:36px;padding:0 12px;font-size:13px;border-radius:10px}.btn:disabled{opacity:.5;cursor:not-allowed}.chip{min-height:36px;padding:0 14px;border-radius:999px;border:0;background:var(--coral-soft);color:var(--coral-ink);font-size:13px;font-weight:600}.chip.sand{background:var(--sand);color:var(--ink2)}.seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.seg button{min-height:44px;border-radius:12px;border:1px solid var(--line2);background:var(--card);font-weight:600;font-size:13px;color:var(--ink2)}.seg button.on{background:var(--coral);border-color:var(--coral);color:#fff;font-weight:700}label.f{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--muted)}.in,input.in,select.in,textarea.in{min-height:44px;border:1px solid var(--line2);border-radius:12px;padding:0 14px;background:var(--card);font-size:14px;color:var(--ink);width:100%}.help{font-size:12px;color:var(--muted);line-height:1.45}.note{background:var(--coral-soft);border-radius:16px;padding:12px 14px;font-size:13px;line-height:1.45;color:var(--ink2)}.err{color:var(--coral-ink);font-size:13px;font-weight:600}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;background:#1f1b1a80;z-index:30;display:flex;align-items:flex-end;justify-content:center}.sheet>.inner{background:var(--bg);width:100%;max-width:720px;max-height:94vh;overflow:auto;border-radius:20px 20px 0 0;padding:16px;display:flex;flex-direction:column;gap:14px}.chathead{padding:16px;background:var(--card);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.chatlog{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.bub{max-width:300px;padding:10px 14px;font-size:14px;line-height:1.4;white-space:pre-wrap}.bub.me{align-self:flex-end;background:var(--coral);color:#fff;border-radius:18px 18px 4px}.bub.bot{align-self:flex-start;background:var(--card);border:1px solid var(--line);border-radius:18px 18px 18px 4px;display:flex;flex-direction:column;gap:10px}.bub .chips{display:flex;flex-wrap:wrap;gap:8px}.kv{display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:4px;font-size:13px}.kv span{color:var(--muted)}.kv b{font-weight:600}.composer{padding:10px 16px 14px;background:var(--card);border-top:1px solid var(--line);display:flex;gap:10px;align-items:flex-end}.composer textarea{flex:1;min-height:44px;max-height:120px;border:1px solid var(--line2);border-radius:22px;padding:11px 16px;background:var(--bg);resize:none;line-height:1.3}.send{width:44px;height:44px;border-radius:22px;border:0;background:var(--coral);display:flex;align-items:center;justify-content:center;flex:none}.send svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.invoice-sheet{background:#fff;color:#2a2a2a;font-family:Poppins,sans-serif;width:100%;max-width:794px;margin:0 auto;border:1px solid var(--line);font-size:12px}.invoice-sheet .band{background:#f9695c;height:26px}.invoice-sheet .body{padding:22px 28px;display:flex;flex-direction:column;gap:16px}.invoice-sheet .titlecard{background:#fff;border:1px solid #f4c9c3;border-radius:14px;padding:14px 18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.invoice-sheet h3{margin:0;color:#f9695c;font-size:20px;font-weight:600;letter-spacing:.5px}.invoice-sheet table{width:100%;border-collapse:collapse}.invoice-sheet th{background:#f9695c;color:#fff;text-align:left;padding:8px 10px;font-weight:500}.invoice-sheet td{padding:8px 10px;border-bottom:1px solid #eee;vertical-align:top}.invoice-sheet .num{text-align:right;white-space:nowrap}.invoice-sheet .totals{margin-left:auto;min-width:240px;background:#f6f6f6;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}.invoice-sheet .totals div{display:flex;justify-content:space-between;gap:16px}.invoice-sheet .grand{font-weight:600;color:#f9695c;font-size:15px;border-top:1px solid #ddd;padding-top:6px}.invoice-sheet .cols{display:flex;gap:24px;flex-wrap:wrap}.invoice-sheet .cols>div{flex:1 1 220px;display:flex;flex-direction:column;gap:3px}.invoice-sheet .lab{color:#f9695c;font-weight:600;font-size:11px;letter-spacing:.5px}.invoice-sheet .notice{border-left:4px solid #f9695c;background:#fff4f2;padding:8px 12px}@media print{body *{visibility:hidden}.invoice-sheet,.invoice-sheet *{visibility:visible}.invoice-sheet{position:absolute;left:0;top:0;width:100%;border:0}.no-print{display:none!important}}@media (min-width:1000px){.main{padding-bottom:0}.side{display:flex;flex-direction:column;gap:6px;width:220px;flex:none;background:var(--card);border-right:1px solid var(--line);padding:24px 14px;position:sticky;top:0;height:100vh}.side .brand{font-size:18px;font-weight:700;padding:0 12px 16px}.side button{min-height:44px;border:0;background:none;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 12px;font-weight:600;color:var(--ink2);text-align:left}.side button.on{background:var(--coral-soft);color:var(--coral-ink);font-weight:700}.side .spacer{flex:1}.bottomnav{display:none}.page{padding:28px 32px}.chatpanel,.chatpanel.on{display:flex;flex-direction:column;position:sticky;inset:auto;height:100vh;width:340px;flex:none;border-left:1px solid var(--line);background:var(--card)}.chatpanel .chatlog,.chatpanel .composer,.chatpanel .chathead{background:var(--card)}.dash{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.twocol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sheet{align-items:center}.sheet>.inner{border-radius:20px}}.dash{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dash .hero{grid-column:1/-1}.twocol{display:flex;flex-direction:column;gap:14px}.login{max-width:420px;margin:0 auto;padding:48px 20px;display:flex;flex-direction:column;gap:14px}.demo-banner{background:var(--ink);color:#fff;font-size:12px;padding:6px 16px;display:flex;justify-content:space-between;gap:10px;align-items:center}.demo-banner button{background:none;border:1px solid #6B605C;color:#fff;border-radius:8px;min-height:28px;padding:0 10px;font-size:12px}.stack{display:flex;flex-direction:column;gap:14px}.tap{width:100%;text-align:left;cursor:pointer;font:inherit;color:inherit}.tap:hover{border-color:var(--line2)}
