
/* ============================================================
   MarketplaceProfile Tools - Shared Stylesheet
   Tool-specific UI only. Shared topnav, page offset, and infocard
   spacing are controlled globally by /shared/style.css.
   ============================================================ */

/* GLOBAL FONT LOCK */
body.tools-page,
body.tools-page input,
body.tools-page select,
body.tools-page textarea,
body.tools-page button {
  font-family: 'DM Sans', Arial, system-ui, sans-serif !important;
}

:root {
  --tc-blue:        #2454c6;
  --tc-blue-dim:    #173b89;
  --tc-blue-alpha:  rgba(36,84,198,.12);
  --tc-blue-light:  #e7eefc;
  --tc-surface:     #ffffff;
  --tc-surface-2:   #f7f9fc;
  --tc-surface-3:   #eef3f8;
  --tc-bg:          ##fafafa;
  --tc-border:      #d4dde8;
  --tc-border-2:    #e4ebf3;
  --tc-text:        #172033;
  --tc-muted:       #52607a;
  --tc-subtle:      #7c879b;
  --tc-shadow-sm:   0 14px 32px rgba(15,23,42,.07);
  --tc-shadow-md:   0 28px 56px rgba(15,23,42,.10);
  --tc-shadow-lg:   0 34px 70px rgba(15,23,42,.12);
  --tc-green:       #15803d;
  --tc-green-bg:    #f0fdf4;
  --tc-green-bd:    #bbf7d0;
  --tc-amber:       #b45309;
  --tc-amber-bg:    #fffbeb;
  --tc-amber-bd:    #fde68a;
  --tc-red:         #c0132a;
  --tc-red-bg:      #fff1f2;
  --tc-red-bd:      #fecdd3;
  --tc-radius:      6px;
  --tc-radius-lg:   10px;
  --tc-heading-font:'DM Sans', Arial, system-ui, sans-serif;
}

body.tools-page {
  background: #fafafa;
}

.tools-page-shell,
.tools-index-main,
.tc-wrap,
.tc-wrap * {
  box-sizing: border-box;
}

.tools-index-main,
.tools-index-main *,
.tools-nav-row,
.tools-nav-row *,
.tc-wrap,
.tc-wrap * {
  font-family: 'DM Sans', Arial, system-ui, sans-serif !important;
}

/* ============================================================
   TOOLS NAV  Clean centered pill tabs
   ============================================================ */

.tools-nav-row {
  width: 100%;
  background: transparent;
  padding: 8px 4rem 22px;
  box-sizing: border-box;
}

.tools-nav-links {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 6px 2px; /* room for box-shadow on all sides */
  overflow: visible !important;
}

.tools-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none !important;
  color: #52607a !important;
  background: #ffffff !important;
  border: 1.5px solid #dae0ec !important;
  font-family: 'DM Sans', Arial, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .12s !important;
}

.tools-nav-link:hover {
  background: #eef3fd !important;
  color: #285AD3 !important;
  border-color: #b8caf5 !important;
  box-shadow: 0 4px 14px rgba(40,90,211,.14) !important;
  transform: translateY(-2px) !important;
}

.tools-nav-link.is-active {
  background: #285AD3 !important;
  color: #ffffff !important;
  border-color: #285AD3 !important;
  box-shadow: 0 4px 18px rgba(40,90,211,.32) !important;
  font-weight: 700 !important;
  transform: none !important;
}

.tools-nav-label-mobile { display: none; }
.tools-nav-label-desktop { display: inline; }

.tools-index-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 20px;
}

.tools-index-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 0;
}

/* ============================================================
   TOOLS CARDS - Enterprise SaaS tool cards
   ============================================================ */

.tools-card {
  background: linear-gradient(180deg, rgba(255,255,255,.995) 0%, rgba(250,252,255,.985) 100%);
  border: 1px solid rgba(199,211,229,.92);
  border-radius: 18px;
  padding: 22px 26px 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px;
  box-shadow: 0 18px 38px rgba(15,23,42,.07);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.tc-tools-index .tools-card {
  opacity: 0;
  translate: 0 14px;
  animation: mpToolsCardReveal .42s cubic-bezier(.22, .61, .36, 1) both;
}

.tc-tools-index .tools-card:nth-child(1) { animation-delay: .04s; }
.tc-tools-index .tools-card:nth-child(2) { animation-delay: .08s; }
.tc-tools-index .tools-card:nth-child(3) { animation-delay: .12s; }
.tc-tools-index .tools-card:nth-child(4) { animation-delay: .16s; }
.tc-tools-index .tools-card:nth-child(5) { animation-delay: .20s; }
.tc-tools-index .tools-card:nth-child(6) { animation-delay: .24s; }
.tc-tools-index .tools-card:nth-child(7) { animation-delay: .28s; }
.tc-tools-index .tools-card:nth-child(8) { animation-delay: .32s; }
.tc-tools-index .tools-card:nth-child(9) { animation-delay: .36s; }

@keyframes mpToolsCardReveal {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-tools-index .tools-card {
    opacity: 1;
    translate: 0 0;
    animation: none;
  }
}

.tools-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #135cff 0%, #4d91ff 55%, #c8dbff 100%);
  opacity: .95;
}

.tools-card:hover {
  border-color: rgba(36,84,198,.50);
  box-shadow: 0 26px 54px rgba(36,84,198,.15);
  transform: translateY(-3px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.tools-card-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px;
  min-width: 0;
}

.tools-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(36,84,198,.13) 0%, rgba(36,84,198,.055) 100%);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--tc-blue);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 10px 20px rgba(36,84,198,.09);
  margin: 0;
}

.tools-card-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.1;
}

.tools-card-type {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 24px;
  padding: 0 11px;
  border-radius: 8px;
  background: #edf3ff;
  border: 1px solid #dce8ff;
  color: #1e55bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.tools-card-name {
  font-family: var(--tc-heading-font) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--tc-text) !important;
  line-height: 1.22 !important;
  text-align: left !important;
  margin: 0 !important;
  letter-spacing: -.025em !important;
  text-wrap: balance;
}

.tools-card-desc {
  font-size: 13.5px !important;
  color: var(--tc-muted) !important;
  line-height: 1.52 !important;
  text-align: left !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.tools-card-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px;
  justify-content: flex-start !important;
  margin-top: 1px;
}

.tools-tag {
  font-weight: 800;
  background: #edf3ff;
  border: 1px solid #dce7fb;
  border-radius: 7px;
  padding: 4px 9px;
  color: #2f508e;
  letter-spacing: .005em;
  text-transform: uppercase;
  font-size: 9.5px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.tools-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
  margin: 2px -26px 0;
  padding: 15px 26px 16px;
  border-top: 1px solid rgba(212,221,232,.82);
  background: linear-gradient(180deg, rgba(255,255,255,.50) 0%, rgba(246,249,253,.72) 100%);
}

.tools-card-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  color: #1058e8;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.tools-card-action svg {
  width: 18px;
  height: 18px;
  transition: transform .16s ease;
}

