/* ============================================================================
   MAMA Viewer - Brand-Aligned CSS
   Color Palette: Yellow #FFCE00, Lavender #EDDBF7, Black #131313, Blush #FF9999
   Typography: Inter (UI) + Fredoka (markdown headings) + Nunito (body)
   CJK Fallback: Noto Sans KR, Noto Sans JP
   ============================================================================ */

/* ============================================================================
   CRITICAL CSS - Prevent CLS before Tailwind loads
   ============================================================================ */

header {
  min-height: 56px;
  display: flex;
  align-items: center;
}

main {
  min-height: calc(100dvh - 56px);
}

[data-tab] {
  min-width: 80px;
  min-height: 36px;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes pulse-recording {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

@keyframes message-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================================
   TYPOGRAPHY HIERARCHY — fix the flat 14px-everywhere problem
   ============================================================================ */

h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }

/* Card system — subtle borders, not heavy shadows */
.card, .bg-white.rounded {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card, 12px);
}

/* Button touch targets — 44px minimum on mobile per WCAG 2.5.8 */
button { min-height: 32px; }
button:not([class*="p-"]):not([class*="px-"]):not([class*="py-"]) { padding: 6px 12px; }
@media (max-width: 768px) {
  button { min-height: 44px; }
  [data-tab] { min-height: 44px; }
}

.animate-slide-up {
  animation: slide-up 0.2s ease-out;
}
/* Right panel mode (SmartStore pattern) — override floating panel sizing */
/* Legacy bubble styles (kept for backward compat) */.no-scroll {
  overflow: hidden !important;
  touch-action: none !important;
}

/* Custom resize handle (works on mobile) */
/* Sidebar resize handle (mobile row-resize) */
#sidebar-resize-handle.sidebar-resize-handle--row {
  width: 100%;
  height: 6px;
  cursor: row-resize;
  background: transparent;
}
#sidebar-resize-handle.sidebar-resize-handle--row::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin: 1px auto;
  border-radius: 9999px;
  background: #D4C4E0;
}

@media (max-width: 767px) {      /* Mobile action buttons — 44px touch targets */  /* Mobile message bubbles — slightly larger text */}

/* Memory viewer mobile layout */
@media (max-width: 768px) {
  #tab-memory .flex-1.flex.min-h-0.relative {
    flex-direction: column;
  }
  #checkpoint-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 35vh;
  }
  #sidebar-resize-handle {
    display: none;
  }
  #graph-container {
    min-height: 45vh;
  }
  #graph-canvas {
    min-height: 45vh;
  }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================================
   STATE CLASSES (Used by JavaScript)
   ============================================================================ */

.status-indicator {
  transition: background-color 200ms ease;
}
.status-indicator.connected {
  background-color: #22c55e !important; /* green-500 */
}
.status-indicator.disconnected {
  background-color: #ef4444 !important; /* red-500 */
}
.status-indicator.connecting {
  background-color: #FFCE00 !important; /* mama-yellow */
  animation: pulse-recording 1s ease-in-out infinite;
}

/* ============================================================================
   MAMA BRAND UTILITIES (Custom Tailwind-style classes)
   ============================================================================ */

