.account-confirmation {
  box-sizing: border-box;
  width: min(520px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid #bedbe3;
  border-radius: 20px;
  background: #fff;
  color: #193d48;
  font: 15px/1.55 Arial, sans-serif;
}

.account-confirmation::backdrop { background: #15374180; }
.account-confirmation h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.15; }
.account-confirmation p { margin: 0 0 14px; }
.account-confirmation strong { display: block; overflow-wrap: anywhere; }
.account-confirmation .account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.account-confirmation button { min-height: 42px; }
.account-confirmation-error { color: #a23724; margin-top: 10px !important; }
.account-confirmation-error:empty { display: none; }

.cabinet-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 14px;
  margin: 26px 0 18px;
}
.cabinet-welcome .cabinet-hero { margin: 0; }
.account-login-methods {
  align-content: center;
  padding: 12px;
  border: 1px solid #cbe2e8;
  border-radius: 22px;
  background: #fff;
  text-align: center;
}
.account-methods, .account-channel-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.account-provider {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  padding: 3px 2px;
  color: #4a6270;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.account-provider:disabled { opacity: 1; }
.account-provider:not(:disabled):hover { background: #eef6f9; }
.account-provider svg { width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: #e7edf0; color: #526a76; }
.account-provider-telegram[data-connected='true'] svg { background: #157ca9; color: #fff; }
.account-provider-vk[data-connected='true'] svg { background: #0870e4; color: #fff; }
.account-method small { display: block; color: #466773; font-size: 11px; }
.account-channel { min-width: 0; margin: 10px 0 0; padding: 0; border: 0; }
.account-channel legend { width: 100%; margin-bottom: 5px; padding: 0; font-size: 11px; color: #466773; }
.account-channel-options { gap: 3px; padding: 3px; background: #edf4f7; border-radius: 10px; }
.account-channel-options label { position: relative; }
.account-channel-options input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.account-channel-options span { display: block; padding: 6px 2px; border-radius: 7px; font-size: 11px; }
.account-channel-options input:checked + span { background: #fff; color: #126681; font-weight: 700; box-shadow: 0 1px 4px #15374124; }
.account-channel-options input:focus-visible + span { outline: 2px solid #087da1; }
.account-channel-options input:disabled { cursor: default; }
.account-channel-options input:disabled:not(:checked) + span { color: #6a7c84; }
#notification-channel-status { margin: 4px 0 0; color: #466773; font-size: 11px; }
#notification-channel-status:empty { display: none; }

.panel.vk-first-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 20px;
  padding: clamp(16px, 3vw, 24px);
  background: #fff4df;
  border-color: #ebc477;
}
.vk-first-contact h2 { margin-bottom: 7px; font-size: clamp(25px, 3.4vw, 34px); }
.vk-first-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#cabinet-vk-check-status, .vk-login-contact-status { grid-column: 1 / -1; margin: 0; color: #674324; font-size: 13px; }
#cabinet-vk-check-status:empty, .vk-login-contact-status:empty { display: none; }
#cabinet-vk-login-contact .vk-first-contact-actions { max-width: 340px; }

@media (max-width: 700px) {
  .cabinet-welcome { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .account-login-methods { padding: 10px; }
  .account-channel { max-width: 260px; margin-inline: auto; }
  .panel.vk-first-contact { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .account-confirmation .account-actions > * { width: 100%; }
}
