/*! Rapport — the CRM that remembers every customer — © 2026 Hasib (OVERSHOOT). All rights reserved. Licensed, not sold: see LICENSE.md. */
:root {
  --font:
    "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #ebe8e1;
  --mesh-a: #f2d3bd;
  --mesh-b: #cfdfcd;
  --mesh-c: #f1e4bf;
  --glass: #ffffff75;
  --glass-2: #ffffffa3;
  --glass-3: #ffffffd1;
  --solid: #f6f4ef;
  --float: #fdfcf9;
  --well: #17191a0f;
  --line: #17191a17;
  --line-2: #17191a29;
  --rim: #ffffffc7;
  --shadow: 0 1px 0 #ffffffb3 inset, 0 24px 48px -30px #46321e47;
  --shadow-pop: 0 24px 60px -18px #281e1452, 0 2px 6px #281e1414;
  --text: #17191a;
  --muted: #676a66;
  --faint: #8e918c;
  --cream: #fbf8f2;
  --butter: #f2c94c;
  --on-butter: #17191a;
  --pine: #2f5c50;
  --on-pine: #fbf8f2;
  --tomato: #c8431f;
  --on-tomato: #fbf8f2;
  --ink: #17191a;
  --on-ink: #fbf8f2;
  --plain: #ffffff94;
  --on-plain: #17191a;
  --good: #2f7a52;
  --bad: #c8431f;
  --dock: #17191a;
  --on-dock: #fbf8f2;
  --pill: #17191a;
  --on-pill: #fbf8f2;
  --r-card: 26px;
  --r-tile: 22px;
  --r-ctl: 999px;
  --gap: 16px;
  --dock-x: 20px;
  --dock-w: 60px;
  --gutter: clamp(16px, 1.6vw, 28px);
  --app-max: 1840px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111412;
  --mesh-a: #c8431f47;
  --mesh-b: #2f5c5080;
  --mesh-c: #f2c94c1a;
  --glass: #ffffff0d;
  --glass-2: #ffffff16;
  --glass-3: #222624;
  --solid: #1c201e;
  --float: #242927;
  --well: #ffffff0f;
  --line: #ffffff14;
  --line-2: #ffffff29;
  --rim: #ffffff12;
  --shadow: 0 1px 0 #ffffff0d inset, 0 24px 48px -30px #000000b3;
  --shadow-pop: 0 24px 60px -18px #000000b3, 0 0 0 1px #ffffff14;
  --text: #f1eee8;
  --muted: #a3a6a0;
  --faint: #7d807b;
  --ink: #f1eee8;
  --on-ink: #17191a;
  --tomato: #d8532d;
  --plain: #ffffff12;
  --on-plain: #f1eee8;
  --good: #6cc59a;
  --bad: #f08a68;
  --dock: #ffffff14;
  --on-dock: #f1eee8;
  --pill: #f1eee8;
  --on-pill: #17191a;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  min-height: 100dvh;
  color: var(--text);
  font: 500 14px/1.45 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  margin: 0;
  overflow-x: hidden;
}
img,
svg {
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
[hidden] {
  display: none !important;
}
.num,
b[data-count],
.tnum {
  font-variant-numeric: tabular-nums;
}
.count-slot {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.count-slot__reserve {
  visibility: hidden;
}
.count-slot__value {
  position: absolute;
  inset: 0;
  text-align: inherit;
}
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  width: 18px;
  height: 18px;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.head__title:focus {
  outline: none;
}
.sr {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}
.skip {
  z-index: 100;
  background: var(--pill);
  color: var(--on-pill);
  border-radius: 12px;
  padding: 10px 16px;
  position: fixed;
  top: -60px;
  left: 12px;
}
.skip:focus {
  top: 12px;
}
::selection {
  background: var(--butter);
  color: #17191a;
}
mark {
  background: color-mix(in srgb, var(--butter) 70%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.mesh {
  z-index: -1;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.mesh i {
  filter: blur(60px);
  opacity: 0.95;
  will-change: transform;
  border-radius: 50%;
  position: absolute;
}
.mesh__a {
  background: radial-gradient(closest-side, var(--mesh-a), transparent);
  width: 62vmax;
  height: 62vmax;
  top: -24vmax;
  left: -18vmax;
}
.mesh__b {
  background: radial-gradient(closest-side, var(--mesh-b), transparent);
  width: 70vmax;
  height: 70vmax;
  bottom: -30vmax;
  right: -24vmax;
}
.mesh__c {
  background: radial-gradient(closest-side, var(--mesh-c), transparent);
  width: 46vmax;
  height: 46vmax;
  top: -16vmax;
  right: 8vmax;
}
html.js:not(.failsafe) .app {
  visibility: hidden;
}
html.js.is-ready .app {
  visibility: visible;
}
.app {
  max-width: var(--app-max);
  padding: 22px var(--gutter) 48px
    calc(var(--dock-x) + var(--dock-w) + var(--gutter));
  margin: 0 auto;
  overflow-x: clip;
}
.top {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  display: grid;
}
.brand {
  letter-spacing: -0.02em;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  display: inline-flex;
}
.brand__mark {
  background: var(--pill);
  width: 38px;
  height: 38px;
  color: var(--on-pill);
  border-radius: 12px;
  place-items: center;
  display: grid;
}
.brand__mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 22px;
  height: 22px;
}
.tabs {
  scrollbar-width: none;
  border-radius: 999px;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs__track {
  gap: 2px;
  width: max-content;
  padding: 4px;
  display: flex;
  position: relative;
}
.tab {
  z-index: 1;
  color: var(--text);
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 17px;
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
}
.tab:hover {
  background: var(--well);
}
.tab[aria-current="page"]:hover {
  background: 0 0;
}
.tabs__pill {
  z-index: 2;
  background: var(--pill);
  pointer-events: none;
  opacity: 0;
  gap: 2px;
  padding: 4px;
  display: flex;
  position: absolute;
  inset: 0;
}
.tabs__pill span {
  color: var(--on-pill);
  white-space: nowrap;
  padding: 10px 17px;
  font-size: 13.5px;
  font-weight: 600;
}
.top__tools {
  align-items: center;
  gap: 10px;
  display: flex;
}
.me {
  background: var(--glass-2);
  border: 1px solid var(--rim);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 2px;
}
.me img {
  object-fit: cover;
  border-radius: 50%;
  width: 100%;
  height: 100%;
}
.dot-badge {
  background: var(--tomato);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px var(--bg);
  border-radius: 50%;
  position: absolute;
  top: 9px;
  right: 10px;
}
.dock {
  z-index: 30;
  left: max(var(--dock-x), calc((100vw - var(--app-max)) / 2 + var(--dock-x)));
  background: var(--dock);
  height: fit-content;
  color: var(--on-dock);
  border-radius: 999px;
  flex-direction: column;
  gap: 4px;
  margin: auto 0;
  padding: 8px;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  box-shadow: 0 20px 40px -18px #00000073;
}
:root[data-theme="dark"] .dock {
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}
.dock__btn {
  opacity: 0.74;
  border-radius: 50%;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
  position: relative;
}
.dock__btn:hover,
.dock__btn:focus-visible,
.dock__btn[aria-expanded="true"],
.dock__btn[aria-current="page"] {
  opacity: 1;
  background: #ffffff1f;
}
.dock__btn:focus-visible {
  outline-color: var(--on-dock);
}
.dock__btn[aria-current="page"]:after {
  content: "";
  background: var(--butter);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  position: absolute;
  top: 50%;
  right: 3px;
}
.dock__sep {
  background: #ffffff24;
  height: 1px;
  margin: 4px 10px;
}
.dock__tip {
  background: var(--float);
  height: fit-content;
  color: var(--text);
  box-shadow: var(--shadow-pop);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
  border-radius: 10px;
  margin: auto 0;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% + 14px);
}
.dock__tip kbd {
  font: inherit;
  color: var(--muted);
  margin-left: 4px;
  font-size: 11px;
}
.dock__btn:hover .dock__tip,
.dock__btn:focus-visible .dock__tip {
  opacity: 1;
}
.dock__more,
.dock__theme .ico--sun {
  display: none;
}
:root[data-theme="dark"] .dock__theme .ico--sun {
  display: block;
}
:root[data-theme="dark"] .dock__theme .ico--moon {
  display: none;
}
.main,
.view {
  position: relative;
}
.head {
  flex-wrap: wrap;
  align-items: center;
  gap: 18px clamp(28px, 4vw, 72px);
  margin-bottom: 24px;
  display: flex;
}
.head__lead {
  flex: none;
  align-items: center;
  gap: 18px;
  display: flex;
}
.head__title {
  letter-spacing: -0.025em;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.04;
}
.head__title .word {
  vertical-align: top;
  margin-bottom: -0.08em;
  padding-bottom: 0.08em;
  display: inline-block;
  overflow: hidden;
}
.head__title .ch {
  display: inline-block;
}
.head__stats {
  flex-wrap: wrap;
  gap: 14px clamp(24px, 3.2vw, 56px);
  display: flex;
}
.stat {
  align-items: center;
  gap: 12px;
  display: flex;
}
.stat__ico {
  background: var(--glass-2);
  border: 1px solid var(--rim);
  border-radius: 50%;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
}
.stat__value {
  letter-spacing: -0.01em;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  display: flex;
}
.stat__label {
  color: var(--muted);
  max-width: 150px;
  font-size: 12.5px;
  line-height: 1.3;
}
.head__actions {
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}
.badge {
  letter-spacing: 0.01em;
  border-radius: 999px;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}
.badge--butter {
  background: var(--butter);
  color: var(--on-butter);
}
.badge--pine {
  background: var(--pine);
  color: var(--on-pine);
}
.badge--tomato {
  background: var(--tomato);
  color: var(--on-tomato);
}
.badge--plain {
  background: var(--glass-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.is-flash {
  animation: flash 0.9s var(--ease);
}
@keyframes flash {
  0% {
    color: var(--tomato);
  }
  to {
    color: inherit;
  }
}
.float-up {
  z-index: 90;
  pointer-events: none;
  color: var(--good);
  font-size: 14px;
  font-weight: 700;
  position: fixed;
}
.grid {
  gap: var(--gap);
  display: grid;
}
.card {
  border-radius: var(--r-card);
  background: var(--glass);
  border: 1px solid var(--rim);
  min-width: 0;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}
.card__head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 14px;
  display: flex;
}
.card__title {
  letter-spacing: -0.005em;
  font-size: 15px;
  font-weight: 600;
}
.card__sub {
  color: var(--muted);
  font-size: 12.5px;
}
.card__tools {
  align-items: center;
  gap: 8px;
  display: flex;
}
.card.is-focus {
  z-index: 60;
  background: var(--solid);
  max-height: 84vh;
  box-shadow: var(--shadow-pop);
  position: fixed;
  inset: 8vh max(4vw, 50vw - 590px) auto;
  overflow: auto;
}
.card-ph {
  border-radius: var(--r-card);
  border: 1.5px dashed var(--line-2);
}
.scrim {
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  background: #14121047;
  position: fixed;
  inset: 0;
}
:root[data-theme="dark"] .scrim {
  background: #0000008c;
}
.ibtn {
  border: 1px solid var(--line-2);
  width: 40px;
  height: 40px;
  color: var(--text);
  background: 0 0;
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: inline-grid;
  position: relative;
}
.ibtn:hover {
  background: var(--glass-2);
}
.ibtn--glass {
  background: var(--glass-2);
  border-color: var(--rim);
}
.ibtn--sm {
  width: 32px;
  height: 32px;
}
.ibtn--sm .ico {
  width: 16px;
  height: 16px;
}
.ibtn--lg {
  background: var(--glass-2);
  border-color: var(--rim);
  width: 48px;
  height: 48px;
}
.ibtn--on-dark {
  color: inherit;
  border-color: #ffffff47;
}
.ibtn--on-dark:hover {
  background: #ffffff24;
}
.ibtn--fill {
  background: var(--cream);
  color: #17191a;
  border-color: #0000;
}
.ibtn[aria-pressed="true"] {
  background: var(--pill);
  color: var(--on-pill);
  border-color: #0000;
}
.btn {
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
}
.btn .ico {
  width: 17px;
  height: 17px;
}
.btn--ink {
  background: var(--pill);
  color: var(--on-pill);
}
.btn--ink:hover {
  filter: brightness(1.15);
}
:root[data-theme="dark"] .btn--ink:hover {
  filter: brightness(0.92);
}
.btn--ghost {
  border-color: var(--line-2);
  background: var(--glass);
}
.btn--ghost:hover {
  background: var(--glass-2);
}
.btn--danger {
  background: var(--tomato);
  color: var(--on-tomato);
}
.btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.seg {
  background: var(--well);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  position: relative;
}
.seg__pill {
  background: var(--glass-3);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: 0 2px 8px #00000014;
}
:root[data-theme="dark"] .seg__pill {
  background: #ffffff24;
}
.seg__btn {
  z-index: 1;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  position: relative;
}
.seg__btn[aria-pressed="true"] {
  color: var(--text);
}
.input,
.search {
  border: 1px solid var(--line-2);
  background: var(--glass-2);
  border-radius: 999px;
  outline: none;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
}
.input:focus,
.search:focus-within {
  border-color: var(--text);
}
.search {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  display: inline-flex;
}
.search input {
  width: 100%;
  height: 100%;
  color: var(--text);
  background: 0 0;
  border: 0;
  outline: none;
}
.toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  display: flex;
}
.toolbar__spacer {
  flex: 1;
}
.chip {
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
}
.chip[aria-pressed="true"] {
  background: var(--pill);
  color: var(--on-pill);
  border-color: #0000;
}
.spill {
  background: var(--well);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}
.spill i {
  background: currentColor;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.spill--butter i {
  background: var(--butter);
}
.spill--pine i {
  background: var(--pine);
}
.spill--tomato i {
  background: var(--tomato);
}
.spill--ink i {
  background: var(--ink);
}
.spill--plain i {
  background: var(--good);
}
.spill--lost {
  color: var(--muted);
}
.spill--lost i {
  background: var(--faint);
}
.tone--butter {
  background: var(--butter);
}
.tone--pine {
  background: var(--pine);
}
.tone--tomato {
  background: var(--tomato);
}
.tone--ink {
  background: var(--ink);
}
.tone--muted {
  background: var(--faint);
}
.av {
  object-fit: cover;
  background: var(--well);
  color: #17191a;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-weight: 700;
  display: inline-grid;
}
.av--xs {
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.av--sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.av--md {
  width: 36px;
  height: 36px;
  font-size: 12.5px;
}
.av--lg {
  width: 48px;
  height: 48px;
  font-size: 15px;
}
.av--xl {
  width: 120px;
  height: 120px;
  font-size: 36px;
}
.av--t0 {
  background: #f3d9a3;
}
.av--t1 {
  background: #cfe0d2;
}
.av--t2 {
  background: #f2c6b4;
}
.av--t3 {
  background: #d9d4ec;
}
.av-stack {
  display: inline-flex;
}
.av-stack .av {
  box-shadow: 0 0 0 2px var(--stack-ring, var(--cream));
}
.av-stack .av + .av {
  margin-left: -8px;
}
.src {
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  display: inline-grid;
}
.src .ico {
  width: 17px;
  height: 17px;
}
.src--whatsapp {
  color: #1f9d55;
}
.src--slack {
  color: #8a3f8d;
}
.src--linkedin {
  color: #0a66c2;
}
.src--discord {
  color: #5865f2;
}
.src--email {
  color: var(--tomato);
}
.src--web {
  color: var(--pine);
}
:root[data-theme="dark"] .src--slack {
  color: #d58ad8;
}
:root[data-theme="dark"] .src--linkedin {
  color: #6fb1f5;
}
:root[data-theme="dark"] .src--discord {
  color: #9aa2ff;
}
:root[data-theme="dark"] .src--web {
  color: #8cc7b4;
}
.meter {
  background: var(--well);
  border-radius: 999px;
  height: 8px;
  display: block;
  overflow: hidden;
}
.meter__fill {
  border-radius: inherit;
  background: var(--text);
  transform-origin: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.meter__fill--pine {
  background: var(--pine);
}
.meter__fill--tomato {
  background: var(--tomato);
}
.meter__fill--butter {
  background: var(--butter);
}
.table-wrap {
  margin: 0 -6px;
  overflow-x: auto;
}
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 13.5px;
}
.table th {
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
}
.table th button {
  color: inherit;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  display: inline-flex;
}
.table th[aria-sort] button {
  color: var(--text);
}
.table td {
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  padding: 12px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  transition: background-color 0.15s;
}
.table tbody tr:hover {
  background: var(--well);
}
.table .r {
  text-align: right;
}
.cell-person {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}
.cell-person b {
  font-weight: 600;
  display: block;
}
.cell-person small {
  color: var(--muted);
  font-size: 12px;
  display: block;
}
.status {
  background: var(--well);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}
.status:before {
  content: "";
  background: var(--faint);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.status--paid:before,
.status--done:before {
  background: var(--good);
}
.status--due:before,
.status--active:before {
  background: var(--butter);
}
.status--overdue {
  color: var(--bad);
}
.status--overdue:before {
  background: var(--tomato);
}
.status--review:before {
  background: var(--pine);
}
.empty {
  text-align: center;
  color: var(--muted);
  justify-items: center;
  gap: 6px;
  padding: 36px 16px;
  display: grid;
}
.empty .ico {
  opacity: 0.7;
  width: 28px;
  height: 28px;
}
.empty__title {
  color: var(--text);
  font-weight: 600;
}
.empty__text {
  max-width: 300px;
  font-size: 13px;
}
.check {
  appearance: none;
  border: 1.5px solid var(--line-2);
  cursor: pointer;
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  display: inline-grid;
}
.check:checked {
  background: var(--pill);
  border-color: #0000;
}
.check:checked:after {
  content: "";
  border-left: 2px solid var(--on-pill);
  border-bottom: 2px solid var(--on-pill);
  width: 10px;
  height: 5px;
  transform: rotate(-45deg) translate(1px, -1px);
}
.switch {
  background: var(--line-2);
  border-radius: 999px;
  flex: none;
  width: 44px;
  height: 26px;
  position: relative;
}
.switch:after {
  content: "";
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 3px #0003;
}
.switch[aria-checked="true"] {
  background: var(--pine);
}
.switch[aria-checked="true"]:after {
  transform: translate(18px);
}
.chart {
  outline: none;
  position: relative;
}
.chart:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 12px;
}
.chart__svg {
  width: 100%;
  overflow: visible;
}
.chart__grid line {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.chart__grid text,
.chart__x text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.chart__line {
  fill: none;
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart__line.is-dashed {
  stroke-dasharray: 5 6;
  stroke-width: 2px;
}
.chart__line--ink {
  stroke: var(--ink);
}
.chart__line--tomato {
  stroke: var(--tomato);
}
.chart__line--pine {
  stroke: var(--pine);
}
.chart__line--butter {
  stroke: #d7a91b;
}
.chart__line--muted {
  stroke: var(--faint);
}
:root[data-theme="dark"] .chart__line--pine {
  stroke: #6cc59a;
}
.chart__stop0 {
  stop-color: var(--area, var(--tomato));
  stop-opacity: 0.22;
}
.chart__stop1 {
  stop-color: var(--area, var(--tomato));
  stop-opacity: 0;
}
.chart__cross {
  stroke: var(--line-2);
  stroke-width: 1px;
  opacity: 0;
}
.chart__dot {
  stroke: var(--bg);
  stroke-width: 2.5px;
}
.chart__dot--ink {
  fill: var(--ink);
}
.chart__dot--tomato {
  fill: var(--tomato);
}
.chart__dot--pine {
  fill: var(--pine);
}
.chart__dot--butter {
  fill: #d7a91b;
}
.chart__dot--muted {
  fill: var(--faint);
}
.chart__tip {
  pointer-events: none;
  opacity: 0;
  background: var(--float);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  white-space: nowrap;
  border-radius: 12px;
  gap: 3px;
  padding: 8px 10px;
  font-size: 12px;
  transition: opacity 0.15s;
  display: grid;
  position: absolute;
  top: 0;
  left: 0;
}
.chart__tip span {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  display: flex;
}
.chart__tip i {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.chart__tip strong {
  color: var(--text);
  margin-left: auto;
  padding-left: 10px;
}
.bars {
  align-items: stretch;
  gap: 8px;
  height: 180px;
  display: flex;
}
.bars__col {
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
  display: flex;
}
.bars__track {
  background: var(--well);
  border-radius: 12px;
  flex: 1;
  align-items: flex-end;
  display: flex;
  overflow: hidden;
}
.bars__bar {
  border-radius: 12px;
  width: 100%;
  min-height: 4px;
  display: block;
}
.bars__bar--ink {
  background: var(--ink);
  opacity: 0.82;
}
.bars__bar--pine {
  background: var(--pine);
}
.bars__bar--tomato {
  background: var(--tomato);
}
.bars__bar--butter {
  background: var(--butter);
}
.bars__bar--muted {
  background: var(--faint);
}
.bars__col.is-hi .bars__bar {
  opacity: 1;
  background: var(--tomato);
}
.bars__lab {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.donut {
  aspect-ratio: 1;
  flex: none;
  width: 168px;
  position: relative;
}
.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut__track {
  fill: none;
  stroke: var(--well);
  stroke-width: 16px;
}
.donut__arc {
  fill: none;
  stroke-width: 16px;
  stroke-linecap: butt;
}
.tone-stroke--ink {
  stroke: var(--ink);
}
.tone-stroke--tomato {
  stroke: var(--tomato);
}
.tone-stroke--pine {
  stroke: var(--pine);
}
.tone-stroke--butter {
  stroke: var(--butter);
}
.tone-stroke--muted {
  stroke: var(--faint);
}
.donut__mid {
  text-align: center;
  place-content: center;
  display: grid;
  position: absolute;
  inset: 0;
}
.donut__mid b {
  letter-spacing: -0.02em;
  font-size: 22px;
  font-weight: 700;
}
.donut__mid span {
  color: var(--muted);
  font-size: 12px;
}
.spark {
  overflow: visible;
}
.legend {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  display: flex;
}
.legend span {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}
.legend i {
  border-radius: 50%;
  width: 9px;
  height: 9px;
}
.pop-layer {
  z-index: 80;
  pointer-events: none;
  position: fixed;
  inset: 0;
}
.pop {
  pointer-events: auto;
  background: var(--float);
  min-width: 200px;
  max-width: min(360px, 100vw - 24px);
  max-height: min(70vh, 520px);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px;
  position: fixed;
  overflow: auto;
}
.pop hr {
  background: var(--line);
  border: 0;
  height: 1px;
  margin: 4px 6px;
}
.menu__item {
  text-align: left;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
}
.menu__item:hover,
.menu__item:focus-visible {
  background: var(--well);
  outline: none;
}
.menu__item.is-danger {
  color: var(--bad);
}
.menu__check {
  margin-left: auto;
}
.pop__head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 6px;
  display: flex;
}
.pop__title {
  font-size: 14px;
  font-weight: 700;
}
.pop__list {
  gap: 2px;
  display: grid;
}
.pop__row {
  text-align: left;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  display: flex;
}
.pop__row:hover,
.pop__row:focus-visible {
  background: var(--well);
  outline: none;
}
.pop__row small {
  color: var(--muted);
  font-size: 12px;
  display: block;
}
.pop__row.is-unread b:after {
  content: "";
  background: var(--tomato);
  vertical-align: middle;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  display: inline-block;
}
dialog {
  color: var(--text);
}
dialog::backdrop {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.3s var(--ease);
  background: #14121042;
}
:root[data-theme="dark"] dialog::backdrop {
  background: #0009;
}
@keyframes fade {
  0% {
    opacity: 0;
  }
}
.modal {
  border: 1px solid var(--rim);
  background: var(--glass-3);
  width: min(560px, 100vw - 24px);
  box-shadow: var(--shadow-pop);
  border-radius: 26px;
  padding: 0;
}
:root:not([data-theme="dark"]) .modal,
:root:not([data-theme="dark"]) .drawer,
:root:not([data-theme="dark"]) .finder {
  background: #f7f5f0;
}
.mform {
  padding: 22px;
}
.mform__head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}
.mform__title {
  letter-spacing: -0.015em;
  font-size: 20px;
  font-weight: 700;
}
.mform__sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13.5px;
}
.mform__grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}
.mform__grid:empty {
  display: none;
}
.mform__err {
  color: var(--bad);
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
}
.mform__foot {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  display: flex;
}
.field {
  gap: 6px;
  min-width: 0;
  display: grid;
}
.field--wide {
  grid-column: 1/-1;
}
.field__label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.field__hint {
  color: var(--faint);
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-2);
  background: var(--glass-2);
  resize: vertical;
  border-radius: 14px;
  outline: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--text);
}
.drawer {
  border: 1px solid var(--rim);
  background: var(--glass-3);
  width: min(460px, 100vw - 24px);
  height: auto;
  max-height: none;
  box-shadow: var(--shadow-pop);
  border-radius: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  position: fixed;
  inset: 12px 12px 12px auto;
}
.drawer__inner {
  align-content: start;
  gap: 18px;
  padding: 24px;
  display: grid;
  position: relative;
}
.drawer__close {
  z-index: 1;
  position: absolute;
  top: 18px;
  right: 18px;
}
.drawer h2 {
  letter-spacing: -0.02em;
  padding-right: 52px;
  font-size: 22px;
  font-weight: 700;
}
.finder {
  border: 1px solid var(--rim);
  background: var(--glass-3);
  width: min(620px, 100vw - 24px);
  box-shadow: var(--shadow-pop);
  border-radius: 24px;
  margin-top: 12vh;
  padding: 0;
}
.finder__bar {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  display: flex;
}
.finder__bar input {
  background: 0 0;
  border: 0;
  outline: none;
  flex: 1;
  font-size: 17px;
}
.finder__bar kbd {
  font: inherit;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 11px;
}
.finder__list {
  max-height: 52vh;
  padding: 8px;
  overflow: auto;
}
.finder__group {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 10px 4px;
  font-size: 11.5px;
  font-weight: 700;
}
.finder__opt {
  cursor: pointer;
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  display: flex;
}
.finder__opt[aria-selected="true"] {
  background: var(--well);
}
.finder__opt small {
  color: var(--muted);
  font-size: 12px;
  display: block;
}
.finder__opt .lead {
  background: var(--well);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}
.finder__opt .go {
  color: var(--muted);
  margin-left: auto;
}
.toast {
  z-index: 95;
  background: var(--pill);
  width: fit-content;
  max-width: calc(100vw - 24px);
  color: var(--on-pill);
  box-shadow: var(--shadow-pop);
  visibility: hidden;
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 10px 12px 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
}
.toast__ico {
  display: grid;
}
.toast__undo {
  background: var(--butter);
  color: #17191a;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}
.callbar {
  z-index: 70;
  background: var(--pine);
  width: fit-content;
  color: var(--on-pine);
  box-shadow: var(--shadow-pop);
  border-radius: 999px;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 8px 8px 8px 10px;
  display: flex;
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
}
.callbar__who {
  position: relative;
}
.callbar__ring {
  border: 2px solid #ffffffb3;
  border-radius: 50%;
  position: absolute;
  inset: -4px;
}
.callbar__text b {
  font-size: 13.5px;
  display: block;
}
.callbar__text small {
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.callbar .ibtn {
  color: inherit;
  border-color: #ffffff4d;
}
.callbar .ibtn[aria-pressed="true"] {
  background: var(--cream);
  color: var(--pine);
}
.callbar__end {
  background: var(--tomato);
  border-color: #0000 !important;
}
.pop--wide {
  width: 340px;
}
.feed {
  gap: 4px;
  display: grid;
}
.feed__item {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}
.feed__item p {
  font-size: 13.5px;
}
.feed__item a {
  text-underline-offset: 2px;
  text-decoration: underline;
}
.feed__item small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
  display: block;
}
.keys {
  gap: 2px;
  display: grid;
}
.keys div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  display: flex;
}
.keys dd {
  gap: 6px;
  display: flex;
}
kbd {
  font: 600 12px var(--font);
  border: 1px solid var(--line-2);
  background: var(--glass-2);
  border-radius: 8px;
  padding: 3px 8px;
}
@media (hover: none) {
  .tab:hover,
  .ibtn:hover,
  .btn--ghost:hover,
  .table tbody tr:hover,
  .menu__item:hover,
  .pop__row:hover {
    background: 0 0;
  }
  .btn--ghost:hover {
    background: var(--glass);
  }
  .btn--ink:hover {
    filter: none;
  }
  .tab:active,
  .ibtn:active,
  .pop__row:active,
  .menu__item:active {
    background: var(--well);
  }
}
@media (width<=1180px) {
  :root {
    --dock-x: 14px;
  }
  .top {
    grid-template-columns: auto 1fr;
  }
  .tabs {
    grid-area: 2/1 / auto/-1;
    justify-self: start;
  }
  .top__tools {
    grid-area: 1/2;
    justify-self: end;
  }
}
@media (width<=760px) {
  .app {
    padding: 14px max(14px, env(safe-area-inset-right))
      calc(96px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }
  .top {
    gap: 12px;
    margin-bottom: 18px;
  }
  .tabs {
    border-radius: 0;
    width: calc(100% + 28px);
    max-width: none;
    margin: 0 -14px;
    padding: 0 10px;
    -webkit-mask-image: linear-gradient(
      90deg,
      #0000,
      #000 14px calc(100% - 14px),
      #0000
    );
    mask-image: linear-gradient(
      90deg,
      #0000,
      #000 14px calc(100% - 14px),
      #0000
    );
  }
  .brand__name {
    font-size: 19px;
  }
  .dock {
    top: auto;
    left: 0;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom));
    flex-direction: row;
    width: fit-content;
    height: auto;
    margin: 0 auto;
    padding: 6px;
  }
  .dock__btn[data-act="favs"],
  .dock__btn[data-act="call"],
  .dock__btn[data-act="share"],
  .dock__btn[data-act="export"],
  .dock__sep {
    display: none;
  }
  .dock__more {
    display: grid;
  }
  .dock__tip {
    display: none;
  }
  .dock__btn[aria-current="page"]:after {
    margin: 0 0 0 -2.5px;
    inset: auto auto 3px 50%;
  }
  .head {
    gap: 14px;
  }
  .head__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    width: 100%;
    display: grid;
  }
  .stat {
    align-items: flex-start;
    gap: 10px;
  }
  .stat__value {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .stat__ico {
    width: 40px;
    height: 40px;
  }
  .stat__value {
    font-size: 18px;
  }
  .mform__grid {
    grid-template-columns: 1fr;
  }
  .toast,
  .callbar {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .card.is-focus {
    max-height: calc(100dvh - 20px);
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .modal {
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
  }
  .mform {
    flex-direction: column;
    max-height: 92dvh;
    padding: 0;
    display: flex;
  }
  .mform__head {
    border-bottom: 1px solid var(--line);
    flex: none;
    margin: 0;
    padding: 20px 18px 14px;
  }
  .mform__grid {
    overscroll-behavior: contain;
    flex: auto;
    min-height: 0;
    padding: 16px 18px 4px;
    overflow-y: auto;
  }
  .mform__err {
    flex: none;
    margin-top: 6px;
    padding: 0 18px;
  }
  .mform__err:empty {
    min-height: 0;
    margin: 0;
  }
  .mform__foot {
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: inherit;
    flex: none;
    margin: 0;
  }
  .mform__foot .btn {
    flex: 1;
  }
  .drawer__close {
    z-index: 2;
    background: var(--solid);
    justify-self: end;
    margin: -8px -8px -48px 0;
    position: sticky;
    top: 14px;
  }
  .drawer__inner {
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .drawer:before,
  .modal:before {
    content: "";
    background: var(--line-2);
    z-index: 3;
    border-radius: 2px;
    width: 40px;
    height: 4px;
    margin: 0 auto;
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
  }
  .drawer {
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: 0;
    inset: auto 0 0;
    overflow: auto;
  }
}
@media (height<=560px) and (width>=761px) {
  .dock {
    gap: 0;
    padding: 6px;
  }
  .dock__btn {
    width: 40px;
    height: 40px;
  }
  .dock__btn[data-act="favs"],
  .dock__btn[data-act="call"],
  .dock__btn[data-act="share"],
  .dock__btn[data-act="export"],
  .dock__sep {
    display: none;
  }
  .dock__more {
    display: grid;
  }
  :root {
    --dock-w: 52px;
    --dock-x: max(14px, env(safe-area-inset-left));
  }
  .top {
    row-gap: 8px;
    margin-bottom: 14px;
  }
  .head {
    margin-bottom: 16px;
  }
}
@media (width<=760px) {
  input,
  select,
  textarea,
  .search input {
    font-size: 16px;
  }
  .hfade,
  [data-view="settings"] .set-navwrap,
  [data-view="schedule"] .sch-filters,
  [data-view="pipeline"] .pl-owners,
  [data-view="customers"] .cx-chips {
    -webkit-mask-image: linear-gradient(
      90deg,
      #0000,
      #000 12px calc(100% - 22px),
      #0000
    );
    mask-image: linear-gradient(
      90deg,
      #0000,
      #000 12px calc(100% - 22px),
      #0000
    );
  }
}
@media (width<=760px) and (orientation: landscape) and (height<=500px) {
  .app {
    padding: 10px max(14px, env(safe-area-inset-right)) 32px
      calc(max(10px, env(safe-area-inset-left)) + 48px + 14px);
  }
  .dock {
    left: max(10px, env(safe-area-inset-left));
    flex-direction: column;
    gap: 0;
    width: auto;
    height: fit-content;
    margin: auto 0;
    padding: 4px;
    top: 0;
    bottom: 0;
    right: auto;
  }
  .dock__btn {
    width: 40px;
    height: 40px;
  }
  .dock__btn[aria-current="page"]:after {
    margin: -2.5px 0 0;
    inset: 50% 2px auto auto;
  }
  .toast,
  .callbar {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .top {
    margin-bottom: 12px;
  }
  .head__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat__ico {
    display: none;
  }
}
@media (width<=374px) {
  .dock {
    gap: 0;
    padding: 4px;
  }
  .dock__btn {
    width: 40px;
    height: 40px;
  }
}
@media (width<=480px) {
  .stat__ico {
    display: none;
  }
  .head__actions {
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
  }
}
@media (pointer: coarse) {
  .ibtn,
  .ibtn--sm {
    width: 44px;
    height: 44px;
  }
  .seg__btn {
    min-width: 44px;
    padding: 13px 14px;
  }
  .tab,
  .tabs__pill span {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .brand {
    min-height: 44px;
  }
  button.chip,
  a.chip {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
  }
  .table th button,
  a.cell-person {
    min-height: 44px;
  }
  .btn--sm {
    height: 44px;
    padding: 0 16px;
  }
  .menu__item,
  .pop__row {
    min-height: 44px;
  }
  .card small a,
  .feed__item a,
  .table td a:not(.cell-person) {
    margin: -12px -4px;
    padding: 12px 4px;
    display: inline-block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mesh i {
    will-change: auto;
  }
  *,
  :before,
  :after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
