@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Manrope:wght@600;700;800&display=swap");

/* Global design tokens: typography, colors, surfaces and shadows. */
:root {
  color-scheme: light;
  --pavel-font-body:
    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pavel-font-heading: "Manrope", "DM Sans", ui-sans-serif, sans-serif;
  --ink: #20263d;
  --muted: #626b80;
  --canvas: #f8f7f5;
  --surface: #fff;
  --surface-soft: #f0eff4;
  --line: #dedee7;
  --accent: #c95762;
  --accent-soft: #f9dfe0;
  --lime: #b6a4dc;
  --yellow: #f0cd78;
  --blue: #bdcce6;
  --green-card: #dccbe7;
  --sidebar: #252943;
  --sidebar-ink: #f3f1fb;
  --shadow: 0 14px 40px rgba(32, 38, 61, 0.08);
}
/* Dark mode only overrides tokens, components keep the same CSS. */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f0fa;
  --muted: #b7b4c8;
  --canvas: #171827;
  --surface: #22243a;
  --surface-soft: #303149;
  --line: #454760;
  --accent: #ff9ba0;
  --accent-soft: #542f3b;
  --sidebar: #10111f;
  --sidebar-ink: #f3f1fb;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
/* Base layout and common UI primitives. */
* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 9px;
  border-radius: 6px;
}
.skip-link:focus {
  top: 10px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 27px 15px;
  background: var(--sidebar);
  color: var(--sidebar-ink);
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 11px;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: var(--lime);
  border-radius: 9px;
  color: #19352d;
  font-weight: 850;
  font-size: 16px;
}
.workspace {
  margin: 31px 7px 23px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.055);
  width: calc(100% - 14px);
  text-align: left;
}
.workspace-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.workspace small,
.user small,
.security small {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  color: #a2b9ad;
}
.workspace strong {
  display: block;
  font-size: 12px;
}
.workspace > span:last-child {
  margin-left: auto;
}
.nav-heading {
  margin: 18px 12px 6px;
  color: #93ab9e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #bad0c4;
  padding: 10px 11px;
  border-radius: 8px;
  margin: 2px 0;
  font-weight: 570;
}
.nav-item > span {
  width: 17px;
  text-align: center;
  font-size: 16px;
}
.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.sidebar-bottom {
  margin-top: auto;
}
.security {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #d5e7dc;
  margin: 0 8px 20px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.security > span:first-child {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: rgba(197, 233, 91, 0.17);
  border-radius: 6px;
  color: var(--lime);
  font-weight: 800;
}
.security strong,
.user strong {
  display: block;
  font-size: 11px;
}
.user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2b18f;
  color: #593829;
  font-size: 10px;
  font-weight: 800;
}
.user button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #d9e9df;
  font-weight: 800;
}
.page-wrap {
  min-width: 0;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 5.1%;
  border-bottom: 1px solid var(--line);
}
.topbar-actions {
  display: flex;
  gap: 8px;
}
.icon-button,
.menu-button {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.icon-button {
  position: relative;
  width: 37px;
  height: 37px;
  font-size: 17px;
}
.notification i {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  border: 2px solid var(--canvas);
}
.menu-button {
  display: none;
}
main {
  max-width: 1370px;
  margin: auto;
  padding: 45px 5.1% 58px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.hero.compact {
  margin-bottom: 38px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.115em;
}
.hero h1 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -1.3px;
  margin: 0 0 7px;
}
.sun {
  color: #eaa13a;
  font-size: 25px;
}
.intro {
  margin: 0;
  max-width: 630px;
  color: var(--muted);
  font-size: 15px;
}
.button {
  min-height: 39px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 740;
  font-size: 13px;
  white-space: nowrap;
}
.button-primary {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 7px 12px rgba(21, 54, 43, 0.13);
}
.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.button-dark {
  align-self: center;
  background: #143a31;
  color: #fff;
  border-color: #143a31;
}
.focus-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 20px;
  background: var(--yellow);
  color: #294338;
  border-radius: 14px;
  margin-bottom: 38px;
}
.focus-icon {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  height: 37px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.47);
  font-size: 21px;
  font-weight: bold;
}
.focus-strip .eyebrow {
  color: #5a6b44;
  margin-bottom: 1px;
}
.focus-strip strong {
  font-size: 15px;
}
.focus-strip p:not(.eyebrow) {
  margin: 1px 0 0;
  font-size: 13px;
}
.focus-strip .button {
  margin-left: auto;
}
.section-head,
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.section-head {
  margin-bottom: 16px;
}
.section-head h2,
.panel h2,
.flow-card h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0;
}
.section-head p,
.panel-heading p,
.panel > p,
.flow-card > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.section-head a,
.text-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 740;
  text-decoration: none;
  font-size: 12px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.content-card {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px 18px;
  border-radius: 13px;
  color: #243b34;
}
.coral {
  background: var(--accent-soft);
}
.blue {
  background: var(--blue);
}
.green {
  background: var(--green-card);
}
.card-top,
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.chip,
.status,
.period {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
}
.more {
  border: 0;
  background: none;
  color: #30463e;
  letter-spacing: 1px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.54);
  font-size: 20px;
}
.content-card h3 {
  font-size: 17px;
  letter-spacing: -0.35px;
  margin: 0 0 3px;
}
.content-card p {
  min-height: 41px;
  max-width: 270px;
  margin: 0;
  font-size: 13px;
}
.card-footer {
  font-size: 11px;
  color: #536961;
}
.round-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}
.dashboard-lower {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 15px;
  margin-top: 16px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.activity-row:first-of-type {
  margin-top: 12px;
}
.activity-row p {
  margin: 0;
  flex: 1;
  font-size: 12px;
}
.activity-row small {
  display: block;
  color: var(--muted);
  margin-top: 1px;
}
.activity-dot {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  height: 29px;
  border-radius: 9px;
  font-weight: 800;
}
.orange {
  background: #ffe4d9;
  color: #bd5e3c;
}
.lilac {
  background: #eee6f4;
  color: #82669c;
}
.yellow {
  background: #fff2c9;
  color: #99761a;
}
.status {
  color: #277153;
  background: #eaf6ef;
  font-size: 10px;
}
.status-warn {
  background: #fff0e4;
  color: #b76339;
}
.status-muted {
  background: var(--surface-soft);
  color: var(--muted);
}
.period {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}
.pulse-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 10px;
}
.pulse-stats span,
.pulse-stats em {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}
.pulse-stats strong {
  font-size: 21px;
  letter-spacing: -0.7px;
}
.pulse-stats .positive {
  color: #27805c;
  font-weight: 750;
}
.chart {
  height: 115px;
}
.chart svg {
  width: 100%;
  height: 89px;
}
.chart-fill {
  fill: rgba(197, 233, 91, 0.35);
}
.chart-line {
  fill: none;
  stroke: #77a33b;
  stroke-width: 3;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: -12px 0 20px;
}
.tabs button {
  padding: 10px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  margin-right: 17px;
}
.tabs button.active {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  font-weight: 750;
}
.tabs b {
  padding: 2px 5px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 10px;
}
.content-list {
  padding: 0;
}
.content-list article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.content-list article:last-child {
  border-bottom: 0;
}
.content-list article > div {
  flex: 1;
}
.content-list h3 {
  margin: 0;
  font-size: 14px;
}
.content-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  font-weight: 800;
}
.pink {
  background: #fde1df;
  color: #d36358;
}
.yellow {
  background: #fff2c9;
  color: #99761a;
}
.blue {
  background: #d9ecfb;
  color: #4982ae;
}
.flow-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.flow-card {
  min-height: 335px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px;
  box-shadow: var(--shadow);
}
.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.switch {
  display: block;
  width: 38px;
  height: 22px;
  border: 0;
  border-radius: 99px;
  background: #c6d0ca;
  padding: 2px;
}
.switch i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #789;
}
.switch.on {
  background: #328564;
}
.switch.on i {
  margin-left: 16px;
}
.flow-card h2 {
  margin-bottom: 6px;
}
.flow-step {
  display: flex;
  gap: 11px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.flow-step b {
  color: var(--ink);
  font-size: 11px;
}
.flow-card .text-button {
  margin-top: 18px;
}
.muted-card {
  opacity: 0.83;
}
.empty-lines {
  margin: 34px 0;
}
.empty-lines i {
  display: block;
  height: 8px;
  margin: 9px 0;
  border-radius: 5px;
  background: var(--surface-soft);
}
.empty-lines i:nth-child(2) {
  width: 70%;
}
.empty-lines i:nth-child(3) {
  width: 85%;
}
.settings-grid .panel {
  min-height: 265px;
}
.settings-grid label {
  display: block;
  font-size: 12px;
  font-weight: 720;
  margin: 16px 0 6px;
}
.settings-grid textarea,
.settings-grid select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.settings-grid textarea {
  min-height: 100px;
  resize: vertical;
}
.settings-grid .button-secondary {
  margin-top: 13px;
}
.connector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.connector:first-of-type {
  margin-top: 13px;
}
.connector > div {
  flex: 1;
}
.connector strong,
.connector small {
  display: block;
}
.connector small {
  color: var(--muted);
  font-size: 11px;
}
.connector-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 850;
}
.hs {
  background: #ff7757;
  color: #fff;
}
.wp {
  background: #277caa;
  color: #fff;
}
.ms {
  background: #6a60be;
  color: #fff;
}
.appearance {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.appearance-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  padding: 14px 8px;
  color: var(--muted);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 20px;
}
.appearance-choice span {
  font-size: 11px;
}
.appearance-choice.active {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 30;
  transform: translate(-50%, 110px);
  padding: 10px 14px;
  border-radius: 9px;
  background: #143a31;
  color: #fff;
  font-weight: 650;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}
