/* ============================================================
   Ecashier — stylesheet
   Light theme. Series colours come from a validated data-viz
   palette; green/red are reserved for financial status only.
   ============================================================ */

:root {
  /* surfaces & ink */
  --surface:      #ffffff;
  --surface-2:    #fafaf9;
  --plane:        #f4f5f4;
  --ink:          #0b0b0b;
  --ink-2:        #52514e;
  --ink-muted:    #898781;
  --grid:         #e1e0d9;
  --axis:         #c3c2b7;
  --border:       rgba(11, 11, 11, .10);
  --border-strong:rgba(11, 11, 11, .16);

  /* categorical series (fixed order — never cycled) */
  --s1: #2a78d6;   /* revenue  */
  --s2: #eb6834;   /* expenses */
  --s3: #1baf7a;   /* profit   */
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --s7: #4a3aa7;
  --s8: #e34948;

  /* reserved status palette */
  --good:      #0ca30c;
  --good-ink:  #006300;
  --good-bg:   #e8f6e8;
  --warning:   #fab219;
  --warn-ink:  #7a5200;
  --warn-bg:   #fff4dc;
  --serious:   #ec835a;
  --critical:  #d03b3b;
  --crit-ink:  #a32323;
  --crit-bg:   #fdecec;
  --info-bg:   #eaf2fd;
  --info-ink:  #17518f;

  --brand:       #2a78d6;
  --brand-dark:  #1c5cab;
  --brand-soft:  #eaf2fd;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(11,11,11,.05), 0 1px 3px rgba(11,11,11,.04);
  --shadow-2: 0 4px 14px rgba(11,11,11,.07), 0 1px 3px rgba(11,11,11,.05);
  --shadow-3: 0 18px 48px rgba(11,11,11,.16);
  --sidebar-w: 248px;
  /* Inter has no Taka sign (৳); Noto Sans Bengali supplies that one glyph,
     with the system Bengali fonts behind it if it cannot be fetched */
  --font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", "Nirmala UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--plane);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.011em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #cde2fb; }

/* ---------- utility ---------- */
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--good-ink); }
.neg { color: var(--crit-ink); }
.muted { color: var(--ink-muted); }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.right { text-align: right; }

/* ============================================================
   Buttons, inputs, chips
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background .14s, border-color .14s, box-shadow .14s, transform .06s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--surface-2); border-color: var(--axis); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(42,120,214,.3); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(11,11,11,.04); }
.btn--danger { color: var(--crit-ink); border-color: rgba(208,59,59,.35); background: transparent; }
.btn--danger:hover { background: var(--crit-bg); border-color: var(--critical); }
.btn--warn { color: var(--warn-ink); border-color: rgba(250,178,25,.5); background: #fffaf0; }
.btn--warn:hover { background: var(--warn-bg); }
.btn--sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--block { width: 100%; height: 42px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.linkBtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand); font-size: 13px; font-weight: 600;
}
.linkBtn:hover { text-decoration: underline; }

.iconBtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2);
}
.iconBtn svg { width: 19px; height: 19px; }
.iconBtn:hover { background: rgba(11,11,11,.05); color: var(--ink); }

.input {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 13.5px;
  transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: var(--ink-muted); }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,120,214,.15); }
.input--sel {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 15px;
}
.input--bare { border: 0; background: transparent; height: 34px; padding: 0; }
.input--bare:focus { box-shadow: none; }
.input--otp { font-size: 22px; font-weight: 700; letter-spacing: .5em; text-align: center; text-indent: .5em; font-variant-numeric: tabular-nums; }
textarea.input { height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.55; resize: vertical; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field__help { font-size: 11.5px; color: var(--ink-muted); line-height: 1.4; }
.formError {
  margin: 0; font-size: 12.5px; font-weight: 500; color: var(--crit-ink);
  background: var(--crit-bg); border-radius: 8px; padding: 8px 10px;
}
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.check--pill { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); height: 38px; padding: 0 12px; background: var(--surface); }

.segmented {
  display: inline-flex; gap: 2px; padding: 3px;
  background: rgba(11,11,11,.045); border-radius: 11px;
}
.segmented__btn {
  border: 0; background: transparent; cursor: pointer; border-radius: 8px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: background .14s, color .14s;
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.segmented--sm .segmented__btn { padding: 6px 11px; font-size: 12.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; transition: all .14s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chips--edit .chip { cursor: default; display: inline-flex; align-items: center; gap: 7px; }
.chips--edit .chip:hover { border-color: var(--border-strong); color: var(--ink-2); background: var(--surface); }
.chip__x { border: 0; background: none; cursor: pointer; color: var(--ink-muted); font-size: 15px; line-height: 1; padding: 0; }
.chip__x:hover { color: var(--critical); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge--paid    { background: var(--good-bg); color: var(--good-ink); }
.badge--pending { background: var(--info-bg); color: var(--info-ink); }
.badge--overdue { background: var(--crit-bg); color: var(--crit-ink); }
.badge--warn    { background: var(--warn-bg); color: var(--warn-ink); }
.badge--neutral { background: rgba(11,11,11,.05); color: var(--ink-2); }
.badge--plain::before { display: none; }

/* ============================================================
   Auth
   ============================================================ */
