* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: #101114;
  font-family: "Helvetica Neue", "Times New Roman", serif;
  line-height: 1.5;
}

body.chat-mode .app {
  justify-content: flex-start;
  align-items: flex-start;
}

.ghost {
  font-family: "Helvetica Neue", "Georgia", "Times New Roman", serif;
  font-size: 15.4px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2c2f35;
  background: #ffffff;
  border: 1px solid #d0d3d9;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ghost:hover {
  background: #f4f5f7;
  color: #101114;
  border-color: #d0d3d9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.ghost:active {
  transform: translateY(0);
}

.ghost:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.trace-btn {
  font-family: "Helvetica Neue", "Georgia", "Times New Roman", serif;
  font-size: 15.4px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2c2f35;
  background: #ffffff;
  border: 1px solid #d0d3d9;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.trace-btn:hover {
  background: #f4f5f7;
  color: #101114;
  border-color: #d0d3d9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.hidden {
  display: none !important;
}

/* Professional AI Layout */
.app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  /* Centered Vertically and Horizontally */
  padding: 20px; 
  position: relative;
  background: #ffffff;
}

/* Logo Position: Top Left Fixed */
.logo-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 30;
  margin: 0;
  padding: 0;
}

.logo-link {
  display: inline-block;
  border-radius: 16px;
}

.logo-link:focus-visible {
  outline: 2px solid #101114;
  outline-offset: 4px;
}

.logo-container img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 1;
}

/* Main Content Column */
.landing,
.chat {
  width: 100%;
  max-width: 686px;
  margin: auto 0; /* Vertical Center */
}

body.chat-mode .chat {
  margin: 0 auto;
  padding-bottom: 240px;
}

.chat-shell {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.landing-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-aligned content */
  gap: 24px;
  width: 100%;
}

/* Headline */
.brand-hero {
  margin-bottom: 8px;
  padding-left: 4px; /* Optical alignment with input text */
}

.brand-hero-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 57.2px;
  font-weight: 500;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #101114 0%, #42464d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

/* Modern Input Field */
.search {
  width: 100%;
  background: #f4f5f7;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  position: relative;
  z-index: 50; /* Ensure input stays above other elements */
  cursor: text; /* Indicates the whole bar is clickable/text-like */
}

