:root{--font-dm-sans:"DM Sans";--font-manrope:"Manrope";--font-heebo:"Heebo"}
:root {
  --ink: #17251f;
  /* Text colors keep at least 4.5:1 contrast on the paper, white, and tinted panels. */
  --muted: #5f6b62;
  --green: #3c7256;
  --lime: #d4ecab;
  --paper: #f7f8f4;
  --border: #e2e6dd;
  --white: #fff;
  --focus: #2f6b4a;
  --on-dark-muted: #a9bea8;
  --success: #3f6d33;
  --warning: #7a5a1c;
  --danger: #9a3f2c;
  /* Hebrew glyphs fall back to Heebo; the Latin faces have no Hebrew coverage. */
  --font-body: var(--font-dm-sans), var(--font-heebo), Arial, sans-serif;
  --font-display: var(--font-manrope), var(--font-heebo), Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled,
.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.sidebar :focus-visible {
  outline-color: var(--lime);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
}
/* Tracking separates Hebrew letters; Hebrew text keeps natural spacing. */
:lang(he) {
  letter-spacing: normal !important;
}
/* Directional icons point toward the reading direction. */
[dir='rtl'] .lucide-arrow-right,
[dir='rtl'] .lucide-arrow-up-right,
[dir='rtl'] .lucide-log-out {
  transform: scaleX(-1);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.brand-mark {
  background: var(--ink);
  color: var(--lime);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.brand-muted {
  font-weight: 500;
}
.brand-light {
  color: #f3f8ef;
}
.brand-light .brand-mark {
  background: var(--lime);
  color: #203a2e;
}
.landing {
  max-width: 1440px;
  margin: auto;
  padding: 0 6%;
}
.nav {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 13px;
  background: #fff8;
  white-space: nowrap;
}
.dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #679c53;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
  gap: 35px;
  align-items: center;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow > span:empty {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #7fab58;
}
.hero h1 {
  font-size: clamp(55px, 6.2vw, 87px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -4px;
  margin: 25px 0;
}
.hero h1 > span {
  color: #56805e;
}
.hero-copy > p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 7px;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.primary {
  background: #203c2d;
  color: #f4f8ef;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero-note > span {
  padding: 0 4px;
}
.conversation-stage {
  height: 535px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse, #dce8d1 0%, #edf0e6 45%, transparent 72%);
}
.stage-grid {
  position: absolute;
  inset: 40px -5px;
  background-image:
    linear-gradient(#bdd0b629 1px, transparent 1px),
    linear-gradient(90deg, #bdd0b629 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: radial-gradient(ellipse, #000, transparent 70%);
}
.chat-preview {
  position: relative;
  transform: rotate(-3deg);
  width: 335px;
  background: #fff;
  border: 1px solid #dce4d4;
  border-radius: 18px;
  box-shadow:
    0 22px 70px #26382a15,
    0 2px 8px #26382a08;
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid #e7ece2;
  background: #fffffff0;
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #223e2e;
  color: var(--lime);
  border-radius: 50%;
  font-size: 26px;
}
.chat-header strong {
  display: block;
  font-size: 12px;
}
.chat-header div > span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: var(--muted);
}
.example-tag {
  margin-inline-start: auto;
  background: #f0f4e9;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 5px;
  border-radius: 4px;
}
.chat-body {
  background: #f5f7f0;
  padding: 22px 17px 18px;
}
.chat-question {
  background: #dbeec7;
  padding: 11px 14px;
  border-start-start-radius: 12px;
  border-start-end-radius: 12px;
  border-end-end-radius: 3px;
  border-end-start-radius: 12px;
  margin-inline-start: 38px;
  font-size: 12px;
  line-height: 1.5;
}
.chat-question > span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--muted);
  gap: 3px;
}
.chat-answer {
  margin-top: 16px;
  margin-inline-end: 24px;
  background: white;
  padding: 18px;
  border-start-start-radius: 3px;
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  border-end-start-radius: 12px;
  border: 1px solid #e8ede1;
}
.answer-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-answer h3 {
  font-size: 32px;
  letter-spacing: -1.5px;
  margin-top: 9px;
  font-weight: 600;
}
.chat-answer > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.chat-stats {
  display: flex;
  gap: 38px;
  margin-top: 17px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eef1e8;
}
.chat-stats strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
}
.chat-stats span {
  font-size: 11px;
  color: var(--muted);
}
.answer-foot {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin-top: 10px;
}
.small-question {
  margin-top: 18px;
  padding: 12px;
}
.chat-input {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.send-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: #34523a;
  color: #e4efdb;
  border-radius: 50%;
}
.floating-tag {
  position: absolute;
  top: 47px;
  inset-inline-end: 23px;
  background: white;
  border: 1px solid #e7ebdf;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 5px 12px #223e2e06;
  transform: rotate(4deg);
  z-index: 2;
}
.floating-security {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 25px;
  inset-inline-start: 14px;
  padding: 14px 19px;
  border-radius: 9px;
  background: white;
  box-shadow: 0 10px 25px #223e2e0b;
  transform: rotate(2deg);
}
.floating-security > svg {
  color: #7d9964;
}
.floating-security strong {
  display: block;
  font-size: 11px;
}
.floating-security span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.integration-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.integration-strip > span {
  font-size: 12px;
  letter-spacing: 1.3px;
  color: var(--muted);
  max-width: 135px;
  line-height: 1.8;
}
.integration-strip strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.4px;
}
.how-section {
  padding: 80px 0;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-heading h2 {
  font-size: 34px;
  letter-spacing: -1.4px;
  line-height: 1.3;
  margin-top: 15px;
  font-weight: 500;
}
.section-heading > p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 45px;
}
.feature-grid article {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  position: relative;
}
.feature-number {
  position: absolute;
  inset-inline-end: 0;
  color: var(--muted);
  font-size: 13px;
}
.feature-grid svg {
  color: #63835c;
  width: 22px;
  height: 22px;
}
.feature-grid h3 {
  font-size: 17px;
  margin: 20px 0 10px;
  font-weight: 600;
}
.feature-grid p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
  max-width: 300px;
}
.trust-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: #ecf0e5;
  border: 1px solid #e3e8d9;
  border-radius: 10px;
}
.trust-banner > svg {
  color: #728667;
}
.trust-banner h3 {
  font-size: 16px;
  font-weight: 600;
}
.trust-banner p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.trust-banner .pill {
  margin-inline-start: auto;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  font-size: 13px;
  color: var(--muted);
}
footer .brand {
  font-size: 16px;
}
footer .brand-mark {
  width: 27px;
  height: 27px;
}
footer > a:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a:hover,
.legal-links a:hover {
  color: var(--ink);
}
/* Privacy and terms: Hebrew by default; #en shows the English version without JavaScript. */
/* The showing rule is as specific as the hiding ones, so merging them cannot flip it. */
.legal-page > #en {
  display: none;
}
.legal-page:has(> #en:target) > #he {
  display: none;
}
.legal-page:has(> #en:target) > #en {
  display: block;
}
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 0 90px;
}
.legal-doc h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1.6px;
  line-height: 1.15;
}
.legal-updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.legal-summary {
  margin-top: 28px;
  padding: 22px 24px;
  background: #ecf0e5;
  border: 1px solid #e3e8d9;
  border-radius: 10px;
}
.legal-doc section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.legal-doc h2 {
  margin-bottom: 14px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.85;
}
.legal-doc .legal-summary {
  font-size: 16px;
}
.legal-doc p + p,
.legal-doc p + ul,
.legal-doc ul + p {
  margin-top: 12px;
}
.legal-doc ul {
  margin: 12px 0 0;
  padding-inline-start: 22px;
}
.legal-doc li + li {
  margin-top: 8px;
}
.legal-doc a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.connect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background: radial-gradient(ellipse at 50% 40%, #e7eddd, transparent 70%);
}
.connect-card {
  margin: 70px auto 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 45px;
  max-width: 530px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 45px #223e2e08;
}
.connect-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #edf3e6;
  color: #648154;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}
