.stmto-app {
  --stmto-red: #9b343a;
  --stmto-red-dark: #7f292f;
  --stmto-red-soft: #fff6f6;
  --stmto-charcoal: #292b30;
  --stmto-ink: #1d1e22;
  --stmto-muted: #767982;
  --stmto-line: #e1e3e7;
  --stmto-bg: #f7f8f9;
  --stmto-white: #fff;
  background: var(--stmto-white);
  border: 1px solid #e3e5e8;
  border-radius: 24px;
  box-shadow: 0 22px 65px rgba(28, 30, 34, 0.09);
  color: var(--stmto-ink);
  direction: rtl;
  font-family: inherit;
  margin: 24px auto;
  max-width: 1180px;
  overflow: hidden;
  overflow-x: clip;
  padding: 18px;
  position: relative;
  width: 100%;
}

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

.stmto-app button,
.stmto-app input,
.stmto-app select,
.stmto-app textarea {
  font: inherit;
}

.stmto-app button:focus-visible,
.stmto-app input:focus-visible,
.stmto-app select:focus-visible,
.stmto-app textarea:focus-visible,
.stmto-app summary:focus-visible,
.stmto-app a:focus-visible {
  outline: 3px solid rgba(155, 52, 58, 0.18);
  outline-offset: 2px;
}

.stmto-app .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

.stmto-workbench,
.stmto-calculator-main,
.stmto-calculator-shell,
.stmto-list-panel,
.stmto-table-wrap {
  max-width: 100%;
  min-width: 0;
}

.stmto-workbench {
  display: grid;
  gap: 18px;
}

/* Visible workflow: calculator, project list, then Smart MTO import. */
.stmto-calculator-shell {
  order: 1;
}

.stmto-list-panel {
  order: 2;
}

.stmto-smart-import {
  order: 3;
}

.stmto-calculator-shell {
  align-items: start;
  background: #fff;
  border: 1px solid var(--stmto-line);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(28, 30, 34, 0.045);
  display: grid;
  direction: ltr;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 215px;
  padding: 18px;
}

.stmto-product-rail {
  border-left: 1px solid #eceef0;
  direction: rtl;
  display: block !important;
  float: none !important;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-left: 18px;
  position: static !important;
  transform: none !important;
  visibility: visible !important;
  width: auto !important;
}

.stmto-tool-heading {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: flex-start;
  margin-bottom: 10px;
  min-height: 36px;
}

.stmto-tool-heading strong {
  color: var(--stmto-ink);
  font-size: 15px;
  font-weight: 900;
}

.stmto-tool-heading-icon,
.stmto-list-heading-icon {
  align-items: center;
  background: rgba(155, 52, 58, 0.08);
  border: 1px solid rgba(155, 52, 58, 0.12);
  border-radius: 9px;
  color: var(--stmto-red);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}

.stmto-tool-heading-icon svg,
.stmto-list-heading-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.stmto-product-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stmto-product-tabs button {
  align-items: center;
  background: #fff;
  background-image: none;
  border: 1px solid #dfe1e5;
  border-radius: 10px;
  color: #45484f;
  cursor: pointer;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  line-height: 1.5;
  min-height: 42px;
  min-width: 0;
  padding: 8px 11px;
  text-align: right;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 100%;
}

.stmto-app .stmto-product-tabs button:hover,
.stmto-app .stmto-product-tabs button:focus-visible {
  border-color: #c7c9ce;
  box-shadow: 0 6px 15px rgba(29, 31, 35, 0.06);
  transform: translateY(-1px);
}

