@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap");

/* Shields the tool from the host page's element styles; must stay above every other tlcx rule. */
.tlcx,
.tlcx :where(*:not(svg, svg *)) {
  all: revert;
}

.tlcx [hidden] {
  display: none !important;
}

.tlcx {
  --tlcx-primary-50: #eff6ff;
  --tlcx-primary-100: #dbeafe;
  --tlcx-primary-200: #bfdbfe;
  --tlcx-primary-500: #2563eb;
  --tlcx-primary-600: #1d4ed8;
  --tlcx-primary-700: #1e40af;
  --tlcx-secondary-50: #f0fdfa;
  --tlcx-secondary-100: #ccfbf1;
  --tlcx-secondary-500: #14b8a6;
  --tlcx-secondary-600: #0d9488;
  --tlcx-accent-100: #e0f2fe;
  --tlcx-accent-400: #38bdf8;
  --tlcx-accent-600: #0284c7;
  --tlcx-success-100: #dcfce7;
  --tlcx-success-500: #22c55e;
  --tlcx-success-700: #15803d;
  --tlcx-warning-100: #fef3c7;
  --tlcx-warning-500: #f59e0b;
  --tlcx-warning-700: #b45309;
  --tlcx-error-100: #fee2e2;
  --tlcx-error-500: #ef4444;
  --tlcx-error-700: #b91c1c;
  --tlcx-n-0: #ffffff;
  --tlcx-n-50: #f8fafc;
  --tlcx-n-100: #f1f5f9;
  --tlcx-n-200: #e2e8f0;
  --tlcx-n-300: #cbd5e1;
  --tlcx-n-400: #94a3b8;
  --tlcx-n-500: #64748b;
  --tlcx-n-600: #475569;
  --tlcx-n-700: #334155;
  --tlcx-n-800: #1e293b;
  --tlcx-n-900: #0f172a;
  --tlcx-radius-sm: 8px;
  --tlcx-radius: 12px;
  --tlcx-radius-lg: 16px;
  --tlcx-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
  --tlcx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tlcx-n-800);
  font-style: normal;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-align: left;
  text-shadow: none;
  display: block;
  max-width: 1160px;
  margin: 50px auto;
  padding: 64px 24px;
  -webkit-font-smoothing: antialiased;
}

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

.tlcx-intro {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
  animation: tlcx-rise 0.6s var(--tlcx-ease) both;
}

.tlcx-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--tlcx-n-900);
}

.tlcx-lead {
  margin: 0;
  font-size: 18px;
  color: var(--tlcx-n-600);
}

.tlcx-byline {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--tlcx-n-500);
}

.tlcx-byline a {
  color: var(--tlcx-primary-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tlcx-primary-200);
  text-underline-offset: 3px;
}

.tlcx-byline a:hover {
  color: var(--tlcx-primary-700);
}

.tlcx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 24px;
  align-items: start;
}

.tlcx-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tlcx-card {
  background: var(--tlcx-n-0);
  border: 1px solid var(--tlcx-n-200);
  border-radius: var(--tlcx-radius-lg);
  padding: 24px;
  box-shadow: var(--tlcx-shadow);
  animation: tlcx-rise 0.6s var(--tlcx-ease) both;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tlcx-card:nth-child(2) { animation-delay: 0.05s; }
.tlcx-card:nth-child(3) { animation-delay: 0.1s; }
.tlcx-card:nth-child(4) { animation-delay: 0.15s; }

.tlcx-card:focus-within {
  border-color: var(--tlcx-primary-200);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(37, 99, 235, 0.08);
}

.tlcx-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tlcx-card-titles {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tlcx-step {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tlcx-primary-50);
  color: var(--tlcx-primary-600);
  font-size: 14px;
  font-weight: 800;
}

.tlcx-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--tlcx-n-900);
}

.tlcx-card-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--tlcx-n-500);
}

.tlcx-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tlcx-segment {
  display: inline-flex;
  padding: 4px;
  background: var(--tlcx-n-100);
  border-radius: 10px;
}

