:root {
  --ink: #211a35;
  --muted: #6f687f;
  --soft: #f7f5fb;
  --line: #ece8f3;
  --line-strong: #ded8eb;
  --purple: #5f36d7;
  --purple-2: #7449e8;
  --purple-soft: #efe8ff;
  --green: #16845f;
  --green-soft: #eaf8f1;
  --orange: #a45a09;
  --orange-soft: #fff3df;
  --red: #c83a55;
  --red-soft: #fff0f3;
  --blue: #2c6fbb;
  --blue-soft: #ecf5ff;
  --shadow: 0 18px 55px rgba(32, 25, 51, .14);
}

@font-face {
  font-family: Inter;
  src: url("https://cdn.smartcat.com/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: Inter;
  src: url("https://cdn.smartcat.com/fonts/inter-600.woff2") format("woff2");
  font-weight: 600 800;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

svg {
  display: block;
  flex: 0 0 auto;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar__left,
.topbar__right,
.crumb {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__left,
.crumb {
  min-width: 0;
}

.crumb {
  overflow: hidden;
  white-space: nowrap;
}

.crumb span,
.crumb__link {
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #6b6478;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--soft);
}

.icon-btn--flip svg {
  transform: rotate(180deg);
}

.hamburger {
  width: 18px;
  height: 12px;
  position: relative;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 8px;
  background: #777084;
}

.hamburger::before {
  top: 0;
}

.hamburger span {
  top: 5px;
}

.hamburger::after {
  top: 10px;
}

.crumb {
  color: #5d566f;
  font-weight: 500;
  font-size: 14px;
}

.crumb b {
  color: #bab4c4;
  font-weight: 550;
}

.crumb__link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
}

.crumb__link:hover {
  color: var(--purple);
}

.pill-balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaff;
  color: #514960;
  font-weight: 650;
}

.coin,
.coin-logo {
  width: 16px;
  height: 16px;
}

.coin {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #8d3dde;
  color: #fff;
  font-size: 11px;
}

.coin-logo {
  display: block;
}

.page {
  padding: 32px 20px 72px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.context-pill {
  margin-top: 14px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 12px;
  background: #edf6ff;
  color: #245f96;
  font-weight: 650;
}

.context-pill--ready {
  background: #eaf8f1;
  color: #126345;
}

.context-pill--building,
.context-pill--queued {
  background: #edf6ff;
  color: #245f96;
}

.context-pill--failed {
  background: #fff0f3;
  color: #af2948;
}

.btn {
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #4a425b;
  font-weight: 650;
  white-space: nowrap;
}

.btn--small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.btn:hover {
  background: var(--soft);
}

.btn--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #34294d;
}

.btn--purple {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.btn--purple:hover {
  background: #4f2db9;
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: #5e566f;
}

.btn--ai {
  border-color: var(--line-strong);
  background: #fff;
}

.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 0 13px;
  font-size: 14px;
  background: transparent;
  color: #4b435c;
  font-weight: 650;
}

.tab.is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 5px;
  border-radius: 50%;
  background: #e8e6ec;
  color: #716a7e;
  font-size: 12px;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 13px;
}

.tool {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  background: transparent;
  color: #6a6279;
  font-weight: 650;
  font-size: 14px;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.projects-table-shell {
  margin-top: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.projects-table th,
.projects-table td {
  height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.projects-table th {
  color: #aaa3b3;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.projects-table td {
  color: #4f4860;
  font-size: 14px;
}

.check {
  width: 16px;
  height: 16px;
  border: 2px solid #dbd7e1;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: #fff;
  color: transparent;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.check::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.check:hover {
  border-color: #b8afc7;
}

.check.is-checked {
  border-color: #1e1b2f;
  background: #1e1b2f;
  color: #fff;
}

.check.is-checked::after {
  opacity: 1;
}

.check:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(95, 54, 215, .16);
}

.projects-table tr.is-bulk-selected {
  background: #f6f4fb;
}

.project-name {
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #40384f;
  font-weight: 500;
  font-size: 14px;
}

.projects-table .template-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
}

.row-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #6b6478;
}

.row-icon--growth {
  width: 18px;
  height: 18px;
  color: #655e73;
}

.row-icon--growth,
.template-icon--growth {
  position: relative;
}

.row-icon--growth::before,
.template-icon--growth::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  z-index: 24;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #443b56;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) rotate(45deg);
  transition: opacity .12s ease;
}

.row-icon--growth::after,
.template-icon--growth::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: -14px;
  z-index: 25;
  padding: 7px 10px;
  border-radius: 7px;
  background: #443b56;
  box-shadow: 0 12px 32px rgba(32, 25, 51, .18);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%);
  transition: opacity .12s ease;
}

