/* Base & Reset Matching discussions.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.workshop-layout {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  background-image: 
    radial-gradient(ellipse 45% 35% at 90% 90%, rgba(154, 212, 223, 0.28), transparent 70%),
    radial-gradient(ellipse 35% 25% at 10% 95%, rgba(186, 230, 238, 0.18), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* -------------------------------------------
   Permanent Visible Left Sidebar
------------------------------------------- */
.sidebar-permanent {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #fcfcfd;
  border-right: 1px solid #e5e5e7;
  z-index: 100;
}

.sidebar-inner {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.workspace-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
}

.options-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 0.9rem;
  color: #71717a;
  transition: all 0.15s ease;
}

.options-btn:hover {
  background-color: #f4f4f5;
  color: #18181b;
}

.sidebar-search-row {
  margin-bottom: 12px;
}

.sidebar-search-input {
  width: 100%;
  padding: 7px 10px;
  background-color: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
  color: #18181b;
  transition: all 0.15s ease;
}

.sidebar-search-input:focus {
  border-color: #9AD4DF;
  background-color: #ffffff;
}

.sidebar-section {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-section::-webkit-scrollbar {
  display: none;
}

/* Tree Styling */
.sidebar-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-folder {
  margin-bottom: 4px;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s ease;
}

.folder-header:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.folder-header.selected {
  background-color: rgba(154, 212, 223, 0.25);
  color: #0369a1;
}

.folder-toggle {
  font-size: 0.6rem;
  display: inline-block;
  width: 12px;
  transition: transform 0.15s ease;
}

.tree-folder:not(.open) .folder-toggle {
  transform: rotate(-90deg);
}

.tree-folder:not(.open) .folder-children {
  display: none;
}

.folder-children {
  padding-left: 12px;
  margin-top: 2px;
}

.tree-item {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  color: #64748b;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tree-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.tree-item.selected {
  background-color: rgba(154, 212, 223, 0.25);
  color: #0369a1;
  font-weight: 600;
  border-left: 2px solid #0284c7;
}

/* -------------------------------------------
   Main Viewport
------------------------------------------- */
.main-viewport {
  margin-left: 250px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid rgba(228, 228, 231, 0.6);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  gap: 16px;
  z-index: 50;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* Pushes the buttons flush against the user menu */
}

.search-engine-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.85rem;
  opacity: 0.5;
  pointer-events: none;
}

.hub-search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hub-search-input:focus {
  border-color: #9AD4DF;
  box-shadow: 0 0 0 3px rgba(154, 212, 223, 0.25);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #a1a1aa;
  cursor: pointer;
  display: none;
}

.clear-search-btn:hover {
  color: #18181b;
}

.top-switch-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #18181b;
  background-color: #f4f4f5;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.top-switch-btn:hover {
  background-color: #e4e4e7;
}

.top-switch-btn-create {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0c0c4c;
  background-color: #e9f9ff;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.top-switch-btn-create:hover {
  background-color: #dbe9ef;
}

/* -------------------------------------------
   Hub Stage & Grid Cards
------------------------------------------- */
.hub-stage {
  padding: 40px 48px 100px 48px;
  max-width: 1280px;
}

.hub-stage-header {
  margin-bottom: 32px;
}

.hub-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #09090b;
  margin-bottom: 4px;
}

.hub-subtitle {
  font-size: 0.88rem;
  color: #71717a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: #9AD4DF;
  box-shadow: 0 10px 25px -5px rgba(154, 212, 223, 0.25);
}

.card-meta-top {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sector-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  background-color: rgba(154, 212, 223, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.domain-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: #52525b;
  background-color: #f4f4f5;
  padding: 2px 8px;
  border-radius: 4px;
}

.project-name {
  font-size: 1.18rem;
  font-weight: 600;
  color: #18181b;
  line-height: 1.35;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.88rem;
  color: #52525b;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f4f4f5;
}

.card-tags {
  display: flex;
  gap: 6px;
}

.tag-label {
  font-size: 0.72rem;
  color: #a1a1aa;
}

.time-label {
  font-size: 0.72rem;
  color: #a1a1aa;
}

.empty-state-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #71717a;
}

.empty-state-notice p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 6px;
}

.empty-state-notice span {
  font-size: 0.88rem;
}

/* -------------------------------------------
   User Account Dropdown & Card
------------------------------------------- */
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}

/* User Icon Button */
.btn-user-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.btn-user-trigger:hover,
.user-menu-wrapper:hover .btn-user-trigger {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Hover Bridge: ensures smooth transition when moving mouse from icon to card */
.user-menu-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
}

/* Floating Card Container */
.user-menu-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
  box-sizing: border-box;
}

/* Creates an invisible safe zone around the menu card to prevent accidental closes */
.user-menu-card::before {
  content: '';
  position: absolute;
  /* Bridges the gap between the button and card, plus a small buffer */
  top: -18px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  z-index: -1;
  background: transparent;
}

.user-menu-wrapper:hover .user-menu-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

