
:root {
  --rrl-color-bg: #f4fbfb;
  --rrl-color-surface: #ffffff;
  --rrl-color-surface-alt: #ecf8f8;
  --rrl-color-border: #d7eceb;
  --rrl-color-text: #1f4c4e;
  --rrl-color-text-soft: #527172;
  --rrl-color-text-inverse: #ffffff;
  --rrl-color-primary: #1D8391;
  --rrl-color-primary-strong: #166874;
  --rrl-color-primary-soft: #d6eef1;
  --rrl-color-accent: #7fd6d2;
  --rrl-color-accent-strong: #49c3be;
  --rrl-color-live: #ff5a5f;
  --rrl-color-success: #1f9d63;
  --rrl-color-warning: #f2b94b;
  --rrl-color-danger: #d64545;
  --rrl-shadow-sm: 0 2px 8px rgba(16, 53, 54, 0.06);
  --rrl-shadow-md: 0 8px 24px rgba(16, 53, 54, 0.10);
  --rrl-shadow-lg: 0 16px 40px rgba(16, 53, 54, 0.14);
  --rrl-radius-sm: 10px;
  --rrl-radius-md: 16px;
  --rrl-radius-lg: 24px;
  --rrl-radius-pill: 999px;
  --rrl-space-1: 4px;
  --rrl-space-2: 8px;
  --rrl-space-3: 12px;
  --rrl-space-4: 16px;
  --rrl-space-5: 20px;
  --rrl-space-6: 24px;
  --rrl-space-7: 32px;
  --rrl-space-8: 40px;
  --rrl-max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, Roboto, Arial, sans-serif;
  background: var(--rrl-color-bg);
  color: var(--rrl-color-text);
  line-height: 1.4;
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

app-root {
  min-height: calc(100dvh - 60px - env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
}

app-root > .main {
  flex: 1 1 auto;
}

app-root > app-footer {
  display: block;
  flex-shrink: 0;
}

body:has(app-footer) {
  padding-bottom: 0;
}

body:has(app-home-splash) {
  background: var(--rrl-color-bg);
  padding: 0;
}

body:has(app-home-splash) app-root,
body:has(app-admin-maintenance) app-root {
  min-height: 100dvh;
}

body:has(app-admin-maintenance) {
  background: var(--rrl-color-bg);
  padding: 0;
}

html:has(app-home-splash),
body:has(app-home-splash) .main,
body:has(app-home-splash) .rrl-splash,
body:has(app-home-splash) .rrl-hero__box--splash {
  background: var(--rrl-color-bg);
}

.rrl-title {
  padding-top: 10px;
}

.rrl-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(29, 131, 145, 0.94);
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: var(--rrl-shadow-sm);
}

.rrl-container {
  width: min(100% - 24px, var(--rrl-max-width));
  margin-inline: auto;
}

.rrl-topbar__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: env(safe-area-inset-top, 0px);
}

.rrl-brand {
  font-size: 1rem;
  font-weight: 800;
  font-family: Inter, Roboto, Arial, sans-serif;
  letter-spacing: 0.03em;
  font-variant: normal;
  line-height: 1.2;
}

.rrl-topbar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 12px;
  font-size: 0.9rem;
}

.rrl-section {
  padding: 28px 0;
}

