:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #93c5fd;
  --blue-wash: #eff6ff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-wash: #fef2f2;
  --yellow: #d97706;
  --yellow-dark: #92400e;
  --yellow-wash: #fffbeb;
  --green: #16a34a;
  --green-dark: #166534;
  --green-wash: #f0fdf4;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --card-shadow: 0 32px 80px -28px rgba(15, 23, 42, 0.34), 0 8px 24px -12px rgba(37, 99, 235, 0.18);
  --focus-ring: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(20px, 4vw, 52px) clamp(16px, 3vw, 34px);
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(70rem 48rem at 12% 4%, rgba(191, 219, 254, 0.88) 0%, rgba(219, 234, 254, 0) 58%),
    radial-gradient(58rem 44rem at 93% 92%, rgba(199, 210, 254, 0.78) 0%, rgba(224, 231, 255, 0) 62%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 44%, #eef2ff 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%, transparent 0%, transparent 44%, rgba(30, 64, 175, 0.035) 100%);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.64;
}

.glow--one {
  top: -24%;
  left: -18%;
  width: 62vw;
  height: 62vw;
  background: rgba(147, 197, 253, 0.7);
}

.glow--two {
  right: -20%;
  bottom: -28%;
  width: 58vw;
  height: 58vw;
  background: rgba(165, 180, 252, 0.54);
}

.glow--three {
  top: 48%;
  right: 18%;
  width: 24vw;
  height: 24vw;
  background: rgba(125, 211, 252, 0.34);
}

.pill {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  opacity: 0.58;
  filter: blur(7px);
  box-shadow: 0 24px 54px -20px rgba(37, 99, 235, 0.38);
  transform-origin: center;
}

.pill::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 8%;
  width: 34%;
  height: 24%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  filter: blur(4px);
}

.pill::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.64);
  filter: blur(1px);
}

.pill--one {
  top: 9%;
  left: 3%;
  width: clamp(160px, 18vw, 270px);
  height: clamp(64px, 7.4vw, 108px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0 50%, rgba(96, 165, 250, 0.82) 50% 100%);
  transform: rotate(-25deg);
}

.pill--two {
  top: 17%;
  right: 2%;
  width: clamp(120px, 14vw, 205px);
  height: clamp(50px, 5.8vw, 84px);
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.94) 0 50%, rgba(255, 255, 255, 0.94) 50% 100%);
  transform: rotate(36deg);
  opacity: 0.52;
}

.pill--three {
  bottom: 12%;
  left: 7%;
  width: clamp(130px, 15vw, 220px);
  height: clamp(52px, 6vw, 88px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0 50%, rgba(196, 181, 253, 0.8) 50% 100%);
  transform: rotate(18deg);
  opacity: 0.48;
}

.pill--four {
  right: 6%;
  bottom: 8%;
  width: clamp(180px, 22vw, 330px);
  height: clamp(68px, 8.4vw, 124px);
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.92) 0 50%, rgba(255, 255, 255, 0.96) 50% 100%);
  transform: rotate(-31deg);
  opacity: 0.66;
}

.pill--five {
  top: 47%;
  left: -5%;
  width: clamp(110px, 13vw, 190px);
  height: clamp(44px, 5.2vw, 74px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 50%, rgba(147, 197, 253, 0.7) 50% 100%);
  transform: rotate(61deg);
  opacity: 0.34;
}

.dot {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(147, 197, 253, 0.82));
  filter: blur(3px);
  box-shadow: 0 18px 40px -10px rgba(37, 99, 235, 0.32);
}

.dot--one {
  top: 27%;
  left: 22%;
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.dot--two {
  right: 25%;
  bottom: 28%;
  width: 34px;
  height: 34px;
  opacity: 0.5;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.card {
  position: relative;
  width: 100%;
  padding: clamp(24px, 4.8vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: clamp(24px, 3.5vw, 32px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.985) 0%, rgba(255, 255, 255, 0.945) 100%);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: card-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.8), transparent);
}

.hero {
  margin-bottom: clamp(24px, 3.2vw, 32px);
  text-align: center;
}

.brand-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-mark svg {
  width: 40px;
  height: 40px;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(0.87rem, 1.8vw, 1rem);
  line-height: 1.55;
}

.interaction-form {
  margin: 0;
}

.fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.field {
  min-width: 0;
}

.field__label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.combobox {
  position: relative;
}

.combobox__icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted-light);
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 160ms ease;
}

.combobox__icon svg {
  width: 20px;
  height: 20px;
}

.combobox__input {
  width: 100%;
  height: 54px;
  padding: 0 44px 0 45px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.96rem;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.combobox__clear {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #7b8aa1;
  background: #eef2f7;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.combobox__clear[hidden] {
  display: none;
}

.combobox__clear svg {
  width: 15px;
  height: 15px;
}

.combobox__clear:hover {
  color: #334155;
  background: #e2e8f0;
}

.combobox__clear:active {
  background: #dbe4ef;
}

.combobox__clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.combobox__input::placeholder {
  color: #a2afc1;
  font-weight: 400;
}

.combobox__input:hover {
  border-color: #cbd5e1;
  background: #fbfdff;
}

.combobox__input:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: var(--focus-ring);
}