/* Login Form Fields */
.user-menu-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.user-field input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.user-field input:focus {
  border-color: #0284c7;
}

.btn-menu-primary {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-top: 4px;
}

.btn-menu-primary:hover {
  background: #0284c7;
}

.user-menu-error {
  font-size: 0.72rem;
  color: #ef4444;
  margin-top: 2px;
  display: none;
}

.user-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 12px 0;
}

.user-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.menu-link-highlight {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
}

.menu-link-highlight:hover {
  text-decoration: underline;
}

.menu-link-subtle {
  font-size: 0.72rem;
  color: #64748b;
  text-decoration: none;
}

.menu-link-subtle:hover {
  color: #0f172a;
}

/* Logged In View */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.user-meta-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-meta-info strong {
  font-size: 0.84rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta-info span {
  font-size: 0.72rem;
  color: #64748b;
}

.user-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.user-nav-link:hover {
  background: #f8fafc;
  color: #0284c7;
}

.btn-menu-signout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ef4444;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-menu-signout:hover {
  background: #fef2f2;
}

/* -------------------------------------------
   Standalone Auth Page (Create Account)
------------------------------------------- */
body.auth-page-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  padding: 24px;
  overflow-y: auto;
}

.auth-card-container {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.auth-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 8px;
}

.auth-logo-icon {
  font-size: 1.5rem;
}

.auth-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.03em;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 320px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field-group label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-field-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field-group input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.auth-input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input-prefix-wrap:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.auth-input-prefix {
  padding-left: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  user-select: none;
}

.auth-input-prefix-wrap input {
  border: none !important;
  box-shadow: none !important;
  padding-left: 4px;
}

.auth-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.4;
}

.btn-auth-submit {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color 0.15s ease;
}

.btn-auth-submit:hover {
  background: #0284c7;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.auth-footer-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-link:hover {
  text-decoration: underline;
}

body, input, button, select, textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* -------------------------------------------
   Mini Studio Preview Stage
------------------------------------------- */
.stage-preview-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  gap: 12px;
  animation: fadeInPreview 0.2s ease-out;
}

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

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.btn-preview-back {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preview-back:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-preview-launch {
  background: #0284c7;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}

.btn-preview-launch:hover {
  background: #0369a1;
}

.preview-frame-wrapper {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.preview-studio-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.preview-project-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}

.btn-user-trigger {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-alert-dot {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 9px !important;
  height: 9px !important;
  background-color: #ef4444 !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

/* -------------------------------------------
   Hub Walkthrough & Spotlight Engine
------------------------------------------- */
.walkthrough-prompt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeInPrompt 0.2s ease-out;
}

.walkthrough-prompt-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 32px;
  width: 92%;
  box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.2);
  text-align: center;
}

/* Larger modal footprint for the overarching gist */
.hub-prompt-card {
  max-width: 540px;
}

.walkthrough-prompt-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.walkthrough-prompt-body {
  margin-bottom: 24px;
  text-align: center;
}

.walkthrough-prompt-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.walkthrough-prompt-question {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.walkthrough-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.walkthrough-choice-btn {
  border-radius: 8px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.walkthrough-choice-btn .choice-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.walkthrough-choice-btn .choice-sub {
  font-size: 0.75rem;
  opacity: 0.85;
}

.btn-choice-accept {
  background: #0284c7;
  border: 1px solid #0284c7;
  color: #ffffff;
}

.btn-choice-accept:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.btn-choice-decline {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.btn-choice-decline:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Dark Backdrop & Transparent Hole */
.walkthrough-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 1;
  transition: opacity 2s ease;
}

.walkthrough-backdrop.fade-out {
  opacity: 0 !important;
}

.walkthrough-cutout-hole {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.72);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.walkthrough-focus-target {
  z-index: 9999 !important;
  outline: 2px dashed #38bdf8 !important;
  outline-offset: 4px !important;
}

/* Floating Tooltip */
.walkthrough-tooltip {
  position: fixed;
  z-index: 10001;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  width: 320px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              left 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease;
}

.walkthrough-tooltip.is-active {
  opacity: 1;
  visibility: visible;
}

.walkthrough-tooltip-step {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 4px;
}

.walkthrough-tooltip-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.walkthrough-tooltip-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 14px;
}

.walkthrough-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 12px;
}

.btn-walkthrough-next {
  background: #0284c7;
  border: none;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-walkthrough-next:hover {
  background: #0369a1;
}

.btn-walkthrough-quit {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-walkthrough-quit:hover {
  color: #64748b;
}

/* Lock scrolling while walkthrough is running */
body.tour-scroll-locked {
  overflow: hidden !important;
}

@keyframes fadeInPrompt {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.walkthrough-tooltip-desc {
  white-space: pre-line;
}

/* Project Card Title & Icon Container */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.card-title-icon-wrap {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title-icon-fallback {
  font-size: 1rem;
  line-height: 1;
}

.card-title-row .project-name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}