:root {
  --ink: #1a2b3c;
  --navy: #1b3344;
  --navy-2: #234155;
  --paper: #eef1f4;
  --paper-2: #e4e9ee;
  --cream: #ffffff;
  --gold: #b0892e;
  --gold-2: #8c6d2a;
  --green: #1b7a4c;
  --green-soft: #e7f6ee;
  --red: #b42318;
  --red-soft: #fdecea;
  --blue: #2b6cb0;
  --blue-soft: #e8f1fb;
  --amber: #b7791f;
  --amber-soft: #fef4d7;
  --muted: #5b6570;
  --line: #d7dee6;
  --shadow: 0 1px 2px rgba(18, 38, 58, .06);
  --radius: 8px;
  --sidebar: 248px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
button { -webkit-tap-highlight-color: transparent; }

.ico-svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  display: block;
}
.ico-svg.ico-sm { width: 16px; height: 16px; min-width: 16px; min-height: 16px; }
.ico-svg.ico-lg { width: 26px; height: 26px; min-width: 26px; min-height: 26px; }
.btn .ico-svg, .icon-btn .ico-svg { width: 18px; height: 18px; min-width: 18px; min-height: 18px; }
.ico-logo { width: 26px; height: 26px; display: block; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--navy);
  color: #f4ead6;
  padding: 14px 10px calc(14px + var(--safe-bottom));
  padding-inline-start: 12px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  isolation: isolate;
}
.sidebar::before { display: none; }
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 10px 18px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  flex-shrink: 0;
}
.brand-mark.lg { width: 56px; height: 56px; border-radius: 16px; }
.brand-mark.lg .ico-logo { width: 30px; height: 30px; }
.brand h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand p { margin: 2px 0 0; font-size: 12px; opacity: .68; }

.nav { flex: 1; }
.nav-group { margin: 4px 0 12px; }
.nav-label {
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .5;
  padding: 8px 12px 6px;
}
.nav a, .nav button.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  text-align: right;
  min-height: 38px;
}
.nav a:hover { background: rgba(255,255,255,.07); }
.nav a.active {
  background: rgba(255,255,255,.1);
  box-shadow: inset 3px 0 0 #d4b36a;
  font-weight: 600;
}
.nav-ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: #e8d9b0;
}
.nav-ico .ico-svg { width: 18px; height: 18px; min-width: 18px; min-height: 18px; }
.nav a.active .nav-ico {
  background: rgba(196,163,90,.24);
  color: #f3d58a;
}

.side-foot {
  margin-top: auto;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.side-user { font-size: 13px; opacity: .85; min-width: 0; }
.side-user strong { display: block; font-weight: 600; }
.side-user span { font-size: 11px; opacity: .65; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #f4ead6;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.14); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: calc(8px + var(--safe-top)) 16px 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.search-wrap { flex: 1; position: relative; }
.search-ico {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 6px;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  outline: none;
}
.search-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196,163,90,.16); }
.page {
  padding: 16px 16px 110px;
  flex: 1;
}

