.repeat-limit-panel {
  --rl-gold: #b8862b;
  --rl-gold-deep: #8b641f;
  --rl-gold-soft: #fbf4e4;
  --rl-red: #c8352d;
  --rl-green: #087348;
  --rl-line: #dfe7ea;
  --rl-muted: #697780;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4eaee;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfdfe 52%, #f9fbfc 100%);
  box-shadow: 0 22px 60px rgba(24, 41, 52, 0.07);
}

.rl-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: 30px;
  align-items: stretch;
  padding: 34px 36px 30px;
  overflow: hidden;
  border-bottom: 1px solid var(--rl-line);
  background:
    radial-gradient(520px 260px at 89% 4%, rgba(184, 134, 43, 0.18), transparent 65%),
    radial-gradient(440px 300px at 8% 100%, rgba(8, 115, 72, 0.06), transparent 68%),
    linear-gradient(122deg, #fffdf9 0%, #fbf8f0 52%, #f4f8f8 100%);
}

.rl-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(120, 138, 148, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 138, 148, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
}

.rl-hero > *,
.rl-summary,
.rl-message,
.rl-filter,
.rl-results,
.rl-watchlist,
.rl-pending,
.rl-rules {
  position: relative;
  z-index: 1;
}

.rl-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.rl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--rl-gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rl-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rl-gold);
  box-shadow: 0 0 0 5px rgba(184, 134, 43, 0.12);
}

.rl-pulse::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid rgba(184, 134, 43, 0.3);
  border-radius: 50%;
  animation: rl-pulse 2.8s ease-out infinite;
}

@keyframes rl-pulse {
  0% { opacity: 0.75; transform: scale(0.65); }
  70%, 100% { opacity: 0; transform: scale(1.45); }
}

