.ral-main {
  padding: 40px 0 64px;
  color: #191919;
}
.ral-crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #656870;
  font-size: 13px;
  margin-bottom: 28px;
}
.ral-crumbs a {
  color: inherit;
  text-decoration: none;
}
.ral-panel {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
}
.ral-intro {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 36px;
  align-items: center;
  padding-bottom: 30px;
}
.ral-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #696b73;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ral-main h1 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 700;
}
.ral-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #555861;
  max-width: 640px;
  margin: 0;
}
.ral-fan {
  display: flex;
  height: 130px;
  gap: 6px;
  align-items: center;
  transform: rotate(-7deg);
  padding-right: 10px;
}
.ral-fan span {
  flex: 1;
  height: 106px;
  border-radius: 8px;
  box-shadow: 0 5px 12px #0000000b;
  border: 5px solid white;
  border-bottom-width: 20px;
}
.ral-fan span:nth-child(2) {
  transform: translateY(-8px);
}
.ral-fan span:nth-child(3) {
  transform: translateY(-16px);
}
.ral-fan span:nth-child(4) {
  transform: translateY(-8px);
}
.ral-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  background: #f6f7fa;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #555861;
  margin: 0 0 32px;
}
.ral-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.ral-controls {
  border-top: 1px solid #edeef2;
  padding-top: 28px;
}
.ral-searchrow {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.ral-search {
  position: relative;
  max-width: 490px;
  width: 100%;
}
.ral-search svg {
  position: absolute;
  left: 17px;
  top: 17px;
  color: #676a72;
}
.ral-search input {
  height: 54px;
  border: 1px solid #dfe1e6;
  border-radius: 12px;
  width: 100%;
  padding: 0 44px;
  color: #161719;
  background: white;
  font: inherit;
  font-size: 14px;
}
.ral-search input:focus {
  outline: 2px solid #f8d42c;
  outline-offset: 2px;
}
.ral-clear {
  position: absolute;
  right: 8px;
  top: 8px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 22px;
}
.ral-count {
  color: #676a72;
  font-size: 13px;
  white-space: nowrap;
}
.ral-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}
.ral-filter {
  border: 1px solid #e6e7eb;
  border-radius: 9px;
  padding: 10px 12px;
  background: white;
  display: flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 12px;
  color: #42454c;
  cursor: pointer;
  min-height: 40px;
}
.ral-filter[aria-pressed="true"] {
  background: #ffdc38;
  border-color: #ffdc38;
  color: #191919;
}
.ral-filter:hover {
  border-color: #b5b7bc;
}
.ral-filter i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #00000012;
}
.ral-group {
  margin-top: 30px;
}
.ral-group:first-child {
  margin-top: 0;
}
.ral-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.ral-group h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
.ral-group-title span {
  font-size: 12px;
  color: #73767e;
}
.ral-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.ral-card {
  padding: 0;
  min-width: 0;
  border: 1px solid #e6e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
  color: #191919;
  font: inherit;
}
.ral-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #20233015;
}
.ral-card:focus-visible,
.ral-main button:focus-visible {
  outline: 3px solid #bd9600;
  outline-offset: 3px;
}
.ral-swatch {
  height: 100px;
  display: block;
  border-bottom: 1px solid #00000006;
}
.ral-card-label {
  display: block;
  padding: 13px 12px 14px;
  min-height: 80px;
}
.ral-card strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.ral-card small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #5b5e66;
}
.ral-empty {
  text-align: center;
  padding: 48px 16px;
  color: #646771;
  background: #f6f7fa;
  border-radius: 16px;
}
.ral-empty h2 {
  color: #191919;
  font-size: 24px;
}
.ral-bottom {
  margin-top: 32px;
  border-top: 1px solid #e8e9ed;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.ral-bottom p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #646771;
  max-width: 580px;
}
.ral-bottom a {
  color: #191919;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid #191919;
  font-size: 14px;
  padding-bottom: 3px;
}
.ral-dialog {
  padding: 0;
  border: 0;
  border-radius: 20px;
  width: min(440px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 80px #0003;
}
.ral-dialog::backdrop {
  background: #12141c80;
  backdrop-filter: blur(4px);
}
.ral-detail-swatch {
  height: 220px;
}
.ral-detail-body {
  padding: 28px;
}
.ral-detail-body h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.ral-detail-body p {
  margin: 0 0 20px;
  color: #62656c;
}
.ral-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px #0001;
}
.ral-copy {
  background: #ffdc38;
  color: #151515;
  border: 0;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  font: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.ral-detail-note {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}
.ral-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #202126;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px #0002;
  font-size: 14px;
  z-index: 2000;
  white-space: nowrap;
}
.ral-mobile-nav {
  display: none;
}
.ral-dialog[open] {
  display: block;
}
.ral-main [hidden],
.ral-toast[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .ral-swatch {
    height: 130px;
  }
}
@media (max-width: 1100px) {
  .ral-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ral-panel {
    padding: 32px;
  }
  .ral-intro {
    grid-template-columns: 1fr 180px;
  }
  .ral-fan {
    height: 110px;
  }
  .ral-fan span {
    height: 85px;
  }
}
@media (max-width: 800px) {
  .ral-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ral-fan {
    display: none;
  }
  .ral-intro {
    display: block;
  }
  .ral-panel {
    padding: 24px;
  }
  .ral-main h1 {
    font-size: 34px;
  }
  .ral-main {
    padding-top: 24px;
  }
  .ral-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 540px) {
  .ral-panel {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .ral-main .container {
    padding: 0 12px;
  }
  .ral-main {
    padding: 20px 0 32px;
  }
  .ral-crumbs {
    font-size: 11px;
    gap: 7px;
    margin: 0 4px 20px;
  }
  .ral-main h1 {
    font-size: 32px;
    margin-bottom: 14px;
  }
  .ral-lead {
    font-size: 14px;
    line-height: 1.65;
  }
  .ral-eyebrow {
    font-size: 10px;
  }
  .ral-note {
    font-size: 12px;
    padding: 12px;
    margin-bottom: 24px;
  }
  .ral-intro {
    padding-bottom: 22px;
  }
  .ral-controls {
    padding-top: 22px;
  }
  .ral-searchrow {
    display: block;
  }
  .ral-count {
    margin-top: 14px;
    display: block;
  }
  .ral-search input {
    font-size: 13px;
    padding-left: 42px;
  }
  .ral-filters {
    flex-wrap: nowrap;
    overflow: auto;
    margin: 16px -16px 24px;
    padding: 2px 16px 8px;
    scrollbar-width: thin;
  }
  .ral-filter {
    flex-shrink: 0;
  }
  .ral-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .ral-swatch {
    height: 106px;
  }
  .ral-card-label {
    min-height: 76px;
  }
  .ral-card strong {
    font-size: 14px;
  }
  .ral-card small {
    font-size: 12px;
  }
  .ral-group h2 {
    font-size: 18px;
  }
  .ral-group-title {
    gap: 8px;
  }
  .ral-bottom p {
    font-size: 13px;
  }
  .ral-detail-swatch {
    height: 180px;
  }
}

.main > .ral-main {
  padding-top: 30px;
}
@media (max-width: 540px) {
  .main > .ral-main {
    padding-top: 20px;
  }
}

.ral-search input::-webkit-search-cancel-button {
  display: none;
}

.ral-reset {
  max-width: 220px;
  margin-top: 16px;
}
