/* ============================================================
   Sales Coach — Editorial Precision Theme
   Accenture purple palette, split-panel headers
   ============================================================ */

/* --- Auth Overlay --- */
#auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--purple-950);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-box {
  background: var(--purple-900);
  border: 1px solid var(--purple-700);
  border-radius: 12px;
  padding: 48px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #fff;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-300);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.auth-box h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.auth-box p {
  font-size: 0.9rem;
  color: var(--purple-300);
  margin: 0 0 24px;
}

.btn-ms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-ms:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ms:not(:disabled):hover { opacity: 0.9; }

.auth-loading {
  font-size: 0.8rem;
  color: var(--purple-300);
  margin-top: 12px;
}

.auth-error {
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 12px;
}

/* --- Nav Auth (user info in header) --- */
#nav-auth {
  display: none; /* shown by auth.js after SSO */
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Hidden-by-default elements — shown via JS, not inline styles (avoids CSP style-src violation) */
#resume-chat-btn { display: none; }
#auth-loading    { display: none; }
#auth-error      { display: none; }

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-username {
  font-size: 0.8rem;
  color: var(--purple-200);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn--signout {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--purple-600);
  color: var(--purple-300);
  border-radius: 4px;
  cursor: pointer;
}

.btn--signout:hover {
  background: var(--purple-800);
  color: #fff;
}

/* --- Design Tokens --- */
:root {
  --purple-950: #1a0e2e;
  --purple-900: #2d1b4e;
  --purple-800: #3d2668;
  --purple-700: #53378a;
  --purple-600: #6b4fa0;
  --purple-500: #7b5eaa;
  --purple-400: #9878bf;
  --purple-300: #b8a0d4;
  --purple-200: #d5c8e8;
  --purple-100: #ece6f5;
  --purple-50:  #f6f3fa;

  --gray-950: #0f0f11;
  --gray-900: #1a1a1f;
  --gray-800: #2c2c34;
  --gray-700: #404049;
  --gray-600: #55555f;
  --gray-500: #71717a;
  --gray-400: #9e9ea8;
  --gray-300: #c4c4cc;
  --gray-200: #e2e2e7;
  --gray-100: #f1f1f4;
  --gray-50:  #f8f8fa;

  --bg-primary: #fafafa;
  --bg-panel: #ffffff;
  --bg-topbar: var(--purple-950);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --accent: var(--purple-700);
  --accent-light: var(--purple-100);
  --accent-muted: var(--purple-300);
  --border: var(--gray-200);

  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --header-h: 54px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   WORKSPACE — Full viewport, side by side
   ============================================================ */
.workspace {
  display: flex;
  height: 100vh;
}

/* ============================================================
   WORKFLOW NAV PANEL — Agent selector (leftmost, 20%)
   ============================================================ */
.panel-nav {
  flex: 0 0 10%;
  display: flex;
  flex-direction: column;
  background: #110828;
  border-right: 1px solid var(--purple-800);
}

.header-nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--bg-topbar);
  border-bottom: 2px solid var(--purple-800);
  flex-shrink: 0;
}

.header-nav__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-600);
}

.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 14px;
}

.workflow-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  border-radius: 12px;
  border-left: 4px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.workflow-item:hover {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.04);
}

.workflow-item.active {
  background: var(--purple-900);
  border-left-color: var(--purple-400);
  opacity: 1;
}

.workflow-item__icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}

.workflow-item__label {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-200);
  line-height: 1.2;
}

.workflow-item.active .workflow-item__label {
  color: #fff;
}

.workflow-item__sub {
  font-size: 15px;
  color: var(--purple-600);
  margin-top: 2px;
}

.workflow-item.active .workflow-item__sub {
  color: var(--purple-400);
}

/* ============================================================
   LEFT PANEL — Briefing
   ============================================================ */
.panel-briefing {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
}

/* Left header */
.header-left {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-topbar);
  flex-shrink: 0;
  border-bottom: 2px solid var(--purple-800);
}

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

.brand__mark {
  font-size: 18px;
  color: var(--purple-400);
  line-height: 1;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Session controls */
.session-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#session-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--purple-200);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 32px 7px 12px;
  min-width: 220px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

#session-select:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

#session-select:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 2px rgba(152,120,191,0.2);
}

#session-select option {
  background: var(--purple-950);
  color: var(--purple-200);
}

.select-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--purple-400);
}

/* Chat URL bar */
.chat-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 24px;
  background: var(--purple-50);
  border-bottom: 1px solid var(--purple-100);
  flex-shrink: 0;
}

.chat-url-bar__label {
  font-size: 14px;
  flex-shrink: 0;
}

.chat-url-input {
  flex: 1;
  padding: 5px 10px;
  border: 1px solid var(--purple-200);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-primary);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.chat-url-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 2px rgba(107,79,160,0.1);
}

.chat-url-input::placeholder {
  color: var(--gray-400);
}

