:root[data-theme] {
  color-scheme: light;
  accent-color: var(--button);
  --paper: #f2f6f7;
  --white: #fcfefe;
  --ink: #183153;
  --accent: #006775;
  --border: #cbd9e0;
  --muted: #4a6072;
  --surface-tint: #dfeff0;
  --field: #f6f9fa;
  --focus: #007684;
  --button: #d5e879;
  --button-hover: #c3da61;
  --on-button: #182e48;
  --danger: #9c2e23;
  --sidebar: #d5e879;
  --sidebar-text: #183153;
  --sidebar-muted: #3d512c;
  --sidebar-hover: #e6f1a8;
  --sidebar-active: #183153;
  --sidebar-border: #a4b65b;
  --sidebar-highlight: #f3fad3;
  --sidebar-indicator: #fbffe8;
  --sidebar-focus: #183153;
  --light-logo-display: block;
  --dark-logo-display: none;
  --lime-tint: #edf5cd;
  --lime-outline: #798e2c;
  --shadow: 0 1px 2px #1025390d;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --light-logo-display: none;
  --dark-logo-display: block;
  --paper: #101d2c;
  --white: #192b3d;
  --ink: #f1f7fb;
  --accent: #7fdae1;
  --border: #395066;
  --muted: #b3c8d7;
  --surface-tint: #223e51;
  --field: #142537;
  --focus: var(--button);
  --lime-tint: #2d3b30;
  --lime-outline: var(--button);
  --button-hover: #e4f4a2;
  --danger: #ffb6ac;
  --shadow: 0 1px 2px #0003;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --light-logo-display: none;
    --dark-logo-display: block;
    --paper: #101d2c;
    --white: #192b3d;
    --ink: #f1f7fb;
    --accent: #7fdae1;
    --border: #395066;
    --muted: #b3c8d7;
    --surface-tint: #223e51;
    --field: #142537;
    --focus: var(--button);
    --lime-tint: #2d3b30;
    --lime-outline: var(--button);
    --button-hover: #e4f4a2;
    --danger: #ffb6ac;
    --shadow: 0 1px 2px #0003;
  }
}
.app-body {
  display: grid;
  grid-template-columns: 16.25rem minmax(0, 1fr);
  min-height: 100dvh;
  font-size: .9375rem;
}
.app-sidebar {
  --sidebar-item-inset: .72rem;
  --sidebar-item-gap: .72rem;
  --sidebar-icon-size: 1.25rem;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.15rem .95rem .85rem;
  color: var(--sidebar-text);
  background: var(--sidebar);
  border-inline-end: 1px solid var(--sidebar-border);
  z-index: 2;
}
.sidebar-head { display: flex; justify-content: space-between; align-items: center; }
.sidebar-brand {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: .4rem 0 1.8rem .36rem;
}
.flowkit-logo,
.flowkit-sidebar-logo {
  width: min(100%, 12rem);
  height: auto;
}
.flowkit-logo { display: var(--light-logo-display); border-radius: .32rem; }
.flowkit-sidebar-logo { display: block; }
.flowkit-logo-dark { display: var(--dark-logo-display); }
.sidebar-content { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.sidebar-content > nav { display: grid; align-content: start; gap: .24rem; overflow: auto; padding: .2rem; margin: -.2rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sidebar-item-gap);
  min-height: 2.65rem;
  width: 100%;
  padding: .62rem var(--sidebar-item-inset);
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: var(--sidebar-text);
  text-align: left;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 580;
  line-height: 1.25;
}
.sidebar-link svg { flex: none; width: var(--sidebar-icon-size); height: var(--sidebar-icon-size); color: var(--sidebar-muted); }
.sidebar-link[aria-current="page"] { background: var(--sidebar-active); color: var(--sidebar-highlight); box-shadow: inset 3px 0 var(--sidebar-indicator); }
.sidebar-link[aria-current="page"] svg { color: var(--sidebar); }
.sidebar-section {
  margin: 1.05rem 0 .35rem .72rem;
  color: var(--sidebar-muted);
  font-size: .75rem;
  font-weight: 660;
}
.sidebar-toggle { display: none; }
.account-menu { position: relative; margin-top: auto; padding-top: 1.25rem; }
.account-menu summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .45rem;
  border-top: 1px solid var(--sidebar-border);
  border-radius: .45rem;
  cursor: pointer;
  list-style: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary > svg { flex: none; width: 1rem; }