.tools-card:hover .tools-card-action svg {
  transform: translateX(3px);
}

.tools-card-free {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.08;
  text-align: left !important;
  white-space: nowrap;
}

.tools-card-free svg {
  width: 18px;
  height: 18px;
  color: #16a34a;
  border: 1.5px solid #16a34a;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
  background: #f4fff8;
}

.tools-card-free small {
  display: block;
  margin-top: 2px;
  color: var(--tc-subtle);
  font-size: 10.5px;
  font-weight: 650;
}

.tc-wrap {
  font-size: 14px;
  color: var(--tc-text);
  background: transparent;
  padding: 0;
}

.tc-hero {
  background: transparent;
  border-bottom: none;
  padding: 10px 20px 20px;
}
.tc-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 44px;
  border: 1px solid rgba(212,221,232,.92);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,251,254,.98) 100%);
  box-shadow: var(--tc-shadow-lg);
  text-align: center !important;
  position: relative;
}
.tc-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(212,221,232,.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.tc-hero-eyebrow {
  display: inline-flex !important; align-items: center !important; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--tc-blue); background: rgba(36,84,198,.08);
  border: 1px solid rgba(36,84,198,.14);
  border-radius: 999px; padding: 5px 12px; margin: 0 auto 14px;
}
.tc-hero h1 {
  font-family: var(--tc-heading-font) !important;
  font-size: 29px !important; font-weight: 700 !important;
  letter-spacing: -.4px !important; color: var(--tc-text) !important;
  margin: 0 0 12px 0 !important; line-height: 1.12 !important;
  text-align: center !important;
  text-wrap: balance;
}
.tc-hero p {
  font-size: 15px !important; color: var(--tc-muted) !important;
  max-width: 660px !important; line-height: 1.7 !important;
  margin: 0 auto !important; text-align: center !important;
  text-wrap: balance;
}

/* ----------------------------------------------------------
   TOOL PANELS
   ---------------------------------------------------------- */
.tc-main { max-width: 1100px; margin: 0 auto; padding: 0 20px 0; }
.tc-section { margin-bottom: 20px; }

.tc-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,254,.98) 100%);
  border: 1px solid rgba(212,221,232,.92);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--tc-shadow-sm);
  position: relative;
}
.tc-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(212,221,232,.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.tc-panel-head {
  display: flex !important; align-items: center !important; gap: 10px;
  padding: 15px 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f2f6fb 100%);
  border-bottom: 1px solid rgba(228,235,243,.95);
}
.tc-panel-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(36,84,198,.17) 0%, rgba(36,84,198,.08) 100%);
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--tc-blue); flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.tc-panel-icon svg { width: 14px; height: 14px; }
.tc-panel-title {
  font-family: var(--tc-heading-font) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.15px;
  text-transform: none;
  color: #3d4b63;
  text-align: left !important;
}
.tc-panel-body { padding: 22px; }

/* ----------------------------------------------------------
   FORM FIELDS
   ---------------------------------------------------------- */
