@font-face{font-family:Seed;src:url('./fonts/LINESeedSansTH_W_Rg.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Seed;src:url('./fonts/LINESeedSansTH_W_Bd.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Seed;src:url('./fonts/LINESeedSansTH_W_XBd.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:Itim;src:url('./fonts/Itim-Regular.ttf') format('truetype');font-display:swap}
/* Brand tokens are defined in orca-theme.css. */
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button{border:0;background:none}h1,h2,h3,p{margin:0}h1{font-weight:800;font-size:30px;letter-spacing:-.8px;line-height:1.4}h2{font-size:20px;line-height:1.45}h3{font-size:16px}small{font-size:12px}svg{display:block}svg.icon{width:21px;height:21px;flex:none}strong{font-weight:700}.muted{color:var(--muted)}.hand{font-family:Itim,var(--font)}.row{display:flex;align-items:center;gap:12px}.between{display:flex;justify-content:space-between;align-items:center;gap:12px}.stack{display:grid;gap:16px}.hidden{display:none!important}.skip{position:fixed;top:-80px;left:20px;background:var(--ink);color:white;padding:12px;z-index:100}.skip:focus{top:10px}
.sidebar{width:232px;position:fixed;inset:0 auto 0 0;background:#f5f2ea;border-right:1px solid var(--line);padding:34px 24px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-family:Itim;font-size:30px;line-height:1}.brand [data-mascot]{width:46px;height:46px}.brand-sub{font-family:var(--font);font-size:10px;color:var(--muted);letter-spacing:.4px;margin-top:6px}.side-label{color:#9a929b;font-size:11px;letter-spacing:1px;margin:43px 12px 12px}.nav{display:grid;gap:8px}.nav button{display:flex;gap:13px;align-items:center;text-align:left;padding:13px 16px;border-radius:14px;color:#7c7580}.nav button.active{background:var(--purple);color:var(--ink);font-weight:700}.nav button:hover:not(.active){background:#ece8e0}.nav .count{margin-left:auto;background:white;border-radius:8px;padding:1px 7px;font-size:11px}.side-note{margin-top:auto;padding:20px 14px;text-align:center;border:1px dashed #cec3b3;border-radius:20px;transform:rotate(-2deg)}.side-note [data-mascot]{width:95px;height:80px;margin:auto}.side-note p{font-size:20px;font-family:Itim}.side-note small{font-size:11px;color:var(--muted)}.sidebar .credits{font-size:10px;color:#aaa1a5;text-align:center;margin-top:22px}
.workspace{margin-left:232px;max-width:1540px}.topbar{height:82px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 42px;background:var(--paper)}.crumb{color:var(--muted);display:flex;gap:12px;font-size:12px;align-items:center}.crumb b{color:var(--ink);font-weight:400}.top-actions{display:flex;align-items:center;gap:16px}.profile{display:flex;align-items:center;gap:8px;font-size:12px;border-left:1px solid var(--line);padding-left:16px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:50%;background:var(--pink);font-size:21px;flex:none;border:2px solid var(--paper)}.avatar.large{width:48px;height:48px;font-size:29px}.avatars{display:flex;align-items:center;padding-left:5px}.avatars .avatar{margin-left:-5px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:12px;background:var(--ink);color:#fff;font-weight:700;font-size:13px;line-height:1.4;border:1px solid var(--ink);transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px);background:#443c50}.button.light{background:white;color:var(--ink);border-color:var(--line)}.button.light:hover{background:var(--accent-wash)}.button.purple{background:var(--purple);border-color:transparent;color:var(--ink)}.button.yellow{background:var(--yellow);color:var(--ink);border-color:var(--ink);box-shadow:2px 3px 0 var(--ink)}.button.danger{background:#fff0ee;color:#9c403b;border-color:#f1cbc6}.button.small{min-height:36px;padding:7px 12px;font-size:12px}.button.full{width:100%}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;border-radius:12px}.icon-button:hover{background:#ece7dc}.text-button{color:var(--purple-dark);font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:6px;min-height:38px}.text-button:hover{text-decoration:underline}.text-button.danger{color:#a44d44}.main{padding:32px 42px 100px}.page-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:1.4px;color:var(--muted);margin-bottom:4px}.page-heading .subtitle{font-size:13px;color:var(--muted);margin-top:7px}.page-heading .action-set{display:flex;gap:8px}.trip-meta{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px;margin-top:12px;flex-wrap:wrap}.trip-meta span{display:flex;align-items:center;gap:5px}.trip-meta .icon{width:15px;height:15px}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:24px}.primary-column,.aside-column{display:flex;flex-direction:column;gap:24px;min-width:0}.hero{background:var(--purple);border-radius:26px;position:relative;padding:27px 28px 22px;overflow:hidden;min-height:270px}.hero-top{display:flex;justify-content:space-between;align-items:flex-start}.hero-copy{position:relative;z-index:1}.hero-copy .hand{font-size:23px}.hero .hero-value{font-size:48px;letter-spacing:-1.5px;font-weight:800;line-height:1.35;margin:7px 0 3px;font-variant-numeric:tabular-nums}.hero-value span{font-size:25px;font-weight:400;margin-right:4px}.hero-caption{font-size:11px;color:var(--muted)}.hero-mascot{width:178px;height:150px;position:absolute;right:18px;top:10px;transform:rotate(4deg)}.hero .spark{position:absolute;right:184px;top:24px;font-size:30px}.hero-foot{display:grid;grid-template-columns:1fr 1fr;margin-top:23px;border-top:1px solid #9884ba50;padding-top:15px;position:relative;gap:20px}.hero-foot>div+div{border-left:1px solid #9884ba50;padding-left:22px}.hero-foot small{color:var(--muted);font-size:11px;display:block}.hero-foot b{font-size:20px}.hero-sticker{font-family:Itim;font-size:14px;background:#fff9e8;display:inline-block;transform:rotate(-5deg);padding:4px 13px;border:1px solid var(--ink);border-radius:6px;position:absolute;right:31px;top:155px;box-shadow:2px 2px 0 #74618d40}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.card-title{display:flex;align-items:center;gap:8px;font-size:16px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.card-head h2{font-size:18px}.card-head .hand{font-size:23px}.budget-card{background:#fffdf4;border:1px solid #ece5cb}.budget-value{font-size:28px;letter-spacing:-.7px;font-weight:700;margin-top:14px}.budget-line{display:flex;justify-content:space-between;font-size:11px;color:#8c8376;margin-top:12px;gap:8px}.progress{height:9px;background:#efe9d9;border-radius:20px;margin:12px 0}.progress span{display:block;max-width:100%;height:100%;border-radius:20px;background:#b2c989}.progress.over span{background:#e59b8d}.budget-foot{font-size:13px;font-family:Itim;display:flex;align-items:center;gap:8px;margin-top:12px}.budget-foot svg{width:17px;height:17px}.private-label{display:inline-flex;align-items:center;gap:4px;color:#968e84;font-size:10px}.private-label .icon{width:12px;height:12px}.summary-card{background:#eaf1e0;border-color:#dce5ce}.summary-card h3{font-family:Itim;font-size:23px;font-weight:400}.summary-card .sum{font-size:30px;font-weight:800;margin:8px 0 0}.summary-card small{color:#778568;font-size:11px}.sum-rule{height:1px;background:#d5dec9;margin:14px 0}.mini-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px;font-size:12px}.trip-friends{padding:3px 3px}.trip-friends h3{font-family:Itim;font-size:21px;font-weight:400}.friend{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px dashed var(--line)}.friend:last-child{border:0}.friend .name{font-size:12px;font-weight:700}.friend .caption{font-size:10px;color:var(--muted)}.friend .balance{margin-left:auto;font-size:12px;text-align:right}.positive{color:#607d3e}.negative{color:#b76c59}.neutral{color:var(--muted)}.foot-doodle{font-family:Itim;color:#9b9394;font-size:19px;display:flex;gap:13px;align-items:center;justify-content:center;padding:10px}.foot-doodle .icon{width:26px;height:26px;transform:rotate(-15deg)}
.day-strip{display:flex;gap:7px;margin:10px 0 19px;overflow-x:auto;padding:2px 0}.day-chip{flex:1;min-width:54px;min-height:78px;border-radius:15px;background:#f8f6f1;display:flex;align-items:center;flex-direction:column;padding:10px 6px;gap:4px;font-size:10px;color:#8d858d;border:1px solid transparent}.day-chip b{font-size:19px;color:var(--ink);line-height:1.3}.day-chip.active{background:var(--yellow);border-color:#e3ca80;color:var(--ink)}.day-chip .dot{width:4px;height:4px;border-radius:50%;background:var(--purple-dark);margin-top:2px}.scope-switch{display:inline-flex;flex-shrink:0;background:#f2efea;padding:3px;border-radius:11px;gap:3px}.scope-switch button{white-space:nowrap;padding:7px 13px;border-radius:8px;font-size:11px;color:#8b828c;min-height:33px}.scope-switch button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #2d29330b;font-weight:700}.list{display:grid}.expense-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:15px 0;border-bottom:1px solid #f0ede7}.expense-row:last-child{border-bottom:0}.expense-row:hover .expense-title{color:var(--purple-dark)}.category-icon{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px;flex:none;border:1px solid #2d29330a}.category-icon.food{background:#f9e6c7}.category-icon.stay{background:var(--accent-soft)}.category-icon.transport{background:#ddebfa}.category-icon.shopping{background:#f9dde6}.category-icon.other{background:#e3ecca}.expense-main{min-width:0;flex:1}.expense-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expense-sub{font-size:10px;color:#948c95;margin-top:3px}.expense-amount{text-align:right;white-space:nowrap}.expense-amount b{font-size:14px}.expense-amount small{display:block;font-size:10px;color:#9a929b}.list-footer{border-top:1px dashed var(--line);padding-top:13px;margin-top:5px;font-size:12px;display:flex;justify-content:space-between}.empty{text-align:center;padding:30px 12px;color:var(--muted)}.empty .empty-emoji{font-size:33px;margin-bottom:10px}.empty h3{color:var(--ink);font-family:Itim;font-weight:400;font-size:23px;margin-bottom:5px}.empty p{font-size:12px;margin-bottom:15px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:26px 0 12px}.section-title h2{font-size:18px}.settle-teaser{border:1px dashed var(--accent-line);background:var(--accent-wash);border-radius:18px;padding:17px;display:flex;gap:12px;align-items:center}.settle-teaser p{font-size:12px;color:#897990}.settle-teaser b{font-size:13px}.settle-teaser .button{margin-left:auto;white-space:nowrap}.badge{display:inline-flex;gap:4px;align-items:center;font-size:10px;line-height:1.5;padding:4px 8px;border-radius:7px;background:var(--accent-wash);color:var(--accent);font-weight:400}.badge.lime{background:#e4eed4;color:#607b42}.badge.yellow{background:#fff0c8;color:#8d742f}.badge.gray{background:#f2efeb;color:#8e858e}.badge.pink{background:#fae2df;color:#aa6b60}
.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.search{background:white;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:9px;padding:0 12px;flex:1;min-width:180px}.search input{width:100%;border:0!important;padding:12px 0!important;background:transparent!important;outline:none}.search .icon{color:#9a9199;width:18px}.toolbar select{width:auto;min-width:135px}.filter-chip{font-size:11px;background:var(--accent-wash);color:var(--accent);border-radius:20px;padding:6px 12px}.expense-group{margin-bottom:22px}.expense-group h3{font-size:12px;color:#928995;margin-bottom:5px}.expense-group .list{background:white;border-radius:20px;border:1px solid var(--line);padding:0 20px}.full-calendar{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.calendar-head h2{font-size:20px;font-family:Itim}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;color:#a099a0;font-size:11px;padding:6px}.calendar-day{min-height:74px;border-radius:13px;border:1px solid transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:14px}.calendar-day.in-trip{background:var(--accent-wash)}.calendar-day.active{background:var(--yellow);border-color:#d7bb68}.calendar-day small{font-size:9px;color:var(--muted)}.calendar-day.out{opacity:.25}.calendar-day:hover{border-color:var(--accent-line)}.calendar-note{font-size:11px;color:#948a94;margin-top:17px}
.settle-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.settle-banner{background:var(--purple);border-radius:24px;padding:23px 25px;display:flex;gap:16px;align-items:center;margin-bottom:24px}.settle-banner svg{width:83px;height:80px;flex:none}.settle-banner h2{font-family:Itim;font-size:28px;font-weight:400}.settle-banner p{font-size:12px;color:var(--muted)}.payment-card{background:#fff;border:1px solid var(--line);padding:20px;border-radius:20px;margin-bottom:12px}.payment-path{display:flex;align-items:center;gap:11px}.payment-path .arrow{font-size:19px;color:#aaa0ae;margin:0 8px}.payment-path .label{font-size:12px}.payment-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.payment-sum{font-weight:700;font-size:24px;letter-spacing:-.5px}.payment-bottom{border-top:1px dashed var(--line);margin-top:16px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.payment-bottom small{font-size:11px;color:#928b95}.pending-note{background:#fff8e8;border-radius:10px;padding:10px;margin-top:10px;font-size:11px;color:#927640}.activity-item{padding:12px 0;border-bottom:1px dashed var(--line);font-size:12px}.activity-item small{display:block;font-size:10px;color:#a095a0;margin-top:4px}.balance-receipt{background:#fffdf5;border:1px solid #e7e1d3;border-radius:3px 3px 15px 15px;padding:24px;position:relative}.balance-receipt:before{content:'';display:block;position:absolute;left:38%;top:-8px;width:24%;height:18px;background:#e5ddf2c9;transform:rotate(-4deg)}.receipt-heading{text-align:center;font-family:Itim;font-size:23px;margin-bottom:15px}.receipt-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:8px 0}.receipt-total{border-top:1px dashed #c9beab;border-bottom:1px dashed #c9beab;margin-top:12px;padding:13px 0}.receipt-total b{font-size:18px}.receipt-note{font-size:10px;color:#9a8e80;text-align:center;margin-top:16px}.receiving{margin-top:20px;padding:18px;background:#f1eeea;border-radius:16px;font-size:12px}.member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.member-card{background:white;border:1px solid var(--line);border-radius:22px;padding:24px}.member-card h2{font-size:18px;margin-top:12px}.member-card .badge{margin:7px 0 14px}.member-card .button{margin-top:15px}.trip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.trip-card{border-radius:25px;overflow:hidden;border:1px solid var(--line);background:white;text-align:left;padding:0}.trip-card-art{background:var(--accent-soft);height:156px;display:flex;align-items:center;justify-content:center;position:relative}.trip-card-art [data-mascot]{width:170px;height:145px}.trip-card-content{padding:22px}.trip-card-content h2{font-family:Itim;font-size:26px;font-weight:400}.trip-card-content p{font-size:12px;color:#95899a;margin:7px 0 17px}.trip-new{min-height:280px;border:1px dashed var(--accent-line);border-radius:25px;color:var(--muted);font-family:Itim;font-size:25px}.trip-new .icon{margin:0 auto 10px;width:32px;height:32px}
.prototype-tools{position:fixed;bottom:14px;left:calc(50% + 116px);transform:translateX(-50%);z-index:12;background:#fffdf9ed;backdrop-filter:blur(14px);border:1px solid var(--accent-line);border-radius:40px;box-shadow:0 5px 25px #4b385112;display:flex;align-items:center;gap:4px;padding:4px 8px;white-space:nowrap}.prototype-tools span{font-size:10px;color:#9b8da5;padding:0 8px}.prototype-tools button{font-size:10px;border-radius:30px;padding:8px 10px;color:var(--muted);min-height:32px}.prototype-tools button.active{background:var(--purple);color:var(--accent-strong)}.prototype-tools button:hover{background:var(--accent-wash)}.prototype-note{display:flex;gap:6px;align-items:center;font-size:10px;color:#a799ab}.prototype-note .dot{width:5px;height:5px;background:var(--accent-line);border-radius:50%}.mobile-brand,.bottom-nav{display:none}.info-box{background:var(--accent-wash);padding:13px 16px;border-radius:14px;font-size:12px;color:var(--muted);line-height:1.7}.info-box.warning{background:#fff5dc;color:#8f753c}.info-box.success{background:#edf4e2;color:#698248}.outstanding{font-size:12px;color:#8f788d;margin-top:6px}
dialog{border:1px solid var(--accent-line);border-radius:26px;padding:0;width:min(570px,calc(100% - 28px));max-height:90dvh;box-shadow:0 25px 100px #2d193444;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#28212e66;backdrop-filter:blur(5px)}.modal-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;background:var(--paper);padding:20px 24px;border-bottom:1px solid var(--line)}.modal-head h2{font-family:Itim;font-size:27px;font-weight:400}.modal-body{padding:22px 24px 26px}.modal-body>p{font-size:13px;color:#8d7f91;margin-bottom:20px}.modal-footer{display:flex;gap:10px;margin-top:24px}.modal-footer .button:first-child{flex:1}.field{display:grid;gap:6px;margin-bottom:16px}.field label,.field-label{font-size:12px;font-weight:700}.field small,.helper{font-size:11px;color:#95869b}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-grid.amount-grid{grid-template-columns:minmax(0,1fr) 125px}input,select,textarea{width:100%;border:1px solid var(--accent-line);border-radius:12px;background:white;padding:11px 12px;font-size:14px;min-height:44px}textarea{resize:vertical;min-height:85px}input.amount-input{font-size:30px;font-weight:700;padding:12px 16px;font-variant-numeric:tabular-nums}input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--accent);flex:none}input[type=file]{font-size:11px;padding:10px}.toggle-row{display:flex;align-items:center;gap:9px;font-size:12px;margin-bottom:15px}.toggle-row label{cursor:pointer}.member-options{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.member-option{display:flex;align-items:center;gap:7px;border:1px solid var(--accent-line);background:white;border-radius:30px;padding:5px 10px 5px 5px;font-size:12px;cursor:pointer}.member-option:has(input:checked){background:var(--accent-wash);border-color:var(--accent-line)}.member-option .avatar{width:28px;height:28px;font-size:18px}.split-row{display:grid;grid-template-columns:1fr 145px;gap:15px;align-items:center;margin:8px 0;font-size:13px}.advanced{border:1px dashed var(--accent-line);border-radius:15px;margin:16px 0;padding:12px 14px}.advanced summary{cursor:pointer;font-size:12px;color:var(--muted);min-height:24px}.advanced[open] summary{margin-bottom:16px}.conversion-preview{font-size:12px;color:var(--muted);background:var(--accent-wash);border-radius:10px;padding:10px 12px;margin-top:5px}.error{background:#fbe8e2;color:#a34e43;border-radius:12px;padding:12px;font-size:12px;margin-bottom:15px}.form-error:empty{display:none}.detail-title{font-family:Itim;font-size:27px;margin:12px 0 5px}.detail-value{font-size:35px;font-weight:800;margin:6px 0}.detail-original{font-size:12px;color:var(--muted)}.detail-top{text-align:center;margin-bottom:22px}.detail-top .category-icon{margin:auto;width:64px;height:64px;font-size:35px}.detail-section{border-top:1px dashed var(--accent-line);margin-top:18px;padding-top:18px}.detail-section h3{font-size:12px;color:var(--muted);margin-bottom:8px}.detail-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;font-size:13px}.bill-photo{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:14px;margin-top:12px;background:#fff}.action-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.payment-equation{text-align:center;padding:16px;background:var(--accent-wash);border-radius:15px;margin-top:16px;font-size:13px}.payment-equation b{display:block;font-size:26px;margin-top:5px}.demo-users{display:grid;gap:9px}.demo-users button{display:flex;align-items:center;gap:12px;padding:12px;background:white;border:1px solid var(--line);border-radius:15px;text-align:left}.demo-users button.active{background:var(--accent-wash);border-color:var(--accent-line)}.account-description{font-size:11px;color:#a08da7;margin-top:5px}.month-navigation{display:flex;gap:7px;align-items:center}.search-note{font-size:12px;color:var(--muted);margin-bottom:10px}.toast{position:fixed;z-index:30;bottom:85px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;font-size:13px;max-width:calc(100% - 32px);padding:13px 20px;border-radius:15px;box-shadow:0 5px 20px #21112922}.login-illustration{width:150px;height:130px;margin:0 auto 18px}.login-title{font-family:Itim;font-size:28px;text-align:center;margin-bottom:10px}.onboarding-text{text-align:center;font-size:12px;color:var(--muted);margin-bottom:20px}
@media(min-width:1450px){.main{padding-left:54px;padding-right:54px}.dashboard{grid-template-columns:minmax(0,1fr) 320px}.hero{min-height:282px}.hero-mascot{right:35px;width:198px;height:170px}}
@media(max-width:1150px){.sidebar{width:195px;padding:28px 17px}.workspace{margin-left:195px}.topbar{padding:0 26px}.main{padding:26px 26px 95px}.dashboard{grid-template-columns:minmax(0,1fr) 255px;gap:18px}.hero{padding:23px}.hero .hero-value{font-size:41px}.hero-mascot{width:140px;right:5px;top:20px}.hero-sticker{right:14px;font-size:12px;top:143px}.hero .spark{display:none}.hero-copy .hand{font-size:21px}.card{padding:19px}.prototype-tools{left:calc(50% + 97px)}.settle-layout{grid-template-columns:minmax(0,1fr) 255px}.member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading h1{font-size:27px}}
@media(max-width:900px){.sidebar{width:80px;padding:25px 12px}.sidebar .brand>div,.sidebar .side-label,.sidebar .side-note,.sidebar .credits,.nav button span,.nav .count{display:none}.sidebar .brand{justify-content:center}.nav{margin-top:35px}.nav button{justify-content:center;padding:14px}.workspace{margin-left:80px}.prototype-tools{left:calc(50% + 40px)}.dashboard{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.main{padding:24px 22px 95px}.hero-copy .hand{font-size:20px}.hero-mascot{width:125px;right:-2px}.hero-caption{max-width:190px}.hero-foot{gap:10px}.hero-foot>div+div{padding-left:13px}.hero-foot b{font-size:17px}.settle-layout{grid-template-columns:1fr}.settle-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settle-layout>aside .receiving{margin-top:0}.crumb{font-size:11px}.page-heading .action-set .button{font-size:11px;padding:9px 12px}.top-actions{gap:6px}}
@media(max-width:720px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:72px;padding:0 20px}.crumb{display:none}.mobile-brand{display:flex}.mobile-brand .brand{font-size:27px}.mobile-brand .brand [data-mascot]{width:38px;height:38px}.mobile-brand .brand-sub{display:none}.topbar .prototype-note{display:none}.profile{border:0;padding:0}.profile>span:not(.avatar){display:none}.top-actions{gap:8px}.main{padding:22px 18px 145px}.page-heading{align-items:flex-start;margin-bottom:21px}.page-heading h1{font-size:26px;max-width:270px}.page-heading .eyebrow{font-size:9px}.page-heading .subtitle{font-size:11px}.trip-meta{gap:9px;font-size:10px;margin-top:8px}.page-heading .action-set{gap:0}.page-heading .action-set .button.light{min-width:38px;padding:8px;border:0;background:transparent}.page-heading .action-set .button.light span{display:none}.page-heading .action-set>.button:not(.light){display:none}.dashboard{display:flex;flex-direction:column;gap:22px}.primary-column,.aside-column{gap:20px}.hero{min-height:259px;padding:24px}.hero .hero-value{font-size:46px}.hero-copy .hand{font-size:23px}.hero-mascot{width:154px;height:144px;right:2px;top:10px}.hero-sticker{right:20px;top:145px;font-size:12px}.hero-caption{font-size:10px;max-width:200px}.hero-foot{margin-top:21px;padding-top:15px;gap:15px}.hero-foot b{font-size:20px}.hero-foot>div+div{padding-left:20px}.card{padding:20px}.aside-column{display:grid;grid-template-columns:1fr 1fr;align-items:start}.aside-column .budget-card,.aside-column .summary-card{grid-column:span 1;height:100%;padding:17px}.budget-card .card-title{font-size:13px}.budget-card .card-head{align-items:flex-start;margin-bottom:10px}.budget-card .card-head .icon-button{min-width:24px;min-height:24px}.budget-value{font-size:24px;margin-top:10px}.budget-line{font-size:9px;display:block}.budget-line span{display:block}.budget-foot{font-size:12px;line-height:1.5}.summary-card h3{font-size:20px}.summary-card .sum{font-size:25px}.summary-card small{font-size:10px}.mini-row{font-size:10px}.trip-friends,.foot-doodle{grid-column:1/-1}.foot-doodle{display:none}.trip-friends{padding:5px 5px 10px}.bottom-nav{display:flex;align-items:center;justify-content:space-around;position:fixed;inset:auto 0 0;z-index:15;background:#fffdf9f5;backdrop-filter:blur(20px);padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e9e3da;box-shadow:0 -5px 20px #34233404}.bottom-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px;color:#a096a5;min-width:52px;min-height:45px}.bottom-nav>button.active{color:var(--accent)}.bottom-nav>button.add{background:var(--ink);color:white;border-radius:17px;width:52px;min-height:48px;box-shadow:0 4px 0 var(--accent-line);transform:translateY(-10px)}.bottom-nav>button.add .icon{width:24px;height:24px}.prototype-tools{left:50%;bottom:83px;padding:3px 5px;max-width:calc(100% - 30px);gap:0}.prototype-tools span{font-size:9px;padding:0 5px}.prototype-tools button{font-size:9px;padding:6px 8px;min-height:29px}.prototype-tools .reset-label{display:none}.settle-teaser{padding:13px;gap:8px}.settle-teaser .icon{width:22px}.settle-teaser p{font-size:10px}.settle-teaser b{font-size:12px}.settle-teaser .button{font-size:11px;padding:9px 10px}.day-strip{gap:5px}.day-chip{min-width:45px;min-height:74px}.day-chip b{font-size:18px}.expense-row{gap:9px}.expense-title{font-size:12px}.expense-sub{font-size:9px}.expense-amount b{font-size:13px}.category-icon{width:40px;height:40px;font-size:22px}.toolbar{gap:8px}.toolbar .search{flex-basis:100%}.toolbar select{min-width:110px;flex:1}.scope-switch button{white-space:nowrap;padding:7px 12px}.full-calendar{padding:18px 12px}.calendar-grid{gap:3px}.calendar-day{min-height:57px;font-size:13px}.calendar-day small{font-size:8px}.settle-layout>aside{display:flex;flex-direction:column}.settle-banner{padding:17px;gap:10px}.settle-banner h2{font-size:23px}.settle-banner p{font-size:11px}.settle-banner svg{width:68px}.payment-card{padding:16px}.payment-path{gap:5px}.payment-path .arrow{margin:0 4px}.payment-path .avatar{width:31px;height:31px;font-size:19px}.payment-sum{font-size:21px}.payment-bottom{align-items:flex-start}.payment-bottom .button{white-space:nowrap}.member-grid{grid-template-columns:1fr 1fr;gap:12px}.member-card{padding:18px}.member-card .button{font-size:10px;padding:8px}.trip-grid{grid-template-columns:1fr}.toast{bottom:132px;font-size:12px;white-space:normal}.modal-head{padding:15px 18px}.modal-body{padding:20px 18px}.modal-head h2{font-size:25px}dialog{max-height:92dvh;border-radius:22px;width:calc(100% - 20px)}.field-grid{gap:10px}.field-grid.amount-grid{grid-template-columns:minmax(0,1fr) 100px}.split-row{grid-template-columns:1fr 125px}.card-head .hand{font-size:22px}.detail-value{font-size:31px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.category-icon.sports{background:#e3edc5}

/* Financial meaning stays consistent across the pastel surfaces. */
:root{--receive:#2d6142;--owe:#943c2f;--pending:#865a0b}
.positive{color:var(--receive)}.negative{color:var(--owe)}.pending-amount{color:var(--pending)}.neutral{color:var(--muted)}
.hero-value,.hero-foot b,.budget-value,.summary-card .sum,.payment-sum,.expense-amount,.balance,.receipt-line b,.calendar-day small{font-variant-numeric:tabular-nums}
.badge.lime{background:#e5f0e4;color:#2d6142}.badge.yellow{background:#fff0c8;color:#79500b}.badge.gray{color:var(--muted)}
.expense-sub,.expense-amount small,.payment-bottom small,.helper,.field small,.receipt-note,.budget-line,.private-label,.activity-item small{color:var(--muted)}
.calendar-day small{color:var(--muted);font-weight:700}.calendar-day small.positive{color:var(--receive)}
.proof-upload{border:1px dashed var(--accent-line);border-radius:16px;background:var(--accent-wash);padding:15px;margin:18px 0}
.proof-upload .field{margin-bottom:0}.optional{font-weight:400;color:var(--muted)}.proof-filename{margin-top:8px;overflow-wrap:anywhere}
.proof-link{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--accent-wash);border:1px solid var(--accent-line);border-radius:13px;padding:10px 12px;margin-top:14px}
.proof-link:hover{background:var(--accent-wash)}.proof-link>img{width:46px;height:58px;object-fit:cover;object-position:top;border:1px solid var(--accent-line);background:white;border-radius:7px}
.proof-link>span{flex:1;min-width:0}.proof-link b{display:block;font-size:12px;color:var(--accent)}.proof-link small{display:block;font-size:11px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.proof-private{font-size:11px;color:var(--muted);margin-top:12px}.proof-review{margin-top:20px}.proof-review h3{font-size:14px}.proof-review .helper{overflow-wrap:anywhere}
.proof-full{display:block;width:100%;height:auto;border:1px solid var(--accent-line);border-radius:14px;margin-top:12px;background:white}
.proof-summary{display:grid;gap:4px;text-align:center}.proof-summary strong{font-size:30px;font-variant-numeric:tabular-nums}.proof-summary span{font-size:12px;color:var(--muted)}
.settle-main{min-width:0}.settle-focus{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--accent-wash);border:1px solid var(--accent-line);border-radius:22px;padding:22px 24px;margin-bottom:22px}
.settle-focus small{font-size:12px}.settle-focus strong{display:block;font-size:34px;line-height:1.5;font-variant-numeric:tabular-nums}.settle-focus p{font-size:11px;color:var(--muted)}
.pending-shortcut{display:grid;justify-items:end;gap:8px;text-align:right;font-size:11px;min-height:44px}.pending-shortcut>span:last-child{display:flex;align-items:center;gap:3px}.pending-shortcut .icon{width:15px;height:15px}
.settle-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.settle-filter b{font-size:13px}.settle-filter p{font-size:11px;color:var(--muted);margin-top:3px}
.settlement-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}.settlement-tabs>button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:88px;border:1px solid var(--accent-line);border-radius:16px;background:#fff;color:var(--muted);padding:12px 8px;text-align:left}
.settlement-tabs>button>b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:10px;background:#f1eee9;font-size:17px;line-height:1}.settlement-tabs>button>span{font-size:12px;line-height:1.6}.settlement-tabs>button.active{background:var(--accent-wash);border:2px solid var(--accent);color:var(--accent-strong);padding:11px 7px}.settlement-tabs>button.active>b{background:var(--accent-soft);color:var(--accent-strong)}.settlement-tabs>button.pending>b{background:#fff0c8;color:#79500b}.settlement-tabs>button:hover{border-color:var(--accent)}
.settlement-panel-heading{margin:0 0 15px}.settlement-panel-heading h2{font-size:18px;display:inline;margin-right:8px}.settlement-panel-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}.settlement-panel-heading p{font-size:12px;color:var(--muted);margin-top:5px}
.settlement-empty{border:1px dashed var(--accent-line);border-radius:20px;text-align:center;padding:32px 20px;background:#fffdf9}.settlement-empty>span{font-size:30px}.settlement-empty h3{font-family:Itim;font-size:24px;font-weight:400;margin:8px 0}.settlement-empty p{font-size:12px;color:var(--muted);margin:0 auto 16px;max-width:320px}.settlement-share{margin:8px 0}.payment-amount-block{text-align:right;flex-shrink:0}.payment-amount-block>small{display:block;font-size:10px;color:var(--muted)}
@media(max-width:720px){.settle-focus{padding:17px;margin-bottom:18px}.settle-focus strong{font-size:30px}.settle-focus p{font-size:10px}.pending-shortcut{font-size:10px}.settle-filter{align-items:flex-start}.settle-filter p{max-width:180px}.settlement-tabs{gap:6px;margin-bottom:20px}.settlement-tabs>button{min-height:103px;flex-direction:column;gap:6px;text-align:center;padding:9px 5px}.settlement-tabs>button.active{padding:8px 4px}.settlement-tabs>button>span{font-size:12px}.settlement-tabs>button>b{height:25px;min-width:27px;font-size:15px;border-radius:8px}.settlement-panel-heading h2{font-size:17px}.settlement-panel-heading>span{display:block;margin-top:3px}.payment-amount-block .payment-sum{font-size:21px}}
@media(max-width:720px){.payment-bottom{flex-wrap:wrap}.payment-bottom>.stack{margin-left:auto}.proof-link b{font-size:12px}.helper,.field small{font-size:12px}.calendar-day small{font-size:9px}}

/* Compact trip controls with full-size touch targets. */
.trip-people-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-9px 0 18px}
.trip-people-link{display:flex;align-items:center;gap:7px;min-height:44px;color:var(--muted);font-size:13px;text-align:left}
.trip-people-link>.icon{width:18px;height:18px}.trip-people-link>.icon:last-child{width:14px;height:14px}
.trip-people-bar>.button.people-add{min-height:44px;padding:8px 12px;border:1px solid var(--accent-line);border-radius:12px;background:var(--accent-wash);color:var(--accent);font-size:12px;box-shadow:none}
.trip-people-bar>.button.people-add:hover{background:var(--accent-wash)}.people-add>.icon{width:16px;height:16px}
.people-start-hint{flex-basis:100%;margin:-7px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.ended-trip-hint{display:block;color:var(--muted);font-size:12px;margin-top:3px}
@media(max-width:720px){.trip-people-bar{margin:-10px 0 15px;gap:10px}.trip-people-link{font-size:12px}.trip-meta{flex-wrap:wrap}}
@media(max-width:720px){.list{grid-template-columns:minmax(0,1fr)}.list>.expense-row{min-width:0}.expense-title{display:block}.expense-row>.category-icon,.expense-row>.icon{flex-shrink:0}}

.empty-mascot{display:block;width:100px;height:85px;margin:0 auto 10px}

/* A guided trip setup: one question at a time, with the original pocket mascot. */
dialog.trip-onboarding[open]{display:flex;flex-direction:column;width:min(640px,calc(100% - 32px));height:min(820px,92dvh);max-height:92dvh;background:var(--paper)}
.trip-onboarding .modal-head{flex-shrink:0;border-bottom:0;padding:16px 24px 8px}.trip-onboarding .modal-head h2{font-family:var(--font);font-size:14px;font-weight:700}.trip-onboarding .modal-body{padding:0;overflow-y:auto;flex:1;min-height:0;display:flex;flex-direction:column}
.setup-progress{display:flex;list-style:none;padding:14px 30px 10px;margin:0;gap:6px;flex-shrink:0}.setup-progress li{flex:1;display:flex;align-items:center;gap:7px;font-size:10px;color:#928797;position:relative}.setup-progress li:after{content:'';height:1px;flex:1;background:var(--accent-line);margin:0 3px}.setup-progress li:last-child:after{display:none}.setup-progress li>span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#eee9e1;flex-shrink:0}.setup-progress li b{font-weight:400;white-space:nowrap}.setup-progress .current{color:var(--accent)}.setup-progress .current>span{background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.setup-progress .done>span{background:#e1ebbc;color:#4c673b}
#trip-setup-form{flex:1;display:flex;flex-direction:column;min-width:0}.setup-content{padding:12px 48px 24px;flex:1}.setup-hello{text-align:center;margin-bottom:25px}.setup-mascot{background:var(--accent-soft);width:112px;height:98px;margin:0 auto 14px;border-radius:48% 52% 45% 55%;transform:rotate(-5deg)}.setup-mascot [data-mascot]{width:122px;height:103px;transform:rotate(5deg);margin-left:-5px}.setup-kicker{font-size:10px;letter-spacing:.4px;color:var(--muted);margin-bottom:7px}.setup-hello h3{font-family:Itim;font-weight:400;font-size:32px;line-height:1.3;outline:none}.setup-hello>p{color:var(--muted);font-size:12px;line-height:1.7;margin:8px auto 0;max-width:350px}
.setup-field{display:block;margin:0 0 18px;min-width:0}.setup-field>span{display:block;font-size:12px;font-weight:700;margin-bottom:8px}.setup-field>span>small{font-weight:400;color:#8a7d94}.setup-field input,.setup-field select{border-color:var(--accent-line);background:#fffefa;min-height:52px;font-size:15px;border-radius:14px}.setup-field input:focus,.setup-field select:focus{outline:2px solid var(--accent-line);outline-offset:2px}.setup-field input::placeholder{color:#aaa0b1}.setup-suggestions{display:flex;flex-wrap:wrap;gap:8px}.setup-suggestions>span{width:100%;font-size:11px;color:#85798f;margin-bottom:3px}.setup-suggestions>button{border:1px solid var(--accent-line);border-radius:20px;padding:9px 12px;font-size:11px;background:var(--accent-wash);min-height:40px}.setup-suggestions>button:hover{background:var(--accent-soft)}
.setup-date-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.setup-note{font-size:11px;color:var(--muted);line-height:1.7;margin:-6px 0 18px}.setup-money-note{background:#e8eddb;padding:13px 16px;border-radius:14px;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;margin-bottom:18px}.setup-money-note b{white-space:nowrap}.setup-advanced{border-top:1px dashed var(--accent-line);padding-top:13px;margin-top:20px}.setup-advanced summary{font-size:12px;color:var(--muted);cursor:pointer;min-height:35px}.setup-advanced[open] summary{margin-bottom:12px}.setup-member-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.setup-member{display:inline-flex;align-items:center;gap:5px;font-size:12px;background:white;border:1px solid var(--accent-line);border-radius:25px;padding:5px 5px 5px 12px;min-height:40px;overflow-wrap:anywhere}.setup-member.owner{background:#e8eddb;border-color:#dbe3c8;padding:9px 12px}.setup-member small{font-size:10px;color:#6f795e}.setup-member>button{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:50%;font-size:22px;color:var(--muted)}.setup-member>button:hover{background:#f4e6e6}.setup-friend-input{display:flex;gap:8px}.setup-friend-input input{min-width:0;flex:1}.setup-friend-input .button{flex-shrink:0}
.setup-ticket{padding:16px 18px;border:1px dashed var(--accent-line);background:var(--accent-wash);border-radius:16px;line-height:1.7;margin-top:22px;overflow-wrap:anywhere}.setup-ticket>span{font-size:10px;color:var(--muted);display:block}.setup-ticket>b{font-family:Itim;font-size:23px;font-weight:400;display:block}.setup-ticket p{font-size:12px}.setup-ticket>div{border-top:1px dashed var(--accent-line);padding-top:9px;margin-top:9px;font-size:11px;color:var(--muted)}
.setup-error:not(:empty){padding:12px;background:#fbe8e2;border-radius:12px;font-size:12px;line-height:1.6;color:#974b3e;margin:14px 0}.setup-footer{position:sticky;bottom:0;z-index:2;background:#faf8f2f5;backdrop-filter:blur(12px);padding:16px 28px 18px;border-top:1px solid var(--accent-line);flex-shrink:0}.setup-footer-actions{display:flex;gap:10px}.setup-footer-actions>.button{min-height:48px}.setup-footer-actions>.setup-next{flex:1;background:var(--accent);border-color:var(--accent);color:white}.setup-footer-actions>.setup-next:hover{background:var(--accent-strong)}.setup-footer>p{font-size:10px;color:#8b7e93;text-align:center;line-height:1.5;margin:10px 0 0}
@media(max-width:720px){dialog.trip-onboarding[open]{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.trip-onboarding .modal-head{padding:14px 18px 6px}.setup-progress{padding:10px 18px 14px;gap:3px}.setup-progress li{gap:4px;font-size:9px}.setup-progress li>span{width:22px;height:22px}.setup-progress li:after{margin:0 1px}.setup-content{padding:12px 24px 24px}.setup-hello{margin-bottom:24px}.setup-hello h3{font-size:30px}.setup-hello>p{font-size:12px}.setup-field input,.setup-field select{font-size:16px}.setup-footer{padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.setup-date-grid{gap:8px}.setup-date-grid input{font-size:13px;padding:10px 8px}.setup-mascot{margin-bottom:14px}.setup-progress li b{white-space:normal;line-height:1.35}.setup-footer-actions>.button{font-size:12px}}
@media(max-width:360px){.setup-content{padding:8px 18px 18px}.setup-hello h3{font-size:27px}.setup-suggestions>button{font-size:10px}.setup-progress li:after{display:none}.setup-progress{gap:6px}.setup-progress li{flex-direction:column;gap:4px;text-align:center}.setup-date-grid{grid-template-columns:1fr}.setup-date-grid .setup-field{margin-bottom:10px}}

/* Quick expense entry: visible essentials, details only when relevant. */
dialog.expense-editor[open]{display:flex;flex-direction:column;width:min(900px,calc(100% - 40px));max-width:none;height:min(870px,94dvh);max-height:94dvh;overflow:hidden}.expense-editor .modal-head{padding:18px 26px;flex:none}.expense-editor .modal-head h2{font-size:25px}.expense-editor .modal-body{padding:0;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}.expense-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:24px 26px}.expense-basics,.expense-people{min-width:0}.expense-welcome{display:flex;align-items:center;gap:10px;margin-bottom:16px}.expense-welcome [data-mascot]{width:55px;height:48px;flex:none}.expense-welcome b{display:block;font-family:Itim;font-size:23px;font-weight:400}.expense-welcome span{font-size:12px;color:var(--muted)}.expense-privacy{display:flex;gap:8px;align-items:center;font-size:12px;margin-bottom:20px;cursor:pointer}.expense-privacy .icon{width:15px;height:15px}.expense-privacy small{margin-left:auto;color:var(--muted)}.expense-section{border:1px solid var(--accent-line);border-radius:20px;background:#fffdfb;padding:18px;margin-bottom:14px}.expense-bill{background:var(--accent-wash);border-color:var(--accent-wash)}.expense-editor .field{margin-bottom:14px}.expense-editor .field label,.expense-editor legend{font-size:13px}.expense-editor input,.expense-editor select,.expense-editor textarea{min-width:0}.expense-editor .amount-grid{grid-template-columns:minmax(0,1fr) 112px;gap:10px}.expense-editor .amount-grid select{height:62px;padding:8px;font-size:13px}.expense-editor .amount-input{font-size:30px;height:62px;color:var(--accent-strong);border-color:var(--accent-line)}.expense-date{min-width:0}.expense-date-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.expense-date-heading label{margin:0}.expense-date-heading button{flex:none;min-width:44px;min-height:44px;padding:8px}.expense-date .expense-date-control{display:flex;margin:0;font-weight:400;align-items:center;min-height:52px;width:100%;min-width:0;border:1px solid var(--accent-line);border-radius:12px;background:#fff;padding:0 12px;box-sizing:border-box}.expense-date-control:focus-within{outline:2px solid var(--accent-line);outline-offset:2px}.expense-date input[type="date"]{display:block;width:100%;max-width:100%;min-width:0;min-inline-size:0;height:26px;min-height:26px;line-height:26px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-sizing:border-box;-webkit-appearance:none;appearance:none;outline:none}.expense-date input[type="date"]::-webkit-date-and-time-value{min-width:0;margin:0;line-height:26px;text-align:center}.expense-text-button{padding:8px 0;color:var(--accent);font-size:12px;font-weight:700;background:transparent;border:0;cursor:pointer;min-height:40px}.expense-choice-group{border:0;padding:0;margin:0;min-width:0}.expense-choice-group legend{font-weight:700;margin-bottom:9px}.expense-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.expense-category,.expense-split-mode label{position:relative;cursor:pointer}.expense-category input,.expense-split-mode input,.expense-person input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;pointer-events:none}.expense-category span{display:flex;justify-content:center;align-items:center;min-height:42px;border:1px solid var(--accent-line);border-radius:12px;background:white;font-size:12px;white-space:nowrap}.expense-category:has(input:checked) span{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.expense-category:has(input:focus-visible),.expense-person:has(input:focus-visible),.expense-split-mode label:has(input:focus-visible){outline:3px solid var(--accent-line);outline-offset:3px;border-radius:12px}.expense-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.expense-section-heading h3{font-size:17px;font-family:Itim;font-weight:400;margin:0}.expense-section-heading>span{font-size:11px;background:var(--accent-wash);padding:3px 9px;border-radius:20px;color:var(--muted)}.expense-hint{font-size:12px;color:var(--muted);margin:0 0 12px}.expense-person-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.expense-person{display:flex;position:relative;align-items:center;gap:5px;min-height:42px;padding:6px 8px;border:1px solid var(--accent-line);border-radius:12px;background:#fff;cursor:pointer;min-width:0}.expense-person>span{font-size:18px;flex:none}.expense-person b{font-size:12px;font-weight:400;overflow-wrap:anywhere}.expense-person i{font-style:normal;font-size:11px;margin-left:auto;color:transparent;flex:none}.expense-person:has(input:checked){background:var(--accent-wash);border-color:var(--accent-line)}.expense-person:has(input:checked) i{color:var(--accent)}.expense-payers .expense-person:has(input:checked){background:#e8f0dc;border-color:#b4c78f}.expense-payers .expense-person:has(input:checked) i{color:#5a7039}.expense-inline-note{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.6}.expense-payers .expense-inline-note{color:#627747}.expense-split-mode{display:flex;padding:3px;border-radius:12px;background:var(--accent-wash);margin:8px 0 12px;gap:3px}.expense-split-mode label{flex:1}.expense-split-mode span{display:block;text-align:center;padding:9px 4px;font-size:12px;border-radius:9px}.expense-split-mode input:checked+span{background:#fff;color:var(--accent);box-shadow:0 1px 4px #4b365518;font-weight:700}.expense-amount-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,155px);gap:10px;align-items:center;margin-top:12px;font-size:12px}.expense-amount-row>div{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.expense-amount-row input{font-variant-numeric:tabular-nums;text-align:right}.expense-remainder{font-size:11px;color:var(--accent);border:0;background:transparent;cursor:pointer;padding:6px 0;min-height:30px}.expense-tally{font-size:12px;padding:10px 12px;border-radius:10px;background:var(--accent-wash);margin-top:10px}.expense-tally.complete{color:#4e6b35;background:#eaf1df}.expense-tally.mismatch{color:#915b36;background:#fff0e2}.expense-fx{margin-top:16px;padding-top:16px;border-top:1px dashed var(--accent-line)}.expense-fx summary{font-size:12px;color:var(--accent);cursor:pointer;margin-bottom:12px}.expense-extras{grid-column:1 / -1;border:1px dashed var(--accent-line);padding:14px 16px;border-radius:15px;min-width:0}.expense-extras summary{font-size:13px;cursor:pointer}.expense-extras summary span{float:right;font-size:11px;color:#97859e}.expense-extras[open] summary{margin-bottom:18px}.expense-save{position:sticky;bottom:0;z-index:2;padding:12px 26px 10px;background:#faf8f3f5;backdrop-filter:blur(10px);border-top:1px solid var(--accent-line);display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 16px}.expense-save #expense-conversion{font-size:13px;font-weight:700;color:var(--muted)}.expense-save>.button{min-width:210px;min-height:48px}.expense-save>p{grid-column:1 / -1;text-align:center;font-size:10px;color:#97859e}.expense-save .form-error{grid-column:1 / -1;grid-row:1}.expense-save .error{margin:0}.expense-editor .hidden{display:none!important}
@media(max-width:720px){dialog.expense-editor[open]{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0}.expense-editor .modal-head{padding:12px 18px}.expense-editor .modal-head h2{font-size:23px}.expense-layout{display:flex;flex-direction:column;gap:0;padding:14px 16px 20px}.expense-welcome{margin-bottom:12px}.expense-welcome [data-mascot]{width:46px;height:40px}.expense-welcome b{font-size:22px}.expense-privacy{margin-bottom:14px}.expense-section{padding:15px;margin-bottom:14px}.expense-editor input,.expense-editor select,.expense-editor textarea{font-size:16px}.expense-editor .amount-grid select{font-size:14px}.expense-person b{font-size:12px}.expense-section-heading h3{font-size:19px}.expense-save{padding:10px 16px max(10px,env(safe-area-inset-bottom));gap:6px;grid-template-columns:1fr}.expense-save #expense-conversion{text-align:center;font-size:12px}.expense-save>.button{width:100%;min-height:48px}.expense-save>p{font-size:9px}.expense-extras{margin-top:2px}.expense-editor .expense-bill{margin-bottom:14px}}
@media(max-width:360px){.expense-layout{padding:12px}.expense-section{padding:12px}.expense-person-grid{gap:5px}.expense-person{padding:5px;gap:3px}.expense-person b{font-size:11px}.expense-person>span{font-size:16px}.expense-categories{gap:5px}.expense-category span{font-size:11px}.expense-editor .amount-grid{grid-template-columns:minmax(0,1fr) 100px}}
/* Keep save controls outside the scrolling form so fields never sit behind them. */
.expense-editor .modal-body{display:flex;flex-direction:column;overflow:hidden}.expense-editor #expense-form{display:flex;flex-direction:column;flex:1;min-height:0}.expense-editor .expense-layout{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;scroll-padding-block:16px}.expense-editor .expense-save{position:static;flex:none}.expense-editor .expense-layout>.expense-basics,.expense-editor .expense-layout>.expense-people,.expense-editor .expense-layout>.expense-extras{flex-shrink:0}

.settlement-fx{margin:12px 0;padding:12px 14px;background:var(--accent-wash);border:1px solid var(--accent-line);border-radius:13px;color:var(--accent-strong);text-align:left}.settlement-fx>span{display:block;font-size:11px;margin-bottom:7px}.settlement-fx>div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;margin:5px 0}.settlement-fx b{font-size:16px;font-variant-numeric:tabular-nums}.settlement-fx small{display:block;font-size:10px;line-height:1.6;font-weight:400;color:var(--muted)}.settlement-fx>small{margin-top:7px}.payment-equation>span{display:block;font-size:12px}.payment-equation>small{display:block;font-size:11px;color:var(--muted);margin:4px 0 14px}.payment-equation>strong{display:block;font-size:20px;margin-top:4px}.payment-equation>b{margin:4px 0 8px}.expense-save #expense-conversion{line-height:1.6;overflow-wrap:anywhere}
