:root {
  --tk-black: #050505;
  --tk-topbar-control: #242424;
  --tk-topbar-border: #3b3b3b;
  --tk-app-bg: #f1f1f1;
  --tk-sidebar-bg: #ebebeb;
  --tk-surface: #ffffff;
  --tk-surface-soft: #f7f7f7;
  --tk-border: #dcdcdc;
  --tk-border-strong: #c7c7c7;
  --tk-text: #303030;
  --tk-muted: #616161;
  --tk-subtle: #8a8a8a;
  --tk-green: #abefc6;
  --tk-yellow: #ffeb78;
  --tk-blue: #2eb7d5;
  --tk-radius-sm: 8px;
  --tk-radius: 12px;
  --tk-shadow-card: 0 1px 0 rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --tk-font: Inter, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--tk-app-bg);
  color: var(--tk-text);
  font-family: var(--tk-font);
  font-size: 13px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.tk-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 240px minmax(240px, 640px) 1fr;
  align-items: center;
  height: 56px;
  padding: 0 8px 0 20px;
  background: var(--tk-black);
  color: #f7f7f7;
  gap: 16px;
}

.tk-brand,
.tk-top-actions,
.tk-store-btn,
.tk-user-btn,
.tk-search,
.tk-icon-btn {
  display: flex;
  align-items: center;
}

.tk-brand {
  gap: 8px;
  font-size: 21px;
  font-style: italic;
  letter-spacing: 0;
}

.tk-bag {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #9effb8, #7f8cff);
  color: #0c0c0c;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.tk-season {
  padding: 3px 8px;
  border: 1px solid var(--tk-topbar-border);
  border-radius: 999px;
  color: #f1f1f1;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
}

.tk-search {
  justify-content: space-between;
  width: 100%;
  height: 36px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--tk-topbar-border);
  border-radius: var(--tk-radius);
  background: var(--tk-topbar-control);
  color: #dcdcdc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.tk-search span {
  flex: 1;
  margin-left: 8px;
  text-align: left;
}

.tk-search kbd {
  padding: 1px 5px;
  border-radius: 6px;
  background: #303030;
  color: #b5b5b5;
  font-size: 12px;
}

.tk-top-actions {
  justify-content: flex-end;
  gap: 8px;
}

.tk-icon-btn,
.tk-store-btn {
  height: 36px;
  border: 0;
  border-radius: var(--tk-radius);
  background: transparent;
  color: #dcdcdc;
}

.tk-icon-btn {
  justify-content: center;
  width: 36px;
  font-size: 16px;
}

.tk-icon-btn:hover,
.tk-store-btn:hover {
  background: #1c1c1c;
}

.tk-store-btn {
  gap: 8px;
  padding: 0 8px 0 4px;
}

.tk-store-btn span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #37e05f;
  color: #063912;
  font-size: 12px;
  font-weight: 700;
}

.tk-user-menu {
  position: relative;
}

.tk-user-btn {
  max-width: 240px;
  height: 36px;
  gap: 8px;
  padding: 0 9px 0 4px;
  border: 0;
  border-radius: var(--tk-radius);
  background: transparent;
  color: #f3f3f3;
}

.tk-user-btn:hover,
.tk-user-btn[aria-expanded="true"] {
  background: #1c1c1c;
}

.tk-user-btn span,
.tk-user-dropdown-head > span,
.tk-profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #37e05f;
  color: #063912;
  font-weight: 800;
}

.tk-user-btn span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 12px;
}

.tk-user-btn strong {
  max-width: 158px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-user-btn i {
  color: #b8b8b8;
  font-size: 11px;
}

.tk-user-dropdown {
  width: 286px;
  padding: 6px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.tk-user-dropdown-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
}

.tk-user-dropdown-head > span {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.tk-user-dropdown-head div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tk-user-dropdown-head strong,
.tk-user-dropdown-head small,
.tk-user-context strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-user-dropdown-head strong {
  color: var(--tk-text);
  font-size: 13px;
}

.tk-user-dropdown-head small,
.tk-user-context small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-user-context {
  display: grid;
  gap: 2px;
  margin: 2px 4px 6px;
  padding: 8px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f7f7f7;
}

.tk-user-context strong {
  color: var(--tk-text);
  font-size: 13px;
}

.tk-user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: var(--tk-radius-sm);
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 650;
}

.tk-user-dropdown .dropdown-item:hover {
  background: #f1f1f1;
}

.tk-user-dropdown .dropdown-item.danger {
  color: #b42318;
}

.tk-profile-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  max-width: 720px;
  padding: 18px;
}

.tk-profile-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.tk-profile-info h2 {
  margin: 0;
  color: var(--tk-text);
  font-size: 18px;
  font-weight: 800;
}

.tk-profile-info p {
  margin: 3px 0 14px;
  color: var(--tk-muted);
}

.tk-profile-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.tk-profile-info dl div {
  padding: 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #fafafa;
}

.tk-profile-info dt {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-profile-info dd {
  margin: 2px 0 0;
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 700;
}

.tk-sidebar {
  position: fixed;
  z-index: 30;
  inset: 56px auto 0 0;
  display: flex;
  flex-direction: column;
  width: 240px;
  padding: 10px 10px 14px;
  background: var(--tk-sidebar-bg);
  color: var(--tk-text);
}

.tk-sidebar {
  overflow-y: auto;
  transition: width .18s ease, padding .18s ease;
}

.tk-nav,
.tk-nav-section {
  display: grid;
}

.tk-nav-section {
  margin-top: 16px;
}

.tk-nav-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: var(--tk-radius-sm);
  color: var(--tk-text);
  font-weight: 500;
  gap: 4px;
}

.tk-nav-item i {
  color: #505050;
  font-size: 15px;
}

.tk-nav-item.active,
.tk-nav-item:hover {
  background: #ffffff;
}

.tk-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #dedede;
  color: var(--tk-muted);
  text-align: center;
}

.tk-section-title {
  display: block;
  height: 28px;
  padding: 8px 8px 4px;
  color: var(--tk-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tk-sidebar-collapse {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: transparent;
  color: var(--tk-muted);
  transition: background .15s ease, color .15s ease, transform .18s ease;
}

.tk-sidebar-collapse:hover {
  background: #ffffff;
}

.tk-sidebar-collapse i {
  transition: transform .18s ease;
}

.tk-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: var(--tk-radius-sm);
  font-weight: 600;
}

.tk-settings:hover {
  background: #ffffff;
}

.tk-main {
  min-height: 100vh;
  padding: 72px 24px 32px 264px;
  transition: padding-left .18s ease;
}

body.tk-sidebar-collapsed .tk-sidebar {
  width: 68px;
  padding-right: 8px;
  padding-left: 8px;
}

body.tk-sidebar-collapsed .tk-sidebar .sidebar-top {
  gap: 4px !important;
}

body.tk-sidebar-collapsed .tk-sidebar .tk-nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-right: 0;
  padding-left: 0;
}

body.tk-sidebar-collapsed .tk-sidebar .tk-nav-item span,
body.tk-sidebar-collapsed .tk-sidebar .tk-section-title,
body.tk-sidebar-collapsed .tk-sidebar .tk-settings span,
body.tk-sidebar-collapsed .tk-sidebar .tk-count {
  display: none;
}

body.tk-sidebar-collapsed .tk-sidebar .tk-settings {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

body.tk-sidebar-collapsed .tk-sidebar-collapse {
  background: #ffffff;
}

body.tk-sidebar-collapsed .tk-sidebar-collapse i {
  transform: rotate(180deg);
}

body.tk-sidebar-collapsed .tk-main {
  padding-left: 92px;
}

.tk-page-narrow {
  width: min(100%, 796px);
  margin: 0 auto;
}

.tk-page-wide {
  width: 100%;
  margin: 0 auto;
}

.tk-page-wide .tk-table-card {
  width: 100%;
}

.tk-filter-row,
.tk-action-grid,
.tk-page-header,
.tk-header-actions,
.tk-table-toolbar,
.tk-pagination {
  display: flex;
  align-items: center;
}

.tk-filter-row {
  gap: 8px;
  margin-bottom: 14px;
}

.tk-filter-btn,
.tk-live-pill,
.tk-mini-card {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: var(--tk-shadow-card);
  color: var(--tk-text);
}

.tk-filter-btn,
.tk-mini-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tk-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tk-live-pill span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #23e268;
  box-shadow: 0 0 0 4px rgba(35, 226, 104, .12);
}

.tk-card {
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  background: var(--tk-surface);
  box-shadow: var(--tk-shadow-card);
}

.tk-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
  overflow: hidden;
}

.tk-metrics article {
  display: grid;
  grid-template-columns: 1fr 92px;
  padding: 15px 18px;
  border-right: 1px solid #eeeeee;
  gap: 2px 12px;
}

.tk-metrics article:last-child {
  border-right: 0;
}

.tk-metric-label {
  color: var(--tk-text);
  font-weight: 650;
  text-decoration: underline dotted #a0a0a0;
  text-underline-offset: 4px;
}

.tk-metric-value {
  grid-column: 1;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 650;
}

.tk-metric-value small {
  color: var(--tk-subtle);
  font-weight: 500;
}

.tk-metrics svg {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: end;
}

.tk-metrics path {
  fill: none;
  stroke: var(--tk-blue);
  stroke-width: 2;
}

.tk-action-grid {
  gap: 8px;
  margin-bottom: 28px;
}

.tk-mini-card {
  width: 260px;
  font-weight: 650;
}

.tk-greeting {
  margin: 0 0 10px 12px;
  font-size: 20px;
  font-weight: 750;
}

.tk-ai-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  margin-bottom: 28px;
  padding: 16px 14px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  background: #ffffff;
  box-shadow: var(--tk-shadow-card);
  color: var(--tk-muted);
  font-size: 14px;
}

.tk-ai-box button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f1;
  color: var(--tk-muted);
}

.tk-guide-card {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px;
}

.tk-guide-copy h2 {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 750;
}

.tk-guide-copy p {
  margin: 0;
  max-width: 590px;
}

.tk-progress-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #dedede;
  border-radius: 99px;
  vertical-align: middle;
}

.tk-spin-icon {
  margin-right: 8px;
  font-size: 18px;
}

.tk-illustration {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  min-height: 100px;
  border-radius: 10px;
  font-size: 32px;
}