.tlcx-segment-btn {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--tlcx-n-600);
  padding: 8px 16px;
  border-radius: var(--tlcx-radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tlcx-segment-btn:hover {
  color: var(--tlcx-n-900);
}

.tlcx-segment-btn.tlcx-is-active {
  background: var(--tlcx-n-0);
  color: var(--tlcx-primary-600);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.tlcx-areas {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tlcx-area {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--tlcx-n-200);
  animation: tlcx-rise 0.35s var(--tlcx-ease) both;
}

.tlcx-area.tlcx-is-leaving {
  animation: tlcx-fade-out 0.2s ease forwards;
}

.tlcx-area-meta {
  grid-column: 1 / -1;
  margin-top: -8px;
  font-size: 13px;
  color: var(--tlcx-n-500);
}

.tlcx-area-meta strong {
  font-weight: 600;
  color: var(--tlcx-n-700);
}

.tlcx-icon-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  margin: 29px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--tlcx-radius-sm);
  background: transparent;
  color: var(--tlcx-n-400);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tlcx-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tlcx-icon-btn:hover:not(:disabled) {
  background: var(--tlcx-error-100);
  color: var(--tlcx-error-700);
}

.tlcx-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tlcx-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}

.tlcx-add-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px 8px 12px;
  border: 1px dashed var(--tlcx-primary-200);
  border-radius: var(--tlcx-radius-sm);
  background: var(--tlcx-primary-50);
  color: var(--tlcx-primary-600);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--tlcx-ease);
}

.tlcx-add-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.tlcx-add-btn:hover {
  background: var(--tlcx-primary-100);
  border-color: var(--tlcx-primary-500);
  transform: translateY(-1px);
}

.tlcx-link-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--tlcx-radius-sm);
  background: transparent;
  color: var(--tlcx-n-600);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tlcx-link-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.tlcx-link-btn:hover {
  background: var(--tlcx-n-100);
  color: var(--tlcx-n-900);
}

.tlcx-cut-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--tlcx-radius);
  background: var(--tlcx-n-50);
  border: 1px solid var(--tlcx-n-200);
  animation: tlcx-rise 0.3s var(--tlcx-ease) both;
}

.tlcx-sub-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--tlcx-n-900);
}

.tlcx-areas-cut:not(:empty) {
  margin-top: 16px;
}

.tlcx-area-cut {
  border-bottom-color: var(--tlcx-n-300);
}

.tlcx-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}

.tlcx-quick-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tlcx-n-500);
}

.tlcx-error {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tlcx-error-700);
  animation: tlcx-rise 0.2s ease both;
}

.tlcx-error-block {
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: var(--tlcx-radius-sm);
  background: var(--tlcx-error-100);
}

.tlcx-notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--tlcx-radius-sm);
  background: var(--tlcx-warning-100);
  color: var(--tlcx-warning-700);
  font-size: 14px;
  font-weight: 600;
  animation: tlcx-rise 0.25s ease both;
}

.tlcx-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tlcx-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tlcx-n-700);
}

.tlcx-hint {
  display: block;
  margin-top: -4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--tlcx-n-500);
}

.tlcx-input-wrap {
  position: relative;
  display: block;
}

.tlcx-input {
  appearance: none;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--tlcx-n-300);
  border-radius: 10px;
  background: var(--tlcx-n-0);
  color: var(--tlcx-n-900);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
}

.tlcx-input::-webkit-outer-spin-button,
.tlcx-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tlcx-input-wrap .tlcx-input {
  padding-right: 56px;
}

.tlcx-input::placeholder {
  color: var(--tlcx-n-400);
  font-weight: 400;
}

.tlcx-input:hover {
  border-color: var(--tlcx-n-400);
}

