/* simple, clean defaults */
#mmg-root * { box-sizing: border-box; }
.mmg-wrap { max-width: 1000px; margin: 0 auto; padding: 16px; font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #222; }
.mmg-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
/* New: vertical layout, form above content */
.mmg-stack { display: flex; flex-direction: column; gap: 16px; }

/* Optional: sticky actions bar inside the form card */
.mmg-sticky {
  position: sticky;
  top: 0;               /* adjust if your theme has a fixed header */
  z-index: 2;
  background: #fff;
  padding-bottom: 8px;
  margin: -16px -16px 12px -16px;   /* stretch to card edges */
  border-bottom: 1px solid #eee;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.mmg-sticky-inner {
  padding: 12px 16px 8px 16px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

/* Keep the two-up inputs inside the form, but they’ll be inside the top card now */
.mmg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px){ .mmg-row { grid-template-columns: 1fr; } }
@media (max-width: 800px){ .mmg-row, .mmg-row-3 { grid-template-columns: 1fr; } }
.mmg-label { font-weight: 600; margin-bottom: 6px; display:block; }
.mmg-input, .mmg-select, .mmg-textarea { width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; background:#fafafa; }
.mmg-btn { border:1px solid #333; background:#111; color:#fff; border-radius:10px; padding:10px 14px; cursor:pointer; font-weight:600; }
.mmg-btn:disabled { opacity: .5; cursor: not-allowed; }
.mmg-btn-secondary { background:#fff; color:#111; border-color:#bbb; }
.mmg-actions { display:flex; gap:8px; flex-wrap:wrap; }
.mmg-tag { display:inline-block; font-size:12px; padding:4px 8px; border:1px solid #ddd; border-radius:999px; background:#f6f6f6; }
.mmg-section-title { font-size:18px; font-weight:700; margin:8px 0 12px; }
.mmg-muted { color:#666; }
.mmg-table { width:100%; border-collapse: collapse; }
.mmg-table th, .mmg-table td { border:1px solid #eee; padding:8px; text-align:left; }
.mmg-key { filter: blur(6px); transition: filter .2s ease; }
.mmg-key.revealed { filter: blur(0); }
.mmg-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mmg-small { font-size:12px; }
.mmg-hr { height:1px; background:#eee; border:0; margin:16px 0; }
/* ----- PRINT CLEANUP ----- */
@media print {
  body * {
    visibility: hidden !important;
  }

  /* Only show the generator content area */
  #mmg-root, #mmg-root * {
    visibility: visible !important;
  }

  /* Hide form controls, sticky header, and action buttons */
  .mmg-card:first-of-type,          /* top intro card */
  .mmg-sticky,                      /* sticky header */
  .mmg-textarea,
  .mmg-select,
  .mmg-input,
  .mmg-btn,
  .mmg-actions,
  .mmg-tag {
    display: none !important;
  }

  /* Focus printed area */
  #mmg-root {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff !important;
    margin: 0;
    padding: 20px;
  }

  /* Card cleanup for print */
  .mmg-card {
    box-shadow: none !important;
    border-color: #ccc !important;
    page-break-inside: avoid;
  }

  /* Smaller type for print readability */
  .mmg-wrap {
    font-size: 13px;
    color: #111;
  }
}

