.main-topbar {
  min-height: 76px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.main-topbar .brand {
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.main-topbar .brand img {
  width: min(330px, 100%);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-control {
  min-width: 132px;
  margin: 0;
  padding: 7px 9px;
  display: grid;
  gap: 3px;
  border: 1px solid #1a5a78;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(12, 48, 69, .98), rgba(6, 28, 44, .98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  color: #9bd9eb;
  font: 700 10px Segoe UI, Arial, sans-serif;
}

.language-control select {
  width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 0 24px 0 0;
  border: 0;
  background-color: transparent;
  color: #f4fcff;
  font: 800 13px Segoe UI, Arial, sans-serif;
  cursor: pointer;
}

.language-control select:focus {
  outline: 2px solid rgba(32, 212, 220, .48);
  outline-offset: 2px;
}

.language-control option {
  background: #082033;
  color: #f4fcff;
}

.auth-account {
  display: block;
  width: min(310px, 100%);
  min-height: 54px;
  margin: 0;
}

.auth-account .account-login {
  width: auto;
  min-width: 108px;
  margin: 0;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1a5a78;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(12, 48, 69, .98), rgba(6, 28, 44, .98));
  color: #e9fbff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  font: 800 13px Segoe UI, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.auth-account:not(.is-authenticated) {
  width: auto;
  min-height: 42px;
}

.auth-account .account-login:hover {
  border-color: #20b8d5;
  background: linear-gradient(145deg, rgba(13, 50, 72, .98), rgba(7, 29, 46, .98));
  transform: translateY(-1px);
}

.auth-account .account-user {
  width: 100%;
  overflow: hidden;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #1a5a78;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(32, 212, 220, .10), transparent 42%),
    linear-gradient(145deg, rgba(10, 35, 53, .98), rgba(6, 24, 39, .98));
  color: #e9fbff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .20);
  font: 700 12px Segoe UI, Arial, sans-serif;
}

.account-profile-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-profile-copy {
  min-width: 0;
}

.account-profile-copy strong,
.account-profile-copy small {
  display: block;
}

.account-profile-copy strong {
  overflow: hidden;
  color: #f4fcff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-copy small {
  margin-top: 3px;
  color: #30d39b;
  font-size: 10px;
  font-weight: 600;
}

.account-user img,
.account-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(65, 213, 230, .55);
  background: linear-gradient(145deg, #155378, #5370c4);
  box-shadow: 0 0 0 3px rgba(32, 212, 220, .08);
  color: #fff;
  font-size: 15px;
  object-fit: cover;
}

.account-actions {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  border: 0;
}

.auth-account .account-actions a,
.auth-account .account-actions button {
  width: auto;
  min-height: 31px;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid #245a73;
  border-radius: 8px;
  background: rgba(7, 31, 48, .82);
  color: #cdebf3;
  font: 700 11px Segoe UI, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.auth-account .account-actions .account-logout {
  margin: 0;
  color: #a9cbd7;
}

.auth-account .account-actions a:hover {
  border-color: #20b8d5;
  color: #fff;
}

.auth-account .account-actions button:hover {
  border-color: #b14d58;
  background: rgba(87, 27, 36, .48);
  color: #ffd9dc;
}

.support-launcher {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 30;
  width: auto;
  min-width: 142px;
  margin: 0;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #1dbad0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d7593, #16a7d8);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .42), 0 0 24px rgba(32, 212, 220, .18);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-launcher-icon {
  font-size: 19px;
}

.support-launcher b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff5a64;
  color: #fff;
  font-size: 11px;
}

.support-launcher b[hidden] {
  display: none;
}

.auth-account .auth-pending {
  padding: 8px 12px;
  border: 1px solid #315166;
  border-radius: 999px;
  background: rgba(7, 24, 39, .96);
  color: #8fb7c9;
  font: 700 12px Segoe UI, Arial, sans-serif;
}

.support-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 31;
  width: min(430px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid #1b5874;
  border-radius: 16px;
  background: #06111d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .58);
  color: #f4fbff;
  font-family: Segoe UI, Arial, sans-serif;
}

.support-panel[hidden] {
  display: none;
}

.support-header {
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #1b4258;
  background: linear-gradient(135deg, #0a2639, #071827);
}

.support-header strong,
.support-header span {
  display: block;
}

.support-header strong {
  font-size: 16px;
}

.support-header span {
  margin-top: 5px;
  color: #8fb7c9;
  font-size: 12px;
}

.support-header i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #19c98a;
  box-shadow: 0 0 10px #19c98a;
}

.support-header button {
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border-color: #315166;
  border-radius: 50%;
  background: #0b2233;
  color: #fff;
  font-size: 24px;
}

.support-identity {
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid #17384c;
  color: #dff9ff;
  font-size: 13px;
}

.support-identity strong,
.support-identity small {
  display: block;
}

.support-identity small {
  margin-top: 3px;
  color: #8fb7c9;
}

.support-body {
  height: calc(100% - 208px);
  padding: 16px;
  overflow-y: auto;
}

.support-body.login-required {
  height: calc(100% - 134px);
  display: grid;
  place-items: center;
}

.support-login {
  max-width: 340px;
  text-align: center;
}

.support-login-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid #1c6581;
  border-radius: 50%;
  background: #082238;
  font-size: 32px;
}

.support-login h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.support-login p {
  margin: 0 0 20px;
  color: #9db9c8;
  line-height: 1.55;
}

.support-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  background: #fff;
  color: #17202a;
  font-weight: 800;
  text-decoration: none;
}