.stmto-product-tabs button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stmto-product-tabs button svg {
  background: linear-gradient(145deg, #fafafa, #f0f1f3);
  border: 1px solid #e1e3e6;
  border-radius: 9px;
  fill: none;
  flex: 0 0 34px;
  height: 34px;
  padding: 5px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 34px;
}

.stmto-app .stmto-product-tabs button.is-active {
  background: var(--stmto-red-soft) !important;
  background-image: none !important;
  border-color: var(--stmto-red) !important;
  box-shadow: 0 7px 18px rgba(155, 52, 58, 0.09);
  color: var(--stmto-red) !important;
}

.stmto-app .stmto-product-tabs button.is-active svg {
  background: #fff;
  border-color: rgba(155, 52, 58, 0.2);
  box-shadow: 0 4px 10px rgba(155, 52, 58, 0.08);
  color: var(--stmto-red);
}

.stmto-product-pair {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stmto-product-pair button {
  align-items: center;
  flex-direction: column-reverse;
  gap: 3px;
  justify-content: center;
  padding: 6px 4px;
  text-align: center;
}

.stmto-product-pair button svg {
  height: 32px;
  width: 32px;
}

.stmto-calculator-main {
  align-self: start;
  direction: rtl;
  display: grid;
  gap: 13px;
  grid-column: 1;
  grid-row: 1;
}

.stmto-form {
  background: #fff;
  border: 1px solid var(--stmto-line);
  border-radius: 13px;
  display: grid;
  gap: 11px;
  padding: 15px;
}

.stmto-product-select {
  display: none;
}

.stmto-dynamic-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.stmto-field {
  min-width: 0;
}

.stmto-field label {
  color: #45484f;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 6px;
}

.stmto-field input,
.stmto-field select,
.stmto-field textarea {
  background: #fff;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  box-shadow: none;
  color: var(--stmto-ink);
  margin: 0;
  outline: 0;
  padding: 0 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  width: 100%;
}

.stmto-field input,
.stmto-field select {
  height: 43px;
}

.stmto-field textarea {
  min-height: 82px;
  padding-bottom: 9px;
  padding-top: 9px;
  resize: vertical;
}

.stmto-field input:focus,
.stmto-field select:focus,
.stmto-field textarea:focus {
  border-color: var(--stmto-red);
  box-shadow: 0 0 0 3px rgba(155, 52, 58, 0.08);
}

.stmto-input-unit {
  position: relative;
}

.stmto-input-unit input {
  direction: ltr;
  padding-left: 66px;
  text-align: left;
}

.stmto-input-unit > span {
  align-items: center;
  background: #f7f7f8;
  border-right: 1px solid #e1e3e7;
  border-radius: 7px 0 0 7px;
  bottom: 1px;
  color: #888c94;
  display: flex;
  font-size: 9px;
  justify-content: center;
  left: 1px;
  max-width: 64px;
  overflow: hidden;
  padding: 0 6px;
  pointer-events: none;
  position: absolute;
  text-overflow: ellipsis;
  top: 1px;
  white-space: nowrap;
}

.stmto-angle-b {
  display: contents;
}

.stmto-angle-b.is-hidden {
  display: none;
}

.stmto-field-note {
  background: #f7f7f8;
  border-radius: 8px;
  border-right: 3px solid var(--stmto-red);
  color: var(--stmto-muted);
  font-size: 9px;
  grid-column: 1 / -1;
  line-height: 1.8;
  margin: 0;
  padding: 8px 10px;
}

.stmto-form-error {
  background: #fff1f2;
  border: 1px solid #f0bfc4;
  border-radius: 8px;
  color: var(--stmto-red);
  font-size: 10px;
  padding: 9px 11px;
}

.stmto-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  line-height: 1.6;
  min-height: 44px;
  min-width: 0;
  padding: 9px 15px;
  text-decoration: none !important;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stmto-button:hover {
  transform: translateY(-1px);
}

.stmto-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.stmto-button-primary,
.stmto-button-quote,
.stmto-app button.stmto-calculate,
.stmto-app button.stmto-print,
.stmto-app button.stmto-button-quote,
.stmto-app .stmto-modal-card button.stmto-button-primary {
  background: linear-gradient(180deg, #a93b42 0%, var(--stmto-red) 100%) !important;
  border-color: var(--stmto-red) !important;
  box-shadow: 0 8px 18px rgba(155, 52, 58, 0.16);
  color: #fff !important;
}

.stmto-button-primary:hover,
.stmto-button-quote:hover,
.stmto-app button.stmto-calculate:hover,
.stmto-app button.stmto-print:hover,
.stmto-app button.stmto-button-quote:hover,
.stmto-app .stmto-modal-card button.stmto-button-primary:hover {
  background: var(--stmto-red-dark) !important;
  border-color: var(--stmto-red-dark) !important;
  color: #fff !important;
}

.stmto-calculate {
  min-height: 44px;
  width: 100%;
}

.stmto-button-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 18px;
  justify-content: center;
}

.stmto-button-icon svg,
.stmto-open-lead svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.stmto-button-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stmto-button-ghost {
  background: #fff;
  border-color: #d8dade;
  color: #4d5057;
}

.stmto-result {
  background: transparent;
  border: 0;
  color: var(--stmto-ink);
  margin: 0;
}

.stmto-result-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 9px;
}

.stmto-result-head > div > span {
  color: var(--stmto-muted);
  display: block;
  font-size: 9px;
}

.stmto-result-head > div > strong {
  display: block;
  font-size: 12px;
  margin-top: 1px;
}

.stmto-result-status {
  background: #f5f6f7;
  border: 1px solid #e2e4e7;
  border-radius: 99px;
  color: #72767e;
  flex: 0 0 auto;
  font-size: 8px;
  padding: 5px 8px;
}

.stmto-result-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stmto-result-grid > div {
  background: #fff;
  border: 1px solid var(--stmto-line);
  border-radius: 11px;
  min-height: 94px;
  min-width: 0;
  padding: 11px;
  position: relative;
}

.stmto-result-grid > div > span:not(.stmto-result-icon),
.stmto-result-grid > div > strong {
  display: block;
  padding-left: 28px;
}

.stmto-result-grid > div > span:not(.stmto-result-icon) {
  color: #555860;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.6;
}

.stmto-result-grid > div > strong {
  color: var(--stmto-ink);
  direction: rtl;
  font-size: 16px;
  font-weight: 900;
  margin-top: 9px;
  overflow-wrap: anywhere;
}

.stmto-result-icon {
  align-items: center;
  color: #777b83;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  left: 9px;
  position: absolute;
  top: 9px;
  width: 26px;
}

.stmto-result-icon svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  width: 23px;
}

.stmto-result-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(170px, 0.33fr) minmax(0, 1fr);
  margin-top: 9px;
}

.stmto-result.is-empty .stmto-result-grid > div {
  background: #fafafb;
  border-style: dashed;
}

.stmto-result.is-empty .stmto-result-grid > div > strong {
  color: #a0a3aa;
}

.stmto-result.is-empty .stmto-result-actions {
  display: none;
}

.stmto-button-add {
  background: var(--stmto-red-soft) !important;
  border-color: rgba(155, 52, 58, 0.28) !important;
  color: var(--stmto-red) !important;
}

.stmto-product-price-guide {
  align-items: center;
  background: #f7f7f8;
  border: 1px solid #e2e4e7;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 120px;
  min-width: 0;
  padding: 8px 10px;
}

.stmto-product-price-guide span,
.stmto-product-price-guide strong {
  display: block;
  overflow-wrap: anywhere;
}

.stmto-product-price-guide span {
  color: var(--stmto-ink);
  font-size: 9px;
  font-weight: 900;
}

.stmto-product-price-guide strong {
  color: var(--stmto-muted);
  font-size: 8px;
  font-weight: 500;
  margin-top: 1px;
}

.stmto-open-lead {
  align-items: center;
  background: var(--stmto-red) !important;
  background-image: none !important;
  border: 1px solid var(--stmto-red) !important;
  border-radius: 8px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  min-width: 0;
  padding: 7px 9px;
  width: 100%;
}

.stmto-app button.stmto-open-lead,
.stmto-app button.stmto-open-lead .stmto-button-label,
.stmto-app button.stmto-open-lead span {
  color: #fff !important;
}

.stmto-app button.stmto-open-lead svg {
  color: #fff !important;
  fill: none !important;
  stroke: #fff !important;
}

.stmto-app button.stmto-open-lead:disabled {
  opacity: 0.55;
}

.stmto-list-panel {
  background: #fff;
  border: 1px solid var(--stmto-line);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(28, 30, 34, 0.045);
  padding: 18px;
}

.stmto-list-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  min-width: 0;
}

.stmto-list-heading > div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
}

.stmto-list-heading h3 {
  color: var(--stmto-ink);
  font-size: 17px;
  font-weight: 900;
  margin: 0;
}

.stmto-project-meta {
  min-width: 0;
  position: relative;
}

.stmto-project-meta summary {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 9px;
  color: #555962;
  cursor: pointer;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  gap: 6px;
  list-style: none;
  min-height: 34px;
  padding: 6px 10px;
}

.stmto-project-meta summary::-webkit-details-marker {
  display: none;
}

.stmto-project-meta summary svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 15px;
}

