/* Claude Web App — realistic UI matching claude.ai */

:root {
  --claude-bg: #2b2a27;
  --claude-sidebar-bg: #2b2a27;
  --claude-border: rgba(255, 255, 255, 0.08);
  --claude-text: #e8e4dc;
  --claude-text-muted: rgba(255, 255, 255, 0.4);
  --claude-accent: #e07a3c;
  --claude-user-bg: #3d3b37;
  --claude-input-bg: #393835;
  --claude-input-border: rgba(255, 255, 255, 0.12);
  --claude-green: #4ade80;
  --claude-orange: #e07a3c;
  --claude-blue: #60a5fa;
}

body {
  background: var(--claude-bg);
  color: var(--claude-text);
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

/* Messages hidden until revealed by JS */
[data-msg] {
  display: none;
}

[data-msg].shown {
  display: block;
  animation: msgAppear 0.3s ease forwards;
}

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

.claude-shell {
  display: grid;
  grid-template-columns: 48px 1fr;
  height: 100vh;
  position: relative;
}

/* ─── Icon Rail Sidebar (collapsed) ─── */
.claude-sidebar {
  background: var(--claude-sidebar-bg);
  border-right: 1px solid var(--claude-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  z-index: 10;
}

.sidebar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-icon.active {
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5a4e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
  cursor: pointer;
}

/* ─── Expanded Sidebar Panel ─── */
.claude-sidebar-expanded {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--claude-sidebar-bg);
  border-right: 1px solid var(--claude-border);
  display: none;
  flex-direction: column;
  z-index: 100;
  padding: 0;
}

.claude-sidebar-expanded.open {
  display: flex;
}

.sidebar-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.sidebar-expanded-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.sidebar-expanded-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-expanded-actions .sidebar-icon {
  width: 32px;
  height: 32px;
}

.sidebar-nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.12s;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav-item svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.sidebar-nav-item .nav-badge {
  margin-left: auto;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(180, 180, 255, 0.3);
  color: rgba(180, 180, 255, 0.9);
}

.sidebar-nav-item.highlighted {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 8px;
}

.sidebar-nav-item.highlighted svg {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-recents {
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-recents-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.sidebar-recents-filter {
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.sidebar-recents-filter svg {
  width: 16px;
  height: 16px;
}

.sidebar-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px;
}

.sidebar-chat-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-chat-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-chat-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--claude-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-footer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5a4e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-footer-info {
  flex: 1;
}

.sidebar-footer-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.sidebar-footer-plan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-footer-actions svg {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ─── Customize View ─── */
.customize-view {
  position: absolute;
  top: 0;
  left: 48px;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--claude-bg);
  z-index: 50;
}

.customize-sidebar {
  background: var(--claude-bg);
  border-right: 1px solid var(--claude-border);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.customize-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
}

.customize-back {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
}

.customize-back svg {
  width: 20px;
  height: 20px;
}

.customize-back:hover {
  color: #fff;
}

.customize-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.customize-nav {
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customize-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.12s;
}

.customize-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.customize-nav-item svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.customize-plugins-section {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customize-plugins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.customize-plugins-add {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.customize-plugins-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.customize-plugins-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.customize-plugin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.customize-plugin-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.customize-plugin-item svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.customize-plugin-name {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}

.customize-browse-btn {
  padding: 8px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.customize-browse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.customize-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.customize-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.customize-hero-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.customize-hero-icon svg {
  width: 80px;
  height: 80px;
}

.customize-hero-title {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.customize-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.customize-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  width: 100%;
}

.customize-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.customize-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.customize-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.customize-card-icon svg {
  width: 32px;
  height: 32px;
}

.customize-card-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.customize-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Directory Modal ─── */
.directory-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.directory-modal {
  width: 90%;
  max-width: 1100px;
  height: 80vh;
  background: #2f2d2a;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.directory-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.directory-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.directory-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.directory-close svg {
  width: 18px;
  height: 18px;
}

.directory-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex: 1;
  overflow: hidden;
  margin-top: 20px;
}

.directory-nav {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--claude-border);
}

.directory-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.12s;
}

.directory-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.directory-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.directory-nav-item svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
}

.directory-nav-item.active svg {
  color: rgba(255, 255, 255, 0.7);
}

.directory-content {
  padding: 16px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.directory-search svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.directory-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--claude-text);
  font-size: 15px;
  width: 100%;
}

.directory-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.directory-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.directory-filter-pill {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.directory-filter-pill.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.directory-filter-controls {
  display: flex;
  gap: 12px;
}

.directory-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.directory-dropdown svg {
  width: 14px;
  height: 14px;
}

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

.directory-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.15s;
}

.directory-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.directory-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.directory-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.directory-card-meta {
  flex: 1;
}

.directory-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.directory-card-publisher {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.directory-card-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.directory-card-add:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.directory-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Install Toast ─── */
.install-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #3a3835;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  z-index: 300;
  font-size: 14px;
  color: var(--claude-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-toast svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  margin-left: 8px;
}

.toast-close:hover {
  color: #fff;
}

/* Install button states */
.detail-install-btn.installing {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.detail-install-btn.installing::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.detail-uninstall-btn {
  padding: 8px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--claude-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.detail-uninstall-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.detail-manage-btn {
  padding: 8px 20px;
  border-radius: 8px;
  background: #fff;
  border: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.detail-manage-btn:hover {
  opacity: 0.9;
}

/* ─── Directory Detail View ─── */
.directory-detail {
  padding: 24px 32px;
}

.detail-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.detail-back:hover {
  color: rgba(255, 255, 255, 0.8);
}

.detail-back svg {
  width: 16px;
  height: 16px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.detail-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.detail-publisher {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.detail-link {
  font-size: 13px;
  color: rgba(150, 170, 255, 0.8);
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-pin {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.detail-pin svg {
  width: 18px;
  height: 18px;
}

.detail-install-btn {
  padding: 8px 24px;
  border-radius: 8px;
  background: #fff;
  border: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.detail-install-btn:hover {
  opacity: 0.9;
}

.detail-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 700px;
}

.detail-section {
  margin-bottom: 28px;
}

.detail-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.detail-section-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

.detail-section-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 12px;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-pill {
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Main Conversation ─── */
.claude-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--claude-bg);
}

.claude-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--claude-text-muted);
  min-height: 44px;
  position: relative;
}

.claude-header-title {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.claude-header-badge {
  position: absolute;
  right: 20px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(224, 122, 60, 0.12);
  color: var(--claude-accent);
  border: 1px solid rgba(224, 122, 60, 0.2);
}

.claude-conversation {
  flex: 1;
  overflow-y: auto;
  padding: 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

/* Scrollbar */
.claude-conversation::-webkit-scrollbar {
  width: 6px;
}
.claude-conversation::-webkit-scrollbar-track {
  background: transparent;
}
.claude-conversation::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

/* ─── Empty State ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding-bottom: 40px;
}

.empty-greeting {
  font-size: 32px;
  font-weight: 400;
  color: var(--claude-text);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  font-family: 'Times New Roman', 'Georgia', serif;
  display: flex;
  align-items: center;
  gap: 12px;
}

.empty-greeting-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.empty-greeting-logo svg {
  width: 32px;
  height: 32px;
}

.empty-subtext {
  display: none;
}

.empty-composer-wrapper {
  width: 100%;
  max-width: 600px;
  margin-bottom: 16px;
}

.empty-composer {
  background: var(--claude-input-bg);
  border: 1px solid var(--claude-input-border);
  border-radius: 16px;
  padding: 16px 18px 12px;
  width: 100%;
}

.empty-composer-placeholder {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
  text-align: left;
}

.empty-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.empty-composer-left {
  display: flex;
  align-items: center;
}

.empty-composer-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
}

.empty-composer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-selector {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.model-selector .model-name {
  font-weight: 500;
}

.model-selector .model-effort {
  color: rgba(255, 255, 255, 0.35);
}

.model-selector .chevron {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

.composer-icon {
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.composer-icon svg {
  width: 18px;
  height: 18px;
}

.empty-suggestions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.empty-chip {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.empty-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.empty-chip .chip-icon {
  font-size: 14px;
  opacity: 0.7;
}

.empty-state.hidden {
  display: none;
}

.claude-input.hidden {
  display: none;
}

/* ─── Messages ─── */
.msg {
  max-width: 720px;
}

.msg-user {
  align-self: flex-end;
  background: var(--claude-user-bg);
  color: var(--claude-text);
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  font-size: 15px;
  line-height: 1.55;
}

.msg-claude {
  align-self: flex-start;
  width: 100%;
  max-width: 720px;
}

.msg-claude-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
}

.msg-claude-content strong {
  color: #fff;
  font-weight: 600;
}

.msg-claude-content code {
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--claude-orange);
}

.msg-claude-content ul {
  margin: 8px 0 0 0;
  padding-left: 16px;
  list-style: none;
}

.msg-claude-content ul li {
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  position: relative;
  padding-left: 12px;
}

.msg-claude-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.25);
}

/* ─── Native Chart Artifact ─── */
.claude-artifact {
  margin: 12px 0 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--claude-border);
  border-radius: 12px;
  overflow: hidden;
}

.claude-artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--claude-border);
}

.claude-artifact-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.claude-artifact-badge {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

.artifact-chart {
  display: block;
  width: 100%;
  height: auto;
  padding: 16px 16px 8px;
}

/* ─── Tool/Status blocks ─── */
.msg-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--claude-text-muted);
  padding: 6px 12px;
  margin-bottom: 8px;
  background: rgba(224, 122, 60, 0.06);
  border: 1px solid rgba(224, 122, 60, 0.12);
  border-radius: 8px;
  font-family: 'SF Mono', monospace;
}

