/* ============================================================
   NAI Billing — Design tokens & base
   ============================================================ */
:root {
  /* Surfaces — warm neutral */
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f7f5ef;
  --surface-3: #efece4;
  --hairline: #ebe8e0;
  --hairline-strong: #d8d4c9;

  /* Ink */
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --ink-4: #9c9a92;

  /* Brand — black + NAI yellow */
  --brand: #111111;
  --brand-2: #2a2a2a;
  --brand-3: #f0ede4;
  --brand-tint: #f4f1e8;
  --brand-ink-on: #fafaf6;

  /* Accent — NAI yellow */
  --accent: #f5c518;
  --accent-2: #ddb014;
  --accent-soft: #fff4c4;
  --accent-tint: #fffcec;
  --accent-ink-on: #111111;

  /* Status */
  --paid: #2f7a59;
  --paid-bg: #e6f1ec;
  --partial: #9c6a14;
  --partial-bg: #fcecbf;
  --open: #6b6b6b;
  --open-bg: #ebe8e0;
  --danger: #b3361f;
  --danger-bg: #fbeae6;

  /* Currency tags */
  --nis-ink: #111111;
  --usd-ink: #3a3a3a;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-md: 0 4px 18px rgba(15, 15, 15, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 15, 15, 0.12);
  --shadow-pop: 0 24px 60px rgba(15, 15, 15, 0.16);

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Layout */
  --app-max-w: 460px;
  --header-h: 60px;
  --tab-h: 64px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --num: "Inter", ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss03", "cv02";
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

a { color: inherit; text-decoration: none; }

/* Default icon size — anything not explicitly sized */
svg { width: 18px; height: 18px; flex: none; }

input, textarea, select {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
}

/* ============================================================
   Mobile-only — this app is built for phones.
   Above 600px the app is hidden and a branded notice shows.
   ============================================================ */
.mobile-only-block { display: none; }

@media (min-width: 600px) {
  .app-shell,
  #modal-root,
  #toast { display: none !important; }

  body {
    background:
      radial-gradient(900px 600px at 80% 110%, var(--accent-soft) 0%, transparent 55%),
      radial-gradient(700px 500px at 12% -10%, #ffffff 0%, transparent 55%),
      var(--bg);
  }

  .mobile-only-block {
    display: flex;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 500;
  }
  .mob-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-pop);
    padding: 40px 36px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  .mob-card::after {
    content: "";
    position: absolute;
    right: -90px; top: -90px;
    width: 240px; height: 240px;
    background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
    pointer-events: none;
  }
  .mob-logo { width: 72px; height: 72px; object-fit: contain; }
  .mob-brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    margin-top: 8px;
    line-height: 1.3;
  }
  .mob-brand span {
    display: block;
    font-weight: 500;
    color: var(--ink-3);
    letter-spacing: .05em;
    text-transform: none;
    font-size: 12px;
    margin-top: 2px;
  }
  .mob-title {
    margin: 20px 0 0;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.02em;
  }
  .mob-text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-3);
    max-width: 320px;
  }
  .mob-tip {
    margin-top: 18px;
    font-size: 12px;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.5;
  }
  .mob-meta {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-4);
  }
}

/* ============================================================
   App shell — phone-like column
   ============================================================ */
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-max-w);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Each screen fills the shell */
.screen {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
  opacity: 1;
}

.screen-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 90px; /* room for FAB */
}

/* ============================================================
   Top app bar
   ============================================================ */
.appbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  min-height: var(--header-h);
  flex: none;
  padding: 0 16px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.appbar.scrolled { border-color: var(--hairline); background: rgba(245,245,241,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.appbar .iconbtn { color: var(--ink); }
.appbar h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar h1.center { text-align: center; }

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.iconbtn:hover { background: var(--surface-3); color: var(--ink); }
.iconbtn:active { transform: scale(.96); }
.iconbtn svg { width: 22px; height: 22px; }

/* ============================================================
   Bottom tab bar
   ============================================================ */
.tabbar {
  position: relative;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  flex: none;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--hairline);
  z-index: 9;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -.005em;
  position: relative;
  transition: color .15s var(--ease);
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--ink); }
.tab.active svg { stroke-width: 2; }
.tab.active::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