.rrl-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rrl-section__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.rrl-link {
  color: var(--rrl-color-primary-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.rrl-hero {
  padding-top: 20px;
}

.rrl-hero__box {
  background: linear-gradient(135deg, #dff7f6 0%, #f8ffff 100%);
  border: 1px solid var(--rrl-color-border);
  border-radius: var(--rrl-radius-lg);
  box-shadow: var(--rrl-shadow-md);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.rrl-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: var(--rrl-radius-pill);
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  margin: 0;
  color: var(--rrl-color-text-soft);
  max-width: 64ch;
  font-size: 1rem;
}

.rrl-text--primary {
  color: var(--rrl-color-primary);
}

.rrl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--rrl-radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  touch-action: manipulation;
  user-select: none;
}

.rrl-btn--primary {
  background: var(--rrl-color-primary);
  color: white;
  box-shadow: var(--rrl-shadow-sm);
}

.rrl-btn--secondary {
  background: white;
  border-color: var(--rrl-color-border);
  color: var(--rrl-color-text-soft);
}

.rrl-btn--ghost {
  background: transparent;
  border-color: var(--rrl-color-border);
  color: var(--rrl-color-text-soft);
}

.rrl-btn:disabled,
.rrl-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.rrl-focus-ring:focus-visible {
  outline: none;
  border-radius: inherit;
  box-shadow: 0 0 0 3px var(--rrl-color-primary-soft);
}

.rrl-btn:active {
  border-radius: var(--rrl-radius-pill);
  transform: scale(0.97);
}

.rrl-avatar {
  position: relative;
  width: var(--rrl-avatar-size, 72px);
  height: var(--rrl-avatar-size, 72px);
  border-radius: var(--rrl-radius-pill);
}

.rrl-avatar__image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.rrl-panel-btn {
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--rrl-color-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--rrl-color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--rrl-shadow-sm);
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  touch-action: manipulation;
  user-select: none;
}

.rrl-panel-btn:hover {
  border-color: var(--rrl-color-primary);
  background: var(--rrl-color-surface);
}

.rrl-panel-btn--primary {
  background: var(--rrl-color-primary);
  border-color: var(--rrl-color-primary);
  color: var(--rrl-color-text-inverse);
  box-shadow: var(--rrl-shadow-md);
}

.rrl-panel-btn--primary:hover {
  background: var(--rrl-color-primary-strong);
  border-color: var(--rrl-color-primary-strong);
}

.rrl-panel-btn:active {
  border-radius: 14px;
  transform: scale(0.985);
}

.rrl-btn::-moz-focus-inner,
.rrl-panel-btn::-moz-focus-inner,
.rrl-sheet__close::-moz-focus-inner,
.rrl-tabs__button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.rrl-skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #e7f1f1 0%, #f7fbfb 50%, #e7f1f1 100%);
  background-size: 200% 100%;
  animation: rrl-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes rrl-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.rrl-palette {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.rrl-swatch {
  border-radius: var(--rrl-radius-md);
  overflow: hidden;
  background: white;
  border: 1px solid var(--rrl-color-border);
  box-shadow: var(--rrl-shadow-sm);
}

.rrl-swatch__color {
  height: 84px;
}

.rrl-swatch__meta {
  padding: 12px;
  font-size: 0.85rem;
}

.rrl-row {
  display: grid;
  gap: 16px;
}

.rrl-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.rrl-card {
  background: var(--rrl-color-surface);
  border: 1px solid var(--rrl-color-border);
  border-radius: var(--rrl-radius-md);
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .rrl-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rrl-shadow-lg);
    border-color: #bfe1df;
  }
}

.rrl-card:active {
  transform: translateY(0);
}

.rrl-card:focus-within {
  outline: 2px solid rgba(29, 131, 145, 0.22);
  outline-offset: 2px;
  border-color: var(--rrl-color-primary);
}

.rrl-card__body {
  padding: 18px;
  min-height: 210px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rrl-card__cover {
  background: linear-gradient(135deg, #cfeeee 0%, #8adad6 100%);
  position: relative;
}

.rrl-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.00) 45%
  );
  pointer-events: none;
}

.rrl-card__cover .rrl-badge-row {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.rrl-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rrl-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--rrl-radius-pill);
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rrl-badge--live {
  background: #ffe4e5;
  color: #c93b41;
  box-shadow: 0 0 0 1px rgba(201, 59, 65, 0.10);
}

.rrl-badge--live::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(201, 59, 65, 0.12);
}

.rrl-badge--upcoming {
  background: #fff4d8;
  color: #996b10;
}

.rrl-badge--final {
  background: #deefe8;
  color: #1e7c53;
}

.rrl-badge--neutral {
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
}

.rrl-match {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.rrl-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.99rem;
  line-height: 1.2;
  max-height: 70px;
  min-height: 70px;
}

.rrl-match__teams span:first-child {
  text-align: left;
}

.rrl-match__teams span:last-child {
  text-align: right;
}

.rrl-match__teams span:nth-child(2) {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rrl-color-text-soft);
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rrl-match__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  padding: 2px 0 4px;
  max-height: 50px;
  min-height: 50px;
}

