.notice {
  border: 1px solid transparent;
  font-weight: 750;
  line-height: 1.5;
  box-shadow: 0 10px 30px #0003;
}

.notice.error {
  background: #3d0b19;
  border-color: #ff6f91;
  color: #fff0f4;
}

.notice.ok {
  background: #07382d;
  border-color: #36d6ad;
  color: #e7fff8;
}

body.light .notice.error {
  background: #fff0f3;
  border-color: #c82f55;
  color: #7b102a;
}

body.light .notice.ok {
  background: #eafff8;
  border-color: #13866a;
  color: #075b48;
}

.toast {
  max-width: min(420px, calc(100% - 32px));
  background: #241035;
  border-color: #a66cff;
  color: #fff;
  font-weight: 800;
  line-height: 1.45;
}

.toast.ok {
  background: #07382d;
  border-color: #36d6ad;
  color: #e7fff8;
}

body.light .toast {
  background: #fff;
  border-color: #7534c9;
  color: #28123f;
}

body.light .toast.ok {
  background: #eafff8;
  border-color: #13866a;
  color: #075b48;
}

.device-choice {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.device-media {
  position: relative;
  display: block;
  height: 165px;
  overflow: hidden;
  background: #090518;
}

.device-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, #090518d9);
}

.device-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.device-choice:hover .device-media img {
  transform: scale(1.04);
}

.device-media b {
  position: absolute;
  left: 16px;
  bottom: 13px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid #5de4ff99;
  border-radius: 12px;
  background: #08051dd9;
  color: #6ee9ff;
  font-size: 1.45rem;
  box-shadow: 0 8px 25px #0007;
}

.device-copy {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 19px 20px 21px;
}

.device-copy strong {
  color: var(--text);
  font-size: 1.18rem;
}

.device-copy small {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.brand-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-option {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  min-height: 142px;
  padding: 22px;
}

.brand-option img {
  width: 128px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px #19d8ff45);
}

.brand-option strong {
  color: var(--text);
  font-size: .93rem;
}

.brand-placeholder {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #9b6bff88;
  border-radius: 16px;
  background: #7c3aed24;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .device-choice-grid,
  .brand-grid {
    grid-template-columns: 1fr 1fr;
  }

  .device-media {
    height: 132px;
  }

  .device-copy {
    min-height: 130px;
    padding: 16px;
  }

  .brand-option {
    min-height: 126px;
  }
}

@media (max-width: 430px) {
  .device-choice-grid {
    grid-template-columns: 1fr;
  }

  .device-media {
    height: 170px;
  }

  .device-copy {
    min-height: auto;
  }

  .brand-option img {
    width: 100px;
    height: 43px;
  }
}