.combobox__input:disabled {
  color: #94a3b8;
  background: #f1f5f9;
  cursor: wait;
  opacity: 0.8;
}

.combobox.is-open .combobox__icon {
  color: var(--blue);
}

.field.has-error .combobox__input {
  border-color: #f87171;
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.field.has-error .field__hint {
  display: none;
}

.field__hint,
.field__error {
  margin: 6px 2px 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.field__hint {
  color: var(--muted);
}

.field__error {
  min-height: 1.05rem;
  color: var(--red);
  font-weight: 600;
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 270px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 48px -14px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.05);
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.suggestions[hidden] {
  display: none;
}

.suggestions::-webkit-scrollbar {
  width: 8px;
}

.suggestions::-webkit-scrollbar-thumb {
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #cbd5e1;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 11px;
  cursor: pointer;
  user-select: none;
  transition: background-color 120ms ease;
}

.suggestion + .suggestion {
  margin-top: 1px;
}

.suggestion__mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-wash);
  font-size: 0.78rem;
  font-weight: 750;
}

.suggestion__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.suggestion__name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion__group {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion.is-active,
.suggestion:hover {
  background: var(--blue-wash);
}

.suggestion.is-active .suggestion__mark {
  color: #ffffff;
  background: var(--blue);
}

.suggestion--empty {
  display: block;
  padding: 14px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  cursor: default;
}

.suggestion--empty:hover {
  background: transparent;
}

.actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.button__icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
}

.button__icon svg {
  width: 19px;
  height: 19px;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button--secondary {
  color: #475569;
  border-color: var(--border);
  background: #f1f5f9;
}

.button:focus-visible {
  box-shadow: var(--focus-ring);
}

.button--primary:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 12px 26px -12px rgba(37, 99, 235, 0.8);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.load-error {
  margin-top: 22px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #9a3412;
  background: #fff7ed;
}

.load-error[hidden] {
  display: none;
}

.load-error__icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  margin-top: 1px;
}

.load-error__icon svg {
  width: 23px;
  height: 23px;
}

.load-error__copy {
  min-width: 0;
  flex: 1;
}

.load-error__copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.85rem;
}

.load-error__copy p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.55;
}

.load-error__copy code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(154, 52, 18, 0.08);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.73rem;
}

.load-error__retry {
  flex: 0 0 auto;
  align-self: center;
  padding: 7px 11px;
  border: 1px solid #fdba74;
  border-radius: 9px;
  color: #9a3412;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}

.load-error__retry:hover {
  background: #ffedd5;
}

.result {
  --state: var(--muted);
  --state-ink: var(--muted);
  --state-wash: #f1f5f9;
  position: relative;
  margin-top: 26px;
  padding: 21px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.result::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--state);
  opacity: 0;
  transition: opacity 220ms ease;
}

.result__body {
  min-width: 0;
  flex: 1;
}

.result__head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.result__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  background: var(--state-wash);
  transition: color 220ms ease, background-color 220ms ease;
}

.result__icon svg {
  width: 25px;
  height: 25px;
}

.result__heading {
  min-width: 0;
}

.result__kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.result__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  font-weight: 720;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.result__text {
  margin: 11px 0 0 59px;
  color: #526176;
  font-size: 0.88rem;
  line-height: 1.62;
}

