.rm-tol-lead {
  max-width: 1040px;
  color: #26313d;
  font-size: 18px;
  line-height: 1.65;
}

.rm-tol-layout {
  display: grid;
  gap: 20px;
}

.rm-tol-panel {
  padding: 24px;
}

.rm-tol-selector {
  display: grid;
  gap: 12px;
}

.rm-tol-selector__label {
  color: #667483;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rm-tol-switches,
.rm-tol-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rm-tol-fields {
  gap: 7px;
}

.rm-tol-tab,
.rm-tol-field,
.rm-tol-grade,
.rm-tol-mobile-toggle {
  appearance: none;
  min-height: 42px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #fff;
  color: #24303c;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.rm-tol-tab,
.rm-tol-grade {
  padding: 9px 14px;
}

.rm-tol-field {
  min-width: 42px;
  padding: 8px 11px;
}

.rm-tol-tab:hover,
.rm-tol-field:hover,
.rm-tol-grade:hover,
.rm-tol-mobile-toggle:hover {
  border-color: #f57c00;
  transform: translateY(-1px);
}

.rm-tol-tab.is-active,
.rm-tol-field.is-active,
.rm-tol-grade.is-active {
  border-color: #f57c00;
  background: #f57c00;
  color: #fff;
}

.rm-tol-tab:focus-visible,
.rm-tol-field:focus-visible,
.rm-tol-grade:focus-visible,
.rm-tol-size:focus-visible,
.rm-tol-select:focus-visible,
.rm-tol-mobile-toggle:focus-visible,
.rm-tol-grade-head:focus-visible,
.rm-tol-faq summary:focus-visible {
  outline: 3px solid rgba(245, 124, 0, .22);
  outline-offset: 2px;
}

.rm-tol-mobile-controls,
.rm-tol-mobile-table {
  display: none;
}

.rm-tol-tools {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.rm-tol-sizebox,
.rm-tol-selectbox {
  display: grid;
  gap: 8px;
}

.rm-tol-size-label,
.rm-tol-selectbox span {
  color: #26313d;
  font-weight: 800;
}

.rm-tol-size,
.rm-tol-select {
  width: 100%;
  min-height: 52px;
  border: 2px solid #d4dce5;
  border-radius: 12px;
  background: #fff;
  color: #111820;
  font: inherit;
  font-size: 18px;
}

.rm-tol-size {
  padding: 11px 14px;
}

.rm-tol-select {
  padding: 10px 42px 10px 14px;
}

.rm-tol-size:focus,
.rm-tol-select:focus {
  border-color: #f57c00;
}

.rm-tol-result {
  min-height: 52px;
  border-left: 4px solid #f57c00;
  border-radius: 12px;
  background: rgba(245, 124, 0, .075);
  padding: 12px 15px;
  line-height: 1.5;
}

.rm-tol-result strong {
  color: #101820;
}

.rm-tol-result-card {
  display: grid;
  gap: 12px;
}

.rm-tol-result-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
}

.rm-tol-result-card__label {
  color: #7a4a21;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rm-tol-result-card__code {
  font-size: 20px;
  font-weight: 800;
}

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

.rm-tol-result-grid div {
  min-width: 0;
  border: 1px solid rgba(245, 124, 0, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
  padding: 9px 10px;
}

.rm-tol-result-grid span {
  display: block;
  color: #6b7785;
  font-size: 12px;
  line-height: 1.3;
}

.rm-tol-result-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rm-tol-table-wrap {
  position: relative;
  overflow: auto;
  max-height: 72vh;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 16px;
  background: #fff;
}

.rm-tol-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.rm-tol-table caption {
  padding: 16px 16px 12px;
  background: #fff;
  color: #26313d;
  font-weight: 800;
  text-align: left;
}

.rm-tol-table th,
.rm-tol-table td {
  padding: 12px 13px;
  border-right: 1px solid #dfe5ec;
  border-bottom: 1px solid #dfe5ec;
  text-align: center;
  vertical-align: middle;
}

.rm-tol-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff4e8;
  color: #1d2731;
  font-weight: 800;
}

.rm-tol-table th:first-child,
.rm-tol-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 170px;
  background: #fff;
  text-align: left;
}

.rm-tol-table th:first-child {
  z-index: 4;
  background: #fff4e8;
}

.rm-tol-table tr:last-child td {
  border-bottom: 0;
}

.rm-tol-table th:last-child,
.rm-tol-table td:last-child {
  border-right: 0;
}

.rm-tol-table tbody tr:hover td,
.rm-tol-table tbody tr:hover td:first-child {
  background: #fffaf4;
}

.rm-tol-table tr.is-match td {
  background: #fff0dc;
  box-shadow: inset 0 1px 0 rgba(245, 124, 0, .45), inset 0 -1px 0 rgba(245, 124, 0, .45);
}

.rm-tol-table tr.is-match td:first-child {
  background: #ffe8ca;
}

.rm-tol-table .is-selected-grade {
  background: #fff9f2;
}

.rm-tol-table tr.is-match .is-selected-grade {
  background: #ffe6c3;
}

.rm-tol-grade-head {
  appearance: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 5px 8px;
}

.rm-tol-grade-head.is-active {
  background: #f57c00;
  color: #fff;
}

.rm-tol-dev {
  display: grid;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rm-tol-dev__upper {
  font-weight: 800;
}

.rm-tol-dev__lower {
  color: #52606d;
}

.rm-tol-empty {
  color: #9aa5b1;
}

.rm-tol-help {
  color: #6b7785;
  font-size: 14px;
  line-height: 1.55;
}

.rm-tol-help__mobile {
  display: none;
}

.rm-tol-note {
  border-left: 4px solid #f57c00;
  border-radius: 14px;
  background: rgba(245, 124, 0, .08);
  padding: 15px 17px;
}

.rm-tol-content {
  display: grid;
  gap: 18px;
}

.rm-tol-content h2,
.rm-tol-content h3 {
  margin-bottom: 8px;
}

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

.rm-tol-card {
  padding: 20px;
}

.rm-tol-code {
  display: inline-flex;
  border: 1px solid rgba(245, 124, 0, .35);
  border-radius: 8px;
  background: #fff7ef;
  color: #8b3f00;
  font-weight: 800;
  padding: 3px 8px;
}

.rm-tol-example {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rm-tol-example div {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  background: #fff;
  padding: 13px;
}

.rm-tol-example span {
  display: block;
  color: #6b7785;
  font-size: 13px;
}

.rm-tol-example strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.rm-tol-noscript {
  border: 1px solid #d8dee6;
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
}

.rm-tol-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rm-tol-inline-links a {
  text-decoration: none;
}

.rm-tol-faq {
  overflow: hidden;
}

.rm-tol-faq__head {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(360px, 1.6fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 16px;
}

.rm-tol-faq__title {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  padding-left: 14px;
}

.rm-tol-faq__title::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #f57c00;
  content: "";
}

.rm-tol-faq__title h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.rm-tol-faq__notice {
  border: 1px solid #f57c00;
  border-radius: 16px;
  background: rgba(245, 124, 0, .07);
  color: #e66f00;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  padding: 15px 20px;
  text-align: center;
  text-transform: uppercase;
}

.rm-tol-faq__list {
  display: grid;
  gap: 10px;
}

.rm-tol-faq details {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
  border-left: 3px solid #f57c00;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
}

.rm-tol-faq summary {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 18px 10px 12px;
  color: #18212b;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.rm-tol-faq summary::-webkit-details-marker {
  display: none;
}

.rm-tol-faq summary::after {
  width: 11px;
  height: 11px;
  border-right: 2px solid #9aa1a8;
  border-bottom: 2px solid #9aa1a8;
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
}

.rm-tol-faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.rm-tol-faq__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 124, 0, .45);
  border-radius: 50%;
  background: rgba(245, 124, 0, .1);
  color: #f57c00;
}

.rm-tol-faq__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rm-tol-faq__answer {
  padding: 0 58px 14px 49px;
}

.rm-tol-faq__answer p {
  margin: 0;
  color: #3f4852;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .rm-tol-tools {
    grid-template-columns: 1fr;
  }

  .rm-tol-columns {
    grid-template-columns: 1fr;
  }

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

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

  .rm-tol-faq__head {
    grid-template-columns: 1fr 2fr;
  }
}

