:root {
  --ink: #132b27;
  --ink-2: #29443e;
  --muted: #70817c;
  --paper: #f5f7f3;
  --card: #ffffff;
  --line: #dfe6e1;
  --lime: #d9f36a;
  --lime-deep: #b9dc3e;
  --mint: #dff4e8;
  --green: #167458;
  --coral: #ef7c68;
  --amber: #f5c75b;
  --blue: #6d9fe7;
  --shadow: 0 12px 32px rgba(19, 43, 39, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { background: #dfe7e2; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(217, 243, 106, .28), transparent 26%),
    #dfe7e2;
  color: var(--ink);
  font-family: Arial, "Noto Sans Hebrew", "Rubik", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(100%, 460px);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  background: var(--paper);
  box-shadow: 0 0 50px rgba(12, 35, 30, .16);
  overflow-x: hidden;
}

.app-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 20px 8px;
  background: rgba(245, 247, 243, .9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand-lockup { display: flex; align-items: center; gap: 7px; font-weight: 900; letter-spacing: -.5px; }
.brand-lockup svg { width: 27px; height: 27px; fill: var(--ink); stroke: var(--ink); stroke-width: 2; }
.brand-lockup span { font-size: 20px; }

.avatar, .icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.avatar { background: var(--ink); color: white; font-weight: 800; font-size: 16px; }
.icon-button { position: relative; background: white; color: var(--ink); box-shadow: 0 5px 18px rgba(28, 58, 51, .07); }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.soft { background: #eef2ee; box-shadow: none; }
.notification-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); position: absolute; top: 8px; right: 8px; border: 2px solid white; }

#app { padding: 4px 18px 110px; min-height: calc(100dvh - 76px); outline: none; }

.page-enter { animation: pageIn .25s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } }

.greeting { margin: 9px 2px 20px; }
.greeting p { color: var(--muted); margin: 0 0 5px; font-size: 14px; }
.greeting h1 { margin: 0; font-size: 29px; letter-spacing: -1px; line-height: 1.12; }

.hero-card {
  background: var(--ink);
  color: white;
  padding: 22px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(19, 43, 39, .18);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .13;
  inset: -80px auto auto -55px;
}

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-label { color: #c5d2cf; font-size: 13px; margin: 0 0 8px; }
.hero-value { font-size: 31px; font-weight: 900; letter-spacing: -.8px; direction: ltr; text-align: right; }
.trend { color: var(--lime); font-size: 12px; margin-top: 5px; font-weight: 700; }
.hero-ring {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--lime) 0 78%, rgba(255,255,255,.13) 78%);
  position: relative;
}
.hero-ring::after { content: ""; width: 52px; height: 52px; background: var(--ink); border-radius: 50%; position: absolute; }
.hero-ring span { z-index: 1; font-size: 12px; font-weight: 800; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.hero-stat { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stat span { display: block; color: #adbfba; font-size: 11px; margin-bottom: 5px; }
.hero-stat strong { font-size: 16px; direction: ltr; display: block; text-align: right; }

.section { margin-top: 27px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 2px 13px; gap: 16px; }
.section-title { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.section-subtitle { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.text-button { border: 0; background: transparent; color: var(--green); font-weight: 800; font-size: 13px; cursor: pointer; padding: 5px 0; }

.job-list { display: grid; gap: 11px; }
.job-card {
  width: 100%;
  text-align: right;
  border: 1px solid rgba(214, 225, 219, .8);
  background: var(--card);
  border-radius: 22px;
  padding: 17px;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(28, 58, 51, .055);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.job-card:active { transform: scale(.985); }
.job-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-client { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.job-name { margin: 0; font-size: 17px; }
.status-pill, .mini-pill {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
  background: var(--mint);
  color: var(--green);
}
.status-pill.done { background: #edf0ee; color: #667671; }
.status-pill.running { background: var(--lime); color: var(--ink); animation: pulsePill 1.8s infinite; }
@keyframes pulsePill { 50% { box-shadow: 0 0 0 5px rgba(217, 243, 106, .18); } }

.job-meta { display: flex; gap: 12px; align-items: center; margin: 13px 0 14px; color: var(--muted); font-size: 11px; }
.job-meta span { display: flex; gap: 5px; align-items: center; }
.dot { width: 4px; height: 4px; background: #bbc7c2; border-radius: 50%; }
.job-numbers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 13px; border-top: 1px solid #edf1ee; }
.job-number small { color: var(--muted); display: block; font-size: 10px; margin-bottom: 4px; }
.job-number strong { font-size: 13px; direction: ltr; display: block; text-align: right; }
.job-number strong.debt { color: #bb5847; }
.job-card-bottom { display: flex; gap: 9px; align-items: center; margin-top: 14px; }

.start-button, .small-action, .primary-button, .secondary-button {
  border: 0;
  border-radius: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.start-button { flex: 1; background: var(--ink); color: white; height: 40px; font-size: 12px; }
.start-button.running { background: var(--lime); color: var(--ink); }
.start-button svg, .small-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.open-arrow { width: 40px; height: 40px; border: 0; border-radius: 14px; background: #f1f4f1; color: var(--ink); font-size: 20px; }

.add-job-card {
  border: 1.5px dashed #b9c9c2;
  border-radius: 21px;
  padding: 16px;
  width: 100%;
  background: rgba(255,255,255,.45);
  color: var(--ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}
.add-job-card span { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 18px; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-card { background: white; padding: 16px; border-radius: 20px; min-height: 105px; border: 1px solid #e3e9e5; }
.summary-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--green); margin-bottom: 14px; }
.summary-icon.coral { background: #ffebe7; color: #c35a47; }
.summary-icon.amber { background: #fff4d9; color: #9b7120; }
.summary-icon.blue { background: #e8f0fc; color: #4777b9; }
.summary-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.summary-card small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.summary-card strong { font-size: 18px; direction: ltr; display: block; text-align: right; }

.bottom-nav {
  height: calc(78px + env(safe-area-inset-bottom));
  position: fixed;
  bottom: 0;
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 9px env(safe-area-inset-bottom);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid #e4e9e5;
  z-index: 40;
}
.nav-item { border: 0; background: transparent; color: #82918c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 700; cursor: pointer; position: relative; }
.nav-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--ink); }
.nav-item.active::before { content: ""; width: 32px; height: 5px; border-radius: 5px; background: var(--lime); position: absolute; top: -10px; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 7px 1px 20px; }
.page-header h1 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.page-header p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.round-add { width: 44px; height: 44px; border: 0; border-radius: 15px; background: var(--lime); color: var(--ink); font-size: 25px; cursor: pointer; }

.filter-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.filter-chip { border: 1px solid #dce4df; background: white; color: var(--muted); padding: 9px 14px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-chip.active { background: var(--ink); color: white; border-color: var(--ink); }

.accounts-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 67%; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.account-card { scroll-snap-align: start; border-radius: 23px; padding: 17px; min-height: 145px; background: var(--ink); color: white; position: relative; overflow: hidden; }
.account-card:nth-child(2) { background: #436a5f; }
.account-card:nth-child(3) { background: #356fa0; }
.account-card:nth-child(4) { background: #5368a9; }
.account-card:nth-child(5) { background: #6f625a; }
.account-card::after { content: ""; width: 100px; height: 100px; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); left: -30px; bottom: -40px; }
.account-top { display: flex; justify-content: space-between; align-items: center; }
.account-icon { width: 34px; height: 34px; border-radius: 12px; background: rgba(255,255,255,.13); display: grid; place-items: center; }
.account-name { color: #dae4e1; font-size: 12px; }
.account-balance { font-weight: 900; font-size: 24px; direction: ltr; text-align: right; margin-top: 28px; }
.accounts-total { display: flex; justify-content: space-between; align-items: center; background: white; padding: 16px; border-radius: 18px; border: 1px solid #e3e9e5; margin-top: 7px; }
.accounts-total span { color: var(--muted); font-size: 12px; }
.accounts-total strong { font-size: 19px; direction: ltr; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-action { border: 0; background: white; border-radius: 18px; padding: 12px 4px; color: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 18px rgba(28,58,51,.05); }
.quick-action span { width: 36px; height: 36px; border-radius: 13px; background: var(--mint); display: grid; place-items: center; margin: 0 auto 8px; font-size: 18px; }
.quick-action:nth-child(2) span { background: #fff0e8; }
.quick-action:nth-child(3) span { background: #e8f0fc; }
.quick-action:nth-child(4) span { background: #f3edfc; }

.transaction-list { background: white; border-radius: 22px; border: 1px solid #e2e8e4; overflow: hidden; }
.transaction { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 14px; border-bottom: 1px solid #edf1ee; }
.transaction:last-child { border-bottom: 0; }
.transaction-icon { width: 40px; height: 40px; border-radius: 14px; background: var(--mint); color: var(--green); display: grid; place-items: center; font-weight: 900; }
.transaction-icon.out { background: #ffebe7; color: #bd5f4d; }
.transaction-icon.transfer { background: #e8f0fc; color: #4777b9; }
.transaction-title { margin: 0 0 4px; font-weight: 800; font-size: 13px; }
.transaction-meta { margin: 0; color: var(--muted); font-size: 10px; }
.transaction-amount { font-weight: 900; font-size: 13px; direction: ltr; text-align: left; }
.transaction-amount.positive { color: var(--green); }
.transaction-amount.negative { color: #b95a48; }

.report-hero { background: linear-gradient(145deg, #183b34, #102c27); color: white; padding: 21px; border-radius: 25px; }
.report-switch { display: flex; gap: 3px; padding: 3px; background: rgba(255,255,255,.1); border-radius: 12px; width: max-content; }
.report-switch button { border: 0; background: transparent; color: #bdceca; padding: 7px 13px; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.report-switch button.active { background: white; color: var(--ink); }
.report-label { margin: 19px 0 5px; color: #b9cbc6; font-size: 12px; }
.report-value { font-size: 30px; font-weight: 900; direction: ltr; text-align: right; }
.bar-chart { height: 110px; display: flex; gap: 8px; align-items: flex-end; margin-top: 20px; direction: ltr; }
.bar-group { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; position: relative; padding-bottom: 18px; }
.bar { flex: 1; border-radius: 6px 6px 3px 3px; min-height: 5px; background: var(--lime); }
.bar.expense { background: rgba(255,255,255,.25); }
.bar-group label { position: absolute; bottom: 0; width: 100%; text-align: center; color: #aebfbb; font-size: 9px; }
.legend { display: flex; gap: 15px; color: #b8c8c4; font-size: 10px; margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); margin-left: 5px; }
.legend span:last-child::before { background: rgba(255,255,255,.3); }

.kpi-list { display: grid; gap: 9px; }
.kpi-row { background: white; padding: 15px; border-radius: 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #e3e9e5; }
.kpi-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.kpi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.kpi-dot.coral { background: var(--coral); }
.kpi-dot.amber { background: var(--amber); }
.kpi-dot.blue { background: var(--blue); }
.kpi-row strong { direction: ltr; font-size: 15px; }

.back-button { border: 0; width: 42px; height: 42px; border-radius: 15px; background: white; color: var(--ink); font-size: 22px; cursor: pointer; box-shadow: 0 5px 18px rgba(28,58,51,.06); }
.job-detail-head { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; margin: 7px 0 18px; }
.job-detail-head h1 { margin: 0; font-size: 20px; }
.job-detail-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.receipt-toggle { border: 0; border-radius: 12px; padding: 8px 10px; background: #ffebe7; color: #ad4f40; font-weight: 800; font-size: 9px; cursor: pointer; }
.receipt-toggle.on { background: var(--mint); color: var(--green); }

.timer-card { background: var(--ink); color: white; padding: 22px; border-radius: 27px; text-align: center; position: relative; overflow: hidden; }
.timer-card::before { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(217,243,106,.16); border-radius: 50%; top: -100px; right: -70px; }
.timer-state { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); padding: 6px 10px; border-radius: 999px; color: #c5d2ce; font-size: 10px; font-weight: 700; }
.timer-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.timer-state.running i { background: var(--lime); box-shadow: 0 0 0 4px rgba(217,243,106,.15); }
.timer-value { font-size: 43px; font-weight: 800; letter-spacing: 2px; direction: ltr; margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.timer-caption { color: #aec0bc; font-size: 11px; }
.timer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.timer-actions button { height: 46px; border: 0; border-radius: 15px; font-weight: 900; cursor: pointer; }
.timer-primary { background: var(--lime); color: var(--ink); }
.timer-secondary { background: rgba(255,255,255,.1); color: white; }

.job-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 11px; }
.job-kpi { background: white; border: 1px solid #e1e8e3; padding: 13px 10px; border-radius: 17px; }
.job-kpi span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 5px; }
.job-kpi strong { font-size: 13px; direction: ltr; display: block; text-align: right; }
.job-kpi strong.good { color: var(--green); }
.job-kpi strong.bad { color: #bb5847; }

.detail-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.detail-action { border: 0; border-radius: 17px; background: white; color: var(--ink); padding: 13px 4px; font-weight: 800; font-size: 10px; cursor: pointer; border: 1px solid #e2e8e4; }
.detail-action b { width: 30px; height: 30px; display: grid; place-items: center; margin: 0 auto 7px; border-radius: 11px; background: var(--mint); font-size: 16px; }

.day-list { background: white; border: 1px solid #e2e8e4; border-radius: 21px; overflow: hidden; }
.day-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid #edf1ee; }
.day-row:last-child { border: 0; }
.day-date { font-weight: 800; font-size: 12px; }
.day-hours { color: var(--muted); font-size: 11px; direction: ltr; }
.day-edit { border: 0; background: #f0f3f1; width: 29px; height: 29px; border-radius: 10px; cursor: pointer; }

.empty-state { text-align: center; padding: 35px 20px; background: white; border-radius: 22px; border: 1px dashed #cad6d0; color: var(--muted); }
.empty-state span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--mint); margin: 0 auto 12px; font-size: 24px; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }
.empty-state p { margin: 0; font-size: 12px; }

.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(8, 25, 21, .45); backdrop-filter: blur(3px); }
.sheet {
  position: fixed;
  z-index: 80;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 460px);
  max-height: 91dvh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  padding: 9px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 60px rgba(10, 34, 28, .25);
  animation: sheetUp .28s ease both;
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } }
.sheet-handle { width: 42px; height: 5px; background: #cdd6d1; border-radius: 5px; margin: 0 auto 15px; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.sheet-header h2 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.5px; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 900; margin: 0; letter-spacing: .2px; }

.form-grid { display: grid; gap: 13px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 11px; font-weight: 800; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #dbe3de;
  border-radius: 15px;
  background: white;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
}
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,116,88,.09); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #e9eeea; padding: 4px; border-radius: 14px; }
.segmented label { text-align: center; padding: 10px 3px; border-radius: 11px; cursor: pointer; font-size: 10px; font-weight: 800; color: var(--muted); }
.segmented input { display: none; }
.segmented label:has(input:checked) { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(22,44,38,.08); }
.check-row { display: flex; align-items: center; gap: 9px; background: white; border: 1px solid #dfe6e1; padding: 13px; border-radius: 15px; font-size: 11px; font-weight: 700; }
.check-row input { accent-color: var(--green); width: 17px; height: 17px; }
.form-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 6px; }
.primary-button { height: 50px; background: var(--ink); color: white; padding: 0 24px; }
.secondary-button { height: 50px; background: white; color: var(--ink); padding: 0 18px; border: 1px solid #dce4df; }

.profile-card { background: var(--ink); color: white; border-radius: 23px; padding: 18px; display: flex; align-items: center; gap: 13px; }
.profile-card .avatar { background: var(--lime); color: var(--ink); width: 54px; height: 54px; }
.profile-card h3 { margin: 0 0 4px; }
.profile-card p { margin: 0; color: #b7c8c3; font-size: 11px; }
.settings-list { margin-top: 13px; background: white; border: 1px solid #e0e7e2; border-radius: 20px; overflow: hidden; }
.settings-row { width: 100%; border: 0; background: white; display: flex; justify-content: space-between; align-items: center; padding: 15px; color: var(--ink); border-bottom: 1px solid #edf1ee; cursor: pointer; text-align: right; }
.settings-row:last-child { border: 0; }
.settings-row span { font-size: 12px; font-weight: 800; }
.settings-row small { color: var(--muted); font-size: 10px; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 20px);
  width: max-content;
  max-width: calc(100% - 40px);
  border-radius: 15px;
  padding: 12px 17px;
  background: #0e2722;
  color: white;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff9df; border: 1px solid #f3e5a8; color: #755d1e; border-radius: 14px; padding: 10px 12px; font-size: 10px; margin-bottom: 14px; }
.demo-note button { border: 0; background: transparent; color: #755d1e; font-weight: 900; cursor: pointer; text-decoration: underline; }

.first-section { margin-top: 12px; }
.business-summary-grid { margin-top: 10px; }
.round-add.mini { width: 36px; height: 36px; border-radius: 12px; font-size: 21px; }

.balance-overview {
  background: white;
  border: 1px solid #dfe7e2;
  border-radius: 22px;
  padding: 5px 16px 12px;
  box-shadow: 0 8px 24px rgba(28, 58, 51, .055);
}
.balance-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #edf1ee; }
.balance-line span { color: var(--muted); font-size: 12px; font-weight: 700; }
.balance-line strong { direction: ltr; font-size: 19px; }
.balance-line.projected strong { color: var(--green); font-size: 22px; }
.balance-note { padding-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.personal-entry-card {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 20px;
  padding: 14px;
  background: var(--mint);
  color: var(--ink);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  text-align: right;
  cursor: pointer;
}
.personal-entry-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: white; color: var(--green); font-size: 20px; }
.personal-entry-card b, .personal-entry-card small { display: block; }
.personal-entry-card b { font-size: 13px; margin-bottom: 4px; }
.personal-entry-card small { color: #59746c; font-size: 10px; }
.personal-entry-card i { font-style: normal; font-size: 22px; }

.personal-head { grid-template-columns: auto 1fr auto; }
.personal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.personal-actions button { border: 1px solid #dfe7e2; background: white; border-radius: 20px; padding: 15px 10px; text-align: right; color: var(--ink); cursor: pointer; }
.personal-actions span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); margin-bottom: 12px; font-size: 18px; }
.personal-actions button:last-child span { background: var(--mint); color: var(--green); }
.personal-actions b, .personal-actions small { display: block; }
.personal-actions b { font-size: 12px; margin-bottom: 5px; }
.personal-actions small { color: var(--muted); font-size: 9px; line-height: 1.4; }

.personal-month-card { margin-top: 12px; background: var(--ink); color: white; border-radius: 24px; padding: 16px; }
.month-picker { display: flex; align-items: center; justify-content: space-between; }
.month-picker button { width: 34px; height: 34px; border: 0; border-radius: 11px; background: rgba(255,255,255,.1); color: white; cursor: pointer; font-size: 20px; }
.month-picker strong { font-size: 13px; }
.month-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); }
.month-numbers span { display: block; color: #aebfbb; font-size: 8px; line-height: 1.35; min-height: 22px; }
.month-numbers strong { display: block; direction: ltr; text-align: right; font-size: 12px; margin-top: 5px; }

.obligation-list { background: white; border: 1px solid #e0e7e2; border-radius: 22px; overflow: hidden; }
.obligation-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 13px; border-bottom: 1px solid #edf1ee; }
.obligation-row:last-child { border-bottom: 0; }
.obligation-date { width: 40px; height: 44px; border-radius: 13px; background: #f0f4f1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.obligation-date b { font-size: 14px; line-height: 1; }
.obligation-date span { font-size: 8px; color: var(--muted); margin-top: 3px; }
.obligation-main strong, .obligation-main small, .obligation-side strong { display: block; }
.obligation-main strong { font-size: 12px; margin-bottom: 4px; }
.obligation-main small { color: var(--muted); font-size: 9px; }
.obligation-side { text-align: left; }
.obligation-side strong { font-size: 12px; direction: ltr; }
.due-pill { display: inline-block; margin-top: 5px; padding: 4px 7px; border-radius: 999px; background: #edf1ee; color: var(--muted); font-size: 8px; font-weight: 800; white-space: nowrap; }
.due-pill.overdue { background: #ffebe7; color: #ad4f40; }
.due-pill.today { background: #fff0c7; color: #8e6518; }
.due-pill.paid { background: var(--mint); color: var(--green); }
.paid-button { grid-column: 2 / -1; border: 0; border-radius: 11px; min-height: 33px; background: var(--ink); color: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.paid-button.undo { background: #edf1ee; color: var(--ink); }
.obligation-list.compact .obligation-row { padding: 11px; }
.personal-more { width: 100%; margin-top: 8px; min-height: 42px; border: 1px solid #dbe4de; border-radius: 14px; background: white; color: var(--green); font-weight: 800; cursor: pointer; }

.recurring-list { display: grid; gap: 8px; }
.recurring-row { background: white; border: 1px solid #e0e7e2; border-radius: 18px; padding: 13px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.recurring-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 17px; }
.recurring-row strong, .recurring-row small { display: block; }
.recurring-row strong { font-size: 12px; margin-bottom: 4px; }
.recurring-row small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.recurring-row button { border: 0; border-radius: 10px; padding: 8px; background: #f0f3f1; color: var(--ink); font-size: 9px; font-weight: 800; cursor: pointer; }

.payment-confirmation { background: var(--ink); color: white; border-radius: 20px; padding: 17px; }
.payment-confirmation span, .payment-confirmation strong, .payment-confirmation small { display: block; }
.payment-confirmation span { color: #c2d0cc; font-size: 11px; }
.payment-confirmation strong { direction: ltr; text-align: right; font-size: 26px; margin: 8px 0; }
.payment-confirmation small { color: #a8bbb6; font-size: 9px; }

.manage-section { margin-bottom: 22px; }
.manage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.manage-head h3 { margin: 0; font-size: 14px; }
.manage-head button { border: 0; background: var(--lime); color: var(--ink); padding: 7px 10px; border-radius: 10px; font-size: 9px; font-weight: 800; cursor: pointer; }
.manage-list { border: 1px solid #e0e7e2; border-radius: 18px; background: white; overflow: hidden; }
.manage-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid #edf1ee; }
.manage-row:last-child { border: 0; }
.manage-row.inactive { opacity: .55; }
.manage-row strong, .manage-row small { display: block; }
.manage-row strong { font-size: 11px; margin-bottom: 3px; }
.manage-row small { color: var(--muted); font-size: 8px; }
.manage-row > div:last-child { display: flex; gap: 4px; align-items: center; }
.manage-row button { border: 0; background: #edf1ee; border-radius: 8px; padding: 6px; color: var(--ink); font-size: 8px; cursor: pointer; }
.manage-row button.danger { background: #ffebe7; color: #ad4f40; }

.inline-option-dialog { position: absolute; inset: 0; z-index: 5; background: rgba(14,39,34,.4); display: grid; align-items: end; border-radius: 28px 28px 0 0; }
.inline-option-card { background: white; padding: 18px; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 35px rgba(14,39,34,.2); }
.inline-option-card p { font-weight: 800; margin: 0 0 11px; font-size: 13px; }
.inline-option-card input { width: 100%; height: 46px; border: 1px solid #dbe3de; border-radius: 14px; padding: 10px; }
.inline-option-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.inline-option-card button { height: 42px; border: 0; border-radius: 12px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; }
.inline-option-card button:last-child { background: #edf1ee; color: var(--ink); }

.alert-list { display: grid; gap: 9px; }
.internal-alert { background: white; border: 1px solid #e0e7e2; border-radius: 18px; padding: 13px; }
.internal-alert > div:first-child { display: flex; align-items: center; gap: 10px; }
.internal-alert > div:first-child b { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fff0c7; color: #8e6518; }
.internal-alert span { font-size: 11px; font-weight: 700; line-height: 1.5; }
.internal-alert > button, .alert-actions button { border: 0; border-radius: 11px; padding: 9px 12px; background: var(--ink); color: white; font-size: 9px; font-weight: 800; cursor: pointer; margin-top: 10px; }
.alert-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.alert-actions button { margin-top: 0; }
.alert-actions button:last-child { background: #edf1ee; color: var(--ink); }

@media (max-width: 370px) {
  .month-numbers { grid-template-columns: 1fr; }
  .month-numbers span { min-height: auto; }
  .obligation-row { grid-template-columns: 36px 1fr; }
  .obligation-side { grid-column: 2; text-align: right; }
}

@media (min-width: 720px) {
  body { padding: 22px 0; }
  .app-shell { min-height: calc(100dvh - 44px); max-height: calc(100dvh - 44px); border-radius: 32px; overflow-y: auto; scrollbar-width: none; }
  .app-shell::-webkit-scrollbar { display: none; }
  .app-header { border-radius: 32px 32px 0 0; }
  .bottom-nav { bottom: 22px; border-radius: 0 0 32px 32px; }
  .sheet { bottom: 22px; border-radius: 28px; max-height: calc(100dvh - 44px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.backup-drive-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface-soft); display: grid; gap: 8px; }
.backup-drive-card p, .sheet-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.muted-label { color: var(--muted); font-size: 12px; }
.backup-actions, .pdf-actions { display: grid; gap: 10px; margin-top: 14px; }
.backup-cloud-list { margin-top: 16px; display: grid; gap: 8px; }
.backup-cloud-list h3 { margin: 0; font-size: 15px; }
.backup-file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.backup-file-row span { display: grid; gap: 3px; font-size: 13px; } .backup-file-row small { color: var(--muted); font-size: 11px; }
.file-button { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pdf-preview { background: #fff; color: #17202a; border-radius: 12px; padding: 20px; box-shadow: 0 8px 25px #1623351c; font-family: Arial, sans-serif; }
.pdf-preview header { display: flex; justify-content: space-between; gap: 12px; border-bottom: 3px solid #278f82; padding-bottom: 14px; }
.pdf-preview h1 { margin: 4px 0; font-size: 22px; } .pdf-preview h2 { color: #278f82; font-size: 15px; margin: 18px 0 8px; }
.pdf-kicker { color: #278f82; font-weight: 700; font-size: 12px; } .pdf-date { color: #697786; font-size: 11px; }
.pdf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; font-size: 12px; } .pdf-grid span { background: #f3f7f6; padding: 9px; border-radius: 8px; }
.pdf-grid b { display: block; margin-top: 3px; } .pdf-preview table { width: 100%; border-collapse: collapse; font-size: 11px; } .pdf-preview th, .pdf-preview td { border-bottom: 1px solid #dce6e3; padding: 7px 4px; text-align: right; }
.pdf-total { display: flex; justify-content: space-between; margin-top: 14px; padding: 10px; background: #e7f5f2; border-radius: 8px; } .pdf-preview footer { display: flex; gap: 18px; align-items: end; margin-top: 30px; flex-wrap: wrap; } .signature-line { width: 140px; border-top: 1px solid #65747d; padding-top: 5px; font-size: 11px; } .pdf-preview footer small { width: 100%; color: #697786; }
.pdf-print-page { background: #fff; padding: 28px; } .pdf-print-page .pdf-preview { box-shadow: none; max-width: 760px; margin: auto; }
@media print { .pdf-print-page { padding: 0; } .pdf-print-page .pdf-preview { max-width: none; } }

.device-lock { position:fixed;inset:0;z-index:99999;background:#f4f6fa;overflow:auto;display:grid;place-items:center;padding:24px; }
.device-lock[hidden] { display:none; }
.lock-card { width:min(100%,400px);background:white;border-radius:22px;padding:28px;display:grid;gap:18px;color:#192236;box-shadow:0 16px 60px #15213025; }
.lock-card form { display:grid;gap:16px; }
body:has(.device-lock:not([hidden])) .app-shell { visibility:hidden; }