.tk-green {
  background: #c8ff73;
}

.tk-orange {
  background: #ffd99a;
}

.tk-guide-card footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: var(--tk-surface-soft);
  gap: 4px;
}

.tk-guide-card footer button {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
}

.tk-page-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.tk-page-header h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 750;
}

.tk-header-actions {
  gap: 8px;
}

.tk-soft-btn,
.tk-primary-btn {
  height: 32px;
  border-radius: var(--tk-radius-sm);
  font-size: 13px;
  font-weight: 650;
}

.tk-soft-btn {
  border: 0;
  background: #e7e7e7;
  color: var(--tk-text);
}

.tk-soft-btn:hover {
  background: #dedede;
}

.tk-header-actions .tk-soft-btn.active {
  background: #303030;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #ffffff;
}

.tk-header-actions .tk-soft-btn.active:hover {
  background: #1f1f1f;
  color: #ffffff;
}

.tk-primary-btn {
  border: 1px solid #000000;
  background: #303030;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #ffffff;
}

.tk-primary-btn:hover {
  background: #1f1f1f;
  color: #ffffff;
}

.tk-summary-tabs {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin-bottom: 14px;
  overflow: hidden;
}

.tk-summary-tabs a {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 18px;
  border-right: 1px solid var(--tk-border);
  font-size: 14px;
}

.tk-summary-tabs a.active {
  font-weight: 700;
}

.tk-summary-tabs button {
  width: 42px;
  height: 36px;
  margin-left: auto;
  margin-right: 8px;
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: #f6f6f6;
}

.tk-table-card {
  overflow: hidden;
}

.tk-table-toolbar {
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--tk-border);
  gap: 10px;
}

.tk-table-toolbar input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tk-text);
}

.tk-table-toolbar button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: transparent;
  color: var(--tk-muted);
}

.tk-table-toolbar a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--tk-radius-sm);
  color: var(--tk-muted);
}

.tk-table-toolbar a:hover {
  background: #efefef;
}

.tk-row-link {
  color: var(--tk-text);
  font-weight: 700;
}

.tk-row-link:hover {
  text-decoration: underline;
}

.tk-migration-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
}

.tk-migration-hero h2 {
  margin: 10px 0 7px;
  font-size: 18px;
  font-weight: 750;
}

.tk-migration-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--tk-muted);
  font-size: 14px;
}

.tk-migration-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tk-migration-counts article {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: var(--tk-surface-soft);
}

.tk-migration-counts strong {
  display: block;
  color: #1f1f1f;
  font-size: 22px;
  line-height: 1;
}

.tk-migration-counts span,
.tk-section-head span,
.tk-list-stack span {
  color: var(--tk-muted);
}

.tk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-section-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.tk-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid var(--tk-border);
  border-radius: 999px;
  background: #f6f6f6;
  color: var(--tk-text);
  font-size: 12px;
  font-weight: 700;
}

.tk-status-pill.partial {
  border-color: #c5deff;
  background: #eaf3ff;
}

.tk-status-pill.planned,
.tk-status-pill.pending {
  border-color: #eadca9;
  background: #fff6d8;
}

.tk-status-pill.ready {
  border-color: #a9e8bd;
  background: #e5f8eb;
}

.tk-migration-table td {
  max-width: 360px;
  vertical-align: top;
}

.tk-migration-table code {
  color: #303030;
  white-space: normal;
}

.tk-migration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tk-list-stack {
  display: grid;
}

.tk-list-stack article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-list-stack article:last-child {
  border-bottom: 0;
}

.tk-process-note,
.tk-form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  color: var(--tk-muted);
}

.tk-form-alert.danger {
  border-color: #f2b8b5;
  background: #fff0ef;
  color: #8a1f18;
}

.tk-form-alert.success {
  border-color: #a9e8bd;
  background: #e9f8ee;
  color: #14532d;
}

.tk-form-card {
  overflow: hidden;
}

.tk-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.tk-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.tk-field.wide {
  grid-column: 1 / -1;
}

.tk-field span {
  color: var(--tk-text);
  font-weight: 650;
}

.tk-field input,
.tk-field select,
.tk-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  font: inherit;
}

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

.tk-field input:focus,
.tk-field select:focus,
.tk-field textarea:focus {
  border-color: #8a8a8a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .08);
  outline: 0;
}

.tk-autocomplete,
.tk-rich-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.tk-native-select-hidden {
  display: none !important;
}

.tk-rich-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  font: inherit;
  text-align: left;
}

.tk-rich-select-button:hover {
  background: #fafafa;
}

.tk-rich-select.is-disabled .tk-rich-select-button,
.tk-rich-select-button:disabled {
  background: #f7f7f7;
  color: #8a8a8a;
  cursor: not-allowed;
}

.tk-rich-select-button:focus {
  border-color: #8a8a8a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .08);
  outline: 0;
}

.tk-rich-select-value {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-rich-select-button i {
  flex: 0 0 auto;
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-autocomplete-menu,
.tk-rich-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  width: min(420px, 100%);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.tk-autocomplete-menu[hidden] {
  display: none;
}

.tk-autocomplete-option,
.tk-rich-select-option {
  display: grid;
  width: 100%;
  gap: 2px;
  min-height: 50px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tk-text);
  text-align: left;
}

.tk-autocomplete-option:hover,
.tk-autocomplete-option.active,
.tk-rich-select-option:hover,
.tk-rich-select-option.active {
  background: #f1f1f1;
}

.tk-autocomplete-option strong,
.tk-rich-select-option strong {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.tk-autocomplete-option span,
.tk-rich-select-option span,
.tk-autocomplete-empty {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-autocomplete-empty {
  padding: 10px;
}

.tk-product-autocomplete-option {
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 58px;
  gap: 10px;
}

.tk-autocomplete-thumb {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: 7px;
  display: flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.tk-autocomplete-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.tk-autocomplete-thumb.missing {
  background: #f7f7f7;
  color: var(--tk-muted);
}

.tk-autocomplete-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tk-autocomplete-copy strong,
.tk-autocomplete-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-field input[readonly],
.tk-field textarea[readonly] {
  background: #f6f6f6;
  color: var(--tk-muted);
}

.tk-checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.tk-checkline input {
  width: 16px;
  min-height: 16px;
}

.tk-checkline em {
  color: var(--tk-muted);
  font-style: normal;
}

.tk-switchline input,
.tk-switch-field input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  border: 1px solid #b5b5b5;
  border-radius: 999px;
  background: #d8d8d8;
  appearance: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.tk-switchline input::after,
.tk-switch-field input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}

.tk-switchline input:checked,
.tk-switch-field input[type="checkbox"]:checked {
  border-color: #303030;
  background: #303030;
}

.tk-switchline input:checked::after,
.tk-switch-field input[type="checkbox"]:checked::after {
  transform: translateX(14px);
}

.tk-switchline input:focus-visible,
.tk-switch-field input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(48, 48, 48, .25);
  outline-offset: 2px;
}

.tk-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--tk-border);
  background: var(--tk-surface-soft);
}

.tk-table-toolbar .tk-inline-select {
  width: auto;
  min-width: 44px;
  color: var(--tk-text);
  font-weight: 650;
  gap: 6px;
}

.tk-table-toolbar button:hover {
  background: #efefef;
}

.tk-table {
  --bs-table-bg: #ffffff;
  --bs-table-color: var(--tk-text);
  font-size: 13px;
}

.tk-table th {
  height: 36px;
  border-bottom-color: var(--tk-border);
  background: #f7f7f7;
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 650;
}

.tk-table td {
  height: 32px;
  border-bottom-color: #e5e5e5;
  color: var(--tk-text);
}

.tk-table tbody tr:hover td {
  background: #f8f8f8;
}

.tk-table tbody tr[data-row-href] {
  cursor: pointer;
}

.tk-table tbody tr[data-row-href]:focus-visible {
  outline: 2px solid #005bd3;
  outline-offset: -2px;
}

.form-check-input {
  width: 16px;
  height: 16px;
  border-color: var(--tk-border-strong);
  border-radius: 4px;
}

.tk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 9px;
  border-radius: 8px;
  color: #26502f;
  font-weight: 650;
  line-height: 18px;
}

.tk-badge.suscrito {
  background: var(--tk-green);
}

.tk-badge.no-suscrito {
  background: #e3e3e3;
  color: #5f5f5f;
}

.tk-badge.success {
  background: var(--tk-green);
  color: #26502f;
}

.tk-badge.warning {
  background: #f5e8a3;
  color: #4f3f00;
}

.tk-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.tk-icon-action {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
}

.tk-icon-action:hover {
  background: #f1f1f1;
}

.tk-icon-action.danger {
  border-color: #f0b8b8;
  background: #fff6f6;
  color: #b42318;
}

.tk-icon-action.danger:hover {
  border-color: #e58d8d;
  background: #ffe7e7;
  color: #8a1f16;
}

.tk-store-layout,
.tk-channel-layout {
  display: grid;
  gap: 14px;
}

.tk-store-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 14px;
}

.tk-services-layout {
  display: block;
}

.tk-store-main,
.tk-store-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.tk-store-panel {
  overflow: hidden;
}

.tk-store-skill-uploader {
  display: grid;
  align-items: start;
  gap: 10px;
}

