/* baths.dig.ge — "Abanotubani ledger"
   steam-cream ground, deep bath-green ink, sulfur-yellow accent, dome arches. */

:root {
  --cream: #f2f0ea;
  --cream-2: #e7e4da;
  --ink: #232447;
  --ink-2: #4a4b6e;
  --ink-3: #83849c;
  --sulfur: #ff7a59;
  --sulfur-deep: #d95a3a;
  --brick: #1d7a74;
  --card: #fbfaf6;
  --line: #d9d6cb;
  --ok: #3e7d4f;
  --danger: #a63c2a;
  --r: 14px;
  --r-dome: 130px 130px 14px 14px;
  --shadow: 0 2px 10px rgba(35, 36, 71, .08), 0 10px 34px rgba(35, 36, 71, .06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background:
    radial-gradient(900px 300px at 85% -80px, rgba(255, 122, 89, .16), transparent 70%),
    radial-gradient(700px 260px at 0% 100%, rgba(29, 122, 116, .07), transparent 70%),
    var(--cream);
  min-height: 100vh;
}

h1, h2, h3, .brand { font-family: var(--font-display); }
h1 { font-size: 1.7rem; font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; font-weight: 700; margin-bottom: .8rem; }
a { color: var(--ink); }
.muted { color: var(--ink-3); font-size: .85rem; }
.muted-h { color: var(--ink-3); font-weight: 500; font-size: .95rem; margin-left: .4rem; }
.hint { color: var(--ink-3); font-size: .84rem; margin-top: .5rem; }
.hint a { color: var(--ink-2); }
.warn { background: #fdf3d3; border: 1px solid #ecd68a; padding: .55rem .8rem; border-radius: 9px; font-size: .87rem; margin: .6rem 0; }
.err { color: var(--danger); font-size: .88rem; margin-top: .6rem; }
.count { display: inline-block; background: var(--ink); color: var(--cream); font-family: var(--font-body); font-size: .72rem; border-radius: 99px; padding: .1rem .5rem; vertical-align: middle; margin-left: .3rem; }

/* ── topbar ─────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  position: sticky; top: 0; z-index: 50;
}
.brand { color: var(--sulfur); font-weight: 900; font-size: 1.25rem; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.brand-dot { color: var(--cream); }
.brand-dome {
  width: 18px; height: 14px; display: inline-block;
  background: var(--sulfur);
  border-radius: 18px 18px 2px 2px;
}
.topbar nav { display: flex; gap: .2rem; align-items: center; }
.topbar nav a {
  color: var(--cream); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: .38rem .75rem; border-radius: 99px;
}
.topbar nav a.on { background: rgba(255, 122, 89, .18); color: var(--sulfur); }
.topbar nav a:hover { background: rgba(255, 255, 255, .08); }
.logout { opacity: .7; }

.wrap { max-width: 860px; margin: 0 auto; padding: 1.4rem 1rem 4rem; }

/* ── page head ──────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.head-actions { display: flex; gap: .5rem; }
.head-actions.compact { align-self: flex-start; flex: none; }
.crumb { color: var(--ink-3); text-decoration: none; font-size: .84rem; }
.crumb:hover { color: var(--ink); }

/* ── cards ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: .9rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .9rem; }
.grid2 .span2 { grid-column: span 2; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .grid2 .span2 { grid-column: span 1; } }

label { display: flex; flex-direction: column; gap: .28rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea {
  font: inherit; font-size: .92rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .5rem .65rem;
}
input:focus, select:focus, textarea:focus, .wys-area:focus {
  outline: 2px solid var(--sulfur);
  outline-offset: 0;
  border-color: var(--sulfur-deep);
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  font: inherit; font-weight: 600; font-size: .9rem;
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 99px;
  padding: .55rem 1.15rem;
  cursor: pointer;
  transition: transform .08s ease, filter .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn-sulfur { background: var(--sulfur); color: var(--ink); box-shadow: 0 3px 0 var(--sulfur-deep); }
.btn-sulfur:active { box-shadow: 0 1px 0 var(--sulfur-deep); transform: translateY(2px); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid #dcb1a6; }
.btn-danger:hover { background: #fbeae5; }
.btn-sm { padding: .35rem .8rem; font-size: .82rem; }
.btn-block { width: 100%; }
.icon-btn {
  background: none; border: none; color: var(--ink-3); cursor: pointer;
  font-size: .85rem; padding: .25rem .45rem; border-radius: 7px;
}
.icon-btn:hover { background: #f3d8cf; color: var(--danger); }
.linky { background: none; border: none; font: inherit; font-weight: 700; color: var(--brick); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; padding: 0; }

.row-split { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; }
.bath-total { font-size: .95rem; }

/* ── badges / tags / chips ──────────────────────────────── */
.badge { font-family: var(--font-body); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 99px; padding: .18rem .6rem; vertical-align: middle; }
.badge-open { background: var(--sulfur); color: var(--ink); }
.badge-ok { background: var(--ok); color: #fff; }
.badge-cash { background: var(--brick); color: #fff; }
.tag { font-size: .7rem; font-weight: 600; border-radius: 99px; padding: .12rem .5rem; white-space: nowrap; }
.tag-covered { background: #e8e0f2; color: #5b4680; }
.tag-covers { background: #dcebdf; color: var(--ok); }
.tag-payer { background: var(--ink); color: var(--sulfur); }
.tag-qr { background: var(--cream-2); color: var(--ink-2); }
.tag-override { background: #f4e3c8; color: #8a5a12; }
.tag-noshow { background: #e3e3df; color: #6b6b64; }
.person-row.is-noshow .person-name b { text-decoration: line-through; color: var(--ink-3); }
.person-row.is-noshow .avatar { opacity: .45; }
.person-row.is-noshow .person-grid, .person-row.is-noshow .services { opacity: .5; }
.noshow-toggle { margin-right: .2rem; }
.noshow-toggle input { accent-color: #6b6b64; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 99px; padding: .22rem .3rem .22rem .7rem;
  font-size: .82rem; margin: 0 .3rem .35rem 0;
}
.chip-x { background: none; border: none; cursor: pointer; color: var(--ink-3); font-size: .72rem; padding: .1rem .3rem; }
.chip-x:hover { color: var(--danger); }
.chip-form { display: inline-flex; gap: .35rem; align-items: center; margin-top: .25rem; flex-wrap: wrap; }
.chip-form input[type=text] { width: 150px; padding: .32rem .55rem; font-size: .82rem; }
.chip-form input[type=number] { width: 72px; padding: .32rem .55rem; font-size: .82rem; }

/* ── dashboard session cards ────────────────────────────── */
.session-list { display: flex; flex-direction: column; gap: .7rem; }
.session-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: .85rem 1rem;
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform .1s ease;
}
.session-card:hover { transform: translateY(-2px); }
.session-card.is-settled { opacity: .62; }
.sc-date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--ink); color: var(--cream);
  border-radius: 24px 24px 8px 8px;
  padding: .45rem .7rem .35rem; min-width: 54px;
}
.sc-day { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; line-height: 1; }
.sc-mon { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sulfur); }
.sc-thumb {
  width: 46px; height: 46px; flex: none;
  border-radius: 23px 23px 8px 8px;
  background: linear-gradient(160deg, var(--cream-2), #ddd3bd);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.sc-thumb-dome { width: 22px; height: 14px; background: rgba(35, 36, 71, .25); border-radius: 22px 22px 2px 2px; }
.sc-body { flex: 1; min-width: 0; }
.sc-place { font-weight: 700; font-size: 1rem; }
.sc-meta { color: var(--ink-3); font-size: .82rem; margin-top: .1rem; }
.sc-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.sc-total { font-family: var(--font-display); font-weight: 700; }

/* ── display mode ───────────────────────────────────────── */
.fact-grid { display: flex; gap: .6rem; flex-wrap: wrap; }
.fact { flex: 1; min-width: 110px; background: var(--cream-2); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .1rem; }
.fact span { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; }
.fact b { font-family: var(--font-display); font-size: 1.15rem; }
.fact-grand { background: var(--ink); }
.fact-grand span { color: var(--sulfur); }
.fact-grand b { color: var(--cream); }
.person-row-view { padding: .6rem 0; }
.person-view-detail { margin: .35rem 0 0 2.4rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 560px) { .person-view-detail { margin-left: 0; } }
.cash-check { margin-top: .7rem; font-size: .9rem; cursor: pointer; }
.cash-check input[type=checkbox] { accent-color: var(--brick); }

.gt-card { padding: 0; overflow: hidden; }
.gt-card summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: .95rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.gt-card summary::-webkit-details-marker { display: none; }
.gt-card summary:hover { background: var(--cream-2); }
.gt-arrow { color: var(--ink-3); font-size: .85rem; transition: transform .15s; }
.gt-card[open] .gt-arrow { transform: rotate(180deg); }
.gt-body { padding: 0 1.2rem 1rem; border-top: 1px dashed var(--line); }
.gt-body > :first-child { margin-top: .8rem; }
@media (max-width: 640px) {
  .gt-card summary { padding: .8rem .85rem; }
  .gt-body { padding: 0 .85rem .9rem; }
}

/* ── people rows in session ─────────────────────────────── */
.person-row { border-top: 1px dashed var(--line); padding: .85rem 0; }
.person-row:first-of-type { border-top: none; padding-top: .2rem; }
.person-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.person-name { flex: 1; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; min-width: 0; }
.person-sub { font-family: var(--font-display); font-weight: 700; }
.avatar {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brick); color: #fff;
  font-weight: 700; font-size: .9rem;
  border-radius: 50% 50% 40% 40%;
}
.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; margin: .55rem 0 .45rem 2.4rem; }
.person-grid .span2 { grid-column: span 2; }
@media (max-width: 560px) { .person-grid { margin-left: 0; grid-template-columns: 1fr 1fr; } }
.services { margin-left: 2.4rem; }
@media (max-width: 560px) { .services { margin-left: 0; } }

.add-person { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: .9rem; margin-top: .4rem; }
.add-person select { min-width: 180px; }
.add-person input { width: 140px; }
.or { color: var(--ink-3); font-size: .8rem; }

/* ── restaurant ─────────────────────────────────────────── */
.resto-name { display: flex; gap: .5rem; margin-bottom: .8rem; }
.resto-name input { flex: 1; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: .8rem; }
.tbl th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: .3rem .5rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .45rem .5rem; border-bottom: 1px dashed var(--line); }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .who { color: var(--ink-3); font-size: .82rem; }
.resto-add { border-top: 1px dashed var(--line); padding-top: .8rem; }
.resto-add-line { display: flex; gap: .5rem; margin-bottom: .5rem; }
.resto-add-line input[type=text] { flex: 1; }
.resto-add-line input[type=number] { width: 100px; }
.who-picks { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.pick { flex-direction: row; align-items: center; gap: .3rem; font-weight: 500; cursor: pointer; background: var(--cream-2); border: 1px solid var(--line); border-radius: 99px; padding: .2rem .6rem; font-size: .8rem; }
.pick:has(input:checked) { background: var(--sulfur); border-color: var(--sulfur-deep); }
.pick input { accent-color: var(--ink); margin: 0; }

/* ── settlement ─────────────────────────────────────────── */
.card-settle { border: 2px solid var(--ink); background: linear-gradient(180deg, #fffdf6, var(--card)); border-radius: var(--r-dome); padding-top: 2.6rem; }
.card-settle > h2 { text-align: center; }
.organizer-line { font-size: .92rem; margin-bottom: .8rem; }
.organizer-top { margin: -.3rem 0 1rem; padding: 0 .2rem; }
.organizer-line a { color: var(--brick); }
.wa-link { color: #1faa53 !important; font-weight: 600; text-decoration: none; }
.wa-link:hover { text-decoration: underline; }
.modal-phone { font-size: .92rem; margin-top: .2rem; }
.check-inline { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; font-size: .8rem; color: var(--ink-2); margin-top: .3rem; }
.check-inline input { accent-color: #1faa53; margin: 0; }
.payer-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.payer-row label { flex: 1; min-width: 180px; }
.totals-strip { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .86rem; color: var(--ink-2); border-block: 1px solid var(--line); padding: .55rem 0; margin-bottom: .8rem; }
.totals-strip b { font-family: var(--font-display); }
.totals-strip .grand { margin-left: auto; color: var(--ink); }

.settle-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.settle-row:last-child { border-bottom: none; }
.settle-row.is-paid { opacity: .55; }
.settle-row.is-paid .owe-amt { text-decoration: line-through; }
.settle-who { min-width: 0; }
.settle-who b { margin-right: .35rem; }
.breakdown { display: block; color: var(--ink-3); font-size: .78rem; margin-top: .2rem; }
.settle-amounts { text-align: right; flex: none; }
.owe-line { display: flex; align-items: center; gap: .55rem; justify-content: flex-end; margin-bottom: .3rem; }
.owe-amt { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; }
.owe-to { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.zero { color: var(--ink-3); font-size: .9rem; }
.paid-toggle { flex-direction: row; align-items: center; gap: .3rem; font-size: .76rem; cursor: pointer; }
.paid-toggle input { accent-color: var(--ok); width: 16px; height: 16px; }

/* ── modal ──────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(35, 36, 71, .55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: var(--r-dome); padding: 2rem 1.6rem 1.4rem; max-width: 360px; width: 100%; position: relative; text-align: center; }
.modal-x {
  position: absolute; top: .8rem; right: .8rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  font-size: .95rem; cursor: pointer; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.modal-x:hover { color: var(--danger); }
.modal-close { margin-top: 1rem; }
.qr-img { max-width: 240px; width: 100%; border-radius: 10px; margin: .8rem auto .4rem; display: block; border: 1px solid var(--line); }
.qr-small { max-width: 130px; margin: .6rem 0; }
.payinfo { font-family: var(--font-body); font-size: .88rem; background: var(--cream-2); border-radius: 9px; padding: .7rem .9rem; text-align: left; white-space: pre-wrap; word-break: break-word; margin-top: .6rem; }

/* ── people page ────────────────────────────────────────── */
.person-card summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; }
.person-card summary::-webkit-details-marker { display: none; }
.person-card[open] summary { margin-bottom: .9rem; }
.person-card form { border-top: 1px dashed var(--line); padding-top: .9rem; }

/* ── locations ──────────────────────────────────────────── */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.loc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-dome); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .1s; }
.loc-card:hover { transform: translateY(-3px); }
.loc-cover { height: 130px; background: linear-gradient(160deg, var(--ink), #2c5247); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.loc-dome { width: 54px; height: 34px; background: rgba(255, 122, 89, .8); border-radius: 54px 54px 4px 4px; }
.loc-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.g-item { position: relative; margin: 0; }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.g-x { position: absolute; top: .3rem; right: .3rem; background: rgba(255, 255, 255, .85); }
.g-add { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; color: var(--ink-3); text-align: center; font-size: .8rem; font-weight: 600; }
.g-add:hover { border-color: var(--sulfur-deep); color: var(--ink-2); }

/* ── rich text / wysiwyg ────────────────────────────────── */
.rich { line-height: 1.55; font-size: .94rem; }
.rich p { margin: .5rem 0; }
.rich h2, .rich h3 { margin: .9rem 0 .4rem; }
.rich img { max-width: 100%; border-radius: 10px; margin: .5rem 0; }
.rich ul, .rich ol { padding-left: 1.3rem; margin: .5rem 0; }
.rich a { color: var(--brick); }
.wys-toolbar { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .5rem; }
.wys-toolbar button { font: inherit; font-size: .82rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: 7px; padding: .3rem .6rem; cursor: pointer; }
.wys-toolbar button:hover { background: var(--sulfur); }
.wys-area { min-height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }

/* ── empty states ───────────────────────────────────────── */
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3); }
.empty-dome { width: 90px; height: 54px; margin: 0 auto 1rem; background: var(--cream-2); border: 2px dashed var(--line); border-radius: 90px 90px 6px 6px; }

/* ── login ──────────────────────────────────────────────── */
.login-scene { min-height: 88vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-dome); box-shadow: var(--shadow); padding: 2.6rem 2.2rem 2rem; width: 100%; max-width: 340px; text-align: center; }
.login-dome { width: 74px; height: 46px; margin: 0 auto 1.1rem; background: var(--sulfur); border-radius: 74px 74px 5px 5px; box-shadow: 0 4px 0 var(--sulfur-deep); }
.login-title { font-size: 2.2rem; font-weight: 900; }
.login-sub { color: var(--ink-3); font-size: .88rem; margin: .2rem 0 1.4rem; }
.pin-input { width: 100%; text-align: center; font-size: 1.4rem; letter-spacing: .5em; margin-bottom: .8rem; }

/* ── mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wrap { padding: 1rem .7rem 3.5rem; }
  .topbar { padding: .55rem .8rem; }
  .brand { font-size: 1.1rem; }
  .brand-dome { width: 15px; height: 12px; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: .34rem .55rem; font-size: .87rem; }
  h1 { font-size: 1.45rem; }
  .card { padding: .9rem .85rem; }
  .page-head { margin-bottom: .9rem; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; text-align: center; }
  .head-actions.compact { width: auto; margin-left: auto; }
  .head-actions.compact .btn { flex: none; }

  /* 16px inputs stop iOS zoom-on-focus */
  input, select, textarea { font-size: 16px; }
  .btn { padding: .62rem 1.1rem; }
  .icon-btn { padding: .45rem .6rem; font-size: .95rem; }
  .paid-toggle input { width: 20px; height: 20px; }

  .session-card { gap: .7rem; }
  .sc-thumb { width: 40px; height: 40px; border-radius: 20px 20px 7px 7px; }
  .fact-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .fact b { font-size: 1.05rem; }

  .card-settle { padding-top: 2.1rem; }
  .totals-strip { gap: .5rem .9rem; font-size: .82rem; }
  .settle-row { flex-direction: column; gap: .45rem; }
  .settle-amounts { text-align: left; }
  .owe-line { width: 100%; justify-content: space-between; margin-bottom: .4rem; }
  .owe-amt { font-size: 1.15rem; }

  .tbl { font-size: .86rem; }
  .tbl th, .tbl td { padding: .35rem .35rem; }

  .chip-form { width: 100%; }
  .chip-form input[type=text] { flex: 1; min-width: 0; width: auto; }
  .add-person select { flex: 1 1 100%; }
  .add-person input { flex: 1; width: auto; min-width: 0; }
  .resto-add-line input[type=number] { width: 84px; }
  .who-picks .pick { padding: .3rem .7rem; }

  .modal-card { padding: 1.7rem 1.2rem 1.2rem; border-radius: 70px 70px 14px 14px; }
  .qr-img { max-width: 82vw; }
  .login-card { border-radius: 90px 90px 14px 14px; padding: 2.1rem 1.5rem 1.6rem; }
}

/* ── toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  border-radius: 99px; padding: .55rem 1.2rem; font-size: .88rem;
  box-shadow: var(--shadow); z-index: 200;
}
.toast-err { background: var(--danger); }

/* ── split.dig.ge additions ─────────────────────────────── */
.bal { font-family: var(--font-display); font-weight: 900; font-size: 1.02rem; white-space: nowrap; }
.bal-plus { color: var(--ok); }
.bal-minus { color: var(--danger); }
.transfers-title { font-size: 1rem; margin: 1rem 0 .3rem; text-align: center; }

.person-save { display: flex; justify-content: flex-end; }