.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth__brand {
  position: relative; display: flex; align-items: center; padding: 56px;
  background: linear-gradient(155deg, #10305c 0%, #1c5cab 48%, #2a78d6 100%);
  color: #fff; overflow: hidden;
}
.auth__brand::after {
  content: ""; position: absolute; inset: auto -140px -220px auto;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,175,122,.45), transparent 62%);
}
.auth__brandInner { position: relative; z-index: 1; max-width: 480px; }
.auth__headline { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.14; margin: 34px 0 14px; letter-spacing: -.025em; }
.auth__sub { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.6; max-width: 44ch; }
.auth__points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.auth__points li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: rgba(255,255,255,.94); }
.tick {
  flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}

.auth__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; background: var(--plane); }
.auth__card {
  width: 100%; max-width: 404px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-2);
}
.auth__cardLogo { display: none; margin-bottom: 18px; }
.auth__card .segmented { display: flex; width: 100%; margin-bottom: 22px; }
.auth__card .segmented__btn { flex: 1; }
.authForm { display: flex; flex-direction: column; gap: 14px; }
.authForm__demo {
  padding: 12px 14px; border-radius: 11px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
}
.authForm__notice {
  padding: 10px 13px; border-radius: 10px; background: var(--warn-bg);
  border: 1px solid rgba(250,178,25,.35); font-size: 12.5px; line-height: 1.55; color: var(--warn-ink); margin-top: -2px;
}
.authForm__title { font-size: 19px; }
.authForm__hint { font-size: 13px; color: var(--ink-muted); margin-top: -10px; }
.authForm__row { display: flex; align-items: center; justify-content: space-between; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; }
.logo__mark {
  display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, #2a78d6, #1baf7a); color: #fff;
}
.logo__mark svg { width: 60%; height: 60%; }
.logo--lg { font-size: 21px; }
.logo--lg .logo__mark { width: 40px; height: 40px; border-radius: 12px; }
.logo--sm { font-size: 17px; }
.logo--sm .logo__mark { width: 30px; height: 30px; border-radius: 9px; }

/* ============================================================
   App shell
   ============================================================ */