.tk-skill-file-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tk-skill-hint {
  margin: 0;
  color: var(--tk-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tk-skill-list {
  display: grid;
  gap: 8px;
}

.tk-service-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.tk-service-block {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
}

.tk-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tk-service-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tk-service-head strong {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 750;
}

.tk-service-head span {
  color: var(--tk-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tk-service-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.tk-service-status .tk-badge {
  color: #26502f;
  white-space: nowrap;
}

.tk-service-status .tk-badge.warning {
  color: #4f3f00;
}

.tk-service-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tk-service-universal {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfe3e8;
  border-radius: var(--tk-radius-sm);
  background: #f7f7f7;
}

.tk-service-universal > div:first-child {
  display: grid;
  gap: 2px;
}

.tk-service-universal strong {
  font-size: 13px;
  font-weight: 750;
}

.tk-service-universal span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-service-universal dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.tk-service-universal dl div {
  min-width: 0;
}

.tk-service-universal dl div.wide {
  grid-column: span 2;
}

.tk-service-universal dt {
  margin: 0 0 2px;
  color: var(--tk-muted);
  font-size: 11px;
  font-weight: 700;
}

.tk-service-universal dd {
  overflow: hidden;
  margin: 0;
  color: var(--tk-text);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-service-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 2px;
}

.tk-service-help {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #dfe3e8;
  border-radius: var(--tk-radius-sm);
  background: #f7f7f7;
  color: var(--tk-text);
  font-size: 12px;
  line-height: 1.4;
}

.tk-service-help strong {
  font-size: 12px;
  font-weight: 750;
}

.tk-service-help ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.tk-service-help p {
  margin: 0;
  color: var(--tk-muted);
}

.tk-service-help code {
  display: inline-block;
  max-width: 100%;
  padding: 1px 4px;
  border-radius: 4px;
  background: #ffffff;
  color: #303030;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.tk-service-test-result {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f7f7f7;
  color: var(--tk-text);
  font-size: 12px;
  line-height: 1.35;
}

.tk-service-test-result[hidden] {
  display: none;
}

.tk-service-test-result.success {
  border-color: #b7e4c7;
  background: #effaf3;
  color: #26502f;
}

.tk-service-test-result.danger {
  border-color: #f3c6c6;
  background: #fff4f4;
  color: #8a2f2f;
}

.tk-service-toggle {
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tk-skill-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
}

.tk-skill-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #f1f1f1;
  color: var(--tk-text);
}

.tk-skill-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tk-skill-copy strong,
.tk-skill-copy code,
.tk-skill-copy span,
.tk-skill-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-skill-copy strong {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 750;
}

.tk-skill-copy code {
  color: #005bd3;
  font-size: 12px;
}

.tk-skill-copy span,
.tk-skill-copy small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-store-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tk-border);
  background: #f7f7f7;
}

.tk-store-panel-head h2 {
  margin: 0;
  color: var(--tk-text);
  font-size: 14px;
  font-weight: 750;
}

.tk-store-panel-head span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 16px 0;
}

.tk-switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 3px 0;
  color: var(--tk-text);
  font-weight: 650;
}

.tk-side-card .tk-switch-field {
  display: flex;
}

.tk-switch-list {
  display: grid;
}

.tk-switch-field span {
  order: -1;
}

.tk-company-note,
.tk-company-oauth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f7f7f7;
  color: var(--tk-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tk-company-note strong {
  color: var(--tk-text);
}

.tk-company-oauth {
  align-items: flex-start;
  flex-direction: column;
}

.tk-company-oauth span {
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 650;
}

.tk-company-oauth code {
  width: 100%;
  overflow-wrap: anywhere;
  color: var(--tk-text);
  font-size: 12px;
}

.tk-company-stats {
  display: grid;
  gap: 0;
}

.tk-company-stats div,
.tk-company-record div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tk-border);
}

.tk-company-stats div:last-child,
.tk-company-record div:last-child {
  border-bottom: 0;
}

.tk-company-stats span,
.tk-company-record dt {
  margin: 0;
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 650;
}

.tk-company-stats strong,
.tk-company-record dd {
  margin: 0;
  color: var(--tk-text);
  font-size: 18px;
  font-weight: 800;
}

.tk-company-stats small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-store-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
  backdrop-filter: blur(12px);
}

.tk-channel-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr auto;
  gap: 16px;
  padding: 16px;
}

.tk-channel-summary div {
  display: grid;
  gap: 4px;
}

.tk-channel-summary strong {
  font-size: 14px;
}

.tk-channel-connect {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
}

.tk-channel-status {
  display: grid;
  grid-template-columns: 180px 220px minmax(0, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}

.tk-channel-status > div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
}

.tk-channel-status span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-channel-status strong,
.tk-channel-status code {
  overflow: hidden;
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-soft-btn.danger {
  color: #8a1f18;
}

.tk-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.tk-tool-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  text-align: left;
}

.tk-tool-card:hover {
  background: #f7f7f7;
}

.tk-tool-card small {
  color: #616161;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.tk-tool-card > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f6f6f6;
}

.tk-tool-card span {
  display: grid;
  gap: 4px;
}

.tk-tool-card strong {
  font-size: 13px;
}

.tk-tool-card em {
  color: var(--tk-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.tk-tool-library {
  display: grid;
  gap: 0;
  padding: 8px 16px 16px;
}

.tk-tool-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tk-border);
}

.tk-tool-row:last-child {
  border-bottom: 0;
}

.tk-tool-row > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f6f6f6;
}

.tk-tool-row div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tk-tool-row strong {
  color: var(--tk-text);
  font-size: 13px;
}

.tk-tool-row span {
  overflow: hidden;
  color: var(--tk-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-empty-inline {
  padding: 16px;
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-channel-run-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px;
}

.tk-channel-tool-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.tk-channel-tool-fields .tk-channel-run-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-channel-tool-fields .tk-field.wide {
  grid-column: 1 / -1;
}

.tk-switch-field.compact {
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #fff;
}

.tk-switch-field.compact.tk-service-toggle {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tk-switch-field.compact strong {
  font-size: 13px;
}

.tk-tool-result {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tk-tool-preview-note {
  padding: 10px 12px;
  border: 1px solid #b7d4f8;
  border-radius: var(--tk-radius-sm);
  background: #eef6ff;
  color: #1f4e79;
  font-size: 13px;
  font-weight: 650;
}

.tk-tool-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
}

.tk-tool-summary div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid var(--tk-border);
}

.tk-tool-summary div:last-child {
  border-right: 0;
}

.tk-tool-summary span {
  color: var(--tk-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.tk-tool-summary strong {
  color: var(--tk-text);
  font-size: 13px;
}

.tk-spin {
  animation: tk-spin .8s linear infinite;
}

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

.tk-table-total {
  white-space: nowrap;
  color: var(--tk-text);
  font-size: 12px;
}

.tk-mini-label {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 6px;
  background: #303030;
  color: #ffffff;
  font-size: 11px;
  font-weight: 650;
}

.tk-document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 14px;
}

.tk-fx-main-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.tk-fx-document-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.tk-fx-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.tk-fx-main-column .tk-fx-lines {
  margin-top: 0 !important;
}

.tk-fx-document-stack .tk-fx-lines {
  margin-top: 0 !important;
}

.tk-document-main,
.tk-document-side {
  overflow: hidden;
}

.tk-document-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-document-title > div {
  display: grid;
  gap: 3px;
}

.tk-document-title strong {
  font-size: 18px;
}

.tk-document-title small {
  color: var(--tk-muted);
}

.tk-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.tk-fact-grid div,
.tk-money-list div {
  display: grid;
  gap: 3px;
}

.tk-fact-grid span,
.tk-money-list span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-side-actions,
.tk-money-list {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.tk-money-list div {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.tk-cell-input {
  width: 100%;
  min-width: 80px;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  font: inherit;
}

.tk-cell-action {
  position: relative;
  display: block;
  min-width: 150px;
}

.tk-cell-action .tk-cell-input {
  padding-right: 38px;
}

.tk-cell-action .tk-icon-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--tk-muted);
}

.tk-cell-action .tk-icon-btn:hover {
  background: #f1f1f1;
  color: var(--tk-text);
}

.tk-description-action {
  min-width: 220px;
}

.tk-description-action .tk-cell-input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-fx-table tbody tr.fx-description-editor-row,
.tk-fx-table tbody tr.fx-description-editor-row:hover {
  background: #ffffff;
}

.tk-fx-table tbody tr.fx-description-open td {
  padding-bottom: 5px;
}

.tk-fx-table tbody tr.fx-description-editor-row td {
  padding: 0 12px 8px;
}

.tk-description-editor-panel {
  position: relative;
  width: min(620px, calc(100% - 174px));
  margin-left: 174px;
  padding: 6px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.tk-description-editor-panel .fx-description-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  width: 26px;
  height: 26px;
  min-height: 26px;
  border: 0;
  background: transparent;
  color: var(--tk-subtle);
}

.tk-description-editor-panel .fx-description-close:hover {
  background: #f1f1f1;
  color: var(--tk-text);
}

.tk-description-editor {
  width: 100%;
  min-height: 82px;
  padding: 8px 38px 8px 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  font: inherit;
  line-height: 1.4;
  resize: vertical;
}

.tk-description-editor:focus {
  border-color: #8a8a8a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .08);
  outline: 0;
}

.tk-screen-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.tk-screen-alert {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  box-shadow: var(--tk-shadow-card);
}

.tk-screen-alert > i,
.tk-toast-icon,
.tk-feedback-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #f1f1f1;
  color: var(--tk-text);
}

.tk-screen-alert div,
.tk-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tk-screen-alert strong,
.tk-toast-copy strong {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.tk-screen-alert span,
.tk-toast-copy span {
  color: var(--tk-muted);
  font-size: 13px;
  line-height: 1.35;
}

.tk-screen-alert .tk-icon-btn,
.tk-toast .tk-icon-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--tk-muted);
}

.tk-screen-alert .tk-icon-btn:hover,
.tk-toast .tk-icon-btn:hover {
  background: #f1f1f1;
  color: var(--tk-text);
}

.tk-toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1090;
  display: grid;
  width: min(380px, calc(100vw - 24px));
  gap: 8px;
  pointer-events: none;
}

.tk-toast {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.tk-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.tk-feedback-modal .modal-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-feedback-modal {
  overflow: hidden;
  background: #ffffff;
}

.tk-feedback-modal .modal-title {
  margin: 0;
  color: var(--tk-text);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0;
}

.tk-feedback-modal p {
  margin: 4px 0 0;
  color: var(--tk-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tk-feedback-modal .modal-footer {
  gap: 8px;
  padding: 12px 18px;
  border-top: 0;
}

.tk-products-header p {
  margin: 4px 0 0;
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-products-card {
  border-radius: var(--tk-radius);
  overflow: visible;
}

.tk-products-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--tk-border);
  border-radius: calc(var(--tk-radius) - 1px) calc(var(--tk-radius) - 1px) 0 0;
  background: #ffffff;
}

.tk-products-search {
  position: relative;
  min-width: 0;
  margin: 0;
}

.tk-products-search i {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--tk-muted);
  transform: translateY(-50%);
}

.tk-products-search input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px 7px 34px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  font: inherit;
}

.tk-products-filters,
.tk-products-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tk-border);
  background: #fafafa;
}

