/* ---------------------------------------------------------
   Tokens — "Forest & Amber"
   Deep forest green for structure, emerald for actions,
   amber as the brand accent, on a warm cream canvas.
   --------------------------------------------------------- */
:root {
  --side: #0f1b33;
  --side-2: #1c2b4a;
  --side-3: #253a63;
  --side-ink: #d3dcef;
  --side-dim: #8b9ac0;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --ink: #16211d;
  --ink-2: #3b4843;
  --muted: #6f7b76;
  --line: #e2e8f0;
  --line-2: #edf1f6;
  --accent: #d7192d;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --accent-hover: #b31322;
  --accent-deep: #1e40af;
  --saffron: #e08a1e;
  --saffron-soft: #fdf0dc;
  --good: #15803d;
  --good-soft: #e5f4ea;
  --bad: #c2410c;
  --bad-soft: #fdebe2;
  --warn: #a16207;
  --warn-soft: #fdf4d8;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(22, 33, 29, 0.05);
  --shadow: 0 1px 2px rgba(22, 33, 29, 0.04), 0 6px 20px -8px rgba(22, 33, 29, 0.1);
  --link: #1d4ed8;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font: 14px/1.55 var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #cfdcfb;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
}
input,
select,
textarea {
  font: inherit;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--ink);
  width: 100%;
  min-height: 40px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
textarea {
  min-height: auto;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #cbd5e1;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
input[readonly] {
  background: var(--line-2);
  color: var(--muted);
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  min-height: 0;
}
.btn {
  font: inherit;
  font-weight: 600;
  padding: 0 16px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
}
.btn:hover {
  background: var(--panel-2);
  border-color: #cbd5e1;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 4px 12px -4px rgba(215, 25, 45, 0.55);
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.good {
  background: var(--good);
  color: #fff;
  border-color: var(--good);
}
.btn.danger {
  color: var(--bad);
}
.btn.danger:hover {
  background: var(--bad-soft);
  border-color: #f3c9b4;
}
.btn.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn.big {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.link {
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  font-weight: 700;
  text-align: left;
}
.link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.right {
  text-align: right;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Auth ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.auth-side {
  background:
    radial-gradient(120% 80% at 0% 0%, #1e3a6b 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(224, 138, 30, 0.22) 0%, transparent 55%), var(--side);
  color: var(--side-ink);
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side .mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.auth-side h1 {
  color: #fff;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 13ch;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.auth-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 360px;
}
.auth-side li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--side-ink);
}
.auth-side li b {
  color: #fff;
  font-weight: 700;
  display: block;
}
.auth-side li svg {
  flex: none;
  margin-top: 2px;
  color: #f87171;
}
.auth-side small {
  color: var(--side-dim);
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 32px;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.auth-card h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 6px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--line-2);
  border-radius: 999px;
  margin: 24px 0 22px;
}
.tabs a {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
}
.tabs a:hover {
  text-decoration: none;
  color: var(--ink);
}
.tabs a.active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.subtabs a {
  padding: 6px 14px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
}
.subtabs a:hover {
  text-decoration: none;
  color: var(--ink);
  background: var(--line-2);
}
.subtabs a.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: #c9d8fb;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack label,
.fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.err {
  color: var(--bad);
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.note {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--saffron-soft);
  border-radius: var(--r-sm);
  border: 1px solid #f6dcb4;
}
.banner {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 18px;
  border: 1px solid;
  font-weight: 500;
}
.banner.warn {
  background: var(--warn-soft);
  color: #7c4a03;
  border-color: #f1dc9a;
}
.banner.info {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: #c9d8fb;
}
.banner.good {
  background: var(--good-soft);
  color: #14532d;
  border-color: #bfe3cb;
}

/* ---------- Brand ---------- */
.brandlock {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 4px 4px;
}
.brandlock.lg {
  font-size: 22px;
}

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  background: linear-gradient(180deg, #13213d 0%, var(--side) 45%);
  color: var(--side-ink);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.side .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 16px 12px;
  color: #fff;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.side .brand:hover {
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2a640, var(--saffron));
  color: #1d1406;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  flex: none;
  box-shadow: 0 4px 12px -4px rgba(224, 138, 30, 0.6);
}
.side-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 14px;
}
.side-scroll::-webkit-scrollbar {
  width: 6px;
}
.side-scroll::-webkit-scrollbar-thumb {
  background: var(--side-2);
  border-radius: 3px;
}
.mods a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--side-ink);
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
}
.mods a:hover {
  background: var(--side-2);
  text-decoration: none;
  color: #fff;
}
.mods a.active {
  background: var(--side-3);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.mods a svg {
  color: var(--side-dim);
}
.mods a.active svg {
  color: #f87171;
}
.side-app {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 12px 8px;
  padding-top: 16px;
  border-top: 1px solid var(--side-2);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.side-app svg {
  color: #f87171;
}
.side-label {
  font-size: 11px;
  color: var(--side-dim);
  padding: 20px 12px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.pages {
  border-left: 1px solid var(--side-2);
  margin-left: 22px;
  padding-left: 6px;
}
.pages a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--side-ink);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}
.pages a:hover {
  background: var(--side-2);
  color: #fff;
  text-decoration: none;
}
.pages a.active {
  color: #fff;
  font-weight: 700;
  background: var(--side-2);
}
.pages a.active::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: #ef4444;
  border-radius: 3px;
}
.pages .sep {
  height: 1px;
  background: var(--side-2);
  margin: 6px 8px;
}
.side-foot {
  border-top: 1px solid var(--side-2);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.12);
}
.side-foot .who {
  flex: 1;
  min-width: 0;
  color: #fff;
}
.side-foot .who:hover {
  text-decoration: none;
}
.side-foot .who b {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-foot .who small {
  color: var(--side-dim);
  font-size: 12px;
}
.side-foot .icon-btn {
  color: var(--side-dim);
}
.side-foot .icon-btn:hover {
  color: #fff;
  background: var(--side-2);
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.15s;
}
.icon-btn:hover {
  background: var(--line-2);
}
.main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
header.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  height: 62px;
  background: rgba(244, 246, 250, 0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.crumbs {
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-weight: 500;
}
.crumbs b {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumbs .slash {
  color: #cbd5e1;
}
.spacer {
  flex: 1;
}
.menu-btn {
  display: none;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12.5px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(215, 25, 45, 0.15);
}
.side .avatar {
  background: #d7192d;
  color: #fff;
  box-shadow: none;
}
.avatar.lg {
  width: 68px;
  height: 68px;
  font-size: 23px;
}
.role {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: #8a4d06;
  border: 1px solid #f6dcb4;
  letter-spacing: 0.02em;
}
main {
  padding: 32px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}
.page-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  margin-right: auto;
  letter-spacing: -0.02em;
}
.page-head #search {
  width: 260px;
  border-radius: 999px;
  padding-left: 16px;
  background: var(--panel);
}
.scrim {
  display: none;
}

/* ---------- Home ---------- */
.hello {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.hello h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.025em;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 22px;
  margin-bottom: 26px;
}
.today {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(224, 138, 30, 0.28) 0%, transparent 55%),
    radial-gradient(80% 90% at 0% 100%, #1e3f75 0%, transparent 60%), var(--side);
  color: var(--side-ink);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 18px 40px -20px rgba(15, 38, 32, 0.6);
}
.today .clock {
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 58px;
  line-height: 1;
}
.today .row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.today .btn.primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #1d1406;
  box-shadow: 0 6px 16px -6px rgba(224, 138, 30, 0.7);
}
.today .btn.primary:hover {
  background: #f09a2b;
}
.today .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.today .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.today .facts {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}
.today .facts div {
  display: flex;
  flex-direction: column;
}
.today .facts small {
  color: var(--side-dim);
  font-weight: 600;
  font-size: 12px;
}
.today .facts b {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.todo a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 500;
}
.todo a:last-child {
  border-bottom: 0;
}
.todo a:hover {
  background: var(--panel-2);
  text-decoration: none;
}
.todo .count {
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: #9a5605;
  font-weight: 800;
  font-size: 12.5px;
  display: grid;
  place-items: center;
}
.todo .go {
  margin-left: auto;
  color: #b4bccb;
}
.mod-list a,
.mod-list .soon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
}
.mod-list a:hover {
  background: var(--panel-2);
  text-decoration: none;
}
.mod-list > *:last-child {
  border-bottom: 0;
}
.mod-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.mod-list a:hover .mod-ic {
  background: var(--accent);
  color: #fff;
}
.mod-list .soon {
  color: var(--muted);
}
.mod-list .soon .mod-ic {
  background: var(--line-2);
  color: #9aa4b5;
}
.mod-list h3 {
  margin: 0;
  font-size: 15px;
}
.mod-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- To-do & campaigns ---------- */
.todo-add {
  display: flex;
  gap: 8px;
  padding: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.todo-add input[name="title"] {
  flex: 1;
  min-width: 220px;
}
.todo-add input[type="date"],
.todo-add select {
  width: auto;
}
.todo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
.todo-row:last-child {
  border-bottom: 0;
}
.todo-row:hover {
  background: var(--panel-2);
}
.todo-t {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
.todo-t small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
}
.todo-row.is-done .todo-t {
  color: var(--muted);
  text-decoration: line-through;
}
.prio {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}
.prio.high {
  background: var(--bad);
}
.prio.medium {
  background: var(--saffron);
}
.prio.low {
  background: #8fb9ad;
}
.due {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.due.today {
  background: var(--saffron-soft);
  color: #9a5605;
}
.due.late {
  background: var(--bad-soft);
  color: var(--bad);
}
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.camp {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.camp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.camp-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--saffron-soft);
  color: #b45309;
}
.camp-ic.whatsapp {
  background: var(--good-soft);
  color: var(--good);
}
.camp h3 {
  margin: 0;
  font-size: 16px;
}
.camp p {
  margin: 0;
  font-size: 13px;
}
.camp-msg {
  color: var(--ink-2);
  background: var(--panel-2);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px !important;
  white-space: pre-wrap;
}
.camp-act {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.mail-body {
  white-space: pre-wrap;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  max-height: 320px;
  overflow: auto;
}
.wa-bubble {
  white-space: pre-wrap;
  background: #dcf8c6;
  color: #111;
  border-radius: 12px 12px 12px 3px;
  padding: 10px 12px;
  max-width: 420px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  font-size: 14px;
}
.prog {
  height: 10px;
  border-radius: 5px;
  background: var(--line-2);
  overflow: hidden;
}
.prog span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f58a94);
  border-radius: 5px;
}