/* FAB */
.fab {
  position: absolute;
  right: 18px;
  bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--brand);
  color: var(--brand-ink-on);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(17,17,17,.30), 0 2px 6px rgba(17,17,17,.18);
  z-index: 8;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.fab:hover { transform: translateY(-1px); background: var(--brand-2); }
.fab:active { transform: translateY(0) scale(.96); }
.fab svg { width: 26px; height: 26px; stroke: currentColor; }
.fab svg path { stroke-width: 2.4; }

/* ============================================================
   Page sections / headers
   ============================================================ */
.page-title {
  padding: 4px 20px 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.page-title .sub {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 4px;
}

.section-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 10px;
}
.section-h h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-h .link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.section-h .link:hover { color: var(--ink); }

/* ============================================================
   Totals card (dashboard)
   ============================================================ */
.totals {
  margin: 8px 16px 4px;
  background: var(--brand);
  color: var(--brand-ink-on);
  border-radius: var(--r-lg);
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
}
.totals::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(closest-side, rgba(245,197,24,.18), transparent 70%);
  pointer-events: none;
}
.totals .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.totals-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: end;
  gap: 16px;
  margin-top: 12px;
}
.totals-row .divider { background: rgba(255,255,255,.12); }
.totals .cur {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.totals .amount {
  font-family: var(--num);
  font-feature-settings: "tnum" 1, "ss01" 1;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}
.totals .amount .sym { color: rgba(247,250,247,.6); font-weight: 500; margin-right: 4px; }
.totals .hint {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: rgba(247,250,247,.7);
}
.totals .hint b { color: var(--brand-ink-on); font-weight: 600; }

/* ============================================================
   Toolbar (search + filter + sort)
   ============================================================ */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 8px;
  background: var(--bg);
}

.search-row { display: flex; gap: 8px; }
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--ink-3);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--ink-4); }

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--brand-ink-on);
}
.chip .x { width: 14px; height: 14px; opacity: .8; }

/* Segmented view switcher */
.segmented {
  display: inline-flex;
  background: var(--surface-3);
  border-radius: 10px;
  padding: 3px;
  gap: 0;
  align-self: flex-end;
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -.005em;
}
.segmented button svg { width: 14px; height: 14px; }
.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Records — Cards layout
   ============================================================ */
.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 16px;
}
.rec-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
  transition: transform .12s var(--ease), border-color .12s var(--ease);
}
.rec-card:hover { border-color: var(--hairline-strong); }
.rec-card:active { transform: scale(.995); }