.tk-products-active-filters {
  padding-top: 0;
}

.tk-products-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--tk-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tk-text);
  font-size: 12px;
  font-weight: 650;
}

.tk-cfd-date-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tk-cfd-date-filters label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 650;
}

.tk-cfd-date-filters input {
  width: 126px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tk-text);
  font: inherit;
  outline: none;
}

.tk-filter-popover {
  position: relative;
}

.tk-filter-popover summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.tk-filter-popover summary::-webkit-details-marker {
  display: none;
}

.tk-filter-popover summary::after {
  color: var(--tk-muted);
  content: "\F282";
  font-family: bootstrap-icons;
  font-size: 11px;
}

.tk-filter-popover summary.active {
  border-color: #9c9c9c;
  background: #f6f6f6;
}

.tk-filter-popover summary strong {
  max-width: 140px;
  overflow: hidden;
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-filter-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: 260px;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.tk-filter-menu.compact {
  width: 180px;
}

.tk-date-filter-menu {
  grid-template-columns: 190px 320px;
  align-items: start;
  width: 510px;
  max-height: none;
  overflow: hidden;
  padding: 0;
}

.tk-date-filter-presets {
  display: grid;
  gap: 3px;
  height: 100%;
  padding: 10px 8px;
  border-right: 1px solid var(--tk-border);
  background: #fbfbfb;
}

.tk-date-filter-presets > strong {
  padding: 4px 8px 6px;
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 750;
}

.tk-filter-menu a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--tk-text);
  font-size: 13px;
}

.tk-date-filter-presets a span {
  display: grid;
  gap: 2px;
}

.tk-filter-menu a:hover,
.tk-filter-menu a.selected {
  background: #f1f1f1;
}

.tk-filter-menu a i {
  color: var(--tk-text);
  opacity: 0;
}

.tk-filter-menu a.selected i {
  opacity: 1;
}

.tk-date-filter-custom {
  display: grid;
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  padding: 12px;
}

.tk-date-filter-custom .btn {
  justify-content: center;
  min-height: 32px;
}

.tk-date-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--tk-border);
}

.tk-date-calendar {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tk-date-calendar-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tk-date-calendar-meta div {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #fbfbfb;
}

.tk-date-calendar-meta span {
  color: var(--tk-muted);
  font-size: 11px;
  font-weight: 750;
}

.tk-date-calendar-meta strong {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 750;
}

.tk-date-calendar-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f7f7f7;
}

.tk-date-calendar-head strong {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-transform: capitalize;
}

.tk-date-nav {
  width: 28px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tk-muted);
}

.tk-date-nav:hover {
  background: #ececec;
  color: var(--tk-text);
}

.tk-date-weekdays,
.tk-date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.tk-date-weekdays span {
  color: var(--tk-muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.tk-date-day,
.tk-date-day-empty {
  display: grid;
  min-width: 0;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
}

.tk-date-day {
  border: 0;
  background: transparent;
  color: var(--tk-text);
  font-weight: 650;
}

.tk-date-day:hover {
  background: #eeeeee;
}

.tk-date-day.in-range {
  background: #f1f1f1;
}

.tk-date-day.preview-end {
  background: #e8e8e8;
}

.tk-date-day.today {
  box-shadow: inset 0 0 0 1px #9c9c9c;
}

.tk-date-day.selected {
  background: #303030;
  color: #ffffff;
  box-shadow: none;
}

.tk-date-calendar small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-date-day-empty {
  color: transparent;
}

.tk-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #d8d8d8;
  background: #f7f7f7;
}

.tk-bulk-bar strong {
  margin-right: 4px;
  font-size: 13px;
}

.tk-products-table-wrap {
  background: #ffffff;
}

.tk-products-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--tk-border);
  border-radius: 0 0 calc(var(--tk-radius) - 1px) calc(var(--tk-radius) - 1px);
  background: #ffffff;
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-products-pagination nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.tk-page-btn,
.tk-page-number,
.tk-page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: var(--tk-radius-sm);
  font-size: 13px;
  font-weight: 650;
}

.tk-page-btn,
.tk-page-number {
  border: 1px solid var(--tk-border);
  background: #ffffff;
  color: var(--tk-text);
}

.tk-page-btn {
  gap: 5px;
  padding: 5px 10px;
}

.tk-page-number {
  min-width: 32px;
  padding: 5px 8px;
}

.tk-page-number.current {
  border-color: #303030;
  background: #303030;
  color: #ffffff;
}

.tk-page-btn:hover,
.tk-page-number:hover {
  background: #f6f6f7;
  color: var(--tk-text);
}

.tk-page-number.current:hover {
  background: #303030;
  color: #ffffff;
}

.tk-page-btn.disabled {
  border-color: #eeeeee;
  background: #f7f7f7;
  color: #a0a0a0;
  cursor: default;
}

.tk-page-gap {
  min-width: 18px;
  color: var(--tk-muted);
}

.tk-screen-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  font-size: 13px;
}

.tk-screen-alert.success {
  border-color: #b7e3c4;
  background: #f1fbf4;
}

.tk-screen-alert.danger {
  border-color: #f2b8b5;
  background: #fff4f4;
}

.tk-inventory-page .tk-muted-line {
  max-width: none;
}

.tk-inventory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tk-inventory-metrics article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: var(--tk-shadow-card);
}

.tk-inventory-metrics span {
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 650;
}

.tk-inventory-metrics strong {
  color: var(--tk-text);
  font-size: 18px;
}

.tk-section-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-section-tabs a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--tk-radius-sm) var(--tk-radius-sm) 0 0;
  color: var(--tk-muted);
  font-size: 13px;
  font-weight: 750;
}

.tk-section-tabs a.active {
  border-color: var(--tk-border);
  background: #ffffff;
  color: var(--tk-text);
}

.tk-inventory-form-card {
  margin-bottom: 12px;
  padding: 0;
  overflow: visible;
}

.tk-inventory-form-card header,
.tk-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-inventory-form-card header span,
.tk-card-title-row span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-inventory-form-grid,
.tk-inventory-stack {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.tk-inventory-form-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.tk-inventory-form-grid label,
.tk-inventory-stack label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--tk-text);
  font-size: 12px;
  font-weight: 700;
}

.tk-inventory-form-grid input,
.tk-inventory-form-grid select,
.tk-inventory-stack input,
.tk-inventory-stack select,
.tk-inventory-stack textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  font: inherit;
  font-weight: 500;
}

.tk-inventory-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 12px;
  align-items: start;
}

.tk-inventory-list {
  display: grid;
}

.tk-inventory-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-inventory-list article:last-child {
  border-bottom: 0;
}

.tk-inventory-list article div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tk-inventory-list article strong,
.tk-inventory-list article span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-inventory-list article span,
.tk-inventory-list aside small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-inventory-list aside {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.tk-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tk-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
}

.tk-switch-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
}

.tk-switch-line input {
  width: 38px;
  min-height: 20px;
  accent-color: #303030;
}

.tk-inventory-count-table {
  min-width: 1060px;
}

.tk-inventory-detail-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tk-border);
  background: #ffffff;
}

.tk-inventory-detail-toolbar label {
  position: relative;
  margin: 0;
}

.tk-inventory-detail-toolbar i {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--tk-muted);
  transform: translateY(-50%);
}

.tk-inventory-detail-toolbar input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px 7px 34px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
}

.tk-count-input {
  width: 108px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  text-align: right;
}

.tk-diff-value.positive {
  color: #14532d;
  font-weight: 750;
}

.tk-diff-value.negative {
  color: #b3261e;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .tk-inventory-form-grid,
  .tk-inventory-split,
  .tk-inventory-metrics {
    grid-template-columns: 1fr;
  }
}

.tk-products-table {
  min-width: 1180px;
}

.tk-products-table thead th {
  padding: 8px 10px;
  background: #f6f6f7;
  color: #5f6065;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.tk-products-table thead a {
  color: inherit;
}

.tk-products-table tbody td {
  padding: 10px;
  border-top: 1px solid #eeeeee;
  font-size: 13px;
  vertical-align: middle;
}

.tk-product-thumb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f6f6f7;
  color: var(--tk-muted);
}

.tk-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-product-thumb img + i {
  display: none;
}

.tk-customers-table {
  min-width: 1120px;
}

.tk-client-detail .tk-product-layout {
  align-items: start;
}

.tk-client-form-grid,
.tk-client-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tk-client-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tk-client-form-grid label,
.tk-client-address-grid label,
.tk-side-card label {
  display: grid;
  gap: 6px;
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 650;
}

.tk-client-form-grid input,
.tk-client-form-grid select,
.tk-client-address-grid input,
.tk-client-address-grid select,
.tk-side-card input,
.tk-side-card select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
  font: inherit;
}

.tk-client-address-grid .span-2 {
  grid-column: span 2;
}

.tk-client-address-list {
  display: grid;
  gap: 12px;
}

.tk-address-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #fbfbfb;
}

