.sdk-fts {
  --fts-ink: #17233c;
  --fts-muted: #697287;
  --fts-line: #dedfd8;
  --fts-soft-line: #ebeae3;
  --fts-paper: #fffefa;
  --fts-canvas: #f4f2ea;
  --fts-green: #2f6d57;
  --fts-green-soft: #e8f0e9;
  width: 100%;
  color: var(--fts-ink);
  font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sdk-fts *,
.sdk-fts *::before,
.sdk-fts *::after {
  box-sizing: border-box;
}

.sdk-fts button,
.sdk-fts input,
.sdk-fts select,
.sdk-fts textarea {
  font: inherit;
}

.sdk-fts button {
  color: inherit;
}

.sdk-fts__app {
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--fts-line);
  border-radius: 12px;
  background: var(--fts-canvas);
  box-shadow: 0 10px 35px rgba(23, 35, 60, 0.08);
}

.sdk-fts__header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--fts-line);
  background: var(--fts-paper);
}

.sdk-fts__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sdk-fts__brand > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--fts-ink);
  color: #fff;
  font: 700 22px/1 Georgia, serif;
}

.sdk-fts__brand strong,
.sdk-fts__brand small {
  display: block;
}

.sdk-fts__brand strong {
  font: 700 25px/1 Georgia, serif;
}

.sdk-fts__brand small {
  margin-top: 5px;
  color: var(--fts-muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sdk-fts__meta {
  display: flex;
  align-items: center;
  color: var(--fts-muted);
  font-size: 14px;
}

.sdk-fts__meta i {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4e9a70;
  box-shadow: 0 0 0 3px #e9f3ed;
}

.sdk-fts__meta b {
  width: 1px;
  height: 14px;
  margin: 0 12px;
  background: var(--fts-line);
}

.sdk-fts__workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sdk-fts__sidebar {
  padding: 23px 12px;
  border-right: 1px solid var(--fts-line);
  background: #f8f7f1;
}

.sdk-fts__sidebar > small {
  display: block;
  margin: 0 9px 9px;
  color: #9195a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sdk-fts__category {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.sdk-fts__category span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sdk-fts__category strong {
  color: #9a9da5;
  font: 600 11px/1 ui-monospace, monospace;
}

.sdk-fts__category:hover {
  background: #efeee7;
}

.sdk-fts__category.is-active {
  background: var(--fts-ink);
  color: #fff;
}

.sdk-fts__category.is-active strong {
  color: #c9d0de;
}

.sdk-fts__sidebar p {
  margin: 24px 7px 0;
  padding: 12px;
  border: 1px solid #d8ddd3;
  border-radius: 9px;
  background: var(--fts-green-soft);
  color: var(--fts-muted);
  font-size: 13px;
}

.sdk-fts__sidebar p b {
  display: block;
  margin-bottom: 3px;
  color: var(--fts-green);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sdk-fts__content {
  min-width: 0;
  padding: 30px clamp(18px, 3vw, 38px) 34px;
}

.sdk-fts__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.sdk-fts__heading small {
  color: var(--fts-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sdk-fts__heading h2 {
  margin: 5px 0 0;
  color: var(--fts-ink);
  font: 600 clamp(34px, 3.4vw, 46px)/1.08 Georgia, serif;
  letter-spacing: -0.035em;
}

.sdk-fts__heading p {
  margin: 7px 0 0;
  color: var(--fts-muted);
  font-size: 16px;
}

.sdk-fts__summary {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.sdk-fts__summary strong {
  font: 600 34px/1 Georgia, serif;
}

.sdk-fts__summary span {
  margin-top: 3px;
  color: var(--fts-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sdk-fts__toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.sdk-fts__search {
  min-width: 230px;
  height: 48px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--fts-line);
  border-radius: 9px;
  background: var(--fts-paper);
}

.sdk-fts__search > span {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.sdk-fts__search > span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid #748096;
  border-radius: 50%;
}

.sdk-fts__search > span::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 14px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #748096;
  transform: rotate(45deg);
  transform-origin: left center;
}

.sdk-fts__search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fts-ink);
  font-size: 15px;
}

.sdk-fts__search button {
  border: 0;
  background: transparent;
  color: var(--fts-muted);
  cursor: pointer;
  font-size: 21px;
}

.sdk-fts__toolbar > select,
.sdk-fts__secondary,
.sdk-fts__export {
  height: 48px;
  border: 1px solid var(--fts-line);
  border-radius: 9px;
  padding: 0 11px;
  background: var(--fts-paper);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.sdk-fts__toolbar > select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 56px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fts-ink) 50%),
    linear-gradient(135deg, var(--fts-ink) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 38px) 50%,
    calc(100% - 32px) 50% !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px, 6px 6px !important;
}

.sdk-fts__export {
  border-color: var(--fts-ink);
  background: var(--fts-ink);
  color: #fff !important;
}

.sdk-fts__export:hover,
.sdk-fts__export:focus,
.sdk-fts__export:active {
  color: #fff !important;
}

.sdk-fts__columns {
  position: relative;
}

.sdk-fts__columns > div {
  position: absolute;
  top: 45px;
  right: 0;
  width: 200px;
  padding: 9px;
  border: 1px solid var(--fts-line);
  border-radius: 9px;
  background: var(--fts-paper);
  box-shadow: 0 14px 35px rgba(26, 35, 53, 0.14);
}

.sdk-fts__columns label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  font-size: 13px;
}

.sdk-fts__subbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--fts-muted);
  font-size: 12px;
}