.msg-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--claude-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* ─── Recommendation Card ─── */
.rec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--claude-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 12px 0;
}

.rec-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--claude-border);
}

.rec-section {
  margin-bottom: 14px;
}

.rec-section:last-child {
  margin-bottom: 0;
}

.rec-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.rec-section-label.native { color: #67e8f9; }
.rec-section-label.native::before { background: #67e8f9; }
.rec-section-label.custom { color: #fbbf24; }
.rec-section-label.custom::before { background: #fbbf24; }
.rec-section-label.ai { color: #4ade80; }
.rec-section-label.ai::before { background: #4ade80; }

.rec-section ul {
  list-style: none;
  padding: 0;
}

.rec-section li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  padding: 3px 0 3px 20px;
  position: relative;
}

.rec-section li::before {
  content: '›';
  position: absolute;
  left: 6px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

/* ─── SDM Discovery Block ─── */
.sdm-discovery {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--claude-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 10px 0;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.sdm-header {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--claude-border);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sdm-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  line-height: 1.5;
}

.sdm-icon {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-weight: 700;
}

.sdm-found {
  color: var(--claude-green);
}

.sdm-found .sdm-icon {
  color: var(--claude-green);
}

.sdm-missing {
  color: rgba(255, 255, 255, 0.7);
}

.sdm-missing .sdm-icon {
  color: var(--claude-orange);
  font-weight: 700;
}

.sdm-missing code {
  color: var(--claude-orange);
  background: rgba(224, 122, 60, 0.1);
}

.sdm-missing em {
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
  font-size: 11px;
}

/* ─── Plugin Suggestion Link ─── */
.plugin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}

.plugin-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.plugin-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plugin-link-icon svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.plugin-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plugin-link-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.plugin-link-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.plugin-link-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
}

/* ─── Suggestion List (anchored above input) ─── */
.suggestions {
  display: none !important;
}

.suggestions-anchor {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  counter-reset: suggestion;
  margin-bottom: 8px;
}

.suggestion-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  counter-increment: suggestion;
}

.suggestion-chip:last-child {
  border-bottom: none;
}

.suggestion-chip::before {
  content: counter(suggestion);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.suggestion-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.suggestion-chip:hover::before {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Recommendation Composition Wireframe ─── */
.rec-composition {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--claude-border);
}

.rec-composition-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.rec-wireframe {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rw-row {
  display: flex;
  gap: 6px;
}

.rw-block {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  border: 1px solid;
}

.rw-native {
  background: rgba(103, 232, 249, 0.06);
  border-color: rgba(103, 232, 249, 0.25);
  color: #67e8f9;
}

.rw-custom {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.rw-wide {
  flex: none;
  width: 100%;
}

.rw-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.rw-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rw-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.rw-dot-native {
  background: #67e8f9;
}

.rw-dot-custom {
  background: #fbbf24;
}

/* ─── Recommendation Defaults ─── */
.rec-defaults {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--claude-border);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.rec-defaults strong {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Build Progress ─── */
.build-progress {
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--claude-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 10px 0;
  line-height: 1.8;
}

.build-line {
  color: rgba(255, 255, 255, 0.35);
}

.build-line.done {
  color: var(--claude-green);
  animation: lineIn 0.2s ease;
}

@keyframes lineIn {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.build-line.active {
  color: var(--claude-orange);
  animation: lineIn 0.15s ease;
}

/* ─── Action Link ─── */
.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--claude-orange);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.action-link:hover {
  color: #f09860;
  text-decoration: underline;
}

/* ─── Input Area ─── */
.claude-input {
  padding: 16px 60px 20px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.claude-input-box {
  background: var(--claude-input-bg);
  border: 1px solid var(--claude-input-border);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  cursor: text;
  transition: border-color 0.2s, background 0.2s;
  min-height: 52px;
  max-height: 200px;
}

#input-placeholder {
  flex: 1;
  line-height: 1.5;
}

.claude-input-send {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, transform 0.1s;
}

.claude-input-send.ready {
  opacity: 1 !important;
  background: var(--claude-orange);
  color: #fff;
}

.claude-input-send.ready:hover {
  transform: scale(1.05);
}

.claude-input-box.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 10px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.input-toolbar-left {
  display: flex;
  align-items: center;
}

.input-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  cursor: pointer;
}

.input-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-model {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-model-name {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.input-model-effort {
  color: rgba(255, 255, 255, 0.3);
}

.input-icon {
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

#input-text {
  flex: 1;
  font-size: 15px;
  color: var(--claude-text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.typing-cursor::after {
  content: '▎';
  color: var(--claude-orange);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Thinking indicator — Claude logo animation */
.thinking-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--claude-text-muted);
}

.thinking-logo {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thinking-logo svg {
  width: 24px;
  height: 24px;
  animation: logoPulse 2s ease-in-out infinite;
}

.thinking-logo svg path {
  fill: var(--claude-orange);
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9) rotate(0deg); }
  25% { opacity: 1; transform: scale(1.05) rotate(5deg); }
  50% { opacity: 0.6; transform: scale(0.95) rotate(-3deg); }
  75% { opacity: 1; transform: scale(1.02) rotate(2deg); }
}