.tk-address-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tk-address-card-head span {
  overflow: hidden;
  color: var(--tk-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-address-card-head div {
  display: inline-flex;
  gap: 6px;
}

.tk-client-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tk-client-activity-grid h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 750;
}

.tk-client-stats {
  gap: 10px;
}

.tk-client-stats div,
.tk-side-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-client-stats strong,
.tk-side-meta strong {
  color: var(--tk-text);
}

.tk-side-select {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .tk-client-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-client-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tk-client-form-grid,
  .tk-client-address-grid {
    grid-template-columns: 1fr;
  }

  .tk-client-address-grid .span-2 {
    grid-column: auto;
  }

  .tk-address-card-head {
    grid-template-columns: 1fr;
  }
}

.tk-product-thumb.missing i {
  display: block;
}

.tk-product-cell {
  display: grid;
  min-width: 260px;
  gap: 2px;
}

.tk-product-cell strong {
  overflow: hidden;
  color: var(--tk-text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-product-cell span,
.tk-muted-line {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: var(--tk-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-stock-pill {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.tk-stock-pill.success {
  background: #e9f8ee;
  color: #14532d;
}

.tk-stock-pill.warning {
  background: #fff7cc;
  color: #6b4e00;
}

.tk-stock-pill.danger {
  background: #fff0ef;
  color: #8a1f18;
}

.tk-status-stack {
  display: inline-flex;
  gap: 4px;
}

.tone-success .tk-toast-icon,
.tone-success.tk-screen-alert > i,
.tone-success .tk-feedback-icon {
  background: #e9f8ee;
  color: #14532d;
}

.tone-warning .tk-toast-icon,
.tone-warning.tk-screen-alert > i,
.tone-warning .tk-feedback-icon {
  background: #fff7cc;
  color: #6b4e00;
}

.tone-danger .tk-toast-icon,
.tone-danger.tk-screen-alert > i,
.tone-danger .tk-feedback-icon {
  background: #fff0ef;
  color: #8a1f18;
}

@media (prefers-reduced-motion: reduce) {
  .tk-toast {
    transition: none;
  }
}

.tk-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

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

.tk-section-actions .tk-primary-btn {
  padding-inline: 12px;
}

.tk-fx-lines {
  overflow: hidden;
  border-color: var(--tk-border-strong);
}

.tk-fx-lines .tk-section-head > div:first-child {
  display: grid;
  gap: 2px;
}

.tk-fx-lines .tk-section-head span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-fx-table-shell {
  border-bottom: 1px solid var(--tk-border);
  background: #ffffff;
}

.tk-fx-table {
  table-layout: fixed;
  min-width: 1080px;
}

.tk-fx-table thead th {
  height: 36px;
  padding: 8px 12px;
  border-bottom: 1px solid #e4e4e4;
  background: #f6f6f7;
  color: #5f6065;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tk-fx-table tbody td {
  padding: 12px;
  border-bottom: 0;
  vertical-align: middle;
}

.tk-fx-table tbody tr {
  background: #ffffff;
}

.tk-fx-table tbody tr:hover {
  background: #fbfbfb;
}

.tk-fx-table .fx-row-total {
  padding-right: 14px;
  color: var(--tk-text);
  font-weight: 750;
  white-space: nowrap;
}

.tk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tk-border);
  background: #ffffff;
}

.tk-fx-store-summary {
  display: grid;
  place-items: center start;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #f7f7f7;
}

.tk-fx-receptor-card {
  align-self: start;
  overflow: visible;
}

.tk-fx-receptor-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.tk-fx-receptor-grid .tk-field:nth-child(1) {
  grid-column: span 5;
}

.tk-fx-receptor-grid .tk-field:nth-child(2) {
  grid-column: span 4;
}

.tk-fx-receptor-grid .tk-field:nth-child(3) {
  grid-column: span 3;
}

.tk-fx-receptor-grid .tk-field:nth-child(4),
.tk-fx-receptor-grid .tk-field:nth-child(5) {
  grid-column: span 6;
}

.tk-fx-comprobante-grid {
  grid-template-columns: minmax(220px, 1.15fr) repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
}

.tk-fx-comprobante-grid .tk-fx-store-summary,
.tk-fx-comprobante-grid .tk-field {
  min-width: 0;
}

.tk-fx-comprobante-grid .tk-fx-store-summary {
  min-height: 59px;
}

.tk-fx-top-row .tk-fx-receptor-grid,
.tk-fx-top-row .tk-fx-comprobante-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-fx-top-row .tk-fx-receptor-grid .tk-field,
.tk-fx-top-row .tk-fx-comprobante-grid .tk-field,
.tk-fx-top-row .tk-fx-comprobante-grid .tk-fx-store-summary {
  grid-column: auto;
}

.tk-fx-top-row .tk-fx-receptor-grid .tk-field:nth-child(5),
.tk-fx-top-row .tk-fx-comprobante-grid .tk-field:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .tk-fx-top-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tk-fx-receptor-grid .tk-field {
    grid-column: span 6;
  }

  .tk-fx-comprobante-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-fx-comprobante-grid .tk-fx-store-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .tk-fx-receptor-grid .tk-field {
    grid-column: 1 / -1;
  }

  .tk-fx-comprobante-grid {
    grid-template-columns: 1fr;
  }
}

.tk-fx-store-summary strong {
  color: var(--tk-text);
  font-size: 13px;
}

.tk-fx-store-summary span,
.tk-fx-store-summary small {
  color: var(--tk-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tk-store-selector-lock {
  display: grid;
  gap: 8px;
}

.tk-store-selector-lock select {
  display: none;
}

.tk-store-selector-lock .btn {
  justify-content: center;
  min-height: 34px;
}

.tk-store-required-modal .modal-header,
.tk-store-required-modal .modal-footer {
  border-color: var(--tk-border);
}

.tk-store-required-modal .modal-header {
  align-items: flex-start;
  padding: 18px 18px 12px;
}

.tk-store-required-modal .modal-title {
  margin: 0;
  color: var(--tk-text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.tk-store-required-modal p {
  margin: 5px 0 0;
  color: var(--tk-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tk-store-required-modal .modal-body {
  padding: 16px 18px;
}

.tk-store-required-modal select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  color: var(--tk-text);
}

.tk-fx-table th:first-child,
.tk-fx-table td:first-child {
  width: 42px;
}

.tk-fx-table th:nth-child(2),
.tk-fx-table td:nth-child(2) {
  width: 132px;
}

.tk-fx-table th:nth-child(3),
.tk-fx-table td:nth-child(3) {
  width: 236px;
}

.tk-fx-table th:nth-child(4),
.tk-fx-table td:nth-child(4) {
  width: 148px;
}

.tk-fx-table th:nth-child(5),
.tk-fx-table td:nth-child(5) {
  width: 126px;
}

.tk-fx-table th:nth-child(6),
.tk-fx-table td:nth-child(6),
.tk-fx-table th:nth-child(8),
.tk-fx-table td:nth-child(8),
.tk-fx-table th:nth-child(9),
.tk-fx-table td:nth-child(9) {
  width: 104px;
}

.tk-fx-table th:nth-child(7),
.tk-fx-table td:nth-child(7) {
  width: 168px;
}

.tk-price-action {
  min-width: 144px;
}

.tk-fx-table th:last-child,
.tk-fx-table td:last-child {
  width: 48px;
}

.tk-fx-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
  padding: 14px 16px;
  background: #fafafa;
}

.tk-fx-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
}

.tk-fx-totals div {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 9px 12px;
  border-right: 1px solid var(--tk-border);
  text-align: right;
}

.tk-fx-totals div:last-child {
  border-right: 0;
}

.tk-fx-totals span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-fx-totals strong {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 750;
}

.tk-fx-totals .grand {
  background: #303030;
  color: #ffffff;
}

.tk-fx-totals .grand strong {
  color: #ffffff;
  font-size: 18px;
}

.tk-fx-totals .grand span {
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 1200px) {
  .tk-page-wide .tk-document-layout {
    grid-template-columns: 1fr;
  }

  .tk-page-wide .tk-fx-bottom {
    grid-template-columns: 1fr;
  }

  .tk-page-wide .tk-fx-totals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tk-form-grid.one {
  grid-template-columns: 1fr;
}

.tk-badge.dado-de-baja,
.tk-badge.por-preparar {
  background: var(--tk-yellow);
  color: #594900;
}

.tk-pagination {
  height: 46px;
  padding: 0 12px;
  background: #f7f7f7;
  gap: 4px;
}

.tk-pagination button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: #e9e9e9;
}

.tk-pagination span {
  margin-left: 6px;
}

.tk-report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.tk-report-grid article {
  padding: 14px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: var(--tk-surface-soft);
}

.tk-report-grid small,
.tk-muted {
  color: var(--tk-muted);
}

.tk-report-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.tk-report-bar {
  height: 6px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #dedede;
}

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

.tk-section-heading {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 750;
}

.tk-empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  padding: 20px;
}

.tk-empty-state h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
}

.tk-empty-state p {
  max-width: 560px;
  margin: 0;
  color: var(--tk-muted);
}

.tk-more-info {
  margin-top: 26px;
  color: var(--tk-text);
  font-weight: 550;
}

.tk-detail-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.tk-detail-card div {
  min-height: 68px;
  padding: 14px 16px;
  border-right: 1px solid var(--tk-border);
  border-bottom: 1px solid var(--tk-border);
}

.tk-detail-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--tk-muted);
  font-weight: 650;
  text-transform: uppercase;
}

.tk-detail-card strong {
  font-weight: 650;
}

.tk-product-edit {
  width: 100%;
  margin: 0;
}

.tk-product-top {
  position: sticky;
  top: 56px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin: -16px 0 8px;
  padding: 10px 0;
  background: var(--tk-app-bg);
  gap: 12px;
}

.tk-product-titlebar,
.tk-product-actions,
.tk-editor-toolbar,
.tk-section-row,
.tk-chip-row,
.tk-switch-row,
.tk-inline-inputs {
  display: flex;
  align-items: center;
}

.tk-product-titlebar {
  min-width: 0;
  gap: 8px;
}

.tk-product-titlebar h1 {
  max-width: 590px;
  margin: 0;
  overflow: hidden;
  color: var(--tk-text);
  font-size: 18px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-back-link,
.tk-icon-soft,
.tk-mini-icon {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: #e7e7e7;
  color: var(--tk-text);
}

.tk-back-link,
.tk-icon-soft {
  width: 32px;
  height: 32px;
}

.tk-title-icon {
  color: var(--tk-muted);
  font-size: 16px;
}

.tk-product-actions {
  position: relative;
  flex-shrink: 0;
  gap: 8px;
}

.tk-stock-action {
  position: relative;
}

.tk-stock-popover {
  position: absolute;
  z-index: 85;
  top: calc(100% + 8px);
  right: 0;
  width: min(620px, calc(100vw - 300px));
  padding: 10px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.tk-stock-popover[hidden] {
  display: none;
}

.tk-stock-popover::before {
  position: absolute;
  top: -7px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--tk-border-strong);
  border-left: 1px solid var(--tk-border-strong);
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.tk-stock-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 10px;
  gap: 12px;
}

.tk-stock-popover-head strong {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 750;
}

.tk-stock-popover-head a {
  color: #005bd3;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.tk-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.tk-product-main,
.tk-product-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.tk-edit-card,
.tk-side-card {
  padding: 16px;
}

.tk-edit-card h2,
.tk-side-card h2 {
  margin: 0 0 12px;
  color: var(--tk-text);
  font-size: 14px;
  font-weight: 750;
}

.tk-side-card {
  display: grid;
  gap: 12px;
}

.tk-side-card p {
  margin: 0;
}

.tk-side-card a {
  color: #005bd3;
  font-weight: 550;
}

.tk-side-card label {
  display: grid;
  gap: 6px;
  color: var(--tk-text);
  font-weight: 550;
}

.tk-side-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tk-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--tk-text);
  font-weight: 650;
}

.tk-control {
  min-height: 34px;
  border-color: var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  color: var(--tk-text);
  font-size: 13px;
}

.tk-control:focus {
  border-color: #303030;
  box-shadow: 0 0 0 2px rgba(48, 48, 48, .15);
}

.tk-ai-control {
  position: relative;
  display: block;
}

.tk-ai-control .tk-control {
  padding-right: 38px;
}

.tk-ai-control-textarea .tk-control {
  min-height: 76px;
  padding-right: 42px;
}

.tk-ai-field-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f1f1f1;
  color: var(--tk-muted);
  transform: translateY(-50%);
}

.tk-ai-control-textarea .tk-ai-field-btn {
  top: 7px;
  transform: none;
}

.tk-ai-field-btn:hover,
.tk-ai-field-btn:focus {
  background: #e7e7e7;
  color: var(--tk-text);
}

.tk-ai-field-btn:disabled,
.tk-ai-field-btn.is-loading {
  opacity: .65;
  pointer-events: none;
}

.tk-ai-field-btn.is-loading i,
.tk-editor-toolbar button.is-loading i,
[data-ai-complete].is-loading i {
  display: inline-block;
  animation: tk-spin .8s linear infinite;
}

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

.tk-rich-editor {
  overflow: hidden;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #fff;
}

.tk-editor-toolbar {
  min-height: 42px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--tk-border);
  gap: 4px;
}

