/* ============================================================
   PALAZZO BARBERINI · Cicero Insights
   Clean modern CRM — Inter only · white surfaces · soft pastels
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Surfaces — Vercel/Notion-style clean neutrals, no warmth */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F5F5F7;

  /* Ink — pure black ramp */
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --ink-3: #5a5a5e;
  --muted: #8e8e93;
  --muted-2: #c7c7cc;

  /* Hairlines */
  --hairline: rgba(0,0,0,0.05);
  --hairline-2: rgba(0,0,0,0.09);
  --hairline-3: rgba(0,0,0,0.14);

  /* Brand — Barberini, brighter and warmer */
  --accent: #E89554;        /* bright terracotta */
  --accent-deep: #B86C3B;
  --accent-soft: #FFF1E4;

  /* Soft pastel tints — KPI cards & chips · brighter, more saturated */
  --tint-active:  #EBFAEC;
  --tint-active-b: rgba(34,134,58,0.16);
  --tint-active-i: #1B6B2E;
  --tint-people:  #E9F2FF;
  --tint-people-b: rgba(20,72,160,0.14);
  --tint-people-i: #1F518F;
  --tint-alerts:  #FFF4D6;
  --tint-alerts-b: rgba(196,140,40,0.20);
  --tint-alerts-i: #8B6420;
  --tint-venues:  #F4ECFF;
  --tint-venues-b: rgba(122,80,200,0.14);
  --tint-venues-i: #5C44A0;
  --tint-rose:    #FFE5E5;
  --tint-rose-b:  rgba(200,52,52,0.16);
  --tint-rose-i:  #B23B2C;
  --tint-neutral: #F1F2F4;

  /* Semantic */
  --up: #228E3A;
  --up-bg: #DDF7E2;
  --down: #B23B2C;
  --down-bg: #FFE5E5;
  --flat: #6e6e73;
  --flat-bg: #F2EFE6;

  /* Heatmap (planimetry) — fresh sand-to-ochre */
  --heat-1: #F4F0E4;
  --heat-2: #ECDFC0;
  --heat-3: #E3C485;
  --heat-4: #D89F4A;
  --heat-5: #B97225;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* AI surface colors — purple register, brighter */
  --ai-bg-1: #FBF5FF;
  --ai-bg-2: #F0E1FF;
  --ai-line: rgba(157, 116, 230, 0.22);
  --ai-ink: #8255D6;
  --ai-ink-2: #5C44A0;
  --ai-soft: #EFE4FF;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(20,30,60,0.04);
  --shadow-2: 0 6px 18px rgba(20,30,60,0.06);
  --shadow-3: 0 12px 32px rgba(20,30,60,0.10);

  /* Type */
  --sans: 'Inter', -apple-system, system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --sidebar-w: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(0,0,0,0.10); color: var(--ink); }

/* ============================================================
   SHELL
   ============================================================ */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--hairline);
  padding: 28px 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--hairline-2); border-radius: 99px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  margin-bottom: 32px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #E89554 0%, #D88B4A 50%, #B86C3B 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(232, 149, 84, 0.30);
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.nav-section { margin-top: 18px; }
.nav-section:first-of-type { margin-top: 0; }
.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 10px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  margin-bottom: 1px;
}
.nav-item:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
.nav-item.active { background: var(--ink); color: white; font-weight: 600; }
.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.nav-item.active .nav-icon { color: white; }
.nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  background: var(--ink);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-item.active .nav-badge { background: white; color: var(--ink); }
.nav-dot {
  margin-left: auto;
  width: 6px; height: 6px;
  border-radius: 99px;
  background: #30D158;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.nav-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.15s var(--ease);
  cursor: pointer;
}
.user-chip:hover { background: rgba(0,0,0,0.03); }
.user-av {
  width: 28px; height: 28px;
  border-radius: 99px;
  background: linear-gradient(135deg, #7AE3C4, #BFD9FF);
  color: #153a2d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.user-role { font-size: 11px; font-weight: 500; color: var(--muted); }
.kbd-hint { margin-top: 10px; padding: 0 10px; font-size: 10px; color: var(--muted-2); }

/* ============================================================
   MAIN + PAGE HEADER
   ============================================================ */
.main {
  flex: 1;
  padding: 40px 48px 96px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 18px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  max-width: 64ch;
  line-height: 1.5;
}
.page-actions { display: flex; gap: 8px; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--up-bg);
  color: var(--up);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-pill .dot { width: 6px; height: 6px; border-radius: 99px; background: #30D158; animation: blink 1.2s ease-in-out infinite; }

/* ============================================================
   AUTO-INSIGHT — agent's voice (SSV .ai-hero pattern)
   ============================================================ */
.auto-insight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--ai-bg-1) 0%, var(--ai-bg-2) 100%);
  border: 1px solid var(--ai-line);
  border-radius: var(--r-xl);
  padding: 18px 22px 18px 22px;
  margin-bottom: 28px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.auto-insight::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(157,136,218,0.18) 0%, transparent 60%);
  animation: ai-glow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ai-glow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-30px, 20px) scale(1.1); }
}
.auto-insight:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.auto-insight > * { position: relative; z-index: 1; }
.auto-insight strong { color: var(--ink); font-weight: 700; }
.auto-insight em { font-style: normal; color: var(--ai-ink-2); font-weight: 600; }

.insight-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(157, 136, 218, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  animation: ai-bob 3.6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes ai-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(-1deg); }
}

.insight-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: var(--ai-ink);
  padding: 4px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.insight-meta {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.insight-meta button {
  background: var(--ai-ink);
  color: white;
  border: none;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.insight-meta button:hover { background: var(--ai-ink-2); }

/* Crumbs row — SSV pattern */
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.crumbs a {
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--muted-2); }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ============================================================
   KPI / STAT CARDS — pastel tints
   ============================================================ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1180px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .kpi-row { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.2s var(--ease);
}
.stat-card:hover {
  border-color: var(--hairline-2);
}
.stat-card.tint-active  { background: var(--tint-active);  border-color: var(--tint-active-b); }
.stat-card.tint-people  { background: var(--tint-people);  border-color: var(--tint-people-b); }
.stat-card.tint-alerts  { background: var(--tint-alerts);  border-color: var(--tint-alerts-b); }
.stat-card.tint-venues  { background: var(--tint-venues);  border-color: var(--tint-venues-b); }

.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-val {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-val.good   { color: var(--tint-active-i); }
.stat-val.accent { color: var(--tint-people-i); }
.stat-val.warn   { color: var(--tint-alerts-i); }
.stat-val.purple { color: var(--tint-venues-i); }
.stat-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}
.stat-spark { margin-top: auto; width: 100%; height: 36px; display: block; overflow: hidden; }
svg.stat-spark { display: block; width: 100%; height: 36px; }

.kpi-trend {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.kpi-trend.up    { background: var(--up-bg);   color: var(--up); }
.kpi-trend.down  { background: var(--down-bg); color: var(--down); }
.kpi-trend.flat  { background: var(--flat-bg); color: var(--flat); }

/* ============================================================
   SECTION + CARDS
   ============================================================ */
.section { margin-bottom: 32px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 16px;
  gap: 12px;
}
.section-head:first-of-type { margin-top: 0; }
.section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.section-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.2s var(--ease);
}
.card.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--hairline-2);
}
.card-head {
  padding: 18px 22px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
}
.card-head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.card-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.card-body { padding: 20px 22px; }
.card-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1080px) { .grid-2col { grid-template-columns: 1fr; } }

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1080px) { .grid-3col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .grid-3col { grid-template-columns: 1fr; } }

/* ============================================================
   AGENT FEED
   ============================================================ */
.agent-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  row-gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  position: relative;
  transition: background 0.2s var(--ease);
}
.agent-row:first-child { border-top: 0; padding-top: 6px; }
.agent-row:last-child  { padding-bottom: 4px; }
.agent-row:hover { background: rgba(0,0,0,0.014); }

.agent-row.fresh::before {
  content: '';
  position: absolute;
  left: -22px; right: -22px; top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(123,95,188,0.07) 0%, transparent 70%);
  opacity: 0;
  animation: flash 1.6s var(--ease-soft) forwards;
  pointer-events: none;
  z-index: -1;
}
@keyframes flash {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; }
}