.sdk-fts__subbar button {
  margin-left: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #898d96;
  cursor: pointer;
  font-size: 12px;
}

.sdk-fts__table-frame {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--fts-line);
  border-radius: 10px;
  background: var(--fts-paper);
}

.sdk-fts__scroll {
  max-height: 620px;
  min-height: 400px;
  overflow: auto;
}

.sdk-fts table {
  width: 100%;
  min-width: 1301px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}

.sdk-fts thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.sdk-fts th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 50px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--fts-line);
  border-bottom: 1px solid var(--fts-line);
  background: #e7e6de;
  color: #26344d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.075em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.sdk-fts th button {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
}

.sdk-fts__sort {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--fts-green);
}

.sdk-fts__th-label {
  min-width: 0;
}

.sdk-fts td {
  height: 56px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--fts-soft-line);
  border-bottom: 1px solid var(--fts-soft-line);
  background: transparent;
  color: #4f586a;
  line-height: 1.35;
  vertical-align: middle;
}

.sdk-fts tbody tr:hover td {
  background: #fbfaf5;
}

.sdk-fts th:last-child,
.sdk-fts td:last-child {
  border-right: 0;
}

.sdk-fts th:nth-child(2),
.sdk-fts td:nth-child(2) {
  width: 145px;
}

.sdk-fts th:nth-child(3),
.sdk-fts td:nth-child(3) {
  width: 185px;
}

.sdk-fts th:nth-child(4),
.sdk-fts td:nth-child(4) {
  width: 260px;
}

.sdk-fts th:nth-child(5),
.sdk-fts td:nth-child(5) {
  width: 105px;
}

.sdk-fts th:nth-child(6),
.sdk-fts td:nth-child(6) {
  width: 125px;
}

.sdk-fts th:nth-child(7),
.sdk-fts td:nth-child(7) {
  width: 200px;
}

.sdk-fts [data-field="Subcategory"] {
  width: 180px !important;
}

.sdk-fts [data-field="Tool Name"] {
  width: 220px !important;
}

.sdk-fts [data-field="Description"] {
  width: 300px !important;
}

.sdk-fts [data-field="Pricing"] {
  width: 105px !important;
}

.sdk-fts [data-field="AI Classification"] {
  width: 150px !important;
}

.sdk-fts [data-field="Notes"] {
  width: 210px !important;
}

.sdk-fts th[data-field="AI Classification"] button {
  line-height: 1.12;
  white-space: normal;
}

.sdk-fts th[data-field="AI Classification"] .sdk-fts__th-label {
  max-width: 112px;
  white-space: normal;
}

.sdk-fts__number {
  width: 40px !important;
  color: #9a9da6 !important;
  text-align: center !important;
  font: 500 12px/1 ui-monospace, monospace !important;
}

.sdk-fts__visit {
  width: 96px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.sdk-fts__row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sdk-fts__visit a,
.sdk-fts__delete {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--fts-line);
  border-radius: 7px;
  background: #fff;
  color: var(--fts-ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.sdk-fts__delete {
  border-color: #d4d6d9 !important;
  color: #a33d32;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 18px;
  line-height: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
}

.sdk-fts__delete:hover {
  border-color: #aeb3ba !important;
  background: #fff1ef;
  color: #8f2f26;
}

.sdk-fts__tool {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sdk-fts__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d8ddd6;
  border-radius: 8px;
  background: var(--fts-green-soft);
  color: var(--fts-green);
  font: 700 13px/1 Georgia, serif;
}

.sdk-fts__tool > span:last-child {
  min-width: 0;
}

.sdk-fts__tool strong,
.sdk-fts__tool small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sdk-fts__tool strong {
  color: var(--fts-ink);
  font-size: 14px;
}

.sdk-fts__tool strong a {
  color: var(--fts-ink) !important;
  text-decoration: none;
}

.sdk-fts__tool strong a:hover,
.sdk-fts__tool strong a:focus {
  color: var(--fts-green) !important;
  text-decoration: underline;
}

.sdk-fts__tool small {
  margin-top: 2px;
  color: #9296a0;
  font-size: 11px;
}

.sdk-fts__badge {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid #dcdde0;
  border-radius: 99px;
  background: #f4f4f2;
  color: #656b76;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
}

.sdk-fts__badge--free {
  border-color: #c9ddcf;
  background: #eaf3ec;
  color: #337052;
}

.sdk-fts__badge--native {
  border-color: #cbd4e3;
  background: #edf1f8;
  color: #435d82;
}

.sdk-fts__badge--augmented {
  border-color: #dfd5bf;
  background: #f5f0e4;
  color: #7c6532;
}

.sdk-fts td textarea {
  width: 100%;
  min-height: 38px;
  resize: vertical;
  border: 1px solid var(--fts-green);
  border-radius: 5px;
  padding: 6px;
  outline: 2px solid rgba(47, 109, 87, 0.12);
  background: #fff;
  color: var(--fts-ink);
  font-size: 13px;
}

.sdk-fts footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 14px 16px 16px;
  border-top: 2px solid #cfd1c9;
  background: #eeede6;
  color: var(--fts-ink);
  font-size: 13px;
}

.sdk-fts footer > label {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  font-weight: 700;
}

.sdk-fts footer select {
  min-width: 72px;
  height: 36px;
  margin-left: 0;
  border: 1px solid #b8bcc2;
  border-radius: 7px;
  padding: 6px 10px;
  background: #fff;
  color: var(--fts-ink);
  font-size: 13px;
  font-weight: 700;
}

.sdk-fts footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sdk-fts footer button {
  min-height: 34px;
  border: 1px solid #b8bcc2;
  border-radius: 7px;
  padding: 7px 11px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sdk-fts footer button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sdk-fts__empty {
  height: 250px !important;
  text-align: center;
}

.sdk-fts__empty strong,
.sdk-fts__empty span,
.sdk-fts__error strong,
.sdk-fts__error span {
  display: block;
}

.sdk-fts__empty strong,
.sdk-fts__error strong {
  color: var(--fts-ink);
  font: 600 18px/1.2 Georgia, serif;
}

.sdk-fts__empty span,
.sdk-fts__error span {
  margin-top: 5px;
}

.sdk-fts__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 20, 37, 0.66);
}