.rl-hero h2 {
  max-width: 14em;
  margin: 14px 0 10px;
  color: #0f171d;
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.rl-lede {
  max-width: 58ch;
  margin: 0;
  color: #53636c;
  font-size: 15px;
  line-height: 1.85;
}

.rl-thesis {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.rl-thesis span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid rgba(184, 134, 43, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #5f5a4e;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.rl-thesis b {
  color: var(--rl-gold-deep);
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 800;
}

.rl-hero-side {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(184, 134, 43, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 36px rgba(110, 88, 44, 0.08);
  backdrop-filter: blur(12px);
}

.rl-stamp {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(184, 134, 43, 0.26);
}

.rl-stamp span,
.rl-date-field span {
  color: #8b7b60;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rl-stamp strong {
  color: #221f19;
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rl-stamp small {
  color: #8b948f;
  font-size: 11px;
}

.rl-date-field {
  display: grid;
  gap: 6px;
}

.rl-date-field input {
  min-height: 38px;
  padding: 7px 10px;
  border-color: rgba(184, 134, 43, 0.24);
  background: rgba(255, 255, 255, 0.82);
}

.rl-primary,
.rl-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 9px;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.rl-primary {
  border: 1px solid #a87a29;
  background: linear-gradient(180deg, #c99a4a 0%, #b8862b 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(184, 134, 43, 0.22);
}

.rl-primary:hover {
  background: linear-gradient(180deg, #d2a354 0%, #a97824 100%);
  transform: translateY(-1px);
}

.rl-primary:active,
.rl-ghost:active {
  transform: translateY(0);
}

.rl-primary:disabled,
.rl-ghost:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.rl-ghost {
  border: 1px solid #d5dee3;
  background: #fff;
  color: #3e4d56;
}

.rl-ghost:hover {
  border-color: #c7b283;
  background: #fbf7ee;
}

.rl-refresh {
  width: 100%;
}

.rl-refresh svg {
  width: 16px;
  height: 16px;
}

.rl-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rl-line);
  background: rgba(255, 255, 255, 0.86);
}

.rl-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 8px;
  padding: 20px 24px;
  border-right: 1px solid var(--rl-line);
}

.rl-metric:last-child {
  border-right: 0;
}

.rl-metric > span {
  grid-column: 1 / -1;
  color: #6d7a82;
  font-size: 12px;
  font-weight: 650;
}

.rl-metric strong {
  color: #131b21;
  font-family: var(--font-number);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.16;
}

.rl-metric small {
  color: #7e8a91;
  font-size: 11px;
}

.rl-metric em {
  grid-column: 1 / -1;
  color: #96a0a6;
  font-size: 11px;
  font-style: normal;
}

.rl-metric.is-primary {
  background: linear-gradient(180deg, #fffaf0, #fdf6e8);
}

.rl-metric.is-primary strong {
  color: var(--rl-gold-deep);
}

.rl-message {
  margin: 0;
  padding: 12px 36px;
  border-bottom: 1px solid var(--rl-line);
  background: #fbfcfd;
  color: #61717a;
  font-size: 12px;
  line-height: 1.7;
}

.rl-message:empty {
  display: none;
}

.rl-message[data-tone="success"] {
  background: #f8fbf9;
  color: #426a57;
}

.rl-message[data-tone="error"] {
  background: #fff5f3;
  color: #a43b32;
}

.rl-pushbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 36px 0;
  padding: 15px 18px;
  border: 1px solid #e7dcc3;
  border-radius: 14px;
  background:
    radial-gradient(360px 90px at 96% 0%, rgba(184, 134, 43, 0.12), transparent 72%),
    linear-gradient(120deg, #fffdf8, #fbf7ec);
  box-shadow: 0 9px 24px rgba(184, 134, 43, 0.07);
}

.rl-pushbar-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
}

.rl-push-preview {
  color: var(--rl-gold-deep);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}

.rl-push-capacity {
  color: #8a8f86;
  font-size: 10.5px;
  line-height: 1.55;
}

.rl-pushbar-copy > span {
  color: #8d713b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.rl-pushbar-copy > strong {
  color: #2f2a20;
  font-family: var(--font-number);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rl-pushbar-copy > p {
  margin: 0;
  color: #7a7d76;
  font-size: 11px;
  line-height: 1.65;
}

.rl-pushbar-copy > p[data-tone="success"] {
  color: #2f6b4f;
  font-weight: 650;
}

.rl-pushbar-copy > p[data-tone="warning"] {
  color: #986713;
  font-weight: 650;
}

.rl-pushbar-copy > p[data-tone="error"] {
  color: #a43b32;
  font-weight: 650;
}

.rl-push-scope {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #e6dcc5;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #6d6658;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.rl-push-scope input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--rl-gold);
}

.rl-push-button {
  flex: 0 0 auto;
  min-width: 138px;
  white-space: nowrap;
}

.rl-screen {
  display: grid;
  gap: 14px;
  margin: 18px 36px 0;
  padding: 18px;
  border: 1px solid #dfe7e9;
  border-radius: 15px;
  background:
    radial-gradient(420px 130px at 94% 0%, rgba(184, 134, 43, 0.12), transparent 72%),
    linear-gradient(180deg, #ffffff, #fbfcfc);
  box-shadow: 0 10px 28px rgba(31, 49, 59, 0.045);
}

.rl-screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.rl-screen-title {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
}

.rl-screen-title > span {
  color: #8d713b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.rl-screen-title > strong {
  color: #26333a;
  font-size: 16px;
  font-weight: 800;
}

.rl-screen-title b {
  margin: 0 3px;
  color: var(--rl-gold-deep);
  font-family: var(--font-number);
  font-size: 23px;
}

.rl-screen-head > p {
  max-width: 68ch;
  margin: 0;
  padding: 9px 12px;
  border-left: 2px solid #d9bd83;
  background: #fdf9f0;
  color: #766e5f;
  font-size: 11px;
  line-height: 1.75;
}

.rl-screen-head > p b {
  color: #7b5a1d;
}

.rl-screen-body {
  display: grid;
  gap: 10px;
}

.rl-origin-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rl-screen-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid #e1e8eb;
  border-radius: 10px;
  background: #fff;
  color: #43515a;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.rl-screen-option:hover {
  border-color: #cfb987;
  background: #fffdf8;
  transform: translateY(-1px);
}

.rl-screen-option > span {
  align-self: end;
  font-size: 12px;
  font-weight: 750;
}

.rl-screen-option > strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #2b3a43;
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 850;
}

.rl-screen-option > em {
  color: #98a2a7;
  font-family: var(--font-number);
  font-size: 9px;
  font-style: normal;
}

.rl-screen-option.is-active {
  border-color: #b98b36;
  background: linear-gradient(180deg, #fffaf0, #fbf2df);
  box-shadow: 0 0 0 2px rgba(184, 134, 43, 0.1);
}

.rl-screen-option.is-active > span,
.rl-screen-option.is-active > strong {
  color: #775719;
}

.rl-screen-option.is-break-option:not(.is-active) {
  border-color: #ead8d4;
  background: #fffdfc;
}

.rl-screen-option.is-break-option.is-active {
  border-color: #bd665c;
  background: linear-gradient(180deg, #fff8f6, #fbebe7);
  box-shadow: 0 0 0 2px rgba(184, 67, 56, 0.08);
}

.rl-screen-option.is-break-option.is-active > span,
.rl-screen-option.is-break-option.is-active > strong {
  color: #974138;
}

.rl-kind-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #edf1f2;
}

.rl-kind-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 4px 9px;
  border: 1px solid #e3e9ec;
  border-radius: 999px;
  background: #fff;
  color: #6c7981;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.rl-kind-option strong {
  color: #8b979d;
  font-family: var(--font-number);
  font-size: 10px;
}

.rl-kind-option:hover,
.rl-kind-option.is-active {
  border-color: #d9c18f;
  background: #fffaf0;
  color: #7d5d22;
}

.rl-kind-option.is-active strong {
  color: #8b641f;
}

.rl-screen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #929ca2;
  font-size: 10px;
  line-height: 1.6;
}

.rl-clear-filter {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid #e2e8eb;
  border-radius: 7px;
  background: #fff;
  color: #6f7c84;
  font-size: 10px;
  cursor: pointer;
}

.rl-clear-filter:hover:not(:disabled) {
  border-color: #cfb987;
  color: #7b5d26;
}

.rl-clear-filter:disabled {
  cursor: default;
  opacity: 0.45;
}

.rl-filter {
  margin: 22px 36px 0;
  border: 1px solid var(--rl-line);
  border-radius: 14px;
  background: #fbfcfd;
}

.rl-filter > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.rl-filter > summary::-webkit-details-marker,
.rl-watchlist > summary::-webkit-details-marker,
.rl-pending > summary::-webkit-details-marker,
.rl-rules > summary::-webkit-details-marker {
  display: none;
}

.rl-filter > summary > span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.rl-filter > summary b {
  color: #2d3a42;
  font-size: 13px;
}

.rl-filter > summary small {
  color: #8a969d;
  font-size: 11px;
}

.rl-filter > summary em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #e2d7bf;
  border-radius: 999px;
  color: #8b6b30;
  font-size: 11px;
  font-style: normal;
  background: #fffaf0;
}

.rl-filter > summary::after {
  flex: 0 0 auto;
  color: #96a0a6;
  font-size: 15px;
  content: "＋";
}

.rl-filter[open] > summary::after {
  content: "−";
}

.rl-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 16px;
}