.tk-editor-toolbar span {
  width: 1px;
  height: 24px;
  margin: 0 6px;
  background: var(--tk-border);
}

.tk-editor-toolbar button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tk-text);
}

.tk-editor-toolbar button:hover {
  background: #efefef;
}

.tk-rich-editor textarea {
  min-height: 210px;
  border: 0;
  border-radius: 0;
  resize: vertical;
  font-size: 14px;
  line-height: 1.45;
}

.tk-field-grid,
.tk-price-grid {
  display: grid;
  gap: 12px;
}

.tk-field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-field-grid.three,
.tk-price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tk-field-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tk-field-grid label,
.tk-price-grid label {
  display: grid;
  gap: 6px;
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 650;
}

.tk-media-grid {
  display: grid;
  grid-template-columns: 190px repeat(4, 1fr);
  gap: 8px;
}

.tk-media-tile {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #fbfbfb;
  color: var(--tk-muted);
  text-align: center;
  gap: 6px;
}

.tk-media-tile i {
  color: #4d4d4d;
  font-size: 28px;
}

.tk-media-primary {
  grid-row: span 2;
  min-height: 196px;
  background:
    radial-gradient(circle at 46% 34%, #303030 0 18px, transparent 19px),
    linear-gradient(145deg, #f8f8f8, #eeeeee);
}

.tk-media-primary i {
  font-size: 62px;
}

.tk-media-primary strong {
  color: var(--tk-text);
  font-size: 12px;
}

.tk-media-primary img {
  width: 100%;
  max-width: 164px;
  max-height: 142px;
  object-fit: contain;
}

.tk-media-primary.missing {
  background: linear-gradient(145deg, #f8f8f8, #eeeeee);
}

.tk-media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.tk-media-add {
  border-style: dashed;
  cursor: pointer;
}

.tk-media-uploader {
  overflow: visible;
}

.tk-media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.tk-media-image-tile,
.tk-media-dropzone {
  position: relative;
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #fbfbfb;
  color: var(--tk-muted);
}

.tk-media-image-tile {
  overflow: hidden;
  padding: 8px;
}

.tk-media-image-tile.is-primary::after {
  position: absolute;
  inset: 6px;
  border: 2px solid #303030;
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.tk-media-image-tile img {
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.tk-media-dropzone {
  gap: 2px;
  padding: 12px;
  border-style: dashed;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tk-media-dropzone i {
  color: #4d4d4d;
  font-size: 26px;
}

.tk-media-dropzone span {
  color: var(--tk-text);
  font-size: 13px;
  font-weight: 700;
}

.tk-media-dropzone small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-media-dropzone:hover,
.tk-media-dropzone.is-dragging,
.tk-media-dropzone.is-uploading {
  border-color: #303030;
  background: #f3f3f3;
  box-shadow: 0 0 0 2px rgba(48, 48, 48, .08);
}

.tk-price-flags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tk-price-flags .tk-switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0;
  border-bottom: 0;
}

.tk-price-card.tk-collapsible-card {
  padding-bottom: 24px;
}

.tk-price-card .tk-price-grid {
  margin-bottom: 2px;
}

.tk-suggestion-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: var(--tk-radius-sm);
  background: #f5efff;
  color: #5a2ca0;
  gap: 4px;
}

.tk-suggestion-row a,
.tk-suggestion-row strong {
  color: #5a2ca0;
  font-weight: 650;
}

.tk-suggestion-row button {
  border: 0;
  background: transparent;
  color: #6f38c5;
}

.tk-section-row {
  justify-content: space-between;
  gap: 12px;
}

.tk-section-row h2 {
  margin-bottom: 0;
}

.tk-collapsible-card {
  padding-bottom: 0;
}

.tk-money-input {
  position: relative;
  width: 190px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.tk-money-input span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--tk-muted);
  transform: translateY(-50%);
}

.tk-money-input input {
  padding-left: 32px;
}

.tk-chip-row {
  flex-wrap: wrap;
  margin: 0 -16px;
  padding: 10px 16px;
  border-top: 1px solid var(--tk-border);
  gap: 8px;
}

.tk-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: var(--tk-radius-sm);
  background: #eeeeee;
  color: var(--tk-muted);
  gap: 6px;
}

.tk-chip-row strong {
  color: var(--tk-text);
}

.tk-stock-table {
  overflow: hidden;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
}

.tk-stock-head,
.tk-stock-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(160px, 1.5fr) repeat(3, minmax(82px, .7fr));
  align-items: center;
  gap: 10px;
}

.tk-stock-head {
  min-height: 36px;
  padding: 0 12px;
  background: #f7f7f7;
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 750;
}

.tk-stock-row {
  min-height: 44px;
  padding: 8px 12px;
  border-top: 1px solid var(--tk-border);
  color: var(--tk-text);
  font-size: 13px;
}

.tk-stock-row span {
  color: var(--tk-muted);
}

.tk-stock-table-compact .tk-stock-head,
.tk-stock-table-compact .tk-stock-row {
  grid-template-columns: minmax(110px, 1.1fr) minmax(130px, 1.2fr) repeat(3, minmax(62px, .6fr));
  gap: 8px;
}

.tk-stock-table-compact .tk-stock-head {
  min-height: 32px;
  padding: 0 10px;
}

.tk-stock-table-compact .tk-stock-row {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 12px;
}

.tk-empty-inline {
  padding: 18px 12px;
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-store-list {
  display: grid;
  gap: 8px;
}

.tk-store-list div {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tk-border);
}

.tk-store-list div:last-child {
  border-bottom: 0;
}

.tk-store-list span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-relation-picker {
  display: grid;
  max-height: 214px;
  overflow: auto;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
}

.tk-relation-option {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--tk-border);
  cursor: pointer;
  gap: 9px;
}

.tk-relation-option:last-child {
  border-bottom: 0;
}

.tk-relation-option:hover {
  background: #f7f7f7;
}

.tk-relation-option input {
  flex: 0 0 auto;
}

.tk-relation-option span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.tk-relation-option strong {
  overflow: hidden;
  color: var(--tk-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-relation-option small {
  overflow: hidden;
  color: var(--tk-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-chip-editor-box {
  display: flex;
  flex-wrap: wrap;
  min-height: 42px;
  padding: 5px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  gap: 5px;
}

.tk-chip-editor-box button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 7px 0 9px;
  border: 0;
  border-radius: 7px;
  background: #e7e7e7;
  color: var(--tk-text);
  font-size: 12px;
  font-weight: 650;
  gap: 5px;
}

.tk-chip-editor-box button:hover {
  background: #dedede;
}

.tk-chip-editor-box input {
  flex: 1 0 120px;
  min-width: 100px;
  min-height: 28px;
  border: 0;
  outline: 0;
  color: var(--tk-text);
  font-size: 13px;
}

.tk-combo-editor {
  position: relative;
  display: grid;
  gap: 6px;
}

.tk-combo-input {
  display: flex;
  flex-wrap: wrap;
  min-height: 40px;
  padding: 5px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .02);
  gap: 5px;
}

.tk-combo-input:focus-within {
  border-color: #303030;
  box-shadow: 0 0 0 2px rgba(48, 48, 48, .15);
}

.tk-combo-input button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0 7px 0 9px;
  border: 0;
  border-radius: 6px;
  background: #e7e7e7;
  color: var(--tk-text);
  font-size: 12px;
  font-weight: 650;
  gap: 5px;
}

.tk-combo-input button:hover {
  background: #dedede;
}

.tk-combo-input input {
  flex: 1 0 86px;
  min-width: 72px;
  min-height: 28px;
  border: 0;
  outline: 0;
  color: var(--tk-text);
  font-size: 13px;
}

.tk-combo-menu {
  display: none;
  overflow: auto;
  max-height: 190px;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.tk-combo-editor.open .tk-combo-menu {
  display: grid;
}

.tk-combo-menu button {
  display: grid;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--tk-border);
  background: #ffffff;
  color: var(--tk-text);
  text-align: left;
  gap: 2px;
}

.tk-combo-menu button:last-child {
  border-bottom: 0;
}

.tk-combo-menu button:hover {
  background: #f1f1f1;
}

.tk-combo-menu button[hidden] {
  display: none;
}

.tk-combo-menu strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-combo-menu span {
  overflow: hidden;
  color: var(--tk-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-switch-row {
  color: var(--tk-muted);
  font-size: 12px;
  gap: 8px;
}

.tk-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #d6d6d6;
  box-shadow: inset 0 0 0 1px #b9b9b9;
}

.tk-toggle::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  content: "";
}

.tk-toggle.on {
  background: #303030;
}

.tk-toggle.on::after {
  left: 18px;
}

.tk-shipping-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  margin-top: 14px;
  gap: 16px;
}

