:root {
  --tw-orange: #f47721;
  --tw-dark: #282828;
  --tw-border: #dadada;
  --tw-bg: #f5f6f8;
  --tw-muted: #727272;
  --tw-panel-radius: 18px;
}

.tw-app {
  direction: rtl;
  font-family: 'Rubik', sans-serif;
  border-radius: 28px;
  padding: 28px;
  color: var(--tw-dark);
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

.tw-page-wrap {
  max-width: 1600px;
  margin: 0 auto;
}

.tw-app-wrap {
  border-radius: 24px;
  box-shadow: 0 107px 144px -73px rgba(18, 18, 18, 0.35);
  padding: 1.25rem;
  background-color: #fff;
}

.tw-header {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}

.tw-header-actions {
  margin-top: 0;
  display: flex;
  justify-content: center;
}

.tw-btn-classic-side {
  position: absolute;
  inset-inline-end: 0;
  top: 2px;
  z-index: 5;
  background: #F47721;
  color: #ffffff;
  border: 1px solid #F47721;
  box-shadow: 0 10px 18px -8px rgba(250, 170, 87, 0.35);
  border-radius: 8px;
  font-weight: 700;
  padding: 9px 12px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1.2;
}

.tw-btn-classic-side:hover {
  color: #ffffff;
  background: #de6a1c;
  border-color: #de6a1c;
}

.tw-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.tw-subtitle {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--tw-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tw-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tw-flow span {
  background: #fff7f1;
  border: 1px solid #fde2ce;
  color: #9a4f16;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

.tw-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--tw-border);
  border-radius: 16px;
  padding: 10px;
  justify-content: flex-start;
}

.tw-tab {
  border: 1px solid #ececec;
  background: #fafafa;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tw-dark);
}

.tw-tab.is-active {
  background: var(--tw-orange);
  color: #ffffff;
}

.tw-tab.is-active .tw-tab-icon {
  color: #ffffff;
  border-color: #ffffff;
}

.tw-tab-label {
  display: inline-flex;
  align-items: center;
}

.tw-tab-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: #f47721;
}

.tw-tab-icon-circle {
  border-radius: 50%;
}

.tw-tab-icon-rect {
  width: 20px;
  height: 12px;
  border-radius: 3px;
}

.tw-tab-icon-solid {
  border-radius: 50%;
  background: currentColor;
}

.tw-tab-icon-flat {
  width: 22px;
  height: 8px;
  border-radius: 3px;
  background: currentColor;
}

.tw-tab-icon-plate {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
}

.tw-tab-icon-sheet {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  position: relative;
  background: transparent;
}

.tw-tab-icon-sheet::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  transform: translate(3px, -3px);
}

.tw-tab-icon-i::before {
  content: 'I';
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tw-tab-icon-ipe::before,
.tw-tab-icon-ipn::before,
.tw-tab-icon-hea::before,
.tw-tab-icon-heb::before {
  content: 'I';
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tw-tab-icon-hea,
.tw-tab-icon-heb {
  font-weight: 700;
}

.tw-tab-icon-heb {
  border-width: 3px;
}

.tw-tab-icon-ipn::before {
  content: 'I';
  font-style: italic;
}

.tw-tab-icon-angle {
  border-top: 0;
  border-left: 0;
  width: 16px;
  height: 16px;
}

.tw-tab-icon-u {
  border-top: 0;
  border-radius: 3px;
}

.tw-tab-icon-t::before {
  content: 'T';
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tw-tab-icon-sheet {
  border-radius: 2px;
}

.tw-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tw-mode-btn {
  border: 0;
  padding: 10px 24px;
  border-radius: 999px;
  background: #EFEFEF;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  width: 164px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tw-mode-btn:hover {
  transform: translateY(-1px);
}

.tw-mode-btn.is-active {
  background: var(--tw-orange);
  color: #ffffff;
  border-color: var(--tw-orange);
}

.tw-content {
  display: grid;
  gap: 24px;
}

.tw-calc-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.tw-calc-panel {
  order: 1;
}

.tw-cut-panel {
  order: 2;
  position: sticky;
  top: 24px;
  align-self: start;
}

.tw-calc-panel,
.tw-cut-panel,
.tw-filters,
.tw-table {
  background: #ffffff;
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-panel-radius);
  padding: 18px;
}

.tw-filters {
  background: #fbfbfb;
}

.tw-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tw-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.tw-panel-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--tw-muted);
  margin-bottom: 12px;
}

.tw-btn-inline {
  padding: 8px 12px;
  font-size: 13px;
}

.tw-input {
  width: 100%;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid transparent;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 10px;
}

.tw-input:focus {
  outline: none;
  border-color: rgba(244, 119, 33, 0.55);
  background: #fff;
}

.tw-input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14) !important;
}

.tw-quote-error {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: -2px 0 10px;
  color: #fff3f3;
  font-size: 14px;
  font-weight: 700;
}

.tw-suggestions {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.tw-suggestion {
  border: 1px solid #e5e5e5;
  background: #f9fafb;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: right;
  cursor: pointer;
}

.tw-unit-toggles {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.tw-unit-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tw-unit-label {
  font-size: 13px;
  color: var(--tw-muted);
}

.tw-toggle {
  display: inline-flex;
  gap: 6px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 999px;
}

.tw-toggle button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.tw-toggle button.is-active {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.tw-calc-details {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-bottom: 12px;
}

.tw-calc-title {
  margin: 0 0 10px;
}

.tw-calc-meta {
  display: grid;
  gap: 8px;
}

.tw-calc-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  gap: 12px;
}

.tw-calc-meta-label {
  color: var(--tw-muted);
}

.tw-calc-wt-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tw-calc-wt-selector select.tw-input {
  appearance: auto;
}

.tw-calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tw-input-group label {
  display: block;
  font-size: 12px;
  color: var(--tw-muted);
  margin-bottom: 6px;
}

.tw-static-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  background: #fff7f1;
  border: 1px solid #fde2ce;
  color: #9a4f16;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
}

.tw-toggle-pill {
  border: 1px solid var(--tw-border);
  padding: 8px 12px;
  border-radius: 999px;
  background: #f9fafb;
  cursor: pointer;
}

.tw-choice-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  padding: 4px;
  border-radius: 16px;
  background: #f3f4f6;
  border: 1px solid var(--tw-border);
}

