.tools-hero-flip {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
}

.tools-hero-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.tools-hero-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel-surface);
  border: var(--panel-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  transition: opacity 0.32s ease;
}

@media (min-width: 640px) {
  .tools-hero-face {
    border-radius: var(--radius-2xl);
  }
}

.tools-hero-face--front { opacity: 1; }
.tools-hero-face--back  { opacity: 0; }

.tools-hero-flip.is-flipped .tools-hero-face--front { opacity: 0; }
.tools-hero-flip.is-flipped .tools-hero-face--back  { opacity: 1; }

.tools-hero-flip:not(.is-flipped) .tools-hero-face--back  { pointer-events: none; }
.tools-hero-flip.is-flipped       .tools-hero-face--front { pointer-events: none; }

.tools-hero-face--front {
  padding: 0.75rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tools-hero-face--front::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tools-hero-face--front .ls-tabs {
  gap: 0.55rem;
}

.tools-hero-face--front .ls-tab {
  padding: 0.95rem 1rem;
  border-radius: 0.8rem;
}

.tools-hero-face--front .ls-tab-label {
  font-size: 0.98rem;
  font-weight: 600;
}

.tools-hero-face--front .ls-tab-arrow svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 640px) {
  .tools-hero-face--front { padding: 1rem; }
}

@media (min-width: 1024px) {
  .tools-hero-face--front { padding: 1.25rem; }
}

main[data-view="user-tools"] #user-hero-card:has(.tools-hero-flip),
main[data-view="user-tools"] #user-hero-card:has(.tools-hero-flip):hover {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#right-user-tools-content {
  display: flex;
  flex-direction: column;
}

.tools-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--text-color-subtle);
}

.tools-empty-icon {
  margin-bottom: 1rem;
  opacity: 0.4;
  color: var(--primary-color-dark);
}

.tools-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  font-family: "Outfit", sans-serif;
}

.tools-empty-desc {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  max-width: 420px;
  line-height: 1.5;
  font-family: "Outfit", sans-serif;
}

.tools-panel {
  font-family: "Outfit", sans-serif;
  animation: toolsPanelIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes toolsPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tools-panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tools-panel-detail {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

.tools-panel-cta {
  display: flex;
}

.tools-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tools-panel-status i {
  width: 14px;
  height: 14px;
}
