/* GENERATED FILE - DO NOT EDIT.
   Source: shared/expense-ui.css - run `npm run sync:shared` after editing. */

/* Expenses tab, "one expense, one window" (owner 2026-11-21, approved mock) — web + app, one file (shared/expense-ui.js).
   Every class is xu-. A host may set on .xu (or any parent):
     --xu-fab-bottom   how far the "+ Add expense" button sits from the bottom of the screen (the app: above its bar)
     --xu-fab-z        its layer
     --xu-pad-bottom   room kept under the last row so the button never covers it */

.xu {
  --xu-ink: #22201b;
  --xu-green: #1d3a2e;
  --xu-get: #17603a;
  --xu-owe: #b3261e;
  --xu-soft: #7d705a;
  --xu-card: #fffdf8;
  --xu-line: #e9dfc9;
  --xu-sand: #efe6d6;
  --xu-gold: #e6c56e;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--xu-ink);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.xu *, .xu *::before, .xu *::after { box-sizing: border-box; }
/* a reset that never outweighs a class below (:where carries no weight) */
:where(.xu) button, :where(.xu) input, :where(.xu) select, :where(.xu) textarea { font-family: inherit; color: inherit; margin: 0; }
.xu button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xu button:disabled { cursor: default; }
.xu [hidden] { display: none !important; }
.xu :focus { outline: none; }
.xu :focus-visible { outline: 3px solid #2f7a6b; outline-offset: 2px; }
.xu-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xu-root { position: relative; padding-bottom: var(--xu-pad-bottom, 104px); }
.xu-root.is-nofab { padding-bottom: 24px; }

/* faces + category icons */
.xu-av { position: relative; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; color: #fff; font: 700 12px/1 "DM Sans", sans-serif; font-style: normal; text-transform: uppercase; }
.xu-av.sm { width: 22px; height: 22px; font-size: 10px; }
.xu-av.lg { width: 40px; height: 40px; font-size: 15px; }
.xu-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xu-av.is-more { background: #7d705a; }
.xu-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--xu-sand); color: var(--xu-green); }
.xu-ic svg { width: 22px; height: 22px; }
.xu-ic.sm { width: 28px; height: 28px; border-radius: 9px; }
.xu-ic.sm svg { width: 16px; height: 16px; }
.xu-ic.is-stay { background: #e3ecf5; color: #2b3f6b; }
.xu-ic.is-food { background: #f8e7d6; color: #a8442a; }
.xu-ic.is-act { background: #e2efe4; color: #1f6b3e; }
.xu-ic.is-car { background: #efe6f3; color: #6a3f80; }
.xu-ic.is-bag { background: #f5ecc8; color: #8a6410; }
.xu-ic.is-fly { background: #dff0ec; color: #2f7a6b; }
.xu svg.xu-tick { width: 14px; height: 14px; vertical-align: -2px; }

/* the strip under the total */
.xu-you { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: #e7f1e8; border: 1px solid #cfe0d2; text-align: left; }
.xu-you b { font: 700 15.5px/1.2 "DM Sans", sans-serif; color: var(--xu-get); }
.xu-you span { font: 600 13.5px/1 "DM Sans", sans-serif; color: var(--xu-green); white-space: nowrap; }
.xu-you.is-owe { background: #fbeceb; border-color: #f0cfcc; }
.xu-you.is-owe b { color: var(--xu-owe); }

/* Expenses · Balances · Summary */
.xu-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 16px 0 0; padding: 4px; border-radius: 999px; background: #ebe4d6; }
.xu-root > .xu-tabs:first-child { margin-top: 0; }
.xu-tabs button { display: grid; place-items: center; height: 44px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; font: 600 14.5px/1 "DM Sans", sans-serif; color: #6d6657; }
.xu-tabs button[aria-selected="true"] { background: var(--xu-card); color: var(--xu-green); box-shadow: 0 2px 6px rgba(60, 45, 20, 0.12); }
.xu-panel { margin-top: 14px; }

.xu-review { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 12px 16px; border-radius: 14px; background: #fff7e0; border: 1px dashed #e0c682; font: 600 13.5px/1.2 "DM Sans", sans-serif; color: #7a5a12; text-align: left; }
.xu-review span:last-child { white-space: nowrap; }

/* the list */
.xu-day { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 2px 10px; font: 700 12px/1.2 "DM Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--xu-soft); }
.xu-day h3 { margin: 0; font: inherit; letter-spacing: inherit; }
.xu-day b { font: 700 13px/1 "DM Sans", sans-serif; letter-spacing: 0; color: var(--xu-green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xu-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
.xu-row { border-radius: 16px; background: var(--xu-card); border: 1px solid var(--xu-line); }
.xu-row-h { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 16px; background: transparent; text-align: left; }
.xu-row-t { flex: 1; min-width: 0; }
.xu-row-t b { display: block; font: 600 15px/1.25 "DM Sans", sans-serif; color: #1d1b16; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xu-row.is-open .xu-row-t b { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.xu-row-t span { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-top: 5px; font: 500 12.5px/1 "DM Sans", sans-serif; color: var(--xu-soft); white-space: nowrap; overflow: hidden; }
.xu-row-a { flex: none; text-align: right; }
.xu-row-a b { display: block; font: 700 15px/1.2 "DM Sans", sans-serif; font-variant-numeric: tabular-nums; }
.xu-row-a span { display: block; margin-top: 5px; font: 600 12px/1 "DM Sans", sans-serif; color: var(--xu-owe); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xu-row-a span.is-get { color: var(--xu-get); }
/* linked to a stop: its own line under the who-paid line, from the title's left edge (the amount stays beside the two lines above) */
.xu-row-stop { flex: 0 0 100%; display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 6px; padding-left: 54px; font: 500 12.5px/1.3 "DM Sans", sans-serif; text-decoration: none; color: var(--xu-get); }
.xu .xu-row-stop svg { flex: none; width: 12px; height: 12px; }
.xu-row-stop i { min-width: 0; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-row-x { padding: 2px 14px 12px; border-top: 1px solid #f0e8d6; }
/* an open row's shares: one tinted line per person, always one line (the collector, who still owes, who has paid) */
.xu-sh { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-height: 56px; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: #f6f1e6; }
.xu-sh:first-child { margin-top: 10px; }
.xu-sh.is-due { background: #f8dcd6; }
.xu-sh.is-paid { background: #e1efe5; }
.xu-sh.is-col { background: #e4e9f6; }
.xu-sh-t { flex: 1 1 0; min-width: 0; }
.xu-sh-t i { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 14.5px/1.25 "DM Sans", sans-serif; font-style: normal; color: #1d1b16; }
.xu-sh-t em { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 12px/1.25 "DM Sans", sans-serif; font-style: normal; color: #5d584c; }
.xu-sh.is-due .xu-sh-t em { color: #a3221b; }
.xu-sh.is-paid .xu-sh-t em { color: var(--xu-get); }
.xu-sh.is-col .xu-sh-t em { color: #2f3f7a; }
.xu-sh > b { flex: none; font: 700 15px/1 "DM Sans", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; color: #1d1b16; }
.xu-sh-c { position: relative; flex: none; display: grid; place-items: center; width: 72px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: transparent; font: 700 13px/1 "DM Sans", sans-serif; font-style: normal; }
.xu-sh-c.is-tag { background: #d3dbf1; color: #2f3f7a; }
.xu-sh-c.is-ok { color: var(--xu-get); }
.xu .xu-sh-c.is-ok svg { width: 20px; height: 20px; }
.xu-sh-q { border: 1.5px solid var(--xu-green); background: rgba(255, 255, 255, 0.55); color: var(--xu-green); }
.xu-sh-q::after, .xu-sh-u::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.xu-sh-q:disabled, .xu-sh-u:disabled { opacity: 0.6; }
/* a paid share that can be taken back: the tick sits in a quiet outlined pill */
.xu-sh-u { border: 1.5px solid rgba(23, 96, 58, 0.45); background: rgba(255, 255, 255, 0.55); color: var(--xu-get); }
.xu .xu-sh-u svg { width: 18px; height: 18px; }
/* who added it, who changed it, who reviewed it */
.xu-trace { margin: 12px 0 0; font: 500 12.5px/1.4 "DM Sans", sans-serif; color: var(--xu-soft); overflow-wrap: anywhere; }
.xu-trace b { font-weight: 700; color: #3b372f; }
.xu-row-n { margin: 10px 0 0; font: 500 13px/1.45 "DM Sans", sans-serif; color: #5d584c; overflow-wrap: anywhere; }
.xu-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xu-act { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #dcd2bd; background: var(--xu-card); font: 700 13px/1 "DM Sans", sans-serif; color: var(--xu-green); }
.xu-act.is-danger { color: var(--xu-owe); }

.xu-empty { display: grid; justify-items: center; gap: 6px; padding: 34px 20px 8px; text-align: center; }
.xu-empty img { width: 132px; height: 132px; object-fit: contain; }
.xu-empty b { margin-top: 10px; font: 600 20px/1.2 "Playfair Display", Georgia, serif; color: var(--xu-green); }
.xu-empty p { margin: 0 0 14px; font: 500 14px/1.4 "DM Sans", sans-serif; color: var(--xu-soft); }

/* + Add expense */
.xu-fabs { position: fixed; left: 50%; bottom: var(--xu-fab-bottom, 26px); transform: translateX(-50%); z-index: var(--xu-fab-z, 80); }
.xu-fab { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--xu-green); color: #fff !important; font: 700 16px/1 "DM Sans", sans-serif; white-space: nowrap; box-shadow: 0 14px 30px rgba(15, 35, 26, 0.38); }
.xu-fab svg { width: 20px; height: 20px; color: var(--xu-gold); }
.xu-fab2 { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; border-radius: 999px; border: 1.5px solid #dcd2bd; background: var(--xu-card); font: 700 13.5px/1 "DM Sans", sans-serif; color: var(--xu-green); white-space: nowrap; box-shadow: 0 10px 24px rgba(15, 35, 26, 0.18); }
.xu-fab2 svg { width: 20px; height: 20px; }
.xu-fab2 span { display: none; }
@media (min-width: 440px) {
  .xu-fab2 { width: auto; padding: 0 16px; }
  .xu-fab2 svg { display: none; }
  .xu-fab2 span { display: inline; }
}
.xu-btn { position: relative; flex: none; display: inline-grid; place-items: center; height: 38px; padding: 0 13px; border-radius: 999px; border: 1.5px solid #dcd2bd; background: var(--xu-card); font: 700 13px/1 "DM Sans", sans-serif; color: var(--xu-green); white-space: nowrap; }
.xu-btn::after, .xu-chip::after, .xu-modes button::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.xu-btn.is-dark { background: var(--xu-green); border-color: var(--xu-green); color: #fff; }
.xu-btn.is-gold { border: 0; background: linear-gradient(180deg, #f1c861, #dfa838); color: #2b1f05; }
.xu-btn.is-big { height: 48px; padding: 0 22px; font-size: 14px; }
.xu-btn:disabled { opacity: 0.6; }

/* the Add expense window */
dialog.xu-dlg { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
dialog.xu-dlg:not([open]) { display: none; }
dialog.xu-dlg[open] { display: flex; align-items: flex-end; justify-content: center; }
dialog.xu-dlg::backdrop { background: rgba(18, 28, 22, 0.55); }
dialog.xu-dlg.is-plain { z-index: 2147483000; background: rgba(18, 28, 22, 0.55); }
.xu-sheet { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100% - 28px); padding: 10px 0 0; border-radius: 26px 26px 0 0; background: var(--xu-card); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25); }
.xu-grab { flex: none; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #dcd2bd; }
.xu-sh-h { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.xu-sh-h h2 { margin: 0; font: 600 20px/1 "Playfair Display", Georgia, serif; color: var(--xu-green); }
.xu-x { display: grid; place-items: center; width: 44px; height: 44px; margin: -4px -4px -4px 0; border: 0; border-radius: 50%; background: transparent; color: var(--xu-green); }
.xu-x i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--xu-sand); }
.xu-x svg { width: 16px; height: 16px; }
.xu-sh-b { flex: 1 1 auto; min-height: 0; padding: 0 20px 4px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.xu-sh-f { flex: none; padding: 0 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
.xu-amt { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 14px 0 2px; }
.xu-amt-in { display: inline-flex; align-items: baseline; padding: 0 4px; border-bottom: 2px solid transparent; max-width: calc(100% - 96px); font: 600 46px/1 "Playfair Display", Georgia, serif; color: var(--xu-green); letter-spacing: -0.01em; }
.xu-amt-box { display: inline-grid; min-width: 0.6em; max-width: 100%; overflow: hidden; }
.xu-amt-in[data-len="m"] { font-size: 36px; }
.xu-amt-in[data-len="l"] { font-size: 28px; }
.xu-amt-in[data-len="xl"] { font-size: 23px; }
.xu-amt-in:focus-within { border-bottom-color: #2f7a6b; }
.xu-amt-box input:focus-visible { outline: none; }
.xu-amt-box::after { content: attr(data-v); grid-area: 1 / 1; visibility: hidden; white-space: pre; font: inherit; letter-spacing: inherit; }
.xu-amt-box input { grid-area: 1 / 1; width: 0; min-width: 100%; height: 56px; padding: 0; border: 0; border-radius: 6px; background: transparent; font: inherit; letter-spacing: inherit; color: inherit; }
.xu-amt-box input::placeholder { color: #c9bfa8; opacity: 1; }
.xu-cur { position: relative; align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font: 700 13px/1 "DM Sans", sans-serif; color: var(--xu-green); }
.xu-cur i { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--xu-sand); font-style: normal; }
.xu-cur svg, .xu-chip svg.xu-caret { width: 9px; height: 9px; }
.xu-fx { min-height: 14px; margin: 8px 0 16px; text-align: center; font: 500 13px/1.1 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-field { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 14px; border-radius: 14px; background: #faf5ea; border: 1px solid #e6dcc6; }
.xu-field:focus-within { border-color: #2f7a6b; }
.xu-field input:focus-visible { outline: none; }
.xu .xu-field input, .xu .xu-amt-box input { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.xu-field input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; font: 500 15.5px/1 "DM Sans", sans-serif; color: #1d1b16; }
.xu-field input::placeholder { color: #a79c85; opacity: 1; }
.xu-cat { flex: none; display: inline-grid; place-items: center; height: 44px; padding: 0; border: 0; background: transparent; }
.xu-cat i { padding: 6px 10px; border-radius: 999px; background: var(--xu-sand); font: 700 12px/1 "DM Sans", sans-serif; font-style: normal; color: var(--xu-green); white-space: nowrap; }
.xu-cat.is-food i { background: #f8e7d6; color: #a8442a; }
.xu-cat.is-stay i { background: #e3ecf5; color: #2b3f6b; }
.xu-cat.is-act i { background: #e2efe4; color: #1f6b3e; }
.xu-cat.is-car i { background: #efe6f3; color: #6a3f80; }
.xu-cat.is-bag i { background: #f5ecc8; color: #8a6410; }
.xu-cat.is-fly i { background: #dff0ec; color: #2f7a6b; }
.xu-pop { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); display: grid; gap: 2px; min-width: 190px; max-height: 264px; padding: 6px; overflow-y: auto; border-radius: 16px; background: var(--xu-card); border: 1px solid var(--xu-line); box-shadow: 0 14px 34px rgba(40, 30, 10, 0.22); }
.xu-pop.is-up { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.xu-pop.is-mid { left: 50%; right: auto; transform: translateX(-50%); }
.xu-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: 600 14px/1.2 "DM Sans", sans-serif; text-align: left; white-space: nowrap; }
.xu-pop button[aria-selected="true"] { background: var(--xu-sand); }
.xu-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 16px 0 9px; font: 700 12px/1 "DM Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--xu-soft); }
.xu-lab h3 { margin: 0; font: inherit; letter-spacing: inherit; }
.xu-lab span { font: 600 13px/1 "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; color: var(--xu-get); text-align: right; }
.xu-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.xu-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--xu-card); border: 1.5px solid #dcd2bd; font: 600 13.5px/1 "DM Sans", sans-serif; color: #3b372f; }
.xu-chip.is-text { padding: 0 14px; }
.xu-chip-t { min-width: 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-chips.is-split .xu-chip { max-width: 100%; }
/* Paid by: one row, never two (the script keeps what fits; "More" lists everyone) */
.xu-payrow { position: relative; }
.xu-chips.is-pay { flex-wrap: nowrap; margin: -5px; padding: 5px; overflow: hidden; }
.xu-chips.is-pay .xu-chip { flex: none; max-width: 156px; white-space: nowrap; }
.xu-pop.is-pay { min-width: 210px; }
.xu-pop.is-pay button { justify-content: flex-start; }
.xu-pop.is-pay button span { overflow: hidden; text-overflow: ellipsis; }
/* 9 or more travellers: who is in, on one line, with Choose */
.xu-crowd { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0; border: 0; border-radius: 14px; background: transparent; text-align: left; }
.xu-crowd:disabled { opacity: 0.6; }
.xu-stack.is-crowd { padding-right: 8px; }
.xu-stack.is-crowd .xu-av { width: 26px; height: 26px; margin-right: -8px; font-size: 10.5px; box-shadow: 0 0 0 1.5px var(--xu-card); }
.xu-stack.is-crowd .xu-av.is-more { margin-left: 0; }
.xu-stack.is-crowd .xu-av.is-slim { display: none; }
@media (max-width: 379.98px) {
  .xu-stack.is-crowd .xu-av.is-wide { display: none; }
  .xu-stack.is-crowd .xu-av.is-slim { display: inline-grid; }
}
.xu-crowd-t { flex: 1 1 auto; min-width: 0; font: 600 14px/1.3 "DM Sans", sans-serif; color: #3b372f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-crowd-b { flex: none; display: inline-grid; place-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #dcd2bd; background: var(--xu-card); font: 700 13px/1 "DM Sans", sans-serif; color: var(--xu-green); white-space: nowrap; }
.xu-faces.is-crowd { margin: 10px 0 0; }
.xu-faces.is-crowd .xu-stack .xu-av { box-shadow: 0 0 0 1.5px #faf5ea; }
/* the list over the window: Split with / Who had it / For which stop? */
.xu-sheet { position: relative; }
.xu-pick { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 6; display: flex; border-radius: inherit; background: var(--xu-card); overflow: hidden; }
.xu-pick-p { display: flex; flex-direction: column; width: 100%; min-height: 0; background: var(--xu-card); }
.xu-pick-h { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 22px 20px 14px; }
.xu-pick-h.is-x { padding-top: 16px; padding-bottom: 10px; }
.xu-pick-h h3 { margin: 0; font: 600 20px/1.1 "Playfair Display", Georgia, serif; color: var(--xu-green); }
.xu-pick-h span { font: 600 13.5px/1 "DM Sans", sans-serif; color: var(--xu-get); white-space: nowrap; }
.xu-pick-s { flex: none; margin: 0 20px 12px; }
.xu-pick-q { flex: none; display: flex; gap: 8px; padding: 0 20px 14px; }
.xu-pick-q .xu-chip { height: 44px; padding: 0 20px; }
.xu-pick-l { flex: 1 1 auto; min-height: 0; padding: 6px 12px 10px; border-top: 1px solid #f0e8d6; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.xu-pick-r { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px; border: 0; border-radius: 14px; background: transparent; text-align: left; }
.xu-pick-r .xu-av { width: 34px; height: 34px; font-size: 13px; }
.xu-pick-r[aria-pressed="false"] .xu-av { opacity: 0.45; }
.xu-pick-n { flex: 1; min-width: 0; }
.xu-pick-n b { display: block; font: 600 15px/1.3 "DM Sans", sans-serif; color: #1d1b16; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-pick-n u { display: block; margin-top: 3px; font: 500 12.5px/1.3 "DM Sans", sans-serif; text-decoration: none; color: var(--xu-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-pick-r.is-stop .xu-pick-n b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
.xu-pick-i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e8f1ea; color: var(--xu-get); }
.xu-pick-i.is-stay { background: #e3ecf5; color: #2b3f6b; }
.xu-pick-i.is-none { background: transparent; border: 1.5px dashed #cdbf9f; }
.xu .xu-pick-i svg { width: 17px; height: 17px; }
.xu-pick-tag { flex: none; padding: 5px 9px; border-radius: 999px; background: var(--xu-sand); font: 600 11.5px/1 "DM Sans", sans-serif; font-style: normal; color: var(--xu-soft); }
.xu-pick-c { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #cdbf9f; color: transparent; }
.xu .xu-pick-c svg { vertical-align: 0; }
.xu-pick-r[aria-pressed="true"] .xu-pick-c { background: var(--xu-green); border-color: var(--xu-green); color: #fff; }
.xu-pick-r.is-stop[aria-pressed="false"] .xu-pick-c { border-color: transparent; }
.xu-pick-0 { margin: 0; padding: 28px 16px; text-align: center; font: 500 14px/1.4 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-pick-f { flex: none; padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #f0e8d6; }
.xu-pick-f .xu-save { margin: 0; }
.xu-pick-l.is-stops { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
/* For which stop? one row: the picked stop (or None) and Choose */
button.xu-stopf { width: 100%; padding: 0 7px 0 14px; text-align: left; font: 600 14.5px/1.3 "DM Sans", sans-serif; color: #1d1b16; }
.xu .xu-stopf > svg { flex: none; width: 15px; height: 15px; color: var(--xu-get); }
.xu-stopf-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-stopf-t.is-none { font-weight: 500; color: var(--xu-soft); }
.xu-part input, .xu-item-r input, .xu-notes { scroll-margin: 14px 0; }
.xu-chip[aria-pressed="true"] { background: var(--xu-green); border-color: var(--xu-green); color: #fff; }
.xu-chip[aria-pressed="true"] .xu-av { box-shadow: 0 0 0 1.5px #fff; }
.xu-chips.is-split .xu-chip[aria-pressed="false"] { opacity: 0.55; text-decoration: line-through; }
.xu-chip:disabled { opacity: 1; }
.xu-fixed { margin: 8px 0 0; font: 500 12.5px/1.3 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-paidby { display: block; width: 100%; min-height: 44px; margin: 6px 0 -6px; padding: 0 2px; border: 0; background: transparent; font: 500 13.5px/1.2 "DM Sans", sans-serif; color: var(--xu-soft); text-align: left; }
p.xu-paidby { display: flex; align-items: center; gap: 0.3em; }
.xu-paidby b { font-weight: 700; color: var(--xu-ink); }
button.xu-paidby { text-decoration: underline; text-decoration-color: #cdbf9f; text-underline-offset: 4px; }
.xu-modes { display: flex; gap: 5px; margin: 12px 0 0; }
.xu-modes button { position: relative; flex: 1 1 auto; display: grid; place-items: center; height: 36px; padding: 0 6px; white-space: nowrap; border: 0; border-radius: 999px; background: var(--xu-sand); font: 600 12.5px/1 "DM Sans", sans-serif; color: #5d584c; }
.xu-modes button[aria-pressed="true"] { background: var(--xu-gold); color: #2b1f05; }
.xu-parts { display: grid; gap: 6px; margin: 12px 0 0; }
.xu-part { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 3px 8px 3px 10px; border-radius: 14px; background: #faf5ea; border: 1px solid #e6dcc6; }
.xu-part > span { flex: 1; min-width: 0; font: 600 14px/1.2 "DM Sans", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-part small { min-width: 64px; font: 600 12.5px/1 "DM Sans", sans-serif; color: var(--xu-soft); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xu-part label { display: flex; align-items: center; gap: 4px; font: 600 13px/1 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-part input { width: 92px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid #dcd2bd; background: var(--xu-card); font: 700 14.5px/1 "DM Sans", sans-serif; text-align: right; font-variant-numeric: tabular-nums; }
.xu-part.is-pct input { width: 68px; }
.xu-step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; }
.xu-step i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--xu-sand); color: var(--xu-green); }
.xu-step svg { width: 14px; height: 14px; }
.xu-part output { min-width: 22px; font: 700 15px/1 "DM Sans", sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.xu-remain { min-height: 16px; margin: 10px 0 0; text-align: center; font: 600 13px/1.2 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-remain.is-ok { color: var(--xu-get); }
.xu-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.xu-item { border-radius: 14px; background: #faf5ea; border: 1px solid #e6dcc6; }
.xu-item-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 11px 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; }
.xu-item-t { flex: 1; min-width: 0; }
.xu-item-t b { display: block; font: 600 14.5px/1.2 "DM Sans", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-item-t u { display: block; margin-top: 6px; font: 500 12px/1 "DM Sans", sans-serif; text-decoration: none; color: var(--xu-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-stack { flex: none; display: flex; align-items: center; padding-right: 5px; }
.xu-stack .xu-av { margin-right: -5px; box-shadow: 0 0 0 1.5px #faf5ea; }
.xu-stack .xu-av.is-more { margin-left: 10px; }
.xu-item-h em { flex: none; font: 700 14.5px/1 "DM Sans", sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }
.xu-item-e { padding: 0 12px 12px; }
.xu-item-r { display: flex; gap: 8px; align-items: center; }
.xu-item-r input { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #dcd2bd; background: var(--xu-card); font: 600 14.5px/1 "DM Sans", sans-serif; }
.xu-item-r input:first-child { flex: 1; min-width: 0; }
.xu-item-r input.is-amt { width: 98px; text-align: right; font-variant-numeric: tabular-nums; }
.xu-faces { display: flex; flex-wrap: wrap; margin: 8px -4px 0; }
.xu-face { display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; background: transparent; }
.xu-face .xu-av { width: 30px; height: 30px; }
.xu-face[aria-pressed="false"] .xu-av { opacity: 0.3; box-shadow: none; }
.xu-face[aria-pressed="true"] .xu-av { box-shadow: 0 0 0 2px #faf5ea, 0 0 0 3.5px var(--xu-green); }
/* By item on a phone: three items and everyone's total fit without a scroll */
.xu-sheet.is-items .xu-amt { margin-top: 6px; }
.xu-sheet.is-items .xu-fx { margin: 6px 0 10px; }
.xu-sheet.is-items .xu-field { height: 48px; }
.xu-sheet.is-items .xu-lab { margin: 12px 0 8px; }
.xu-sheet.is-items .xu-item-h { min-height: 56px; padding: 8px 12px; }
.xu-sheet.is-items .xu-modes { margin-top: 8px; }
.xu-additem { display: grid; place-items: center; width: 100%; height: 44px; margin-top: 7px; border-radius: 14px; border: 1.5px dashed #cdbf9f; background: transparent; font: 600 13.5px/1 "DM Sans", sans-serif; color: #7a5a12; }
.xu-res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: #e7f1e8; }
.xu-res div { display: flex; flex-direction: column; align-items: center; gap: 5px; font: 700 12.5px/1 "DM Sans", sans-serif; color: var(--xu-green); font-variant-numeric: tabular-nums; }
.xu-meta { display: flex; gap: 8px; margin: 14px 0 0; }
.xu-meta > * { position: relative; flex: 1 1 0; min-width: 0; }
.xu-meta-b { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; padding: 0 8px; border-radius: 12px; border: 1px solid #e6dcc6; background: transparent; font: 600 13px/1 "DM Sans", sans-serif; color: #3b372f; white-space: nowrap; cursor: pointer; }
.xu-meta-b > span { overflow: hidden; text-overflow: ellipsis; }
.xu-meta-b[aria-expanded="true"], .xu-meta-b.is-on { background: #faf5ea; border-color: #cdbf9f; }
.xu-file:focus-within .xu-meta-b { outline: 3px solid #2f7a6b; outline-offset: 2px; }
.xu-file-x { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 40px; height: 44px; border: 0; background: transparent; color: var(--xu-soft); }
.xu-file-x svg { width: 12px; height: 12px; }
.xu-file.has-file .xu-meta-b { justify-content: flex-start; padding: 0 40px 0 12px; }
.xu-notes { display: block; width: 100%; min-height: 72px; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px solid #e6dcc6; background: #faf5ea; font: 500 14.5px/1.4 "DM Sans", sans-serif; resize: vertical; }
.xu-issue { min-height: 18px; margin: 8px 0 0; display: flex; align-items: flex-end; justify-content: center; text-align: center; font: 600 13px/1.3 "DM Sans", sans-serif; color: var(--xu-owe); }
.xu-issue .xu-ok { color: var(--xu-get); }
.xu-save { display: grid; place-items: center; width: 100%; height: 56px; margin: 8px 0 0; border: 0; border-radius: 999px; background: linear-gradient(180deg, #f1c861, #dfa838); font: 700 16.5px/1 "DM Sans", sans-serif; color: #2b1f05; box-shadow: 0 8px 20px rgba(190, 140, 30, 0.3); }
.xu-save:disabled { background: #ece3cf; color: #9a8f78; box-shadow: none; }
.xu-save.is-busy:disabled { background: linear-gradient(180deg, #f1c861, #dfa838); color: #2b1f05; opacity: 0.75; }

/* Balances */
.xu-owed { padding: 18px 20px; border-radius: 20px; background: #e7f1e8; border: 1px solid #cfe0d2; }
.xu-owed p { margin: 0; font: 600 13px/1 "DM Sans", sans-serif; color: #3d5a48; }
.xu-owed b { display: block; margin: 8px 0 0; font: 600 34px/1 "Playfair Display", Georgia, serif; color: var(--xu-get); }
.xu-owed.is-owe { background: #fbeceb; border-color: #f0cfcc; }
.xu-owed.is-owe p { color: #7a3b36; }
.xu-owed.is-owe b { color: var(--xu-owe); }
.xu-simple { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 13px 16px; border-radius: 16px; background: var(--xu-card); border: 1px solid var(--xu-line); }
.xu-simple b { display: block; font: 700 14.5px/1.2 "DM Sans", sans-serif; color: var(--xu-green); }
.xu-simple span { display: block; margin-top: 4px; font: 500 12.5px/1.2 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-sw { flex: none; display: grid; place-items: center; width: 54px; height: 44px; padding: 0; border: 0; background: transparent; }
.xu-sw i { position: relative; display: block; width: 46px; height: 28px; border-radius: 999px; background: #cfc5b0; transition: background 0.16s ease; }
.xu-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.16s ease; }
.xu-sw[aria-checked="true"] i { background: var(--xu-green); }
.xu-sw[aria-checked="true"] i::after { transform: translateX(18px); }
.xu-pay { padding: 14px; margin-bottom: 10px; border-radius: 18px; background: var(--xu-card); border: 1px solid var(--xu-line); }
.xu-pay-top { display: flex; align-items: center; gap: 12px; }
.xu-pay-t { flex: 1; min-width: 0; }
.xu-pay-t b { display: block; font: 600 15px/1.2 "DM Sans", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-pay-t u { display: block; margin-top: 5px; font: 500 13px/1 "DM Sans", sans-serif; text-decoration: none; color: var(--xu-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-pay-top em { flex: none; font: 700 18px/1 "DM Sans", sans-serif; font-style: normal; color: var(--xu-ink); font-variant-numeric: tabular-nums; }
.xu-pay-top em.is-get { color: var(--xu-get); }
.xu-pay-top em.is-owe { color: var(--xu-owe); }
.xu-pay-btn { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 12px; }
.xu-pay-btn .xu-btn { height: 44px; }
.xu-pay-q { margin: 12px 0 0; font: 500 13px/1.35 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-cancel > b { display: block; font: 700 15px/1.2 "DM Sans", sans-serif; color: var(--xu-green); }
.xu-cancel > p { margin: 6px 0 0; font: 500 13.5px/1.35 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-gap { height: 12px; }
.xu-done { flex: none; font: 700 13px/1 "DM Sans", sans-serif; color: var(--xu-get); white-space: nowrap; }
.xu-more { display: grid; place-items: center; width: 100%; min-height: 46px; margin-bottom: 10px; padding: 6px 14px; border-radius: 14px; border: 1.5px dashed #cdbf9f; background: transparent; font: 600 13.5px/1.3 "DM Sans", sans-serif; color: #5d584c; }
.xu-fold { margin-top: 10px; border-radius: 16px; background: var(--xu-card); border: 1px solid var(--xu-line); }
.xu-fold summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-radius: 16px; font: 700 14.5px/1.2 "DM Sans", sans-serif; color: var(--xu-green); cursor: pointer; list-style: none; }
.xu-fold summary::-webkit-details-marker { display: none; }
.xu-fold summary svg { width: 12px; height: 12px; transition: transform 0.16s ease; }
.xu-fold[open] summary svg { transform: rotate(180deg); }
.xu-fold-b { padding: 4px 12px 14px; }

/* Summary */
.xu-level { margin-bottom: 12px; }
.xu-card { padding: 18px; border-radius: 20px; background: var(--xu-card); border: 1px solid var(--xu-line); margin-bottom: 12px; }
.xu-card h3 { margin: 0 0 14px; font: 700 12px/1 "DM Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--xu-soft); }
.xu-donut { display: flex; align-items: center; gap: 18px; }
.xu-donut svg { flex: none; width: 124px; height: 124px; }
.xu-leg { flex: 1; min-width: 0; display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.xu-leg li { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1 "DM Sans", sans-serif; }
.xu-leg i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.xu-leg span { margin-left: auto; padding-left: 6px; font: 700 13px/1 "DM Sans", sans-serif; color: #5d584c; font-variant-numeric: tabular-nums; }
/* By day: a row per trip day (its label, what was spent, a thin bar under them), then Total */
.xu-dayrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 12px; margin-bottom: 16px; font: 600 14px/1.25 "DM Sans", sans-serif; }
.xu-dayrow > b { font: inherit; color: #1d1b16; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-dayrow > span { font: 700 14px/1.25 "DM Sans", sans-serif; font-variant-numeric: tabular-nums; color: #3b372f; white-space: nowrap; text-align: right; }
.xu-dayrow > u { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--xu-sand); overflow: hidden; text-decoration: none; }
.xu-dayrow > u i { display: block; height: 100%; border-radius: 3px; background: var(--xu-green); }
.xu-dayrow.is-total { margin: 2px 0 0; padding-top: 14px; border-top: 1px solid var(--xu-line); }
.xu-dayrow.is-total > b, .xu-dayrow.is-total > span { font-weight: 700; font-size: 15px; color: var(--xu-green); }
.xu-exp { display: flex; gap: 8px; }
.xu-exp button { flex: 1; display: grid; place-items: center; height: 48px; padding: 0 8px; border-radius: 999px; font: 700 14px/1 "DM Sans", sans-serif; white-space: nowrap; }
.xu-exp button.is-a { border: 0; background: var(--xu-green); color: #fff; }
.xu-exp button.is-b { border: 1.5px solid #dcd2bd; background: transparent; color: var(--xu-green); }

/* website table (the element is 900 px or wider) */
.xu-view { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 999px; background: #ebe4d6; }
.xu-view button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 600 13.5px/1 "DM Sans", sans-serif; color: #6d6657; }
.xu-view button[aria-pressed="true"] { background: var(--xu-card); color: var(--xu-green); box-shadow: 0 2px 6px rgba(60, 45, 20, 0.12); }
.xu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.xu-tools input[type="search"], .xu-tools select, .xu-filt-g input[type="search"], .xu-filt-g select { height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #dcd2bd; background-color: var(--xu-card); font: 600 14px/1 "DM Sans", sans-serif; color: var(--xu-ink); }
.xu-tools input[type="search"] { width: 230px; font-weight: 500; }
.xu-tools select { max-width: 200px; }
.xu-tools select, .xu-filt-g select { padding-right: 34px; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 5 4-5z' fill='%231d3a2e'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 8px; }
.xu-filt-w { margin-top: 12px; }
.xu-filt-w:first-child { margin-top: 0; }
.xu-filt { margin-top: 0; }
.xu-filt summary > span { display: inline-flex; align-items: center; gap: 8px; }
.xu-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--xu-green); color: #fff; font: 700 12px/1 "DM Sans", sans-serif; font-style: normal; }
.xu-filt-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 4px; }
.xu-filt-g input[type="search"] { grid-column: 1 / -1; width: 100%; font-weight: 500; }
.xu-filt-g select { width: 100%; min-width: 0; padding-left: 14px; }
.xu-clear { min-height: 44px; padding: 0 14px; border: 0; background: transparent; font: 700 13.5px/1 "DM Sans", sans-serif; color: var(--xu-green); text-decoration: underline; text-underline-offset: 3px; }
.xu-filt .xu-clear { display: block; margin: 6px 0 -8px auto; }
.xu-count { margin: 14px 2px -8px; font: 600 13px/1.2 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-nomatch { display: grid; justify-items: center; gap: 2px; padding: 8px 0 20px; }
.xu-tools-r { display: flex; gap: 10px; margin-left: auto; }
.xu-tools .xu-btn { height: 44px; padding: 0 20px; font-size: 14px; }
.xu-tbl-w { border-radius: 18px; border: 1px solid var(--xu-line); background: var(--xu-card); overflow-x: auto; }
.xu-tbl { width: 100%; border-collapse: collapse; font: 500 14px/1.2 "DM Sans", sans-serif; }
.xu-tbl th { padding: 0; background: #f3ece0; text-align: left; white-space: nowrap; }
.xu-tbl th button { display: inline-flex; align-items: center; gap: 6px; width: 100%; height: 44px; padding: 0 14px; border: 0; background: transparent; font: 700 11.5px/1 "DM Sans", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--xu-soft); }
.xu-tbl th.is-num button { justify-content: flex-end; }
.xu-tbl th svg { width: 8px; height: 8px; visibility: hidden; }
.xu-tbl th[aria-sort="ascending"] svg { visibility: visible; transform: rotate(180deg); }
.xu-tbl th[aria-sort="descending"] svg { visibility: visible; }
.xu-tbl td { height: 60px; padding: 8px 14px; border-top: 1px solid #f0e8d6; white-space: nowrap; }
.xu-tbl tbody tr.is-open { cursor: pointer; }
.xu-tbl tbody tr.is-open:hover { background: #faf5ea; }
.xu-tbl td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.xu-tbl td.is-soft { color: var(--xu-soft); }
.xu-tbl td.is-what { max-width: 320px; }
.xu-tbl .xu-what { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.xu-tbl .xu-what span:last-child { overflow: hidden; text-overflow: ellipsis; }
.xu-tbl .xu-who { display: flex; align-items: center; gap: 8px; }
.xu-tbl td b { font-weight: 700; }
.xu-pill { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--xu-sand); font: 600 12.5px/1 "DM Sans", sans-serif; }
.xu-tbl td .is-get { color: var(--xu-get); font-weight: 700; }
.xu-tbl td .is-owe { color: var(--xu-owe); font-weight: 700; }
.xu-tbl tfoot td { background: #f3ece0; font-weight: 700; color: var(--xu-green); }
.xu-link { min-height: 44px; padding: 0 2px; border: 0; background: transparent; font: 600 14px/1 "DM Sans", sans-serif; color: var(--xu-green); text-decoration: underline; text-underline-offset: 3px; }
.xu-tbl-n { margin: 12px 2px 0; text-align: right; font: 500 12.5px/1.3 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-none { margin: 0; padding: 28px 16px; text-align: center; font: 500 14px/1.4 "DM Sans", sans-serif; color: var(--xu-soft); }

@media (min-width: 700px) {
  dialog.xu-dlg[open] { align-items: center; }
  .xu-sheet { max-height: calc(100% - 64px); border-radius: 26px; }
  .xu-grab { visibility: hidden; margin-bottom: 4px; }
  /* the website: the list is a centred panel over the dimmed window */
  .xu-pick { align-items: center; justify-content: center; padding: 24px; background: rgba(18, 28, 22, 0.45); }
  .xu-pick-p { max-width: 420px; max-height: 100%; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28); }
}
/* wide screens read top to bottom, one row per expense (owner 2026-11-22: like a sheet), never two columns side by side */
/* the Cards / Table switch sits on the tab bar's row, against the right edge: both edges of the page line up */
.xu-root.is-wide .xu-panel { position: relative; }
.xu-root.is-wide .xu-panel .xu-view { position: absolute; right: 0; top: -66px; margin: 0; }
/* wide: two columns that each stack their own cards (owner 2026-11-23: a tall Splurges & saves card left a hole before
   By day): Where it went + Splurges & saves | Before vs on the trip + By day; the top and bottom rows span both */
.xu-col { display: contents; }
.xu-root.is-wide .xu-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: start; }
.xu-root.is-wide .xu-sum > .xu-level, .xu-root.is-wide .xu-sum > .xu-exp, .xu-root.is-wide .xu-sum > .xu-mine { grid-column: 1 / -1; }
.xu-root.is-wide .xu-col { display: block; min-width: 0; }
.xu-root.is-wide .xu-exp { max-width: 460px; }
.xu-root.is-wide .xu-tabs { max-width: 520px; }

@media (prefers-reduced-motion: no-preference) {
  dialog.xu-dlg.is-opening[open] .xu-sheet { animation: xu-up 0.2s ease-out; }
  @keyframes xu-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .xu-pick.is-in { animation: xu-in 0.16s ease-out; }
  @keyframes xu-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .xu-sw i, .xu-sw i::after, .xu-fold summary svg { transition: none; }
}

/* Marked paid → Undo (10 seconds) */
.xu-undo { position: fixed; left: 50%; bottom: calc(var(--xu-fab-bottom, 26px) + 10px); transform: translateX(-50%); z-index: calc(var(--xu-fab-z, 80) + 1); display: flex; align-items: center; gap: 14px; width: min(440px, calc(100vw - 32px)); min-height: 60px; padding: 10px 12px 10px 16px; border-radius: 16px; background: #1d3a2e; color: #fff; box-shadow: 0 14px 30px rgba(15, 35, 26, 0.38); }
.xu-undo span { flex: 1; min-width: 0; font: 500 13px/1.3 "DM Sans", sans-serif; color: #d9e4dc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-undo span b { display: block; margin-bottom: 3px; font: 700 14.5px/1.2 "DM Sans", sans-serif; color: #fff; }
.xu-undo .xu-btn { flex: none; height: 40px; padding: 0 18px; }

/* the floating bar steps aside while it would sit on the tabs */
.xu-fabs { transition: opacity 0.15s ease; }
.xu-fabs.is-away { opacity: 0; pointer-events: none; }
/* Change payer: a row of faces under the row's actions */
.xu-whopaid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 2px; padding-top: 14px; border-top: 1px solid #efe7d6; }
.xu-whopaid > span { flex: 0 0 100%; font: 700 11.5px/1 "DM Sans", sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--xu-soft); }
.xu-whopaid .xu-chip { min-height: 44px; }

/* An expense you added: Edit · Remove (two taps; the button keeps the width of its longest words, so nothing moves) */
.xu-rm, .xu-rmq { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.xu-rm::after, .xu-rmq::after { content: attr(data-wide); display: block; height: 0; overflow: hidden; visibility: hidden; }
.xu-rm.is-armed, .xu-rmq.is-armed { background: var(--xu-owe); border-color: var(--xu-owe); color: #fff; }
.xu-rm:disabled, .xu-rmq:disabled { opacity: 0.6; }
.xu-row-n.xu-quiet { margin-top: 12px; font-size: 12.5px; color: var(--xu-soft); }
/* Edit expense: the receipt it already has, and the line for an expense someone has paid on */
.xu-rcpt { display: flex; align-items: center; gap: 2px; min-height: 48px; margin: 10px 0 0; padding: 1px 4px 1px 14px; border-radius: 12px; border: 1px solid #e6dcc6; background: #faf5ea; }
.xu-rcpt > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1.2 "DM Sans", sans-serif; color: #3b372f; }
.xu-rcpt-b { flex: none; display: inline-grid; place-items: center; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font: 700 13px/1 "DM Sans", sans-serif; color: var(--xu-green); text-decoration: underline; text-decoration-color: #cdbf9f; text-underline-offset: 4px; white-space: nowrap; cursor: pointer; }
.xu-rcpt-b.is-danger { color: var(--xu-owe); }
label.xu-rcpt-b:focus-within { outline: 3px solid #2f7a6b; outline-offset: -2px; }
.xu-locked { margin: -4px 0 16px; padding: 12px 14px; border-radius: 12px; background: #fff7e0; border: 1px solid #ecd9a4; font: 500 13px/1.45 "DM Sans", sans-serif; color: #7a5a12; text-align: left; }
.xu-sheet.is-locked .xu-amt-in, .xu-sheet.is-locked .xu-cur, .xu-sheet.is-locked .xu-modes, .xu-sheet.is-locked .xu-parts, .xu-sheet.is-locked .xu-items, .xu-sheet.is-locked .xu-res, .xu-sheet.is-locked .xu-meta-b:disabled { opacity: 0.6; }
.xu-sheet.is-locked .xu-chip:disabled { opacity: 0.6; }
.xu-sheet.is-locked .xu-chips.is-split .xu-chip[aria-pressed="false"] { opacity: 0.35; }
.xu-sheet.is-locked .xu-amt-box input:disabled, .xu-sheet.is-locked .xu-part input:disabled { -webkit-text-fill-color: currentColor; opacity: 1; }
.xu-sheet.is-locked button:disabled { cursor: default; }

/* The app keeps Add expense and Quick cost in its own dock: no second floating bar there. */
.xu-root.is-app .xu-fabs { display: none; }

/* ——— Finance tidy-up + trip log (owner 2026-11-22, approved mock) ——— */
/* the Finance card: to review · unpaid dues (a cell at 0 is greyed and is not a button) */
.xu-todo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 14px; border-radius: 18px; background: var(--xu-card); border: 1px solid #e3d9c4; overflow: hidden; }
.xu-todo-c { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-height: 52px; padding: 15px 6px 14px; border: 0; border-left: 1px solid #eee5d2; border-radius: 0; background: transparent; text-align: center; }
.xu-todo-c:first-child { border-left: 0; }
.xu-todo-c b { font: 600 24px/1 "Playfair Display", Georgia, serif; color: var(--xu-green); }
.xu-todo-c i { font: 600 13px/1.2 "DM Sans", sans-serif; font-style: normal; color: #6d6657; }
.xu-todo-c.is-hot { background: #fff6dd; }
.xu-todo-c.is-hot b { color: #8a5a00; }
.xu-todo-c.is-hot i { color: #5b4a12; }
.xu-todo-c:disabled b, .xu-todo-c:disabled i { color: #b5ab96; }
.xu-todo-c:focus-visible { outline-offset: -3px; }
.xu-root.is-wide .xu-todo { max-width: 420px; }
.xu-view-w { margin-top: 14px; }
/* the review list: "To review · N ✕" and Mark all reviewed on one line */
.xu-rev { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.xu-rev-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--xu-green); color: #fff; font: 600 13.5px/1 "DM Sans", sans-serif; white-space: nowrap; }
.xu-rev-chip::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.xu-rev-chip u { text-decoration: none; opacity: 0.7; font-weight: 500; }
.xu-rev-chip svg { width: 13px; height: 13px; margin-left: 4px; }
.xu-rev .xu-btn { height: 40px; padding: 0 16px; }
.xu-rev-p { margin-top: 8px; }
/* a new expense: a gold dot on the corner of its icon (it takes no room from the name or the who-paid line) */
.xu-row { position: relative; }
.xu-new { position: absolute; left: 9px; top: 9px; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #dfa838; border: 2.5px solid var(--xu-card); box-shadow: 0 1px 3px rgba(60, 45, 20, 0.25); pointer-events: none; }
.xu-tbl td.is-day { position: relative; }
.xu-tbl td.is-day .xu-new { left: 1px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border: 0; box-shadow: none; }
/* the website's table: the linked stop, small under the name */
.xu-tbl .xu-what-stop { display: block; margin-top: 4px; font: 500 12px/1.2 "DM Sans", sans-serif; text-decoration: none; color: var(--xu-get); overflow: hidden; text-overflow: ellipsis; }
/* "Mika changed your expense": a green note above the list */
.xu-note { display: flex; align-items: flex-end; gap: 12px; width: 100%; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: #e8f1ea; border: 1px solid #cfe0d3; font: 500 13.5px/1.45 "DM Sans", sans-serif; color: #17402b; text-align: left; }
.xu-note span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.xu-note b { font-weight: 700; }
.xu-note > i { flex: none; font-style: normal; font-weight: 700; white-space: nowrap; }
.xu-note-x { flex: none; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; border-radius: 50%; background: transparent; color: #17402b; }
.xu-note-x svg { width: 14px; height: 14px; }
/* Add / Edit: Split with the crew (off = just a log) */
.xu-logsw { align-items: flex-start; min-height: 69px; margin: 18px 0 0; gap: 10px; padding: 14px 14px 14px 16px; background: #faf5ea; border-color: #e6dcc6; }
.xu-logsw .xu-sw { width: 50px; margin: -3px 0 -7px; }
.xu-logsw b { color: #1d1b16; }
.xu-logsw span { margin-top: 5px; line-height: 1.35; }
.xu-logsw span:empty { display: none; }
.xu-logsw .xu-sw i { width: 50px; height: 30px; background: #d9cfb9; }
.xu-logsw .xu-sw i::after { width: 24px; height: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.xu-logsw .xu-sw[aria-checked="true"] i { background: var(--xu-green); }
.xu-logsw .xu-sw[aria-checked="true"] i::after { transform: translateX(20px); }
.xu-logsw + .xu-meta { margin-top: 16px; }
/* Add / Edit: the stop the typed name points at. No room at all while there is nothing to say; it opens and closes smoothly. */
.xu-sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 0; margin: 0; padding: 0 4px 0 14px; border-radius: 14px; background: #e8f1ea; box-shadow: inset 0 0 0 1px #cfe0d3; overflow: hidden; opacity: 0; visibility: hidden; font: 500 13.5px/1.3 "DM Sans", sans-serif; color: #17402b; transition: height 0.18s ease, margin-top 0.18s ease, opacity 0.18s ease, visibility 0s linear 0.18s; }
.xu-sug.is-on { height: 46px; margin-top: 10px; opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .xu-sug, .xu-sug.is-on { transition: none; }
}
.xu-sug span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-sug b { font-weight: 700; }
.xu-sug span svg { width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px; }
.xu-sug button { flex: none; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font: 700 13.5px/1 "DM Sans", sans-serif; color: #17402b; white-space: nowrap; }
.xu-stopf + .xu-notes { margin-top: 14px; }
/* Summary: the Log, under the charts and the export buttons */
.xu-log-h { margin-top: 30px; }
.xu-lg-f { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 0 6px; padding: 4px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.xu-lg-f::-webkit-scrollbar { display: none; }
.xu-lg-f button { position: relative; flex: none; display: grid; place-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #dcd2bd; background: var(--xu-card); font: 600 13px/1 "DM Sans", sans-serif; color: #3b372f; white-space: nowrap; }
.xu-lg-f button::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.xu-lg-f button[aria-pressed="true"] { background: var(--xu-green); border-color: var(--xu-green); color: #fff; }
.xu-lg-h { margin: 22px 2px 8px; font: 700 11.5px/1 "DM Sans", sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--xu-soft); }
.xu-lg-f + .xu-lg-h { margin-top: 12px; }
.xu-lg { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 0 0 8px; padding: 10px 14px; border-radius: 16px; background: var(--xu-card); border: 1px solid var(--xu-line); text-align: left; }
.xu-lg-i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #efe6d6; color: #5d584c; }
.xu .xu-lg-i svg { width: 20px; height: 20px; }
.xu-lg-i.is-food { background: #f8e3d6; color: #a8452c; }
.xu-lg-i.is-stay { background: #dfe8f3; color: #2d4a73; }
.xu-lg-i.is-car { background: #ece2f1; color: #6b4a86; }
.xu-lg-i.is-act { background: #dfeee3; color: #2c6a45; }
.xu-lg-i.is-bag { background: #f5ecc8; color: #8a6410; }
.xu-lg-i.is-fly { background: #dff0ec; color: #2f7a6b; }
.xu-lg-i.is-pay { background: #17603a; color: #fff; }
.xu-lg-i.is-done { background: #dfa838; color: #2b1f05; }
.xu-lg-i.is-chg { background: #f4eee1; color: #7d705a; border: 1.5px dashed #cdbf9f; }
.xu-lg-t { flex: 1; min-width: 0; }
.xu-lg-t b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font: 600 14.5px/1.25 "DM Sans", sans-serif; color: #1d1b16; }
.xu-lg-t u { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font: 500 12.5px/1.3 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-lg-a { flex: none; text-align: right; }
.xu-lg-a u { display: block; text-decoration: none; font: 600 11.5px/1 "DM Sans", sans-serif; color: var(--xu-soft); white-space: nowrap; }
.xu-lg-a b { display: block; margin-top: 5px; font: 700 14.5px/1 "DM Sans", sans-serif; font-variant-numeric: tabular-nums; color: #1d1b16; white-space: nowrap; }
.xu-lg-a b:first-child { margin-top: 0; }
.xu-lg-a.is-owe u, .xu-lg-a.is-owe b { color: var(--xu-owe); }
.xu-lg-a.is-get u, .xu-lg-a.is-get b { color: var(--xu-get); }
.xu-lg-a.is-off u { color: #a79c85; }
.xu-log .xu-more { margin-top: 6px; }
/* the website: the Log is one column, the two-way switch keeps a hand's width */
.xu-root.is-wide .xu-log { max-width: 760px; }
.xu-tbl .xu-what > span:not(.xu-ic) { overflow: hidden; text-overflow: ellipsis; }

/* a row's second line: the words give way (…) so the pin at the end is never cut */
.xu-row-t span .xu-sub-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }

/* ——— Quick costs in the list (owner 2026-11-22): a card of its own, clearly not an expense yet ——— */
.xu-row.is-quick { background: #fbf7ee; border-style: dashed; border-color: #dccfb2; }
.xu-ic.is-quick { background: transparent; border: 1.5px dashed #cdbf9f; color: var(--xu-soft); }
/* its second line is ONE line: the tag is there only when it fits (it drops to a second line, which is not shown) */
.xu-row.is-quick .xu-row-t span { flex-wrap: wrap; align-content: flex-start; height: 22px; }
.xu-row.is-quick .xu-row-t span .xu-sub-t { line-height: 22px; }
.xu-q-tag { flex: none; align-self: center; height: 18px; padding: 0 8px; border-radius: 999px; background: var(--xu-sand); font: 600 11px/18px "DM Sans", sans-serif; font-style: normal; color: var(--xu-soft); white-space: nowrap; }
.xu-row-a span.is-quiet { font-weight: 500; color: var(--xu-soft); }
.xu-act.is-main { background: var(--xu-green); border-color: var(--xu-green); color: #fff; }
.xu-q-h { margin-top: 20px; }
.xu-tbl tr.is-quick td { background: #fbf7ee; }
/* the short Quick cost window */
.xu-sheet.is-quick .xu-meta { margin-top: 12px; }
.xu-quick-n { margin: 16px 2px 6px; font: 500 13px/1.45 "DM Sans", sans-serif; color: var(--xu-soft); text-align: center; }

/* quick save: when (and where) it was saved, a line of its own */
.xu-row-t .xu-q-when { display: block; margin-top: 4px; text-decoration: none; font: 500 12.5px/1.3 "DM Sans", sans-serif; color: var(--xu-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* money still to be handed back to someone (they paid more than their share): under their own line */
.xu-sh.is-back { background: #fbefd2; }
.xu-sh.is-back .xu-sh-t em { color: #7a5a12; }

/* ——— public trips (owner 2026-11-23): the owner's words on each cost, its local money, no money between people ——— */
.xu-root.is-pub .xu-row-t b { white-space: normal; }
.xu-row-t .xu-cnote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; text-decoration: none; font: 400 13.5px/1.45 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-row.is-open .xu-row-t .xu-cnote { display: block; }
.xu-row-x.is-pub { padding-top: 12px; }
.xu-pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; font: 500 13.5px/1.4 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-pub-meta b { color: #1d1b16; font-weight: 600; }
.xu-tabs.is-two { grid-template-columns: repeat(2, 1fr); }
.xu-intro { margin: 0 0 14px; }
/* ——— Summary: splurges & saves, before vs on the trip, your total ——— */
.xu-tag { display: inline-flex; align-items: center; margin: 0; padding: 6px 11px; border-radius: 999px; font: 700 12.5px/1 "DM Sans", sans-serif; }
.xu-tag.is-splurge { background: #f8e2d6; color: #9a3a1c; }
.xu-tag.is-worth { background: #e3f0e7; color: #17603a; }
.xu-tag.is-save { background: #e4ecf6; color: #2c4a78; }
.xu-tag.is-required { background: #f1e4f2; color: #6d3a72; }
.xu-tset + .xu-tset { margin-top: 14px; }
.xu-tset .xu-tag { margin-bottom: 6px; }
.xu-tl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; }
.xu-tl > span { font: 600 14px/1.3 "DM Sans", sans-serif; color: #1d1b16; }
.xu-tl > b { font: 700 14.5px/1.2 "DM Sans", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xu-tl > em { width: 18px; font: 700 13px/1 "DM Sans", sans-serif; font-style: normal; color: var(--xu-soft); text-align: center; }
.xu-split2 { display: flex; gap: 3px; height: 12px; border-radius: 9px; overflow: hidden; margin-bottom: 16px; }
.xu-split2 i:first-child { background: var(--xu-gold); }
.xu-split2 i:last-child { background: var(--xu-green); }
.xu-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xu-two > div { display: grid; gap: 4px; min-width: 0; }
.xu-two small { display: flex; align-items: center; gap: 7px; font: 600 12.5px/1.2 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-two small::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--xu-gold); }
.xu-two > div + div small::before { background: var(--xu-green); }
.xu-two b { font: 700 18px/1.2 "DM Sans", sans-serif; font-variant-numeric: tabular-nums; color: #1d1b16; }
.xu-two span { font: 500 12.5px/1.3 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-mine { display: grid; gap: 6px; margin-bottom: 12px; padding: 20px; border-radius: 20px; background: #e8f1ea; border: 1px solid #cfe2d4; }
.xu-mine > small { font: 700 12px/1 "DM Sans", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--xu-get); }
.xu-mine > strong { margin-top: 6px; font: 700 32px/1.1 "Playfair Display", Georgia, serif; color: var(--xu-green); font-variant-numeric: tabular-nums; }
.xu-mine > span { font: 500 14px/1.35 "DM Sans", sans-serif; color: #3f5a48; }
.xu-mine .xu-two { margin-top: 10px; padding-top: 14px; border-top: 1px solid #cfe2d4; }
/* the card opens your costs in the Log (owner 2026-11-28: it was tapped and did nothing) */
.xu-mine.is-go { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xu-mine-go { justify-self: start; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; font: 700 14px/1.2 "DM Sans", sans-serif; color: var(--xu-green); cursor: pointer; }
.xu-mine-go:focus-visible { outline: 2px solid var(--xu-green); outline-offset: 3px; border-radius: 6px; }
/* your costs, listed in the card when the trip has no Log of them (owner 2026-12-03) */
.xu-mine-list { display: grid; gap: 0; margin: 10px 0 0; padding: 4px 0 0; border-top: 1px solid #cfe2d4; list-style: none; }
.xu-mine-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #cfe2d4; }
.xu-mine-list li:last-child { border-bottom: 0; }
.xu-mine-list span { flex: 1 1 0px; width: 0; min-width: 0; }
.xu-mine-list b { display: block; font: 600 14.5px/1.3 "DM Sans", sans-serif; color: #1d1b16; overflow-wrap: anywhere; }
.xu-mine-list small { display: block; margin-top: 2px; font: 500 12.5px/1.3 "DM Sans", sans-serif; color: #3f5a48; }
.xu-mine-list em { flex: none; font: 700 14.5px/1.3 "DM Sans", sans-serif; font-style: normal; font-variant-numeric: tabular-nums; color: var(--xu-green); white-space: nowrap; }
.xu-owner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.xu-owner b { display: block; font: 700 14.5px/1.3 "DM Sans", sans-serif; color: #1d1b16; }
.xu-owner small { font: 500 13px/1.3 "DM Sans", sans-serif; color: var(--xu-soft); }
.xu-owner p { margin: 8px 0 0; font: 400 14.5px/1.55 "DM Sans", sans-serif; color: #3b362c; }
.xu-root.is-app .xu-owner p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.xu-root.is-app .xu-owner p.is-all { display: block; }
.xu-more-t { margin-top: 6px; padding: 6px 0; border: 0; background: transparent; font: 700 14px/1 "DM Sans", sans-serif; color: var(--xu-green); cursor: pointer; }


/* a payment's proof photo opens it (owner 2026-11-23); your QR codes under your own box */
.xu-proof-l { padding: 0; border: 0; background: none; color: #1d3a2e; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.xu-qr { margin: 18px 0 20px; } /* room under the You are owed box (owner 2026-11-23: "spacing also") */


/* a Who pays whom name opens With each person at that person (owner 2026-11-23) */
.xu-pay-n { display: block; max-width: 100%; min-height: 0; padding: 0; border: 0; background: none; font: 600 15px/1.2 "DM Sans", sans-serif; color: var(--xu-ink); text-align: left; text-decoration: underline; text-decoration-color: #cdbf9f; text-underline-offset: 3px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xu-pay-n::after { content: ""; position: absolute; inset: -12px -6px; }
.xu-pay-t { position: relative; }
.xu-sh-t em .xu-proof-l { font-size: inherit; }

/* With each person, always open (owner 2026-11-23): its own summary box would repeat the Balance's big box */
.xu-each-h { margin-top: 18px; }

/* bug hunt 2026-11-23: the share story wraps (it hid the payment receipt link at 390); small links hit 44 px */
.xu-proof-l { position: relative; }
.xu-proof-l::after { content: ""; position: absolute; inset: -15px -6px; }
.xu-pay-n::after { inset: -14px -8px; }

/* an open expense shows its stops as chips that open them (owner 2026-11-23): the line under the title steps aside */
.xu-row.is-open .xu-row-stop { display: none; }

/* UI audit 2026-11-23: on a phone the "you get back" line never squeezes the title (one line, …) to a stub — it wraps
   under the amount instead; wide screens keep Balances' people at a readable width, like the log */
@media (max-width: 480px) {
  .xu-row-a { max-width: 40%; }
  .xu-row-a span { white-space: normal; line-height: 1.25; }
}
.xu-sh-c::after { content: ""; position: absolute; inset: -4px 0; }

/* an open public expense: its activities, each one opens it (owner 2026-11-23) */
.xu-stop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xu-stop-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 0 12px; border: 1px solid var(--xu-line); border-radius: 999px; background: var(--xu-card); font: 600 12.5px/1.2 "DM Sans", sans-serif; color: #1d3a2e; cursor: pointer; text-align: left; }
.xu-stop-chip i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.xu-stop-chip::after { content: ""; position: absolute; inset: -5px -2px; }
.xu-stop-chip svg { flex: none; width: 14px; height: 14px; }

/* a phone: the big amount steps down a size earlier, so "Rp 12,500,000" fits beside its money pill (app hunt 2026-11-23) */
@media (max-width: 400px) {
  .xu-amt-in { font-size: 40px; }
  .xu-amt-in[data-len="m"] { font-size: 30px; }
  .xu-amt-in[data-len="l"] { font-size: 24px; }
  .xu-amt-in[data-len="xl"] { font-size: 20px; }
}
/* the log's filter chips wrap on a phone instead of cutting "Changes" off (web + app hunt 2026-11-23) */
@media (max-width: 440px) {
  .xu-lg-f { flex-wrap: wrap; overflow-x: visible; }
}

/* Extras on a guide (owner 2026-11-26, mock mocks/extras-mock.html): never in the total */
.xu-extras { margin: 28px 0 8px; padding: 22px 20px 16px; border: 1px dashed #cdb8dc; border-radius: 22px; background: #f3ecf6; }
.xu-extras-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.xu-extras-head h3 { margin: 0; font: 600 1.35rem/1.2 "Playfair Display", Georgia, serif; color: var(--xu-ink); }
.xu-extras-pill { flex: none; padding: 5px 11px; border: 1px solid #d9c9e6; border-radius: 999px; background: #fff; color: #6a4a86; font: 600 .75rem/1 "DM Sans", system-ui, sans-serif; white-space: nowrap; }
.xu-extras-lede { margin: 6px 0 16px; color: var(--xu-soft); font: 400 .88rem/1.45 "DM Sans", system-ui, sans-serif; }
.xu-extras-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.xu-extra { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid #e4d8ec; border-radius: 16px; background: var(--xu-card); }
.xu-extra-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #efe6f4; color: #6a4a86; font-size: 1rem; }
.xu-extra-main b { font: 600 .95rem/1.35 "DM Sans", system-ui, sans-serif; color: var(--xu-ink); }
.xu-extra-main p { margin: 3px 0 0; color: var(--xu-soft); font: 400 .85rem/1.45 "DM Sans", system-ui, sans-serif; }
.xu-extra-main .xu-extra-at { color: var(--xu-green); font-size: .8rem; }
.xu-extra-main a { display: inline-block; margin-top: 8px; font-size: .82rem; }
.xu-extra-amt { text-align: right; font: 700 .95rem/1.3 "DM Sans", system-ui, sans-serif; color: var(--xu-ink); white-space: nowrap; }
.xu-extra-amt small { display: block; color: var(--xu-soft); font-weight: 400; font-size: .75rem; }
.xu-extras-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 14px 4px 0; color: #6a4a86; font: 600 .85rem/1.3 "DM Sans", system-ui, sans-serif; }
.xu-with-extras { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.xu-with-extras b { font-weight: 700; }
.xu-root.is-app.is-pub .xu-extras { margin-bottom: 120px; }
/* An expense people already paid on, in the owner's / Finance's window (one window, owner 2026-11-28): a tick on each
   of them, one line naming them, and after a change one quiet tag (never a pop-up). */
.xu-paidline { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; font: 500 13px/1.4 "DM Sans", sans-serif; color: #55665b; text-align: left; }
.xu-paidline i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #2f7a5b; color: #fff; display: grid; place-items: center; font: 700 11px/1 "DM Sans", sans-serif; font-style: normal; }
.xu-paidline.is-former { margin-top: -8px; }
.xu-pick-paid { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #e3f1e9; color: #2f7a5b; font: 700 11px/1.4 "DM Sans", sans-serif; font-style: normal; vertical-align: middle; }
.xu-chip-ok { position: absolute; right: -4px; top: -5px; width: 17px; height: 17px; border-radius: 50%; background: #2f7a5b; color: #fff; display: grid; place-items: center; font: 700 10px/1 "DM Sans", sans-serif; font-style: normal; box-shadow: 0 0 0 2px var(--xu-card); pointer-events: none; }
.xu-paidtag:empty { display: none; }
.xu-paidtag { margin: 10px 0 0; }
.xu-paidtag span { display: inline-block; padding: 6px 12px; border-radius: 14px; background: #fbefd9; color: #7a4a10; font: 600 12.5px/1.4 "DM Sans", sans-serif; text-align: left; }
/* Due: a real date box inside the meta row's own button shape */
.xu-due { justify-content: center; gap: 8px; cursor: pointer; }
.xu-due > span { flex: none; color: #6f6458; }
dialog.xu-dlg .xu-due input { min-width: 0; flex: 0 1 auto; height: 44px; margin: -1px 0; border: 0 !important; border-radius: 0; padding: 0; background: transparent !important; box-shadow: none !important; font: inherit; color: inherit; outline: none; -webkit-appearance: none; appearance: none; }
.xu-due:focus-within { border-color: var(--xu-green); box-shadow: 0 0 0 2px rgba(31, 61, 48, .14); }
/* four things in the row (Day, Due, receipt, More): two by two, so no word is cut on a phone */
.xu-meta.has-due { flex-wrap: wrap; }
.xu-meta.has-due > * { flex: 1 1 calc(50% - 4px); }
/* the window's three groups: nothing on a phone (one column, as it always was) */
.xu-b-top, .xu-b-l, .xu-b-r { display: contents; }
/* the website, wide (owner 2026-11-28: "why our windows are super tiny in web wide"): two columns, money and people
   on the left, the rest on the right */
@media (min-width: 980px) {
  .xu-sheet:not(.is-quick) { max-width: 940px; }
  .xu-sheet:not(.is-quick) .xu-sh-b { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: 36px; align-content: start; align-items: start; padding: 0 28px 6px; }
  .xu-sheet:not(.is-quick) .xu-b-top { display: block; grid-column: 1 / -1; }
  .xu-sheet:not(.is-quick) .xu-b-l, .xu-sheet:not(.is-quick) .xu-b-r { display: block; min-width: 0; }
  .xu-sheet:not(.is-quick) .xu-b-r { padding-left: 36px; border-left: 1px solid rgba(26, 20, 16, .1); align-self: stretch; }
  .xu-sheet:not(.is-quick) .xu-b-r > .xu-meta { margin-top: 0; }
  /* the Day list opened upward from the foot of a phone sheet; here its button is at the top of the right column, so
     it opens downward (hunt 2026-11-28: Day 1 to 3 were cut off and could not be picked) */
  .xu-sheet:not(.is-quick) .xu-b-r .xu-pop.is-up { top: calc(100% + 6px); bottom: auto; }
  .xu-sheet:not(.is-quick) .xu-sh-h { padding-left: 28px; padding-right: 28px; }
  .xu-sheet:not(.is-quick) .xu-sh-f { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding-left: 28px; padding-right: 28px; }
  .xu-sheet:not(.is-quick) .xu-sh-f .xu-issue { margin: 0; text-align: right; }
  .xu-sheet:not(.is-quick) .xu-sh-f .xu-save { width: auto; min-width: 280px; }
}

/* ——— a public guide's money at a glance (owner 2026-11-29, mock part 9) ——— */
.xu-each { display: block; margin-top: 2px; font: 600 .74rem/1.3 "DM Sans", system-ui, sans-serif; color: var(--xu-green, #2f6b4a); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.xu-day .xu-each { display: inline; margin-left: 8px; }
.xu-day { flex-wrap: wrap; }
.xu-day > h3 { flex: 1 1 auto; }
.xu-row-a .xu-each { text-align: right; }
.xu-extra-amt .xu-each { color: var(--xu-green, #2f6b4a); font-weight: 600; }
.xu-gtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.xu-gtiles.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xu-gtiles.is-1 { grid-template-columns: minmax(0, 1fr); }
.xu-gt { min-width: 0; padding: 12px; border-radius: 16px; background: var(--xu-card, #fffdf8); box-shadow: inset 0 0 0 1px rgba(26, 20, 16, .08); }
.xu-gt b { display: block; margin: 5px 0 3px; font: 700 1.02rem/1.15 "DM Sans", system-ui, sans-serif; color: #1e3a2f; font-variant-numeric: tabular-nums; }
.xu-gt small { display: block; font: 500 .72rem/1.35 "DM Sans", system-ui, sans-serif; color: #6f6a5e; }
.xu-gt small.xu-gt-e { color: #2f6b4a; font-weight: 700; }
.xu-gt-k { font: 700 .6rem/1.2 "DM Sans", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8a6a1c; }
.xu-gt.is-x { background: #f6f0fb; box-shadow: inset 0 0 0 1px #e4d6f0; }
.xu-gt.is-x .xu-gt-k { color: #6d3a92; }
.xu-gt.is-pm { background: #fbf6e8; box-shadow: inset 0 0 0 1px #eedfb5; }
.xu-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; }
.xu-go { font: 700 .78rem "DM Sans", system-ui, sans-serif; color: #1e3a2f; text-decoration: underline; text-underline-offset: 3px; }
.xu-row > .xu-links { margin: -4px 16px 10px 64px; }
.xu-extras-list.is-es .xu-extra { border-color: #dfe8e1; }
.xu-extras-list.is-es .xu-extra-ic { color: #2f6b4a; }
.xu-each-l { margin-top: 4px; }
.xu-each-l b { font-weight: 700; }
.xu-extra > .xu-extra-code { grid-column: 1 / -1; }
.xu-extra > .xu-extra-code > * { max-width: 100%; }