.rl-filter-group {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid #e8edf0;
  border-radius: 11px;
  background: #fff;
}

.rl-filter-group legend {
  padding: 0 6px;
  color: #7d632f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rl-filter-group label {
  gap: 4px;
  margin-top: 8px;
  color: #6b7880;
  font-size: 11px;
  line-height: 1.5;
}

.rl-filter-group input {
  min-height: 34px;
  padding: 6px 9px;
  border-color: #e0e7ea;
  border-radius: 7px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.rl-filter-group input:focus {
  border-color: var(--rl-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 43, 0.13);
}

.rl-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 16px;
  flex-wrap: wrap;
}

.rl-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66747c;
  font-size: 11px;
  cursor: pointer;
}

.rl-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--rl-gold);
}

.rl-filter-buttons {
  display: flex;
  gap: 9px;
}

.rl-results {
  padding: 26px 36px 0;
  scroll-margin-top: 78px;
}

.rl-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.rl-section-title span {
  color: var(--rl-gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.rl-section-title h3 {
  margin: 4px 0 0;
  color: #172129;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rl-section-title p {
  max-width: 48ch;
  margin: 0 0 3px;
  color: #8a969d;
  font-size: 11px;
  text-align: right;
}

.rl-card-list {
  display: grid;
  gap: 18px;
}

.rl-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #e3eaee;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f7fafb 100%);
}

.rl-pager.is-bottom {
  margin: 18px 0 0;
}

.rl-pager-info {
  color: var(--rl-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rl-pager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rl-page-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #dde6e9;
  border-radius: 9px;
  background: #ffffff;
  color: #2b3a42;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rl-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--rl-gold);
  color: var(--rl-gold-deep);
  background: var(--rl-gold-soft);
}

.rl-page-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--rl-gold) 0%, var(--rl-gold-deep) 100%);
  color: #ffffff;
  cursor: default;
  box-shadow: 0 6px 14px rgba(139, 100, 31, 0.24);
}

