/* ── Reset & base ───────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #fafbfc;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 1px 2px rgba(17,24,39,.04), 0 4px 18px rgba(17,24,39,.06);
  --shadow-hover: 0 8px 32px rgba(17,24,39,.10);
  --pink: #ec4899;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --yellow: #eab308;
  --green: #10b981;
  --orange: #f97316;
  --pink-bg: #fdf2f8;
  --blue-bg: #eff6ff;
  --purple-bg: #f5f3ff;
  --yellow-bg: #fefce8;
  --green-bg: #ecfdf5;
  --orange-bg: #fff7ed;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.4;
}
body {
  background-image:
    radial-gradient(circle at 20% 10%, var(--pink-bg) 0%, transparent 30%),
    radial-gradient(circle at 85% 30%, var(--blue-bg) 0%, transparent 25%),
    radial-gradient(circle at 50% 85%, var(--yellow-bg) 0%, transparent 35%);
  background-attachment: fixed;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; gap: 4px; }
.logo-dot {
  width: 14px; height: 14px; border-radius: 50%;
}
.dot-pink { background: var(--pink); }
.dot-blue { background: var(--blue); }
.dot-yellow { background: var(--yellow); }
.brand h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand p { font-size: 12px; color: var(--muted); }

.kpis { display: flex; gap: 8px; }
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 110px;
}
.kpi-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.kpi-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.kpi-select {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  font-family: inherit;
  cursor: pointer;
  min-width: 110px;
}
.status-online {
  color: var(--green);
}
.status-online::before {
  content: '●';
  margin-right: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Main layout ────────────────────────────────────────── */
