/* =============================================================
   embed.css — Organic Mechanic embeddable iframe styles
   Used by: embed.html only
   Requires: variables.css, chat.css loaded first
   Compatible with: Flask/Jinja2, .NET Razor, Bootstrap, plain HTML
   ============================================================= */

/* --- Base layout (iframe fills 100%) --- */
html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* --- Compact header --- */
#header {
  background: var(--green-dark);
  color: var(--cream);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
#header .logo { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; }
#header h1    { font-size: 0.95rem; font-weight: 700; }
#header p     { font-size: 0.72rem; opacity: 0.75; }

/* --- Posture check button (embed) --- */
#posture-btn-embed {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: background 0.15s;
}
#posture-btn-embed:hover:not(:disabled) { background: var(--green-dark); }
#posture-btn-embed:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Posture panel (embed) --- */
#posture-panel-embed {
  background: var(--bot-bg);
  border-top: 1px solid var(--border);
  padding: 10px;
  flex-shrink: 0;
}
#posture-panel-embed .panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

#run-embed-btn {
  width: 100%;
  margin-top: 8px;
  background: var(--green-dark);
  color: var(--cream);
  border: none;
  border-radius: 14px;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
#run-embed-btn:hover:not(:disabled) { background: var(--green-mid); }
#run-embed-btn:disabled { opacity: 0.4; cursor: not-allowed; }
