/* Bright, light theme. Colours come from the Techtizar logo's lavenders and purple,
   with sky blue and amber as cheerful extras. */
:root {
  --page: #F6F4FD;
  --card: #FFFFFF;
  --ink: #2B2350;
  --muted: #8C86A8;
  --line: #ECE8F7;
  --field: #F6F4FC;
  --bg: #F3F0FB;

  --purple: #6A2C91;
  --violet: #8276B0;
  --lavender: #A39BCB;
  --lilac: #C6BEE6;
  --mist: #DAD4F2;
  --accent: #7446B0;
  --accent-pressed: #612F9C;
  --accent-soft: #F0EAFB;
  --on-accent: #FFFFFF;

  --sky: #4FB3F0;
  --sky-soft: #E4F3FD;
  --amber: #F5B840;
  --green: #1F9D63;
  --green-soft: #E3F6EC;
  --red: #E0574E;
  --red-soft: #FDEBEA;
  --alert: #D2433A;
  --alert-bg: #FDECEB;
  --danger: #D2433A;

  --shadow: 0 10px 30px rgba(106, 44, 145, 0.08);
  --shadow-lift: 0 14px 34px rgba(106, 44, 145, 0.18);
  --tabbar-h: 70px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Soft lavender and sky glow at the top of every page */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 0%, rgba(198, 190, 230, 0.75), transparent 55%),
    radial-gradient(circle at 95% 15%, rgba(79, 179, 240, 0.22), transparent 45%);
}

body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------- Page frame ---------- */

.view {
  max-width: 480px;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(env(safe-area-inset-bottom) + var(--tabbar-h) + 40px);
}

.hero { padding: 18px 20px 8px; }
.panel { padding: 8px 16px 24px; }

.brand {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.title {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.back span { font-size: 24px; line-height: 1; margin-top: -3px; }

.hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hero-tools { display: flex; gap: 10px; }

.round-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
}

.round-btn svg,
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.round-btn.on { background: var(--accent); }
.round-btn.on svg { stroke: #FFFFFF; }

.count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--page);
  border-radius: 999px;
  background: var(--amber);
  color: #3B2700;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ---------- Feature card: the bright gradient card at the top ---------- */

.feature-card {
  margin-top: 18px;
  border-radius: 28px;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, #B7ACE6 0%, #8F7FD0 45%, #7446B0 100%);
  box-shadow: var(--shadow-lift);
}

.feature-card.sky {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.4), transparent 45%),
    linear-gradient(135deg, #8FD3F7 0%, #6C9DE6 50%, #8276B0 100%);
}

.totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.totals > div { padding: 18px 18px 14px; }
.totals > div + div { border-left: 1px solid rgba(255, 255, 255, 0.25); }

.feature-big { padding: 20px 18px 16px; }

.label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
}