.result__meta {
  margin: 12px 0 0 59px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result__meta[hidden] {
  display: none;
}

.result__pair,
.result__source {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  color: #526176;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
}

.result__pair[hidden],
.result__source[hidden] {
  display: none;
}

.result__source {
  color: var(--state-ink);
  border-color: color-mix(in srgb, var(--state) 24%, transparent);
  background: color-mix(in srgb, var(--state-wash) 72%, white);
}

.result--idle .result__icon {
  color: #64748b;
  background: #eef2f7;
}

.result--red {
  --state: var(--red);
  --state-ink: var(--red-dark);
  --state-wash: #fee2e2;
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff8f8 0%, #fef2f2 100%);
}

.result--red::before {
  opacity: 1;
}

.result--red .result__kicker {
  color: var(--red-dark);
}

.result--red .result__text {
  color: var(--red-dark);
}

.result--yellow {
  --state: var(--yellow);
  --state-ink: var(--yellow-dark);
  --state-wash: #fef3c7;
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffdf5 0%, #fffbeb 100%);
}

.result--yellow::before {
  opacity: 1;
}

.result--yellow .result__kicker {
  color: var(--yellow-dark);
}

.result--yellow .result__text {
  color: var(--yellow-dark);
}

.result--green {
  --state: var(--green);
  --state-ink: var(--green-dark);
  --state-wash: #dcfce7;
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f8fffa 0%, #f0fdf4 100%);
}

.result--green::before {
  opacity: 1;
}

.result--green .result__kicker {
  color: var(--green-dark);
}

.result--green .result__text {
  color: var(--green-dark);
}

.result--muted {
  --state: #64748b;
  --state-wash: #eef2f7;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.result--muted .result__kicker {
  color: #64748b;
}

.result.is-updating {
  animation: result-in 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button.is-swapping .button__icon {
  animation: swap-icon 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.support {
  margin-top: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f5f8ff 100%);
}

.support__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 15px -7px rgba(37, 99, 235, 0.55);
}

.support__copy {
  min-width: 0;
  flex: 1;
}

.support__title {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.support__text {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.support__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.support__button {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.support__button--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.support__button svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.support__button:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.support__button:active {
  transform: translateY(1px);
}

.support__button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.support__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color 160ms ease;
}

.support__link svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.support__link:hover {
  color: var(--blue-dark);
}

.support__link:focus-visible {
  outline: none;
  border-radius: 5px;
  box-shadow: var(--focus-ring);
}

.signal {
  flex: 0 0 auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.signal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  opacity: 0.5;
  transition: background-color 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.result--red .signal__dot--red,
.result--yellow .signal__dot--yellow,
.result--green .signal__dot--green {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--state) 14%, transparent);
}

.result--red .signal__dot--red {
  background: var(--red);
}

.result--yellow .signal__dot--yellow {
  background: var(--yellow);
}

.result--green .signal__dot--green {
  background: var(--green);
}

.disclaimer {
  width: min(100%, 700px);
  margin: 18px auto 0;
  padding: 0 12px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
}

.disclaimer p {
  margin: 0;
}

.disclaimer__sub {
  margin-top: 3px !important;
  color: #7c8ca4;
  font-size: 0.7rem;
}

.disclaimer__links {
  margin-top: 7px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}

.disclaimer__links a,
.disclaimer__links button {
  padding: 0;
  border: 0;
  color: #64748b;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  text-decoration: underline;
  text-decoration-color: rgba(100, 116, 139, 0.45);
  text-underline-offset: 3px;
  cursor: pointer;
}

.disclaimer__links a:hover,
.disclaimer__links button:hover {
  color: var(--blue-dark);
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 18px;
  width: min(920px, calc(100% - 32px));
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.3), 0 6px 18px -12px rgba(37, 99, 235, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-50%);
  animation: cookie-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}

.cookie-banner__copy {
  min-width: 0;
  flex: 1;
}

.cookie-banner__copy strong {
  display: block;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 720;
}

.cookie-banner__copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.cookie-banner__copy a {
  color: var(--blue-dark);
}

.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #ffffff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cookie-banner__button:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.cookie-banner__button--primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.8);
}

.cookie-banner__button--primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.cookie-banner__button:focus-visible,
.disclaimer__links a:focus-visible,
.disclaimer__links button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.legal-card {
  text-align: left;
}

body.legal-page {
  place-items: start center;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--blue-dark);
}

.legal-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.12;
}

.legal-meta {
  margin: 10px 0 0 !important;
  color: var(--muted-light) !important;
  font-size: 0.73rem !important;
}

.legal-card h2 {
  margin: 26px 0 8px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.legal-card p,
.legal-card li {
  color: #526176;
  font-size: 0.86rem;
  line-height: 1.7;
}

.legal-card p {
  margin: 0 0 9px;
}

.legal-card ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-card li {
  margin-bottom: 3px;
}

.legal-card a {
  color: var(--blue-dark);
}

.legal-card strong {
  color: var(--ink-soft);
  font-weight: 650;
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 0;
    width: 100%;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__button {
    flex: 1;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .legal-card h1 {
    font-size: 1.65rem;
  }
}

.noscript-message {
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: var(--red-dark);
  background: var(--red-wash);
  font-size: 0.85rem;
  text-align: center;
}

@media (hover: hover) {
  .button:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .button--primary:hover:not(:disabled) {
    box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .button--secondary:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #e9eff6;
  }
}

@media (max-height: 900px) {
  body {
    place-items: start center;
  }
}

@media (max-width: 640px) {
  body {
    place-items: start center;
    padding-top: clamp(16px, 5vw, 28px);
  }

  .card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    border-radius: 17px;
  }

  .brand-mark svg {
    width: 36px;
    height: 36px;
  }

  .fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .button {
    min-height: 50px;
  }

  .result {
    align-items: flex-start;
    padding: 18px;
  }

  .result__text {
    margin-left: 0;
    margin-top: 12px;
  }

  .result__meta {
    margin-left: 0;
  }

  .signal {
    margin-top: 2px;
  }

  .load-error {
    flex-wrap: wrap;
  }

  .load-error__retry {
    margin-left: 35px;
  }

  .support {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .support__actions {
    width: 100%;
    margin-top: 2px;
    align-items: stretch;
  }

  .support__button {
    width: 100%;
    min-height: 40px;
  }

  .support__link {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .card {
    padding: 22px 16px;
  }

  .result {
    gap: 10px;
  }

  .result__icon {
    width: 42px;
    height: 42px;
  }

  .result__icon svg {
    width: 23px;
    height: 23px;
  }

  .signal {
    display: none;
  }

  .result__head {
    gap: 10px;
  }

  .disclaimer {
    padding: 0 4px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes result-in {
  from {
    opacity: 0.72;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes swap-icon {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(180deg);
  }
}