.meet-day {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 18px 2px 8px;
}
.meet-day.is-today {
  color: var(--accent-deep);
}
.meet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
}
.meet:last-child {
  border-bottom: 0;
}
.meet-time {
  width: 56px;
  flex: none;
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
.meet-time b {
  font-size: 14px;
}
.meet-time small {
  color: var(--muted);
  font-size: 12px;
}
.meet-main {
  flex: 1;
  min-width: 0;
}
.meet-main small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.meet-act {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.inv-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inv-head,
.inv-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 140px 36px;
  gap: 8px;
  align-items: center;
}
.inv-head span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
#invItems {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inv-lines > .btn {
  align-self: flex-start;
}
.inv-tot {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-2);
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
}
.inv-tot .grand {
  font-size: 16px;
  color: var(--ink);
}
.inv-doc table th,
.inv-doc table td {
  padding: 8px 10px;
}
@media (max-width: 860px) {
  .meet {
    flex-wrap: wrap;
  }
  .meet-act {
    width: 100%;
    justify-content: flex-start;
  }
  .inv-head {
    display: none;
  }
  .inv-item {
    grid-template-columns: 1fr 70px 100px 36px;
  }
}

/* ---------- App launcher ---------- */
.launch {
  min-height: 100vh;
  color: var(--ink);
  padding: 0 clamp(16px, 4vw, 48px) 56px;
  background: #f4f5f7;
}
.l-top {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px) 1fr;
  align-items: center;
  gap: 16px;
  height: 72px;
  max-width: 1000px;
  margin: 0 auto;
}
.l-search {
  grid-column: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e3e5e9;
  color: #8a909a;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.l-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.l-search input {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 0;
  height: 40px;
  padding: 0;
}
.l-search input:focus {
  box-shadow: none;
  background: transparent;
}
.l-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}
.l-who {
  display: flex;
  padding: 4px;
  border-radius: 999px;
}
.l-who:hover {
  text-decoration: none;
  background: #e9ebef;
}
.l-who .avatar {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}
.l-hello {
  max-width: 760px;
  margin: 40px auto 10px;
  text-align: center;
}
.l-hello > div {
  width: 100%;
  text-align: center;
}
.l-hello h1 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.l-hello p {
  margin: 6px 0 0;
  color: var(--muted);
}
.l-time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-weight: 600;
}
.apps {
  max-width: 860px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 10px;
}
.lapp[hidden] {
  display: none;
}
.lapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-align: center;
  border-radius: 16px;
  padding: 6px 4px;
  outline-offset: 4px;
}
.lapp:hover {
  text-decoration: none;
}
.app-tile {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e6e8ec;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s;
}
.lapp:hover .app-tile,
.lapp:focus-visible .app-tile {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -8px rgba(16, 24, 40, 0.18);
}
.lapp:active .app-tile {
  transform: translateY(-1px) scale(0.97);
}
.app-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #2b3036;
}
.app-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #f4f5f7;
}
.apps-none {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
}
/* single-colour app icons */
:root {
  --tile-bg: #fff;
  --icon: #1d4ed8;
}
.app-tile {
  color: var(--icon);
}
.app-tile svg [fill]:not([fill="none"]) {
  fill: currentColor;
}
.app-tile svg [stroke] {
  stroke: currentColor;
}
.app-tile svg [fill="#fbbd3b"],
.app-tile svg [stroke="#fbbd3b"] {
  opacity: 0.42;
}
.app-tile svg [fill="#3db8f5"],
.app-tile svg [fill="#1fc8a9"],
.app-tile svg [fill="#f7931e"],
.app-tile svg [fill="#f2706f"],
.app-tile svg [stroke="#1fc8a9"],
.app-tile svg [stroke="#f7931e"] {
  opacity: 0.72;
}
.app-tile svg [fill="#fff"],
.app-tile svg [fill="#0e4a44"],
.app-tile svg [fill="#7a4a00"] {
  fill: var(--tile-bg);
  opacity: 1;
}
.app-tile svg [stroke="#fff"],
.app-tile svg [stroke="#0e4a44"],
.app-tile svg [stroke="#7a4a00"],
.app-tile svg [stroke="#8b4a7f"][fill="none"] {
  stroke: var(--tile-bg);
  opacity: 1;
}
.theme-btn {
  color: var(--ink-2);
}
.app-tile svg[data-k="employees"] [fill="#fbbd3b"],
.app-tile svg[data-k="meetings"] circle {
  fill: var(--tile-bg);
  opacity: 1;
}
.app-tile svg[data-k="billing"] circle {
  fill: currentColor;
  opacity: 1;
  stroke: var(--tile-bg);
  stroke-width: 2.5;
}
.app-tile svg[data-k="employees"] [stroke],
.app-tile svg[data-k="todo"] [stroke] {
  stroke: var(--tile-bg);
  opacity: 1;
}
.app-tile svg[data-k="meetings"] [stroke="#fbbd3b"] {
  opacity: 1;
}
.app-tile svg[data-k="billing"] [stroke="#7a4a00"] {
  stroke: var(--tile-bg);
  opacity: 1;
}
@media (max-width: 860px) {
  .l-top {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding-top: 14px;
    gap: 10px;
  }
  .l-search {
    grid-column: 1;
  }
  .l-right {
    grid-column: 2;
  }
  .apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 4px;
  }
  .app-tile {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .app-tile svg {
    width: 30px;
    height: 30px;
  }
  .app-name {
    font-size: 11.5px;
  }
  .l-hello {
    margin-top: 22px;
  }
}