.rec-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.rec-card .client {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-card .desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card .date {
  font-size: 12px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rec-card .balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
}
.bal-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bal-cell .cur-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.bal-cell .amt {
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}
.bal-cell .amt.zero { color: var(--ink-4); }
.bal-cell .amt .sym { color: var(--ink-4); font-weight: 500; margin-right: 2px; }
.bal-cell .meta {
  font-size: 11px;
  color: var(--ink-4);
}

/* status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pill.paid { background: var(--paid-bg); color: var(--paid); }
.pill.partial { background: var(--partial-bg); color: var(--partial); }
.pill.open { background: var(--open-bg); color: var(--open); }

/* ============================================================
   Records — Compact (table-like)
   ============================================================ */
.compact {
  background: var(--surface);
  margin: 4px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.compact-head {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.compact-head .r { text-align: right; }
.compact-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
  text-align: left;
  width: 100%;
}
.compact-row:last-child { border-bottom: 0; }
.compact-row .main { min-width: 0; }
.compact-row .client {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-row .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  display: flex;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-row .sub .dot { color: var(--ink-4); }
.compact-row .amt-col {
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: right;
}
.compact-row .amt-col.zero { color: var(--ink-4); font-weight: 500; }
.compact-row .amt-col .sym { color: var(--ink-4); font-weight: 500; margin-right: 1px; font-size: 12px; }

/* ============================================================
   Records — Grouped by client
   ============================================================ */
.group {
  margin: 4px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.group + .group { margin-top: 10px; }
.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  width: 100%;
  text-align: left;
}
.group-head .avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -.01em;
  flex: none;
}
.group-head .who {
  flex: 1;
  min-width: 0;
}
.group-head .name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.group-head .count {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
}
.group-head .totals-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-size: 13px;
  font-weight: 600;
}
.group-head .totals-inline .nis { color: var(--nis-ink); }
.group-head .totals-inline .usd { color: var(--usd-ink); }
.group-head .totals-inline .sym { color: var(--ink-4); font-weight: 500; margin-right: 2px; }
.group-head .chev {
  margin-left: 6px;
  color: var(--ink-4);
  transition: transform .2s var(--ease);
  display: inline-flex;
}
.group-head .chev svg { width: 18px; height: 18px; }
.group.collapsed .chev { transform: rotate(-90deg); }
.group-body { display: block; }
.group.collapsed .group-body { display: none; }
.group-body .compact-row:last-child { border-bottom: 0; }

/* ============================================================
   Empty states
   ============================================================ */
.empty {
  margin: 32px 16px;
  padding: 36px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px dashed var(--hairline-strong);
}
.empty h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.empty p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.empty .iconbox {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--ink-3);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.empty .iconbox svg { width: 22px; height: 22px; }

/* ============================================================
   Login
   ============================================================ */
.login {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 28px 28px;
  background:
    radial-gradient(120% 50% at 50% -10%, var(--accent-tint) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}
.login::before {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -45%;
  width: 140%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(245,197,24,.12), transparent 70%);
  pointer-events: none;
}
.login-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.login .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}
.login .brand .logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}
.login .brand .name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.login .brand .name .sub {
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 12px;
  margin-top: 3px;
}

.login .hello {
  margin-top: 56px;
}
.login .hello .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 6px 10px;
  border-radius: 999px;
}
.login .hello .eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.login .hello .eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .35;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(.6); opacity: .35; }
  50%      { transform: scale(1.4); opacity: 0; }
}
.login .hello h1 {
  margin: 14px 0 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.login .hello h1 .accent {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  padding: 0 4px;
}
.login .hello p {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 340px;
}
.login form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.login form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login form label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login form .input {
  height: 54px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.login form .input svg {
  width: 18px;
  height: 18px;
  color: var(--ink-4);
  flex: none;
}
.login form .input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17,17,17,.06);
  background: var(--surface);
}
.login form .input:focus-within svg { color: var(--ink-2); }
.login form .input input { font-size: 15px; }
.login form .input input::placeholder { color: var(--ink-4); }
.login .btn-primary {
  margin-top: 10px;
  height: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--brand-ink-on);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .12s var(--ease), background .15s var(--ease);
}
.login .btn-primary svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.login .btn-primary:hover { background: var(--brand-2); }
.login .btn-primary:hover svg { transform: translateX(3px); }
.login .btn-primary:active { transform: scale(.99); }
.login .btn-primary.loading { opacity: .92; pointer-events: none; }

/* Spinner — shown on the sign-in button while authenticating */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(250,250,246,.35);
  border-top-color: var(--brand-ink-on);
  animation: spin .7s linear infinite;
  display: inline-block;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding-top: 16px;
}
.login-foot .version {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}
.credit a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .15s var(--ease);
}
.credit a:hover { color: var(--brand-2); }
.credit svg {
  width: 12px;
  height: 12px;
  color: var(--accent-2);
}
.credit svg path { fill: var(--accent-2); }
.login .hello p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 320px;
}
/* legacy .login block removed */


/* ============================================================
   Record detail
   ============================================================ */