.h-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-title { margin: 0; font-size: 20px; letter-spacing: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.page-title .title-ico {
  width: 32px; height: 32px; border-radius: 6px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
}
.sub { color: var(--muted); margin: 4px 0 0; }

.grid { display: grid; gap: 14px; }
.cards-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.book-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.book-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.book-tabs a:hover { background: var(--paper-2); color: var(--ink); }
.book-tabs a.active {
  background: var(--navy);
  color: #f4ead6;
}
.book-tabs .bt-ico { display: grid; place-items: center; }
.book-tabs .bt-ico .ico-svg { width: 16px; height: 16px; }
.linked-stats .value { font-size: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
a.card { display: block; color: inherit; text-decoration: none; }
.sheet { padding: 0; }
.sheet-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fa;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.sheet .form-grid { padding: 16px; }
.sheet-actions { padding: 0 16px 16px; }
.card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.kpi { min-height: 88px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi-head { display: flex; align-items: center; gap: 8px; }
.kpi-ico {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  background: #eef2f6;
  color: var(--navy);
}
.kpi.green .kpi-ico { background: var(--green-soft); color: var(--green); }
.kpi.red .kpi-ico { background: var(--red-soft); color: var(--red); }
.kpi.gold .kpi-ico { background: #f7efd8; color: var(--gold-2); }
.kpi.blue .kpi-ico { background: var(--blue-soft); color: var(--blue); }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
  letter-spacing: -.02em;
  line-height: 1.25;
  word-break: break-word;
}
.kpi.green { background: #fff; border-inline-start: 3px solid var(--green); }
.kpi.red { background: #fff; border-inline-start: 3px solid var(--red); }
.kpi.gold { background: #fff; border-inline-start: 3px solid var(--gold); }
.kpi.blue { background: #fff; border-inline-start: 3px solid var(--blue); }

.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  min-height: 36px;
}
.btn:hover { filter: brightness(1.07); }
.btn.gold { background: #b0892e; color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--red); }
.btn.green { background: var(--green); }
.btn.sm { padding: 5px 9px; font-size: 12.5px; border-radius: 6px; min-height: 32px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
table.data th { font-size: 12px; color: var(--muted); font-weight: 700; background: #f6f8fa; }
table.data tr:hover td { background: #f7f9fb; }
td.cell-wrap { white-space: normal; max-width: 420px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.form-grid .full { grid-column: 1 / -1; }

.entry { max-width: 960px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 104px;
  box-shadow: var(--shadow);
}
.tile-wide { grid-column: 1 / -1; min-height: 132px; }
.tile > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.tile input, .tile select, .tile textarea {
  border: 0;
  border-bottom: 1px solid #d7dee6;
  border-radius: 0;
  padding: 8px 0 6px;
  background: transparent;
  font-size: 16px;
  width: 100%;
  min-height: 36px;
}
.tile textarea { min-height: 88px; resize: vertical; }
.tile input:focus, .tile select:focus, .tile textarea:focus {
  border-color: var(--navy);
  box-shadow: none;
}
.tile .js-money { font-size: 22px; font-weight: 700; }
.entry-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
a.kpi-link { color: inherit; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.kpi-link:hover { border-color: #8aa4b8; box-shadow: 0 4px 14px rgba(18,38,58,.08); transform: translateY(-1px); }
a.kpi-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
label.f {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
label.f.full { grid-template-columns: 108px minmax(0, 1fr); }
label.f:has(textarea), label.f:has(input[type=file]) { align-items: start; }
label.f:has(textarea) > span, label.f:has(input[type=file]) > span { padding-top: 8px; }
[hidden] { display: none !important; }
input[type=text], input[type=number], input[type=date], input[type=time], input[type=password], input[type=email], input[type=search], select, textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.js-money { font-variant-numeric: tabular-nums; text-align: left; direction: ltr; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #8aa4b8; box-shadow: 0 0 0 3px rgba(27,51,68,.08); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { min-width: 140px; width: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.pill.ongoing { background: var(--green-soft); color: var(--green); }
.pill.due_soon { background: var(--amber-soft); color: var(--amber); }
.pill.overdue { background: var(--red-soft); color: var(--red); }
.pill.completed { background: var(--blue-soft); color: var(--blue); }
.pill.open { background: var(--amber-soft); color: var(--amber); }
.pill.paid { background: var(--green-soft); color: var(--green); }

.flash {
  margin: 12px 22px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash.ok { background: var(--green-soft); color: #145c39; }
.flash.err { background: var(--red-soft); color: #8a1c14; }

.fab {
  position: fixed;
  left: calc(22px + var(--safe-left));
  bottom: calc(24px + var(--safe-bottom));
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #d4b36a, #a8843a);
  color: #1a1408;
  box-shadow: 0 14px 28px rgba(140,109,42,.32);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.fab .ico-svg { width: 26px; height: 26px; }
.bottom-nav { display: none; }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 28, .5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--cream);
  width: min(560px, 100%);
  border-radius: 8px;
  padding: 18px;
  max-height: min(88vh, 760px);
  overflow: auto;
  animation: up .18s ease;
}
@keyframes up { from { transform: translateY(16px); opacity: .4; } to { transform: none; opacity: 1; } }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  text-align: right;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 76px;
  color: inherit;
  width: 100%;
}
.choice:hover { border-color: var(--gold); background: #fffaf0; }
.choice-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: #f4efe6;
  color: var(--navy);
  flex-shrink: 0;
}
.choice-body { min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.choice-body span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }

.empty {
  text-align: center;
  padding: 36px 12px;
  color: var(--muted);
}
.muted { color: var(--muted); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.money.neg { color: var(--red); }
.money.pos { color: var(--green); }

.chart-box { height: 220px; }
canvas { width: 100%; height: 100%; display: block; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #10222f;
}
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr minmax(340px, 480px);
}
.auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(40px + var(--safe-top)) 48px calc(36px + var(--safe-bottom));
  color: #f4ead6;
  background:
    radial-gradient(700px 380px at 10% 0%, rgba(196,163,90,.28), transparent 55%),
    linear-gradient(165deg, #10222f 0%, #1a3a4c 55%, #0e1c26 100%);
  position: relative;
  overflow: hidden;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 280px; height: 280px;
  border-radius: 40px;
  border: 18px solid rgba(196,163,90,.12);
  transform: rotate(18deg);
  pointer-events: none;
}
.auth-brand h1 { margin: 14px 0 6px; font-size: 34px; letter-spacing: -.03em; }
.auth-brand p { margin: 0; opacity: .72; max-width: 360px; }
.auth-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  opacity: .92;
}
.auth-points .point-ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #e8d9b0;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-top)) 28px calc(24px + var(--safe-bottom));
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(196,163,90,.18), transparent 50%),
    var(--paper);
}
.auth-card {
  width: min(400px, 100%);
  background: var(--cream);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(16, 34, 47, .12);
  border: 1px solid rgba(18,38,58,.06);
}
.auth-card h1 { margin: 0 0 4px; font-size: 24px; }
.auth-card .sub { margin-bottom: 4px; }
.auth-mobile-brand { display: none; margin-bottom: 16px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-left: 46px; }
.pass-toggle {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0; background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  border-radius: 8px;
}
.pass-toggle:hover { color: var(--navy); background: rgba(18,38,58,.05); }
.auth-card .btn.gold { min-height: 48px; font-size: 16px; }
.pass-toggle .ico-svg { width: 20px; height: 20px; min-width: 20px; min-height: 20px; }
.kpi-ico .ico-svg, .choice-ico .ico-svg, .title-ico .ico-svg, .point-ico .ico-svg {
  width: 18px; height: 18px; min-width: 18px; min-height: 18px;
}
.cover-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #f8f1df, #e6d7ae);
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(140,109,42,.28);
  color: var(--navy);
}
.choice { appearance: none; -webkit-appearance: none; }

.progress {
  height: 8px; background: #eee4d0; border-radius: 99px; overflow: hidden;
}
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #c4a35a, #1b7a4c); }

.list-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.list-row:last-child { border-bottom: 0; }

.nl-box textarea { min-height: 70px; }

@media (max-width: 1180px) {
  .cards-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .cards-6, .cards-4, .cards-3 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  label.f, label.f.full { grid-template-columns: 1fr; gap: 5px; }
  .tiles { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .span-2 { grid-column: auto; }
  .page { padding: 14px 14px 128px; }
  .topbar { padding: calc(10px + var(--safe-top)) 14px 10px; }
  .flash { margin: 10px 14px 0; }
  .fab { display: none; }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0; right: 0; left: 0;
    background: rgba(255,253,248,.96);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(8px + var(--safe-bottom));
    z-index: 30;
    backdrop-filter: blur(14px);
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    font-size: 11px; color: var(--muted);
    padding: 4px 2px;
    min-height: 52px;
    border-radius: 12px;
  }
  .bottom-nav a.active { color: var(--navy); font-weight: 700; }
  .bottom-nav a.active .bn-ico { color: var(--navy); background: rgba(196,163,90,.2); }
  .bn-ico {
    width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center;
    color: var(--muted);
  }
  .bn-ico .ico-svg { width: 20px; height: 20px; }
  .bottom-nav a.add-tab { color: var(--navy); font-weight: 700; }
  .bottom-nav a.add-tab .bn-plus {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(180deg, #d4b36a, #a8843a);
    color: #1a1408;
    margin-top: -18px;
    box-shadow: 0 8px 18px rgba(140,109,42,.3);
  }
  .bottom-nav a.add-tab .bn-plus .ico-svg { width: 22px; height: 22px; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 12px; }
  .auth-mobile-brand h1 { margin: 0; font-size: 20px; }
  .auth-mobile-brand p { margin: 2px 0 0; font-size: 13px; }
  .auth-card > .cover-icon { display: none; }
  .auth-panel { min-height: 100vh; min-height: 100dvh; }
  .auth-card { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .cards-6, .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
  .kpi .value { font-size: 20px; }
}

@media print {
  .sidebar, .topbar, .fab, .bottom-nav, .btn, .no-print { display: none !important; }
  .app { display: block; }
  .page { padding: 0; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