/* Background colors */
.bg-mama-yellow { background-color: #FFCE00; }
.bg-mama-yellow-hover { background-color: #E6B800; }
.bg-mama-lavender { background-color: #EDDBF7; }
.bg-mama-lavender-light { background-color: #F5EBF9; }
.bg-mama-lavender-dark { background-color: #D4C4E0; }
.bg-mama-black { background-color: #131313; }
.bg-mama-blush { background-color: #FF9999; }

/* Text colors */
.text-mama-yellow { color: #FFCE00; }
.text-mama-black { color: #131313; }
.text-mama-blush { color: #FF9999; }

/* Border colors */
.border-mama-yellow { border-color: #FFCE00; }
.border-mama-lavender { border-color: #EDDBF7; }
.border-mama-lavender-dark { border-color: #D4C4E0; }
.border-mama-blush { border-color: #FF9999; }

/* Graph-specific background - light for edge visibility */
.bg-mama-graph {
  background: #FAFAFA;
}

/* ============================================================================
   COLLAPSIBLE CHECKPOINT SECTION
   ============================================================================ */

.checkpoint-collapse {
  background: #F8F4FB;
  border: 1px solid #D4C4E0;
  border-radius: 12px;
  margin: 8px 0;
  overflow: hidden;
}

.checkpoint-summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #131313;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  list-style: none;
}

.checkpoint-summary::-webkit-details-marker {
  display: none;
}

.checkpoint-summary::before {
  content: '▶';
  font-size: 10px;
  transition: transform 0.2s ease;
}

.checkpoint-collapse[open] .checkpoint-summary::before {
  transform: rotate(90deg);
}

.collapse-hint {
  font-size: 11px;
  color: #888;
  font-weight: 400;
}

.checkpoint-collapse[open] .collapse-hint {
  display: none;
}

.checkpoint-content {
  padding: 0 14px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  border-top: 1px solid #E8DFF0;
}

/* ============================================================================
   MEMORY CONTROL BAR - wraps instead of overflowing
   ============================================================================
   The Knowledge > Memory filter bar used to be three fixed-width inputs on one
   non-wrapping row, so on a narrow viewport the Clear button and Export menu
   were pushed off-screen. The row wraps and the search field is the elastic
   one; `min-width: 0` is what lets a flex input shrink below its intrinsic
   size at all. */

.memory-controls {
  flex-wrap: wrap;
}

.memory-controls #topic-filter {
  min-width: 0;
  flex: 0 1 10rem;
}

.memory-controls #search-input {
  min-width: 0;
  flex: 1 1 12rem;
}

/* ============================================================================
   CHECKPOINT SIDEBAR - Collapsible & Resizable
   ============================================================================ */

.checkpoint-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0;
  border: none;
  overflow: hidden;
}

.checkpoint-sidebar.collapsed > * {
  opacity: 0;
  visibility: hidden;
}

.checkpoint-sidebar.collapsed + #sidebar-resize-handle {
  display: none;
}

#sidebar-resize-handle {
  width: 4px;
  background: transparent;
  cursor: col-resize;
  transition: background 0.15s ease;
  position: relative;
}

#sidebar-resize-handle:hover {
  background: #FFCE00;
}

#sidebar-resize-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 24px;
  background: #ccc;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

#sidebar-resize-handle:hover::after {
  opacity: 1;
  background: #888;
}

/* ============================================================================
   RICH MESSAGE CONTENT - Brand Colors
   ============================================================================ */

/* Quiz choice buttons - Brand style */
.quiz-choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  margin: 6px 0;
  background: white;
  border: 2px solid #D4C4E0;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-choice-btn:hover {
  background: #F5EBF9;
  border-color: #FFCE00;
  transform: translateX(4px);
}

.quiz-choice-btn:active {
  background: #EDDBF7;
  transform: translateX(2px);
}

/* Tab visibility */
.tab-content {
  display: none;
  content-visibility: hidden;
}
.tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  content-visibility: visible;
}
/* Memory tab needs visible content-visibility for checkpoint details elements */
#tab-memory,
#tab-memory.active {
  content-visibility: visible;
}

/* The operator bundle stays mounted for the page lifetime; when its route is
   not active the region is simply display:none via .tab-content above. */
#tab-operator.active > #operator-mount {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── Mobile sub-view chips ──────────────────────────────────────────────────
   Same hash routes as the desktop rail's sub-entries. Desktop hides the row;
   the rail already shows the group's views. */
.mama-subviews {
  display: none;
}
@media (max-width: 767px) {
  .mama-subviews {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    padding: 8px 12px;
    background: #ffffff;
    border-bottom: 1px solid #ede9e1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mama-subviews::-webkit-scrollbar {
    display: none;
  }
}
.mama-subview-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #f5f2ed;
  color: #6b6560;
  font-family: Inter, 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.mama-subview-chip[hidden] {
  display: none;
}
.mama-subview-chip.mama-nav-active {
  background: #ffce00;
  color: #131313;
}

/* ── Mobile group bar ── */
#mama-mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #ede9e1;
  z-index: 100;
  padding: 0 8px;
  align-items: stretch;
  justify-content: space-around;
}
.mama-mobile-tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #6b6560;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: color 0.15s ease;
}
.mama-mobile-tab i,
.mama-mobile-tab svg {
  width: 20px;
  height: 20px;
}
.mama-mobile-tab.mama-nav-active {
  position: relative;
  background: #ffce00;
  color: #131313;
  border-radius: 8px;
}
@media (max-width: 767px) {
  #mama-mobile-tabs {
    display: flex;
  }
}

