/* ALL-INN AI Chat - Modern Dark Luxury Styling met ALL-INN Goud & Cyaan */
:root {
  --bg-primary: #0c1222;
  --bg-secondary: #090e1a;
  --bg-card: rgba(21, 30, 54, 0.85);
  --bg-card-hover: rgba(27, 41, 72, 0.95);
  --bg-input: #151e36;
  
  --border-color: rgba(215, 175, 56, 0.2);
  --border-focus: #f4cf62;
  
  --gold: #d7af38;
  --gold-2: #f4cf62;
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-danger: #ef4444;

  --text-primary: #f7f5ee;
  --text-secondary: #c8c2b7;
  --text-muted: #8b95a5;

  --sidebar-width: 290px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", Consolas, Monaco, monospace;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 15px rgba(244, 207, 98, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(215, 175, 56, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-2);
}

/* Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35));
}

.brand-text h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.brand-text .badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(244, 207, 98, 0.15);
  color: var(--gold-2);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 207, 98, 0.3);
}

.sidebar-actions {
  padding: 16px 16px 12px;
}

.new-chat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  color: #fff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.new-chat-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #1e3a8a 100%);
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 18px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

.new-chat-btn .btn-icon {
  font-size: 1.2rem;
  font-weight: 900;
}

.new-chat-btn .kbd-hint {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #bae6fd;
}

/* Personas */
.persona-section {
  padding: 0 16px 12px;
}

.section-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  margin-bottom: 8px;
}

.persona-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.persona-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.persona-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(215, 175, 56, 0.3);
}

.persona-pill.active {
  background: rgba(244, 207, 98, 0.12);
  border-color: rgba(244, 207, 98, 0.45);
  color: var(--gold-2);
}

.pill-icon {
  font-size: 1.15rem;
}

.pill-info {
  display: flex;
  flex-direction: column;
}

.pill-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.pill-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* History Section */
.history-section {
  flex: 1 1 0;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.clear-history-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 4px;
}

.clear-history-btn:hover {
  color: var(--accent-danger);
}

.chat-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
}

.chat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.chat-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.chat-list-item.active {
  background: rgba(244, 207, 98, 0.1);
  border-color: rgba(244, 207, 98, 0.35);
  color: var(--gold-2);
  font-weight: 700;
}

.chat-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 8px;
}

.chat-item-actions {
  display: none;
  gap: 4px;
}

.chat-list-item:hover .chat-item-actions,
.chat-list-item.active .chat-item-actions {
  display: flex;
}

.chat-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.chat-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.chat-action-btn.delete-chat:hover {
  color: var(--accent-danger);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(9, 14, 26, 0.95);
  flex-shrink: 0;
  margin-top: auto;
}

.provider-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.footer-buttons {
  display: flex;
  gap: 8px;
}

.footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--gold-2);
}

.hub-link {
  color: var(--gold-2);
  font-weight: 700;
}

/* Chat Main Container */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(215, 175, 56, 0.05) 0%, rgba(12, 18, 34, 1) 75%);
  position: relative;
  overflow: hidden;
}

/* Topbar */
.topbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(14px);
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.persona-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(244, 207, 98, 0.15);
  color: var(--gold-2);
  border: 1px solid rgba(244, 207, 98, 0.35);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--gold-2);
}

.action-btn.clear-btn {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.action-btn.clear-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
}

.action-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.install-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.install-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--gold-2);
}

.mobile-menu-btn, .mobile-close {
  display: none;
}

/* Viewport */
.messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Welcome Screen - Exact Look Afbeelding 2 */
.welcome-screen {
  max-width: 820px;
  margin: auto;
  text-align: center;
  padding: 40px 16px 20px;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 207, 98, 0.1);
  border: 1px solid rgba(244, 207, 98, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.welcome-logo {
  width: 26px;
  height: 26px;
}

.welcome-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.welcome-eyebrow {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.welcome-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.welcome-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}

.prompt-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.prompt-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 16px rgba(244, 207, 98, 0.18);
}

.card-eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--gold-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-icon {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 6px;
}