.account-menu[open] summary > svg { transform: rotate(180deg); }
.account-label { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.account-label strong, .account-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-label small { margin-top: .12rem; color: var(--sidebar-muted); font-size: .75rem; }
.app-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
  font-size: .875rem;
  font-weight: 740;
}
.account-popover {
  position: absolute;
  inset: auto 0 calc(100% - .75rem);
  padding: .35rem;
  border: 1px solid var(--sidebar-border);
  border-radius: .72rem;
  background: var(--sidebar-hover);
  box-shadow: 0 .5rem 1.6rem #0005;
}
.app-sidebar :focus-visible { outline-color: var(--sidebar-focus); outline-offset: 2px; }
.app-main {
  min-width: 0;
  width: 100%;
  max-width: 118rem;
  margin: 0 auto;
  padding: clamp(1.6rem, 3vw, 3.2rem) clamp(1.15rem, 3vw, 3.5rem);
}
.app-main h1 { margin-bottom: 1.35rem; font-size: clamp(1.8rem, 2.7vw, 2.75rem); letter-spacing: -.045em; }
.app-main h2 { font-size: clamp(1.06rem, 1.7vw, 1.45rem); }
.app-main > section + section, .app-main > .page-heading + section { margin-top: 1.15rem; }
.app-main .panel { border-radius: .85rem; padding: clamp(1rem, 2vw, 1.65rem); box-shadow: var(--shadow); }
.app-main :is(input:not([type=checkbox], [type=radio]), select, textarea) {
  border-color: var(--border);
  border-radius: .55rem;
  background-color: var(--field);
}
.app-main select {
  appearance: none;
  min-height: 2.65rem;
  min-width: 0;
  max-width: 100%;
  padding: .55rem 2.1rem .55rem .72rem;
  border: 1px solid var(--border);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right .95rem center, right .65rem center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color .18s ease;
}
.app-main select:hover { border-color: var(--focus); }
@media (forced-colors: active) {
  .app-main select { appearance: auto; padding-inline-end: .72rem; background-image: none; }
}
.app-main :is(label, legend) { font-size: .9rem; }
.app-main fieldset { min-inline-size: 0; }
.app-main legend { font-weight: 650; }
.app-main :is(small, .muted) { color: var(--muted); }
.app-main :focus-visible { outline-color: var(--focus); }
.app-main .alert { color: var(--danger); }
.app-main :is(button, a.button) { background: var(--button); color: var(--on-button); border-radius: .55rem; }
.app-main button.secondary { border: 1px solid var(--border); background: var(--field); color: var(--ink); }
.app-main button:disabled { opacity: .58; cursor: default; }
.app-main :is(.pipe-card, .help-card, .share-card, .theme-option, button), .sidebar-link, .account-menu summary {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) {
  .sidebar-link:not([aria-current]):hover, .account-menu summary:hover { background: var(--sidebar-hover); }
  .app-main :is(.pipe-card, .help-card, .share-card, .theme-option):hover { border-color: var(--focus); box-shadow: 0 .3rem 1rem #172e4c11; }
  .app-main :is(.pipe-card, .help-card):hover { transform: translateY(-2px); }
  .app-main button:not(:disabled, .secondary):hover { background: var(--button-hover); }
  .app-main button.secondary:hover { background: var(--surface-tint); }
}
.dashboard-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(14.5rem, 25vw, 19rem);
  padding: clamp(1.5rem, 4.4vw, 3.65rem);
  border: 1px solid #3b617b;
  border-radius: 1.2rem;
  background: linear-gradient(112deg, #172e4c 8%, #204962 55%, #286575);
  box-shadow: 0 .35rem 1.1rem #172e4c19;
  color: #f1f7fb;
}
.hero-copy { position: relative; z-index: 1; width: min(100%, 32rem); }
.app-main .dashboard-hero h1 {
  margin: 0;
  font: 650 clamp(2.65rem, 5vw, 4.85rem)/.98 Georgia, serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero-copy p { max-width: 41ch; margin: .85rem 0 1.3rem; color: #d6e8f0; font-size: .98rem; }
.app-main .dashboard-hero .hero-action {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .58rem .9rem .58rem 1rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font-size: .89rem;
}
.app-main .dashboard-hero .hero-action:hover { background: var(--button-hover); }
.dashboard-hero .hero-action:focus-visible { outline-color: #e4f4a2; }
.hero-action svg { width: 1rem; height: 1rem; transform: rotate(-90deg); }
.hero-art { position: absolute; z-index: 0; inset: 0 0 0 39%; pointer-events: none; }
.hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 2.2rem, #eaf6ff12 2.2rem 2.25rem);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}
.hero-art > div {
  position: absolute;
  border: 1px solid #c5edf450;
  background:
    repeating-radial-gradient(ellipse at 28% 100%, #c7edf142 0 1px, transparent 1.5px 12px),
    linear-gradient(150deg, #69c9ce, #2c788e 68%, #2c596f);
}
.hero-art > div:nth-child(1) { width: 73%; height: 147%; right: 2%; top: 13%; transform: rotate(-24deg); border-radius: 70% 22% 69% 34%; opacity: .58; }
.hero-art > div:nth-child(2) { width: 72%; height: 125%; right: -10%; top: -49%; transform: rotate(28deg); border-radius: 33% 72% 33% 68%; opacity: .75; }
.hero-art > div:nth-child(3) { width: 65%; height: 123%; right: -16%; bottom: -46%; transform: rotate(-16deg); border-radius: 75% 35% 50% 23%; opacity: .93; }
@media (max-width: 48rem) {
  .hero-art { inset-inline-start: 48%; opacity: .62; }
  .dashboard-hero { padding: 1.75rem 1.35rem; }
  .hero-copy p { max-width: min(90%, 35ch); }
}
@media (max-width: 33rem) {
  .hero-art { inset-inline-start: 55%; opacity: .42; }
  .app-main .dashboard-hero h1 { font-size: clamp(2.15rem, 9vw, 3.2rem); }
}
.app-main .pipes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.app-main .follow-up-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template: "icon heading count arrow" auto / auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .55rem .85rem;
  padding: .8rem 1rem;
  background: var(--lime-tint);
  border-inline-start: .23rem solid var(--lime-outline);
}
.follow-up-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--button);
  color: var(--on-button);
}
.app-main .pipes .follow-up-card h2 { grid-area: heading; font-size: .98rem; }
.app-main .pipes .follow-up-card strong {
  grid-area: count;
  justify-self: start;
  min-width: 2rem;
  padding: .2rem .45rem;
  border-radius: .45rem;
  background: var(--button);
  color: var(--on-button);
  text-align: center;
  line-height: 1.15;
}
.follow-up-arrow { grid-area: arrow; display: inline-flex; color: var(--accent); }
.follow-up-arrow svg { transform: rotate(-90deg); }
@media (max-width: 60rem) {
  .app-main .pipes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-main .follow-up-card {
    grid-column: auto;
    grid-template: "icon heading" auto "count arrow" auto / auto minmax(0, 1fr);
    gap: .5rem;
  }
  .follow-up-arrow { justify-self: end; }
  .follow-up-icon { width: 1.65rem; height: 1.65rem; border-radius: .4rem; }
  .follow-up-icon svg { width: 1rem; height: 1rem; }
  .app-main .pipes .follow-up-card h2 { font-size: .85rem; overflow-wrap: anywhere; }
}
@media (max-width: 49rem) {
  .app-main .pipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.app-main .pipe-card h2 { font-size: .88rem; }
.app-main .pipe-card strong { font-size: 1.9rem; letter-spacing: -.04em; }
.share-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.2rem; margin-bottom: 1.15rem; }
.app-main .share-heading h1 { margin: 0; }
.app-main .funnel-language { min-width: 8.6rem; gap: .3rem; color: var(--muted); font-size: .8rem; }
.funnel-language span { display: flex; align-items: center; gap: .35rem; }
.funnel-language svg { width: .93rem; height: .93rem; color: var(--accent); }
.app-main .funnel-language select {
  min-width: 9.2rem;
  color: var(--ink);
  background-color: var(--surface-tint);
  box-shadow: var(--shadow);
  font-weight: 650;
}
@supports (appearance: base-select) and selector(select::picker(select)) {
  .app-main select.language-select,
  .app-main select.language-select::picker(select) {
    appearance: base-select;
  }
  .app-main select.language-select {
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding-inline: .75rem;
    background-image: none;
    font-weight: 650;
  }
  .app-main select.language-select:open {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--surface-tint);
  }
  .language-select::picker-icon {
    align-self: center;
    color: var(--accent);
  }
  .language-select:open::picker-icon { transform: rotate(180deg); }
  .app-main select.language-select::picker(select) {
    margin-block: .35rem;
    min-inline-size: anchor-size(width);
    padding: .28rem;
    border: 1px solid var(--border);
    border-radius: .7rem;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    box-shadow: 0 .5rem 1.35rem #172e4c39;
  }
  .language-select option {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 2.45rem;
    padding: .45rem .65rem;
    border-radius: .45rem;
    cursor: pointer;
  }
  .language-select option:checked {
    background: var(--surface-tint);
    color: var(--accent);
    font-weight: 700;
  }
  .language-select option:hover,
  .language-select option:focus-visible {
    outline: 1px solid var(--focus);
    outline-offset: -1px;
    background: var(--surface-tint);
  }
  .language-select option::checkmark {
    order: 1;
    margin-inline-start: auto;
  }
  @media (forced-colors: active) {
    .app-main select.language-select,
    .app-main select.language-select::picker(select) { appearance: auto; }
  }
}
.share-list { display: grid; gap: .8rem; }
.share-card { border: 1px solid var(--border); border-radius: .8rem; background: var(--field); }
.share-layout { display: grid; grid-template-columns: minmax(11rem, .85fr) repeat(2, minmax(0, 1fr)); align-items: start; gap: 1.25rem; padding: 1.15rem; }
.share-layout[hidden] { display: none; }
.share-class { display: flex; align-items: flex-start; gap: .7rem; }
.share-class h3 { margin: .15rem 0 .35rem; font-size: 1.04rem; line-height: 1.28; letter-spacing: -.02em; }
.share-icon { display: grid; flex: none; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .65rem; color: var(--accent); background: var(--surface-tint); border: 1px solid var(--border); }
.share-language-badge { display: inline-block; border: 1px solid var(--border); border-radius: 2rem; padding: .08rem .46rem; color: var(--muted); font-weight: 650; font-size: .74rem; }
.share-step { min-width: 0; }
.share-step + .share-step { border-inline-start: 1px solid var(--border); padding-inline-start: 1.15rem; }
.app-main .share-step input { padding: .53rem .6rem; font-size: .86rem; background: var(--white); }
.share-step .actions { margin-top: .6rem; gap: .45rem .65rem; }
.share-step button { font-size: .82rem; padding: .35rem .65rem; }
.share-step a { font-size: .83rem; }
#workspace-status:empty { margin: 0; }
#workspace-status:not(:empty) { margin: .75rem 0 0; color: var(--accent); font-weight: 650; }
@media (max-width: 72rem) {
  .share-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .9rem; }
  .share-class { grid-column: 1 / -1; }
}
@media (max-width: 33rem) {
  .share-layout { grid-template-columns: minmax(0, 1fr); }
  .share-step + .share-step { border-inline-start: 0; border-top: 1px solid var(--border); padding-inline-start: 0; padding-top: .85rem; }
}
.app-main .crm-panel { padding: 0; }
.crm-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) repeat(3, minmax(7rem, 1fr)) auto;
  align-items: end;
  gap: .85rem;
  padding: 1.15rem 1.3rem;
}
.crm-filters label { min-width: 0; gap: .32rem; }
.crm-toolbar button { display: inline-flex; align-items: center; gap: .48rem; }
.crm-filters input[type=search] { min-height: 2.65rem; padding: .55rem .72rem; }
.crm-filters a { align-self: end; justify-self: start; display: inline-flex; align-items: center; min-height: 2.65rem; }
.crm-toolbar svg { width: 1rem; height: 1rem; }
.crm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.1rem;
  padding: .78rem 1.3rem;
  border-block: 1px solid var(--border);
}
.app-main .crm-select-all { display: flex; align-items: center; gap: .45rem; cursor: pointer; font-weight: 600; }
.crm-toolbar input, .crm-table input { width: 1rem; height: 1rem; margin: 0; vertical-align: middle; accent-color: var(--accent); cursor: pointer; }
.crm-toolbar button { padding: .32rem .58rem; font-size: .82rem; }
.crm-toolbar [role=status], .crm-footer { font-size: .84rem; color: var(--muted); }
.crm-toolbar [data-contact-feedback]:empty { display: none; }
.crm-copy-fallback { flex-basis: 100%; }
.crm-copy-fallback[hidden] { display: none; }
.crm-table { padding-bottom: .15rem; outline-offset: -3px; }
.crm-table table { min-width: 58rem; font-size: .84rem; }
.crm-table :is(th, td) { padding: .58rem .55rem; vertical-align: middle; border-color: var(--border); }
.crm-table thead th { color: var(--muted); background: var(--field); font-size: .76rem; font-weight: 720; white-space: nowrap; }
.crm-table :is(th, td):first-child { padding-left: 1.3rem; }
.crm-table :is(th, td):last-child { padding-right: 1.3rem; }
.crm-table tbody th { font-weight: 670; }
.crm-table tbody th a { color: var(--ink); text-decoration-color: var(--border); }
.crm-table tbody th a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.crm-table tbody tr:nth-child(even) { background: var(--field); }
.crm-table tbody tr:hover, .crm-table tbody tr:has(input:checked) { background: var(--surface-tint); }
.crm-table tbody :is(th:nth-child(2), td:nth-child(3)) { min-width: 6.55rem; overflow-wrap: anywhere; }
.crm-table .crm-email { min-width: 10rem; max-width: 16rem; }
.crm-email-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.crm-badge { display: inline-block; border-radius: 2rem; padding: .15rem .43rem; border: 1px solid var(--border); color: var(--muted); font-size: .76rem; font-weight: 620; white-space: nowrap; }
.crm-badge[data-stage="converted"], .crm-badge[data-stage="engaged"] { color: var(--accent); background: var(--surface-tint); }
.crm-row-actions { display: flex; gap: .35rem; }
.crm-row-actions a { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border: 1px solid var(--border); border-radius: .4rem; background: var(--white); transition: background-color .18s ease; }
.crm-row-actions a:hover { background: var(--surface-tint); }
.crm-row-actions svg { width: .93rem; height: .93rem; }
.crm-table .crm-empty { text-align: center; padding: 2rem; color: var(--muted); }
.crm-footer { display: flex; flex-wrap: wrap; justify-content: space-between; padding: .85rem 1.3rem; gap: .6rem; }
.crm-footer nav { gap: .65rem; }
.crm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 64rem) {
  .crm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .crm-table table:has(.crm-empty) { min-width: 0; }
}
.settings-panel { max-width: 67rem; scroll-margin-top: 1rem; }
.settings-panel form { max-width: 62rem; }
.settings-panel label:has(> select) { max-width: 25rem; }
.settings-panel textarea { resize: vertical; }
.settings-notice { display: inline-block; margin: -.25rem 0 0; padding: .48rem .75rem; border-radius: .4rem; background: var(--surface-tint); }
.settings-actions, .photo-editor { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.photo-editor { gap: 1rem 1.35rem; }
.photo-preview .app-avatar { width: 5rem; height: 5rem; font-size: 1.5rem; }
.photo-feedback { margin: 0; color: var(--danger); }
.theme-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .85rem; border: 0; padding: 0; max-width: 39rem; }
.theme-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .7rem;
  background: var(--field);
  cursor: pointer;
}
.theme-option:has(:checked) { border-color: var(--lime-outline); background: var(--lime-tint); }
.theme-option input { order: 1; accent-color: var(--button); margin: 0; }
.theme-option > span:last-child { order: 2; }
.theme-swatch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 27% 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .3rem;
  aspect-ratio: 1.95;
  padding: .55rem;
  border: 1px solid #cbd9e0;
  border-radius: .45rem;
  background: #f2f6f7;
}
.theme-swatch i { border-radius: .22rem; background: #a9dbe0; }
.theme-swatch i:first-child { grid-row: span 2; background: #d5e879; }
[data-preview-theme="dark"] .theme-swatch { background: #101d2c; border-color: #557186; }
[data-preview-theme="dark"] .theme-swatch i:not(:first-child) { background: #2e5368; }
[data-preview-theme="system"] .theme-swatch { background: linear-gradient(114deg, #f2f6f7 54%, #192b3d 54%); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.help-card { display: block; color: var(--ink); text-decoration: none; }
.help-card svg { margin-bottom: .6rem; color: var(--accent); }
.help-card p { margin-bottom: 0; color: var(--muted); }
@media (max-width: 49rem) {
  .app-body { display: block; }
  .app-sidebar {
    height: auto;
    max-height: 100dvh;
    overflow-y: auto;
    padding: .75rem 1rem;
    border-inline-end: 0;
    border-block-end: 1px solid var(--sidebar-border);
  }
  .sidebar-brand { margin: 0; max-width: min(75%, 12rem); }
  .sidebar-toggle { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0; background: var(--sidebar-hover); color: var(--sidebar-text); }
  .sidebar-toggle[aria-expanded="true"] { background: var(--sidebar-active); color: var(--sidebar-highlight); }
  .sidebar-content { display: none; padding-top: .75rem; }
  .app-sidebar.is-open .sidebar-content { display: flex; }
  .account-menu { padding-top: .75rem; }
  .account-popover { position: static; margin-top: .35rem; box-shadow: none; }
  .app-main { padding-top: 1.5rem; }
  .settings-panel, .app-main #share-links { scroll-margin-top: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app-main *, .app-sidebar * { transition: none !important; }
}
.funnel-profile-fields { display: grid; gap: 1rem; margin-top: 1rem; }
[data-page-image] { display: grid; gap: .55rem; margin-top: .85rem; }
[data-page-image] .funnel-page-photo { margin: 0; max-width: 16rem; }
[data-remove-page-image][hidden] { display: none; }

.funnel-logo-settings { margin-top: 1.1rem; scroll-margin-top: 4.5rem; }
.logo-modes, .logo-symbols { padding: .7rem 0 0; border: 0; }
.logo-mode-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .55rem; }
.logo-mode-options label {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--field);
  cursor: pointer;
}
.logo-mode-options label:has(:checked), .brand-marks label:has(:checked) {
  border-color: var(--accent);
  background: var(--surface-tint);
}
.logo-mode-options label:hover, .brand-marks label:hover { border-color: var(--focus); }
.logo-mode-options input { flex: none; width: 1rem; height: 1rem; padding: 0; accent-color: var(--accent); margin: 0; }
.logo-panel { margin-top: .85rem; }
@supports selector(:has(*)) {
  .funnel-logo-settings .logo-panel { display: none; }
  .funnel-logo-settings:has([name="funnel-logo-mode"][value="upload"]:checked) [data-logo-panel="upload"],
  .funnel-logo-settings:has([name="funnel-logo-mode"][value="symbol"]:checked) [data-logo-panel="symbol"],
  .funnel-logo-settings:has([name="funnel-logo-mode"][value="none"]:checked) [data-logo-panel="none"] { display: grid; }
}
.logo-sample {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--white);
  color: var(--accent);
}
.logo-upload-empty { border-style: dashed; background: var(--field); color: var(--muted); }
.brand-marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.55rem, 1fr)); gap: .5rem; }
.brand-marks label { position: relative; display: block; border: 1px solid var(--border); border-radius: .6rem; background: var(--field); }
.brand-marks input { position: absolute; opacity: 0; width: 1rem; height: 1rem; padding: 0; margin: 0; }
.brand-marks input:focus-visible + .symbol-option { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: .55rem; }
.symbol-option { display: grid; justify-items: center; align-content: center; gap: .4rem; min-height: 4.75rem; padding: .48rem .35rem; cursor: pointer; text-align: center; font-size: .78rem; }
.symbol-option svg { width: 1.65rem; height: 1.65rem; color: var(--accent); }
.founder-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.founder-metrics > div { display: grid; gap: .35rem; }
.founder-metrics span { color: var(--muted); font-weight: 650; }
.founder-metrics strong { font-size: 1.85rem; line-height: 1.2; }
.founder-plans { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.founder-plans { justify-content: space-between; }
.plan-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.plan-chips span { padding: .25rem .55rem; border: 1px solid var(--border); border-radius: 2rem; font-size: .85rem; }
.founder-members table { font-size: .86rem; min-width: 49rem; }
.founder-members td { vertical-align: middle; }
.member-plan { display: flex; gap: .4rem; align-items: center; }
.member-plan button { padding: .43rem .55rem; }
.translation-table table { min-width: 32rem; }
.translation-table td { width: 38%; vertical-align: top; }
.translation-table th { vertical-align: top; }
.translation-shortcut { align-self: end; }

.sidebar-divider { width: 100%; border: 0; border-top: 1px solid var(--sidebar-border); margin: .65rem 0 .42rem; }
.sidebar-view-as { width: 100%; margin: .12rem 0 0; padding-inline: var(--sidebar-item-inset); }
.sidebar-view-as label {
  display: grid;
  grid-template-columns: var(--sidebar-icon-size) minmax(0, 1fr);
  gap: .45rem var(--sidebar-item-gap);
  min-width: 0;
}
.sidebar-view-as-caption {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--sidebar-item-gap);
  color: var(--sidebar-muted);
  font-size: .83rem;
  font-weight: 650;
}
.sidebar-view-as-caption svg { width: var(--sidebar-icon-size); height: var(--sidebar-icon-size); flex: none; }
.sidebar-view-as select {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .5rem .72rem;
  color-scheme: light;
  background: var(--sidebar-hover);
  border: 1px solid var(--sidebar-border);
  border-radius: .6rem;
  color: var(--sidebar-text);
  font-size: .875rem;
  font-weight: 680;
  text-align: start;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.sidebar-view-as select:hover { border-color: var(--sidebar-muted); }
@supports (appearance: base-select) and selector(select::picker(select)) {
  .sidebar-view-as select, .sidebar-view-as select::picker(select) { appearance: base-select; }
  .sidebar-view-as select { justify-content: space-between; align-items: center; gap: .55rem; }
  .sidebar-view-as select::picker-icon { color: var(--sidebar-muted); }
  .sidebar-view-as select:open::picker-icon { transform: rotate(180deg); }
  .sidebar-view-as select::picker(select) {
    min-inline-size: anchor-size(width);
    padding: .25rem;
    margin-block: .25rem;
    background: var(--sidebar);
    border: 1px solid var(--sidebar-border);
    border-radius: .6rem;
    box-shadow: 0 .5rem 1.3rem #0004;
  }
  .sidebar-view-as option { padding: .48rem .65rem; border-radius: .43rem; color: var(--sidebar-text); cursor: pointer; }
  .sidebar-view-as option:is(:hover,:focus-visible,:checked) { background: var(--sidebar-active); color: var(--sidebar-highlight); }
  .sidebar-view-as option::checkmark { order: 1; margin-inline-start: auto; }
}

.app-main .dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem 1.25rem;
  margin-bottom: .95rem;
}
.app-main .dashboard-heading h2 { margin: 0; }
.dashboard-period { display: grid; gap: .26rem; min-width: min(100%, 12rem); }
.period-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; }
.period-controls label { gap: .27rem; }
.period-controls select { min-width: 12rem; background-color: var(--white); }
.period-controls button { min-height: 2.65rem; }
.period-caption { color: var(--muted); font-size: .78rem; }
.period-dialog {
  width: min(100% - 2rem, 28rem);
  padding: clamp(1.15rem, 4vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: .95rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1rem 4.5rem #101d2c66;
}
.period-dialog::backdrop { background: #101d2c88; }
.period-dialog h2 { margin-bottom: .3rem; }
.period-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.period-dates label, .period-dates input { min-width: 0; }
.period-dialog .actions { justify-content: flex-end; margin-top: .3rem; gap: .55rem; }
@media (max-width: 36rem) {
  .dashboard-period, .period-controls label, .period-controls select { width: 100%; }
}

.app-main {
  --app-card-radius: .55rem;
  --app-block-radius: .44rem;
}
.app-main .panel,
.app-main .dashboard-hero,
.app-main .period-dialog { border-radius: var(--app-card-radius); }
.app-main :is(.share-card, .theme-option, .logo-mode-options label, .brand-marks label, fieldset) {
  border-radius: var(--app-block-radius);
}

.app-entry .brand { display: block; max-width: 100%; }
.app-entry .panel input { background: var(--field); border-color: var(--border); }
.app-entry .panel button { background: var(--button); color: var(--on-button); }
.app-entry .panel button:hover { background: var(--button-hover); }
.app-entry :focus-visible { outline-color: var(--focus); }
.app-entry .alert { color: var(--danger); border-color: var(--danger); }