/* Modal visibility */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Floating panel visibility */
.floating-panel {
  display: none;
}
.floating-panel.visible {
  display: flex;
}

/* Decision detail modal - resizable */
#decision-detail-modal {
  resize: both;
  overflow: auto;
}
#decision-detail-modal::-webkit-resizer {
  background: linear-gradient(135deg, transparent 50%, #ccc 50%);
  border-radius: 0 0 8px 0;
}
#detail-modal-header {
  cursor: move;
}
#detail-modal-header:active {
  cursor: grabbing;
}
.decision-resize-handle,
#detail-modal-header {
  touch-action: none;
}
.decision-resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, transparent 50%, #D4C4E0 50%) 0 0/100% 100% no-repeat;
  border-radius: 3px;
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0.8;
  pointer-events: auto;
}

/* Legend panel collapse */
.legend-panel {
  display: none;
}
.legend-panel.visible {
  display: block;
}
.legend-toggle {
  display: flex;
}
.legend-panel.visible + .legend-toggle {
  display: none;
}

/* Toast - Brand style */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: #131313;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(19, 19, 19, 0.2);
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Recording state */
.recording-dot {
  animation: pulse-recording 1.5s ease-in-out infinite;
}

/* Streaming cursor */
.message.streaming .message-bubble::after {
  content: '\u2588';
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

/* Typing indicator */
.typing-indicator {
  display: none;
}
.typing-indicator.active {
  display: flex;
}
.typing-dot {
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ============================================================================
   VIS-NETWORK OVERRIDES
   ============================================================================ */

.vis-network {
  background: transparent !important;
}

/* ============================================================================
   SCROLLBAR STYLING - Brand aligned
   ============================================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D4C4E0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFCE00;
}

/* Firefox scrollbar - scoped to scrollable containers */
body, .tab-content, .overflow-y-auto, .overflow-auto {
  scrollbar-width: thin;
  scrollbar-color: #D4C4E0 transparent;
}

/* ============================================================================
   MARKDOWN CONTENT - Brand aligned
   ============================================================================ */

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  color: #131313;
}
.markdown-content h1 { font-size: 1.5em; }
.markdown-content h2 { font-size: 1.3em; }
.markdown-content h3 { font-size: 1.1em; }
.markdown-content h4 { font-size: 1em; }

.markdown-content p {
  margin-bottom: 0.75em;
  line-height: 1.6;
}

.markdown-content code {
  background: #F5EBF9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
}

.markdown-content pre {
  background: #131313;
  color: #f3f4f6;
  padding: 12px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0.75em 0;
}
.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5em;
  margin-bottom: 0.75em;
}
.markdown-content li {
  margin-bottom: 0.25em;
}

.markdown-content blockquote {
  border-left: 3px solid #FFCE00;
  padding-left: 1em;
  margin: 0.75em 0;
  font-style: italic;
  color: #888888;
}

.markdown-content a {
  color: #E6B800;
  text-decoration: underline;
}

.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75em 0;
}
.markdown-content th,
.markdown-content td {
  border: 1px solid #D4C4E0;
  padding: 6px 12px;
  text-align: left;
}
.markdown-content th {
  background: #F5EBF9;
  font-weight: 600;
}

/* ============================================================================
   BRAND BUTTON STYLES
   ============================================================================ */

.btn-mama-primary {
  background: #FFCE00;
  color: #131313;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(255, 206, 0, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-mama-primary:hover {
  background: #E6B800;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 206, 0, 0.5);
}

.btn-mama-primary:active {
  transform: translateY(0);
}

/* ============================================================================
   CARD STYLES
   ============================================================================ */