.rrl-match__score .rrl-muted {
  opacity: 0.45;
  font-size: 1.2rem;
  font-weight: 700;
}

.rrl-match__meta,
.rrl-radio__meta,
.rrl-muted {
  color: var(--rrl-color-text-soft);
  font-size: 0.88rem;
  text-align: center;
}

.rrl-match__meta {
  margin-top: auto;
  max-height: 30px;
  min-height: 30px;
}

.rrl-match .rrl-cta-row {
  margin-top: 2px;
}

.rrl-match .rrl-btn {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.92rem;
  font-weight: 800;
}

.rrl-match .rrl-btn--primary {
  box-shadow: none;
}

.rrl-match .rrl-btn--secondary {
  background: var(--rrl-color-surface-alt);
  border-color: var(--rrl-color-border);
  color: var(--rrl-color-text);
}

.rrl-radio {
  display: grid;
  gap: 12px;
}

.rrl-radio__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  min-height: 50px;
  max-height: 50px;
}

.rrl-quick {
  background: linear-gradient(135deg, #ffffff 0%, #eefafa 100%);
  border: 1px solid var(--rrl-color-border);
  border-radius: var(--rrl-radius-lg);
  box-shadow: var(--rrl-shadow-md);
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.rrl-quick .rrl-btn {
  min-height: 40px;
  font-size: 0.92rem;
  padding: 0 15px;
}

.rrl-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.rrl-field {
  display: grid;
  gap: 8px;
}

.rrl-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rrl-color-text);
}

.rrl-input {
  min-height: 44px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--rrl-color-border);
  background: white;
  padding: 0 14px;
  font: inherit;
  color: var(--rrl-color-text);
  box-shadow: var(--rrl-shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rrl-input--error {
  border-color: var(--rrl-color-danger);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.rrl-input--error:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.20);
}

.rrl-error-msg {
  font-size: 0.82rem;
  color: var(--rrl-color-danger);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rrl-input:focus {
  outline: none;
  border-color: var(--rrl-color-primary);
  box-shadow: 0 0 0 3px var(--rrl-color-primary-soft);
}

.rrl-ng-select {
  display: block;
  width: 100%;
  font: inherit;
  position: relative;
  z-index: 1;
}

.rrl-ng-select.ng-select-opened {
  z-index: 20;
}

.rrl-ng-select .ng-select-container {
  position: relative;
  min-height: 44px;
  border: 1px solid var(--rrl-color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--rrl-shadow-sm);
  color: var(--rrl-color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rrl-ng-select.ng-select-focused .ng-select-container,
.rrl-ng-select.ng-select-opened .ng-select-container {
  border-color: var(--rrl-color-primary);
  box-shadow: 0 0 0 3px var(--rrl-color-primary-soft);
}

.rrl-ng-select .ng-select-container::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231D8391' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  pointer-events: none;
  transition: transform 0.16s ease;
}

.rrl-ng-select.ng-select-opened .ng-select-container::after {
  transform: translateY(-50%) rotate(180deg);
}

.rrl-ng-select .ng-value-container {
  align-items: center;
  padding: 0 48px 0 14px;
}

.rrl-ng-select .ng-placeholder {
  color: var(--rrl-color-text-soft);
}

.rrl-ng-select .ng-has-value .ng-placeholder {
  display: none;
}

.rrl-ng-select .ng-arrow-wrapper {
  display: none;
}

.rrl-ng-select .ng-dropdown-panel {
  z-index: 30;
  margin-top: 8px;
  border: 1px solid var(--rrl-color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--rrl-shadow-lg);
  overflow: hidden;
}

body > .ng-dropdown-panel {
  z-index: 1200;
  border: 1px solid var(--rrl-color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--rrl-shadow-lg);
  overflow: hidden;
}

body > .ng-dropdown-panel .ng-dropdown-panel-items {
  max-height: 220px;
  padding: 6px 0;
}

body > .ng-dropdown-panel .ng-option {
  min-height: 42px;
  padding: 10px 12px;
  margin: 0 6px;
  border-radius: 10px;
  color: var(--rrl-color-text);
  font-weight: 700;
  display: block;
}

body > .ng-dropdown-panel .ng-option.ng-option-marked {
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
}

body > .ng-dropdown-panel .ng-option.ng-option-selected {
  background: var(--rrl-color-primary);
  color: #fff;
}

.rrl-ng-select .ng-dropdown-panel-items {
  max-height: 220px;
  padding: 6px 0;
}

.rrl-ng-select .ng-option {
  min-height: 42px;
  padding: 10px 12px;
  margin: 0 6px;
  border-radius: 10px;
  color: var(--rrl-color-text);
  font-weight: 700;
  display: block;
}

.rrl-ng-select .ng-option.ng-option-marked {
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
}

.rrl-ng-select .ng-option.ng-option-selected {
  background: var(--rrl-color-primary);
  color: #fff;
}

.rrl-ng-select.ng-select-disabled .ng-select-container {
  background: #f2f7f7;
  color: var(--rrl-color-text-soft);
  cursor: not-allowed;
  opacity: 0.75;
}

.rrl-input[aria-invalid='true'] {
  border-color: var(--rrl-color-danger);
  box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.1);
}

.rrl-input[aria-invalid='true']:focus {
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.2);
}