.tlcx-input:focus {
  outline: none;
  border-color: var(--tlcx-primary-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.tlcx-input.tlcx-is-invalid {
  border-color: var(--tlcx-error-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.tlcx-select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.tlcx-suffix {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--tlcx-n-400);
  pointer-events: none;
}

.tlcx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tlcx-chip {
  appearance: none;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--tlcx-n-200);
  border-radius: 999px;
  background: var(--tlcx-n-0);
  color: var(--tlcx-n-700);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--tlcx-ease);
}

.tlcx-chip small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--tlcx-n-500);
}

.tlcx-chip:hover {
  border-color: var(--tlcx-primary-200);
  background: var(--tlcx-primary-50);
  transform: translateY(-1px);
}

.tlcx-chip.tlcx-is-active {
  border-color: var(--tlcx-primary-500);
  background: var(--tlcx-primary-500);
  color: var(--tlcx-n-0);
}

.tlcx-chip.tlcx-is-active small {
  color: var(--tlcx-primary-100);
}

.tlcx-chip-sm {
  padding: 4px 12px;
  font-size: 13px;
}

.tlcx-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  animation: tlcx-rise 0.3s var(--tlcx-ease) both;
}

.tlcx-custom[hidden] {
  display: none;
}

.tlcx-patterns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tlcx-pattern {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 8px;
  border: 1px solid var(--tlcx-n-200);
  border-radius: var(--tlcx-radius);
  background: var(--tlcx-n-0);
  font: inherit;
  cursor: pointer;
  transition: all 0.2s var(--tlcx-ease);
}

.tlcx-pattern:hover {
  border-color: var(--tlcx-primary-200);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.tlcx-pattern.tlcx-is-active {
  border-color: var(--tlcx-primary-500);
  background: var(--tlcx-primary-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tlcx-pattern-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background-color: var(--tlcx-n-300);
  border: 1px solid var(--tlcx-n-200);
  transition: transform 0.3s var(--tlcx-ease);
}

.tlcx-pattern:hover .tlcx-pattern-icon {
  transform: scale(1.05);
}

.tlcx-icon-straight {
  background-image:
    linear-gradient(var(--tlcx-n-0) 2px, transparent 2px),
    linear-gradient(90deg, var(--tlcx-n-0) 2px, transparent 2px);
  background-size: 14px 14px;
  background-color: var(--tlcx-primary-200);
}

.tlcx-icon-brick {
  background-image:
    linear-gradient(var(--tlcx-n-0) 2px, transparent 2px),
    linear-gradient(90deg, var(--tlcx-n-0) 2px, transparent 2px),
    linear-gradient(90deg, var(--tlcx-n-0) 2px, transparent 2px);
  background-size: 100% 14px, 28px 28px, 28px 28px;
  background-position: 0 0, 0 0, 14px 14px;
  background-color: var(--tlcx-secondary-100);
}

.tlcx-icon-diagonal {
  background-image:
    repeating-linear-gradient(45deg, var(--tlcx-n-0) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, var(--tlcx-n-0) 0 2px, transparent 2px 12px);
  background-color: var(--tlcx-accent-100);
}

.tlcx-icon-herringbone {
  background-image:
    linear-gradient(135deg, var(--tlcx-n-0) 25%, transparent 25%),
    linear-gradient(225deg, var(--tlcx-n-0) 25%, transparent 25%),
    linear-gradient(315deg, var(--tlcx-n-0) 25%, transparent 25%),
    linear-gradient(45deg, var(--tlcx-n-0) 25%, transparent 25%);
  background-size: 14px 14px;
  background-position: -7px 0, -7px 0, 0 0, 0 0;
  background-color: var(--tlcx-warning-100);
}

.tlcx-pattern-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--tlcx-n-800);
}

.tlcx-pattern-waste {
  font-size: 12px;
  color: var(--tlcx-n-500);
}

.tlcx-range-field {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tlcx-n-100);
}

.tlcx-range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tlcx-range-value {
  min-width: 56px;
  padding: 4px 8px;
  border-radius: var(--tlcx-radius-sm);
  background: var(--tlcx-primary-50);
  color: var(--tlcx-primary-700);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.tlcx-range {
  --tlcx-fill: 33%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tlcx-primary-500) var(--tlcx-fill), var(--tlcx-n-200) var(--tlcx-fill));
  cursor: pointer;
}