.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    z-index: 20;
    left: 0;
    transform: translateX(-100%);
    width: 260px;
    transition: transform 0.22s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-button {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-right: auto;
    padding: 8px 10px;
  }
  .menu-button span {
    display: block;
    width: 13px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }
  .menu-button b {
    margin-left: 5px;
    font: 650 12px inherit;
  }
  .topbar {
    padding: 0 22px;
  }
  main {
    padding: 35px 22px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .content-card {
    min-height: 190px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .focus-strip {
    align-items: flex-start;
  }
  .focus-strip .button {
    margin-left: 0;
  }
  .content-list article {
    flex-wrap: wrap;
  }
  .content-list article .button {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero h1 {
    font-size: 28px;
  }
  .focus-strip {
    flex-wrap: wrap;
    padding: 15px;
  }
  .focus-strip .button {
    width: 100%;
  }
  .flow-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    gap: 11px;
  }
  .panel {
    padding: 16px;
  }
  .activity-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .activity-row .status {
    margin-left: 39px;
  }
  .pulse-stats strong {
    font-size: 18px;
  }
  .content-list article .status {
    margin-left: 48px;
  }
  .content-list article .button {
    margin-left: 0;
  }
  .appearance {
    gap: 6px;
  }
  .connector {
    flex-wrap: wrap;
  }
  .connector .button {
    margin-left: 38px;
  }
  .topbar {
    height: 62px;
  }
  main {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Palette Pavel : encre, lavande, corail et ocre — aucun vert dans l’interface. */
.brand,
.hero h1,
.section-head h2,
.panel h2,
.flow-card h2 {
  font-family: "Manrope", "DM Sans", ui-sans-serif, sans-serif;
}
body {
  font-family:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.brand-mark {
  color: #27223a;
}
.workspace small,
.user small,
.security small {
  color: #c4c2d3;
}
.nav-heading {
  color: #aba9c3;
}
.nav-item {
  color: #d1cfe1;
}
.security {
  color: #e3e1ef;
}
.security > span:first-child {
  background: rgba(182, 164, 220, 0.2);
}
.user button {
  color: #e7e5f4;
}
.button-primary {
  box-shadow: 0 7px 12px rgba(32, 38, 61, 0.16);
}
.button-dark {
  background: #2c2d49;
  border-color: #2c2d49;
}
.focus-strip {
  color: #2a2c43;
}
.focus-strip .eyebrow {
  color: #5b5263;
}
.content-card {
  color: #292c43;
}
.more {
  color: #3f405b;
}
.card-footer {
  color: #56566e;
}
.status {
  color: #31578f;
  background: #e6eefb;
}
.pulse-stats .positive {
  color: #31578f;
}
.chart-fill {
  fill: rgba(182, 164, 220, 0.38);
}
.chart-line {
  stroke: #7861a8;
}
.switch.on {
  background: #7861a8;
}
.toast {
  background: #2c2d49;
}
.last-update {
  margin: 0 8px 14px;
  padding: 9px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c4c2d3;
  font-size: 10px;
  line-height: 1.45;
}
.last-update strong {
  color: #f2f0fa;
  font-size: 11px;
}
.connector-intro {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.help-button {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}
.help-button:hover,
.help-button:focus-visible {
  border-color: var(--accent);
  outline: 2px solid transparent;
}
.help-modal {
  width: min(510px, calc(100% - 34px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}
.help-modal::backdrop {
  background: rgba(19, 22, 37, 0.58);
}
.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-top .eyebrow {
  margin: 0;
}
.close-modal {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}
.help-modal h2 {
  margin: 12px 0 6px;
  font:
    750 21px/1.2 "Manrope",
    "DM Sans",
    sans-serif;
  letter-spacing: -0.4px;
}
.help-modal > p {
  margin: 0;
  color: var(--muted);
}
.help-list {
  margin: 17px 0;
}
.help-list p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 8px 0;
  font-size: 13px;
}
.help-list b {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #803946;
  font-size: 10px;
}
.domain-warning {
  padding: 10px 11px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink) !important;
  font-size: 12px;
}
.connector-config {
  margin: 0 0 8px;
  padding: 9px 0 3px;
  border-top: 1px dashed var(--line);
}
.connector-config summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.connector-config label {
  display: block;
  margin: 11px 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.connector-config input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.domain-status {
  margin: 7px 0 0;
  color: #31578f;
  font-size: 11px;
}
.domain-status.is-error {
  color: #a54f38;
}
.sidebar {
  border-radius: 0 24px 24px 0;
  overflow: hidden;
}
.team-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 13px 10px 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.team-logo-slot.custom-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}
.login-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 170px);
}
.login-card {
  width: min(450px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.login-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--lime);
  color: #27223a;
  font:
    800 20px "Manrope",
    sans-serif;
}
.login-card h1 {
  margin: 5px 0 7px;
  font:
    800 27px/1.15 "Manrope",
    sans-serif;
  letter-spacing: -1px;
}
.login-card > p {
  color: var(--muted);
}
.login-form {
  display: grid;
  gap: 7px;
  margin-top: 23px;
}
.login-form label {
  font-size: 12px;
  font-weight: 700;
}
.login-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.login-form .button {
  margin-top: 10px;
}
.login-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.login-option label {
  font-weight: 500;
}
.login-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
}
/* Connector marketplace cards and filters. */
.connector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.connector-tile {
  position: relative;
  min-height: 205px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.connector-tile h2 {
  margin: 15px 0 3px;
  font:
    750 16px "Manrope",
    sans-serif;
}
.connector-tile p {
  min-height: 40px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.connector-tile .help-button {
  position: absolute;
  right: 16px;
  top: 16px;
}
.integration-logo {
  display: block;
  width: 128px;
  max-width: calc(100% - 36px);
  height: 34px;
  object-fit: contain;
  object-position: left center;
}
.title-integration-logo {
  width: 210px;
  max-width: 100%;
  height: 54px;
}
.zap {
  background: #ff5b3e;
  color: #fff;
}
.make {
  background: #6c64ee;
  color: #fff;
}
.n8n {
  background: #ec6d5a;
  color: #fff;
}
.ai {
  background: #333653;
  color: #fff;
}
.ap {
  background: #d9944d;
  color: #fff;
}
.logo-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.logo-slot > div {
  flex: 1;
}
.logo-slot strong,
.logo-slot small {
  display: block;
}
.logo-slot small {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 920px) {
  .sidebar {
    border-radius: 0;
  }
  .connector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .connector-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 24px;
  }
}
.relay {
  background: #8d79be;
  color: #fff;
}
.notes {
  background: #d17b8b;
  color: #fff;
}
.login-error {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f9dfe0;
  color: #803946;
  font-size: 12px;
}
.sidebar {
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
}
.connector-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -17px 0 19px;
}
.connector-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 230px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}
.connector-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.connector-filter-groups {
  display: grid;
  gap: 7px;
  justify-items: end;
}
.connector-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.connector-categories button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font:
    650 11px "DM Sans",
    sans-serif;
}
.connector-categories button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.connector-tile.connected {
  border-color: #bfcdf6;
  background: linear-gradient(145deg, #f6f8ff 0%, #f2effa 100%);
  box-shadow: 0 14px 32px rgba(97, 113, 168, 0.13);
}
.connector-tile.connected:after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(120, 97, 168, 0.16);
  border-radius: 10px;
  pointer-events: none;
}
.connector-tile.connected .status {
  background: #e6eefb;
  color: #31578f;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .connector-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .connector-search {
    min-width: 0;
  }
  .connector-filter-groups {
    justify-items: start;
  }
  .connector-categories {
    justify-content: flex-start;
  }
}
.atelier {
  max-width: 1120px;
  margin: auto;
  padding: 40px 5%;
  color: var(--ink);
}
.atelier-back {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.atelier header {
  margin: 32px 0 24px;
}
.atelier h1 {
  margin: 4px 0 7px;
  font:
    800 31px/1.15 "Manrope",
    sans-serif;
  letter-spacing: -1.1px;
}
.atelier header > p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}
.atelier-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}
.atelier-form,
.atelier-list {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.atelier-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
}
.atelier-form input,
.atelier-form textarea {
  width: 100%;
  margin: 0 0 15px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.atelier-form textarea {
  min-height: 210px;
  resize: vertical;
}
.atelier-list h2 {
  margin: 0 0 8px;
  font:
    750 17px "Manrope",
    sans-serif;
}
.atelier-list article {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.atelier-list h3 {
  margin: 0;
  font-size: 14px;
}
.atelier-list p,
.atelier-list small {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.atelier-success {
  padding: 9px 11px;
  border-radius: 8px;
  background: #e6eefb;
  color: #31578f;
  font-size: 12px;
}
.empty-note {
  color: var(--muted);
}

@media (max-width: 700px) {
  .atelier-grid {
    grid-template-columns: 1fr;
  }
}
.workspace {
  margin: 18px 7px 14px;
}
.nav-heading {
  margin: 12px 12px 4px;
}
.sidebar {
  padding-top: 20px;
  padding-bottom: 16px;
}
.security {
  margin-bottom: 10px;
}
.last-update {
  margin-bottom: 9px;
}
.user {
  position: relative;
}
.user-settings-dot {
  display: grid !important;
  grid-template-columns: repeat(3, 3px);
  gap: 3px;
  place-content: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 0.18s,
    border-color 0.18s;
}
.user-settings-dot span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #e7e5f4;
}
.user-settings-dot:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.user-menu {
  position: absolute;
  right: 0;
  bottom: 38px;
  z-index: 10;
  width: 205px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}
.user-menu a {
  display: block;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
}
.user-menu a:hover {
  background: var(--surface-soft);
}
.user-menu .logout-link {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: #a54f38;
}
.settings-tabs {
  display: flex;
  gap: 8px;
  margin: -10px 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  width: max-content;
  max-width: 100%;
  overflow: auto;
}
.settings-tabs a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.settings-tabs a.active,
.settings-tabs a:hover {
  background: #e6eefb;
  color: #31578f;
}
.settings-pane {
  margin: 14px 0 16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.settings-pane-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.settings-pane-head h2 {
  margin: 0;
  font: 800 18px var(--pavel-font-heading);
}
.settings-table {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 88px;
}
.settings-table > * {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.settings-table > *:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.settings-table div span,
.settings-table div small {
  display: block;
}
.settings-table div span {
  font-weight: 800;
}
.settings-table div small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.settings-table strong {
  color: #31578f;
  font-size: 12px;
}
.settings-table a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .settings-table {
    grid-template-columns: 1fr;
  }
  .settings-table > * {
    border-bottom: 0;
    padding: 8px 16px;
  }
  .settings-table div {
    padding-top: 16px;
  }
  .settings-table a {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
}
.command-palette {
  width: min(640px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
}
.command-palette::backdrop {
  background: rgba(19, 22, 37, 0.64);
  backdrop-filter: blur(3px);
}
.command-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.command-box > input {
  width: 100%;
  padding: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: transparent;
  color: var(--ink);
  font:
    600 15px "DM Sans",
    sans-serif;
}
.command-box > p {
  margin: 10px 3px 1px;
  color: var(--muted);
  font-size: 11px;
}
.command-result {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.command-result small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.command-result span {
  font-weight: 700;
}
.command-result b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.command-result:hover,
.command-result.selected {
  background: var(--surface-soft);
}
.command-empty {
  padding: 16px 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Réglage typographique global : modifier ces deux variables dans :root suffit pour tout Pavel. */
body,
button,
input,
textarea,
select {
  font-family: var(--pavel-font-body) !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.eyebrow,
.button,
.nav-item,
.command-result {
  font-family: var(--pavel-font-heading) !important;
}
.connector-actions {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}
.connector-configure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  font-size: 11px;
  text-decoration: none;
}
.connector-tile.ready {
  padding-bottom: 19px;
}
.connector-modal {
  width: min(560px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.connector-modal::backdrop {
  background: rgba(19, 22, 37, 0.64);
}
.connector-modal h2 {
  margin: 10px 0 4px;
  font-size: 22px;
}
.connector-modal p {
  margin: 0;
  color: var(--muted);
}
.connector-modal label {
  display: block;
  margin: 14px 0 5px;
  font-size: 12px;
  font-weight: 700;
}
.connector-modal input[type="password"],
.connector-modal input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.connector-modal fieldset {
  margin: 18px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.connector-modal legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 700;
}
.connector-modal fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 5px;
  font-weight: 600;
}
.connector-modal fieldset small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.connector-modal-note {
  margin: 11px 0 !important;
  font-size: 11px;
}
.connector-modal .button {
  margin-top: 5px;
}
.brand {
  color: inherit;
  text-decoration: none;
}
.brand:focus-visible,
.user-menu-button:focus-visible,
.note-head a:focus-visible,
.note-head button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.settings-section {
  border-left: 3px solid var(--lime);
}
.settings-section:nth-of-type(3) {
  border-left-color: var(--accent);
}
.note-head {
  padding-bottom: 3px;
}
.note-head form {
  display: inline;
}
.note-head a,
.note-head button {
  padding: 4px 5px;
  border-radius: 5px;
}
.note-head a:hover {
  background: #e6eefb;
}
.note-head button:hover {
  background: var(--accent-soft);
}
.connector-modal input:focus,
.connector-modal input:focus-visible {
  outline: 2px solid rgba(120, 97, 168, 0.28);
  border-color: #7861a8;
}
.user-menu a {
  font-family: var(--pavel-font-body);
}
.note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.note-head span {
  display: flex;
  gap: 8px;
}
.note-head a,
.note-head button {
  border: 0;
  background: none;
  padding: 0;
  color: #31578f;
  font: 600 11px var(--pavel-font-body);
  text-decoration: none;
}
.note-head button {
  color: #a54f38;
}
.command-section {
  margin: 11px 8px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hubspot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.hubspot-grid .panel {
  min-height: 190px;
}
.hubspot-scopes code {
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 11px;
}

@media (max-width: 780px) {
  .hubspot-grid {
    grid-template-columns: 1fr;
  }
}
.hubspot-page .button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.hubspot-hero {
  align-items: flex-start;
}
.hubspot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hubspot-actions form {
  margin: 0;
}
.hubspot-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hubspot-status h2 {
  margin: 0 0 4px;
}
.hubspot-status p {
  margin: 0;
  color: var(--muted);
}
.hubspot-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.hubspot-kpis .panel {
  padding: 17px;
}
.hubspot-kpis span,
.hubspot-kpis small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.hubspot-kpis strong {
  display: block;
  margin: 4px 0;
  font: 800 28px/1 var(--pavel-font-heading);
  letter-spacing: -0.8px;
}
.hubspot-two-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}
.compact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-top: 18px;
}
.compact-form label {
  margin: 0 !important;
}
.compact-form input,
.compact-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.compact-form button {
  grid-column: 1/-1;
  justify-self: start;
}
.hubspot-report-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.hubspot-report-list a {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  text-decoration: none;
}
.hubspot-report-list a:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
}
.hubspot-report-list span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hubspot-report-list strong,
.hubspot-report-list small {
  display: block;
}
.hubspot-report-list small,
.muted-text {
  color: var(--muted);
  font-size: 12px;
}
.hubspot-scope-note {
  margin-top: 18px;
  padding: 13px;
  border-radius: 11px;
  background: var(--surface-soft);
}
.hubspot-scope-note strong {
  display: block;
  margin-top: 9px;
}
.hubspot-scope-note strong:first-child {
  margin-top: 0;
}
.hubspot-scope-note p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.hubspot-scope-note code {
  display: inline-block;
  margin: 2px 2px 2px 0;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface);
  font-size: 11px;
}
.atelier-success {
  padding: 10px 12px;
  border: 1px solid #cfdcf8;
  border-radius: 10px;
  background: #edf3ff;
  color: #31578f;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hubspot-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hubspot-two-columns {
    grid-template-columns: 1fr;
  }
  .hubspot-hero {
    display: block;
  }
  .hubspot-actions {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .hubspot-kpis {
    grid-template-columns: 1fr;
  }
  .compact-form {
    grid-template-columns: 1fr;
  }
  .hubspot-status {
    display: block;
  }
  .hubspot-status .status {
    margin-top: 10px;
  }
}
.hubspot-intelligence {
  margin-bottom: 16px;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 17px;
}
.insight-card {
  position: relative;
  min-height: 138px;
  padding: 15px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  overflow: hidden;
}
.insight-card:before {
  content: "";
  position: absolute;
  inset: auto -30px -45px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(120, 97, 168, 0.12);
}
.insight-card > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 900;
}
.insight-card.good > span {
  background: #e6eefb;
  color: #31578f;
}
.insight-card.warn > span {
  background: #fff0e4;
  color: #a54f38;
}
.insight-card h3 {
  margin: 0 0 5px;
  font: 800 15px/1.2 var(--pavel-font-heading);
  letter-spacing: -0.2px;
}
.insight-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.hubspot-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.signal-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.signal-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}
.signal-row p {
  margin: 0;
  min-width: 0;
}
.signal-row strong,
.signal-row small {
  display: block;
}
.signal-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.signal-row small {
  color: var(--muted);
  font-size: 11px;
}
.signal-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e6eefb;
  color: #31578f;
  font-weight: 850;
}
.signal-avatar.deal {
  background: #eee6f4;
  color: #7861a8;
}
.signal-avatar.activity {
  background: #fff0e4;
  color: #a54f38;
}
.hubspot-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.analysis-panel ul {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.analysis-panel li {
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--line);
}
.analysis-panel li strong,
.analysis-panel li span {
  display: block;
}
.analysis-panel li span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.quality-bars {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}
.quality-bars p {
  display: grid;
  grid-template-columns: 120px minmax(90px, 1fr) 82px;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.quality-bars b {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #7861a8 var(--w),
    var(--surface-soft) var(--w)
  );
  box-shadow: inset 0 0 0 1px rgba(120, 97, 168, 0.08);
}
.quality-bars b.locked {
  background: linear-gradient(
    90deg,
    #d9944d var(--w),
    var(--surface-soft) var(--w)
  );
}
.quality-bars em {
  text-align: right;
  font-style: normal;
  font-weight: 750;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .hubspot-data-grid,
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hubspot-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hubspot-data-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .quality-bars p {
    grid-template-columns: 1fr;
  }
  .quality-bars em {
    text-align: left;
  }
}

/* Pavel configurable identity */
body,
button,
input,
textarea,
select {
  font-family: var(--pavel-font-body) !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.eyebrow,
.button,
.nav-item,
.command-result {
  font-family: var(--pavel-font-heading) !important;
}
.team-logo-slot {
  min-height: 52px;
}
.team-logo-slot.empty-logo {
  color: #ddd9f2;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  border-style: dashed;
}
.team-logo-slot.custom-logo img {
  max-height: 62px;
  object-fit: contain;
  background: #fff;
  padding: 7px;
}
.team-logo-preview {
  display: block;
  max-width: 160px;
  max-height: 74px;
  object-fit: contain;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.logo-empty-preview,
.integration-logo-placeholder,
.connector-row-logo-missing {
  display: grid;
  place-items: center;
  border: 1px dashed #bfc5d6;
  border-radius: 10px;
  background: #f5f3fa;
  color: #626b80;
  font-size: 11px;
  font-weight: 800;
}
.logo-empty-preview {
  width: 124px;
  height: 58px;
}
.integration-logo-placeholder {
  width: 128px;
  height: 34px;
}
.connector-row-logo {
  width: 46px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}
.connector-row-logo-missing {
  width: 82px;
  height: 30px;
  flex: 0 0 82px;
}
.upload-form {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.upload-form input,
.connector-logo-card input[type="file"] {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.connector-logo-admin {
  margin-top: 16px;
}
.connector-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.connector-logo-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
}
.connector-logo-card strong,
.connector-logo-card small {
  display: block;
}
.connector-logo-card small {
  color: var(--muted);
  font-size: 11px;
}
.connector-logo-preview {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px dashed #bfc5d6;
  border-radius: 12px;
  background: #fff;
}
.connector-logo-preview img {
  display: block;
  max-width: 150px;
  max-height: 42px;
  object-fit: contain;
}
.connector-logo-preview span {
  color: #626b80;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .connector-logo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .connector-logo-grid {
    grid-template-columns: 1fr;
  }
}
.avatar {
  overflow: hidden;
  text-decoration: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-profile-text {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.user-profile-text strong,
.user-profile-text small {
  display: block;
}
.user-menu-button {
  cursor: pointer;
}
.team-switcher {
  margin: 9px 10px 2px;
}
.team-switcher select {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: 700 11px var(--pavel-font-body);
}
.team-switcher option {
  color: #20263d;
}
.impersonation-pill {
  display: block;
  margin: 0 8px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff0e4;
  color: #7d3f2c;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.wide-panel {
  grid-column: 1/-1;
}
.team-user-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.team-user-row {
  display: grid;
  grid-template-columns:
    minmax(170px, 1fr) minmax(130px, 170px) minmax(110px, 140px)
    auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}
.team-user-row strong,
.team-user-row small {
  display: block;
}
.team-user-row small {
  color: var(--muted);
  font-size: 11px;
}
.team-user-row input,
.team-user-row select,
.upload-form input {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-top: 14px;
}
.danger-button {
  border-color: #e7b4a5 !important;
  color: #9f462d !important;
}
.avatar-preview {
  border-radius: 999px;
  width: 74px;
  height: 74px;
}

@media (max-width: 820px) {
  .team-user-row {
    grid-template-columns: 1fr;
  }
  .inline-form {
    grid-template-columns: 1fr;
  }
  .team-user-row .button {
    width: 100%;
  }
}
.danger-link {
  color: #9f462d !important;
  margin: 0 0 8px 12px;
}
.otp-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.login-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.login-quick-actions a {
  display: grid;
  place-items: center;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  text-decoration: none;
  font: 800 12px var(--pavel-font-heading);
}
.login-quick-actions a:hover {
  border-color: #b6a4dc;
  background: #f0eff8;
}
.plan-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #ddd8ef;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f2eff9);
  box-shadow: inset 0 0 0 1px rgba(182, 164, 220, 0.14);
}
.plan-card span,
.plan-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.plan-card strong {
  display: block;
  margin: 3px 0;
  font: 850 24px/1 var(--pavel-font-heading);
  letter-spacing: -0.8px;
}
.seo-page h3 {
  margin: 16px 0 5px;
  font: 800 14px var(--pavel-font-heading);
}
.good-helper,
.scope-ok {
  color: #31578f !important;
  font-weight: 800;
}
.scope-warning {
  color: #9f462d !important;
  font-weight: 800;
}
.missing-scope {
  background: #fff0e4 !important;
  color: #9f462d !important;
}
.embedded-report-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
}
.embedded-report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.embedded-report-head span,
.embedded-report-head strong,
.embedded-report-head small {
  display: block;
}
.embedded-report-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.embedded-report-card iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.seo-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 16px;
}
.seo-input-panel textarea {
  min-height: 410px;
}
.recommendation-list {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  padding-left: 20px;
}
.recommendation-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}
.seo-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 1040px) {
  .seo-workbench,
  .seo-columns {
    grid-template-columns: 1fr;
  }
  .embedded-report-card iframe {
    min-height: 320px;
  }
}
/* Sidebar notification bubbles and team chat surfaces. */
.nav-item {
  position: relative;
}
.nav-bubble {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c95762;
  color: #fff;
  font-size: 10px;
}
.chat-shell {
  padding: 0;
  overflow: hidden;
}
.chat-feed {
  height: min(62vh, 640px);
  overflow: auto;
  padding: 22px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fbfaf8, #f3f0f8);
}
.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 78%;
}
.chat-message.mine {
  margin-left: auto;
  flex-direction: row-reverse;
}
.chat-message p {
  margin: 0 0 4px;
}
.chat-message small {
  margin-left: 7px;
  color: var(--muted);
  font-size: 10px;
}
.chat-bubble {
  padding: 11px 13px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(32, 38, 61, 0.06);
}
.chat-message.mine .chat-bubble {
  background: #e9e5f6;
  border-color: #d8d0ee;
}
.chat-avatar {
  flex: 0 0 30px;
}
.chat-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-compose input {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  font: inherit;
}
.emoji-button {
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 10px;
  height: 38px;
  width: 38px;
}
.pending-invite-row .status {
  flex: 0 0 auto;
}
.plan-row {
  grid-template-columns: 1.1fr 0.8fr 0.7fr 0.7fr 0.7fr auto;
}