.row-icon--growth:hover::before,
.row-icon--growth:hover::after,
.template-icon--growth:hover::before,
.template-icon--growth:hover::after {
  opacity: 1;
}

.globe {
  width: 16px;
  height: 16px;
  border: 1.8px solid #645d71;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-left: 1px solid #645d71;
  border-right: 1px solid #645d71;
  border-radius: 50%;
}

.globe::after {
  inset: 7px 2px auto;
  height: 1px;
  border: 0;
  background: #645d71;
}

.progress {
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: #f0eef4;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6843d7;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: #4f2bc1;
  font-size: 12px;
  font-weight: 650;
}

.badge--green {
  background: var(--green-soft);
  color: var(--green);
}

.badge--orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge--red {
  background: var(--red-soft);
  color: var(--red);
}

.supplier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.smartcat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.smartcat-avatar img {
  width: 24px;
  height: 24px;
  display: block;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6e667a;
}

.sales {
  position: fixed;
  right: 18px;
  bottom: 16px;
  height: 40px;
  border: 3px solid #3c0582;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4814ad;
  color: #fff;
  box-shadow: 0 7px 20px rgba(72, 20, 173, .35);
  font-weight: 750;
  font-size: 14px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: transparent;
}

.drawer-backdrop.is-open {
  display: block;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 21;
  width: 398px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 40px rgba(31, 25, 51, .08);
  transform: translateX(-102%);
  transition: transform .16s ease;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 16px;
  border-bottom: 1px solid var(--line);
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  width: 294px;
  height: 52px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f1eff4;
  font-size: 20px;
}

.workspace__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #211a35;
  color: #fff;
  font-weight: 800;
}

.workspace__mark--user {
  background: #9c82d8;
}

.workspace__mark--small {
  width: 26px;
  height: 26px;
  background: #ffaf62;
  font-size: 13px;
}

.drawer nav {
  padding: 18px 28px;
}

.nav-section {
  padding: 6px 0;
}

.nav-section--personal {
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  padding-bottom: 18px;
}

.workspace-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #4e4759;
  font-size: 17px;
  font-weight: 760;
}

.workspace-switch b {
  margin-left: auto;
  color: #7d7589;
  display: inline-grid;
  place-items: center;
}

.workspace-tree {
  margin: 8px 0 8px 30px;
  color: #534b60;
  font-size: 16px;
  font-weight: 760;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  color: #40394f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 720;
}

.nav-link span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-ico {
  width: 22px;
  display: inline-grid;
  place-items: center;
  color: #746d82;
}

.nav-link:hover,
.nav-link.is-active {
  background: #f4f0ff;
  color: var(--purple);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(26, 20, 42, .36);
}

.modal-backdrop.is-open {
  display: block;
}

.modal {
  position: fixed;
  z-index: 31;
  top: 50%;
  left: 50%;
  display: none;
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 80px rgba(31, 25, 51, .26);
}

.modal.is-open {
  display: block;
}

.modal--ai {
  width: min(940px, calc(100vw - 40px));
}

.modal--narrow {
  width: min(520px, calc(100vw - 40px));
}

