html {
  scroll-behavior: smooth;
}

:where(.lobe-flex) {
  --lobe-flex: 0 1 auto;
  --lobe-flex-direction: column;
  --lobe-flex-wrap: nowrap;
  --lobe-flex-justify: flex-start;
  --lobe-flex-align: stretch;
  --lobe-flex-width: auto;
  --lobe-flex-height: auto;
  --lobe-flex-padding: 0;
  --lobe-flex-padding-inline: var(--lobe-flex-padding);
  --lobe-flex-padding-block: var(--lobe-flex-padding);
  --lobe-flex-gap: 0;
  display: flex;
  flex: var(--lobe-flex);
  flex-flow: var(--lobe-flex-direction) var(--lobe-flex-wrap);
  gap: var(--lobe-flex-gap);
  align-items: var(--lobe-flex-align);
  justify-content: var(--lobe-flex-justify);
  width: var(--lobe-flex-width);
  height: var(--lobe-flex-height);
  padding: var(--lobe-flex-padding);
  padding-block: var(--lobe-flex-padding-block);
  padding-inline: var(--lobe-flex-padding-inline);
}

.lobe-flex-hidden {
  display: none;
}

body[data-product-page] {
  background: #fff;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

body[data-product-page] a:focus-visible,
body[data-product-page] button:focus-visible,
body[data-product-page] input:focus-visible {
  outline: 3px solid rgba(23, 125, 85, 0.28);
  outline-offset: 3px;
}

body[data-product-page] header a {
  color: inherit;
  text-decoration: none;
}

body[data-product-page] header img[src$='/brand-mark.svg'] {
  height: 36px;
  object-fit: contain;
  width: 36px;
}

body[data-product-page] header a:has(img[src*='brand-mark.svg']),
body[data-doc-page] header a:has(img[src*='brand-mark.svg']) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

body[data-product-page] header a:has(img[src*='brand-mark.svg']):hover,
body[data-doc-page] header a:has(img[src*='brand-mark.svg']):hover {
  opacity: 0.82;
}

.product-menu-positioner {
  --ant-color-bg-elevated: #fff;
  --ant-color-bg-container: #fff;
  --ant-color-border: #d9d9d9;
  --ant-color-border-secondary: #e8e8e8;
  --ant-color-fill-quaternary: #f7f7f7;
  --ant-color-fill-secondary: #f0f0f0;
  --ant-color-fill-tertiary: #f2f2f2;
  --ant-color-text: #111;
  --ant-color-text-description: #666;
  --ant-color-text-secondary: #666;
  --ant-color-text-tertiary: #888;
  position: fixed;
  z-index: 1290;
  height: auto;
  max-width: calc(100vw - 32px);
}

.product-menu-positioner[hidden] {
  display: none;
}

.product-menu-positioner > [role='dialog'] {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--ant-color-border-secondary, #e8e8e8);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--ant-box-shadow-secondary, 0 8px 24px rgb(0 0 0 / 12%));
}

.header-product-dialog {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 12px 0;
  background: #fff;
}

.header-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0 8px 12px;
}

.header-product-section,
.header-product-links {
  min-width: 0;
}

.header-product-heading {
  height: 28px;
  color: var(--ant-color-text-tertiary, #888);
  font-size: 14px;
  line-height: 28px;
}

.header-product-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-product-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
}

.header-product-link:hover,
.header-product-link:focus-visible {
  background: var(--ant-color-fill-quaternary, #f7f7f7);
  outline: none;
}

.header-product-link:focus-visible,
.header-product-update:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ant-color-border, #d9d9d9);
}

.header-product-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ant-color-border-secondary, #e8e8e8);
  border-radius: 8px;
  background: #fafafa;
  color: #666;
}

.header-product-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-product-icon[data-product-icon='slack'] {
  color: #b12258;
}

.header-product-icon[data-product-icon='discord'] {
  color: #5865f2;
}

.header-product-icon[data-product-icon='telegram'] {
  color: #229ed9;
}

.header-product-icon[data-product-icon='imessage'] {
  color: #19b84b;
}