.connect-card .eyebrow {
  display: block;
  font-size: 12px;
}
.connect-card h1 {
  font-size: 36px;
  letter-spacing: -1.4px;
  font-weight: 500;
  line-height: 1.2;
  margin: 20px 0;
}
.connect-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 15px 0;
  font-size: 14px;
}
.connect-card .button {
  margin-top: 20px;
  width: 100%;
}
.connect-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 25px;
}
.error {
  background: #fff0eb;
  color: #9e4b39;
  padding: 14px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 15px;
}
.error p {
  color: inherit;
  margin: 6px 0;
}
.error img {
  vertical-align: middle;
}
.workspace {
  display: flex;
  min-height: 100vh;
  background: #f6f7f3;
}
.sidebar {
  width: 242px;
  flex-shrink: 0;
  background: #20372c;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  color: #a7baa4;
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
}
.sidebar .brand {
  font-size: 18px;
}
.business-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff08;
  border: 1px solid #ffffff13;
  border-radius: 8px;
  padding: 14px 10px;
  margin: 40px 0 35px;
}
.business-switch > span {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  background: #d6e9bd;
  color: #345536;
  border-radius: 6px;
  font-weight: 600;
}
.business-switch strong {
  font-size: 13px;
  color: #f1f5eb;
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.business-switch small {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: var(--on-dark-muted);
}
.sidebar-label {
  font-size: 12px;
  letter-spacing: 1.7px;
  margin: 0 10px 15px;
  color: var(--on-dark-muted);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.selected {
  background: #d5e8b8;
  color: #2a492f;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom > div {
  display: flex;
  gap: 10px;
  border-top: 1px solid #ffffff12;
  padding-top: 20px;
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-dark-muted);
}
.sidebar-bottom svg {
  flex-shrink: 0;
}
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  color: #a7baa4;
  margin-top: 25px;
  font-size: 13px;
  padding: 0;
}
.workspace-main {
  margin-inline-start: 242px;
  width: calc(100% - 242px);
}
.workspace-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 45px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  background: #fcfdf9;
}
.workspace-header > span > span {
  margin: 0 12px;
  color: var(--muted);
}
.owner-badge {
  background: #e3ebd7;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  color: #37543a;
}
.workspace-content {
  max-width: 1200px;
  margin: auto;
  padding: 45px;
}
.dashboard-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-title h1 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1.4px;
  margin-top: 13px;
}
.dashboard-title p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 30px;
}
.summary-cards article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 21px;
  position: relative;
}
.summary-cards svg {
  position: absolute;
  inset-inline-end: 19px;
  top: 22px;
  color: #93a183;
}
.summary-cards span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.summary-cards strong {
  font-weight: 500;
  font-size: 16px;
  display: block;
  margin-top: 14px;
  word-break: break-word;
  padding-inline-end: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 42px 0 20px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.section-title > span {
  font-size: 12px;
  color: var(--muted);
}
.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.connection-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 235px;
}
.connection-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.provider-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}
.provider-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e7eadd;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.status-ready {
  color: var(--success);
  background: #f0f7e8;
  border-color: #cfe0c0;
}
.status-syncing {
  color: #2f5a6b;
  background: #eef5f8;
  border-color: #cfe1e8;
}
.status-attention {
  color: var(--danger);
  background: #fff0eb;
  border-color: #f0cfc4;
}
.connection-card h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
  margin: 18px 0 8px;
  font-weight: 600;
}
.connection-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 38px;
}
.connection-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}
.connection-actions > button {
  flex: 1;
  border: 1px solid #e3e8d9;
  padding: 9px 12px;
  background: #fff;
  border-radius: 5px;
  font-size: 12px;
  color: #526c45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.connection-actions > button > svg:last-child {
  margin-inline-start: auto;
}
.connection-actions .disconnect {
  flex: 0;
  padding: 9px;
  color: var(--danger);
}
.connection-details {
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  color: var(--muted);
  word-break: break-word;
}
.connection-details strong {
  color: #52684c;
  font-weight: 500;
}
.error-text {
  color: var(--danger);
  margin-top: 4px;
}
.error-code {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}
.reporting-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #eaf0e0;
  border: 1px solid #dfe7d3;
  border-radius: 9px;
  padding: 24px;
  margin-top: 30px;
}
.reporting-note > svg {
  color: #72915a;
  flex-shrink: 0;
}
.reporting-note h3 {
  font-size: 14px;
}
.reporting-note p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.7;
}
.reporting-note .pill {
  margin-inline-start: auto;
  font-size: 12px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7e6;
  border: 1px solid #ebdfc3;
  color: var(--warning);
  border-radius: 7px;
  font-size: 13px;
  padding: 13px 16px;
  margin-top: 22px;
}
.notice svg {
  flex-shrink: 0;
}
.notice-success {
  background: #f0f7e8;
  border-color: #cfe0c0;
  color: var(--success);
}
.notice-error {
  background: #fff0eb;
  border-color: #f0cfc4;
  color: var(--danger);
}
.notice button {
  margin-inline-start: auto;
  border: 0;
  background: none;
  color: inherit;
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
}
dialog.modal {
  background: white;
  color: var(--ink);
  border: 0;
  border-radius: 14px;
  padding: 35px;
  max-width: 500px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow: auto;
}
dialog.modal::backdrop {
  background: #17291ecc;
  backdrop-filter: blur(4px);
}
.modal-close {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.modal-close:hover:not(:disabled) {
  background: #f0f3ec;
}
.modal .connect-icon {
  margin-inline-start: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.modal h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
  font-weight: 500;
}
.modal > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 22px;
}
.modal label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
}
.modal input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #849282;
  border-radius: 6px;
  background: #fbfcf8;
  font-size: 13px;
  margin-top: 7px;
  color: #30472d;
}
.modal form > .button {
  width: 100%;
  margin-top: 25px;
}
.confirm-dialog {
  max-width: 440px;
}
.confirm-dialog .connect-icon {
  background: #fff0eb;
  color: var(--danger);
}
.confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.confirm-actions .button {
  flex: 1;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid #c9d1c3;
}
.danger {
  background: var(--danger);
  color: #fff;
}
.modal small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 20px;
}
.spin {
  animation: spin 1.3s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 740px;
  }
}
@media (max-width: 1150px) {
  .connection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    width: 215px;
  }
  .workspace-main {
    margin-inline-start: 215px;
    width: calc(100% - 215px);
  }
  .workspace-content {
    padding: 30px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .floating-tag {
    inset-inline-end: 0;
  }
  .integration-strip strong {
    font-size: 13px;
  }
}
@media (max-width: 850px) {
  .landing {
    padding: 0 6%;
  }
  .nav {
    height: 80px;
  }
  .nav-links {
    gap: 15px;
  }
  .nav > .pill {
    display: none;
  }
  .hero {
    gap: 0;
  }
  .hero h1 {
    font-size: 60px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .chat-preview {
    width: 290px;
  }
  .conversation-stage {
    height: 520px;
  }
  .floating-tag {
    top: 25px;
    font-size: 11px;
  }
  .floating-security {
    bottom: 20px;
    inset-inline-start: -5px;
    font-size: 11px;
  }
  .hero-note {
    font-size: 12px;
  }
  .hero-note > span {
    padding: 0;
  }
  .integration-strip {
    flex-wrap: wrap;
    justify-content: center;
  }
  .integration-strip > span {
    max-width: none;
    width: 100%;
    text-align: center;
  }
  .sidebar {
    width: 185px;
    padding: 25px 15px;
  }
  .sidebar .brand {
    font-size: 14px;
  }
  .workspace-main {
    margin-inline-start: 185px;
    width: calc(100% - 185px);
  }
  .workspace-content {
    padding: 25px;
  }
  .workspace-header {
    padding: 0 25px;
  }
  .dashboard-title h1 {
    font-size: 27px;
  }
  .summary-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .summary-cards article {
    padding: 15px;
  }
  .summary-cards strong {
    margin-top: 8px;
  }
  .connection-card {
    padding: 18px;
  }
  .reporting-note .pill {
    display: none;
  }
  .section-title > span {
    display: none;
  }
  .trust-banner p {
    max-width: 330px;
  }
  footer > span {
    display: none;
  }
}
@media (max-width: 600px) {
  .brand {
    font-size: 17px;
  }
  .nav-links a:not(:last-child) {
    display: none;
  }
  .nav-links {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }
  .hero h1 {
    font-size: 64px;
    letter-spacing: -3px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
  .conversation-stage {
    height: 530px;
    margin-top: 25px;
  }
  .chat-preview {
    width: 320px;
  }
  .floating-security {
    inset-inline-start: 0;
    bottom: 14px;
  }
  .floating-tag {
    inset-inline-end: 0;
    top: 28px;
  }
  .hero-note {
    font-size: 12px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .section-heading > p {
    margin-top: 20px;
  }
  .how-section {
    padding: 55px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .feature-grid p {
    max-width: none;
  }
  .trust-banner {
    padding: 22px;
    gap: 12px;
  }
  .trust-banner .pill {
    display: none;
  }
  .trust-banner h3 {
    font-size: 14px;
  }
  .trust-banner p {
    font-size: 12px;
  }
  footer {
    gap: 20px;
    flex-wrap: wrap;
  }
  .legal-doc {
    padding: 45px 0 60px;
  }
  .legal-doc section {
    margin-top: 32px;
    padding-top: 22px;
  }
  footer > a:last-child {
    font-size: 12px;
  }
  .connect-card {
    padding: 30px 22px;
    margin-top: 45px;
  }
  .connect-card h1 {
    font-size: 30px;
  }
  .connect-page {
    padding-top: 30px;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .business-switch,
  .sidebar-label,
  .sidebar-item,
  .sidebar-bottom > div {
    display: none;
  }
  .sidebar-bottom {
    margin-top: 0;
  }
  .sidebar-bottom button {
    margin-top: 0;
    font-size: 12px;
  }
  .workspace {
    display: block;
  }
  .workspace-main {
    width: 100%;
    margin: 0;
  }
  .workspace-header {
    height: 55px;
    padding: 0 20px;
  }
  .workspace-content {
    padding: 30px 20px;
  }
  .dashboard-title h1 {
    font-size: 27px;
  }
  .dashboard-title .pill {
    display: none;
  }
  .dashboard-title p {
    line-height: 1.7;
  }
  .summary-cards {
    grid-template-columns: 1fr;
  }
  .summary-cards article {
    padding: 16px;
  }
  .summary-cards strong {
    font-size: 14px;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .connection-card {
    padding: 22px;
    min-height: 210px;
  }
  .status {
    font-size: 12px;
  }
  .connection-card p {
    font-size: 13px;
  }
  .connection-card h3 {
    font-size: 17px;
  }
  .connection-actions > button {
    font-size: 13px;
  }
  .reporting-note {
    padding: 20px;
  }
  .reporting-note h3 {
    font-size: 13px;
  }
  .modal {
    padding: 27px;
  }
  .modal label {
    font-size: 13px;
  }
  .modal input {
    font-size: 14px;
  }
}

.auth-form {
  display: grid;
  gap: 18px;
  text-align: start;
  margin: 24px 0;
}
.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  color: #172033;
  font: inherit;
}
.auth-form input {
  direction: ltr;
}
.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-form .button {
  width: 100%;
  justify-content: center;
}
.auth-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}
.guided-connect .step-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
}
.guided-connect .step-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 6px 0 0;
}
.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}
.input-row input {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}
.input-row .button {
  padding: 10px 14px;
  gap: 6px;
  flex-shrink: 0;
}
.check-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 13px;
  margin: 12px 0 0;
}
.check-ok svg {
  flex-shrink: 0;
}
.connect-option {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 20px;
}
.connect-option > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0 16px;
}
.connect-option > .button {
  width: 100%;
  margin-top: 20px;
}
.connect-option > p + .button {
  margin-top: 0;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.error .text-button {
  color: inherit;
  padding: 4px 0;
  min-height: 0;
}
.manual-steps {
  margin: 12px 0 0;
  padding-inline-start: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.manual-steps a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.security-note {
  background: #f3f6ef;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 22px;
}
.security-note h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin: 0;
}
.security-note ul {
  margin: 8px 0 0;
  padding-inline-start: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.connection-info {
  display: grid;
  gap: 14px;
  margin: 4px 0 20px;
  text-align: start;
}
.connection-info h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}
.connection-info p,
.connection-info ul {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.connection-info ul {
  padding-inline-start: 18px;
}
.connection-info .security-note {
  margin-top: 0;
}
.connection-info .security-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.connection-never {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.account-choices {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.modal .account-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
}
.modal .account-choice input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}
.modal .account-choice:has(input:checked) {
  border-color: var(--green);
  background: #f3f6ef;
}
.account-choice span {
  display: grid;
  gap: 2px;
  text-align: start;
}
.modal .account-choice small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Workspace pages: data & insights, costs ---------- */
:root {
  --series-current: #1f7a45;
  --series-previous: #8c948a;
  --area: #1f7a4514;
  --cost: #b4472c;
  --grid: #e9ece5;
  --good-bg: #f0f7e8;
  --bad-bg: #fff0eb;
  --warn-bg: #fff7e6;
  --info: #2f5a6b;
  --info-bg: #eef5f8;
}
.workspace-tabs {
  display: none;
}
.workspace-content .muted {
  color: var(--muted);
}
.ins-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.ins-head h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.ins-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
.chips button {
  border: 1px solid #d3d9cc;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
}
.chips button[aria-pressed='true'] {
  background: #20372c;
  border-color: #20372c;
  color: #f4f8ef;
}
.ins-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 40px 0;
}
.ins-today {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.ins-today b {
  color: var(--ink);
  font-size: 15px;
  margin-inline-start: 4px;
}
.ins-today-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}
.delta.good {
  color: var(--success);
  background: var(--good-bg);
}
.delta.bad {
  color: var(--danger);
  background: var(--bad-bg);
}
.delta.flat {
  color: var(--muted);
  background: #eef0eb;
}
.ins-insights {
  background: linear-gradient(135deg, #fbfdf7 0%, #f1f7e6 100%);
  border: 1px solid #d8e6c4;
  border-radius: 12px;
  padding: 12px 16px 6px;
  margin-bottom: 16px;
}
.ins-insights-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ins-insights h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #2a492f;
}
.ins-insights ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.ins-insights li {
  border-top: 1px solid #e3ecd6;
}
.ins-insights li:first-child {
  border-top: 0;
}
.ins-insights summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  min-height: 44px;
}
.ins-insights summary::-webkit-details-marker {
  display: none;
}
.ins-insights summary .title {
  flex: 1;
  font-weight: 600;
}
.ins-insights summary .tag {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.ins-insights details[open] .chev {
  transform: rotate(180deg);
}
.ins-insights .chev {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ins-attention svg:first-child,
.ins-attention .tag {
  color: var(--danger);
}
.ins-attention .tag {
  background: var(--bad-bg);
}
.ins-money svg:first-child,
.ins-money .tag {
  color: var(--warning);
}
.ins-money .tag {
  background: var(--warn-bg);
}
.ins-opportunity svg:first-child,
.ins-opportunity .tag {
  color: var(--success);
}
.ins-opportunity .tag {
  background: var(--good-bg);
}
.ins-info svg:first-child,
.ins-info .tag {
  color: var(--info);
}
.ins-info .tag {
  background: var(--info-bg);
}
.ins-detail {
  padding: 0 23px 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #3c4a40;
}
.ins-detail p {
  margin: 0 0 4px;
}
.ins-detail b {
  color: var(--focus);
}
.ins-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.ins-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ins-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  align-content: start;
  box-shadow: 0 1px 3px #17251f0a;
}
.ins-card .label {
  font-size: 13px;
  color: var(--muted);
}
.ins-card .value {
  font: 700 24px var(--font-display);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.ins-card .sub {
  font-size: 12px;
  color: var(--muted);
}
.ins-card .sub a {
  color: var(--focus);
  font-weight: 600;
  text-decoration: underline;
}
.ins-card.headline {
  background: #20372c;
  border-color: #20372c;
  color: #f1f5eb;
  padding: 22px 24px;
}
.ins-card.headline .label,
.ins-card.headline .sub {
  color: #b9cbb6;
}
.ins-card.headline .sub a {
  color: var(--lime);
}
.ins-card.headline .value {
  font-size: 38px;
}
.ins-card.headline.bad .value {
  color: #ffc9b8;
}
.ins-card.headline .delta.good {
  background: var(--lime);
  color: #20372c;
}
.ins-card.headline .delta.bad {
  background: #ffd9cc;
  color: #7a2f1f;
}
.ins-card.large .value {
  font-size: 30px;
}
.ins-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  min-width: 0;
  box-shadow: 0 1px 3px #17251f0a;
}
.ins-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.ins-grid > .ins-panel {
  margin-bottom: 16px;
}
.ins-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ins-panel-head h2 {
  font-size: 16px;
  font-weight: 700;
}
.ins-panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.ins-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  font-size: 14px;
  line-height: 1.7;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.swatch {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}
.swatch.current {
  background: var(--series-current);
}
.swatch.previous {
  background: var(--series-previous);
  height: 2px;
}
.key {
  width: 16px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.chart {
  position: relative;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  direction: ltr;
  overflow: visible;
}
.chart-grid line {
  stroke: var(--grid);
  stroke-width: 1;
}
.chart-axis text {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--font-body);
}
.chart-area {
  fill: var(--area);
}
.chart-line {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-line.current {
  stroke: var(--series-current);
  stroke-width: 2;
}
.chart-line.previous {
  stroke: var(--series-previous);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.chart-dot {
  fill: var(--series-current);
  stroke: #fff;
  stroke-width: 2;
}
.chart-cross {
  stroke: var(--muted);
  stroke-width: 1;
}
.chart-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  background: #17251f;
  color: #f3f8ef;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
  box-shadow: 0 8px 22px #0f1a1440;
}
.chart-tip .muted {
  color: #b9c9b6;
}
.table-view {
  margin-top: 10px;
  font-size: 13px;
}
.table-view summary {
  color: var(--muted);
  cursor: pointer;
  width: fit-content;
  padding: 6px 0;
}
.workspace-content .scroll {
  overflow-x: auto;
}
.workspace-content .scroll.daily {
  max-height: 420px;
  overflow-y: auto;
}
.workspace-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.workspace-content th {
  text-align: start;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: #fff;
  position: sticky;
  top: 0;
}
.workspace-content td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f2ed;
  vertical-align: middle;
}
.workspace-content tr:last-child td {
  border-bottom: 0;
}
.workspace-content td.n,
.workspace-content th.n {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.workspace-content td.strong {
  font-weight: 700;
}
.workspace-content td.pos {
  color: var(--success);
}
.workspace-content td.neg {
  color: var(--danger);
}
.workspace-content tr.today td {
  background: #f4f9ec;
}
.prod-name {
  font-weight: 600;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.chip.up {
  color: var(--success);
  background: var(--good-bg);
}
.chip.down {
  color: var(--danger);
  background: var(--bad-bg);
}
.chip.flat {
  color: var(--muted);
  background: #eef0eb;
}
.chip.warn {
  color: var(--warning);
  background: var(--warn-bg);
  margin-top: 4px;
}
.bar-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meter {
  height: 6px;
  border-radius: 3px;
  background: #edf0e9;
  width: 60px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--series-current);
  border-radius: 3px;
}
.hbars {
  display: grid;
  gap: 8px;
}
.hbar {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.hbar.total .name {
  font-weight: 700;
}
.hbar.total:last-child {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 2px;
}
.hbar .track {
  position: relative;
  height: 18px;
}
.hbar .track i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}
.seg-total {
  background: var(--series-current);
}
.seg-cost {
  background: var(--cost);
  opacity: 0.88;
}
.seg-previous {
  background: var(--series-previous);
}
.seg-projected {
  background: #1f7a451f;
  border: 1.5px dashed var(--series-current);
}
.hbar .val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.hbar .val small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.forecast-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.forecast-head strong {
  font: 700 28px var(--font-display);
  letter-spacing: -0.5px;
}
.ins-panel .legend {
  margin-top: 12px;
}
.footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
}
.footnote a {
  color: var(--focus);
  font-weight: 600;
  text-decoration: underline;
}
.columns {
  position: relative;
}
.columns-plot {
  display: grid;
  gap: 3px;
  height: 150px;
  align-items: end;
  border-bottom: 1px solid var(--grid);
  direction: ltr;
}
.column {
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: default;
  border-radius: 4px 4px 0 0;
}
.column i {
  display: block;
  width: 100%;
  background: #9cc79f;
  border-radius: 4px 4px 0 0;
}
.column.peak i,
.column:hover i,
.column:focus-visible i {
  background: var(--series-current);
}
.columns-labels {
  display: grid;
  gap: 3px;
  direction: ltr;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.columns-labels .thin {
  visibility: hidden;
}
.columns .chart-tip {
  transform: translate(-50%, calc(-100% - 6px));
}
.heat {
  border-collapse: separate !important;
  border-spacing: 4px;
}
.heat th,
.heat td {
  border: 0 !important;
  padding: 0 !important;
  text-align: center;
  position: static !important;
}
.heat tbody th {
  text-align: start;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  white-space: normal;
  padding-inline-end: 8px !important;
}
.hc {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hc.low {
  background: #f3f4f1;
  color: var(--muted);
  font-weight: 400;
}
.hc.peak {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.scale {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.scale i {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.bundles {
  display: grid;
  gap: 14px;
}
.bundle .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 5px;
}
.bundle .track {
  height: 8px;
  border-radius: 4px;
  background: #edf0e9;
  overflow: hidden;
}
.bundle .track i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--series-current);
}
@media (max-width: 1150px) {
  .ins-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .workspace-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: #fcfdf9;
  }
  .workspace-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    min-height: 38px;
  }
  .workspace-tabs a.active {
    background: #20372c;
    color: #f4f8ef;
    font-weight: 600;
  }
  .ins-head h1 {
    font-size: 24px;
  }
  .ins-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .ins-card.headline .value {
    font-size: 30px;
  }
  .ins-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ins-card .value {
    font-size: 20px;
  }
  .hbar {
    grid-template-columns: 86px minmax(0, 1fr) 90px;
    gap: 8px;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .chips button {
    flex-shrink: 0;
  }
}
.costs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.costs-main {
  min-width: 0;
}
.workspace-content .field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2ed;
}
.workspace-content .field-row label {
  font-size: 14px;
  font-weight: 600;
}
.workspace-content .field-row small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.money-input {
  display: flex;
  align-items: center;
  border: 1px solid #849282;
  border-radius: 7px;
  background: #fbfcf8;
  overflow: hidden;
}
.money-input:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.money-input input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font-size: 14px;
  text-align: end;
  outline: none;
}
.money-input input[aria-invalid='true'] {
  background: var(--bad-bg);
}
.money-input span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.money-input.compact {
  width: 120px;
  margin-inline-start: auto;
}
.money-input.compact input {
  padding: 7px 8px;
}
.workspace-content .check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  padding-top: 12px;
}
.workspace-content .check input {
  width: 18px;
  height: 18px;
  accent-color: var(--focus);
}
.expense-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.expense-row.once {
  grid-template-columns: minmax(0, 1fr) 150px 120px 40px;
}
.expense-row > input {
  border: 1px solid #849282;
  border-radius: 7px;
  background: #fbfcf8;
  padding: 8px 10px;
  font-size: 14px;
  min-width: 0;
}
.expense-row .money-input.compact {
  width: auto;
}
/* Cost rules: type, words, amount, unit, remove; the preview runs under the row. */
.rule-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 100px 110px 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.rule-row > input,
.rule-row > select {
  border: 1px solid #849282;
  border-radius: 7px;
  background: #fbfcf8;
  padding: 8px 10px;
  font-size: 14px;
  min-width: 0;
  height: 38px;
}
.rule-row .money-input.compact {
  width: auto;
}
.rule-preview {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  margin-top: -4px;
}
.rule-preview:empty {
  display: none;
}
.rule-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.icon-button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--danger);
}
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px dashed #b8c2b2;
  background: none;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--focus);
  font-weight: 600;
  font-size: 14px;
}
.costs-summary {
  background: #20372c;
  color: #f1f5eb;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 20px;
}
.costs-summary h2 {
  font-size: 17px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #b9cbb6;
}
.summary-line strong {
  color: #f1f5eb;
  font-variant-numeric: tabular-nums;
}
.breakeven {
  background: #ffffff12;
  border-radius: 9px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.breakeven b {
  color: var(--lime);
}
.costs-summary .button {
  width: 100%;
  background: var(--lime);
  color: #20372c;
}
.costs-summary .button:disabled {
  opacity: 0.55;
}
.save-state {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  font-size: 12px;
  color: #b9cbb6;
  margin: 0;
}
@media (max-width: 1150px) {
  .costs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .costs-summary {
    position: static;
  }
}
@media (max-width: 600px) {
  .workspace-content .field-row {
    grid-template-columns: minmax(0, 1fr) 120px;
  }
  .expense-row.once {
    grid-template-columns: minmax(0, 1fr) 110px 40px;
  }
  .expense-row.once input[type='date'] {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .rule-row {
    grid-template-columns: minmax(0, 1fr) 68px 88px 38px;
  }
  .rule-row > select {
    padding: 6px;
    font-size: 13px;
  }
  .rule-row > input:not([type='number']) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .rule-actions {
    grid-template-columns: 1fr;
  }
}
.costs-grid {
  margin-top: 20px;
}
@media (max-width: 600px) {
  .workspace-content .hide-sm {
    display: none;
  }
  .money-input.compact {
    width: 100px;
  }
}
.logout-error {
  font-size: 12px;
  color: #ffc9b8;
  margin: 8px 0 0;
}
.store-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.store-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: start;
}
.store-option p {
  margin: 4px 0;
  font-size: 12px;
}

/* ---------- Marketing funnel ---------- */
.funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.funnel li {
  display: grid;
  grid-template-columns: minmax(96px, 150px) 1fr auto minmax(96px, auto);
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.funnel-label {
  color: var(--ink);
}
.funnel-track {
  height: 14px;
  background: var(--grid);
  border-radius: 4px;
  overflow: hidden;
}
.funnel-track i {
  display: block;
  height: 100%;
  background: var(--series-current);
  border-radius: 0 4px 4px 0;
}
[dir='rtl'] .funnel-track i {
  border-radius: 4px 0 0 4px;
}
.funnel-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: end;
}
.funnel-rate {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.funnel-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin: 22px 0 10px;
}
.funnel-missing {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.funnel-missing a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .funnel li {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  .funnel-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .funnel-rate {
    grid-column: 1 / -1;
  }
}

.auth-form label.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.6;
}
.auth-form .consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  padding: 0;
}
.auth-form input[autocomplete='organization'] {
  direction: inherit;
}
.terms-card {
  max-width: 800px;
  text-align: start;
}