@media (max-width: 900px) {
  .chat-message {
    max-width: 100%;
  }
  .chat-compose {
    flex-wrap: wrap;
  }
  .chat-compose input {
    flex-basis: 100%;
  }
  .plan-row {
    grid-template-columns: 1fr;
  }
}
.weather-widget {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}
.weather-widget > span:first-child {
  font-size: 22px;
}
.weather-widget small,
.weather-widget strong {
  display: block;
}
.weather-widget small {
  color: var(--muted);
  font-size: 10px;
}
.weather-widget strong {
  font-size: 12px;
}
.hero:has(.weather-widget) > div {
  margin-left: auto;
}

@media (max-width: 700px) {
  .weather-widget {
    width: 100%;
    order: 2;
  }
  .hero:has(.weather-widget) > div {
    margin-left: 0;
  }
}
.user-weather {
  margin-top: 1px;
  color: #d8d5ea !important;
  font-size: 9px !important;
  white-space: nowrap;
}
.type-greeting::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: pavel-caret 0.65s step-end infinite;
}
@keyframes pavel-caret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-greeting::after {
    animation: none;
  }
}
.home-weather {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.chat-directory {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 130px);
  overflow: auto;
}
.directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.directory-head h2 {
  margin: 0;
  font-size: 20px;
}
.directory-head > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee9fb;
  color: #55428f;
  font-size: 12px;
  font-weight: 750;
}
.member-list {
  display: grid;
  gap: 10px;
}
.member-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--surface),
    rgba(238, 233, 251, 0.58)
  );
  box-shadow: 0 10px 24px rgba(31, 37, 68, 0.05);
}
.member-card.is-me {
  border-color: #cabdea;
  background: linear-gradient(135deg, #f6f1ff, #fff);
}
.member-card.is-pending {
  opacity: 0.72;
}
.member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #262237;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.member-main {
  min-width: 0;
}
.member-title {
  display: flex;
  align-items: center;
  gap: 7px;
}
.member-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-title em {
  font-style: normal;
  padding: 2px 7px;
  border-radius: 999px;
  background: #efe8ff;
  color: #5f4a97;
  font-size: 10px;
  font-weight: 800;
}
.member-main small,
.member-presence {
  color: var(--muted);
  font-size: 11px;
}
.member-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.member-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 780;
}
.member-meta .status-ok {
  background: #e9e5f6;
  color: #4c3b7c;
  border-color: #d7cfec;
}
.member-meta .status-warn {
  background: #fff2d8;
  color: #7a4e00;
  border-color: #f2d18f;
}
.member-presence {
  margin: 7px 0 0;
}
.mention-button {
  grid-column: 2;
  justify-self: start;
  border: 1px solid #d7cfec;
  background: #f4efff;
  color: #57418d;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.mention-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(83, 64, 135, 0.14);
}
.directory-empty {
  margin: 0 0 12px;
  padding: 13px;
  border-radius: 18px;
  border: 1px dashed #d7cfec;
  background: #fbf8ff;
}
.directory-empty p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.chat-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-directory {
    position: static;
    max-height: none;
    order: 2;
  }
  .chat-shell {
    order: 1;
  }
}