/* When URL is saved, show it as read-only with subtle styling */
.chat-url-input.saved {
  background: var(--purple-50);
  color: var(--purple-700);
  border-color: var(--purple-200);
}

.btn--save-url {
  background: var(--purple-600);
  color: #fff;
  padding: 5px 12px;
  font-size: 11px;
}

.btn--save-url:hover {
  background: var(--purple-500);
}

.btn--save-url.saved {
  background: var(--gray-400);
  cursor: default;
}

.chat-url-status {
  font-size: 11px;
  font-weight: 500;
  color: #66bb6a;
  white-space: nowrap;
  min-width: 50px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn--new {
  background: var(--purple-600);
  color: #fff;
}

.btn--new:hover {
  background: var(--purple-500);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107,79,160,0.3);
}

.btn--delete {
  background: rgba(255,255,255,0.06);
  color: var(--gray-400);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn--delete:hover {
  background: rgba(220,80,80,0.15);
  color: #e57373;
  border-color: rgba(220,80,80,0.25);
}

.btn--resume {
  background: rgba(102,187,106,0.15);
  color: #81c784;
  border: 1px solid rgba(102,187,106,0.25);
}

.btn--resume:hover {
  background: rgba(102,187,106,0.25);
  color: #a5d6a7;
  border-color: rgba(102,187,106,0.4);
  transform: translateY(-1px);
}

/* ============================================================
   PANEL DIVIDER — Pronounced double-line with depth
   ============================================================ */
.panel-divider {
  width: 8px;
  flex-shrink: 0;
  position: relative;
  background: var(--gray-100);
  /* Inset shadow for depth — creates double-line illusion */
  box-shadow:
    inset 2px 0 3px rgba(45, 27, 78, 0.15),
    inset -2px 0 3px rgba(45, 27, 78, 0.15),
    1px 0 6px rgba(45, 27, 78, 0.06),
    -1px 0 6px rgba(45, 27, 78, 0.06);
}

/* Left border line */
.panel-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg,
    var(--purple-700) 0%,
    var(--purple-500) 30%,
    var(--purple-400) 50%,
    var(--purple-500) 70%,
    var(--purple-700) 100%
  );
}

/* Right border line */
.panel-divider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: linear-gradient(180deg,
    var(--purple-700) 0%,
    var(--purple-500) 30%,
    var(--purple-400) 50%,
    var(--purple-500) 70%,
    var(--purple-700) 100%
  );
}

/* ============================================================
   RIGHT PANEL — Chat
   ============================================================ */
.panel-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}

/* Right header */
.header-right {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  background: var(--purple-900);
  flex-shrink: 0;
  border-bottom: 2px solid var(--purple-700);
}

.chat-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--purple-300);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66bb6a;
  animation: pulse 2s ease-in-out infinite;
}

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

.panel-chat iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* ============================================================
   CONTENT AREA — Scrollable briefing content
   ============================================================ */
.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 44px;
  scroll-behavior: smooth;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.message-block small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.45;
  font-style: normal;
  letter-spacing: 0.02em;
}

.content-area img {
  /* Responsive: scales with panel width, never wider than 55% or 480px */
  max-width: min(55%, 480px);
  width: auto;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
  display: block;
}

/* Custom scrollbar */
.content-area::-webkit-scrollbar {
  width: 6px;
}

.content-area::-webkit-scrollbar-track {
  background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
  background: var(--purple-200);
  border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb:hover {
  background: var(--purple-300);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 10px;
}

.empty-state__icon {
  font-size: 42px;
  color: var(--purple-200);
  margin-bottom: 4px;
  opacity: 0.7;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-500);
}

.empty-state__subtitle {
  font-size: 14px;
  color: var(--gray-400);
  max-width: 300px;
  line-height: 1.6;
}

/* ============================================================
   MESSAGE BLOCKS — Each API response
   ============================================================ */
.message-block {
  margin-bottom: 0;
  padding: 4px 0;
  animation: fadeSlideIn 0.35s var(--ease-out) both;
}

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

/* --- Section Divider between messages --- */
.message-divider {
  border: none;
  margin: 48px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
}

/* Double-line divider */
.message-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 3px);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--purple-200) 10%,
    var(--purple-500) 50%,
    var(--purple-200) 90%,
    transparent 100%
  );
}

.message-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 3px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--purple-200) 15%,
    var(--purple-400) 50%,
    var(--purple-200) 85%,
    transparent 100%
  );
  opacity: 0.5;
}

/* ============================================================
   MARKDOWN RENDERED STYLES
   ============================================================ */

/* --- Headings --- */
.message-block h1,
.message-block h2,
.message-block h3,
.message-block h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--purple-900);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.message-block h1 {
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--purple-100);
}

.message-block h2 {
  font-size: 23px;
  position: relative;
  padding-left: 14px;
}

.message-block h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--purple-600);
  border-radius: 2px;
}

.message-block h3 {
  font-size: 18px;
  color: var(--purple-800);
}