.header-product-copy,
.header-product-update-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.header-product-copy strong,
.header-product-update-copy strong {
  overflow: hidden;
  color: var(--ant-color-text, #111);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-product-copy small,
.header-product-update-copy small {
  overflow: hidden;
  color: var(--ant-color-text-tertiary, #888);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-product-update {
  display: grid;
  min-height: 60px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--ant-color-border-secondary, #e8e8e8);
  border-radius: 0 0 11px 11px;
}

.header-product-update:hover,
.header-product-update:focus-visible {
  background: var(--ant-color-fill-quaternary, #f7f7f7);
  outline: none;
}

.header-product-new {
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef4ff;
  color: #1677ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.header-product-update-action {
  color: #1677ff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.product-menu-positioner[data-header-menu='resource'] > [role='dialog'] {
  min-height: 281px;
}

.product-menu-positioner a {
  color: inherit;
  text-decoration: none;
}

.product-menu-positioner .acss-wefii2 {
  overflow-x: auto;
}

body[data-product-page] header [data-header-menu-trigger][aria-expanded='true'] {
  background: var(--ant-color-fill-secondary);
}

.header-community-dialog {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  min-height: 283px;
  padding: 12px;
  border: 1px solid var(--ant-color-border-secondary, #e8e8e8);
  border-radius: 12px;
  background: var(--ant-color-bg-elevated, #fff);
  box-shadow: var(--ant-box-shadow-secondary, 0 8px 24px rgb(0 0 0 / 12%));
}

.header-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
}

.header-community-heading {
  height: 28px;
  color: var(--ant-color-text-tertiary, #8c8c8c);
  font-size: 14px;
  line-height: 28px;
}

.header-community-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.header-community-market-card {
  position: relative;
  display: flex;
  box-sizing: border-box;
  height: 200px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ant-color-fill-quaternary, #f7f7f7);
}

.header-community-market-card:hover,
.header-community-market-card:focus-visible {
  border-color: var(--ant-color-border, #d9d9d9);
  background: var(--ant-color-fill-tertiary, #f2f2f2);
}

.product-menu-positioner .header-community-market-card:focus-visible {
  border-color: var(--ant-color-text-tertiary, #8c8c8c);
  border-width: 2px;
  outline: none;
}

.header-community-market-icon,
.header-community-count {
  position: absolute;
  top: 16px;
  color: var(--ant-color-text-secondary, #666);
}

.header-community-market-icon {
  left: 16px;
}

.header-community-market-icon svg {
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-community-count {
  right: 12px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ant-color-fill-quaternary, #f1f1f1);
  font-size: 12px;
}

.header-community-market-card strong,
.header-community-social-link strong {
  color: var(--ant-color-text, #111);
  font-size: 15px;
  font-weight: 500;
}

.header-community-description {
  margin-top: 4px;
  color: var(--ant-color-text-tertiary, #888);
  font-size: 13px;
  line-height: 18px;
}

.header-community-social-link {
  position: relative;
  display: grid;
  box-sizing: border-box;
  height: 52px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  padding: 4px 24px 4px 4px;
  border-radius: 8px;
}

.header-community-social-link:hover,
.header-community-social-link:focus-visible {
  background: var(--ant-color-fill-tertiary, #f3f3f3);
}

.header-community-social-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ant-color-fill-quaternary, #f7f7f7);
  color: var(--ant-color-text-secondary, #666);
}

.header-community-social-link strong,
.header-community-social-link small {
  display: block;
}

.header-community-social-link small {
  margin-top: 2px;
  color: var(--ant-color-text-tertiary, #888);
  font-size: 12px;
  line-height: 16px;
}

.header-community-external {
  position: absolute;
  top: 7px;
  right: 7px;
  color: var(--ant-color-text-quaternary, #aaa);
  font-size: 12px;
}
.header-resource-dialog {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  min-height: 281px;
  padding: 12px;
  border: 1px solid var(--ant-color-border-secondary, #e8e8e8);
  border-radius: 12px;
  background: var(--ant-color-bg-elevated, #fff);
  box-shadow: var(--ant-box-shadow-secondary, 0 8px 24px rgb(0 0 0 / 12%));
}

.header-resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 12px;
}

.header-resource-primary-grid,
.header-resource-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.header-resource-secondary-grid {
  margin-top: 8px;
}

.header-resource-link {
  position: relative;
  display: grid;
  box-sizing: border-box;
  min-height: 54px;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.header-resource-link-primary {
  min-height: 102px;
  padding: 14px;
  border-color: var(--ant-color-border-secondary, #e8e8e8);
  background: var(--ant-color-fill-quaternary, #f7f7f7);
}

.header-resource-link:hover,
.header-resource-link:focus-visible {
  border-color: var(--ant-color-border, #d9d9d9);
  background: var(--ant-color-fill-tertiary, #f2f2f2);
}

.header-resource-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ant-color-bg-container, #fff);
  color: var(--ant-color-text-secondary, #666);
}

.header-resource-icon svg {
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-resource-copy strong,
.header-resource-copy small {
  display: block;
}

.header-resource-copy strong {
  color: var(--ant-color-text, #111);
  font-size: 15px;
  font-weight: 500;
}

.header-resource-copy small {
  margin-top: 3px;
  color: var(--ant-color-text-tertiary, #888);
  font-size: 12px;
  line-height: 17px;
}

.header-resource-arrow {
  color: var(--ant-color-text-quaternary, #aaa);
  font-size: 16px;
}

.header-resource-featured {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.header-resource-featured > span {
  height: 28px;
  color: var(--ant-color-text-tertiary, #8c8c8c);
  font-size: 14px;
  line-height: 28px;
}

.header-resource-featured a {
  display: flex;
  min-height: 209px;
  flex-direction: column;
  padding: 8px;
  border-radius: 8px;
  background: var(--ant-color-fill-quaternary, #f7f7f7);
  color: inherit;
  text-decoration: none;
}

.header-resource-featured a:hover,
.header-resource-featured a:focus-visible {
  background: var(--ant-color-fill-tertiary, #f2f2f2);
}

.header-resource-featured img {
  width: 100%;
  height: 118px;
  border-radius: 6px;
  object-fit: cover;
}

.header-resource-featured strong {
  margin-top: 9px;
  color: var(--ant-color-text, #111);
  font-size: 14px;
  font-weight: 600;
}

.header-resource-featured small {
  margin-top: 3px;
  color: var(--ant-color-text-tertiary, #888);
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 767px) {
  .product-menu-positioner,
  .docs-product-menu-positioner {
    display: none !important;
  }
}

[data-product-carousel-track] {
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
}

body[data-product-page='task'] [data-task-board-view][hidden],
body[data-product-page='task'] [data-task-list-view][hidden],
body[data-product-page='task'] [data-task-detail-view][hidden],
body[data-product-page='task'] [data-task-agent-row][hidden],
body[data-product-page='task'] [data-task-schedule-row][hidden],
body[data-product-page='task'] [data-task-collapse-content][hidden],
body[data-product-page='task'] .acss-mvj75d[hidden] {
  display: none !important;
}

body[data-product-page='task'] [data-task-list-view] {
  scrollbar-gutter: stable;
}

body[data-product-page='task'] [data-task-list-row] > svg {
  flex: 0 0 auto;
}

body[data-product-page='task'] [data-task-list-row] > .acss-xtbzs8 {
  flex: 0 0 auto;
  white-space: nowrap;
}

body[data-product-page='workspace'] [data-workspace-hero-visual] {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1122 / 448;
  border-radius: 24px;
}

body[data-product-page='workspace'] [data-workspace-hero-visual] > img[src*='teams-hero.png'] {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-product-page='workspace'] [data-workspace-hero-visual] > img[src*='teams-hero-dark.png'] {
  display: none !important;
}

body[data-product-page='workspace'] [data-workspace-hero-brand] {
  position: absolute;
  z-index: 3;
  top: 44.7%;
  left: 65.3%;
  box-sizing: border-box;
  display: grid;
  width: 5.5%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 18%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

body[data-product-page='workspace'] [data-workspace-hero-brand] > img {
  display: block;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

body[data-product-page='workspace'] .logoloop-horizontal .logoloop-track {
  animation: workspace-logo-loop 30s linear infinite;
  display: flex;
  flex-direction: row;
  gap: var(--logoloop-gap);
  position: relative;
  transform: translate3d(0, 0, 0);
  user-select: none;
  will-change: transform;
  width: max-content;
}

body[data-product-page='workspace'] .logoloop-horizontal .logoloop-list {
  flex-direction: row;
  flex-shrink: 0;
  gap: var(--logoloop-gap);
  width: max-content;
}

body[data-product-page='workspace'] [data-workspace-pricing] [role='group'][data-orientation='horizontal'] {
  gap: 4px;
  padding: 3px;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  background: #f7f7f7;
}

body[data-product-page='workspace'] [data-workspace-pricing] [data-segmented-item] {
  min-width: 60px;
  border-radius: 10px;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

body[data-product-page='workspace'] [data-workspace-pricing] [data-segmented-item][data-pressed] {
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 6%);
  color: #111;
}

body[data-product-page='workspace'] [data-workspace-pricing] [data-segmented-item]:not([data-pressed]):hover {
  background: rgb(255 255 255 / 60%);
}

body[data-product-page='workspace'] [data-workspace-shared-agent-visual] {
  overflow: hidden;
  border-radius: 16px;
}

body[data-product-page='workspace'] [data-workspace-shared-agent-visual] > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.45);
  transform-origin: right center;
}

body[data-product-page='workspace'] .logoloop:hover .logoloop-track {
  animation-play-state: paused;
}

@keyframes workspace-logo-loop {
  to {
    transform: translate3d(calc(-50% - var(--logoloop-gap) / 2), 0, 0);
  }
}

.workspace-savings-details {
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--ant-color-border-secondary, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  background: var(--ant-color-fill-quaternary, rgba(0, 0, 0, 0.02));
}

/* The exported cards keep their source classes, so the live ARIA state also
   needs explicit visual rules after a user toggles a tool. */
body[data-product-page='workspace'] [data-workspace-savings] button[aria-pressed='true'] {
  border-color: #222;
  background: rgba(22, 119, 255, 0.06);
}

body[data-product-page='workspace'] [data-workspace-savings] button[aria-pressed='false'] {
  border-color: var(--ant-color-border-secondary, #e3e3e3);
  background: var(--ant-color-bg-container, #fff);
}

body[data-product-page='workspace']
  [data-workspace-savings]
  button[aria-pressed='true']
  > span:first-child {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
}

body[data-product-page='workspace']
  [data-workspace-savings]
  button[aria-pressed='false']
  > span:first-child {
  border-color: #e3e3e3;
  background: transparent;
  color: transparent;
}

.workspace-savings-details[hidden] {
  display: none;
}

.workspace-savings-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ant-color-text-secondary, #666);
  font-size: 14px;
}

.workspace-savings-details strong {
  color: var(--ant-color-text, #111);
  font-weight: 600;
}

.workspace-faq-panel .ant-collapse-content-box {
  padding: 0 44px 16px 16px;
}

.workspace-faq-panel p {
  margin: 0;
  color: var(--ant-color-text-secondary, #666);
  font-size: 14px;
  line-height: 1.7;
}

body[data-product-page='workspace'] .ant-collapse-header {
  cursor: pointer;
}

body[data-product-page] img[src$='/docs-mascot.png'] {
  object-fit: contain;
}

.product-coding-reference {
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  padding: 0 24px 96px;
}

.product-coding-reference img {
  border-radius: 8px;
  display: block;
  height: auto;
  width: 100%;
}

body[data-product-page] [data-product-accordion] button[aria-expanded] {
  cursor: pointer;
}

.product-mobile-menu {
  display: none;
}

.zoowork-spend-segment-track {
  display: flex;
  overflow: hidden;
}

.zoowork-spend-segment {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  transition: width 180ms ease;
}

.zoowork-spend-row-track {
  background: #eeeeee;
  overflow: hidden;
}

.zoowork-spend-row-bar {
  display: block;
  max-width: 100%;
  transition: width 180ms ease;
}

.zoowork-spend-avatar {
  background: #fff7df;
  border: 1px solid #f0d58b;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
}

.product-brand-wordmark {
  color: #111;
  font-size: 20px;
  font-weight: 750;
  line-height: 32px;
  margin-left: 8px;
}

@media (max-width: 640px) {
  body[data-product-page='task'] {
    scrollbar-width: none;
  }

  body[data-product-page='task']::-webkit-scrollbar {
    display: none;
  }

  body[data-product-page='task'] h1.acss-1w7c710 {
    font-size: 37px;
    text-wrap: pretty;
  }

  body[data-product-page='task'] [data-task-list-view] {
    overflow-x: auto;
  }

  body[data-product-page='task'] [data-task-list-group] {
    min-width: 520px;
  }

  .product-coding-reference {
    padding: 0 16px 56px;
  }

  body[data-product-page] header[style*='--lobe-flex-width:100vw'] {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100vw;
  }

  body[data-product-page] header[style*='--lobe-flex-width:100vw'] > .acss-12vxlp7 {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    height: 56px;
    justify-content: center;
    width: auto;
  }

  body[data-product-page] header[style*='--lobe-flex-width:100vw'] > .acss-12vxlp7 > .lobe-flex {
    align-items: center;
    display: flex;
    justify-content: center;
  }

  body[data-product-page][data-mobile-menu-open] {
    overflow: hidden;
  }

  .product-mobile-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    display: grid;
    gap: 4px;
    inset: 88px 16px auto;
    padding: 8px;
    position: fixed;
    z-index: 1002;
  }

  .product-mobile-menu[hidden] {
    display: none;
  }

  .product-mobile-menu a {
    border-radius: 6px;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 16px;
    text-decoration: none;
  }

  .product-mobile-menu a:hover,
  .product-mobile-menu a:focus-visible {
    background: rgba(0, 0, 0, 0.05);
  }

  body[data-product-page] h1 {
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body[data-product-page='workspace'] .logoloop-horizontal .logoloop-track {
    animation: none;
  }
}