.tc-field { display: flex !important; flex-direction: column !important; gap: 5px; }
.tc-label {
  font-family: var(--tc-heading-font) !important;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  color: var(--tc-muted); text-align: left !important;
}
.tc-input-wrap { position: relative; display: flex !important; align-items: center !important; }
.tc-addon {
  position: absolute;
  font-size: 12px; color: var(--tc-subtle); pointer-events: none;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.tc-pre { left: 10px; }
.tc-suf { right: 10px; }

.tc-input, .tc-select, .tc-textarea {
  width: 100%; border: 1px solid rgba(212,221,232,.95); border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important; font-size: 13px; color: var(--tc-text) !important;
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box !important; text-align: left !important;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.025);
  min-width: 0;
}
.tc-input {
  height: 40px; padding: 0 12px; display: block !important;
  -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.tc-input::-webkit-outer-spin-button,
.tc-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tc-input[type=text], .tc-input[type=email], .tc-input[type=date] { font-variant-numeric: normal; }
.tc-textarea { padding: 10px 12px; resize: vertical; min-height: 78px; line-height: 1.6; display: block !important; }
.tc-input:focus, .tc-select:focus, .tc-textarea:focus {
  outline: none; border-color: var(--tc-blue); box-shadow: 0 0 0 4px rgba(36,84,198,.11);
}
.tc-has-pre .tc-input { padding-left: 22px; }
.tc-has-suf .tc-input { padding-right: 40px; }
.tc-select {
  height: 40px; cursor: pointer; -webkit-appearance: none; appearance: none;
  padding: 0 32px 0 12px; display: block !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238b93a8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.tc-hint { font-size: 11px; color: var(--tc-subtle); line-height: 1.45; text-align: left !important; }
.tc-divider { height: 1px; background: var(--tc-border-2); margin: 16px 0; }

/* ----------------------------------------------------------
   GRID HELPERS
   ---------------------------------------------------------- */
.tc-grid-2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-grid-3 { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 12px; }
.tc-grid-4 { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 12px; }

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.tc-run-btn, .tc-gen-btn {
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px;
  width: 100%; height: 48px; background: linear-gradient(180deg, #2d5fd7 0%, #1f4fbf 100%); color: #ffffff !important;
  border: none; border-radius: 14px; font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s; margin-top: 4px;
  box-shadow: 0 18px 34px rgba(36,84,198,.26);
}
.tc-run-btn:hover, .tc-gen-btn:hover { background: linear-gradient(180deg, #2555c9 0%, var(--tc-blue-dim) 100%); }
.tc-run-btn:active, .tc-gen-btn:active { transform: scale(.99); }

.tc-reset-btn {
  background: rgba(255,255,255,.96); border: 1px solid rgba(212,221,232,.95); border-radius: 999px;
  padding: 8px 15px; font-family: inherit; font-size: 12px; font-weight: 700;
  color: var(--tc-muted); cursor: pointer; margin-top: 10px;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.tc-reset-btn:hover { border-color: var(--tc-blue); color: var(--tc-blue); box-shadow: var(--tc-shadow-sm); }

.tc-add-btn {
  display: inline-flex !important; align-items: center !important; gap: 5px;
  background: none; border: 1px dashed var(--tc-blue); color: var(--tc-blue);
  border-radius: var(--tc-radius); padding: 7px 12px; font-family: inherit;
  font-size: 12px; font-weight: 600; cursor: pointer; margin-top: 6px;
  transition: background .15s;
}
.tc-add-btn:hover { background: var(--tc-blue-alpha); }

.tc-del-btn {
  width: 28px; height: 28px; border: 1px solid var(--tc-border); border-radius: 5px;
  background: #ffffff; cursor: pointer; display: flex !important; align-items: center !important;
  justify-content: center !important; color: var(--tc-subtle); transition: border-color .15s, color .15s;
  align-self: end; flex-shrink: 0;
}
.tc-del-btn:hover { border-color: var(--tc-red); color: var(--tc-red); }

/* ----------------------------------------------------------
   RESULTS
   ---------------------------------------------------------- */
.tc-results { display: block; margin-top: 14px; opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.tc-results.is-visible { opacity: 1 !important; height: auto !important; overflow: visible !important; pointer-events: auto !important; }

.tc-stats   { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.tc-stats-4 { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }

.tc-stat {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border: 1px solid rgba(212,221,232,.95);
  border-radius: 16px; padding: 15px 16px; text-align: left !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.tc-stat.is-primary { background: linear-gradient(180deg, #2d5fd7 0%, var(--tc-blue) 100%); border-color: var(--tc-blue); box-shadow: 0 18px 34px rgba(36,84,198,.22); }
.tc-stat.is-good    { background: var(--tc-green-bg); border-color: var(--tc-green-bd); }
.tc-stat.is-warn    { background: var(--tc-amber-bg); border-color: var(--tc-amber-bd); }

.tc-stat-label {
  font-family: var(--tc-heading-font) !important;
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--tc-subtle); margin-bottom: 5px; text-align: left !important;
}
.tc-stat.is-primary .tc-stat-label { color: rgba(255,255,255,.65); }
.tc-stat.is-good    .tc-stat-label { color: var(--tc-green); opacity: .8; }
.tc-stat.is-warn    .tc-stat-label { color: var(--tc-amber); opacity: .8; }

.tc-stat-val {
  font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--tc-text); line-height: 1; text-align: left !important;
}
.tc-stat.is-primary .tc-stat-val { color: #ffffff; }
.tc-stat.is-good    .tc-stat-val { color: var(--tc-green); }
.tc-stat.is-warn    .tc-stat-val { color: var(--tc-amber); }

/* ----------------------------------------------------------
   TABLE
   ---------------------------------------------------------- */
.tc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tc-table th {
  font-family: var(--tc-heading-font) !important;
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--tc-subtle); padding: 9px 13px; border-bottom: 1px solid var(--tc-border);
  white-space: nowrap; text-align: left !important;
}
.tc-table th:not(:first-child) { text-align: left !important; }
.tc-table td { padding: 11px 13px; border-bottom: 1px solid var(--tc-border-2); color: var(--tc-text); text-align: left !important; }
.tc-table td:not(:first-child) { text-align: right !important; }
.tc-table .tc-total-row td { background: #f7f8fa; font-weight: 700; border-bottom: none; }

/* ----------------------------------------------------------
   ALERTS
   ---------------------------------------------------------- */
.tc-alert {
  display: none; margin-top: 12px; border-radius: var(--tc-radius); padding: 11px 14px;
  font-size: 13px; line-height: 1.55; border-left: 3px solid; text-align: left !important;
}
.tc-alert.is-visible { display: block !important; }
.tc-alert-warn   { background: var(--tc-amber-bg); border-color: var(--tc-amber); color: var(--tc-amber); }
.tc-alert-good   { background: var(--tc-green-bg); border-color: var(--tc-green); color: var(--tc-green); }
.tc-alert-danger { background: var(--tc-red-bg);   border-color: var(--tc-red);   color: var(--tc-red); }
.tc-alert strong { font-weight: 700; }
.tc-alert span   { color: var(--tc-text); }

/* ----------------------------------------------------------
   FILL BAR
   ---------------------------------------------------------- */
.tc-fill-wrap { margin: 14px 0; }
.tc-fill-label {
  font-family: var(--tc-heading-font) !important;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--tc-subtle); margin-bottom: 7px; text-align: left !important;
}
.tc-fill-track { background: var(--tc-border-2); border-radius: 5px; height: 22px; overflow: hidden; }
.tc-fill-bar {
  height: 100%; border-radius: 5px;
  display: flex !important; align-items: center !important; padding: 0 10px;
  transition: width .5s ease; justify-content: space-between !important; min-width: 40px;
}
.tc-fill-bar span { font-size: 11px; font-weight: 700; color: #ffffff; white-space: nowrap; }

/* ----------------------------------------------------------
   CONTAINER SELECTOR
   ---------------------------------------------------------- */
.tc-ctn-grid { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 10px; }
.tc-ctn-opt {
  border: 1px solid rgba(212,221,232,.95); border-radius: 14px; padding: 15px 14px;
  cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
  text-align: center !important; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,254,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.tc-ctn-opt input[type=radio] { display: none; }
.tc-ctn-opt:hover { border-color: rgba(36,84,198,.45); transform: translateY(-1px); }
.tc-ctn-opt.is-sel { border-color: var(--tc-blue); background: rgba(36,84,198,.08); box-shadow: 0 12px 26px rgba(36,84,198,.10); }
.tc-ctn-name { font-size: 13px; font-weight: 700; color: var(--tc-text); margin-bottom: 3px; text-align: center !important; }
.tc-ctn-dims { font-size: 11px; color: var(--tc-subtle); font-variant-numeric: tabular-nums; margin-bottom: 4px; text-align: center !important; }
.tc-ctn-vol  { font-size: 13px; color: var(--tc-blue); font-weight: 700; text-align: center !important; }

/* ----------------------------------------------------------
   SKU ROWS
   ---------------------------------------------------------- */
.tc-sku-rows { display: flex !important; flex-direction: column !important; gap: 7px; }
.tc-sku-row {
  display: grid !important;
  grid-template-columns: minmax(100px,2fr) repeat(5,minmax(65px,1fr)) 30px;
  gap: 10px; align-items: end; background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%);
  border: 1px solid var(--tc-border-2); border-radius: 14px; padding: 14px;
}

/* ----------------------------------------------------------
   RFQ LAYOUT
   ---------------------------------------------------------- */
.tc-layout {
  max-width: 1100px; margin: 0 auto; padding: 0 20px 0;
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start;
}
.tc-form-col { display: flex !important; flex-direction: column !important; gap: 12px; }
.tc-preview-col { position: sticky; top: 20px; }
 .tc-form-col, .tc-preview-col { min-width: 0; }

.rfq-sku-row {
  display: grid !important;
  grid-template-columns: minmax(180px,2fr) minmax(120px,1fr) minmax(90px,.75fr) 28px;
  gap: 8px;
  align-items: end;
  background: #f8f9fb;
  border: 1px solid var(--tc-border-2);
  border-radius: 6px;
  padding: 10px;
}
.rfq-sku-row .tc-field,
.rfq-sku-row .tc-input {
  min-width: 0;
}

.tc-check-group { display: flex !important; flex-wrap: wrap !important; gap: 6px; }
.tc-check-item {
  display: flex !important; align-items: center !important; gap: 5px;
  font-size: 12px; color: var(--tc-text); cursor: pointer;
  padding: 5px 10px; border: 1px solid var(--tc-border);
  border-radius: 999px; background: #ffffff; transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none; line-height: 1; text-align: left !important;
}
.tc-check-item input[type=checkbox] { accent-color: var(--tc-blue); cursor: pointer; margin: 0; }
.tc-check-item:hover { border-color: var(--tc-blue); background: var(--tc-blue-alpha); box-shadow: 0 8px 18px rgba(36,84,198,.08); }

.tc-preview-header {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  padding: 13px 16px; background: linear-gradient(180deg, #fcfdff 0%, #f3f7fb 100%); border-bottom: 1px solid var(--tc-border-2);
}
.tc-preview-title { font-family: var(--tc-heading-font) !important; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--tc-muted); }
.tc-action-btns { display: flex !important; gap: 6px; }
.tc-action-btn {
  display: inline-flex !important; align-items: center !important; gap: 4px; font-family: inherit;
  font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  transition: all .15s; border: 1px solid var(--tc-border); background: #ffffff; color: var(--tc-muted);
}
.tc-action-btn:hover { border-color: var(--tc-blue); color: var(--tc-blue); }

.tc-rfq-body {
  padding: 16px; max-height: 560px; overflow-y: auto;
  font-family: 'SF Mono','Fira Mono','Consolas',monospace;
  font-size: 12px; line-height: 1.7; color: var(--tc-text) !important; white-space: pre-wrap;
  background: #ffffff; text-align: left !important;
}
.tc-rfq-empty {
  display: flex !important; align-items: center !important; justify-content: center !important;
  min-height: 200px; color: var(--tc-subtle); font-family: inherit; font-size: 13px;
}

.tc-toast {
  position: fixed; bottom: 20px; right: 20px; background: var(--tc-text); color: #ffffff;
  padding: 10px 16px; border-radius: 7px; font-size: 13px; font-weight: 500;
  transform: translateY(50px); opacity: 0; transition: all .25s; pointer-events: none; z-index: 9999;
}
.tc-toast.is-show { transform: translateY(0); opacity: 1; }

/* ----------------------------------------------------------
   INCOTERMS
   ---------------------------------------------------------- */
.tc-rec-result {
  display: none; margin-top: 12px; background: var(--tc-blue-alpha);
  border: 1px solid rgba(40,90,211,.2); border-radius: var(--tc-radius);
  padding: 13px 15px; font-size: 13px; text-align: left !important;
}
.tc-rec-result.is-visible { display: block !important; }
.tc-rec-code { font-size: 17px; font-weight: 700; color: var(--tc-blue); }
.tc-rec-link { color: var(--tc-blue); font-weight: 600; cursor: pointer; }
.tc-rec-link:hover { text-decoration: underline; }

.tc-terms-grid { display: grid !important; grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: 8px; }
.tc-term-card {
  border: 1px solid rgba(212,221,232,.95); border-radius: 14px; padding: 13px 14px;
  cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; position: relative; text-align: left !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.tc-term-card:hover  { border-color: var(--tc-blue); background: #f7f9fe; box-shadow: 0 14px 28px rgba(36,84,198,.10); transform: translateY(-2px); }
.tc-term-card.is-active { border-color: var(--tc-blue); background: linear-gradient(180deg, #2d5fd7 0%, var(--tc-blue) 100%); box-shadow: 0 20px 36px rgba(36,84,198,.18); }
.tc-term-code { font-size: 16px; font-weight: 700; color: var(--tc-text); font-family: 'SF Mono','Fira Mono',monospace; letter-spacing: 1px; }
.tc-term-card.is-active .tc-term-code { color: #ffffff; }
.tc-term-full { font-size: 11px; color: var(--tc-subtle); margin-top: 2px; line-height: 1.35; }
.tc-term-card.is-active .tc-term-full { color: rgba(255,255,255,.7); }
.tc-term-mode {
  position: absolute; top: 9px; right: 9px; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px; padding: 2px 5px; border-radius: 3px;
}
.tc-mode-any { background: var(--tc-border-2); color: var(--tc-subtle); }
.tc-mode-sea { background: #dbeafe; color: #1d4ed8; }
.tc-term-card.is-active .tc-mode-any,
.tc-term-card.is-active .tc-mode-sea { background: rgba(255,255,255,.2); color: rgba(255,255,255,.85); }
.tc-term-burden { font-size: 11px; font-weight: 600; margin-top: 7px; }
.tc-burden-b { color: var(--tc-green); }
.tc-burden-s { color: var(--tc-red); }
.tc-term-card.is-active .tc-burden-b,
.tc-term-card.is-active .tc-burden-s { color: rgba(255,255,255,.85); }

.tc-detail { display: none; }
.tc-detail.is-visible { display: block !important; }
.tc-detail-header { display: flex !important; align-items: baseline !important; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tc-detail-code { font-size: 30px; font-weight: 700; color: var(--tc-blue); font-family: 'SF Mono','Fira Mono',monospace; }
.tc-detail-full { font-size: 15px; font-weight: 600; color: var(--tc-muted); }
.tc-risk-bar {
  background: linear-gradient(180deg, #fffaf0 0%, var(--tc-amber-bg) 100%); border: 1px solid var(--tc-amber-bd); border-left: 3px solid var(--tc-amber);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px;
  color: var(--tc-text); line-height: 1.55; text-align: left !important;
}
.tc-risk-bar strong { color: var(--tc-amber); font-weight: 700; }
.tc-journey { margin-bottom: 14px; }
.tc-journey-label { font-family: var(--tc-heading-font) !important; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--tc-subtle); margin-bottom: 6px; text-align: left !important; }
.tc-journey-track { display: flex !important; border-radius: 5px; overflow: hidden; height: 20px; }
.tc-j-seller { background: var(--tc-red);   display: flex !important; align-items: center !important; padding: 0 7px; }
.tc-j-buyer  { background: var(--tc-green); display: flex !important; align-items: center !important; padding: 0 7px; }
.tc-j-seller span, .tc-j-buyer span { font-size: 10px; font-weight: 700; color: #ffffff; white-space: nowrap; }
.tc-resp-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tc-resp-col { border-radius: 7px; padding: 13px 15px; text-align: left !important; }
.tc-resp-col { border-radius: 14px; padding: 15px 16px; }
.tc-resp-s { background: var(--tc-red-bg);   border: 1px solid var(--tc-red-bd); }
.tc-resp-b { background: var(--tc-green-bg); border: 1px solid var(--tc-green-bd); }
.tc-resp-h { font-family: var(--tc-heading-font) !important; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 9px; text-align: left !important; }
.tc-resp-s .tc-resp-h { color: var(--tc-red); }
.tc-resp-b .tc-resp-h { color: var(--tc-green); }
.tc-resp-item {
  font-size: 12px; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex !important; gap: 6px; align-items: flex-start !important; color: var(--tc-text);
}
.tc-resp-item:last-child { border-bottom: none; }
.tc-resp-item::before { content: '-'; flex-shrink: 0; font-weight: 700; margin-top: 1px; }
.tc-resp-s .tc-resp-item::before { color: var(--tc-red); }
.tc-resp-b .tc-resp-item::before { color: var(--tc-green); }
.tc-detail-notes { font-size: 13px; color: var(--tc-muted); line-height: 1.65; text-align: left !important; }
.tc-detail-notes strong { color: var(--tc-text); font-weight: 600; }

/* ----------------------------------------------------------
   MATRIX TABLE
   ---------------------------------------------------------- */
.tc-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tc-matrix { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 640px; }
.tc-matrix th {
  font-family: var(--tc-heading-font) !important;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--tc-subtle); padding: 8px 9px; border-bottom: 1px solid var(--tc-border);
  text-align: left !important; white-space: nowrap;
}
.tc-matrix th:first-child { min-width: 155px; }
.tc-th-code { font-family: 'SF Mono','Fira Mono',monospace; font-size: 10px; font-weight: 700; color: var(--tc-blue); }
.tc-matrix td { padding: 7px 9px; border-bottom: 1px solid var(--tc-border-2); text-align: center !important; vertical-align: middle; }
.tc-matrix td:first-child { text-align: left !important; font-size: 12px; font-weight: 500; color: var(--tc-muted); }
.tc-matrix tr:hover td { background: #fafbfc; }
.tc-matrix tr:last-child td { border-bottom: none; }
.tc-dot-s { width: 8px; height: 8px; border-radius: 50%; background: var(--tc-red); display: inline-block; }
.tc-dot-b { width: 8px; height: 8px; border-radius: 50%; background: var(--tc-green); display: inline-block; }
.tc-legend { display: flex !important; gap: 18px; margin-top: 9px; font-size: 12px; color: var(--tc-muted); text-align: left !important; }
.tc-legend span { display: flex !important; align-items: center !important; gap: 5px; }



/* ----------------------------------------------------------
   CBM TOOL ENTERPRISE LAYOUT
   ---------------------------------------------------------- */
.tc-main.tc-tool-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 4rem 64px !important;
  box-sizing: border-box !important;
}

.tc-tool-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 2px;
}

.tc-command-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,251,254,.96) 100%);
  border: 1px solid rgba(212,221,232,.92);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.055);
}

.tc-command-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tc-blue);
  background: rgba(36,84,198,.09);
  border: 1px solid rgba(36,84,198,.12);
}

.tc-command-icon svg {
  width: 16px;
  height: 16px;
}

.tc-command-green {
  color: var(--tc-green);
  background: rgba(21,128,61,.09);
  border-color: rgba(21,128,61,.14);
}

.tc-command-item strong,
.tc-command-item em {
  display: block;
  line-height: 1.25;
  text-align: left;
}

.tc-command-item strong {
  font-size: 12.5px;
  color: var(--tc-text);
  font-weight: 700;
}

.tc-command-item em {
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  color: var(--tc-subtle);
}

.tc-tool-panel {
  border-radius: 22px;
}

.tc-tool-panel-head {
  justify-content: space-between;
}

.tc-panel-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tc-panel-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--tc-subtle);
  text-align: left !important;
}

.tc-split-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.tc-split-primary {
  min-width: 0;
}

.tc-side-note {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(212,221,232,.95);
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--tc-muted);
  text-align: left;
}

.tc-side-note-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .45px;
  text-transform: uppercase;
  color: var(--tc-blue);
  margin-bottom: 8px;
}

.tc-side-note ul {
  margin: 0;
  padding-left: 16px;
}

.tc-side-note li {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 7px;
}

.tc-side-note li:last-child {
  margin-bottom: 0;
}

.tc-container-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
}

.tc-container-controls {
  min-width: 0;
}

.tc-ctn-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin: 0 auto 8px;
  color: var(--tc-blue);
  background: rgba(36,84,198,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-ctn-icon svg {
  width: 18px;
  height: 18px;
}

.tc-container-visual {
  min-height: 300px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(212,221,232,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  overflow: hidden;
}

.tc-container-dimension-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

.tc-container-box {
  position: relative;
  width: 190px;
  height: 112px;
  transform: perspective(640px) rotateX(0deg) rotateY(-18deg);
}

.tc-box-face {
  position: absolute;
  border: 2px solid rgba(36,84,198,.86);
  background: repeating-linear-gradient(90deg, rgba(36,84,198,.92) 0 8px, rgba(29,78,216,.96) 8px 10px, rgba(36,84,198,.76) 10px 18px);
  box-shadow: 0 18px 38px rgba(36,84,198,.18);
}

.tc-box-front {
  left: 18px;
  bottom: 16px;
  width: 132px;
  height: 76px;
  border-radius: 6px;
}

.tc-box-side {
  right: 4px;
  bottom: 22px;
  width: 42px;
  height: 68px;
  transform: skewY(-16deg);
  opacity: .82;
  border-radius: 5px;
}

.tc-box-top {
  left: 28px;
  top: 11px;
  width: 122px;
  height: 28px;
  transform: skewX(-34deg);
  opacity: .72;
  border-radius: 5px;
}

.tc-box-line {
  position: absolute;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  color: var(--tc-blue);
  background: #ffffff;
  border: 1px solid rgba(36,84,198,.18);
  border-radius: 999px;
  padding: 2px 6px;
  box-shadow: 0 6px 12px rgba(15,23,42,.08);
}

.tc-box-line-h { left: 0; top: 40px; }
.tc-box-line-w { left: 72px; bottom: 0; }
.tc-box-line-l { right: 0; bottom: 2px; }

.tc-container-caption {
  margin-top: 12px;
  max-width: 280px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--tc-muted);
}

.tc-container-illustration {
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  margin: 0 auto;
}

.tc-cbm-tool .tc-sku-row {
  grid-template-columns: minmax(190px, 2fr) repeat(5, minmax(112px, 1fr)) 32px !important;
  gap: 12px !important;
}

.tc-cbm-tool .tc-sku-row .tc-del-btn {
  align-self: end;
}

.tc-info-icon {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--tc-blue);
  background: linear-gradient(180deg, rgba(36,84,198,.13) 0%, rgba(36,84,198,.07) 100%);
  border: 1px solid rgba(36,84,198,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 12px 24px rgba(36,84,198,.08);
  margin: 0;
}

.tc-info-icon svg {
  width: 24px;
  height: 24px;
}


.tc-run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  margin-top: 22px;
}

.tc-secondary-btn,
.tc-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(212,221,232,.95);
  background: rgba(255,255,255,.96);
  color: var(--tc-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s, transform .12s;
}

.tc-secondary-btn:hover,
.tc-action-secondary:hover {
  border-color: rgba(36,84,198,.45);
  color: var(--tc-blue);
  box-shadow: 0 12px 24px rgba(36,84,198,.10);
  transform: translateY(-1px);
}

.tc-results-panel {
  margin-top: 4px;
}

.tc-panel-icon-success {
  background: rgba(21,128,61,.12);
  color: var(--tc-green);
}

.tc-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tc-action-secondary {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
}

.tc-fill-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 7px;
}

.tc-fill-label-row .tc-fill-label {
  margin-bottom: 0;
}

.tc-fill-note {
  font-size: 11px;
  color: var(--tc-subtle);
  text-align: right;
}

.tc-fill-wrap-premium .tc-fill-track {
  height: 24px;
}

.tc-result-info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px;
  margin-top: 28px;
  padding: 26px 10px 30px;
  border-top: 1px solid rgba(212,221,232,.86);
}

.tc-result-info-strip .tc-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  text-align: left;
}

.tc-info-copy {
  display: block;
  min-width: 0;
  padding-top: 2px;
}

.tc-result-info-strip strong,
.tc-result-info-strip span {
  display: block;
}

.tc-result-info-strip strong {
  color: var(--tc-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}

.tc-result-info-strip span:not(.tc-info-icon) {
  color: var(--tc-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

@media print {
  .top-nav,
  .tools-nav-row,
  .tc-tool-command,
  .tc-panel-actions,
  .tc-run-row,
  footer {
    display: none !important;
  }
  body.tools-page {
    background: #ffffff;
  }
  .tc-wrap .tc-main,
  .tc-wrap .tc-layout,
  .tc-main {
    padding: 0 !important;
  }
  .tc-panel {
    box-shadow: none;
    break-inside: avoid;
  }
}


/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 700px) {
  .tools-index-main { padding: 14px 14px 0; }
  .tools-index-grid { grid-template-columns: 1fr !important; }
  .tc-main { padding: 0 14px 0; }
  .tc-layout { padding: 0 14px 0; grid-template-columns: 1fr !important; }
  .tc-preview-col { position: static; }
  .tc-grid-3, .tc-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .tc-stats, .tc-stats-4 { grid-template-columns: 1fr 1fr !important; }
  .tc-sku-row { grid-template-columns: 1fr 1fr !important; }
  .tc-sku-row .tc-del-btn { grid-column: 2; justify-self: end; }
  .tc-ctn-grid, .tc-resp-grid { grid-template-columns: 1fr !important; }
  .rfq-sku-row {
    grid-template-columns: minmax(0,1fr) minmax(104px,.72fr) 34px !important;
    gap: 10px !important;
  }
  .rfq-sku-row .tc-field:first-child { grid-column: 1 / -1; }
  .rfq-sku-row .tc-field:nth-child(2) { grid-column: 1 / 2; }
  .rfq-sku-row .tc-field:nth-child(3) { grid-column: 2 / 3; }
  .rfq-sku-row .tc-del-btn { grid-column: 3 / 4; grid-row: 2; justify-self: end; align-self: end; }
  .tools-nav-link { min-height: 32px; padding: 4px 9px; font-size: 9px; letter-spacing: 0.06em; }
  .tools-nav-label-desktop { display: none; }
  .tools-nav-label-mobile { display: inline; }
  .tools-card { padding: 20px 20px 0; }
  .tools-card-name { font-size: 17px !important; }
  .tools-card-desc { font-size: 13px !important; -webkit-line-clamp: 3 !important; min-height: auto !important; }
  .tools-card-footer { align-items: center !important; margin-left: -20px; margin-right: -20px; padding: 14px 20px 15px; }
  .tools-card-free small { display: none; }
  .tc-panel-body { padding: 18px; }
  .tc-panel-head { padding: 12px 14px; }
  .tc-table th,
  .tc-table td { padding-left: 9px; padding-right: 9px; }
  .tc-matrix { min-width: 560px; }
  .tc-matrix th:first-child { min-width: 135px; }
  .tools-nav-links { justify-content: center; gap: 6px; }
}

@media (max-width: 500px) {
  .tools-index-main,
  .tc-main,
  .tc-layout { padding-left: 12px; padding-right: 12px; }
  .tools-nav-links { gap: 6px !important; }
  .tools-nav-link { height: 36px !important; padding: 0 13px !important; font-size: 12px !important; }
  .tc-grid-2 { grid-template-columns: 1fr !important; }
  .tc-grid-3 { grid-template-columns: 1fr !important; }
  .tc-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .tc-stats, .tc-stats-4 { grid-template-columns: 1fr !important; }
  .tc-sku-row { grid-template-columns: 1fr 1fr !important; padding: 12px; gap: 10px; }
  .tc-sku-row .tc-field,
  .tc-sku-row .tc-input { min-width: 0; }
  .tc-sku-row .tc-del-btn { grid-column: 2; justify-self: end; }
  .rfq-sku-row {
    grid-template-columns: minmax(0,1fr) minmax(88px,.62fr) 32px !important;
    padding: 12px !important;
    gap: 9px !important;
  }
  .rfq-sku-row .tc-field:first-child { grid-column: 1 / -1; }
  .rfq-sku-row .tc-field:nth-child(2) { grid-column: 1 / 2; }
  .rfq-sku-row .tc-field:nth-child(3) { grid-column: 2 / 3; }
  .rfq-sku-row .tc-del-btn { grid-column: 3 / 4; grid-row: 2; justify-self: end; align-self: end; }
  .tools-card { padding: 18px 16px 0; border-radius: 18px; }
  .tools-card-head { gap: 12px; }
  .tools-card-icon { width: 40px; height: 40px; }
  .tools-card-icon svg { width: 20px; height: 20px; }
  .tools-card-type { font-size: 10.5px; padding: 0 9px; }
  .tools-card-tags { gap: 5px; }
  .tools-tag { font-size: 9px; padding: 4px 8px; }
  .tools-card-footer { gap: 10px; margin-left: -16px; margin-right: -16px; padding: 13px 16px 14px; }
  .tools-card-action { font-size: 13px; }
  .tools-card-free { font-size: 12px; }
  .tc-panel { border-radius: 18px; }
  .tc-panel-body { padding: 16px; }
  .tc-terms-grid { grid-template-columns: 1fr !important; }
  .tc-matrix { min-width: 500px; font-size: 11px; }
  .tc-matrix th,
  .tc-matrix td { padding: 6px 7px; }
  .tc-input, .tc-select, .tc-textarea { font-size: 16px; }
  .tc-rfq-body { font-size: 11px; }
}


@media (min-width: 960px) {
  .tools-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (min-width: 700px) {
  .tools-index-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .tools-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699px) {
  .tools-index-grid { grid-template-columns: 1fr !important; }
}



@media (max-width: 980px) {
  .tc-tool-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tc-split-body,
  .tc-container-layout {
    grid-template-columns: 1fr;
  }
  .tc-side-note {
    order: 2;
  }
  .tc-container-visual {
    min-height: 240px;
  }
  .tc-cbm-tool .tc-sku-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 32px !important;
  }
  .tc-result-info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 34px;
  }
}

@media (max-width: 699px) {
  .tc-tool-command {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tc-command-item {
    padding: 10px 12px;
  }
  .tc-tool-panel {
    border-radius: 18px;
  }
  .tc-tool-panel-head {
    align-items: flex-start;
    gap: 10px;
  }
  .tc-panel-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .tc-split-body,
  .tc-container-layout {
    gap: 14px;
  }
  .tc-container-visual {
    display: flex;
    min-height: 210px;
    padding: 18px;
  }
  .tc-container-illustration {
    max-width: 300px;
  }
  .tc-container-dimension-img {
    max-width: 360px;
  }
  .tc-cbm-tool .tc-sku-row {
    grid-template-columns: 1fr !important;
  }
  .tc-cbm-tool .tc-sku-row .tc-del-btn {
    justify-self: start;
  }
  .tc-run-row {
    grid-template-columns: 1fr;
  }
  .tc-secondary-btn {
    height: 42px;
  }
  .tc-fill-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .tc-fill-note {
    text-align: left;
  }
  .tc-result-info-strip {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ============================================================
   FINAL LAYOUT / SPACING
   ============================================================ */

.tools-nav-link,
.tools-nav-link *,
.tc-ctn-opt,
.tc-ctn-opt *,
.tc-term-card,
.tc-term-card * {
  cursor: pointer !important;
}

/* Homepage grid */
.tools-index-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 4rem 40px !important;
}

.tools-index-grid {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 28px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.tools-card {
  width: 100% !important;
  min-width: 0 !important;
}

/* Force pointer cursor on all card children ? overrides global cursor:default */
.tools-card,
.tools-card * {
  cursor: pointer !important;
}

/* Tool pages: one controlled width system.
   Do not subtract width and then add padding again. That double-squeezed
   mobile tool panels and created the right-side page gap. */
body.tools-page {
  overflow-x: hidden;
}

.tc-wrap {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.tc-wrap .tc-main,
.tc-main.tc-tool-main,
.tc-wrap .tc-layout {
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 4rem 40px !important;
  box-sizing: border-box !important;
}

.tc-main.tc-tool-main > *,
.tc-wrap .tc-section,
.tc-wrap .tc-panel,
.tc-wrap .tc-tool-panel,
.tc-wrap .tc-panel-body,
.tc-wrap .tc-tool-command,
.tc-wrap .tc-table-wrap,
.tc-wrap .tc-matrix-wrap,
.tc-wrap .tc-result-info-strip {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tc-wrap .tc-table-wrap,
.tc-wrap .tc-matrix-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Tablet =1279px */
@media (max-width: 1279px) {
  .tools-nav-row {
    padding: 8px 2rem 18px !important;
    overflow: hidden;
  }
  .tools-nav-links {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 0 10px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tools-nav-links::-webkit-scrollbar {
    display: none;
  }
  .tools-index-main {
    padding: 0 2rem 24px !important;
  }
  .tc-wrap .tc-main,
  .tc-main.tc-tool-main,
  .tc-wrap .tc-layout {
    width: 100% !important;
    max-width: none !important;
    padding: 0 2rem 48px !important;
  }
  .tools-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile =699px */
@media (max-width: 699px) {
  .tools-index-main {
    padding: 0 1rem 24px !important;
  }
  .tc-wrap .tc-main,
  .tc-main.tc-tool-main,
  .tc-wrap .tc-layout {
    width: 100% !important;
    max-width: none !important;
    padding: 0 1rem 32px !important;
  }
  .tools-index-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .tools-nav-row {
    position: relative;
    padding: 7px 0 14px !important;
    overflow: hidden;
  }
  .tools-nav-row::before,
  .tools-nav-row::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 34px;
    pointer-events: none;
    opacity: .95;
    transition: opacity .18s ease;
  }
  .tools-nav-row::before {
    left: 0;
    background: linear-gradient(90deg, #f0f4fa 0%, rgba(240,244,250,.88) 45%, rgba(240,244,250,0) 100%);
  }
  .tools-nav-row::after {
    right: 0;
    background: linear-gradient(270deg, #f0f4fa 0%, rgba(240,244,250,.88) 45%, rgba(240,244,250,0) 100%);
  }
  .tools-nav-row.is-at-start::before,
  .tools-nav-row.is-at-end::after,
  .tools-nav-row:not(.is-scrollable)::before,
  .tools-nav-row:not(.is-scrollable)::after {
    opacity: 0;
  }
  .tools-nav-links {
    gap: 6px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 1rem 10px !important;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tools-nav-links::-webkit-scrollbar {
    display: none;
  }
  .tools-nav-link {
    flex: 0 0 auto !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 12.5px !important;
    scroll-snap-align: start;
  }

  .tc-wrap .tc-tool-panel-head {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .tc-wrap .tc-panel-title-group {
    width: 100%;
  }

  .tc-wrap .tc-panel-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .tc-wrap .tc-action-secondary {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .tc-wrap .tc-table-wrap,
  .tc-wrap .tc-matrix-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .tc-wrap .tc-table,
  .tc-wrap .tc-matrix {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .tools-nav-link {
    height: 36px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }
}

/* Supplier comparison rows: keep the last field visible */
.sc-compare-rows .tc-sku-row {
  grid-template-columns: minmax(180px, 2.2fr) repeat(6, minmax(95px, 1fr)) 30px !important;
}

@media (max-width: 1200px) {
  .sc-compare-rows .tc-sku-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 30px !important;
  }
}

@media (max-width: 700px) {
  .sc-compare-rows .tc-sku-row {
    grid-template-columns: 1fr !important;
  }

  .sc-compare-rows .tc-del-btn {
    justify-self: start !important;
  }
}
/* ----------------------------------------------------------
   IMPORT DUTY TOOL ENTERPRISE LAYOUT
   ---------------------------------------------------------- */
.tc-id-tool .tc-id-input-panel .tc-panel-body {
  padding: 20px 22px 22px;
}

.tc-id-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.tc-id-form {
  min-width: 0;
}

.tc-id-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--tc-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tc-id-step:not(:first-child) {
  margin-top: 22px;
}

.tc-id-step span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  background: var(--tc-blue);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(36,84,198,.18);
}

.tc-id-step em {
  font-style: normal;
  color: var(--tc-muted);
  font-weight: 600;
}

.tc-flag-select-wrap {
  position: relative;
}

.tc-flag-select-wrap img {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 4px 8px rgba(15,23,42,.06);
  z-index: 2;
}

.tc-flag-select-wrap .tc-flag-select {
  padding-left: 46px !important;
}

.tc-id-scenario-grid,
.tc-id-cost-grid {
  gap: 14px;
}

.tc-id-run-row {
  margin-top: 20px;
}

.tc-id-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--tc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.tc-id-privacy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--tc-subtle);
}

.tc-id-method-card {
  border: 1px solid rgba(212,221,232,.95);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  padding: 22px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 16px 34px rgba(36,84,198,.07);
  min-width: 0;
}

.tc-id-method-title {
  color: var(--tc-blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.tc-id-method-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tc-id-method-step > span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-blue);
  background: rgba(36,84,198,.09);
  border: 1px solid rgba(36,84,198,.11);
}

.tc-id-method-step svg {
  width: 18px;
  height: 18px;
}

.tc-id-method-step strong,
.tc-id-method-step em {
  display: block;
  text-align: left;
}

.tc-id-method-step strong {
  color: var(--tc-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.tc-id-method-step em {
  margin-top: 3px;
  color: var(--tc-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.tc-id-method-arrow {
  color: #9aa9c0;
  font-size: 22px;
  line-height: 1;
  padding: 5px 0 5px 18px;
}

.tc-id-note {
  margin-top: 18px;
  border: 1px solid rgba(245,158,11,.28);
  border-radius: 14px;
  background: rgba(255,251,235,.74);
  padding: 13px 14px;
  color: var(--tc-muted);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
}

.tc-id-note strong {
  color: var(--tc-amber);
}

.tc-id-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tc-id-stat-grid .tc-stat {
  padding: 15px 14px;
}

.tc-id-result-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.tc-id-breakdown-card,
.tc-id-composition-card {
  border: 1px solid rgba(212,221,232,.95);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
  min-width: 0;
}

.tc-id-subtitle {
  margin: 0 0 12px;
  color: var(--tc-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: left;
}

.tc-id-bar {
  display: flex;
  width: 100%;
  height: 42px;
  overflow: hidden;
  border-radius: 12px;
  background: #e9eef6;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08);
}

.tc-id-bar span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tc-id-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin-top: 14px;
}

.tc-id-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--tc-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tc-id-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.tc-id-legend b {
  margin-left: auto;
  color: var(--tc-text);
  font-weight: 700;
}

.tc-id-warning {
  margin-top: 18px !important;
}

.tc-id-info-strip {
  margin-top: 10px;
}

.tc-id-disclaimer {
  margin: -4px 0 0;
  text-align: center;
  color: var(--tc-muted);
  font-size: 12.5px;
}

@media (max-width: 1180px) {
  .tc-id-layout,
  .tc-id-result-layout {
    grid-template-columns: 1fr;
  }
  .tc-id-method-card {
    order: 2;
  }
  .tc-id-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .tc-id-tool .tc-id-input-panel .tc-panel-body {
    padding: 16px;
  }
  .tc-id-step {
    align-items: flex-start;
    font-size: 13px;
  }
  .tc-id-run-row {
    grid-template-columns: 1fr;
  }
  .tc-id-stat-grid {
    grid-template-columns: 1fr;
  }
  .tc-id-legend {
    grid-template-columns: 1fr;
  }
  .tc-id-method-card {
    padding: 18px 16px;
  }
}

/* ----------------------------------------------------------
   IMPORT DUTY MOBILE REPAIR
   Keeps the enterprise desktop layout, but makes the calculator
   behave cleanly on tablet and phone widths.
   ---------------------------------------------------------- */
@media (max-width: 699px) {
  .tc-id-tool .tc-main.tc-tool-main {
    width: 100% !important;
    padding: 0 1rem 32px !important;
    gap: 14px;
  }

  .tc-id-tool .tc-tool-command {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .tc-id-tool .tc-command-item {
    align-items: flex-start;
    min-height: 72px;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .tc-id-tool .tc-command-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .tc-id-tool .tc-command-item strong {
    font-size: 12px;
  }

  .tc-id-tool .tc-command-item em {
    font-size: 10.5px;
    line-height: 1.3;
  }

  .tc-id-tool .tc-tool-panel-head {
    align-items: flex-start !important;
    padding: 14px 16px !important;
  }

  .tc-id-tool .tc-panel-title-group {
    align-items: flex-start;
  }

  .tc-id-tool .tc-panel-subtitle {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .tc-id-tool .tc-id-layout,
  .tc-id-tool .tc-id-result-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .tc-id-tool .tc-id-scenario-grid,
  .tc-id-tool .tc-id-cost-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .tc-id-tool .tc-id-step {
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .tc-id-tool .tc-id-step:not(:first-child) {
    margin-top: 18px;
  }

  .tc-id-tool .tc-id-step em {
    display: block;
    margin-left: 0;
    font-size: 12px;
  }

  .tc-id-tool .tc-id-run-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px;
  }

  .tc-id-tool .tc-run-btn,
  .tc-id-tool .tc-secondary-btn {
    height: 46px;
    border-radius: 14px;
  }

  .tc-id-tool .tc-id-privacy {
    align-items: flex-start;
    font-size: 11.5px;
  }

  .tc-id-tool .tc-id-method-card {
    order: 2;
    padding: 16px !important;
    border-radius: 18px;
  }

  .tc-id-tool .tc-id-method-title {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .tc-id-tool .tc-id-method-step {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
  }

  .tc-id-tool .tc-id-method-step > span {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 16px;
  }

  .tc-id-tool .tc-id-method-step strong {
    font-size: 12.5px;
  }

  .tc-id-tool .tc-id-method-step em {
    font-size: 11.5px;
  }

  .tc-id-tool .tc-id-method-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1.6rem;
    margin: .2rem 0 .35rem;
    color: #9aa8bc;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
  }

  .tc-id-tool .tc-id-method-step + .tc-id-method-step {
    margin-top: 0;
  }

  .tc-id-tool .tc-id-note {
    margin-top: 14px;
    font-size: 12px;
  }

  .tc-id-tool .tc-panel-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tc-id-tool .tc-action-secondary {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .tc-id-tool .tc-id-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .tc-id-tool .tc-id-stat-grid .tc-stat {
    min-width: 0;
    padding: 13px 12px;
    border-radius: 14px;
  }

  .tc-id-tool .tc-id-stat-grid .tc-stat-label {
    font-size: 9px;
    letter-spacing: .35px;
  }

  .tc-id-tool .tc-id-stat-grid .tc-stat-val {
    font-size: 16px;
    line-height: 1.12;
    word-break: break-word;
  }

  .tc-id-tool .tc-id-breakdown-card,
  .tc-id-tool .tc-id-composition-card {
    padding: 14px;
    border-radius: 16px;
  }

  .tc-id-tool .tc-table-wrap {
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px;
  }

  .tc-id-tool .tc-id-bar {
    height: 34px;
    border-radius: 10px;
  }

  .tc-id-tool .tc-id-bar span {
    font-size: 9px;
  }

  .tc-id-tool .tc-id-legend {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .tc-id-tool .tc-id-warning {
    font-size: 12px;
    line-height: 1.5;
  }

  .tc-id-tool .tc-id-info-strip {
    margin-top: 4px;
  }

  .tc-id-tool .tc-id-disclaimer {
    margin-top: 0;
    padding: 0 4px;
    font-size: 11.5px;
    line-height: 1.5;
  }
}

@media (max-width: 430px) {
  .tc-id-tool .tc-main.tc-tool-main {
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }

  .tc-id-tool .tc-tool-command {
    grid-template-columns: 1fr !important;
  }

  .tc-id-tool .tc-command-item {
    min-height: 0;
  }

  .tc-id-tool .tc-id-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .tc-id-tool .tc-panel-actions {
    grid-template-columns: 1fr;
  }

  .tc-id-tool .tc-id-bar {
    height: auto;
    min-height: 34px;
    flex-wrap: wrap;
  }

  .tc-id-tool .tc-id-bar span {
    min-height: 34px;
  }
}