.search:focus-within {
  background: #ffffff;
  border-color: #e1e3e6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.search input,
.search textarea {
  flex: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.6;
  color: #101114;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 0; /* stronger vertical centering for mobile */
  box-shadow: none;
  position: relative;
  z-index: 2;
  cursor: text;
  min-width: 0; /* Prevents flex collapse */
  box-sizing: border-box;
}

.search input {
  height: 100%;
}

.search textarea {
  resize: none;
  overflow: hidden;
  height: auto;
  min-height: 0;
  max-height: none;
}

.search input::placeholder,
.search textarea::placeholder {
  color: #8b8e96;
  font-weight: 400;
  font-size: inherit; /* keep placeholder sizing consistent */
}

/* Iconic Send Button */
.search button {
  background: #d0d3d9;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: default;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.search button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.search:focus-within button {
  background: #101114;
  opacity: 1;
  cursor: pointer;
}

.search:focus-within button:disabled {
  background: #d0d3d9;
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.search button:hover {
  transform: scale(1.05);
}

/* Suggestion Pills */
.suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-left: 6px;
  margin-top: 12px; /* Adjusted to be below input */
  opacity: 1;
  animation: none;
}

.suggestion-pill {
  font-family: "Helvetica Neue", "Georgia", "Times New Roman", serif; /* Distinct Serif-like font */
  font-size: 18.7px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2c2f35;
  background: #ffffff;
  border: 1px solid #d0d3d9;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.suggestion-pill:hover {
  background: #f4f5f7;
  color: #101114;
  border-color: #d0d3d9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.suggestion-pill.active {
  background: #101114;
  color: #ffffff;
  border-color: #101114;
  box-shadow: 0 2px 6px rgba(16, 17, 20, 0.2);
}

.suggestion-loading {
    font-size: 13.2px;
    color: #8b8e96;
    font-style: italic;
    padding-left: 4px;
}

/* Results & Chat Alignment */
.results-panel,
.chat-shell {
  width: 100%;
  margin-top: 32px;
}

.search-status {
  padding-left: 4px;
  margin-top: 16px;
  color: #8b8e96;
}

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

/* Mobile Tweak */
@media (max-width: 600px) {
  .app {
    padding: 80px 16px 40px;
    align-items: flex-start; /* Reset vertical center for mobile */
  }
  
  .brand-hero-text {
    font-size: 28.6px;
  }
  
  .search {
    padding: 14px 16px;
  }
  
  .logo-container img {
      width: 40px;
      height: 40px;
  }
}

.search-status span {
  font-size: 14.3px;
  color: #2c2f35;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.search-status.is-loading span {
  animation: pulse 1s ease-in-out infinite;
}

.results-panel {
  width: 100%;
  max-width: 980px;
  margin-top: clamp(22px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 24px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.section-title {
  font-size: 12.1px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #8c9098;
  margin-bottom: 10px;
}

.latest-panel,
.agents-panel {
  background: transparent;
  border-top: 1px solid #eceef2;
  padding: clamp(12px, 2.4vh, 18px) 0 0;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.latest-item {
  padding: 8px 0 12px;
  border-bottom: 1px solid #f0f1f4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-item-title {
  font-size: 15.4px;
  font-weight: 600;
}

.latest-item-body {
  font-size: 14.3px;
  color: #42464d;
}

.latest-item-meta {
  font-size: 12.1px;
  color: #8b8e96;
  letter-spacing: 0.02em;
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agent-card {
  border-top: 1px solid #eceef2;
  padding: 14px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.agent-name {
  font-size: 17.6px;
  font-weight: 600;
}

.agent-meta {
  font-size: 13.2px;
  color: #7a7d85;
}

.agent-goal {
  font-size: 14.3px;
  color: #42464d;
}

.agent-action {
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.2px;
  font-weight: 600;
  background: #101114;
  color: #ffffff;
  cursor: pointer;
}

.agent-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-section-title {
  font-size: 12.1px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #b0b3bb;
}

.agent-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.agent-item {
  border-top: 1px solid #f0f1f4;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agent-item-title {
  font-size: 13.2px;
  font-weight: 600;
  color: #1f2328;
}

.agent-item-body {
  font-size: 13.2px;
  color: #4b4f56;
}

.agent-item-meta {
  font-size: 12.1px;
  color: #8b8e96;
}

.empty-state {
  font-size: 14.3px;
  color: #7a7d85;
  padding: 12px 0 8px;
  text-align: left;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing.is-searching .landing-shell {
  transform: translateY(-10px);
  gap: clamp(14px, 2vh, 22px);
}

.landing.is-searching {
  margin-top: 20px !important;
  margin-bottom: auto !important;
}

.landing.is-searching .brand-hero {
  transform: translateY(-4px) scale(0.98);
  opacity: 0.85;
}

.landing.hide-hero .brand-hero {
  display: none;
}

.landing.top-search .brand-hero { display: none; }
.landing.bottom-search .brand-hero { display: none; }

.landing.top-search { margin-top: 0 !important; margin-bottom: auto !important; }
.landing.bottom-search { margin-top: auto !important; margin-bottom: 0 !important; }

.landing.top-search .landing-shell { gap: 12px; }
.landing.bottom-search .landing-shell { gap: 12px; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chat-header .suggestion-pills {
  margin-top: 0;
  padding-left: 0;
  opacity: 1;
  animation: none;
}

.chat-header .suggestion-pill {
  padding: 8px 18px;
  font-size: 16.5px;
}

.chat-header .trace-btn {
  margin-left: auto;
}

.agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agent-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 26.4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.agent-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.3px;
  color: #7a7d85;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f5f7;
  font-size: 13.2px;
  color: #5c5f66;
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
  margin-left: auto;
}

.status-pill.ok {
  background: #e6ffed;
  color: #2f855a;
  border: 1px solid #c6f6d5;
}

.status-pill.error {
  background: #ffe6e6;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.status-pill.warn {
  background: #fff8e1;
  color: #975a16;
  border: 1px solid #fbd38d;
}

.status-pill.loading {
  background: #f4f5f7;
  color: #5c5f66;
}

.timeline-wrap {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: 6px 0 0;
  max-width: 686px;
  margin: 0 auto;
}

.plan-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: 6px 0 0;
  max-width: 686px;
  margin: 0 auto;
}

.plan-panel .result-card {
  margin-bottom: 0;
}

.plan-panel .card-title {
  font-size: 19.8px;
}

.plan-panel .card-subtitle {
  font-size: 14.3px;
}

.step-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0 2px;
}

.step-label {
  font-size: 13.2px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c9098;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-item {
  font-size: 15.4px;
  font-weight: 600;
  color: #b0b3bb;
}

.step-item.active {
  color: #101114;
}

.step-sep {
  font-size: 13.2px;
  color: #c2c6cc;
}

.chat-composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: calc(100% - 40px);
  max-width: 686px;
  margin: 0 auto;
  z-index: 60;
}

.typing-indicator {
  align-self: flex-start;
  color: #1f2328;
  font-size: 13.2px;
  line-height: 1;
  padding: 12px 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  user-select: none;
  width: auto;
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.plan-thinking {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.plan-thinking.compact {
  min-height: 120px;
}

.plan-thinking .typing-indicator {
  font-size: 15.4px;
  gap: 12px;
  align-self: center;
  text-transform: uppercase;
}

.plan-thinking .typing-indicator .pulse {
  width: 14px;
  height: 14px;
}

.plan-thinking .typing-indicator .dot {
  width: 6px;
  height: 6px;
}

.typing-indicator.retry {
  cursor: pointer;
  color: #101114;
  text-transform: none;
  letter-spacing: 0;
}

.typing-indicator .pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(140deg, #3b82f6, #0f5bff);
  opacity: 0.7;
  animation: pulseDot 1200ms ease-in-out infinite, pulseHalo 1200ms ease-in-out infinite;
}

.typing-indicator .dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-indicator .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
  animation: typingDot 900ms ease-in-out infinite;
}

.typing-indicator .label {
  font-size: 12.1px;
  font-weight: 600;
  color: #7a7d85;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 150ms; }
.typing-indicator .dot:nth-child(3) { animation-delay: 300ms; }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.28; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes pulseHalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.18); }
  50% { box-shadow: 0 0 0 16px rgba(59, 130, 246, 0.04); }
}

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-3px); opacity: 0.6; }
}

/* Trace Panel Styles */
.trace-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #eceef2;
}

