:root{
  --burgundy:#1a0608;
  --dark-interior:#0e0408;
  --white:#ffffff;
  --gold:#C9A84C;
  --ink:#1a0608;
  --ink-soft:#5a4a4d;
  --hairline:rgba(26,6,8,0.14);
  --hairline-dark:rgba(255,255,255,0.10);
}

*{box-sizing:border-box;margin:0;padding:0}
html{color-scheme:only light}
html,body{height:100%}
body{
  forced-color-adjust:none;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Inter,sans-serif;
  background:var(--burgundy);
  color:var(--ink);
  font-weight:300;
  letter-spacing:0.02em;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}

/* ---------- LAYOUT ---------- */
.grid{
  display:grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap:18px;
  padding:18px;
  height:100vh;
}

.panel{
  border-radius:6px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:0;
}
.panel--light{
  background:var(--white);
  border:0.5px solid var(--hairline);
}
.panel--dark{
  background:var(--dark-interior);
  border:0.5px solid var(--hairline-dark);
  color:var(--white);
}

.panel-head{
  padding:20px 22px;
  border-bottom:0.5px solid var(--hairline);
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:56px;
  flex-shrink:0;
}
.panel--dark .panel-head{border-bottom:0.5px solid var(--hairline-dark)}
.center-head{justify-content:center}

.eyebrow{
  font-size:11px;
  font-weight:400;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--ink-soft);
}
.eyebrow--light{color:rgba(255,255,255,0.55)}

.head-meta{
  font-size:10px;
  font-weight:300;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--ink-soft);
  font-variant-numeric:tabular-nums;
}

/* ---------- LEFT / RIGHT PANELS ---------- */
.left, .right{overflow-y:auto}

.metrics{
  padding:4px 22px;
}
.metric-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding:18px 0;
  border-bottom:0.5px solid var(--hairline);
}
.metric-row:last-child{border-bottom:none}
.metric-label{
  font-size:12px;
  font-weight:300;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--ink-soft);
}
.metric-value{
  font-size:28px;
  font-weight:300;
  letter-spacing:0.02em;
  color:var(--gold);
  font-variant-numeric:tabular-nums;
  line-height:1;
}

.block{
  padding:22px 22px;
  border-top:0.5px solid var(--hairline);
}
.block + .block{padding-top:22px}
.block-title{
  font-size:10px;
  font-weight:400;
  letter-spacing:0.24em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-bottom:16px;
}
.block-empty{
  font-size:12px;
  font-weight:300;
  letter-spacing:0.04em;
  color:var(--ink-soft);
  padding:4px 0;
}

.queue{display:flex;flex-direction:column;gap:0}
.queue-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  border-bottom:0.5px solid var(--hairline);
  cursor:pointer;
}
.queue-item:first-child{padding-top:0}
.queue-item:last-child{border-bottom:none;padding-bottom:0}
.avatar{
  width:32px;height:32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:transparent;
  border:0.5px solid var(--hairline);
  font-size:11px;font-weight:400;letter-spacing:0.05em;
  color:var(--ink);
  flex-shrink:0;
}
.queue-meta{display:flex;flex-direction:column;min-width:0;flex:1}
.queue-name{font-size:13px;font-weight:400;letter-spacing:0.02em}
.queue-sub{font-size:11px;color:var(--ink-soft);letter-spacing:0.04em;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.lead-card{
  padding:16px;
  border:0.5px solid var(--hairline);
  border-radius:4px;
  font-size:13px;
  line-height:1.7;
  letter-spacing:0.02em;
}
.muted{color:var(--ink-soft)}
.panel--dark .muted{color:rgba(255,255,255,0.45)}

/* ---------- CENTER (CHAT) ---------- */
.center{position:relative}
.chat{
  flex:1;
  overflow-y:auto;
  padding:40px 80px 24px;
  display:flex;
  flex-direction:column;
  gap:28px;
}
.msg{
  font-size:15px;
  font-weight:300;
  line-height:1.9;
  letter-spacing:0.015em;
  max-width:78%;
}
.msg.user{align-self:flex-end;color:var(--white)}
.msg.assistant,
.msg.bot{align-self:flex-start;color:rgba(255,255,255,0.85)}
.msg.thinking{color:rgba(255,255,255,0.4);font-style:italic}
.msg .role{
  display:block;
  font-size:10px;
  letter-spacing:0.24em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.4);
  margin-bottom:8px;
  font-weight:400;
}

.composer-wrap{
  padding:18px 24px 22px;
  border-top:0.5px solid var(--hairline-dark);
  background:var(--dark-interior);
}
.composer{
  display:flex;
  align-items:stretch;
  gap:10px;
  background:var(--white);
  border-radius:4px;
  padding:6px 6px 6px 18px;
  border:0.5px solid var(--hairline);
}
.composer-input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  font:inherit;
  font-size:14px;
  font-weight:300;
  letter-spacing:0.02em;
  color:var(--ink);
  padding:12px 0;
}
.composer-input::placeholder{color:var(--ink-soft)}

