:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Helvetica Neue",sans-serif;color:#25372d;background:#f6f5f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a6cf70;outline-offset:2px}.hidden{display:none!important}.app-shell{max-width:560px;margin:auto;min-height:100dvh;padding:0 20px 104px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:calc(22px + env(safe-area-inset-top)) 0 24px}.eyebrow,.section-heading small,.sheet-header small{font-size:10px;letter-spacing:.17em;font-weight:800;color:#9a9e8e}.topbar h1{font-size:27px;letter-spacing:-.05em;margin:5px 0 0;font-weight:800}.icon-button{width:42px;height:42px;border:1px solid #e4e7dc;background:#fff;border-radius:15px;color:#506753;font-size:22px}.hero-card{background:#214b37;color:#fff;border-radius:24px;padding:23px 23px 20px;box-shadow:0 13px 30px #214b3729;position:relative;overflow:hidden}.hero-card:before,.hero-card:after{content:"";position:absolute;border:1px solid #ffffff18;border-radius:50%;width:190px;height:190px;right:-30px;top:-86px}.hero-card:after{width:120px;height:120px;right:11px;top:-50px}.hero-top,.hero-bottom{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.hero-top{font-size:13px;color:#d8eadc}.hero-top span:last-child{background:#ffffff1d;border-radius:30px;padding:5px 10px}.hero-amount{font-size:42px;font-weight:800;letter-spacing:-.055em;margin:30px 0 22px;position:relative;z-index:1}.hero-bottom{font-size:12px;color:#d8eadc}.hero-bottom button{border:0;border-radius:11px;background:#e5f4bc;color:#214b37;font-size:13px;font-weight:800;padding:10px 13px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:31px 2px 15px}.section-heading h2{font-size:20px;letter-spacing:-.035em;margin:4px 0 0}.muted{color:#929b91;font-size:12px}.person-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.person-card{background:#fff;border:1px solid #ebece6;border-radius:17px;padding:14px 14px 12px;min-width:0}.person-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}.avatar{width:28px;height:28px;display:grid;place-items:center;background:#e7eedc;border-radius:10px;color:#356047;font-size:13px;font-weight:800;flex:none}.person-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-card small{font-size:11px;color:#8e988d}.person-card strong{display:block;margin-top:3px;font-size:18px;letter-spacing:-.04em}.positive{color:#16825a}.negative{color:#c77542}.zero{color:#62776b}.expense-heading{margin-top:35px}.text-button{border:0;background:none;color:#307d59;font-weight:700;font-size:13px;padding:4px}.filter-row{display:flex;gap:8px;margin:0 0 14px}.filter{background:#eceee6;color:#758173;border:0;border-radius:999px;font-size:12px;font-weight:700;padding:8px 14px}.filter.active{background:#214b37;color:#fff}.expense-list{display:grid;gap:9px}.expense-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid #ebece6;border-radius:17px;padding:15px 13px;color:inherit}.expense-icon{width:42px;height:42px;display:grid;place-items:center;background:#f2f4ec;border-radius:14px;font-size:20px;flex:none}.expense-main{min-width:0;flex:1}.expense-main strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.expense-main small{display:block;color:#919a90;margin-top:4px;font-size:11px}.expense-value{text-align:right;flex:none}.expense-value strong{display:block;font-size:15px}.expense-value small{font-size:10px;color:#77887b}.expense-value .personal{color:#a0a7a0}.empty-state{background:#fff;border:1px dashed #d9e0d3;border-radius:18px;padding:28px 20px;text-align:center;color:#879386;font-size:13px;line-height:1.7}.empty-state strong{display:block;color:#3d5a47;font-size:15px;margin-bottom:5px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(560px,100%);display:flex;justify-content:space-around;background:#ffffffed;border-top:1px solid #e7e9e1;backdrop-filter:blur(16px);padding:10px 20px calc(9px + env(safe-area-inset-bottom));z-index:5}.nav-item{border:0;background:none;color:#9da89b;display:flex;align-items:center;flex-direction:column;gap:3px;min-width:115px;font-size:11px;font-weight:700}.nav-item.active{color:#246044}.nav-icon{font-size:23px;line-height:25px}.settle-intro{padding:8px 2px 20px}.settle-intro h2{font-size:27px;letter-spacing:-.05em;margin:9px 0 8px}.settle-intro p{font-size:13px;color:#8b988d;line-height:1.6;margin:0}.settle-total{display:flex;align-items:center;justify-content:space-between;background:#e6eddc;padding:20px;border-radius:18px;color:#47634e;font-size:13px}.settle-total strong{font-size:22px;color:#204935}.transfer-list,.breakdown{display:grid;gap:9px}.transfer-card,.breakdown-card{background:#fff;border:1px solid #ebece6;border-radius:17px;padding:16px}.transfer-card{display:flex;align-items:center;gap:11px}.transfer-arrow{width:27px;height:27px;display:grid;place-items:center;background:#eaf1df;border-radius:9px;color:#418460;flex:none}.transfer-names{font-size:13px;line-height:1.5;flex:1}.transfer-names strong{font-weight:800}.transfer-amount{font-size:16px;font-weight:800;white-space:nowrap}.breakdown-head{display:flex;justify-content:space-between;font-size:14px;font-weight:800}.breakdown-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:12px;gap:4px}.breakdown-grid span{display:block;font-size:10px;color:#9ba69a}.breakdown-grid strong{display:block;font-size:12px;margin-top:4px;white-space:nowrap}.footnote{color:#9ca59c;font-size:11px;line-height:1.6;margin:15px 2px}.setup-view{padding-top:8px}.welcome-art{height:138px;background:#dcecc8;border-radius:23px;position:relative;display:grid;place-items:center;color:#275940;margin-bottom:28px;overflow:hidden}.welcome-art strong{font-size:90px;line-height:1;letter-spacing:-.1em}.welcome-art span{position:absolute;font-size:25px;left:26%;top:24%}.welcome-art span:nth-child(2){left:auto;right:19%;top:56%;font-size:18px}.setup-view h2{font-size:27px;letter-spacing:-.05em;margin:0 0 6px}.setup-view p{font-size:13px;color:#879387;margin:0 0 28px}.field-label{display:block;color:#526c58;font-size:12px;font-weight:800;margin:17px 0 8px}.field-label.spaced{margin-top:24px}input,select{width:100%;height:46px;background:#fff;border:1px solid #e2e7dd;border-radius:11px;color:#2a3d2f;padding:0 12px;font-size:15px}input::placeholder{color:#b4bdb2}.name-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.name-input-wrap{position:relative}.name-input-wrap span{position:absolute;left:12px;top:14px;color:#a5b2a3;font-size:12px;font-weight:700}.name-input-wrap input{padding-left:31px}.primary-button{border:0;border-radius:12px;background:#214b37;color:#fff;font-size:14px;font-weight:800;padding:14px 19px;min-height:47px}.primary-button.full{width:100%;margin-top:27px;display:flex;justify-content:center;gap:10px}.sheet{width:min(560px,100%);max-height:94dvh;margin:auto auto 0;border:0;border-radius:23px 23px 0 0;padding:0;background:#f9faf7;box-shadow:0 -14px 50px #12291a29;overflow-y:auto;color:#25372d}.sheet::backdrop{background:#0c231778}.sheet form{padding:11px 20px calc(26px + env(safe-area-inset-bottom))}.sheet-handle{width:36px;height:4px;border-radius:10px;background:#ced5cb;margin:0 auto 16px}.sheet-header{display:flex;justify-content:space-between;align-items:flex-start}.sheet-header h2{margin:5px 0 12px;font-size:23px;letter-spacing:-.04em}.close-button{border:0;background:#e9ede7;color:#5e7161;width:30px;height:30px;border-radius:50%;font-size:23px;line-height:1}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.segmented{display:flex;background:#e9eee5;border-radius:12px;padding:4px;gap:3px}.segment{flex:1;border:0;background:transparent;color:#789079;border-radius:9px;padding:9px 5px;font-size:13px;font-weight:700}.segment.active{background:#fff;color:#214b37;box-shadow:0 1px 6px #224b3718}.field-inline{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.field-inline .field-label{margin-bottom:9px}.check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.check-chip{background:#fff;border:1px solid #dfe6dc;border-radius:10px;padding:9px 7px;font-size:12px;font-weight:700;color:#56705a;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}.check-chip input{width:15px;height:15px;accent-color:#287650;flex:none}.check-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hint{font-size:11px;color:#9aa69a;line-height:1.5;margin:8px 0 0}.form-error{min-height:16px;margin-top:11px;font-size:12px;color:#bb4a38}.sheet-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:5px}.sheet-actions .primary-button{flex:1}.danger-button{background:none;border:0;color:#c35f4c;font-size:13px;padding:10px}.data-tools{border-top:1px solid #e3e8de;margin-top:28px;padding-top:12px}.data-tools h3{font-size:14px;margin:6px 0}.data-tools p{font-size:11px;color:#91a092;line-height:1.5}.outline-button{border:1px solid #cddccb;background:#fff;color:#2b6d48;border-radius:10px;font-size:12px;font-weight:700;padding:10px 13px;margin-right:5px}.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,15px);background:#1d3e2d;color:#fff;border-radius:12px;padding:10px 16px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:650px){.app-shell{border-left:1px solid #e4e9df;border-right:1px solid #e4e9df}.sheet{margin-bottom:auto;border-radius:23px;max-height:85dvh}}
:root .cash-card{background:#edf2e7;border:1px solid #dde9d7;border-radius:18px;padding:17px 18px;margin-top:14px}.cash-card-head{display:flex;justify-content:space-between;align-items:center}.cash-card h2{font-size:17px;margin:4px 0 0;letter-spacing:-.035em}.cash-card small{font-size:10px;letter-spacing:.16em;color:#82a184;font-weight:800}.cash-card p{font-size:12px;line-height:1.55;color:#6d8271;margin:10px 0 0}.cash-input-row{background:#fff;border:1px solid #e5ebdf;border-radius:14px;padding:2px 13px 14px;margin-top:13px}.cash-input-row .field-label{margin-top:12px}.cash-lead{margin:0 0 14px}.settle-cash-note{font-size:11px;color:#758b77;line-height:1.5;margin:10px 2px 0;min-height:0}
:root .hero-average{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff24;padding:12px 0 14px;margin-top:-7px;position:relative;z-index:1;color:#d8eadc;font-size:12px}.hero-average strong{color:#e5f4bc;font-size:16px;letter-spacing:-.02em}
.sync-status{color:#698273;font-size:11px;text-align:right;margin:-16px 2px 14px}.sync-overlay{position:fixed;inset:0;z-index:100;background:#173326cc;display:flex;align-items:center;justify-content:center;padding:22px}.sync-overlay.hidden{display:none}.sync-panel{background:#fff;border-radius:20px;padding:24px;width:min(430px,100%);box-shadow:0 16px 50px #10281b55}.sync-panel h2{font-size:21px;margin:0 0 12px}.sync-panel p{color:#64776a;font-size:13px;line-height:1.7;white-space:pre-line}.sync-panel button,.sync-panel a{display:block;width:100%;margin-top:10px;text-align:center;text-decoration:none;border-radius:10px;padding:12px;background:#214b37;color:white;border:0;font-size:13px;font-weight:700}.sync-panel button.secondary{background:#e9f0e5;color:#24583a}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}
.topbar h1 { overflow-wrap: anywhere; }
#trips-button, #setup-cancel { min-height: 44px; font-size: .875rem; }
#setup-cancel { display: block; margin: 8px auto 0; }
.trip-list { display: grid; gap: 8px; margin: 16px 0; }
.trip-list-item {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  text-align: left;
  overflow-wrap: anywhere;
  background: white;
  color: inherit;
  border: 1px solid #dde9d7;
  border-radius: 12px;
}
.trip-list-item span { color: #506753; font-size: .875rem; }