.sdk-fts__modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--fts-line);
  border-radius: 14px;
  padding: 28px;
  background: var(--fts-paper);
  box-shadow: 0 24px 70px rgba(10, 20, 37, 0.28);
}

.sdk-fts__modal-card h3 {
  margin: 0;
  color: var(--fts-ink);
  font: 700 30px/1.15 Georgia, serif;
}

.sdk-fts__modal-card > p {
  margin: 8px 44px 22px 0;
  color: var(--fts-muted);
  font-size: 14px;
}

.sdk-fts__modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--fts-line);
  border-radius: 8px;
  background: #fff;
  color: var(--fts-ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.sdk-fts__add-form,
.sdk-fts__import-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sdk-fts__add-form label,
.sdk-fts__import-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--fts-ink);
  font-size: 13px;
  font-weight: 700;
}

.sdk-fts__add-form .is-wide,
.sdk-fts__import-form .is-wide,
.sdk-fts__import-help,
.sdk-fts__modal-actions {
  grid-column: 1 / -1;
}

.sdk-fts__add-form input,
.sdk-fts__add-form select,
.sdk-fts__add-form textarea,
.sdk-fts__import-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b8bcc2;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--fts-ink);
  font-size: 14px;
}

.sdk-fts__add-form textarea {
  min-height: 82px;
  resize: vertical;
}

.sdk-fts__import-help {
  padding: 14px;
  border: 1px solid #d8ddd3;
  border-radius: 9px;
  background: var(--fts-green-soft);
  color: var(--fts-muted);
  font-size: 13px;
}

.sdk-fts__import-help strong,
.sdk-fts__import-help span {
  display: block;
}

.sdk-fts__import-help strong {
  margin-bottom: 4px;
  color: var(--fts-green);
}

.sdk-fts__modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.sdk-fts__modal-actions button {
  min-width: 112px;
}

.sdk-fts__loading,
.sdk-fts__error {
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 1px solid var(--fts-line);
  border-radius: 12px;
  background: var(--fts-paper);
  color: var(--fts-muted);
  text-align: center;
}

.sdk-fts__loading span {
  width: 26px;
  height: 26px;
  margin: auto;
  border: 3px solid var(--fts-line);
  border-top-color: var(--fts-green);
  border-radius: 50%;
  animation: sdk-fts-spin 0.8s linear infinite;
}

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

@media (max-width: 900px) {
  .sdk-fts__meta,
  .sdk-fts__sidebar > small,
  .sdk-fts__sidebar p {
    display: none;
  }

  .sdk-fts__workspace {
    display: block;
  }

  .sdk-fts__sidebar {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--fts-line);
  }

  .sdk-fts__category {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
  }

  .sdk-fts__content {
    padding: 22px 13px 28px;
  }

  .sdk-fts__summary {
    display: none;
  }

  .sdk-fts__toolbar {
    flex-wrap: wrap;
  }

  .sdk-fts__search {
    flex-basis: 100%;
  }

  .sdk-fts__toolbar > select {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .sdk-fts__app {
    border-radius: 8px;
  }

  .sdk-fts__header {
    height: 60px;
    padding: 0 13px;
  }

  .sdk-fts__heading h2 {
    font-size: 28px;
  }

  .sdk-fts__secondary,
  .sdk-fts__export {
    flex: 1;
  }

  .sdk-fts footer {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .sdk-fts footer > label {
    width: 100%;
  }

  .sdk-fts__add-form,
  .sdk-fts__import-form {
    grid-template-columns: 1fr;
  }
}