.rrl-input::placeholder {
  color: var(--rrl-color-text-soft);
  font-size: 14px;
}

.rrl-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rrl-form-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.rrl-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--rrl-color-primary);
  box-shadow: 0 -8px 20px rgba(16,53,54,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.rrl-bottom-nav__inner {
  width: min(100%, 760px);
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.rrl-nav-item {
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--rrl-color-text-soft);
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 700;
}

.rrl-nav-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.rrl-nav-item__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.rrl-nav-item--primary .rrl-nav-item__icon {
  width: 56px;
  height: 56px;
  background: var(--rrl-color-primary);
  color: white;
  box-shadow: var(--rrl-shadow-md);
  margin-top: -18px;
}

.rrl-nav-item--primary .rrl-nav-item__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.rrl-faq {
  display: grid;
  gap: 12px;
}

.rrl-faq__item {
  background: var(--rrl-color-surface);
  border: 1px solid var(--rrl-color-border);
  border-radius: var(--rrl-radius-md);
  box-shadow: var(--rrl-shadow-sm);
  overflow: hidden;
}

.rrl-faq__question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
}

.rrl-faq__question::-webkit-details-marker {
  display: none;
}

.rrl-faq__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
  font-size: 1rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.rrl-faq__item[open] .rrl-faq__icon {
  transform: rotate(45deg);
}

.rrl-faq__answer {
  padding: 0 20px 18px;
  color: var(--rrl-color-text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rrl-faq__item:hover {
  border-color: #bfe1df;
}

.rrl-menu-wrap {
  display: flex;
  align-items: center;
}

.rrl-menu-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 81;
  border-radius: 999px;
}

.rrl-menu-btn:hover {
  background: rgba(255,255,255,0.10);
}

.rrl-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.rrl-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.rrl-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.rrl-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.rrl-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 26, 27, 0.48);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 60;
}

.rrl-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rrl-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(86vw, 340px);
  background: var(--rrl-color-surface);
  box-shadow: var(--rrl-shadow-lg);
  border-left: 1px solid var(--rrl-color-border);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.rrl-menu-panel.is-open {
  transform: translateX(0);
}

.rrl-menu-panel__header {
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rrl-color-border);
  background: linear-gradient(135deg, #f7ffff 0%, #eefafa 100%);
}

.rrl-menu-panel__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--rrl-color-primary-strong);
  text-transform: uppercase;
}

.rrl-menu-panel__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rrl-menu-panel__body {
  padding: 14px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}

.rrl-menu-panel__section {
  display: grid;
  gap: 6px;
}

.rrl-menu-panel__label {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rrl-color-text-soft);
  padding: 8px 10px 0;
}

.rrl-menu-panel__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--rrl-color-text);
  font-weight: 700;
  background: transparent;
}

.rrl-menu-panel__link:hover {
  background: var(--rrl-color-surface-alt);
}

.rrl-menu-panel__link i {
  color: var(--rrl-color-primary-strong);
}

.rrl-menu-panel__footer {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--rrl-color-border);
  background: #fcffff;
}

.rrl-menu-panel__footer .rrl-btn {
  width: 100%;
}

.rrl-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 26, 27, 0.48);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 60;
}