.modal__head,
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal__foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal__title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.modal__body {
  padding: 22px;
}

.ai-loading-card,
.ai-error-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fcfbff 0%, #f6f2ff 100%);
}

.ai-loading-card h3,
.ai-error-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.ai-loading-card p,
.ai-error-card p {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
}

.ai-loader-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: rgba(95, 54, 215, .08);
}

.ai-candidate-list {
  display: grid;
  gap: 12px;
}

.ai-candidate {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  background: #fff;
}

.ai-candidate.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 54, 215, .08);
  background: #fbf8ff;
}

.ai-candidate input {
  margin-top: 4px;
}

.ai-candidate__body {
  display: grid;
  gap: 8px;
}

.ai-candidate__head {
  display: grid;
  gap: 4px;
}

.ai-candidate__head span,
.ai-candidate p {
  color: var(--muted);
}

.ai-candidate p {
  margin: 0;
}

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

.template-card {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  text-align: left;
}

.template-card:hover,
.template-card.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 54, 215, .10);
}

.template-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
}

.template-icon svg {
  width: 22px;
  height: 22px;
}

.template-icon--growth::before,
.template-icon--growth::after {
  top: -10px;
}

.template-card h3 {
  margin: 0;
  font-size: 16px;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #5c536c;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric {
  padding: 16px;
}

.metric__label {
  color: var(--muted);
  font-weight: 650;
}

.metric__value {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 780;
}

.metric__delta {
  margin-top: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.project-layout {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 280px;
  min-height: calc(100vh - 56px);
}

.project-layout--wide-nav {
  grid-template-columns: 220px minmax(0, 1fr) 280px;
}

.project-nav {
  border-right: 1px solid var(--line);
  background: #fbfaff;
  padding: 12px 6px;
  min-width: 0;
}

.project-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin-bottom: 10px;
  padding: 0;
  color: #61596e;
  font-size: 18px;
}

.project-nav--collapsed .project-nav__head {
  justify-content: center;
}

.project-nav__item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: transparent;
  color: #5a5367;
  font-size: 17px;
  font-weight: 730;
  text-align: left;
}

.project-nav--collapsed .project-nav__item {
  justify-content: center;
  padding: 0;
}

.project-nav__item.is-active,
.project-nav__item:hover {
  background: #f0eef4;
  color: #4b4358;
}

.project-nav--collapsed .project-nav__item span {
  display: none;
}

.project-main {
  padding: 44px 20px 84px;
  min-width: 0;
  overflow-x: clip;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}

.project-title-row h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ring {
  --value: 49;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 60%),
    conic-gradient(var(--purple-2) calc(var(--value) * 1%), #ebe8ef 0);
  color: #4d455c;
  font-size: 12px;
  font-weight: 780;
}

.hero-card {
  min-height: 188px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 14px;
}

.hero-card p {
  max-width: 1050px;
  margin: 12px 0 0;
  color: #746d82;
  font-size: 14px;
}