.rl-page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.rl-page-btn.is-step {
  padding: 0 13px;
  color: #4a5a63;
}

.rl-page-gap {
  padding: 0 2px;
  color: #9aa7ae;
  font-size: 12px;
  font-weight: 700;
}

.rl-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dde6e9;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
  box-shadow: 0 8px 26px rgba(29, 48, 58, 0.055);
  animation: rl-rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--rl-delay, 0ms);
}

.rl-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(184, 134, 43, 0.75), transparent);
}

@keyframes rl-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px 12px;
}

.rl-stock-title {
  min-width: 0;
}

.rl-stock-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rl-stock-line > a {
  color: #111b22;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.015em;
}

.rl-stock-line > a:hover {
  color: var(--rl-gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rl-code,
.rl-market {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 700;
}

.rl-code {
  border: 1px solid #dde5e8;
  background: #f7f9fa;
  color: #6e7b83;
}

.rl-market {
  border: 1px solid #eadfc9;
  background: #fffaf0;
  color: #8b6b30;
}

.rl-stock-title p {
  margin: 7px 0 0;
  color: #7d8a92;
  font-size: 12px;
}

.rl-stock-title p b {
  font-family: var(--font-number);
  font-size: 12px;
}

.rl-stock-title .is-up {
  color: var(--rl-red);
}

.rl-stock-title .is-down {
  color: var(--rl-green);
}

.rl-score {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #ead8b4;
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.95), transparent 40%),
    linear-gradient(180deg, #fffaf0, #fbf1dd);
  color: var(--rl-gold-deep);
  text-align: center;
}

.rl-score strong {
  font-family: var(--font-number);
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
}

.rl-score span {
  margin-top: 2px;
  color: #9c875f;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.rl-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 22px 14px;
}

.rl-badge-row span {
  padding: 4px 9px;
  border: 1px solid #e5eaed;
  border-radius: 999px;
  background: #fafcfc;
  color: #65727a;
  font-size: 10px;
  font-weight: 650;
}

.rl-badge-row span.is-accent {
  border-color: #ead6ac;
  background: #fff9ed;
  color: #8b641f;
}

.rl-badge-row span.is-unselected {
  border-color: #ecd5d0;
  background: #fff6f3;
  color: #a94f42;
  font-weight: 750;
}

.rl-origin-badge.is-below {
  border-color: #ebc8c2;
  background: #fff5f2;
  color: #9b443a;
}

.rl-origin-badge.is-near {
  border-color: #d6e7dc;
  background: #f3faf6;
  color: #2f7152;
}

.rl-origin-badge.is-above {
  border-color: #e2e6e8;
  background: #f7f9fa;
  color: #7b878d;
}

.rl-origin-badge.is-deep {
  border-color: #dfa79e;
  background: #fdece8;
  color: #8b352c;
  font-weight: 750;
}

.rl-card.has-origin-break {
  border-color: #e7cfca;
}

.rl-card.has-origin-break::before {
  background: linear-gradient(90deg, transparent, rgba(180, 79, 65, 0.7), transparent);
}

.rl-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(286px, 0.78fr);
  gap: 15px;
  align-items: stretch;
  padding: 0 22px 18px;
}