.tk-shipping-grid label {
  display: grid;
  gap: 6px;
  font-weight: 550;
}

.tk-inline-inputs {
  gap: 6px;
}

.tk-inline-inputs select {
  width: 62px;
}

.tk-add-row {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tk-text);
  font-weight: 550;
  gap: 8px;
}

.tk-token-box {
  display: flex;
  flex-wrap: wrap;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--tk-border-strong);
  border-radius: var(--tk-radius-sm);
  background: #fff;
  gap: 6px;
}

.tk-token-box span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: #d8ebf5;
  color: #1f4d63;
  font-weight: 550;
}

.tk-token-box span.gray {
  background: #e7e7e7;
  color: var(--tk-text);
}

.tk-mini-icon {
  width: 28px;
  height: 28px;
  background: transparent;
}

@media (max-width: 1180px) {
  .tk-store-edit-layout,
  .tk-product-layout {
    grid-template-columns: 1fr;
  }

  .tk-store-side,
  .tk-product-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tk-store-side {
    grid-template-columns: 1fr;
  }

  .tk-service-fields {
    grid-template-columns: 1fr;
  }

  .tk-skill-file-zone {
    grid-template-columns: 1fr;
  }

  .tk-product-top {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .tk-product-titlebar h1 {
    max-width: 100%;
    white-space: normal;
  }

  .tk-product-actions {
    flex-wrap: wrap;
  }

  .tk-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tk-media-primary {
    grid-column: 1 / -1;
  }

  .tk-product-side,
  .tk-shipping-grid {
    grid-template-columns: 1fr;
  }

  .tk-field-grid.two,
  .tk-field-grid.three,
  .tk-field-grid.four,
  .tk-price-grid,
  .tk-stock-head,
  .tk-stock-row {
    grid-template-columns: 1fr;
  }
}

.tk-modal {
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.tk-import-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid #e5e5e5;
  padding: 18px 20px 14px;
}

.tk-import-modal .modal-title {
  color: #202223;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.tk-import-modal .modal-header p {
  color: #616161;
  font-size: 13px;
  line-height: 1.35;
  margin: 5px 0 0;
}

.tk-import-modal .modal-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
}

.tk-import-modal .modal-footer {
  align-items: center;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 8px;
  padding: 14px 20px;
}

.tk-import-sample {
  color: #005bd3;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  margin-right: auto;
  text-decoration: none;
}

.tk-import-sample:hover {
  color: #004299;
  text-decoration: underline;
}

.tk-import-dropzone {
  align-items: center;
  background: #fafafa;
  border: 1.5px dashed #babfc3;
  border-radius: 8px;
  color: #303030;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 132px;
  padding: 24px;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}

.tk-import-dropzone:hover,
.tk-import-dropzone.dragging {
  background: #f6f6f7;
  border-color: #8c9196;
  box-shadow: inset 0 0 0 1px #8c9196;
}

.tk-import-dropzone i {
  font-size: 22px;
}

.tk-import-dropzone strong {
  font-size: 13px;
  font-weight: 700;
}

.tk-import-dropzone span {
  color: #616161;
  font-size: 12px;
}

.tk-import-file {
  align-items: center;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 54px 1fr auto;
  min-height: 72px;
  overflow: hidden;
}

.tk-import-file > div {
  align-items: center;
  align-self: stretch;
  background: #f6f6f7;
  border-right: 1px solid #e3e3e3;
  display: flex;
  justify-content: center;
}

.tk-import-file strong {
  font-size: 13px;
  font-weight: 700;
}

.tk-import-file .btn {
  margin-right: 12px;
}

.tk-import-options {
  display: grid;
  gap: 10px;
}

.tk-check-row {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  margin: 0;
}

.tk-check-row strong {
  color: #303030;
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.tk-check-row small {
  color: #616161;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.tk-import-note {
  align-items: center;
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  color: #616161;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.35;
  padding: 10px 12px;
}

.tk-import-note i {
  color: #303030;
  font-size: 14px;
}

.tk-import-preview {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
}

.tk-import-summary {
  background: #f6f6f7;
  border-bottom: 1px solid #e3e3e3;
  display: flex;
  flex-wrap: wrap;
}

.tk-import-summary span {
  border-right: 1px solid #e3e3e3;
  color: #616161;
  font-size: 12px;
  min-width: 128px;
  padding: 10px 12px;
}

.tk-import-summary strong {
  color: #202223;
  display: block;
  font-size: 15px;
}

.tk-import-preview .tk-table th,
.tk-import-preview .tk-table td {
  font-size: 12px;
  padding: 10px 12px;
}

.tk-import-preview tr.has-error {
  background: #fff4f4;
}

.tk-import-messages {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.tk-import-messages:empty {
  display: none;
}

.tk-import-messages div {
  align-items: flex-start;
  border-radius: 6px;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.35;
  padding: 8px 10px;
}

.tk-import-messages .tone-danger {
  background: #fff4f4;
  color: #8e1f0b;
}

.tk-import-messages .tone-warning {
  background: #fff8db;
  color: #5f370e;
}

.tk-primary-btn.is-loading i,
.tk-soft-btn.is-loading i {
  animation: tk-spin .8s linear infinite;
}

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

.tk-command-input {
  height: 44px;
  border-radius: var(--tk-radius-sm);
  font-size: 14px;
}

.tk-auth-body {
  min-height: 100vh;
  background: #f1f1f1;
  color: var(--tk-ink);
}

.tk-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tk-auth-panel {
  width: min(420px, 100%);
}

.tk-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tk-auth-brand div {
  display: grid;
  gap: 1px;
}

.tk-auth-brand strong {
  font-size: 18px;
  line-height: 1;
}

.tk-auth-brand span:not(.tk-bag) {
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-auth-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .10);
}

.tk-auth-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
}

.tk-auth-head {
  display: grid;
  gap: 2px;
}

.tk-auth-head p {
  color: var(--tk-muted);
  font-size: 13px;
  margin: 0;
}

.tk-auth-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.tk-auth-tenant {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: #f7f7f7;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
}

.tk-auth-tenant span,
.tk-auth-tenant small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-auth-tenant strong {
  font-size: 15px;
  font-weight: 650;
}

.tk-auth-alert {
  margin: 0;
  padding: 10px 12px;
}

.tk-google-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  color: #303030;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  height: 36px;
  justify-content: center;
}

.tk-google-btn:hover,
.tk-google-btn:focus {
  background: #f7f7f7;
  border-color: #8a8a8a;
  color: #202020;
}

.tk-auth-divider {
  align-items: center;
  color: var(--tk-muted);
  display: grid;
  font-size: 12px;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
}

.tk-auth-divider::before,
.tk-auth-divider::after {
  background: var(--tk-border);
  content: "";
  height: 1px;
}

.tk-auth-label-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.tk-auth-label-row a {
  color: #616161;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.tk-auth-note {
  align-items: start;
  background: #f7f7f7;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  color: #616161;
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: auto 1fr;
  padding: 10px 12px;
}

.tk-auth-note code {
  color: #303030;
  font-size: 11px;
}