.rrl-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rrl-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75dvh;
  max-height: 75dvh;
  background: var(--rrl-color-surface);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--rrl-color-border);
  border-bottom: none;
  box-shadow: 0 -16px 40px rgba(16, 53, 54, 0.18);
  transform: translateY(100%);
  transform-origin: bottom center;
  transition: transform 0.26s ease;
  z-index: 70;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
}

.rrl-sheet.is-open {
  transform: translateY(0);
}

.rrl-sheet__grabber {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #c8dddd;
  margin: 10px auto 2px;
}

.rrl-sheet__header {
  min-height: 76px;
  padding: 12px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rrl-color-border);
  background: linear-gradient(135deg, #f7ffff 0%, #eefafa 100%);
}

.rrl-sheet__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rrl-color-primary-strong);
}

.rrl-sheet__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.rrl-sheet__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.rrl-sheet__close:hover,
.rrl-sheet__close:focus-visible {
  border-radius: 999px;
  background: color-mix(in srgb, var(--rrl-color-primary-soft) 72%, var(--rrl-color-primary));
}

.rrl-sheet__close:active {
  border-radius: 999px;
  transform: scale(0.94);
}

.rrl-sheet__close.rrl-focus-ring:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rrl-color-primary-soft) 78%, transparent);
}

.rrl-sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: block;
}

.rrl-sheet__step {
  display: none;
}

.rrl-sheet__step.is-active {
  display: block;
}

.rrl-sheet__intro {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.rrl-sheet__intro h3 {
  margin: 0;
  font-size: 1.05rem;
}

.rrl-sheet__summary {
  display: grid;
  gap: 12px;
}

.rrl-sheet__summary-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--rrl-color-surface-alt);
  border: 1px solid var(--rrl-color-border);
  display: grid;
  gap: 4px;
}

.rrl-sheet__summary-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--rrl-color-text-soft);
}

.rrl-sheet__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rrl-color-border);
  background: #fcffff;
  flex-wrap: wrap;
}

.rrl-sheet__footer-left,
.rrl-sheet__footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rrl-sheet__footer .rrl-btn {
  min-height: 42px;
}

body.rrl-lock {
  overflow: hidden;
}

.rrl-lang {
  position: relative;
  display: flex;
  align-items: center;
}