.rl-kline-pane,
.rl-indicator-pane {
  min-width: 0;
}

.rl-kline-pane {
  padding: 9px 10px 0;
  border: 1px solid #e5ebee;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdfd, #f7fafb);
}

.rl-kline {
  display: block;
  width: 100%;
  height: auto;
  min-height: 168px;
}

.rl-price-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 4px 0 0;
  padding: 10px 0 11px;
  border-top: 1px solid #e3eaed;
}

.rl-price-strip > span {
  display: grid;
  gap: 1px;
  padding: 0 11px;
  border-right: 1px solid #e6ecee;
}

.rl-price-strip > span:first-child {
  padding-left: 2px;
}

.rl-price-strip > span:last-child {
  border-right: 0;
}

.rl-price-strip small {
  color: #95a0a6;
  font-size: 9px;
}

.rl-price-strip strong {
  color: #26333b;
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 800;
}

.rl-price-strip em {
  overflow: hidden;
  color: #9ba5aa;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rl-indicator-pane {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rl-kdj-wrap {
  display: grid;
  align-content: start;
  padding: 10px 11px 8px;
  border: 1px solid #e5ebee;
  border-radius: 11px;
  background: #fff;
}

.rl-kdj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rl-kdj-head strong {
  color: #3b4952;
  font-size: 11px;
  font-weight: 750;
}

.rl-kdj-state {
  padding: 2px 6px;
  border: 1px solid #e4eaed;
  border-radius: 999px;
  background: #f8fafb;
  color: #8b969c;
  font-size: 9px;
  white-space: nowrap;
}

.rl-kdj-state.is-ready {
  border-color: #c6dfd0;
  background: #eef8f2;
  color: #28724f;
}

.rl-kdj {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2px;
}

.rl-kdj-meta {
  display: flex;
  gap: 8px;
  color: #8a969d;
  font-family: var(--font-number);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.rl-kdj-meta span {
  font-weight: 750;
}

.rl-kdj-meta .is-k {
  color: #b47812;
}

.rl-kdj-meta .is-d {
  color: #2e6de0;
}

.rl-kdj-meta .is-j {
  color: #c33c9e;
}

.rl-chart-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed #dce5e8;
  border-radius: 9px;
  color: #96a1a7;
  font-size: 11px;
}

.rl-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 14px;
}

.rl-evidence span {
  padding: 3px 8px;
  border-left: 2px solid #d7c294;
  background: #fbf8f1;
  color: #706a5d;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.rl-card-failures {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 14px;
}

.rl-card-failures span {
  padding: 3px 8px;
  border-radius: 5px;
  background: #fff4ee;
  color: #9a5636;
  font-size: 10px;
}

.rl-card-failures em {
  margin-left: 5px;
  color: #b1845f;
  font-style: normal;
}

.rl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  border-top: 1px solid #e8edef;
  background: #fbfcfd;
  color: #8c979d;
  font-size: 10px;
}

.rl-analyze {
  flex: 0 0 auto;
  color: #806124;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.rl-analyze:hover {
  color: #5f4718;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rl-watchlist {
  margin: 22px 36px 0;
  border: 1px solid var(--rl-line);
  border-radius: 14px;
  background: #fbfcfd;
}

.rl-watchlist > summary,
.rl-pending > summary,
.rl-rules > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
  color: #3d4b54;
  font-size: 12px;
  font-weight: 750;
}

.rl-watchlist > summary em {
  color: #98a2a8;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.rl-watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 0 14px 14px;
}

.rl-watch-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e6ebee;
  border-radius: 10px;
  background: #fff;
}

