:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #172033;
  background: #f8fafc;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; }

button, input, select { font: inherit; }

button { cursor: pointer; }

.app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #ffffff;
  border-right: 1px solid #e8edf3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #2563eb;
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.brand strong { display: block; font-size: 16px; }
.brand span { color: #8490a2; font-size: 11px; }

.sidebar-content { margin-top: 64px; }

.section-label, .eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #6380a8;
}

.sidebar h1 {
  margin: 16px 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.sidebar p {
  font-size: 13px;
  line-height: 1.8;
  color: #718096;
}

.status-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 32px 0 42px;
  padding: 16px;
  border: 1px solid #dcece3;
  border-radius: 14px;
  background: #f4fbf7;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px #dcfce7;
}

.status-card strong { display: block; font-size: 12px; }
.status-card small { color: #718096; font-size: 10px; }

.pipeline { margin-top: 20px; }

.pipeline div {
  padding: 14px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
  color: #53657e;
}

.pipeline span {
  margin-right: 12px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 30px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-footer small {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
  font-size: 10px;
  font-weight: 400;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 34px;
  background: white;
  border-bottom: 1px solid #e8edf3;
}

.topbar h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -.5px;
}

.header-actions { display: flex; gap: 10px; }

select, .outline-button {
  padding: 10px 13px;
  background: white;
  border: 1px solid #dbe3ed;
  border-radius: 9px;
  color: #334155;
  font-size: 12px;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 30px max(24px, calc((100% - 780px) / 2));
}

.welcome {
  max-width: 570px;
  margin: 10vh auto 0;
  text-align: center;
}

.welcome-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: auto;
  background: #eaf1ff;
  color: #2563eb;
  border-radius: 18px;
  font-size: 30px;
}

.welcome h3 {
  margin: 22px 0 8px;
  font-size: 26px;
  letter-spacing: -.8px;
}

.welcome p {
  color: #8490a2;
  font-size: 14px;
  line-height: 1.7;
}

.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 35px;
}

.suggestions button {
  padding: 17px;
  text-align: left;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  background: white;
  color: #334155;
  font-size: 12px;
}

.suggestions button:hover {
  border-color: #93b4ff;
  background: #f5f8ff;
}

.message {
  max-width: 780px;
  margin: 0 auto 24px;
}

.message.user { text-align: right; }

.bubble {
  display: inline-block;
  max-width: 85%;
  padding: 15px 19px;
  border-radius: 17px;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 14px;
}

.user .bubble {
  background: #2563eb;
  color: white;
  border-bottom-right-radius: 5px;
}

.assistant .bubble {
  background: white;
  border: 1px solid #e8edf3;
  border-bottom-left-radius: 5px;
}

.trace {
  margin-top: 9px;
  color: #64748b;
  font-size: 11px;
}

.trace strong { color: #2563eb; }

.speak-button {
  margin-left: 10px;
  padding: 3px 7px;
  border: 0;
  background: transparent;
  color: #2563eb;
}

.composer-area {
  padding: 18px 34px 22px;
  background: #f8fafc;
}

.composer {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 780px;
  margin: auto;
  padding: 8px;
  background: white;
  border: 1px solid #dbe3ed;
  border-radius: 15px;
  box-shadow: 0 8px 30px #0f172a08;
}

.composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 13px;
}

.icon-button {
  padding: 10px;
  border: 0;
  background: transparent;
  font-size: 19px;
}

.send-button {
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.send-button:disabled { opacity: .5; cursor: wait; }

.disclaimer {
  max-width: 780px;
  margin: 10px auto 0;
  text-align: center;
  color: #94a3b8;
  font-size: 10px;
}

.notice {
  max-width: 780px;
  margin: 0 auto 8px;
  color: #b45309;
  font-size: 12px;
}

@media (max-width: 850px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 18px; }
  .messages { padding: 22px 18px; }
  .composer-area { padding: 14px; }
  .welcome { margin-top: 7vh; }
}

@media (max-width: 480px) {
  .topbar h2 { font-size: 17px; }
  .eyebrow { font-size: 9px; }
  .header-actions { gap: 5px; }
  select, .outline-button { padding: 8px; font-size: 11px; }
  .suggestions { grid-template-columns: 1fr; }
  .bubble { max-width: 95%; }
  .welcome h3 { font-size: 23px; }
}
/* Layout container for the link items */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;                  /* Spaces the logo and text neatly */
  text-decoration: none;      /* Removes default link underlines */
  color: inherit;
}

/* The enhanced logo badge from before */
/* This ensures the logo badge shows up exactly like the landing page */
.brand-logo {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  /* Uses your accent variable, with a fallback to the exact blue from your button */
  background: var(--accent, #005eff) !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  margin-right: 10px; /* Provides spacing if the gap rule isn't working */
}

/* Forces the logo inside to fit beautifully and turn white if it's an icon */
.brand-logo img {
  width: 55% !important;
  height: 55% !important;
  object-fit: contain !important;
}


/* Typography stacking */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  color: #1a1a1a;            /* Adjust to match your dark color theme */
  font-weight: 700;
}

.brand-text span {
  font-size: 12px;
  color: #666666;            /* Subtle gray for the sub-text */
}