/* ---------- Cards, tables, stats ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card.tbl {
  overflow: hidden;
}
.card-title {
  font-size: 15px;
  font-weight: 800;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-title a {
  font-weight: 700;
  font-size: 13px;
}
.card-body {
  padding: 18px;
}
.tbl {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
th {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:hover td {
  background: #f5f8fd;
}
td.nowrap {
  white-space: nowrap;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stats > .stat {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.stats > .stat::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}
.stats > .stat:nth-child(2)::after {
  background: var(--saffron);
}
.stats > .stat:nth-child(3)::after {
  background: var(--good);
}
.stats > .stat:nth-child(4)::after {
  background: var(--bad);
}
.stat .k {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.stat .v {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.mt {
  margin-top: 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.pill.good {
  background: var(--good-soft);
  color: var(--good);
}
.pill.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill.grey {
  background: var(--line-2);
  color: var(--muted);
}
.pill.count::before {
  display: none;
}
.overdue {
  color: var(--bad);
  font-weight: 700;
}
tr.done td {
  color: var(--muted);
}
tr.done td .link {
  text-decoration: line-through;
  color: var(--muted);
}
.person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Attendance ---------- */
.punch {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.clock {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Profile ---------- */
.profile-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 6px;
}
.profile-top h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

/* ---------- Engagement ---------- */
.feed-item {
  padding: 18px;
  border-bottom: 1px solid var(--line-2);
}
.feed-item:last-child {
  border-bottom: 0;
}
.feed-item h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
}
.feed-item p {
  margin: 0 0 8px;
  white-space: pre-wrap;
  color: var(--ink-2);
}
.kudo {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-2);
}
.kudo:last-child {
  border-bottom: 0;
}
.celebrate {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-2);
}
.celebrate:last-child {
  border-bottom: 0;
}

/* ---------- Payslip ---------- */
.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--side);
  padding-bottom: 12px;
}
.slip-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 16px 0;
  font-size: 13.5px;
}
.slip-meta span {
  color: var(--muted);
}
.slip table td,
.slip table th {
  padding: 9px 10px;
}
.net {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid #c9d8fb;
  border-radius: var(--r-sm);
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-deep);
}

/* ---------- Deals board ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.col {
  background: #e9eef6;
  border-radius: var(--r);
  padding: 12px;
  min-height: 360px;
  border-top: 3px solid var(--accent);
}
.col:nth-child(2) {
  border-top-color: #3b82a6;
}
.col:nth-child(3) {
  border-top-color: #7c6bb0;
}
.col:nth-child(4) {
  border-top-color: var(--saffron);
}
.col:nth-child(5) {
  border-top-color: var(--good);
}
.col:nth-child(6) {
  border-top-color: var(--bad);
}
.col h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 2px 4px 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}
.col h3 span {
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0 8px;
  letter-spacing: 0;
}
.col.over {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  background: var(--accent-soft);
}
.deal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 9px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.15s,
    transform 0.15s,
    border-color 0.15s;
}
.deal:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.deal:active {
  cursor: grabbing;
}
.deal b {
  display: block;
  font-weight: 700;
}
.deal small {
  color: var(--muted);
}

/* ---------- Dialog ---------- */
dialog {
  border: 0;
  border-radius: var(--r-lg);
  padding: 0;
  width: min(620px, 94vw);
  box-shadow: 0 30px 70px -10px rgba(15, 38, 32, 0.35);
  background: var(--panel);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(15, 38, 32, 0.45);
  backdrop-filter: blur(3px);
}
dialog[open] {
  animation: pop 0.16s ease-out;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
dialog form {
  padding: 28px;
}
dialog h3 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fields .full {
  grid-column: 1/-1;
}
dialog {
  max-height: 92vh;
}
dialog.wide {
  width: min(1100px, 96vw);
}
dialog.wide .fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}
dialog.wide .actions {
  position: sticky;
  bottom: -28px;
  background: var(--panel);
  margin: 22px -28px -28px;
  padding: 16px 28px 20px;
  z-index: 2;
}
.fsec {
  grid-column: 1/-1;
  margin: 10px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  font-weight: 800;
}
.fsec:first-child {
  margin-top: 0;
}
.req {
  color: var(--bad);
  font-weight: 800;
}
.lbl {
  display: block;
}
dialog.wide .fields textarea {
  min-height: 40px;
  height: 40px;
  resize: vertical;
}
.stack label,
.fields label {
  position: relative;
}
.pgrp {
  display: flex;
  min-width: 0;
}
.pgrp select {
  width: auto;
  flex: none;
  max-width: 45%;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  border-right: 0;
  font-weight: 600;
}
.pgrp input {
  flex: 1;
  min-width: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
input:disabled {
  background: var(--line-2);
  color: var(--muted);
  cursor: not-allowed;
}
input[type="file"] {
  padding: 6px 8px;
  background: var(--panel);
}
.fcur {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.fcur .rm {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.actions .danger {
  margin-right: auto;
}
/* ---------- Leads (Zoho-style) ---------- */
.lv-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lv-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex-wrap: wrap;
}
.lv-title h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.lv-view {
  width: auto;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--panel);
  font-size: 13px;
}
.lv-head #search {
  width: 240px;
  border-radius: 999px;
  padding-left: 16px;
  background: var(--panel);
}
.split {
  position: relative;
  display: inline-flex;
}
.split > .btn.primary:first-child {
  border-radius: 999px 0 0 999px;
}
.split > .caret {
  border-radius: 0 999px 999px 0;
  padding: 0 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px -10px rgba(22, 33, 29, 0.25);
  padding: 6px;
  min-width: 220px;
  z-index: 12;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}