.prompt-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.prompt-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Messages List */
.messages-list {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-row {
  display: flex;
  gap: 14px;
  width: 100%;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-row.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #151e36;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.message-row.user .message-avatar {
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  border-color: #38bdf8;
  color: #fff;
}

.message-row.assistant .message-avatar {
  background: linear-gradient(135deg, #151e36, #2d2353);
  border-color: var(--gold-2);
}

.message-content-wrapper {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.message-row.user .message-content-wrapper {
  align-items: flex-end;
}

.message-bubble {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
  word-break: break-word;
}

.message-row.user .message-bubble {
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

/* Assistant Message Bubble - Exactly like Afbeelding 2 Card */
.message-row.assistant .message-bubble {
  background: #151e36;
  border: 1px solid rgba(215, 175, 56, 0.28);
  color: #f7f5ee;
  border-bottom-left-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(215, 175, 56, 0.08);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.msg-tool-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.msg-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.msg-tool-btn.delete-msg-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.msg-tool-btn.retry-msg-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-weight: 600;
}

.msg-tool-btn.retry-msg-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.7);
  color: #ffffff;
}

/* Markdown & Lists - Styled like Afbeelding 2 clean-list */
.message-bubble p {
  margin-bottom: 12px;
}
.message-bubble p:last-child {
  margin-bottom: 0;
}
.message-bubble h1, .message-bubble h2, .message-bubble h3 {
  margin: 16px 0 8px;
  color: #fff;
  font-weight: 800;
}
.message-bubble h1 { font-size: 1.35rem; }
.message-bubble h2 { font-size: 1.18rem; }
.message-bubble h3 { font-size: 1.05rem; }

.message-bubble strong {
  font-weight: 800;
  color: #ffffff;
}

/* Custom Gold Bullet Points conforming to Afbeelding 2 */
.message-bubble ul {
  list-style: none;
  margin: 12px 0 16px 0;
  padding: 0;
}

.message-bubble ul li {
  margin: 8px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.message-bubble ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 6px rgba(244, 207, 98, 0.5);
}

.message-bubble ol {
  margin: 10px 0 14px 22px;
}
.message-bubble ol li {
  margin-bottom: 6px;
}

.message-bubble blockquote {
  border-left: 3px solid var(--gold-2);
  background: rgba(215, 175, 56, 0.06);
  padding: 8px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
  color: #f7f5ee;
  font-style: italic;
}

.message-bubble code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.message-bubble a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* Code Blocks */
.code-block-wrapper {
  margin: 14px 0;
  border-radius: var(--radius-sm);
  background: #090d16;
  border: 1px solid rgba(215, 175, 56, 0.25);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-2);
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-code-btn:hover {
  background: rgba(244, 207, 98, 0.15);
  border-color: var(--gold-2);
  color: #fff;
}

.code-block-content {
  padding: 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Typing Indicator */
.typing-indicator {
  max-width: 860px;
  width: 100%;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.typing-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #151e36;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.typing-bubble {
  background: #151e36;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 6px;
}

.typing-bubble .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  animation: pulse 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.typing-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 6px;
}

/* Input Panel */
.input-panel {
  padding: 14px 20px 18px;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.attachment-bar {
  margin-bottom: 8px;
}

.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 207, 98, 0.12);
  border: 1px solid rgba(244, 207, 98, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--gold-2);
}

.remove-attachment-btn {
  background: none;
  border: none;
  color: var(--gold-2);
  cursor: pointer;
  font-weight: 900;
  padding: 0 4px;
}

.input-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.input-container:focus-within {
  border-color: var(--gold-2);
  box-shadow: 0 0 16px rgba(244, 207, 98, 0.25);
}

.chat-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  max-height: 180px;
  padding: 4px 6px;
}

.chat-textarea::placeholder {
  color: var(--text-muted);
}