.legal-page.default-en:not(:has(> #he:target)) > #he {
  display: none;
}
.legal-page.default-en:not(:has(> #he:target)) > #en {
  display: block;
}
/* Costs: the quick way to cost hundreds of products. */
.coverage-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 4px 0 16px;
}
.coverage-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}
.quick-steps {
  margin: 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.quick-steps li::marker {
  color: var(--green);
  font-weight: 700;
}
.quick-steps li:last-child {
  list-style: none;
  margin-inline-start: -20px;
  color: var(--muted);
}
.quick-steps .rule-actions {
  margin-top: 10px;
}
.option-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}
.chip-button small {
  color: var(--muted);
}
.chip-button:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--lime);
}
.chip-button:disabled {
  opacity: 0.5;
  cursor: default;
}
/* The chat with the bot: a launcher at the bottom right of every workspace page, opening a
   panel above it. Placed on the right in both languages; in Hebrew the sidebar is on the right,
   so the chat sits beside it rather than over it. */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
}
.chat-widget[dir='rtl'] {
  right: 266px;
}
@media (max-width: 1150px) {
  .chat-widget[dir='rtl'] {
    right: 239px;
  }
}
@media (max-width: 850px) {
  .chat-widget[dir='rtl'] {
    right: 209px;
  }
}
.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgb(23 37 31 / 28%);
}
.chat-launcher svg {
  color: var(--lime);
}
.chat-launcher:hover {
  background: var(--green);
}
.chat-panel {
  width: 380px;
  height: min(580px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgb(23 37 31 / 22%);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
}
.chat-header div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.chat-header span:not(.chat-avatar) {
  font-size: 12px;
  color: var(--on-dark-muted);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}
.chat-header button {
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.chat-header button:hover {
  background: rgb(255 255 255 / 12%);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
}
.chat-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
}
.chat-bubble.me {
  align-self: flex-end;
  background: var(--green);
  color: var(--white);
}
.chat-bubble a {
  color: var(--green);
  text-decoration: underline;
}
.chat-bubble.me a {
  color: var(--white);
}
.chat-bubble code {
  font-size: 13px;
  background: var(--paper);
  padding: 1px 4px;
  border-radius: 4px;
}
.chat-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  white-space: normal;
}
.chat-buttons div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-buttons button,
.chat-choices button {
  border: 1px solid var(--green);
  background: var(--white);
  color: var(--green);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.chat-buttons button:hover,
.chat-choices button:hover {
  background: var(--lime);
}
.chat-buttons button:disabled,
.chat-choices button:disabled {
  opacity: 0.55;
  cursor: default;
}
.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 14px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.chat-note {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-error {
  color: var(--danger);
  font-size: 13px;
  margin: 0;
}
.chat-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-input textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  max-height: 120px;
  field-sizing: content;
}
.chat-input button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.chat-input button:disabled {
  opacity: 0.4;
  cursor: default;
}
[dir='rtl'] .chat-send-icon {
  transform: scaleX(-1);
}
@media (max-width: 600px) {
  .chat-widget,
  .chat-widget[dir='rtl'] {
    right: 16px;
    bottom: 16px;
  }
  .chat-panel {
    position: fixed;
    inset: auto 8px 8px 8px;
    width: auto;
    height: calc(100dvh - 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing span {
    animation: none;
  }
}
/* Advertising by platform: one card per platform, with its logo. */
.ad-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.ad-platform {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
}
.ad-platform header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-platform header .muted {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--muted);
}
.ad-spend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ad-spend .value {
  font: 700 24px var(--font-display);
  font-variant-numeric: tabular-nums;
}
.ad-share {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.ad-share i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: inherit;
}
.ad-platform dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 13px;
}
.ad-platform dl div {
  display: flex;
  flex-direction: column;
}
.ad-platform dt {
  color: var(--muted);
  font-size: 12px;
}
.ad-platform dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ad-platform dd small {
  color: var(--muted);
  font-weight: 400;
}
.ad-platform .tone-good dd {
  color: var(--success);
}
.ad-platform .tone-bad dd {
  color: var(--danger);
}
.ad-platform.add {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  text-decoration: none;
  min-height: 120px;
}
.ad-platform.add span {
  color: var(--green);
  font-weight: 600;
}
.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.account-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #b9cdb6;
  border-radius: 10px;
  background: #f2f7ed;
  color: #203c2f;
  text-align: start;
  cursor: pointer;
  min-width: 200px;
}
.account-switcher span,
.account-option span {
  flex: 1;
  min-width: 0;
}
.account-switcher strong,
.account-switcher small,
.account-option strong,
.account-option small {
  display: block;
}
.account-switcher strong {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-switcher small,
.account-option small {
  font-size: 12px;
  margin-top: 3px;
}
.account-picker {
  width: min(520px, calc(100vw - 32px));
}
.account-picker > p {
  line-height: 1.7;
  color: #59695f;
}
.account-options {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  max-height: 45vh;
  overflow: auto;
}
.account-option {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: white;
  border: 1px solid #dce3d9;
  border-radius: 10px;
  text-align: start;
  color: #203c2f;
  cursor: pointer;
}
.account-option strong {
  overflow-wrap: anywhere;
}
.account-option.is-active,
.store-option.is-active {
  border: 1px solid #7a9c65;
  background: #f2f7ed;
  opacity: 1;
}
.account-option:hover:not(:disabled) {
  background: #f7f9f4;
  border-color: #7a9c65;
}
.account-add {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}
.workspace-header {
  min-height: 88px;
  height: auto;
  gap: 16px;
  padding-block: 12px;
}
@media (max-width: 640px) {
  .workspace-header {
    align-items: stretch;
    flex-direction: column;
  }
  .account-switcher {
    width: 100%;
  }
  .account-switcher strong {
    max-width: 65vw;
  }
}

/* Dashboard colors: green when a figure moved the good way, red when it moved the bad way. */
.ins-card.tone-good {
  border-color: #b7d9b0;
  background: linear-gradient(180deg, #f1f8ee, var(--white) 70%);
  box-shadow: inset 0 3px 0 var(--success);
}
.ins-card.tone-bad {
  border-color: #efc4b8;
  background: linear-gradient(180deg, #fcf1ed, var(--white) 70%);
  box-shadow: inset 0 3px 0 var(--danger);
}
.ins-card.tone-good .value {
  color: var(--success);
}
.ins-card.tone-bad .value {
  color: var(--danger);
}
.hbar.is-good .val {
  color: var(--success);
}
.hbar.is-bad .val {
  color: var(--danger);
}
.hbar.is-bad .val small,
.hbar.is-good .val small {
  color: var(--muted);
}
.tip-line {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}
.income-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.income-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.income-list li > span:first-child {
  flex: 1;
}
.income-list small {
  color: var(--muted);
}
.income-amount {
  color: var(--success);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Returning customers. */
.customer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.customer-stats article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.customer-stats .label,
.customer-stats .sub {
  font-size: 12px;
  color: var(--muted);
}
.customer-stats .value {
  font: 700 22px var(--font-display);
  font-variant-numeric: tabular-nums;
}
.customer-split {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
/* Stock: what is out or running out. */
.stock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stock-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.stock-list small,
.stock-list .muted {
  color: var(--muted);
  font-size: 12px;
}
.stock-ok {
  color: var(--success);
  margin: 0;
}