.agent-av {
  width: 36px; height: 36px;
  border-radius: 11px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  letter-spacing: -0.01em;
  grid-row: span 2;
}
.agent-av.gold  { background: linear-gradient(135deg, #FFE08A, #E89554); color: #4A2C0E; }
.agent-av.coral { background: linear-gradient(135deg, #FFB8A5, #E07060); color: white; }
.agent-av.red   { background: linear-gradient(135deg, #FFB8A5, #E07060); color: white; }
.agent-av.sage  { background: linear-gradient(135deg, #C8E5B5, #6FA557); color: #1F4A1F; }
.agent-av.blue  { background: linear-gradient(135deg, #C8E5B5, #6FA557); color: #1F4A1F; }
.agent-av.sky   { background: linear-gradient(135deg, #B5D1FF, #4A7CC8); color: white; }
.agent-av.mint  { background: linear-gradient(135deg, #B5D1FF, #4A7CC8); color: white; }
.agent-av.ink   { background: linear-gradient(135deg, #6e6e73, #1d1d1f); color: white; }

.agent-av.thinking::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1.5px solid var(--ai-ink);
  opacity: 0.6;
  animation: think-ring 1.4s var(--ease-soft) infinite;
  pointer-events: none;
}
@keyframes think-ring {
  0%   { transform: scale(1);    opacity: 0.65; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* Header row: name (left) + topic chip + time (right) */
.agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.agent-head .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.agent-head .role {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.agent-head .topic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
}
.agent-head .topic.t-campaign { background: rgba(123,95,188,0.10); color: var(--ai-ink-2); }
.agent-head .topic.t-insight  { background: var(--tint-people); color: var(--tint-people-i); }
.agent-head .topic.t-edu      { background: var(--tint-active); color: var(--tint-active-i); }
.agent-head .topic.t-alert    { background: var(--down-bg); color: var(--down); }
.agent-head .topic.t-ops      { background: var(--tint-neutral); color: var(--ink-3); }
.agent-head .time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.agent-body { min-width: 0; grid-column: 2; }
.agent-body p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.agent-body p strong { color: var(--ink); font-weight: 700; }
.agent-body .action-row {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.agent-action {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  letter-spacing: -0.005em;
}
.agent-action.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.agent-action:hover { background: var(--tint-neutral); }
.agent-action.primary:hover { background: #000; }

/* ============================================================
   PLANIMETRY
   ============================================================ */
.planimetry-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1080px) { .planimetry-wrap { grid-template-columns: 1fr; } }

.planimetry-canvas {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 24px 28px 28px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.planimetry-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}
.plan-asset {
  position: relative;
  width: 100%;
  margin-top: 4px;
}
.plan-asset img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
.plan-hotspots {
  position: absolute;
  inset: 0;
}
.hotspot {
  position: absolute;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hotspot:hover,
.hotspot.is-hover {
  background: rgba(232, 149, 84, 0.12);
  border-color: rgba(184, 108, 59, 0.55);
}
.hotspot.is-alert {
  background: rgba(178,59,44,0.08);
  border: 1.5px solid rgba(178,59,44,0.35);
}
.hotspot.is-alert:hover,
.hotspot.is-alert.is-hover { background: rgba(178,59,44,0.16); border-color: rgba(178,59,44,0.75); }
.hotspot.is-selected {
  background: rgba(232, 149, 84, 0.18);
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 0 rgba(184,108,59,0.45);
  animation: hot-pulse 1.8s ease-in-out infinite;
}
@keyframes hot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,108,59,0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(184,108,59,0); }
}

/* Floor switcher tabs */
.floor-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 99px;
  border: 1px solid var(--hairline);
}
.floor-tab {
  padding: 6px 14px;
  border-radius: 99px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  letter-spacing: -0.005em;
}
.floor-tab:hover { color: var(--ink); }
.floor-tab.is-active { background: var(--ink); color: white; }

/* Right detail card — live room snapshot */
.room-detail {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: opacity 0.2s var(--ease);
}
.room-detail .rd-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.room-detail .rd-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}
.room-detail .rd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.room-detail .rd-cell .l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.room-detail .rd-cell .v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.room-detail .rd-bars {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.room-detail .rd-bar-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 4px;
}
.room-detail .rd-bar-row .top .v { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.room-detail .rd-alert {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--down-bg);
  border-radius: 10px;
  font-size: 12px;
  color: var(--down);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-detail .rd-empty {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* Sidebar room rows — interactive */
.room-list { display: flex; flex-direction: column; }
.room-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s var(--ease);
  margin: 0 -10px;
}
.room-row + .room-row { border-top: 1px solid var(--hairline); }
.room-row:hover,
.room-row.is-hover { background: rgba(232,149,84,0.08); }
.room-row.is-selected { background: rgba(232,149,84,0.16); }
.room-row .heat-sw {
  width: 12px; height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}
.room-row .nm {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}
.room-row .sb {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}
.planimetry-canvas .canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.planimetry-canvas .canvas-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.planimetry-canvas .canvas-meta {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.floor-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--tint-neutral);
  border-radius: 99px;
  margin-bottom: 14px;
}
.floor-tab {
  padding: 6px 14px;
  border-radius: 99px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.floor-tab:hover { color: var(--ink); }
.floor-tab.active { background: var(--ink); color: white; }

.plan-room {
  cursor: pointer;
  transition: fill 0.3s var(--ease), stroke-width 0.2s var(--ease), filter 0.3s var(--ease);
}
.plan-room:hover {
  filter: brightness(1.03);
  stroke-width: 2;
}
.plan-room-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-2);
  pointer-events: none;
  letter-spacing: 0.01em;
}
.plan-visitor { opacity: 0.85; transition: cx 1.6s linear, cy 1.6s linear; }
.plan-pulse { animation: dot-pulse 2.5s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { opacity: 0.85; r: 3.5; }
  50%      { opacity: 0.5;  r: 4.5; }
}

.heat-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.heat-legend .ramp {
  display: flex;
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  flex: 1;
  max-width: 200px;
}
.heat-legend .ramp span { flex: 1; }

.planimetry-side {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.floor-legend-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s var(--ease);
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 8px;
}
.floor-legend-row:first-child { border-top: 0; }
.floor-legend-row:hover { background: var(--surface-2); }
.floor-legend-row .sw {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.floor-legend-row .nm {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floor-legend-row .sb {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

/* Plan room hover state — softer */
.plan-room { cursor: pointer; transition: filter 0.2s var(--ease), transform 0.2s var(--ease); transform-origin: center; transform-box: fill-box; }
.plan-room:hover { filter: brightness(1.04) drop-shadow(0 3px 8px rgba(94,63,38,0.15)); }
.plan-room.is-alert rect { stroke: #B23B2C; stroke-width: 1.8; }
.plan-visitor { transition: cx 1.6s linear, cy 1.6s linear; }
.plan-pulse { animation: dot-pulse 2.5s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { opacity: 0.85; r: 3; }
  50%      { opacity: 0.5;  r: 4; }
}

/* ============================================================
   ANDAMENTO card v2 — clean bar chart, big stat, soft pill
   ============================================================ */
.and-stat {
  margin: 4px 0 22px;
}
.and-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.and-fig {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.and-fig .target {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.018em;
}
.and-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--up-bg);
  color: var(--up);
  white-space: nowrap;
  margin-left: 4px;
}
.and-pill .lbl { font-weight: 500; opacity: 0.78; }

.and-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.and-filter:hover { background: var(--tint-neutral); border-color: var(--hairline-3); }
.and-filter .caret { font-size: 8px; color: var(--muted); }

.and-chart {
  position: relative;
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 28px 4px 0;
}
.and-bar {
  flex: 1;
  min-width: 14px;
  background: #E5E7EB;
  border-radius: 6px;
  position: relative;
  transition: background 0.18s var(--ease);
  cursor: pointer;
}
.and-bar:hover { background: #CBD0D8; }
.and-bar.is-active {
  background: var(--ink);
  border-radius: 6px;
}
.and-bar.is-active:hover { background: var(--ink); }
.and-bar.is-future {
  background: #F1F2F4;
  border: 1px dashed #D5D8DD;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.and-bar.is-future:hover { background: #EBEDEF; }

.and-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: white;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 8px 18px rgba(20,20,20,0.18);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.and-bar:hover .and-tip,
.and-bar:focus-within .and-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.and-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.and-tip strong {
  display: block;
  font-size: 13px;
  margin-bottom: 1px;
  font-weight: 700;
  color: white;
}

.and-scale {
  display: flex;
  justify-content: space-between;
  padding: 12px 6px 0;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}

.and-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.and-foot .cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-right: 1px solid var(--hairline);
}
.and-foot .cell:first-child { padding-left: 0; }
.and-foot .cell:last-child  { padding-right: 0; border-right: 0; }
.and-foot .l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.and-foot .v {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.and-foot .delta {
  font-size: 11px;
  font-weight: 700;
  color: var(--up);
}

/* ============================================================
   ANDAMENTO card — exhibition pacing (legacy)
   ============================================================ */
.pacing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.pacing-figure {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pacing-figure .v {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pacing-figure .total {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}
.pacing-bar {
  position: relative;
  height: 10px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.pacing-bar .progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3a3a3c 0%, #1d1d1f 100%);
  border-radius: 99px;
  transform-origin: left;
  animation: bar-grow 1s var(--ease-soft) both;
}
.pacing-bar .forecast-mark {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.pacing-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.pacing-scale .today {
  color: var(--accent-deep);
  font-weight: 700;
}
.pacing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  margin-top: 22px;
}
.pacing-stats .cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 14px;
  border-right: 1px solid var(--hairline);
}
.pacing-stats .cell:first-child { padding-left: 0; }
.pacing-stats .cell:last-child  { padding-right: 0; border-right: 0; }
.pacing-stats .cell .l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pacing-stats .cell .v {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pacing-stats .cell .delta {
  font-size: 11px;
  color: var(--up);
  font-weight: 600;
}

/* ============================================================
   EXHIBITION HERO — primary card, new design
   ============================================================ */
.exh-hero-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
}
@media (max-width: 980px) { .exh-hero-card { grid-template-columns: 1fr; } }

.exh-hero-img {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.exh-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0) 50%, rgba(20,15,12,0.45) 100%);
}
.exh-hero-img .tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px 6px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.exh-hero-img .tag.live { background: var(--up-bg); color: var(--up); }
.exh-hero-img .tag.live .pulse {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--up);
  animation: blink 1.2s ease-in-out infinite;
}

.exh-hero-body {
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
}
.exh-hero-body .eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.exh-hero-body h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.1;
}
.exh-hero-body .dates {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.exh-hero-body .desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 18px;
}
.exh-hero-body .pacing {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

/* Compact exh card · equal padding all sides, image fills cell, corner radius math */
.exh-compact {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  align-items: stretch;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  position: relative;
}
.exh-compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--hairline-2);
}
.exh-compact-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.exh-compact .icon-btn { align-self: center; }

.exh-compact-img {
  /* Outer card radius 18, padding 16 → image radius = 18 - 16 + 8 ≈ 10 for proper concentric look */
  width: 100%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--tint-neutral);
  /* Critical: fill the row height so padding stays equal top/bottom/left */
  align-self: stretch;
  min-height: 140px;
}
.exh-compact-body { min-width: 0; }
.exh-compact-body .tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--tint-neutral);
  color: var(--ink-3);
  display: inline-block;
  margin-bottom: 8px;
}
.exh-compact-body .tag.live      { background: var(--up-bg); color: var(--up); }
.exh-compact-body .tag.upcoming  { background: var(--tint-people); color: var(--tint-people-i); }
.exh-compact-body .tag.closing   { background: var(--tint-alerts); color: var(--tint-alerts-i); }
.exh-compact-body h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
}
.exh-compact-body .dates { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.exh-compact-body .row {
  display: flex;
  gap: 18px;
  font-size: 11.5px;
  color: var(--muted);
}
.exh-compact-body .row strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.exh-compact-body .row .l { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.side-stat {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.side-stat:first-of-type { border-top: 0; padding-top: 0; }
.side-stat .l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-stat .v {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.side-stat .v .small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: -0.005em; }
.side-stat .s { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   STREAM
   ============================================================ */
.stream {
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.stream::-webkit-scrollbar { width: 4px; }
.stream::-webkit-scrollbar-thumb { background: var(--hairline-2); border-radius: 99px; }

.stream-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  align-items: flex-start;
  animation: stream-in 0.4s var(--ease-soft);
}
.stream-row:first-child { border-top: 0; padding-top: 2px; }
@keyframes stream-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stream-glyph {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.stream-glyph.scan   { background: var(--tint-people); color: var(--tint-people-i); }
.stream-glyph.audio  { background: var(--tint-venues); color: var(--tint-venues-i); }
.stream-glyph.dwell  { background: var(--tint-active); color: var(--tint-active-i); }
.stream-glyph.alert  { background: var(--tint-rose);   color: var(--tint-rose-i); }
.stream-glyph.exit   { background: var(--tint-neutral); color: var(--ink-3); }

.stream-body { min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.stream-body strong { color: var(--ink); font-weight: 600; }
.stream-body em { font-style: normal; color: var(--accent-deep); font-weight: 500; }
.stream-body .lang {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-left: 4px;
  padding: 1px 5px;
  background: var(--tint-neutral);
  border-radius: 3px;
}

.stream-time {
  font-size: 10.5px;
  color: var(--muted-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  padding-top: 3px;
}

/* ============================================================
   COMPOSER (marketing AI)
   ============================================================ */
.composer {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 28px;
}

.thinking-line {
  font-size: 12px;
  color: var(--ink-3);
  padding: 8px 14px 8px 32px;
  position: relative;
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-bottom: 6px;
  opacity: 0;
  animation: think-in 0.4s var(--ease-soft) forwards;
  font-variant-numeric: tabular-nums;
}
.thinking-line::before {
  content: '';
  position: absolute;
  left: 14px; top: 50%;
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--accent);
  transform: translateY(-50%);
  animation: think-pulse 1.6s ease-in-out infinite;
}
@keyframes think-in { to { opacity: 1; } }
@keyframes think-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
  50%      { transform: translateY(-50%) scale(0.7); opacity: 0.5; }
}

.draft-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-top: 12px;
  transition: box-shadow 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.draft-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.draft-card h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
}
.draft-card .channel {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(184,108,59,0.10);
  padding: 3px 8px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.draft-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 8px 0;
}
.draft-meta {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline-2);
  flex-wrap: wrap;
}
.draft-meta strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   TABLE
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 22px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
.data-table thead th.num { text-align: right; }
.data-table tbody td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-2);
  vertical-align: middle;
  transition: background 0.2s var(--ease);
}
.data-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.data-table tbody tr {
  transition: background 0.2s var(--ease);
}
.data-table tbody tr[data-modal] { cursor: pointer; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:hover td { color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px 3px 7px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.pill-ok      { background: var(--up-bg);   color: var(--up); }
.pill-warn    { background: var(--tint-alerts); color: var(--tint-alerts-i); }
.pill-alert   { background: var(--down-bg); color: var(--down); }
.pill-neutral { background: var(--tint-neutral); color: var(--ink-3); }
.pill-accent  { background: rgba(184,108,59,0.10); color: var(--accent-deep); }
.pill-info    { background: var(--tint-people); color: var(--tint-people-i); }
.pill-venue   { background: var(--tint-venues); color: var(--tint-venues-i); }
.pill-ai      { background: var(--ai-soft); color: var(--ai-ink-2); }
.pill-no-dot::before { display: none; }
.pill-no-dot { padding: 3px 8px; }

/* ============================================================
   BARS
   ============================================================ */
.bar {
  height: 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
  transform-origin: left;
  animation: bar-grow 1s var(--ease-soft) both;
}
.bar-fill.accent { background: linear-gradient(90deg, #3a3a3c 0%, #1d1d1f 100%); }
.bar-fill.ok     { background: #4FB36B; }
.bar-fill.warn   { background: #C9A35A; }
.bar-fill.alert  { background: #B23B2C; }
.bar-fill.info   { background: #5589C5; }
.bar-fill.purple { background: #7B4FB3; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================================
   EXHIBITION CARDS
   ============================================================ */
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1080px) { .exhibition-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .exhibition-grid { grid-template-columns: 1fr; } }

.exh {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.2s var(--ease);
  cursor: pointer;
}
.exh:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--hairline-2);
}
.exh-hero {
  height: 140px;
  position: relative;
  overflow: hidden;
  background: var(--tint-neutral);
}
.exh-hero .cover {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-soft);
}
.exh:hover .exh-hero .cover { transform: scale(1.05); }
.exh-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 99px;
  z-index: 2;
}
.exh-tag.live { background: var(--up-bg); color: var(--up); }
.exh-tag.upcoming { background: var(--tint-people); color: var(--tint-people-i); }
.exh-tag.closing { background: var(--tint-alerts); color: var(--tint-alerts-i); }
.exh-body { padding: 18px 20px; }
.exh-body h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
}
.exh-dates { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.exh-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; }
.exh-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.exh-meta div { flex: 1; }
.exh-meta strong { font-size: 14px; font-weight: 700; color: var(--ink); display: block; font-variant-numeric: tabular-nums; }
.exh-meta span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* ============================================================
   SEGMENT CARDS (audience)
   ============================================================ */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 1180px) { .segment-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .segment-grid { grid-template-columns: 1fr; } }

.segment {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
}
.segment:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--hairline-2);
}
.segment .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.segment .count {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.segment .count small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.segment .pct { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.segment .traits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.trait {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--tint-neutral);
  border-radius: 99px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ============================================================
   ARTWORK CARDS
   ============================================================ */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .artwork-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .artwork-grid { grid-template-columns: 1fr; } }

.artwork {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.artwork-frame {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--tint-neutral);
}
.artwork-frame::after { display: none; }

/* ============================================================
   RANK ROW — collezione ranking
   ============================================================ */
.rank-row {
  display: grid;
  grid-template-columns: 32px 64px 1fr auto;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  align-items: center;
  transition: background 0.15s var(--ease);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
}
.rank-row:first-child { border-top: 0; }
.rank-row:hover { background: var(--surface-2); }
.rank-pos {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: var(--muted);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rank-row.gold .rank-pos {
  color: #B8860B;
  background: linear-gradient(135deg, #FFE08A, #F2B83B);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-row.silver .rank-pos {
  color: #888;
  background: linear-gradient(135deg, #D8D8D8, #9C9C9C);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-row.bronze .rank-pos {
  color: #B86C3B;
  background: linear-gradient(135deg, #E8A672, #B86C3B);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-row .pos-down { color: var(--muted-2); }

.rank-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--tint-neutral);
  flex-shrink: 0;
}
.rank-row.low .rank-thumb { opacity: 0.78; }
.rank-body { min-width: 0; }
.rank-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}
.rank-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--muted);
}
.rank-stats .lbl { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rank-stats strong { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rank-stats .trend-up   { color: var(--up); font-weight: 700; font-size: 11.5px; }
.rank-stats .trend-down { color: var(--down); font-weight: 700; font-size: 11.5px; }
.rank-stats .trend-flat { color: var(--muted); font-weight: 700; font-size: 11.5px; }

.badge-new {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  letter-spacing: 0.04em;
}
.artwork-frame.fornarina { background: linear-gradient(135deg, #6E5240 0%, #2A1F14 100%); }
.artwork-frame.narciso   { background: linear-gradient(135deg, #2D2620 0%, #5C4830 100%); }
.artwork-frame.giuditta  { background: linear-gradient(135deg, #6E2A2A 0%, #2A1F14 100%); }
.artwork-frame.cortona   { background: linear-gradient(135deg, #C8A263 0%, #8B6824 50%, #2A1F14 100%); }
.artwork-frame.holbein   { background: linear-gradient(135deg, #443A30 0%, #1A1410 100%); }
.artwork-frame.maffeo    { background: linear-gradient(135deg, #443A30 0%, #1A1410 100%); }

.artwork-frame .frame-name {
  position: absolute;
  bottom: 18px; left: 20px; right: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,236,200,0.92);
  z-index: 2;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  line-height: 1.15;
}

.artwork-body { padding: 16px 20px 18px; }
.artwork-body .artist {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.artwork-body .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 4px;
  color: var(--ink);
}
.artwork-body .year { font-size: 11.5px; color: var(--muted); }
.artwork-body .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.artwork-body .stat-l {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.artwork-body .stat-v {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.artwork-body .pill::before { display: none; }
.artwork-body .pill { padding: 2px 6px; }

/* ============================================================
   HERO ROW
   ============================================================ */
.hero-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 1080px) { .hero-row { grid-template-columns: 1fr; } }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.hero-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(1);
  transition: transform 1s var(--ease-soft);
}
.hero-card:hover .bg { transform: scale(1.03); }
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,253,247,0) 30%, rgba(255,253,247,0.96) 100%);
}
.hero-card .body { position: relative; padding: 24px 28px 24px; z-index: 2; width: 100%; }
.hero-card .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--up);
  background: var(--up-bg);
  padding: 4px 10px 4px 8px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.hero-card .label .pulse {
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--up);
  animation: blink 1.2s ease-in-out infinite;
}
.hero-card h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}
.hero-card .meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-card .meta strong { color: var(--ink); }

.now-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.now-cell {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.now-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.now-cell .l { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.now-cell .v { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; margin-top: 6px; line-height: 1; font-variant-numeric: tabular-nums; }
.now-cell .s { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   BUTTONS + UTIL
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.btn.primary { background: var(--ink); color: white; }
.btn.primary:hover { background: #000; }
.btn.ghost {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--hairline-2);
}
.btn.ghost:hover { background: var(--tint-neutral); color: var(--ink); border-color: transparent; }

/* AI Tabs — SSV ai-inbox mode switcher pattern */
.ai-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ai-tabs::-webkit-scrollbar { display: none; }
.ai-tab {
  flex: 1;
  min-width: max-content;
  padding: 9px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.ai-tab:hover { background: var(--surface-2); color: var(--ink); }
.ai-tab.is-active {
  background: linear-gradient(135deg, var(--ai-bg-1) 0%, var(--ai-bg-2) 100%);
  color: var(--ai-ink-2);
  box-shadow: 0 1px 2px rgba(123,95,188,0.08);
}
.tab-count {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(0,0,0,0.06);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.ai-tab.is-active .tab-count { background: var(--ai-ink); color: white; }

/* Tab view */
.tab-view { display: none; }
.tab-view.is-active { display: block; }

/* Review reply card — adapted SSV ai-inbox reply-card */
.review-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-bottom: 14px;
}
.review-original {
  padding: 18px 22px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}
.review-from {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-av {
  width: 32px; height: 32px;
  border-radius: 99px;
  background: linear-gradient(135deg, #BFD9FF, #5589C5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-av.av-rose { background: linear-gradient(135deg, #FFC8C8, #E07070); }
.review-av.av-gold { background: linear-gradient(135deg, #FFD8A8, #E89554); color: #4A2C0E; }
.review-from-meta { flex: 1; min-width: 0; }
.review-from-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.review-from-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.review-source-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--hairline-2);
  letter-spacing: 0.02em;
}
.review-stars {
  display: inline-flex;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 1px;
  color: #E89554;
}
.review-stars .empty { color: #E5E5EA; }
.review-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.review-body p { margin-bottom: 6px; }
.review-body p:last-child { margin-bottom: 0; }
.review-draft {
  padding: 22px;
  background: linear-gradient(135deg, var(--ai-bg-1) 0%, #FBF8FF 100%);
  position: relative;
}
.review-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.review-draft-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ai-ink);
}
.review-draft-label .dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--ai-ink);
}
.confidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--up-bg);
  color: var(--up);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.confidence-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--up);
}
.confidence.medium { background: var(--tint-alerts); color: var(--tint-alerts-i); }
.confidence.medium .confidence-dot { background: var(--tint-alerts-i); }
.review-draft-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(157, 136, 218, 0.20);
  margin-bottom: 14px;
}
.review-draft-body .highlight {
  background: rgba(157, 136, 218, 0.18);
  color: var(--ai-ink-2);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}
.review-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.ai-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.ai-btn-ghost { background: transparent; color: var(--ai-ink); }
.ai-btn-ghost:hover { background: rgba(123, 95, 188, 0.08); }
.ai-btn-primary { background: var(--ai-ink); color: white; }
.ai-btn-primary:hover { background: var(--ai-ink-2); }

/* Schedule view — upcoming posts calendar */
.post-sched-row {
  display: grid;
  grid-template-columns: 64px 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  align-items: center;
}
.post-sched-row:first-child { border-top: 0; padding-top: 4px; }
.ps-when {
  text-align: center;
}
.ps-when .d {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.ps-when .m {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.ps-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ps-icon.ig    { background: linear-gradient(135deg, #FFD8A8, #E07070); color: white; }
.ps-icon.email { background: linear-gradient(135deg, #BFD9FF, #5589C5); color: white; }
.ps-icon.meta  { background: linear-gradient(135deg, #B5D9FB, #2F77E4); color: white; }
.ps-icon.spot  { background: linear-gradient(135deg, #B5EBC9, #4FB36B); color: white; }
.ps-body { min-width: 0; }
.ps-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ps-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Inline card CTA — small action button or link inside a card */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: transparent;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.15s var(--ease), gap 0.2s var(--ease);
}
.card-cta:hover { color: var(--accent); gap: 8px; }
.card-cta .chev { display: inline-block; transition: transform 0.2s var(--ease); }
.card-cta:hover .chev { transform: translateX(2px); }

/* Round icon button — used for "expand" on compact rows */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: var(--tint-neutral);
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--ink); color: white; }

.spark-line { stroke: var(--ink-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.spark-area { fill: rgba(58,58,60,0.06); }

/* KPI CLEAN · Elefante-style cards (home page) */
.kpi-row.kpi-clean .stat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 22px 24px 0;
  gap: 14px;
  min-height: 170px;
  overflow: hidden;
  position: relative;
}
.kpi-row.kpi-clean .stat-card .stat-top { align-items: flex-start; gap: 10px; }
.kpi-row.kpi-clean .stat-card .stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-row.kpi-clean .stat-card .stat-val {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi-row.kpi-clean .stat-card .stat-val.good,
.kpi-row.kpi-clean .stat-card .stat-val.accent,
.kpi-row.kpi-clean .stat-card .stat-val.warn,
.kpi-row.kpi-clean .stat-card .stat-val.purple { color: var(--ink); }
.kpi-row.kpi-clean .stat-card .stat-meta { display: none; }
.kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 4px 11px;
  border-radius: 99px;
  white-space: nowrap;
}
.kpi-chip .arrow { font-weight: 800; }
.kpi-chip.c-blue   { background: #E8F0FE; color: #2E5DAF; }
.kpi-chip.c-green  { background: #E1F5E6; color: #2F7A3F; }
.kpi-chip.c-orange { background: #FDEFE0; color: #B5651F; }
.kpi-chip.c-purple { background: #EFE6FB; color: #6B4DA8; }
.kpi-row.kpi-clean .stat-card .stat-spark {
  margin: 0 -24px -1px;
  width: calc(100% + 48px);
  height: 60px;
  display: block;
}
.kpi-row.kpi-clean .stat-card.c-blue   .spark-line { stroke: #5B8BD8; opacity: 1; }
.kpi-row.kpi-clean .stat-card.c-blue   .spark-area { fill: rgba(91,139,216,0.16); }
.kpi-row.kpi-clean .stat-card.c-green  .spark-line { stroke: #6CB880; opacity: 1; }
.kpi-row.kpi-clean .stat-card.c-green  .spark-area { fill: rgba(108,184,128,0.18); }
.kpi-row.kpi-clean .stat-card.c-orange .spark-line { stroke: #E89554; opacity: 1; }
.kpi-row.kpi-clean .stat-card.c-orange .spark-area { fill: rgba(232,149,84,0.18); }
.kpi-row.kpi-clean .stat-card.c-purple .spark-line { stroke: #B68FE2; opacity: 1; }
.kpi-row.kpi-clean .stat-card.c-purple .spark-area { fill: rgba(182,143,226,0.18); }

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1080px) { .studio-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PALETTE (⌘K)
   ============================================================ */
.p-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.p-overlay.is-open { opacity: 1; }
.p-modal {
  width: min(680px, calc(100vw - 40px));
  max-height: 70vh;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(26,20,16,0.22), 0 4px 16px rgba(26,20,16,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-12px) scale(0.97);
  transition: transform 0.24s var(--ease-soft);
}
.p-overlay.is-open .p-modal { transform: translateY(0) scale(1); }
.p-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.p-icon { font-size: 18px; color: var(--accent); }
.p-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
}
.p-esc {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--hairline-2);
  border-radius: 5px;
}
.p-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.p-results::-webkit-scrollbar { width: 5px; }
.p-results::-webkit-scrollbar-thumb { background: var(--hairline-2); border-radius: 99px; }
.p-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s var(--ease);
}
.p-item.is-sel { background: var(--ai-soft); }
.p-glyph {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--tint-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent-deep);
  flex-shrink: 0;
}
.p-item.is-sel .p-glyph { background: white; color: var(--ai-ink); }
.p-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.p-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
.p-foot kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
}
.p-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================
   POPOVER (hover)
   ============================================================ */
.pop {
  position: fixed;
  z-index: 9000;
  max-width: 280px;
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(20,30,60,0.18), 0 2px 6px rgba(20,30,60,0.10);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
  pointer-events: none;
}
.pop.is-open {
  opacity: 1;
  transform: translateY(0);
}
.pop strong { color: white; font-weight: 700; }

/* ============================================================
   MODAL
   ============================================================ */
.m-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease, backdrop-filter 0.22s ease;
}
.m-overlay.is-open {
  opacity: 1;
  background: rgba(26,20,16,0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.m-modal {
  background: var(--surface);
  border-radius: 20px;
  width: min(540px, calc(100vw - 40px));
  max-height: 86vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,20,16,0.22);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.26s var(--ease-soft);
  display: flex;
  flex-direction: column;
  position: relative;
}
.m-modal-lg { width: min(840px, calc(100vw - 40px)); }
.m-overlay.is-open .m-modal { transform: translateY(0) scale(1); }
.m-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 99px;
  border: none;
  background: rgba(0,0,0,0.05);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s var(--ease);
}
.m-close:hover { background: rgba(0,0,0,0.10); }
.m-body { overflow-y: auto; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 12px 32px rgba(20,30,60,0.20);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-soft);
  letter-spacing: -0.005em;
}
.toast.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FLASH (when scrolling to anchor)
   ============================================================ */
@keyframes flash-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,108,59,0); }
  30%      { box-shadow: 0 0 0 6px rgba(184,108,59,0.22); }
}
.is-flashed {
  animation: flash-ring 1.6s var(--ease-soft);
  border-radius: var(--r-xl);
}

.studio-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}
@media (max-width: 1080px) { .studio-right { position: static; } }

/* Agent column cards — per-muse "today / now / next" · horizontal scroll carousel */
.muse-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.muse-grid::-webkit-scrollbar { height: 6px; }
.muse-grid::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 99px; }
.muse-grid::-webkit-scrollbar-thumb { background: var(--hairline-3); border-radius: 99px; }
.muse-grid > .muse-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
@media (max-width: 720px) {
  .muse-grid > .muse-card { flex: 0 0 88vw; }
}

.muse-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.muse-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.muse-av {
  width: 42px; height: 42px;
  border-radius: 13px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.muse-av.gold  { background: linear-gradient(135deg, #FFE08A, #E89554); color: #4A2C0E; }
.muse-av.coral { background: linear-gradient(135deg, #FFB8A5, #E07060); }
.muse-av.sage  { background: linear-gradient(135deg, #C8E5B5, #6FA557); color: #1F4A1F; }
.muse-av.sky   { background: linear-gradient(135deg, #B5D1FF, #4A7CC8); }
.muse-av.ink   { background: linear-gradient(135deg, #6e6e73, #1d1d1f); }
.muse-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.muse-role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.muse-tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  border-left: 2px solid var(--accent-soft);
  padding-left: 10px;
}

/* Per-section label inside a muse card */
.muse-section-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.muse-section-label .pl-dot {
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--muted);
}
.muse-section-label.now { color: var(--ai-ink); }
.muse-section-label.now .pl-dot {
  background: var(--ai-ink);
  animation: blink 1.6s ease-in-out infinite;
}
.muse-section-label.next { color: var(--ink-3); }

/* Step row in muse */
.muse-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.muse-step .ms-glyph {
  width: 18px; height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.muse-step.done .ms-glyph    { background: var(--up-bg); color: var(--up); }
.muse-step.active .ms-glyph  {
  background: var(--ai-soft); color: var(--ai-ink);
  position: relative;
}
.muse-step.active .ms-glyph::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 99px;
  border: 1.5px solid var(--ai-ink);
  opacity: 0.55;
  animation: think-ring 1.4s var(--ease-soft) infinite;
}
.muse-step.next .ms-glyph    { background: var(--tint-neutral); color: var(--muted); }
.muse-step .ms-body { min-width: 0; }
.muse-step .ms-title {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.muse-step .ms-when {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.muse-foot {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.muse-foot .btn-mini {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s var(--ease);
  letter-spacing: -0.005em;
}
.muse-foot .btn-mini.primary { background: var(--ink); color: white; }
.muse-foot .btn-mini.primary:hover { background: #000; }
.muse-foot .btn-mini.ghost   { background: var(--tint-neutral); color: var(--ink-2); }
.muse-foot .btn-mini.ghost:hover { background: rgba(0,0,0,0.07); color: var(--ink); }

.muse-progress {
  margin-top: 2px;
  height: 4px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.muse-progress .fill {
  height: 100%;
  background: var(--ai-ink);
  border-radius: 99px;
  animation: bar-grow 1s var(--ease-soft) both;
}

/* Steps card — SSV ai-inbox pattern */
.steps-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px;
}
.panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--ai-ink);
}
.panel-label .pl-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--ai-ink);
  animation: blink 1.6s ease-in-out infinite;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 2px;
  transition: background 0.2s var(--ease);
}
.step:hover { background: var(--surface-2); }
.step .step-glyph {
  width: 22px; height: 22px;
  border-radius: 99px;
  background: var(--tint-neutral);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.step.done .step-glyph { background: var(--up-bg); color: var(--up); }
.step.active .step-glyph {
  background: var(--ai-soft);
  color: var(--ai-ink);
  position: relative;
}
.step.active .step-glyph::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 99px;
  border: 1.5px solid var(--ai-ink);
  opacity: 0.55;
  animation: think-ring 1.4s var(--ease-soft) infinite;
}
.step-body { min-width: 0; flex: 1; }
.step-body .step-title { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.step-body .step-sub   { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.step.done .step-body .step-title    { color: var(--ink-3); }
.step.pending .step-body .step-title { color: var(--muted); }

/* Agent roster card — used in marketing page */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1180px) { .roster-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .roster-grid { grid-template-columns: 1fr; } }

.roster-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roster-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.roster-av {
  width: 44px; height: 44px;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.roster-av.gold { background: linear-gradient(135deg, #FFE08A, #E89554); color: #4A2C0E; }
.roster-av.coral{ background: linear-gradient(135deg, #FFB8A5, #E07060); color: white; }
.roster-av.sage { background: linear-gradient(135deg, #C8E5B5, #6FA557); color: #1F4A1F; }
.roster-av.sky  { background: linear-gradient(135deg, #B5D1FF, #4A7CC8); color: white; }
.roster-av.ink  { background: linear-gradient(135deg, #6E6E73, #1D1D1F); color: white; }
/* Legacy aliases for back-compat with agents.js / older templates */
.roster-av.red  { background: linear-gradient(135deg, #FFB8A5, #E07060); color: white; }
.roster-av.blue { background: linear-gradient(135deg, #C8E5B5, #6FA557); color: #1F4A1F; }
.roster-av.mint { background: linear-gradient(135deg, #B5D1FF, #4A7CC8); color: white; }
.roster-name { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.roster-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.roster-body {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.roster-stat {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.roster-stat strong { color: var(--ink); font-weight: 700; }

/* Cluster row — marketing page right rail */
.cluster-row {
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.cluster-row:first-child { border-top: 0; padding-top: 0; }
.cluster-row .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.cluster-row .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.cluster-row .val  { font-size: 11.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cluster-row .note { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Forecast list — marketing right */
.forecast-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
}
.forecast-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Mix row — provenance bars (index) */
.mix-list { display: flex; flex-direction: column; gap: 10px; }
.mix-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.mix-row .top .v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Exhibition timeline gantt row */
.exh-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.exh-row:last-child { border-bottom: 0; }
.exh-row .who { font-size: 13px; font-weight: 600; color: var(--ink); }
.exh-row .who small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.exh-row .track {
  position: relative;
  height: 22px;
}
.exh-bar {
  position: absolute;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: white;
  font-size: 11px;
  font-weight: 600;
}
.exh-bar.accent { background: linear-gradient(90deg, #3a3a3c, #1d1d1f); }
.exh-bar.info   { background: linear-gradient(90deg, #6E91C5, #4A7CC8); }
.exh-bar.ink    { background: linear-gradient(90deg, #8e8e93, #5a5a5e); }
.exh-progress {
  position: absolute;
  height: 22px;
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
}
.exh-scale {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding-top: 12px;
}
.exh-scale .scale-track {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   GANTT — rich exhibition calendar
   ============================================================ */
.gantt-card { padding: 0; overflow: hidden; }
.gantt-card > .card-head { padding: 20px 22px 18px; border-bottom: 1px solid var(--hairline); }

.gantt-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  background: #FBFAF7;
}
.gkpi { padding: 0 22px; border-right: 1px solid var(--hairline); }
.gkpi:last-child { border-right: 0; }
.gkpi-lbl { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.gkpi-val { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gkpi-delta { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.gkpi-delta.up { color: var(--up); }
.gkpi-delta.down { color: var(--down); }

.gantt-scrollwrap {
  overflow-x: auto;
  position: relative;
  background: var(--surface);
}
.gantt-scrollwrap::-webkit-scrollbar { height: 8px; }
.gantt-scrollwrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.16); border-radius: 4px; }

.gantt-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--hairline);
  background: #FBFAF7;
  min-width: 1180px;
  position: sticky; top: 0; z-index: 4;
}
.gantt-corner {
  border-right: 1px solid var(--hairline);
  background: #FBFAF7;
}
.gantt-year-strip {
  display: flex;
  border-bottom: 1px solid var(--hairline);
}
.gy-cell {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 8px 12px;
  text-transform: uppercase;
  border-right: 1px solid var(--hairline);
  background: var(--surface);
}
.gy-cell:last-child { border-right: 0; }

.gantt-month-strip {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
}
.gantt-month-strip span {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 7px 0;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.04);
}
.gantt-month-strip span:last-child { border-right: 0; }
.gantt-month-strip .year-divider { border-left: 2px solid rgba(0,0,0,0.16); }

.gantt-body {
  position: relative;
  min-width: 1180px;
  background: var(--surface);
}

/* Overlay (today line, quarter lines, conflicts) */
.gantt-overlay {
  position: absolute;
  top: 0; left: 200px; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
}
.g-today {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #C03B2C;
  z-index: 4;
  pointer-events: none;
}
.g-today::before {
  content: '';
  position: absolute; top: -3px; left: -5px;
  width: 12px; height: 12px;
  background: #C03B2C;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.g-today-lbl {
  position: absolute; top: -20px; left: 8px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #C03B2C;
  white-space: nowrap;
}
.g-vline {
  position: absolute;
  top: 0; bottom: 0;
  border-left: 1px dashed rgba(0,0,0,0.04);
  pointer-events: none;
}
.g-vline-year { border-left: 2px solid rgba(0,0,0,0.10); }
.g-vline-q { border-left: 1px dashed rgba(0,0,0,0.06); }

.g-conflict {
  position: absolute;
  top: 4px; bottom: 24px;
  background: repeating-linear-gradient(45deg, rgba(194,59,44,0.06), rgba(194,59,44,0.06) 6px, rgba(194,59,44,0.18) 6px, rgba(194,59,44,0.18) 12px);
  border-left: 1px dashed rgba(194,59,44,0.55);
  border-right: 1px dashed rgba(194,59,44,0.55);
  z-index: 0;
  pointer-events: none;
}
.g-conflict-label {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; color: #C03B2C;
  white-space: nowrap; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.92);
  padding: 1px 4px; border-radius: 3px;
}

/* Rows */
.g-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--hairline);
  min-height: 60px;
  position: relative;
}
.g-row:last-child { border-bottom: 0; }
.g-row-lbl {
  padding: 12px 14px;
  border-right: 1px solid var(--hairline);
  background: #FBFAF7;
  display: flex; flex-direction: column; justify-content: center;
  position: sticky; left: 0; z-index: 3;
}
.g-row-name { font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.g-row-meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.2; }

.g-row-track {
  position: relative;
  height: 100%;
}
.gbar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, height 0.18s ease;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  min-width: 4px;
}
.gbar:hover {
  transform: translateY(-50%) scale(1.015);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  z-index: 6;
}
.gbar-lbl {
  font-size: 11.5px; font-weight: 700; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gbar-sub {
  font-size: 9.5px; font-weight: 500; opacity: 0.85;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gbar-badge {
  display: inline-block;
  background: #FFD75A;
  color: #2A1810;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 5px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

/* Fills · pastel palette */
.gbar.fill-accent {
  background: linear-gradient(135deg, #FBE3CC, #F4CBA6);
  color: #7C4A1F;
  border: 1px solid rgba(184,108,59,0.20);
}
.gbar.fill-accent .gbar-sub { color: rgba(124,74,31,0.72); }

.gbar.fill-info {
  background: linear-gradient(135deg, #DCE9F8, #B6CDEC);
  color: #1F4B7C;
  border: 1px solid rgba(85,137,197,0.22);
}
.gbar.fill-info .gbar-sub { color: rgba(31,75,124,0.72); }

.gbar.fill-emerald {
  background: linear-gradient(135deg, #D8EDE0, #B2D6BE);
  color: #2A5C36;
  border: 1px solid rgba(79,166,119,0.24);
}
.gbar.fill-emerald .gbar-sub { color: rgba(42,92,54,0.72); }

.gbar.fill-night {
  background: linear-gradient(135deg, #E0D5F0, #C0AEDF);
  color: #4A3478;
  border: 1px solid rgba(122,90,180,0.24);
}
.gbar.fill-night .gbar-sub { color: rgba(74,52,120,0.72); }

.gbar.fill-research {
  background: repeating-linear-gradient(45deg, #F4EEFB, #F4EEFB 5px, #E5D9F2 5px, #E5D9F2 10px);
  color: #5C44A0;
  border: 1px dashed rgba(92,68,160,0.40);
  box-shadow: none;
}
.gbar.fill-research .gbar-sub { color: rgba(92,68,160,0.72); }

.gbar.fill-loan {
  background: linear-gradient(135deg, #F4ECFF, #E2D2F5);
  color: #5C44A0;
  border: 1px solid rgba(92,68,160,0.20);
}
.gbar.fill-loan .gbar-sub { color: rgba(92,68,160,0.70); }

/* Phases · pastel */
.gbar.phase-setup {
  background: repeating-linear-gradient(45deg, #FCE7CE, #FCE7CE 4px, #F8D6AC 4px, #F8D6AC 8px);
  color: #7C4A1F;
  height: 18px;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(184,108,59,0.16);
}
.gbar.phase-strike {
  background: repeating-linear-gradient(45deg, #EAEAED, #EAEAED 4px, #D2D2D6 4px, #D2D2D6 8px);
  color: transparent;
  height: 18px;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,0.08);
}
.gbar.phase-maint {
  background: #FCF3DC;
  border: 1px solid rgba(196,140,40,0.30);
  color: #8B6420;
  height: 14px;
  border-radius: 3px;
  box-shadow: none;
}
.gbar.phase-maint-major {
  background: linear-gradient(135deg, #FCEBC4, #F4D685);
  color: #6B4A14;
  border: 1px solid rgba(139,100,32,0.30);
}
.gbar.phase-maint-major .gbar-sub { color: #6B4A14; opacity: 0.78; }

/* Point events */
.g-row-points { min-height: 52px; }
.gpoint {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  z-index: 3;
}
.gpoint-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #A8C7E8;
  border: 2.5px solid var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.16);
  transition: transform 0.18s ease;
}
.gpoint-dot.dot-vip { background: #F4CBA6; }
.gpoint:hover .gpoint-dot { transform: scale(1.4); }
.gpoint-lbl {
  font-size: 9.5px; font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.gpoint:hover .gpoint-lbl { color: var(--ink); }

/* Tooltip via data-tip */
.gbar[data-tip]:hover::after,
.gpoint[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A;
  color: white;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.24);
  z-index: 12;
  pointer-events: none;
  line-height: 1.4;
}
.gbar[data-tip]:hover::before,
.gpoint[data-tip]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1A1A1A;
  z-index: 12;
  pointer-events: none;
}

/* Legend */
.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 16px 22px;
  border-top: 1px solid var(--hairline);
  background: #FBFAF7;
}
.gl-group { display: flex; gap: 14px; flex-wrap: wrap; }
.gl-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.gl-sw { display: inline-block; width: 22px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.gl-sw.fill-accent-sw { background: linear-gradient(135deg, #E8A04A, #B86C3B); }
.gl-sw.fill-emerald-sw { background: linear-gradient(135deg, #4FA677, #1B6B2E); }
.gl-sw.fill-night-sw { background: linear-gradient(135deg, #3A2418, #1A0E08); }
.gl-sw.fill-research-sw { background: repeating-linear-gradient(45deg, #EEE6FA, #EEE6FA 4px, #D9CCEF 4px, #D9CCEF 8px); border: 1px dashed rgba(92,68,160,0.45); }
.gl-sw.phase-setup-sw { background: repeating-linear-gradient(45deg, #FFE0B8, #FFE0B8 3px, #FFCC85 3px, #FFCC85 6px); }
.gl-sw.phase-strike-sw { background: repeating-linear-gradient(45deg, #DCDCDF, #DCDCDF 3px, #B8B8BC 3px, #B8B8BC 6px); }
.gl-sw.phase-maint-sw { background: #FFF4D6; border: 1px solid rgba(196,140,40,0.4); }
.gl-sw.fill-loan-sw { background: linear-gradient(135deg, #F4ECFF, #DDC8FA); border: 1px solid rgba(92,68,160,0.22); }
.gl-sw.gl-dot { background: #5589C5; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.gl-sw.gl-dot-vip { background: #B86C3B; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.gl-warn { color: #C03B2C; font-weight: 700; }

@media (max-width: 1200px) {
  .gantt-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .gkpi:nth-child(2) { border-right: 0; }
  .gkpi:nth-child(3), .gkpi:nth-child(4) { border-top: 1px solid var(--hairline); padding-top: 12px; margin-top: 12px; }
}

/* ============================================================
   AGENT RECOMMENDATION — animated "thinking" card
   ============================================================ */
.agent-rec {
  background: var(--ai-bg-1);
  border: 1px solid var(--ai-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  --agent-color: var(--ai-ink-2);
  --agent-divider: rgba(92, 68, 160, 0.15);
}
.agent-rec.tone-marketing    { --agent-color: var(--ai-ink-2); background: var(--ai-bg-1); border-color: var(--ai-line); --agent-divider: rgba(92,68,160,0.18); }
.agent-rec.tone-curatorial   { --agent-color: #5C44A0;          background: #EEE6FA;        border-color: rgba(92,68,160,0.25); --agent-divider: rgba(92,68,160,0.22); }
.agent-rec.tone-scolastic    { --agent-color: #1B6B2E;          background: #EBFAEC;        border-color: rgba(34,134,58,0.25); --agent-divider: rgba(34,134,58,0.22); }
.agent-rec.tone-direzione    { --agent-color: #5C44A0;          background: #F4ECFF;        border-color: rgba(92,68,160,0.3);  --agent-divider: rgba(92,68,160,0.22); }
.agent-rec.tone-conservation { --agent-color: #8B6420;          background: #FFF4D6;        border-color: rgba(196,140,40,0.4); --agent-divider: rgba(139,100,32,0.25); }
.agent-rec.tone-logistics    { --agent-color: #C03B2C;          background: #FFE5E5;        border-color: rgba(178,59,44,0.25); --agent-divider: rgba(178,59,44,0.22); }

.agent-rec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.agent-name {
  font-weight: 800;
  color: var(--agent-color);
  font-size: 12px;
  letter-spacing: 0.005em;
}
.agent-status {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  font-style: italic;
  margin-left: auto;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.agent-rec.is-done .agent-status {
  color: var(--up);
  font-style: normal;
  font-weight: 700;
}
.agent-rec.is-done .agent-spinner { display: none; }

.agent-spinner {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 8px;
  color: var(--agent-color);
  flex-shrink: 0;
}
.agent-spinner span {
  position: absolute;
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.32;
  animation: agentDot 1.4s infinite ease-in-out;
}
.agent-spinner span:nth-child(1) { left: 0;  animation-delay: 0s; }
.agent-spinner span:nth-child(2) { left: 9px; animation-delay: 0.18s; }
.agent-spinner span:nth-child(3) { left: 18px; animation-delay: 0.36s; }
@keyframes agentDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.75); }
  40%           { opacity: 1;   transform: scale(1); }
}

.agent-check {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--up);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 16px;
  flex-shrink: 0;
}
.agent-rec.is-done .agent-check { display: inline-block; }

.agent-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: agentStep;
}
.agent-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.agent-steps li::before {
  counter-increment: agentStep;
  content: counter(agentStep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--agent-color);
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.agent-steps li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.agent-conclusion {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--agent-divider);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.agent-conclusion.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.agent-conclusion-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agent-color);
  background: rgba(255,255,255,0.55);
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Staff schedule — pastel-pill timeline */
.schedule-board {
  display: grid;
  grid-template-columns: 220px repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.sb-cell {
  background: var(--surface);
  padding: 14px 14px;
  min-height: 76px;
  display: flex;
  align-items: center;
  position: relative;
}
.sb-head {
  background: var(--surface-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 44px;
  padding: 12px 14px;
}
.sb-head.is-today { color: var(--ink); background: #EEF4FF; }
.sb-head .day-num {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-left: 8px;
}
.sb-person {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: -6px -10px;
  padding: 6px 10px;
  border-radius: 9px;
  transition: background 0.15s var(--ease);
  width: calc(100% + 20px);
}
.sb-person:hover { background: var(--surface-2); }
.sb-avatar {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: linear-gradient(135deg, #BFD9FF, #5589C5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sb-avatar.av-gold { background: linear-gradient(135deg, #FFD8A8, #E89554); color: #4A2C0E; }
.sb-avatar.av-mint { background: linear-gradient(135deg, #B5EBC9, #4FB36B); color: #0F3B30; }
.sb-avatar.av-rose { background: linear-gradient(135deg, #FFC8C8, #E07070); color: white; }
.sb-avatar.av-lila { background: linear-gradient(135deg, #DAC8F0, #8055C0); color: white; }
.sb-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.sb-role {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-role .hours {
  font-weight: 700;
  color: var(--ink-2);
}
.sb-role .ot {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 99px;
  background: var(--down-bg);
  color: var(--down);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sb-cell.is-today { background: #FBFCFF; }
.sb-cell.is-empty .empty-mark {
  font-size: 11px;
  color: var(--muted-2);
  font-style: italic;
}
.shift-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  cursor: pointer;
}
.shift-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.shift-pill .time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.shift-pill.s-regular { background: #EEF4FF; border-color: #C9DBFA; color: #1F4FA8; }
.shift-pill.s-event   { background: #FFF1E6; border-color: #FBD3B0; color: #9A4A12; }
.shift-pill.s-school  { background: #E9F7EF; border-color: #BDE6CE; color: #1F6B3E; }
.shift-pill.s-exhibit { background: #F4ECFB; border-color: #DCC8EF; color: #5B2E94; }
.shift-pill.s-night   { background: #E5E7EB; border-color: #C7CBD1; color: #3A3A3C; }

/* Person detail · monthly calendar dot grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--surface-2);
  position: relative;
}
.cal-day.work    { background: linear-gradient(135deg, #C8E5B5, #6FA557); }
.cal-day.work.ot { background: linear-gradient(135deg, #FFD8A8, #E89554); }
.cal-day.rest    { background: var(--surface-2); border: 1px solid var(--hairline); }
.cal-day.sick    { background: linear-gradient(135deg, #FFB8A5, #E07060); }
.cal-day.future  { background: transparent; border: 1px dashed var(--hairline-2); }
.cal-day.today   { box-shadow: inset 0 0 0 2px var(--ink); }

.person-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 18px 0;
}
.person-stat-row .cell {
  padding: 0 14px;
  border-right: 1px solid var(--hairline);
}
.person-stat-row .cell:last-child { border-right: 0; }
.person-stat-row .l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.person-stat-row .v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.person-stat-row .v.ok   { color: var(--up); }
.person-stat-row .v.warn { color: var(--tint-alerts-i); }
.person-stat-row .s {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.shift-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.shift-history .h-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
  align-items: center;
}
.shift-history .h-row .day {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.shift-history .h-row .desc { color: var(--ink-2); }
.shift-history .h-row .hrs { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* HR detail blocks · person modal */
.hr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.hr-section { background: var(--surface-2); border-radius: 12px; padding: 16px 18px; }
.hr-section h4 { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.hr-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 7px 0; color: var(--ink-2); }
.hr-row + .hr-row { border-top: 1px solid var(--hairline); }
.hr-row .k { color: var(--ink-3); }
.hr-row .v { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hr-row .v.ok   { color: var(--up); }
.hr-row .v.warn { color: var(--tint-alerts-i); }
.hr-row .v.alert{ color: var(--down); }
.hr-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.hr-chip { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--hairline-2); color: var(--ink-2); }
.hr-chip.cert  { background: var(--up-bg); color: var(--up); border-color: transparent; }
.hr-chip.lang  { background: var(--tint-people); color: var(--tint-people-i); border-color: transparent; }
.hr-chip.warn  { background: var(--tint-alerts); color: var(--tint-alerts-i); border-color: transparent; }

.vesta-card { background: linear-gradient(135deg, #FBF5FF 0%, #F0E1FF 100%); border: 1px solid var(--ai-line); border-radius: 12px; padding: 16px 18px; margin-top: 18px; position: relative; overflow: hidden; }
.vesta-card::before { content: ''; position: absolute; top: -40%; right: -10%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(157,136,218,0.20) 0%, transparent 60%); pointer-events: none; }
.vesta-card > * { position: relative; }
.vesta-card .label { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ai-ink-2); margin-bottom: 10px; }
.vesta-card .label .av { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, #6e6e73, #1d1d1f); color: white; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.vesta-card ul { list-style: none; padding: 0; margin: 0; }
.vesta-card li { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; padding: 7px 0 7px 24px; position: relative; }
.vesta-card li + li { border-top: 1px solid rgba(157,136,218,0.18); }
.vesta-card li .bullet { position: absolute; left: 0; top: 7px; color: var(--ai-ink); font-weight: 800; }
.vesta-card li strong { color: var(--ink); font-weight: 700; }
.m-modal.m-modal-lg { width: min(960px, calc(100vw - 40px)); }

/* Slot grid — ticketing heatmap */
/* Slot summary strip above grid */
.slot-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.slot-summary .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slot-summary .stat .v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.slot-summary .stat .v .small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.slot-summary .stat .l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.slot-progress {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  position: relative;
  max-width: 300px;
}
.slot-progress .fill {
  position: absolute;
  inset: 0;
  width: 70%;
  background: linear-gradient(90deg, #4F7A2C 0%, #D89F4A 70%, #B23B2C 100%);
  border-radius: 99px;
}

/* Slot grid — pill cards */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.slot {
  position: relative;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}
.slot:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--hairline-2);
}
.slot .time {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.slot .cap {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
/* Saturation buckets — refined palette */
.slot.s1 { background: #FAFBFC; }
.slot.s1 .cap { color: var(--ink-3); }

.slot.s2 { background: #ECF7EE; border-color: rgba(45,120,60,0.16); }
.slot.s2 .cap { color: #2F7A3F; }

.slot.s3 { background: #FDF1DC; border-color: rgba(170,110,30,0.18); }
.slot.s3 .cap { color: #8B5A1A; }

.slot.s4 { background: #FBDDB5; border-color: rgba(170,110,30,0.30); }
.slot.s4 .time { color: #5C3A0E; }
.slot.s4 .cap { color: #8B5A1A; }

.slot.s5 { background: var(--ink); border-color: var(--ink); }
.slot.s5 .time { color: white; }
.slot.s5 .cap { color: rgba(255,255,255,0.65); }

/* Current slot indicator */
.slot.current {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.slot.current::before {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232,149,84,0.55);
  animation: slot-pulse 1.6s ease-in-out infinite;
}
@keyframes slot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,149,84,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(232,149,84,0); }
}

/* Legend */
.slot-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.slot-legend .item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.slot-legend .sw {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1px solid var(--hairline-2);
}

/* Journey step (audience) */
.journey-list { display: flex; flex-direction: column; gap: 14px; }
.journey-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.journey-num {
  width: 30px; height: 30px;
  border-radius: 99px;
  background: rgba(184,108,59,0.10);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.journey-step.final .journey-num { background: var(--up-bg); color: var(--up); }
.journey-body .title { font-size: 13px; font-weight: 600; color: var(--ink); }
.journey-body .sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Acquisition bar list */
.acq-list { display: flex; flex-direction: column; gap: 14px; }
.acq-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.acq-row .top .v { font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.acq-row[data-modal] {
  cursor: pointer;
  margin: 0 -12px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s var(--ease);
}
.acq-row[data-modal]:hover { background: var(--surface-2); }
.acq-row[data-modal]:hover .top span:first-child { color: var(--ink); }
.acq-row[data-modal]:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

/* KPI legend dots row (live page) */
.legend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.legend-row .item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
}
.legend-row .item .dot {
  width: 8px; height: 8px;
  border-radius: 99px;
}

/* ============================================================
   ACCOUNT CARDS — gradient banner + avatar (SSV marketing pattern)
   ============================================================ */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 1280px) { .accounts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .accounts-grid { grid-template-columns: 1fr; } }

.account-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.account-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-2);
  box-shadow: 0 12px 24px -8px rgba(20,30,60,0.10);
}
.account-banner {
  height: 56px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.account-banner.fb  { background: linear-gradient(135deg, #1877F2 0%, #145bce 100%); }
.account-banner.ig  { background: linear-gradient(135deg, #FED373 0%, #F15245 40%, #D92E7F 75%, #833AB4 100%); }
.account-banner.yt  { background: linear-gradient(135deg, #FF3B30 0%, #C40C0C 100%); }
.account-banner.tk  { background: linear-gradient(135deg, #25F4EE 0%, #1d1d1f 50%, #FE2C55 100%); }
.account-banner.ig-director { background: linear-gradient(135deg, #E89554 0%, #B86C3B 50%, #5C3F26 100%); }
.account-banner-glyph {
  position: absolute;
  right: 14px; top: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.account-body {
  padding: 0 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.account-av {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid white;
  background-size: cover;
  background-position: center;
  margin-top: -26px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(20,30,60,0.10);
  font-weight: 800;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}
.account-av.fb  { background: linear-gradient(135deg, #1877F2, #145bce); }
.account-av.ig  { background: linear-gradient(135deg, #FED373, #F15245, #833AB4); }
.account-av.yt  { background: linear-gradient(135deg, #FF3B30, #C40C0C); }
.account-av.ig-director { background: linear-gradient(135deg, #E89554, #B86C3B); }

.account-meta { margin-top: 12px; }
.account-handle {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.account-handle .badge {
  font-size: 9px;
  padding: 1.5px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.account-handle .badge.verified  { background: var(--up-bg); color: var(--up); }
.account-handle .badge.business  { background: var(--tint-people); color: var(--tint-people-i); }
.account-handle .badge.live-ads  { background: var(--tint-alerts); color: var(--tint-alerts-i); }
.account-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.account-sub a { color: var(--muted); text-decoration: none; }
.account-sub a:hover { color: var(--ink); }

.account-big-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.account-big-num small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 5px;
}

.account-deltas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.account-delta {
  background: var(--surface-2);
  border-radius: 9px;
  padding: 8px 10px;
}
.account-delta-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.account-delta-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.account-delta-val.up   { color: var(--up); }
.account-delta-val.flat { color: var(--muted); }
.account-delta-val.down { color: var(--down); }

.account-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.account-mini { text-align: left; }
.account-mini-num {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.account-mini-num small {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}
.account-mini-label {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.account-cta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 6px;
}
.account-cta .btn-mini {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.15s var(--ease);
  letter-spacing: -0.005em;
}
.account-cta .btn-mini.primary { background: var(--ink); color: white; }
.account-cta .btn-mini.primary:hover { background: #000; }
.account-cta .btn-mini.ghost   { background: var(--tint-neutral); color: var(--ink-2); }
.account-cta .btn-mini.ghost:hover { background: rgba(0,0,0,0.07); color: var(--ink); }

/* ============================================================
   LINE CHART (SVG, spend vs leads pattern)
   ============================================================ */
.line-chart {
  position: relative;
  height: 220px;
  padding: 8px 0 0;
}
.line-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.line-chart .axis { stroke: rgba(0,0,0,0.06); stroke-width: 1; }
.line-chart .series-a { fill: none; stroke: #E8A04A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .series-a-area { fill: url(#grad-a); opacity: 0.6; }
.line-chart .series-b { fill: none; stroke: #5589C5; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .series-b-area { fill: url(#grad-b); opacity: 0.55; }
.line-chart .dot-a { fill: #E8A04A; stroke: white; stroke-width: 2; }
.line-chart .dot-b { fill: #5589C5; stroke: white; stroke-width: 2; }

/* Hover overlay: crosshair + HTML dots + tooltip (kept out of SVG to avoid
   the preserveAspectRatio='none' stretch on circular shapes). */
.line-chart .chart-crosshair {
  position: absolute;
  top: 8px;
  bottom: 28px;
  width: 1px;
  background: rgba(0,0,0,0.14);
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  transform: translateX(-0.5px);
  left: 100%;
}
.line-chart .chart-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease;
  top: 0;
  left: 100%;
}
.line-chart .chart-dot-a { background: #E8A04A; }
.line-chart .chart-dot-b { background: #5589C5; }
.line-chart .chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #1A1A1A;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 14px));
  opacity: 0;
  transition: opacity 120ms ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  top: 0;
  left: 100%;
  z-index: 4;
}
.line-chart .chart-tooltip .ttt-date {
  font-size: 9.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.line-chart .chart-tooltip .ttt-row {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}
.line-chart .chart-tooltip .ttt-row .swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.line-chart .chart-tooltip strong { font-weight: 800; margin-left: 2px; }
.line-chart.is-hover .chart-crosshair,
.line-chart.is-hover .chart-tooltip { opacity: 1; }

.line-chart-x {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
  padding: 0 4px;
}
.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.chart-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.chart-legend .legend-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}

/* ============================================================
   FUNNEL
   ============================================================ */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}
.funnel-label { width: 120px; color: var(--ink-2); }
.funnel-bar {
  flex: 1;
  height: 24px;
  border-radius: 7px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.funnel-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: width 0.7s var(--ease-soft);
}
.funnel-bar-fill.s1 { background: #E4D4FF; }
.funnel-bar-fill.s2 { background: #C8B8FF; }
.funnel-bar-fill.s3 { background: #FFE3A8; }
.funnel-bar-fill.s4 { background: #FFD4B8; }
.funnel-bar-fill.s5 { background: #B4E5C7; }
.funnel-pct {
  width: 44px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SOCIAL — IG profile card + post grid
   ============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}
@media (max-width: 1080px) { .social-grid { grid-template-columns: 1fr; } }

.social-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px;
}
.social-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.social-av {
  width: 54px; height: 54px;
  border-radius: 99px;
  background-size: cover;
  background-position: center;
  background-color: var(--tint-neutral);
  flex-shrink: 0;
  position: relative;
}
.social-av::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 99px;
  padding: 2px;
  background: linear-gradient(135deg, #FFD84D, #FF6B6B 50%, #B86C3B);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.social-handle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.social-handle .verified {
  width: 14px; height: 14px;
  background: #5589C5;
  color: white;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}
.social-name { font-size: 12px; color: var(--muted); margin-top: 2px; }
.social-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.social-stats .cell {
  text-align: center;
  border-right: 1px solid var(--hairline);
}
.social-stats .cell:last-child { border-right: 0; }
.social-stats .cell .v {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.social-stats .cell .l {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.social-bio { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.social-bio strong { font-weight: 700; color: var(--ink); }
.social-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.post-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--tint-neutral);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease-soft);
}
.post-tile:hover { transform: scale(1.02); }
.post-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.post-tile:hover::after { opacity: 1; }
.post-tile .stats {
  position: absolute;
  bottom: 6px; left: 6px; right: 6px;
  z-index: 2;
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  font-variant-numeric: tabular-nums;
}
.post-tile:hover .stats { opacity: 1; }

/* Top post list row */
.top-post-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  align-items: center;
  cursor: pointer;
  transition: background 0.15s var(--ease);
  border-radius: 8px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.top-post-row:first-child { border-top: 0; }
.top-post-row:hover { background: var(--surface-2); }
.top-post-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--tint-neutral);
}
.top-post-body { min-width: 0; }
.top-post-cap {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-post-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.top-post-engagement {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.top-post-engagement small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
}

/* SERP rows */
.serp-row {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.serp-row:first-child { border-top: 0; padding-top: 0; }
.serp-row .url {
  font-size: 11px;
  color: var(--up);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.serp-row .title {
  font-size: 14px;
  color: var(--tint-people-i);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  cursor: pointer;
}
.serp-row .title:hover { text-decoration: underline; }
.serp-row .desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.serp-row .pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--tint-neutral);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-3);
  margin-right: 8px;
  vertical-align: middle;
}

/* TripAdvisor histogram */
.ta-row {
  display: grid;
  grid-template-columns: 56px 1fr 50px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.ta-row .stars {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.ta-row .count {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Brief simulation header (marketing composer) */
.brief-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.brief-quote {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}
.brief-actors {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

/* Section title */
.section-title { display: block; }

/* Artwork frame now supports real photos */
.artwork-frame { background: var(--tint-neutral); }
.artwork-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artwork-frame.fornarina,
.artwork-frame.narciso,
.artwork-frame.giuditta,
.artwork-frame.cortona,
.artwork-frame.holbein,
.artwork-frame.maffeo { background: var(--ink); }
.artwork-frame .frame-name { display: none; }

/* ============================================================
   Horizontal bars — "Chi è venuto oggi"
   ============================================================ */
.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  cursor: default;
  padding: 4px 0;
  transition: opacity 0.18s var(--ease);
}
.hbar-row:hover { opacity: 0.85; }
.hbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.hbar-label {
  width: 130px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.hbar-track {
  flex: 1;
  height: 8px;
  background: var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}
.hbar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s var(--ease);
}
.hbar-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 700;
  width: 92px;
  text-align: right;
  flex-shrink: 0;
  font-size: 12.5px;
}
.hbar-pct {
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   Donut chart + map — "Chi è venuto oggi"
   ============================================================ */

/* Donut */
.donut-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}
.donut-chart {
  width: 220px;
  height: 220px;
  position: relative;
  flex-shrink: 0;
}
.donut-svg { width: 100%; height: 100%; display: block; }
.donut-seg {
  transition: stroke-width 0.18s var(--ease), opacity 0.18s var(--ease);
  cursor: default;
}
.donut-seg:hover {
  stroke-width: 26;
}
.donut-chart:hover .donut-seg:not(:hover) { opacity: 0.45; }
.donut-center-num {
  font-family: inherit;
  font-size: 26px;
  font-weight: 800;
  fill: var(--ink);
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.donut-center-lbl {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--muted);
  text-anchor: middle;
}

/* Shared compact legend (donut + map) */
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.legend-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 12.5px;
  border-radius: 8px;
  transition: background 0.15s var(--ease);
  cursor: default;
}
.legend-row:hover { background: rgba(0,0,0,0.03); }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-label {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legend-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
}
.legend-pct {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
}

/* World map · real photo backdrop + overlay bubbles */
.geomap-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.geomap-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 460;
  border-radius: 12px;
  overflow: hidden;
  background: #F6F4EE;
}
.geomap-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.4) brightness(1.08) contrast(0.92);
  opacity: 0.62;
  user-select: none;
}
.geomap-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246,244,238,0.18) 0%, rgba(246,244,238,0.32) 100%);
  pointer-events: none;
}
.geomap-bubbles {
  position: absolute;
  inset: 0;
}
.geomap-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 20px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: default;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  opacity: 0.92;
}
.geomap-bubbles:hover .bubble:not(:hover) { opacity: 0.40; }
.bubble:hover { opacity: 1; transform: translate(-50%, -50%) scale(1.10); z-index: 3; }

@media (max-width: 1200px) {
  .donut-wrap { grid-template-columns: 1fr; }
  .donut-chart { margin: 0 auto; }
  .geomap-legend { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Hero · dual CTAs ("Scheda mostra" + "Marketing kit")
   ============================================================ */
.hero-cta-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hero-cta {
  appearance: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-cta.primary {
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--ink);
}
.hero-cta.primary:hover {
  background: #000;
  transform: translateY(-1px);
}
.hero-cta.ghost {
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  border: 1px solid var(--hairline-2);
}
.hero-cta.ghost:hover {
  background: #fff;
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.hero-cta.primary .hero-cta-r { opacity: 0.72; }
.hero-cta.ghost   .hero-cta-r { opacity: 0.65; }
.hero-cta-l {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-cta-r {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.78;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hero-cta-r .chev {
  font-size: 13px;
  margin-left: 4px;
}
@media (max-width: 980px) {
  .hero-cta-row { grid-template-columns: 1fr; }
  .hero-cta-r { display: none; }
}

/* ============================================================
   Sezioni in produzione — pipeline cards
   ============================================================ */
.prod-pipe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
@media (max-width: 1400px) { .prod-pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .prod-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .prod-pipe { grid-template-columns: 1fr; } }

.ppl-card {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}
.ppl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.18);
  border-color: var(--hairline-2);
}
.ppl-img {
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-2);
  position: relative;
}
.ppl-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.22) 100%);
}
.ppl-stage-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ppl-stage-chip.ppl-tone-urgent { background: rgba(255,241,228,0.96); color: var(--accent-deep); }
.ppl-stage-chip.ppl-tone-active { background: rgba(255,239,216,0.96); color: #8B5A1E; }
.ppl-stage-chip.ppl-tone-mid    { background: rgba(238,241,247,0.96); color: #3B5BAD; }
.ppl-stage-chip.ppl-tone-early  { background: rgba(245,245,247,0.96); color: var(--ink-2); }

.ppl-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.ppl-when {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.ppl-when strong { color: var(--ink); font-weight: 800; }
.ppl-open { color: var(--ink-3); font-weight: 600; }

.ppl-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.ppl-curator {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.ppl-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 6px 0 4px;
}
.ppl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.ppl-step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -50%;
  width: 100%;
  height: 1.5px;
  background: var(--hairline);
  z-index: 0;
}
.ppl-step:first-child::before { display: none; }
.ppl-step.done::before { background: #1d1d1f; }
.ppl-step.active::before { background: linear-gradient(90deg, #1d1d1f 50%, var(--hairline) 50%); }

.ppl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hairline-2);
  border: 1.5px solid var(--surface);
  position: relative;
  z-index: 1;
  transition: background 0.18s var(--ease);
}
.ppl-step.done .ppl-dot { background: #1d1d1f; }
.ppl-step.active .ppl-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,149,84,0.22);
}

.ppl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.ppl-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ppl-stat-l {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ppl-stat-v {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.ppl-flag {
  font-size: 11.5px;
  color: var(--accent-deep);
  font-weight: 600;
  padding: 8px 10px;
  background: var(--accent-soft);
  border-radius: 8px;
  line-height: 1.35;
  margin-top: auto;
}
.ppl-card.ppl-tone-active .ppl-flag,
.ppl-card.ppl-tone-mid .ppl-flag,
.ppl-card.ppl-tone-early .ppl-flag {
  color: var(--ink-3);
  background: var(--surface-2);
}

/* ============================================================
   Artwork detail page (artwork.html)
   ============================================================ */

/* Hero */
.art-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  background: var(--surface-1);
  border-radius: 16px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.art-hero-img {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  background-color: #1d1d1f;
}
.art-hero-body { padding: 32px 32px 32px 8px; display: flex; flex-direction: column; }
.art-rank-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep, #5C3F26);
  margin-bottom: 10px;
}
.art-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--ink);
}
.art-attribution {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.art-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}
.art-meta-grid > div { display: flex; flex-direction: column; gap: 2px; }
.art-meta-grid .l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.art-meta-grid .v {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.art-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.art-status-pill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.art-hero-actions { display: flex; gap: 8px; margin-top: auto; }

/* KPI row */
.art-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.art-kpi {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 18px;
}
.art-kpi-l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.art-kpi-v {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.art-kpi-s {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .art-hero { grid-template-columns: 1fr; }
  .art-hero-img { min-height: 320px; }
  .art-hero-body { padding: 24px; }
  .art-kpi-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .art-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .art-meta-grid { grid-template-columns: 1fr; }
}

/* Hourly heatmap */
.art-hour-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.art-hour-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: transform 0.12s var(--ease);
  position: relative;
}
.art-hour-cell:hover { transform: scale(1.05); z-index: 2; }
.art-hour-time { font-size: 10px; font-weight: 700; opacity: 0.85; }
.art-hour-val { font-size: 13px; font-weight: 800; }

/* Provenance timeline */
.art-prov-list {
  display: flex;
  flex-direction: column;
  position: relative;
}
.art-prov-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--hairline);
}
.art-prov-item {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  position: relative;
}
.art-prov-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--hairline-2);
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}
.art-prov-item.is-current .art-prov-dot {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
.art-prov-body { display: flex; flex-direction: column; gap: 2px; }
.art-prov-date {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.art-prov-item.is-current .art-prov-date { color: var(--ink); }
.art-prov-event {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.art-prov-item.is-current .art-prov-event {
  color: var(--ink);
  font-weight: 600;
}

/* Conservation panel */
.art-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-bottom: 18px;
}
.art-cons-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
}
.art-cons-l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.art-cons-v {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.art-cons-s {
  font-size: 11.5px;
  color: var(--muted);
}
.art-cons-notes {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
}

/* Press list */
.art-press-list { display: flex; flex-direction: column; }
.art-press-row {
  display: grid;
  grid-template-columns: 100px 1fr 90px;
  gap: 14px;
  padding: 12px 22px;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.art-press-row:first-child { border-top: none; }
.art-press-src {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.art-press-title {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.art-press-date {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Related works */
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.art-related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.art-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--hairline-2);
}
.art-related-thumb {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: #1d1d1f;
}
.art-related-body { padding: 14px 16px 16px; }
.art-related-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.art-related-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.art-related-stats {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .art-related-grid { grid-template-columns: 1fr 1fr; }
  .art-cons-grid { grid-template-columns: 1fr; }
}

/* Rank-row clickable cursor (collection.html) */
.rank-row.is-link { cursor: pointer; }
.rank-row.is-link:hover { background: var(--surface-2); }

/* Rank-row as anchor: kill default link styling */
a.rank-row, a.rank-row:visited { text-decoration: none; color: inherit; }
a.rank-row .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
a.rank-row:hover .icon-btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Clickable data tables */
.data-table-links tbody tr {
  transition: background 0.15s var(--ease);
}
.data-table-links tbody tr:hover {
  background: var(--surface-2);
}

/* Insight meta link variant */
.insight-meta a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.insight-meta a:hover { opacity: 0.85; }

/* ============================================================
   Hero CTAs (used on home Bernini card)
   ============================================================ */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--hairline-2);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.hero-cta:hover {
  transform: translateY(-1px);
  border-color: var(--ink-2);
  background: #fff;
}
.hero-cta.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.hero-cta.primary:hover {
  background: #000;
  border-color: #000;
}
.hero-cta-l {
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 13.5px;
  flex-shrink: 0;
}
.hero-cta-r {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.78;
}
.hero-cta.primary .hero-cta-r { opacity: 0.85; }
.hero-cta-r .chev {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s var(--ease);
}
.hero-cta:hover .hero-cta-r .chev { transform: translateX(2px); }

/* ============================================================
   Card hover affordance — for cards that open detail modals
   ============================================================ */
.card.is-tap,
.now-cell.is-tap,
.stat-card.is-tap,
.auto-insight.is-tap {
  cursor: pointer;
}
.card.is-tap:hover,
.now-cell.is-tap:hover,
.stat-card.is-tap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.auto-insight.is-tap:hover {
  border-color: var(--ai-line);
}
.card.is-tap .card-cta,
.card.is-tap .icon-btn {
  pointer-events: none;
}