.message-block h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-600);
}

/* --- Body text --- */
.message-block p {
  color: var(--text-primary);
  line-height: 1.75;
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 400;
}

/* --- Lists --- */
.message-block ul,
.message-block ol {
  padding-left: 20px;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0 0 16px 0;
  font-size: 15px;
}

.message-block li {
  margin-bottom: 4px;
}

.message-block li::marker {
  color: var(--purple-500);
}

/* --- Tables --- */
.message-block table {
  width: auto;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  margin: 4px 0 20px 0;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.message-block thead tr {
  background: var(--purple-50);
}

.message-block th {
  padding: 12px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-700);
  border-bottom: 2px solid var(--purple-200);
}

.message-block td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
  line-height: 1.65;
  color: var(--text-primary);
  font-size: 14px;
}

.message-block tbody tr:last-child td {
  border-bottom: none;
}

.message-block td:first-child {
  font-weight: 600;
  color: var(--purple-800);
  white-space: nowrap;
  width: 1%;
  background: var(--purple-50);
  border-right: 1px solid var(--gray-200);
}

.message-block tbody tr:nth-child(even) td:not(:first-child) {
  background: var(--gray-50);
}

.message-block tbody tr:hover td {
  background: var(--purple-100);
}

.message-block tbody tr:hover td:first-child {
  background: var(--purple-100);
}

/* --- Bold text in cells --- */
.message-block strong {
  color: var(--purple-800);
  font-weight: 600;
}

/* --- Blockquote --- */
.message-block blockquote {
  border-left: 3px solid var(--purple-400);
  padding: 12px 18px;
  margin: 0 0 16px 0;
  background: var(--purple-50);
  border-radius: 0 6px 6px 0;
  color: var(--purple-800);
  font-style: italic;
}

/* --- Code --- */
.message-block code {
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--purple-800);
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

.message-block pre {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
  margin: 0 0 16px 0;
}

.message-block pre code {
  background: none;
  padding: 0;
  color: var(--purple-200);
  font-size: 13px;
}

/* --- Images --- */
.message-block img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* --- Links --- */
.message-block a {
  color: var(--purple-600);
  text-decoration: underline;
  text-decoration-color: var(--purple-200);
  text-underline-offset: 3px;
  transition: all 0.15s;
}

.message-block a:hover {
  color: var(--purple-800);
  text-decoration-color: var(--purple-600);
}

/* ============================================================
   SKILL EXECUTION UI
   ============================================================ */

/* Progress bar — shown while agent is running */
.skill-progress-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  margin: 20px 0;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-left: 4px solid var(--purple-500);
  border-radius: 8px;
  animation: fadeSlideIn 0.3s var(--ease-out) both;
}

.skill-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--purple-200);
  border-top-color: var(--purple-600);
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin 0.8s linear infinite;
}

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

.skill-status-text {
  font-size: 14px;
  color: var(--purple-700);
  font-style: italic;
}

/* File cards — shown after skill completes with generated files */
.skill-files-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  animation: fadeSlideIn 0.35s var(--ease-out) both;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--purple-200);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(45, 27, 78, 0.06);
}

.file-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.file-card__info {
  flex: 1;
  min-width: 0;
}

.file-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card__size {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.file-card__download {
  text-decoration: none;
  flex-shrink: 0;
  font-size: 11px;
  padding: 6px 14px;
}

/* Skill error block */
.skill-error-block {
  padding: 14px 18px;
  margin: 16px 0;
  background: rgba(220, 80, 80, 0.05);
  border: 1px solid rgba(220, 80, 80, 0.2);
  border-left: 4px solid #e57373;
  border-radius: 8px;
  animation: fadeSlideIn 0.35s var(--ease-out) both;
}

.skill-error-block strong {
  display: block;
  font-size: 14px;
  color: #c62828;
  margin-bottom: 4px;
}

.skill-error-block p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .workspace {
    flex-direction: column;
  }
  .panel-briefing {
    flex: 0 0 60%;
  }
  .panel-nav {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--purple-800);
  }
  .workflow-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }
  .workflow-item {
    flex-shrink: 0;
    min-width: 100px;
  }
  .panel-divider {
    width: 100%;
    height: 6px;
    background: var(--gray-100);
    box-shadow:
      inset 0 2px 3px rgba(45, 27, 78, 0.15),
      inset 0 -2px 3px rgba(45, 27, 78, 0.15);
  }
  .panel-divider::before,
  .panel-divider::after {
    width: 100%;
    height: 2px;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--purple-700), var(--purple-400), var(--purple-700));
  }
  .panel-divider::after {
    top: auto;
    bottom: 0;
  }
  .panel-chat {
    flex: 1;
  }
  .content-area {
    padding: 20px;
  }
  .header-left {
    padding: 0 12px;
  }
  .session-controls {
    gap: 6px;
  }
  #session-select {
    min-width: 160px;
  }
}