.input-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.input-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mic-btn.recording {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); }
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #d7af38 0%, #b48a1c 100%);
  border: 1px solid rgba(244, 207, 98, 0.4);
  color: #0c1222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-btn:hover {
  background: linear-gradient(135deg, #f4cf62 0%, #d7af38 100%);
  box-shadow: 0 0 12px rgba(244, 207, 98, 0.5);
  transform: translateY(-1px);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.input-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-group h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-link {
  font-size: 0.75rem;
  color: var(--gold-2);
  text-decoration: underline;
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--gold-2);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .form-input {
  padding-right: 40px;
}

.toggle-password-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.slider-header {
  display: flex;
  justify-content: space-between;
}

.form-range {
  width: 100%;
  accent-color: var(--gold-2);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.settings-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

.backup-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.backup-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.backup-actions {
  display: flex;
  gap: 8px;
}

.backup-actions button {
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(9, 14, 26, 0.7);
}

.primary-btn {
  background: linear-gradient(135deg, #d7af38 0%, #b48a1c 100%);
  border: 1px solid rgba(244, 207, 98, 0.4);
  color: #0c1222;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #f4cf62 0%, #d7af38 100%);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--gold-2);
}

.hidden {
  display: none !important;
}

/* Responsiveness */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.85);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 90;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .mobile-menu-btn, .mobile-close {
    display: flex;
  }

  .prompt-cards-grid {
    grid-template-columns: 1fr;
  }

  .message-content-wrapper {
    max-width: 90%;
  }

  .topbar-right .btn-text {
    display: none;
  }

  .topbar-right .action-btn {
    padding: 7px 9px;
  }
}


/* ==========================================================================
   PROGRAMS DOCK (Right Side Subtle Vertical Scrollbar & App Downloads)
   ========================================================================== */
.programs-dock {
  width: 228px;
  min-width: 200px;
  max-width: 240px;
  height: 100%;
  background: rgba(9, 14, 26, 0.96);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
  z-index: 15;
  backdrop-filter: blur(14px);
  flex-shrink: 0;
  position: relative;
}

.programs-dock.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0;
  pointer-events: none;
  border-left-color: transparent;
  overflow: hidden;
}

.dock-header {
  padding: 14px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(12, 18, 34, 0.98);
}

.dock-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-badge-icon {
  font-size: 1.15rem;
  color: var(--gold-2);
}

.dock-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.dock-subtitle {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.dock-collapse-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.dock-collapse-btn:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  background: rgba(215, 175, 56, 0.15);
}

.dock-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dock-section-label {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding: 10px 6px 4px;
  text-transform: uppercase;
}

.dock-app-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(21, 30, 54, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.18s ease;
  position: relative;
}

.dock-app-card:hover {
  background: rgba(27, 41, 72, 0.95);
  border-color: rgba(244, 207, 98, 0.45);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.dock-app-card.highlight-card {
  border-color: rgba(215, 175, 56, 0.3);
  background: rgba(215, 175, 56, 0.08);
}

.dock-app-card.highlight-card:hover {
  border-color: var(--gold-2);
  background: rgba(215, 175, 56, 0.18);
}

.dock-app-card.hub-card {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.05);
}

.dock-app-card.hub-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.14);
}

.dock-app-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px;
}

.dock-app-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dock-app-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.dock-app-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dock-app-action {
  font-size: 0.8rem;
  color: var(--gold-2);
  font-weight: 800;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.15s, transform 0.15s;
}

.dock-app-card:hover .dock-app-action {
  opacity: 1;
  transform: scale(1.15);
}

.dock-app-action.download-action {
  color: #38bdf8;
}

/* Custom sleek scrollbar for dock */
.dock-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.dock-scroll-area::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}
.dock-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(215, 175, 56, 0.35);
  border-radius: 4px;
}
.dock-scroll-area::-webkit-scrollbar-thumb:hover {
  background: var(--gold-2);
}

/* Topbar dock button styling */
.action-btn.dock-btn {
  background: rgba(215, 175, 56, 0.1);
  border-color: rgba(215, 175, 56, 0.3);
  color: var(--gold-2);
}
.action-btn.dock-btn:hover {
  background: rgba(215, 175, 56, 0.22);
  border-color: var(--gold-2);
}

@media (max-width: 1080px) {
  .programs-dock {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.7);
  }
}


/* ==========================================================================
   GOOGLE-STIJL CENTRALE ZOEKBALK, SNELKOPPELINGEN & SEO TAGS
   ========================================================================== */

/* Centrale Zoekbalk (Google & ChatGPT Stijl) */
.welcome-search-box {
  width: 100%;
  max-width: 680px;
  margin: 18px auto 14px;
}