.card-mama {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(19, 19, 19, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-mama:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(19, 19, 19, 0.12);
}

/* Agent card hover (replaces inline JS handlers) */
.agent-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Agent form inputs — brand focus ring */
.agent-input:focus {
  outline: none;
  border-color: #FFCE00;
  box-shadow: 0 0 0 3px rgba(255, 206, 0, 0.2);
}

/* ============================================================================
   INPUT STYLES - Brand aligned
   ============================================================================ */.input-row {
  display: flex;
  gap: 8px;
}
.input-wrapper {
  flex: 1;
}.btn-send {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #FFCE00;
  color: #131313;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 206, 0, 0.3);
}
.btn-send:hover:not(:disabled) {
  background: #E6B800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 206, 0, 0.4);
}
.btn-send:disabled {
  background: #D4C4E0;
  color: #888888;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================================================
   FLOATING BLOB DECORATIONS (Optional - for special sections)
   ============================================================================ */

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.bg-blob-yellow {
  width: 300px;
  height: 300px;
  background: #FFCE00;
  top: -50px;
  right: -50px;
  animation: float 20s ease-in-out infinite;
}

.bg-blob-blush {
  width: 200px;
  height: 200px;
  background: #FF9999;
  bottom: 10%;
  left: -30px;
  animation: float 20s ease-in-out infinite -7s;
}

/* ============================================================================
   Graph Tooltip (vis-network hover tooltip)
   ============================================================================ */
div.vis-tooltip {
  font-family: Inter, 'Noto Sans KR', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #131313;
  background: #fff;
  border: 1px solid #EDE9E1;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(19, 19, 19, 0.12);
  max-width: 320px;
  pointer-events: none;
}

/* ============================================================================
   SYSTEM VIEWS (Runtime / Connectors) — read-only runtime truth
   ============================================================================ */

.mama-system-panel {
  max-width: 880px;
}

.mama-system-heading {
  font-family: Inter, 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #131313;
  margin: 0 0 4px;
}

.mama-system-note {
  font-size: 12px;
  color: #6b6560;
  margin: 0 0 14px;
}

.mama-system-note code,
.mama-system-code {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  background: #f5f2ed;
  border: 1px solid #ede9e1;
  border-radius: var(--radius-button, 6px);
  padding: 2px 6px;
  color: #131313;
}

.mama-system-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.mama-system-tile {
  background: #fff;
  border: 1px solid #ede9e1;
  border-radius: var(--radius-inner, 8px);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid #ede9e1;
}

.mama-system-tile[data-tone='ok'] {
  border-left-color: #3a9e7e;
}
.mama-system-tile[data-tone='warn'] {
  border-left-color: #e8a040;
}
.mama-system-tile[data-tone='bad'] {
  border-left-color: #ff9999;
}
.mama-system-tile[data-tone='neutral'] {
  border-left-color: #ffce00;
}

.mama-system-tile-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* #9e9891 was ~2.6:1 on white -- below AA for this 10px label. */
  color: #6b6560;
  font-weight: 600;
}

.mama-system-tile-value {
  font-size: 13px;
  font-weight: 600;
  color: #131313;
  overflow-wrap: anywhere;
}

.mama-system-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mama-system-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ede9e1;
  border-radius: var(--radius-button, 6px);
  padding: 8px 10px;
  font-size: 12px;
}

.mama-system-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #9e9891;
  flex-shrink: 0;
}

.mama-system-row[data-tone='ok'] .mama-system-dot {
  background: #3a9e7e;
}
.mama-system-row[data-tone='warn'] .mama-system-dot {
  background: #e8a040;
}

.mama-system-row-name {
  font-weight: 600;
  color: #131313;
  flex: 1;
}

.mama-system-row-state {
  font-size: 11px;
  color: #6b6560;
}

.mama-system-badge {
  font-size: 9px;
  /* #9e9891 was ~2.5:1 on the #f5f2ed chip -- below AA at 9px. */
  color: #6b6560;
  background: #f5f2ed;
  padding: 1px 4px;
  border-radius: 2px;
}

.mama-system-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 880px;
}

.mama-system-skeleton-row {
  height: 44px;
  border-radius: var(--radius-inner, 8px);
  background: linear-gradient(90deg, #f5f2ed 25%, #ede9e1 50%, #f5f2ed 75%);
  background-size: 200% 100%;
  animation: mama-system-shimmer 1.4s ease-in-out infinite;
}

@keyframes mama-system-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.mama-system-error,
.mama-system-empty {
  max-width: 440px;
  background: #fff;
  border: 1px solid #ede9e1;
  border-radius: var(--radius-card, 12px);
  padding: 16px;
}

.mama-system-error-title,
.mama-system-empty-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #131313;
}

.mama-system-error-detail,
.mama-system-empty-detail {
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b6560;
  overflow-wrap: anywhere;
}

.mama-system-retry {
  background: #ffce00;
  color: #131313;
  border: none;
  border-radius: var(--radius-button, 6px);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mama-system-retry:hover {
  background: #e6b800;
}