.agency {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px 28px;
  max-width: 1600px;
  margin: 0 auto;
}
.floor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.floor-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i {
  width: 8px; height: 8px; border-radius: 50%;
}
.dot-on { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.dot-idle { background: #cbd5e1; }

/* ── Desks grid ─────────────────────────────────────────── */
.desks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.desk {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.desk:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.desk::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.agent-copyin::before { background: var(--pink); }
.agent-seorin::before { background: var(--blue); }
.agent-socialin::before { background: var(--purple); }
.agent-designin::before { background: var(--yellow); }
.agent-analyticin::before { background: var(--green); }
.agent-adsin::before { background: var(--orange); }

.desk-top {
  position: relative;
  height: 180px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

/* ── Monitor ────────────────────────────────────────────── */
.monitor {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
}
.screen {
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 6px;
  padding: 6px;
  height: 78px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.code-dot {
  position: absolute;
  top: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #475569;
}
.code-dot:nth-child(1) { left: 6px; background: #ef4444; }
.code-dot:nth-child(2) { left: 14px; background: #f59e0b; }
.code-dot:nth-child(3) { left: 22px; background: #10b981; }
.screen-body {
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}
.screen-body .line {
  height: 4px;
  background: #10b981;
  border-radius: 2px;
  width: 80%;
  opacity: 0.9;
  animation: blink 2s infinite;
}
.screen-body .line.short { width: 50%; }
@keyframes blink {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.4; }
}
.screen-body.chart {
  flex-direction: row;
  align-items: flex-end;
  gap: 3px;
  padding: 0 4px;
}
.screen-body.chart .bar {
  flex: 1;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  animation: grow 3s ease-in-out infinite;
}
@keyframes grow {
  0%, 100% { transform: scaleY(1); transform-origin: bottom; }
  50% { transform: scaleY(1.3); transform-origin: bottom; }
}
.screen-body.social { gap: 4px; padding: 2px; }
.screen-body.social .post {
  height: 8px;
  background: var(--purple);
  border-radius: 2px;
  opacity: 0.8;
}
.screen-body.social .post:nth-child(2) { width: 70%; }
.screen-body.social .post:nth-child(3) { width: 85%; }
.screen-body.canvas {
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}
.screen-body.canvas .shape {
  width: 14px; height: 14px;
  animation: spin 4s linear infinite;
}
.screen-body.canvas .circle { border-radius: 50%; background: var(--yellow); }
.screen-body.canvas .square { background: var(--pink); }
.screen-body.canvas .triangle {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--blue);
  background: transparent;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.screen-body.dash { padding: 2px; }
.screen-body.dash svg { width: 100%; height: 100%; }
.screen-body.ads {
  gap: 3px;
  padding: 3px 4px;
  font-family: 'Inter', monospace;
  font-size: 7px;
}
.screen-body.ads .ad-row {
  display: flex;
  justify-content: space-between;
  color: #e2e8f0;
}
.screen-body.ads .ad-val {
  color: var(--orange);
  font-weight: 700;
}
.stand {
  width: 20px; height: 10px;
  background: #64748b;
  margin: 0 auto;
}
.base {
  width: 50px; height: 4px;
  background: #475569;
  margin: 0 auto;
  border-radius: 2px;
}

/* ── Desk props (coffee, notepad, etc) ──────────────────── */
.desk-props {
  position: absolute;
  bottom: 22px;
  left: 14px;
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.coffee {
  width: 12px; height: 14px;
  background: #92400e;
  border-radius: 2px 2px 4px 4px;
  position: relative;
}
.coffee::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 8px; height: 3px;
  background: #f3e8d8;
  border-radius: 1px;
}
.notepad {
  width: 14px; height: 18px;
  border-radius: 1px;
  position: relative;
}
.pad-pink { background: var(--pink); }
.pad-blue { background: var(--blue); }
.plant {
  width: 14px; height: 18px;
  background: linear-gradient(to top, #92400e 0%, #92400e 35%, var(--green) 35%, #059669 100%);
  border-radius: 2px 2px 0 0;
  position: relative;
}
.plant::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 8px;
  background: var(--green);
  border-radius: 50% 50% 20% 20%;
}
.phone {
  width: 10px; height: 16px;
  background: #1e293b;
  border-radius: 2px;
  border: 1px solid #64748b;
}
.phone::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 6px; height: 10px;
  background: #3b82f6;
}
.tablet {
  width: 18px; height: 14px;
  background: #334155;
  border-radius: 2px;
  position: relative;
}
.tablet::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  right: 2px; bottom: 2px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}
.pen {
  width: 2px; height: 16px;
  background: var(--blue);
}
.folder {
  width: 16px; height: 14px;
  background: var(--green);
  border-radius: 2px 2px 0 0;
  position: relative;
}
.folder::before {
  content: '';
  position: absolute;
  top: -2px; left: 2px;
  width: 8px; height: 3px;
  background: var(--green);
  border-radius: 2px 2px 0 0;
}
.calculator {
  width: 14px; height: 18px;
  background: #1e293b;
  border-radius: 2px;
  position: relative;
}
.calculator::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  right: 2px;
  height: 4px;
  background: var(--orange);
}

/* ── Pixel characters ───────────────────────────────────── */
.character {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 40px;
  height: 56px;
}
.hair {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 10px;
  background: #422006;
  border-radius: 10px 10px 0 0;
}
.hair.hair-dark { background: #1e1b4b; }
.hair.hair-blonde { background: #fde047; border-radius: 12px 12px 4px 4px; }
.hair.hair-brown { background: #7c2d12; }
.hair.hair-curly {
  background: #422006;
  border-radius: 50% 50% 0 0;
  width: 26px;
  height: 12px;
}
.hair.hair-bun {
  background: #422006;
  height: 12px;
  width: 20px;
}
.hair.hair-bun::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 8px;
  background: #422006;
  border-radius: 50%;
}
.face {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 22px;
  background: #fed7aa;
  border-radius: 8px;
}
.eye {
  position: absolute;
  top: 8px;
  width: 2px; height: 3px;
  background: #1f2937;
}
.eye.left { left: 4px; }
.eye.right { right: 4px; }
.glasses {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 5px;
  border: 1px solid #1f2937;
  border-radius: 3px;
  background: transparent;
}
.glasses::before, .glasses::after {
  content: '';
  position: absolute;
  top: -1px;
  width: 5px; height: 5px;
  border: 1px solid #1f2937;
  border-radius: 50%;
  background: rgba(59,130,246,.1);
}
.glasses::before { left: -1px; }
.glasses::after { right: -1px; }
.mouth {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 1px;
  background: #1f2937;
}
.mouth.smile {
  width: 7px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: #1f2937;
}
.body {
  position: absolute;
  top: 28px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 24px;
  border-radius: 6px 6px 2px 2px;
}
.body-pink { background: var(--pink); }
.body-blue { background: var(--blue); }
.body-purple { background: var(--purple); }
.body-yellow { background: var(--yellow); }
.body-green { background: var(--green); }
.body-orange { background: var(--orange); }

/* ── Nameplate + activity ──────────────────────────────── */
.nameplate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.status-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.status-led.on {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
  animation: pulse 2s infinite;
}
.nameplate strong {
  font-size: 14px;
  font-weight: 700;
}
.role {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.activity {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  min-height: 16px;
}

/* ── Plants row + whiteboard ───────────────────────────── */
.plants-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.big-plant {
  height: 120px;
  background:
    radial-gradient(circle at 50% 40%, var(--green) 30%, transparent 70%),
    linear-gradient(to top, #92400e 0%, #92400e 30%, #059669 30%, #10b981 100%);
  background-size: 100% 50%, 100% 100%;
  background-repeat: no-repeat;
  background-position: top, bottom;
  border-radius: 4px;
  position: relative;
}
.big-plant::before, .big-plant::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  background: var(--green);
  border-radius: 50% 20% 50% 20%;
  top: 20px;
}
.big-plant::before { left: 5px; transform: rotate(-20deg); }
.big-plant::after { right: 5px; transform: rotate(20deg); }
.whiteboard {
  background: #ffffff;
  border: 3px solid #94a3b8;
  border-radius: 8px;
  padding: 16px 20px;
  min-height: 110px;
}
.wb-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#wb-list {
  list-style: none;
  font-size: 13px;
  color: var(--ink);
}
#wb-list li {
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}
#wb-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feed {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}
.feed li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.feed li:last-child { border-bottom: 0; }
.feed .feed-time {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.feed .feed-agent {
  font-weight: 600;
}
.fa-copyin { color: var(--pink); }
.fa-seorin { color: var(--blue); }
.fa-socialin { color: var(--purple); }
.fa-designin { color: var(--yellow); }
.fa-analyticin { color: var(--green); }
.fa-adsin { color: var(--orange); }

.deliveries { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.deliveries li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 11px;
}
.deliveries li.del-empty {
  justify-content: center;
  color: var(--muted);
  font-style: italic;
  background: transparent;
  border: 1px dashed var(--line);
  padding: 14px 8px;
  text-align: center;
}
.deliveries li.del-empty code {
  background: var(--bg);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}
.del-chip {
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.del-chip.copyin     { background: var(--pink-bg);   color: var(--pink); }
.del-chip.seorin     { background: var(--blue-bg);   color: var(--blue); }
.del-chip.socialin   { background: var(--purple-bg); color: var(--purple); }
.del-chip.designin   { background: var(--yellow-bg); color: #a16207; }
.del-chip.analyticin { background: var(--green-bg);  color: var(--green); }
.del-chip.adsin      { background: var(--orange-bg); color: var(--orange); }
.del-chip.brief      { background: var(--purple-bg); color: var(--purple); }
.del-chip.blogin     { background: #eef2ff; color: #6366f1; }
.del-body {
  flex: 1;
  min-width: 0;
}
.del-brief {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.del-meta {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 1px;
}
.del-pdf {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.del-pdf:hover { background: #0f172a; }
.del-csv {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  flex-shrink: 0;
  transition: all .15s;
}
.del-csv:hover { background: var(--green); color: #fff; }
.del-trash {
  background: transparent;
  color: #b91c1c;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  line-height: 1;
  transition: all .15s;
}
.del-trash:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
.view-all {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
  padding: 6px;
  border-radius: 6px;
  transition: background .15s;
}
.view-all:hover { background: var(--blue-bg); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.stat-item {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}
.stat-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 3px;
}
.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stat-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.stat-breakdown {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.stat-breakdown li:last-child { border-bottom: 0; }
.stat-breakdown .sb-agent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}
.stat-breakdown .sb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.stat-breakdown .sb-cost {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stack { list-style: none; font-size: 12px; }
.stack li {
  padding: 6px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.tag-pink { background: var(--pink-bg); color: var(--pink); }
.tag-blue { background: var(--blue-bg); color: var(--blue); }
.tag-yellow { background: var(--yellow-bg); color: #a16207; }
.tag-green { background: var(--green-bg); color: var(--green); }

/* ── Bottombar ─────────────────────────────────────────── */
.bottombar {
  padding: 14px 28px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.bottombar a { color: var(--blue); text-decoration: none; }

/* ── Newsletter subscribers card ─────────────────────── */
.newsletter-hint {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 2px 0 0;
}
.newsletter-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.nl-kpi {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nl-kpi span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nl-kpi b { font-size: 18px; font-weight: 700; }
.nl-kpi.nl-confirmed { background: var(--green-bg); border-color: #a7f3d0; }
.nl-kpi.nl-confirmed b { color: var(--green); }
.nl-kpi.nl-pending { background: #fef7e0; border-color: #fde68a; }
.nl-kpi.nl-pending b { color: #a86700; }
.nl-kpi.nl-unsub b { color: var(--muted); }
.newsletter-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.newsletter-actions .view-all { flex: 1; text-align: center; }
.newsletter-csv {
  background: var(--green-bg) !important;
  color: var(--green) !important;
}
.newsletter-recent h4 {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 8px 0 6px;
}
.newsletter-recent ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.newsletter-recent li {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
}
.newsletter-recent li.nl-empty {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-style: italic;
  text-align: center;
}
.nl-send-brief {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nl-send-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.nl-send-meta a { color: var(--blue); text-decoration: none; }

.kpi-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green);
  text-decoration: none;
}
.kpi-chip:hover { filter: brightness(0.95); }

/* ── Carterin (cartera) sidebar card ────────────────────── */
.carterin-hint {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 2px 0 0;
}
.carterin-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.ck-kpi {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ck-kpi span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ck-kpi b { font-size: 18px; font-weight: 700; }
.ck-kpi.ck-in-sequence { background: #dbeafe; border-color: #bfdbfe; }
.ck-kpi.ck-in-sequence b { color: #1e40af; }
.ck-kpi.ck-qualified { background: var(--green-bg); border-color: #a7f3d0; }
.ck-kpi.ck-qualified b { color: var(--green); }
.ck-kpi.ck-reply { background: #fef3c7; border-color: #fde68a; }
.ck-kpi.ck-reply b { color: #92400e; }
.carterin-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.carterin-actions .view-all { flex: 1; text-align: center; }
.carterin-recent h4 {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 8px 0 6px;
}
.carterin-recent ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.carterin-recent li {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
}
.carterin-recent li.ck-empty {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-style: italic;
  text-align: center;
}
.carterin-recent .ck-empresa { font-weight: 600; }
.carterin-recent .ck-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1200px) {
  .agency { grid-template-columns: 1fr; }
  .desks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .desks { grid-template-columns: 1fr; }
  .kpis { display: none; }
}
