.crm-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 120, 0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(103, 156, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #f6f5f1 0%, #f3f1eb 100%);
}

.crm-nav {
  background: linear-gradient(90deg, #232018 0%, #37322a 100%);
}

.card,
.hero-panel,
.stat-card,
.message-bubble {
  border-radius: 1rem;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 213, 0.86)),
    linear-gradient(120deg, #f8cf8b, #f5e8cb);
  box-shadow: 0 20px 45px rgba(80, 62, 26, 0.12);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(48, 48, 48, 0.08);
}

.stat-card span {
  color: #6b6b6b;
  font-size: 0.9rem;
}

.stat-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.message-stream {
  display: grid;
  gap: 1rem;
}

.message-bubble {
  padding: 1rem;
  max-width: 100%;
}

.message-bubble.incoming {
  background: #fff9ee;
  border: 1px solid rgba(172, 136, 65, 0.18);
}

.message-bubble.outgoing {
  background: #f0f5ff;
  border: 1px solid rgba(80, 115, 189, 0.18);
}

.crm-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(27, 31, 35, 0.28);
  backdrop-filter: blur(2px);
}

.crm-submit-overlay__panel {
  width: min(92vw, 420px);
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
}

.google-sync-errors {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #fff6f6;
  border: 1px solid rgba(178, 66, 66, 0.16);
  color: #7a2222;
  white-space: pre-wrap;
  font-size: 0.84rem;
}

.status-thumb {
  width: 54px;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 0.35rem;
  border: 1px solid rgba(35, 32, 24, 0.12);
  background: #f8f9fa;
}

.status-thumb-empty {
  display: block;
}

.status-slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.status-source-item img,
.status-variant img,
.status-final-preview {
  width: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid rgba(35, 32, 24, 0.12);
  background:
    linear-gradient(45deg, rgba(35, 32, 24, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(35, 32, 24, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(35, 32, 24, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(35, 32, 24, 0.035) 75%),
    #f8f9fa;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.status-source-item img {
  aspect-ratio: 3 / 4;
}

.status-variant img,
.status-final-preview {
  aspect-ratio: 2 / 3;
}

.status-variant {
  height: 100%;
  border: 1px solid rgba(35, 32, 24, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.status-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.status-image-link:hover img {
  border-color: rgba(35, 32, 24, 0.32);
}

.status-final-preview {
  display: block;
  max-height: min(70vh, 720px);
}

.status-variant-selected {
  border-color: rgba(25, 135, 84, 0.65);
  box-shadow: 0 0 0 0.18rem rgba(25, 135, 84, 0.12);
}

.status-text-clamp {
  min-height: 3.8rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