.rl-watch-card.has-origin-break {
  border-color: #ecd5d0;
  box-shadow: inset 3px 0 0 rgba(174, 82, 69, 0.45);
}

.rl-watch-origin {
  display: flex;
}

.rl-watch-origin .rl-origin-badge {
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 650;
}

.rl-watch-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.rl-watch-top a {
  color: #26333b;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.rl-watch-top a:hover {
  color: var(--rl-gold-deep);
}

.rl-watch-top span {
  margin-left: 6px;
  color: #9aa4aa;
  font-family: var(--font-number);
  font-size: 10px;
}

.rl-watch-top > strong {
  color: #92702e;
  font-family: var(--font-number);
  font-size: 17px;
}

.rl-watch-top > strong small {
  color: #a99a7c;
  font-size: 9px;
  font-weight: 500;
}

.rl-watch-score {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 1px;
  text-align: right;
}

.rl-watch-score strong {
  color: #92702e;
  font-family: var(--font-number);
  font-size: 17px;
  line-height: 1;
}

.rl-watch-score span {
  margin-left: 0;
  color: #a99a7c;
  font-size: 8px;
  font-weight: 600;
}

.rl-watch-score em {
  padding: 1px 5px;
  border-radius: 4px;
  background: #fff2ed;
  color: #a94f42;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
}

.rl-watch-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #eef2f3;
  border-bottom: 1px solid #eef2f3;
  padding: 7px 0;
}

.rl-watch-metrics span {
  display: grid;
  gap: 1px;
  padding: 0 5px;
  border-right: 1px solid #eef2f3;
  color: #53616a;
  font-family: var(--font-number);
  font-size: 11px;
}

.rl-watch-metrics span:last-child {
  border-right: 0;
}

.rl-watch-metrics small {
  color: #9aa4a9;
  font-family: var(--font-sans);
  font-size: 8px;
}

.rl-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rl-reasons span {
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff7ed;
  color: #95612a;
  font-size: 9px;
}

.rl-reasons em {
  margin-left: 4px;
  color: #b18b62;
  font-style: normal;
}

.rl-watch-link {
  width: fit-content;
  color: #806124;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.rl-watch-link:hover {
  text-decoration: underline;
}

.rl-pending {
  margin: 10px 36px 0;
  border: 1px solid var(--rl-line);
  border-radius: 12px;
  background: #fbfcfd;
}

.rl-pending > summary {
  color: #6f7c84;
  font-size: 11px;
}

.rl-pending-list {
  display: grid;
  gap: 5px;
  padding: 0 17px 14px;
}

.rl-pending-list p {
  margin: 0;
  color: #8a959b;
  font-size: 10px;
}

.rl-pending-list b {
  color: #617079;
  font-weight: 700;
}

.rl-rules {
  margin: 14px 36px 30px;
  border: 1px solid #e7e0d1;
  border-radius: 12px;
  background: #fffdf8;
}

.rl-rules > summary {
  color: #75613d;
  font-size: 11px;
}

.rl-rules > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 17px 16px;
}

.rl-rules > div > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #eee6d7;
  border-radius: 8px;
  background: #fff;
}

.rl-rules strong {
  color: #7b6339;
  font-size: 10px;
}

.rl-rules p {
  margin: 4px 0 0;
  color: #7f7a70;
  font-size: 10px;
  line-height: 1.7;
}

.rl-rules .rl-disclaimer {
  border-color: #f0d8d5;
  background: #fff9f8;
}

.rl-rules .rl-disclaimer strong {
  color: #a65a51;
}

.rl-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 52px 20px;
  border: 1px dashed #dce4e8;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 24%, rgba(184, 134, 43, 0.08), transparent 34%),
    #fcfdfd;
  text-align: center;
}

.rl-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ead8b4;
  border-radius: 50%;
  background: #fffaf0;
  color: #a77a29;
  font-size: 21px;
}

.rl-empty h3 {
  margin: 4px 0 0;
  color: #43525b;
  font-size: 16px;
}

.rl-empty p {
  max-width: 62ch;
  margin: 0;
  color: #89949a;
  font-size: 11px;
  line-height: 1.8;
}

