.shop-email-option {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: inherit; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.shop-email-option svg { flex: none; }
.shop-email-option:hover { background: color-mix(in srgb, currentColor 15%, transparent); }
.shop-email-option[hidden], .shop-email-dialog [hidden] { display: none; }

.shop-email-dialog {
  width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 26px;
  overflow: auto; overscroll-behavior: contain; border-radius: 20px;
  border: 1px solid var(--seam-2, #69707755);
  color: var(--cream, #f5f3f1); background: var(--stone, #212226);
  box-shadow: 0 22px 72px #0006; font-family: var(--font, system-ui, sans-serif);
}
.shop-email-dialog::backdrop { background: #0009; }
.shop-email-mark {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.shop-email-dialog h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; }
.shop-email-dialog p { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.shop-email-dialog form { display: grid; gap: 8px; margin-top: 18px; }
.shop-email-dialog label { font-size: 14px; font-weight: 650; }
.shop-email-dialog input {
  min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 11px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent); color: inherit; font: inherit; font-size: 16px;
}
.shop-email-dialog input[name="code"] { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
.shop-email-dialog button { font: inherit; cursor: pointer; }
.shop-email-dialog button:disabled { opacity: .68; cursor: default; }
.shop-email-dialog .shop-email-submit {
  min-height: 44px; margin-top: 4px; padding: 8px 12px; border: 0; border-radius: 11px;
  color: var(--on-lamp, #151515); background: var(--lamp, #f7f0e6); font-weight: 750;
}
.shop-email-dialog .shop-email-status { margin-top: 12px; }
.shop-email-dialog .shop-email-spam { color: var(--sand-dim, inherit); font-size: 13px; }
.shop-email-dialog .shop-unlink-note { margin-top: 8px; color: var(--sand-dim, inherit); font-size: 13px; }
.shop-email-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.shop-email-actions button, .shop-email-dialog .shop-email-back {
  min-height: 38px; padding: 4px 0; border: 0; background: none;
  color: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.shop-email-dialog .shop-email-back { margin-top: 8px; }
.shop-email-option:focus-visible, .shop-email-dialog :focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
@media (max-width: 399px) {
  .shop-email-dialog { padding: 20px; }
}

.shop-auth-methods {
  padding: 16px; margin: 12px 0; border-radius: 16px;
  border: 1px solid var(--seam-2, #69707755);
  background: var(--stone-deep, var(--stone));
  color: var(--cream, inherit);
}
.shop-auth-methods h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.2; }
.shop-auth-methods p { margin: 0; color: var(--sand, inherit); font-size: 14px; line-height: 1.45; }
.shop-auth-methods ul {
  display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none;
}
.shop-auth-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center;
  min-height: 54px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--seam-2, #69707755); background: var(--stone, inherit);
}
.shop-auth-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
.shop-auth-label { display: grid; gap: 2px; overflow-wrap: anywhere; }
.shop-auth-label strong { font-size: 14px; line-height: 1.25; }
.shop-auth-label small { color: var(--sand-dim, inherit); font-size: 12px; }
.shop-auth-label small[data-linked="true"] { color: var(--cream, inherit); font-weight: 650; }
.shop-auth-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 4px 8px; }
.shop-auth-row button {
  min-height: 44px; padding: 7px 10px; border-radius: 9px; color: var(--cream, inherit);
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  background: color-mix(in srgb, currentColor 7%, transparent);
  cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
}
.shop-auth-row .shop-auth-unlink { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.shop-auth-row .shop-auth-unlink:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.shop-auth-row button:focus-visible { outline: 2px solid var(--lamp, currentColor); outline-offset: 2px; }
.shop-email-dialog .shop-auth-wide {
  display: flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 16px; text-decoration: none;
}
.shop-email-dialog .shop-auth-wide[hidden] { display: none; }
.shop-telegram-proof { display: grid; gap: 8px; margin-top: 16px; }
.shop-telegram-proof strong {
  justify-self: start; min-width: 72px; padding: 7px 12px; border-radius: 10px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: .15em; text-align: center;
}
.shop-telegram-proof .shop-auth-wide { margin-top: 0; }
@media (min-width: 760px) {
  .shop-auth-methods ul { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
@media (min-width: 360px) and (max-width: 430px) {
  .shop-auth-controls button:not(.shop-auth-unlink) { max-width: 132px; line-height: 1.25; }
}
@media (max-width: 359px) {
  .shop-auth-row { grid-template-columns: auto minmax(0, 1fr); }
  .shop-auth-controls { grid-column: 2; flex-flow: row wrap; align-items: center; }
}


html.desk:root body #desk .lg-card .lg-pair,
html.desk:root body #desk .lg-card .lg-or,
:root body .вход .вход-лист .вход-или { display: none !important; }
html.desk:root body #desk .lg-card .lg-alt,
:root body .вход .вход-лист .вход-ряд { display: contents !important; }
html.desk:root body #desk .lg-card { gap: 12px !important; }
html.desk:root body #desk .lg-card > h2 { margin-top: 2px !important; }
html.desk:root body #desk .lg-card > p { margin-bottom: 6px !important; }

html.desk:root body #desk .lg-card .lg-go, :root body .вход .вход-лист .вход-да { order: 1; }
html.desk:root body #desk .lg-card .shop-email-option, :root body .вход .вход-лист .shop-email-option { order: 2; }
html.desk:root body #desk .lg-card .lg-steam:not(.lg-vk), :root body .вход .вход-лист .вход-стим:not(.вход-вк) { order: 3; }
html.desk:root body #desk .lg-card .lg-vk, :root body .вход .вход-лист .вход-вк { order: 4; }
html.desk:root body #desk .lg-card .lg-wait, :root body .вход .вход-лист .вход-ждём { order: 5; }
html.desk:root body #desk .lg-card .вх-бот, :root body .вход .вход-лист .вх-бот { order: 6; }
html.desk:root body #desk .lg-card .lg-legal { order: 7; }

html.desk:root body #desk .lg-card :is(.lg-go, .lg-steam, .shop-email-option),
:root body .вход .вход-лист :is(.вход-да, .вход-стим, .shop-email-option) {
  position: relative !important; box-sizing: border-box !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 0 !important;
  width: 100% !important; height: 56px !important; min-height: 56px !important; margin: 0 !important;
  padding: 0 56px !important; border-radius: 14px !important;
  font: 700 15px/1.2 var(--font, system-ui, sans-serif) !important; letter-spacing: 0 !important; text-transform: none !important;
  text-align: center !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: none;
}
html.desk:root body #desk .lg-card :is(.lg-go, .lg-steam, .shop-email-option) > svg,
:root body .вход .вход-лист :is(.вход-да, .вход-стим, .shop-email-option) > svg { display: none !important; }
html.desk:root body #desk .lg-card :is(.lg-go, .lg-steam, .shop-email-option)[hidden],
:root body .вход .вход-лист :is(.вход-да, .вход-стим, .shop-email-option)[hidden] { display: none !important; }
html.desk:root body #desk .lg-card :is(.lg-go, .lg-steam, .shop-email-option):active,
:root body .вход .вход-лист :is(.вход-да, .вход-стим, .shop-email-option):active { transform: scale(.985); }


html.desk:root body #desk .lg-card :is(.lg-steam, .shop-email-option),
:root body .вход .вход-лист :is(.вход-стим, .shop-email-option) {
  color: var(--cream, inherit) !important;
  background: color-mix(in srgb, currentColor 6%, transparent) !important;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent) !important;
  box-shadow: none !important;
}
@media (hover: hover) and (pointer: fine) {
  html.desk:root body #desk .lg-card :is(.lg-steam, .shop-email-option):hover,
  :root body .вход .вход-лист :is(.вход-стим, .shop-email-option):hover {
    background: color-mix(in srgb, currentColor 11%, transparent) !important;
    border-color: color-mix(in srgb, currentColor 28%, transparent) !important;
  }
}


html.desk:root body #desk .lg-card :is(.lg-go, .lg-steam, .shop-email-option)::before,
:root body .вход .вход-лист :is(.вход-да, .вход-стим, .shop-email-option)::before {
  content: "" !important; display: block !important; position: absolute !important;
  left: 13px !important; top: 50% !important; width: 30px !important; height: 30px !important; margin: -15px 0 0 !important;
  border-radius: 50% !important; opacity: 1 !important; transform: none !important;
  background: #fff center / 30px 30px no-repeat !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) !important; pointer-events: none;
}
html.desk:root body #desk .lg-card .lg-go::before, :root body .вход .вход-лист .вход-да::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%232AABEE'/%3E%3Cpath fill='%23fff' d='M5.43 11.87c3.5-1.52 5.83-2.53 7-3.02 3.33-1.39 4.02-1.63 4.47-1.64.1 0 .32.02.47.14.12.1.15.23.17.33.02.09.04.31.02.47-.18 1.9-.96 6.5-1.36 8.63-.17.9-.5 1.2-.82 1.23-.7.06-1.22-.46-1.9-.9-1.05-.7-1.65-1.13-2.68-1.8-1.18-.78-.41-1.21.26-1.91.18-.18 3.24-2.98 3.3-3.23.01-.03.02-.15-.05-.21-.07-.06-.18-.04-.25-.02-.1.02-1.8 1.14-5.06 3.34-.48.33-.91.49-1.3.48-.43-.01-1.25-.24-1.87-.44-.75-.24-1.35-.37-1.3-.79.03-.22.33-.44.9-.66z'/%3E%3C/svg%3E") !important;
}
html.desk:root body #desk .lg-card .shop-email-option::before, :root body .вход .вход-лист .shop-email-option::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%232b2f36' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='10' width='14' height='10.5' rx='2'/%3E%3Cpath d='m8.6 11 6.4 5 6.4-5'/%3E%3C/svg%3E") !important;
}
html.desk:root body #desk .lg-card .lg-steam:not(.lg-vk)::before, :root body .вход .вход-лист .вход-стим:not(.вход-вк)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23171a21' d='M11.979 0C5.678 0 .511 4.86.022 11.037l6.432 2.658c.545-.371 1.203-.59 1.912-.59.063 0 .125.004.188.006l2.861-4.142V8.91c0-2.495 2.028-4.524 4.524-4.524 2.494 0 4.524 2.031 4.524 4.527s-2.03 4.525-4.524 4.525h-.105l-4.076 2.911c0 .052.004.105.004.159 0 1.875-1.515 3.396-3.39 3.396-1.635 0-3.016-1.173-3.331-2.727L.436 15.27C1.862 20.307 6.486 24 11.979 24c6.627 0 11.999-5.373 11.999-12S18.605 0 11.979 0zM7.54 18.21l-1.473-.61c.262.543.714.999 1.314 1.25 1.297.539 2.793-.076 3.332-1.375.263-.63.264-1.319.005-1.949s-.75-1.121-1.377-1.383c-.624-.26-1.29-.249-1.878-.03l1.523.63c.956.4 1.409 1.5 1.009 2.455-.397.957-1.497 1.41-2.454 1.012H7.54zm11.415-9.303c0-1.662-1.353-3.015-3.015-3.015-1.665 0-3.015 1.353-3.015 3.015 0 1.665 1.35 3.015 3.015 3.015 1.663 0 3.015-1.35 3.015-3.015zm-5.273-.005c0-1.252 1.013-2.266 2.265-2.266 1.249 0 2.266 1.014 2.266 2.266 0 1.251-1.017 2.265-2.266 2.265-1.253 0-2.265-1.014-2.265-2.265z'/%3E%3C/svg%3E") !important;
}
html.desk:root body #desk .lg-card .lg-vk::before, :root body .вход .вход-лист .вход-вк::before {
  background: #0077ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ctext x='15' y='19.5' text-anchor='middle' font-family='Arial' font-weight='700' font-size='11' fill='%23fff'%3EVK%3C/text%3E%3C/svg%3E") center / 30px 30px no-repeat !important;
}


html.desk:root body #desk .lg-card .lg-wait, :root body .вход .вход-лист .вход-ждём {
  display: block !important; width: 100%; max-width: 340px; margin: 2px auto 0 !important; min-height: 0 !important;
  text-align: center !important; font-size: 13px !important; line-height: 1.45 !important;
}
html.desk:root body #desk .lg-card .lg-wait:not(:has(span:not(:empty))) { display: none !important; }
:root body .вход .вход-лист .вход-ждём:empty { display: none !important; }
html.desk:root body #desk .lg-card .lg-wait.err i { display: none !important; }
html.desk:root body #desk .lg-card .lg-wait:not(.err) i {
  display: inline-block !important; vertical-align: -2px; width: 12px !important; height: 12px !important; margin-right: 7px;
}
html.desk:root body #desk .lg-card .вх-бот, :root body .вход .вход-лист .вх-бот {
  margin: -4px auto 0 !important; padding: 4px 8px !important; font-size: 13px !important; opacity: .7 !important;
  text-underline-offset: 3px;
}
html.desk:root body #desk .lg-card .lg-legal { margin-top: 4px; }

:root body.shell .вход .вход-лист { padding-bottom: calc(20px + var(--sh-tabs-h, 64px) + env(safe-area-inset-bottom)) !important; }

.shop-email-dialog form[data-email-code] > label { order: 0; }
.shop-email-dialog form[data-email-code] > input { order: 1; }
.shop-email-dialog form[data-email-code] > .shop-email-spam { order: 2; }
.shop-email-dialog form[data-email-code] > .shop-email-submit { order: 3; }
.shop-email-dialog form[data-email-code] > .shop-email-actions { order: 4; }
.shop-email-dialog .shop-email-spam.shop-email-spam {
  position: relative; margin: 2px 0 2px !important; padding: 10px 12px 10px 40px !important; border-radius: 11px;
  color: var(--cream, inherit) !important; font-size: 13.5px !important; line-height: 1.4 !important; font-weight: 600;
  background: color-mix(in srgb, #f5b73b 14%, transparent);
  border: 1px solid color-mix(in srgb, #f5b73b 38%, transparent);
}
.shop-email-dialog .shop-email-spam.shop-email-spam::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b73b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.8 6.5 8.2 6 8.2-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