.detail-head {
  padding: 4px 20px 18px;
}
.detail-head .client-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  margin-bottom: 14px;
  max-width: 100%;
  white-space: nowrap;
}
.detail-head .client-link .avatar {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--brand-ink-on);
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 600;
  flex: none;
}
.detail-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.detail-head .meta {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.detail-head .meta .dot { color: var(--ink-4); }

/* balance summary card */
.bal-card {
  margin: 4px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.bal-card .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.bal-card .col {
  padding: 16px 16px 14px;
}
.bal-card .col + .col {
  border-left: 1px solid var(--hairline);
}
.bal-card .cur-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.bal-card .bal {
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 6px;
  color: var(--ink);
}
.bal-card .bal .sym { color: var(--ink-4); font-weight: 500; margin-right: 2px; }
.bal-card .bal.zero { color: var(--ink-4); }
.bal-card .bal.paid-full { color: var(--paid); }
.bal-card .sub-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
}
.bal-card .sub-row .sub-label {
  color: var(--ink-4);
  font-family: var(--font-sans);
  letter-spacing: .02em;
}
.bal-card .progress {
  margin-top: 12px;
  height: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.bal-card .progress > i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .3s var(--ease);
}

/* segmented section toggle */
.section-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 16px 6px;
  background: var(--surface-3);
  padding: 4px;
  border-radius: 12px;
}
.section-tabs button {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.section-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.section-tabs button .count {
  font-size: 11px;
  color: var(--ink-4);
  background: transparent;
  font-weight: 500;
}
.section-tabs button.active .count { color: var(--ink-3); }

/* List items (payments / expenses) */
.list {
  margin: 4px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.list-item:last-child { border-bottom: 0; }
.list-item .icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  flex: none;
}
.list-item.expense .icon { background: #f6f0e9; color: #8a5a16; }
.list-item .icon svg { width: 16px; height: 16px; }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.list-item .title > span:first-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item .title .amt {
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.list-item .title .amt .sym { color: var(--ink-4); font-weight: 500; margin-right: 1px; }
.list-item .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item .meta .dot { color: var(--ink-4); }
.list-item .meta .note { color: var(--ink-3); }

/* action buttons row */
.actions-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px 6px;
}
.btn-secondary {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .12s var(--ease), border-color .12s var(--ease);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--hairline-strong); }
.btn-secondary svg { width: 16px; height: 16px; }
.btn-secondary.danger { color: var(--danger); }
.btn-secondary.dark {
  background: var(--ink);
  color: var(--brand-ink-on);
  border-color: var(--ink);
}
.btn-secondary.dark:hover { background: var(--ink-2); }

/* ============================================================
   Client profile
   ============================================================ */
.client-head {
  padding: 8px 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.client-head .avatar {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  flex: none;
}
.client-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.client-head .phone {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.client-head .phone svg { width: 13px; height: 13px; }

.client-notes {
  margin: 4px 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.client-notes .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 16px 4px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.kpi .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.kpi .vals {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi .vals .v {
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.kpi .vals .v .sym { color: var(--ink-4); font-weight: 500; margin-right: 2px; }
.kpi .vals .v.zero { color: var(--ink-4); }
.kpi.accent {
  background: var(--brand);
  color: var(--brand-ink-on);
  border-color: var(--brand);
}
.kpi.accent .label { color: rgba(247,250,247,.7); }
.kpi.accent .v { color: var(--brand-ink-on); }
.kpi.accent .v .sym { color: rgba(247,250,247,.6); }

/* ============================================================
   Sheets / Modals
   ============================================================ */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,.4);
  z-index: 100;
  opacity: 0;
  transition: opacity .2s cubic-bezier(.2,.7,.2,1);
}
.scrim.in { opacity: 1; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--app-max-w);
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
  box-shadow: 0 -20px 60px rgba(15,15,15,.18);
  transform: translateX(-50%) translateY(100%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.sheet.in { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .sheet { transform: translateX(-50%) translateY(0); transition: none; }
  .scrim { opacity: 1; transition: none; }
}

.sheet .handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline-strong);
  margin: 8px auto 0;
  flex: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 6px;
}
.sheet-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.sheet-body {
  padding: 14px 20px 12px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.sheet-foot {
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 10px;
}
.sheet-foot .btn-primary,
.sheet-foot .btn-secondary {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink-on);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--brand-2); }
.btn-primary:disabled { background: var(--hairline-strong); color: var(--ink-4); cursor: not-allowed; }
.btn-primary:active { transform: scale(.99); }

/* Form fields in sheet */
.form { display: flex; flex-direction: column; gap: 14px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.form .input,
.form textarea,
.form select {
  min-height: 46px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.form .input:focus-within,
.form textarea:focus,
.form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
.form textarea {
  display: block;
  resize: vertical;
  min-height: 76px;
  font-family: inherit;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .row.three { grid-template-columns: 1fr 1fr 1fr; }

.cur-toggle {
  display: inline-flex;
  background: var(--surface-3);
  padding: 3px;
  border-radius: 10px;
  gap: 0;
  align-self: flex-start;
}
.cur-toggle button {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  font-family: var(--num);
  letter-spacing: -.005em;
}
.cur-toggle button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.cur-toggle button.active.nis { color: var(--brand); }
.cur-toggle button.active.usd { color: var(--usd-ink); }

.amount-input {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.amount-input .sym {
  font-family: var(--num);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-4);
}
.amount-input input {
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.amount-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17,17,17,.08); }

/* Method chips */
.method-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.method-chips button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.method-chips button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--brand-ink-on);
}

/* Client picker in sheet */
.picker-list { display: flex; flex-direction: column; gap: 4px; }
.picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  text-align: left;
  width: 100%;
}
.picker-item > div:last-child {
  min-width: 0;
  flex: 1;
}
.picker-item .avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 12px;
  flex: none;
}
.picker-item .name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-item .sub {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-item.active {
  border-color: var(--ink);
  background: var(--accent-tint);
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(20px) scale(.96);
  background: var(--ink);
  color: var(--brand-ink-on);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .22s cubic-bezier(.2,.7,.2,1),
    transform .28s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 12px 32px rgba(15,15,15,.22);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.toast .toast-tick {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.toast .toast-tick svg { width: 11px; height: 11px; stroke-width: 3; }

/* ============================================================
   Misc helpers
   ============================================================ */
.divider-line {
  height: 1px;
  background: var(--hairline);
  margin: 4px 16px;
}

.no-data {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

.fade-in {
  opacity: 1;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Top outstanding list (overview) */
.top-list {
  margin: 4px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color .12s var(--ease);
}
.top-row:hover { border-color: var(--hairline-strong); }
.top-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -.01em;
  flex: none;
}
.top-row-body {
  flex: 1;
  min-width: 0;
}
.top-row-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-row-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.top-row-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
}
.top-row-amounts .amt-line {
  font-family: var(--num);
  font-feature-settings: "tnum" 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.top-row-amounts .amt-line .sym { color: var(--ink-4); font-weight: 500; margin-right: 1px; }

/* ============================================================
   Overview screen
   ============================================================ */
.overview-hero {
  padding: 8px 20px 14px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}
.hero-text { min-width: 0; }
.hero-text .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-text h1 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

/* Status mini bars */
.status-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.sb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.sb .sb-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--ink-4);
  flex: none;
}
.sb.open .sb-dot { background: var(--ink-4); }
.sb.partial .sb-dot { background: var(--accent); }
.sb.paid .sb-dot { background: var(--paid); }
.sb .sb-lbl { flex: 1; color: var(--ink-2); font-weight: 500; }
.sb .sb-num {
  font-family: var(--num);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Settings sheet */
.settings-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.settings-row:last-child { border-bottom: 0; }
.settings-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.settings-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Tappable settings action row (e.g. Change password) */
.settings-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: var(--surface-2);
  transition: background .12s var(--ease);
}
.settings-link:hover { background: var(--surface-3); }
.settings-link:active { background: var(--surface-3); }
.settings-link .settings-link-ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}
.settings-link .settings-link-ico svg { width: 16px; height: 16px; }
.settings-link .settings-link-lbl {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.settings-link .settings-link-chev { color: var(--ink-4); display: inline-flex; }
.settings-link .settings-link-chev svg { width: 18px; height: 18px; }

/* Searchable picker inside sheet */
.picker-search {
  position: sticky;
  top: -14px;
  margin: -2px 0 8px;
  background: var(--surface);
  padding: 8px 0;
  z-index: 1;
}
.picker-search .search {
  background: var(--surface-2);
  height: 42px;
}
.picker-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