.stmto-project-fields {
  background: #fff;
  border: 1px solid var(--stmto-line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(28, 30, 34, 0.12);
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  left: 0;
  max-width: min(480px, calc(100vw - 48px));
  padding: 11px;
  position: absolute;
  top: calc(100% + 7px);
  width: 460px;
  z-index: 20;
}

.stmto-table-wrap {
  border: 1px solid #dfe1e5;
  border-radius: 11px;
  overflow: hidden;
  overflow-x: clip;
}

.stmto-table {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 9px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.stmto-table th,
.stmto-table td {
  border-bottom: 1px solid #e2e4e7;
  border-left: 1px solid #eceef0;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 9px 6px;
  text-align: center;
  vertical-align: middle;
}

.stmto-table th:last-child,
.stmto-table td:last-child {
  border-left: 0;
}

.stmto-table th {
  background: #f5f6f7;
  color: #484b52;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.stmto-table th:nth-child(1), .stmto-table td:nth-child(1) { width: 5%; }
.stmto-table th:nth-child(2), .stmto-table td:nth-child(2) { width: 19%; text-align: right; }
.stmto-table th:nth-child(3), .stmto-table td:nth-child(3) { width: 12%; }
.stmto-table th:nth-child(4), .stmto-table td:nth-child(4) { width: 13%; }
.stmto-table th:nth-child(5), .stmto-table td:nth-child(5) { width: 9%; }
.stmto-table th:nth-child(6), .stmto-table td:nth-child(6) { width: 13%; }
.stmto-table th:nth-child(7), .stmto-table td:nth-child(7) { width: 14%; }
.stmto-table th:nth-child(8), .stmto-table td:nth-child(8) { width: 15%; }

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

.stmto-table tbody tr:hover {
  background: #fcfcfd;
}

.stmto-item-info {
  min-width: 0;
}

.stmto-item-info strong,
.stmto-item-info small {
  display: block;
}

.stmto-item-info strong {
  font-size: 9px;
}

.stmto-item-info small {
  color: var(--stmto-muted);
  font-size: 7px;
  line-height: 1.6;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stmto-row-qty {
  background: #fff;
  border: 1px solid #cfd2d6;
  border-radius: 6px;
  direction: ltr;
  height: 30px;
  margin: 0 auto;
  max-width: 58px;
  padding: 3px 4px;
  text-align: center;
  width: 100%;
}

.stmto-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  justify-content: center;
  min-width: 0;
}

.stmto-row-actions button {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dade;
  border-radius: 6px;
  color: #5e626a;
  cursor: pointer;
  display: inline-flex;
  flex: 0 1 28px;
  height: 28px;
  justify-content: center;
  min-width: 24px;
  padding: 4px;
}

.stmto-row-actions button span {
  display: none;
}

.stmto-row-actions button svg {
  fill: none;
  height: 13px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 13px;
}

.stmto-row-actions button[data-action="quote"] {
  background: var(--stmto-red-soft);
  border-color: rgba(155, 52, 58, 0.25);
  color: var(--stmto-red);
}

.stmto-row-actions button[data-action="remove"] {
  color: #b42318;
}

.stmto-empty {
  align-items: center;
  background: #fafafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 135px;
  padding: 22px;
  text-align: center;
}

.stmto-empty-icon {
  align-items: center;
  background: rgba(155, 52, 58, 0.08);
  border: 1px solid rgba(155, 52, 58, 0.12);
  border-radius: 11px;
  color: var(--stmto-red);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 8px;
  width: 42px;
}

.stmto-empty-icon svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 21px;
}

.stmto-empty strong {
  font-size: 11px;
}

.stmto-empty > span:last-child {
  color: var(--stmto-muted);
  font-size: 8px;
  margin-top: 3px;
}

.stmto-summary {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 13px;
}

.stmto-summary > div {
  background: #f7f8f9;
  border: 1px solid #e2e4e7;
  border-radius: 11px;
  min-height: 72px;
  min-width: 0;
  padding: 11px;
}

.stmto-summary > div span,
.stmto-summary > div strong {
  display: block;
}

.stmto-summary > div span {
  color: var(--stmto-muted);
  font-size: 8px;
}

.stmto-summary > div strong {
  color: var(--stmto-ink);
  font-size: 12px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.stmto-summary .stmto-summary-trucks {
  background: linear-gradient(145deg, #a83b42, #8c2d33);
  border-color: var(--stmto-red);
  box-shadow: 0 8px 17px rgba(155, 52, 58, 0.14);
}

.stmto-summary .stmto-summary-trucks span {
  color: rgba(255, 255, 255, 0.72);
}

.stmto-summary .stmto-summary-trucks strong {
  color: #fff;
}

.stmto-capacity-note {
  color: var(--stmto-muted);
  font-size: 8px;
  line-height: 1.8;
  margin: 7px 0 0;
}

.stmto-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.stmto-actions .stmto-button {
  min-height: 46px;
  width: 100%;
}

.stmto-modal {
  inset: 0;
  position: fixed;
  z-index: 999999;
}

.stmto-modal-backdrop {
  backdrop-filter: blur(5px);
  background: rgba(18, 19, 22, 0.72);
  inset: 0;
  position: absolute;
}

.stmto-modal-card {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 20px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
  left: 50%;
  max-height: calc(100vh - 32px);
  max-width: 530px;
  overflow-y: auto;
  padding: 27px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 28px);
}

.stmto-modal-card::before {
  background: var(--stmto-red);
  border-radius: 0 0 5px 5px;
  content: "";
  height: 5px;
  left: 28px;
  position: absolute;
  right: 28px;
  top: 0;
}

.stmto-modal-close {
  align-items: center;
  background: #f2f3f4;
  border: 0;
  border-radius: 50%;
  color: #5c6068;
  cursor: pointer;
  display: flex;
  font-size: 21px;
  height: 34px;
  justify-content: center;
  left: 18px;
  line-height: 1;
  position: absolute;
  top: 18px;
  width: 34px;
}

.stmto-modal-kicker {
  color: var(--stmto-red);
  display: block;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 4px;
}

.stmto-modal-card h3 {
  color: var(--stmto-ink);
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 6px;
  padding-left: 42px;
}

.stmto-modal-copy {
  color: var(--stmto-muted);
  font-size: 10px;
  line-height: 1.9;
  margin: 0 0 13px;
}

.stmto-lead-product-card {
  background: var(--stmto-charcoal);
  border-radius: 12px;
  color: #fff;
  margin-bottom: 14px;
  padding: 11px 13px;
}

.stmto-lead-product-card span,
.stmto-lead-product-card strong,
.stmto-lead-product-card small {
  display: block;
}

.stmto-lead-product-card span { color: #aeb1b7; font-size: 8px; }
.stmto-lead-product-card strong { font-size: 13px; margin: 2px 0; }
.stmto-lead-product-card small { color: #c9cbd0; font-size: 9px; }

.stmto-lead-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.stmto-honeypot {
  height: 1px !important;
  left: -99999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
}

.stmto-lead-status {
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.8;
  padding: 9px 10px;
}

.stmto-lead-status.is-success {
  background: #ecf8f2;
  border: 1px solid #a8ddc3;
  color: #16724e;
}

.stmto-lead-status.is-error {
  background: #fff1f2;
  border: 1px solid #efb7bd;
  color: var(--stmto-red);
}

.stmto-lead-direct-call {
  color: var(--stmto-red) !important;
  display: block;
  font-size: 10px;
  font-weight: 900;
  margin-top: 11px;
  text-align: center;
  text-decoration: none !important;
}

.stmto-lead-privacy {
  color: #8a8e96;
  font-size: 8px;
  line-height: 1.8;
  margin: 8px 0 0;
  text-align: center;
}

.stmto-modal-open {
  overflow: hidden;
}

.stmto-noscript {
  background: #fff1f2;
  border: 1px solid #efb7bd;
  border-radius: 10px;
  color: var(--stmto-red);
  padding: 12px;
}

.stmto-app [hidden],
.stmto-modal[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .stmto-calculator-shell {
    direction: rtl;
    grid-template-columns: 1fr;
  }

  .stmto-product-rail {
    border-bottom: 1px solid #eceef0;
    border-left: 0;
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 15px;
    padding-left: 0;
  }

  .stmto-calculator-main {
    grid-column: 1;
    grid-row: 2;
  }

  .stmto-product-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stmto-product-tabs > button {
    align-items: center;
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
  }

  .stmto-product-pair {
    grid-column: span 2;
  }

  .stmto-product-pair button {
    flex-direction: column-reverse;
  }
}

@media (max-width: 780px) {
  .stmto-table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .stmto-table,
  .stmto-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .stmto-table thead {
    display: none;
  }

  .stmto-table tbody {
    display: grid;
    gap: 10px;
  }

  .stmto-table tr {
    background: #fff;
    border: 1px solid var(--stmto-line);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(27, 29, 33, 0.04);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    overflow: hidden;
    padding-top: 2px;
    position: relative;
    width: 100%;
  }

  .stmto-table td {
    align-items: center;
    border-bottom: 1px solid #eceef1;
    border-left: 0;
    display: flex;
    font-size: 10px;
    gap: 9px;
    justify-content: space-between;
    min-height: 50px;
    min-width: 0;
    padding: 9px 10px;
    text-align: left !important;
    width: auto !important;
  }

  .stmto-table td::before {
    color: var(--stmto-muted);
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 8px;
    font-weight: 800;
    text-align: right;
  }

  .stmto-table td:first-child {
    background: var(--stmto-charcoal);
    border: 0;
    border-radius: 0 0 8px 0;
    color: #fff;
    display: block;
    font-size: 8px;
    left: 0;
    min-height: 0;
    padding: 5px 8px;
    position: absolute;
    top: 0;
    width: auto !important;
    z-index: 1;
  }

  .stmto-table td:first-child::before {
    color: #cfd2d7;
    content: "#";
    margin-left: 3px;
  }

  .stmto-table td:nth-child(2),
  .stmto-table td:nth-child(7),
  .stmto-table td:nth-child(8) {
    grid-column: 1 / -1;
  }

  .stmto-table td:nth-child(2) {
    padding-left: 48px;
  }

  .stmto-item-info {
    flex: 1;
    text-align: right;
  }

  .stmto-item-info small {
    overflow: visible;
    white-space: normal;
  }

  .stmto-table td:nth-child(7) {
    background: #fafafa;
  }

  .stmto-table td:nth-child(8) {
    border-bottom: 0;
  }

  .stmto-row-actions {
    margin-right: auto;
  }

  .stmto-row-actions button {
    flex-basis: 34px;
    height: 34px;
  }

  .stmto-row-qty {
    margin: 0;
    width: 64px;
  }
}

@media (max-width: 640px) {
  .stmto-app {
    border-radius: 16px;
    margin: 12px auto;
    padding: 8px;
  }

  .stmto-calculator-shell,
  .stmto-list-panel {
    border-radius: 14px;
    padding: 12px;
  }

  .stmto-product-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stmto-product-pair {
    grid-column: 1 / -1;
  }

  .stmto-tool-heading strong,
  .stmto-list-heading h3 {
    font-size: 14px;
  }

  .stmto-result-grid,
  .stmto-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stmto-result-actions {
    grid-template-columns: 1fr;
  }

  .stmto-project-fields {
    grid-template-columns: 1fr;
    width: min(430px, calc(100vw - 42px));
  }

  .stmto-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stmto-dynamic-fields,
  .stmto-lead-form {
    grid-template-columns: 1fr;
  }

  .stmto-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stmto-project-meta,
  .stmto-project-meta summary {
    width: 100%;
  }

  .stmto-project-meta summary {
    justify-content: center;
  }

  .stmto-project-fields {
    left: auto;
    right: 0;
    width: 100%;
  }

  .stmto-product-price-guide {
    grid-template-columns: 1fr;
  }

  .stmto-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stmto-modal-card {
    border-radius: 14px;
    max-height: calc(100dvh - 14px);
    padding: 21px 15px;
    width: calc(100% - 12px);
  }

  .stmto-field input,
  .stmto-field select,
  .stmto-field textarea {
    font-size: 16px;
  }
}

/* Industrial calculator interface - v1.6 */
.stmto-app {
  background: linear-gradient(145deg, #f4f5f6 0%, #e9ebed 100%);
  border-color: #d9dce0;
  border-radius: 28px;
  box-shadow: 0 26px 75px rgba(26, 28, 32, 0.13);
  padding: 14px;
}

.stmto-calculator-shell {
  align-items: start;
  background: linear-gradient(145deg, #e8eaec, #dfe2e5);
  border: 1px solid #d0d3d7;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px rgba(28, 30, 34, 0.1);
  direction: ltr;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 270px;
  grid-template-rows: auto 1fr;
  padding: 14px;
}

.stmto-calculator-brandbar {
  align-items: center;
  background: linear-gradient(145deg, #303338, #202226);
  border: 1px solid #17191c;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 7px 16px rgba(27, 29, 33, 0.18);
  color: #fff;
  direction: rtl;
  display: flex;
  gap: 16px;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-content: space-between;
  min-width: 0;
  padding: 11px 14px;
}

.stmto-calculator-name {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.stmto-calculator-name strong,
.stmto-calculator-name small {
  display: block;
}

.stmto-calculator-name strong {
  font-size: 14px;
  font-weight: 900;
}

.stmto-calculator-name small {
  color: #aeb2b8;
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  margin-top: 2px;
  text-align: right;
}

.stmto-calculator-mark {
  align-items: center;
  background: var(--stmto-red);
  border: 1px solid #b9545a;
  border-radius: 10px;
  box-shadow: 0 4px 11px rgba(155, 52, 58, 0.3);
  display: inline-flex;
  flex: 0 0 39px;
  height: 39px;
  justify-content: center;
}

.stmto-calculator-mark svg {
  fill: none;
  height: 21px;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 21px;
}

.stmto-calculator-ready {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  color: #d8dadd;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  gap: 7px;
  padding: 6px 10px;
}

.stmto-calculator-ready i {
  background: #52d187;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(82, 209, 135, 0.12), 0 0 12px rgba(82, 209, 135, 0.45);
  height: 7px;
  width: 7px;
}

.stmto-product-rail {
  background: linear-gradient(145deg, #e4e6e8, #d8dbde);
  border: 1px solid #cdd0d4;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  direction: rtl;
  grid-column: 2;
  grid-row: 2;
  padding: 11px;
}

.stmto-tool-heading {
  margin-bottom: 9px;
  min-height: 31px;
}

.stmto-tool-heading strong {
  font-size: 12px;
}

.stmto-tool-heading-icon {
  background: #f7f8f9;
  border-color: #cfd2d6;
  border-radius: 8px;
  box-shadow: 0 2px 0 #c3c6ca;
  flex-basis: 31px;
  height: 31px;
}

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

.stmto-product-pair {
  display: contents;
}

.stmto-product-tabs button,
.stmto-product-pair button {
  align-items: center;
  background: linear-gradient(180deg, #fff, #f3f4f5);
  border: 1px solid #cfd2d6;
  border-radius: 11px;
  box-shadow: 0 4px 0 #c2c5c9, 0 6px 12px rgba(28, 30, 34, 0.06);
  color: #43464d;
  flex-direction: column-reverse;
  gap: 4px;
  justify-content: center;
  min-height: 72px;
  padding: 7px 5px;
  text-align: center;
}

.stmto-app .stmto-product-tabs button:hover,
.stmto-app .stmto-product-tabs button:focus-visible {
  background: linear-gradient(180deg, #ad4248, #963137) !important;
  background-color: var(--stmto-red) !important;
  border-color: #84272d !important;
  box-shadow: 0 3px 0 #702127, 0 7px 15px rgba(155, 52, 58, 0.2);
  color: #fff !important;
  transform: translateY(1px);
}

/* Keep Elementor/theme hover rules from making white labels and icons
   disappear on the light product keys. */
.stmto-app .stmto-product-tabs button:hover > span,
.stmto-app .stmto-product-tabs button:focus-visible > span {
  color: #fff !important;
}

.stmto-app .stmto-product-tabs button:hover svg,
.stmto-app .stmto-product-tabs button:focus-visible svg {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  stroke: #fff !important;
}

.stmto-app .stmto-product-tabs button:hover svg *,
.stmto-app .stmto-product-tabs button:focus-visible svg * {
  stroke: currentColor !important;
}

.stmto-product-tabs button svg,
.stmto-product-pair button svg {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex-basis: 27px;
  height: 27px;
  padding: 1px;
  stroke-width: 1.55;
  width: 27px;
}

.stmto-app .stmto-product-tabs button.is-active {
  background: linear-gradient(180deg, #ad4248, #963137) !important;
  border-color: #84272d !important;
  box-shadow: 0 4px 0 #702127, 0 7px 15px rgba(155, 52, 58, 0.2);
  color: #fff !important;
  transform: translateY(0);
}

.stmto-app .stmto-product-tabs button.is-active svg {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
}

.stmto-calculator-main {
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1;
  grid-row: 2;
}

.stmto-result {
  background: radial-gradient(circle at 12% 0, rgba(155, 52, 58, 0.2), transparent 33%), linear-gradient(145deg, #292c31, #17191d);
  border: 3px solid #3b3f45;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #0e0f11, inset 0 9px 25px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(26, 28, 31, 0.13);
  color: #fff;
  order: 1;
  padding: 15px;
}

.stmto-result-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 11px;
  padding-bottom: 10px;
}

.stmto-result-head > div > span {
  color: #92979f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.stmto-result-head > div > strong {
  color: #fff;
  font-size: 14px;
}

.stmto-result-status {
  background: rgba(82, 209, 135, 0.08);
  border-color: rgba(82, 209, 135, 0.18);
  color: #8ee7b4;
}

.stmto-result-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(200px, 1.45fr) repeat(3, minmax(0, 1fr));
}

.stmto-result-grid > div,
.stmto-result.is-empty .stmto-result-grid > div {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border-style: solid;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.12);
  min-height: 84px;
  padding: 10px;
}

.stmto-result-grid > div > span:not(.stmto-result-icon) {
  color: #9ea3aa;
}

.stmto-result-grid > div > strong,
.stmto-result.is-empty .stmto-result-grid > div > strong {
  color: #dff3e5;
  direction: rtl;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stmto-result-grid .stmto-result-primary {
  background: linear-gradient(145deg, rgba(155, 52, 58, 0.25), rgba(255, 255, 255, 0.045));
  border-color: rgba(183, 82, 89, 0.3);
}

.stmto-result-grid .stmto-result-primary strong {
  color: #fff;
  font-size: 21px;
}

.stmto-result-icon {
  color: #a9adb4;
}

.stmto-result-primary .stmto-result-icon {
  color: #e69b9f;
}

.stmto-result-actions,
.stmto-result.is-empty .stmto-result-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(175px, 0.36fr) minmax(0, 1fr);
  margin-top: 9px;
}

.stmto-memory-key,
.stmto-key-symbol {
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.stmto-button-add {
  background: linear-gradient(180deg, #f9fafb, #e9ebed) !important;
  border-color: #c7cbd0 !important;
  box-shadow: 0 3px 0 #b5b9be;
  color: var(--stmto-red) !important;
}

.stmto-product-price-guide {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.08);
}

.stmto-product-price-guide span {
  color: #fff;
}

.stmto-product-price-guide strong {
  color: #a8adb4;
}

.stmto-form {
  background: linear-gradient(145deg, #e3e5e7, #d8dbde);
  border: 1px solid #c9cdd1;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  order: 2;
  padding: 13px;
}

.stmto-dynamic-fields {
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.stmto-field label {
  color: #484c53;
  font-size: 9px;
  margin-bottom: 5px;
}

.stmto-field input,
.stmto-field select {
  background: linear-gradient(180deg, #fff, #f5f6f7);
  border-color: #c6cacf;
  border-radius: 9px;
  box-shadow: inset 0 2px 5px rgba(28, 30, 34, 0.05), 0 2px 0 rgba(255, 255, 255, 0.7);
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
  height: 52px;
  text-align: left;
}

.stmto-field select {
  direction: rtl;
  font-family: inherit;
  font-size: 11px;
  text-align: right;
}

.stmto-input-unit > span {
  background: #eceef0;
  border-color: #cfd2d6;
  color: #777b83;
  font-size: 8px;
  font-weight: 700;
}

.stmto-command-row {
  display: grid;
  gap: 9px;
  grid-column: 1 / -1;
  grid-template-columns: 115px minmax(0, 1fr);
}

.stmto-key,
.stmto-calculate {
  border-radius: 10px;
  min-height: 52px;
}

.stmto-key {
  align-items: center;
  background: linear-gradient(180deg, #fff, #eef0f2);
  border: 1px solid #c5c9ce;
  box-shadow: 0 4px 0 #b4b8bd;
  color: #5c6068;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  font-size: 8px;
  font-weight: 800;
  gap: 0;
  justify-content: center;
  padding: 6px 9px;
}

.stmto-key:hover {
  box-shadow: 0 3px 0 #aeb2b7;
  transform: translateY(1px);
}

.stmto-key-symbol {
  color: var(--stmto-red);
  font-size: 17px;
}

.stmto-calculate {
  box-shadow: 0 4px 0 #702127, 0 7px 15px rgba(155, 52, 58, 0.18) !important;
  font-size: 12px;
}

.stmto-equals {
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.stmto-list-panel {
  background: linear-gradient(145deg, #fdfdfd, #f3f4f5);
  border-color: #d5d8dc;
  border-radius: 19px;
  box-shadow: 0 12px 29px rgba(28, 30, 34, 0.08);
}

.stmto-list-heading > div:first-child {
  align-items: center;
}

.stmto-list-heading h3 {
  font-size: 15px;
}

.stmto-list-heading p {
  color: var(--stmto-muted);
  font-size: 8px;
  margin: 1px 0 0;
}

.stmto-memory-badge {
  align-items: center;
  background: linear-gradient(145deg, #32353a, #222428);
  border: 1px solid #17191c;
  border-radius: 10px;
  box-shadow: 0 4px 0 #151619;
  color: #fff;
  direction: ltr;
  display: inline-flex;
  flex: 0 0 42px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
}

.stmto-summary > div {
  background: linear-gradient(180deg, #fff, #eef0f2);
  border-color: #d1d4d8;
  box-shadow: 0 3px 0 #c7cacf;
}

.stmto-actions .stmto-button {
  box-shadow: 0 3px 0 #bfc3c8;
}

.stmto-actions .stmto-print,
.stmto-actions .stmto-button-quote {
  box-shadow: 0 3px 0 #702127 !important;
}

@media (max-width: 920px) {
  .stmto-calculator-shell {
    direction: rtl;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .stmto-calculator-brandbar {
    grid-column: 1;
    grid-row: 1;
  }

  .stmto-product-rail {
    grid-column: 1;
    grid-row: 2;
  }

  .stmto-calculator-main {
    grid-column: 1;
    grid-row: 3;
  }

  /* Mobile workflow: enter product details before viewing the result. */
  .stmto-calculator-main > .stmto-form {
    order: 1;
  }

  .stmto-calculator-main > .stmto-result {
    order: 2;
  }

  .stmto-product-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stmto-product-tabs button,
  .stmto-product-pair button {
    min-height: 66px;
  }

  .stmto-result-grid {
    grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .stmto-calculator-brandbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stmto-calculator-ready {
    align-self: stretch;
    justify-content: center;
  }

  .stmto-product-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stmto-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stmto-result-grid .stmto-result-primary {
    grid-column: 1 / -1;
  }

  .stmto-result-actions,
  .stmto-result.is-empty .stmto-result-actions {
    grid-template-columns: 1fr;
  }

  .stmto-command-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .stmto-app {
    border-radius: 17px;
    padding: 6px;
  }

  .stmto-calculator-shell {
    border-radius: 14px;
    padding: 8px;
  }

  .stmto-calculator-name strong {
    font-size: 12px;
  }

  .stmto-result {
    padding: 10px;
  }

  .stmto-result-grid > div,
  .stmto-result.is-empty .stmto-result-grid > div {
    min-height: 78px;
  }

  .stmto-result-grid .stmto-result-primary strong {
    font-size: 18px;
  }
}

/* Smart MTO import — added in 1.7.1 without changing the 1.6.1 calculator UI. */
.stmto-smart-import {
  background: linear-gradient(145deg, #fff, #f6f7f8);
  border: 1px solid #d9dce0;
  border-radius: 19px;
  box-shadow: 0 10px 28px rgba(28, 30, 34, 0.06);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
}

.stmto-import-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
}

.stmto-import-heading > div {
  min-width: 0;
}

.stmto-import-heading-icon,
.stmto-import-upload,
.stmto-import-lock {
  align-items: center;
  background: rgba(155, 52, 58, 0.09);
  border: 1px solid rgba(155, 52, 58, 0.14);
  border-radius: 11px;
  color: var(--stmto-red);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}

.stmto-import-heading-icon svg,
.stmto-import-upload svg,
.stmto-import-lock svg,
.stmto-import-tabs svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.stmto-import-heading h3,
.stmto-import-review-head h4,
.stmto-import-lead-box h4 {
  color: var(--stmto-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
}

.stmto-import-heading p,
.stmto-import-review-head p,
.stmto-import-lead-box p {
  color: var(--stmto-muted);
  font-size: 10px;
  margin: 2px 0 0;
}

.stmto-import-kicker {
  color: var(--stmto-red);
  display: block;
  font-size: 8px;
  font-weight: 900;
}

.stmto-import-ai {
  align-items: center;
  background: linear-gradient(145deg, #32353a, #222428);
  border-radius: 9px;
  box-shadow: 0 3px 0 #151619;
  color: #fff;
  direction: ltr;
  display: inline-flex;
  flex: 0 0 38px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-right: auto;
}

.stmto-import-tabs {
  background: #eceef0;
  border: 1px solid #dde0e3;
  border-radius: 11px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
  max-width: 520px;
  padding: 4px;
}

.stmto-import-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #666a72;
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 7px 10px;
}

.stmto-import-tabs button.is-active,
.stmto-import-tabs button:hover {
  background: #fff;
  box-shadow: 0 3px 9px rgba(28, 30, 34, 0.08);
  color: var(--stmto-red);
}

.stmto-import-tabs svg {
  height: 17px;
  width: 17px;
}

.stmto-import-pane,
.stmto-import-command,
.stmto-import-lead-gate,
.stmto-import-review {
  max-width: 100%;
  min-width: 0;
}

.stmto-import-dropzone {
  align-items: center;
  background: #fafbfb;
  border: 1.5px dashed #c5c9ce;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 20px;
  position: relative;
  text-align: center;
  transition: 0.18s ease;
}

.stmto-import-dropzone:hover,
.stmto-import-dropzone.is-dragging {
  background: #fff8f8;
  border-color: var(--stmto-red);
}

.stmto-import-dropzone input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.stmto-import-upload {
  height: 46px;
  margin-bottom: 7px;
  width: 46px;
}

.stmto-import-dropzone strong {
  color: #33363c;
  font-size: 12px;
  font-weight: 900;
}

.stmto-import-dropzone small {
  color: var(--stmto-muted);
  font-size: 9px;
}

.stmto-import-dropzone em {
  background: #eceef0;
  border-radius: 20px;
  color: #6f737b;
  font-size: 8px;
  font-style: normal;
  margin-top: 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 3px 10px;
}

.stmto-import-dropzone em.has-file {
  background: #e8f6ec;
  color: #176e38;
}

.stmto-import-text-label {
  color: #484c53;
  display: block;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stmto-app .stmto-import-pane textarea {
  background: #fff !important;
  border: 1px solid #cfd2d7 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 2px 5px rgba(28, 30, 34, 0.035) !important;
  color: #24262b !important;
  display: block;
  font-size: 13px !important;
  min-height: 135px;
  padding: 13px !important;
  resize: vertical;
  width: 100% !important;
}

.stmto-import-command {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.stmto-import-command .stmto-button {
  flex: 0 0 auto;
  min-width: 190px;
}

.stmto-import-status,
.stmto-import-lead-status {
  color: #666a72;
  font-size: 10px;
  font-weight: 700;
  margin: 0;
}

.stmto-import-status.is-error,
.stmto-import-lead-status.is-error {
  color: #b42318;
}

.stmto-import-status.is-success,
.stmto-import-lead-status.is-success {
  color: #176e38;
}

.stmto-import-lead-gate,
.stmto-import-review {
  border-top: 1px solid var(--stmto-line);
  margin-top: 18px;
  padding-top: 18px;
}

.stmto-import-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

.stmto-import-stats > div {
  background: linear-gradient(180deg, #fff, #f1f3f4);
  border: 1px solid #d8dbe0;
  border-radius: 10px;
  box-shadow: 0 2px 0 #ced1d5;
  padding: 10px 12px;
}

.stmto-import-stats strong,
.stmto-import-stats span {
  display: block;
}

.stmto-import-stats strong {
  color: var(--stmto-red);
  font-size: 17px;
  font-weight: 900;
}

.stmto-import-stats span {
  color: var(--stmto-muted);
  font-size: 8px;
}

.stmto-import-lead-box {
  align-items: center;
  background: linear-gradient(145deg, #32353a, #25272b);
  border: 1px solid #191b1e;
  border-radius: 14px;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.4fr);
  padding: 18px;
}

.stmto-import-lead-box > div {
  min-width: 0;
}

.stmto-import-lead-box h4 {
  color: #fff;
  margin-top: 7px;
}

.stmto-import-lead-box > div p {
  color: #c8cbd0;
}

.stmto-import-lock {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: #f1b4b8;
  height: 38px;
  width: 38px;
}

.stmto-import-lead-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.stmto-import-lead-form .stmto-field {
  min-width: 0;
}

.stmto-import-lead-form .stmto-field label {
  color: #e6e7e9;
}

.stmto-app .stmto-import-lead-form .stmto-field input {
  background: #fff !important;
  border-color: #555960 !important;
  box-shadow: none !important;
  direction: rtl;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  height: 43px;
  text-align: right;
}

.stmto-import-lead-form .stmto-button,
.stmto-import-lead-form .stmto-import-lead-status {
  grid-column: 1 / -1;
}

.stmto-import-lead-status.is-error {
  color: #ffb8bc;
}

.stmto-import-privacy {
  color: #777b83;
  font-size: 8px;
  margin: 7px 2px 0;
}

.stmto-import-review-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stmto-import-review-head > label {
  color: #555960;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.stmto-import-review-head input,
.stmto-import-checkbox input {
  accent-color: var(--stmto-red);
}

.stmto-import-review-list {
  display: grid;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}

.stmto-import-review-row {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 10px;
  display: grid;
  gap: 9px;
  grid-template-columns: 28px 76px minmax(160px, 1.4fr) 60px 115px 115px;
  max-width: 100%;
  min-width: 0;
  padding: 10px;
}

.stmto-import-review-row.is-unknown {
  background: #fffafa;
  border-color: #e8c3c6;
  grid-template-columns: 76px minmax(180px, 1.4fr) minmax(150px, 1fr) auto;
}

.stmto-import-review-row > div {
  min-width: 0;
}

.stmto-import-review-row > div > small,
.stmto-import-review-state small {
  color: var(--stmto-muted);
  display: block;
  font-size: 7px;
}

.stmto-import-review-row > div > strong {
  color: #2d3035;
  display: block;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.stmto-import-review-state {
  align-items: center;
  display: flex;
  gap: 5px;
}

.stmto-import-review-state i {
  align-items: center;
  background: #e6f4ea;
  border-radius: 50%;
  color: #176e38;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  height: 22px;
  justify-content: center;
}

.is-unknown .stmto-import-review-state i {
  background: #fff0dd;
  color: #945308;
}

.stmto-import-review-product strong,
.stmto-import-review-product span {
  display: block;
  overflow-wrap: anywhere;
}

.stmto-import-review-product strong {
  color: #292b30;
  font-size: 10px;
  font-weight: 900;
}

.stmto-import-review-product span {
  color: var(--stmto-muted);
  font-size: 8px;
}

.stmto-import-review-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.stmto-import-review-actions .stmto-button-primary {
  flex: 1 1 auto;
}

@media (max-width: 780px) {
  .stmto-smart-import {
    padding: 14px;
  }

  .stmto-import-lead-box {
    grid-template-columns: 1fr;
  }

  .stmto-import-review-row,
  .stmto-import-review-row.is-unknown {
    grid-template-columns: 32px 1fr;
    padding: 12px;
  }

  .stmto-import-review-row .stmto-import-review-state {
    grid-column: 2;
  }

  .stmto-import-review-row .stmto-import-review-product,
  .stmto-import-review-row > div:not(.stmto-import-review-state):not(.stmto-import-review-product):not(.stmto-import-checkbox),
  .stmto-import-review-row.is-unknown .stmto-import-review-state,
  .stmto-import-review-row.is-unknown .stmto-button {
    grid-column: 1 / -1;
  }

  .stmto-import-review-row > div:not(.stmto-import-review-state):not(.stmto-import-review-product):not(.stmto-import-checkbox) {
    align-items: center;
    border-top: 1px dashed #e1e3e7;
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
  }
}

@media (max-width: 600px) {
  .stmto-import-command,
  .stmto-import-review-head,
  .stmto-import-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stmto-import-command .stmto-button,
  .stmto-import-review-actions .stmto-button {
    min-width: 0;
    width: 100%;
  }

  .stmto-import-lead-form {
    grid-template-columns: 1fr;
  }

  .stmto-import-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stmto-import-stats > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .stmto-import-heading {
    align-items: flex-start;
  }

  .stmto-import-ai {
    display: none;
  }

  .stmto-import-tabs,
  .stmto-import-stats {
    grid-template-columns: 1fr;
  }

  .stmto-import-stats > div:last-child {
    grid-column: auto;
  }
}

/* Live site pricing — version 1.8.0. */
.stmto-live-price {
  align-items: center;
  background: linear-gradient(135deg, #fff8f8, #f7ecee);
  border: 1px solid rgba(155, 52, 58, 0.25);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  margin-top: 10px;
  min-width: 0;
  padding: 11px 13px;
}

.stmto-live-price[hidden] {
  display: none !important;
}

.stmto-live-price-icon {
  align-items: center;
  background: var(--stmto-red);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.stmto-live-price-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 22px;
}

.stmto-live-price > div {
  min-width: 0;
}

.stmto-live-price > div > span,
.stmto-live-price > div > strong,
.stmto-live-price > div > small {
  display: block;
  overflow-wrap: anywhere;
}

.stmto-live-price > div > span {
  color: #6d5356;
  font-size: 8px;
  font-weight: 800;
}

.stmto-live-price > div > strong {
  color: var(--stmto-red);
  font-size: 17px;
  font-weight: 900;
  margin-top: 3px;
}

.stmto-live-price > div > small {
  color: #77727a;
  font-size: 8px;
  line-height: 1.7;
  margin-top: 2px;
}

.stmto-live-price-link {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(155, 52, 58, 0.3);
  border-radius: 8px;
  color: var(--stmto-red) !important;
  display: inline-flex;
  font-size: 8px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  text-decoration: none !important;
  white-space: nowrap;
}

.stmto-live-price-link:hover {
  background: var(--stmto-red) !important;
  color: #fff !important;
}

.stmto-table th:nth-child(1), .stmto-table td:nth-child(1) { width: 4%; }
.stmto-table th:nth-child(2), .stmto-table td:nth-child(2) { width: 14%; text-align: right; }
.stmto-table th:nth-child(3), .stmto-table td:nth-child(3) { width: 8%; }
.stmto-table th:nth-child(4), .stmto-table td:nth-child(4) { width: 9%; }
.stmto-table th:nth-child(5), .stmto-table td:nth-child(5) { width: 7%; }
.stmto-table th:nth-child(6), .stmto-table td:nth-child(6) { width: 9%; }
.stmto-table th:nth-child(7), .stmto-table td:nth-child(7) { width: 10%; }
.stmto-table th:nth-child(8), .stmto-table td:nth-child(8) { width: 10%; }
.stmto-table th:nth-child(9), .stmto-table td:nth-child(9) { width: 12%; }
.stmto-table th:nth-child(10), .stmto-table td:nth-child(10) { width: 17%; }

.stmto-price-unit,
.stmto-price-unit small,
.stmto-price-total {
  display: block;
  overflow-wrap: anywhere;
}

.stmto-price-unit a {
  color: var(--stmto-red) !important;
  font-weight: 900;
  text-decoration: none !important;
}

.stmto-price-unit small {
  color: var(--stmto-muted);
  font-size: 7px;
  margin-top: 2px;
}

.stmto-price-total {
  color: #26352d;
  font-size: 9px;
  font-weight: 900;
}

.stmto-price-missing {
  color: #8b8e95;
  font-size: 8px;
}

.stmto-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stmto-summary .stmto-summary-price {
  background: linear-gradient(145deg, #31343a, #202226);
  border-color: #17191c;
  box-shadow: 0 3px 0 #151619;
}

.stmto-summary .stmto-summary-price span {
  color: rgba(255, 255, 255, 0.7);
}

.stmto-summary .stmto-summary-price strong {
  color: #fff;
}

@media (max-width: 780px) {
  .stmto-table td:nth-child(8),
  .stmto-table td:nth-child(9),
  .stmto-table td:nth-child(10) {
    grid-column: 1 / -1;
  }

  .stmto-table td:nth-child(8) {
    border-bottom: 1px solid #eceef1;
  }

  .stmto-table td:nth-child(9) {
    background: #f8f2f3;
  }

  .stmto-table td:nth-child(10) {
    border-bottom: 0;
  }

  .stmto-price-unit,
  .stmto-price-total,
  .stmto-price-missing {
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .stmto-live-price {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .stmto-live-price-icon {
    height: 38px;
    width: 38px;
  }

  .stmto-live-price-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .stmto-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