@media (max-width: 980px) {
  .tk-topbar {
    grid-template-columns: 42px 1fr auto;
    padding-left: 10px;
  }

  .tk-brand strong,
  .tk-season,
  .tk-store-btn {
    display: none;
  }

  .tk-sidebar {
    width: 68px;
  }

  .tk-nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tk-nav-item span,
  .tk-section-title,
  .tk-settings span {
    display: none;
  }

  .tk-settings {
    justify-content: center;
  }

  .tk-main {
    padding-left: 92px;
  }

  .tk-metrics,
  .tk-report-grid,
  .tk-migration-hero,
  .tk-migration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tk-migration-hero {
    grid-template-columns: 1fr;
  }

  .tk-toggle-grid,
  .tk-tool-grid,
  .tk-channel-summary,
  .tk-channel-connect,
  .tk-channel-status,
  .tk-channel-run-grid,
  .tk-document-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-document-layout {
    grid-template-columns: 1fr;
  }

  .tk-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-list-stack article {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tk-guide-card {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 680px) {
  .tk-topbar {
    grid-template-columns: 34px 1fr 76px;
    gap: 8px;
  }

  .tk-top-actions .tk-icon-btn:first-child {
    display: none;
  }

  .tk-sidebar {
    display: none;
  }

  .tk-main {
    padding: 72px 12px 26px;
  }

  .tk-filter-row,
  .tk-action-grid,
  .tk-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tk-filter-btn,
  .tk-mini-card,
  .tk-live-pill {
    width: 100%;
  }

  .tk-metrics,
  .tk-report-grid,
  .tk-migration-counts,
  .tk-migration-grid,
  .tk-toggle-grid,
  .tk-tool-grid,
  .tk-channel-summary,
  .tk-channel-connect,
  .tk-channel-status,
  .tk-channel-run-grid,
  .tk-tool-summary,
  .tk-document-layout,
  .tk-fx-bottom,
  .tk-fact-grid {
    grid-template-columns: 1fr;
  }

  .tk-page-wide .tk-fx-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .tk-metrics article {
    border-right: 0;
    border-bottom: 1px solid #eeeeee;
  }

  .tk-guide-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tk-guide-card footer button {
    margin-left: 0;
  }
}

.tk-orders-page .tk-products-table td {
  white-space: nowrap;
}

.tk-orders-page .tk-product-cell {
  min-width: 220px;
}

.tk-order-detail {
  padding-bottom: 76px;
}

.tk-order-title {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.tk-order-title h1 {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.tk-order-title h1 i {
  color: #5c5f62;
  font-size: 18px;
}

.tk-order-title h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-order-document-stack {
  display: grid;
  gap: 14px;
}

.tk-order-top-row {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
}

.tk-order-client-grid {
  grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.15fr);
}

.tk-order-client-grid .tk-order-comments-field {
  grid-column: 1 / -1;
}

.tk-order-store-display[readonly] {
  background: #f7f7f7;
  color: #303030;
  cursor: default;
}

.tk-order-client-grid .tk-autocomplete-menu {
  width: min(520px, 100%);
}

.tk-order-product-combobox .tk-autocomplete-menu {
  width: min(720px, 100%);
}

.tk-order-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-order-summary-grid > div {
  background: #f7f7f7;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
}

.tk-order-summary-grid span {
  color: #6d7175;
  font-size: 12px;
  line-height: 1.2;
}

.tk-order-summary-grid strong {
  color: #202223;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.tk-order-price-type-field {
  grid-column: 1 / -1;
}

.tk-order-detail .tk-section-actions {
  display: flex;
  gap: 8px;
}

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

.tk-order-form-grid.one-column {
  grid-template-columns: 1fr;
}

.tk-order-form-grid .span-3 {
  grid-column: span 3;
}

.tk-order-form-grid label,
.tk-order-add-row label {
  color: #303030;
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 6px;
}

.tk-order-form-grid input,
.tk-order-form-grid select,
.tk-order-form-grid textarea,
.tk-order-add-row input,
.tk-order-add-row select,
.tk-order-lines-table input {
  background: #ffffff;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  color: #303030;
  font-size: 13px;
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

.tk-order-form-grid textarea {
  resize: vertical;
}

.tk-order-add-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(360px, 1fr) 120px 140px;
  padding: 0 16px 14px;
}

.tk-order-lines-card .tk-fx-table-shell {
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  margin: 0 16px;
}

.tk-order-lines-table th,
.tk-order-lines-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.tk-order-lines-table td:nth-child(3) {
  min-width: 280px;
}

.tk-order-lines-table input {
  min-width: 92px;
}

.tk-order-lines-table td:nth-child(3) input {
  min-width: 260px;
}

.tk-order-totals {
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
}

.tk-order-savebar {
  justify-content: flex-end;
}

.tk-order-totals div {
  background: #ffffff;
  border-right: 1px solid #e1e3e5;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-align: right;
}

.tk-order-totals div:last-child {
  border-right: 0;
}

.tk-order-totals span,
.tk-order-side-totals span {
  color: #6d7175;
  font-size: 12px;
}

.tk-order-totals strong,
.tk-order-side-totals strong {
  color: #202223;
  font-size: 15px;
}

.tk-order-totals .total {
  background: #303030;
}

.tk-order-totals .total span,
.tk-order-totals .total strong {
  color: #ffffff;
}

.tk-order-side-totals {
  display: grid;
  gap: 10px;
}

.tk-order-side-totals div {
  align-items: center;
  border-bottom: 1px solid #e1e3e5;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.tk-order-side-totals div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tk-order-side-totals .total strong {
  font-size: 18px;
}

.tk-order-status-card .tk-client-stats {
  grid-template-columns: 1fr;
}

@media (max-width: 980px) {
  .tk-order-top-row,
  .tk-order-client-grid {
    grid-template-columns: 1fr;
  }

  .tk-order-form-grid,
  .tk-order-add-row {
    grid-template-columns: 1fr;
  }

  .tk-order-form-grid .span-3 {
    grid-column: auto;
  }

  .tk-order-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tk-order-summary-grid {
    grid-template-columns: 1fr;
  }

  .tk-order-add-row,
  .tk-order-lines-card .tk-fx-table-shell {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.tk-ai-scenes-page {
  display: grid;
  gap: 16px;
}

.tk-ai-scenes-header p {
  color: var(--tk-muted);
  margin: 2px 0 0;
}

.tk-ai-scenes-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
}

.tk-ai-scenes-main,
.tk-ai-scenes-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.tk-ai-panel {
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: 12px;
  box-shadow: var(--tk-shadow-card);
  overflow: hidden;
}

.tk-ai-builder-card {
  overflow: visible;
}

.tk-ai-panel > .tk-section-head {
  background: #ffffff;
  border-radius: 11px 11px 0 0;
  padding-left: 16px;
  padding-right: 16px;
}

.tk-ai-store-grid {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  padding: 16px;
}

.tk-ai-store-field input[readonly] {
  background: #f7f7f7;
  border-color: #d4d4d4;
  color: #303030;
  font-weight: 650;
}

.tk-ai-social-switch {
  align-items: center;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
}

.tk-ai-social-switch span {
  display: grid;
  gap: 2px;
}

.tk-ai-social-switch small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-product-picker {
  display: grid;
  gap: 10px;
  padding: 0 16px 14px;
}

.tk-ai-product-combobox {
  position: relative;
}

.tk-ai-product-menu {
  max-height: 330px;
  overflow: auto;
}

.tk-ai-product-option {
  align-items: center;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 58px;
}

.tk-ai-selected-products {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  min-height: 34px;
  padding: 2px 0;
}

.tk-ai-product-card {
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.tk-ai-product-card-head {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.tk-ai-product-card-head span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tk-ai-product-card-head small,
.tk-ai-product-card-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-ai-product-card-head small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-product-card-head strong {
  color: #303030;
  font-size: 13px;
  font-weight: 650;
}

.tk-ai-product-warning {
  align-items: center;
  background: #fff8db;
  border: 1px solid #e4c850;
  border-radius: 8px;
  color: #5f4b00;
  display: flex;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
}

.tk-ai-product-warning.neutral {
  background: #f1f8ff;
  border-color: #b5d4f2;
  color: #1f4767;
}

.tk-ai-product-warning span {
  font-size: 12px;
  line-height: 1.3;
}

.tk-ai-product-single {
  align-items: center;
  display: flex;
  gap: 8px;
}

.tk-ai-product-single img {
  background: #f7f7f7;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.tk-ai-product-single span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-product-image-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tk-ai-product-image-choice {
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  height: 62px;
  overflow: hidden;
  padding: 3px;
  width: 62px;
}

.tk-ai-product-image-choice:hover {
  border-color: #8a8a8a;
}

.tk-ai-product-image-choice.selected {
  border-color: #303030;
  box-shadow: 0 0 0 1px #303030;
}

.tk-ai-product-image-choice img {
  border-radius: 6px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tk-ai-chip {
  align-items: center;
  background: #f1f1f1;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  color: #303030;
  display: inline-flex;
  gap: 7px;
  max-width: 360px;
  min-height: 30px;
  padding: 5px 8px;
}

.tk-ai-chip span,
.tk-ai-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-ai-chip span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-chip strong {
  font-size: 12px;
  font-weight: 650;
}

.tk-ai-control-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.8fr) minmax(110px, 0.5fr);
  padding: 0 16px 16px;
}

.tk-ai-social-options {
  border-top: 1px solid var(--tk-border);
  margin: 0 16px 16px;
  padding-top: 14px;
}

.tk-ai-social-options .tk-form-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tk-ai-prompt-field {
  display: grid;
  padding: 0 16px 16px;
}

.tk-ai-prompt-field textarea {
  min-height: 154px;
  resize: vertical;
}

.tk-ai-prompt-field.is-social-note textarea {
  min-height: 82px;
}

.tk-ai-run-status {
  border-top: 1px solid var(--tk-border);
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.tk-ai-run-status-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tk-ai-run-status-head > div {
  display: grid;
  gap: 2px;
}

.tk-ai-run-status-head strong {
  font-size: 13px;
  font-weight: 700;
}

.tk-ai-run-status-head span,
.tk-ai-run-status > small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-run-failures {
  display: grid;
  gap: 8px;
}

.tk-ai-run-failures article {
  background: #fff8db;
  border: 1px solid #e6d28a;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.tk-ai-run-failures strong {
  color: #303030;
  font-size: 13px;
}

.tk-ai-run-failures span,
.tk-ai-run-failures p {
  color: #5c4f12;
  font-size: 12px;
  margin: 0;
}

.tk-ai-actions {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--tk-border);
  border-radius: 0 0 11px 11px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  padding: 12px 16px;
}

.tk-ai-dropzone {
  align-items: center;
  aspect-ratio: 1 / 1;
  border: 1px dashed #babfc3;
  border-radius: 8px;
  color: #303030;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  min-height: 0;
  padding: 10px;
  position: relative;
  text-align: center;
}

.tk-ai-dropzone i {
  color: #6d7175;
  font-size: 22px;
}

.tk-ai-dropzone strong {
  font-size: 13px;
}

.tk-ai-dropzone span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-dropzone.is-dragging {
  background: #f1f8ff;
  border-color: #2c6ecb;
}

.tk-ai-reference-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  padding: 12px 16px 16px;
}

.tk-ai-reference {
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  position: relative;
}

.tk-ai-reference > .tk-icon-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
}

.tk-ai-reference-img {
  align-items: center;
  background: #f7f7f7;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.tk-ai-reference-img::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.tk-ai-reference-img img,
.tk-ai-reference-img i {
  position: absolute;
}

.tk-ai-reference-img img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tk-ai-reference strong,
.tk-ai-reference span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-ai-reference span {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-history-card {
  max-height: calc(100vh - 150px);
  overflow: hidden;
}

.tk-ai-gallery {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 16px;
}

.tk-ai-history-card > .tk-empty-inline {
  margin: 16px;
}

.tk-ai-history-item {
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.tk-ai-history-image {
  background: #f7f7f7;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}

.tk-ai-history-image img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.tk-ai-history-image .tk-icon-btn {
  background: #ffffff;
  position: absolute;
  right: 8px;
  top: 8px;
}

.tk-ai-history-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tk-ai-history-title {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.tk-ai-history-copy p {
  color: #303030;
  font-size: 12px;
  margin: 0;
  white-space: pre-line;
}

.tk-ai-history-copy span,
.tk-ai-history-copy small {
  color: var(--tk-muted);
  font-size: 12px;
}

.tk-ai-history-copy > .tk-soft-btn {
  justify-self: start;
}

.tk-ai-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tk-ai-remake-form {
  background: #f7f7f7;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px;
}

.tk-ai-remake-form[hidden] {
  display: none;
}

.tk-ai-remake-form input {
  background: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  color: #303030;
  font-size: 13px;
  height: 34px;
  min-width: 0;
  padding: 0 10px;
}

.tk-ai-remake-form input:focus {
  border-color: #303030;
  box-shadow: 0 0 0 2px rgba(48, 48, 48, .12);
  outline: 0;
}

@media (max-width: 1180px) {
  .tk-ai-scenes-layout {
    grid-template-columns: 1fr;
  }

  .tk-ai-social-options .tk-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-ai-history-card {
    max-height: none;
  }

  .tk-ai-gallery {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .tk-ai-store-grid,
  .tk-ai-control-grid,
  .tk-ai-social-options .tk-form-grid,
  .tk-ai-remake-form {
    grid-template-columns: 1fr;
  }
}