.trace-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trace-item {
  border: 1px solid #f0f1f4;
  border-radius: 8px;
  padding: 12px;
  background: #f9f9fa;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trace-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trace-item-title {
  font-size: 14.3px;
  font-weight: 600;
}

.trace-item-status {
  font-size: 12.1px;
  text-transform: uppercase;
  color: #8b8e96;
  background: #eceef2;
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .app {
    padding: 72px 16px 96px;
  }

  .app > div:first-child {
    top: 16px;
    left: 16px;
    width: 88px;
    height: 88px;
  }

  .app > div:first-child img {
    width: 56px;
    height: 56px;
  }

  .search {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
  }

  .search button {
    width: 36px;
    height: 36px;
  }

  .search input,
  .search textarea {
    font-size: calc(26px * 0.75); /* ~25% reduction at this breakpoint */
  }


  .chat-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline {
    max-width: 100%;
  }

  .plan-panel {
    max-width: 100%;
  }

  .bubble {
    max-width: 92%;
  }

  .search.chat-composer {
    padding: 14px 16px;
    border-radius: 24px;
    width: calc(100% - 32px);
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

}

@media (max-width: 600px) {
  .landing-shell {
    gap: 18px;
  }

  .results-panel {
    margin-top: 20px;
  }

  .search {
    padding: 10px 12px;
    border-radius: 18px;
  }

  .search input,
  .search textarea {
    font-size: 18px;
  }

  .search button {
    padding: 10px 14px;
    font-size: 14.3px;
  }

  .search-status {
    display: none;
  }

  .suggestion-pill {
    padding: 8px 16px;
    font-size: 16.5px;
  }

  .result-card {
    padding: 16px;
    border-radius: 12px;
  }

  .smart-list-item {
    padding: 12px;
    gap: 12px;
  }

}

@media (max-width: 480px) {
  .logo-container { display: none; }
  .search { padding: 10px 10px; border-radius: 16px; }
  .search input,
  .search textarea { font-size: 16px; }
  .search button { width: 32px; height: 32px; }
  .landing.top-search { margin-top: 12px !important; }
  .landing.bottom-search { margin-bottom: 12px !important; }
}

.search-status span:empty {
  display: none;
}

/* --- Modular Component Styles --- */

/* 1. Result Cards (Unified) */
.result-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.result-card:hover {
  border-color: #d0d3d9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.result-card.plain {
  background: transparent;
  border: none;
  border-left: 0 !important;
  box-shadow: none;
  padding: 0;
  margin-bottom: 12px;
}

.result-card.plain:hover {
  box-shadow: none;
  border-color: transparent;
  transform: none;
}

.result-card.highlight {
  border-left: 6px solid #101114;
}

.result-card.success {
  border-left: 6px solid #2ecc71;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  color: #101114;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 15.4px;
  color: #8b8e96;
  font-family: monospace; /* For IDs/URIs */
}

.card-badge {
  font-size: 13.2px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f4f5f7;
  color: #5c5f66;
  white-space: nowrap;
}

.card-body {
  font-size: 16.5px;
  line-height: 1.6;
  color: #42464d;
}

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

.action-btn {
  background: #101114;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15.4px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.action-btn:hover {
  opacity: 0.9;
}

.action-btn.secondary {
  background: #f4f5f7;
  color: #101114;
}

/* 2. Smart Lists (Briefs & Plans) */
.smart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.smart-list-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f9f9fa;
  border-radius: 12px;
  border: 1px solid transparent;
  align-items: flex-start;
}