.app { display: block; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: var(--sidebar-w); display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
}
.sidebar__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 18px; flex: none; }
.sidebar__close { display: none; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav__label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); padding: 16px 10px 6px; }
.nav__item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-align: left; transition: background .13s, color .13s;
}
.nav__item svg { width: 18px; height: 18px; flex: none; stroke-width: 1.9; }
.nav__item:hover { background: rgba(11,11,11,.045); color: var(--ink); }
.nav__item.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav__item.is-active svg { stroke-width: 2.2; }
.nav__count {
  margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; background: var(--crit-bg); color: var(--crit-ink); font-variant-numeric: tabular-nums;
}
.sidebar__foot { padding: 12px; border-top: 1px solid var(--border); flex: none; }
.healthMini {
  border-radius: var(--radius-sm); padding: 12px; background: var(--surface-2);
  border: 1px solid var(--border);
}
.healthMini__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.healthMini__label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.healthMini__score { font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.healthMini__note { font-size: 11.5px; color: var(--ink-muted); margin-top: 7px; line-height: 1.35; }
.meter { height: 6px; border-radius: 999px; background: rgba(11,11,11,.08); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; transition: width .5s ease; }

.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(11,11,11,.42); backdrop-filter: blur(1px); }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 24px; flex: none;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__menu { display: none; }
.topbar__titles { min-width: 0; }
.topbar__title { font-size: 16px; }
.topbar__sub { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search { position: relative; margin-left: auto; width: min(340px, 32vw); }
.search__icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); pointer-events: none; }
.search__input {
  width: 100%; height: 38px; padding: 0 12px 0 34px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: 13px;
}
.search__input:focus { outline: 0; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,120,214,.15); }
.search__results {
  position: absolute; top: 44px; right: 0; width: min(400px, 86vw); max-height: 380px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-3); padding: 6px; z-index: 50;
}
.sres { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.sres:hover { background: var(--surface-2); }
.sres__k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); width: 62px; flex: none; }
.sres__t { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sres__a { margin-left: auto; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sres__empty { padding: 18px; text-align: center; color: var(--ink-muted); font-size: 13px; }

.topbarActions { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar__user { position: relative; flex: none; }
.userChip { display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border-radius: 999px; cursor: pointer; }
.userChip:hover { background: rgba(11,11,11,.045); }
.userChip__text { display: flex; flex-direction: column; line-height: 1.25; }
.userChip__text strong { font-size: 13px; font-weight: 600; }
.userChip__text small { font-size: 11px; color: var(--ink-muted); }
.userChip__caret { width: 15px; height: 15px; color: var(--ink-muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #2a78d6, #1baf7a);
}
.menu {
  position: absolute; right: 0; top: 46px; min-width: 190px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-3); padding: 6px;
}
.menu__item { display: block; width: 100%; text-align: left; padding: 9px 11px; border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.menu__item:hover { background: var(--surface-2); }
.menu__item--danger { color: var(--crit-ink); }
.menu__item--danger:hover { background: var(--crit-bg); }

.pages { flex: 1; padding: 24px; }
.page { display: flex; flex-direction: column; gap: 16px; animation: fade .22s ease; }
.calculatorPage { gap: 8px; overflow: hidden; }
.expensesPage { gap: 10px; height: auto; overflow: visible; }
.dashboardPage { gap: 18px; }
.dashboardPage .kpiGrid { gap: 14px; }
.dashboardPage > .grid { gap: 18px; }
.dashboardPage > .grid > .card { height: 100%; box-sizing: border-box; }
.dashboardPage .card--pad { padding: 20px; }
.settingsPage > .grid { align-items: stretch; }
.settingsPage > .grid > .card, .settingsPage > .grid > .stack { height: 100%; box-sizing: border-box; }
.settingsPage > .grid > .stack { display: flex; flex-direction: column; }
.settingsPage > .grid > .stack > .card { height: auto; flex: 1; box-sizing: border-box; }
.backupCard { margin-top: 12px; }
.backupCard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.pageHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pageHead__title { font-size: 22px; letter-spacing: -.02em; }
.pageHead__sub { font-size: 13px; color: var(--ink-muted); margin-top: 3px; }
.pageHead__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   Layout grids & cards
   ============================================================ */
.grid { display: grid; gap: 16px; align-items: start; }
.grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.grid--1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.calculatorLayout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; column-gap: 16px; row-gap: 0; }
.calculatorLayout > .card { min-height: 100%; }
.calculatorLayout > .calcGuide { grid-column: 1 / -1; min-height: 0; }
.calcMetrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.calcMetric { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.calcMetric__label { color: var(--ink-muted); font-size: 11.5px; font-weight: 600; }
.calcMetric strong { color: var(--ink); font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calcMetric small { color: var(--ink-muted); font-size: 11px; line-height: 1.35; }
.calcMetric--profit { border-color: rgba(27, 175, 122, .35); background: var(--good-bg); }
.calcMetric--profit strong, .calcMetric--total strong { color: var(--good-ink); }
.calcMetric--total { border-color: rgba(42, 120, 214, .35); background: var(--brand-soft); }
.expensesPage #expStats { gap: 10px; }
.expensesLayout { flex: 1; min-height: 0; gap: 12px; }
.expensesLayout > .card { min-height: 0; overflow: hidden; }
.expensesLayout > .card:first-child { display: flex; flex-direction: column; }
.expensesLayout > .card:first-child .tableWrap { flex: 1; overflow-x: auto; }
.expensesLayout .stack { gap: 12px; min-height: 0; align-self: stretch; }
.expensesLayout .stack > .card { min-height: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.expensesLayout .chart--donut { height: 170px; flex: none; }
.expensesLayout .donutLegend { margin-top: 8px; overflow: hidden; }
.expensesPage .filterBar { background: var(--surface-2); }
.expensesPage .table th { background: var(--surface-2); }
.kpiGrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.kpiGrid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpiGrid--3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-1); min-width: 0;
}
.card--pad { padding: 18px; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.card__head--pad { padding: 18px 18px 0; margin-bottom: 12px; }
.card__title { font-size: 15px; }
.card__sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; line-height: 1.45; }

/* KPI card */
.kpi { position: relative; padding: 16px 17px; overflow: hidden; }
.kpi__top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.kpi__icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.kpi__icon svg { width: 15px; height: 15px; stroke-width: 2.1; }
.kpi__label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.kpi__value { font-size: 25px; font-weight: 700; letter-spacing: -.028em; line-height: 1.15; }
.kpi__foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; }
.kpi__delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi__delta svg { width: 13px; height: 13px; }
.kpi__note { color: var(--ink-muted); }
.kpi__spark { position: absolute; right: 0; bottom: 0; width: 96px; height: 40px; opacity: .9; pointer-events: none; }
.kpi--flat .kpi__value { font-size: 22px; }

/* charts */
.chart { width: 100%; height: 260px; position: relative; }
.chart--tall { height: 300px; }
.chart--donut { height: 230px; }
.chart--short { height: 190px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chartTip {
  position: absolute; z-index: 20; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: var(--shadow-2); padding: 9px 11px; min-width: 130px;
  font-size: 12px; opacity: 0; transition: opacity .1s;
}
.chartTip.is-on { opacity: 1; }
.chartTip__t { font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.chartTip__r { display: flex; align-items: center; gap: 7px; justify-content: space-between; margin-top: 3px; }
.chartTip__k { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.chartTip__sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.chartTip__v { font-weight: 700; font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: 6px; }
.legend__item {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  border: 1px solid transparent; border-radius: 999px; padding: 3px 9px 3px 7px; background: none;
}
.legend__item:hover { background: rgba(11,11,11,.04); }
.legend__item.is-off { opacity: .42; }
.legend__sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* donut legend */
.donutLegend { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.donutLegend__row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.donutLegend__sw { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.donutLegend__n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donutLegend__v { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.donutLegend__p { width: 42px; text-align: right; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ============================================================
   Tables
   ============================================================ */
.tableWrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
  background: var(--surface); position: sticky; top: 0;
}
.table th.right, .table td.right { text-align: right; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table td.num, .table th.num { font-variant-numeric: tabular-nums; }
.table__strong { font-weight: 600; }
.table__sub { font-size: 11.5px; color: var(--ink-muted); margin-top: 1px; }
.table__empty { padding: 46px 20px; text-align: center; color: var(--ink-muted); }
.table__empty strong { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 5px; }
.tableFoot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--ink-muted);
}
.rowActions { display: flex; gap: 4px; justify-content: flex-end; }
.rowBtn {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: transparent;
  cursor: pointer; color: var(--ink-muted); display: grid; place-items: center;
}
.rowBtn svg { width: 15px; height: 15px; stroke-width: 2; }
.rowBtn:hover { background: rgba(11,11,11,.06); color: var(--ink); }
.rowBtn--danger:hover { background: var(--crit-bg); color: var(--crit-ink); }
.pager { display: flex; align-items: center; gap: 6px; }
.avatarSm {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: .02em;
}
.cellUser { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* ============================================================
   Insights, anomalies, assumptions
   ============================================================ */
.insightList { display: flex; flex-direction: column; gap: 10px; }
.insight {
  display: flex; gap: 11px; padding: 12px 13px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.insight__icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 13px; }
.insight__icon svg { width: 15px; height: 15px; stroke-width: 2.2; }
.insight__body { min-width: 0; }
.insight__t { font-size: 13px; font-weight: 600; line-height: 1.4; }
.insight__d { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.insight--good { background: var(--good-bg); border-color: rgba(12,163,12,.22); }
.insight--good .insight__icon { background: rgba(12,163,12,.16); color: var(--good-ink); }
.insight--warn { background: var(--warn-bg); border-color: rgba(250,178,25,.35); }
.insight--warn .insight__icon { background: rgba(250,178,25,.28); color: var(--warn-ink); }
.insight--bad { background: var(--crit-bg); border-color: rgba(208,59,59,.22); }
.insight--bad .insight__icon { background: rgba(208,59,59,.14); color: var(--crit-ink); }
.insight--info { background: var(--info-bg); border-color: rgba(42,120,214,.2); }
.insight--info .insight__icon { background: rgba(42,120,214,.15); color: var(--info-ink); }

.noteList { display: flex; flex-direction: column; gap: 8px; }
.noteRow { display: grid; grid-template-columns: 12px minmax(130px, .45fr) minmax(0, 1fr) 80px auto; align-items: center; gap: 12px; min-height: 56px; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--info-ink); border-radius: 8px; }
.noteRow--green { border-left-color: var(--good-ink); }
.noteRow--yellow { border-left-color: var(--warn-ink); }
.noteRow--pink { border-left-color: var(--crit-ink); }
.noteRow__pin { color: var(--warn-ink); font-size: 14px; }
.noteRow__title, .noteRow__body, .noteRow__date { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noteRow__title { font-weight: 700; color: var(--ink); }
.noteRow__body { color: var(--ink-2); font-size: 13px; }
.noteRow__date { color: var(--ink-muted); font-size: 12px; }
@media (max-width: 720px) {
  .noteRow { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .noteRow__body, .noteRow__date { display: none; }
}

.anomalyList { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.anomaly { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border-radius: 10px; background: var(--warn-bg); border: 1px solid rgba(250,178,25,.35); }
.anomaly__n { font-size: 12.5px; font-weight: 600; }
.anomaly__d { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.anomaly__v { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--warn-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.emptyNote { padding: 22px 12px; text-align: center; color: var(--ink-muted); font-size: 12.5px; }

.assumptions { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.assumption { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; }
.assumption__b { width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.assumption strong { font-variant-numeric: tabular-nums; }

.healthCard { display: flex; flex-direction: column; align-items: center; text-align: center; }
.healthBreak { width: 100%; display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.healthBreak__row { display: grid; grid-template-columns: 1fr 54px; gap: 10px; align-items: center; font-size: 12px; }
.healthBreak__n { color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.healthBreak__v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.healthBreak__bar { grid-column: 1 / -1; margin-top: -4px; }

/* ============================================================
   Sliders (what-if)
   ============================================================ */
.sliders { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.slider__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.slider__label { font-size: 13px; font-weight: 600; }
.slider__hint { font-size: 11.5px; color: var(--ink-muted); margin-top: 1px; }
.slider__val { display: flex; align-items: center; gap: 4px; }
.slider__val input { width: 62px; height: 30px; text-align: right; padding: 0 7px; font-variant-numeric: tabular-nums; font-weight: 600; }
.slider__unit { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: none; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: rgba(11,11,11,.1); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: rgba(11,11,11,.1); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%; margin-top: -6px;
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(11,11,11,.25);
}
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; border: 2px solid #fff;
  background: var(--brand); box-shadow: 0 1px 4px rgba(11,11,11,.25);
}
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brand); outline-offset: 2px; }
.slider__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.switchRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: rgba(11,11,11,.16); transition: background .16s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,11,11,.28); transition: transform .16s; }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.presetRow { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.presetRow__label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); display: block; margin-bottom: 9px; }

/* ============================================================
   Reports
   ============================================================ */
.report { display: flex; flex-direction: column; gap: 16px; }
.reportsPage { gap: 12px; }
.reportsPage .report { gap: 12px; }
.reportsPage .grid--1-1 { grid-template-columns: minmax(0, 1fr); }
.reportHero {
  border-radius: var(--radius); padding: 24px 26px; color: #fff;
  background: linear-gradient(140deg, #10305c, #1c5cab 60%, #2a78d6);
  box-shadow: var(--shadow-2);
}
.reportHero__eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.reportHero__title { font-size: 24px; margin: 5px 0 8px; letter-spacing: -.02em; }
.reportHero__sum { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.9); max-width: 78ch; }
.reportHero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.reportHero__grid > div, .reportHero__grid > div:first-child { padding: 10px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.reportHero__grid > div:last-child { border-bottom: 0; }
.reportHero__k { font-size: 11.5px; color: rgba(255,255,255,.72); }
.reportHero__v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.reportHero__d { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.reportHero__d.up { color: #9ff2b7; }
.reportHero__d.down { color: #ffc0c0; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.callout__l { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.callout__v { font-size: 15px; font-weight: 700; margin-top: 3px; }
.callout__s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.reportsPage .card { box-shadow: var(--shadow-1); }
.reportsPage .card--pad { padding: 20px; }
.reportsPage .chart { height: 245px; }
.reportsPage .table td { padding-top: 10px; padding-bottom: 10px; }
.reportsPage .table th { background: var(--surface-2); }
.reportsPage .callout { padding: 12px; }

/* ============================================================
   Modal, toast
   ============================================================ */
.modalBack {
  position: fixed; inset: 0; z-index: 100; background: rgba(11,11,11,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade .16s ease; overflow-y: auto;
}
.modal {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-3);
  width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  animation: pop .18s cubic-bezier(.2,.9,.3,1.1);
}
.modal--wide { max-width: 720px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 20px 0; }
.modal__title { font-size: 17px; }
.modal__sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.modal__body { padding: 18px 20px; overflow-y: auto; }
.modal__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px 20px; }
.modal__foot--split { justify-content: space-between; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.formGrid--1 { grid-template-columns: 1fr; }
.formGrid .span2 { grid-column: 1 / -1; }
.calcGuide { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.calcGuide__breakEven { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 12.5px; }
.calcGuide__breakEven strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.priceTargets { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0; margin-top: 12px; }
.priceTarget { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.priceTarget span { color: var(--ink-muted); font-size: 11px; }
.priceTarget strong { color: var(--brand-dark); font-size: 13px; font-variant-numeric: tabular-nums; }
.calcGuide__message { margin-top: 12px; color: var(--ink-2); font-size: 12.5px; }
.formActions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.savedNote { font-size: 12.5px; font-weight: 600; color: var(--good-ink); }
.inlineForm { display: flex; gap: 8px; margin-top: 12px; }
.btnRow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.dataStats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; }
.dataStat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.dataStat__v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dataStat__l { font-size: 11.5px; color: var(--ink-muted); }

.reminder {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 14px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; margin-top: 12px;
  max-height: 280px; overflow-y: auto;
}
.detailGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.detailGrid__k { font-size: 11.5px; color: var(--ink-muted); }
.detailGrid__v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.sectionLabel { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 8px; }

.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px; min-width: 230px; max-width: 380px;
  background: var(--ink); color: #fff; border-radius: 11px; box-shadow: var(--shadow-3);
  font-size: 13px; font-weight: 500; animation: slideIn .2s ease;
}
.toast--good { background: #0d5f2a; }
.toast--bad  { background: #8f2020; }
.toast--warn { background: #7a5200; }
.toast__x { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 15px; padding: 0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .grid--2-1, .grid--1-2, .grid--1-1 { grid-template-columns: minmax(0, 1fr); }
  .search { width: min(280px, 28vw); }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s cubic-bezier(.3,.8,.4,1); box-shadow: var(--shadow-3); }
  .app.is-menu .sidebar { transform: none; }
  .sidebar__close { display: inline-flex; }
  .main { margin-left: 0; }
  .topbar__menu { display: inline-flex; }
  .topbar__sub { display: none; }
  .userChip__text { display: none; }
  .userChip__caret { display: none; }
  .topbarActions .btn__label { display: none; }
  .topbarActions .btn { padding-left: 10px; padding-right: 10px; gap: 0; }
  .topbarActions .btn--lg { height: 38px; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__cardLogo { display: inline-flex; }
  .auth__panel { min-height: 100vh; }
}
@media (max-width: 767px) {
  .pages { padding: 16px; }
  .calculatorPage { overflow: visible; }
  .expensesPage { height: auto; overflow: visible; }
  .expensesLayout > .card:first-child .tableWrap { overflow-x: auto; }
  .topbar { padding: 0 14px; gap: 10px; height: 58px; }
  .search { width: auto; flex: 1; }
  .search__input::placeholder { color: transparent; }
  .search__input:focus::placeholder { color: var(--ink-muted); }
  .pageHead { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pageHead__actions { width: 100%; }
  .pageHead__title { font-size: 19px; }
  .reportHero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .reportHero__grid > div, .reportHero__grid > div:first-child { padding: 10px 0; border-left: 0; }
  .kpiGrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .kpi { padding: 13px; }
  .kpi__value { font-size: 21px; }
  .kpi__spark { width: 76px; height: 32px; }
  .segmented { overflow-x: auto; max-width: 100%; }
  .filterBar { padding: 12px; }
  .table th, .table td { padding: 10px 12px; }
  .chart { height: 220px; }
  .chart--tall { height: 250px; }
  .modal { max-width: none; }
  .formGrid { grid-template-columns: 1fr; }
  .calculatorLayout { grid-template-columns: minmax(0, 1fr); }
  .calculatorLayout > .calcGuide { grid-column: auto; }
  .calcMetrics { gap: 8px; }
  .priceTargets { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .toasts { right: 12px; left: 12px; bottom: 12px; align-items: stretch; }
  .btn__label { display: none; }
}
@media (max-width: 480px) {
  .kpiGrid { grid-template-columns: 1fr 1fr; }
  .kpi__spark { display: none; }
  .hide-sm { display: none !important; }
}

/* filter bar (shared) */
.filterBar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.filterBar__search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 210px; min-width: 170px;
  height: 38px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.filterBar__search svg { width: 16px; height: 16px; color: var(--ink-muted); flex: none; }
.filterBar__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,120,214,.15); }
.filterBar .input--sel { width: auto; min-width: 132px; }

/* ============================================================
   Getting started: welcome, help centre, guided tour
   ============================================================ */
.topbar__help { flex: none; }
.topbar__help:hover { background: rgba(11,11,11,.045); color: var(--ink); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 7px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface-2); font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* welcome */
.welcome__lead { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.welcome__steps { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 14px; }
.welcome__step { display: flex; gap: 12px; align-items: flex-start; }
.welcome__num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-dark);
}
.welcome__t { font-size: 13.5px; font-weight: 600; }
.welcome__d { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); margin-top: 2px; }
.welcome__foot { font-size: 12.5px; color: var(--ink-muted); border-top: 1px solid var(--border); padding-top: 12px; }

/* help centre */
.helpList { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.helpRow {
  display: flex; gap: 11px; align-items: flex-start; text-align: left; width: 100%;
  padding: 11px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); cursor: pointer; transition: border-color .14s, background .14s;
}
.helpRow:hover { border-color: var(--brand); background: var(--brand-soft); }
.helpRow__i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.helpRow__i svg { width: 15px; height: 15px; }
.helpRow__b { display: flex; flex-direction: column; min-width: 0; }
.helpRow__t { font-size: 13px; font-weight: 600; }
.helpRow__d { font-size: 12px; line-height: 1.55; color: var(--ink-2); margin-top: 2px; }

.kbdGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 16px; }
.kbdRow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }

.helpNotes { display: flex; flex-direction: column; gap: 9px; }
.helpNote { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.helpNote strong { color: var(--ink); }
.helpNote strong::after { content: " — "; color: var(--ink-muted); font-weight: 500; }
.helpData { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

/* guided tour */
.tour { position: fixed; inset: 0; z-index: 150; }
.tour__block { position: absolute; inset: 0; }
.tour__ring {
  position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--brand), 0 0 0 9999px rgba(11,11,11,.55);
  transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}
.tour__pop {
  position: fixed; background: var(--surface); border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow-3); border: 1px solid var(--border);
  animation: pop .18s cubic-bezier(.2,.9,.3,1.1);
}
.tour__count { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.tour__t { font-size: 15px; font-weight: 700; margin-top: 4px; }
.tour__d { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); margin-top: 6px; }
.tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.tour__btns { display: flex; gap: 8px; }

@media (max-width: 767px) {
  .helpList { grid-template-columns: 1fr; }
}

/* print (monthly report) */
@media print {
  .sidebar, .topbar, .scrim, .pageHead__actions, .toasts, .modalBack, .tour { display: none !important; }
  .main { margin-left: 0; }
  .pages { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .reportHero { background: #10305c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grid--2-1, .grid--1-1 { grid-template-columns: 1fr 1fr; }
}
