body.entry-login {
  margin: 0;
  min-height: 100vh;
  background: var(--p4-bgapp);
  color: var(--p4-tx);
  font-family: var(--p4-font-family);
}

body.entry-login .shell-header {
  display: none;
}

body.entry-login .shell-main {
  padding: 0;
}

.entry {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.entry-top {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 var(--p4-space-32);
  background: var(--p4-card);
  border-bottom: 1px solid var(--p4-ln);
}

.entry-logo {
  display: inline-flex;
  align-items: center;
}

.entry-logo .p4-logo-img,
img.entry-logo {
  height: 32px;
  width: auto;
}

.entry-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--p4-space-24);
  padding: var(--p4-space-24) var(--p4-space-16);
}

.entry-card {
  width: 496px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--p4-space-24);
  padding: var(--p4-space-24);
  background: var(--p4-card);
  border: 1px solid var(--p4-ln);
  border-radius: var(--p4-radius-12);
}

/* Author display beats the UA [hidden] rule (same class as workspace.css). */
.entry-card[hidden],
.entry-state[hidden] {
  display: none;
}

.entry-label {
  display: block;
  margin-bottom: var(--p4-space-8);
  font-size: var(--p4-fs-13_5);
  font-weight: 700;
  color: var(--p4-tx);
}

.entry-field {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: var(--p4-space-10) var(--p4-space-12);
  border: 1.5px solid var(--p4-ib);
  border-radius: var(--p4-radius-10);
  background: var(--p4-card);
  color: var(--p4-tx);
  font: inherit;
  font-size: var(--p4-fs-13_5);
}

.entry-title {
  margin: 0;
  font-size: var(--p4-fs-32);
  font-weight: 800;
  line-height: 1.08;
  color: var(--p4-br);
}

.entry-subtitle {
  margin: 10px 0 0;
  color: var(--p4-mu);
  font-size: var(--p4-fs-15);
  font-weight: 400;
  line-height: 24px;
}

.entry-notice {
  display: flex;
  flex-direction: column;
  gap: var(--p4-space-4);
  padding: var(--p4-space-12) var(--p4-space-16);
  border-radius: var(--p4-radius-10);
  background: var(--p4-soft);
  border: 1px solid var(--p4-onsoft);
}

.entry-notice strong {
  font-size: var(--p4-fs-13);
  font-weight: 600;
  line-height: 20px;
  color: var(--p4-tx);
}

.entry-notice p {
  margin: 0;
  color: var(--p4-mu);
  font-size: var(--p4-fs-13);
  font-weight: 400;
  line-height: 20px;
}

.entry-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--p4-space-12);
  margin: 0;
  color: var(--p4-tx);
  font-size: var(--p4-fs-14);
  line-height: 22px;
}

.entry-check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--p4-ib);
  border-radius: var(--p4-radius-4);
  background: var(--p4-card);
}

/* Layout hook on top of .btn.btn-l.btn-primary */
.entry-yandex {
  gap: var(--p4-space-8);
  width: 100%;
}

.entry-yandex img {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.entry-create {
  margin: 0;
  color: var(--p4-pr);
  font-size: var(--p4-fs-14);
  line-height: 22px;
  text-align: center;
}

.entry-text-button,
.entry-foot button,
.entry-foot a,
.entry-session a,
.entry-session button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--p4-pr);
  font-size: var(--p4-fs-14);
  line-height: 22px;
  text-decoration: underline;
  cursor: pointer;
}

.entry-card-secondary {
  opacity: 0.72;
}

.entry-demo-banner {
  margin: 0;
  padding: var(--p4-space-12);
  border: 1px solid var(--p4-e_st);
  border-radius: var(--p4-radius-4);
  background: var(--p4-e_bg);
  color: var(--p4-e_fg);
  font-size: var(--p4-fs-13);
  line-height: 20px;
}

.entry-status {
  min-height: 20px;
  margin: 0;
  color: var(--p4-mu);
  font-size: var(--p4-fs-13);
  line-height: 20px;
}

.entry-session,
.entry-demo {
  width: 496px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--p4-space-8);
  color: var(--p4-tx);
}

.entry-session[hidden] {
  display: none;
}

.entry-session h2,
.entry-demo h2 {
  margin: 0;
  color: var(--p4-br);
  font-size: var(--p4-fs-15);
  font-weight: 600;
  line-height: 24px;
}

.entry-demo h3 {
  margin: 0;
  color: var(--p4-tx);
  font-size: var(--p4-fs-15);
  font-weight: 600;
  line-height: 24px;
}

.entry-demo-admin-title {
  margin: 0;
  font-size: var(--p4-fs-14);
  font-weight: 600;
  line-height: 22px;
}

.entry-card-staff #staff-code-step {
  display: grid;
  gap: var(--p4-space-12);
}

.entry-card-staff #staff-code-step[hidden] {
  display: none;
}

.entry-demo-hint {
  margin: 0;
  color: var(--p4-mu);
  font-size: var(--p4-fs-13);
  line-height: 20px;
}

.entry-demo-hint code {
  font-family: var(--p4-font-mono);
  font-size: var(--p4-fs-12);
}

.entry-foot {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--p4-space-24);
  padding: 0 var(--p4-space-32);
  color: var(--p4-mu);
  font-size: var(--p4-fs-12);
  line-height: 20px;
  border-top: 1px solid var(--p4-ln);
  background: var(--p4-card);
}

.entry-foot p {
  margin: 0;
}

.entry-docs {
  display: flex;
  gap: var(--p4-space-24);
}

.state-title {
  font-size: var(--p4-fs-20);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 var(--p4-space-16) 0;
  color: var(--p4-br);
}

a.entry-yandex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.state-text {
  margin: 0 0 var(--p4-space-16) 0;
  color: var(--p4-mu);
  font-size: var(--p4-fs-15);
  line-height: 24px;
}

.state-error {
  color: var(--p4-e_fg);
  font-weight: 600;
}

@media (max-width: 1023px) {
  .entry-top,
  .entry-foot {
    padding-left: var(--p4-space-16);
    padding-right: var(--p4-space-16);
  }
  .entry-card {
    padding: var(--p4-space-16);
  }
  .entry-foot {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: var(--p4-space-16);
    padding-bottom: var(--p4-space-16);
  }
  .entry-docs {
    gap: var(--p4-space-16);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .entry-top,
  .entry-foot {
    padding-left: var(--p4-space-24);
    padding-right: var(--p4-space-24);
  }
  .entry-card {
    padding: var(--p4-space-20);
  }
}

@media (min-width: 1024px) {
  .entry-top,
  .entry-foot {
    padding-left: var(--p4-space-32);
    padding-right: var(--p4-space-32);
  }
  .entry-card {
    padding: var(--p4-space-24);
  }
}