.send-btn{
  background:var(--gold);
  color:var(--burgundy);
  border:none;
  border-radius:3px;
  padding:0 28px;
  font:inherit;
  font-size:12px;
  font-weight:400;
  letter-spacing:0.22em;
  text-transform:uppercase;
  cursor:pointer;
  transition:opacity .15s ease;
}
.send-btn:hover{opacity:.88}
.send-btn:active{opacity:.78}

.ghost-controls{
  display:flex;
  align-items:center;
  gap:22px;
  padding:14px 4px 0;
}
.ghost-btn{
  background:transparent;
  border:none;
  color:rgba(255,255,255,0.45);
  font:inherit;
  font-size:11px;
  font-weight:300;
  letter-spacing:0.18em;
  text-transform:uppercase;
  cursor:pointer;
  padding:0;
  transition:color .15s ease;
}
.ghost-btn:hover{color:rgba(255,255,255,0.85)}
.ghost-btn.listening{color:var(--gold)}
.ghost-status{
  margin-left:auto;
  font-size:10px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.35);
}
.is-speaking .ghost-status{color:var(--gold)}
.is-speaking .ghost-status::before{
  content:"";
  display:inline-block;
  width:6px;height:6px;border-radius:50%;
  background:var(--gold);
  margin-right:8px;
  vertical-align:middle;
  animation:pulse 1s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{opacity:.35}
  50%{opacity:1}
}

/* ---------- RIGHT PANEL ---------- */
.outreach-list{display:flex;flex-direction:column}
.outreach-item{
  padding:16px 0;
  border-bottom:0.5px solid var(--hairline);
  font-size:12px;
  line-height:1.65;
  letter-spacing:0.02em;
}
.outreach-item:first-child{padding-top:0}
.outreach-item:last-child{border-bottom:none;padding-bottom:0}
.outreach-item .o-title{font-weight:400;display:block;margin-bottom:4px}
.outreach-item .o-sub{font-size:11px;color:var(--ink-soft);letter-spacing:0.04em}

.channel-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.action-btn{
  background:transparent;
  border:0.5px solid var(--hairline);
  color:var(--ink);
  font:inherit;
  font-size:11px;
  font-weight:400;
  letter-spacing:0.18em;
  text-transform:uppercase;
  padding:14px 12px;
  border-radius:3px;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease;
}
.action-btn:hover{border-color:var(--gold);color:var(--gold)}
.action-btn.active{border-color:var(--gold);color:var(--gold)}

.library-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.library-search{
  display:flex;
  gap:8px;
  margin-bottom:14px;
}
.library-search .composer-input--light{flex:1;min-width:0}
.library-search .action-btn{padding:10px 14px;white-space:nowrap}
.composer-input--light{
  border:0.5px solid var(--hairline);
  border-radius:3px;
  padding:10px 12px;
  font-size:12px;
}
.library-viewer, .library-results{
  font-size:12px;
  line-height:1.7;
  color:var(--ink-soft);
  max-height:220px;
  overflow-y:auto;
  padding-top:8px;
  border-top:0.5px solid var(--hairl

/* ---------- LEAD CARD CONTENT (from JS) ---------- */
.lead-card + .lead-card{margin-top:10px}
.lead-card .name{
  font-size:13px;font-weight:400;letter-spacing:0.02em;margin-bottom:4px;
}
.lead-card .tags{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;
}
.tag-chip{
  font-size:10px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--ink-soft);
  border:0.5px solid var(--hairline);
  padding:3px 8px;
  border-radius:2px;
}

/* ---------- OUTREACH ITEM CONTENT (from JS) ---------- */
.outreach-item strong{
  font-weight:400;
  font-size:11px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--ink-soft);
  display:block;
  margin-bottom:6px;
}
.outreach-item a{color:var(--ink);text-decoration:underline}
.outreach-actions{
  display:flex;align-items:center;gap:10px;margin-top:10px;
}
.outreach-state{
  font-size:10px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--ink-soft);
}
.outreach-state.sent{color:var(--gold)}
.outreach-actions button{
  background:transparent;
  border:0.5px solid var(--hairline);
  color:var(--ink);
  font:inherit;
  font-size:10px;
  font-weight:400;
  letter-spacing:0.18em;
  text-transform:uppercase;
  padding:6px 12px;
  border-radius:3px;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease;
}
.outreach-actions button:hover{border-color:var(--gold);color:var(--gold)}ine);
}
.library-results:empty{display:none}

/* ---------- SCROLLBARS ---------- */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.08);border-radius:3px}
.panel--dark ::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.10)}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px){
  .grid{grid-template-columns:1fr;height:auto;overflow:auto}
  body{overflow:auto}
  .chat{padding:24px 24px}
}
