:root {
  --color-primary-50: #eef9ff;
  --color-primary-100: #d9f1ff;
  --color-primary-200: #bce7ff;
  --color-primary-300: #8ed8ff;
  --color-primary-400: #58c2ff;
  --color-primary-500: #24abfc;
  --color-primary-600: #1595e3;
  --color-primary-700: #1177b7;
  --color-primary-800: #145f8f;
  --color-primary-900: #154f75;
  --btn-open-file: #24abfc;
  --accent-interactive: #24abfc;
  --text-instruction: #168fd8;
  --icon-tools-bg: #24abfc;
  --icon-files-color: #24abfc;
  --icon-activity-color: #24abfc;
  --bg-background: #f5f7fb;
  --bg-file-manager: #f5f7fb;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

.tap-account-bar {
  align-items: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.75rem;
}

.tap-account-bar a,
.tap-account-bar button {
  text-decoration: none;
}

.tap-account-bar__identity {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  gap: 0.45rem;
  min-width: 0;
}

.tap-account-bar__identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tap-account-bar__cta {
  background: #24abfc;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
}

.tap-account-bar__cta:hover {
  background: #1595e3;
}

.tap-account-dock {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce7ef;
  border-radius: 14px;
  bottom: 18px;
  box-shadow: 0 12px 34px rgba(16, 36, 55, 0.16);
  display: flex;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 7px;
  position: fixed;
  right: 18px;
  z-index: 400;
}

.tap-account-dock button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.tap-account-dock button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.tap-account-dock__identity {
  align-items: center;
  background: transparent;
  color: #102437;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tap-account-dock__avatar {
  align-items: center;
  background: #e8f7ff;
  border-radius: 9px;
  color: #0879bc;
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.tap-account-dock__upgrade {
  background: #159ee9;
  border-radius: 9px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 750;
  min-height: 34px;
  padding: 0 12px;
}

@media (max-width: 620px) {
  .tap-account-dock {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    right: 10px;
  }

  .tap-account-dock__identity > span:last-child {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
