:root{--bg:#f7f8fb;--fg:#0f172a;--muted:#6b7280;--brand:#103077;--brand-weak:#eef2ff;--card:#ffffff;--chip:#e5e7eb;--chip-active:#103077;--border:#e5e7eb;--danger:#dc2626}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica Neue,Helvetica,sans-serif;line-height:1.4}button{font:inherit;color:inherit;background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 12px;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.app-wrap{max-width:720px;margin:0 auto;padding:env(safe-area-inset-top)16px env(safe-area-inset-bottom)}.app-header{padding:16px 8px 10px;display:flex;align-items:center;justify-content:center;text-align:center}.app-header .logo{height:84px;object-fit:contain;display:block}@media (min-width:480px){.app-header .logo{height:96px}}.card{background:var(--card);border-radius:16px;padding:12px;box-shadow:0 2px 12px #0000000f}.top-actions{display:flex;align-items:center;justify-content:flex-end;margin:4px 8px 0}.info-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:#fff;border-radius:10px;padding:6px 8px;font-size:12px;color:var(--fg)}.row{margin:12px 8px}.split{display:flex;align-items:center;justify-content:space-between;gap:12px}.label{font-weight:700;margin-bottom:14px}.row .label+.input-wrap{margin-top:6px}.inline{display:inline-flex;align-items:center;gap:6px}.inline .num{width:64px;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:#fff}.input-wrap{position:relative;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff}.input-wrap.small{padding:6px 10px}.input-wrap input{border:0;outline:none;font-size:20px;width:100%;background:transparent;color:var(--fg)}.currency{color:var(--muted);font-weight:600}.currency-btn{border:0;background:transparent;color:var(--fg);font-weight:800;padding:0;min-width:2ch;cursor:pointer}.currency-pick .currency-menu{position:absolute;z-index:50;top:calc(100% + 6px);left:0;width:min(360px,95vw);max-height:320px;overflow:auto;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0000001f}.currency-opt{display:grid;grid-template-columns:34px 60px 1fr;align-items:center;gap:8px;width:100%;padding:10px 12px;border:0;background:transparent;text-align:left}.currency-opt .sym{font-weight:800}.currency-opt .code{font-weight:700;color:var(--fg)}.currency-opt .nm{color:var(--muted)}.currency-opt:hover,.currency-opt.active{background:var(--brand-weak)}.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}@media (max-width:420px){.grid{grid-template-columns:repeat(4,1fr)}}.chip{border:0;padding:10px 8px;border-radius:10px;background:var(--chip)}.chip.active{background:var(--chip-active);color:#fff}.tabs{display:inline-flex;background:var(--brand-weak);border-radius:12px;overflow:hidden;border:1px solid #dde3ff}.tab{border:0;padding:8px 12px;background:transparent}.tab.active{background:#fff;color:var(--brand);font-weight:800}.stepper{display:inline-flex;align-items:center;gap:10px}.stepper button{width:36px;height:36px}.stepper .count{min-width:36px;text-align:center;font-weight:700}.people-list{display:grid;gap:8px}.person{display:flex;align-items:center;justify-content:space-between;gap:12px}.people-ctas{display:flex;gap:8px;margin-top:8px}button.ghost{background:transparent;border:1px dashed #cbd5e1;border-radius:10px;padding:8px 12px}.totals{display:grid;gap:6px}.line{display:flex;align-items:center;justify-content:space-between;color:var(--fg)}.line.grand{font-size:18px;font-weight:800;padding-top:6px;border-top:1px solid var(--border)}.line.grand.under b{color:var(--danger)}.shares.onecol{display:grid;grid-template-columns:1fr;gap:10px}.share.detailed{background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:12px;display:grid;gap:6px}.person-title{font-weight:800;color:var(--fg)}.detail-line,.detail-foot{display:flex;align-items:center;justify-content:space-between}.detail-line.total{border-top:1px dashed var(--border);padding-top:6px}.muted{color:var(--muted)}.foot{display:flex;align-items:center;justify-content:flex-start;gap:8px;color:var(--muted);padding:16px 8px}.powered{font-size:12px}.powered-logo{height:18px;display:block}.keypad{position:fixed;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 56px);z-index:200;background:#fff;border-top:1px solid var(--border);box-shadow:0 -6px 24px #0000001f;padding:8px 12px 12px;border-top-left-radius:16px;border-top-right-radius:16px}.keypad-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.keypad-done{border:0;background:var(--brand);color:#fff;padding:8px 12px;border-radius:10px}.keypad-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.keypad .key{padding:12px 0;text-align:center;border:1px solid var(--border);border-radius:10px;background:#fff;font-weight:700}.modal{position:fixed;inset:0;z-index:300}.modal-backdrop{position:absolute;inset:0;background:#0f172a73}.modal-card{position:absolute;left:50%;top:8%;transform:translate(-50%);width:min(680px,92vw);background:#fff;border-radius:16px;padding:16px 16px 18px;box-shadow:0 12px 36px #0000002e}.modal-close{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:24px;line-height:1}.modal-card h2{margin:0 0 8px;font-size:18px}.modal-card ul{margin:0;padding-left:18px}.modal-card li{margin:6px 0;font-size:14px}.modal-card code{background:#f1f5f9;padding:0 4px;border-radius:4px}.small{font-size:12px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
