/* meme-module-v1 — isolated Companion meme room + desks (Banner pattern) */
:root {
  --bg: #0b1220;
  --card: rgba(12, 18, 30, 0.92);
  --gold: rgba(212, 180, 90, 0.85);
  --text: #f3efe6;
  --muted: rgba(243, 239, 230, 0.72);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 50% -10%, #1a2740, var(--bg));
  color: var(--text);
  font-family: Quicksand, system-ui, sans-serif;
}
.meme-room { max-width: 720px; margin: 0 auto; padding: 1rem 0.9rem 2.5rem; }
.bismillah { text-align: center; font-family: Amiri, serif; font-size: 1.15rem; margin: 0.25rem 0 0.5rem; }
header h1 { margin: 0; font-size: 1.35rem; text-align: center; color: #f0d78c; }
.tagline, .edu { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 0.25rem 0; }
.nav-row { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 0.75rem 0 1rem; }
.nav-row a {
  color: #f0d78c; text-decoration: none; font-size: 0.78rem;
  border: 1px solid rgba(212,180,90,0.35); padding: 0.3rem 0.65rem; border-radius: 999px;
}
.panel {
  background: var(--card);
  border: 1px solid rgba(212,180,90,0.28);
  border-radius: 14px;
  padding: 0.75rem;
  margin: 0.55rem 0;
}
.panel h2 { margin: 0 0 0.45rem; font-size: 0.95rem; color: #e8d5a3; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
button.chip, a.chip {
  font: inherit; font-size: 0.72rem; padding: 0.28rem 0.55rem; border-radius: 999px;
  border: 1px solid rgba(212,180,90,0.35); background: rgba(0,0,0,0.28); color: inherit;
  cursor: pointer; text-decoration: none; display: inline-block;
}
button.chip.primary { background: rgba(212,180,90,.22); border-color: rgba(212,180,90,.55); }
#meme-stage { position: relative; width: 100%; margin: 0.4rem 0; }
#meme-canvas { display: block; width: 100%; height: auto; border-radius: 14px; background: #0a101c; }
.controls { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; font-size: 0.72rem; margin-top: 0.45rem; }
.controls select, .controls textarea, .desk-area textarea {
  font: inherit; font-size: 0.75rem; border-radius: 8px;
  border: 1px solid rgba(212,180,90,0.3); background: rgba(0,0,0,0.35); color: inherit;
  padding: 0.25rem 0.4rem;
}
.controls textarea, .desk-area textarea { width: 100%; min-height: 2.6rem; }
#meme-status, .desk-status { font-size: 0.72rem; color: var(--muted); min-height: 1em; }
.desk-grid { display: grid; gap: 0.65rem; }
@media (min-width: 560px) { .desk-grid { grid-template-columns: 1fr 1fr; } }
.desk-card {
  border: 1px solid rgba(212,180,90,0.25);
  border-radius: 12px;
  padding: 0.55rem;
  background: rgba(0,0,0,0.2);
}
.desk-card h3 { margin: 0 0 0.35rem; font-size: 0.85rem; color: #f0d78c; }
.desk-preview {
  width: 100%; border-radius: 10px; background: #0a101c; min-height: 80px;
  border: 1px solid rgba(212,180,90,0.2);
}
.sync-note { font-size: .7rem; color: rgba(243,239,230,.65); margin: .25rem 0 0; }
footer.edu { margin-top: 1.25rem; }

.desk-preview,.desk-preview-canvas{width:100%!important;display:block!important;border-radius:12px;max-height:240px}