@media (max-width: 560px) {
  .member-card {
    grid-template-columns: 36px minmax(0, 1fr);
    border-radius: 16px;
  }
  .member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }
  .mention-button {
    grid-column: 1 / -1;
  }
  .chat-directory {
    padding: 14px;
  }
}
.chat-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #f8f4ff);
}
.chat-thread-head h2 {
  margin: 0;
  font-size: 18px;
}
.thread-hint {
  color: var(--muted);
  font-size: 12px;
}
.mention-pill {
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4dce4;
  color: #9a3f5c;
  font-style: normal;
  font-size: 10px;
  font-weight: 850;
}
.thread-switch {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.thread-switch span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eee9fb;
}
.thread-switch strong,
.thread-switch small {
  display: block;
}
.thread-switch small {
  color: var(--muted);
  font-size: 11px;
}
.thread-switch.is-active,
.message-member.is-active {
  border-color: #c8b9ec;
  background: #f7f2ff;
}
.member-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.member-actions .mention-button {
  grid-column: auto;
}
.message-member {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d7cfec;
  border-radius: 999px;
  background: #fff;
  color: #57418d;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
}
.chat-alert-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  grid-template-columns: 30px auto;
  gap: 1px 8px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid #d7cfec;
  border-radius: 18px;
  background: linear-gradient(135deg, #312846, #6550a2);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(49, 40, 70, 0.28);
  animation: pavel-bubble-in 0.25s ease-out;
}
.chat-alert-bubble span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}
.chat-alert-bubble strong {
  line-height: 1;
  font-size: 16px;
}
.chat-alert-bubble small {
  grid-column: 2;
  color: #ded8f6;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@keyframes pavel-bubble-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .chat-thread-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .member-actions {
    grid-column: 1 / -1;
  }
  .chat-alert-bubble {
    right: 14px;
    bottom: 14px;
  }
}
/* Channel-based chat layout: general room, private threads and directory. */
.chat-layout-channels {
  grid-template-columns: 280px minmax(0, 1fr) 310px;
}
.chat-channel-list {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 14px;
}
.channel-list-head {
  padding: 6px 6px 12px;
}
.channel-list-head h2 {
  margin: 0;
  font-size: 20px;
}
.channel-list-head small {
  color: var(--muted);
  font-size: 11px;
}
.channel-private-title {
  margin: 16px 7px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.channel-private-list {
  display: grid;
  gap: 7px;
}
.channel-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}
.channel-link:hover,
.channel-link.is-active {
  background: #f7f2ff;
  border-color: #d8cfef;
}
.channel-link > span,
.channel-link > img {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  object-fit: cover;
  background: #29243a;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.channel-link.general > span {
  background: #eee9fb;
  color: #55428f;
  font-size: 18px;
}
.channel-link strong,
.channel-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-link small {
  color: var(--muted);
  font-size: 11px;
}
.channel-link b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c95762;
  color: #fff;
  font-size: 10px;
}
.message-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.message-tools form {
  margin: 0;
  opacity: 0;
  transform: translateY(2px);
  transition: 0.16s;
}
.chat-message:hover .message-tools form,
.chat-message:focus-within .message-tools form {
  opacity: 1;
  transform: translateY(0);
}
.message-tools .trash-button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #9a3f5c;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.message-tools .trash-button:hover {
  background: #fde7ee;
  border-color: #e7bdcb;
}
.login-success {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef8f2;
  color: #27674a;
  border: 1px solid #cce9d8;
}