.hero-url {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 780;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-url__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.metric-grid--project {
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 30px;
}

.tabs--project {
  gap: 32px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.tabs--project .tab,
.tabs--project .btn {
  flex: 0 0 auto;
}

.tabs__spacer {
  flex: 1 1 auto;
}

.project-table-card {
  margin-top: 0;
}

.tab-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.workspace-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.workspace-headline h3,
.insight-card h3 {
  margin: 0;
  font-size: 18px;
}

.workspace-headline p {
  margin: 6px 0 0;
  color: var(--muted);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #5e566e;
  font-size: 13px;
  font-weight: 650;
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.workspace-grid--with-detail {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.select-col,
.select-cell {
  width: 48px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 920px;
}

.data-table--opportunities {
  min-width: 1280px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  white-space: nowrap;
}

.sort-header {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr.is-selected {
  background: #faf7ff;
}

.data-table tbody tr.is-bulk-selected {
  background: #f6f4fb;
}

.data-table tbody tr.is-selected.is-bulk-selected {
  background: #f2effc;
}

.data-table tbody tr:hover {
  background: transparent;
}

.row-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.hypothesis-cell {
  display: grid;
  gap: 6px;
}

.hypothesis-cell strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.hypothesis-cell p,
.data-table td p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.data-table td strong {
  display: block;
  margin-bottom: 3px;
}

.metric-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.editable-field {
  width: 100%;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
}

select.editable-field {
  min-width: 96px;
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%235b5568' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  text-overflow: clip;
}

.editable-field:hover {
  border-color: var(--line);
  background: #fff;
}

.editable-field:focus {
  outline: 0;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(95, 54, 215, .10);
}

.editable-field--textarea {
  min-height: 58px;
  overflow: hidden;
  resize: vertical;
}

.data-table .editable-field--textarea {
  resize: none;
  scrollbar-width: none;
}

.data-table .editable-field--textarea::-webkit-scrollbar {
  display: none;
}

.editable-field--compact {
  width: auto;
  min-width: 96px;
}

.readonly-field {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f7fb;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.readonly-field--select {
  position: relative;
  padding-right: 30px;
}

.readonly-field--select::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%235b5568' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: .8;
}

.readonly-field__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readonly-field.is-stale {
  border-color: rgba(196, 97, 27, .24);
  background: #fff8ef;
}

.field-stale-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #ff9d2e;
  box-shadow: 0 0 0 3px rgba(255, 157, 46, .16);
}

.stacked-edit {
  display: grid;
  gap: 6px;
}

.badge--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.insight-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.insight-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insight-card__toolbar {
  display: flex;
  justify-content: flex-end;
}

.ai-cell {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.ai-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #3569a8;
  font-size: 12px;
  font-weight: 650;
}

.ai-status--stale {
  background: #fff2df;
  color: #a45a09;
}

.ai-action {
  padding-inline: 10px;
}

.smartcat-loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(95, 54, 215, .18);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: smartcat-spin .8s linear infinite;
}

.smartcat-loader--lg {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

@keyframes smartcat-spin {
  to {
    transform: rotate(360deg);
  }
}

.table-new-row td {
  padding: 0;
}

.table-new-row__button {
  width: 100%;
  min-height: 46px;
  border: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fbfaff;
  color: #5e566e;
  font-weight: 650;
}

.table-new-row__button:hover {
  background: #f4f0ff;
}

.bulk-action-bar {
  position: sticky;
  bottom: 18px;
  z-index: 12;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 16px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(55, 45, 79, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 40px rgba(42, 32, 67, .12);
  backdrop-filter: blur(14px);
}

.bulk-action-bar strong {
  font-size: 13px;
  color: #342d42;
  white-space: nowrap;
}

.bulk-action-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn--danger {
  border-color: #f0c8c8;
  color: #cb3b3b;
  background: #fff;
}

.btn--danger:hover {
  border-color: #e9b4b4;
  background: #fff6f6;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.method-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: #fff;
  text-align: left;
}

.method-card.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 54, 215, .10);
}

.method-card strong {
  font-size: 16px;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.is-hidden {
  display: none;
}

.tab-panel-empty {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tab-panel-empty h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.tab-panel-empty p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
}

.idea-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.idea-card h3 {
  margin: 0;
  font-size: 14px;
}

.idea-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.idea-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.idea-card__row strong {
  color: var(--ink);
  font-size: 14px;
}

.idea-meta {
  margin-top: 10px;
  color: #847c93;
  font-size: 12px;
  font-weight: 650;
}

.idea-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}

.idea-label {
  display: block;
  margin-bottom: 4px;
  color: #847c93;
  font-size: 12px;
}

.gap-table {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) .7fr .8fr 1fr .7fr;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  color: #534b60;
  font-size: 14px;
}

.gap-table--head {
  min-height: 52px;
  color: #aaa3b3;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gap-table p {
  margin: 3px 0 0;
  color: #8a8495;
  font-size: 13px;
}

.progress--wide {
  display: inline-block;
  width: 142px;
  margin-right: 8px;
  vertical-align: middle;
}

.right-rail {
  border-left: 1px solid var(--line);
  background: #fff;
  padding: 24px 16px 90px;
}

.rail-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.rail-section h2 {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.25;
}

.rail-arrow {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5e566b;
  font-size: 14px;
}

.supplier-card {
  min-height: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.supplier-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d8cdf5;
  color: var(--purple);
  font-weight: 820;
}

.supplier-card strong {
  display: block;
  font-size: 14px;
}

.supplier-card p {
  margin: 3px 0 0;
  color: #6d6579;
  font-size: 12px;
}

.rail-star {
  color: #3a956f;
  font-size: 14px;
  white-space: nowrap;
}

.rail-copy {
  color: #5f586c;
  font-size: 14px;
  line-height: 1.35;
}

.rail-row,
.detail-block {
  display: grid;
  gap: 8px;
  color: #8a8495;
  font-size: 16px;
}

.rail-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  color: #6b6377;
  font-size: 14px;
}

.detail-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block strong,
.rail-row strong {
  color: #5a5266;
  font-size: 14px;
  font-weight: 520;
}

.under {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.panel {
  margin-top: 14px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  margin: 0;
  font-size: 16px;
}

.cluster-list {
  display: grid;
}

.cluster {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 110px 120px 140px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cluster:last-child {
  border-bottom: 0;
}

.cluster h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.cluster p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #f0edf5;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}

.recommendation {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 140px 140px 140px;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.recommendation:last-child {
  border-bottom: 0;
}

.recommendation h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.recommendation p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: 360px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #534b60;
  box-shadow: 0 10px 32px rgba(32, 25, 51, .12);
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 960px) {
  .tabs-row,
  .page-head,
  .topbar {
    align-items: stretch;
  }

  .tabs-row,
  .page-head {
    flex-direction: column;
  }

  .table-tools,
  .tabs {
    flex-wrap: wrap;
  }

  .projects-table {
    min-width: 980px;
  }

  .page {
    overflow-x: auto;
  }

  .template-grid,
  .metric-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .project-layout {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .project-layout--wide-nav {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }

  .cluster,
  .recommendation,
  .workspace-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .topbar__left,
  .topbar__right {
    gap: 8px;
  }

  .topbar__left {
    flex: 1 1 auto;
  }

  .topbar__right {
    flex: 0 0 auto;
  }

  .topbar .icon-btn {
    width: 32px;
  }

  .pill-balance {
    width: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .pill-balance img {
    margin: 0;
  }

  .project-layout--wide-nav {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .project-layout--wide-nav .project-nav {
    padding-inline: 6px;
  }

  .project-layout--wide-nav .project-nav__head {
    justify-content: center;
  }

  .project-layout--wide-nav .project-nav__head strong,
  .project-layout--wide-nav .project-nav__item span {
    display: none;
  }

  .project-layout--wide-nav .project-nav__item {
    justify-content: center;
    padding: 0;
  }

  .project-main {
    padding: 28px 14px 72px;
  }

  .project-actions,
  .hero-actions,
  .workspace-headline {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-title-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .project-actions {
    grid-column: 1 / -1;
    margin-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-card {
    padding: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .metric-grid--project {
    grid-template-columns: 1fr;
  }

  .tabs--project {
    gap: 24px;
  }

  .table-shell {
    box-shadow: inset -18px 0 18px -22px rgba(32, 25, 51, .45);
  }

  .data-table,
  .data-table--opportunities {
    min-width: 980px;
  }

  .sales {
    position: static;
    width: calc(100% - 28px);
    margin: 24px 14px;
    justify-content: center;
    transform: none;
  }
}