.rrl-lang__trigger {
  min-width: 44px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.rrl-lang__trigger:hover {
  background: rgba(255,255,255,0.16);
}

.rrl-lang__trigger i {
  width: 16px;
  height: 16px;
}

.rrl-flag {
  width: 1.35em;
  height: 1em;
  display: inline-block;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(9, 26, 27, 0.16);
  flex: 0 0 auto;
}
.rrl-flag--gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23012169' d='M0 0h60v40H0z'/%3E%3Cpath stroke='%23fff' stroke-width='8' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23C8102E' stroke-width='4.8' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23fff' stroke-width='13' d='M30 0v40M0 20h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='8' d='M30 0v40M0 20h60'/%3E%3C/svg%3E");
}
.rrl-flag--it {
  background: linear-gradient(90deg, #009246 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666% 100%);
}
.rrl-flag--fr {
  background: linear-gradient(90deg, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666% 100%);
}
.rrl-flag--es {
  background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}
.rrl-flag--jp {
  background: radial-gradient(circle at 50% 50%, #bc002d 0 31%, transparent 32%), #fff;
}

.rrl-lang__menu {
  position: fixed;
  top: 60px;
  right: 16px;
  min-width: 200px;
  padding: 8px;
  border-radius: 16px;
  background: var(--rrl-color-surface);
  border: 1px solid var(--rrl-color-border);
  box-shadow: var(--rrl-shadow-lg);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.rrl-lang__menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rrl-lang__option {
  min-height: 44px;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rrl-color-text);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.rrl-lang__option:hover {
  background: var(--rrl-color-surface-alt);
}

.rrl-lang__option.is-active {
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary-strong);
}

@media (max-width: 640px) {
  .rrl-lang__menu {
    right: 12px;
    min-width: 200px;
  }

  .rrl-lang__trigger {
    height: 40px;
    padding: 0 12px;
  }
}

/* ── Hero image layout variants ── */
.rrl-hero__image {
  min-height: 240px;
  border-radius: var(--rrl-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.rrl-hero__image svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.5;
  color: var(--rrl-color-primary-strong);
  opacity: 0.45;
}

.rrl-hero__content {
  display: grid;
  gap: 16px;
  align-content: start;
}

.rrl-hero__box--img-left,
.rrl-hero__box--img-right {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
}

.rrl-hero__box--img-right .rrl-hero__image {
  order: 1;
}

.rrl-hero__box--img-top .rrl-hero__image,
.rrl-hero__box--img-bottom .rrl-hero__image {
  min-height: 300px;
}

.rrl-hero__box--img-bottom .rrl-hero__image {
  order: 1;
}

@media (min-width: 768px) {
  .rrl-grid--cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rrl-grid--cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rrl-hero__box {
    padding: 32px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.15rem;
  }

  .rrl-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .rrl-grid--features {
    grid-template-columns: repeat(4, 1fr);
  }

  .rrl-grid--why-images {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .rrl-container {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .rrl-section {
    padding: 20px 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .rrl-card__cover {
    min-height: 148px;
  }

  .rrl-card__body {
    padding: 16px;
  }

  .rrl-match {
    gap: 14px;
  }

  .rrl-match__teams {
    font-size: 1.04rem;
  }

  .rrl-match__score {
    font-size: 2.1rem;
    gap: 12px;
  }

  .rrl-match .rrl-btn {
    width: 100%;
  }

  .rrl-hero__box--img-left,
  .rrl-hero__box--img-right {
    grid-template-columns: 1fr;
  }

  .rrl-hero__box--img-right .rrl-hero__image {
    order: -1;
  }

  .rrl-hero__box--img-top .rrl-hero__image,
  .rrl-hero__box--img-bottom .rrl-hero__image {
    min-height: 200px;
  }

}

/* ── Footer ── */
.rrl-footer {
  background: var(--rrl-color-text);
  color: var(--rrl-color-text-inverse);
  padding: 36px 0 28px;
}

.rrl-footer__inner {
  display: grid;
  gap: 28px;
}

.rrl-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.rrl-footer__brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: white;
}

.rrl-footer__tagline {
  margin: 5px 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.rrl-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rrl-footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rrl-footer__social-link:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
  color: white;
}

.rrl-footer__social-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.rrl-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
}

.rrl-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rrl-footer__legal a {
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.rrl-footer__legal a:hover {
  color: white;
  background: rgba(255,255,255,0.06);
}

/* ── Bottom Nav — stato attivo ── */
.rrl-nav-item--active {
  color: var(--rrl-color-primary);
}

.rrl-nav-item--active .rrl-nav-item__icon {
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary);
}

/* ── Componenti home aggiuntivi ── */

.rrl-section--alt {
  background: var(--rrl-color-surface-alt);
}

.rrl-section__header--center {
  flex-direction: column;
  text-align: center;
}

.rrl-section__subtitle {
  color: var(--rrl-color-text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* Feature grid */
.rrl-grid--features {
  grid-template-columns: repeat(2, 1fr);
}

.rrl-feature-item {
  background: var(--rrl-color-surface);
  border: 1px solid var(--rrl-color-border);
  border-radius: var(--rrl-radius-md);
  padding: 20px;
  display: grid;
  gap: 8px;
}

.rrl-feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--rrl-radius-pill);
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary);
  display: grid;
  place-items: center;
}

.rrl-feature-item__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.rrl-feature-item h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.rrl-feature-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--rrl-color-text-soft);
}

/* Why images grid */
.rrl-grid--why-images {
  grid-template-columns: repeat(2, 1fr);
}

.rrl-why-img {
  width: 100%;
  border-radius: var(--rrl-radius-md);
  object-fit: cover;
}

/* Who icon */
.rrl-who__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rrl-radius-pill);
  background: var(--rrl-color-primary-soft);
  color: var(--rrl-color-primary);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.rrl-who__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Help tabs */