@media (max-width: 680px) {
  .rm-tol-panel,
  .rm-tol-card {
    padding: 16px;
  }

  .rm-tol-lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .rm-tol-tab {
    flex: 1 1 135px;
    padding: 9px 10px;
  }

  .rm-tol-desktop-selector,
  .rm-tol-table-wrap {
    display: none;
  }

  .rm-tol-mobile-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }

  .rm-tol-selectbox span {
    font-size: 14px;
  }

  .rm-tol-select {
    min-height: 50px;
    font-size: 17px;
  }

  .rm-tol-tools {
    gap: 12px;
    margin-top: 16px !important;
  }

  .rm-tol-result {
    border-left-width: 3px;
    padding: 14px;
  }

  .rm-tol-result-card__head {
    display: grid;
    gap: 3px;
  }

  .rm-tol-result-card__code {
    font-size: 23px;
  }

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

  .rm-tol-result-grid div {
    padding: 10px;
  }

  .rm-tol-result-grid strong {
    font-size: 16px;
  }

  .rm-tol-help__desktop {
    display: none;
  }

  .rm-tol-help__mobile {
    display: inline;
  }

  .rm-tol-mobile-table {
    display: grid;
    gap: 12px;
  }

  .rm-tol-mobile-toggle {
    width: 100%;
    min-height: 50px;
    border-color: #f57c00;
    color: #8b3f00;
    padding: 10px 14px;
  }

  .rm-tol-mobile-toggle[aria-expanded="true"] {
    background: #f57c00;
    color: #fff;
  }

  .rm-tol-mobile-list {
    display: grid;
    gap: 10px;
  }

  .rm-tol-mobile-list[hidden] {
    display: none;
  }

  .rm-tol-mobile-card {
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #fff;
    padding: 13px;
  }

  .rm-tol-mobile-card.is-match {
    border-color: #f57c00;
    background: #fff6eb;
    box-shadow: 0 0 0 2px rgba(245, 124, 0, .08);
  }

  .rm-tol-mobile-card__head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .rm-tol-mobile-card__range {
    font-weight: 800;
  }

  .rm-tol-mobile-card__code {
    flex: 0 0 auto;
    border-radius: 8px;
    background: #f57c00;
    color: #fff;
    font-weight: 800;
    padding: 4px 8px;
  }

  .rm-tol-mobile-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .rm-tol-mobile-card dl div {
    min-width: 0;
    border-radius: 9px;
    background: #f7f9fb;
    padding: 9px;
  }

  .rm-tol-mobile-card dt {
    color: #6b7785;
    font-size: 12px;
  }

  .rm-tol-mobile-card dd {
    margin: 3px 0 0;
    color: #18212b;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .rm-tol-example {
    grid-template-columns: 1fr;
  }

  .rm-tol-faq__head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rm-tol-faq__title {
    min-height: 54px;
  }

  .rm-tol-faq__title h2 {
    font-size: 34px;
  }

  .rm-tol-faq__notice {
    border-radius: 13px;
    font-size: 14px;
    padding: 12px 14px;
  }

  .rm-tol-faq summary {
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    gap: 9px;
    min-height: 54px;
    padding: 10px 12px 10px 10px;
    font-size: 15px;
    line-height: 1.35;
  }

  .rm-tol-faq__answer {
    padding: 0 38px 13px 47px;
  }
}

@media (max-width: 460px) {
  .rm-tol-mobile-controls,
  .rm-tol-result-grid,
  .rm-tol-mobile-card dl {
    grid-template-columns: 1fr;
  }

  .rm-tol-faq__answer {
    padding: 0 14px 13px 47px;
  }
}