.tlcx-range:focus {
  outline: none;
}

.tlcx-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tlcx-n-0);
  border: 2px solid var(--tlcx-primary-500);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tlcx-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tlcx-n-0);
  border: 2px solid var(--tlcx-primary-500);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.tlcx-range:hover::-webkit-slider-thumb,
.tlcx-range:focus-visible::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

.tlcx-range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--tlcx-n-400);
}

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

.tlcx-divided {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tlcx-n-100);
}

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

.tlcx-summary {
  position: sticky;
  top: 24px;
  animation: tlcx-rise 0.6s var(--tlcx-ease) 0.1s both;
}

.tlcx-summary-inner {
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(100% 60% at 0% 100%, rgba(37, 99, 235, 0.22), transparent 60%),
    var(--tlcx-n-900);
  color: var(--tlcx-n-0);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
}

.tlcx-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--tlcx-radius);
  background: var(--tlcx-n-400);
  aspect-ratio: 240 / 140;
}

.tlcx-preview-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tlcx-preview-svg g {
  animation: tlcx-fade-in 0.4s ease both;
}

.tlcx-preview-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--tlcx-n-0);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.tlcx-summary-title {
  margin: 24px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tlcx-n-400);
}

.tlcx-hero-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.tlcx-hero-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--tlcx-n-0);
}

.tlcx-hero-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--tlcx-secondary-100);
}

.tlcx-hero-note {
  margin: 8px 0 24px;
  font-size: 14px;
  color: var(--tlcx-n-300);
}

.tlcx-hero-note.tlcx-is-error {
  color: #fca5a5;
}

.tlcx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 24px;
}

.tlcx-stat {
  padding: 16px;
  border-radius: var(--tlcx-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.tlcx-stat:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tlcx-stat dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tlcx-n-400);
}

.tlcx-stat dd {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--tlcx-n-0);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.tlcx-stat dd span {
  display: block;
}

.tlcx-stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tlcx-n-400);
}

.tlcx-is-updated {
  animation: tlcx-pulse 0.45s ease;
}

.tlcx-actions {
  display: grid;
  gap: 8px;
}

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

.tlcx-actions-row .tlcx-btn {
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
}

.tlcx-btn {
  appearance: none;
  height: 48px;
  margin: 0;
  padding: 0 24px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--tlcx-ease);
}

.tlcx-btn-primary {
  border: 0;
  background: var(--tlcx-secondary-500);
  color: var(--tlcx-n-900);
}

.tlcx-btn-primary:hover {
  background: #2dd4bf;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.tlcx-btn-primary.tlcx-is-done {
  background: var(--tlcx-success-500);
}

.tlcx-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--tlcx-n-0);
}

.tlcx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.tlcx-btn-ghost.tlcx-is-done {
  border-color: var(--tlcx-success-500);
  color: var(--tlcx-success-100);
}

.tlcx-mbar {
  display: none;
}

.tlcx-btn:focus-visible,
.tlcx-chip:focus-visible,
.tlcx-pattern:focus-visible,
.tlcx-segment-btn:focus-visible,
.tlcx-add-btn:focus-visible,
.tlcx-icon-btn:focus-visible {
  outline: 2px solid var(--tlcx-accent-400);
  outline-offset: 2px;
}

.tlcx-disclaimer {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--tlcx-n-400);
}

.tlcx-desc {
  max-width: 760px;
  margin: 80px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--tlcx-n-200);
  color: var(--tlcx-n-700);
  font-size: 17px;
  line-height: 1.5;
}

.tlcx-desc h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tlcx-n-900);
}

.tlcx-desc h2:not(:first-child) {
  margin-top: 64px;
}

.tlcx-desc h2 + h3 {
  margin-top: 24px;
}

.tlcx-desc h3 {
  margin: 40px 0 16px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tlcx-n-900);
}

.tlcx-desc p {
  margin: 0 0 16px;
}