.rrl-help__tab {
  border: 1px solid var(--rrl-color-border);
  border-radius: var(--rrl-radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.rrl-help__tab > summary {
  list-style: none;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  background: var(--rrl-color-surface);
}

.rrl-help__tab > summary::-webkit-details-marker {
  display: none;
}

.rrl-help__tab-body {
  padding: 12px 18px 18px;
  display: grid;
  gap: 12px;
}

.rrl-help__subtitle {
  font-style: italic;
  color: var(--rrl-color-text-soft);
  margin: 0;
  font-size: 0.9rem;
}

.rrl-help__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.rrl-help__item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  color: var(--rrl-color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.rrl-help__item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.rrl-help__item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--rrl-color-text-soft);
}

/* Card title */
.rrl-card__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Badge */
.google-play-badge {
  width: 160px;
  height: 50px;
}

.rrl-page-center {
  min-height: calc(100vh - 200px);
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 30px;
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--rrl-color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Form Components ── */
.rrl-form-page {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rrl-form-page .rrl-form {
  max-width: 100%;
}

.rrl-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--rrl-color-surface);
  border: 1px solid var(--rrl-color-border);
  border-radius: var(--rrl-radius-md);
  padding: 20px 24px;
}

.rrl-form-section h4 {
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px dotted var(--rrl-color-border);
  color: var(--rrl-color-primary);
}

.rrl-form-section__title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rrl-color-primary);
  border-bottom: 2px dotted var(--rrl-color-primary);
  padding-bottom: 6px;
  margin: 0 0 6px;
}

.rrl-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--rrl-radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
}

.rrl-alert--danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--rrl-color-danger);
}

.rrl-alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--rrl-color-success);
}

.rrl-tabs {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.rrl-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rrl-tabs__button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--rrl-radius-pill);
  border: 1px solid var(--rrl-color-border);
  background: var(--rrl-color-surface);
  color: var(--rrl-color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.rrl-tabs__button:hover {
  border-color: var(--rrl-color-primary);
  background: var(--rrl-color-surface-alt);
}

.rrl-tabs__button:focus-visible {
  outline: none;
  border-radius: var(--rrl-radius-pill);
  box-shadow: 0 0 0 3px var(--rrl-color-primary-soft);
  border-color: var(--rrl-color-primary);
}

.rrl-tabs__button:active {
  border-radius: var(--rrl-radius-pill);
  transform: scale(0.97);
}

.rrl-tabs__button.is-active {
  background: var(--rrl-color-primary);
  border-color: var(--rrl-color-primary);
  color: var(--rrl-color-text-inverse);
  box-shadow: var(--rrl-shadow-sm);
}

.rrl-tabs__button app-icon {
  display: inline-flex;
}

.rrl-tabs__label {
  white-space: nowrap;
}

.rrl-tabs__panel {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.rrl-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.rrl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rrl-color-border);
  border-radius: 14px;
  background: var(--rrl-color-surface);
  box-shadow: var(--rrl-shadow-sm);
}

.rrl-search:focus-within {
  border-color: var(--rrl-color-primary);
  box-shadow: 0 0 0 3px var(--rrl-color-primary-soft);
}

.rrl-search__icon {
  color: var(--rrl-color-text-soft);
  flex: 0 0 auto;
}

.rrl-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--rrl-color-text);
}

.rrl-search__input:focus {
  outline: none;
}

.rrl-search__input::placeholder {
  color: var(--rrl-color-text-soft);
}

.rrl-search__clear {
  border: none;
  background: transparent;
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rrl-color-text-soft);
  cursor: pointer;
  border-radius: 999px;
}

.rrl-search__clear:hover {
  background: var(--rrl-color-surface-alt);
}

.rrl-search__submit {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rrl-form-page {
    max-width: 100%;
    gap: 12px;
  }

  .rrl-form-section {
    padding: 16px;
  }

  .rrl-tabs__list {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
    max-width: 100%;
  }

  .rrl-tabs__list::-webkit-scrollbar {
    display: none;
  }

  .rrl-tabs__button {
    flex: 1 1 0;
    min-width: 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
    gap: 0;
  }

  .rrl-tabs__button .rrl-tabs__label {
    display: none;
  }

  .rrl-tabs__button app-icon {
    transform: scale(0.9);
  }

  .rrl-tabs__panel {
    min-width: 0;
    max-width: 100%;
  }

  .rrl-search-row {
    grid-template-columns: 1fr;
  }

  .rrl-search__submit {
    width: 100%;
  }
}