@media (max-width: 1180px) {
  .chat-layout-channels {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .chat-layout-channels .chat-directory {
    display: none;
  }
}

@media (max-width: 820px) {
  .chat-layout-channels {
    grid-template-columns: 1fr;
  }
  .chat-channel-list {
    position: static;
    max-height: none;
    order: 0;
  }
  .chat-shell {
    order: 1;
  }
  .channel-private-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .channel-private-list {
    grid-template-columns: 1fr;
  }
  .message-tools {
    align-items: flex-end;
    flex-direction: column;
  }
}
/* Pulse Campagnes: consolidated marketing campaign dashboard. */
.campaign-live-status {
  margin: 8px 0 14px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f7f2ff;
  color: #57418d;
  border: 1px solid #d8cfef;
  font-size: 12px;
  font-weight: 750;
}
.campaign-center {
  margin-bottom: 16px;
}
.campaign-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.campaign-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.campaign-filters input,
.campaign-filters select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}
.campaign-filters button {
  align-self: end;
}
.campaign-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.campaign-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.campaign-tabs button.is-active {
  background: #252943;
  color: #fff;
  border-color: #252943;
}
.campaign-tab-panel {
  display: none;
}
.campaign-tab-panel.is-active {
  display: block;
}
.campaign-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.campaign-kpi-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.campaign-kpi-grid span,
.campaign-kpi-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.campaign-kpi-grid strong {
  display: block;
  margin: 4px 0;
  font: 850 25px/1 var(--pavel-font-heading);
  letter-spacing: -0.6px;
}
.campaign-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.campaign-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--surface);
}
.campaign-table th,
.campaign-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}
.campaign-table th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.campaign-table td strong,
.campaign-table td small {
  display: block;
}
.campaign-table td small {
  color: var(--muted);
  margin-top: 2px;
}
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ranking-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.ranking-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.ranking-grid p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface);
}
.ranking-grid p strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-grid p span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .campaign-filters,
  .campaign-kpi-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }
  .campaign-table {
    min-width: 680px;
  }
}
.lilac-card {
  background: #eee6f4 !important;
  color: #292c43;
}
/* Connector detail pages: API settings, sync logs and diagnostics. */
.connector-logo {
  font-size: 10px;
  letter-spacing: -0.03em;
}
.connector-logo.hs {
  background: #ff6b4a;
  color: #fff;
}
.connector-logo.brevo {
  background: #2847d8;
  color: #fff;
}
.connector-logo.emelia {
  background: #d25f7a;
  color: #fff;
}
.connector-logo.campaigns {
  background: linear-gradient(135deg, #31578f, #8d79be);
  color: #fff;
}
.connector-title-logo {
  display: inline-grid;
  vertical-align: middle;
  margin-right: 10px;
}
.source-config-grid,
.connector-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.connector-detail-grid {
  grid-template-columns: 1fr 1fr;
}
.source-config-card {
  min-height: 310px;
}
.source-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.source-card-head > div {
  flex: 1;
}
.source-card-head h2 {
  margin: 1px 0 0;
  font-size: 15px;
  line-height: 1.25;
}
.source-config-card .compact-form,
.connector-detail-form {
  grid-template-columns: 1fr;
  margin-top: 20px;
}
.source-config-card .helper,
.connector-detail-form .helper {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.source-config-card code,
.connector-detail-form code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-soft);
}
.source-import-form {
  margin-top: 10px;
}
.source-import-form .button {
  width: 100%;
}
.embedded-help {
  margin-top: 14px;
}
.connector-log-grid {
  margin-top: 18px;
}
.connector-digest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.connector-digest span {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--lavender) 38%, var(--surface));
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}
.connector-digest b {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}
.connector-digest.vertical {
  grid-template-columns: 1fr;
}
.connector-digest.vertical b {
  display: inline;
}
.sync-log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.sync-log-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--surface-soft);
}
.sync-log-row small {
  color: var(--muted);
  white-space: nowrap;
}
.sync-log-status {
  border-radius: 999px;
  padding: 6px 9px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--lavender);
  color: var(--accent-strong);
}
.sync-log-row.success .sync-log-status {
  background: #e8f0ff;
  color: #2f4fb7;
}
.sync-log-row.error .sync-log-status {
  background: #ffe8ee;
  color: #b4234d;
}
.sync-log-row.skipped .sync-log-status {
  background: #f2eefc;
  color: #6b5aa8;
}

@media (max-width: 980px) {
  .source-config-grid {
    grid-template-columns: 1fr 1fr;
  }
  .connector-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sync-log-row {
    grid-template-columns: 1fr;
  }
  .sync-log-row small {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .source-config-grid {
    grid-template-columns: 1fr;
  }
}