.tlcx-desc strong {
  font-weight: 600;
  color: var(--tlcx-n-900);
}

.tlcx-desc a {
  color: var(--tlcx-primary-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tlcx-primary-200);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.tlcx-desc a:hover {
  color: var(--tlcx-primary-700);
  text-decoration-color: currentColor;
}

.tlcx-desc a:focus-visible {
  outline: 2px solid var(--tlcx-accent-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.tlcx-desc code {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--tlcx-n-100);
  color: var(--tlcx-n-900);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  white-space: normal;
}

.tlcx-desc ul,
.tlcx-desc ol {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tlcx-desc li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 40px;
}

.tlcx-desc ul li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--tlcx-secondary-500);
  transform: rotate(45deg);
}

.tlcx-desc ol {
  counter-reset: tlcx-desc-step;
}

.tlcx-desc ol li {
  counter-increment: tlcx-desc-step;
}

.tlcx-desc ol li::before {
  content: counter(tlcx-desc-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--tlcx-primary-50);
  color: var(--tlcx-primary-600);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.tlcx-desc table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--tlcx-n-200);
  border-radius: var(--tlcx-radius);
  overflow: hidden;
  font-size: 15px;
}

.tlcx-desc th,
.tlcx-desc td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tlcx-n-200);
}

.tlcx-desc thead th {
  background: var(--tlcx-n-50);
  color: var(--tlcx-n-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tlcx-desc tbody tr:last-child td {
  border-bottom: 0;
}

.tlcx-desc tbody tr {
  transition: background 0.2s ease;
}

.tlcx-desc tbody tr:hover {
  background: var(--tlcx-primary-50);
}

.tlcx-desc td:first-child {
  font-weight: 600;
  color: var(--tlcx-n-900);
}

.tlcx-desc td {
  font-variant-numeric: tabular-nums;
}

@keyframes tlcx-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tlcx-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tlcx-fade-out {
  to { opacity: 0; transform: translateX(-8px); }
}

@keyframes tlcx-pulse {
  0% { color: var(--tlcx-secondary-500); }
  100% { color: var(--tlcx-n-0); }
}

@media (max-width: 960px) {
  .tlcx-layout {
    grid-template-columns: 1fr;
  }

  .tlcx-summary {
    position: static;
  }

  .tlcx-mbar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 12px 12px 16px;
    border-radius: var(--tlcx-radius-lg);
    background: var(--tlcx-n-900);
    color: var(--tlcx-n-0);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.35s var(--tlcx-ease), visibility 0s linear 0.35s;
  }

  .tlcx-mbar.tlcx-is-visible {
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.35s var(--tlcx-ease);
  }

  .tlcx-mbar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .tlcx-mbar-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--tlcx-n-0);
  }

  .tlcx-mbar-main strong {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .tlcx-mbar-meta {
    font-size: 13px;
    color: var(--tlcx-n-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tlcx-mbar-btn {
    flex: none;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .tlcx {
    padding: 40px 16px;
  }

  .tlcx-card {
    padding: 16px;
  }

  .tlcx-area {
    grid-template-columns: 1fr 1fr 40px;
  }

  .tlcx-area .tlcx-area-name {
    grid-column: 1 / -1;
  }

  .tlcx-patterns {
    grid-template-columns: 1fr 1fr;
  }

  .tlcx-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .tlcx-grid-3 .tlcx-field:last-child {
    grid-column: 1 / -1;
  }

  .tlcx-cut-panel {
    padding: 16px;
  }

  .tlcx-card-head > .tlcx-segment,
  .tlcx-toggles,
  .tlcx-toggles .tlcx-segment {
    flex: 1 1 100%;
  }

  .tlcx-segment-btn {
    flex: 1;
  }

  .tlcx-hero-number {
    font-size: 48px;
  }

  .tlcx-desc {
    margin-top: 56px;
    padding-top: 40px;
    font-size: 16px;
  }

  .tlcx-desc th,
  .tlcx-desc td {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlcx *,
  .tlcx *::before,
  .tlcx *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
