.smtoc-wrap,
.smtoc-wrap * {
  box-sizing: border-box;
}

.smtoc-wrap {
  --smtoc-text: #222;
  --smtoc-muted: #666;
  --smtoc-line: #e7e3dc;
  --smtoc-soft: #f7f3ed;
  --smtoc-card: #fff;
  --smtoc-accent: #1f1f1f;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--smtoc-text);
  max-width: 980px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.45;
}

.smtoc-head {
  background: linear-gradient(135deg, #f7f3ed, #ffffff);
  border: 1px solid var(--smtoc-line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.smtoc-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--smtoc-muted);
  margin-bottom: 5px;
}

.smtoc-head h2 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 600;
}

.smtoc-head p {
  margin: 0;
  max-width: 720px;
  color: var(--smtoc-muted);
}

.smtoc-card,
.smtoc-results {
  background: var(--smtoc-card);
  border: 1px solid var(--smtoc-line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.smtoc-card h3,
.smtoc-results h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

.smtoc-grid {
  display: grid;
  gap: 14px;
}

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

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

.smtoc-top-gap {
  margin-top: 14px;
}

.smtoc-wrap label {
  display: block;
  font-size: 13px;
  color: #3a3a3a;
  font-weight: 500;
}

.smtoc-wrap label span {
  color: var(--smtoc-muted);
  font-weight: 400;
}

.smtoc-wrap input,
.smtoc-wrap select,
.smtoc-wrap textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d8d2c8;
  border-radius: 12px;
  padding: 11px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  background: #fff;
  color: var(--smtoc-text);
  outline: none;
}

.smtoc-wrap input:focus,
.smtoc-wrap select:focus,
.smtoc-wrap textarea:focus {
  border-color: #999083;
  box-shadow: 0 0 0 3px rgba(120, 110, 96, .12);
}

.smtoc-custom-plate {
  display: none;
}

.smtoc-custom-on .smtoc-custom-plate {
  display: block;
}

.smtoc-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.smtoc-check input {
  width: auto;
  margin: 3px 0 0;
}

.smtoc-result-empty {
  color: var(--smtoc-muted);
  background: var(--smtoc-soft);
  border-radius: 12px;
  padding: 14px;
}

.smtoc-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.smtoc-stat {
  background: var(--smtoc-soft);
  border-radius: 14px;
  padding: 12px;
}

.smtoc-stat strong {
  display: block;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 600;
}

.smtoc-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--smtoc-muted);
}

.smtoc-svg-wrap {
  border: 1px solid var(--smtoc-line);
  background: #fafafa;
  border-radius: 14px;
  padding: 12px;
  overflow: auto;
}

.smtoc-svg-wrap svg {
  display: block;
  width: 100%;
  min-width: 420px;
  max-height: 480px;
}

.smtoc-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

.smtoc-detail-table th,
.smtoc-detail-table td {
  text-align: left;
  border-bottom: 1px solid var(--smtoc-line);
  padding: 9px 6px;
}

.smtoc-detail-table th {
  color: var(--smtoc-muted);
  font-weight: 500;
}

.smtoc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.smtoc-submit,
.smtoc-pdf-link {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--smtoc-accent);
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 18px;
  text-decoration: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smtoc-submit[disabled] {
  opacity: .55;
  cursor: wait;
}

.smtoc-submit-state {
  color: var(--smtoc-muted);
  font-size: 14px;
}

.smtoc-submit-state.smtoc-error {
  color: #9b1c1c;
}

.smtoc-submit-state.smtoc-success {
  color: #176b36;
}

@media (max-width: 760px) {
  .smtoc-grid-2,
  .smtoc-grid-3,
  .smtoc-summary {
    grid-template-columns: 1fr;
  }
  .smtoc-head h2 {
    font-size: 24px;
  }
  .smtoc-card,
  .smtoc-results,
  .smtoc-head {
    padding: 15px;
    border-radius: 14px;
  }
}

.smtoc-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.smtoc-lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--smtoc-line);
  border-radius: 999px;
  background: #fff;
  flex: 0 0 auto;
}

