.start-page {
  --vk-blue: #48698d;
  --vk-blue-dark: #365473;
  --ink-100: #202936;
  --ink-60: #596579;
  --ink-40: #596579;
  --divider: #e4e8ed;
  --shell-body-background: #f6f7f9;
  --shell-topbar-background: #ffffff;
  --shell-topbar-color: #202936;
  --shell-content-background: #f6f7f9;
  --shell-app-width: min(680px, 100%);
  --shell-app-radius: 0;
  --shell-app-shadow: none;
  --shell-topbar-padding: 20px 24px;
  --shell-topbar-padding-top: 20px;
  --shell-content-padding: 0 24px calc(24px + var(--telegram-bottom-inset));
  --shell-status-padding: 16px;
  background: var(--shell-body-background);
}

.start-page .app {
  width: min(680px, 100%);
  border-inline: 1px solid var(--divider);
}

.topbar {
  border-bottom: 1px solid var(--divider);
  padding-left: max(24px, var(--telegram-left-inset));
  padding-right: max(24px, var(--telegram-right-inset));
}

.topbar-row {
  gap: 12px;
  flex-wrap: wrap;
}

.start-brand {
  position: relative;
  overflow: hidden;
  width: 154px;
  height: 40px;
  flex: 0 0 154px;
}

.start-brand__image {
  position: absolute;
  width: 208px;
  height: 208px;
  max-width: none;
  left: -28px;
  top: -86px;
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: #f6f8fb;
  color: var(--vk-blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.topbar-action__icon {
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
}
.topbar-action[aria-expanded="true"] .topbar-action__icon {
  transform: rotate(45deg);
}
.topbar-action:hover {
  background: #eaf0f6;
}

.page-heading {
  padding: 30px 0 24px;
}
.page-heading h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  font-weight: 650;
}
.page-heading p {
  margin: 8px 0 0;
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.6;
}

.composer {
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px #20293603;
}

.composer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}
.composer-description {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-60);
}
.composer-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.composer-field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.composer-input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8dfe7;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfcfd;
  color: var(--ink-100);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.composer-input::placeholder {
  color: #667184;
  opacity: 1;
}
.composer-input:focus {
  background: #fff;
  border-color: var(--vk-blue);
}
.composer-hint {
  margin: -2px 0 -10px;
  color: var(--ink-60);
  font-size: 12px;
  line-height: 1.6;
}
.composer-text-button {
  justify-self: start;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--vk-blue-dark);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.composer-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-60);
}
.composer-consent-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--vk-blue);
}
.composer-consent-copy {
  min-width: 0;
}
.composer-consent-link {
  color: var(--vk-blue-dark);
  text-underline-offset: 3px;
}
.composer-button,
.payment-link-modal__button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--vk-blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.composer-button:hover,
.payment-link-modal__button:hover {
  background: var(--vk-blue-dark);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button.is-loading:disabled,
.composer-text-button:disabled {
  cursor: wait;
}

.status {
  margin-bottom: 16px;
  border-radius: 12px;
  background: #edf1f6;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.status:empty {
  display: none;
}
.status.is-empty {
  color: var(--ink-60);
  background: transparent;
  border: 1px dashed #cbd4de;
  text-align: center;
}
.status.is-error {
  color: #a32c30;
  background: #fff0ef;
  border: 1px solid #f2d4d2;
}
.status.is-success {
  color: #246448;
  background: #edf6f0;
}

.email-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.email-item {
  position: relative;
  min-width: 0;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px #20293603;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}
.email-item.is-visible {
  opacity: 1;
  transform: none;
}
.email-item:hover {
  border-color: #c6d1de;
}
.email-item.is-menu-open {
  z-index: 2;
}
.email-card {
  display: flex;
  align-items: center;
  min-width: 0;
}
.email-link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 14px;
  padding: 20px 0 20px 18px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px 0 0 16px;
}
.email-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #48698d;
  background: #edf2f7;
  border: 1px solid #e5ebf1;
  border-radius: 13px;
}
.email-avatar svg {
  width: 24px;
  height: 24px;
}
.email-body {
  min-width: 0;
  flex: 1;
}
.email-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.email-meta {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.email-status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.email-status.is-new {
  color: #3d5c80;
  background: #edf2f8;
}
.email-status.is-processing {
  color: #79521c;
  background: #fbf3e6;
}
.email-status.is-failed {
  color: #a32c30;
  background: #fff0ef;
}
.email-status.is-empty {
  color: #596579;
  background: #f0f2f5;
}
.email-status.is-to-pay {
  color: #79521c;
  background: #fbf3e6;
}
.email-status.is-done {
  color: #246448;
  background: #edf6f0;
}
.email-status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  margin: 6px 6px 0 0;
  border-radius: 50%;
  background: currentColor;
}
.email-arrow {
  color: #596579;
  font-size: 22px;
  padding-left: 2px;
}
.email-actions {
  position: relative;
  flex-shrink: 0;
  padding: 0 8px;
}
.email-menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #596579;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.email-menu-button:hover,
.email-menu-button[aria-expanded="true"] {
  background: #edf2f7;
  color: var(--vk-blue-dark);
}
.email-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 8px;
  min-width: 184px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 13px;
  box-shadow: 0 10px 32px #2029361a;
  z-index: 12;
}
.email-menu.is-open-upward {
  top: auto;
  bottom: calc(100% + 6px);
}
.email-menu-item {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-100);
  padding: 12px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.email-menu-item:hover {
  background: #f1f4f8;
}
.email-menu-item.is-danger {
  color: #a32c30;
}
.email-menu-item.is-danger:hover {
  background: #fff0ef;
}

.top-toast {
  position: absolute;
  top: calc(88px + var(--telegram-top-inset));
  left: 24px;
  right: 24px;
  z-index: 20;
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: #fff