.menu button:hover {
  background: var(--panel-2);
}
.menu button svg {
  color: var(--muted);
}
.lv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.btn.on {
  background: var(--accent-soft);
  border-color: #c9d8fb;
  color: var(--accent-deep);
}
.badge {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--panel-2);
}
.seg button {
  border: 0;
  background: transparent;
  width: 32px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
}
.seg button.on {
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.lv-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.lv-sort select {
  width: auto;
  min-height: 32px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.lv-meta {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lv-bulk {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}
.lv-bulk select {
  width: auto;
  min-height: 32px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.lv-bulk b {
  font-size: 13px;
}
.lv-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.lv-wrap.nopanel {
  grid-template-columns: minmax(0, 1fr);
}
.lv-wrap.nopanel .lv-panel {
  display: none;
}
.lv-panel {
  padding: 14px 12px;
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}
.lv-panel .ptitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  margin: 0 2px 10px;
}
.lv-panel .ptitle button {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.lv-panel input[type="search"] {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.lv-panel details {
  border-top: 1px solid var(--line-2);
  margin-top: 10px;
  padding-top: 6px;
}
.lv-panel summary {
  cursor: pointer;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 800;
  padding: 6px 2px;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.lv-panel summary::-webkit-details-marker {
  display: none;
}
.lv-panel summary::after {
  content: "+";
  font-size: 14px;
}
.lv-panel details[open] summary::after {
  content: "–";
}
.lv-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
}
.lv-opt:hover {
  background: var(--panel-2);
}
.lv-opt span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lv-opt small {
  color: var(--muted);
  font-weight: 700;
}
.lv-table th.ck,
.lv-table td.ck {
  width: 44px;
  padding-right: 0;
}
.lv-table th,
.lv-table td {
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
}
.lv-table td.em a {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.split > .caret svg {
  transform: rotate(90deg);
}
main:has(.lv-head) {
  max-width: 1600px;
}
.lv-table tbody tr.sel td {
  background: var(--accent-soft);
}
.lv-table.dense td {
  padding-top: 6px;
  padding-bottom: 6px;
}
.lv-table.dense .lv-name small {
  display: none;
}
.lv-name small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.ph {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ph a.ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.ph a.ic:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.ph a.ic.wa {
  background: #e3f6e9;
  color: #15803d;
}
.ph a.ic.wa:hover {
  background: #15803d;
  color: #fff;
}
.src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.src::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--muted);
}
.src.justdial::before {
  background: #e08a1e;
}
.src.indiamart::before {
  background: #2563eb;
}
.src.website::before {
  background: var(--accent);
}
.sync-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sync-bar .src {
  display: flex;
  gap: 6px;
  margin-right: auto;
  flex-wrap: wrap;
}

/* ---------- Attendance calendar ---------- */
.cal-card {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.cal-card .card-title {
  padding: 10px 14px;
}
.cal-card .card-body {
  padding: 14px;
}
.cal-head {
  flex-wrap: wrap;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-nav b {
  min-width: 130px;
  text-align: center;
  font-size: 14px;
}
.cal-user {
  width: auto;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.cal-sum {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cal-sum .k {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
}
.cal-sum .k::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: currentColor;
}
.cal-sum .present {
  color: #16a34a;
}
.cal-sum .absent {
  color: var(--bad);
}
.cal-sum .leave {
  color: #7e22ce;
}
.cal-sum .holiday {
  color: #ca8a04;
}
.cal-sum b {
  color: var(--ink);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-w {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  padding: 2px 0 4px;
}
.cal-d {
  position: relative;
  min-height: 50px;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font: inherit;
  color: var(--ink);
  text-align: left;
  min-width: 0;
}
.cal-n {
  font-weight: 800;
  font-size: 12.5px;
}
.cal-l {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.cal-s {
  display: none;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cal-d.blank {
  border: 0;
  background: none;
}
.cal-d.future {
  color: var(--muted);
  background: var(--panel-2);
  opacity: 0.65;
}
.cal-d.present {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.cal-d.present .cal-n {
  color: #fff;
}
.cal-d.absent {
  background: var(--bad-soft);
  border-color: #f3c9b4;
}
.cal-d.absent .cal-l,
.cal-d.absent .cal-n {
  color: var(--bad);
}
.cal-d.absent::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bad);
}
.cal-d.leave {
  background: #f3e8ff;
  border-color: #e9d5ff;
}
.cal-d.leave .cal-l {
  color: #7e22ce;
}
.cal-d.holiday {
  background: #fef08a;
  border-color: #fde047;
}
.cal-d.holiday .cal-l,
.cal-d.holiday .cal-n {
  color: #854d0e;
}
.cal-d.off {
  background: #dbeafe;
  border-color: #bfdbfe;
}
.cal-d.off .cal-l,
.cal-d.off .cal-n {
  color: #1d4ed8;
}
.cal-d.is-today {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.cal-d.today .cal-l {
  color: var(--accent-deep);
}
button.cal-d {
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
button.cal-d:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
button.cal-d.today {
  animation: calPulse 1.8s ease-in-out infinite;
}
@keyframes calPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(215, 25, 45, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(215, 25, 45, 0);
  }
}
html[data-theme="dark"] .cal-d.present {
  background: #15803d;
  border-color: #15803d;
}
html[data-theme="dark"] .cal-d.absent {
  border-color: #5a2a20;
}
html[data-theme="dark"] .cal-d.leave {
  background: #2a1740;
  border-color: #3f2560;
}
html[data-theme="dark"] .cal-d.off {
  background: #132447;
  border-color: #1e3a6b;
}
html[data-theme="dark"] .cal-d.off .cal-l,
html[data-theme="dark"] .cal-d.off .cal-n {
  color: #93c5fd;
}
html[data-theme="dark"] .cal-d.leave .cal-l,
html[data-theme="dark"] .cal-sum .leave {
  color: #d8b4fe;
}
html[data-theme="dark"] .cal-d.holiday {
  background: #3d3510;
  border-color: #6b5a14;
}
html[data-theme="dark"] .cal-d.holiday .cal-n {
  color: #fde047;
}
html[data-theme="dark"] .cal-d.holiday .cal-l,
html[data-theme="dark"] .cal-sum .holiday {
  color: #fde047;
}
@media (max-width: 860px) {
  .cal-grid {
    gap: 4px;
  }
  .cal-d {
    min-height: 52px;
    padding: 5px 6px;
  }
  .cal-s {
    display: none;
  }
  .cal-l {
    font-size: 9.5px;
  }
  .cal-n {
    font-size: 12.5px;
  }
  .cal-d.absent::after {
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
  }
  .cal-nav b {
    min-width: 0;
  }
}

/* ---------- Notifications ---------- */
.bell-wrap {
  position: relative;
}
.bell {
  position: relative;
  color: var(--ink-2);
}
.bell-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
  line-height: 1;
}
.bell-badge[hidden] {
  display: none;
}
.launch .bell-badge {
  border-color: #f4f5f7;
}
html[data-theme="dark"] .launch .bell-badge {
  border-color: #0f1214;
}
.bell-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(16, 24, 40, 0.28);
  z-index: 30;
  overflow: hidden;
  text-align: left;
}
.bell-panel[hidden] {
  display: none;
}
.bp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
}
.bp-desk {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  text-align: left;
}
.bp-list {
  max-height: 380px;
  overflow: auto;
}
.bp-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 11px 14px;
  cursor: pointer;
  text-align: left;
}
.bp-item:hover {
  background: var(--panel-2);
}
.bp-item.unread {
  background: var(--accent-soft);
}
.bp-ic {
  flex: none;
  margin-top: 5px;
}
.bp-ic.src::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.bp-t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bp-t b {
  font-size: 13.5px;
  font-weight: 700;
}
.bp-t small {
  color: var(--muted);
  font-size: 12px;
}
.bp-t .bp-at {
  font-size: 11px;
  margin-top: 2px;
}
#toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  max-width: min(380px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 10px 12px 14px;
  box-shadow: 0 16px 36px -12px rgba(16, 24, 40, 0.35);
  animation: toastIn 0.25s ease-out;
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.toast > svg {
  color: var(--accent);
  flex: none;
}
.toast.out {
  opacity: 0;
  transform: translateY(8px);
}
.toast-t {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.toast-t b {
  font-size: 14px;
}
.toast-t span {
  font-size: 12.5px;
  color: var(--muted);
}
.toast-x {
  width: 28px;
  height: 28px;
  font-size: 13px;
  color: var(--muted);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Expenses ---------- */
.exp-month {
  width: auto;
  border-radius: 999px;
  background: var(--panel);
  min-height: 38px;
  padding: 6px 12px;
}
.exp-grid .tbl td,
.exp-grid .tbl th {
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
}
.exp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}
.exp-bar {
  margin-bottom: 12px;
}
.exp-bar:last-child {
  margin-bottom: 0;
}
.exp-bl {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 5px;
}
.exp-bl span {
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exp-track {
  height: 8px;
  border-radius: 4px;
  background: var(--line-2);
  overflow: hidden;
}
.exp-track span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
}
.app-tile svg[data-k="expenses"] [fill="#fbbd3b"] {
  fill: var(--tile-bg);
  opacity: 1;
}
.app-tile svg[data-k="expenses"] circle {
  fill: currentColor;
}
@media (max-width: 1480px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= Dark mode ================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1214;
  --panel: #171b1f;
  --panel-2: #1d2227;
  --ink: #e7eaee;
  --ink-2: #c3c9d0;
  --muted: #8b939c;
  --line: #2b3137;
  --line-2: #22282d;
  --accent: #e5394a;
  --accent-hover: #c81e30;
  --accent-deep: #93c5fd;
  --accent-soft: #172554;
  --saffron-soft: #352612;
  --good: #34d399;
  --good-soft: #10301f;
  --bad: #f87171;
  --bad-soft: #3a1a1a;
  --warn: #fbbf24;
  --warn-soft: #352c12;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -10px rgba(0, 0, 0, 0.55);
  --tile-bg: #171b1f;
  --icon: #60a5fa;
  --link: #93c5fd;
}
html[data-theme="dark"] body {
  background: var(--bg);
}
html[data-theme="dark"] ::selection {
  background: #1e3a8a;
}
html[data-theme="dark"] input:hover,
html[data-theme="dark"] select:hover,
html[data-theme="dark"] textarea:hover,
html[data-theme="dark"] .deal:hover,
html[data-theme="dark"] .btn:hover {
  border-color: #3a4249;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  background: var(--panel);
}
html[data-theme="dark"] header.top {
  background: rgba(15, 18, 20, 0.85);
}
html[data-theme="dark"] .crumbs .slash {
  color: #4a525a;
}
html[data-theme="dark"] tbody tr:hover td {
  background: #1c2125;
}
html[data-theme="dark"] .col {
  background: #14181b;
}
html[data-theme="dark"] .col h3 span {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .banner.warn {
  color: #fcd34d;
  border-color: #5a4716;
}
html[data-theme="dark"] .banner.info {
  border-color: #1e3a8a;
}
html[data-theme="dark"] .banner.good {
  color: #86efac;
  border-color: #1b4a2c;
}
html[data-theme="dark"] .note {
  border-color: #5a4116;
}
html[data-theme="dark"] .subtabs a.active,
html[data-theme="dark"] .btn.on,
html[data-theme="dark"] .net {
  border-color: #1e3a8a;
}
html[data-theme="dark"] .role,
html[data-theme="dark"] .todo .count,
html[data-theme="dark"] .camp-ic,
html[data-theme="dark"] .due.today {
  color: #f5b453;
  border-color: #5a4116;
}
html[data-theme="dark"] .btn.danger:hover {
  border-color: #5a2a20;
}
html[data-theme="dark"] .ph a.ic.wa {
  background: #10301f;
  color: #4ade80;
}
html[data-theme="dark"] dialog::backdrop,
html[data-theme="dark"] body.nav-open .scrim {
  background: rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .launch {
  background: #0f1214;
}
html[data-theme="dark"] .l-search {
  background: #171b1f;
  border-color: #2b3137;
  color: #8b939c;
}
html[data-theme="dark"] .l-who:hover {
  background: #1d2227;
}
html[data-theme="dark"] .app-tile {
  background: #171b1f;
  border-color: #2b3137;
  box-shadow: none;
}
html[data-theme="dark"] .lapp:hover .app-tile {
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.8);
}
html[data-theme="dark"] .app-name {
  color: #d6dbe0;
}
html[data-theme="dark"] .app-badge {
  border-color: #0f1214;
}
html[data-theme="dark"] .side {
  background: #0e1526;
}
html[data-theme="dark"] .mail-body,
html[data-theme="dark"] .camp-msg {
  color: var(--ink-2);
}
html[data-theme="dark"] .wa-bubble {
  background: #1f4f3a;
  color: #e7f5ec;
}
html[data-theme="dark"] .auth-card {
  background: var(--panel);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  html[data-theme="dark"] {
    --bg: #fff;
    --panel: #fff;
    --panel-2: #f7f7f7;
    --ink: #111;
    --ink-2: #333;
    --muted: #666;
    --line: #ddd;
    --line-2: #eee;
  }
  body > *:not(dialog) {
    display: none !important;
  }
  dialog {
    position: static;
    box-shadow: none;
    width: 100%;
  }
  dialog h3,
  .actions {
    display: none !important;
  }
}
@media (max-width: 1000px) {
  dialog.wide .fields {
    grid-template-columns: 1fr 1fr;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .lv-wrap {
    grid-template-columns: 1fr;
  }
  .lv-panel {
    position: static;
    max-height: none;
  }
}
@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  body.nav-open .side {
    transform: none;
  }
  body.nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 38, 32, 0.45);
    z-index: 15;
  }
  .menu-btn {
    display: grid;
  }
  header.top {
    padding: 0 12px;
  }
  main {
    padding: 20px 16px;
  }
  .grid2,
  .fields,
  .slip-meta,
  dialog.wide .fields {
    grid-template-columns: 1fr;
  }
  .page-head #search,
  .lv-head #search {
    width: 100%;
  }
  .hide-sm {
    display: none !important;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-card {
    padding: 26px;
    box-shadow: none;
    border: 0;
    background: transparent;
  }
  .today .clock {
    font-size: 44px;
  }
  .hello h2 {
    font-size: 28px;
  }
}

/* =========================================================
   Accountancy
   ========================================================= */
.ac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.ac-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ac-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-left: 8px;
}
.ac-legend i.in,
.ac-bars .in {
  background: var(--good);
}
.ac-legend i.out,
.ac-bars .out {
  background: var(--accent);
}
.ac-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  height: 230px;
  padding: 8px 18px 16px;
}
.ac-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ac-bars {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}
.ac-bars span {
  width: 42%;
  max-width: 16px;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}
.ac-col small {
  font-size: 11px;
  color: var(--muted);
}
.ac-accs > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.ac-accs > div:last-child {
  border-bottom: 0;
}
.ac-accs span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
}
.ac-accs small {
  font-weight: 500;
  font-size: 12px;
}
.ac-accs b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ac-tabs {
  max-width: 460px;
  margin: 0 0 14px;
}
.ac-src {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-2);
}
.ac-src-billing {
  background: var(--good-soft);
  color: var(--good);
}
.ac-src-expenses {
  background: var(--bad-soft);
  color: var(--bad);
}
.ac-src-payroll {
  background: var(--warn-soft);
  color: var(--warn);
}
.ac-src-journal {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.ac-pnl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.ac-total td {
  font-weight: 800;
  border-top: 2px solid var(--line);
}
.ac-net {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-weight: 700;
}
.ac-net b {
  font-size: 22px;
}
.ac-net.good {
  background: var(--good-soft);
  color: var(--good);
}
.ac-net.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
@media (max-width: 900px) {
  .ac-grid,
  .ac-pnl {
    grid-template-columns: 1fr;
  }
  .ac-chart {
    padding: 8px 10px 14px;
    gap: 3px;
  }
}

/* =========================================================
   Simple look (inside the apps)
   Plain sans-serif everywhere, flatter cards, squarer buttons,
   no decorative colour strips. Delete this block to go back.
   ========================================================= */
:root {
  --display: var(--font);
  --r: 10px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
html[data-theme="dark"] {
  --shadow: none;
}
.page-head h2,
.lv-title h2 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
dialog h3,
.profile-top h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stats {
  gap: 12px;
}
.stats > .stat::after {
  display: none;
}
.stat .k {
  font-weight: 600;
}
.stat .v {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
}
.btn {
  border-radius: 8px;
  height: 36px;
  padding: 0 14px;
  box-shadow: none;
}
.btn.primary {
  box-shadow: none;
}
.btn.sm {
  border-radius: 7px;
}
.split > .btn.primary:first-child {
  border-radius: 8px 0 0 8px;
}
.split > .caret {
  border-radius: 0 8px 8px 0;
}
.page-head #search,
.lv-head #search,
.exp-month {
  border-radius: 8px;
}
.tabs,
.tabs a {
  border-radius: 8px;
}
.card-title {
  font-weight: 700;
}
.lv-view,
.seg,
.lv-sort select,
.lv-bulk select,
.lv-panel input[type="search"],
.cal-card select {
  border-radius: 8px;
}
.seg button {
  border-radius: 6px;
}

/* =========================================================
   Compact sizing (inside the apps)
   Smaller text, narrower sidebar, tighter rows and controls.
   Delete this block to go back to the larger sizes.
   ========================================================= */
.app {
  font-size: 13px;
  grid-template-columns: 216px minmax(0, 1fr);
}
.side .brand {
  padding-top: 14px;
  padding-bottom: 14px;
}
.mods a {
  padding: 7px 10px;
  gap: 9px;
  font-size: 13px;
}
.side-app {
  margin: 12px 10px 6px;
  padding-top: 12px;
  font-size: 13.5px;
}
.pages a {
  padding: 5px 10px;
  font-size: 12.5px;
}
.side-foot {
  padding: 10px 12px;
  gap: 8px;
}
.side-foot b {
  font-size: 12.5px;
}
.side-foot small {
  font-size: 11.5px;
}
.avatar {
  width: 30px;
  height: 30px;
  font-size: 11.5px;
}
header.top {
  height: 50px;
  padding: 0 22px;
}
.crumbs {
  font-size: 12.5px;
}
main {
  padding: 20px 22px;
}
.page-head {
  margin-bottom: 14px;
  gap: 8px;
}
.page-head h2,
.lv-title h2 {
  font-size: 18px;
}
.btn {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  gap: 6px;
}
.btn.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
}
.btn.big {
  height: 36px;
}
.icon-btn {
  width: 32px;
  height: 32px;
}
input,
select,
textarea {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
textarea {
  min-height: auto;
}
.page-head #search,
.lv-head #search {
  height: 32px;
}
.exp-month {
  min-height: 32px;
  padding: 4px 10px;
}
.stats {
  gap: 10px;
  margin-bottom: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stats > .stat {
  padding: 12px 14px;
}
.stat .k {
  font-size: 11.5px;
}
.stat .v {
  font-size: 20px;
  margin-top: 2px;
}
.card-title {
  font-size: 13.5px;
  padding: 11px 14px;
}
.card-body {
  padding: 12px 14px;
}
th,
td {
  padding: 8px 12px;
}
th {
  font-size: 10.5px;
}
.lv-table th,
.lv-table td {
  padding-left: 10px;
  padding-right: 10px;
}
.lv-table th.ck,
.lv-table td.ck {
  width: 36px;
}
.lv-name small {
  font-size: 11px;
}
.ph a.ic {
  width: 22px;
  height: 22px;
}
.ph a.ic svg {
  width: 12px;
  height: 12px;
}
.lv-bar {
  padding: 6px 8px;
  margin-bottom: 10px;
}
.lv-panel {
  padding: 10px;
  top: 62px;
  max-height: calc(100vh - 76px);
}
.lv-opt {
  font-size: 12.5px;
  padding: 3px 4px;
}
.pill {
  font-size: 11px;
}
dialog {
  width: min(560px, 94vw);
}
dialog form {
  padding: 20px 22px;
}
dialog h3 {
  font-size: 17px;
  margin-bottom: 14px;
}
.fields {
  gap: 10px 14px;
}
.fields label {
  font-size: 12px;
}
.tabs a {
  padding: 5px 10px;
  font-size: 12.5px;
}
.ac-chart {
  height: 180px;
}
@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* leads table: fit on laptop screens */
.lv-table td.em a {
  max-width: 170px;
}
.lv-table td:last-child {
  white-space: nowrap;
}
/* lead status dropdown (looks like a status pill) */
.st-sel {
  width: auto;
  min-height: 0;
  height: 26px;
  padding: 0 24px 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: var(--line-2);
  color: var(--ink-2);
}
.st-sel:hover {
  border-color: var(--line);
}
.st-sel.good {
  background-color: var(--good-soft);
  color: var(--good);
}
.st-sel.warn {
  background-color: var(--warn-soft);
  color: var(--warn);
}
.st-sel.bad {
  background-color: var(--bad-soft);
  color: var(--bad);
}
.st-sel.closed {
  background-color: var(--accent-soft);
  color: var(--accent-deep);
}
.st-sel option {
  background: var(--panel);
  color: var(--ink);
}

/* =========================================================
   Payroll
   ========================================================= */
/* sidebar group (e.g. Payroll) */
.pgroup summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--side-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.pgroup summary::-webkit-details-marker {
  display: none;
}
.pgroup summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.7;
  transition: transform 0.15s;
}
.pgroup[open] summary::after {
  transform: rotate(45deg);
}
.pgroup summary:hover {
  background: rgba(255, 255, 255, 0.06);
}
.pgroup summary.has-active {
  color: #fff;
}
.pgroup > a {
  margin-left: 12px;
  padding-left: 12px !important;
  border-left: 1px solid var(--side-2);
  border-radius: 0 8px 8px 0;
}
/* salary slip form */
.ps-card {
  padding: 16px 18px;
}
.ps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
}
.ps-grid label,
.ps-col label,
.ps-net label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.ps-grid .span2 {
  grid-column: span 2;
}
.ps-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.ps-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.ps-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ps-net {
  max-width: 380px;
  margin: 18px auto 0;
  text-align: center;
}
.ps-net input {
  text-align: center;
  font-weight: 800;
  font-size: 16px;
}
.ps-last {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 2fr;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.ps-card input[readonly] {
  background: var(--line-2);
  color: var(--ink);
}
.ps-note {
  text-align: center;
  color: var(--bad);
  font-size: 12px;
  margin: 16px 0 10px;
}
.ps-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ps-actions .btn.primary {
  min-width: 160px;
  justify-content: center;
}
@media (max-width: 1100px) {
  .ps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ps-grid,
  .ps-split,
  .ps-last {
    grid-template-columns: 1fr;
  }
  .ps-grid .span2 {
    grid-column: auto;
  }
}

/* =========================================================
   WhatsApp API: inbox, stats, setup guide
   ========================================================= */
.wa-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  margin-top: 4px;
  word-break: break-all;
}
.wa-guide h4 {
  margin: 4px 0 6px;
  font-size: 13.5px;
}
.wa-guide ol {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.wa-guide li {
  margin-bottom: 4px;
}
.wa-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wa-stats div {
  padding: 8px 10px;
  border-right: 1px solid var(--line-2);
}
.wa-stats div:last-child {
  border-right: 0;
}
.wa-stats b {
  display: block;
  font-size: 18px;
}
.wa-stats span {
  font-size: 11.5px;
  color: var(--muted);
}
.wa-inbox {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh / var(--ui-scale, 1) - 150px);
  min-height: 460px;
  overflow: hidden;
  padding: 0;
}
.wa-list {
  border-right: 1px solid var(--line);
  overflow: auto;
}
.wa-th {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.wa-th:hover {
  background: var(--panel-2);
}
.wa-th.on {
  background: var(--accent-soft);
}
.wa-th-b {
  flex: 1;
  min-width: 0;
}
.wa-th-b b {
  display: block;
  font-size: 13px;
}
.wa-th-b small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-th-m {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.wa-th-m small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.wa-th-m i {
  font-style: normal;
  background: #25d366;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.wa-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #efeae2;
}
html[data-theme="dark"] .wa-chat {
  background: #0b141a;
}
.wa-chat-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.wa-chat-h small {
  color: var(--muted);
  margin-right: auto;
}
.wa-msgs {
  flex: 1;
  overflow: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wa-m {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}
.wa-m.in {
  align-self: flex-start;
}
.wa-m.out {
  align-self: flex-end;
  align-items: flex-end;
}
.wa-b {
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 6px 9px 4px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}
.wa-m.out .wa-b {
  background: #d9fdd3;
}
html[data-theme="dark"] .wa-b {
  background: #202c33;
  color: #e9edef;
}
html[data-theme="dark"] .wa-m.out .wa-b {
  background: #005c4b;
}
.wa-b em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: #667781;
  margin-top: 3px;
}
.wa-meta {
  display: block;
  text-align: right;
  font-size: 10.5px;
  color: #667781;
  margin-top: 2px;
}
.wa-tick {
  margin-left: 3px;
  font-weight: 700;
}
.wa-tick.read {
  color: #53bdeb;
}
.wa-tick.failed {
  color: #e11d48;
}
.wa-err {
  font-size: 11px;
  color: var(--bad);
  margin-top: 2px;
}
.wa-compose {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 12px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.wa-compose textarea {
  flex: 1;
  resize: none;
}
@media (max-width: 860px) {
  .wa-inbox {
    grid-template-columns: 1fr;
    height: auto;
  }
  .wa-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .wa-chat {
    min-height: 420px;
  }
}

/* =========================================================
   Overall scale inside the apps
   Shrinks everything inside the apps (not Home or login) evenly.
   Change --ui-scale to make it bigger (e.g. 0.9) or smaller (e.g. 0.8).
   ========================================================= */
:root {
  --ui-scale: 0.93;
}
@media (min-width: 861px) {
  .app,
  dialog,
  #toasts {
    zoom: var(--ui-scale);
  }
  .app {
    min-height: calc(100vh / var(--ui-scale));
  }
  .side {
    height: calc(100vh / var(--ui-scale));
  }
  .lv-panel {
    max-height: calc((100vh - 64px) / var(--ui-scale));
  }
  dialog {
    max-height: calc(92vh / var(--ui-scale));
  }
}
/* salary slip preview inside the pop-up (the A4 page is scaled down to fit) */
.psd-wrap {
  background: #eceef2;
  border-radius: 8px;
  padding: 14px;
  max-height: 64vh;
  overflow: auto;
}
.psd-scale {
  width: 794px;
  margin: 0 auto;
  zoom: 0.78;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
dialog.wide:has(.psd-wrap) {
  width: min(720px, 96vw);
}
/* global search in the top bar */
.gsearch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 40vw);
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  margin-right: 6px;
}
.gsearch:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gsearch input {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  height: 32px;
  font-size: 13px;
  color: var(--ink);
  box-shadow: none !important;
}
.gsearch kbd {
  font: 600 10.5px var(--font);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
.gsearch:focus-within kbd {
  display: none;
}
.gs-res {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(16, 24, 40, 0.28);
  padding: 6px;
  z-index: 30;
}
.gs-g {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 8px 4px;
}
.gs-i {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.gs-i b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.gs-i small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.gs-i.on,
.gs-i:hover {
  background: var(--accent-soft);
}
.gs-none {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 860px) {
  .gsearch {
    width: auto;
    flex: 1;
  }
}
@media (max-width: 860px) {
  .gs-res {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 56px;
  }
}
/* login screen: left side shows only an image (replace assets/login-side.svg to change it) */
.auth-side {
  /* office photo from Unsplash (free licence); the illustration underneath is a fallback */
  background:
    linear-gradient(180deg, rgba(10, 18, 38, 0.05) 0%, rgba(10, 18, 38, 0.35) 100%),
    url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1400&q=80")
      center / cover no-repeat,
    #0a1226 url("../assets/login-side.svg") center / cover no-repeat;
  padding: 0;
}
.auth-logo {
  display: inline-block;
  margin-bottom: 18px;
}
.auth-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* =========================================================
   Landing page (before sign in)
   ========================================================= */
.lp {
  --lp-red: #dc0414;
  --lp-ink: #0f1420;
  --lp-muted: #5b6372;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(220, 4, 20, 0.07), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(15, 20, 32, 0.05), transparent 60%), #fbfbfc;
  color: var(--lp-ink);
  font-family: var(--font);
}
.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px);
}
.lp-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.lp-actions {
  display: flex;
  gap: 10px;
}
.lp .btn {
  border-radius: 10px;
  font-weight: 700;
}
.lp-btn-red {
  background: var(--lp-red);
  border-color: var(--lp-red);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(220, 4, 20, 0.7);
}
.lp-btn-red:hover {
  background: #b70311;
  border-color: #b70311;
  text-decoration: none;
}
.lp-btn-ghost {
  background: #fff;
  border-color: #d9dce2;
  color: var(--lp-ink);
}
.lp-btn-ghost:hover {
  border-color: var(--lp-ink);
  text-decoration: none;
}
.lp-hero {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 40px) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6e8ec;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lp-muted);
}
.lp-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-red);
}
.lp-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lp-copy h1 em {
  font-style: normal;
  color: var(--lp-red);
}
.lp-copy p {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.6;
  color: var(--lp-muted);
  max-width: 500px;
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.lp-big {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
}
.lp-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--lp-muted);
}
.lp-note svg {
  color: #16a34a;
}
/* product preview */
.lp-visual {
  position: relative;
}
.lp-glow {
  position: absolute;
  inset: 8% -4% -6% 8%;
  background: radial-gradient(closest-side, rgba(220, 4, 20, 0.18), transparent);
  filter: blur(20px);
}
.lp-window {
  position: relative;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  box-shadow:
    0 30px 60px -24px rgba(15, 20, 32, 0.28),
    0 2px 6px rgba(15, 20, 32, 0.05);
  overflow: hidden;
}
.lp-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f4f5f7;
  border-bottom: 1px solid #e8eaee;
}
.lp-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dce2;
}
.lp-bar i:first-child {
  background: #ff5f57;
}
.lp-bar i:nth-child(2) {
  background: #febc2e;
}
.lp-bar i:nth-child(3) {
  background: #28c840;
}
.lp-bar span {
  margin: 0 auto;
  font-size: 11.5px;
  color: #8a909b;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 6px;
  padding: 2px 40px;
}
.lp-screen {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.lp-hello b {
  display: block;
  font-size: 17px;
}
.lp-hello small {
  color: #8a909b;
  font-size: 12px;
}
.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lp-stats div {
  border: 1px solid #eceef1;
  border-radius: 10px;
  padding: 10px 12px;
}
.lp-stats small {
  display: block;
  font-size: 11px;
  color: #8a909b;
}
.lp-stats b {
  display: block;
  font-size: 18px;
  margin-top: 2px;
}
.lp-stats span {
  font-size: 11px;
  font-weight: 700;
  color: #8a909b;
}
.lp-stats span.up {
  color: #16a34a;
}
.lp-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.lp-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.lp-tile .app-tile {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  --tile-bg: #fff;
  --icon: #1d4ed8;
  color: #1d4ed8;
  background: #fff;
  border: 1px solid #e6e8ec;
}
.lp-tile:nth-child(odd) .app-tile {
  color: var(--lp-red);
}
.lp-tile small {
  font-size: 10.5px;
  font-weight: 600;
  color: #4b5260;
}
.lp-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding: 10px 12px 0;
  border: 1px solid #eceef1;
  border-radius: 10px;
}
.lp-chart span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #ff4a5c, var(--lp-red));
  opacity: 0.85;
}
.lp-chart span:nth-child(even) {
  background: #1f2430;
  opacity: 0.85;
}
.lp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(15, 20, 32, 0.35);
  font-size: 12.5px;
  color: var(--lp-muted);
  white-space: nowrap;
}
.lp-float b {
  color: var(--lp-ink);
}
.lp-f1 {
  left: -22px;
  bottom: 28px;
}
.lp-f1 svg {
  color: #16a34a;
}
.lp-f2 {
  right: -16px;
  top: 64px;
}
.lp-f2 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-red);
  box-shadow: 0 0 0 4px rgba(220, 4, 20, 0.15);
}
.lp-strip {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #8a909b;
  border-top: 1px solid #eceef1;
}
.lp-strip i {
  font-style: normal;
  color: #c9cdd4;
}
.lp-foot {
  text-align: center;
  font-size: 12px;
  color: #9aa0aa;
  padding: 6px 16px 22px;
}
@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
  }
  .lp-f1 {
    left: 8px;
  }
  .lp-f2 {
    right: 8px;
  }
}
@media (max-width: 560px) {
  .lp-logo-img {
    height: 38px;
  }
  .lp-actions .btn {
    height: 34px;
    padding: 0 12px;
  }
  .lp-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-big {
    flex: 1;
    justify-content: center;
  }
  .lp-bar span {
    padding: 2px 14px;
  }
}
@media (max-width: 560px) {
  .lp-float {
    display: none;
  }
}
/* landing page: phone layout (app-style welcome screen) */
.lp-mapps {
  display: none;
}
@media (max-width: 560px) {
  .lp {
    min-height: 100svh;
    background:
      radial-gradient(420px 320px at 100% 0%, rgba(220, 4, 20, 0.1), transparent 70%),
      radial-gradient(360px 300px at 0% 60%, rgba(15, 20, 32, 0.05), transparent 70%), #fbfbfc;
  }
  .lp-top {
    justify-content: center;
    padding: 18px 16px 6px;
  }
  .lp-actions,
  .lp-visual,
  .lp-strip {
    display: none;
  }
  .lp-logo-img {
    height: 44px;
  }
  .lp-hero {
    display: flex;
    padding: 10px 20px 24px;
  }
  .lp-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .lp-badge {
    font-size: 11.5px;
    margin-top: 8px;
  }
  .lp-copy h1 {
    font-size: 34px;
    margin-top: 16px;
  }
  .lp-copy p {
    font-size: 15px;
    margin-top: 12px;
  }
  .lp-mapps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin: 26px 0 6px;
  }
  .lp-mapps div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 6px 12px;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 16px;
    box-shadow: 0 6px 16px -12px rgba(15, 20, 32, 0.35);
  }
  .lp-mapps .app-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    --tile-bg: #fdecee;
    background: #fdecee;
    color: var(--lp-red);
  }
  .lp-mapps div:nth-child(even) .app-tile {
    --tile-bg: #eef0f4;
    background: #eef0f4;
    color: #1f2430;
  }
  .lp-mapps small {
    font-size: 11.5px;
    font-weight: 700;
    color: #3b4250;
  }
  .lp-cta {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
  }
  .lp-big {
    width: 100%;
    height: 52px;
    border-radius: 14px !important;
    font-size: 16px;
  }
  .lp-note {
    justify-content: center;
    margin-top: 14px;
    font-size: 12.5px;
  }
  .lp-foot {
    padding: 0 16px 18px;
    font-size: 11px;
  }
}
@media (max-width: 560px) {
  .lp-copy > *,
  .lp-cta > * {
    flex-shrink: 0;
  }
}
@media (max-width: 560px) {
  .lp-cta .lp-big {
    flex: none;
    height: 54px;
    justify-content: center;
  }
}
/* Download app button + install dialog */
.lp-btn-dl {
  background: #111318;
  border-color: #111318;
  color: #fff;
}
.lp-btn-dl:hover {
  background: #2a2e37;
  border-color: #2a2e37;
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dl-icon {
  height: 40px;
  width: auto;
}
.dl-head b {
  display: block;
  font-size: 15px;
}
.dl-head small {
  color: var(--muted);
}
.dl-steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  font-size: 14px;
}
@media (max-width: 560px) {
  /* phones: header shows the logo and only the Download app button */
  .lp-top {
    justify-content: space-between;
  }
  .lp-actions {
    display: flex;
  }
  .lp-actions .lp-btn-ghost,
  .lp-actions .lp-btn-red {
    display: none;
  }
  .lp-btn-dl {
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px;
  }
}