.welcome-search-inner {
  display: flex;
  align-items: center;
  background: rgba(21, 30, 54, 0.9);
  border: 1px solid rgba(215, 175, 56, 0.35);
  border-radius: 9999px;
  padding: 8px 14px 8px 18px;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(215, 175, 56, 0.12);
  transition: all 0.22s ease;
}

.welcome-search-inner:hover,
.welcome-search-inner:focus-within {
  border-color: var(--gold-2);
  background: rgba(26, 38, 68, 0.95);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 22px rgba(244, 207, 98, 0.25);
  transform: translateY(-1px);
}

.welcome-search-icon {
  font-size: 1.25rem;
  color: var(--gold-2);
  flex-shrink: 0;
}

.welcome-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
}

.welcome-search-input::placeholder {
  color: var(--text-muted);
}

.welcome-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-voice-btn,
.welcome-send-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.welcome-voice-btn:hover {
  background: rgba(215, 175, 56, 0.2);
  border-color: var(--gold-2);
  color: var(--gold-2);
  transform: scale(1.08);
}

.welcome-send-btn {
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #0c1222;
  font-weight: 900;
  border-color: var(--gold-2);
}

.welcome-send-btn:hover {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%);
  box-shadow: 0 0 14px rgba(244, 207, 98, 0.4);
  transform: scale(1.08);
}

/* Google Snelkoppelingen Rij (Cirkel Iconen) */
.google-shortcuts-section {
  width: 100%;
  max-width: 760px;
  margin: 6px auto 20px;
}

.google-shortcuts-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 8px;
}

.google-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 76px;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.google-shortcut-item:hover {
  transform: translateY(-3px);
}

.shortcut-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.google-shortcut-item:hover .shortcut-circle {
  box-shadow: 0 8px 24px rgba(244, 207, 98, 0.45);
  transform: scale(1.08);
  border-color: var(--gold-2);
}

.shortcut-circle.ctm-circle,
.shortcut-circle.forge-circle,
.shortcut-circle.studio-circle {
  background: #0f172a;
  border-color: rgba(215, 175, 56, 0.3);
}

.shortcut-circle.tax-circle,
.shortcut-circle.gpt-circle,
.shortcut-circle.more-circle {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
}

.shortcut-svg {
  width: 24px;
  height: 24px;
}

.shortcut-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.shortcut-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.shortcut-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
  line-height: 1.2;
}

.google-shortcut-item:hover .shortcut-label {
  color: #fff;
}

/* Zichtbare SEO Trefwoorden Tags */
.welcome-seo-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 175, 56, 0.15);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.seo-tag-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  margin-right: 4px;
}

.seo-tag-pill {
  font-size: 0.72rem;
  font-family: inherit;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.seo-tag-pill:hover {
  background: rgba(215, 175, 56, 0.18);
  border-color: var(--gold-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(244, 207, 98, 0.25);
}


/* HIDE BOTTOM INPUT PANEL ON WELCOME SCREEN (Only central search bar is active) */
.chat-container:not(.has-messages) .input-panel {
  display: none !important;
}

.chat-container.has-messages .input-panel {
  display: block !important;
}


/* Language Switcher in Topbar */
.lang-switch-group {
  display: flex;
  align-items: center;
  background: rgba(21, 30, 54, 0.9);
  border: 1px solid rgba(215, 175, 56, 0.35);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%);
  color: #0c1222;
  box-shadow: 0 0 10px rgba(244, 207, 98, 0.4);
}

@media (max-width: 600px) {
  .lang-btn {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}


/* Clean Welcome Screen Header */
.welcome-clean-header {
  margin-bottom: 24px;
  text-align: center;
}

.welcome-clean-title {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #f4cf62 55%, #d7af38 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  margin: 0;
  line-height: 1.15;
}

/* Redesigned Compact Horizontal Prompt Cards (Wide, Low Height, Bottom Placed) */
.prompt-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  max-width: 860px !important;
  margin: 32px auto 10px !important;
  width: 100% !important;
  text-align: left !important;
}

.prompt-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md) !important;
  padding: 11px 18px !important;
  min-height: 54px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
}

.prompt-card:hover {
  background: rgba(26, 38, 66, 0.9) !important;
  border-color: var(--gold-2) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(244, 207, 98, 0.2) !important;
}