.smtoc-lang {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--smtoc-muted);
  padding: 7px 11px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.smtoc-lang.is-active {
  background: var(--smtoc-accent);
  color: #fff;
}

.smtoc-label-text {
  color: #3a3a3a !important;
  font-weight: 500 !important;
}

.smtoc-unit {
  color: var(--smtoc-muted) !important;
  font-weight: 400 !important;
}

@media (max-width: 640px) {
  .smtoc-head {
    flex-direction: column;
  }
}

.smtoc-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--smtoc-muted);
  font-weight: 400;
}

.smtoc-preview-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--smtoc-muted);
}

.smtoc-top-upload-card input[type="file"] {
  padding: 9px 10px;
  background: #fbfaf8;
}

.smtoc-help,
.smtoc-mode-note {
  display: block;
  margin-top: 7px;
  color: var(--smtoc-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

.smtoc-help-block {
  margin: -4px 0 14px;
}

.smtoc-custom-grid-card,
.smtoc-custom-grid-only {
  display: none;
}

.smtoc-grid-mode-custom .smtoc-custom-grid-card,
.smtoc-grid-mode-custom .smtoc-custom-grid-only {
  display: block;
}

.smtoc-grid-buttons {
  display: flex;
  gap: 8px;
  align-items: end;
  padding-top: 22px;
}

.smtoc-secondary {
  appearance: none;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #fff;
  color: var(--smtoc-text);
  padding: 10px 13px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.smtoc-secondary:hover {
  background: var(--smtoc-soft);
}

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

.smtoc-grid-dim-group {
  border: 1px solid var(--smtoc-line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfaf8;
}

.smtoc-grid-dim-group h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

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

.smtoc-dim-list label span {
  font-size: 12px;
}

.smtoc-dim-list input {
  padding: 8px 9px;
  border-radius: 10px;
  font-size: 14px;
}

.smtoc-grid-status {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smtoc-grid-status span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--smtoc-soft);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--smtoc-muted);
}

.smtoc-error-inline {
  color: #8a2d2d;
  background: #fff2f2;
  border: 1px solid #f1c7c7;
}

@media (max-width: 760px) {
  .smtoc-grid-editor {
    grid-template-columns: 1fr;
  }
  .smtoc-dim-list {
    grid-template-columns: 1fr;
  }
  .smtoc-grid-buttons {
    padding-top: 0;
    align-items: stretch;
    flex-direction: column;
  }
}

.smtoc-mini-title {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--smtoc-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.smtoc-board-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.smtoc-board-choice {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d8d2c8;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.smtoc-board-choice:hover,
.smtoc-board-choice:has(input:checked) {
  border-color: #999083;
  background: #faf8f4;
  box-shadow: 0 0 0 3px rgba(120, 110, 96, .10);
}

.smtoc-board-choice input {
  width: auto;
  margin: 4px 0 0;
}

.smtoc-board-main {
  display: block;
  color: var(--smtoc-text) !important;
  font-size: 18px;
  font-weight: 600 !important;
  line-height: 1.2;
}

.smtoc-board-sub {
  display: block;
  margin-top: 4px;
  color: var(--smtoc-muted) !important;
  font-size: 13px;
}

@media (max-width: 720px) {
  .smtoc-board-choices {
    grid-template-columns: 1fr;
  }
}

/* v1.6 readability modes */
.smtoc-grid-mode-simple .smtoc-custom-grid-card,
.smtoc-grid-mode-simple .smtoc-individual-card,
.smtoc-grid-mode-simple .smtoc-custom-grid-only {
  display: none;
}

.smtoc-grid-mode-custom .smtoc-individual-card,
.smtoc-grid-mode-individual .smtoc-custom-grid-card,
.smtoc-grid-mode-individual .smtoc-custom-grid-only,
.smtoc-grid-mode-individual .smtoc-project-size-card {
  display: none;
}

.smtoc-grid-mode-custom .smtoc-custom-grid-card,
.smtoc-grid-mode-custom .smtoc-custom-grid-only,
.smtoc-grid-mode-individual .smtoc-individual-card {
  display: block;
}

.smtoc-simple-only {
  display: none;
}

.smtoc-grid-mode-simple .smtoc-simple-only {
  display: block;
}

.smtoc-mode-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--smtoc-soft);
  border: 1px solid var(--smtoc-line);
  border-radius: 13px;
  padding: 11px 12px;
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--smtoc-muted);
}

.smtoc-mode-tip strong {
  color: var(--smtoc-text);
  white-space: nowrap;
}

.smtoc-elements-editor {
  border: 1px solid var(--smtoc-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fbfaf8;
}

.smtoc-elements-head,
.smtoc-element-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr .75fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
}

.smtoc-elements-head {
  background: var(--smtoc-soft);
  color: var(--smtoc-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.smtoc-element-row + .smtoc-element-row {
  border-top: 1px solid var(--smtoc-line);
}

.smtoc-element-row label span {
  display: none;
}

.smtoc-element-row input {
  margin-top: 0;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.smtoc-remove-element {
  appearance: none;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #fff;
  color: var(--smtoc-muted);
  padding: 9px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.smtoc-remove-element:hover {
  background: #fff2f2;
  color: #8a2d2d;
  border-color: #f1c7c7;
}

.smtoc-elements-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .smtoc-elements-head {
    display: none;
  }
  .smtoc-element-row {
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--smtoc-line);
  }
  .smtoc-element-row label span {
    display: block;
    font-size: 12px;
  }
  .smtoc-remove-element {
    grid-column: 1 / -1;
  }
}

.smtoc-individual-card {
  display: none;
}
.smtoc-send-center{margin-left:10px;padding:9px 14px;border:0;border-radius:8px;background:#23272d;color:#fff;font:inherit;font-weight:700;cursor:pointer}.smtoc-send-center:hover{opacity:.9}.smtoc-send-center:disabled{cursor:default;opacity:.7}.smtoc-send-center.is-sent{background:#247a42}

/* v1.8.3 – graphical project and board selectors */
.smtoc-top-upload-card .smtoc-grid-2{grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);align-items:start}
.smtoc-mode-picker>.smtoc-label-text{display:block;margin-bottom:8px;font-size:13px;color:#3a3a3a;font-weight:500}
.smtoc-mode-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.smtoc-mode-choice{position:relative;min-height:172px;border:1px solid #ddd8d0;border-radius:16px;padding:14px;background:#fff;cursor:pointer;transition:.18s ease;display:flex!important;flex-direction:column;align-items:center;text-align:center}
.smtoc-mode-choice:hover{border-color:#aaa39a;transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.05)}
.smtoc-mode-choice input,.smtoc-board-choice input{position:absolute;opacity:0;pointer-events:none}
.smtoc-mode-choice:has(input:checked){border:2px solid #222;padding:13px;box-shadow:0 0 0 4px rgba(0,0,0,.055)}
.smtoc-mode-choice:has(input:checked):after{content:'✓';position:absolute;right:10px;top:10px;width:22px;height:22px;border-radius:50%;background:#222;color:#fff;font-size:13px;line-height:22px;text-align:center}
.smtoc-mode-choice strong{display:block;margin-top:10px;font-size:13px;line-height:1.25;color:#222;font-weight:600}
.smtoc-mode-choice small{display:block;margin-top:5px;font-size:11px;line-height:1.3;color:#777;font-weight:400}
.smtoc-mode-visual{height:78px;width:100%;display:flex;align-items:center;justify-content:center;position:relative}
.smtoc-mode-visual i{display:block;border:1.5px solid #222;background:#f3f3f3;border-radius:3px}
.smtoc-mode-visual-simple i{width:72px;height:48px}
.smtoc-mode-visual-grid{display:grid;grid-template-columns:repeat(3,24px);grid-template-rows:repeat(2,28px);gap:3px}
.smtoc-mode-visual-grid i{width:24px;height:28px}
.smtoc-mode-visual-elements i{position:absolute}
.smtoc-mode-visual-elements i:nth-child(1){width:66px;height:30px;left:12px;top:8px}
.smtoc-mode-visual-elements i:nth-child(2){width:38px;height:34px;left:28px;top:42px}
.smtoc-mode-visual-elements i:nth-child(3){width:28px;height:28px;right:10px;top:38px}
.smtoc-board-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.smtoc-board-choice{position:relative;display:grid!important;grid-template-columns:96px 1fr 28px;align-items:center;gap:14px;min-height:142px;padding:15px;border:1px solid #ddd8d0;border-radius:16px;background:#fff;cursor:pointer;transition:.18s ease}
.smtoc-board-choice:hover{border-color:#aaa39a;box-shadow:0 8px 22px rgba(0,0,0,.05)}
.smtoc-board-choice:has(input:checked){border:2px solid #222;padding:14px;box-shadow:0 0 0 4px rgba(0,0,0,.055)}
.smtoc-board-drawing{display:flex;align-items:center;justify-content:center;height:108px}
.smtoc-board-drawing i{display:block;width:54px;border:2px solid #222;background:linear-gradient(135deg,#fff,#eee);box-shadow:6px 6px 0 #e5e5e5}
.smtoc-board-250 i{height:90px}.smtoc-board-310 i{height:108px}
.smtoc-board-copy{display:block}.smtoc-board-main{display:block!important;color:#222!important;font-size:18px!important;font-weight:600!important;line-height:1.2}.smtoc-board-sub{display:block!important;margin-top:6px;color:#777!important;font-size:12px!important}
.smtoc-choice-check{width:24px;height:24px;border-radius:50%;background:#222;color:#fff!important;display:none!important;align-items:center;justify-content:center;font-weight:700!important}
.smtoc-board-choice:has(input:checked) .smtoc-choice-check{display:flex!important}
@media(max-width:760px){.smtoc-top-upload-card .smtoc-grid-2{grid-template-columns:1fr}.smtoc-mode-choices{grid-template-columns:1fr}.smtoc-mode-choice{min-height:126px;display:grid!important;grid-template-columns:110px 1fr;grid-template-rows:auto auto;text-align:left;align-items:center}.smtoc-mode-visual{grid-row:1/3;height:88px}.smtoc-mode-choice strong{margin-top:0;font-size:15px}.smtoc-board-choices{grid-template-columns:1fr}.smtoc-board-choice{min-height:126px}}

/* 1.8.4 – graficzny, elastyczny układ rzędów */
.smtoc-row-layout-top{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(220px,.45fr);gap:18px;margin:16px 0 20px;align-items:stretch}
.smtoc-row-layout-visual{min-height:230px;border:1px solid #ddd8d0;border-radius:18px;background:#f8f7f4;padding:18px;display:flex;align-items:center;justify-content:center}
.smtoc-row-canvas{width:100%;max-width:520px;background:#fff;border:2px solid #222;border-radius:4px;padding:8px;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.smtoc-row-preview-line{display:flex;width:100%;padding:2px 0}
.smtoc-row-preview-items{display:flex;gap:3px;height:100%}
.smtoc-row-preview-items i{flex:1;min-width:10px;border:1px solid #777;background:linear-gradient(145deg,#fff,#eceae5);display:flex;align-items:center;justify-content:center;font-style:normal}
.smtoc-row-preview-items b{font-size:9px;color:#777;font-weight:600}
.smtoc-row-layout-summary{border-radius:18px;background:#171717;color:#fff;padding:22px;display:flex;flex-direction:column;justify-content:center;gap:13px}
.smtoc-row-layout-summary span{display:block;color:#d7d7d7}.smtoc-row-layout-summary strong{display:block;color:#fff;font-size:20px;margin-top:3px}
.smtoc-row-layout-editor{display:flex;flex-direction:column;gap:10px}
.smtoc-layout-row{display:grid;grid-template-columns:42px repeat(4,minmax(110px,1fr)) 72px;gap:10px;align-items:end;padding:13px;border:1px solid #ddd8d0;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.03)}
.smtoc-row-number{width:34px;height:34px;border-radius:50%;background:#171717;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;align-self:center}
.smtoc-layout-row label span{font-size:11px;display:block;margin-bottom:5px;color:#666}.smtoc-layout-row input,.smtoc-layout-row select{width:100%;height:42px}
.smtoc-row-actions{display:flex;gap:6px;align-items:center;height:42px}.smtoc-row-actions button{width:32px;height:32px;border:1px solid #d8d4cc;background:#fff;border-radius:8px;font-size:18px;cursor:pointer}
@media(max-width:900px){.smtoc-row-layout-top{grid-template-columns:1fr}.smtoc-layout-row{grid-template-columns:42px 1fr 1fr}.smtoc-row-actions{grid-column:2/-1}.smtoc-layout-row label:nth-of-type(3),.smtoc-layout-row label:nth-of-type(4){grid-column:auto}}
@media(max-width:600px){.smtoc-layout-row{grid-template-columns:38px 1fr}.smtoc-layout-row label,.smtoc-row-actions{grid-column:2}.smtoc-row-layout-visual{min-height:180px;padding:12px}}


/* 1.8.5 – lighter row summary and touch steppers */
.smtoc-row-layout-summary{background:#f8f7f4;color:#222;border:1px solid #ddd8d0;padding:18px;display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;justify-content:flex-start;gap:10px}
.smtoc-row-layout-summary span{color:#555}.smtoc-row-layout-summary strong{display:inline;color:#171717;font-size:16px;margin:0}
.smtoc-summary-chip{display:inline-flex!important;align-items:center;gap:5px;background:#fff;border:1px solid #ddd8d0;border-radius:999px;padding:9px 13px;line-height:1}
.smtoc-summary-size{flex-basis:100%;padding:3px 2px 0;font-size:13px}
.smtoc-layout-row{grid-template-columns:minmax(120px,.8fr) minmax(180px,1.15fr) repeat(3,minmax(120px,1fr)) 72px;align-items:end}
.smtoc-row-heading{align-self:stretch;display:flex;align-items:center;gap:10px;padding:0 6px 0 2px}
.smtoc-row-number{flex:0 0 32px;width:32px;height:32px;background:#f1efe9;color:#222;border:1px solid #ddd8d0}
.smtoc-row-heading strong{font-size:14px;font-weight:650;white-space:nowrap}
.smtoc-stepper{height:42px;display:grid;grid-template-columns:38px minmax(54px,1fr) 38px;border:1px solid #d8d4cc;border-radius:10px;overflow:hidden;background:#fff}
.smtoc-stepper button{border:0;background:#f7f5f1;font-size:21px;line-height:1;cursor:pointer;color:#292929;padding:0}
.smtoc-stepper button:active{background:#ebe8e1}
.smtoc-stepper input{height:40px!important;border:0!important;border-left:1px solid #e4e0d8!important;border-right:1px solid #e4e0d8!important;border-radius:0!important;text-align:center;padding:0!important;-moz-appearance:textfield}
.smtoc-stepper input::-webkit-outer-spin-button,.smtoc-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:980px){.smtoc-layout-row{grid-template-columns:minmax(120px,.8fr) minmax(180px,1.2fr) 1fr}.smtoc-layout-row label:nth-of-type(3),.smtoc-layout-row label:nth-of-type(4){grid-column:auto}.smtoc-row-actions{grid-column:auto}}
@media(max-width:700px){.smtoc-layout-row{grid-template-columns:1fr 1fr}.smtoc-row-heading{grid-column:1/-1;padding-bottom:2px}.smtoc-layout-row label,.smtoc-row-actions{grid-column:auto}.smtoc-qty-label{grid-column:1/-1!important}.smtoc-row-actions{justify-content:flex-end}}


/* 1.8.7 – stepper zamknięty w obrysie, bez wychodzącego tła */
.smtoc-qty-label{min-width:0}
.smtoc-qty-label > span:first-child{margin-bottom:7px}
.smtoc-stepper{
  width:100%;
  min-width:156px;
  height:44px;
  display:flex!important;
  align-items:stretch;
  border:1px solid #d8d4cc;
  border-radius:11px;
  overflow:hidden;
  box-sizing:border-box;
  background:#fff;
}
.smtoc-stepper button{
  flex:0 0 44px;
  width:44px!important;
  min-width:44px!important;
  height:100%!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#f5f3ee!important;
  color:#222!important;
  font-family:Arial,sans-serif!important;
  font-size:23px!important;
  font-weight:400!important;
  line-height:1!important;
  box-shadow:none!important;
  cursor:pointer;
}
.smtoc-stepper button span{display:block!important;margin:0!important;color:inherit!important;font-size:inherit!important;line-height:1!important}
.smtoc-stepper-minus{border-right:1px solid #e2ded6!important}
.smtoc-stepper-plus{border-left:1px solid #e2ded6!important}
.smtoc-stepper button:hover{background:#ebe8e1!important}
.smtoc-stepper input{
  flex:1 1 auto!important;
  width:0!important;
  min-width:52px!important;
  height:42px!important;
  margin:0!important;
  padding:0 6px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#222!important;
  text-align:center!important;
  font-size:16px!important;
  font-weight:600!important;
  box-shadow:none!important;
}
@media(max-width:700px){
  .smtoc-stepper{max-width:260px}
  .smtoc-stepper button{flex-basis:48px;width:48px!important;min-width:48px!important}
}


/* v1.9.2 – safe Etex integration panel and vertical board previews */
.smtoc-center-integration{display:flex;align-items:center;gap:14px;margin:20px 0 12px;padding:15px 16px;border:1px solid #dedede;border-radius:16px;background:#fafafa}
.smtoc-center-integration.is-active{border-color:#b9d9c5;background:#f5fbf7}
.smtoc-center-integration.is-inactive{border-color:#ead2a7;background:#fffaf1}
.smtoc-center-integration-mark{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:13px;background:#111;color:#fff;font:700 12px/1 Arial,sans-serif;letter-spacing:.08em}
.smtoc-center-integration-copy{display:flex;flex-direction:column;gap:3px}
.smtoc-center-integration-copy strong{font-size:15px;color:#111}
.smtoc-center-integration-copy span{font-size:13px;line-height:1.45;color:#5e5e5e}
.smtoc-row-board-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:16px;margin-top:16px}
.smtoc-row-board-card{padding:12px;border:1px solid #e4e4e4;border-radius:15px;background:#fff;text-align:center}
.smtoc-row-board-title{margin-bottom:9px;font-size:13px;font-weight:700;color:#222}
.smtoc-row-board{position:relative;width:92px;height:184px;margin:0 auto;border:2px solid #1c1c1c;border-radius:4px;background:#f3f3f1;overflow:hidden;display:flex;align-items:flex-start}
.smtoc-row-board-content{width:100%;display:flex;align-items:stretch;border-bottom:1px dashed #777;background:rgba(255,255,255,.55)}
.smtoc-row-board-items{display:flex;align-items:stretch}
.smtoc-row-board-items i{display:grid;place-items:center;min-width:0;flex:1;border-right:1px solid #777;font-style:normal;background:rgba(255,255,255,.7)}
.smtoc-row-board-items i:last-child{border-right:0}
.smtoc-row-board-items b{font-size:10px;color:#222}
.smtoc-row-board-meta{margin-top:9px;font-size:11px;color:#666;white-space:nowrap}
@media(max-width:560px){.smtoc-center-integration{align-items:flex-start}.smtoc-row-board-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.smtoc-row-board{width:78px;height:156px}}

.smtoc-upload-preview{display:block;margin-top:10px;width:100%;max-width:420px;border:1px solid #d9d9d9;border-radius:12px;overflow:hidden;background:#f6f6f6;line-height:0}
.smtoc-upload-preview[hidden]{display:none!important}
.smtoc-upload-preview img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain;background:#fff}