.rl-empty.is-error > span {
  border-color: #f0cbc7;
  background: #fff4f2;
  color: #b1483e;
}

.rl-empty .rl-hint {
  color: #a2abaf;
}

.rl-skeleton {
  display: grid;
  gap: 12px;
}

.rl-skeleton-head {
  display: flex;
  gap: 10px;
}

.rl-skeleton-head span {
  height: 10px;
  border-radius: 4px;
  background: #eef2f4;
}

.rl-skeleton-head span:nth-child(1) { width: 120px; }
.rl-skeleton-head span:nth-child(2) { width: 76px; }
.rl-skeleton-head span:nth-child(3) { width: 150px; }

.rl-skeleton-card {
  height: 220px;
  border: 1px solid #edf1f3;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #f8fafb 25%, #f1f5f6 37%, #f8fafb 63%);
  background-size: 400% 100%;
  animation: rl-shimmer 1.5s ease infinite;
}

.rl-skeleton p {
  margin: 0;
  color: #8a969d;
  font-size: 11px;
}

@keyframes rl-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 1240px) {
  .rl-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-card-body {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  }

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

  .rl-rules > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .rl-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px 24px;
  }

  .rl-hero-side {
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.8fr) minmax(150px, 0.6fr);
    align-items: end;
  }

  .rl-stamp {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .rl-refresh {
    align-self: end;
  }

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

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

  .rl-metric:nth-child(2) {
    border-right: 0;
  }

  .rl-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rl-line);
  }

  .rl-message {
    padding-right: 24px;
    padding-left: 24px;
  }

  .rl-filter,
  .rl-pushbar,
  .rl-screen,
  .rl-watchlist,
  .rl-pending,
  .rl-rules {
    margin-right: 24px;
    margin-left: 24px;
  }

  .rl-results {
    padding-right: 24px;
    padding-left: 24px;
  }

  .rl-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-indicator-pane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 720px) {
  .rl-pushbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .rl-pushbar-copy {
    flex-basis: 100%;
  }

  .rl-push-button {
    flex: 1 1 160px;
  }

  .rl-hero-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-stamp {
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(184, 134, 43, 0.26);
  }

  .rl-filter-grid,
  .rl-origin-options,
  .rl-watch-grid,
  .rl-rules > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-card-head {
    align-items: start;
  }

  .rl-price-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 9px;
  }

  .rl-price-strip > span:nth-child(2) {
    border-right: 0;
  }

  .rl-indicator-pane {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-section-title {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .rl-section-title p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .repeat-limit-panel {
    border-radius: 12px;
  }

  .rl-hero {
    padding: 23px 18px 20px;
  }

  .rl-hero h2 {
    font-size: 30px;
  }

  .rl-message,
  .rl-pushbar,
  .rl-screen,
  .rl-filter,
  .rl-watchlist,
  .rl-pending,
  .rl-rules,
  .rl-results {
    margin-right: 14px;
    margin-left: 14px;
  }

  .rl-message,
  .rl-results {
    padding-right: 0;
    padding-left: 0;
  }

  .rl-screen {
    padding: 14px;
  }

  .rl-pushbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .rl-push-scope,
  .rl-push-button {
    width: 100%;
  }

  .rl-push-button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .rl-screen-head,
  .rl-screen-foot {
    flex-direction: column;
    gap: 9px;
  }

  .rl-screen-head > p {
    max-width: none;
  }

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

  .rl-metric {
    border-right: 0;
    border-bottom: 1px solid var(--rl-line);
    padding: 15px 18px;
  }

  .rl-metric:last-child {
    border-bottom: 0;
  }

  .rl-card-head,
  .rl-badge-row,
  .rl-card-body,
  .rl-evidence,
  .rl-card-failures,
  .rl-card-foot {
    padding-right: 15px;
    padding-left: 15px;
  }

  .rl-card-foot {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .rl-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rl-filter-buttons {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-card,
  .rl-pulse::after,
  .rl-skeleton-card {
    animation: none;
  }
}