.tw-choice-toggle__btn {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--tw-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 10px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tw-choice-toggle__btn:hover {
  transform: translateY(-1px);
}

.tw-choice-toggle__btn.is-active {
  background: linear-gradient(135deg, #f07a2a 0%, #cb5718 100%);
  color: #ffffff;
  box-shadow: 0 14px 24px -18px rgba(203, 87, 24, 0.72);
}

.tw-choice-toggle--compact .tw-choice-toggle__btn {
  min-height: 44px;
  font-size: 12px;
  padding: 8px 6px;
}

.tw-calc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tw-result-card {
  background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
  border: 1px solid #fde2ce;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.tw-btn {
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tw-btn-cta {
  background: var(--tw-orange);
  border: none;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(244, 119, 33, 0.24);
}

.tw-btn-ghost {
  border: 1px solid var(--tw-border);
  background: #f3f4f6;
  color: var(--tw-dark);
}

.tw-btn-small {
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--tw-border);
  background: #ffffff;
}

.tw-cut-header h3 {
  margin: 0;
}

.tw-cut-header p {
  margin: 6px 0 12px;
  color: var(--tw-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tw-cut-list {
  display: grid;
  gap: 10px;
}

.tw-quote-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.tw-quote-meta .tw-input {
  margin-bottom: 0;
}

.tw-textarea {
  resize: vertical;
  min-height: 74px;
}

.tw-quote-meta .tw-input-group:last-child {
  grid-column: 1 / -1;
}

.tw-cut-item {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: #fcfcfc;
}

.tw-cut-title {
  font-weight: 600;
}

.tw-cut-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

.tw-cut-total {
  font-weight: 700;
  color: var(--tw-orange);
}

.tw-cut-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.tw-cut-summary {
  margin-top: 8px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7f1;
  border: 1px solid #fde2ce;
}

.tw-table-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
}

.tw-filter-list {
  display: grid;
  gap: 12px;
}

.tw-filter {
  border: 1px solid var(--tw-border);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

.tw-filter-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tw-filter-values {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 8px;
}

.tw-filter-value {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 52px;
  text-align: center;
}

.tw-filter-divider {
  width: 8px;
  height: 2px;
  background: #a2a2a2;
  display: inline-block;
}

.tw-filter-unit {
  color: var(--tw-muted);
  margin-inline-start: auto;
}

.tw-filter-range {
  display: grid;
  gap: 6px;
}

.tw-filter-input {
  width: 100%;
}

.tw-table {
  display: grid;
  gap: 8px;
  background: #fcfcfc;
}

.tw-table-tools {
  margin-bottom: 4px;
}

.tw-table-summary {
  display: grid;
  gap: 4px;
}

.tw-table-summary-title {
  font-size: 18px;
}

.tw-table-summary-meta {
  font-size: 13px;
  color: var(--tw-muted);
}

.tw-table-header {
  position: sticky;
  top: 0;
  z-index: 2;
  overflow: hidden;
}

.tw-row {
  display: grid;
  grid-template-columns: var(--tw-columns, 46px 60px repeat(4, minmax(120px, 1fr)) 150px);
  gap: 8px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 54px;
  min-width: var(--tw-min-width, 900px);
}

.tw-row-head {
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 600;
}

.tw-cell {
  text-align: center;
  font-size: 13px;
  color: var(--tw-dark);
}

.tw-cell-head {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tw-cell-head.is-sorted::after {
  content: attr(data-dir);
  font-size: 10px;
  color: var(--tw-muted);
  margin-inline-start: 4px;
}

.tw-table-viewport {
  height: 420px;
  overflow: auto;
  position: relative;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 8px;
}

/* Pivot table for WT categories (pipes / square / rectangle)
   Layout: rows = sizes, columns = wall thicknesses, center cells = kg/m
   First column (sticky left) = size label
   Header row cells = thickness values */
.tw-pivot-table {
  border-collapse: collapse;
  font-size: 13px;
  width: max-content; /* allow wider-than-viewport; tw-table-viewport scrolls */
  min-width: 100%;
}

.tw-pivot-caption {
  caption-side: top;
  text-align: center;
  font-size: 11px;
  color: var(--tw-muted, #888);
  padding: 4px 0 6px;
  white-space: nowrap;
}

/* First column header (size axis, sticky left) */
.tw-pivot-axis-header {
  background: #1a1a1a;
  color: var(--tw-primary, #f47721);
  padding: 8px 14px;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  border-right: 2px solid #333;
  position: sticky;
  left: 0;
  z-index: 3;
}

/* Thickness column headers (top row, not sticky) */
.tw-pivot-t-header {
  background: #2c2c2c;
  color: #fff;
  padding: 8px 14px;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  border-left: 1px solid #444;
  min-width: 64px;
}

/* First column cells (size label, sticky left) */
.tw-pivot-axis-cell {
  background: #2c2c2c;
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #444;
  border-right: 2px solid #333;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 2;
}

/* Weight cells */
.tw-pivot-cell {
  padding: 8px 12px;
  text-align: center;
  border-left: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
  background: #fff;
  min-width: 64px;
}

.tw-pivot-cell--value {
  color: #1a1a1a;
  font-weight: 500;
  cursor: pointer;
}

.tw-pivot-cell--value:hover {
  background: var(--tw-primary, #f47721);
  color: #fff;
}

.tw-pivot-cell--value:focus-visible {
  outline: 3px solid var(--tw-primary, #f47721);
  outline-offset: -3px;
}

tbody tr:nth-child(even) .tw-pivot-cell {
  background: #fafafa;
}

tbody tr:nth-child(even) .tw-pivot-cell--value:hover {
  background: var(--tw-primary, #f47721);
}

.tw-pivot-cell--empty {
  color: #ccc;
  font-size: 11px;
}

.tw-table-spacer {
  width: 100%;
}

.tw-table-rows {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  display: grid;
  gap: 8px;
}

.tw-shape {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 2px solid #f47721;
  color: #f47721;
  border-radius: 4px;
}

.tw-shape-circle {
  border-radius: 50%;
}

.tw-shape-rect {
  width: 20px;
  height: 12px;
  border-radius: 3px;
}

.tw-shape-i::before {
  content: 'I';
  font-size: 12px;
  font-weight: 700;
}

.tw-shape-angle {
  border-top: 0;
  border-left: 0;
  width: 16px;
  height: 16px;
}

.tw-shape-u {
  border-radius: 3px;
}

.tw-shape-t {
  border-radius: 3px;
}

.tw-empty {
  color: var(--tw-muted);
  font-size: 13px;
}

.tw-empty-card {
  background: #fff;
  border: 1px dashed var(--tw-border);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.tw-row-card {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.06);
}

.tw-row-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tw-row-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tw-row-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

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

.tw-row-card__meta-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #f7f7f8;
  border-radius: 12px;
}

.tw-row-card__meta-label {
  font-size: 12px;
  color: var(--tw-muted);
}

.tw-row-card__meta-value {
  font-size: 14px;
  line-height: 1.3;
}

.tw-btn-add-row {
  white-space: nowrap;
  background: var(--tw-orange);
  color: #fff;
  border: none;
}

.tw-footnote {
  color: #121212;
  font-family: Rubik;
  font-size: 14px;
  opacity: 0.7;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin: auto;
  max-width: 1150px;
}

@media (max-width: 1100px) {
  .tw-calc-grid {
    grid-template-columns: 1fr;
  }

  .tw-cut-panel {
    position: static;
  }

  .tw-quote-meta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .tw-table-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tw-app {
    padding: 14px;
    border-radius: 20px;
  }

  .tw-app-wrap {
    padding: 0.75rem;
    border-radius: 18px;
  }

  .tw-title {
    font-size: 24px;
  }

  .tw-subtitle {
    font-size: 14px;
  }

  .tw-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tw-mode-btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
  }

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

  .tw-flow {
    gap: 8px;
  }

  .tw-flow span {
    font-size: 12px;
    padding: 6px 10px;
  }

  .tw-tab {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 8px;
  }

  .tw-calc-inputs,
  .tw-calc-results {
    grid-template-columns: 1fr;
  }

  .tw-panel-head {
    align-items: flex-start;
  }

  .tw-panel-title {
    font-size: 18px;
  }

  .tw-filters,
  .tw-table,
  .tw-calc-panel,
  .tw-cut-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .tw-table-viewport {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
  }

  .tw-table-header {
    display: none;
  }

  .tw-table-rows {
    position: static;
    transform: none !important;
    gap: 10px;
  }

  .tw-cut-actions {
    flex-direction: column;
  }

  .tw-row-card__meta {
    grid-template-columns: 1fr 1fr;
  }

  .tw-btn-classic-side {
    position: static;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: min(100%, 320px);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 17px;
    line-height: 1.2;
    margin: 0 auto 14px;
    box-shadow: 0 18px 36px -18px rgba(244, 119, 33, 0.65);
  }
}


.tw-app {
  background: linear-gradient(180deg, #f3f4f6 0%, #e7e7e7 100%);
  border: 1px solid rgba(24, 24, 24, 0.08);
}

.tw-app-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(24, 24, 24, 0.08);
  box-shadow: 0 38px 90px -48px rgba(23, 23, 23, 0.42);
}

.tw-tabs {
  background: #f1f1f1;
  border-color: rgba(23, 23, 23, 0.08);
}

.tw-tab {
  background: #ffffff;
  border-color: rgba(23, 23, 23, 0.08);
  box-shadow: 0 10px 24px -18px rgba(23, 23, 23, 0.28);
}

.tw-calc-panel,
.tw-table-panel,
.tw-result-card,
.tw-calc-meta-item,
.tw-filter,
.tw-summary-card,
.tw-cut-item {
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 20px 45px -34px rgba(23, 23, 23, 0.28);
}

.tw-result-card {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.tw-table thead th {
  background: #282828;
  color: #ffffff;
}

.tw-table tbody tr:nth-child(even) {
  background: rgba(244, 244, 244, 0.72);
}

.tw-table tbody tr:hover {
  background: rgba(244, 119, 33, 0.08);
}

.tw-filter-input,
.tw-search-input,
.tw-calc-input,
.tw-select {
  background: #ffffff;
  border: 1px solid rgba(23, 23, 23, 0.14);
}

/* Elevated warm-industrial visual refresh */
:root {
  --tw-accent-strong: #d8621d;
  --tw-ink-strong: #202020;
  --tw-ink-soft: #3f3f3f;
  --tw-paper: #f7f0e6;
  --tw-paper-soft: #efe5d8;
  --tw-panel-soft: #fbf6ef;
  --tw-line-soft: rgba(49, 31, 15, 0.12);
}

.tw-page-wrap {
  padding: 28px 0 10px;
}

.tw-app-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(244, 119, 33, 0.17), transparent 28%),
    radial-gradient(circle at top left, rgba(32, 32, 32, 0.14), transparent 26%),
    linear-gradient(135deg, #f6efe5 0%, #ece2d3 52%, #f7f1e8 100%);
  border: 1px solid rgba(53, 33, 16, 0.12);
  box-shadow: 0 44px 90px -52px rgba(25, 25, 25, 0.48);
}

.tw-app-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 140px), rgba(32, 32, 32, 0.06) calc(100% - 140px), rgba(32, 32, 32, 0.06) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 10px, rgba(255, 255, 255, 0) 10px 22px);
  pointer-events: none;
}

.tw-app {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(246, 239, 229, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.tw-header {
  background:
    radial-gradient(circle at top left, rgba(244, 119, 33, 0.26), transparent 30%),
    linear-gradient(135deg, #282828 0%, #343434 42%, #202020 100%);
  border-radius: 24px;
  padding: 28px 28px 24px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px -34px rgba(24, 24, 24, 0.72);
}

.tw-title {
  color: #f8f3eb;
  letter-spacing: -0.03em;
}

.tw-subtitle {
  color: rgba(248, 243, 235, 0.82);
}

.tw-header-actions {
  margin-top: 14px;
}

.tw-btn-classic-side {
  background: rgba(248, 243, 235, 0.12);
  color: #fff7ef;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 24px -18px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.tw-btn-classic-side:hover {
  background: var(--tw-accent-strong);
  border-color: var(--tw-accent-strong);
}

.tw-mode-toggle {
  background: rgba(32, 32, 32, 0.06);
  border: 1px solid rgba(32, 32, 32, 0.08);
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 6px;
}

.tw-mode-btn {
  background: transparent;
  color: var(--tw-ink-soft);
}

.tw-mode-btn.is-active {
  background: linear-gradient(135deg, #e36d26 0%, #c75415 100%);
  box-shadow: 0 16px 22px -16px rgba(216, 98, 29, 0.95);
}

.tw-flow span {
  background: linear-gradient(180deg, #fff4e8 0%, #f8e9d7 100%);
  border-color: rgba(216, 98, 29, 0.18);
  color: #7d3b10;
  box-shadow: 0 10px 18px -16px rgba(124, 62, 19, 0.45);
}

.tw-tabs {
  background: rgba(255, 251, 246, 0.65);
  border-color: rgba(53, 33, 16, 0.09);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tw-tab {
  background: linear-gradient(180deg, #fffaf4 0%, #f1e7da 100%);
  border-color: rgba(57, 41, 27, 0.1);
  box-shadow: 0 12px 20px -18px rgba(25, 25, 25, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tw-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -18px rgba(25, 25, 25, 0.45);
}

.tw-tab.is-active {
  background: linear-gradient(135deg, #de6922 0%, #bd4d12 100%);
  box-shadow: 0 18px 28px -18px rgba(189, 77, 18, 0.9);
}

.tw-tab-icon {
  color: #6c6c6c;
}

.tw-calc-panel,
.tw-filters,
.tw-table {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.96) 0%, rgba(244, 236, 224, 0.98) 100%);
  border-color: var(--tw-line-soft);
  box-shadow: 0 22px 44px -38px rgba(25, 25, 25, 0.42);
}

.tw-cut-panel {
  background:
    radial-gradient(circle at top right, rgba(244, 119, 33, 0.18), transparent 28%),
    linear-gradient(180deg, #2e2e2e 0%, #232323 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 54px -36px rgba(0, 0, 0, 0.72);
  color: #f4efe8;
}

.tw-cut-panel .tw-cut-header h3,
.tw-cut-panel .tw-cut-title,
.tw-cut-panel .tw-cut-summary strong {
  color: #fffaf4;
}

.tw-cut-panel .tw-cut-header p,
.tw-cut-panel .tw-input-group label {
  color: rgba(244, 239, 232, 0.74);
}

.tw-cut-panel .tw-input,
.tw-cut-panel .tw-textarea {
  background: rgba(255, 248, 239, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  color: #282828;
}

.tw-cut-panel .tw-toggle-pill,
.tw-cut-panel .tw-btn-small,
.tw-cut-panel .tw-static-chip {
  background: rgba(255, 248, 239, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #202020;
}

.tw-cut-panel .tw-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fffaf4;
}

.tw-cut-panel .tw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tw-cut-panel .tw-cut-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tw-cut-panel .tw-cut-total {
  color: #ffb784;
}

.tw-cut-summary {
  background: linear-gradient(180deg, rgba(255, 244, 233, 0.12) 0%, rgba(244, 119, 33, 0.12) 100%);
  border-color: rgba(255, 183, 132, 0.18);
}

.tw-input,
.tw-suggestion,
.tw-filter,
.tw-toggle,
.tw-row-card__meta-item,
.tw-row,
.tw-empty-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.tw-input {
  background: rgba(255, 251, 246, 0.88);
  border-color: rgba(57, 41, 27, 0.08);
}

.tw-filter-input,
.tw-search-input,
.tw-calc-input,
.tw-select {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf4 0%, #f4ebdf 100%);
  border: 1px solid rgba(57, 41, 27, 0.1);
  color: var(--tw-ink-strong);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tw-input:focus {
  border-color: rgba(216, 98, 29, 0.45);
  box-shadow: 0 0 0 4px rgba(216, 98, 29, 0.08);
}

.tw-filter-input:focus,
.tw-search-input:focus,
.tw-calc-input:focus,
.tw-select:focus {
  outline: none;
  border-color: rgba(216, 98, 29, 0.45);
  box-shadow: 0 0 0 4px rgba(216, 98, 29, 0.08);
}

.tw-suggestion {
  background: linear-gradient(180deg, #fffaf4 0%, #f4ebdf 100%);
  border-color: rgba(57, 41, 27, 0.08);
}

.tw-suggestion:hover {
  background: linear-gradient(180deg, #fff3e6 0%, #f3e3cf 100%);
}

.tw-toggle {
  background: rgba(32, 32, 32, 0.06);
}

.tw-toggle button.is-active {
  background: #fffaf4;
}

.tw-result-card {
  background: linear-gradient(180deg, #fff4e7 0%, #f8e7d0 100%);
  border-color: rgba(216, 98, 29, 0.16);
  box-shadow: 0 22px 34px -30px rgba(152, 75, 22, 0.35);
}

.tw-result-card strong {
  color: #8e420f;
}

.tw-filter {
  background: linear-gradient(180deg, #fffaf4 0%, #f1e7da 100%);
  border-color: rgba(57, 41, 27, 0.08);
  box-shadow: 0 18px 28px -26px rgba(25, 25, 25, 0.28);
}

.tw-filter-value,
.tw-empty-card {
  background: linear-gradient(180deg, #fffaf4 0%, #f4ecdf 100%);
  border-color: rgba(57, 41, 27, 0.08);
}

.tw-shape {
  border-color: #8a4b1c;
  color: #8a4b1c;
}

.tw-row-card__title,
.tw-row-card__meta-value,
.tw-cell {
  color: var(--tw-ink-strong);
}

.tw-panel-title,
.tw-table-summary-title,
.tw-calc-title {
  color: var(--tw-ink-strong);
}

.tw-panel-hint,
.tw-table-summary-meta,
.tw-calc-meta-label,
.tw-row-card__meta-label,
.tw-empty,
.tw-footnote {
  color: #656565;
}

.tw-table-tools {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.tw-table-guide {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
}

.tw-table-guide__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 244, 232, 0.96) 0%, rgba(244, 229, 209, 0.96) 100%);
  border: 1px solid rgba(216, 98, 29, 0.18);
  color: #8a4314;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tw-btn-cta {
  background: linear-gradient(135deg, #e36d26 0%, #bb4e14 100%);
  box-shadow: 0 22px 28px -20px rgba(189, 77, 18, 0.78);
}

.tw-btn-cta:hover {
  background: linear-gradient(135deg, #ee7a33 0%, #cb5617 100%);
}

.tw-btn-small,
.tw-btn-ghost {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tw-btn-small:hover,
.tw-btn-ghost:hover {
  transform: translateY(-1px);
}

.tw-table {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.88) 0%, rgba(243, 235, 223, 0.92) 100%);
}

.tw-table.is-pivot {
  padding: 12px;
  border-radius: 24px;
}

.tw-table-header {
  border-radius: 14px;
  margin-bottom: 4px;
}

.tw-table.is-pivot .tw-table-tools,
.tw-table.is-pivot .tw-table-header {
  display: none;
}

.tw-row {
  background: linear-gradient(180deg, #fffaf4 0%, #f4ecdf 100%);
  border-color: rgba(57, 41, 27, 0.08);
  box-shadow: 0 16px 26px -24px rgba(25, 25, 25, 0.22);
}

.tw-row-head {
  background: linear-gradient(180deg, #353535 0%, #282828 100%);
  color: #fffaf4;
  border-color: rgba(255, 255, 255, 0.04);
}

.tw-row-head .tw-cell,
.tw-row-head .tw-cell-head {
  color: #f8f3eb;
}

.tw-cell-head.is-sorted::after {
  color: rgba(248, 243, 235, 0.72);
}

.tw-table-viewport {
  background: rgba(30, 30, 30, 0.05);
  border: 1px solid rgba(57, 41, 27, 0.08);
}

.tw-table.is-pivot .tw-table-viewport {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 4px;
  border-radius: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  background:
    radial-gradient(circle at top right, rgba(244, 119, 33, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(242, 233, 220, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tw-table.is-pivot .tw-table-rows {
  position: static;
  inset: auto;
}

.tw-pivot-shell {
  display: grid;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.tw-pivot-caption {
  display: none;
}

.tw-pivot-axis-header {
  background: linear-gradient(180deg, #282828 0%, #1f1f1f 100%);
  color: #ffb784;
  border-right-color: rgba(255, 255, 255, 0.08);
  top: 0;
  z-index: 5;
  min-width: 132px;
}

.tw-pivot-t-header {
  background: linear-gradient(180deg, #404040 0%, #323232 100%);
  border-left-color: rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 4;
  min-width: 76px;
  padding: 11px 14px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.tw-pivot-axis-cell {
  background: linear-gradient(180deg, #3b3b3b 0%, #2c2c2c 100%);
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  min-width: 132px;
  padding: 12px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tw-pivot-cell {
  background: rgba(255, 250, 244, 0.96);
  border-color: rgba(57, 41, 27, 0.08);
  min-width: 76px;
  padding: 12px 14px;
  font-size: 14px;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

tbody tr:nth-child(even) .tw-pivot-cell {
  background: rgba(244, 236, 224, 0.92);
}

.tw-pivot-cell--value {
  color: #202020;
  font-weight: 700;
}

.tw-pivot-cell--value:hover,
tbody tr:nth-child(even) .tw-pivot-cell--value:hover {
  background: linear-gradient(135deg, #e36d26 0%, #bb4e14 100%);
  color: #fffaf4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tw-pivot-cell--empty {
  color: #b8ad9d;
}

.tw-row-card {
  background: linear-gradient(180deg, #fffaf4 0%, #f1e7da 100%);
  border-color: rgba(57, 41, 27, 0.08);
  box-shadow: 0 24px 30px -28px rgba(25, 25, 25, 0.3);
}

.tw-row-card__meta-item {
  background: linear-gradient(180deg, #f8f0e4 0%, #eee2d2 100%);
}

.tw-footnote {
  color: #515151;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .tw-table-tools {
    align-items: stretch;
  }

  .tw-table-guide {
    width: 100%;
  }

  .tw-table-guide__pill {
    width: 100%;
    justify-content: center;
  }

  .tw-table.is-pivot {
    padding: 10px;
  }

  .tw-table.is-pivot .tw-table-viewport {
    padding: 2px;
    max-height: none;
  }

  .tw-header {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  .tw-mode-toggle {
    width: 100%;
    border-radius: 18px;
  }

  .tw-flow {
    justify-content: stretch;
  }

  .tw-flow span {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

/* Hisherik black refinement */
:root {
  --tw-brand-black: #121212;
  --tw-brand-coal: #1f1f1f;
  --tw-brand-steel: #282828;
  --tw-brand-line: rgba(255, 255, 255, 0.08);
  --tw-brand-soft-line: rgba(255, 255, 255, 0.12);
  --tw-brand-text: #f5efe8;
  --tw-brand-muted: rgba(245, 239, 232, 0.72);
}

.tw-page-wrap {
  padding: 24px 0 20px;
}

.tw-app-wrap {
  background:
    radial-gradient(circle at top right, rgba(244, 119, 33, 0.14), transparent 24%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(155deg, #191919 0%, #111111 48%, #282828 100%);
  border-color: rgba(244, 119, 33, 0.12);
  box-shadow: 0 54px 90px -56px rgba(0, 0, 0, 0.82);
}

.tw-app-wrap::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 160px), rgba(255, 255, 255, 0.03) calc(100% - 160px), rgba(255, 255, 255, 0.03) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 12px, rgba(255, 255, 255, 0) 12px 24px);
}

.tw-app {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(33, 33, 33, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--tw-brand-text);
}

.tw-title,
.tw-panel-title,
.tw-table-summary-title,
.tw-calc-title,
.tw-cut-title,
.tw-row-card__title,
.tw-row-card__meta-value,
.tw-cell {
  color: #fffaf4;
}

.tw-subtitle,
.tw-panel-hint,
.tw-table-summary-meta,
.tw-calc-meta-label,
.tw-row-card__meta-label,
.tw-empty,
.tw-footnote {
  color: var(--tw-brand-muted);
}

.tw-mode-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.tw-mode-btn {
  color: rgba(245, 239, 232, 0.82);
}

.tw-flow span {
  background: rgba(244, 119, 33, 0.1);
  border-color: rgba(244, 119, 33, 0.22);
  color: #ffd5b8;
}

.tw-tabs {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--tw-brand-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tw-tab {
  background: linear-gradient(180deg, rgba(39, 39, 39, 0.96) 0%, rgba(22, 22, 22, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5efe8;
  box-shadow: 0 14px 24px -20px rgba(0, 0, 0, 0.65);
}

.tw-tab:hover {
  background: linear-gradient(180deg, rgba(49, 49, 49, 0.96) 0%, rgba(28, 28, 28, 0.98) 100%);
}

.tw-tab-icon {
  color: #ffbc8d;
}

.tw-calc-panel,
.tw-filters,
.tw-table {
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.96) 0%, rgba(18, 18, 18, 0.98) 100%);
  border-color: var(--tw-brand-line);
  box-shadow: 0 28px 48px -40px rgba(0, 0, 0, 0.8);
}

.tw-cut-panel {
  background:
    radial-gradient(circle at top right, rgba(244, 119, 33, 0.18), transparent 24%),
    linear-gradient(180deg, #282828 0%, #121212 100%);
  border-color: var(--tw-brand-line);
}

.tw-input,
.tw-filter-input,
.tw-search-input,
.tw-calc-input,
.tw-select,
.tw-textarea {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fffaf4;
  box-shadow: none;
}

.tw-input::placeholder,
.tw-filter-input::placeholder,
.tw-search-input::placeholder,
.tw-calc-input::placeholder,
.tw-textarea::placeholder {
  color: rgba(245, 239, 232, 0.42);
}

.tw-input:focus,
.tw-filter-input:focus,
.tw-search-input:focus,
.tw-calc-input:focus,
.tw-select:focus,
.tw-textarea:focus {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.07) 100%);
  border-color: rgba(244, 119, 33, 0.42);
  box-shadow: 0 0 0 4px rgba(244, 119, 33, 0.1);
}

.tw-suggestion,
.tw-filter,
.tw-empty-card,
.tw-row-card,
.tw-row-card__meta-item,
.tw-static-chip,
.tw-toggle-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5efe8;
  box-shadow: none;
}

.tw-suggestion:hover,
.tw-btn-ghost:hover {
  background: linear-gradient(180deg, rgba(244, 119, 33, 0.16) 0%, rgba(244, 119, 33, 0.08) 100%);
}

.tw-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.tw-toggle button {
  color: rgba(245, 239, 232, 0.78);
}

.tw-toggle button.is-active {
  background: rgba(255, 248, 239, 0.12);
  color: #fffaf4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tw-result-card {
  background: linear-gradient(180deg, rgba(244, 119, 33, 0.18) 0%, rgba(244, 119, 33, 0.08) 100%);
  border-color: rgba(244, 119, 33, 0.22);
  box-shadow: 0 24px 34px -30px rgba(0, 0, 0, 0.6);
}

.tw-result-card strong {
  color: #ffd5b8;
}

.tw-table.is-pivot .tw-table-viewport,
.tw-table-viewport {
  background:
    radial-gradient(circle at top right, rgba(244, 119, 33, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.96) 0%, rgba(32, 32, 32, 0.98) 100%);
  border-color: var(--tw-brand-line);
}

.tw-pivot-topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.tw-pivot-title {
  color: #fffaf4;
}

.tw-pivot-meta {
  color: var(--tw-brand-muted);
}

.tw-pivot-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 239, 232, 0.72);
}

.tw-pivot-axis-header,
.tw-row-head {
  background: linear-gradient(180deg, #131313 0%, #282828 100%);
}

.tw-pivot-t-header {
  background: linear-gradient(180deg, #303030 0%, #222222 100%);
}

.tw-pivot-axis-cell {
  background: linear-gradient(180deg, #282828 0%, #1b1b1b 100%);
  color: #fffaf4;
}

.tw-pivot-cell {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fffaf4;
}

tbody tr:nth-child(even) .tw-pivot-cell {
  background: rgba(255, 255, 255, 0.09);
}

.tw-pivot-cell--value {
  color: #fffaf4;
}

.tw-pivot-cell--empty {
  color: rgba(245, 239, 232, 0.28);
}

.tw-btn-ghost,
.tw-btn-small {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fffaf4;
}

.tw-footnote {
  color: rgba(245, 239, 232, 0.68);
}

/* Broader page-level dark pass for pages that load the tables app */
.header {
  background: rgba(18, 18, 18, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.tw-header-actions {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  z-index: 2;
}

/* Make the classic tables CTA read as a primary orange action. */
.tw-btn-classic-side {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  min-width: min(100%, 420px);
  max-width: 100%;
  padding: 15px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff8e3a 0%, #f47721 48%, #c85116 100%) !important;
  border: 1px solid rgba(255, 191, 143, 0.52) !important;
  color: #fffdf9 !important;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  box-shadow:
    0 22px 40px -22px rgba(244, 119, 33, 0.95),
    0 0 0 1px rgba(255, 165, 94, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

.tw-btn-classic-side::before {
  content: '↗';
  font-size: 19px;
  line-height: 1;
  opacity: 0.96;
}

.tw-btn-classic-side:hover,
.tw-btn-classic-side:focus-visible {
  background: linear-gradient(135deg, #ff9a4f 0%, #ff7f24 52%, #d85a18 100%) !important;
  border-color: rgba(255, 210, 176, 0.72) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow:
    0 28px 48px -24px rgba(244, 119, 33, 1),
    0 0 0 4px rgba(244, 119, 33, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

@media (max-width: 767px) {
  .tw-header-actions {
    margin-top: 14px;
  }

  .tw-btn-classic-side {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 13px 16px;
    font-size: 16px;
    border-radius: 16px;
  }

  .tw-btn-classic-side::before {
    font-size: 17px;
  }
}

.tw-choice-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.tw-choice-toggle__btn {
  color: rgba(245, 239, 232, 0.74);
}

.tw-choice-toggle__btn.is-active {
  background: linear-gradient(135deg, #ff8e40 0%, #f47721 52%, #cc5718 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 16px 26px -18px rgba(244, 119, 33, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.header__catalog-link,
.header__mobile-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fffaf4;
}

.header__catalog-link:hover,
.header__catalog-link:focus {
  background: rgba(244, 119, 33, 0.14);
}

.header__mobile-toggle-line {
  background: #fffaf4;
}

.header-iron__brand-title,
.header-gates__brand-title,
.menu-inline > li > a {
  color: #fffaf4;
}

.header-iron__brand-subtitle,
.header-gates__brand-subtitle {
  color: rgba(245, 239, 232, 0.68);
}

.menu-inline .sub-menu,
.menu-inline .sub-menu::before {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.08);
}

.menu-inline .sub-menu li a {
  color: #f5efe8;
}

.menu-inline .sub-menu li a:hover {
  background: rgba(244, 119, 33, 0.14);
}

.main {
  background:
    radial-gradient(circle at top right, rgba(244, 119, 33, 0.12), transparent 20%),
    linear-gradient(180deg, #111111 0%, #1c1c1c 56%, #121212 100%);
}

.home-hero-intro__title {
  color: #fffaf4;
}

.home-hero-intro__desc {
  color: rgba(245, 239, 232, 0.72);
}

.home-hero__card-title,
.home-hero__card-desc {
  color: #fffaf4 !important;
}

.home-hero__card-desc {
  opacity: 0.7;
}

.clients-showcase-section--v2,
.home-posts-section,
.home-faq {
  color: #fffaf4;
}

.clients-showcase__title,
.home-posts-section__title,
.home-faq__title,
.clients-showcase-section--v2 .clients-showcase__card-title,
.faq-accordion__trigger,
.home-post-card__title {
  color: #fffaf4;
}

.clients-showcase-section--v2 .clients-showcase__card,
.home-post-card,
.faq-accordion__item {
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.94) 0%, rgba(18, 18, 18, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 44px -32px rgba(0, 0, 0, 0.42);
}

.clients-showcase-section--v2 .clients-showcase__chip-row--grouped {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.clients-showcase-section--v2 .clients-showcase__chip-link,
.home-post-card__excerpt,
.home-post-card__meta,
span.home-post-card__author,
.faq-accordion__panel-inner {
  color: rgba(245, 239, 232, 0.72);
}

.home-post-card__img--placeholder {
  background: linear-gradient(135deg, #282828 0%, #111111 100%);
}

.faq-accordion__item.is-open {
  background: linear-gradient(180deg, rgba(48, 48, 48, 0.96) 0%, rgba(29, 29, 29, 0.98) 100%);
  border-color: rgba(244, 119, 33, 0.2);
}

.faq-accordion__item:hover {
  border-color: rgba(244, 119, 33, 0.45);
}

/* Final contrast corrections */
.tw-cut-panel .tw-filter-value,
.tw-filters .tw-filter-value {
  background: linear-gradient(180deg, #fbf3e7 0%, #f1e5d4 100%) !important;
  color: #202020 !important;
  border: 1px solid rgba(73, 48, 24, 0.16) !important;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.tw-cut-panel .tw-filter-title,
.tw-cut-panel .tw-filter-values,
.tw-cut-panel .tw-filter-unit,
.tw-cut-panel .tw-input-group label {
  color: #f5efe8 !important;
}

.tw-cut-panel .tw-input,
.tw-cut-panel .tw-textarea {
  caret-color: #202020 !important;
  background: linear-gradient(180deg, #fffaf4 0%, #f3e9dc 100%) !important;
  border: 1px solid rgba(122, 90, 60, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 0 rgba(24, 24, 24, 0.06) !important;
}

.tw-cut-panel .tw-input:hover,
.tw-cut-panel .tw-textarea:hover {
  background: linear-gradient(180deg, #fffdf9 0%, #f7efe4 100%) !important;
  border-color: rgba(216, 98, 29, 0.42) !important;
}

.tw-cut-panel .tw-input::placeholder,
.tw-cut-panel .tw-textarea::placeholder,
.tw-cut-panel .tw-input::-webkit-input-placeholder,
.tw-cut-panel .tw-textarea::-webkit-input-placeholder {
  color: rgba(32, 32, 32, 0.52) !important;
  opacity: 1;
}

.tw-cut-panel .tw-input:focus,
.tw-cut-panel .tw-textarea:focus {
  outline: none;
  background: #fffdf9 !important;
  border-color: rgba(216, 98, 29, 0.56) !important;
  box-shadow:
    0 0 0 4px rgba(216, 98, 29, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.tw-filter-divider {
  background: rgba(245, 239, 232, 0.58) !important;
}

.tw-filter-input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  box-shadow: none !important;
  accent-color: var(--tw-orange);
}

.tw-filter-input[type='range']::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tw-filter-input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-top: -8px;
  background: linear-gradient(180deg, #ff8e40 0%, #f47721 100%);
  border: 2px solid #fff2e3;
  box-shadow: 0 10px 18px -10px rgba(244, 119, 33, 0.88);
}

.tw-filter-input[type='range']::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tw-filter-input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8e40 0%, #f47721 100%);
  border: 2px solid #fff2e3;
  box-shadow: 0 10px 18px -10px rgba(244, 119, 33, 0.88);
}

.tw-table.is-pivot .tw-table-viewport {
  background: linear-gradient(180deg, #161616 0%, #202020 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tw-pivot-axis-header,
.tw-row-head {
  background: linear-gradient(180deg, #282828 0%, #1f1f1f 100%) !important;
}

.tw-pivot-t-header {
  background: linear-gradient(180deg, #383838 0%, #2a2a2a 100%) !important;
  color: #fffaf4 !important;
}

.tw-pivot-axis-cell {
  background: linear-gradient(180deg, #2a2a2a 0%, #202020 100%) !important;
  color: #fffaf4 !important;
}

.tw-pivot-cell {
  background: #252525 !important;
  color: #fffaf4 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

tbody tr:nth-child(even) .tw-pivot-cell {
  background: #3a3a3a !important;
}

.tw-pivot-cell--value {
  color: #fffaf4 !important;
  font-weight: 700;
}

.tw-pivot-cell--empty {
  color: rgba(245, 239, 232, 0.32) !important;
}

.tw-pivot-cell--value:hover,
tbody tr:nth-child(even) .tw-pivot-cell--value:hover {
  background: linear-gradient(135deg, #f07a2a 0%, #cb5718 100%) !important;
  color: #ffffff !important;
}

/* Final industrial alignment: the interactive app follows the sitewide dark reference. */
:root {
  --tw-orange: #f47721;
  --tw-orange-2: #ffad25;
  --tw-bg: #070707;
  --tw-dark: #f8f8f8;
  --tw-muted: rgba(248, 248, 248, 0.66);
  --tw-border: rgba(255, 255, 255, 0.14);
  --tw-panel-radius: 5px;
}

.tw-page-wrap {
  width: min(100%, 1320px);
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(6px, 1vw, 12px) 0 0 !important;
}

.tw-app-wrap {
  padding: clamp(16px, 2vw, 26px) !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 151, 15, 0.13), transparent 22rem),
    linear-gradient(180deg, rgba(22, 22, 22, 0.92) 0%, rgba(9, 9, 9, 0.98) 100%) !important;
  box-shadow: none !important;
}

.tw-app-wrap::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
  opacity: 0.34;
}

.tw-app {
  padding: clamp(18px, 2.4vw, 30px) !important;
  border-radius: 5px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}

.tw-header {
  margin-bottom: clamp(20px, 3vw, 34px) !important;
  padding: 0 0 clamp(18px, 2.5vw, 28px) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tw-title {
  color: #fff !important;
  font-size: clamp(30px, 3.2vw, 48px) !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.tw-subtitle {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(15px, 1.2vw, 18px) !important;
  line-height: 1.65 !important;
}

.tw-mode-toggle,
.tw-tabs {
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.tw-mode-btn,
.tw-tab {
  border-radius: 4px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.74) !important;
  box-shadow: none !important;
}

.tw-mode-btn.is-active,
.tw-tab.is-active {
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  border-color: #ff970f !important;
  color: #080808 !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

.tw-tab:hover,
.tw-mode-btn:hover {
  transform: none !important;
  color: #fff !important;
  border-color: rgba(255, 151, 15, 0.4) !important;
}

.tw-mode-btn.is-active:hover,
.tw-tab.is-active:hover {
  color: #080808 !important;
}

.tw-flow {
  margin-bottom: clamp(18px, 2.5vw, 28px) !important;
}

.tw-flow span {
  border-radius: 4px !important;
  background: rgba(255, 151, 15, 0.1) !important;
  border: 1px solid rgba(255, 151, 15, 0.22) !important;
  color: rgba(255, 221, 193, 0.94) !important;
  box-shadow: none !important;
}

.tw-calc-panel,
.tw-cut-panel,
.tw-filters,
.tw-table {
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.78) 0%, rgba(13, 13, 13, 0.96) 100%) !important;
  box-shadow: none !important;
  color: #fff !important;
}

.tw-cut-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 151, 15, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(34, 34, 34, 0.9) 0%, rgba(10, 10, 10, 0.98) 100%) !important;
}

.tw-panel-title,
.tw-table-summary-title,
.tw-calc-title,
.tw-cut-header h3,
.tw-cut-title,
.tw-row-card__title,
.tw-row-card__meta-value,
.tw-cell,
.tw-pivot-title {
  color: #fff !important;
}

.tw-panel-hint,
.tw-table-summary-meta,
.tw-calc-meta-label,
.tw-input-group label,
.tw-row-card__meta-label,
.tw-empty,
.tw-pivot-meta,
.tw-footnote {
  color: rgba(255, 255, 255, 0.66) !important;
}

.tw-input,
.tw-textarea,
.tw-select,
.tw-filter-input:not([type="range"]),
.tw-search-input,
.tw-calc-input {
  min-height: 50px;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.tw-input::placeholder,
.tw-textarea::placeholder,
.tw-search-input::placeholder,
.tw-calc-input::placeholder {
  color: rgba(255, 255, 255, 0.48) !important;
}

.tw-input:focus,
.tw-textarea:focus,
.tw-select:focus,
.tw-filter-input:focus,
.tw-search-input:focus,
.tw-calc-input:focus {
  outline: none !important;
  border-color: rgba(255, 151, 15, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(255, 151, 15, 0.12) !important;
}

.tw-suggestion,
.tw-filter,
.tw-empty-card,
.tw-row-card,
.tw-row-card__meta-item,
.tw-static-chip,
.tw-toggle-pill,
.tw-cut-item,
.tw-result-card,
.tw-pivot-topbar,
.tw-pivot-badge,
.tw-filter-value {
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.tw-result-card,
.tw-static-chip,
.tw-cut-summary {
  background: rgba(255, 151, 15, 0.1) !important;
  border-color: rgba(255, 151, 15, 0.22) !important;
}

.tw-result-card strong,
.tw-cut-total {
  color: #ffad25 !important;
}

.tw-choice-toggle,
.tw-toggle {
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.tw-choice-toggle__btn,
.tw-toggle button {
  border-radius: 3px !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.tw-choice-toggle__btn.is-active,
.tw-toggle button.is-active {
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #080808 !important;
  box-shadow: none !important;
}

.tw-btn,
.tw-btn-classic-side {
  border-radius: 4px !important;
  text-decoration: none !important;
}

.tw-btn-cta,
.tw-btn-add-row,
.tw-btn-classic-side {
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  border: 1px solid #ff970f !important;
  color: #080808 !important;
  font-weight: 950 !important;
  box-shadow: none !important;
}

.tw-btn-ghost,
.tw-btn-small {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.tw-btn:hover,
.tw-btn:focus-visible,
.tw-btn-classic-side:hover,
.tw-btn-classic-side:focus-visible {
  transform: none !important;
  border-color: rgba(255, 173, 37, 0.82) !important;
}

.tw-table-viewport,
.tw-table.is-pivot .tw-table-viewport {
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: #0a0a0a !important;
  box-shadow: none !important;
}

.tw-row {
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  box-shadow: none !important;
}

.tw-row-head,
.tw-pivot-axis-header,
.tw-pivot-t-header {
  background: linear-gradient(180deg, #222222 0%, #141414 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.tw-pivot-axis-cell {
  background: #191919 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.tw-pivot-cell,
tbody tr:nth-child(even) .tw-pivot-cell {
  background: #111111 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.tw-pivot-cell--value:hover,
tbody tr:nth-child(even) .tw-pivot-cell--value:hover {
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #080808 !important;
}

.tw-filter-input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  border-color: #ffe5c4 !important;
}

.tw-filter-input[type="range"]::-moz-range-thumb {
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  border-color: #ffe5c4 !important;
}

.tw-footnote {
  margin-top: clamp(20px, 3vw, 34px) !important;
  padding: clamp(16px, 2vw, 24px) !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: rgba(255, 255, 255, 0.68) !important;
}

@media (max-width: 640px) {
  .tw-app-wrap {
    padding: 12px !important;
  }

  .tw-app {
    padding: 14px !important;
  }

  .tw-title {
    font-size: 25px !important;
  }

  .tw-tabs,
  .tw-mode-toggle {
    border-radius: 5px !important;
  }

  .tw-tab,
  .tw-mode-btn {
    min-height: 46px;
  }
}

/* Final square geometry: the interactive tables app must stay non-rounded too. */
html body *:not(#hisherik-square-geometry-boost),
html body *:not(#hisherik-square-geometry-boost)::before,
html body *:not(#hisherik-square-geometry-boost)::after {
  border-radius: 0 !important;
}

/* Tables app redesign polish: sharper hierarchy, denser controls, premium industrial depth. */
:root {
  --tw-polish-bg: #070707;
  --tw-polish-panel: rgba(20, 20, 20, 0.92);
  --tw-polish-panel-2: rgba(29, 29, 29, 0.86);
  --tw-polish-line: rgba(255, 255, 255, 0.16);
  --tw-polish-line-soft: rgba(255, 255, 255, 0.1);
  --tw-polish-text: #fafafa;
  --tw-polish-muted: rgba(250, 250, 250, 0.68);
  --tw-polish-orange: #ff970f;
  --tw-polish-orange-2: #f47721;
  --tw-polish-cyan: #9a9a9a;
  --tw-polish-radius: 8px;
}

.tw-page-wrap {
  width: min(100%, 1680px) !important;
  max-width: 1680px !important;
  padding: clamp(24px, 3.4vw, 54px) clamp(14px, 2vw, 28px) !important;
}

.tw-app-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 34px) !important;
  border-radius: var(--tw-polish-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 104px 104px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 104px 104px,
    radial-gradient(circle at 13% 0%, rgba(255, 151, 15, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(17, 17, 17, 0.96) 0%, rgba(7, 7, 7, 0.99) 100%) !important;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.tw-app-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.84;
  background:
    linear-gradient(112deg, transparent 0%, transparent 34%, rgba(255, 151, 15, 0.13) 34%, rgba(255, 151, 15, 0.13) 34.25%, transparent 34.25%, transparent 100%),
    linear-gradient(294deg, transparent 0%, transparent 66%, rgba(255, 255, 255, 0.09) 66%, rgba(255, 255, 255, 0.09) 66.2%, transparent 66.2%, transparent 100%) !important;
}

.tw-app {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 46px) !important;
  border-radius: var(--tw-polish-radius) !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tw-polish-text) !important;
}

.tw-header {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2vw, 24px);
  max-width: 980px;
  margin: 0 auto clamp(24px, 3vw, 42px) !important;
  padding: clamp(10px, 1.4vw, 16px) 0 clamp(26px, 3vw, 42px) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: transparent !important;
  text-align: center;
}

.tw-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: min(180px, 36vw);
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--tw-polish-orange) 18%, var(--tw-polish-orange) 82%, transparent 100%);
}

.tw-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(42px, 4.9vw, 82px) !important;
  font-weight: 950 !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.tw-subtitle {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--tw-polish-muted) !important;
  font-size: clamp(16px, 1.25vw, 21px) !important;
  font-weight: 600;
  line-height: 1.55 !important;
}

.tw-header-actions {
  margin-top: 0 !important;
}

.tw-btn-classic-side {
  min-width: min(100%, 540px) !important;
  min-height: 72px !important;
  padding: 18px 34px !important;
  border-radius: 7px !important;
  border: 1px solid #ffb03a !important;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.22) 0%, transparent 30%),
    linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #080808 !important;
  font-size: clamp(18px, 1.45vw, 25px) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  box-shadow: 0 22px 56px rgba(244, 119, 33, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

.tw-btn-classic-side::before {
  color: #080808;
  font-size: 24px;
}

.tw-btn-classic-side:hover,
.tw-btn-classic-side:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 30px 70px rgba(244, 119, 33, 0.32), 0 0 0 4px rgba(255, 151, 15, 0.14) !important;
}

.tw-mode-toggle {
  position: relative;
  width: fit-content !important;
  max-width: 100%;
  margin: 0 auto 16px !important;
  padding: 8px !important;
  gap: 8px !important;
  border-radius: 8px !important;
  border: 1px solid var(--tw-polish-line) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

.tw-mode-btn {
  width: clamp(180px, 16vw, 250px) !important;
  min-height: 74px;
  padding: 12px 22px !important;
  border-radius: 6px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: clamp(16px, 1.25vw, 22px) !important;
  line-height: 1.25;
}

.tw-mode-btn.is-active {
  background:
    linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #080808 !important;
}

.tw-flow {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  width: min(100%, 860px);
  margin: 0 auto clamp(26px, 3vw, 42px) !important;
}

.tw-flow span {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 151, 15, 0.32) !important;
  background: rgba(255, 151, 15, 0.075) !important;
  color: rgba(255, 230, 210, 0.9) !important;
  font-size: clamp(13px, 1vw, 16px) !important;
  font-weight: 850 !important;
  line-height: 1.25;
}

.tw-tabs {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 0 !important;
  padding: 14px !important;
  border-radius: 8px !important;
  border: 1px solid var(--tw-polish-line) !important;
  background:
    linear-gradient(180deg, rgba(29, 29, 29, 0.78) 0%, rgba(13, 13, 13, 0.96) 100%) !important;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.tw-tab {
  min-height: 56px;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(14px, 0.95vw, 17px) !important;
  font-weight: 850 !important;
}

.tw-tab.is-active {
  border-color: #ff970f !important;
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #080808 !important;
}

.tw-tab-icon {
  width: 22px !important;
  height: 22px !important;
  color: #ffbd86 !important;
}

.tw-tab.is-active .tw-tab-icon {
  color: #fff5e8 !important;
  border-color: #fff5e8 !important;
}

.tw-content {
  gap: clamp(18px, 2vw, 28px) !important;
}

.tw-table-layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) !important;
  gap: 18px !important;
}

.tw-calc-panel,
.tw-cut-panel,
.tw-filters,
.tw-table {
  border-radius: 8px !important;
  border: 1px solid var(--tw-polish-line) !important;
  background:
    radial-gradient(circle at top right, rgba(255, 151, 15, 0.08), transparent 36%),
    linear-gradient(180deg, var(--tw-polish-panel-2) 0%, rgba(11, 11, 11, 0.98) 100%) !important;
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.065) !important;
}

.tw-filters {
  padding: 24px !important;
}

.tw-table {
  padding: 18px !important;
}

.tw-panel-head {
  gap: 14px !important;
}

.tw-panel-title,
.tw-table-summary-title,
.tw-cut-header h3 {
  color: #fff !important;
  font-size: clamp(20px, 1.45vw, 28px) !important;
  font-weight: 950 !important;
  line-height: 1.1;
}

.tw-table-summary-meta,
.tw-panel-hint,
.tw-cut-header p {
  color: var(--tw-polish-muted) !important;
  font-size: 14px !important;
  line-height: 1.55;
}

.tw-input,
.tw-textarea,
.tw-select,
.tw-filter-input:not([type="range"]),
.tw-search-input,
.tw-calc-input {
  border-radius: 6px !important;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  color: #fff !important;
  font-size: 15px;
}

.tw-input:focus,
.tw-textarea:focus,
.tw-select:focus,
.tw-filter-input:focus,
.tw-search-input:focus,
.tw-calc-input:focus {
  border-color: rgba(255, 151, 15, 0.66) !important;
  box-shadow: 0 0 0 4px rgba(255, 151, 15, 0.13) !important;
}

.tw-filter-list {
  gap: 14px !important;
}

.tw-filter,
.tw-row-card,
.tw-cut-item,
.tw-result-card,
.tw-empty-card,
.tw-suggestion,
.tw-static-chip,
.tw-toggle-pill,
.tw-filter-value {
  border-radius: 7px !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.032) 100%) !important;
}

.tw-filter-title,
.tw-input-group label,
.tw-filter-values,
.tw-filter-unit {
  color: rgba(255, 255, 255, 0.74) !important;
  font-weight: 800;
}

.tw-btn-ghost,
.tw-btn-small {
  border-radius: 6px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #fff !important;
}

.tw-btn-cta,
.tw-btn-add-row {
  border-radius: 6px !important;
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #080808 !important;
}

.tw-table-tools {
  align-items: center !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tw-table-viewport,
.tw-table.is-pivot .tw-table-viewport {
  border-radius: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%) !important;
}

.tw-table.is-pivot {
  padding: 18px !important;
}

.tw-pivot-table {
  font-size: 15px !important;
}

.tw-pivot-axis-header,
.tw-pivot-t-header,
.tw-row-head {
  background: linear-gradient(180deg, #2b2114 0%, #1a140c 100%) !important;
  color: #fff !important;
  font-weight: 950 !important;
}

.tw-pivot-axis-cell {
  background: linear-gradient(180deg, #222222 0%, #141414 100%) !important;
  color: #fff !important;
  font-weight: 950 !important;
}

.tw-pivot-cell,
tbody tr:nth-child(even) .tw-pivot-cell {
  background: #141414 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 800;
}

.tw-pivot-table tbody tr:nth-child(even) .tw-pivot-cell {
  background: #1f1f1f !important;
}

.tw-pivot-cell--value:hover,
tbody tr:nth-child(even) .tw-pivot-cell--value:hover {
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #080808 !important;
}

.tw-choice-toggle,
.tw-toggle {
  border-radius: 6px !important;
}

.tw-choice-toggle__btn,
.tw-toggle button {
  border-radius: 5px !important;
}

.tw-footnote {
  border-radius: 8px !important;
  max-width: 1280px !important;
  background:
    linear-gradient(180deg, rgba(29, 29, 29, 0.55) 0%, rgba(13, 13, 13, 0.78) 100%) !important;
}

@media (max-width: 1100px) {
  .tw-table-layout {
    grid-template-columns: 1fr !important;
  }

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

@media (max-width: 767.98px) {
  .tw-page-wrap {
    padding: 22px 12px !important;
  }

  .tw-app-wrap {
    padding: 12px !important;
  }

  .tw-app {
    padding: 16px !important;
  }

  .tw-title {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .tw-mode-toggle,
  .tw-flow,
  .tw-tabs {
    width: 100% !important;
  }

  .tw-mode-toggle,
  .tw-tabs {
    display: grid !important;
  }

  .tw-mode-toggle {
    grid-template-columns: 1fr !important;
  }

  .tw-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tw-mode-btn {
    width: 100% !important;
    min-height: 58px;
  }

  .tw-flow {
    grid-template-columns: 1fr;
  }

  .tw-tab {
    justify-content: space-between !important;
  }

  .tw-btn-classic-side {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 62px !important;
    font-size: 17px !important;
  }
}

/* 2026-07-18 release regression: the calculator and quote panels are part of
   the same light island. Neutralize the remaining legacy dark-panel colors. */
html body .tw-page-wrap .tw-calc-panel .tw-calc-title,
html body .tw-page-wrap .tw-cut-panel .tw-cut-header > :first-child,
html body .tw-page-wrap .tw-cut-panel .tw-cut-title {
  color: #2b2b2b !important;
  -webkit-text-fill-color: #2b2b2b !important;
  text-shadow: none !important;
}

html body .tw-page-wrap .tw-calc-panel .tw-result-card {
  background: #fff2e4 !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  border-color: #e1c8b4 !important;
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-calc-panel .tw-result-card strong,
html body .tw-page-wrap .tw-cut-panel .tw-cut-total {
  color: #87400f !important;
  -webkit-text-fill-color: #87400f !important;
  text-shadow: none !important;
}

html body .tw-page-wrap .tw-cut-panel .tw-cut-item {
  background: #fffaf4 !important;
  color: #2b2b2b !important;
  border-color: #d9d1c7 !important;
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-calc-panel select.tw-input,
html body .tw-page-wrap .tw-cut-panel select.tw-input {
  background: #fffdf9 !important;
  color: #2b2b2b !important;
  -webkit-text-fill-color: #2b2b2b !important;
  border-color: #bdb4a9 !important;
  text-shadow: none !important;
}

html body .tw-page-wrap .tw-calc-panel select.tw-input option,
html body .tw-page-wrap .tw-cut-panel select.tw-input option {
  background: #ffffff !important;
  color: #2b2b2b !important;
}

/* Keyboard users must be able to locate the primary table search reliably. */
html body .tw-page-wrap .tw-quick-search__input:focus-visible {
  outline: 3px solid #f47721 !important;
  outline-offset: 3px !important;
  border-color: #d95d14 !important;
  box-shadow: 0 0 0 5px rgba(244, 119, 33, 0.24) !important;
}

/* Final UI Kit bridge: app.css loads after the global design system. */
.tw-title {
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.tw-btn.tw-btn-classic-side,
.tw-app .tw-btn-cta,
.tw-app .tw-btn-add-row {
  width: auto !important;
  min-width: 148px !important;
  max-width: 360px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 1px solid #ff8a00 !important;
  border-radius: 0 !important;
  background: #ff8a00 !important;
  background-image: none !important;
  color: #080808 !important;
  box-shadow: none !important;
  font-family: "Rubik", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  transform: none !important;
}

.tw-btn.tw-btn-classic-side {
  min-width: 320px !important;
}

.tw-btn.tw-btn-classic-side::before {
  content: none !important;
  display: none !important;
}

.tw-btn.tw-btn-classic-side::after,
.tw-app .tw-btn-cta::after,
.tw-app .tw-btn-add-row::after {
  content: "‹" !important;
  display: inline-block !important;
  color: currentColor !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.tw-btn.tw-btn-classic-side:hover,
.tw-btn.tw-btn-classic-side:focus-visible,
.tw-app .tw-btn-cta:hover,
.tw-app .tw-btn-cta:focus-visible,
.tw-app .tw-btn-add-row:hover,
.tw-app .tw-btn-add-row:focus-visible {
  border-color: #ffad25 !important;
  background: #ffad25 !important;
  background-image: none !important;
  color: #080808 !important;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.2) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 767.98px) {
  .tw-btn.tw-btn-classic-side,
  .tw-app .tw-btn-cta,
  .tw-app .tw-btn-add-row {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* Tables app UX simplification 2026-06-10
   Quiet utility layout: search first, compact category chips, clean mobile list/table handling. */
.tw-app {
  --tw-surface: oklch(0.985 0.004 78);
  --tw-surface-2: oklch(0.965 0.006 78);
  --tw-ink: oklch(0.23 0 0);
  --tw-ink-soft: oklch(0.46 0 0);
  --tw-line: oklch(0.88 0.008 80);
  --tw-accent: oklch(0.68 0.17 50);
  background: var(--tw-surface);
  color: var(--tw-ink);
  box-shadow: none;
}

.tw-app-wrap {
  background: oklch(0.995 0.003 78);
  box-shadow: 0 28px 80px -55px rgba(23, 23, 23, 0.36);
}

.tw-header {
  text-align: start;
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.tw-title {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
  color: var(--tw-ink);
}

.tw-subtitle {
  margin: 0;
  max-width: 680px;
  color: var(--tw-ink-soft);
  font-size: 16px;
}

.tw-mode-toggle {
  justify-content: flex-start;
  background: oklch(0.94 0.005 78);
  padding: 5px;
  border-radius: 999px;
  width: fit-content;
  gap: 4px;
}

.tw-mode-btn {
  border-radius: 999px;
  background: transparent;
  color: var(--tw-ink-soft);
  box-shadow: none;
  min-height: 40px;
}

.tw-mode-btn.is-active {
  background: oklch(0.995 0.003 78);
  color: var(--tw-ink);
  box-shadow: 0 12px 28px -20px rgba(23, 23, 23, .45);
}

.tw-quick-search {
  margin: 14px 0 12px;
  padding: 16px;
  border: 1px solid var(--tw-line);
  border-radius: 22px;
  background: linear-gradient(180deg, oklch(0.998 0.003 78), oklch(0.972 0.006 78));
  display: grid;
  gap: 8px;
}

.tw-quick-search__label {
  font-weight: 800;
  font-size: 15px;
  color: var(--tw-ink);
}

.tw-quick-search__input,
.tw-filters .tw-input {
  min-height: 52px;
  border-radius: 16px;
  font-size: 17px;
  text-align: right;
  direction: rtl;
  border-color: var(--tw-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.tw-quick-search__input::placeholder,
.tw-filters .tw-input::placeholder {
  text-align: right;
  color: oklch(0.62 0 0);
}

.tw-quick-search__meta,
.tw-panel-hint,
.tw-table-guide {
  font-size: 13px;
  line-height: 1.55;
  color: var(--tw-ink-soft);
}

.tw-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border-radius: 18px;
  background: transparent;
  border: 0;
  padding: 2px 0 10px;
  gap: 8px;
}

.tw-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border-color: var(--tw-line);
  box-shadow: none;
}

.tw-tab-icon { display: none; }

.tw-tab.is-active {
  background: var(--tw-accent);
  border-color: transparent;
  color: oklch(0.99 0.004 78);
}

.tw-flow {
  justify-content: flex-start;
  margin: 2px 0 14px;
}

.tw-flow span {
  background: transparent;
  border-color: var(--tw-line);
  color: var(--tw-ink-soft);
}

.tw-table-layout {
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  align-items: start;
}

.tw-filters,
.tw-table,
.tw-calc-panel,
.tw-cut-panel {
  border-radius: 20px;
  border-color: var(--tw-line);
  background: oklch(0.998 0.003 78);
  box-shadow: 0 18px 48px -40px rgba(23, 23, 23, 0.34);
}

.tw-filters-head,
.tw-table-tools {
  align-items: start;
  gap: 10px;
}

.tw-btn-inline,
.tw-btn-small {
  min-height: 38px;
  border-radius: 999px;
}

.tw-row-card {
  box-shadow: none;
  border-color: var(--tw-line);
  border-radius: 18px;
}

.tw-btn-add-row {
  border-radius: 999px;
  min-height: 40px;
  padding-inline: 15px;
}

.tw-pivot-shell {
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tw-line);
  border-radius: 16px;
  background: oklch(0.998 0.003 78);
}

.tw-pivot-table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.tw-pivot-caption {
  text-align: right;
  color: var(--tw-ink-soft);
  padding: 10px 12px;
  caption-side: top;
}

.tw-pivot-table th,
.tw-pivot-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--tw-line);
  border-inline-start: 1px solid var(--tw-line);
  text-align: center;
  white-space: nowrap;
}

.tw-pivot-table th {
  background: oklch(0.94 0.006 78);
  font-weight: 800;
}

.tw-pivot-axis-header,
.tw-pivot-axis-cell {
  position: sticky;
  right: 0;
  z-index: 1;
  background: oklch(0.98 0.004 78) !important;
  font-weight: 800;
}

.tw-pivot-cell--value {
  color: oklch(0.42 0.15 50);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .tw-page-wrap,
  .tw-app-wrap {
    max-width: 100%;
    overflow-x: hidden;
  }

  .tw-app-wrap {
    padding: 0;
    border-radius: 0;
    border-inline: 0;
  }

  .tw-app {
    padding: 16px 14px 22px;
    border-radius: 0;
    border-inline: 0;
  }

  .tw-header {
    margin-bottom: 10px;
  }

  .tw-title {
    font-size: 28px;
    line-height: 1.08;
  }

  .tw-subtitle {
    font-size: 14px;
    line-height: 1.55;
  }

  .tw-mode-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
  }

  .tw-mode-btn {
    padding: 10px 8px;
    font-size: 14px;
  }

  .tw-quick-search {
    margin: 10px 0 10px;
    padding: 13px;
    border-radius: 18px;
  }

  .tw-quick-search__input,
  .tw-filters .tw-input {
    min-height: 48px;
    font-size: 16px;
  }

  .tw-tabs {
    margin-inline: -14px;
    padding: 0 14px 10px;
    gap: 7px;
  }

  .tw-tab {
    width: auto;
    min-width: max-content;
    justify-content: center;
    padding: 9px 13px;
    font-size: 13px;
  }

  .tw-flow {
    display: none;
  }

  .tw-table-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tw-filters {
    order: 1;
    padding: 12px;
  }

  .tw-table {
    order: 2;
    padding: 12px;
  }

  .tw-filters-head .tw-panel-title {
    font-size: 16px;
  }

  .tw-filter-list {
    display: none;
  }

  .tw-filters.is-open .tw-filter-list {
    display: grid;
  }

  .tw-panel-hint {
    margin-top: 7px;
  }

  .tw-table-tools {
    display: grid;
    gap: 6px;
  }

  .tw-table-summary-title {
    font-size: 17px;
  }

  .tw-table-viewport {
    overflow: visible;
  }

  .tw-table-panel.is-pivot .tw-table-viewport,
  .tw-table.is-pivot .tw-table-viewport {
    overflow: visible;
  }

  .tw-pivot-shell {
    margin-inline: -2px;
    max-height: 70vh;
  }

  .tw-pivot-table {
    min-width: 640px;
    font-size: 13px;
  }

  .tw-pivot-table th,
  .tw-pivot-table td {
    padding: 9px 10px;
  }

  .tw-row-card {
    padding: 12px;
    gap: 10px;
  }

  .tw-row-card__top {
    align-items: flex-start;
  }

  .tw-row-card__title {
    font-size: 16px;
  }

  .tw-row-card__meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tw-row-card__meta-item {
    grid-template-columns: 96px 1fr;
    align-items: center;
    padding: 8px 10px;
  }

  .tw-row-card__meta-label {
    font-size: 11px;
  }

  .tw-row-card__meta-value {
    text-align: left;
    direction: ltr;
  }

  .tw-btn-add-row {
    min-width: 76px;
  }
}


/* Tables app final mobile override 2026-06-10: win over legacy dark/site mobile rules. */
html body .tw-page-wrap .tw-app-wrap {
  background: oklch(0.995 0.003 78) !important;
}

html body .tw-page-wrap .tw-app {
  background: oklch(0.985 0.004 78) !important;
  color: oklch(0.23 0 0) !important;
  border: 1px solid oklch(0.88 0.008 80) !important;
}

html body .tw-page-wrap .tw-header {
  text-align: right !important;
  align-items: start !important;
}

html body .tw-page-wrap .tw-title {
  color: oklch(0.23 0 0) !important;
  font-size: clamp(28px, 4.2vw, 42px) !important;
  line-height: 1.12 !important;
  text-shadow: none !important;
}

html body .tw-page-wrap .tw-subtitle {
  color: oklch(0.46 0 0) !important;
  font-size: 16px !important;
  text-align: right !important;
  margin-inline: 0 auto !important;
}

html body .tw-page-wrap .tw-mode-toggle {
  background: oklch(0.94 0.005 78) !important;
  border: 1px solid oklch(0.88 0.008 80) !important;
}

html body .tw-page-wrap .tw-mode-btn {
  background: transparent !important;
  color: oklch(0.46 0 0) !important;
  border: 0 !important;
}

html body .tw-page-wrap .tw-mode-btn.is-active {
  background: oklch(0.995 0.003 78) !important;
  color: oklch(0.23 0 0) !important;
}

html body .tw-page-wrap .tw-quick-search,
html body .tw-page-wrap .tw-filters,
html body .tw-page-wrap .tw-table,
html body .tw-page-wrap .tw-calc-panel,
html body .tw-page-wrap .tw-cut-panel {
  background: oklch(0.995 0.003 78) !important;
  color: oklch(0.23 0 0) !important;
  border: 1px solid oklch(0.88 0.008 80) !important;
}

html body .tw-page-wrap .tw-quick-search__label,
html body .tw-page-wrap .tw-panel-title,
html body .tw-page-wrap .tw-table-summary-title {
  color: oklch(0.23 0 0) !important;
}

html body .tw-page-wrap .tw-quick-search__meta,
html body .tw-page-wrap .tw-panel-hint,
html body .tw-page-wrap .tw-table-guide,
html body .tw-page-wrap .tw-table-summary-meta {
  color: oklch(0.46 0 0) !important;
}

@media (max-width: 767.98px) {
  html body .tw-page-wrap {
    padding-inline: 0 !important;
    overflow-x: hidden !important;
  }

  html body .tw-page-wrap .tw-app-wrap {
    margin-inline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body .tw-page-wrap .tw-app {
    padding: 16px 14px 24px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body .tw-page-wrap .tw-title {
    font-size: 30px !important;
  }

  html body .tw-page-wrap .tw-subtitle {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  html body .tw-page-wrap .tw-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    grid-template-columns: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 14px 10px !important;
    margin: 0 -14px 10px !important;
    gap: 8px !important;
  }

  html body .tw-page-wrap .tw-tab {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 40px !important;
    padding: 9px 14px !important;
    background: oklch(0.995 0.003 78) !important;
    color: oklch(0.28 0 0) !important;
    border: 1px solid oklch(0.86 0.01 80) !important;
    box-shadow: none !important;
  }

  html body .tw-page-wrap .tw-tab.is-active {
    background: oklch(0.68 0.17 50) !important;
    color: oklch(0.99 0.004 78) !important;
    border-color: transparent !important;
  }

  html body .tw-page-wrap .tw-tab-icon {
    display: none !important;
  }

  html body .tw-page-wrap .tw-flow {
    display: none !important;
  }

  html body .tw-page-wrap .tw-table-layout {
    display: flex !important;
    flex-direction: column !important;
  }

  html body .tw-page-wrap .tw-filter-list {
    display: none !important;
  }

  html body .tw-page-wrap .tw-filters.is-open .tw-filter-list {
    display: grid !important;
  }
}


/* Tables app 2026-06-10: category chips wrap on mobile, no hidden horizontal category scrolling. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    gap: 7px !important;
  }

  html body .tw-page-wrap .tw-tab {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 36px !important;
    padding: 8px 11px !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
  }
}


/* Tables app final control colors 2026-06-10: keep the utility surface quiet and readable. */
html body .tw-page-wrap .tw-app,
html body .tw-page-wrap .tw-quick-search,
html body .tw-page-wrap .tw-filters,
html body .tw-page-wrap .tw-table {
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-app {
  border-color: oklch(0.90 0.006 80) !important;
}

html body .tw-page-wrap .tw-quick-search__input,
html body .tw-page-wrap .tw-filters input.tw-input,
html body .tw-page-wrap .tw-calc-panel input,
html body .tw-page-wrap .tw-cut-panel input,
html body .tw-page-wrap textarea.tw-input {
  background: oklch(0.998 0.003 78) !important;
  color: oklch(0.23 0 0) !important;
  border: 1px solid oklch(0.82 0.01 80) !important;
  box-shadow: none !important;
  -webkit-text-fill-color: oklch(0.23 0 0) !important;
}

html body .tw-page-wrap .tw-quick-search__input::placeholder,
html body .tw-page-wrap .tw-filters input.tw-input::placeholder {
  color: oklch(0.56 0 0) !important;
  opacity: 1 !important;
}

html body .tw-page-wrap button.tw-tab,
html body .tw-page-wrap .tw-tab:not(.is-active) {
  background: oklch(0.985 0.004 78) !important;
  color: oklch(0.28 0 0) !important;
  border: 1px solid oklch(0.82 0.01 80) !important;
  box-shadow: none !important;
}

html body .tw-page-wrap button.tw-tab.is-active,
html body .tw-page-wrap .tw-tab.is-active {
  background: oklch(0.68 0.17 50) !important;
  color: oklch(0.99 0.004 78) !important;
  border-color: oklch(0.68 0.17 50) !important;
}

html body .tw-page-wrap .tw-mode-btn:not(.is-active) {
  background: transparent !important;
  color: oklch(0.40 0 0) !important;
}

html body .tw-page-wrap .tw-btn-ghost,
html body .tw-page-wrap button.tw-btn-ghost {
  background: oklch(0.97 0.004 78) !important;
  color: oklch(0.28 0 0) !important;
  border: 1px solid oklch(0.82 0.01 80) !important;
}

@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-app {
    border-top: 0 !important;
  }

  html body .tw-page-wrap .tw-quick-search,
  html body .tw-page-wrap .tw-filters,
  html body .tw-page-wrap .tw-table {
    border-radius: 16px !important;
  }

  html body .tw-page-wrap .tw-tabs {
    justify-content: flex-start !important;
    background: transparent !important;
  }
}


/* Tables app compact mobile header 2026-06-10: get users to search/results faster. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-header {
    gap: 4px !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
  }

  html body .tw-page-wrap .tw-header::before,
  html body .tw-page-wrap .tw-header::after,
  html body .tw-page-wrap .tw-title::before,
  html body .tw-page-wrap .tw-title::after {
    display: none !important;
    content: none !important;
  }

  html body .tw-page-wrap .tw-title {
    font-size: 26px !important;
    line-height: 1.12 !important;
    margin: 0 !important;
    text-align: right !important;
  }

  html body .tw-page-wrap .tw-subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  html body .tw-page-wrap .tw-mode-toggle {
    margin: 8px 0 !important;
  }

  html body .tw-page-wrap .tw-quick-search {
    margin: 8px 0 !important;
    padding: 12px !important;
  }

  html body .tw-page-wrap .tw-quick-search__label {
    font-size: 14px !important;
  }
}


/* Tables app final mobile result cards 2026-06-10: readable one-column cards. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-table-rows {
    display: grid !important;
    gap: 10px !important;
    position: static !important;
    transform: none !important;
  }

  html body .tw-page-wrap article.tw-row-card,
  html body .tw-page-wrap .tw-row-card {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
    min-height: 0 !important;
    background: oklch(0.995 0.003 78) !important;
    color: oklch(0.23 0 0) !important;
    border: 1px solid oklch(0.84 0.01 80) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body .tw-page-wrap .tw-row-card__top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html body .tw-page-wrap .tw-row-card__title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  html body .tw-page-wrap .tw-row-card__title {
    margin: 0 !important;
    color: oklch(0.23 0 0) !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    text-align: right !important;
    white-space: normal !important;
  }

  html body .tw-page-wrap .tw-shape {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    color: oklch(0.68 0.17 50) !important;
    border-color: currentColor !important;
  }

  html body .tw-page-wrap button.tw-btn-add-row,
  html body .tw-page-wrap .tw-btn-add-row {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 74px !important;
    max-width: none !important;
    height: auto !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: oklch(0.68 0.17 50) !important;
    color: oklch(0.99 0.004 78) !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    transform: none !important;
  }

  html body .tw-page-wrap .tw-btn-add-row::before,
  html body .tw-page-wrap .tw-btn-add-row::after {
    display: none !important;
    content: none !important;
  }

  html body .tw-page-wrap .tw-row-card__meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  html body .tw-page-wrap .tw-row-card__meta-item {
    display: grid !important;
    grid-template-columns: 105px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 34px !important;
    padding: 7px 9px !important;
    background: oklch(0.965 0.004 78) !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  html body .tw-page-wrap .tw-row-card__meta-label {
    color: oklch(0.48 0 0) !important;
    font-size: 12px !important;
    text-align: right !important;
  }

  html body .tw-page-wrap .tw-row-card__meta-value {
    color: oklch(0.23 0 0) !important;
    font-size: 14px !important;
    text-align: left !important;
    direction: ltr !important;
  }
}


/* Tables app final mobile cards separators 2026-06-10: remove dark legacy bands between cards. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-table,
  html body .tw-page-wrap .tw-table-viewport,
  html body .tw-page-wrap .tw-table-spacer,
  html body .tw-page-wrap .tw-table-rows {
    background: oklch(0.995 0.003 78) !important;
  }

  html body .tw-page-wrap .tw-table-spacer {
    display: none !important;
    height: 0 !important;
  }

  html body .tw-page-wrap .tw-table-rows {
    gap: 12px !important;
    padding: 0 !important;
  }

  html body .tw-page-wrap .tw-row-card,
  html body .tw-page-wrap article.tw-row-card {
    margin: 0 !important;
    outline: 0 !important;
    border: 1px solid oklch(0.86 0.01 80) !important;
    background-clip: padding-box !important;
  }
}


/* Tables app light island 2026-06-10: keep Hisherik site dark while product tables stay bright and readable. */
html body .tw-page-wrap {
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 119, 33, 0.12), transparent 360px),
    linear-gradient(180deg, oklch(0.08 0 0) 0%, oklch(0.055 0 0) 100%) !important;
}

html body .tw-page-wrap .tw-app-wrap {
  background: oklch(0.982 0.006 78) !important;
  color: oklch(0.22 0 0) !important;
  border: 1px solid oklch(0.93 0.008 78) !important;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body .tw-page-wrap .tw-app,
html body .tw-page-wrap .tw-table-layout,
html body .tw-page-wrap .tw-table,
html body .tw-page-wrap .tw-table-viewport,
html body .tw-page-wrap .tw-table-rows,
html body .tw-page-wrap .tw-pivot-shell,
html body .tw-page-wrap .tw-filters,
html body .tw-page-wrap .tw-quick-search,
html body .tw-page-wrap .tw-calc-panel,
html body .tw-page-wrap .tw-cut-panel {
  background: oklch(0.986 0.005 78) !important;
  color: oklch(0.23 0 0) !important;
  border-color: oklch(0.88 0.01 78) !important;
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-app {
  background:
    radial-gradient(circle at 88% 0%, oklch(0.94 0.035 58 / 0.52), transparent 300px),
    linear-gradient(180deg, oklch(0.992 0.004 78) 0%, oklch(0.975 0.006 78) 100%) !important;
}

html body .tw-page-wrap .tw-tabs {
  background: oklch(0.965 0.006 78) !important;
  border: 1px solid oklch(0.86 0.012 78) !important;
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-flow span {
  background: oklch(0.965 0.028 62) !important;
  border-color: oklch(0.88 0.05 58) !important;
  color: oklch(0.34 0.07 50) !important;
}

html body .tw-page-wrap .tw-pivot-shell {
  padding: 10px !important;
  border-radius: 16px !important;
}

html body .tw-page-wrap .tw-pivot-table {
  background: oklch(0.992 0.004 78) !important;
  color: oklch(0.23 0 0) !important;
  border: 1px solid oklch(0.84 0.012 78) !important;
}

html body .tw-page-wrap .tw-pivot-axis-header,
html body .tw-page-wrap .tw-pivot-t-header,
html body .tw-page-wrap .tw-pivot-axis-cell {
  background: oklch(0.94 0.012 78) !important;
  color: oklch(0.22 0 0) !important;
  border-color: oklch(0.82 0.014 78) !important;
  text-shadow: none !important;
}

html body .tw-page-wrap .tw-pivot-axis-header {
  color: oklch(0.45 0.12 52) !important;
}

html body .tw-page-wrap .tw-pivot-cell,
html body .tw-page-wrap tbody tr:nth-child(even) .tw-pivot-cell {
  background: oklch(0.998 0.003 78) !important;
  color: oklch(0.24 0 0) !important;
  border-color: oklch(0.88 0.01 78) !important;
}

html body .tw-page-wrap .tw-pivot-cell--empty {
  color: oklch(0.63 0 0) !important;
}

html body .tw-page-wrap .tw-pivot-cell--value {
  color: oklch(0.22 0 0) !important;
  font-weight: 700 !important;
}

html body .tw-page-wrap .tw-pivot-cell--value:hover,
html body .tw-page-wrap tbody tr:nth-child(even) .tw-pivot-cell--value:hover {
  background: oklch(0.70 0.17 50) !important;
  color: oklch(0.99 0.004 78) !important;
}

@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-app-wrap {
    background: oklch(0.982 0.006 78) !important;
  }

  html body .tw-page-wrap .tw-pivot-shell {
    background: oklch(0.99 0.004 78) !important;
  }
}


/* Tables app light island polish 2026-06-10: filter labels/buttons stay readable on the bright panel. */
html body .tw-page-wrap .tw-filter,
html body .tw-page-wrap .tw-filter-title,
html body .tw-page-wrap .tw-filter-values,
html body .tw-page-wrap .tw-filter-unit {
  color: oklch(0.36 0 0) !important;
}

html body .tw-page-wrap .tw-filter-title {
  color: oklch(0.24 0 0) !important;
  font-weight: 800 !important;
}

html body .tw-page-wrap .tw-filter-input {
  accent-color: oklch(0.70 0.17 50) !important;
}

html body .tw-page-wrap .tw-panel-head .tw-btn-ghost,
html body .tw-page-wrap .tw-panel-head button.tw-btn-ghost {
  background: oklch(0.22 0 0) !important;
  color: oklch(0.99 0.004 78) !important;
  border-color: oklch(0.22 0 0) !important;
}


/* Tables app mobile pivot containment 2026-06-10: fix clipped/offscreen pivot table seen on real phone screenshot. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-table-layout,
  html body .tw-page-wrap .tw-browse,
  html body .tw-page-wrap .tw-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot {
    display: block !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    margin-inline-start: calc(50% - 50vw + 14px) !important;
    margin-inline-end: calc(50% - 50vw + 14px) !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-table-viewport,
  html body .tw-page-wrap .tw-table.is-pivot .tw-table-rows,
  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-table-viewport {
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-shell {
    display: block !important;
    direction: ltr !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px !important;
    outline: 0 !important;
    border: 1px solid oklch(0.84 0.012 78) !important;
    border-radius: 12px !important;
    scrollbar-gutter: auto !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-shell:focus,
  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-shell:focus-visible {
    outline: 0 !important;
    box-shadow: inset 0 0 0 1px oklch(0.78 0.09 55) !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-table {
    direction: rtl !important;
    width: max-content !important;
    min-width: 760px !important;
    margin: 0 !important;
  }
}


/* Tables app mobile RTL sticky axis 2026-06-10: keep diameter/size column pinned to the right edge, not floating over the table. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-axis-header,
  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-axis-cell {
    left: auto !important;
    right: 0 !important;
    z-index: 6 !important;
  }
}

/* Tables app range rail color fix 2026-07-08: restore visible orange bars on filter sliders. */
html body .tw-page-wrap .tw-filter-input[type="range"] {
  --tw-range-percent: 0%;
  --tw-range-fill: oklch(0.70 0.17 50);
  --tw-range-rail: rgba(41, 41, 41, 0.18);
  --tw-range-rail-edge: rgba(216, 98, 29, 0.28);
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  cursor: pointer;
  background:
    linear-gradient(
      to left,
      var(--tw-range-fill) 0%,
      var(--tw-range-fill) var(--tw-range-percent),
      var(--tw-range-rail) var(--tw-range-percent),
      var(--tw-range-rail) 100%
    ) center / 100% 10px no-repeat !important;
  box-shadow: none !important;
  accent-color: var(--tw-range-fill) !important;
}

html body .tw-page-wrap .tw-filter-input[type="range"]::-webkit-slider-runnable-track {
  height: 10px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid var(--tw-range-rail-edge) !important;
  box-shadow: inset 0 1px 2px rgba(23, 23, 23, 0.12) !important;
}

html body .tw-page-wrap .tw-filter-input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  margin-top: -8px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  border: 2px solid #fff2e3 !important;
  box-shadow: 0 8px 18px -8px rgba(244, 119, 33, 0.95) !important;
}

html body .tw-page-wrap .tw-filter-input[type="range"]::-moz-range-track {
  height: 10px !important;
  border-radius: 999px !important;
  background: var(--tw-range-rail) !important;
  border: 1px solid var(--tw-range-rail-edge) !important;
  box-shadow: inset 0 1px 2px rgba(23, 23, 23, 0.12) !important;
}

html body .tw-page-wrap .tw-filter-input[type="range"]::-moz-range-progress {
  height: 10px !important;
  border-radius: 999px !important;
  background: var(--tw-range-fill) !important;
}

html body .tw-page-wrap .tw-filter-input[type="range"]::-moz-range-thumb {
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  border: 2px solid #fff2e3 !important;
  box-shadow: 0 8px 18px -8px rgba(244, 119, 33, 0.95) !important;
}

html body .tw-page-wrap .tw-filter-input[type="range"]:focus-visible {
  outline: 3px solid rgba(244, 119, 33, 0.22) !important;
  outline-offset: 2px !important;
}

/* Tables app dual range selected bar fix 2026-07-08: one visible orange selected rail between min/max thumbs. */
html body .tw-page-wrap .tw-filter-range {
  --tw-range-min-percent: 0%;
  --tw-range-max-percent: 100%;
  --tw-range-fill: oklch(0.70 0.17 50);
  --tw-range-rail: rgba(41, 41, 41, 0.18);
  --tw-range-rail-edge: rgba(216, 98, 29, 0.28);
  position: relative !important;
  display: block !important;
  height: 44px !important;
  margin-top: 2px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(
      to left,
      var(--tw-range-rail) 0%,
      var(--tw-range-rail) var(--tw-range-min-percent),
      var(--tw-range-fill) var(--tw-range-min-percent),
      var(--tw-range-fill) var(--tw-range-max-percent),
      var(--tw-range-rail) var(--tw-range-max-percent),
      var(--tw-range-rail) 100%
    ) center / 100% 10px no-repeat !important;
}

html body .tw-page-wrap .tw-filter-range::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid var(--tw-range-rail-edge);
  box-shadow: inset 0 1px 2px rgba(23, 23, 23, 0.12);
  pointer-events: none;
}

html body .tw-page-wrap .tw-filter-range .tw-filter-input[type="range"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
  z-index: 2;
}

html body .tw-page-wrap .tw-filter-range .tw-filter-input[type="range"]::-webkit-slider-runnable-track {
  height: 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-filter-range .tw-filter-input[type="range"]::-moz-range-track {
  height: 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-filter-range .tw-filter-input[type="range"]::-moz-range-progress {
  background: transparent !important;
}

html body .tw-page-wrap .tw-filter-range .tw-filter-input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
}

html body .tw-page-wrap .tw-filter-range .tw-filter-input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
}

/* 2026-07-08 alignment QA: keep mobile table controls and pivot on the same axis. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-table-layout {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    margin-inline-start: calc(50% - 50vw + 14px) !important;
    margin-inline-end: calc(50% - 50vw + 14px) !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  html body .tw-page-wrap .tw-table-layout > .tw-filters,
  html body .tw-page-wrap .tw-table-layout > .tw-table,
  html body .tw-page-wrap .tw-table-layout > .tw-table.is-pivot {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }
}

/* 2026-07-08 design pass: mobile table shell uses one rail, no nested off-axis widths. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-app-wrap {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html body .tw-page-wrap .tw-app-wrap > *,
  html body .tw-page-wrap .tw-app,
  html body .tw-page-wrap .tw-content,
  html body .tw-page-wrap .tw-browse,
  html body .tw-page-wrap .tw-table-layout,
  html body .tw-page-wrap .tw-filters,
  html body .tw-page-wrap .tw-table,
  html body .tw-page-wrap .tw-table.is-pivot {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  html body .tw-page-wrap .tw-table-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot {
    padding: 8px !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-shell {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 2026-07-08 subtitle alignment fix: centered table intro copy under centered title. */
html body .tw-page-wrap .tw-header {
  text-align: center !important;
  align-items: center !important;
}

html body .tw-page-wrap .tw-title,
html body .tw-page-wrap .tw-subtitle {
  text-align: center !important;
  margin-inline: auto !important;
}

html body .tw-page-wrap .tw-subtitle {
  max-width: min(760px, 92vw) !important;
}

@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-title,
  html body .tw-page-wrap .tw-subtitle {
    text-align: center !important;
    margin-inline: auto !important;
  }

  html body .tw-page-wrap .tw-subtitle {
    max-width: min(330px, 92vw) !important;
  }
}

/* 2026-07-17 release QA: keep the two primary modes on one mobile row. */
@media (max-width: 767.98px) {
  html body.body.home .tw-page-wrap .tw-mode-toggle,
  html body .tw-page-wrap .tw-mode-toggle {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }

  html body.body.home .tw-page-wrap .tw-mode-toggle > .tw-mode-btn,
  html body .tw-page-wrap .tw-mode-toggle > .tw-mode-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding-inline: 8px !important;
    white-space: normal !important;
  }
}

/* 2026-07-17 release QA: labels belong to the tables app's light surface. */
html body .tw-page-wrap .tw-calc-panel label,
html body .tw-page-wrap .tw-cut-panel label {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

html body .tw-page-wrap .tw-calc-panel .tw-unit-label,
html body .tw-page-wrap .tw-cut-panel .tw-unit-label,
html body .tw-page-wrap .tw-calc-panel .tw-calc-meta-label,
html body .tw-page-wrap .tw-cut-panel .tw-calc-meta-label,
html body .tw-page-wrap .tw-calc-panel .tw-empty,
html body .tw-page-wrap .tw-cut-panel .tw-empty,
html body .tw-page-wrap .tw-calc-panel p,
html body .tw-page-wrap .tw-cut-panel p {
  color: #5f5f5f !important;
  -webkit-text-fill-color: #5f5f5f !important;
}

html body .tw-page-wrap .tw-cut-panel .tw-cut-header h3,
html body .tw-page-wrap .tw-cut-panel .tw-cut-summary strong {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

html body .tw-page-wrap .tw-calc-panel .tw-toggle button:not(.is-active),
html body .tw-page-wrap .tw-cut-panel .tw-toggle button:not(.is-active) {
  background: #f2eee8 !important;
  color: #333333 !important;
  border-color: #c9c2b8 !important;
  -webkit-text-fill-color: #333333 !important;
}

/* Quote rows need visible field names and a decisive selected/unselected state.
   The global design system styles every app button like an orange CTA, which
   otherwise makes both sides of the galvanized choice look selected. */
html body .tw-page-wrap .tw-cut-input-group {
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
  min-width: 0 !important;
}

html body .tw-page-wrap .tw-cut-input-label {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

html body .tw-page-wrap .tw-cut-input-group > .tw-input {
  min-width: 0 !important;
  margin-bottom: 0 !important;
}

html body .tw-page-wrap .tw-choice-toggle__btn:not(.is-active) {
  min-height: 44px !important;
  padding: 8px 6px !important;
  background: #f2eee8 !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  border: 1px solid #c9c2b8 !important;
  box-shadow: none !important;
}

html body .tw-page-wrap .tw-choice-toggle__btn.is-active {
  min-height: 44px !important;
  padding: 8px 6px !important;
  background: linear-gradient(180deg, #ffad25 0%, #f47721 100%) !important;
  color: #16100b !important;
  -webkit-text-fill-color: #16100b !important;
  border: 1px solid #d9681d !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
}

/* 2026-07-18 release regression: list-category rows sit on the light tables surface.
   A legacy dark-theme rule forced every .tw-cell to white, which made HEA/HEB/IPN
   and the other non-pivot categories unreadable after the surrounding panel became light. */
html body .tw-page-wrap .tw-table:not(.is-pivot) .tw-table-rows > .tw-row:not(.tw-row-head) {
  background: #fffaf4 !important;
  color: #2b2b2b !important;
  border-color: #d9d1c7 !important;
}

html body .tw-page-wrap .tw-table:not(.is-pivot) .tw-table-rows > .tw-row:not(.tw-row-head):hover {
  background: #fff2e4 !important;
  border-color: #d8a57f !important;
}

html body .tw-page-wrap .tw-table:not(.is-pivot) .tw-table-rows > .tw-row:not(.tw-row-head) > .tw-cell {
  color: #2b2b2b !important;
  -webkit-text-fill-color: #2b2b2b !important;
  text-shadow: none !important;
}

/* The JS switches list rows to cards through 767px. Keep the desktop sticky
   header out of that card view and let all cards contribute to page height. */
@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-table:not(.is-pivot) .tw-table-header {
    display: none !important;
  }

  html body .tw-page-wrap .tw-table:not(.is-pivot) .tw-table-viewport {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
}

/* 2026-07-18 homepage quote-flow regression: the homepage intentionally keeps
   table browsing compact, but calculator/quote content must participate in
   normal document flow so it cannot be clipped by the footnote below. */
html body.body.home .tw-page-wrap .tw-app[data-mode="calc"] .tw-content {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* On narrow screens the fixed WhatsApp launcher sits over full-width quote
   controls. Hide it only while the calculator/quote workflow is active; it
   returns immediately when the user switches back to table browsing. */
@media (max-width: 767.98px) {
  html body.tw-calc-mode-active .whatsapp_float {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Horizontal table affordance: shown by app.js only when the active table
   is wider than its viewport. This replaces the pivot-only mobile pseudo hint. */
html body .tw-page-wrap .tw-table-scroll-hint[hidden] {
  display: none !important;
}

html body .tw-page-wrap .tw-table-scroll-hint {
  width: max-content !important;
  max-width: 100% !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  margin: 0 0 4px !important;
  padding: 7px 12px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(216, 104, 29, 0.48) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff7ee 0%, #ffedd9 100%) !important;
  color: #5b3013 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font: 700 12.5px/1.25 "Rubik", Arial, sans-serif !important;
  white-space: nowrap !important;
}

html body .tw-page-wrap .tw-table-scroll-hint__icon {
  flex: 0 0 auto !important;
  color: #d9681d !important;
  font-size: 18px !important;
  line-height: 1 !important;
  direction: ltr !important;
  animation: tw-scroll-hint-nudge 1.8s ease-in-out infinite !important;
}

html body .tw-page-wrap :is(.tw-table-viewport, .tw-pivot-shell).tw-has-horizontal-overflow {
  scrollbar-width: thin !important;
  scrollbar-color: #d9681d #eee6dc !important;
}

@keyframes tw-scroll-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html body .tw-page-wrap .tw-table-scroll-hint__icon {
    animation: none !important;
  }
}

@media (max-width: 767.98px) {
  html body .tw-page-wrap .tw-table-scroll-hint {
    width: 100% !important;
    justify-content: center !important;
    margin-bottom: 6px !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-shell::before {
    content: none !important;
    display: none !important;
  }
}

/* Hisherik desktop full-width pivot 2026-07-19: prioritize table readability; keep compact filters on mobile. */
@media (min-width: 768px) {
  html body .tw-page-wrap .tw-table-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .tw-page-wrap .tw-table-layout > .tw-filters {
    display: none !important;
  }

  html body .tw-page-wrap .tw-table-layout > .tw-table,
  html body .tw-page-wrap .tw-table-layout > .tw-table.is-pivot {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-shell,
  html body .tw-page-wrap .tw-table.is-pivot .tw-pivot-table {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Hisherik homepage full-width table alignment 2026-07-19: override the homepage two-column desktop shell. */
@media (min-width: 768px) {
  html body.body.home .tw-page-wrap .tw-table-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