.prompt-card .card-icon {
  font-size: 1.5rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.prompt-card .card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
  flex: 1 !important;
}

.prompt-card .card-title {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.prompt-card .card-desc {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
}

/* Floating Dock Open Tab (pinned to right edge when collapsed) */
.dock-floating-toggle {
  position: fixed;
  top: 70px;
  right: 0;
  z-index: 99;
  display: none;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(21, 30, 54, 0.96), rgba(12, 18, 34, 0.98));
  border: 1px solid rgba(244, 207, 98, 0.45);
  border-right: none;
  border-radius: 20px 0 0 20px;
  padding: 8px 14px 8px 12px;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: -4px 4px 18px rgba(0, 0, 0, 0.55), 0 0 14px rgba(244, 207, 98, 0.22);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-floating-toggle.visible {
  display: flex !important;
}

.dock-floating-toggle:hover {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border-color: var(--gold-2);
  transform: translateX(-3px);
  box-shadow: -6px 6px 22px rgba(0, 0, 0, 0.65), 0 0 20px rgba(244, 207, 98, 0.4);
}

.dock-collapse-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--text-secondary) !important;
  width: auto !important;
  height: auto !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}

.dock-collapse-btn:hover {
  color: #fff !important;
  border-color: var(--gold-2) !important;
  background: rgba(215, 175, 56, 0.2) !important;
}

/* Responsive chat and visible connection setup. */
.app-layout { height: 100dvh; }
.chat-container, .topbar-left, .welcome-search-input { min-width: 0; }
.topbar { flex-shrink: 0; gap: 8px; }
.topbar-right { flex-shrink: 0; }
.welcome-screen { width: 100%; max-width: 900px; min-width: 0; margin-inline: auto; }
.connect-panel { text-align: center; margin: 0 auto 22px; color: var(--text-secondary); }
.connect-panel p { margin-bottom: 12px; line-height: 1.6; }
.connect-panel small { display: block; margin-top: 10px; color: var(--text-muted); }
.message-bubble { overflow-wrap: anywhere; }
.message-row.assistant > .message-bubble { white-space: pre-wrap; max-width: 90%; }
:where(button, a, input, textarea, select):focus-visible { outline: 2px solid #f4cf62; outline-offset: 3px; }
@media (max-width: 1280px) {
  .topbar-right .btn-text { display: none; }
  .topbar { padding-inline: 12px; }
}
@media (max-width: 600px) {
  .welcome-clean-title { font-size: 2rem; }
  .messages-viewport { padding: 18px 12px; }
  .prompt-cards-grid { grid-template-columns: 1fr !important; }
  .google-shortcuts-row { gap: 10px; }
  .topbar { min-height: 64px; height: auto; flex-wrap: wrap; padding-block: 8px; }
  .topbar-right { flex-wrap: wrap; justify-content: flex-end; }
  .welcome-search-inner { padding: 7px 10px; gap: 6px; }
  .welcome-search-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.builder-entry { text-align: center; margin: 0 auto 24px; }
.builder-entry p { color: var(--text-muted); margin-top: 10px; max-width: 560px; line-height: 1.5; }
.builder-card { width: 100%; min-width: 0; }
.builder-card h3 { color: #f4cf62; margin-block: 0 10px; }
.builder-card p { line-height: 1.6; }
.builder-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px; }
.builder-toolbar a { text-decoration: none; }
.builder-status { color: #b7d9ec; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.builder-error { color: #ffcb7b; }
.builder-android { display: block; color: var(--text-secondary); font-size: .88rem; }
.builder-android input { margin-right: 8px; accent-color: #f4cf62; }
.builder-preview { width: 100%; height: 520px; border: 1px solid #39435c; border-radius: 12px; background: white; margin-top: 12px; }
.builder-editor label { display: block; margin-block: 14px; font-weight: 700; }
.builder-editor textarea { display: block; width: 100%; margin-top: 8px; background: #080e1c; color: #dce5f2; border: 1px solid #39435c; border-radius: 8px; padding: 12px; font: 13px/1.6 Consolas, monospace; resize: vertical; tab-size: 2; }
@media (max-width: 600px) { .builder-preview { height: 420px; } .builder-toolbar button { flex: 1 1 45%; } }