.plan-refine {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-refine.plan-refine-center {
  min-height: clamp(160px, 30vh, 240px);
  align-items: center;
  justify-content: center;
}

.refine-label {
  font-size: 12.1px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8c9098;
  margin-top: 4px;
}

.refine-input {
  width: 100%;
  min-height: 84px;
  border: 1px solid #e1e3e6;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #101114;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  resize: vertical;
}

.refine-note {
  font-size: 14.3px;
  color: #7a7d85;
  line-height: 1.5;
}

.select-list {
  gap: 10px;
}

.select-item {
  align-items: center;
}

.select-toggle {
  margin-top: 2px;
}

.select-text {
  font-size: 16.5px;
  color: #2c2f35;
}

.result-card.plain .smart-list-item {
  background: transparent;
  border: none;
  padding: 8px 0;
}

.smart-list-item.clickable {
  cursor: pointer;
}
.smart-list-item.clickable:hover {
    background: #ffffff;
    border-color: #b0b3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.smart-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfd2d6; /* neutral default */
  margin-top: 6px;
  flex-shrink: 0;
}

.smart-bullet.success { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15); }
.smart-bullet.warning { background: #f39c12; box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15); }
.smart-bullet.danger { background: #e74c3c; box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15); }

.smart-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smart-title {
  font-size: 17.6px;
  font-weight: 600;
  color: #2c2f35;
}

.smart-desc {
  font-size: 15.4px;
  color: #5c5f66;
  line-height: 1.5;
}

/* 3. Chat Messages (Refined) */
.bubble {
  padding: 8px 0 8px 14px;
  border-radius: 0;
  max-width: 100%;
  position: relative;
  animation: fadeIn 0.3s ease-out;
  align-self: flex-start;
  border-left: 2px solid #eceef2;
}

.bubble.user {
  background: transparent;
  color: #101114;
  font-weight: 400;
  align-self: flex-start;
  border-left-color: #101114;
}

.bubble.assistant {
  background: transparent;
  color: #101114;
  align-self: flex-start;
  border-left-color: #3b82f6;
}

.bubble.system {
  background: transparent;
  color: #5c5f66;
  align-self: flex-start;
  border-left-color: #d1d5db;
}

.bubble-header {
  display: none;
}

.bubble-content {
  font-size: clamp(15.4px, 1.98vw, 19.8px);
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.bubble-footer {
  display: none;
}