.amount {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.amount.big { font-size: 34px; margin-top: 6px; letter-spacing: -0.01em; }

.note {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.feature-row small { font-size: 12px; }
.feature-row strong { color: #FFFFFF; font-weight: 600; }

.feature-row.profit {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
}

.feature-row.profit strong { font-size: 22px; font-weight: 700; }
.feature-card .negative { color: #FFE2DF; }

/* ---------- Period picker button ---------- */

.period-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.step-btn,
.period-btn {
  border: 0;
  background: var(--card);
  box-shadow: var(--shadow);
}

.step-btn {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  padding-bottom: 3px;
}

.step-btn:disabled { opacity: 0.4; cursor: default; }
.step-btn:not(:disabled):active,
.period-btn:active { background: var(--accent-soft); }

.period-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.period-btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.period-btn [data-period-label] {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.period-btn span:last-child { color: var(--muted); font-size: 11px; }

.search {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.search::placeholder { color: var(--muted); }
.search:focus { outline: none; box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft); }

/* ---------- Lists ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-title {
  margin: 24px 4px 12px;
  font-size: 17px;
  font-weight: 600;
}

.panel > .section-title:first-child,
.panel > .alerts[hidden] + .section-title,
#gst-section > .section-title:first-child,
#funds-section > .section-title:first-child { margin-top: 10px; }

.section-title small { color: var(--muted); font-size: 12px; font-weight: 400; }

.list {
  list-style: none;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list:empty { display: none; }
.list > li + li { border-top: 1px solid var(--line); }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  text-align: left;
}

button.row:active { background: var(--bg); }
div.row { cursor: default; }

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  color: var(--purple);
  font-size: 15px;
  font-weight: 600;
}

.avatar svg { width: 100%; height: 100%; display: block; }

.sign { font-size: 20px; font-weight: 600; }
.sign.in { background: var(--green-soft); color: var(--green); }
.sign.out { background: var(--red-soft); color: var(--red); }

.row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-title { font-size: 15px; font-weight: 600; }

.row-sub,
.row-meta {
  color: var(--muted);
  font-size: 12.5px;
}

.row-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#role-list .row-sub,
#earnings-list .row-sub,
#activity-full .row-sub { white-space: normal; }

.row-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.row-meta.strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.row-meta.strong.income { color: var(--green); }
.row-meta.strong.negative { color: var(--danger); }
.income { color: var(--green); }

/* One-tap "Settle" on pending entries */
.settle-pill {
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FAD078, #F2AE2E);
  color: #4A3200;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(242, 174, 46, 0.35);
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.tag.alert { background: var(--alert-bg); color: var(--alert); }

.empty {
  padding: 26px 16px;
  border: 1.5px dashed var(--lilac);
  border-radius: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 500;
}

.link-row span { color: var(--muted); font-size: 22px; line-height: 1; }

.text-btn {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.text-btn:disabled { opacity: 0.4; }

/* ---------- Top clients bars ---------- */

.bars {
  list-style: none;
  padding: 8px 16px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.bars:empty { display: none; }

.bar-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
}

.bars li + li .bar-row { border-top: 1px solid var(--line); }
.bar-row .avatar { width: 36px; height: 36px; }
.bar-name { font-size: 14px; font-weight: 600; }

.bar-track {
  display: block;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--field);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lavender), var(--accent));
}

.bar-value {
  align-self: start;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bar-detail {
  grid-column: 2 / 4;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Notifications ---------- */

.alerts {
  margin: 4px 0 16px;
  border-radius: 20px;
  background: var(--alert-bg);
  color: var(--alert);
  overflow: hidden;
}

.alerts summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.alerts summary::-webkit-details-marker { display: none; }

.alerts summary::after {
  content: "›";
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.alerts[open] summary::after { transform: rotate(90deg); }

.alerts-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--alert);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.alerts-list { list-style: none; }

.alerts-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid rgba(210, 67, 58, 0.15);
  background: none;
  color: inherit;
  font-size: 14px;
  text-align: left;
}

.alerts-list button span { font-size: 20px; line-height: 1; opacity: 0.7; }

/* ---------- Segmented controls ---------- */

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 999px;
  background: #ECE8F8;
}

.segmented input { position: absolute; opacity: 0; pointer-events: none; }

.segmented span {
  display: block;
  padding: 10px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.segmented input:checked + span {
  background: var(--card);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(106, 44, 145, 0.12);
}

.hero .segmented.tabs { margin-top: 16px; }
.segmented.filter { margin-bottom: 14px; }

/* ---------- Activity ---------- */

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 4px 12px;
}

.totals-pair { display: flex; gap: 22px; }
.totals-pair small { display: block; color: var(--muted); font-size: 12px; }

.totals-pair strong {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.select-tools { display: flex; gap: 16px; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 2px 12px;
}

.active-filters .chip { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 500; }

.check {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0 9px;
  border: 2px solid var(--lilac);
  border-radius: 50%;
}

.check.on {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.action-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + var(--tabbar-h) + 22px);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 448px;
  margin: 0 auto;
  padding: 10px 10px 10px 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  font-weight: 600;
}

.action-bar .primary {
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  font-size: 15px;
}

.action-bar .primary:disabled { opacity: 0.4; box-shadow: none; }

/* ---------- GST and Funds ---------- */

.gst-month .row-meta small { font-size: 11px; }

.sub-list {
  list-style: none;
  padding: 0 16px 8px;
  background: var(--field);
}

.sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 14px;
  text-align: left;
}

.sub-list li:last-child .sub-row { border-bottom: 0; }
.sub-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.sub-row strong { font-variant-numeric: tabular-nums; }

.settings-card {
  padding: 4px 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.settings-card .hint { margin: 12px 0 2px; }

.settings-line {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 14px;
}

.settings-line + .settings-line { border-top: 1px solid var(--line); }
.settings-line span { color: var(--muted); }

.fund-people { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.pill {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pill.paid { background: var(--green-soft); color: var(--green); }
.pill.missing { background: var(--alert-bg); color: var(--alert); }

/* ---------- Floating bottom bar ---------- */

.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 72px 1fr 1fr;
  align-items: center;
  max-width: 456px;
  height: var(--tabbar-h);
  margin: 0 auto;
  padding: 0 6px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(106, 44, 145, 0.16);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  border: 0;
  background: none;
  color: #A7A1C2;
  font-size: 10.5px;
  font-weight: 500;
}

.tab svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab.active { color: var(--accent); font-weight: 600; }

.tab-add {
  justify-self: center;
  width: 60px;
  height: 60px;
  margin-top: -34px;
  border: 5px solid var(--page);
  border-radius: 50%;
  background: linear-gradient(140deg, #9A86E0, #7446B0);
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(116, 70, 176, 0.45);
}

.tab-add:active { transform: scale(0.95); }

.badge {
  position: absolute;
  top: 12px;
  left: calc(50% + 7px);
  width: 9px;
  height: 9px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: var(--red);
  box-sizing: content-box;
}

/* ---------- Settings menu (slides in from the right) ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(43, 35, 80, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  width: min(84%, 340px);
  padding: calc(env(safe-area-inset-top) + 20px) 18px 24px;
  border-radius: 28px 0 0 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(198, 190, 230, 0.6), transparent 50%),
    #FFFFFF;
  box-shadow: -20px 0 50px rgba(43, 35, 80, 0.18);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s 0.25s;
}

body.drawer-open .drawer {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease;
}

body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.drawer-head h2 { font-size: 24px; font-weight: 700; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  font-size: 22px;
  line-height: 1;
}

.drawer-list { display: flex; flex-direction: column; gap: 10px; }

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: var(--field);
  font-size: 16px;
  font-weight: 500;
}

.drawer-item:active { background: var(--accent-soft); }

.drawer-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.drawer-icon.lavender { background: var(--mist); }
.drawer-icon.sky { background: var(--sky-soft); }

.drawer-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-icon.sky svg { stroke: #2C8FCC; }
.drawer-item .chev { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }

.drawer-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

/* ---------- Slide-up sheet ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(43, 35, 80, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  max-width: 480px;
  max-height: 92%;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px calc(env(safe-area-inset-bottom) + 20px);
  border-radius: 30px 30px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -10px 40px rgba(43, 35, 80, 0.15);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s 0.25s;
}

.sheet.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.25s ease;
}

.sheet-head {
  position: sticky;
  top: -8px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -8px -20px 8px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

.sheet-head h2 { font-size: 18px; font-weight: 600; }

.sheet-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.filter-group { margin-top: 18px; }

.filter-group > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Form fields ---------- */

#entry-form {
  padding: 4px 16px 20px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

#entry-form .segmented.tabs { margin-top: 12px; }

.field {
  display: block;
  margin-top: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.field > span small { font-weight: 400; opacity: 0.85; }

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background-color: var(--field);
  /* 16px+ stops iPhone from zooming in on tap */
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 110px;
  padding: 12px 16px;
  line-height: 1.45;
  resize: vertical;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237446B0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 38px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lavender);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input::-webkit-inner-spin-button,
.field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.input-suffix { position: relative; }
.input-suffix input { padding-right: 38px; }

.input-suffix span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}

.input-pair {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px;
}

/* The client's currency, shown but not editable */
.fixed-currency {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  border: 1.5px dashed var(--lilac);
  border-radius: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

/* Worked-out values like GST and commission */
.readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 14px;
}

.readout small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.readout strong { flex: none; color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; }

.spaced { margin-top: 10px; }

.hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Ready-made choices under a field */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.suggestions:empty { display: none; }

.chip {
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 14px;
}

.chip:active { background: var(--accent-soft); }
.chip.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--field);
}

.toggle strong { display: block; font-size: 15px; font-weight: 600; }
.toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.toggle input {
  flex: none;
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--lilac);
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

.toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(20px); }

.form-error {
  margin-top: 16px;
  color: var(--danger);
  font-size: 14px;
}

.primary,
.secondary,
.danger {
  display: block;
  width: 100%;
  height: 54px;
  margin-top: 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}

.primary {
  border: 0;
  background: linear-gradient(135deg, #9A86E0, #7446B0);
  color: var(--on-accent);
  box-shadow: 0 10px 22px rgba(116, 70, 176, 0.3);
}

.primary:active { filter: brightness(0.95); }

.secondary {
  margin-top: 10px;
  border: 0;
  background: var(--field);
  color: var(--accent);
}

.danger {
  margin-top: 10px;
  border: 0;
  background: var(--red-soft);
  color: var(--danger);
}

/* ---------- Period picker calendar ---------- */

.range-summary {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.range-summary span { margin: 0 4px; color: var(--muted); }
.range-summary em { color: var(--muted); font-style: normal; font-weight: 400; }

.calendar {
  margin-top: 12px;
  padding: 12px;
  border-radius: 22px;
  background: var(--field);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-head strong { font-size: 15px; font-weight: 600; }

.calendar-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
}

.weekday {
  padding: 4px 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.day {
  position: relative;
  height: 40px;
  border: 0;
  background: none;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.day.today::after {
  content: "";
  position: absolute;
  inset: 3px;
  width: 34px;
  height: 34px;
  margin: auto;
  border: 1.5px solid var(--sky);
  border-radius: 50%;
}

.day.between { background: #E9E2F8; }

.day.start,
.day.end {
  color: #FFFFFF;
  font-weight: 600;
  background: radial-gradient(circle closest-side, var(--accent) 95%, transparent 100%);
}

/* Join the start and end circles to the shaded days between them */
.day.start.has-end { background: radial-gradient(circle closest-side, var(--accent) 95%, transparent 100%), linear-gradient(to right, transparent 50%, #E9E2F8 50%); }
.day.end { background: radial-gradient(circle closest-side, var(--accent) 95%, transparent 100%), linear-gradient(to right, #E9E2F8 50%, transparent 50%); }
.day.start.end { background: radial-gradient(circle closest-side, var(--accent) 95%, transparent 100%); }

/* × in the top corner of pages opened on top of others */
.hero-head:has([data-close-page]) { align-items: flex-start; }
[data-close-page] { flex-shrink: 0; }

/* ---------- Date field with its own calendar ---------- */

.date-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  text-align: left;
}

.date-field svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.date-field span:not(.chev) { flex: 1; }
.date-field em { color: var(--muted); font-style: normal; }
.date-field .chev { color: var(--muted); font-size: 11px; }
.date-field.open { border-color: var(--lavender); background: #FFFFFF; box-shadow: 0 0 0 4px var(--accent-soft); }

.calendar.inline { margin-top: 10px; }

.day:disabled { color: var(--muted); opacity: 0.35; }
.calendar-head button:disabled { opacity: 0.35; }

.drawer-icon.mint { background: #E3F6EC; }
.drawer-icon.mint svg { stroke: var(--green); }
.drawer-icon.rose { background: var(--alert-bg); }
.drawer-icon.rose svg { stroke: var(--red); }
.drawer-icon.amber { background: #FFF0D9; }
.drawer-icon.amber svg { stroke: #C98A12; }

/* Locked list items can't be opened but shouldn't look faded */
.row:disabled { opacity: 1; color: inherit; }
#view-lists .hint { margin-top: 14px; text-align: center; }

/* iPhone shrinks month boxes to their text; keep them full width like the other fields */
.field input[type="month"] {
  display: block;
  min-width: 100%;
  line-height: 50px;
  text-align: left;
}
.field input[type="month"]::-webkit-date-and-time-value { text-align: left; }

/* Top clients: the client's own currency under the INR amount */
.bar-value { text-align: right; }
.bar-value small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }

#export-picker { padding-top: 16px; }
#export-run { margin-top: 16px; }

/* ---------- Import ---------- */

.import-step { margin-bottom: 14px; padding-top: 16px; }
.import-step .section-title { margin: 0 0 4px; }
.import-step .hint { margin: 0 0 12px; }

.file-btn { position: relative; display: grid; place-items: center; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; }

#import-notes .hint { margin: 10px 4px 0; }

.import-problems {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--alert-bg);
  color: var(--alert);
  font-size: 14px;
}
.import-problems summary { font-weight: 600; }
.import-problems ul { margin: 8px 0 0; padding-left: 18px; }
.import-problems li + li { margin-top: 4px; }

#import-run { margin-top: 16px; }

/* No zooming: double-tap zoom is turned off here, pinch zoom in app.js */
html { touch-action: manipulation; }

/* ---------- Splash ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(198, 190, 230, 0.7), transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(79, 179, 240, 0.18), transparent 55%),
    var(--page);
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.splash.done { opacity: 0; visibility: hidden; }

.splash-logo {
  width: 88px;
  height: auto;
  overflow: visible;
  animation: splash-settle 0.6s ease-out 1.05s both;
}

/* Each triangle drops into place, bottom first; the purple notches arrive last */
.splash-logo polygon {
  transform-box: fill-box;
  transform-origin: center;
  animation: splash-tri 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}

.splash-name {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
  animation: splash-fade 0.5s ease-out 0.85s both;
}

.splash-name span { color: var(--accent); }

@keyframes splash-tri {
  from { opacity: 0; transform: translateY(-40%) scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes splash-settle {
  50% { transform: scale(1.06); }
}

@keyframes splash-fade {
  from { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-logo polygon,
  .splash-name { animation: none; }
}

/* ---------- Sign-in screen ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(198, 190, 230, 0.7), transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(79, 179, 240, 0.18), transparent 55%),
    var(--page);
}

.gate-logo { width: 64px; height: auto; margin-bottom: 18px; }
.gate h1 { font-size: 24px; font-weight: 700; }
.gate h1 { margin-bottom: 28px; }
.gate h1 span { color: var(--accent); }

.gate-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(320px, 100%);
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.gate-google svg { width: 22px; height: 22px; }
.gate-message { max-width: 320px; margin-top: 16px; color: var(--alert); font-size: 14px; }
.gate[data-state="loading"] .gate-message { color: var(--muted); }
.gate-message:empty { display: none; }

/* Who's signed in, at the bottom of Settings */
.drawer-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 4px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.drawer-account strong { display: block; color: var(--ink); font-weight: 600; word-break: break-all; }
.drawer { display: flex; flex-direction: column; overflow-y: auto; padding-bottom: calc(env(safe-area-inset-bottom) + 20px); }

/* ---------- Switches: the hidden radio buttons must not take up width ---------- */

.segmented label { position: relative; }
.segmented input,
.field .segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }

/* ---------- Slim form fields ---------- */

.field { margin-top: 12px; }
.field > span { margin-bottom: 5px; font-size: 12px; }

.field input,
.field select,
.field textarea,
.date-field {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #E3DDF3;
  border-radius: 12px;
  background-color: #FFFFFF;
  font-size: 16px;
}

.field textarea { min-height: 88px; padding: 10px 14px; }
.field select { padding-right: 36px; background-position: right 14px center; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.date-field.open {
  border-color: var(--lavender);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-suffix span { right: 14px; }
.input-pair { grid-template-columns: 96px 1fr; }
.fixed-currency { height: 44px; padding: 0 14px; border-width: 1px; border-radius: 12px; }
.readout { padding: 10px 14px; border-radius: 12px; }
.field .segmented { padding: 3px; }
.field .segmented span { padding: 8px; font-size: 13px; }
.calendar.inline { margin-top: 8px; padding: 10px; border-radius: 16px; }
.calendar.inline .day { height: 36px; }

/* ---------- New entry panel: slides up and covers 80% of the screen ---------- */

.entry-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.entry-backdrop {
  flex: 1;
  background: rgba(43, 35, 80, 0.35);
  animation: entry-fade 0.3s ease both;
}

.entry-panel {
  height: 80vh;
  height: 80dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px calc(env(safe-area-inset-bottom) + 24px);
  border-radius: 28px 28px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -10px 40px rgba(43, 35, 80, 0.18);
  animation: entry-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.entry-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

/* A small handle at the top, like the other slide-up panels */
.entry-head::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: #DDD7EE;
}

.entry-head h1 { font-size: 18px; font-weight: 600; }
.round-btn.small { width: 36px; height: 36px; box-shadow: none; background: var(--field); }
.round-btn.small svg { width: 18px; height: 18px; }

/* The form sits straight on the white panel */
#entry-form { padding: 0 0 8px; border-radius: 0; background: none; box-shadow: none; }

.entry-sheet.closing .entry-panel { animation: entry-down 0.22s ease-in both; }
.entry-sheet.closing .entry-backdrop { animation: entry-fade 0.22s ease reverse both; }

/* The page behind doesn't scroll while the panel is open */
body.entry-open { overflow: hidden; }

@keyframes entry-up { from { transform: translateY(100%); } }
@keyframes entry-down { to { transform: translateY(100%); } }
@keyframes entry-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .entry-panel, .entry-backdrop { animation: none; }
}
.view.entry-sheet { max-width: none; padding: 0; }
.entry-panel { width: 100%; max-width: 480px; margin: 0 auto; }
#entry-form .segmented.tabs { margin-top: 14px; padding: 3px; }
#entry-form .segmented.tabs span { padding: 8px; font-size: 14px; }

/* ---------- Face ID lock ---------- */

.lock {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(198, 190, 230, 0.7), transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(79, 179, 240, 0.18), transparent 55%),
    var(--page);
}

.lock h1 { margin-bottom: 28px; font-size: 22px; font-weight: 700; }
.lock .gate-google svg { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lock-reset { margin-top: 22px; font-size: 13px; }

/* Nothing behind the lock can be scrolled */
body.app-locked { overflow: hidden; }

button.drawer-item { width: 100%; border: 0; font: inherit; text-align: left; }
.drawer-state { margin-left: auto; color: var(--muted); font-size: 13px; }
.drawer-state + .chev { margin-left: 8px; }
button.drawer-item { color: var(--ink); }

/* The dimming covers the whole screen, behind the panel */
.entry-sheet { justify-content: flex-end; }
.entry-backdrop { position: absolute; inset: 0; flex: none; }
.entry-panel { position: relative; }

/* With the Face ID lock on, the splash waits until the phone is unlocked */
body.lock-first .splash { display: none; }

/* ---------- Growth chart ---------- */

:root {
  --chart-revenue: #7446B0;
  --chart-profit: #2E9BD6;
}

.segmented.mini { padding: 3px; }
.segmented.mini span { padding: 5px 12px; font-size: 12px; }

.chart-card {
  position: relative;
  padding: 16px 14px 12px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0 4px 8px;
  font-size: 13px;
}

.chart-legend small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.legend-item strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-item strong.up { color: var(--green); }
.legend-item strong.down { color: var(--red); }

.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.swatch.revenue { background: var(--chart-revenue); }
.swatch.profit { background: var(--chart-profit); }

.chart-box { position: relative; }
.chart-box svg { display: block; overflow: visible; }
.chart-box .grid { stroke: var(--line); stroke-width: 1; }
.chart-box .grid.zero { stroke: #CFC8E6; }
.chart-box .tick { fill: var(--muted); font-size: 10px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-box .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-box .dot { stroke: #FFFFFF; stroke-width: 2; }
.chart-box .crosshair { stroke: #BDB4DC; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-box .hit { fill: transparent; cursor: pointer; }

.chart-tip {
  position: absolute;
  top: 6px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(43, 35, 80, 0.2);
}

.chart-tip span { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.chart-tip small { opacity: 0.75; }
.chart-tip .swatch { box-shadow: 0 0 0 1.5px #FFFFFF; }

.chart-note { margin: 6px 4px 0; color: var(--muted); font-size: 12px; }

/* Picture at the top of a person's or client's form */
.picture-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.avatar.big { width: 56px; height: 56px; }
.secondary.small { width: auto; height: 36px; margin: 0; padding: 0 16px; font-size: 14px; }

/* ---------- Choice fields and their pill panel ---------- */

.select-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #E3DDF3;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  text-align: left;
}

.select-field span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select-field.empty span { color: var(--muted); }
.select-field svg { flex: none; width: 12px; height: 8px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }

.picker {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 35, 80, 0.35);
  animation: entry-fade 0.25s ease both;
}

.picker-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  max-height: 80dvh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 18px calc(env(safe-area-inset-bottom) + 24px);
  border-radius: 28px 28px 0 0;
  background: #FFFFFF;
  box-shadow: 0 -10px 40px rgba(43, 35, 80, 0.18);
  animation: entry-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.picker-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 18px 18px 12px;
  background: #FFFFFF;
}

.picker-head::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: #DDD7EE;
}

.picker-head h2 { font-size: 17px; font-weight: 600; }

.picker-search {
  width: 100%;
  height: 40px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #E3DDF3;
  border-radius: 999px;
  background: var(--field);
  font-size: 16px;
  -webkit-appearance: none;
}

.picker-options { margin-top: 0; }
.picker-options .chip { padding: 10px 16px; font-size: 15px; }

.picker.closing .picker-panel { animation: entry-down 0.2s ease-in both; }
.picker.closing .picker-backdrop { animation: entry-fade 0.2s ease reverse both; }

/* Templates row at the top of New entry, and the confirm list for recurring entries */
.confirm-list { margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