.support-google span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: #4285f4;
  font-size: 18px;
}

.support-message {
  display: flex;
  margin-bottom: 14px;
}

.support-message.user {
  justify-content: flex-end;
}

.support-bubble {
  max-width: 82%;
}

.support-bubble p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #28495c;
  border-radius: 12px 12px 12px 3px;
  background: #0c2232;
  color: #eefbff;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.support-message.user .support-bubble p {
  border-color: #168bac;
  border-radius: 12px 12px 3px 12px;
  background: #0d7898;
}

.support-bubble small {
  display: block;
  margin-top: 4px;
  color: #789aaa;
  font-size: 10px;
}

.support-message.user small {
  text-align: right;
}

.support-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: #8fb7c9;
  text-align: center;
  line-height: 1.5;
}

.support-form {
  height: 74px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  border-top: 1px solid #17384c;
  background: #071827;
}

.support-form textarea {
  width: 100%;
  min-height: 52px;
  resize: none;
  border: 1px solid #315166;
  border-radius: 9px;
  background: #04101b;
  color: #fff;
  padding: 10px;
  font: 14px Segoe UI, Arial, sans-serif;
}

.support-form button {
  width: 48px;
  height: 48px;
  margin: 2px 0 0;
  padding: 0;
  border-color: #1dbad0;
  border-radius: 10px;
  background: #16a7d8;
  color: #fff;
  font-size: 21px;
}

.support-error {
  padding: 10px;
  border: 1px solid #7c3038;
  border-radius: 8px;
  background: #36171d;
  color: #ffd9dc;
}

@media (max-width: 700px) {
  .main-topbar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .main-topbar .brand {
    text-align: center;
  }

  .main-topbar .brand img {
    width: min(290px, 100%);
    margin: 0 auto;
  }

  .auth-account {
    width: 100%;
    margin: 0;
  }

  .topbar-actions {
    width: 100%;
    align-items: stretch;
  }

  .language-control {
    flex: 0 0 132px;
  }

  .auth-account:not(.is-authenticated) {
    width: 100%;
    text-align: right;
  }

  .support-launcher {
    right: 14px;
    bottom: 14px;
    min-width: 54px;
    padding: 13px;
  }

  .support-launcher > span:not(.support-launcher-icon) {
    display: none;
  }

  .support-panel {
    right: 7px;
    bottom: 76px;
    width: calc(100vw - 14px);
    height: calc(100vh - 90px);
  }
}
